@sikka/hawa 0.1.86 → 0.1.88
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.d.mts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js +404 -309
- package/dist/index.mjs +317 -242
- package/dist/styles.css +16 -66
- package/package.json +1 -1
- package/src/blocks/AuthForms/AppLanding.tsx +17 -7
- package/src/blocks/AuthForms/CheckEmail.tsx +54 -0
- package/src/blocks/AuthForms/SignInForm.tsx +1 -1
- package/src/blocks/AuthForms/SignUpForm.tsx +1 -1
- package/src/blocks/AuthForms/index.ts +1 -0
- package/src/blocks/Misc/NoPermission.tsx +1 -5
- package/src/blocks/Payment/CreditCardForm.tsx +20 -19
- package/src/elements/Carousel.tsx +5 -155
- package/src/elements/DropdownMenu.tsx +5 -0
- package/src/elements/HawaAdCard.tsx +61 -23
- package/src/layout/Footer.tsx +50 -13
- package/src/styles.css +16 -66
- package/src/translations/ar.json +4 -1
- package/src/translations/en.json +4 -1
package/dist/index.js
CHANGED
|
@@ -265,6 +265,9 @@ __export(src_exports, {
|
|
|
265
265
|
ChargeWalletForm: function() {
|
|
266
266
|
return ChargeWalletForm;
|
|
267
267
|
},
|
|
268
|
+
CheckEmail: function() {
|
|
269
|
+
return CheckEmail;
|
|
270
|
+
},
|
|
268
271
|
CheckoutForm: function() {
|
|
269
272
|
return CheckoutForm;
|
|
270
273
|
},
|
|
@@ -1504,6 +1507,7 @@ var DropdownMenuItem = React19.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
1504
1507
|
"inset"
|
|
1505
1508
|
]);
|
|
1506
1509
|
return React19.createElement(DropdownMenuPrimitive.Item, _object_spread({
|
|
1510
|
+
disabled: props.disabled,
|
|
1507
1511
|
ref: ref,
|
|
1508
1512
|
className: cn("relative flex cursor-pointer select-none items-center justify-between rounded-sm px-2 py-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", inset && "pl-8", className)
|
|
1509
1513
|
}, props), /* @__PURE__ */ React19.createElement("div", {
|
|
@@ -1620,6 +1624,7 @@ var DropdownMenu = function(param) {
|
|
|
1620
1624
|
dir: direction
|
|
1621
1625
|
}, item.icon && item.icon, item.label), /* @__PURE__ */ React19.createElement(DropdownMenuPortal, null, /* @__PURE__ */ React19.createElement(DropdownMenuSubContent, null, item.subitems.map(function(subitem, subIndex) {
|
|
1622
1626
|
return /* @__PURE__ */ React19.createElement(DropdownMenuItem, {
|
|
1627
|
+
disabled: subitem.disabled,
|
|
1623
1628
|
className: "flex flex-row gap-2",
|
|
1624
1629
|
onSelect: function() {
|
|
1625
1630
|
return subitem.action();
|
|
@@ -1627,6 +1632,7 @@ var DropdownMenu = function(param) {
|
|
|
1627
1632
|
key: subIndex
|
|
1628
1633
|
}, subitem.icon && subitem.icon, subitem.label);
|
|
1629
1634
|
})))) : /* @__PURE__ */ React19.createElement(DropdownMenuItem, {
|
|
1635
|
+
disabled: item.disabled,
|
|
1630
1636
|
className: "flex flex-row gap-2",
|
|
1631
1637
|
key: index,
|
|
1632
1638
|
onSelect: function(e) {
|
|
@@ -6349,6 +6355,26 @@ var HawaAdCard = function(_param) {
|
|
|
6349
6355
|
var orientation = _param.orientation, props = _object_without_properties(_param, [
|
|
6350
6356
|
"orientation"
|
|
6351
6357
|
]);
|
|
6358
|
+
var adRef = (0, import_react48.useRef)(null);
|
|
6359
|
+
var _ref = _sliced_to_array((0, import_react48.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
6360
|
+
var duration = 0;
|
|
6361
|
+
(0, import_react48.useEffect)(function() {
|
|
6362
|
+
if (duration) {
|
|
6363
|
+
var timeoutHide = setTimeout(function() {
|
|
6364
|
+
setClosed(true);
|
|
6365
|
+
}, duration);
|
|
6366
|
+
var timeoutDestroy = setTimeout(function() {
|
|
6367
|
+
setClosed(true);
|
|
6368
|
+
adRef.current.removeChild(adRef.current.children[0]);
|
|
6369
|
+
}, duration + 1e3);
|
|
6370
|
+
return function() {
|
|
6371
|
+
clearTimeout(timeoutHide);
|
|
6372
|
+
clearTimeout(timeoutDestroy);
|
|
6373
|
+
};
|
|
6374
|
+
}
|
|
6375
|
+
}, [
|
|
6376
|
+
duration
|
|
6377
|
+
]);
|
|
6352
6378
|
var cardStyles = {
|
|
6353
6379
|
horizontal: "flex flex-row max-w-xl rounded border-gray-200 bg-gray-100 shadow-md p-2 gap-2 items-center relative dark:border-gray-700 dark:bg-gray-800 ",
|
|
6354
6380
|
vertical: "flex flex-col max-w-[200px] justify-start rounded border-gray-200 bg-gray-100 gap-2 shadow-md p-2 relative dark:border-gray-700 dark:bg-gray-800 "
|
|
@@ -6357,7 +6383,9 @@ var HawaAdCard = function(_param) {
|
|
|
6357
6383
|
horizontal: "w-auto h-full bg-blue-500 rounded-inner",
|
|
6358
6384
|
vertical: "bg-blue-500 rounded-inner w-auto "
|
|
6359
6385
|
};
|
|
6360
|
-
return /* @__PURE__ */ import_react48.default.createElement("div",
|
|
6386
|
+
return /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
6387
|
+
ref: adRef
|
|
6388
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", _object_spread({
|
|
6361
6389
|
className: (0, import_clsx24.default)(cardStyles[orientation], "dark:text-white")
|
|
6362
6390
|
}, props), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
6363
6391
|
className: "flex aspect-square w-full max-w-fit items-start "
|
|
@@ -6371,9 +6399,18 @@ var HawaAdCard = function(_param) {
|
|
|
6371
6399
|
}, props.title), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
6372
6400
|
className: "text-[12px]"
|
|
6373
6401
|
}, props.description)), /* @__PURE__ */ import_react48.default.createElement("span", {
|
|
6374
|
-
onClick:
|
|
6402
|
+
onClick: function() {
|
|
6403
|
+
if (props.canHide) {
|
|
6404
|
+
setClosed(true);
|
|
6405
|
+
setTimeout(function() {
|
|
6406
|
+
adRef.current.removeChild(adRef.current.children[0]);
|
|
6407
|
+
}, 200);
|
|
6408
|
+
} else {
|
|
6409
|
+
props.handleCantHide();
|
|
6410
|
+
}
|
|
6411
|
+
},
|
|
6375
6412
|
className: "absolute right-0 top-0 h-fit cursor-pointer select-none rounded-bl-lg rounded-tr-lg bg-blue-100 px-2.5 py-0.5 text-[10px] font-semibold text-blue-800 dark:bg-blue-200 dark:text-blue-800"
|
|
6376
|
-
}, "Hide"));
|
|
6413
|
+
}, "Hide")));
|
|
6377
6414
|
};
|
|
6378
6415
|
// src/elements/HawaLandingCard.tsx
|
|
6379
6416
|
var import_clsx25 = __toESM(require("clsx"));
|
|
@@ -6700,10 +6737,10 @@ var useCarousel_default = useCarousel;
|
|
|
6700
6737
|
// src/elements/Carousel.tsx
|
|
6701
6738
|
var Carousel = function(param) {
|
|
6702
6739
|
var images = param.images;
|
|
6703
|
-
var imageWidth =
|
|
6740
|
+
var imageWidth = 1e3 + 16;
|
|
6704
6741
|
var _useCarousel_default = useCarousel_default(imageWidth), containerRef = _useCarousel_default.containerRef, handleMouseDown = _useCarousel_default.handleMouseDown, handleMouseLeave = _useCarousel_default.handleMouseLeave, handleMouseUp = _useCarousel_default.handleMouseUp, handleMouseMove = _useCarousel_default.handleMouseMove;
|
|
6705
6742
|
return /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
6706
|
-
className: "flex cursor-pointer snap-x gap-4 overflow-x-
|
|
6743
|
+
className: "flex cursor-pointer snap-x gap-4 overflow-x-hidden justify-center items-center",
|
|
6707
6744
|
onMouseDown: handleMouseDown,
|
|
6708
6745
|
onMouseLeave: handleMouseLeave,
|
|
6709
6746
|
onMouseUp: handleMouseUp,
|
|
@@ -6712,10 +6749,11 @@ var Carousel = function(param) {
|
|
|
6712
6749
|
}, images.map(function(image, index) {
|
|
6713
6750
|
return /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
6714
6751
|
key: index,
|
|
6715
|
-
className: "
|
|
6752
|
+
className: "w-[1000px] h-96 flex-shrink-0"
|
|
6716
6753
|
}, /* @__PURE__ */ import_react54.default.createElement("img", {
|
|
6717
6754
|
src: image,
|
|
6718
6755
|
alt: "Carousel Image ".concat(index),
|
|
6756
|
+
width: imageWidth,
|
|
6719
6757
|
className: "h-full w-full rounded-lg object-cover"
|
|
6720
6758
|
}));
|
|
6721
6759
|
}));
|
|
@@ -8377,13 +8415,30 @@ var AppSidebar = function(param) {
|
|
|
8377
8415
|
var import_bs = require("react-icons/bs");
|
|
8378
8416
|
var import_fa2 = require("react-icons/fa");
|
|
8379
8417
|
var Footer = function(_param) {
|
|
8380
|
-
var props =
|
|
8418
|
+
var _param_variation = _param.variation, variation = _param_variation === void 0 ? "default" : _param_variation, props = _object_without_properties(_param, [
|
|
8419
|
+
"variation"
|
|
8420
|
+
]);
|
|
8381
8421
|
var _props_footerLinks;
|
|
8422
|
+
var variationStyles = {
|
|
8423
|
+
default: "rounded border",
|
|
8424
|
+
minimal: "border-t"
|
|
8425
|
+
};
|
|
8382
8426
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8383
|
-
className: "
|
|
8384
|
-
},
|
|
8385
|
-
className: "
|
|
8386
|
-
},
|
|
8427
|
+
className: cn("flex w-full flex-row items-center justify-between gap-8 rounded bg-background p-4", variationStyles[variation])
|
|
8428
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
8429
|
+
className: "flex flex-col items-center gap-2"
|
|
8430
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
8431
|
+
className: "flex flex-row items-center gap-2"
|
|
8432
|
+
}, props.logoURL && /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("img", {
|
|
8433
|
+
className: "h-8",
|
|
8434
|
+
src: props.logoURL
|
|
8435
|
+
})), props.logoText && /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("div", {
|
|
8436
|
+
className: "text-2xl font-bold text-primary"
|
|
8437
|
+
}, props.logoText))), props.copyRights && props.footerLinks && /* @__PURE__ */ React.createElement("div", {
|
|
8438
|
+
className: "text-xs text-muted-foreground"
|
|
8439
|
+
}, "\xa9 ", props.copyRights, " ", /* @__PURE__ */ new Date().getFullYear())), props.copyRights && !props.footerLinks && /* @__PURE__ */ React.createElement("div", {
|
|
8440
|
+
className: "text-xs text-muted-foreground"
|
|
8441
|
+
}, "\xa9 ", props.copyRights, " ", /* @__PURE__ */ new Date().getFullYear()), (_props_footerLinks = props.footerLinks) === null || _props_footerLinks === void 0 ? void 0 : _props_footerLinks.map(function(pagesSection) {
|
|
8387
8442
|
return /* @__PURE__ */ React.createElement("div", {
|
|
8388
8443
|
className: "flex w-32 flex-col gap-2"
|
|
8389
8444
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -8398,14 +8453,18 @@ var Footer = function(_param) {
|
|
|
8398
8453
|
})));
|
|
8399
8454
|
}), props.socialLinks && /* @__PURE__ */ React.createElement("div", {
|
|
8400
8455
|
className: "flex flex-row gap-2"
|
|
8401
|
-
}, props.socialLinks.twitter && /* @__PURE__ */ React.createElement(
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
}, /* @__PURE__ */ React.createElement(
|
|
8408
|
-
|
|
8456
|
+
}, props.socialLinks.twitter && /* @__PURE__ */ React.createElement(Button, {
|
|
8457
|
+
size: "smallIcon",
|
|
8458
|
+
variant: "ghost"
|
|
8459
|
+
}, /* @__PURE__ */ React.createElement(import_bs.BsTwitter, null)), props.socialLinks.instagram && /* @__PURE__ */ React.createElement(Button, {
|
|
8460
|
+
size: "smallIcon",
|
|
8461
|
+
variant: "ghost"
|
|
8462
|
+
}, /* @__PURE__ */ React.createElement(import_bs.BsInstagram, null)), props.socialLinks.tiktok && /* @__PURE__ */ React.createElement(Button, {
|
|
8463
|
+
size: "smallIcon",
|
|
8464
|
+
variant: "ghost"
|
|
8465
|
+
}, /* @__PURE__ */ React.createElement(import_fa2.FaTiktok, null)), props.socialLinks.snapchat && /* @__PURE__ */ React.createElement(Button, {
|
|
8466
|
+
size: "smallIcon",
|
|
8467
|
+
variant: "ghost"
|
|
8409
8468
|
}, /* @__PURE__ */ React.createElement(import_fa2.FaSnapchatGhost, null))));
|
|
8410
8469
|
};
|
|
8411
8470
|
// src/layout/Banner.tsx
|
|
@@ -8782,13 +8841,12 @@ var AppLanding = function(props) {
|
|
|
8782
8841
|
variant: "outline"
|
|
8783
8842
|
}, /* @__PURE__ */ import_react71.default.createElement(Icons.mail, {
|
|
8784
8843
|
className: "h-4 w-4"
|
|
8785
|
-
}), "Continue With Email"), /* @__PURE__ */ import_react71.default.createElement("
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
href: "#",
|
|
8844
|
+
}), "Continue With Email"), !props.withoutSignUp && /* @__PURE__ */ import_react71.default.createElement("div", {
|
|
8845
|
+
className: "p-3 text-center text-sm font-normal dark:text-gray-300"
|
|
8846
|
+
}, props.texts.newUserText, " ", /* @__PURE__ */ import_react71.default.createElement("span", {
|
|
8847
|
+
onClick: props.handleRouteToSignUp,
|
|
8790
8848
|
className: "clickable-link"
|
|
8791
|
-
},
|
|
8849
|
+
}, props.texts.createAccount)))), /* @__PURE__ */ import_react71.default.createElement("div", {
|
|
8792
8850
|
className: "mt-6 flex flex-row justify-between"
|
|
8793
8851
|
}, /* @__PURE__ */ import_react71.default.createElement(HawaRadio, {
|
|
8794
8852
|
onChangeTab: props.handleLanguage,
|
|
@@ -8985,7 +9043,7 @@ var SignInForm = function(props) {
|
|
|
8985
9043
|
className: "mt-4 w-full",
|
|
8986
9044
|
isLoading: props.isLoading
|
|
8987
9045
|
}, props.texts.signInText), !props.withoutSignUp && /* @__PURE__ */ import_react73.default.createElement("div", {
|
|
8988
|
-
className: "p-3 text-center text-sm font-
|
|
9046
|
+
className: "p-3 text-center text-sm font-normal dark:text-gray-300"
|
|
8989
9047
|
}, props.texts.newUserText, " ", /* @__PURE__ */ import_react73.default.createElement("span", {
|
|
8990
9048
|
onClick: props.handleRouteToSignUp,
|
|
8991
9049
|
className: "clickable-link"
|
|
@@ -9285,7 +9343,7 @@ var SignUpForm = function(props) {
|
|
|
9285
9343
|
className: "w-full",
|
|
9286
9344
|
isLoading: props.isLoading
|
|
9287
9345
|
}, props.texts.signUpText))), /* @__PURE__ */ import_react74.default.createElement("div", {
|
|
9288
|
-
className: "flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-
|
|
9346
|
+
className: "flex flex-row items-center justify-center gap-1 p-3 text-center text-sm font-normal dark:text-white"
|
|
9289
9347
|
}, /* @__PURE__ */ import_react74.default.createElement("span", null, props.texts.existingUserText), /* @__PURE__ */ import_react74.default.createElement("span", {
|
|
9290
9348
|
onClick: props.handleRouteToSignIn,
|
|
9291
9349
|
className: "clickable-link"
|
|
@@ -9471,13 +9529,50 @@ var CodeConfirmation = function(props) {
|
|
|
9471
9529
|
variant: "secondary"
|
|
9472
9530
|
}, (_props_texts_cancel = props.texts.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */ import_react77.default.createElement(Button, null, (_props_texts_confirm = props.texts.confirm) !== null && _props_texts_confirm !== void 0 ? _props_texts_confirm : "Confirm")))));
|
|
9473
9531
|
};
|
|
9474
|
-
// src/blocks/
|
|
9532
|
+
// src/blocks/AuthForms/CheckEmail.tsx
|
|
9475
9533
|
var import_react78 = __toESM(require("react"));
|
|
9534
|
+
var CheckEmail = function(param) {
|
|
9535
|
+
var texts = param.texts, handleResend = param.handleResend;
|
|
9536
|
+
var _texts, _texts1, _texts2;
|
|
9537
|
+
var _texts_checkEmail, _texts_pleaseVerify, _texts_resendEmail;
|
|
9538
|
+
return /* @__PURE__ */ import_react78.default.createElement(Card, null, /* @__PURE__ */ import_react78.default.createElement(CardContent, {
|
|
9539
|
+
headless: true
|
|
9540
|
+
}, /* @__PURE__ */ import_react78.default.createElement("div", {
|
|
9541
|
+
className: "flex flex-col items-center justify-center text-center"
|
|
9542
|
+
}, /* @__PURE__ */ import_react78.default.createElement("div", {
|
|
9543
|
+
className: "flex h-16 w-16 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground"
|
|
9544
|
+
}, /* @__PURE__ */ import_react78.default.createElement("svg", {
|
|
9545
|
+
stroke: "currentColor",
|
|
9546
|
+
fill: "none",
|
|
9547
|
+
"stroke-width": "2",
|
|
9548
|
+
viewBox: "0 0 24 24",
|
|
9549
|
+
"stroke-linecap": "round",
|
|
9550
|
+
"stroke-linejoin": "round",
|
|
9551
|
+
height: "0.5em",
|
|
9552
|
+
width: "0.5em",
|
|
9553
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9554
|
+
}, /* @__PURE__ */ import_react78.default.createElement("path", {
|
|
9555
|
+
d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"
|
|
9556
|
+
}), /* @__PURE__ */ import_react78.default.createElement("polyline", {
|
|
9557
|
+
points: "22,6 12,13 2,6"
|
|
9558
|
+
}))), /* @__PURE__ */ import_react78.default.createElement("div", {
|
|
9559
|
+
className: "m-2 text-xl font-bold"
|
|
9560
|
+
}, (_texts_checkEmail = (_texts = texts) === null || _texts === void 0 ? void 0 : _texts.checkEmail) !== null && _texts_checkEmail !== void 0 ? _texts_checkEmail : "Check you email"), /* @__PURE__ */ import_react78.default.createElement("div", {
|
|
9561
|
+
className: "text-sm"
|
|
9562
|
+
}, (_texts_pleaseVerify = (_texts1 = texts) === null || _texts1 === void 0 ? void 0 : _texts1.pleaseVerify) !== null && _texts_pleaseVerify !== void 0 ? _texts_pleaseVerify : "Thank you for signing up! To complete your registration, we've sent a verification email to the address you provided. Please check your inbox and follow the instructions in the email to activate your account."))), /* @__PURE__ */ import_react78.default.createElement(CardFooter, {
|
|
9563
|
+
className: "flex flex-col justify-center "
|
|
9564
|
+
}, /* @__PURE__ */ import_react78.default.createElement("span", {
|
|
9565
|
+
className: "clickable-link text-sm",
|
|
9566
|
+
onClick: handleResend
|
|
9567
|
+
}, (_texts_resendEmail = (_texts2 = texts) === null || _texts2 === void 0 ? void 0 : _texts2.resendEmail) !== null && _texts_resendEmail !== void 0 ? _texts_resendEmail : "Resend Email")));
|
|
9568
|
+
};
|
|
9569
|
+
// src/blocks/Payment/SelectPayment.tsx
|
|
9570
|
+
var import_react79 = __toESM(require("react"));
|
|
9476
9571
|
var SelectPayment = function(props) {
|
|
9477
|
-
var _ref = _sliced_to_array((0,
|
|
9478
|
-
return /* @__PURE__ */
|
|
9572
|
+
var _ref = _sliced_to_array((0, import_react79.useState)(""), 2), selectedMethod = _ref[0], setSelectedMethod = _ref[1];
|
|
9573
|
+
return /* @__PURE__ */ import_react79.default.createElement(Card, null, /* @__PURE__ */ import_react79.default.createElement(CardHeader, null, /* @__PURE__ */ import_react79.default.createElement(CardTitle, null, "Choose Payment Method"), /* @__PURE__ */ import_react79.default.createElement(CardDescription, null, "And you'll be directed to the next step to complete the payment")), /* @__PURE__ */ import_react79.default.createElement(CardContent, {
|
|
9479
9574
|
className: "grid grid-cols-2 gap-4"
|
|
9480
|
-
}, /* @__PURE__ */
|
|
9575
|
+
}, /* @__PURE__ */ import_react79.default.createElement(Button, {
|
|
9481
9576
|
className: cn("flex w-full flex-col gap-2 pt-6", selectedMethod === "mada" && "outline outline-4 outline-primary"),
|
|
9482
9577
|
variant: "outline",
|
|
9483
9578
|
size: "heightless",
|
|
@@ -9485,10 +9580,10 @@ var SelectPayment = function(props) {
|
|
|
9485
9580
|
onClick: function() {
|
|
9486
9581
|
return setSelectedMethod("mada");
|
|
9487
9582
|
}
|
|
9488
|
-
}, /* @__PURE__ */
|
|
9583
|
+
}, /* @__PURE__ */ import_react79.default.createElement("img", {
|
|
9489
9584
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png",
|
|
9490
9585
|
className: "h-6"
|
|
9491
|
-
}), /* @__PURE__ */
|
|
9586
|
+
}), /* @__PURE__ */ import_react79.default.createElement("span", null, props.madaLabel)), /* @__PURE__ */ import_react79.default.createElement(Button, {
|
|
9492
9587
|
className: cn("flex w-full flex-col gap-2", selectedMethod === "apple-pay" && "outline outline-4 outline-primary"),
|
|
9493
9588
|
variant: "outline",
|
|
9494
9589
|
size: "heightless",
|
|
@@ -9496,10 +9591,10 @@ var SelectPayment = function(props) {
|
|
|
9496
9591
|
onClick: function() {
|
|
9497
9592
|
return setSelectedMethod("apple-pay");
|
|
9498
9593
|
}
|
|
9499
|
-
}, /* @__PURE__ */
|
|
9594
|
+
}, /* @__PURE__ */ import_react79.default.createElement("img", {
|
|
9500
9595
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/apple-pay.png",
|
|
9501
9596
|
className: "h-11"
|
|
9502
|
-
}), /* @__PURE__ */
|
|
9597
|
+
}), /* @__PURE__ */ import_react79.default.createElement("span", null, props.applePayLabel)), /* @__PURE__ */ import_react79.default.createElement(Button, {
|
|
9503
9598
|
className: cn("flex w-full flex-col gap-2", selectedMethod === "visa-master" && "outline outline-4 outline-primary"),
|
|
9504
9599
|
variant: "outline",
|
|
9505
9600
|
size: "heightless",
|
|
@@ -9507,10 +9602,10 @@ var SelectPayment = function(props) {
|
|
|
9507
9602
|
onClick: function() {
|
|
9508
9603
|
return setSelectedMethod("visa-master");
|
|
9509
9604
|
}
|
|
9510
|
-
}, /* @__PURE__ */
|
|
9605
|
+
}, /* @__PURE__ */ import_react79.default.createElement("img", {
|
|
9511
9606
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png",
|
|
9512
9607
|
className: "h-6"
|
|
9513
|
-
}), /* @__PURE__ */
|
|
9608
|
+
}), /* @__PURE__ */ import_react79.default.createElement("span", null, props.visaMasterLabel)), /* @__PURE__ */ import_react79.default.createElement(Button, {
|
|
9514
9609
|
variant: "outline",
|
|
9515
9610
|
size: "heightless",
|
|
9516
9611
|
className: cn("flex w-full flex-col gap-2", selectedMethod === "wallet" && "outline outline-4 outline-primary"),
|
|
@@ -9518,16 +9613,16 @@ var SelectPayment = function(props) {
|
|
|
9518
9613
|
onClick: function() {
|
|
9519
9614
|
return setSelectedMethod("wallet");
|
|
9520
9615
|
}
|
|
9521
|
-
}, /* @__PURE__ */
|
|
9616
|
+
}, /* @__PURE__ */ import_react79.default.createElement("svg", {
|
|
9522
9617
|
version: "1.1",
|
|
9523
9618
|
fill: "currentColor",
|
|
9524
9619
|
viewBox: "0 0 223 223",
|
|
9525
9620
|
className: "h-6 w-6"
|
|
9526
|
-
}, /* @__PURE__ */
|
|
9621
|
+
}, /* @__PURE__ */ import_react79.default.createElement("g", null, /* @__PURE__ */ import_react79.default.createElement("path", {
|
|
9527
9622
|
d: "M223,94.5c0-6.075-4.925-11-11-11h-63c-6.075,0-11,4.925-11,11v33c0,6.075,4.925,11,11,11h63c6.075,0,11-4.925,11-11V94.5z\n M169.515,123.967c-7.082,0-12.823-5.741-12.823-12.823c0-7.082,5.741-12.823,12.823-12.823c7.082,0,12.823,5.741,12.823,12.823\n C182.338,118.225,176.597,123.967,169.515,123.967z"
|
|
9528
|
-
}), /* @__PURE__ */
|
|
9623
|
+
}), /* @__PURE__ */ import_react79.default.createElement("path", {
|
|
9529
9624
|
d: "M123.509,68.5H205v-33c0-8.271-6.395-15-14.667-15h-175C7.062,20.5,0,27.229,0,35.5v152c0,8.271,7.062,15,15.333,15h175\n c8.271,0,14.667-6.729,14.667-15v-34h-81.342L123.509,68.5z"
|
|
9530
|
-
}))), /* @__PURE__ */
|
|
9625
|
+
}))), /* @__PURE__ */ import_react79.default.createElement("span", null, props.walletLabel)), /* @__PURE__ */ import_react79.default.createElement(Button, {
|
|
9531
9626
|
variant: "outline",
|
|
9532
9627
|
size: "heightless",
|
|
9533
9628
|
className: cn("flex w-full flex-col gap-2", selectedMethod === "stc-pay" && "outline outline-4 outline-primary"),
|
|
@@ -9535,10 +9630,10 @@ var SelectPayment = function(props) {
|
|
|
9535
9630
|
onClick: function() {
|
|
9536
9631
|
return setSelectedMethod("stc-pay");
|
|
9537
9632
|
}
|
|
9538
|
-
}, /* @__PURE__ */
|
|
9633
|
+
}, /* @__PURE__ */ import_react79.default.createElement("img", {
|
|
9539
9634
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png",
|
|
9540
9635
|
className: "h-6"
|
|
9541
|
-
}), /* @__PURE__ */
|
|
9636
|
+
}), /* @__PURE__ */ import_react79.default.createElement("span", null, props.stcPayLabel)), /* @__PURE__ */ import_react79.default.createElement(Button, {
|
|
9542
9637
|
variant: "outline",
|
|
9543
9638
|
size: "heightless",
|
|
9544
9639
|
className: cn("flex w-full flex-col gap-2", selectedMethod === "google-pay" && "outline outline-4 outline-primary"),
|
|
@@ -9546,10 +9641,10 @@ var SelectPayment = function(props) {
|
|
|
9546
9641
|
onClick: function() {
|
|
9547
9642
|
return setSelectedMethod("google-pay");
|
|
9548
9643
|
}
|
|
9549
|
-
}, /* @__PURE__ */
|
|
9644
|
+
}, /* @__PURE__ */ import_react79.default.createElement("img", {
|
|
9550
9645
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/google-pay.png",
|
|
9551
9646
|
className: "h-6"
|
|
9552
|
-
}), /* @__PURE__ */
|
|
9647
|
+
}), /* @__PURE__ */ import_react79.default.createElement("span", null, props.googlePayLabel)), /* @__PURE__ */ import_react79.default.createElement(Button, {
|
|
9553
9648
|
variant: "outline",
|
|
9554
9649
|
size: "heightless",
|
|
9555
9650
|
className: cn("col-span-2 flex w-full flex-col gap-2", selectedMethod === "paypal" && "outline outline-4 outline-primary"),
|
|
@@ -9557,10 +9652,10 @@ var SelectPayment = function(props) {
|
|
|
9557
9652
|
onClick: function() {
|
|
9558
9653
|
return setSelectedMethod("paypal");
|
|
9559
9654
|
}
|
|
9560
|
-
}, /* @__PURE__ */
|
|
9655
|
+
}, /* @__PURE__ */ import_react79.default.createElement("img", {
|
|
9561
9656
|
src: "https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png",
|
|
9562
9657
|
className: "h-6"
|
|
9563
|
-
}), /* @__PURE__ */
|
|
9658
|
+
}), /* @__PURE__ */ import_react79.default.createElement("span", null, props.paypalLabel))), /* @__PURE__ */ import_react79.default.createElement(CardFooter, null, /* @__PURE__ */ import_react79.default.createElement(Button, {
|
|
9564
9659
|
onClick: function() {
|
|
9565
9660
|
return props.handleContinue(selectedMethod);
|
|
9566
9661
|
},
|
|
@@ -9569,147 +9664,146 @@ var SelectPayment = function(props) {
|
|
|
9569
9664
|
}, "Continue")));
|
|
9570
9665
|
};
|
|
9571
9666
|
// src/blocks/Payment/CreditCardForm.tsx
|
|
9572
|
-
var
|
|
9667
|
+
var import_react80 = __toESM(require("react"));
|
|
9573
9668
|
var import_react_hook_form7 = require("react-hook-form");
|
|
9574
9669
|
var CreditCardForm = function(props) {
|
|
9575
9670
|
var methods = (0, import_react_hook_form7.useForm)();
|
|
9576
9671
|
var errors = methods.formState.errors, handleSubmit = methods.handleSubmit, control = methods.control;
|
|
9577
|
-
return /* @__PURE__ */
|
|
9672
|
+
return /* @__PURE__ */ import_react80.default.createElement(Card, null, /* @__PURE__ */ import_react80.default.createElement("form", {
|
|
9578
9673
|
onSubmit: handleSubmit(props.handle)
|
|
9579
|
-
}, /* @__PURE__ */
|
|
9674
|
+
}, /* @__PURE__ */ import_react80.default.createElement(CardContent, {
|
|
9580
9675
|
headless: true
|
|
9581
|
-
}, /* @__PURE__ */
|
|
9676
|
+
}, /* @__PURE__ */ import_react80.default.createElement("div", {
|
|
9582
9677
|
className: "flex flex-row gap-4"
|
|
9583
|
-
}, /* @__PURE__ */
|
|
9678
|
+
}, /* @__PURE__ */ import_react80.default.createElement(import_react_hook_form7.Controller, {
|
|
9584
9679
|
control: control,
|
|
9585
9680
|
name: "cardName",
|
|
9586
9681
|
render: function(param) {
|
|
9587
9682
|
var field = param.field;
|
|
9588
9683
|
var _errors_password;
|
|
9589
|
-
return /* @__PURE__ */
|
|
9684
|
+
return /* @__PURE__ */ import_react80.default.createElement(HawaTextField, {
|
|
9590
9685
|
width: "full",
|
|
9591
|
-
name: "
|
|
9592
|
-
placeholder: "
|
|
9593
|
-
type: "
|
|
9686
|
+
name: "cardNumber",
|
|
9687
|
+
placeholder: "1234 1234 1234 1234",
|
|
9688
|
+
type: "number",
|
|
9594
9689
|
label: "Card Number",
|
|
9595
9690
|
helpertext: (_errors_password = errors.password) === null || _errors_password === void 0 ? void 0 : _errors_password.message
|
|
9596
9691
|
});
|
|
9597
9692
|
},
|
|
9598
9693
|
rules: {
|
|
9599
|
-
required: "
|
|
9694
|
+
required: "Card Number is rquired"
|
|
9600
9695
|
}
|
|
9601
|
-
}), /* @__PURE__ */
|
|
9696
|
+
}), /* @__PURE__ */ import_react80.default.createElement("div", {
|
|
9602
9697
|
className: "w-1/4"
|
|
9603
|
-
}, /* @__PURE__ */
|
|
9698
|
+
}, /* @__PURE__ */ import_react80.default.createElement(import_react_hook_form7.Controller, {
|
|
9604
9699
|
control: control,
|
|
9605
|
-
name: "
|
|
9700
|
+
name: "cardCVC",
|
|
9606
9701
|
render: function(param) {
|
|
9607
9702
|
var field = param.field;
|
|
9608
9703
|
var _errors_password;
|
|
9609
|
-
return /* @__PURE__ */
|
|
9704
|
+
return /* @__PURE__ */ import_react80.default.createElement(HawaTextField, {
|
|
9610
9705
|
width: "full",
|
|
9611
|
-
name: "
|
|
9706
|
+
name: "cardCVC",
|
|
9612
9707
|
maxLength: "3",
|
|
9613
9708
|
autoComplete: "cc-number",
|
|
9614
|
-
placeholder: "",
|
|
9615
|
-
type: "
|
|
9616
|
-
label: "
|
|
9709
|
+
placeholder: "CVC",
|
|
9710
|
+
type: "number",
|
|
9711
|
+
label: "CVC",
|
|
9617
9712
|
helpertext: (_errors_password = errors.password) === null || _errors_password === void 0 ? void 0 : _errors_password.message
|
|
9618
9713
|
});
|
|
9619
9714
|
},
|
|
9620
9715
|
rules: {
|
|
9621
9716
|
required: "Password is rquired"
|
|
9622
9717
|
}
|
|
9623
|
-
}))), /* @__PURE__ */
|
|
9718
|
+
}))), /* @__PURE__ */ import_react80.default.createElement(import_react_hook_form7.Controller, {
|
|
9624
9719
|
control: control,
|
|
9625
|
-
name: "
|
|
9720
|
+
name: "cardExpiry",
|
|
9626
9721
|
render: function(param) {
|
|
9627
9722
|
var field = param.field;
|
|
9628
9723
|
var _errors_password;
|
|
9629
|
-
return /* @__PURE__ */
|
|
9724
|
+
return /* @__PURE__ */ import_react80.default.createElement(HawaTextField, {
|
|
9630
9725
|
width: "full",
|
|
9631
|
-
name: "
|
|
9632
|
-
placeholder: "
|
|
9633
|
-
type: "
|
|
9634
|
-
label: "
|
|
9726
|
+
name: "cardExpiry",
|
|
9727
|
+
placeholder: "MM / YY",
|
|
9728
|
+
type: "password",
|
|
9729
|
+
label: "Expiry Date",
|
|
9635
9730
|
helpertext: (_errors_password = errors.password) === null || _errors_password === void 0 ? void 0 : _errors_password.message
|
|
9636
9731
|
});
|
|
9637
9732
|
},
|
|
9638
9733
|
rules: {
|
|
9639
9734
|
required: "Password is rquired"
|
|
9640
9735
|
}
|
|
9641
|
-
}), /* @__PURE__ */
|
|
9736
|
+
}), /* @__PURE__ */ import_react80.default.createElement(import_react_hook_form7.Controller, {
|
|
9642
9737
|
control: control,
|
|
9643
9738
|
name: "cardName",
|
|
9644
9739
|
render: function(param) {
|
|
9645
9740
|
var field = param.field;
|
|
9646
9741
|
var _errors_password;
|
|
9647
|
-
return /* @__PURE__ */
|
|
9742
|
+
return /* @__PURE__ */ import_react80.default.createElement(HawaTextField, {
|
|
9648
9743
|
width: "full",
|
|
9649
|
-
name: "
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
label: "Expiry Date",
|
|
9744
|
+
name: "cardName",
|
|
9745
|
+
type: "text",
|
|
9746
|
+
label: "Name on card",
|
|
9653
9747
|
helpertext: (_errors_password = errors.password) === null || _errors_password === void 0 ? void 0 : _errors_password.message
|
|
9654
9748
|
});
|
|
9655
9749
|
},
|
|
9656
9750
|
rules: {
|
|
9657
|
-
required: "
|
|
9751
|
+
required: "Card holder name is rquired"
|
|
9658
9752
|
}
|
|
9659
|
-
})), /* @__PURE__ */
|
|
9753
|
+
})), /* @__PURE__ */ import_react80.default.createElement(CardFooter, null, /* @__PURE__ */ import_react80.default.createElement(Button, {
|
|
9660
9754
|
className: "w-full",
|
|
9661
9755
|
onClick: props.handlePayWithCreditCard
|
|
9662
9756
|
}, "Pay with Credit Card"))));
|
|
9663
9757
|
};
|
|
9664
9758
|
// src/blocks/Payment/ChargeWalletForm.tsx
|
|
9665
|
-
var
|
|
9759
|
+
var import_react81 = __toESM(require("react"));
|
|
9666
9760
|
var ChargeWalletForm = function(props) {
|
|
9667
|
-
var _ref = _sliced_to_array((0,
|
|
9668
|
-
return /* @__PURE__ */
|
|
9761
|
+
var _ref = _sliced_to_array((0, import_react81.useState)(0), 2), walletAmount = _ref[0], setWalletAmount = _ref[1];
|
|
9762
|
+
return /* @__PURE__ */ import_react81.default.createElement(Card, null, /* @__PURE__ */ import_react81.default.createElement(CardContent, {
|
|
9669
9763
|
headless: true
|
|
9670
|
-
}, /* @__PURE__ */
|
|
9764
|
+
}, /* @__PURE__ */ import_react81.default.createElement("div", {
|
|
9671
9765
|
className: "p-4 text-center"
|
|
9672
|
-
}, /* @__PURE__ */
|
|
9766
|
+
}, /* @__PURE__ */ import_react81.default.createElement("div", {
|
|
9673
9767
|
className: " text-5xl font-extrabold"
|
|
9674
|
-
}, Number(walletAmount).toLocaleString("en") || "0"), /* @__PURE__ */
|
|
9768
|
+
}, Number(walletAmount).toLocaleString("en") || "0"), /* @__PURE__ */ import_react81.default.createElement("div", {
|
|
9675
9769
|
className: "text-sm font-normal"
|
|
9676
|
-
}, props.currency || "SAR")), /* @__PURE__ */
|
|
9770
|
+
}, props.currency || "SAR")), /* @__PURE__ */ import_react81.default.createElement("div", {
|
|
9677
9771
|
className: "mb-2 flex w-full flex-col gap-4 text-center"
|
|
9678
|
-
}, /* @__PURE__ */
|
|
9772
|
+
}, /* @__PURE__ */ import_react81.default.createElement("div", {
|
|
9679
9773
|
className: "mb-2 flex w-full flex-row gap-4 text-center"
|
|
9680
|
-
}, /* @__PURE__ */
|
|
9774
|
+
}, /* @__PURE__ */ import_react81.default.createElement(Button, {
|
|
9681
9775
|
variant: "outline",
|
|
9682
9776
|
className: "h-full w-full"
|
|
9683
|
-
}, "10 SAR"), /* @__PURE__ */
|
|
9777
|
+
}, "10 SAR"), /* @__PURE__ */ import_react81.default.createElement(Button, {
|
|
9684
9778
|
variant: "outline",
|
|
9685
9779
|
className: "h-full w-full"
|
|
9686
|
-
}, "50 SAR"), /* @__PURE__ */
|
|
9780
|
+
}, "50 SAR"), /* @__PURE__ */ import_react81.default.createElement(Button, {
|
|
9687
9781
|
variant: "outline",
|
|
9688
9782
|
className: "h-full w-full"
|
|
9689
|
-
}, "100 SAR")), /* @__PURE__ */
|
|
9783
|
+
}, "100 SAR")), /* @__PURE__ */ import_react81.default.createElement(Input, {
|
|
9690
9784
|
placeholder: "Custom Amount",
|
|
9691
9785
|
type: "number",
|
|
9692
9786
|
name: "amount"
|
|
9693
|
-
})), /* @__PURE__ */
|
|
9787
|
+
})), /* @__PURE__ */ import_react81.default.createElement(Button, {
|
|
9694
9788
|
className: "mt-6 w-full"
|
|
9695
9789
|
}, props.texts.chargeWallet)));
|
|
9696
9790
|
};
|
|
9697
9791
|
// src/blocks/Payment/PayWithWallet.tsx
|
|
9698
|
-
var
|
|
9792
|
+
var import_react82 = __toESM(require("react"));
|
|
9699
9793
|
var PayWithWallet = function(props) {
|
|
9700
|
-
return /* @__PURE__ */
|
|
9794
|
+
return /* @__PURE__ */ import_react82.default.createElement(Card, null, /* @__PURE__ */ import_react82.default.createElement(CardContent, {
|
|
9701
9795
|
headless: true
|
|
9702
|
-
}, /* @__PURE__ */
|
|
9796
|
+
}, /* @__PURE__ */ import_react82.default.createElement("div", {
|
|
9703
9797
|
className: "text-center text-5xl font-extrabold"
|
|
9704
|
-
}, props.walletBalance || "0", /* @__PURE__ */
|
|
9798
|
+
}, props.walletBalance || "0", /* @__PURE__ */ import_react82.default.createElement("div", {
|
|
9705
9799
|
className: "text-sm font-normal"
|
|
9706
|
-
}, props.currency || "SAR")), /* @__PURE__ */
|
|
9800
|
+
}, props.currency || "SAR")), /* @__PURE__ */ import_react82.default.createElement(Button, {
|
|
9707
9801
|
className: "mt-6 w-full",
|
|
9708
9802
|
onClick: props.handlePayWithWallet
|
|
9709
9803
|
}, "Pay Now")));
|
|
9710
9804
|
};
|
|
9711
9805
|
// src/blocks/Payment/CheckoutForm.tsx
|
|
9712
|
-
var
|
|
9806
|
+
var import_react83 = __toESM(require("react"));
|
|
9713
9807
|
var import_react_hook_form8 = require("react-hook-form");
|
|
9714
9808
|
var CheckoutForm = function(props) {
|
|
9715
9809
|
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6, _props_texts7, _props_texts8, _props_texts9;
|
|
@@ -9730,9 +9824,9 @@ var CheckoutForm = function(props) {
|
|
|
9730
9824
|
}
|
|
9731
9825
|
};
|
|
9732
9826
|
var _field_value, _field_value1, _field_value2, _field_value3, _field_value4, _field_value5, _field_value6, _field_value7, _field_value8;
|
|
9733
|
-
return /* @__PURE__ */
|
|
9827
|
+
return /* @__PURE__ */ import_react83.default.createElement(Card, null, /* @__PURE__ */ import_react83.default.createElement(CardHeader, null, /* @__PURE__ */ import_react83.default.createElement(CardTitle, null, props.texts.orderDetails)), /* @__PURE__ */ import_react83.default.createElement(CardContent, null, /* @__PURE__ */ import_react83.default.createElement("div", null, /* @__PURE__ */ import_react83.default.createElement("div", {
|
|
9734
9828
|
className: "rounded border border-gray-300"
|
|
9735
|
-
}, /* @__PURE__ */
|
|
9829
|
+
}, /* @__PURE__ */ import_react83.default.createElement(HawaTable, {
|
|
9736
9830
|
pagination: false,
|
|
9737
9831
|
direction: isArabic ? "rtl" : "ltr",
|
|
9738
9832
|
columns: [
|
|
@@ -9752,9 +9846,9 @@ var CheckoutForm = function(props) {
|
|
|
9752
9846
|
borders: "inner",
|
|
9753
9847
|
rows: props.products,
|
|
9754
9848
|
bordersWidth: "1"
|
|
9755
|
-
})))), /* @__PURE__ */
|
|
9849
|
+
})))), /* @__PURE__ */ import_react83.default.createElement(CardHeader, null, /* @__PURE__ */ import_react83.default.createElement(CardTitle, null, props.texts.billingAddress)), /* @__PURE__ */ import_react83.default.createElement("form", {
|
|
9756
9850
|
onSubmit: handleSubmit(props.handlePayNow)
|
|
9757
|
-
}, /* @__PURE__ */
|
|
9851
|
+
}, /* @__PURE__ */ import_react83.default.createElement(CardContent, null, /* @__PURE__ */ import_react83.default.createElement("div", null, /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.FormProvider, _object_spread({}, methods), /* @__PURE__ */ import_react83.default.createElement("div", null, /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9758
9852
|
control: control,
|
|
9759
9853
|
name: "firstName",
|
|
9760
9854
|
rules: {
|
|
@@ -9763,7 +9857,7 @@ var CheckoutForm = function(props) {
|
|
|
9763
9857
|
render: function(param) {
|
|
9764
9858
|
var field = param.field;
|
|
9765
9859
|
var _props_texts, _errors_firstName;
|
|
9766
|
-
return /* @__PURE__ */
|
|
9860
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaTextField, _object_spread_props(_object_spread({
|
|
9767
9861
|
type: "text",
|
|
9768
9862
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.firstNameLabel) + " *",
|
|
9769
9863
|
helpertext: (_errors_firstName = errors.firstName) === null || _errors_firstName === void 0 ? void 0 : _errors_firstName.message
|
|
@@ -9771,11 +9865,11 @@ var CheckoutForm = function(props) {
|
|
|
9771
9865
|
value: (_field_value = field.value) !== null && _field_value !== void 0 ? _field_value : ""
|
|
9772
9866
|
}));
|
|
9773
9867
|
}
|
|
9774
|
-
}), /* @__PURE__ */
|
|
9868
|
+
}), /* @__PURE__ */ import_react83.default.createElement("div", {
|
|
9775
9869
|
style: {
|
|
9776
9870
|
width: 20
|
|
9777
9871
|
}
|
|
9778
|
-
}), /* @__PURE__ */
|
|
9872
|
+
}), /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9779
9873
|
control: control,
|
|
9780
9874
|
name: "lastName",
|
|
9781
9875
|
rules: {
|
|
@@ -9784,7 +9878,7 @@ var CheckoutForm = function(props) {
|
|
|
9784
9878
|
render: function(param) {
|
|
9785
9879
|
var field = param.field;
|
|
9786
9880
|
var _props_texts, _errors_lastName;
|
|
9787
|
-
return /* @__PURE__ */
|
|
9881
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaTextField, _object_spread_props(_object_spread({
|
|
9788
9882
|
width: "full",
|
|
9789
9883
|
type: "text",
|
|
9790
9884
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.lastNameLabel) + " *",
|
|
@@ -9793,13 +9887,13 @@ var CheckoutForm = function(props) {
|
|
|
9793
9887
|
value: (_field_value1 = field.value) !== null && _field_value1 !== void 0 ? _field_value1 : ""
|
|
9794
9888
|
}));
|
|
9795
9889
|
}
|
|
9796
|
-
})), /* @__PURE__ */
|
|
9890
|
+
})), /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9797
9891
|
control: control,
|
|
9798
9892
|
name: "email",
|
|
9799
9893
|
render: function(param) {
|
|
9800
9894
|
var field = param.field;
|
|
9801
9895
|
var _props_texts, _errors_email;
|
|
9802
|
-
return /* @__PURE__ */
|
|
9896
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaTextField, _object_spread_props(_object_spread({
|
|
9803
9897
|
width: "full",
|
|
9804
9898
|
type: "text",
|
|
9805
9899
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.emailLabel) + " *",
|
|
@@ -9815,9 +9909,9 @@ var CheckoutForm = function(props) {
|
|
|
9815
9909
|
message: (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.emailInvalidText
|
|
9816
9910
|
}
|
|
9817
9911
|
}
|
|
9818
|
-
}), /* @__PURE__ */
|
|
9912
|
+
}), /* @__PURE__ */ import_react83.default.createElement("div", {
|
|
9819
9913
|
className: "flex flex-col md:flex-row"
|
|
9820
|
-
}, /* @__PURE__ */
|
|
9914
|
+
}, /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9821
9915
|
control: control,
|
|
9822
9916
|
name: "streetAddress",
|
|
9823
9917
|
rules: {
|
|
@@ -9826,7 +9920,7 @@ var CheckoutForm = function(props) {
|
|
|
9826
9920
|
render: function(param) {
|
|
9827
9921
|
var field = param.field;
|
|
9828
9922
|
var _props_texts, _errors_streetAddress;
|
|
9829
|
-
return /* @__PURE__ */
|
|
9923
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaTextField, _object_spread_props(_object_spread({
|
|
9830
9924
|
width: "full",
|
|
9831
9925
|
type: "text",
|
|
9832
9926
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.streetAddressLabel) + " *",
|
|
@@ -9835,9 +9929,9 @@ var CheckoutForm = function(props) {
|
|
|
9835
9929
|
value: (_field_value3 = field.value) !== null && _field_value3 !== void 0 ? _field_value3 : ""
|
|
9836
9930
|
}));
|
|
9837
9931
|
}
|
|
9838
|
-
})), /* @__PURE__ */
|
|
9932
|
+
})), /* @__PURE__ */ import_react83.default.createElement("div", {
|
|
9839
9933
|
className: "flex flex-col md:flex-row"
|
|
9840
|
-
}, /* @__PURE__ */
|
|
9934
|
+
}, /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9841
9935
|
control: control,
|
|
9842
9936
|
name: "province",
|
|
9843
9937
|
rules: {
|
|
@@ -9846,7 +9940,7 @@ var CheckoutForm = function(props) {
|
|
|
9846
9940
|
render: function(param) {
|
|
9847
9941
|
var field = param.field;
|
|
9848
9942
|
var _props_texts, _errors_province;
|
|
9849
|
-
return /* @__PURE__ */
|
|
9943
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaTextField, _object_spread_props(_object_spread({
|
|
9850
9944
|
width: "full",
|
|
9851
9945
|
type: "text",
|
|
9852
9946
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.stateLabel) + " *",
|
|
@@ -9855,11 +9949,11 @@ var CheckoutForm = function(props) {
|
|
|
9855
9949
|
value: (_field_value4 = field.value) !== null && _field_value4 !== void 0 ? _field_value4 : ""
|
|
9856
9950
|
}));
|
|
9857
9951
|
}
|
|
9858
|
-
}), /* @__PURE__ */
|
|
9952
|
+
}), /* @__PURE__ */ import_react83.default.createElement("div", {
|
|
9859
9953
|
style: {
|
|
9860
9954
|
width: 20
|
|
9861
9955
|
}
|
|
9862
|
-
}), /* @__PURE__ */
|
|
9956
|
+
}), /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9863
9957
|
control: control,
|
|
9864
9958
|
name: "city",
|
|
9865
9959
|
rules: {
|
|
@@ -9868,7 +9962,7 @@ var CheckoutForm = function(props) {
|
|
|
9868
9962
|
render: function(param) {
|
|
9869
9963
|
var field = param.field;
|
|
9870
9964
|
var _props_texts, _errors_city;
|
|
9871
|
-
return /* @__PURE__ */
|
|
9965
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaTextField, _object_spread_props(_object_spread({
|
|
9872
9966
|
width: "full",
|
|
9873
9967
|
type: "text",
|
|
9874
9968
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.cityLabel) + " *",
|
|
@@ -9877,9 +9971,9 @@ var CheckoutForm = function(props) {
|
|
|
9877
9971
|
value: (_field_value5 = field.value) !== null && _field_value5 !== void 0 ? _field_value5 : ""
|
|
9878
9972
|
}));
|
|
9879
9973
|
}
|
|
9880
|
-
})), /* @__PURE__ */
|
|
9974
|
+
})), /* @__PURE__ */ import_react83.default.createElement("div", {
|
|
9881
9975
|
className: "flex flex-col md:flex-row"
|
|
9882
|
-
}, /* @__PURE__ */
|
|
9976
|
+
}, /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9883
9977
|
control: control,
|
|
9884
9978
|
name: "buildingNumber",
|
|
9885
9979
|
rules: {
|
|
@@ -9888,7 +9982,7 @@ var CheckoutForm = function(props) {
|
|
|
9888
9982
|
render: function(param) {
|
|
9889
9983
|
var field = param.field;
|
|
9890
9984
|
var _props_texts, _errors_buildingNumber;
|
|
9891
|
-
return /* @__PURE__ */
|
|
9985
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaTextField, _object_spread_props(_object_spread({
|
|
9892
9986
|
width: "full",
|
|
9893
9987
|
type: "text",
|
|
9894
9988
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.buildingNumberLabel) + " *",
|
|
@@ -9897,11 +9991,11 @@ var CheckoutForm = function(props) {
|
|
|
9897
9991
|
value: (_field_value6 = field.value) !== null && _field_value6 !== void 0 ? _field_value6 : ""
|
|
9898
9992
|
}));
|
|
9899
9993
|
}
|
|
9900
|
-
}), /* @__PURE__ */
|
|
9994
|
+
}), /* @__PURE__ */ import_react83.default.createElement("div", {
|
|
9901
9995
|
style: {
|
|
9902
9996
|
width: 20
|
|
9903
9997
|
}
|
|
9904
|
-
}), /* @__PURE__ */
|
|
9998
|
+
}), /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9905
9999
|
control: control,
|
|
9906
10000
|
name: "zipCode",
|
|
9907
10001
|
rules: {
|
|
@@ -9910,7 +10004,7 @@ var CheckoutForm = function(props) {
|
|
|
9910
10004
|
render: function(param) {
|
|
9911
10005
|
var field = param.field;
|
|
9912
10006
|
var _props_texts, _errors_zipCode;
|
|
9913
|
-
return /* @__PURE__ */
|
|
10007
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaTextField, _object_spread_props(_object_spread({
|
|
9914
10008
|
width: "full",
|
|
9915
10009
|
type: "number",
|
|
9916
10010
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.zipCodeLabel) + " *",
|
|
@@ -9919,9 +10013,9 @@ var CheckoutForm = function(props) {
|
|
|
9919
10013
|
value: (_field_value7 = field.value) !== null && _field_value7 !== void 0 ? _field_value7 : ""
|
|
9920
10014
|
}));
|
|
9921
10015
|
}
|
|
9922
|
-
})), /* @__PURE__ */
|
|
10016
|
+
})), /* @__PURE__ */ import_react83.default.createElement("div", {
|
|
9923
10017
|
className: "mb-3"
|
|
9924
|
-
}, /* @__PURE__ */
|
|
10018
|
+
}, /* @__PURE__ */ import_react83.default.createElement(import_react_hook_form8.Controller, {
|
|
9925
10019
|
control: control,
|
|
9926
10020
|
name: "country",
|
|
9927
10021
|
rules: {
|
|
@@ -9930,7 +10024,7 @@ var CheckoutForm = function(props) {
|
|
|
9930
10024
|
render: function(param) {
|
|
9931
10025
|
var field = param.field;
|
|
9932
10026
|
var _props_texts, _errors_country;
|
|
9933
|
-
return /* @__PURE__ */
|
|
10027
|
+
return /* @__PURE__ */ import_react83.default.createElement(HawaSelect, {
|
|
9934
10028
|
native: true,
|
|
9935
10029
|
label: ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.countryLabel) + " *",
|
|
9936
10030
|
helperText: (_errors_country = errors.country) === null || _errors_country === void 0 ? void 0 : _errors_country.message,
|
|
@@ -9942,73 +10036,73 @@ var CheckoutForm = function(props) {
|
|
|
9942
10036
|
return field.onChange(e.country_label);
|
|
9943
10037
|
},
|
|
9944
10038
|
value: (_field_value8 = field.value) !== null && _field_value8 !== void 0 ? _field_value8 : ""
|
|
9945
|
-
}, /* @__PURE__ */
|
|
9946
|
-
return /* @__PURE__ */
|
|
10039
|
+
}, /* @__PURE__ */ import_react83.default.createElement("option", null), props.countriesList.map(function(country, i) {
|
|
10040
|
+
return /* @__PURE__ */ import_react83.default.createElement("option", {
|
|
9947
10041
|
key: i
|
|
9948
10042
|
}, country);
|
|
9949
10043
|
}));
|
|
9950
10044
|
}
|
|
9951
|
-
}))))), /* @__PURE__ */
|
|
10045
|
+
}))))), /* @__PURE__ */ import_react83.default.createElement(CardFooter, null, /* @__PURE__ */ import_react83.default.createElement(Button, {
|
|
9952
10046
|
className: "w-full"
|
|
9953
10047
|
}, props.texts.payNow)), " "));
|
|
9954
10048
|
};
|
|
9955
10049
|
// src/blocks/Payment/Confirmation.tsx
|
|
9956
|
-
var
|
|
10050
|
+
var import_react84 = __toESM(require("react"));
|
|
9957
10051
|
var ConfirmationPage = function(props) {
|
|
9958
10052
|
var isArabic = props.lang === "ar";
|
|
9959
|
-
return /* @__PURE__ */
|
|
10053
|
+
return /* @__PURE__ */ import_react84.default.createElement(Card, null, /* @__PURE__ */ import_react84.default.createElement(CardContent, {
|
|
9960
10054
|
headless: true
|
|
9961
|
-
}, " ", /* @__PURE__ */
|
|
10055
|
+
}, " ", /* @__PURE__ */ import_react84.default.createElement("div", {
|
|
9962
10056
|
className: "py-5 text-center text-3xl font-bold dark:text-white"
|
|
9963
|
-
}, props.confirmationTitle), /* @__PURE__ */
|
|
10057
|
+
}, props.confirmationTitle), /* @__PURE__ */ import_react84.default.createElement("div", {
|
|
9964
10058
|
className: "py-5 dark:text-white"
|
|
9965
|
-
}, /* @__PURE__ */
|
|
10059
|
+
}, /* @__PURE__ */ import_react84.default.createElement("div", {
|
|
9966
10060
|
className: "mb-2 text-center"
|
|
9967
|
-
}, props.texts.successMessage, " ", /* @__PURE__ */
|
|
10061
|
+
}, props.texts.successMessage, " ", /* @__PURE__ */ import_react84.default.createElement("strong", null, props.userEmail)), /* @__PURE__ */ import_react84.default.createElement("div", {
|
|
9968
10062
|
className: "text-center"
|
|
9969
|
-
}, props.texts.yourOrderNumber), /* @__PURE__ */
|
|
10063
|
+
}, props.texts.yourOrderNumber), /* @__PURE__ */ import_react84.default.createElement("div", {
|
|
9970
10064
|
className: "text-center font-bold"
|
|
9971
|
-
}, props.orderNumber)), /* @__PURE__ */
|
|
10065
|
+
}, props.orderNumber)), /* @__PURE__ */ import_react84.default.createElement("div", {
|
|
9972
10066
|
className: "flex flex-col items-center justify-center gap-4 py-5 pt-0"
|
|
9973
|
-
}, /* @__PURE__ */
|
|
10067
|
+
}, /* @__PURE__ */ import_react84.default.createElement(Button, {
|
|
9974
10068
|
className: "w-full",
|
|
9975
10069
|
onClick: props.handlePrint
|
|
9976
|
-
}, props.texts.print), /* @__PURE__ */
|
|
10070
|
+
}, props.texts.print), /* @__PURE__ */ import_react84.default.createElement(Button, {
|
|
9977
10071
|
className: "w-full",
|
|
9978
10072
|
onClick: props.handleHistory
|
|
9979
|
-
}, props.texts.history), /* @__PURE__ */
|
|
10073
|
+
}, props.texts.history), /* @__PURE__ */ import_react84.default.createElement(Button, {
|
|
9980
10074
|
className: "w-full",
|
|
9981
10075
|
onClick: props.handleHome
|
|
9982
|
-
}, props.texts.homePage), /* @__PURE__ */
|
|
10076
|
+
}, props.texts.homePage), /* @__PURE__ */ import_react84.default.createElement("div", {
|
|
9983
10077
|
className: " text-center text-sm dark:text-white"
|
|
9984
|
-
}, props.texts.fasterPaymentNote), /* @__PURE__ */
|
|
10078
|
+
}, props.texts.fasterPaymentNote), /* @__PURE__ */ import_react84.default.createElement("a", {
|
|
9985
10079
|
className: "clickable-link text-xs",
|
|
9986
10080
|
onClick: props.handleRefundPolicyLink
|
|
9987
10081
|
}, props.texts.refundPolicy))));
|
|
9988
10082
|
};
|
|
9989
10083
|
// src/blocks/Pricing/PricingPlans.tsx
|
|
9990
|
-
var
|
|
10084
|
+
var import_react85 = __toESM(require("react"));
|
|
9991
10085
|
var PricingPlans = function(props) {
|
|
9992
|
-
return /* @__PURE__ */
|
|
10086
|
+
return /* @__PURE__ */ import_react85.default.createElement("div", null, /* @__PURE__ */ import_react85.default.createElement("div", {
|
|
9993
10087
|
className: "mb-2 flex w-full justify-between"
|
|
9994
|
-
}, /* @__PURE__ */
|
|
10088
|
+
}, /* @__PURE__ */ import_react85.default.createElement(HawaRadio, {
|
|
9995
10089
|
design: "tabs",
|
|
9996
10090
|
defaultValue: props.currentCycle,
|
|
9997
10091
|
options: props.billingCycles,
|
|
9998
10092
|
onChangeTab: function(e) {
|
|
9999
10093
|
return props.onCycleChange(e);
|
|
10000
10094
|
}
|
|
10001
|
-
}), /* @__PURE__ */
|
|
10095
|
+
}), /* @__PURE__ */ import_react85.default.createElement(HawaRadio, {
|
|
10002
10096
|
design: "tabs",
|
|
10003
10097
|
defaultValue: props.currentCurrency,
|
|
10004
10098
|
options: props.currencies,
|
|
10005
10099
|
onChangeTab: function(e) {
|
|
10006
10100
|
return props.onCurrencyChange(e);
|
|
10007
10101
|
}
|
|
10008
|
-
})), /* @__PURE__ */
|
|
10102
|
+
})), /* @__PURE__ */ import_react85.default.createElement("div", {
|
|
10009
10103
|
className: "flex flex-row justify-between"
|
|
10010
10104
|
}, props.plans.map(function(plan, index) {
|
|
10011
|
-
return /* @__PURE__ */
|
|
10105
|
+
return /* @__PURE__ */ import_react85.default.createElement(HawaPricingCard, _object_spread_props(_object_spread({
|
|
10012
10106
|
key: index,
|
|
10013
10107
|
onPlanClicked: function() {
|
|
10014
10108
|
return props.onPlanClicked(plan);
|
|
@@ -10022,26 +10116,26 @@ var PricingPlans = function(props) {
|
|
|
10022
10116
|
})));
|
|
10023
10117
|
};
|
|
10024
10118
|
// src/blocks/Pricing/ComparingPlans.tsx
|
|
10025
|
-
var
|
|
10119
|
+
var import_react86 = __toESM(require("react"));
|
|
10026
10120
|
var CheckMark = function() {
|
|
10027
|
-
return /* @__PURE__ */
|
|
10121
|
+
return /* @__PURE__ */ import_react86.default.createElement("svg", {
|
|
10028
10122
|
className: "h-5 w-5 text-green-500",
|
|
10029
10123
|
"aria-hidden": "true",
|
|
10030
10124
|
fill: "currentColor",
|
|
10031
10125
|
viewBox: "0 0 20 20"
|
|
10032
|
-
}, /* @__PURE__ */
|
|
10126
|
+
}, /* @__PURE__ */ import_react86.default.createElement("path", {
|
|
10033
10127
|
fillRule: "evenodd",
|
|
10034
10128
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
10035
10129
|
clipRule: "evenodd"
|
|
10036
10130
|
}));
|
|
10037
10131
|
};
|
|
10038
10132
|
var UncheckMark = function() {
|
|
10039
|
-
return /* @__PURE__ */
|
|
10133
|
+
return /* @__PURE__ */ import_react86.default.createElement("svg", {
|
|
10040
10134
|
className: "h-5 w-5 text-red-500",
|
|
10041
10135
|
"aria-hidden": "true",
|
|
10042
10136
|
fill: "currentColor",
|
|
10043
10137
|
viewBox: "0 0 20 20"
|
|
10044
|
-
}, /* @__PURE__ */
|
|
10138
|
+
}, /* @__PURE__ */ import_react86.default.createElement("path", {
|
|
10045
10139
|
fillRule: "evenodd",
|
|
10046
10140
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
10047
10141
|
clipRule: "evenodd"
|
|
@@ -10049,74 +10143,74 @@ var UncheckMark = function() {
|
|
|
10049
10143
|
};
|
|
10050
10144
|
var ComparingPlans = function(props) {
|
|
10051
10145
|
var _props_plans;
|
|
10052
|
-
var _ref = _sliced_to_array((0,
|
|
10053
|
-
var _ref1 = _sliced_to_array((0,
|
|
10054
|
-
return /* @__PURE__ */
|
|
10146
|
+
var _ref = _sliced_to_array((0, import_react86.useState)("sar"), 2), currentCurrency = _ref[0], setCurrentCurrency = _ref[1];
|
|
10147
|
+
var _ref1 = _sliced_to_array((0, import_react86.useState)("month"), 2), currentCycle = _ref1[0], setCurrentCycle = _ref1[1];
|
|
10148
|
+
return /* @__PURE__ */ import_react86.default.createElement("div", {
|
|
10055
10149
|
id: "detailed-pricing",
|
|
10056
10150
|
className: "w-full overflow-x-auto"
|
|
10057
|
-
}, /* @__PURE__ */
|
|
10151
|
+
}, /* @__PURE__ */ import_react86.default.createElement("div", {
|
|
10058
10152
|
className: "mb-2 flex w-full justify-between"
|
|
10059
|
-
}, /* @__PURE__ */
|
|
10153
|
+
}, /* @__PURE__ */ import_react86.default.createElement(HawaRadio, {
|
|
10060
10154
|
design: "tabs",
|
|
10061
10155
|
defaultValue: currentCycle,
|
|
10062
10156
|
options: props.billingCycles,
|
|
10063
10157
|
onChangeTab: function(e) {
|
|
10064
10158
|
return props.onCycleChange(e);
|
|
10065
10159
|
}
|
|
10066
|
-
}), /* @__PURE__ */
|
|
10160
|
+
}), /* @__PURE__ */ import_react86.default.createElement(HawaRadio, {
|
|
10067
10161
|
design: "tabs",
|
|
10068
10162
|
defaultValue: currentCurrency,
|
|
10069
10163
|
options: props.currencies,
|
|
10070
10164
|
onChangeTab: function(e) {
|
|
10071
10165
|
return props.onCurrencyChange(e);
|
|
10072
10166
|
}
|
|
10073
|
-
})), /* @__PURE__ */
|
|
10167
|
+
})), /* @__PURE__ */ import_react86.default.createElement("div", {
|
|
10074
10168
|
className: " overflow-hidden rounded"
|
|
10075
|
-
}, /* @__PURE__ */
|
|
10169
|
+
}, /* @__PURE__ */ import_react86.default.createElement("div", {
|
|
10076
10170
|
className: "grid grid-cols-4 gap-x-2 border-b border-t border-gray-200 bg-gray-100 p-4 text-sm font-medium text-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:text-white"
|
|
10077
|
-
}, /* @__PURE__ */
|
|
10171
|
+
}, /* @__PURE__ */ import_react86.default.createElement("div", {
|
|
10078
10172
|
className: "flex items-center"
|
|
10079
10173
|
}), props.plans.map(function(plan) {
|
|
10080
|
-
return /* @__PURE__ */
|
|
10174
|
+
return /* @__PURE__ */ import_react86.default.createElement("div", null, /* @__PURE__ */ import_react86.default.createElement("h5", {
|
|
10081
10175
|
className: "text-md 0 font-bold text-gray-500 dark:text-gray-400"
|
|
10082
|
-
}, plan.texts.title), /* @__PURE__ */
|
|
10176
|
+
}, plan.texts.title), /* @__PURE__ */ import_react86.default.createElement("div", {
|
|
10083
10177
|
className: " flex items-baseline text-gray-900 dark:text-white"
|
|
10084
|
-
}, /* @__PURE__ */
|
|
10178
|
+
}, /* @__PURE__ */ import_react86.default.createElement(import_react86.default.Fragment, null, /* @__PURE__ */ import_react86.default.createElement("span", {
|
|
10085
10179
|
className: "text-5xl font-extrabold tracking-tight"
|
|
10086
|
-
}, plan.price), /* @__PURE__ */
|
|
10180
|
+
}, plan.price), /* @__PURE__ */ import_react86.default.createElement("span", {
|
|
10087
10181
|
className: "mx-1 text-sm font-semibold"
|
|
10088
|
-
}, plan.texts.currencyText)), /* @__PURE__ */
|
|
10182
|
+
}, plan.texts.currencyText)), /* @__PURE__ */ import_react86.default.createElement("span", {
|
|
10089
10183
|
className: "ml-1 text-xl font-normal text-gray-500 dark:text-gray-400"
|
|
10090
|
-
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */
|
|
10184
|
+
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */ import_react86.default.createElement("h5", {
|
|
10091
10185
|
className: "text-md font-normal text-gray-500 dark:text-gray-400"
|
|
10092
10186
|
}, plan.texts.subtitle));
|
|
10093
10187
|
})), (_props_plans = props.plans) === null || _props_plans === void 0 ? void 0 : _props_plans.map(function(plan) {
|
|
10094
10188
|
return plan.features.map(function(feature) {
|
|
10095
|
-
return /* @__PURE__ */
|
|
10189
|
+
return /* @__PURE__ */ import_react86.default.createElement("div", {
|
|
10096
10190
|
className: "grid grid-cols-4 gap-x-16 border-b border-gray-200 px-4 py-5 text-sm text-gray-700 dark:border-gray-700"
|
|
10097
|
-
}, /* @__PURE__ */
|
|
10191
|
+
}, /* @__PURE__ */ import_react86.default.createElement("div", {
|
|
10098
10192
|
className: " flex flex-row items-center gap-2 text-gray-500 dark:text-gray-400"
|
|
10099
|
-
}, feature.text, feature.description && /* @__PURE__ */
|
|
10193
|
+
}, feature.text, feature.description && /* @__PURE__ */ import_react86.default.createElement(Tooltip, {
|
|
10100
10194
|
side: "right",
|
|
10101
10195
|
content: feature.description
|
|
10102
|
-
}, /* @__PURE__ */
|
|
10196
|
+
}, /* @__PURE__ */ import_react86.default.createElement("svg", {
|
|
10103
10197
|
stroke: "currentColor",
|
|
10104
10198
|
fill: "currentColor",
|
|
10105
10199
|
strokeWidth: "0",
|
|
10106
10200
|
viewBox: "0 0 16 16",
|
|
10107
10201
|
height: "1em",
|
|
10108
10202
|
width: "1em"
|
|
10109
|
-
}, /* @__PURE__ */
|
|
10203
|
+
}, /* @__PURE__ */ import_react86.default.createElement("path", {
|
|
10110
10204
|
d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"
|
|
10111
|
-
})))), /* @__PURE__ */
|
|
10205
|
+
})))), /* @__PURE__ */ import_react86.default.createElement(UncheckMark, null), /* @__PURE__ */ import_react86.default.createElement(CheckMark, null), /* @__PURE__ */ import_react86.default.createElement(UncheckMark, null));
|
|
10112
10206
|
});
|
|
10113
10207
|
})));
|
|
10114
10208
|
};
|
|
10115
10209
|
// src/blocks/Pricing/HorizontalPricing.tsx
|
|
10116
|
-
var
|
|
10210
|
+
var import_react87 = __toESM(require("react"));
|
|
10117
10211
|
var import_clsx33 = __toESM(require("clsx"));
|
|
10118
10212
|
var HorizontalPricing = function(props) {
|
|
10119
|
-
var _ref = _sliced_to_array((0,
|
|
10213
|
+
var _ref = _sliced_to_array((0, import_react87.useState)(null), 2), selectedCard = _ref[0], setSelectedCard = _ref[1];
|
|
10120
10214
|
var data = [
|
|
10121
10215
|
{
|
|
10122
10216
|
title: "basic",
|
|
@@ -10134,155 +10228,155 @@ var HorizontalPricing = function(props) {
|
|
|
10134
10228
|
cycle: "/mo"
|
|
10135
10229
|
}
|
|
10136
10230
|
];
|
|
10137
|
-
return /* @__PURE__ */
|
|
10231
|
+
return /* @__PURE__ */ import_react87.default.createElement("div", {
|
|
10138
10232
|
className: "z-10 w-full max-w-screen-sm"
|
|
10139
|
-
}, /* @__PURE__ */
|
|
10233
|
+
}, /* @__PURE__ */ import_react87.default.createElement("div", {
|
|
10140
10234
|
className: "max-w-2xl "
|
|
10141
|
-
}, /* @__PURE__ */
|
|
10235
|
+
}, /* @__PURE__ */ import_react87.default.createElement("div", {
|
|
10142
10236
|
className: "flex flex-row justify-between"
|
|
10143
|
-
}, /* @__PURE__ */
|
|
10237
|
+
}, /* @__PURE__ */ import_react87.default.createElement(HawaRadio, {
|
|
10144
10238
|
design: "tabs",
|
|
10145
10239
|
options: props.currencies,
|
|
10146
10240
|
defaultValue: props.currentCurrency
|
|
10147
|
-
}), /* @__PURE__ */
|
|
10241
|
+
}), /* @__PURE__ */ import_react87.default.createElement(HawaRadio, {
|
|
10148
10242
|
design: "tabs",
|
|
10149
10243
|
options: props.billingCycles,
|
|
10150
10244
|
defaultValue: props.currentCycle
|
|
10151
10245
|
})), data.map(function(d) {
|
|
10152
|
-
return /* @__PURE__ */
|
|
10246
|
+
return /* @__PURE__ */ import_react87.default.createElement("label", {
|
|
10153
10247
|
htmlFor: d.title,
|
|
10154
10248
|
className: "",
|
|
10155
10249
|
onClick: function() {
|
|
10156
10250
|
return setSelectedCard(d.title);
|
|
10157
10251
|
}
|
|
10158
|
-
}, /* @__PURE__ */
|
|
10252
|
+
}, /* @__PURE__ */ import_react87.default.createElement("input", {
|
|
10159
10253
|
type: "radio",
|
|
10160
10254
|
name: "radio",
|
|
10161
10255
|
id: d.title,
|
|
10162
10256
|
className: "peer appearance-none"
|
|
10163
|
-
}), /* @__PURE__ */
|
|
10257
|
+
}), /* @__PURE__ */ import_react87.default.createElement("div", {
|
|
10164
10258
|
className: (0, import_clsx33.default)(selectedCard === d.title ? "peer-checked:border-blue-500" : "", "peer flex cursor-pointer items-center justify-between rounded-xl border bg-background px-5 py-4 shadow dark:text-white peer-checked:[&_.active]:block peer-checked:[&_.default]:hidden")
|
|
10165
|
-
}, /* @__PURE__ */
|
|
10259
|
+
}, /* @__PURE__ */ import_react87.default.createElement("div", {
|
|
10166
10260
|
className: "peer flex items-center gap-4"
|
|
10167
|
-
}, /* @__PURE__ */
|
|
10261
|
+
}, /* @__PURE__ */ import_react87.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react87.default.createElement(CardText, {
|
|
10168
10262
|
title: "Enterprise",
|
|
10169
10263
|
subtitle: "For startups and new businesses"
|
|
10170
|
-
})), /* @__PURE__ */
|
|
10264
|
+
})), /* @__PURE__ */ import_react87.default.createElement(CardPrice, {
|
|
10171
10265
|
amount: d.price,
|
|
10172
10266
|
cycle: d.cycle
|
|
10173
10267
|
})));
|
|
10174
10268
|
})));
|
|
10175
10269
|
};
|
|
10176
10270
|
var CheckIcons = function() {
|
|
10177
|
-
return /* @__PURE__ */
|
|
10271
|
+
return /* @__PURE__ */ import_react87.default.createElement(import_react87.default.Fragment, null, /* @__PURE__ */ import_react87.default.createElement("svg", {
|
|
10178
10272
|
fill: "none",
|
|
10179
10273
|
viewBox: "0 0 24 24",
|
|
10180
10274
|
strokeWidth: "1.5",
|
|
10181
10275
|
stroke: "currentColor",
|
|
10182
10276
|
className: "default h-8 w-8 text-neutral-500"
|
|
10183
|
-
}, /* @__PURE__ */
|
|
10277
|
+
}, /* @__PURE__ */ import_react87.default.createElement("path", {
|
|
10184
10278
|
strokeLinecap: "round",
|
|
10185
10279
|
strokeLinejoin: "round",
|
|
10186
10280
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
10187
|
-
})), /* @__PURE__ */
|
|
10281
|
+
})), /* @__PURE__ */ import_react87.default.createElement("svg", {
|
|
10188
10282
|
viewBox: "0 0 24 24",
|
|
10189
10283
|
fill: "currentColor",
|
|
10190
10284
|
className: "active hidden h-8 w-8 text-blue-500"
|
|
10191
|
-
}, /* @__PURE__ */
|
|
10285
|
+
}, /* @__PURE__ */ import_react87.default.createElement("path", {
|
|
10192
10286
|
fillRule: "evenodd",
|
|
10193
10287
|
clipRule: "evenodd",
|
|
10194
10288
|
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z"
|
|
10195
10289
|
})));
|
|
10196
10290
|
};
|
|
10197
10291
|
var CardText = function(props) {
|
|
10198
|
-
return /* @__PURE__ */
|
|
10292
|
+
return /* @__PURE__ */ import_react87.default.createElement("div", {
|
|
10199
10293
|
className: "peer flex flex-col items-start "
|
|
10200
|
-
}, /* @__PURE__ */
|
|
10294
|
+
}, /* @__PURE__ */ import_react87.default.createElement("h2", {
|
|
10201
10295
|
className: "font-medium text-neutral-700 dark:text-gray-100 sm:text-xl"
|
|
10202
|
-
}, props.title), /* @__PURE__ */
|
|
10296
|
+
}, props.title), /* @__PURE__ */ import_react87.default.createElement("p", {
|
|
10203
10297
|
className: "text-sm text-neutral-500 dark:text-gray-300"
|
|
10204
10298
|
}, props.subtitle, " "));
|
|
10205
10299
|
};
|
|
10206
10300
|
var CardPrice = function(props) {
|
|
10207
|
-
return /* @__PURE__ */
|
|
10301
|
+
return /* @__PURE__ */ import_react87.default.createElement("h2", {
|
|
10208
10302
|
className: "peer text-xl font-semibold text-neutral-900 dark:text-white sm:text-2xl"
|
|
10209
|
-
}, props.amount, /* @__PURE__ */
|
|
10303
|
+
}, props.amount, /* @__PURE__ */ import_react87.default.createElement("span", {
|
|
10210
10304
|
className: "text-base font-medium text-neutral-400"
|
|
10211
10305
|
}, props.cycle));
|
|
10212
10306
|
};
|
|
10213
10307
|
// src/blocks/Referral/ReferralAccount.tsx
|
|
10214
|
-
var
|
|
10308
|
+
var import_react88 = __toESM(require("react"));
|
|
10215
10309
|
var ReferralAccount = function(param) {
|
|
10216
10310
|
var referralLink = param.referralLink, referralCode = param.referralCode;
|
|
10217
|
-
return /* @__PURE__ */
|
|
10311
|
+
return /* @__PURE__ */ import_react88.default.createElement(Card, null, /* @__PURE__ */ import_react88.default.createElement(CardContent, {
|
|
10218
10312
|
headless: true
|
|
10219
|
-
}, /* @__PURE__ */
|
|
10313
|
+
}, /* @__PURE__ */ import_react88.default.createElement("div", {
|
|
10220
10314
|
className: "my-2 mt-0"
|
|
10221
|
-
}, /* @__PURE__ */
|
|
10315
|
+
}, /* @__PURE__ */ import_react88.default.createElement("div", {
|
|
10222
10316
|
className: "mb-1"
|
|
10223
|
-
}, "Referral Code"), /* @__PURE__ */
|
|
10317
|
+
}, "Referral Code"), /* @__PURE__ */ import_react88.default.createElement("div", {
|
|
10224
10318
|
className: "flex flex-row items-center justify-between rounded border bg-background"
|
|
10225
|
-
}, /* @__PURE__ */
|
|
10319
|
+
}, /* @__PURE__ */ import_react88.default.createElement("span", {
|
|
10226
10320
|
className: "ml-3 font-bold"
|
|
10227
|
-
}, referralCode), /* @__PURE__ */
|
|
10321
|
+
}, referralCode), /* @__PURE__ */ import_react88.default.createElement(Button, {
|
|
10228
10322
|
onClick: function() {
|
|
10229
10323
|
return navigator.clipboard.writeText(referralCode);
|
|
10230
10324
|
}
|
|
10231
|
-
}, /* @__PURE__ */
|
|
10325
|
+
}, /* @__PURE__ */ import_react88.default.createElement("span", {
|
|
10232
10326
|
className: "bg-red flex items-center justify-center"
|
|
10233
|
-
}, /* @__PURE__ */
|
|
10327
|
+
}, /* @__PURE__ */ import_react88.default.createElement("svg", {
|
|
10234
10328
|
stroke: "currentColor",
|
|
10235
10329
|
fill: "currentColor",
|
|
10236
10330
|
strokeWidth: "0",
|
|
10237
10331
|
viewBox: "0 0 512 512",
|
|
10238
10332
|
height: "1em",
|
|
10239
10333
|
width: "1em"
|
|
10240
|
-
}, /* @__PURE__ */
|
|
10334
|
+
}, /* @__PURE__ */ import_react88.default.createElement("path", {
|
|
10241
10335
|
d: "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"
|
|
10242
|
-
})), " ")))), /* @__PURE__ */
|
|
10336
|
+
})), " ")))), /* @__PURE__ */ import_react88.default.createElement("div", {
|
|
10243
10337
|
className: "my-2 mt-0"
|
|
10244
|
-
}, /* @__PURE__ */
|
|
10338
|
+
}, /* @__PURE__ */ import_react88.default.createElement("div", {
|
|
10245
10339
|
className: "mb-1"
|
|
10246
|
-
}, "Referral Link"), /* @__PURE__ */
|
|
10340
|
+
}, "Referral Link"), /* @__PURE__ */ import_react88.default.createElement("div", {
|
|
10247
10341
|
className: "flex flex-row items-center justify-between rounded border bg-background"
|
|
10248
|
-
}, /* @__PURE__ */
|
|
10342
|
+
}, /* @__PURE__ */ import_react88.default.createElement("span", {
|
|
10249
10343
|
className: "ml-3 font-bold"
|
|
10250
|
-
}, referralLink), /* @__PURE__ */
|
|
10344
|
+
}, referralLink), /* @__PURE__ */ import_react88.default.createElement(Button, {
|
|
10251
10345
|
onClick: function() {
|
|
10252
10346
|
return navigator.clipboard.writeText(referralLink);
|
|
10253
10347
|
}
|
|
10254
|
-
}, /* @__PURE__ */
|
|
10348
|
+
}, /* @__PURE__ */ import_react88.default.createElement("span", {
|
|
10255
10349
|
className: "bg-red flex items-center justify-center"
|
|
10256
|
-
}, /* @__PURE__ */
|
|
10350
|
+
}, /* @__PURE__ */ import_react88.default.createElement("svg", {
|
|
10257
10351
|
stroke: "currentColor",
|
|
10258
10352
|
fill: "currentColor",
|
|
10259
10353
|
strokeWidth: "0",
|
|
10260
10354
|
viewBox: "0 0 512 512",
|
|
10261
10355
|
height: "1em",
|
|
10262
10356
|
width: "1em"
|
|
10263
|
-
}, /* @__PURE__ */
|
|
10357
|
+
}, /* @__PURE__ */ import_react88.default.createElement("path", {
|
|
10264
10358
|
d: "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"
|
|
10265
10359
|
})), " "))))));
|
|
10266
10360
|
};
|
|
10267
10361
|
// src/blocks/Referral/ReferralSettlement.tsx
|
|
10268
|
-
var
|
|
10362
|
+
var import_react89 = __toESM(require("react"));
|
|
10269
10363
|
var import_react_hook_form9 = require("react-hook-form");
|
|
10270
10364
|
var ReferralSettlement = function(param) {
|
|
10271
10365
|
var referralLink = param.referralLink, referralCode = param.referralCode, withdrawError = param.withdrawError;
|
|
10272
10366
|
var methods = (0, import_react_hook_form9.useForm)();
|
|
10273
10367
|
var errors = methods.formState.errors, handleSubmit = methods.handleSubmit, control = methods.control;
|
|
10274
|
-
return /* @__PURE__ */
|
|
10368
|
+
return /* @__PURE__ */ import_react89.default.createElement(Card, null, /* @__PURE__ */ import_react89.default.createElement(CardContent, {
|
|
10275
10369
|
headless: true
|
|
10276
|
-
}, /* @__PURE__ */
|
|
10370
|
+
}, /* @__PURE__ */ import_react89.default.createElement("div", null, /* @__PURE__ */ import_react89.default.createElement(import_react_hook_form9.FormProvider, _object_spread({}, methods), /* @__PURE__ */ import_react89.default.createElement(HawaTextField, {
|
|
10277
10371
|
label: "IBAN"
|
|
10278
|
-
}), /* @__PURE__ */
|
|
10372
|
+
}), /* @__PURE__ */ import_react89.default.createElement(HawaTextField, {
|
|
10279
10373
|
label: "Holder Name"
|
|
10280
|
-
}), /* @__PURE__ */
|
|
10374
|
+
}), /* @__PURE__ */ import_react89.default.createElement(import_react_hook_form9.Controller, {
|
|
10281
10375
|
control: control,
|
|
10282
10376
|
name: "bank",
|
|
10283
10377
|
render: function(param) {
|
|
10284
10378
|
var field = param.field;
|
|
10285
|
-
return /* @__PURE__ */
|
|
10379
|
+
return /* @__PURE__ */ import_react89.default.createElement(HawaSelect, _object_spread_props(_object_spread({
|
|
10286
10380
|
label: "Bank",
|
|
10287
10381
|
isCreatable: false,
|
|
10288
10382
|
isMulti: false,
|
|
@@ -10311,47 +10405,47 @@ var ReferralSettlement = function(param) {
|
|
|
10311
10405
|
}
|
|
10312
10406
|
}));
|
|
10313
10407
|
}
|
|
10314
|
-
}))), /* @__PURE__ */
|
|
10408
|
+
}))), /* @__PURE__ */ import_react89.default.createElement("div", null, /* @__PURE__ */ import_react89.default.createElement(Button, {
|
|
10315
10409
|
className: "mt-6 w-full"
|
|
10316
|
-
}, "Add Bank Account")), withdrawError && /* @__PURE__ */
|
|
10410
|
+
}, "Add Bank Account")), withdrawError && /* @__PURE__ */ import_react89.default.createElement("div", null, /* @__PURE__ */ import_react89.default.createElement(HawaAlert, {
|
|
10317
10411
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10318
10412
|
severity: "warning"
|
|
10319
|
-
})), /* @__PURE__ */
|
|
10413
|
+
})), /* @__PURE__ */ import_react89.default.createElement("div", {
|
|
10320
10414
|
className: "mt-3"
|
|
10321
|
-
}, /* @__PURE__ */
|
|
10415
|
+
}, /* @__PURE__ */ import_react89.default.createElement("div", {
|
|
10322
10416
|
className: "mb-1"
|
|
10323
|
-
}, "Settlement Accounts"), /* @__PURE__ */
|
|
10417
|
+
}, "Settlement Accounts"), /* @__PURE__ */ import_react89.default.createElement("div", {
|
|
10324
10418
|
className: "rounded"
|
|
10325
|
-
}, /* @__PURE__ */
|
|
10419
|
+
}, /* @__PURE__ */ import_react89.default.createElement(SettlementAccountCard, {
|
|
10326
10420
|
bank: "Al Inma Bank",
|
|
10327
10421
|
iban: "SA10228094028098329119",
|
|
10328
10422
|
accountHolder: "Zakher Masri",
|
|
10329
10423
|
default: true
|
|
10330
|
-
}), /* @__PURE__ */
|
|
10424
|
+
}), /* @__PURE__ */ import_react89.default.createElement(SettlementAccountCard, {
|
|
10331
10425
|
bank: "Al Rajihi Bank",
|
|
10332
10426
|
iban: "SA10228094028098329119",
|
|
10333
10427
|
accountHolder: "Zakher Masri"
|
|
10334
|
-
}), /* @__PURE__ */
|
|
10428
|
+
}), /* @__PURE__ */ import_react89.default.createElement(SettlementAccountCard, {
|
|
10335
10429
|
bank: "Al Inma Bank",
|
|
10336
10430
|
iban: "SA10228094028098329119",
|
|
10337
10431
|
accountHolder: "Zakher Masri"
|
|
10338
10432
|
})))));
|
|
10339
10433
|
};
|
|
10340
10434
|
var SettlementAccountCard = function(props) {
|
|
10341
|
-
return /* @__PURE__ */
|
|
10435
|
+
return /* @__PURE__ */ import_react89.default.createElement("div", {
|
|
10342
10436
|
className: "mb-3 flex flex-row items-center justify-between rounded border bg-background p-3"
|
|
10343
|
-
}, /* @__PURE__ */
|
|
10437
|
+
}, /* @__PURE__ */ import_react89.default.createElement("div", {
|
|
10344
10438
|
className: "flex flex-col justify-between"
|
|
10345
|
-
}, /* @__PURE__ */
|
|
10439
|
+
}, /* @__PURE__ */ import_react89.default.createElement("div", {
|
|
10346
10440
|
className: "text-xs"
|
|
10347
|
-
}, props.bank), /* @__PURE__ */
|
|
10441
|
+
}, props.bank), /* @__PURE__ */ import_react89.default.createElement("div", null, props.accountHolder), /* @__PURE__ */ import_react89.default.createElement("div", {
|
|
10348
10442
|
className: "text-xs"
|
|
10349
|
-
}, props.iban)), /* @__PURE__ */
|
|
10443
|
+
}, props.iban)), /* @__PURE__ */ import_react89.default.createElement("div", {
|
|
10350
10444
|
className: "flex flex-row items-center justify-center gap-2"
|
|
10351
|
-
}, props.default && /* @__PURE__ */
|
|
10445
|
+
}, props.default && /* @__PURE__ */ import_react89.default.createElement(HawaChip, {
|
|
10352
10446
|
label: "Default",
|
|
10353
10447
|
size: "small"
|
|
10354
|
-
}), /* @__PURE__ */
|
|
10448
|
+
}), /* @__PURE__ */ import_react89.default.createElement(HawaMenu, {
|
|
10355
10449
|
size: "small",
|
|
10356
10450
|
menuItems: [
|
|
10357
10451
|
[
|
|
@@ -10367,10 +10461,10 @@ var SettlementAccountCard = function(props) {
|
|
|
10367
10461
|
}
|
|
10368
10462
|
]
|
|
10369
10463
|
]
|
|
10370
|
-
}, /* @__PURE__ */
|
|
10464
|
+
}, /* @__PURE__ */ import_react89.default.createElement(Button, {
|
|
10371
10465
|
variant: "outline",
|
|
10372
10466
|
size: "icon"
|
|
10373
|
-
}, /* @__PURE__ */
|
|
10467
|
+
}, /* @__PURE__ */ import_react89.default.createElement("svg", {
|
|
10374
10468
|
"aria-label": "Vertical Three Dots Menu Icon",
|
|
10375
10469
|
className: "rotate-90",
|
|
10376
10470
|
stroke: "currentColor",
|
|
@@ -10379,126 +10473,126 @@ var SettlementAccountCard = function(props) {
|
|
|
10379
10473
|
viewBox: "0 0 16 16",
|
|
10380
10474
|
height: "1em",
|
|
10381
10475
|
width: "1em"
|
|
10382
|
-
}, /* @__PURE__ */
|
|
10476
|
+
}, /* @__PURE__ */ import_react89.default.createElement("path", {
|
|
10383
10477
|
d: "M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"
|
|
10384
10478
|
}))))));
|
|
10385
10479
|
};
|
|
10386
10480
|
// src/blocks/Referral/ReferralStats.tsx
|
|
10387
|
-
var
|
|
10481
|
+
var import_react90 = __toESM(require("react"));
|
|
10388
10482
|
var ReferralStats = function(param) {
|
|
10389
10483
|
var referralLink = param.referralLink, referralCode = param.referralCode, withdrawError = param.withdrawError;
|
|
10390
|
-
return /* @__PURE__ */
|
|
10484
|
+
return /* @__PURE__ */ import_react90.default.createElement(Card, null, /* @__PURE__ */ import_react90.default.createElement(CardContent, {
|
|
10391
10485
|
headless: true
|
|
10392
|
-
}, /* @__PURE__ */
|
|
10486
|
+
}, /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10393
10487
|
className: "mb-1"
|
|
10394
|
-
}, "Stats"), /* @__PURE__ */
|
|
10488
|
+
}, "Stats"), /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10395
10489
|
className: "justi flex flex-row gap-1"
|
|
10396
|
-
}, /* @__PURE__ */
|
|
10490
|
+
}, /* @__PURE__ */ import_react90.default.createElement(NumberCard, {
|
|
10397
10491
|
title: "Clicks",
|
|
10398
10492
|
number: 22
|
|
10399
|
-
}), /* @__PURE__ */
|
|
10493
|
+
}), /* @__PURE__ */ import_react90.default.createElement(NumberCard, {
|
|
10400
10494
|
title: "Sign-ups",
|
|
10401
10495
|
number: 32
|
|
10402
|
-
}), /* @__PURE__ */
|
|
10496
|
+
}), /* @__PURE__ */ import_react90.default.createElement(NumberCard, {
|
|
10403
10497
|
title: "Commission",
|
|
10404
10498
|
number: "213.22 SAR"
|
|
10405
|
-
})), /* @__PURE__ */
|
|
10499
|
+
})), /* @__PURE__ */ import_react90.default.createElement(Button, {
|
|
10406
10500
|
className: "mt-6 w-full"
|
|
10407
|
-
}, "Withdraw Money"), withdrawError && /* @__PURE__ */
|
|
10501
|
+
}, "Withdraw Money"), withdrawError && /* @__PURE__ */ import_react90.default.createElement("div", null, /* @__PURE__ */ import_react90.default.createElement(HawaAlert, {
|
|
10408
10502
|
text: "Sorry can't withdraw the money at the moment. Please try again in 2022/11/20",
|
|
10409
10503
|
severity: "warning"
|
|
10410
|
-
})), /* @__PURE__ */
|
|
10504
|
+
})), /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10411
10505
|
className: "mt-3"
|
|
10412
|
-
}, /* @__PURE__ */
|
|
10506
|
+
}, /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10413
10507
|
className: "mb-1"
|
|
10414
|
-
}, "Sign ups"), /* @__PURE__ */
|
|
10508
|
+
}, "Sign ups"), /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10415
10509
|
className: "rounded"
|
|
10416
|
-
}, /* @__PURE__ */
|
|
10510
|
+
}, /* @__PURE__ */ import_react90.default.createElement(ReferralSignUpCard, {
|
|
10417
10511
|
date: "2020/10/11 @ 9:45 pm",
|
|
10418
10512
|
email: "zakher@sikka.io",
|
|
10419
10513
|
amount: "3.4 SAR / Month"
|
|
10420
|
-
}), /* @__PURE__ */
|
|
10514
|
+
}), /* @__PURE__ */ import_react90.default.createElement(ReferralSignUpCard, {
|
|
10421
10515
|
date: "2022/10/11 @ 9:45 pm",
|
|
10422
10516
|
email: "zakher@sikka.io",
|
|
10423
10517
|
amount: "3.4 SAR / Month"
|
|
10424
|
-
}), /* @__PURE__ */
|
|
10518
|
+
}), /* @__PURE__ */ import_react90.default.createElement(ReferralSignUpCard, {
|
|
10425
10519
|
date: "2022/10/11 @ 9:45 pm",
|
|
10426
10520
|
email: "zakher@sikka.io",
|
|
10427
10521
|
amount: "3.4 SAR / Month"
|
|
10428
|
-
}), /* @__PURE__ */
|
|
10522
|
+
}), /* @__PURE__ */ import_react90.default.createElement(ReferralSignUpCard, {
|
|
10429
10523
|
date: "2022/10/11 @ 9:45 pm",
|
|
10430
10524
|
email: "zakher@sikka.io",
|
|
10431
10525
|
amount: "3.4 SAR / Month"
|
|
10432
|
-
}), /* @__PURE__ */
|
|
10526
|
+
}), /* @__PURE__ */ import_react90.default.createElement(ReferralSignUpCard, {
|
|
10433
10527
|
date: "2022/10/11 @ 9:45 pm",
|
|
10434
10528
|
email: "zakher@sikka.io",
|
|
10435
10529
|
amount: "3.4 SAR / Month"
|
|
10436
10530
|
})))));
|
|
10437
10531
|
};
|
|
10438
10532
|
var NumberCard = function(props) {
|
|
10439
|
-
return /* @__PURE__ */
|
|
10533
|
+
return /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10440
10534
|
className: "w-full rounded border bg-background p-2"
|
|
10441
|
-
}, /* @__PURE__ */
|
|
10535
|
+
}, /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10442
10536
|
className: "text-sm"
|
|
10443
|
-
}, props.title), /* @__PURE__ */
|
|
10537
|
+
}, props.title), /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10444
10538
|
className: "font-bold"
|
|
10445
10539
|
}, props.number));
|
|
10446
10540
|
};
|
|
10447
10541
|
var ReferralSignUpCard = function(props) {
|
|
10448
|
-
return /* @__PURE__ */
|
|
10542
|
+
return /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10449
10543
|
className: "mb-3 rounded border-b bg-background p-2"
|
|
10450
|
-
}, /* @__PURE__ */
|
|
10544
|
+
}, /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10451
10545
|
className: "text-xs"
|
|
10452
|
-
}, props.date), /* @__PURE__ */
|
|
10546
|
+
}, props.date), /* @__PURE__ */ import_react90.default.createElement("div", {
|
|
10453
10547
|
className: "flex flex-row justify-between"
|
|
10454
|
-
}, /* @__PURE__ */
|
|
10548
|
+
}, /* @__PURE__ */ import_react90.default.createElement("div", null, props.email), /* @__PURE__ */ import_react90.default.createElement("div", null, props.amount)));
|
|
10455
10549
|
};
|
|
10456
10550
|
// src/blocks/Misc/NotFound.tsx
|
|
10457
|
-
var
|
|
10551
|
+
var import_react91 = __toESM(require("react"));
|
|
10458
10552
|
var NotFound = function(param) {
|
|
10459
10553
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts;
|
|
10460
10554
|
var _texts, _texts1, _texts2;
|
|
10461
10555
|
var _texts_pageNotFound, _texts_ifLost, _texts_home;
|
|
10462
|
-
return /* @__PURE__ */
|
|
10556
|
+
return /* @__PURE__ */ import_react91.default.createElement(Card, null, /* @__PURE__ */ import_react91.default.createElement(CardContent, {
|
|
10463
10557
|
headless: true
|
|
10464
|
-
}, /* @__PURE__ */
|
|
10558
|
+
}, /* @__PURE__ */ import_react91.default.createElement("div", {
|
|
10465
10559
|
className: "flex flex-col items-center dark:text-white"
|
|
10466
|
-
}, /* @__PURE__ */
|
|
10560
|
+
}, /* @__PURE__ */ import_react91.default.createElement("div", {
|
|
10467
10561
|
className: "text-center text-6xl font-bold "
|
|
10468
|
-
}, "404"), /* @__PURE__ */
|
|
10562
|
+
}, "404"), /* @__PURE__ */ import_react91.default.createElement("div", {
|
|
10469
10563
|
className: "m-2 text-center text-xl font-bold "
|
|
10470
|
-
}, (_texts_pageNotFound = (_texts = texts) === null || _texts === void 0 ? void 0 : _texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */
|
|
10564
|
+
}, (_texts_pageNotFound = (_texts = texts) === null || _texts === void 0 ? void 0 : _texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */ import_react91.default.createElement("div", {
|
|
10471
10565
|
className: "mb-4 text-center"
|
|
10472
|
-
}, (_texts_ifLost = (_texts1 = texts) === null || _texts1 === void 0 ? void 0 : _texts1.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */
|
|
10566
|
+
}, (_texts_ifLost = (_texts1 = texts) === null || _texts1 === void 0 ? void 0 : _texts1.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react91.default.createElement(import_react91.default.Fragment, null, "If you're lost please contact us", " ", /* @__PURE__ */ import_react91.default.createElement("span", {
|
|
10473
10567
|
className: "clickable-link"
|
|
10474
|
-
}, "help@sikka.io"))), /* @__PURE__ */
|
|
10568
|
+
}, "help@sikka.io"))), /* @__PURE__ */ import_react91.default.createElement(Button, {
|
|
10475
10569
|
className: "w-full"
|
|
10476
10570
|
}, (_texts_home = (_texts2 = texts) === null || _texts2 === void 0 ? void 0 : _texts2.home) !== null && _texts_home !== void 0 ? _texts_home : "Home"))));
|
|
10477
10571
|
};
|
|
10478
10572
|
// src/blocks/Misc/EmptyState.tsx
|
|
10479
|
-
var
|
|
10573
|
+
var import_react92 = __toESM(require("react"));
|
|
10480
10574
|
var EmptyState = function(param) {
|
|
10481
10575
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts, onActionClick = param.onActionClick;
|
|
10482
10576
|
var _texts, _texts1;
|
|
10483
10577
|
var _texts_youreCaughtUp, _texts_actionText;
|
|
10484
|
-
return /* @__PURE__ */
|
|
10578
|
+
return /* @__PURE__ */ import_react92.default.createElement(Card, null, /* @__PURE__ */ import_react92.default.createElement(CardContent, {
|
|
10485
10579
|
headless: true
|
|
10486
|
-
}, /* @__PURE__ */
|
|
10580
|
+
}, /* @__PURE__ */ import_react92.default.createElement("div", {
|
|
10487
10581
|
className: "flex flex-col items-center justify-center text-center "
|
|
10488
|
-
}, /* @__PURE__ */
|
|
10582
|
+
}, /* @__PURE__ */ import_react92.default.createElement("div", {
|
|
10489
10583
|
className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground"
|
|
10490
|
-
}, /* @__PURE__ */
|
|
10584
|
+
}, /* @__PURE__ */ import_react92.default.createElement("svg", {
|
|
10491
10585
|
stroke: "currentColor",
|
|
10492
10586
|
fill: "currentColor",
|
|
10493
10587
|
strokeWidth: "0",
|
|
10494
10588
|
viewBox: "0 0 512 512",
|
|
10495
10589
|
height: "0.35em",
|
|
10496
10590
|
width: "0.35em"
|
|
10497
|
-
}, /* @__PURE__ */
|
|
10591
|
+
}, /* @__PURE__ */ import_react92.default.createElement("path", {
|
|
10498
10592
|
d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"
|
|
10499
|
-
}))), /* @__PURE__ */
|
|
10593
|
+
}))), /* @__PURE__ */ import_react92.default.createElement("div", {
|
|
10500
10594
|
className: "m-2 text-xl font-bold"
|
|
10501
|
-
}, (_texts_youreCaughtUp = (_texts = texts) === null || _texts === void 0 ? void 0 : _texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */
|
|
10595
|
+
}, (_texts_youreCaughtUp = (_texts = texts) === null || _texts === void 0 ? void 0 : _texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */ import_react92.default.createElement(CardFooter, null, /* @__PURE__ */ import_react92.default.createElement(Button, {
|
|
10502
10596
|
className: "w-full",
|
|
10503
10597
|
onClick: function() {
|
|
10504
10598
|
return onActionClick();
|
|
@@ -10506,101 +10600,101 @@ var EmptyState = function(param) {
|
|
|
10506
10600
|
}, (_texts_actionText = (_texts1 = texts) === null || _texts1 === void 0 ? void 0 : _texts1.actionText) !== null && _texts_actionText !== void 0 ? _texts_actionText : "Go Home")));
|
|
10507
10601
|
};
|
|
10508
10602
|
// src/blocks/Misc/Testimonial.tsx
|
|
10509
|
-
var
|
|
10603
|
+
var import_react93 = __toESM(require("react"));
|
|
10510
10604
|
var Testimonial = function(props) {
|
|
10511
|
-
return /* @__PURE__ */
|
|
10605
|
+
return /* @__PURE__ */ import_react93.default.createElement(Card, null, /* @__PURE__ */ import_react93.default.createElement(CardContent, {
|
|
10512
10606
|
headless: true
|
|
10513
|
-
}, /* @__PURE__ */
|
|
10607
|
+
}, /* @__PURE__ */ import_react93.default.createElement("div", null, /* @__PURE__ */ import_react93.default.createElement("p", {
|
|
10514
10608
|
className: "mb-4 max-w-sm"
|
|
10515
|
-
}, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */
|
|
10609
|
+
}, "The team at Sikka Software is simply amazing. The tech is easy to follow, easy to work with, and infinitely flexible. The solution opportunities created by Tines are endless.")), /* @__PURE__ */ import_react93.default.createElement("div", {
|
|
10516
10610
|
className: "flex flex-row gap-4"
|
|
10517
|
-
}, /* @__PURE__ */
|
|
10611
|
+
}, /* @__PURE__ */ import_react93.default.createElement("svg", {
|
|
10518
10612
|
width: "48",
|
|
10519
10613
|
height: "48",
|
|
10520
10614
|
viewBox: "0 0 48 48",
|
|
10521
10615
|
fill: "none"
|
|
10522
|
-
}, /* @__PURE__ */
|
|
10616
|
+
}, /* @__PURE__ */ import_react93.default.createElement("rect", {
|
|
10523
10617
|
width: "48",
|
|
10524
10618
|
height: "48",
|
|
10525
10619
|
rx: "24",
|
|
10526
10620
|
fill: "#45BE8B"
|
|
10527
|
-
}), /* @__PURE__ */
|
|
10621
|
+
}), /* @__PURE__ */ import_react93.default.createElement("path", {
|
|
10528
10622
|
d: "M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z",
|
|
10529
10623
|
fill: "#FFFFFF"
|
|
10530
|
-
}), /* @__PURE__ */
|
|
10624
|
+
}), /* @__PURE__ */ import_react93.default.createElement("path", {
|
|
10531
10625
|
d: "M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z",
|
|
10532
10626
|
fill: "#FFFFFF"
|
|
10533
|
-
})), /* @__PURE__ */
|
|
10627
|
+
})), /* @__PURE__ */ import_react93.default.createElement("span", {
|
|
10534
10628
|
className: "border border-l "
|
|
10535
|
-
}), " ", /* @__PURE__ */
|
|
10629
|
+
}), " ", /* @__PURE__ */ import_react93.default.createElement("div", null, /* @__PURE__ */ import_react93.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react93.default.createElement("div", null, " Chief Information Security Officer")))));
|
|
10536
10630
|
};
|
|
10537
10631
|
// src/blocks/Misc/LeadGenerator.tsx
|
|
10538
|
-
var
|
|
10632
|
+
var import_react94 = __toESM(require("react"));
|
|
10539
10633
|
var LeadGenerator = function(param) {
|
|
10540
10634
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts, handleNewsletterSub = param.handleNewsletterSub;
|
|
10541
10635
|
var _texts, _texts1, _texts2;
|
|
10542
10636
|
var _texts_submit;
|
|
10543
|
-
return /* @__PURE__ */
|
|
10637
|
+
return /* @__PURE__ */ import_react94.default.createElement(Card, null, /* @__PURE__ */ import_react94.default.createElement(CardHeader, null, /* @__PURE__ */ import_react94.default.createElement(CardTitle, null, (_texts = texts) === null || _texts === void 0 ? void 0 : _texts.title), /* @__PURE__ */ import_react94.default.createElement(CardDescription, null, (_texts1 = texts) === null || _texts1 === void 0 ? void 0 : _texts1.subtitle)), /* @__PURE__ */ import_react94.default.createElement(CardContent, null, /* @__PURE__ */ import_react94.default.createElement("form", {
|
|
10544
10638
|
className: "flex flex-row gap-2",
|
|
10545
10639
|
onSubmit: function(e) {
|
|
10546
10640
|
e.preventDefault();
|
|
10547
10641
|
handleNewsletterSub(e.target[0].value);
|
|
10548
10642
|
}
|
|
10549
|
-
}, /* @__PURE__ */
|
|
10643
|
+
}, /* @__PURE__ */ import_react94.default.createElement(Input, {
|
|
10550
10644
|
type: "email",
|
|
10551
10645
|
name: "email",
|
|
10552
10646
|
placeholder: "example@sikka.io"
|
|
10553
|
-
}), /* @__PURE__ */
|
|
10647
|
+
}), /* @__PURE__ */ import_react94.default.createElement(Button, null, (_texts_submit = (_texts2 = texts) === null || _texts2 === void 0 ? void 0 : _texts2.submit) !== null && _texts_submit !== void 0 ? _texts_submit : "Submit"))));
|
|
10554
10648
|
};
|
|
10555
10649
|
// src/blocks/Misc/Announcement.tsx
|
|
10556
|
-
var
|
|
10650
|
+
var import_react95 = __toESM(require("react"));
|
|
10557
10651
|
var Announcement = function(_param) {
|
|
10558
10652
|
var _param_variant = _param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, onActionClick = _param.onActionClick, props = _object_without_properties(_param, [
|
|
10559
10653
|
"variant",
|
|
10560
10654
|
"onActionClick"
|
|
10561
10655
|
]);
|
|
10562
|
-
return /* @__PURE__ */
|
|
10656
|
+
return /* @__PURE__ */ import_react95.default.createElement(Card, null, /* @__PURE__ */ import_react95.default.createElement(CardContent, {
|
|
10563
10657
|
headless: true,
|
|
10564
10658
|
className: "flex flex-row items-center justify-between"
|
|
10565
|
-
}, /* @__PURE__ */
|
|
10659
|
+
}, /* @__PURE__ */ import_react95.default.createElement("div", {
|
|
10566
10660
|
className: "flex flex-col items-start justify-center "
|
|
10567
|
-
}, /* @__PURE__ */
|
|
10661
|
+
}, /* @__PURE__ */ import_react95.default.createElement("span", {
|
|
10568
10662
|
className: "text-lg font-bold"
|
|
10569
|
-
}, props.title), /* @__PURE__ */
|
|
10663
|
+
}, props.title), /* @__PURE__ */ import_react95.default.createElement("span", {
|
|
10570
10664
|
className: "text-sm"
|
|
10571
|
-
}, props.subtitle)), /* @__PURE__ */
|
|
10665
|
+
}, props.subtitle)), /* @__PURE__ */ import_react95.default.createElement(Button, {
|
|
10572
10666
|
onClick: function() {
|
|
10573
10667
|
return onActionClick();
|
|
10574
10668
|
}
|
|
10575
10669
|
}, props.actionText)));
|
|
10576
10670
|
};
|
|
10577
10671
|
// src/blocks/Misc/NoPermission.tsx
|
|
10578
|
-
var
|
|
10672
|
+
var import_react96 = __toESM(require("react"));
|
|
10579
10673
|
var NoPermission = function(param) {
|
|
10580
|
-
var
|
|
10674
|
+
var texts = param.texts;
|
|
10581
10675
|
var _texts, _texts1;
|
|
10582
10676
|
var _texts_title, _texts_subtitle;
|
|
10583
|
-
return /* @__PURE__ */
|
|
10677
|
+
return /* @__PURE__ */ import_react96.default.createElement(Card, null, /* @__PURE__ */ import_react96.default.createElement(CardContent, {
|
|
10584
10678
|
headless: true
|
|
10585
|
-
}, /* @__PURE__ */
|
|
10679
|
+
}, /* @__PURE__ */ import_react96.default.createElement("div", {
|
|
10586
10680
|
className: "flex flex-col items-center justify-center text-center"
|
|
10587
|
-
}, /* @__PURE__ */
|
|
10681
|
+
}, /* @__PURE__ */ import_react96.default.createElement("div", {
|
|
10588
10682
|
className: "flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-primary text-6xl font-bold text-primary-foreground"
|
|
10589
|
-
}, /* @__PURE__ */
|
|
10683
|
+
}, /* @__PURE__ */ import_react96.default.createElement("svg", {
|
|
10590
10684
|
stroke: "currentColor",
|
|
10591
10685
|
fill: "currentColor",
|
|
10592
10686
|
strokeWidth: "0",
|
|
10593
10687
|
viewBox: "0 0 448 512",
|
|
10594
10688
|
height: "0.35em",
|
|
10595
10689
|
width: "0.35em"
|
|
10596
|
-
}, /* @__PURE__ */
|
|
10690
|
+
}, /* @__PURE__ */ import_react96.default.createElement("path", {
|
|
10597
10691
|
d: "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"
|
|
10598
|
-
})), " "), /* @__PURE__ */
|
|
10692
|
+
})), " "), /* @__PURE__ */ import_react96.default.createElement("div", {
|
|
10599
10693
|
className: "m-2 text-xl font-bold"
|
|
10600
|
-
}, (_texts_title = (_texts = texts) === null || _texts === void 0 ? void 0 : _texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */
|
|
10694
|
+
}, (_texts_title = (_texts = texts) === null || _texts === void 0 ? void 0 : _texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */ import_react96.default.createElement("div", null, (_texts_subtitle = (_texts1 = texts) === null || _texts1 === void 0 ? void 0 : _texts1.subtitle) !== null && _texts_subtitle !== void 0 ? _texts_subtitle : "If you think this is a problem please contact your administrator or our customer support"))));
|
|
10601
10695
|
};
|
|
10602
10696
|
// src/hooks/useHover.ts
|
|
10603
|
-
var
|
|
10697
|
+
var import_react97 = require("react");
|
|
10604
10698
|
// Annotate the CommonJS export names for ESM import in node:
|
|
10605
10699
|
0 && (module.exports = {
|
|
10606
10700
|
ActionCard: ActionCard,
|
|
@@ -10620,6 +10714,7 @@ var import_react96 = require("react");
|
|
|
10620
10714
|
CardTitle: CardTitle,
|
|
10621
10715
|
Carousel: Carousel,
|
|
10622
10716
|
ChargeWalletForm: ChargeWalletForm,
|
|
10717
|
+
CheckEmail: CheckEmail,
|
|
10623
10718
|
CheckoutForm: CheckoutForm,
|
|
10624
10719
|
CodeConfirmation: CodeConfirmation,
|
|
10625
10720
|
ComparingPlans: ComparingPlans,
|