@sikka/hawa 0.11.9-next → 0.11.11-next
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 +71 -62
- package/dist/index.d.ts +71 -62
- package/dist/index.js +594 -766
- package/dist/index.mjs +371 -562
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -5342,199 +5342,15 @@ var AccordionContent = React40.forwardRef(function(_param, ref) /* @__PURE__ */
|
|
|
5342
5342
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
5343
5343
|
// components/elements/Separator.tsx
|
|
5344
5344
|
var React41 = __toESM(require("react"));
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
_extends1 = Object.assign ? Object.assign.bind() : function _extends(target) {
|
|
5348
|
-
for(var i = 1; i < arguments.length; i++){
|
|
5349
|
-
var source = arguments[i];
|
|
5350
|
-
for(var key in source){
|
|
5351
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
5352
|
-
target[key] = source[key];
|
|
5353
|
-
}
|
|
5354
|
-
}
|
|
5355
|
-
}
|
|
5356
|
-
return target;
|
|
5357
|
-
};
|
|
5358
|
-
return _extends1.apply(this, arguments);
|
|
5359
|
-
}
|
|
5360
|
-
// node_modules/@radix-ui/react-separator/dist/index.mjs
|
|
5361
|
-
var import_react29 = require("react");
|
|
5362
|
-
// node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
5363
|
-
var import_react28 = require("react");
|
|
5364
|
-
var import_react_dom = require("react-dom");
|
|
5365
|
-
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
5366
|
-
var import_react27 = require("react");
|
|
5367
|
-
// node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
5368
|
-
var import_react26 = require("react");
|
|
5369
|
-
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
5370
|
-
if (typeof ref === "function") ref(value);
|
|
5371
|
-
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
5372
|
-
}
|
|
5373
|
-
function $6ed0406888f73fc4$export$43e446d32b3d21af() {
|
|
5374
|
-
for(var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++){
|
|
5375
|
-
refs[_key] = arguments[_key];
|
|
5376
|
-
}
|
|
5377
|
-
return function(node) {
|
|
5378
|
-
return refs.forEach(function(ref) {
|
|
5379
|
-
return $6ed0406888f73fc4$var$setRef(ref, node);
|
|
5380
|
-
});
|
|
5381
|
-
};
|
|
5382
|
-
}
|
|
5383
|
-
// node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
5384
|
-
var $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ (0, import_react27.forwardRef)(function(props, forwardedRef) {
|
|
5385
|
-
var children = props.children, slotProps = _object_without_properties(props, [
|
|
5386
|
-
"children"
|
|
5387
|
-
]);
|
|
5388
|
-
var childrenArray = import_react27.Children.toArray(children);
|
|
5389
|
-
var slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable);
|
|
5390
|
-
if (slottable) {
|
|
5391
|
-
var newElement = slottable.props.children;
|
|
5392
|
-
var newChildren = childrenArray.map(function(child) {
|
|
5393
|
-
if (child === slottable) {
|
|
5394
|
-
if (import_react27.Children.count(newElement) > 1) return import_react27.Children.only(null);
|
|
5395
|
-
return /* @__PURE__ */ (0, import_react27.isValidElement)(newElement) ? newElement.props.children : null;
|
|
5396
|
-
} else return child;
|
|
5397
|
-
});
|
|
5398
|
-
return /* @__PURE__ */ (0, import_react27.createElement)($5e63c961fc1ce211$var$SlotClone, _extends1({}, slotProps, {
|
|
5399
|
-
ref: forwardedRef
|
|
5400
|
-
}), /* @__PURE__ */ (0, import_react27.isValidElement)(newElement) ? /* @__PURE__ */ (0, import_react27.cloneElement)(newElement, void 0, newChildren) : null);
|
|
5401
|
-
}
|
|
5402
|
-
return /* @__PURE__ */ (0, import_react27.createElement)($5e63c961fc1ce211$var$SlotClone, _extends1({}, slotProps, {
|
|
5403
|
-
ref: forwardedRef
|
|
5404
|
-
}), children);
|
|
5405
|
-
});
|
|
5406
|
-
$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = "Slot";
|
|
5407
|
-
var $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ (0, import_react27.forwardRef)(function(props, forwardedRef) {
|
|
5408
|
-
var children = props.children, slotProps = _object_without_properties(props, [
|
|
5409
|
-
"children"
|
|
5410
|
-
]);
|
|
5411
|
-
if (/* @__PURE__ */ (0, import_react27.isValidElement)(children)) return /* @__PURE__ */ (0, import_react27.cloneElement)(children, _object_spread_props(_object_spread({}, $5e63c961fc1ce211$var$mergeProps(slotProps, children.props)), {
|
|
5412
|
-
ref: forwardedRef ? $6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef, children.ref) : children.ref
|
|
5413
|
-
}));
|
|
5414
|
-
return import_react27.Children.count(children) > 1 ? import_react27.Children.only(null) : null;
|
|
5415
|
-
});
|
|
5416
|
-
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
5417
|
-
var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = function(param) {
|
|
5418
|
-
var children = param.children;
|
|
5419
|
-
return /* @__PURE__ */ (0, import_react27.createElement)(import_react27.Fragment, null, children);
|
|
5420
|
-
};
|
|
5421
|
-
function $5e63c961fc1ce211$var$isSlottable(child) {
|
|
5422
|
-
return /* @__PURE__ */ (0, import_react27.isValidElement)(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
|
|
5423
|
-
}
|
|
5424
|
-
function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) {
|
|
5425
|
-
var _loop = function(propName) {
|
|
5426
|
-
var slotPropValue = slotProps[propName];
|
|
5427
|
-
var childPropValue = childProps[propName];
|
|
5428
|
-
var isHandler = /^on[A-Z]/.test(propName);
|
|
5429
|
-
if (isHandler) {
|
|
5430
|
-
if (slotPropValue && childPropValue) overrideProps[propName] = function() {
|
|
5431
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
5432
|
-
args[_key] = arguments[_key];
|
|
5433
|
-
}
|
|
5434
|
-
childPropValue.apply(void 0, _to_consumable_array(args));
|
|
5435
|
-
slotPropValue.apply(void 0, _to_consumable_array(args));
|
|
5436
|
-
};
|
|
5437
|
-
else if (slotPropValue) overrideProps[propName] = slotPropValue;
|
|
5438
|
-
} else if (propName === "style") overrideProps[propName] = _object_spread({}, slotPropValue, childPropValue);
|
|
5439
|
-
else if (propName === "className") overrideProps[propName] = [
|
|
5440
|
-
slotPropValue,
|
|
5441
|
-
childPropValue
|
|
5442
|
-
].filter(Boolean).join(" ");
|
|
5443
|
-
};
|
|
5444
|
-
var overrideProps = _object_spread({}, childProps);
|
|
5445
|
-
for(var propName in childProps)_loop(propName);
|
|
5446
|
-
return _object_spread({}, slotProps, overrideProps);
|
|
5447
|
-
}
|
|
5448
|
-
// node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
5449
|
-
var $8927f6f2acc4f386$var$NODES = [
|
|
5450
|
-
"a",
|
|
5451
|
-
"button",
|
|
5452
|
-
"div",
|
|
5453
|
-
"form",
|
|
5454
|
-
"h2",
|
|
5455
|
-
"h3",
|
|
5456
|
-
"img",
|
|
5457
|
-
"input",
|
|
5458
|
-
"label",
|
|
5459
|
-
"li",
|
|
5460
|
-
"nav",
|
|
5461
|
-
"ol",
|
|
5462
|
-
"p",
|
|
5463
|
-
"span",
|
|
5464
|
-
"svg",
|
|
5465
|
-
"ul"
|
|
5466
|
-
];
|
|
5467
|
-
var $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce(function(primitive, node) {
|
|
5468
|
-
var Node = /* @__PURE__ */ (0, import_react28.forwardRef)(function(props, forwardedRef) {
|
|
5469
|
-
var asChild = props.asChild, primitiveProps = _object_without_properties(props, [
|
|
5470
|
-
"asChild"
|
|
5471
|
-
]);
|
|
5472
|
-
var Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node;
|
|
5473
|
-
(0, import_react28.useEffect)(function() {
|
|
5474
|
-
window[Symbol.for("radix-ui")] = true;
|
|
5475
|
-
}, []);
|
|
5476
|
-
return /* @__PURE__ */ (0, import_react28.createElement)(Comp, _extends1({}, primitiveProps, {
|
|
5477
|
-
ref: forwardedRef
|
|
5478
|
-
}));
|
|
5479
|
-
});
|
|
5480
|
-
Node.displayName = "Primitive.".concat(node);
|
|
5481
|
-
return _object_spread_props(_object_spread({}, primitive), _define_property({}, node, Node));
|
|
5482
|
-
}, {});
|
|
5483
|
-
// node_modules/@radix-ui/react-separator/dist/index.mjs
|
|
5484
|
-
var $89eedd556c436f6a$var$DEFAULT_ORIENTATION = "horizontal";
|
|
5485
|
-
var $89eedd556c436f6a$var$ORIENTATIONS = [
|
|
5486
|
-
"horizontal",
|
|
5487
|
-
"vertical"
|
|
5488
|
-
];
|
|
5489
|
-
var $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /* @__PURE__ */ (0, import_react29.forwardRef)(function(props, forwardedRef) {
|
|
5490
|
-
var decorative = props.decorative, tmp = props.orientation, orientationProp = tmp === void 0 ? $89eedd556c436f6a$var$DEFAULT_ORIENTATION : tmp, domProps = _object_without_properties(props, [
|
|
5491
|
-
"decorative",
|
|
5492
|
-
"orientation"
|
|
5493
|
-
]);
|
|
5494
|
-
var orientation = $89eedd556c436f6a$var$isValidOrientation(orientationProp) ? orientationProp : $89eedd556c436f6a$var$DEFAULT_ORIENTATION;
|
|
5495
|
-
var ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
5496
|
-
var semanticProps = decorative ? {
|
|
5497
|
-
role: "none"
|
|
5498
|
-
} : {
|
|
5499
|
-
"aria-orientation": ariaOrientation,
|
|
5500
|
-
role: "separator"
|
|
5501
|
-
};
|
|
5502
|
-
return /* @__PURE__ */ (0, import_react29.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends1({
|
|
5503
|
-
"data-orientation": orientation
|
|
5504
|
-
}, semanticProps, domProps, {
|
|
5505
|
-
ref: forwardedRef
|
|
5506
|
-
}));
|
|
5507
|
-
});
|
|
5508
|
-
$89eedd556c436f6a$export$1ff3c3f08ae963c0.propTypes = {
|
|
5509
|
-
orientation: function orientation(props, propName, componentName) {
|
|
5510
|
-
var propValue = props[propName];
|
|
5511
|
-
var strVal = String(propValue);
|
|
5512
|
-
if (propValue && !$89eedd556c436f6a$var$isValidOrientation(propValue)) return new Error($89eedd556c436f6a$var$getInvalidOrientationError(strVal, componentName));
|
|
5513
|
-
return null;
|
|
5514
|
-
}
|
|
5515
|
-
};
|
|
5516
|
-
function $89eedd556c436f6a$var$getInvalidOrientationError(value, componentName) {
|
|
5517
|
-
return "Invalid prop `orientation` of value `".concat(value, "` supplied to `").concat(componentName, "`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to `").concat($89eedd556c436f6a$var$DEFAULT_ORIENTATION, "`.");
|
|
5518
|
-
}
|
|
5519
|
-
function $89eedd556c436f6a$var$isValidOrientation(orientation) {
|
|
5520
|
-
return $89eedd556c436f6a$var$ORIENTATIONS.includes(orientation);
|
|
5521
|
-
}
|
|
5522
|
-
var $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;
|
|
5523
|
-
// components/elements/Separator.tsx
|
|
5524
|
-
var Separator2 = React41.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
5525
|
-
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, _param_decorative = _param.decorative, decorative = _param_decorative === void 0 ? true : _param_decorative, props = _object_without_properties(_param, [
|
|
5345
|
+
var Separator2 = function(_param) /* @__PURE__ */ {
|
|
5346
|
+
var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, props = _object_without_properties(_param, [
|
|
5526
5347
|
"className",
|
|
5527
|
-
"orientation"
|
|
5528
|
-
"decorative"
|
|
5348
|
+
"orientation"
|
|
5529
5349
|
]);
|
|
5530
|
-
return React41.createElement(
|
|
5531
|
-
ref: ref,
|
|
5532
|
-
decorative: decorative,
|
|
5533
|
-
orientation: orientation,
|
|
5350
|
+
return React41.createElement("div", _object_spread({
|
|
5534
5351
|
className: cn("hawa-shrink-0 hawa-bg-border", orientation === "horizontal" ? "hawa-h-[1px] hawa-w-full" : "hawa-h-full hawa-w-[1px]", className)
|
|
5535
5352
|
}, props));
|
|
5536
|
-
}
|
|
5537
|
-
Separator2.displayName = $89eedd556c436f6a$export$be92b6f5f03c0fe9.displayName;
|
|
5353
|
+
};
|
|
5538
5354
|
// components/elements/Progress.tsx
|
|
5539
5355
|
var React42 = __toESM(require("react"));
|
|
5540
5356
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
@@ -5555,14 +5371,14 @@ var Progress = React42.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5555
5371
|
});
|
|
5556
5372
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
5557
5373
|
// components/elements/BackToTop.tsx
|
|
5558
|
-
var
|
|
5374
|
+
var import_react26 = __toESM(require("react"));
|
|
5559
5375
|
var import_clsx11 = require("clsx");
|
|
5560
5376
|
var BackToTop = function(_param) {
|
|
5561
5377
|
var props = _extends({}, _object_destructuring_empty(_param));
|
|
5562
|
-
var _ref = _sliced_to_array((0,
|
|
5563
|
-
var _ref1 = _sliced_to_array((0,
|
|
5564
|
-
var self = (0,
|
|
5565
|
-
var _rect = (0,
|
|
5378
|
+
var _ref = _sliced_to_array((0, import_react26.useState)(false), 2), visible = _ref[0], setVisible = _ref[1];
|
|
5379
|
+
var _ref1 = _sliced_to_array((0, import_react26.useState)(null), 2), rect = _ref1[0], _setRect = _ref1[1];
|
|
5380
|
+
var self = (0, import_react26.useRef)(null);
|
|
5381
|
+
var _rect = (0, import_react26.useRef)(rect);
|
|
5566
5382
|
var setRect = function(data) {
|
|
5567
5383
|
_rect.current = data;
|
|
5568
5384
|
_setRect(data);
|
|
@@ -5596,7 +5412,7 @@ var BackToTop = function(_param) {
|
|
|
5596
5412
|
});
|
|
5597
5413
|
}
|
|
5598
5414
|
};
|
|
5599
|
-
(0,
|
|
5415
|
+
(0, import_react26.useEffect)(function() {
|
|
5600
5416
|
if (!props.anchor.current) return;
|
|
5601
5417
|
props.anchor.current.addEventListener("scroll", onScroll);
|
|
5602
5418
|
var interval = setInterval(function() {
|
|
@@ -5631,7 +5447,7 @@ var BackToTop = function(_param) {
|
|
|
5631
5447
|
};
|
|
5632
5448
|
return style;
|
|
5633
5449
|
};
|
|
5634
|
-
return /* @__PURE__ */
|
|
5450
|
+
return /* @__PURE__ */ import_react26.default.createElement(Button, {
|
|
5635
5451
|
className: cn("hawa-fixed hawa-cursor-pointer hawa-rounded hawa-transition-all", visible ? "hawa-pointer-events-all hawa-opacity-100" : "hawa-pointer-events-none hawa-opacity-0"),
|
|
5636
5452
|
onClick: backToTop,
|
|
5637
5453
|
style: _object_spread_props(_object_spread({}, getStyles()), {
|
|
@@ -5639,12 +5455,12 @@ var BackToTop = function(_param) {
|
|
|
5639
5455
|
}),
|
|
5640
5456
|
ref: self,
|
|
5641
5457
|
size: "icon"
|
|
5642
|
-
}, /* @__PURE__ */
|
|
5458
|
+
}, /* @__PURE__ */ import_react26.default.createElement("svg", {
|
|
5643
5459
|
className: (0, import_clsx11.clsx)("hawa-h-6 hawa-w-6 hawa-shrink-0 hawa-rotate-180 hawa-transition-all disabled:hawa-bg-gray-200"),
|
|
5644
5460
|
"aria-label": "Arrow Icon",
|
|
5645
5461
|
viewBox: "0 0 20 20",
|
|
5646
5462
|
fill: "currentColor"
|
|
5647
|
-
}, /* @__PURE__ */
|
|
5463
|
+
}, /* @__PURE__ */ import_react26.default.createElement("path", {
|
|
5648
5464
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
|
5649
5465
|
})));
|
|
5650
5466
|
};
|
|
@@ -5735,51 +5551,51 @@ var ScrollBar = React45.forwardRef(function(_param, ref) /* @__PURE__ */ {
|
|
|
5735
5551
|
});
|
|
5736
5552
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
5737
5553
|
// components/elements/Logos.tsx
|
|
5738
|
-
var
|
|
5554
|
+
var import_react27 = __toESM(require("react"));
|
|
5739
5555
|
var Logos = {
|
|
5740
5556
|
hawa: function(props) {
|
|
5741
|
-
return /* @__PURE__ */
|
|
5557
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5742
5558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5743
5559
|
xmlSpace: "preserve",
|
|
5744
5560
|
viewBox: "0 0 765 765"
|
|
5745
|
-
}, props), /* @__PURE__ */
|
|
5561
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5746
5562
|
d: "M382.5 0C171.6 0 0 171.6 0 382.5V765h382.5C593.4 765 765 593.4 765 382.5S593.4 0 382.5 0zM281.6 305.7c98 0 177.7 79.7 177.7 177.7 0 98-79.7 177.7-177.7 177.7s-177.7-79.7-177.7-177.7c0-98 79.7-177.7 177.7-177.7zm246 314.5c23.2-41.6 35.6-88.7 35.6-136.7 0-155.3-126.3-281.6-281.6-281.6-48 0-95.1 12.4-136.8 35.6C194.9 156 285 104 382.5 104c153.6 0 278.6 125 278.6 278.6 0 97.3-52 187.5-133.5 237.6z",
|
|
5747
5563
|
fill: "currentColor"
|
|
5748
5564
|
}));
|
|
5749
5565
|
},
|
|
5750
5566
|
sikka: function(props) {
|
|
5751
|
-
return /* @__PURE__ */
|
|
5567
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5752
5568
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5753
5569
|
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
5754
5570
|
xmlSpace: "preserve",
|
|
5755
5571
|
viewBox: "0 0 916.5 765",
|
|
5756
5572
|
fill: "currentColor"
|
|
5757
|
-
}, props), /* @__PURE__ */
|
|
5573
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("defs", null, /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5758
5574
|
id: "a",
|
|
5759
5575
|
d: "M0 0h916.5v765H0z"
|
|
5760
|
-
})), /* @__PURE__ */
|
|
5576
|
+
})), /* @__PURE__ */ import_react27.default.createElement("clipPath", {
|
|
5761
5577
|
id: "b"
|
|
5762
|
-
}, /* @__PURE__ */
|
|
5578
|
+
}, /* @__PURE__ */ import_react27.default.createElement("use", {
|
|
5763
5579
|
xlinkHref: "#a",
|
|
5764
5580
|
overflow: "visible"
|
|
5765
|
-
})), /* @__PURE__ */
|
|
5581
|
+
})), /* @__PURE__ */ import_react27.default.createElement("g", {
|
|
5766
5582
|
clipPath: "url(#b)"
|
|
5767
|
-
}, /* @__PURE__ */
|
|
5583
|
+
}, /* @__PURE__ */ import_react27.default.createElement("defs", null, /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5768
5584
|
id: "c",
|
|
5769
5585
|
d: "M0 0h916.5v765H0z"
|
|
5770
|
-
})), /* @__PURE__ */
|
|
5586
|
+
})), /* @__PURE__ */ import_react27.default.createElement("clipPath", {
|
|
5771
5587
|
id: "d"
|
|
5772
|
-
}, /* @__PURE__ */
|
|
5588
|
+
}, /* @__PURE__ */ import_react27.default.createElement("use", {
|
|
5773
5589
|
xlinkHref: "#c",
|
|
5774
5590
|
overflow: "visible"
|
|
5775
|
-
})), /* @__PURE__ */
|
|
5591
|
+
})), /* @__PURE__ */ import_react27.default.createElement("g", {
|
|
5776
5592
|
clipPath: "url(#d)"
|
|
5777
|
-
}, /* @__PURE__ */
|
|
5593
|
+
}, /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5778
5594
|
d: "M458.3 0h-31.9c-14.6 0-26.5 11.9-26.5 26.3v313.3L136.6 17.1C126 3.9 120.7 0 106.1 0H9.7C.5 0 0 7.9 0 17.1 0 21 1.3 26.3 4 29l288.7 353.6L4 736.1c-2.7 2.7-4 7.9-4 11.8 0 9.2.4 17.1 9.7 17.1h96.4c14.6 0 19.9-3.9 30.5-17.1l263.3-322.5v313.3c0 14.4 11.9 26.3 26.5 26.3h31.9M458.3 765h31.9c14.6 0 26.5-11.8 26.5-26.3V425.5L780 748c10.7 13.2 15.9 17.1 30.5 17.1h96.4c9.2 0 9.7-7.9 9.7-17.1 0-3.9-1.3-9.2-4-11.8L623.8 382.5 912.5 28.9c2.7-2.7 4-7.9 4-11.9 0-9.2-.5-17.1-9.7-17.1h-96.4c-14.6 0-19.9 3.9-30.5 17.1L516.7 339.5V26.3c0-14.4-11.9-26.3-26.5-26.3h-31.9"
|
|
5779
5595
|
}))));
|
|
5780
5596
|
},
|
|
5781
5597
|
mail: function(props) {
|
|
5782
|
-
return /* @__PURE__ */
|
|
5598
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5783
5599
|
stroke: "currentColor",
|
|
5784
5600
|
fill: "none",
|
|
5785
5601
|
"stroke-width": "2",
|
|
@@ -5789,14 +5605,14 @@ var Logos = {
|
|
|
5789
5605
|
height: "1em",
|
|
5790
5606
|
width: "1em",
|
|
5791
5607
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5792
|
-
}, props), /* @__PURE__ */
|
|
5608
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5793
5609
|
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"
|
|
5794
|
-
}), /* @__PURE__ */
|
|
5610
|
+
}), /* @__PURE__ */ import_react27.default.createElement("polyline", {
|
|
5795
5611
|
points: "22,6 12,13 2,6"
|
|
5796
5612
|
}));
|
|
5797
5613
|
},
|
|
5798
5614
|
phone: function(props) {
|
|
5799
|
-
return /* @__PURE__ */
|
|
5615
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5800
5616
|
stroke: "currentColor",
|
|
5801
5617
|
fill: "none",
|
|
5802
5618
|
"stroke-width": "2",
|
|
@@ -5805,132 +5621,132 @@ var Logos = {
|
|
|
5805
5621
|
height: "1em",
|
|
5806
5622
|
width: "1em",
|
|
5807
5623
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5808
|
-
}, props), /* @__PURE__ */
|
|
5624
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5809
5625
|
"stroke-linecap": "round",
|
|
5810
5626
|
"stroke-linejoin": "round",
|
|
5811
5627
|
d: "M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"
|
|
5812
5628
|
}));
|
|
5813
5629
|
},
|
|
5814
5630
|
twitter: function(props) {
|
|
5815
|
-
return /* @__PURE__ */
|
|
5631
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5816
5632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5817
5633
|
viewBox: "0 0 24 24"
|
|
5818
|
-
}, props), /* @__PURE__ */
|
|
5634
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5819
5635
|
fill: "currentColor",
|
|
5820
5636
|
d: "M21.543 7.104c.015.211.015.423.015.636 0 6.507-4.954 14.01-14.01 14.01v-.003A13.94 13.94 0 0 1 0 19.539a9.88 9.88 0 0 0 7.287-2.041 4.93 4.93 0 0 1-4.6-3.42 4.916 4.916 0 0 0 2.223-.084A4.926 4.926 0 0 1 .96 9.167v-.062a4.887 4.887 0 0 0 2.235.616A4.928 4.928 0 0 1 1.67 3.148a13.98 13.98 0 0 0 10.15 5.144 4.929 4.929 0 0 1 8.39-4.49 9.868 9.868 0 0 0 3.128-1.196 4.941 4.941 0 0 1-2.165 2.724A9.828 9.828 0 0 0 24 4.555a10.019 10.019 0 0 1-2.457 2.549z"
|
|
5821
5637
|
}));
|
|
5822
5638
|
},
|
|
5823
5639
|
microsoft: function(props) {
|
|
5824
|
-
return /* @__PURE__ */
|
|
5640
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5825
5641
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5826
5642
|
viewBox: "0 0 20 20"
|
|
5827
|
-
}, props), /* @__PURE__ */
|
|
5643
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5828
5644
|
fill: "currentColor",
|
|
5829
5645
|
d: "M7.462 0H0v7.19h7.462V0zM16 0H8.538v7.19H16V0zM7.462 8.211H0V16h7.462V8.211zm8.538 0H8.538V16H16V8.211z"
|
|
5830
5646
|
}));
|
|
5831
5647
|
},
|
|
5832
5648
|
github: function(props) {
|
|
5833
|
-
return /* @__PURE__ */
|
|
5649
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5834
5650
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5835
5651
|
viewBox: "0 0 438.549 438.549"
|
|
5836
|
-
}, props), /* @__PURE__ */
|
|
5652
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5837
5653
|
fill: "currentColor",
|
|
5838
5654
|
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
|
5839
5655
|
}));
|
|
5840
5656
|
},
|
|
5841
5657
|
radix: function(props) {
|
|
5842
|
-
return /* @__PURE__ */
|
|
5658
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5843
5659
|
viewBox: "0 0 25 25",
|
|
5844
5660
|
fill: "none"
|
|
5845
|
-
}, props), /* @__PURE__ */
|
|
5661
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5846
5662
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
|
5847
5663
|
fill: "currentcolor"
|
|
5848
|
-
}), /* @__PURE__ */
|
|
5664
|
+
}), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5849
5665
|
d: "M12 0H4V8H12V0Z",
|
|
5850
5666
|
fill: "currentcolor"
|
|
5851
|
-
}), /* @__PURE__ */
|
|
5667
|
+
}), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5852
5668
|
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
|
5853
5669
|
fill: "currentcolor"
|
|
5854
5670
|
}));
|
|
5855
5671
|
},
|
|
5856
5672
|
aria: function(props) {
|
|
5857
|
-
return /* @__PURE__ */
|
|
5673
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5858
5674
|
role: "img",
|
|
5859
5675
|
viewBox: "0 0 24 24",
|
|
5860
5676
|
fill: "currentColor"
|
|
5861
|
-
}, props), /* @__PURE__ */
|
|
5677
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5862
5678
|
d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z"
|
|
5863
5679
|
}));
|
|
5864
5680
|
},
|
|
5865
5681
|
npm: function(props) {
|
|
5866
|
-
return /* @__PURE__ */
|
|
5682
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5867
5683
|
viewBox: "0 0 24 24"
|
|
5868
|
-
}, props), /* @__PURE__ */
|
|
5684
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5869
5685
|
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
|
5870
5686
|
fill: "currentColor"
|
|
5871
5687
|
}));
|
|
5872
5688
|
},
|
|
5873
5689
|
yarn: function(props) {
|
|
5874
|
-
return /* @__PURE__ */
|
|
5690
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5875
5691
|
viewBox: "0 0 24 24"
|
|
5876
|
-
}, props), /* @__PURE__ */
|
|
5692
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5877
5693
|
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
|
5878
5694
|
fill: "currentColor"
|
|
5879
5695
|
}));
|
|
5880
5696
|
},
|
|
5881
5697
|
pnpm: function(props) {
|
|
5882
|
-
return /* @__PURE__ */
|
|
5698
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5883
5699
|
viewBox: "0 0 24 24"
|
|
5884
|
-
}, props), /* @__PURE__ */
|
|
5700
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5885
5701
|
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
|
5886
5702
|
fill: "currentColor"
|
|
5887
5703
|
}));
|
|
5888
5704
|
},
|
|
5889
5705
|
react: function(props) {
|
|
5890
|
-
return /* @__PURE__ */
|
|
5706
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5891
5707
|
viewBox: "0 0 24 24"
|
|
5892
|
-
}, props), /* @__PURE__ */
|
|
5708
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5893
5709
|
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
|
5894
5710
|
fill: "currentColor"
|
|
5895
5711
|
}));
|
|
5896
5712
|
},
|
|
5897
5713
|
tailwind: function(props) {
|
|
5898
|
-
return /* @__PURE__ */
|
|
5714
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5899
5715
|
viewBox: "0 0 24 24"
|
|
5900
|
-
}, props), /* @__PURE__ */
|
|
5716
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5901
5717
|
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
|
5902
5718
|
fill: "currentColor"
|
|
5903
5719
|
}));
|
|
5904
5720
|
},
|
|
5905
5721
|
google: function(props) {
|
|
5906
|
-
return /* @__PURE__ */
|
|
5722
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5907
5723
|
role: "img",
|
|
5908
5724
|
viewBox: "0 0 24 24"
|
|
5909
|
-
}, props), /* @__PURE__ */
|
|
5725
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5910
5726
|
fill: "currentColor",
|
|
5911
5727
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
|
5912
5728
|
}));
|
|
5913
5729
|
},
|
|
5914
5730
|
apple: function(props) {
|
|
5915
|
-
return /* @__PURE__ */
|
|
5731
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5916
5732
|
role: "img",
|
|
5917
5733
|
viewBox: "0 0 24 24"
|
|
5918
|
-
}, props), /* @__PURE__ */
|
|
5734
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5919
5735
|
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
|
5920
5736
|
fill: "currentColor"
|
|
5921
5737
|
}));
|
|
5922
5738
|
},
|
|
5923
5739
|
paypal: function(props) {
|
|
5924
|
-
return /* @__PURE__ */
|
|
5740
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5925
5741
|
role: "img",
|
|
5926
5742
|
viewBox: "0 0 24 24"
|
|
5927
|
-
}, props), /* @__PURE__ */
|
|
5743
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5928
5744
|
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
|
5929
5745
|
fill: "currentColor"
|
|
5930
5746
|
}));
|
|
5931
5747
|
},
|
|
5932
5748
|
spinner: function(props) {
|
|
5933
|
-
return /* @__PURE__ */
|
|
5749
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5934
5750
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5935
5751
|
width: "24",
|
|
5936
5752
|
height: "24",
|
|
@@ -5940,18 +5756,18 @@ var Logos = {
|
|
|
5940
5756
|
strokeWidth: "2",
|
|
5941
5757
|
strokeLinecap: "round",
|
|
5942
5758
|
strokeLinejoin: "round"
|
|
5943
|
-
}, props), /* @__PURE__ */
|
|
5759
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5944
5760
|
d: "M21 12a9 9 0 1 1-6.219-8.56"
|
|
5945
5761
|
}));
|
|
5946
5762
|
},
|
|
5947
5763
|
whatsapp: function(props) {
|
|
5948
|
-
return /* @__PURE__ */
|
|
5764
|
+
return /* @__PURE__ */ import_react27.default.createElement("svg", _object_spread({
|
|
5949
5765
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5950
5766
|
width: "24",
|
|
5951
5767
|
height: "24",
|
|
5952
5768
|
viewBox: "0 0 24 24",
|
|
5953
5769
|
fill: "currentColor"
|
|
5954
|
-
}, props), /* @__PURE__ */
|
|
5770
|
+
}, props), /* @__PURE__ */ import_react27.default.createElement("path", {
|
|
5955
5771
|
d: "M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"
|
|
5956
5772
|
}));
|
|
5957
5773
|
}
|
|
@@ -6149,30 +5965,30 @@ var Combobox = function(_param) {
|
|
|
6149
5965
|
}))))));
|
|
6150
5966
|
};
|
|
6151
5967
|
// components/elements/Count.tsx
|
|
6152
|
-
var
|
|
5968
|
+
var import_react28 = __toESM(require("react"));
|
|
6153
5969
|
var Count = function(props) {
|
|
6154
|
-
return /* @__PURE__ */
|
|
5970
|
+
return /* @__PURE__ */ import_react28.default.createElement("div", {
|
|
6155
5971
|
className: "hawa-flex hawa-h-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-px-2"
|
|
6156
|
-
}, /* @__PURE__ */
|
|
5972
|
+
}, /* @__PURE__ */ import_react28.default.createElement("div", null, props.icon), /* @__PURE__ */ import_react28.default.createElement("div", {
|
|
6157
5973
|
className: "hawa-text-sm"
|
|
6158
5974
|
}, props.count));
|
|
6159
5975
|
};
|
|
6160
5976
|
// components/elements/InterfaceSettings.tsx
|
|
6161
|
-
var
|
|
5977
|
+
var import_react29 = __toESM(require("react"));
|
|
6162
5978
|
var InterfaceSettings = function(_param) {
|
|
6163
5979
|
var _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, _param_width = _param.width, width = _param_width === void 0 ? "default" : _param_width, props = _object_without_properties(_param, [
|
|
6164
5980
|
"orientation",
|
|
6165
5981
|
"width"
|
|
6166
5982
|
]);
|
|
6167
|
-
var _ref = _sliced_to_array((0,
|
|
6168
|
-
var _ref1 = _sliced_to_array((0,
|
|
5983
|
+
var _ref = _sliced_to_array((0, import_react29.useState)(props.currentColorMode), 2), color = _ref[0], setColor = _ref[1];
|
|
5984
|
+
var _ref1 = _sliced_to_array((0, import_react29.useState)(props.currentLanguage), 2), language = _ref1[0], setLanguage = _ref1[1];
|
|
6169
5985
|
var orientationStyle = {
|
|
6170
5986
|
horizontal: "hawa-flex hawa-flex-row hawa-justify-between",
|
|
6171
5987
|
vertical: "hawa-flex hawa-flex-col hawa-items-center hawa-gap-2"
|
|
6172
5988
|
};
|
|
6173
|
-
return /* @__PURE__ */
|
|
5989
|
+
return /* @__PURE__ */ import_react29.default.createElement("div", {
|
|
6174
5990
|
className: cn(orientationStyle[orientation])
|
|
6175
|
-
}, /* @__PURE__ */
|
|
5991
|
+
}, /* @__PURE__ */ import_react29.default.createElement(Radio, {
|
|
6176
5992
|
width: width,
|
|
6177
5993
|
defaultValue: language,
|
|
6178
5994
|
onChangeTab: function(e) {
|
|
@@ -6190,7 +6006,7 @@ var InterfaceSettings = function(_param) {
|
|
|
6190
6006
|
label: "English"
|
|
6191
6007
|
}
|
|
6192
6008
|
]
|
|
6193
|
-
}), /* @__PURE__ */
|
|
6009
|
+
}), /* @__PURE__ */ import_react29.default.createElement(Radio, {
|
|
6194
6010
|
width: width,
|
|
6195
6011
|
defaultValue: color,
|
|
6196
6012
|
onChangeTab: function(e) {
|
|
@@ -6201,21 +6017,21 @@ var InterfaceSettings = function(_param) {
|
|
|
6201
6017
|
options: [
|
|
6202
6018
|
{
|
|
6203
6019
|
value: "light",
|
|
6204
|
-
label: /* @__PURE__ */
|
|
6020
|
+
label: /* @__PURE__ */ import_react29.default.createElement("svg", {
|
|
6205
6021
|
width: "15",
|
|
6206
6022
|
height: "15",
|
|
6207
6023
|
viewBox: "0 0 15 15",
|
|
6208
6024
|
fill: "none",
|
|
6209
6025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6210
6026
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
6211
|
-
}, /* @__PURE__ */
|
|
6027
|
+
}, /* @__PURE__ */ import_react29.default.createElement("path", {
|
|
6212
6028
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
6213
6029
|
fill: "currentColor"
|
|
6214
6030
|
}))
|
|
6215
6031
|
},
|
|
6216
6032
|
{
|
|
6217
6033
|
value: "dark",
|
|
6218
|
-
label: /* @__PURE__ */
|
|
6034
|
+
label: /* @__PURE__ */ import_react29.default.createElement("svg", {
|
|
6219
6035
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6220
6036
|
width: "24",
|
|
6221
6037
|
height: "24",
|
|
@@ -6223,7 +6039,7 @@ var InterfaceSettings = function(_param) {
|
|
|
6223
6039
|
fill: "none",
|
|
6224
6040
|
stroke: "currentColor",
|
|
6225
6041
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
6226
|
-
}, /* @__PURE__ */
|
|
6042
|
+
}, /* @__PURE__ */ import_react29.default.createElement("path", {
|
|
6227
6043
|
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
6228
6044
|
}))
|
|
6229
6045
|
}
|
|
@@ -6354,28 +6170,28 @@ var NavigationMenu = function(props) {
|
|
|
6354
6170
|
})));
|
|
6355
6171
|
};
|
|
6356
6172
|
// components/layout/Stats.tsx
|
|
6357
|
-
var
|
|
6173
|
+
var import_react30 = __toESM(require("react"));
|
|
6358
6174
|
var Stats = function(_param) {
|
|
6359
6175
|
var _param_variant = _param.variant, variant = _param_variant === void 0 ? "default" : _param_variant, props = _object_without_properties(_param, [
|
|
6360
6176
|
"variant"
|
|
6361
6177
|
]);
|
|
6362
|
-
return /* @__PURE__ */
|
|
6178
|
+
return /* @__PURE__ */ import_react30.default.createElement(Card, {
|
|
6363
6179
|
onClick: props.handleClick,
|
|
6364
6180
|
clickable: Boolean(props.handleClick),
|
|
6365
6181
|
className: cn(props.className)
|
|
6366
|
-
}, /* @__PURE__ */
|
|
6182
|
+
}, /* @__PURE__ */ import_react30.default.createElement("div", {
|
|
6367
6183
|
className: "hawa-flex hawa-flex-row hawa-justify-between hawa-p-4 hawa-items-center"
|
|
6368
|
-
}, /* @__PURE__ */
|
|
6184
|
+
}, /* @__PURE__ */ import_react30.default.createElement(CardTitle, {
|
|
6369
6185
|
className: "hawa-text-sm hawa-font-medium"
|
|
6370
|
-
}, props.label), props.icon && /* @__PURE__ */
|
|
6186
|
+
}, props.label), props.icon && /* @__PURE__ */ import_react30.default.createElement("span", null, props.icon)), /* @__PURE__ */ import_react30.default.createElement(CardContent, null, props.isLoading ? /* @__PURE__ */ import_react30.default.createElement(Skeleton, {
|
|
6371
6187
|
className: "hawa-h-8 hawa-w-3/4"
|
|
6372
|
-
}) : /* @__PURE__ */
|
|
6188
|
+
}) : /* @__PURE__ */ import_react30.default.createElement("div", {
|
|
6373
6189
|
className: "hawa-text-2xl hawa-font-bold"
|
|
6374
|
-
}, props.number), props.isLoading && props.helperText ? /* @__PURE__ */
|
|
6190
|
+
}, props.number), props.isLoading && props.helperText ? /* @__PURE__ */ import_react30.default.createElement(Skeleton, {
|
|
6375
6191
|
className: "hawa-mt-2 hawa-h-4 hawa-w-1/2"
|
|
6376
|
-
}) : props.helperText && /* @__PURE__ */
|
|
6192
|
+
}) : props.helperText && /* @__PURE__ */ import_react30.default.createElement("p", {
|
|
6377
6193
|
className: "hawa-text-xs hawa-text-muted-foreground"
|
|
6378
|
-
}, props.helperText), props.isLoading && props.chart ? /* @__PURE__ */
|
|
6194
|
+
}, props.helperText), props.isLoading && props.chart ? /* @__PURE__ */ import_react30.default.createElement(Skeleton, {
|
|
6379
6195
|
className: "hawa-mt-2 hawa-h-4 hawa-w-1/2"
|
|
6380
6196
|
}) : props.chart));
|
|
6381
6197
|
};
|
|
@@ -6527,17 +6343,17 @@ var SidebarItem = function(_param) {
|
|
|
6527
6343
|
}
|
|
6528
6344
|
};
|
|
6529
6345
|
// components/layout/AppLayout.tsx
|
|
6530
|
-
var
|
|
6346
|
+
var import_react32 = __toESM(require("react"));
|
|
6531
6347
|
// components/hooks/useBreakpoint.ts
|
|
6532
|
-
var
|
|
6348
|
+
var import_react31 = require("react");
|
|
6533
6349
|
var useBreakpoint = function() {
|
|
6534
6350
|
var _window;
|
|
6535
|
-
var _ref = _sliced_to_array((0,
|
|
6351
|
+
var _ref = _sliced_to_array((0, import_react31.useState)((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth), 2), breakpoint = _ref[0], setBreakpoint = _ref[1];
|
|
6536
6352
|
var resize = function() {
|
|
6537
6353
|
var _window;
|
|
6538
6354
|
setBreakpoint((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth);
|
|
6539
6355
|
};
|
|
6540
|
-
(0,
|
|
6356
|
+
(0, import_react31.useEffect)(function() {
|
|
6541
6357
|
if (typeof window !== "undefined") {
|
|
6542
6358
|
var _window;
|
|
6543
6359
|
(_window = window) === null || _window === void 0 ? void 0 : _window.addEventListener("resize", resize);
|
|
@@ -6577,17 +6393,17 @@ var AppLayout = function(_param) {
|
|
|
6577
6393
|
lg: closeDrawerWidth
|
|
6578
6394
|
}
|
|
6579
6395
|
};
|
|
6580
|
-
var ref = (0,
|
|
6396
|
+
var ref = (0, import_react32.useRef)(null);
|
|
6581
6397
|
var isRTL = direction === "rtl";
|
|
6582
|
-
var _ref = _sliced_to_array((0,
|
|
6583
|
-
var _ref1 = _sliced_to_array((0,
|
|
6398
|
+
var _ref = _sliced_to_array((0, import_react32.useState)(""), 2), openedSidebarItem = _ref[0], setOpenedSidebarItem = _ref[1];
|
|
6399
|
+
var _ref1 = _sliced_to_array((0, import_react32.useState)(currentPage), 2), selectedItem = _ref1[0], setSelectedItem = _ref1[1];
|
|
6584
6400
|
var size = useBreakpoint();
|
|
6585
6401
|
if (typeof window == "undefined") {
|
|
6586
6402
|
size = 1200;
|
|
6587
6403
|
}
|
|
6588
|
-
var _ref2 = _sliced_to_array((0,
|
|
6404
|
+
var _ref2 = _sliced_to_array((0, import_react32.useState)(size > 600 ? keepOpen : false), 2), openSideMenu = _ref2[0], setOpenSideMenu = _ref2[1];
|
|
6589
6405
|
var drawerSizeCondition = size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0;
|
|
6590
|
-
(0,
|
|
6406
|
+
(0, import_react32.useEffect)(function() {
|
|
6591
6407
|
var handleClickOutside = function(event) {
|
|
6592
6408
|
if (ref.current && !ref.current.contains(event.target) && !keepOpen) {
|
|
6593
6409
|
setOpenSideMenu(false);
|
|
@@ -6600,11 +6416,11 @@ var AppLayout = function(_param) {
|
|
|
6600
6416
|
}, [
|
|
6601
6417
|
keepOpen
|
|
6602
6418
|
]);
|
|
6603
|
-
return /* @__PURE__ */
|
|
6419
|
+
return /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6604
6420
|
className: "hawa-fixed hawa-left-0"
|
|
6605
|
-
}, props.topBar && /* @__PURE__ */
|
|
6421
|
+
}, props.topBar && /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6606
6422
|
className: cn("hawa-fixed hawa-left-0 hawa-right-0 hawa-top-0 hawa-z-30 hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-between hawa-bg-primary-foreground hawa-p-2", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
6607
|
-
}, size > 600 ? /* @__PURE__ */
|
|
6423
|
+
}, size > 600 ? /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6608
6424
|
className: cn("dark:hawa-text-white", isRTL ? [
|
|
6609
6425
|
size > 600 ? "hawa-mr-14" : "hawa-mr-2",
|
|
6610
6426
|
keepOpen ? "hawa-mr-40" : ""
|
|
@@ -6618,15 +6434,15 @@ var AppLayout = function(_param) {
|
|
|
6618
6434
|
marginLeft: "".concat(drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize], "px")
|
|
6619
6435
|
}
|
|
6620
6436
|
}, props.pageTitle) : // Mobile Drawer Menu Button
|
|
6621
|
-
/* @__PURE__ */
|
|
6437
|
+
/* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6622
6438
|
dir: direction,
|
|
6623
6439
|
className: "hawa-flex hawa-items-center hawa-justify-center hawa-gap-0.5"
|
|
6624
|
-
}, /* @__PURE__ */
|
|
6440
|
+
}, /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6625
6441
|
onClick: function() {
|
|
6626
6442
|
return setOpenSideMenu(true);
|
|
6627
6443
|
},
|
|
6628
6444
|
className: "hawa-z-40 hawa-mx-1 hawa-cursor-pointer hawa-rounded hawa-p-2 hawa-transition-all hover:hawa-bg-gray-100"
|
|
6629
|
-
}, /* @__PURE__ */
|
|
6445
|
+
}, /* @__PURE__ */ import_react32.default.createElement("svg", {
|
|
6630
6446
|
stroke: "currentColor",
|
|
6631
6447
|
fill: "currentColor",
|
|
6632
6448
|
strokeWidth: 0,
|
|
@@ -6634,19 +6450,19 @@ var AppLayout = function(_param) {
|
|
|
6634
6450
|
"aria-hidden": "true",
|
|
6635
6451
|
height: "1.6em",
|
|
6636
6452
|
width: "1.6em"
|
|
6637
|
-
}, /* @__PURE__ */
|
|
6453
|
+
}, /* @__PURE__ */ import_react32.default.createElement("path", {
|
|
6638
6454
|
fillRule: "evenodd",
|
|
6639
6455
|
clipRule: "evenodd",
|
|
6640
6456
|
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
6641
|
-
}))), props.pageTitle ? /* @__PURE__ */
|
|
6457
|
+
}))), props.pageTitle ? /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6642
6458
|
className: "hawa-text-sm"
|
|
6643
|
-
}, props.pageTitle) : /* @__PURE__ */
|
|
6459
|
+
}, props.pageTitle) : /* @__PURE__ */ import_react32.default.createElement("div", null)), /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6644
6460
|
className: cn("hawa-flex hawa-gap-2 dark:hawa-text-white", isRTL ? "hawa-flex-row-reverse" : "hawa-flex-row")
|
|
6645
|
-
}, size > 600 ? /* @__PURE__ */
|
|
6461
|
+
}, size > 600 ? /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6646
6462
|
className: isRTL ? "hawa-text-left hawa-text-xs" : "hawa-text-right hawa-text-xs"
|
|
6647
|
-
}, /* @__PURE__ */
|
|
6463
|
+
}, /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6648
6464
|
className: "hawa-font-bold"
|
|
6649
|
-
}, props.username), " ", /* @__PURE__ */
|
|
6465
|
+
}, props.username), " ", /* @__PURE__ */ import_react32.default.createElement("div", null, props.email)) : null, /* @__PURE__ */ import_react32.default.createElement(DropdownMenu, {
|
|
6650
6466
|
triggerClassname: "hawa-mx-2",
|
|
6651
6467
|
align: "end",
|
|
6652
6468
|
alignOffset: 8,
|
|
@@ -6658,22 +6474,22 @@ var AppLayout = function(_param) {
|
|
|
6658
6474
|
onItemSelect: function(e) {
|
|
6659
6475
|
return console.log("selecting item ", e);
|
|
6660
6476
|
},
|
|
6661
|
-
trigger: /* @__PURE__ */
|
|
6477
|
+
trigger: /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6662
6478
|
className: "hawa-relative hawa-h-8 hawa-w-8 hawa-cursor-pointer hawa-overflow-clip hawa-rounded hawa-ring-1 hawa-ring-primary/30 dark:hawa-bg-gray-600"
|
|
6663
|
-
}, props.avatarImage ? /* @__PURE__ */
|
|
6479
|
+
}, props.avatarImage ? /* @__PURE__ */ import_react32.default.createElement("img", {
|
|
6664
6480
|
src: props.avatarImage,
|
|
6665
6481
|
alt: "User Avatar"
|
|
6666
|
-
}) : /* @__PURE__ */
|
|
6482
|
+
}) : /* @__PURE__ */ import_react32.default.createElement("svg", {
|
|
6667
6483
|
"aria-label": "Avatar Icon",
|
|
6668
6484
|
className: "hawa-absolute hawa--left-1 hawa-h-10 hawa-w-10 hawa-text-gray-400",
|
|
6669
6485
|
fill: "currentColor",
|
|
6670
6486
|
viewBox: "0 0 20 20"
|
|
6671
|
-
}, /* @__PURE__ */
|
|
6487
|
+
}, /* @__PURE__ */ import_react32.default.createElement("path", {
|
|
6672
6488
|
fillRule: "evenodd",
|
|
6673
6489
|
d: "M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",
|
|
6674
6490
|
clipRule: "evenodd"
|
|
6675
6491
|
})))
|
|
6676
|
-
}))), /* @__PURE__ */
|
|
6492
|
+
}))), /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6677
6493
|
className: cn("hawa-fixed hawa-z-40 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all", design === "floating" ? isRTL ? "hawa-right-5 hawa-top-5" : "hawa-bottom-5 hawa-left-5 hawa-top-5" : isRTL ? "hawa-right-0 hawa-top-0 hawa-h-full" : "hawa-left-0 hawa-top-0 hawa-h-full"),
|
|
6678
6494
|
style: {
|
|
6679
6495
|
width: size > 600 ? openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "".concat(drawerSizeStyle["closed"][drawerSize], "px") : openSideMenu ? "".concat(drawerSizeStyle["opened"][drawerSize], "px") : "0px"
|
|
@@ -6690,27 +6506,27 @@ var AppLayout = function(_param) {
|
|
|
6690
6506
|
}
|
|
6691
6507
|
},
|
|
6692
6508
|
ref: ref
|
|
6693
|
-
}, /* @__PURE__ */
|
|
6509
|
+
}, /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6694
6510
|
onClick: props.onLogoClick,
|
|
6695
6511
|
dir: direction,
|
|
6696
6512
|
className: cn("hawa-fixed hawa-z-50 hawa-mb-2 hawa-flex hawa-h-14 hawa-w-full hawa-flex-row hawa-items-center hawa-justify-center hawa-bg-primary-foreground hawa-transition-all", props.onLogoClick && "hawa-cursor-pointer"),
|
|
6697
6513
|
style: {
|
|
6698
6514
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6699
6515
|
}
|
|
6700
|
-
}, /* @__PURE__ */
|
|
6516
|
+
}, /* @__PURE__ */ import_react32.default.createElement("img", {
|
|
6701
6517
|
className: cn("hawa-h-9 hawa-opacity-0 hawa-transition-all", !openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
6702
6518
|
src: props.logoLink
|
|
6703
|
-
}), size > 600 ? /* @__PURE__ */
|
|
6519
|
+
}), size > 600 ? /* @__PURE__ */ import_react32.default.createElement("img", {
|
|
6704
6520
|
className: cn("hawa-fixed hawa-h-9 hawa-transition-all", // isRTL ? "right-2.5" : "left-2.5",
|
|
6705
6521
|
design === "floating" ? isRTL ? "hawa-right-7.5 hawa-top-7" : "hawa-left-7.5 hawa-top-7" : isRTL ? "hawa-right-2.5 hawa-top-2.5" : "hawa-left-2.5 hawa-top-2.5", openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100"),
|
|
6706
6522
|
src: props.logoSymbol
|
|
6707
|
-
}) : null), /* @__PURE__ */
|
|
6523
|
+
}) : null), /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6708
6524
|
className: cn("hawa-fixed hawa-bottom-14 hawa-bg-primary-foreground hawa-p-0 hawa-py-2 hawa-transition-all", design === "floating" ? "hawa-top-[76px]" : "hawa-top-14", openSideMenu ? "hawa-overflow-auto" : "hawa-overflow-hidden"),
|
|
6709
6525
|
style: {
|
|
6710
6526
|
height: design === "floating" ? "calc(100% - 152px)" : "calc(100% - 112px)",
|
|
6711
6527
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6712
6528
|
}
|
|
6713
|
-
}, /* @__PURE__ */
|
|
6529
|
+
}, /* @__PURE__ */ import_react32.default.createElement(SidebarGroup, {
|
|
6714
6530
|
direction: direction,
|
|
6715
6531
|
onItemClick: function(values) {
|
|
6716
6532
|
if (clickedItem) {
|
|
@@ -6729,16 +6545,16 @@ var AppLayout = function(_param) {
|
|
|
6729
6545
|
},
|
|
6730
6546
|
isOpen: openSideMenu,
|
|
6731
6547
|
items: props.drawerItems
|
|
6732
|
-
})), /* @__PURE__ */
|
|
6548
|
+
})), /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6733
6549
|
className: cn("hawa-fixed hawa-flex hawa-h-14 hawa-w-full hawa-items-center hawa-justify-center hawa-gap-2 hawa-overflow-clip hawa-bg-primary-foreground hawa-transition-all", direction === "rtl" ? "hawa-flex-row-reverse" : "hawa-flex-row", design === "floating" ? "hawa-bottom-5" : "hawa-bottom-0"),
|
|
6734
6550
|
style: {
|
|
6735
6551
|
width: size > 600 ? "".concat(openSideMenu ? openDrawerWidth : 56, "px") : "".concat(openSideMenu ? openDrawerWidth : 0, "px")
|
|
6736
6552
|
}
|
|
6737
|
-
}, DrawerFooterActions && openSideMenu ? /* @__PURE__ */
|
|
6553
|
+
}, DrawerFooterActions && openSideMenu ? /* @__PURE__ */ import_react32.default.createElement(import_react32.default.Fragment, null, DrawerFooterActions) : null, size > 600 && openSideMenu ? /* @__PURE__ */ import_react32.default.createElement(Tooltip, {
|
|
6738
6554
|
side: "left",
|
|
6739
6555
|
delayDuration: 500,
|
|
6740
6556
|
content: keepOpen ? ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.collapseSidebar) || "Collapse Sidebar" : ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.expandSidebar) || "Expand Sidebar"
|
|
6741
|
-
}, /* @__PURE__ */
|
|
6557
|
+
}, /* @__PURE__ */ import_react32.default.createElement(Button, {
|
|
6742
6558
|
variant: "light",
|
|
6743
6559
|
onClick: function() {
|
|
6744
6560
|
var newKeepOpenState = !keepOpen;
|
|
@@ -6748,15 +6564,15 @@ var AppLayout = function(_param) {
|
|
|
6748
6564
|
setKeepOpen(newKeepOpenState);
|
|
6749
6565
|
},
|
|
6750
6566
|
size: "smallIcon"
|
|
6751
|
-
}, /* @__PURE__ */
|
|
6567
|
+
}, /* @__PURE__ */ import_react32.default.createElement("svg", {
|
|
6752
6568
|
className: cn("hawa-h-6 hawa-w-6 hawa-shrink-0 hawa-text-primary hawa-transition-all disabled:hawa-bg-gray-200 ", keepOpen ? isRTL ? "hawa--rotate-90" : "hawa-rotate-90" : isRTL ? "hawa-rotate-90" : "hawa--rotate-90"),
|
|
6753
6569
|
fill: "currentColor",
|
|
6754
6570
|
viewBox: "0 0 20 20"
|
|
6755
|
-
}, /* @__PURE__ */
|
|
6571
|
+
}, /* @__PURE__ */ import_react32.default.createElement("path", {
|
|
6756
6572
|
fillRule: "evenodd",
|
|
6757
6573
|
d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
|
|
6758
6574
|
clipRule: "evenodd"
|
|
6759
|
-
})))) : null)), /* @__PURE__ */
|
|
6575
|
+
})))) : null)), /* @__PURE__ */ import_react32.default.createElement("div", {
|
|
6760
6576
|
className: "hawa-fixed hawa-overflow-y-auto hawa-transition-all",
|
|
6761
6577
|
style: design === "floating" ? isRTL ? {
|
|
6762
6578
|
height: "calc(100% - ".concat(props.topBar ? "56" : "0", "px)"),
|
|
@@ -6782,22 +6598,22 @@ var AppLayout = function(_param) {
|
|
|
6782
6598
|
}, props.children));
|
|
6783
6599
|
};
|
|
6784
6600
|
// components/layout/Copyrights.tsx
|
|
6785
|
-
var
|
|
6601
|
+
var import_react33 = __toESM(require("react"));
|
|
6786
6602
|
var Copyrights = function(props) {
|
|
6787
|
-
return /* @__PURE__ */
|
|
6603
|
+
return /* @__PURE__ */ import_react33.default.createElement("div", {
|
|
6788
6604
|
className: "hawa-my-2 hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-1 hawa-text-xs hawa-text-gray-400"
|
|
6789
|
-
}, props.withLogo ? /* @__PURE__ */
|
|
6605
|
+
}, props.withLogo ? /* @__PURE__ */ import_react33.default.createElement("a", {
|
|
6790
6606
|
href: props.onLogoClicked
|
|
6791
|
-
}, /* @__PURE__ */
|
|
6607
|
+
}, /* @__PURE__ */ import_react33.default.createElement("div", {
|
|
6792
6608
|
className: "hawa-cursor-pointer"
|
|
6793
|
-
}, /* @__PURE__ */
|
|
6609
|
+
}, /* @__PURE__ */ import_react33.default.createElement("image", {
|
|
6794
6610
|
href: props.logoURL,
|
|
6795
6611
|
width: 100,
|
|
6796
6612
|
height: 50
|
|
6797
|
-
}))) : null, /* @__PURE__ */
|
|
6613
|
+
}))) : null, /* @__PURE__ */ import_react33.default.createElement("div", null, props.version), props.credits ? props.credits : null);
|
|
6798
6614
|
};
|
|
6799
6615
|
// components/layout/Navbar.tsx
|
|
6800
|
-
var
|
|
6616
|
+
var import_react34 = __toESM(require("react"));
|
|
6801
6617
|
// components/elements/Collapsible.tsx
|
|
6802
6618
|
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
|
6803
6619
|
var Collapsible = CollapsiblePrimitive.Root;
|
|
@@ -6805,68 +6621,129 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
6805
6621
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
6806
6622
|
// components/layout/Navbar.tsx
|
|
6807
6623
|
var Navbar = function(props) {
|
|
6808
|
-
var _ref = _sliced_to_array((0,
|
|
6809
|
-
return /* @__PURE__ */
|
|
6624
|
+
var _ref = _sliced_to_array((0, import_react34.useState)(false), 2), isOpen = _ref[0], setIsOpen = _ref[1];
|
|
6625
|
+
return /* @__PURE__ */ import_react34.default.createElement("nav", {
|
|
6810
6626
|
className: "hawa-bg-gray-800 hawa-p-4 hawa-transition-all"
|
|
6811
|
-
}, /* @__PURE__ */
|
|
6627
|
+
}, /* @__PURE__ */ import_react34.default.createElement(Collapsible, null, /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6812
6628
|
className: "hawa-container hawa-mx-auto hawa-flex hawa-justify-between hawa-items-center"
|
|
6813
|
-
}, /* @__PURE__ */
|
|
6629
|
+
}, /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6814
6630
|
className: "hawa-flex hawa-items-center"
|
|
6815
|
-
}, /* @__PURE__ */
|
|
6631
|
+
}, /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6816
6632
|
href: "/",
|
|
6817
6633
|
className: "hawa-text-white hawa-text-xl hawa-font-bold"
|
|
6818
|
-
}, "YourLogo")), /* @__PURE__ */
|
|
6634
|
+
}, "YourLogo")), /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6819
6635
|
className: "hawa-hidden hawa-md:hawa-flex hawa-space-x-4"
|
|
6820
|
-
}, /* @__PURE__ */
|
|
6636
|
+
}, /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6821
6637
|
href: "/about",
|
|
6822
6638
|
className: "hawa-text-white"
|
|
6823
|
-
}, "About"), /* @__PURE__ */
|
|
6639
|
+
}, "About"), /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6824
6640
|
href: "/services",
|
|
6825
6641
|
className: "hawa-text-white"
|
|
6826
|
-
}, "Services"), /* @__PURE__ */
|
|
6642
|
+
}, "Services"), /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6827
6643
|
href: "/contact",
|
|
6828
6644
|
className: "hawa-text-white"
|
|
6829
|
-
}, "Contact")), /* @__PURE__ */
|
|
6645
|
+
}, "Contact")), /* @__PURE__ */ import_react34.default.createElement("div", {
|
|
6830
6646
|
className: "hawa-md:hawa-hidden"
|
|
6831
|
-
}, /* @__PURE__ */
|
|
6647
|
+
}, /* @__PURE__ */ import_react34.default.createElement(CollapsibleTrigger2, {
|
|
6832
6648
|
className: "hawa-text-white hawa-p-2",
|
|
6833
6649
|
"aria-label": "Toggle menu"
|
|
6834
|
-
}, /* @__PURE__ */
|
|
6650
|
+
}, /* @__PURE__ */ import_react34.default.createElement("svg", {
|
|
6835
6651
|
className: "hawa-w-6 hawa-h-6",
|
|
6836
6652
|
fill: "none",
|
|
6837
6653
|
stroke: "currentColor",
|
|
6838
6654
|
viewBox: "0 0 24 24",
|
|
6839
6655
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6840
|
-
}, /* @__PURE__ */
|
|
6656
|
+
}, /* @__PURE__ */ import_react34.default.createElement("path", {
|
|
6841
6657
|
strokeLinecap: "round",
|
|
6842
6658
|
strokeLinejoin: "round",
|
|
6843
6659
|
strokeWidth: "2",
|
|
6844
6660
|
d: "M4 6h16M4 12h16m-7 6h7"
|
|
6845
|
-
}))))), /* @__PURE__ */
|
|
6661
|
+
}))))), /* @__PURE__ */ import_react34.default.createElement(CollapsibleContent2, {
|
|
6846
6662
|
className: "hwa-transition-all hawa-fade-in-0 data-[state=open]:hawa-zoom-in-95 data-[state=open]:hawa-animate-in hawa-flex hawa-flex-col hawa-space-y-2 hawa-mt-4"
|
|
6847
|
-
}, /* @__PURE__ */
|
|
6663
|
+
}, /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6848
6664
|
href: "/about",
|
|
6849
6665
|
className: "hawa-text-white hawa-px-2"
|
|
6850
|
-
}, "About"), /* @__PURE__ */
|
|
6666
|
+
}, "About"), /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6851
6667
|
href: "/services",
|
|
6852
6668
|
className: "hawa-text-white hawa-px-2"
|
|
6853
|
-
}, "Services"), /* @__PURE__ */
|
|
6669
|
+
}, "Services"), /* @__PURE__ */ import_react34.default.createElement("a", {
|
|
6854
6670
|
href: "/contact",
|
|
6855
6671
|
className: "hawa-text-white hawa-px-2"
|
|
6856
6672
|
}, "Contact"))));
|
|
6857
6673
|
};
|
|
6858
6674
|
// components/blocks/auth/LoginForm.tsx
|
|
6859
|
-
var
|
|
6675
|
+
var import_react36 = __toESM(require("react"));
|
|
6860
6676
|
var import_react_hook_form = require("react-hook-form");
|
|
6861
6677
|
var import_zod = require("@hookform/resolvers/zod");
|
|
6862
6678
|
var import_libphonenumber_js = require("libphonenumber-js");
|
|
6863
6679
|
var z = __toESM(require("zod"));
|
|
6680
|
+
// components/blocks/auth/AuthButtons.tsx
|
|
6681
|
+
var import_react35 = __toESM(require("react"));
|
|
6682
|
+
var AuthButtons = function(props) {
|
|
6683
|
+
var _props_texts, _props_texts1, _props_texts2, _props_texts3, _props_texts4, _props_texts5, _props_texts6;
|
|
6684
|
+
var _props_texts_continueWithGoogle, _props_texts_continueWithGithub, _props_texts_continueWithTwitter, _props_texts_continueWithApple, _props_texts_continueWithMicrosoft, _props_texts_continueWithEmail, _props_texts_continueWithPhone;
|
|
6685
|
+
return /* @__PURE__ */ import_react35.default.createElement("div", {
|
|
6686
|
+
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
6687
|
+
}, props.viaGoogle && /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
6688
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6689
|
+
variant: "outline",
|
|
6690
|
+
onClick: props.handleGoogle
|
|
6691
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.google, {
|
|
6692
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6693
|
+
}), (_props_texts_continueWithGoogle = (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.continueWithGoogle) !== null && _props_texts_continueWithGoogle !== void 0 ? _props_texts_continueWithGoogle : "Continue With Google"), props.viaGithub && /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
6694
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6695
|
+
variant: "outline",
|
|
6696
|
+
onClick: props.handleGithub
|
|
6697
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.github, {
|
|
6698
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6699
|
+
}), (_props_texts_continueWithGithub = (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.continueWithGithub) !== null && _props_texts_continueWithGithub !== void 0 ? _props_texts_continueWithGithub : "Continue With Github"), props.viaTwitter && /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
6700
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6701
|
+
variant: "outline",
|
|
6702
|
+
onClick: props.handleTwitter
|
|
6703
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.twitter, {
|
|
6704
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6705
|
+
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
6706
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6707
|
+
variant: "outline",
|
|
6708
|
+
onClick: props.handleApple
|
|
6709
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.apple, {
|
|
6710
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6711
|
+
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
6712
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6713
|
+
variant: "outline",
|
|
6714
|
+
onClick: props.handleMicrosoft
|
|
6715
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.microsoft, {
|
|
6716
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6717
|
+
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
6718
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6719
|
+
variant: "outline",
|
|
6720
|
+
onClick: props.handleEmail
|
|
6721
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.mail, {
|
|
6722
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6723
|
+
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react35.default.createElement(Button, {
|
|
6724
|
+
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
6725
|
+
variant: "outline",
|
|
6726
|
+
onClick: props.handlePhone
|
|
6727
|
+
}, /* @__PURE__ */ import_react35.default.createElement(Logos.phone, {
|
|
6728
|
+
className: "hawa-h-4 hawa-w-4"
|
|
6729
|
+
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"));
|
|
6730
|
+
};
|
|
6731
|
+
// components/blocks/auth/LoginForm.tsx
|
|
6864
6732
|
var LoginForm = function(_param) {
|
|
6865
6733
|
var loginType = _param.loginType, texts = _param.texts, _param_passwordLength = _param.passwordLength, passwordLength = _param_passwordLength === void 0 ? 8 : _param_passwordLength, props = _object_without_properties(_param, [
|
|
6866
6734
|
"loginType",
|
|
6867
6735
|
"texts",
|
|
6868
6736
|
"passwordLength"
|
|
6869
6737
|
]);
|
|
6738
|
+
var thirdPartyAuthTexts = {
|
|
6739
|
+
continueWithGoogle: texts === null || texts === void 0 ? void 0 : texts.continueWithGoogle,
|
|
6740
|
+
continueWithTwitter: texts === null || texts === void 0 ? void 0 : texts.continueWithTwitter,
|
|
6741
|
+
continueWithApple: texts === null || texts === void 0 ? void 0 : texts.continueWithApple,
|
|
6742
|
+
continueWithMicrosoft: texts === null || texts === void 0 ? void 0 : texts.continueWithMicrosoft,
|
|
6743
|
+
continueWithGithub: texts === null || texts === void 0 ? void 0 : texts.continueWithGithub,
|
|
6744
|
+
continueWithEmail: texts === null || texts === void 0 ? void 0 : texts.continueWithEmail,
|
|
6745
|
+
continueWithPhone: texts === null || texts === void 0 ? void 0 : texts.continueWithPhone
|
|
6746
|
+
};
|
|
6870
6747
|
var formSchema;
|
|
6871
6748
|
if (loginType === "email") {
|
|
6872
6749
|
formSchema = z.object({
|
|
@@ -6935,13 +6812,13 @@ var LoginForm = function(_param) {
|
|
|
6935
6812
|
var renderFields = function() {
|
|
6936
6813
|
switch(loginType){
|
|
6937
6814
|
case "email":
|
|
6938
|
-
return /* @__PURE__ */
|
|
6815
|
+
return /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_react_hook_form.Controller, {
|
|
6939
6816
|
control: control,
|
|
6940
6817
|
name: "email",
|
|
6941
6818
|
render: function(param) {
|
|
6942
6819
|
var field = param.field;
|
|
6943
6820
|
var _formState_errors_email;
|
|
6944
|
-
return /* @__PURE__ */
|
|
6821
|
+
return /* @__PURE__ */ import_react36.default.createElement(Input, _object_spread({
|
|
6945
6822
|
width: "full",
|
|
6946
6823
|
autoComplete: "email",
|
|
6947
6824
|
label: (texts === null || texts === void 0 ? void 0 : texts.emailLabel) || "Email",
|
|
@@ -6949,13 +6826,13 @@ var LoginForm = function(_param) {
|
|
|
6949
6826
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.emailPlaceholder) || "contact@sikka.io"
|
|
6950
6827
|
}, field));
|
|
6951
6828
|
}
|
|
6952
|
-
}), /* @__PURE__ */
|
|
6829
|
+
}), /* @__PURE__ */ import_react36.default.createElement("div", null, /* @__PURE__ */ import_react36.default.createElement(import_react_hook_form.Controller, {
|
|
6953
6830
|
control: control,
|
|
6954
6831
|
name: "password",
|
|
6955
6832
|
render: function(param) {
|
|
6956
6833
|
var field = param.field;
|
|
6957
6834
|
var _formState_errors_password;
|
|
6958
|
-
return /* @__PURE__ */
|
|
6835
|
+
return /* @__PURE__ */ import_react36.default.createElement(Input, _object_spread({
|
|
6959
6836
|
width: "full",
|
|
6960
6837
|
autoComplete: "current-password",
|
|
6961
6838
|
type: "password",
|
|
@@ -6964,18 +6841,18 @@ var LoginForm = function(_param) {
|
|
|
6964
6841
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
6965
6842
|
}, field));
|
|
6966
6843
|
}
|
|
6967
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
6844
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
6968
6845
|
onClick: props.onForgotPassword,
|
|
6969
6846
|
className: "hawa-mb-3 hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
6970
6847
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
6971
6848
|
case "username":
|
|
6972
|
-
return /* @__PURE__ */
|
|
6849
|
+
return /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_react_hook_form.Controller, {
|
|
6973
6850
|
control: control,
|
|
6974
6851
|
name: "username",
|
|
6975
6852
|
render: function(param) {
|
|
6976
6853
|
var field = param.field;
|
|
6977
6854
|
var _formState_errors_username;
|
|
6978
|
-
return /* @__PURE__ */
|
|
6855
|
+
return /* @__PURE__ */ import_react36.default.createElement(Input, _object_spread({
|
|
6979
6856
|
width: "full",
|
|
6980
6857
|
autoComplete: "username",
|
|
6981
6858
|
label: (texts === null || texts === void 0 ? void 0 : texts.usernameLabel) || "Username",
|
|
@@ -6983,13 +6860,13 @@ var LoginForm = function(_param) {
|
|
|
6983
6860
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.usernamePlaceholder) || "sikka_sa"
|
|
6984
6861
|
}, field));
|
|
6985
6862
|
}
|
|
6986
|
-
}), /* @__PURE__ */
|
|
6863
|
+
}), /* @__PURE__ */ import_react36.default.createElement("div", null, /* @__PURE__ */ import_react36.default.createElement(import_react_hook_form.Controller, {
|
|
6987
6864
|
control: control,
|
|
6988
6865
|
name: "password",
|
|
6989
6866
|
render: function(param) {
|
|
6990
6867
|
var field = param.field;
|
|
6991
6868
|
var _formState_errors_password;
|
|
6992
|
-
return /* @__PURE__ */
|
|
6869
|
+
return /* @__PURE__ */ import_react36.default.createElement(Input, _object_spread({
|
|
6993
6870
|
width: "full",
|
|
6994
6871
|
autoComplete: "current-password",
|
|
6995
6872
|
type: "password",
|
|
@@ -6998,18 +6875,18 @@ var LoginForm = function(_param) {
|
|
|
6998
6875
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
6999
6876
|
}, field));
|
|
7000
6877
|
}
|
|
7001
|
-
}), !props.withoutResetPassword && /* @__PURE__ */
|
|
6878
|
+
}), !props.withoutResetPassword && /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7002
6879
|
onClick: props.onForgotPassword,
|
|
7003
6880
|
className: "hawa-mb-3 hawa-mt-2 hawa-w-fit hawa-cursor-pointer hawa-text-xs dark:hawa-text-gray-300"
|
|
7004
6881
|
}, (texts === null || texts === void 0 ? void 0 : texts.forgotPassword) || "Forgot Password?")));
|
|
7005
6882
|
case "phone":
|
|
7006
|
-
return /* @__PURE__ */
|
|
6883
|
+
return /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_react_hook_form.Controller, {
|
|
7007
6884
|
control: control,
|
|
7008
6885
|
name: "phone",
|
|
7009
6886
|
render: function(param) {
|
|
7010
6887
|
var field = param.field;
|
|
7011
6888
|
var _formState_errors_phone;
|
|
7012
|
-
return /* @__PURE__ */
|
|
6889
|
+
return /* @__PURE__ */ import_react36.default.createElement(PhoneInput, {
|
|
7013
6890
|
label: texts === null || texts === void 0 ? void 0 : texts.phoneLabel,
|
|
7014
6891
|
helperText: (_formState_errors_phone = formState.errors.phone) === null || _formState_errors_phone === void 0 ? void 0 : _formState_errors_phone.message,
|
|
7015
6892
|
preferredCountry: {
|
|
@@ -7022,13 +6899,13 @@ var LoginForm = function(_param) {
|
|
|
7022
6899
|
}
|
|
7023
6900
|
}));
|
|
7024
6901
|
case "link":
|
|
7025
|
-
return /* @__PURE__ */
|
|
6902
|
+
return /* @__PURE__ */ import_react36.default.createElement(import_react36.default.Fragment, null, /* @__PURE__ */ import_react36.default.createElement(import_react_hook_form.Controller, {
|
|
7026
6903
|
control: control,
|
|
7027
6904
|
name: "email",
|
|
7028
6905
|
render: function(param) {
|
|
7029
6906
|
var field = param.field;
|
|
7030
6907
|
var _formState_errors_email;
|
|
7031
|
-
return /* @__PURE__ */
|
|
6908
|
+
return /* @__PURE__ */ import_react36.default.createElement(Input, _object_spread({
|
|
7032
6909
|
width: "full",
|
|
7033
6910
|
autoComplete: "email",
|
|
7034
6911
|
label: (texts === null || texts === void 0 ? void 0 : texts.emailLabel) || "Email",
|
|
@@ -7041,17 +6918,17 @@ var LoginForm = function(_param) {
|
|
|
7041
6918
|
break;
|
|
7042
6919
|
}
|
|
7043
6920
|
};
|
|
7044
|
-
return /* @__PURE__ */
|
|
6921
|
+
return /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7045
6922
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7046
|
-
}, /* @__PURE__ */
|
|
6923
|
+
}, /* @__PURE__ */ import_react36.default.createElement(Card, {
|
|
7047
6924
|
dir: props.direction
|
|
7048
|
-
}, /* @__PURE__ */
|
|
6925
|
+
}, /* @__PURE__ */ import_react36.default.createElement(CardContent, {
|
|
7049
6926
|
headless: true
|
|
7050
|
-
}, props.showError && /* @__PURE__ */
|
|
6927
|
+
}, props.showError && /* @__PURE__ */ import_react36.default.createElement(Alert, {
|
|
7051
6928
|
title: props.errorTitle,
|
|
7052
6929
|
text: props.errorText,
|
|
7053
6930
|
severity: "error"
|
|
7054
|
-
}), /* @__PURE__ */
|
|
6931
|
+
}), /* @__PURE__ */ import_react36.default.createElement("form", {
|
|
7055
6932
|
className: "hawa-flex hawa-flex-col hawa-gap-4",
|
|
7056
6933
|
onSubmit: handleSubmit(function(e) {
|
|
7057
6934
|
if (props.onLogin) {
|
|
@@ -7060,42 +6937,26 @@ var LoginForm = function(_param) {
|
|
|
7060
6937
|
console.log("Form is submitted but onLogin prop is missing");
|
|
7061
6938
|
}
|
|
7062
6939
|
})
|
|
7063
|
-
}, renderFields(), /* @__PURE__ */
|
|
6940
|
+
}, renderFields(), /* @__PURE__ */ import_react36.default.createElement(Button, {
|
|
7064
6941
|
className: "hawa-mt-0 hawa-w-full",
|
|
7065
6942
|
type: "submit",
|
|
7066
6943
|
isLoading: props.isLoading
|
|
7067
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */
|
|
6944
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login"), props.additionalButtons, props.allowRegister && /* @__PURE__ */ import_react36.default.createElement("div", {
|
|
7068
6945
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal hawa-select-none dark:hawa-text-gray-300"
|
|
7069
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */
|
|
6946
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.newUserText) || "New user?", " ", /* @__PURE__ */ import_react36.default.createElement("span", {
|
|
7070
6947
|
onClick: props.onRouteToRegister,
|
|
7071
6948
|
className: "clickable-link"
|
|
7072
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
6949
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.createAccount) || "Create Account")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react36.default.createElement(CardFooter, {
|
|
7073
6950
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7074
|
-
},
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
}),
|
|
7083
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7084
|
-
variant: "outline",
|
|
7085
|
-
onClick: props.onGithubLogin
|
|
7086
|
-
}, props.isGithubLoading ? /* @__PURE__ */ import_react39.default.createElement(Loading, {
|
|
7087
|
-
size: "button"
|
|
7088
|
-
}) : /* @__PURE__ */ import_react39.default.createElement(Logos.github, {
|
|
7089
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7090
|
-
}), !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaGithubLabel)), props.viaTwitter && /* @__PURE__ */ import_react39.default.createElement(Button, {
|
|
7091
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7092
|
-
variant: "outline",
|
|
7093
|
-
onClick: props.onTwitterLogin
|
|
7094
|
-
}, props.isTwitterLoading ? /* @__PURE__ */ import_react39.default.createElement(Loading, {
|
|
7095
|
-
size: "button"
|
|
7096
|
-
}) : /* @__PURE__ */ import_react39.default.createElement(Logos.twitter, {
|
|
7097
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7098
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.loginViaTwitterLabel))) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react39.default.createElement(InterfaceSettings, {
|
|
6951
|
+
}, /* @__PURE__ */ import_react36.default.createElement(AuthButtons, {
|
|
6952
|
+
texts: thirdPartyAuthTexts,
|
|
6953
|
+
viaGoogle: props.viaGoogle,
|
|
6954
|
+
viaGithub: props.viaGithub,
|
|
6955
|
+
viaTwitter: props.viaTwitter,
|
|
6956
|
+
handleGoogle: props.onGoogleLogin,
|
|
6957
|
+
handleGithub: props.onGithubLogin,
|
|
6958
|
+
handleTwitter: props.onTwitterLogin
|
|
6959
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react36.default.createElement(InterfaceSettings, {
|
|
7099
6960
|
currentColorMode: props.currentColorMode,
|
|
7100
6961
|
currentLanguage: props.currentLanguage,
|
|
7101
6962
|
handleColorMode: props.handleColorMode,
|
|
@@ -7103,7 +6964,7 @@ var LoginForm = function(_param) {
|
|
|
7103
6964
|
}));
|
|
7104
6965
|
};
|
|
7105
6966
|
// components/blocks/auth/RegisterForm.tsx
|
|
7106
|
-
var
|
|
6967
|
+
var import_react37 = __toESM(require("react"));
|
|
7107
6968
|
var import_react_hook_form2 = require("react-hook-form");
|
|
7108
6969
|
var import_zod2 = require("@hookform/resolvers/zod");
|
|
7109
6970
|
var z2 = __toESM(require("zod"));
|
|
@@ -7111,6 +6972,15 @@ var RegisterForm = function(_param) {
|
|
|
7111
6972
|
var texts = _param.texts, props = _object_without_properties(_param, [
|
|
7112
6973
|
"texts"
|
|
7113
6974
|
]);
|
|
6975
|
+
var thirdPartyAuthTexts = {
|
|
6976
|
+
continueWithGoogle: texts === null || texts === void 0 ? void 0 : texts.continueWithGoogle,
|
|
6977
|
+
continueWithTwitter: texts === null || texts === void 0 ? void 0 : texts.continueWithTwitter,
|
|
6978
|
+
continueWithApple: texts === null || texts === void 0 ? void 0 : texts.continueWithApple,
|
|
6979
|
+
continueWithMicrosoft: texts === null || texts === void 0 ? void 0 : texts.continueWithMicrosoft,
|
|
6980
|
+
continueWithGithub: texts === null || texts === void 0 ? void 0 : texts.continueWithGithub,
|
|
6981
|
+
continueWithEmail: texts === null || texts === void 0 ? void 0 : texts.continueWithEmail,
|
|
6982
|
+
continueWithPhone: texts === null || texts === void 0 ? void 0 : texts.continueWithPhone
|
|
6983
|
+
};
|
|
7114
6984
|
var methods = (0, import_react_hook_form2.useForm)();
|
|
7115
6985
|
var fieldSchemas = {};
|
|
7116
6986
|
props.registerFields.forEach(function(field) {
|
|
@@ -7179,17 +7049,17 @@ var RegisterForm = function(_param) {
|
|
|
7179
7049
|
var _ref = (0, import_react_hook_form2.useForm)({
|
|
7180
7050
|
resolver: (0, import_zod2.zodResolver)(formSchema)
|
|
7181
7051
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7182
|
-
return /* @__PURE__ */
|
|
7052
|
+
return /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7183
7053
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7184
|
-
}, /* @__PURE__ */
|
|
7054
|
+
}, /* @__PURE__ */ import_react37.default.createElement(Card, {
|
|
7185
7055
|
dir: props.direction
|
|
7186
|
-
}, /* @__PURE__ */
|
|
7056
|
+
}, /* @__PURE__ */ import_react37.default.createElement(CardContent, {
|
|
7187
7057
|
headless: true
|
|
7188
|
-
}, /* @__PURE__ */
|
|
7058
|
+
}, /* @__PURE__ */ import_react37.default.createElement("div", null, props.showError && /* @__PURE__ */ import_react37.default.createElement(Alert, {
|
|
7189
7059
|
title: props.errorTitle,
|
|
7190
7060
|
text: props.errorText,
|
|
7191
7061
|
severity: "error"
|
|
7192
|
-
}), /* @__PURE__ */
|
|
7062
|
+
}), /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.FormProvider, _object_spread({}, methods), /* @__PURE__ */ import_react37.default.createElement("form", {
|
|
7193
7063
|
onSubmit: handleSubmit(function(e) {
|
|
7194
7064
|
if (props.onRegister) {
|
|
7195
7065
|
return props.onRegister(e);
|
|
@@ -7198,18 +7068,18 @@ var RegisterForm = function(_param) {
|
|
|
7198
7068
|
}
|
|
7199
7069
|
}),
|
|
7200
7070
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7201
|
-
}, /* @__PURE__ */
|
|
7071
|
+
}, /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7202
7072
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7203
7073
|
}, props.registerFields.map(function(fld, i) {
|
|
7204
7074
|
if (fld === "fullname") {
|
|
7205
|
-
return /* @__PURE__ */
|
|
7075
|
+
return /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7206
7076
|
key: i,
|
|
7207
7077
|
control: control,
|
|
7208
7078
|
name: "fullName",
|
|
7209
7079
|
render: function(param) {
|
|
7210
7080
|
var field = param.field;
|
|
7211
7081
|
var _formState_errors_fullName;
|
|
7212
|
-
return /* @__PURE__ */
|
|
7082
|
+
return /* @__PURE__ */ import_react37.default.createElement(Input, _object_spread({
|
|
7213
7083
|
width: "full",
|
|
7214
7084
|
label: texts === null || texts === void 0 ? void 0 : texts.fullNameLabel,
|
|
7215
7085
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.fullNamePlaceholder,
|
|
@@ -7219,14 +7089,14 @@ var RegisterForm = function(_param) {
|
|
|
7219
7089
|
});
|
|
7220
7090
|
}
|
|
7221
7091
|
if (fld === "email") {
|
|
7222
|
-
return /* @__PURE__ */
|
|
7092
|
+
return /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7223
7093
|
key: i,
|
|
7224
7094
|
control: control,
|
|
7225
7095
|
name: "email",
|
|
7226
7096
|
render: function(param) {
|
|
7227
7097
|
var field = param.field;
|
|
7228
7098
|
var _formState_errors_email;
|
|
7229
|
-
return /* @__PURE__ */
|
|
7099
|
+
return /* @__PURE__ */ import_react37.default.createElement(Input, _object_spread({
|
|
7230
7100
|
width: "full",
|
|
7231
7101
|
autoComplete: "email",
|
|
7232
7102
|
label: texts === null || texts === void 0 ? void 0 : texts.emailLabel,
|
|
@@ -7237,14 +7107,14 @@ var RegisterForm = function(_param) {
|
|
|
7237
7107
|
});
|
|
7238
7108
|
}
|
|
7239
7109
|
if (fld === "username") {
|
|
7240
|
-
return /* @__PURE__ */
|
|
7110
|
+
return /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7241
7111
|
key: i,
|
|
7242
7112
|
control: control,
|
|
7243
7113
|
name: "username",
|
|
7244
7114
|
render: function(param) {
|
|
7245
7115
|
var field = param.field;
|
|
7246
7116
|
var _formState_errors_username;
|
|
7247
|
-
return /* @__PURE__ */
|
|
7117
|
+
return /* @__PURE__ */ import_react37.default.createElement(Input, _object_spread({
|
|
7248
7118
|
width: "full",
|
|
7249
7119
|
autoComplete: "username",
|
|
7250
7120
|
label: texts === null || texts === void 0 ? void 0 : texts.usernameLabel,
|
|
@@ -7254,13 +7124,13 @@ var RegisterForm = function(_param) {
|
|
|
7254
7124
|
}
|
|
7255
7125
|
});
|
|
7256
7126
|
}
|
|
7257
|
-
})), /* @__PURE__ */
|
|
7127
|
+
})), /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7258
7128
|
control: control,
|
|
7259
7129
|
name: "password",
|
|
7260
7130
|
render: function(param) {
|
|
7261
7131
|
var field = param.field;
|
|
7262
7132
|
var _formState_errors_password;
|
|
7263
|
-
return /* @__PURE__ */
|
|
7133
|
+
return /* @__PURE__ */ import_react37.default.createElement(Input, _object_spread({
|
|
7264
7134
|
width: "full",
|
|
7265
7135
|
type: "password",
|
|
7266
7136
|
autoComplete: "new-password",
|
|
@@ -7269,13 +7139,13 @@ var RegisterForm = function(_param) {
|
|
|
7269
7139
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7270
7140
|
}, field));
|
|
7271
7141
|
}
|
|
7272
|
-
}), /* @__PURE__ */
|
|
7142
|
+
}), /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7273
7143
|
control: control,
|
|
7274
7144
|
name: "confirm_password",
|
|
7275
7145
|
render: function(param) {
|
|
7276
7146
|
var field = param.field;
|
|
7277
7147
|
var _formState_errors_confirm_password;
|
|
7278
|
-
return /* @__PURE__ */
|
|
7148
|
+
return /* @__PURE__ */ import_react37.default.createElement(Input, _object_spread({
|
|
7279
7149
|
width: "full",
|
|
7280
7150
|
type: "password",
|
|
7281
7151
|
autoComplete: "new-password",
|
|
@@ -7284,25 +7154,25 @@ var RegisterForm = function(_param) {
|
|
|
7284
7154
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
7285
7155
|
}, field));
|
|
7286
7156
|
}
|
|
7287
|
-
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */
|
|
7157
|
+
}), props.additionalInputs, props.showRefCode && /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7288
7158
|
control: control,
|
|
7289
7159
|
name: "refCode",
|
|
7290
7160
|
render: function(param) {
|
|
7291
7161
|
var field = param.field;
|
|
7292
7162
|
var _formState_errors_refCode;
|
|
7293
|
-
return /* @__PURE__ */
|
|
7163
|
+
return /* @__PURE__ */ import_react37.default.createElement(Input, _object_spread({
|
|
7294
7164
|
width: "full",
|
|
7295
7165
|
label: texts === null || texts === void 0 ? void 0 : texts.refCode,
|
|
7296
7166
|
placeholder: (texts === null || texts === void 0 ? void 0 : texts.refCodePlaceholder) || "Enter the referral code",
|
|
7297
7167
|
helperText: (_formState_errors_refCode = formState.errors.refCode) === null || _formState_errors_refCode === void 0 ? void 0 : _formState_errors_refCode.message
|
|
7298
7168
|
}, field));
|
|
7299
7169
|
}
|
|
7300
|
-
}), props.showUserSource && /* @__PURE__ */
|
|
7170
|
+
}), props.showUserSource && /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7301
7171
|
control: control,
|
|
7302
7172
|
name: "reference",
|
|
7303
7173
|
render: function(param) {
|
|
7304
7174
|
var field = param.field;
|
|
7305
|
-
return /* @__PURE__ */
|
|
7175
|
+
return /* @__PURE__ */ import_react37.default.createElement(Select, {
|
|
7306
7176
|
label: (texts === null || texts === void 0 ? void 0 : texts.userReferenceLabel) || "How did you learn about us?",
|
|
7307
7177
|
placeholder: texts === null || texts === void 0 ? void 0 : texts.userReferencePlaceholder,
|
|
7308
7178
|
isCreatable: false,
|
|
@@ -7315,74 +7185,58 @@ var RegisterForm = function(_param) {
|
|
|
7315
7185
|
}
|
|
7316
7186
|
});
|
|
7317
7187
|
}
|
|
7318
|
-
}), /* @__PURE__ */
|
|
7188
|
+
}), /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7319
7189
|
className: "hawa-flex hawa-flex-col hawa-gap-3"
|
|
7320
|
-
}, props.showTermsOption && /* @__PURE__ */
|
|
7190
|
+
}, props.showTermsOption && /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7321
7191
|
control: control,
|
|
7322
7192
|
name: "terms_accepted",
|
|
7323
7193
|
render: function(param) {
|
|
7324
7194
|
var field = param.field;
|
|
7325
7195
|
var _formState_errors_terms_accepted_message, _formState_errors_terms_accepted;
|
|
7326
|
-
return /* @__PURE__ */
|
|
7196
|
+
return /* @__PURE__ */ import_react37.default.createElement(Checkbox, {
|
|
7327
7197
|
id: "terms_accepted",
|
|
7328
7198
|
helperText: (_formState_errors_terms_accepted = formState.errors.terms_accepted) === null || _formState_errors_terms_accepted === void 0 ? void 0 : (_formState_errors_terms_accepted_message = _formState_errors_terms_accepted.message) === null || _formState_errors_terms_accepted_message === void 0 ? void 0 : _formState_errors_terms_accepted_message.toString(),
|
|
7329
7199
|
onCheckedChange: function(e) {
|
|
7330
7200
|
return field.onChange(e);
|
|
7331
7201
|
},
|
|
7332
|
-
label: /* @__PURE__ */
|
|
7202
|
+
label: /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7333
7203
|
className: "hawa-flex hawa-flex-row hawa-gap-0.5"
|
|
7334
|
-
}, /* @__PURE__ */
|
|
7204
|
+
}, /* @__PURE__ */ import_react37.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.iAcceptText), " ", /* @__PURE__ */ import_react37.default.createElement(StopPropagationWrapper, null, /* @__PURE__ */ import_react37.default.createElement("a", {
|
|
7335
7205
|
onClick: props.onRouteToTOS,
|
|
7336
7206
|
className: "clickable-link"
|
|
7337
7207
|
}, texts === null || texts === void 0 ? void 0 : texts.termsText)))
|
|
7338
7208
|
});
|
|
7339
7209
|
}
|
|
7340
|
-
}), props.showNewsletterOption && /* @__PURE__ */
|
|
7210
|
+
}), props.showNewsletterOption && /* @__PURE__ */ import_react37.default.createElement(import_react_hook_form2.Controller, {
|
|
7341
7211
|
control: control,
|
|
7342
7212
|
name: "newsletter_accepted",
|
|
7343
7213
|
render: function(param) {
|
|
7344
7214
|
var field = param.field;
|
|
7345
|
-
return /* @__PURE__ */
|
|
7215
|
+
return /* @__PURE__ */ import_react37.default.createElement(Checkbox, {
|
|
7346
7216
|
id: "newsletter_accepted",
|
|
7347
7217
|
label: texts === null || texts === void 0 ? void 0 : texts.subscribeToNewsletter,
|
|
7348
7218
|
onCheckedChange: field.onChange
|
|
7349
7219
|
});
|
|
7350
7220
|
}
|
|
7351
|
-
})), /* @__PURE__ */
|
|
7221
|
+
})), /* @__PURE__ */ import_react37.default.createElement(Button, {
|
|
7352
7222
|
isLoading: props.isLoading,
|
|
7353
7223
|
className: "hawa-w-full hawa-mt-4"
|
|
7354
|
-
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */
|
|
7224
|
+
}, texts === null || texts === void 0 ? void 0 : texts.registerText), props.additionalButtons)), /* @__PURE__ */ import_react37.default.createElement("div", {
|
|
7355
7225
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-1 hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-white"
|
|
7356
|
-
}, /* @__PURE__ */
|
|
7226
|
+
}, /* @__PURE__ */ import_react37.default.createElement("span", null, texts === null || texts === void 0 ? void 0 : texts.existingUserText), /* @__PURE__ */ import_react37.default.createElement("span", {
|
|
7357
7227
|
onClick: props.onRouteToLogin,
|
|
7358
7228
|
className: "clickable-link"
|
|
7359
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */
|
|
7229
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.loginText) || "Login")))), props.viaGithub || props.viaGoogle || props.viaTwitter ? /* @__PURE__ */ import_react37.default.createElement(CardFooter, {
|
|
7360
7230
|
className: cn(props.logosOnly ? "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-2" : "hawa-grid hawa-grid-cols-1 hawa-gap-2")
|
|
7361
|
-
},
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
})
|
|
7370
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7371
|
-
variant: "outline",
|
|
7372
|
-
onClick: props.onGithubRegister
|
|
7373
|
-
}, props.isGithubLoading ? /* @__PURE__ */ import_react40.default.createElement(Loading, {
|
|
7374
|
-
size: "button"
|
|
7375
|
-
}) : /* @__PURE__ */ import_react40.default.createElement(Logos.github, {
|
|
7376
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7377
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaGithubLabel)), props.viaTwitter && /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7378
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7379
|
-
variant: "outline",
|
|
7380
|
-
onClick: props.onTwitterRegister
|
|
7381
|
-
}, props.isTwitterLoading ? /* @__PURE__ */ import_react40.default.createElement(Loading, {
|
|
7382
|
-
size: "button"
|
|
7383
|
-
}) : /* @__PURE__ */ import_react40.default.createElement(Logos.twitter, {
|
|
7384
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7385
|
-
}), " ", !props.logosOnly && (texts === null || texts === void 0 ? void 0 : texts.registerViaTwitterLabel))) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react40.default.createElement(InterfaceSettings, {
|
|
7231
|
+
}, /* @__PURE__ */ import_react37.default.createElement(AuthButtons, {
|
|
7232
|
+
texts: thirdPartyAuthTexts,
|
|
7233
|
+
viaGoogle: props.viaGoogle,
|
|
7234
|
+
viaGithub: props.viaGithub,
|
|
7235
|
+
viaTwitter: props.viaTwitter,
|
|
7236
|
+
handleGoogle: props.onGoogleRegister,
|
|
7237
|
+
handleGithub: props.onGithubRegister,
|
|
7238
|
+
handleTwitter: props.onTwitterRegister
|
|
7239
|
+
})) : null), props.handleColorMode && props.handleLanguage && /* @__PURE__ */ import_react37.default.createElement(InterfaceSettings, {
|
|
7386
7240
|
currentColorMode: props.currentColorMode,
|
|
7387
7241
|
currentLanguage: props.currentLanguage,
|
|
7388
7242
|
handleColorMode: props.handleColorMode,
|
|
@@ -7390,65 +7244,39 @@ var RegisterForm = function(_param) {
|
|
|
7390
7244
|
}));
|
|
7391
7245
|
};
|
|
7392
7246
|
// components/blocks/auth/AppLanding.tsx
|
|
7393
|
-
var
|
|
7247
|
+
var import_react38 = __toESM(require("react"));
|
|
7394
7248
|
var AppLanding = function(props) {
|
|
7395
|
-
var _props_texts, _props_texts1
|
|
7396
|
-
|
|
7397
|
-
return /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7249
|
+
var _props_texts, _props_texts1;
|
|
7250
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
7398
7251
|
dir: props.direction
|
|
7399
|
-
}, /* @__PURE__ */
|
|
7252
|
+
}, /* @__PURE__ */ import_react38.default.createElement(Card, null, /* @__PURE__ */ import_react38.default.createElement(CardContent, {
|
|
7400
7253
|
headless: true,
|
|
7401
7254
|
className: "hawa-flex hawa-flex-col hawa-gap-6"
|
|
7402
|
-
},
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
},
|
|
7419
|
-
|
|
7420
|
-
}), (_props_texts_continueWithTwitter = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.continueWithTwitter) !== null && _props_texts_continueWithTwitter !== void 0 ? _props_texts_continueWithTwitter : "Continue With Twitter"), props.viaApple && /* @__PURE__ */ import_react41.default.createElement(Button, {
|
|
7421
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7422
|
-
variant: "outline",
|
|
7423
|
-
onClick: props.handleApple
|
|
7424
|
-
}, /* @__PURE__ */ import_react41.default.createElement(Logos.apple, {
|
|
7425
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7426
|
-
}), (_props_texts_continueWithApple = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.continueWithApple) !== null && _props_texts_continueWithApple !== void 0 ? _props_texts_continueWithApple : "Continue With Apple"), props.viaMicrosoft && /* @__PURE__ */ import_react41.default.createElement(Button, {
|
|
7427
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7428
|
-
variant: "outline",
|
|
7429
|
-
onClick: props.handleMicrosoft
|
|
7430
|
-
}, /* @__PURE__ */ import_react41.default.createElement(Logos.microsoft, {
|
|
7431
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7432
|
-
}), (_props_texts_continueWithMicrosoft = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.continueWithMicrosoft) !== null && _props_texts_continueWithMicrosoft !== void 0 ? _props_texts_continueWithMicrosoft : "Continue With Microsoft"), props.viaEmail && /* @__PURE__ */ import_react41.default.createElement(Button, {
|
|
7433
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7434
|
-
variant: "outline",
|
|
7435
|
-
onClick: props.handleEmail
|
|
7436
|
-
}, /* @__PURE__ */ import_react41.default.createElement(Logos.mail, {
|
|
7437
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7438
|
-
}), (_props_texts_continueWithEmail = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.continueWithEmail) !== null && _props_texts_continueWithEmail !== void 0 ? _props_texts_continueWithEmail : "Continue With Email"), props.viaPhone && /* @__PURE__ */ import_react41.default.createElement(Button, {
|
|
7439
|
-
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2",
|
|
7440
|
-
variant: "outline",
|
|
7441
|
-
onClick: props.handlePhone
|
|
7442
|
-
}, /* @__PURE__ */ import_react41.default.createElement(Logos.phone, {
|
|
7443
|
-
className: "hawa-h-4 hawa-w-4"
|
|
7444
|
-
}), (_props_texts_continueWithPhone = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.continueWithPhone) !== null && _props_texts_continueWithPhone !== void 0 ? _props_texts_continueWithPhone : "Continue With Phone"), !props.withoutSignUp && /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7255
|
+
}, /* @__PURE__ */ import_react38.default.createElement(AuthButtons, {
|
|
7256
|
+
texts: _object_spread({}, props.texts),
|
|
7257
|
+
viaApple: props.viaApple,
|
|
7258
|
+
viaGoogle: props.viaGoogle,
|
|
7259
|
+
viaEmail: props.viaEmail,
|
|
7260
|
+
viaGithub: props.viaGithub,
|
|
7261
|
+
viaMicrosoft: props.viaMicrosoft,
|
|
7262
|
+
viaPhone: props.viaPhone,
|
|
7263
|
+
viaTwitter: props.viaTwitter,
|
|
7264
|
+
handleApple: props.handleApple,
|
|
7265
|
+
handleGoogle: props.handleGoogle,
|
|
7266
|
+
handleTwitter: props.handleTwitter,
|
|
7267
|
+
handleMicrosoft: props.handleMicrosoft,
|
|
7268
|
+
handleGithub: props.handleGithub,
|
|
7269
|
+
handleEmail: props.handleEmail,
|
|
7270
|
+
handlePhone: props.handlePhone
|
|
7271
|
+
}), !props.withoutSignUp && //TODO: change to "register"
|
|
7272
|
+
/* @__PURE__ */ import_react38.default.createElement("div", {
|
|
7445
7273
|
className: "hawa-p-3 hawa-text-center hawa-text-sm hawa-font-normal dark:hawa-text-gray-300"
|
|
7446
|
-
}, (
|
|
7274
|
+
}, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.newUserText, " ", /* @__PURE__ */ import_react38.default.createElement("span", {
|
|
7447
7275
|
onClick: props.handleRouteToRegister,
|
|
7448
7276
|
className: "clickable-link"
|
|
7449
|
-
}, (
|
|
7277
|
+
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.createAccount)))), /* @__PURE__ */ import_react38.default.createElement("div", {
|
|
7450
7278
|
className: "hawa-mt-4 hawa-flex hawa-flex-row hawa-justify-between"
|
|
7451
|
-
}, /* @__PURE__ */
|
|
7279
|
+
}, /* @__PURE__ */ import_react38.default.createElement(Radio, {
|
|
7452
7280
|
onChangeTab: props.handleLanguage,
|
|
7453
7281
|
design: "tabs",
|
|
7454
7282
|
options: [
|
|
@@ -7461,20 +7289,20 @@ var AppLanding = function(props) {
|
|
|
7461
7289
|
label: "English"
|
|
7462
7290
|
}
|
|
7463
7291
|
]
|
|
7464
|
-
}), /* @__PURE__ */
|
|
7292
|
+
}), /* @__PURE__ */ import_react38.default.createElement(Radio, {
|
|
7465
7293
|
onChangeTab: props.handleColorMode,
|
|
7466
7294
|
design: "tabs",
|
|
7467
7295
|
options: [
|
|
7468
7296
|
{
|
|
7469
7297
|
value: "light",
|
|
7470
|
-
label: /* @__PURE__ */
|
|
7298
|
+
label: /* @__PURE__ */ import_react38.default.createElement("svg", {
|
|
7471
7299
|
width: "15",
|
|
7472
7300
|
height: "15",
|
|
7473
7301
|
viewBox: "0 0 15 15",
|
|
7474
7302
|
fill: "none",
|
|
7475
7303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7476
7304
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-rotate-0 hawa-scale-100 hawa-transition-all dark:hawa--rotate-90"
|
|
7477
|
-
}, /* @__PURE__ */
|
|
7305
|
+
}, /* @__PURE__ */ import_react38.default.createElement("path", {
|
|
7478
7306
|
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
7479
7307
|
fill: "currentColor",
|
|
7480
7308
|
fillRule: "evenodd",
|
|
@@ -7483,7 +7311,7 @@ var AppLanding = function(props) {
|
|
|
7483
7311
|
},
|
|
7484
7312
|
{
|
|
7485
7313
|
value: "dark",
|
|
7486
|
-
label: /* @__PURE__ */
|
|
7314
|
+
label: /* @__PURE__ */ import_react38.default.createElement("svg", {
|
|
7487
7315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7488
7316
|
width: "24",
|
|
7489
7317
|
height: "24",
|
|
@@ -7494,7 +7322,7 @@ var AppLanding = function(props) {
|
|
|
7494
7322
|
strokeLinecap: "round",
|
|
7495
7323
|
strokeLinejoin: "round",
|
|
7496
7324
|
className: "hawa-h-[1.2rem] hawa-w-[1.2rem] hawa-transition-all dark:hawa-rotate-0 dark:hawa-scale-100"
|
|
7497
|
-
}, /* @__PURE__ */
|
|
7325
|
+
}, /* @__PURE__ */ import_react38.default.createElement("path", {
|
|
7498
7326
|
d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"
|
|
7499
7327
|
}))
|
|
7500
7328
|
}
|
|
@@ -7502,16 +7330,16 @@ var AppLanding = function(props) {
|
|
|
7502
7330
|
})));
|
|
7503
7331
|
};
|
|
7504
7332
|
// components/blocks/auth/CheckEmail.tsx
|
|
7505
|
-
var
|
|
7333
|
+
var import_react39 = __toESM(require("react"));
|
|
7506
7334
|
var CheckEmail = function(param) {
|
|
7507
7335
|
var texts = param.texts, handleResend = param.handleResend;
|
|
7508
|
-
return /* @__PURE__ */
|
|
7336
|
+
return /* @__PURE__ */ import_react39.default.createElement(Card, null, /* @__PURE__ */ import_react39.default.createElement(CardContent, {
|
|
7509
7337
|
headless: true
|
|
7510
|
-
}, /* @__PURE__ */
|
|
7338
|
+
}, /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7511
7339
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
7512
|
-
}, /* @__PURE__ */
|
|
7340
|
+
}, /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7513
7341
|
className: "hawa-flex hawa-h-16 hawa-w-16 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
7514
|
-
}, /* @__PURE__ */
|
|
7342
|
+
}, /* @__PURE__ */ import_react39.default.createElement("svg", {
|
|
7515
7343
|
stroke: "currentColor",
|
|
7516
7344
|
fill: "none",
|
|
7517
7345
|
"stroke-width": "2",
|
|
@@ -7521,23 +7349,23 @@ var CheckEmail = function(param) {
|
|
|
7521
7349
|
height: "0.5em",
|
|
7522
7350
|
width: "0.5em",
|
|
7523
7351
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7524
|
-
}, /* @__PURE__ */
|
|
7352
|
+
}, /* @__PURE__ */ import_react39.default.createElement("path", {
|
|
7525
7353
|
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"
|
|
7526
|
-
}), /* @__PURE__ */
|
|
7354
|
+
}), /* @__PURE__ */ import_react39.default.createElement("polyline", {
|
|
7527
7355
|
points: "22,6 12,13 2,6"
|
|
7528
|
-
}))), /* @__PURE__ */
|
|
7356
|
+
}))), /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7529
7357
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
7530
|
-
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */
|
|
7358
|
+
}, (texts === null || texts === void 0 ? void 0 : texts.checkEmail) || "Check your Email"), /* @__PURE__ */ import_react39.default.createElement("div", {
|
|
7531
7359
|
className: "hawa-text-sm"
|
|
7532
|
-
}, (texts === null || texts === void 0 ? 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__ */
|
|
7360
|
+
}, (texts === null || texts === void 0 ? 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_react39.default.createElement(CardFooter, {
|
|
7533
7361
|
className: "hawa-flex hawa-flex-col hawa-justify-center "
|
|
7534
|
-
}, /* @__PURE__ */
|
|
7362
|
+
}, /* @__PURE__ */ import_react39.default.createElement("span", {
|
|
7535
7363
|
className: "clickable-link hawa-text-sm",
|
|
7536
7364
|
onClick: handleResend
|
|
7537
7365
|
}, (texts === null || texts === void 0 ? void 0 : texts.resendEmail) || "Resend Email")));
|
|
7538
7366
|
};
|
|
7539
7367
|
// components/blocks/auth/NewPassword.tsx
|
|
7540
|
-
var
|
|
7368
|
+
var import_react40 = __toESM(require("react"));
|
|
7541
7369
|
var import_react_hook_form3 = require("react-hook-form");
|
|
7542
7370
|
var import_zod3 = require("@hookform/resolvers/zod");
|
|
7543
7371
|
var z3 = __toESM(require("zod"));
|
|
@@ -7571,18 +7399,18 @@ var NewPasswordForm = function(_param) {
|
|
|
7571
7399
|
var _ref = (0, import_react_hook_form3.useForm)({
|
|
7572
7400
|
resolver: (0, import_zod3.zodResolver)(formSchema)
|
|
7573
7401
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7574
|
-
var _ref1 = _sliced_to_array((0,
|
|
7402
|
+
var _ref1 = _sliced_to_array((0, import_react40.useState)(false), 2), matchError = _ref1[0], setMatchError = _ref1[1];
|
|
7575
7403
|
var _texts_dontHaveAccount, _texts_registerText;
|
|
7576
|
-
return /* @__PURE__ */
|
|
7404
|
+
return /* @__PURE__ */ import_react40.default.createElement(Card, {
|
|
7577
7405
|
dir: props.direction
|
|
7578
|
-
}, matchError && /* @__PURE__ */
|
|
7406
|
+
}, matchError && /* @__PURE__ */ import_react40.default.createElement(Alert, {
|
|
7579
7407
|
text: texts === null || texts === void 0 ? void 0 : texts.passwordMatchError,
|
|
7580
7408
|
severity: "error"
|
|
7581
|
-
}), props.passwordChanged ? /* @__PURE__ */
|
|
7409
|
+
}), props.passwordChanged ? /* @__PURE__ */ import_react40.default.createElement(CardContent, {
|
|
7582
7410
|
headless: true
|
|
7583
|
-
}, /* @__PURE__ */
|
|
7411
|
+
}, /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7584
7412
|
className: "hawa-text-center"
|
|
7585
|
-
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */
|
|
7413
|
+
}, texts === null || texts === void 0 ? void 0 : texts.passwordChanged)) : /* @__PURE__ */ import_react40.default.createElement("form", {
|
|
7586
7414
|
onSubmit: handleSubmit(function(e) {
|
|
7587
7415
|
if (props.handleNewPassword) {
|
|
7588
7416
|
return props.handleNewPassword(e);
|
|
@@ -7590,16 +7418,16 @@ var NewPasswordForm = function(_param) {
|
|
|
7590
7418
|
console.log("Form is submitted but handleSubmission prop is missing");
|
|
7591
7419
|
}
|
|
7592
7420
|
})
|
|
7593
|
-
}, !props.headless && /* @__PURE__ */
|
|
7421
|
+
}, !props.headless && /* @__PURE__ */ import_react40.default.createElement(CardHeader, null, /* @__PURE__ */ import_react40.default.createElement(CardTitle, null, "Create Password"), /* @__PURE__ */ import_react40.default.createElement(CardDescription, null, "Set a new password for your account")), /* @__PURE__ */ import_react40.default.createElement(CardContent, {
|
|
7594
7422
|
headless: props.headless,
|
|
7595
7423
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
7596
|
-
}, /* @__PURE__ */
|
|
7424
|
+
}, /* @__PURE__ */ import_react40.default.createElement(import_react_hook_form3.Controller, {
|
|
7597
7425
|
control: control,
|
|
7598
7426
|
name: "password",
|
|
7599
7427
|
render: function(param) {
|
|
7600
7428
|
var field = param.field;
|
|
7601
7429
|
var _formState_errors_password;
|
|
7602
|
-
return /* @__PURE__ */
|
|
7430
|
+
return /* @__PURE__ */ import_react40.default.createElement(Input, _object_spread({
|
|
7603
7431
|
width: "full",
|
|
7604
7432
|
type: "password",
|
|
7605
7433
|
autoComplete: "new-password",
|
|
@@ -7608,13 +7436,13 @@ var NewPasswordForm = function(_param) {
|
|
|
7608
7436
|
helperText: (_formState_errors_password = formState.errors.password) === null || _formState_errors_password === void 0 ? void 0 : _formState_errors_password.message
|
|
7609
7437
|
}, field));
|
|
7610
7438
|
}
|
|
7611
|
-
}), /* @__PURE__ */
|
|
7439
|
+
}), /* @__PURE__ */ import_react40.default.createElement(import_react_hook_form3.Controller, {
|
|
7612
7440
|
control: control,
|
|
7613
7441
|
name: "confirm_password",
|
|
7614
7442
|
render: function(param) {
|
|
7615
7443
|
var field = param.field;
|
|
7616
7444
|
var _formState_errors_confirm_password;
|
|
7617
|
-
return /* @__PURE__ */
|
|
7445
|
+
return /* @__PURE__ */ import_react40.default.createElement(Input, _object_spread({
|
|
7618
7446
|
width: "full",
|
|
7619
7447
|
type: "password",
|
|
7620
7448
|
autoComplete: "new-password",
|
|
@@ -7623,20 +7451,20 @@ var NewPasswordForm = function(_param) {
|
|
|
7623
7451
|
helperText: (_formState_errors_confirm_password = formState.errors.confirm_password) === null || _formState_errors_confirm_password === void 0 ? void 0 : _formState_errors_confirm_password.message
|
|
7624
7452
|
}, field));
|
|
7625
7453
|
}
|
|
7626
|
-
})), /* @__PURE__ */
|
|
7454
|
+
})), /* @__PURE__ */ import_react40.default.createElement(CardFooter, {
|
|
7627
7455
|
className: "hawa-flex hawa-flex-col"
|
|
7628
|
-
}, /* @__PURE__ */
|
|
7456
|
+
}, /* @__PURE__ */ import_react40.default.createElement(Button, {
|
|
7629
7457
|
className: "hawa-w-full",
|
|
7630
7458
|
type: "submit"
|
|
7631
|
-
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */
|
|
7459
|
+
}, texts === null || texts === void 0 ? void 0 : texts.updatePassword), props.allowRegister && /* @__PURE__ */ import_react40.default.createElement("div", {
|
|
7632
7460
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
7633
|
-
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
7461
|
+
}, (_texts_dontHaveAccount = texts === null || texts === void 0 ? void 0 : texts.dontHaveAccount) !== null && _texts_dontHaveAccount !== void 0 ? _texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react40.default.createElement("span", {
|
|
7634
7462
|
className: "clickable-link",
|
|
7635
7463
|
onClick: props.handleRouteToRegister
|
|
7636
7464
|
}, (_texts_registerText = texts === null || texts === void 0 ? void 0 : texts.registerText) !== null && _texts_registerText !== void 0 ? _texts_registerText : "Register")))));
|
|
7637
7465
|
};
|
|
7638
7466
|
// components/blocks/auth/ResetPassword.tsx
|
|
7639
|
-
var
|
|
7467
|
+
var import_react41 = __toESM(require("react"));
|
|
7640
7468
|
var import_react_hook_form4 = require("react-hook-form");
|
|
7641
7469
|
var import_zod4 = require("@hookform/resolvers/zod");
|
|
7642
7470
|
var z4 = __toESM(require("zod"));
|
|
@@ -7655,9 +7483,9 @@ var ResetPasswordForm = function(props) {
|
|
|
7655
7483
|
resolver: (0, import_zod4.zodResolver)(formSchema)
|
|
7656
7484
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
7657
7485
|
var _props_texts_dontHaveAccount, _props_texts_registerText;
|
|
7658
|
-
return /* @__PURE__ */
|
|
7486
|
+
return /* @__PURE__ */ import_react41.default.createElement(Card, {
|
|
7659
7487
|
dir: props.direction
|
|
7660
|
-
}, !props.sent ? /* @__PURE__ */
|
|
7488
|
+
}, !props.sent ? /* @__PURE__ */ import_react41.default.createElement(import_react41.default.Fragment, null, !props.headless && /* @__PURE__ */ import_react41.default.createElement(CardHeader, null, /* @__PURE__ */ import_react41.default.createElement(CardTitle, null, " ", ((_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.headTitle) || "Reset Password"), /* @__PURE__ */ import_react41.default.createElement(CardDescription, null, ((_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.headDescription) || "Enter your email to reset your account password")), /* @__PURE__ */ import_react41.default.createElement("form", {
|
|
7661
7489
|
onSubmit: handleSubmit(function(e) {
|
|
7662
7490
|
if (props.handleResetPassword) {
|
|
7663
7491
|
return props.handleResetPassword(e);
|
|
@@ -7665,39 +7493,39 @@ var ResetPasswordForm = function(props) {
|
|
|
7665
7493
|
console.log("handleResetPassword prop is missing");
|
|
7666
7494
|
}
|
|
7667
7495
|
})
|
|
7668
|
-
}, /* @__PURE__ */
|
|
7496
|
+
}, /* @__PURE__ */ import_react41.default.createElement(CardContent, {
|
|
7669
7497
|
headless: props.headless
|
|
7670
|
-
}, /* @__PURE__ */
|
|
7498
|
+
}, /* @__PURE__ */ import_react41.default.createElement(import_react_hook_form4.Controller, {
|
|
7671
7499
|
control: control,
|
|
7672
7500
|
name: "email",
|
|
7673
7501
|
render: function(param) {
|
|
7674
7502
|
var field = param.field;
|
|
7675
7503
|
var _props_texts, _formState_errors_email, _props_texts1;
|
|
7676
|
-
return /* @__PURE__ */
|
|
7504
|
+
return /* @__PURE__ */ import_react41.default.createElement(Input, _object_spread({
|
|
7677
7505
|
width: "full",
|
|
7678
7506
|
label: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.emailLabel,
|
|
7679
7507
|
helperText: (_formState_errors_email = formState.errors.email) === null || _formState_errors_email === void 0 ? void 0 : _formState_errors_email.message,
|
|
7680
7508
|
placeholder: (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.emailPlaceholder
|
|
7681
7509
|
}, field));
|
|
7682
7510
|
}
|
|
7683
|
-
})), /* @__PURE__ */
|
|
7511
|
+
})), /* @__PURE__ */ import_react41.default.createElement(CardFooter, {
|
|
7684
7512
|
className: "hawa-flex hawa-flex-col"
|
|
7685
|
-
}, /* @__PURE__ */
|
|
7513
|
+
}, /* @__PURE__ */ import_react41.default.createElement(Button, {
|
|
7686
7514
|
type: "submit",
|
|
7687
7515
|
className: "hawa-w-full"
|
|
7688
|
-
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */
|
|
7516
|
+
}, (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resetPassword), props.allowRegister && /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7689
7517
|
className: "hawa-mt-4 hawa-pb-0 hawa-text-center hawa-text-sm dark:hawa-text-gray-300"
|
|
7690
|
-
}, (_props_texts_dontHaveAccount = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */
|
|
7518
|
+
}, (_props_texts_dontHaveAccount = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.dontHaveAccount) !== null && _props_texts_dontHaveAccount !== void 0 ? _props_texts_dontHaveAccount : "Don't have an account? ", /* @__PURE__ */ import_react41.default.createElement("span", {
|
|
7691
7519
|
className: "clickable-link",
|
|
7692
7520
|
onClick: props.handleRouteToRegister
|
|
7693
|
-
}, (_props_texts_registerText = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))))) : /* @__PURE__ */
|
|
7521
|
+
}, (_props_texts_registerText = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.registerText) !== null && _props_texts_registerText !== void 0 ? _props_texts_registerText : "Register"))))) : /* @__PURE__ */ import_react41.default.createElement(CardContent, {
|
|
7694
7522
|
headless: true
|
|
7695
|
-
}, /* @__PURE__ */
|
|
7523
|
+
}, /* @__PURE__ */ import_react41.default.createElement("div", {
|
|
7696
7524
|
className: "hawa-text-center"
|
|
7697
7525
|
}, (_props_texts8 = props.texts) === null || _props_texts8 === void 0 ? void 0 : _props_texts8.emailSentText)));
|
|
7698
7526
|
};
|
|
7699
7527
|
// components/blocks/auth/CodeConfirmation.tsx
|
|
7700
|
-
var
|
|
7528
|
+
var import_react42 = __toESM(require("react"));
|
|
7701
7529
|
var import_react_hook_form5 = require("react-hook-form");
|
|
7702
7530
|
var import_zod5 = require("@hookform/resolvers/zod");
|
|
7703
7531
|
var z5 = __toESM(require("zod"));
|
|
@@ -7714,19 +7542,19 @@ var CodeConfirmation = function(props) {
|
|
|
7714
7542
|
resolver: (0, import_zod5.zodResolver)(formSchema)
|
|
7715
7543
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState, setValue = _ref.setValue;
|
|
7716
7544
|
var _props_texts_checkYourPhone, _props_texts_weSentCode, _props_texts_didntGetCode, _props_texts_resendCode, _props_texts_cancel, _props_texts_confirm;
|
|
7717
|
-
return /* @__PURE__ */
|
|
7545
|
+
return /* @__PURE__ */ import_react42.default.createElement(Card, null, /* @__PURE__ */ import_react42.default.createElement(CardContent, {
|
|
7718
7546
|
headless: true
|
|
7719
|
-
}, props.showError && /* @__PURE__ */
|
|
7547
|
+
}, props.showError && /* @__PURE__ */ import_react42.default.createElement(Alert, {
|
|
7720
7548
|
title: props.errorTitle,
|
|
7721
7549
|
text: props.errorText,
|
|
7722
7550
|
severity: "error"
|
|
7723
|
-
}), /* @__PURE__ */
|
|
7551
|
+
}), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7724
7552
|
className: "hawa-mb-4 dark:hawa-text-white"
|
|
7725
|
-
}, /* @__PURE__ */
|
|
7553
|
+
}, /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7726
7554
|
className: "hawa-text-lg hawa-font-bold"
|
|
7727
|
-
}, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */
|
|
7555
|
+
}, (_props_texts_checkYourPhone = (_props_texts2 = props.texts) === null || _props_texts2 === void 0 ? void 0 : _props_texts2.checkYourPhone) !== null && _props_texts_checkYourPhone !== void 0 ? _props_texts_checkYourPhone : "Please check your phone"), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7728
7556
|
className: "hawa-text-muted-foreground"
|
|
7729
|
-
}, /* @__PURE__ */
|
|
7557
|
+
}, /* @__PURE__ */ import_react42.default.createElement("span", null, (_props_texts_weSentCode = (_props_texts3 = props.texts) === null || _props_texts3 === void 0 ? void 0 : _props_texts3.weSentCode) !== null && _props_texts_weSentCode !== void 0 ? _props_texts_weSentCode : "We've sent a code to "), /* @__PURE__ */ import_react42.default.createElement("span", null, props.phoneNumber)), " "), /* @__PURE__ */ import_react42.default.createElement("form", {
|
|
7730
7558
|
onSubmit: handleSubmit(function(e) {
|
|
7731
7559
|
if (props.handleConfirm) {
|
|
7732
7560
|
return props.handleConfirm(e);
|
|
@@ -7734,13 +7562,13 @@ var CodeConfirmation = function(props) {
|
|
|
7734
7562
|
console.log("Form is submitted but handleConfirm prop is missing");
|
|
7735
7563
|
}
|
|
7736
7564
|
})
|
|
7737
|
-
}, /* @__PURE__ */
|
|
7565
|
+
}, /* @__PURE__ */ import_react42.default.createElement(import_react_hook_form5.Controller, {
|
|
7738
7566
|
control: control,
|
|
7739
7567
|
name: "otp_code",
|
|
7740
7568
|
render: function(param) {
|
|
7741
7569
|
var field = param.field;
|
|
7742
7570
|
var _formState_errors_otp_code;
|
|
7743
|
-
return /* @__PURE__ */
|
|
7571
|
+
return /* @__PURE__ */ import_react42.default.createElement(PinInput, {
|
|
7744
7572
|
width: "full",
|
|
7745
7573
|
digits: 6,
|
|
7746
7574
|
getPins: function(e) {
|
|
@@ -7749,18 +7577,18 @@ var CodeConfirmation = function(props) {
|
|
|
7749
7577
|
helperText: (_formState_errors_otp_code = formState.errors.otp_code) === null || _formState_errors_otp_code === void 0 ? void 0 : _formState_errors_otp_code.message
|
|
7750
7578
|
});
|
|
7751
7579
|
}
|
|
7752
|
-
}), /* @__PURE__ */
|
|
7580
|
+
}), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7753
7581
|
className: " hawa-py-2 hawa-text-center hawa-text-xs hawa-text-muted-foreground"
|
|
7754
|
-
}, /* @__PURE__ */
|
|
7582
|
+
}, /* @__PURE__ */ import_react42.default.createElement("span", null, (_props_texts_didntGetCode = (_props_texts4 = props.texts) === null || _props_texts4 === void 0 ? void 0 : _props_texts4.didntGetCode) !== null && _props_texts_didntGetCode !== void 0 ? _props_texts_didntGetCode : "Didn't get the code?"), " ", /* @__PURE__ */ import_react42.default.createElement("span", {
|
|
7755
7583
|
className: "clickable-link"
|
|
7756
|
-
}, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */
|
|
7584
|
+
}, (_props_texts_resendCode = (_props_texts5 = props.texts) === null || _props_texts5 === void 0 ? void 0 : _props_texts5.resendCode) !== null && _props_texts_resendCode !== void 0 ? _props_texts_resendCode : "Click to resend")), /* @__PURE__ */ import_react42.default.createElement("div", {
|
|
7757
7585
|
className: "hawa-mt-4 hawa-grid hawa-grid-cols-2 hawa-gap-2"
|
|
7758
|
-
}, /* @__PURE__ */
|
|
7586
|
+
}, /* @__PURE__ */ import_react42.default.createElement(Button, {
|
|
7759
7587
|
variant: "secondary"
|
|
7760
|
-
}, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */
|
|
7588
|
+
}, (_props_texts_cancel = (_props_texts6 = props.texts) === null || _props_texts6 === void 0 ? void 0 : _props_texts6.cancel) !== null && _props_texts_cancel !== void 0 ? _props_texts_cancel : "Cancel"), /* @__PURE__ */ import_react42.default.createElement(Button, null, (_props_texts_confirm = (_props_texts7 = props.texts) === null || _props_texts7 === void 0 ? void 0 : _props_texts7.confirm) !== null && _props_texts_confirm !== void 0 ? _props_texts_confirm : "Confirm")))));
|
|
7761
7589
|
};
|
|
7762
7590
|
// components/blocks/feedback/UserReferralSource.tsx
|
|
7763
|
-
var
|
|
7591
|
+
var import_react43 = __toESM(require("react"));
|
|
7764
7592
|
var import_react_hook_form6 = require("react-hook-form");
|
|
7765
7593
|
var import_zod6 = require("@hookform/resolvers/zod");
|
|
7766
7594
|
var z6 = __toESM(require("zod"));
|
|
@@ -7770,8 +7598,8 @@ var UserReferralSource = function(_param) {
|
|
|
7770
7598
|
"options"
|
|
7771
7599
|
]);
|
|
7772
7600
|
var _props_texts, _props_texts1;
|
|
7773
|
-
var _ref = _sliced_to_array((0,
|
|
7774
|
-
var popUpRef = (0,
|
|
7601
|
+
var _ref = _sliced_to_array((0, import_react43.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
7602
|
+
var popUpRef = (0, import_react43.useRef)(null);
|
|
7775
7603
|
var formSchema = z6.object({
|
|
7776
7604
|
source: z6.string({
|
|
7777
7605
|
required_error: (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.pleaseSelectOption
|
|
@@ -7785,13 +7613,13 @@ var UserReferralSource = function(_param) {
|
|
|
7785
7613
|
"bottom-right": "hawa-right-4",
|
|
7786
7614
|
"bottom-left": "hawa-left-4"
|
|
7787
7615
|
};
|
|
7788
|
-
return /* @__PURE__ */
|
|
7616
|
+
return /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7789
7617
|
className: cn("hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100"),
|
|
7790
7618
|
ref: popUpRef
|
|
7791
|
-
}, /* @__PURE__ */
|
|
7619
|
+
}, /* @__PURE__ */ import_react43.default.createElement(Card, {
|
|
7792
7620
|
className: cn("hawa-fixed hawa-bottom-4 hawa-p-0 ", boxPosition[position]),
|
|
7793
7621
|
dir: props.direction
|
|
7794
|
-
}, /* @__PURE__ */
|
|
7622
|
+
}, /* @__PURE__ */ import_react43.default.createElement("button", {
|
|
7795
7623
|
type: "button",
|
|
7796
7624
|
className: cn(props.direction === "rtl" ? "hawa-left-2" : "hawa-right-2", "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hawa-transition-all hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white"),
|
|
7797
7625
|
"data-dismiss-target": "#toast-default",
|
|
@@ -7804,37 +7632,37 @@ var UserReferralSource = function(_param) {
|
|
|
7804
7632
|
}
|
|
7805
7633
|
}, 200);
|
|
7806
7634
|
}
|
|
7807
|
-
}, /* @__PURE__ */
|
|
7635
|
+
}, /* @__PURE__ */ import_react43.default.createElement("svg", {
|
|
7808
7636
|
"aria-hidden": "true",
|
|
7809
7637
|
className: "hawa-h-5 hawa-w-5",
|
|
7810
7638
|
fill: "currentColor",
|
|
7811
7639
|
viewBox: "0 0 20 20"
|
|
7812
|
-
}, /* @__PURE__ */
|
|
7640
|
+
}, /* @__PURE__ */ import_react43.default.createElement("path", {
|
|
7813
7641
|
fillRule: "evenodd",
|
|
7814
7642
|
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",
|
|
7815
7643
|
clipRule: "evenodd"
|
|
7816
|
-
}))), /* @__PURE__ */
|
|
7644
|
+
}))), /* @__PURE__ */ import_react43.default.createElement(CardContent, {
|
|
7817
7645
|
headless: true
|
|
7818
|
-
}, /* @__PURE__ */
|
|
7646
|
+
}, /* @__PURE__ */ import_react43.default.createElement("form", {
|
|
7819
7647
|
onSubmit: handleSubmit(function(e) {
|
|
7820
7648
|
if (props.onSubmitForm) {
|
|
7821
7649
|
props.onSubmitForm(e);
|
|
7822
7650
|
}
|
|
7823
7651
|
console.log("onSubmitForm was not provided");
|
|
7824
7652
|
})
|
|
7825
|
-
}, /* @__PURE__ */
|
|
7653
|
+
}, /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7826
7654
|
className: cn("hawa-flex hawa-flex-col hawa-gap-4 hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100")
|
|
7827
|
-
}, /* @__PURE__ */
|
|
7655
|
+
}, /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7828
7656
|
className: "hawa-mt-4 hawa-font-bold"
|
|
7829
|
-
}, props.question), /* @__PURE__ */
|
|
7657
|
+
}, props.question), /* @__PURE__ */ import_react43.default.createElement("div", {
|
|
7830
7658
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded "
|
|
7831
|
-
}, /* @__PURE__ */
|
|
7659
|
+
}, /* @__PURE__ */ import_react43.default.createElement(import_react_hook_form6.Controller, {
|
|
7832
7660
|
control: control,
|
|
7833
7661
|
name: "source",
|
|
7834
7662
|
render: function(param) {
|
|
7835
7663
|
var field = param.field;
|
|
7836
7664
|
var _formState_errors_source_message, _formState_errors_source;
|
|
7837
|
-
return /* @__PURE__ */
|
|
7665
|
+
return /* @__PURE__ */ import_react43.default.createElement(Radio, {
|
|
7838
7666
|
direction: props.direction,
|
|
7839
7667
|
orientation: "vertical",
|
|
7840
7668
|
options: options,
|
|
@@ -7845,38 +7673,38 @@ var UserReferralSource = function(_param) {
|
|
|
7845
7673
|
helperText: (_formState_errors_source = formState.errors.source) === null || _formState_errors_source === void 0 ? void 0 : (_formState_errors_source_message = _formState_errors_source.message) === null || _formState_errors_source_message === void 0 ? void 0 : _formState_errors_source_message.toString()
|
|
7846
7674
|
});
|
|
7847
7675
|
}
|
|
7848
|
-
})), /* @__PURE__ */
|
|
7676
|
+
})), /* @__PURE__ */ import_react43.default.createElement("div", null, /* @__PURE__ */ import_react43.default.createElement(import_react_hook_form6.Controller, {
|
|
7849
7677
|
control: control,
|
|
7850
7678
|
name: "feedback",
|
|
7851
7679
|
render: function(param) {
|
|
7852
7680
|
var field = param.field;
|
|
7853
7681
|
var _formState_errors_feedback_message, _formState_errors_feedback;
|
|
7854
|
-
return /* @__PURE__ */
|
|
7682
|
+
return /* @__PURE__ */ import_react43.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
7855
7683
|
helperText: (_formState_errors_feedback = formState.errors.feedback) === null || _formState_errors_feedback === void 0 ? void 0 : (_formState_errors_feedback_message = _formState_errors_feedback.message) === null || _formState_errors_feedback_message === void 0 ? void 0 : _formState_errors_feedback_message.toString()
|
|
7856
7684
|
}));
|
|
7857
7685
|
}
|
|
7858
|
-
}))), /* @__PURE__ */
|
|
7686
|
+
}))), /* @__PURE__ */ import_react43.default.createElement(Button, {
|
|
7859
7687
|
type: "submit",
|
|
7860
7688
|
className: "hawa-mt-4 hawa-w-full"
|
|
7861
7689
|
}, ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit) || "Submit")))));
|
|
7862
7690
|
};
|
|
7863
7691
|
// components/blocks/feedback/FeedbackRating.tsx
|
|
7864
|
-
var
|
|
7692
|
+
var import_react44 = __toESM(require("react"));
|
|
7865
7693
|
var import_clsx12 = __toESM(require("clsx"));
|
|
7866
7694
|
var FeedbackRating = function(_param) {
|
|
7867
7695
|
var _param_position = _param.position, position = _param_position === void 0 ? "bottom-right" : _param_position, props = _object_without_properties(_param, [
|
|
7868
7696
|
"position"
|
|
7869
7697
|
]);
|
|
7870
|
-
var _ref = _sliced_to_array((0,
|
|
7871
|
-
var _ref1 = _sliced_to_array((0,
|
|
7872
|
-
var _ref2 = _sliced_to_array((0,
|
|
7873
|
-
var _ref3 = _sliced_to_array((0,
|
|
7874
|
-
var popUpRef = (0,
|
|
7698
|
+
var _ref = _sliced_to_array((0, import_react44.useState)(false), 2), closed = _ref[0], setClosed = _ref[1];
|
|
7699
|
+
var _ref1 = _sliced_to_array((0, import_react44.useState)(false), 2), answered = _ref1[0], setAnswered = _ref1[1];
|
|
7700
|
+
var _ref2 = _sliced_to_array((0, import_react44.useState)(null), 2), clickedOption = _ref2[0], setClickedOption = _ref2[1];
|
|
7701
|
+
var _ref3 = _sliced_to_array((0, import_react44.useState)(5), 2), closingTimer = _ref3[0], setClosingTimer = _ref3[1];
|
|
7702
|
+
var popUpRef = (0, import_react44.useRef)(null);
|
|
7875
7703
|
var boxPosition = {
|
|
7876
7704
|
"bottom-right": "hawa-right-4",
|
|
7877
7705
|
"bottom-left": "hawa-left-4"
|
|
7878
7706
|
};
|
|
7879
|
-
(0,
|
|
7707
|
+
(0, import_react44.useEffect)(function() {
|
|
7880
7708
|
var timeoutHide = setTimeout(function() {
|
|
7881
7709
|
if (closingTimer >= 0) {
|
|
7882
7710
|
setClosingTimer(closingTimer - 1);
|
|
@@ -7896,14 +7724,14 @@ var FeedbackRating = function(_param) {
|
|
|
7896
7724
|
}
|
|
7897
7725
|
}, 200);
|
|
7898
7726
|
};
|
|
7899
|
-
return /* @__PURE__ */
|
|
7727
|
+
return /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7900
7728
|
ref: popUpRef,
|
|
7901
7729
|
className: (0, import_clsx12.default)(props.banner ? "hawa-w-full hawa-left-0 hawa-fixed hawa-bottom-0 hawa-px-0 md:hawa-px-4" : "hawa-fixed hawa-bottom-4 ", boxPosition[position])
|
|
7902
|
-
}, /* @__PURE__ */
|
|
7730
|
+
}, /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7903
7731
|
className: (0, import_clsx12.default)("hawa-relative hawa-flex hawa-w-full hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-bg-background hawa-p-4 hawa-shadow-md hawa-transition-all", closed ? "hawa-opacity-0" : "hawa-opacity-100", props.banner && "hawa-rounded-none md:hawa-rounded hawa-px-4 md:hawa-px-64")
|
|
7904
|
-
}, /* @__PURE__ */
|
|
7732
|
+
}, /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7905
7733
|
className: "hawa-absolute hawa-left-2 hawa-top-2 hawa-p-1.5 hawa-text-sm"
|
|
7906
|
-
}, props.title), /* @__PURE__ */
|
|
7734
|
+
}, props.title), /* @__PURE__ */ import_react44.default.createElement("button", {
|
|
7907
7735
|
type: "button",
|
|
7908
7736
|
className: "hawa-absolute hawa-right-2 hawa-top-2 hawa-inline-flex hawa-h-8 hawa-w-8 hawa-rounded hawa-p-1.5 hawa-text-gray-400 hover:hawa-bg-gray-100 hover:hawa-text-gray-900 focus:hawa-ring-2 focus:hawa-ring-gray-300 dark:hawa-bg-gray-800 dark:hawa-text-gray-500 dark:hover:hawa-bg-gray-700 dark:hover:hawa-text-white",
|
|
7909
7737
|
"data-dismiss-target": "#toast-default",
|
|
@@ -7911,21 +7739,21 @@ var FeedbackRating = function(_param) {
|
|
|
7911
7739
|
onClick: function() {
|
|
7912
7740
|
return slowClose();
|
|
7913
7741
|
}
|
|
7914
|
-
}, /* @__PURE__ */
|
|
7742
|
+
}, /* @__PURE__ */ import_react44.default.createElement("svg", {
|
|
7915
7743
|
"aria-hidden": "true",
|
|
7916
7744
|
className: "hawa-h-5 hawa-w-5",
|
|
7917
7745
|
fill: "currentColor",
|
|
7918
7746
|
viewBox: "0 0 20 20"
|
|
7919
|
-
}, /* @__PURE__ */
|
|
7747
|
+
}, /* @__PURE__ */ import_react44.default.createElement("path", {
|
|
7920
7748
|
fillRule: "evenodd",
|
|
7921
7749
|
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",
|
|
7922
7750
|
clipRule: "evenodd"
|
|
7923
|
-
}))), /* @__PURE__ */
|
|
7751
|
+
}))), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7924
7752
|
className: "hawa-mt-8"
|
|
7925
|
-
}, props.question), /* @__PURE__ */
|
|
7753
|
+
}, props.question), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7926
7754
|
className: "hawa-flex hawa-w-full hawa-flex-row hawa-gap-1 hawa-rounded"
|
|
7927
7755
|
}, props.options && props.options.map(function(op, i) {
|
|
7928
|
-
return /* @__PURE__ */
|
|
7756
|
+
return /* @__PURE__ */ import_react44.default.createElement("span", {
|
|
7929
7757
|
key: i,
|
|
7930
7758
|
onClick: function() {
|
|
7931
7759
|
if (props.onOptionClicked) {
|
|
@@ -7944,15 +7772,15 @@ var FeedbackRating = function(_param) {
|
|
|
7944
7772
|
},
|
|
7945
7773
|
className: (0, import_clsx12.default)("hawa-w-full hawa-cursor-pointer hawa-rounded hawa-border hawa-p-4 hawa-text-center hawa-transition-all ", clickedOption === op ? "hawa-bg-gray-500 hawa-text-white" : "hawa-border hawa-bg-background hover:hawa-bg-gray-300 dark:hover:hawa-bg-gray-700")
|
|
7946
7774
|
}, op);
|
|
7947
|
-
})), props.texts && /* @__PURE__ */
|
|
7775
|
+
})), props.texts && /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7948
7776
|
className: " hawa-flex hawa-flex-row hawa-justify-between hawa-text-xs"
|
|
7949
|
-
}, /* @__PURE__ */
|
|
7777
|
+
}, /* @__PURE__ */ import_react44.default.createElement("span", null, props.texts.least), /* @__PURE__ */ import_react44.default.createElement("span", null, props.texts.most)), answered && /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7950
7778
|
className: "hawa-absolute hawa-left-0 hawa-top-0 hawa-gap-2 hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded hawa-bg-black hawa-bg-opacity-80 hawa-p-4 hawa-text-center hawa-transition-all"
|
|
7951
|
-
}, /* @__PURE__ */
|
|
7779
|
+
}, /* @__PURE__ */ import_react44.default.createElement("span", {
|
|
7952
7780
|
className: "hawa-font-bold hawa-text-white"
|
|
7953
|
-
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */
|
|
7781
|
+
}, "Thank you for your answer. This box will disappear in", " " + closingTimer, " seconds"), /* @__PURE__ */ import_react44.default.createElement("div", {
|
|
7954
7782
|
className: "hawa-flex hawa-flex-row hawa-gap-2"
|
|
7955
|
-
}, /* @__PURE__ */
|
|
7783
|
+
}, /* @__PURE__ */ import_react44.default.createElement(Button, {
|
|
7956
7784
|
variant: "secondary",
|
|
7957
7785
|
onClick: function() {
|
|
7958
7786
|
return slowClose();
|
|
@@ -7960,27 +7788,27 @@ var FeedbackRating = function(_param) {
|
|
|
7960
7788
|
}, "Close")))));
|
|
7961
7789
|
};
|
|
7962
7790
|
// components/blocks/feedback/FeedbackEmoji.tsx
|
|
7963
|
-
var
|
|
7791
|
+
var import_react45 = __toESM(require("react"));
|
|
7964
7792
|
var FeedbackEmoji = function(props) {
|
|
7965
|
-
var _ref = _sliced_to_array((0,
|
|
7966
|
-
var _ref1 = _sliced_to_array((0,
|
|
7967
|
-
var _ref2 = _sliced_to_array((0,
|
|
7968
|
-
var _ref3 = _sliced_to_array((0,
|
|
7793
|
+
var _ref = _sliced_to_array((0, import_react45.useState)(null), 2), selectedEmoji = _ref[0], setSelectedEmoji = _ref[1];
|
|
7794
|
+
var _ref1 = _sliced_to_array((0, import_react45.useState)(false), 2), loadingSubmit = _ref1[0], setLoadingSubmit = _ref1[1];
|
|
7795
|
+
var _ref2 = _sliced_to_array((0, import_react45.useState)(""), 2), feedbackText = _ref2[0], setFeedbackText = _ref2[1];
|
|
7796
|
+
var _ref3 = _sliced_to_array((0, import_react45.useState)(false), 2), helperText = _ref3[0], setHelperText = _ref3[1];
|
|
7969
7797
|
var emojis = [
|
|
7970
7798
|
{
|
|
7971
|
-
icon: /* @__PURE__ */
|
|
7799
|
+
icon: /* @__PURE__ */ import_react45.default.createElement(VeryGoodEmoji, null),
|
|
7972
7800
|
value: "very-good"
|
|
7973
7801
|
},
|
|
7974
7802
|
{
|
|
7975
|
-
icon: /* @__PURE__ */
|
|
7803
|
+
icon: /* @__PURE__ */ import_react45.default.createElement(GoodEmoji, null),
|
|
7976
7804
|
value: "good"
|
|
7977
7805
|
},
|
|
7978
7806
|
{
|
|
7979
|
-
icon: /* @__PURE__ */
|
|
7807
|
+
icon: /* @__PURE__ */ import_react45.default.createElement(BadEmoji, null),
|
|
7980
7808
|
value: "bad"
|
|
7981
7809
|
},
|
|
7982
7810
|
{
|
|
7983
|
-
icon: /* @__PURE__ */
|
|
7811
|
+
icon: /* @__PURE__ */ import_react45.default.createElement(VeryBadEmoji, null),
|
|
7984
7812
|
value: "very-bad"
|
|
7985
7813
|
}
|
|
7986
7814
|
];
|
|
@@ -8051,14 +7879,14 @@ var FeedbackEmoji = function(props) {
|
|
|
8051
7879
|
return _ref.apply(this, arguments);
|
|
8052
7880
|
};
|
|
8053
7881
|
}();
|
|
8054
|
-
return /* @__PURE__ */
|
|
7882
|
+
return /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8055
7883
|
className: cn("hawa-flex hawa-flex-col hawa-gap-2 hawa-rounded hawa-border hawa-p-2 hawa-transition-all", selectedEmoji ? "hawa-h-[185px] hawa-min-w-fit" : "hawa-h-[44px] ")
|
|
8056
|
-
}, /* @__PURE__ */
|
|
7884
|
+
}, /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8057
7885
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 "
|
|
8058
|
-
}, /* @__PURE__ */
|
|
7886
|
+
}, /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8059
7887
|
className: "hawa-flex hawa-flex-row hawa-justify-center hawa-gap-0.5 "
|
|
8060
7888
|
}, emojis.map(function(emoji, i) {
|
|
8061
|
-
return /* @__PURE__ */
|
|
7889
|
+
return /* @__PURE__ */ import_react45.default.createElement(Button, {
|
|
8062
7890
|
key: i,
|
|
8063
7891
|
onClick: function() {
|
|
8064
7892
|
if (selectedEmoji === emoji.value) {
|
|
@@ -8071,29 +7899,29 @@ var FeedbackEmoji = function(props) {
|
|
|
8071
7899
|
size: "smallIcon",
|
|
8072
7900
|
className: cn(selectedEmoji === emoji.value ? "hawa-bg-primary/10 hover:hawa-bg-primary/10 " : "hawa-text-[#666666]")
|
|
8073
7901
|
}, emoji.icon);
|
|
8074
|
-
}))), /* @__PURE__ */
|
|
7902
|
+
}))), /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8075
7903
|
className: cn("hawa-flex hawa-flex-col hawa-overflow-clip hawa-transition-all hawa-duration-500 hawa-ease-in-out ", selectedEmoji ? "hawa-visible hawa-opacity-100" : "hawa-invisible hawa-opacity-0 ")
|
|
8076
|
-
}, props.showSuccess ? /* @__PURE__ */
|
|
7904
|
+
}, props.showSuccess ? /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8077
7905
|
className: "hawa-flex hawa-h-full hawa-flex-col hawa-items-center hawa-justify-center hawa-gap-2 hawa-pt-4"
|
|
8078
|
-
}, /* @__PURE__ */
|
|
7906
|
+
}, /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8079
7907
|
className: "hawa-rounded hawa-bg-primary hawa-p-2 hawa-text-primary-foreground"
|
|
8080
|
-
}, /* @__PURE__ */
|
|
7908
|
+
}, /* @__PURE__ */ import_react45.default.createElement("svg", {
|
|
8081
7909
|
stroke: "currentColor",
|
|
8082
7910
|
fill: "currentColor",
|
|
8083
7911
|
strokeWidth: "0",
|
|
8084
7912
|
viewBox: "0 0 512 512",
|
|
8085
7913
|
height: "0.5em",
|
|
8086
7914
|
width: "0.5em"
|
|
8087
|
-
}, /* @__PURE__ */
|
|
7915
|
+
}, /* @__PURE__ */ import_react45.default.createElement("path", {
|
|
8088
7916
|
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"
|
|
8089
|
-
}))), /* @__PURE__ */
|
|
7917
|
+
}))), /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8090
7918
|
className: "hawa-text-sm hawa-flex hawa-flex-col hawa-text-center"
|
|
8091
|
-
}, /* @__PURE__ */
|
|
7919
|
+
}, /* @__PURE__ */ import_react45.default.createElement("span", null, "Your feedback has been received!"), /* @__PURE__ */ import_react45.default.createElement("span", null, "Thank you for your help"))) : /* @__PURE__ */ import_react45.default.createElement("div", {
|
|
8092
7920
|
className: "hawa-flex hawa-flex-col hawa-gap-2"
|
|
8093
|
-
}, /* @__PURE__ */
|
|
7921
|
+
}, /* @__PURE__ */ import_react45.default.createElement(Popover, {
|
|
8094
7922
|
className: "hawa-select-none hawa-p-1 hawa-text-xs ",
|
|
8095
7923
|
open: helperText,
|
|
8096
|
-
trigger: /* @__PURE__ */
|
|
7924
|
+
trigger: /* @__PURE__ */ import_react45.default.createElement(Textarea, {
|
|
8097
7925
|
className: cn("hawa-mb-2 hawa-h-full hawa-resize-none"),
|
|
8098
7926
|
placeholder: "Your feedback",
|
|
8099
7927
|
onChange: function(e) {
|
|
@@ -8104,9 +7932,9 @@ var FeedbackEmoji = function(props) {
|
|
|
8104
7932
|
console.log("changing to", e.target.value);
|
|
8105
7933
|
}
|
|
8106
7934
|
})
|
|
8107
|
-
}, /* @__PURE__ */
|
|
7935
|
+
}, /* @__PURE__ */ import_react45.default.createElement("span", {
|
|
8108
7936
|
className: "hawa-m-2"
|
|
8109
|
-
}, "Please enter your feedback"), " "), /* @__PURE__ */
|
|
7937
|
+
}, "Please enter your feedback"), " "), /* @__PURE__ */ import_react45.default.createElement(Button, {
|
|
8110
7938
|
isLoading: loadingSubmit,
|
|
8111
7939
|
onClick: onFeedbackSubmit,
|
|
8112
7940
|
className: "hawa-w-full",
|
|
@@ -8114,20 +7942,20 @@ var FeedbackEmoji = function(props) {
|
|
|
8114
7942
|
}, "Submit"))));
|
|
8115
7943
|
};
|
|
8116
7944
|
var VeryGoodEmoji = function() {
|
|
8117
|
-
return /* @__PURE__ */
|
|
7945
|
+
return /* @__PURE__ */ import_react45.default.createElement("svg", {
|
|
8118
7946
|
fill: "none",
|
|
8119
7947
|
height: "16",
|
|
8120
7948
|
viewBox: "0 0 16 16",
|
|
8121
7949
|
width: "16",
|
|
8122
7950
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8123
|
-
}, /* @__PURE__ */
|
|
7951
|
+
}, /* @__PURE__ */ import_react45.default.createElement("g", {
|
|
8124
7952
|
clipPath: "url(#clip0_53_166)"
|
|
8125
|
-
}, /* @__PURE__ */
|
|
7953
|
+
}, /* @__PURE__ */ import_react45.default.createElement("path", {
|
|
8126
7954
|
clipRule: "evenodd",
|
|
8127
7955
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM4.5 8.97498H3.875V9.59998C3.875 11.4747 5.81046 12.8637 7.99817 12.8637C10.1879 12.8637 12.125 11.4832 12.125 9.59998V8.97498H11.5H4.5ZM7.99817 11.6137C6.59406 11.6137 5.63842 10.9482 5.28118 10.225H10.7202C10.3641 10.9504 9.40797 11.6137 7.99817 11.6137Z",
|
|
8128
7956
|
fill: "currentColor",
|
|
8129
7957
|
fillRule: "evenodd"
|
|
8130
|
-
}), /* @__PURE__ */
|
|
7958
|
+
}), /* @__PURE__ */ import_react45.default.createElement("path", {
|
|
8131
7959
|
clipRule: "evenodd",
|
|
8132
7960
|
d: "M6.15295 4.92093L5.375 3.5L4.59705 4.92093L3 5.21885L4.11625 6.39495L3.90717 8L5.375 7.30593L6.84283 8L6.63375 6.39495L7.75 5.21885L6.15295 4.92093ZM11.403 4.92093L10.625 3.5L9.84705 4.92093L8.25 5.21885L9.36625 6.39495L9.15717 8L10.625 7.30593L12.0928 8L11.8837 6.39495L13 5.21885L11.403 4.92093Z",
|
|
8133
7961
|
fill: "#FF990A",
|
|
@@ -8135,15 +7963,15 @@ var VeryGoodEmoji = function() {
|
|
|
8135
7963
|
})));
|
|
8136
7964
|
};
|
|
8137
7965
|
var GoodEmoji = function() {
|
|
8138
|
-
return /* @__PURE__ */
|
|
7966
|
+
return /* @__PURE__ */ import_react45.default.createElement("svg", {
|
|
8139
7967
|
fill: "none",
|
|
8140
7968
|
height: "16",
|
|
8141
7969
|
viewBox: "0 0 16 16",
|
|
8142
7970
|
width: "16",
|
|
8143
7971
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8144
|
-
}, /* @__PURE__ */
|
|
7972
|
+
}, /* @__PURE__ */ import_react45.default.createElement("g", {
|
|
8145
7973
|
clipPath: "url(#clip0_53_167)"
|
|
8146
|
-
}, /* @__PURE__ */
|
|
7974
|
+
}, /* @__PURE__ */ import_react45.default.createElement("path", {
|
|
8147
7975
|
clipRule: "evenodd",
|
|
8148
7976
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM11.5249 10.8478L11.8727 10.3286L10.8342 9.6329L10.4863 10.1522C9.94904 10.9543 9.0363 11.4802 8.00098 11.4802C6.96759 11.4802 6.05634 10.9563 5.51863 10.1567L5.16986 9.63804L4.13259 10.3356L4.48137 10.8542C5.2414 11.9844 6.53398 12.7302 8.00098 12.7302C9.47073 12.7302 10.7654 11.9816 11.5249 10.8478ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
8149
7977
|
fill: "currentColor",
|
|
@@ -8151,15 +7979,15 @@ var GoodEmoji = function() {
|
|
|
8151
7979
|
})));
|
|
8152
7980
|
};
|
|
8153
7981
|
var BadEmoji = function() {
|
|
8154
|
-
return /* @__PURE__ */
|
|
7982
|
+
return /* @__PURE__ */ import_react45.default.createElement("svg", {
|
|
8155
7983
|
fill: "none",
|
|
8156
7984
|
height: "16",
|
|
8157
7985
|
viewBox: "0 0 16 16",
|
|
8158
7986
|
width: "16",
|
|
8159
7987
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8160
|
-
}, /* @__PURE__ */
|
|
7988
|
+
}, /* @__PURE__ */ import_react45.default.createElement("g", {
|
|
8161
7989
|
clipPath: "url(#clip0_53_152)"
|
|
8162
|
-
}, /* @__PURE__ */
|
|
7990
|
+
}, /* @__PURE__ */ import_react45.default.createElement("path", {
|
|
8163
7991
|
clipRule: "evenodd",
|
|
8164
7992
|
d: "M14.5 8C14.5 11.5899 11.5899 14.5 8 14.5C4.41015 14.5 1.5 11.5899 1.5 8C1.5 4.41015 4.41015 1.5 8 1.5C11.5899 1.5 14.5 4.41015 14.5 8ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM5.75 7.75C6.30228 7.75 6.75 7.30228 6.75 6.75C6.75 6.19772 6.30228 5.75 5.75 5.75C5.19772 5.75 4.75 6.19772 4.75 6.75C4.75 7.30228 5.19772 7.75 5.75 7.75ZM11.25 6.75C11.25 7.30228 10.8023 7.75 10.25 7.75C9.69771 7.75 9.25 7.30228 9.25 6.75C9.25 6.19772 9.69771 5.75 10.25 5.75C10.8023 5.75 11.25 6.19772 11.25 6.75ZM11.5249 11.2622L11.8727 11.7814L10.8342 12.4771L10.4863 11.9578C9.94904 11.1557 9.0363 10.6298 8.00098 10.6298C6.96759 10.6298 6.05634 11.1537 5.51863 11.9533L5.16986 12.4719L4.13259 11.7744L4.48137 11.2558C5.2414 10.1256 6.53398 9.37982 8.00098 9.37982C9.47073 9.37982 10.7654 10.1284 11.5249 11.2622Z",
|
|
8165
7993
|
fill: "currentColor",
|
|
@@ -8167,18 +7995,18 @@ var BadEmoji = function() {
|
|
|
8167
7995
|
})));
|
|
8168
7996
|
};
|
|
8169
7997
|
var VeryBadEmoji = function() {
|
|
8170
|
-
return /* @__PURE__ */
|
|
7998
|
+
return /* @__PURE__ */ import_react45.default.createElement("svg", {
|
|
8171
7999
|
fill: "none",
|
|
8172
8000
|
height: "16",
|
|
8173
8001
|
viewBox: "0 0 16 16",
|
|
8174
8002
|
width: "16",
|
|
8175
8003
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8176
|
-
}, /* @__PURE__ */
|
|
8004
|
+
}, /* @__PURE__ */ import_react45.default.createElement("g", {
|
|
8177
8005
|
clipPath: "url(#clip0_53_151)"
|
|
8178
|
-
}, /* @__PURE__ */
|
|
8006
|
+
}, /* @__PURE__ */ import_react45.default.createElement("path", {
|
|
8179
8007
|
d: "M11.841 12.0225C12.7197 12.9324 12.7197 14.4077 11.841 15.3176C10.9623 16.2275 9.53769 16.2275 8.65901 15.3176C7.78033 14.4077 7.78033 12.9324 8.65901 12.0225L10.25 10.375L11.841 12.0225Z",
|
|
8180
8008
|
fill: "#0070F3"
|
|
8181
|
-
}), /* @__PURE__ */
|
|
8009
|
+
}), /* @__PURE__ */ import_react45.default.createElement("path", {
|
|
8182
8010
|
clipRule: "evenodd",
|
|
8183
8011
|
d: "M8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 10.9668 3.48826 13.4711 6.20649 14.2496L5.79351 15.6916C2.44895 14.7338 0 11.6539 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8C16 9.4652 15.6054 10.8405 14.9162 12.023L13.6203 11.2677C14.1794 10.3083 14.5 9.19272 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5ZM6.75 6.75C6.75 7.30228 6.30228 7.75 5.75 7.75C5.19772 7.75 4.75 7.30228 4.75 6.75C4.75 6.19772 5.19772 5.75 5.75 5.75C6.30228 5.75 6.75 6.19772 6.75 6.75ZM10.25 7.75C10.8023 7.75 11.25 7.30228 11.25 6.75C11.25 6.19772 10.8023 5.75 10.25 5.75C9.69771 5.75 9.25 6.19772 9.25 6.75C9.25 7.30228 9.69771 7.75 10.25 7.75Z",
|
|
8184
8012
|
fill: "currentColor",
|
|
@@ -8186,7 +8014,7 @@ var VeryBadEmoji = function() {
|
|
|
8186
8014
|
})));
|
|
8187
8015
|
};
|
|
8188
8016
|
// components/blocks/feedback/FeedbackForm.tsx
|
|
8189
|
-
var
|
|
8017
|
+
var import_react46 = __toESM(require("react"));
|
|
8190
8018
|
var import_react_hook_form7 = require("react-hook-form");
|
|
8191
8019
|
var import_zod7 = require("@hookform/resolvers/zod");
|
|
8192
8020
|
var z7 = __toESM(require("zod"));
|
|
@@ -8207,9 +8035,9 @@ var FeedbackForm = function(props) {
|
|
|
8207
8035
|
var _ref = (0, import_react_hook_form7.useForm)({
|
|
8208
8036
|
resolver: (0, import_zod7.zodResolver)(formSchema)
|
|
8209
8037
|
}), handleSubmit = _ref.handleSubmit, control = _ref.control, formState = _ref.formState;
|
|
8210
|
-
return /* @__PURE__ */
|
|
8038
|
+
return /* @__PURE__ */ import_react46.default.createElement(Card, null, /* @__PURE__ */ import_react46.default.createElement(CardContent, {
|
|
8211
8039
|
headless: true
|
|
8212
|
-
}, /* @__PURE__ */
|
|
8040
|
+
}, /* @__PURE__ */ import_react46.default.createElement("form", {
|
|
8213
8041
|
onSubmit: handleSubmit(function(e) {
|
|
8214
8042
|
if (props.onSubmit) {
|
|
8215
8043
|
return props.onSubmit(e);
|
|
@@ -8218,13 +8046,13 @@ var FeedbackForm = function(props) {
|
|
|
8218
8046
|
}
|
|
8219
8047
|
}),
|
|
8220
8048
|
className: "hawa-flex hawa-flex-col hawa-gap-4"
|
|
8221
|
-
}, /* @__PURE__ */
|
|
8049
|
+
}, /* @__PURE__ */ import_react46.default.createElement(Label2, null, (_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.requestType), /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form7.Controller, {
|
|
8222
8050
|
name: "requestType",
|
|
8223
8051
|
control: control,
|
|
8224
8052
|
render: function(param) {
|
|
8225
8053
|
var field = param.field;
|
|
8226
8054
|
var _formState_errors_requestType_message, _formState_errors_requestType;
|
|
8227
|
-
return /* @__PURE__ */
|
|
8055
|
+
return /* @__PURE__ */ import_react46.default.createElement(Select, _object_spread_props(_object_spread({}, field), {
|
|
8228
8056
|
onChange: function(option) {
|
|
8229
8057
|
return field.onChange(option.value);
|
|
8230
8058
|
},
|
|
@@ -8232,70 +8060,70 @@ var FeedbackForm = function(props) {
|
|
|
8232
8060
|
helperText: (_formState_errors_requestType = formState.errors.requestType) === null || _formState_errors_requestType === void 0 ? void 0 : (_formState_errors_requestType_message = _formState_errors_requestType.message) === null || _formState_errors_requestType_message === void 0 ? void 0 : _formState_errors_requestType_message.toString()
|
|
8233
8061
|
}));
|
|
8234
8062
|
}
|
|
8235
|
-
}), /* @__PURE__ */
|
|
8063
|
+
}), /* @__PURE__ */ import_react46.default.createElement(Label2, null, props.texts.description), /* @__PURE__ */ import_react46.default.createElement(import_react_hook_form7.Controller, {
|
|
8236
8064
|
name: "description",
|
|
8237
8065
|
control: control,
|
|
8238
8066
|
render: function(param) {
|
|
8239
8067
|
var field = param.field;
|
|
8240
8068
|
var _formState_errors_description_message, _formState_errors_description;
|
|
8241
|
-
return /* @__PURE__ */
|
|
8069
|
+
return /* @__PURE__ */ import_react46.default.createElement(Textarea, _object_spread_props(_object_spread({}, field), {
|
|
8242
8070
|
helperText: formState.errors.description && ((_formState_errors_description = formState.errors.description) === null || _formState_errors_description === void 0 ? void 0 : (_formState_errors_description_message = _formState_errors_description.message) === null || _formState_errors_description_message === void 0 ? void 0 : _formState_errors_description_message.toString())
|
|
8243
8071
|
}));
|
|
8244
8072
|
}
|
|
8245
|
-
}), /* @__PURE__ */
|
|
8073
|
+
}), /* @__PURE__ */ import_react46.default.createElement(Button, {
|
|
8246
8074
|
type: "submit"
|
|
8247
8075
|
}, (_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.submit))));
|
|
8248
8076
|
};
|
|
8249
8077
|
// components/blocks/misc/LegalTexts.tsx
|
|
8250
|
-
var
|
|
8078
|
+
var import_react47 = __toESM(require("react"));
|
|
8251
8079
|
var LegalTexts = function(_param) {
|
|
8252
8080
|
var tabs = _param.tabs, props = _object_without_properties(_param, [
|
|
8253
8081
|
"tabs"
|
|
8254
8082
|
]);
|
|
8255
|
-
return /* @__PURE__ */
|
|
8083
|
+
return /* @__PURE__ */ import_react47.default.createElement(Tabs, {
|
|
8256
8084
|
value: props.activeTab,
|
|
8257
8085
|
onValueChange: props.handleTabChange,
|
|
8258
8086
|
defaultValue: props.defaultTab || tabs[0].value,
|
|
8259
8087
|
dir: props.direction
|
|
8260
|
-
}, /* @__PURE__ */
|
|
8088
|
+
}, /* @__PURE__ */ import_react47.default.createElement(TabsList, {
|
|
8261
8089
|
className: "hawa-w-full"
|
|
8262
8090
|
}, tabs.map(function(tab, index) {
|
|
8263
|
-
return /* @__PURE__ */
|
|
8091
|
+
return /* @__PURE__ */ import_react47.default.createElement(TabsTrigger, {
|
|
8264
8092
|
key: index,
|
|
8265
8093
|
value: tab.value
|
|
8266
8094
|
}, tab.title);
|
|
8267
8095
|
})), tabs.map(function(tab, index) {
|
|
8268
|
-
return /* @__PURE__ */
|
|
8096
|
+
return /* @__PURE__ */ import_react47.default.createElement(TabsContent, {
|
|
8269
8097
|
key: index,
|
|
8270
8098
|
value: tab.value
|
|
8271
|
-
}, /* @__PURE__ */
|
|
8099
|
+
}, /* @__PURE__ */ import_react47.default.createElement(ScrollArea, {
|
|
8272
8100
|
className: cn("hawa-p-4 hawa-rounded hawa-bg-muted hawa-border", props.scrollAreaClassName)
|
|
8273
8101
|
}, tab.content));
|
|
8274
8102
|
}));
|
|
8275
8103
|
};
|
|
8276
8104
|
// components/blocks/misc/EmptyState.tsx
|
|
8277
|
-
var
|
|
8105
|
+
var import_react48 = __toESM(require("react"));
|
|
8278
8106
|
var EmptyState = function(param) {
|
|
8279
8107
|
var texts = param.texts, onActionClick = param.onActionClick;
|
|
8280
8108
|
var _texts_youreCaughtUp, _texts_actionText;
|
|
8281
|
-
return /* @__PURE__ */
|
|
8109
|
+
return /* @__PURE__ */ import_react48.default.createElement(Card, null, /* @__PURE__ */ import_react48.default.createElement(CardContent, {
|
|
8282
8110
|
headless: true
|
|
8283
|
-
}, /* @__PURE__ */
|
|
8111
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8284
8112
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center "
|
|
8285
|
-
}, /* @__PURE__ */
|
|
8113
|
+
}, /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8286
8114
|
className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
8287
|
-
}, /* @__PURE__ */
|
|
8115
|
+
}, /* @__PURE__ */ import_react48.default.createElement("svg", {
|
|
8288
8116
|
stroke: "currentColor",
|
|
8289
8117
|
fill: "currentColor",
|
|
8290
8118
|
strokeWidth: "0",
|
|
8291
8119
|
viewBox: "0 0 512 512",
|
|
8292
8120
|
height: "0.35em",
|
|
8293
8121
|
width: "0.35em"
|
|
8294
|
-
}, /* @__PURE__ */
|
|
8122
|
+
}, /* @__PURE__ */ import_react48.default.createElement("path", {
|
|
8295
8123
|
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"
|
|
8296
|
-
}))), /* @__PURE__ */
|
|
8124
|
+
}))), /* @__PURE__ */ import_react48.default.createElement("div", {
|
|
8297
8125
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8298
|
-
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */
|
|
8126
|
+
}, (_texts_youreCaughtUp = texts === null || texts === void 0 ? void 0 : texts.youreCaughtUp) !== null && _texts_youreCaughtUp !== void 0 ? _texts_youreCaughtUp : "You're all caught up"))), /* @__PURE__ */ import_react48.default.createElement(CardFooter, null, /* @__PURE__ */ import_react48.default.createElement(Button, {
|
|
8299
8127
|
className: "hawa-w-full",
|
|
8300
8128
|
onClick: function() {
|
|
8301
8129
|
return onActionClick();
|
|
@@ -8303,36 +8131,36 @@ var EmptyState = function(param) {
|
|
|
8303
8131
|
}, (_texts_actionText = texts === null || texts === void 0 ? void 0 : texts.actionText) !== null && _texts_actionText !== void 0 ? _texts_actionText : "Go Home")));
|
|
8304
8132
|
};
|
|
8305
8133
|
// components/blocks/misc/Testimonial.tsx
|
|
8306
|
-
var
|
|
8134
|
+
var import_react49 = __toESM(require("react"));
|
|
8307
8135
|
var Testimonial = function(props) {
|
|
8308
|
-
return /* @__PURE__ */
|
|
8136
|
+
return /* @__PURE__ */ import_react49.default.createElement(Card, null, /* @__PURE__ */ import_react49.default.createElement(CardContent, {
|
|
8309
8137
|
headless: true
|
|
8310
|
-
}, /* @__PURE__ */
|
|
8138
|
+
}, /* @__PURE__ */ import_react49.default.createElement("div", null, /* @__PURE__ */ import_react49.default.createElement("p", {
|
|
8311
8139
|
className: "mb-4 max-w-sm"
|
|
8312
|
-
}, "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__ */
|
|
8140
|
+
}, "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_react49.default.createElement("div", {
|
|
8313
8141
|
className: "flex flex-row gap-4"
|
|
8314
|
-
}, /* @__PURE__ */
|
|
8142
|
+
}, /* @__PURE__ */ import_react49.default.createElement("svg", {
|
|
8315
8143
|
width: "48",
|
|
8316
8144
|
height: "48",
|
|
8317
8145
|
viewBox: "0 0 48 48",
|
|
8318
8146
|
fill: "none"
|
|
8319
|
-
}, /* @__PURE__ */
|
|
8147
|
+
}, /* @__PURE__ */ import_react49.default.createElement("rect", {
|
|
8320
8148
|
width: "48",
|
|
8321
8149
|
height: "48",
|
|
8322
8150
|
rx: "24",
|
|
8323
8151
|
fill: "#45BE8B"
|
|
8324
|
-
}), /* @__PURE__ */
|
|
8152
|
+
}), /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8325
8153
|
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",
|
|
8326
8154
|
fill: "#FFFFFF"
|
|
8327
|
-
}), /* @__PURE__ */
|
|
8155
|
+
}), /* @__PURE__ */ import_react49.default.createElement("path", {
|
|
8328
8156
|
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",
|
|
8329
8157
|
fill: "#FFFFFF"
|
|
8330
|
-
})), /* @__PURE__ */
|
|
8158
|
+
})), /* @__PURE__ */ import_react49.default.createElement("span", {
|
|
8331
8159
|
className: "border border-l "
|
|
8332
|
-
}), " ", /* @__PURE__ */
|
|
8160
|
+
}), " ", /* @__PURE__ */ import_react49.default.createElement("div", null, /* @__PURE__ */ import_react49.default.createElement("strong", null, "Brent Lassi"), /* @__PURE__ */ import_react49.default.createElement("div", null, " Chief Information Security Officer")))));
|
|
8333
8161
|
};
|
|
8334
8162
|
// components/blocks/misc/LeadGenerator.tsx
|
|
8335
|
-
var
|
|
8163
|
+
var import_react50 = __toESM(require("react"));
|
|
8336
8164
|
var import_react_hook_form8 = require("react-hook-form");
|
|
8337
8165
|
var LeadGenerator = function(param) {
|
|
8338
8166
|
var texts = param.texts, submitHandler = param.submitHandler;
|
|
@@ -8345,10 +8173,10 @@ var LeadGenerator = function(param) {
|
|
|
8345
8173
|
}
|
|
8346
8174
|
};
|
|
8347
8175
|
var _texts_submit;
|
|
8348
|
-
return /* @__PURE__ */
|
|
8176
|
+
return /* @__PURE__ */ import_react50.default.createElement(Card, null, /* @__PURE__ */ import_react50.default.createElement(CardHeader, null, /* @__PURE__ */ import_react50.default.createElement(CardTitle, null, texts === null || texts === void 0 ? void 0 : texts.title), /* @__PURE__ */ import_react50.default.createElement(CardDescription, null, texts === null || texts === void 0 ? void 0 : texts.subtitle)), /* @__PURE__ */ import_react50.default.createElement(CardContent, null, /* @__PURE__ */ import_react50.default.createElement("form", {
|
|
8349
8177
|
className: "hawa-flex hawa-flex-row hawa-gap-2",
|
|
8350
8178
|
onSubmit: handleSubmit(onSubmit)
|
|
8351
|
-
}, /* @__PURE__ */
|
|
8179
|
+
}, /* @__PURE__ */ import_react50.default.createElement(import_react_hook_form8.Controller, {
|
|
8352
8180
|
name: "email",
|
|
8353
8181
|
control: control,
|
|
8354
8182
|
rules: {
|
|
@@ -8361,32 +8189,32 @@ var LeadGenerator = function(param) {
|
|
|
8361
8189
|
defaultValue: "",
|
|
8362
8190
|
render: function(param) {
|
|
8363
8191
|
var field = param.field;
|
|
8364
|
-
return /* @__PURE__ */
|
|
8192
|
+
return /* @__PURE__ */ import_react50.default.createElement(Input, _object_spread_props(_object_spread({}, field), {
|
|
8365
8193
|
type: "email",
|
|
8366
8194
|
placeholder: "example@sikka.io"
|
|
8367
8195
|
}));
|
|
8368
8196
|
}
|
|
8369
|
-
}), /* @__PURE__ */
|
|
8197
|
+
}), /* @__PURE__ */ import_react50.default.createElement(Button, {
|
|
8370
8198
|
type: "submit",
|
|
8371
8199
|
disabled: !formState.isValid
|
|
8372
8200
|
}, (_texts_submit = texts === null || texts === void 0 ? void 0 : texts.submit) !== null && _texts_submit !== void 0 ? _texts_submit : "Submit"))));
|
|
8373
8201
|
};
|
|
8374
8202
|
// components/blocks/misc/Announcement.tsx
|
|
8375
|
-
var
|
|
8203
|
+
var import_react51 = __toESM(require("react"));
|
|
8376
8204
|
var Announcement = function(_param) {
|
|
8377
8205
|
var onActionClick = _param.onActionClick, props = _object_without_properties(_param, [
|
|
8378
8206
|
"onActionClick"
|
|
8379
8207
|
]);
|
|
8380
|
-
return /* @__PURE__ */
|
|
8208
|
+
return /* @__PURE__ */ import_react51.default.createElement(Card, null, /* @__PURE__ */ import_react51.default.createElement(CardContent, {
|
|
8381
8209
|
headless: true,
|
|
8382
8210
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-justify-between"
|
|
8383
|
-
}, /* @__PURE__ */
|
|
8211
|
+
}, /* @__PURE__ */ import_react51.default.createElement("div", {
|
|
8384
8212
|
className: "hawa-flex hawa-flex-col hawa-items-start hawa-justify-center "
|
|
8385
|
-
}, /* @__PURE__ */
|
|
8213
|
+
}, /* @__PURE__ */ import_react51.default.createElement("span", {
|
|
8386
8214
|
className: "hawa-text-lg hawa-font-bold"
|
|
8387
|
-
}, props.title), /* @__PURE__ */
|
|
8215
|
+
}, props.title), /* @__PURE__ */ import_react51.default.createElement("span", {
|
|
8388
8216
|
className: "hawa-text-sm"
|
|
8389
|
-
}, props.subtitle)), /* @__PURE__ */
|
|
8217
|
+
}, props.subtitle)), /* @__PURE__ */ import_react51.default.createElement(Button, {
|
|
8390
8218
|
onClick: function() {
|
|
8391
8219
|
return onActionClick();
|
|
8392
8220
|
},
|
|
@@ -8394,56 +8222,56 @@ var Announcement = function(_param) {
|
|
|
8394
8222
|
}, props.actionText)));
|
|
8395
8223
|
};
|
|
8396
8224
|
// components/blocks/misc/NotFound.tsx
|
|
8397
|
-
var
|
|
8225
|
+
var import_react52 = __toESM(require("react"));
|
|
8398
8226
|
var NotFound = function(param) {
|
|
8399
8227
|
var _param_variant = param.variant, variant = _param_variant === void 0 ? "contained" : _param_variant, texts = param.texts;
|
|
8400
8228
|
var _texts_pageNotFound, _texts_ifLost, _texts_home;
|
|
8401
|
-
return /* @__PURE__ */
|
|
8229
|
+
return /* @__PURE__ */ import_react52.default.createElement(Card, null, /* @__PURE__ */ import_react52.default.createElement(CardContent, {
|
|
8402
8230
|
headless: true
|
|
8403
|
-
}, /* @__PURE__ */
|
|
8231
|
+
}, /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8404
8232
|
className: "hawa-flex hawa-flex-col hawa-items-center dark:hawa-text-white"
|
|
8405
|
-
}, /* @__PURE__ */
|
|
8233
|
+
}, /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8406
8234
|
className: "hawa-text-center hawa-text-6xl hawa-font-bold "
|
|
8407
|
-
}, "404"), /* @__PURE__ */
|
|
8235
|
+
}, "404"), /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8408
8236
|
className: "hawa-m-2 hawa-text-center hawa-text-xl hawa-font-bold "
|
|
8409
|
-
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */
|
|
8237
|
+
}, (_texts_pageNotFound = texts === null || texts === void 0 ? void 0 : texts.pageNotFound) !== null && _texts_pageNotFound !== void 0 ? _texts_pageNotFound : "Page Not Found"), /* @__PURE__ */ import_react52.default.createElement("div", {
|
|
8410
8238
|
className: "hawa-mb-4 hawa-text-center"
|
|
8411
|
-
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */
|
|
8239
|
+
}, (_texts_ifLost = texts === null || texts === void 0 ? void 0 : texts.ifLost) !== null && _texts_ifLost !== void 0 ? _texts_ifLost : /* @__PURE__ */ import_react52.default.createElement(import_react52.default.Fragment, null, "If you're lost please contact us ", /* @__PURE__ */ import_react52.default.createElement("span", {
|
|
8412
8240
|
className: "clickable-link"
|
|
8413
|
-
}, "help@sikka.io"))), /* @__PURE__ */
|
|
8241
|
+
}, "help@sikka.io"))), /* @__PURE__ */ import_react52.default.createElement(Button, {
|
|
8414
8242
|
className: "hawa-w-full"
|
|
8415
8243
|
}, (_texts_home = texts === null || texts === void 0 ? void 0 : texts.home) !== null && _texts_home !== void 0 ? _texts_home : "Home"))));
|
|
8416
8244
|
};
|
|
8417
8245
|
// components/blocks/misc/NoPermission.tsx
|
|
8418
|
-
var
|
|
8246
|
+
var import_react53 = __toESM(require("react"));
|
|
8419
8247
|
var NoPermission = function(param) {
|
|
8420
8248
|
var texts = param.texts;
|
|
8421
8249
|
var _texts_title, _texts_subtitle;
|
|
8422
|
-
return /* @__PURE__ */
|
|
8250
|
+
return /* @__PURE__ */ import_react53.default.createElement(Card, null, /* @__PURE__ */ import_react53.default.createElement(CardContent, {
|
|
8423
8251
|
headless: true
|
|
8424
|
-
}, /* @__PURE__ */
|
|
8252
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8425
8253
|
className: "hawa-flex hawa-flex-col hawa-items-center hawa-justify-center hawa-text-center"
|
|
8426
|
-
}, /* @__PURE__ */
|
|
8254
|
+
}, /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8427
8255
|
className: "hawa-flex hawa-h-10 hawa-w-10 hawa-flex-col hawa-items-center hawa-justify-center hawa-rounded-3xl hawa-bg-primary hawa-text-6xl hawa-font-bold hawa-text-primary-foreground"
|
|
8428
|
-
}, /* @__PURE__ */
|
|
8256
|
+
}, /* @__PURE__ */ import_react53.default.createElement("svg", {
|
|
8429
8257
|
stroke: "currentColor",
|
|
8430
8258
|
fill: "currentColor",
|
|
8431
8259
|
strokeWidth: "0",
|
|
8432
8260
|
viewBox: "0 0 448 512",
|
|
8433
8261
|
height: "0.35em",
|
|
8434
8262
|
width: "0.35em"
|
|
8435
|
-
}, /* @__PURE__ */
|
|
8263
|
+
}, /* @__PURE__ */ import_react53.default.createElement("path", {
|
|
8436
8264
|
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"
|
|
8437
|
-
})), " "), /* @__PURE__ */
|
|
8265
|
+
})), " "), /* @__PURE__ */ import_react53.default.createElement("div", {
|
|
8438
8266
|
className: "hawa-m-2 hawa-text-xl hawa-font-bold"
|
|
8439
|
-
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */
|
|
8267
|
+
}, (_texts_title = texts === null || texts === void 0 ? void 0 : texts.title) !== null && _texts_title !== void 0 ? _texts_title : "You don't have permission"), /* @__PURE__ */ import_react53.default.createElement("div", null, (_texts_subtitle = texts === null || texts === void 0 ? void 0 : texts.subtitle) !== null && _texts_subtitle !== void 0 ? _texts_subtitle : "If you think this is a problem please contact your administrator or our customer support"))));
|
|
8440
8268
|
};
|
|
8441
8269
|
// components/blocks/pricing/PricingPlans.tsx
|
|
8442
|
-
var
|
|
8270
|
+
var import_react54 = __toESM(require("react"));
|
|
8443
8271
|
var PricingPlans = function(props) {
|
|
8444
|
-
return /* @__PURE__ */
|
|
8272
|
+
return /* @__PURE__ */ import_react54.default.createElement("div", null, /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8445
8273
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
8446
|
-
}, /* @__PURE__ */
|
|
8274
|
+
}, /* @__PURE__ */ import_react54.default.createElement(Radio, {
|
|
8447
8275
|
design: "tabs",
|
|
8448
8276
|
defaultValue: props.currentCycle,
|
|
8449
8277
|
options: props.billingCycles,
|
|
@@ -8452,7 +8280,7 @@ var PricingPlans = function(props) {
|
|
|
8452
8280
|
props.onCycleChange(e);
|
|
8453
8281
|
}
|
|
8454
8282
|
}
|
|
8455
|
-
}), /* @__PURE__ */
|
|
8283
|
+
}), /* @__PURE__ */ import_react54.default.createElement(Radio, {
|
|
8456
8284
|
design: "tabs",
|
|
8457
8285
|
defaultValue: props.currentCurrency,
|
|
8458
8286
|
options: props.currencies,
|
|
@@ -8461,10 +8289,10 @@ var PricingPlans = function(props) {
|
|
|
8461
8289
|
props.onCurrencyChange(e);
|
|
8462
8290
|
}
|
|
8463
8291
|
}
|
|
8464
|
-
})), /* @__PURE__ */
|
|
8292
|
+
})), /* @__PURE__ */ import_react54.default.createElement("div", {
|
|
8465
8293
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
8466
8294
|
}, props.plans.map(function(plan, index) {
|
|
8467
|
-
return /* @__PURE__ */
|
|
8295
|
+
return /* @__PURE__ */ import_react54.default.createElement(PricingCard, _object_spread_props(_object_spread({
|
|
8468
8296
|
key: index,
|
|
8469
8297
|
onPlanClicked: function() {
|
|
8470
8298
|
if (props.onPlanClicked) {
|
|
@@ -8485,26 +8313,26 @@ var PricingPlans = function(props) {
|
|
|
8485
8313
|
})));
|
|
8486
8314
|
};
|
|
8487
8315
|
// components/blocks/pricing/ComparingPlans.tsx
|
|
8488
|
-
var
|
|
8316
|
+
var import_react55 = __toESM(require("react"));
|
|
8489
8317
|
var CheckMark = function() {
|
|
8490
|
-
return /* @__PURE__ */
|
|
8318
|
+
return /* @__PURE__ */ import_react55.default.createElement("svg", {
|
|
8491
8319
|
className: "hawa-h-5 hawa-w-5 hawa-text-green-500",
|
|
8492
8320
|
"aria-hidden": "true",
|
|
8493
8321
|
fill: "currentColor",
|
|
8494
8322
|
viewBox: "0 0 20 20"
|
|
8495
|
-
}, /* @__PURE__ */
|
|
8323
|
+
}, /* @__PURE__ */ import_react55.default.createElement("path", {
|
|
8496
8324
|
fillRule: "evenodd",
|
|
8497
8325
|
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",
|
|
8498
8326
|
clipRule: "evenodd"
|
|
8499
8327
|
}));
|
|
8500
8328
|
};
|
|
8501
8329
|
var UncheckMark = function() {
|
|
8502
|
-
return /* @__PURE__ */
|
|
8330
|
+
return /* @__PURE__ */ import_react55.default.createElement("svg", {
|
|
8503
8331
|
className: "hawa-h-5 hawa-w-5 hawa-text-red-500",
|
|
8504
8332
|
"aria-hidden": "true",
|
|
8505
8333
|
fill: "currentColor",
|
|
8506
8334
|
viewBox: "0 0 20 20"
|
|
8507
|
-
}, /* @__PURE__ */
|
|
8335
|
+
}, /* @__PURE__ */ import_react55.default.createElement("path", {
|
|
8508
8336
|
fillRule: "evenodd",
|
|
8509
8337
|
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",
|
|
8510
8338
|
clipRule: "evenodd"
|
|
@@ -8512,14 +8340,14 @@ var UncheckMark = function() {
|
|
|
8512
8340
|
};
|
|
8513
8341
|
var ComparingPlans = function(props) {
|
|
8514
8342
|
var _props_plans;
|
|
8515
|
-
var _ref = _sliced_to_array((0,
|
|
8516
|
-
var _ref1 = _sliced_to_array((0,
|
|
8517
|
-
return /* @__PURE__ */
|
|
8343
|
+
var _ref = _sliced_to_array((0, import_react55.useState)("sar"), 2), currentCurrency = _ref[0], setCurrentCurrency = _ref[1];
|
|
8344
|
+
var _ref1 = _sliced_to_array((0, import_react55.useState)("month"), 2), currentCycle = _ref1[0], setCurrentCycle = _ref1[1];
|
|
8345
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8518
8346
|
id: "detailed-pricing",
|
|
8519
8347
|
className: "hawa-w-full hawa-overflow-x-auto"
|
|
8520
|
-
}, /* @__PURE__ */
|
|
8348
|
+
}, /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8521
8349
|
className: "hawa-mb-2 hawa-flex hawa-w-full hawa-justify-between"
|
|
8522
|
-
}, /* @__PURE__ */
|
|
8350
|
+
}, /* @__PURE__ */ import_react55.default.createElement(Radio, {
|
|
8523
8351
|
design: "tabs",
|
|
8524
8352
|
defaultValue: currentCycle,
|
|
8525
8353
|
options: props.billingCycles,
|
|
@@ -8530,7 +8358,7 @@ var ComparingPlans = function(props) {
|
|
|
8530
8358
|
console.log("onCycleChange was not provided");
|
|
8531
8359
|
}
|
|
8532
8360
|
}
|
|
8533
|
-
}), /* @__PURE__ */
|
|
8361
|
+
}), /* @__PURE__ */ import_react55.default.createElement(Radio, {
|
|
8534
8362
|
design: "tabs",
|
|
8535
8363
|
defaultValue: currentCurrency,
|
|
8536
8364
|
options: props.currencies,
|
|
@@ -8541,56 +8369,56 @@ var ComparingPlans = function(props) {
|
|
|
8541
8369
|
console.log("onCurrencyChange was not provided");
|
|
8542
8370
|
}
|
|
8543
8371
|
}
|
|
8544
|
-
})), /* @__PURE__ */
|
|
8372
|
+
})), /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8545
8373
|
className: " hawa-overflow-hidden hawa-rounded"
|
|
8546
|
-
}, /* @__PURE__ */
|
|
8374
|
+
}, /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8547
8375
|
className: "hawa-grid hawa-grid-cols-4 hawa-gap-x-2 hawa-border-b hawa-border-t hawa-border-gray-200 hawa-bg-gray-100 hawa-p-4 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-border-gray-700 dark:hawa-bg-gray-800 dark:hawa-text-white"
|
|
8548
|
-
}, /* @__PURE__ */
|
|
8376
|
+
}, /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8549
8377
|
className: "hawa-flex hawa-items-center"
|
|
8550
8378
|
}), props.plans.map(function(plan, i) {
|
|
8551
|
-
return /* @__PURE__ */
|
|
8379
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8552
8380
|
key: i
|
|
8553
|
-
}, /* @__PURE__ */
|
|
8381
|
+
}, /* @__PURE__ */ import_react55.default.createElement("h5", {
|
|
8554
8382
|
className: "hawa-text-md hawa-font-bold hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8555
|
-
}, plan.texts.title), /* @__PURE__ */
|
|
8383
|
+
}, plan.texts.title), /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8556
8384
|
className: " hawa-flex hawa-items-baseline hawa-text-gray-900 dark:hawa-text-white"
|
|
8557
|
-
}, /* @__PURE__ */
|
|
8385
|
+
}, /* @__PURE__ */ import_react55.default.createElement(import_react55.default.Fragment, null, /* @__PURE__ */ import_react55.default.createElement("span", {
|
|
8558
8386
|
className: "hawa-text-5xl hawa-font-extrabold hawa-tracking-tight"
|
|
8559
|
-
}, plan.price), /* @__PURE__ */
|
|
8387
|
+
}, plan.price), /* @__PURE__ */ import_react55.default.createElement("span", {
|
|
8560
8388
|
className: "hawa-mx-1 hawa-text-sm hawa-font-semibold"
|
|
8561
|
-
}, plan.texts.currencyText)), /* @__PURE__ */
|
|
8389
|
+
}, plan.texts.currencyText)), /* @__PURE__ */ import_react55.default.createElement("span", {
|
|
8562
8390
|
className: "hawa-ml-1 hawa-text-xl hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8563
|
-
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */
|
|
8391
|
+
}, "/ ", plan.texts.cycleText)), /* @__PURE__ */ import_react55.default.createElement("h5", {
|
|
8564
8392
|
className: "hawa-text-md hawa-font-normal hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8565
8393
|
}, plan.texts.subtitle));
|
|
8566
8394
|
})), (_props_plans = props.plans) === null || _props_plans === void 0 ? void 0 : _props_plans.map(function(plan) {
|
|
8567
8395
|
return plan.features.map(function(feature, j) {
|
|
8568
|
-
return /* @__PURE__ */
|
|
8396
|
+
return /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8569
8397
|
key: j,
|
|
8570
8398
|
className: "hawa-grid hawa-grid-cols-4 hawa-gap-x-16 hawa-border-b hawa-border-gray-200 hawa-px-4 hawa-py-5 hawa-text-sm hawa-text-gray-700 dark:hawa-border-gray-700"
|
|
8571
|
-
}, /* @__PURE__ */
|
|
8399
|
+
}, /* @__PURE__ */ import_react55.default.createElement("div", {
|
|
8572
8400
|
className: " hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-gray-500 dark:hawa-text-gray-400"
|
|
8573
|
-
}, feature.text, feature.description && /* @__PURE__ */
|
|
8401
|
+
}, feature.text, feature.description && /* @__PURE__ */ import_react55.default.createElement(Tooltip, {
|
|
8574
8402
|
side: "right",
|
|
8575
8403
|
content: feature.description
|
|
8576
|
-
}, /* @__PURE__ */
|
|
8404
|
+
}, /* @__PURE__ */ import_react55.default.createElement("svg", {
|
|
8577
8405
|
stroke: "currentColor",
|
|
8578
8406
|
fill: "currentColor",
|
|
8579
8407
|
strokeWidth: "0",
|
|
8580
8408
|
viewBox: "0 0 16 16",
|
|
8581
8409
|
height: "1em",
|
|
8582
8410
|
width: "1em"
|
|
8583
|
-
}, /* @__PURE__ */
|
|
8411
|
+
}, /* @__PURE__ */ import_react55.default.createElement("path", {
|
|
8584
8412
|
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"
|
|
8585
|
-
})))), /* @__PURE__ */
|
|
8413
|
+
})))), /* @__PURE__ */ import_react55.default.createElement(UncheckMark, null), /* @__PURE__ */ import_react55.default.createElement(CheckMark, null), /* @__PURE__ */ import_react55.default.createElement(UncheckMark, null));
|
|
8586
8414
|
});
|
|
8587
8415
|
})));
|
|
8588
8416
|
};
|
|
8589
8417
|
// components/blocks/pricing/HorizontalPricing.tsx
|
|
8590
|
-
var
|
|
8418
|
+
var import_react56 = __toESM(require("react"));
|
|
8591
8419
|
var import_clsx13 = __toESM(require("clsx"));
|
|
8592
8420
|
var HorizontalPricing = function(props) {
|
|
8593
|
-
var _ref = _sliced_to_array((0,
|
|
8421
|
+
var _ref = _sliced_to_array((0, import_react56.useState)(""), 2), selectedCard = _ref[0], setSelectedCard = _ref[1];
|
|
8594
8422
|
var data = [
|
|
8595
8423
|
{
|
|
8596
8424
|
title: "basic",
|
|
@@ -8608,96 +8436,96 @@ var HorizontalPricing = function(props) {
|
|
|
8608
8436
|
cycle: "/mo"
|
|
8609
8437
|
}
|
|
8610
8438
|
];
|
|
8611
|
-
return /* @__PURE__ */
|
|
8439
|
+
return /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8612
8440
|
className: "hawa-z-10 hawa-w-full hawa-max-w-screen-sm"
|
|
8613
|
-
}, /* @__PURE__ */
|
|
8441
|
+
}, /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8614
8442
|
className: "hawa-max-w-2xl "
|
|
8615
|
-
}, /* @__PURE__ */
|
|
8443
|
+
}, /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8616
8444
|
className: "hawa-flex hawa-flex-row hawa-justify-between"
|
|
8617
|
-
}, /* @__PURE__ */
|
|
8445
|
+
}, /* @__PURE__ */ import_react56.default.createElement(Radio, {
|
|
8618
8446
|
design: "tabs",
|
|
8619
8447
|
options: props.currencies,
|
|
8620
8448
|
defaultValue: props.currentCurrency
|
|
8621
|
-
}), /* @__PURE__ */
|
|
8449
|
+
}), /* @__PURE__ */ import_react56.default.createElement(Radio, {
|
|
8622
8450
|
design: "tabs",
|
|
8623
8451
|
options: props.billingCycles,
|
|
8624
8452
|
defaultValue: props.currentCycle
|
|
8625
8453
|
})), data.map(function(d, i) {
|
|
8626
|
-
return /* @__PURE__ */
|
|
8454
|
+
return /* @__PURE__ */ import_react56.default.createElement("label", {
|
|
8627
8455
|
key: i,
|
|
8628
8456
|
htmlFor: d.title,
|
|
8629
8457
|
className: "",
|
|
8630
8458
|
onClick: function() {
|
|
8631
8459
|
return setSelectedCard(d.title);
|
|
8632
8460
|
}
|
|
8633
|
-
}, /* @__PURE__ */
|
|
8461
|
+
}, /* @__PURE__ */ import_react56.default.createElement("input", {
|
|
8634
8462
|
type: "radio",
|
|
8635
8463
|
name: "radio",
|
|
8636
8464
|
id: d.title,
|
|
8637
8465
|
className: "hawa-peer hawa-appearance-none"
|
|
8638
|
-
}), /* @__PURE__ */
|
|
8466
|
+
}), /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8639
8467
|
className: (0, import_clsx13.default)(selectedCard === d.title ? "peer-checked:hawa-border-blue-500" : "", "hawa-peer hawa-flex hawa-cursor-pointer hawa-items-center hawa-justify-between hawa-rounded-xl hawa-border hawa-bg-background hawa-px-5 hawa-py-4 hawa-shadow dark:hawa-text-white peer-checked:[&_.active]:hawa-block peer-checked:[&_.default]:hawa-hidden")
|
|
8640
|
-
}, /* @__PURE__ */
|
|
8468
|
+
}, /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8641
8469
|
className: "hawa-peer hawa-flex hawa-items-center hawa-gap-4"
|
|
8642
|
-
}, /* @__PURE__ */
|
|
8470
|
+
}, /* @__PURE__ */ import_react56.default.createElement(CheckIcons, null), /* @__PURE__ */ import_react56.default.createElement(CardText, {
|
|
8643
8471
|
title: "Enterprise",
|
|
8644
8472
|
subtitle: "For startups and new businesses"
|
|
8645
|
-
})), /* @__PURE__ */
|
|
8473
|
+
})), /* @__PURE__ */ import_react56.default.createElement(CardPrice, {
|
|
8646
8474
|
amount: d.price,
|
|
8647
8475
|
cycle: d.cycle
|
|
8648
8476
|
})));
|
|
8649
8477
|
})));
|
|
8650
8478
|
};
|
|
8651
8479
|
var CheckIcons = function() {
|
|
8652
|
-
return /* @__PURE__ */
|
|
8480
|
+
return /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, /* @__PURE__ */ import_react56.default.createElement("svg", {
|
|
8653
8481
|
fill: "none",
|
|
8654
8482
|
viewBox: "0 0 24 24",
|
|
8655
8483
|
strokeWidth: "1.5",
|
|
8656
8484
|
stroke: "currentColor",
|
|
8657
8485
|
className: "hawa-default hawa-h-8 hawa-w-8 hawa-text-neutral-500"
|
|
8658
|
-
}, /* @__PURE__ */
|
|
8486
|
+
}, /* @__PURE__ */ import_react56.default.createElement("path", {
|
|
8659
8487
|
strokeLinecap: "round",
|
|
8660
8488
|
strokeLinejoin: "round",
|
|
8661
8489
|
d: "M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
8662
|
-
})), /* @__PURE__ */
|
|
8490
|
+
})), /* @__PURE__ */ import_react56.default.createElement("svg", {
|
|
8663
8491
|
viewBox: "0 0 24 24",
|
|
8664
8492
|
fill: "currentColor",
|
|
8665
8493
|
className: "hawa-active hawa-hidden hawa-h-8 hawa-w-8 hawa-text-blue-500"
|
|
8666
|
-
}, /* @__PURE__ */
|
|
8494
|
+
}, /* @__PURE__ */ import_react56.default.createElement("path", {
|
|
8667
8495
|
fillRule: "evenodd",
|
|
8668
8496
|
clipRule: "evenodd",
|
|
8669
8497
|
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"
|
|
8670
8498
|
})));
|
|
8671
8499
|
};
|
|
8672
8500
|
var CardText = function(props) {
|
|
8673
|
-
return /* @__PURE__ */
|
|
8501
|
+
return /* @__PURE__ */ import_react56.default.createElement("div", {
|
|
8674
8502
|
className: "hawa-peer hawa-flex hawa-flex-col hawa-items-start "
|
|
8675
|
-
}, /* @__PURE__ */
|
|
8503
|
+
}, /* @__PURE__ */ import_react56.default.createElement("h2", {
|
|
8676
8504
|
className: "hawa-font-medium hawa-text-neutral-700 dark:hawa-text-gray-100 sm:hawa-text-xl"
|
|
8677
|
-
}, props.title), /* @__PURE__ */
|
|
8505
|
+
}, props.title), /* @__PURE__ */ import_react56.default.createElement("p", {
|
|
8678
8506
|
className: "hawa-text-sm hawa-text-neutral-500 dark:hawa-text-gray-300"
|
|
8679
8507
|
}, props.subtitle, " "));
|
|
8680
8508
|
};
|
|
8681
8509
|
var CardPrice = function(props) {
|
|
8682
|
-
return /* @__PURE__ */
|
|
8510
|
+
return /* @__PURE__ */ import_react56.default.createElement("h2", {
|
|
8683
8511
|
className: "hawa-peer hawa-text-xl hawa-font-semibold hawa-text-neutral-900 dark:hawa-text-white sm:hawa-text-2xl"
|
|
8684
|
-
}, props.amount, /* @__PURE__ */
|
|
8512
|
+
}, props.amount, /* @__PURE__ */ import_react56.default.createElement("span", {
|
|
8685
8513
|
className: "hawa-text-base hawa-font-medium hawa-text-neutral-400"
|
|
8686
8514
|
}, props.cycle));
|
|
8687
8515
|
};
|
|
8688
8516
|
// components/blocks/Usage.tsx
|
|
8689
|
-
var
|
|
8517
|
+
var import_react57 = __toESM(require("react"));
|
|
8690
8518
|
var Usage = function(props) {
|
|
8691
8519
|
var _props_percent;
|
|
8692
|
-
return /* @__PURE__ */
|
|
8520
|
+
return /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8693
8521
|
className: "hawa-flex hawa-w-full hawa-flex-col hawa-gap-1 hawa-rounded hawa-border hawa-bg-card hawa-p-4"
|
|
8694
|
-
}, /* @__PURE__ */
|
|
8522
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8695
8523
|
className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2"
|
|
8696
|
-
}, /* @__PURE__ */
|
|
8524
|
+
}, /* @__PURE__ */ import_react57.default.createElement("span", {
|
|
8697
8525
|
className: "hawa-bg-white-200"
|
|
8698
|
-
}, props.title), props.tooltip && /* @__PURE__ */
|
|
8526
|
+
}, props.title), props.tooltip && /* @__PURE__ */ import_react57.default.createElement(Tooltip, {
|
|
8699
8527
|
content: props.tooltip
|
|
8700
|
-
}, /* @__PURE__ */
|
|
8528
|
+
}, /* @__PURE__ */ import_react57.default.createElement("svg", {
|
|
8701
8529
|
stroke: "currentColor",
|
|
8702
8530
|
"aria-label": "Exclamation Circle",
|
|
8703
8531
|
fill: "currentColor",
|
|
@@ -8705,28 +8533,28 @@ var Usage = function(props) {
|
|
|
8705
8533
|
viewBox: "0 0 16 16",
|
|
8706
8534
|
height: "1em",
|
|
8707
8535
|
width: "1em"
|
|
8708
|
-
}, /* @__PURE__ */
|
|
8536
|
+
}, /* @__PURE__ */ import_react57.default.createElement("path", {
|
|
8709
8537
|
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"
|
|
8710
|
-
})))), /* @__PURE__ */
|
|
8538
|
+
})))), /* @__PURE__ */ import_react57.default.createElement("div", {
|
|
8711
8539
|
className: "hawa-bg-white-100 hawa-flex hawa-flex-row"
|
|
8712
|
-
}, /* @__PURE__ */
|
|
8540
|
+
}, /* @__PURE__ */ import_react57.default.createElement("div", null, props.currentUsage), /* @__PURE__ */ import_react57.default.createElement("div", null, " (", props.percent, "%)")), /* @__PURE__ */ import_react57.default.createElement(Progress, {
|
|
8713
8541
|
value: (_props_percent = props.percent) !== null && _props_percent !== void 0 ? _props_percent : 0
|
|
8714
8542
|
}));
|
|
8715
8543
|
};
|
|
8716
8544
|
// components/hooks/useDiscloser.ts
|
|
8717
|
-
var
|
|
8545
|
+
var import_react58 = require("react");
|
|
8718
8546
|
// components/hooks/useHover.ts
|
|
8719
|
-
var
|
|
8547
|
+
var import_react59 = require("react");
|
|
8720
8548
|
// components/hooks/useCarousel.ts
|
|
8721
|
-
var
|
|
8549
|
+
var import_react60 = require("react");
|
|
8722
8550
|
// components/hooks/useWindowSize.ts
|
|
8723
|
-
var
|
|
8551
|
+
var import_react61 = require("react");
|
|
8724
8552
|
var useWindowSize = function() {
|
|
8725
|
-
var _ref = _sliced_to_array((0,
|
|
8553
|
+
var _ref = _sliced_to_array((0, import_react61.useState)({
|
|
8726
8554
|
width: void 0,
|
|
8727
8555
|
height: void 0
|
|
8728
8556
|
}), 2), windowSize = _ref[0], setWindowSize = _ref[1];
|
|
8729
|
-
(0,
|
|
8557
|
+
(0, import_react61.useEffect)(function() {
|
|
8730
8558
|
var handleResize = function handleResize() {
|
|
8731
8559
|
setWindowSize({
|
|
8732
8560
|
width: window.innerWidth,
|
|
@@ -8742,7 +8570,7 @@ var useWindowSize = function() {
|
|
|
8742
8570
|
return windowSize;
|
|
8743
8571
|
};
|
|
8744
8572
|
// components/hooks/useFocusWithin.ts
|
|
8745
|
-
var
|
|
8573
|
+
var import_react62 = require("react");
|
|
8746
8574
|
function containsRelatedTarget(event) {
|
|
8747
8575
|
if (_instanceof(event.currentTarget, HTMLElement) && _instanceof(event.relatedTarget, HTMLElement)) {
|
|
8748
8576
|
return event.currentTarget.contains(event.relatedTarget);
|
|
@@ -8751,9 +8579,9 @@ function containsRelatedTarget(event) {
|
|
|
8751
8579
|
}
|
|
8752
8580
|
function useFocusWithin() {
|
|
8753
8581
|
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, onBlur = _ref.onBlur, onFocus = _ref.onFocus;
|
|
8754
|
-
var ref = (0,
|
|
8755
|
-
var _ref1 = _sliced_to_array((0,
|
|
8756
|
-
var focusedRef = (0,
|
|
8582
|
+
var ref = (0, import_react62.useRef)(null);
|
|
8583
|
+
var _ref1 = _sliced_to_array((0, import_react62.useState)(false), 2), focused = _ref1[0], _setFocused = _ref1[1];
|
|
8584
|
+
var focusedRef = (0, import_react62.useRef)(false);
|
|
8757
8585
|
var setFocused = function(value) {
|
|
8758
8586
|
_setFocused(value);
|
|
8759
8587
|
focusedRef.current = value;
|
|
@@ -8770,7 +8598,7 @@ function useFocusWithin() {
|
|
|
8770
8598
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
8771
8599
|
}
|
|
8772
8600
|
};
|
|
8773
|
-
(0,
|
|
8601
|
+
(0, import_react62.useEffect)(function() {
|
|
8774
8602
|
if (ref.current) {
|
|
8775
8603
|
ref.current.addEventListener("focusin", handleFocusIn);
|
|
8776
8604
|
ref.current.addEventListener("focusout", handleFocusOut);
|
|
@@ -8791,7 +8619,7 @@ function useFocusWithin() {
|
|
|
8791
8619
|
};
|
|
8792
8620
|
}
|
|
8793
8621
|
// components/hooks/useMediaQuery.ts
|
|
8794
|
-
var
|
|
8622
|
+
var import_react63 = require("react");
|
|
8795
8623
|
function attachMediaListener(query, callback) {
|
|
8796
8624
|
try {
|
|
8797
8625
|
query.addEventListener("change", callback);
|
|
@@ -8818,9 +8646,9 @@ function useMediaQuery(query, initialValue) {
|
|
|
8818
8646
|
var getInitialValueInEffect = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
8819
8647
|
getInitialValueInEffect: true
|
|
8820
8648
|
}).getInitialValueInEffect;
|
|
8821
|
-
var _ref = _sliced_to_array((0,
|
|
8822
|
-
var queryRef = (0,
|
|
8823
|
-
(0,
|
|
8649
|
+
var _ref = _sliced_to_array((0, import_react63.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)), 2), matches = _ref[0], setMatches = _ref[1];
|
|
8650
|
+
var queryRef = (0, import_react63.useRef)();
|
|
8651
|
+
(0, import_react63.useEffect)(function() {
|
|
8824
8652
|
if ("matchMedia" in window) {
|
|
8825
8653
|
queryRef.current = window.matchMedia(query);
|
|
8826
8654
|
setMatches(queryRef.current.matches);
|
|
@@ -8835,15 +8663,15 @@ function useMediaQuery(query, initialValue) {
|
|
|
8835
8663
|
return matches;
|
|
8836
8664
|
}
|
|
8837
8665
|
// components/hooks/useScrollPosition.ts
|
|
8838
|
-
var
|
|
8666
|
+
var import_react64 = require("react");
|
|
8839
8667
|
// components/hooks/useTable.ts
|
|
8840
|
-
var
|
|
8668
|
+
var import_react65 = require("react");
|
|
8841
8669
|
// components/hooks/useTabs.ts
|
|
8842
|
-
var
|
|
8670
|
+
var import_react66 = require("react");
|
|
8843
8671
|
function useTabs() {
|
|
8844
8672
|
var initialTab = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
8845
|
-
var _ref = _sliced_to_array((0,
|
|
8846
|
-
(0,
|
|
8673
|
+
var _ref = _sliced_to_array((0, import_react66.useState)(initialTab), 2), activeTab = _ref[0], setActiveTab = _ref[1];
|
|
8674
|
+
(0, import_react66.useEffect)(function() {
|
|
8847
8675
|
var handleHashChange = function() {
|
|
8848
8676
|
var hash = window.location.hash.substring(1);
|
|
8849
8677
|
setActiveTab(hash || initialTab);
|