@geowiki/design-system 0.16.9-dev.22 → 0.16.9-dev.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +288 -693
- package/dist/index.mjs +164 -565
- package/package.json +5 -4
package/dist/index.js
CHANGED
|
@@ -1575,434 +1575,19 @@ var DropdownMenuShortcut = (_a) => {
|
|
|
1575
1575
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1576
1576
|
|
|
1577
1577
|
// src/components/ui/form.tsx
|
|
1578
|
-
var
|
|
1578
|
+
var React13 = __toESM(require("react"));
|
|
1579
1579
|
var import_react_slot2 = require("@radix-ui/react-slot");
|
|
1580
|
-
|
|
1581
|
-
// ../../node_modules/react-hook-form/dist/index.esm.mjs
|
|
1582
|
-
var import_react = __toESM(require("react"), 1);
|
|
1583
|
-
var isCheckBoxInput = (element) => element.type === "checkbox";
|
|
1584
|
-
var isDateObject = (value) => value instanceof Date;
|
|
1585
|
-
var isNullOrUndefined = (value) => value == null;
|
|
1586
|
-
var isObjectType = (value) => typeof value === "object";
|
|
1587
|
-
var isObject = (value) => !isNullOrUndefined(value) && !Array.isArray(value) && isObjectType(value) && !isDateObject(value);
|
|
1588
|
-
var getEventValue = (event) => isObject(event) && event.target ? isCheckBoxInput(event.target) ? event.target.checked : event.target.value : event;
|
|
1589
|
-
var getFieldArrayParentNames = (names, name) => {
|
|
1590
|
-
const parts = name.split(".");
|
|
1591
|
-
const matches = [];
|
|
1592
|
-
let prefix = parts[0];
|
|
1593
|
-
for (let i = 1; i < parts.length; prefix += "." + parts[i++]) {
|
|
1594
|
-
!isNaN(+parts[i]) && names.has(prefix) && matches.push(prefix);
|
|
1595
|
-
}
|
|
1596
|
-
return matches;
|
|
1597
|
-
};
|
|
1598
|
-
var isPlainObject = (tempObject) => {
|
|
1599
|
-
const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
|
|
1600
|
-
return isObject(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
|
|
1601
|
-
};
|
|
1602
|
-
var isWeb = typeof window !== "undefined" && typeof window.HTMLElement !== "undefined" && typeof document !== "undefined";
|
|
1603
|
-
function cloneObject(data) {
|
|
1604
|
-
if (data instanceof Date) {
|
|
1605
|
-
return new Date(data);
|
|
1606
|
-
}
|
|
1607
|
-
const isFileListInstance = typeof FileList !== "undefined" && data instanceof FileList;
|
|
1608
|
-
if (isWeb && (data instanceof Blob || isFileListInstance)) {
|
|
1609
|
-
return data;
|
|
1610
|
-
}
|
|
1611
|
-
const isArray = Array.isArray(data);
|
|
1612
|
-
if (!isArray && !(isObject(data) && isPlainObject(data))) {
|
|
1613
|
-
return data;
|
|
1614
|
-
}
|
|
1615
|
-
const copy = isArray ? [] : Object.create(Object.getPrototypeOf(data));
|
|
1616
|
-
for (const key in data) {
|
|
1617
|
-
if (Object.prototype.hasOwnProperty.call(data, key)) {
|
|
1618
|
-
copy[key] = cloneObject(data[key]);
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
return copy;
|
|
1622
|
-
}
|
|
1623
|
-
var isKey = (value) => /^\w*$/.test(value);
|
|
1624
|
-
var isUndefined = (val) => val === void 0;
|
|
1625
|
-
var compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];
|
|
1626
|
-
var stringToPath = (input) => compact(input.replace(/["|']|\]/g, "").split(/\.|\[/));
|
|
1627
|
-
var get = (object, path, defaultValue) => {
|
|
1628
|
-
if (!path || !isObject(object)) {
|
|
1629
|
-
return defaultValue;
|
|
1630
|
-
}
|
|
1631
|
-
const paths = isKey(path) ? [path] : stringToPath(path);
|
|
1632
|
-
const result = paths.reduce((result2, key) => {
|
|
1633
|
-
return isNullOrUndefined(result2) ? void 0 : result2[key];
|
|
1634
|
-
}, object);
|
|
1635
|
-
return isUndefined(result) || result === object ? isUndefined(object[path]) ? defaultValue : object[path] : result;
|
|
1636
|
-
};
|
|
1637
|
-
var isBoolean = (value) => typeof value === "boolean";
|
|
1638
|
-
var isFunction = (value) => typeof value === "function";
|
|
1639
|
-
var set = (object, path, value) => {
|
|
1640
|
-
let index = -1;
|
|
1641
|
-
const tempPath = isKey(path) ? [path] : stringToPath(path);
|
|
1642
|
-
const length = tempPath.length;
|
|
1643
|
-
const lastIndex = length - 1;
|
|
1644
|
-
while (++index < length) {
|
|
1645
|
-
const key = tempPath[index];
|
|
1646
|
-
let newValue = value;
|
|
1647
|
-
if (index !== lastIndex) {
|
|
1648
|
-
const objValue = object[key];
|
|
1649
|
-
newValue = isObject(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
|
|
1650
|
-
}
|
|
1651
|
-
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
1652
|
-
return;
|
|
1653
|
-
}
|
|
1654
|
-
object[key] = newValue;
|
|
1655
|
-
object = object[key];
|
|
1656
|
-
}
|
|
1657
|
-
};
|
|
1658
|
-
var EVENTS = {
|
|
1659
|
-
BLUR: "blur",
|
|
1660
|
-
FOCUS_OUT: "focusout",
|
|
1661
|
-
CHANGE: "change",
|
|
1662
|
-
SUBMIT: "submit",
|
|
1663
|
-
TRIGGER: "trigger",
|
|
1664
|
-
VALID: "valid"
|
|
1665
|
-
};
|
|
1666
|
-
var VALIDATION_MODE = {
|
|
1667
|
-
onBlur: "onBlur",
|
|
1668
|
-
onChange: "onChange",
|
|
1669
|
-
onSubmit: "onSubmit",
|
|
1670
|
-
onTouched: "onTouched",
|
|
1671
|
-
all: "all"
|
|
1672
|
-
};
|
|
1673
|
-
var HookFormControlContext = import_react.default.createContext(null);
|
|
1674
|
-
HookFormControlContext.displayName = "HookFormControlContext";
|
|
1675
|
-
var useFormControlContext = () => import_react.default.useContext(HookFormControlContext);
|
|
1676
|
-
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
1677
|
-
const result = {};
|
|
1678
|
-
for (const key in formState) {
|
|
1679
|
-
Object.defineProperty(result, key, {
|
|
1680
|
-
get: () => {
|
|
1681
|
-
const _key = key;
|
|
1682
|
-
if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {
|
|
1683
|
-
control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;
|
|
1684
|
-
}
|
|
1685
|
-
localProxyFormState && (localProxyFormState[_key] = true);
|
|
1686
|
-
return formState[_key];
|
|
1687
|
-
}
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
return result;
|
|
1691
|
-
};
|
|
1692
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react.default.useLayoutEffect : import_react.default.useEffect;
|
|
1693
|
-
function useFormState(props) {
|
|
1694
|
-
const formControl = useFormControlContext();
|
|
1695
|
-
const { control = formControl, disabled, name, exact } = props || {};
|
|
1696
|
-
const [formState, updateFormState] = import_react.default.useState(() => __spreadProps(__spreadValues({}, control._formState), {
|
|
1697
|
-
defaultValues: control._defaultValues
|
|
1698
|
-
}));
|
|
1699
|
-
const _localProxyFormState = import_react.default.useRef({
|
|
1700
|
-
isDirty: false,
|
|
1701
|
-
isLoading: false,
|
|
1702
|
-
dirtyFields: false,
|
|
1703
|
-
touchedFields: false,
|
|
1704
|
-
validatingFields: false,
|
|
1705
|
-
isValidating: false,
|
|
1706
|
-
isValid: false,
|
|
1707
|
-
errors: false
|
|
1708
|
-
});
|
|
1709
|
-
useIsomorphicLayoutEffect(() => control._subscribe({
|
|
1710
|
-
name,
|
|
1711
|
-
formState: _localProxyFormState.current,
|
|
1712
|
-
exact,
|
|
1713
|
-
callback: (formState2) => {
|
|
1714
|
-
!disabled && updateFormState(__spreadProps(__spreadValues(__spreadValues({}, control._formState), formState2), {
|
|
1715
|
-
defaultValues: control._defaultValues
|
|
1716
|
-
}));
|
|
1717
|
-
}
|
|
1718
|
-
}), [name, disabled, exact]);
|
|
1719
|
-
import_react.default.useEffect(() => {
|
|
1720
|
-
_localProxyFormState.current.isValid && control._setValid(true);
|
|
1721
|
-
}, [control]);
|
|
1722
|
-
return import_react.default.useMemo(() => getProxyFormState(formState, control, _localProxyFormState.current, false), [formState, control]);
|
|
1723
|
-
}
|
|
1724
|
-
var isString = (value) => typeof value === "string";
|
|
1725
|
-
var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {
|
|
1726
|
-
if (isString(names)) {
|
|
1727
|
-
isGlobal && _names.watch.add(names);
|
|
1728
|
-
return get(formValues, names, defaultValue);
|
|
1729
|
-
}
|
|
1730
|
-
if (Array.isArray(names)) {
|
|
1731
|
-
return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));
|
|
1732
|
-
}
|
|
1733
|
-
isGlobal && (_names.watchAll = true);
|
|
1734
|
-
return formValues;
|
|
1735
|
-
};
|
|
1736
|
-
var isPrimitive = (value) => isNullOrUndefined(value) || !isObjectType(value);
|
|
1737
|
-
function deepEqual(object1, object2, visited = /* @__PURE__ */ new WeakSet()) {
|
|
1738
|
-
if (object1 === object2) {
|
|
1739
|
-
return true;
|
|
1740
|
-
}
|
|
1741
|
-
if (isPrimitive(object1) || isPrimitive(object2)) {
|
|
1742
|
-
return Object.is(object1, object2);
|
|
1743
|
-
}
|
|
1744
|
-
if (isDateObject(object1) && isDateObject(object2)) {
|
|
1745
|
-
return Object.is(object1.getTime(), object2.getTime());
|
|
1746
|
-
}
|
|
1747
|
-
const keys1 = Object.keys(object1);
|
|
1748
|
-
const keys2 = Object.keys(object2);
|
|
1749
|
-
if (keys1.length !== keys2.length) {
|
|
1750
|
-
return false;
|
|
1751
|
-
}
|
|
1752
|
-
if (visited.has(object1) || visited.has(object2)) {
|
|
1753
|
-
return true;
|
|
1754
|
-
}
|
|
1755
|
-
visited.add(object1);
|
|
1756
|
-
visited.add(object2);
|
|
1757
|
-
for (const key of keys1) {
|
|
1758
|
-
const val1 = object1[key];
|
|
1759
|
-
if (!(key in object2)) {
|
|
1760
|
-
return false;
|
|
1761
|
-
}
|
|
1762
|
-
if (key !== "ref") {
|
|
1763
|
-
const val2 = object2[key];
|
|
1764
|
-
if (isDateObject(val1) && isDateObject(val2) || (isObject(val1) || Array.isArray(val1)) && (isObject(val2) || Array.isArray(val2)) ? !deepEqual(val1, val2, visited) : !Object.is(val1, val2)) {
|
|
1765
|
-
return false;
|
|
1766
|
-
}
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
return true;
|
|
1770
|
-
}
|
|
1771
|
-
function useWatch(props) {
|
|
1772
|
-
const formControl = useFormControlContext();
|
|
1773
|
-
const { control = formControl, name, defaultValue, disabled, exact, compute } = props || {};
|
|
1774
|
-
const _defaultValue = import_react.default.useRef(defaultValue);
|
|
1775
|
-
const _compute = import_react.default.useRef(compute);
|
|
1776
|
-
const _computeFormValues = import_react.default.useRef(void 0);
|
|
1777
|
-
const _prevControl = import_react.default.useRef(control);
|
|
1778
|
-
const _prevName = import_react.default.useRef(name);
|
|
1779
|
-
_compute.current = compute;
|
|
1780
|
-
const [value, updateValue] = import_react.default.useState(() => {
|
|
1781
|
-
const defaultValue2 = control._getWatch(name, _defaultValue.current);
|
|
1782
|
-
return _compute.current ? _compute.current(defaultValue2) : defaultValue2;
|
|
1783
|
-
});
|
|
1784
|
-
const getCurrentOutput = import_react.default.useCallback((values) => {
|
|
1785
|
-
const formValues = generateWatchOutput(name, control._names, values || control._formValues, false, _defaultValue.current);
|
|
1786
|
-
return _compute.current ? _compute.current(formValues) : formValues;
|
|
1787
|
-
}, [control._formValues, control._names, name]);
|
|
1788
|
-
const refreshValue = import_react.default.useCallback((values) => {
|
|
1789
|
-
if (!disabled) {
|
|
1790
|
-
const formValues = generateWatchOutput(name, control._names, values || control._formValues, false, _defaultValue.current);
|
|
1791
|
-
if (_compute.current) {
|
|
1792
|
-
const computedFormValues = _compute.current(formValues);
|
|
1793
|
-
if (!deepEqual(computedFormValues, _computeFormValues.current)) {
|
|
1794
|
-
updateValue(computedFormValues);
|
|
1795
|
-
_computeFormValues.current = computedFormValues;
|
|
1796
|
-
}
|
|
1797
|
-
} else {
|
|
1798
|
-
updateValue(formValues);
|
|
1799
|
-
}
|
|
1800
|
-
}
|
|
1801
|
-
}, [control._formValues, control._names, disabled, name]);
|
|
1802
|
-
useIsomorphicLayoutEffect(() => {
|
|
1803
|
-
if (_prevControl.current !== control || !deepEqual(_prevName.current, name)) {
|
|
1804
|
-
_prevControl.current = control;
|
|
1805
|
-
_prevName.current = name;
|
|
1806
|
-
refreshValue();
|
|
1807
|
-
}
|
|
1808
|
-
return control._subscribe({
|
|
1809
|
-
name,
|
|
1810
|
-
formState: {
|
|
1811
|
-
values: true
|
|
1812
|
-
},
|
|
1813
|
-
exact,
|
|
1814
|
-
callback: (formState) => {
|
|
1815
|
-
refreshValue(formState.values);
|
|
1816
|
-
}
|
|
1817
|
-
});
|
|
1818
|
-
}, [control, exact, name, refreshValue]);
|
|
1819
|
-
import_react.default.useEffect(() => control._removeUnmounted());
|
|
1820
|
-
const controlChanged = _prevControl.current !== control;
|
|
1821
|
-
const prevName = _prevName.current;
|
|
1822
|
-
const computedOutput = import_react.default.useMemo(() => {
|
|
1823
|
-
if (disabled) {
|
|
1824
|
-
return null;
|
|
1825
|
-
}
|
|
1826
|
-
const nameChanged = !controlChanged && !deepEqual(prevName, name);
|
|
1827
|
-
const shouldReturnImmediate = controlChanged || nameChanged;
|
|
1828
|
-
return shouldReturnImmediate ? getCurrentOutput() : null;
|
|
1829
|
-
}, [disabled, controlChanged, name, prevName, getCurrentOutput]);
|
|
1830
|
-
return computedOutput !== null ? computedOutput : value;
|
|
1831
|
-
}
|
|
1832
|
-
function useController(props) {
|
|
1833
|
-
const formControl = useFormControlContext();
|
|
1834
|
-
const { name, disabled, control = formControl, shouldUnregister, defaultValue, exact = true } = props;
|
|
1835
|
-
const isArrayField = !!getFieldArrayParentNames(control._names.array, name).length;
|
|
1836
|
-
const defaultValueMemo = import_react.default.useMemo(() => get(control._formValues, name, get(control._defaultValues, name, defaultValue)), [control, name, defaultValue]);
|
|
1837
|
-
const value = useWatch({
|
|
1838
|
-
control,
|
|
1839
|
-
name,
|
|
1840
|
-
defaultValue: defaultValueMemo,
|
|
1841
|
-
exact
|
|
1842
|
-
});
|
|
1843
|
-
const formState = useFormState({
|
|
1844
|
-
control,
|
|
1845
|
-
name,
|
|
1846
|
-
exact
|
|
1847
|
-
});
|
|
1848
|
-
const _props = import_react.default.useRef(props);
|
|
1849
|
-
const _registerProps = import_react.default.useRef(control.register(name, __spreadValues(__spreadProps(__spreadValues({}, props.rules), {
|
|
1850
|
-
value
|
|
1851
|
-
}), isBoolean(props.disabled) ? { disabled: props.disabled } : {})));
|
|
1852
|
-
_props.current = props;
|
|
1853
|
-
const fieldState = import_react.default.useMemo(() => Object.defineProperties({}, {
|
|
1854
|
-
invalid: {
|
|
1855
|
-
enumerable: true,
|
|
1856
|
-
get: () => !!get(formState.errors, name)
|
|
1857
|
-
},
|
|
1858
|
-
isDirty: {
|
|
1859
|
-
enumerable: true,
|
|
1860
|
-
get: () => !!get(formState.dirtyFields, name)
|
|
1861
|
-
},
|
|
1862
|
-
isTouched: {
|
|
1863
|
-
enumerable: true,
|
|
1864
|
-
get: () => !!get(formState.touchedFields, name)
|
|
1865
|
-
},
|
|
1866
|
-
isValidating: {
|
|
1867
|
-
enumerable: true,
|
|
1868
|
-
get: () => !!get(formState.validatingFields, name)
|
|
1869
|
-
},
|
|
1870
|
-
error: {
|
|
1871
|
-
enumerable: true,
|
|
1872
|
-
get: () => get(formState.errors, name)
|
|
1873
|
-
}
|
|
1874
|
-
}), [formState, name]);
|
|
1875
|
-
const onChange = import_react.default.useCallback((event) => _registerProps.current.onChange({
|
|
1876
|
-
target: {
|
|
1877
|
-
value: getEventValue(event),
|
|
1878
|
-
name
|
|
1879
|
-
},
|
|
1880
|
-
type: EVENTS.CHANGE
|
|
1881
|
-
}), [name]);
|
|
1882
|
-
const onBlur = import_react.default.useCallback(() => _registerProps.current.onBlur({
|
|
1883
|
-
target: {
|
|
1884
|
-
value: get(control._formValues, name),
|
|
1885
|
-
name
|
|
1886
|
-
},
|
|
1887
|
-
type: EVENTS.BLUR
|
|
1888
|
-
}), [name, control._formValues]);
|
|
1889
|
-
const ref = import_react.default.useCallback((elm) => {
|
|
1890
|
-
const field2 = get(control._fields, name);
|
|
1891
|
-
if (field2 && field2._f && elm) {
|
|
1892
|
-
field2._f.ref = {
|
|
1893
|
-
focus: () => isFunction(elm.focus) && elm.focus(),
|
|
1894
|
-
select: () => isFunction(elm.select) && elm.select(),
|
|
1895
|
-
setCustomValidity: (message) => isFunction(elm.setCustomValidity) && elm.setCustomValidity(message),
|
|
1896
|
-
reportValidity: () => isFunction(elm.reportValidity) && elm.reportValidity()
|
|
1897
|
-
};
|
|
1898
|
-
}
|
|
1899
|
-
}, [control._fields, name]);
|
|
1900
|
-
const field = import_react.default.useMemo(() => __spreadProps(__spreadValues({
|
|
1901
|
-
name,
|
|
1902
|
-
value
|
|
1903
|
-
}, isBoolean(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {}), {
|
|
1904
|
-
onChange,
|
|
1905
|
-
onBlur,
|
|
1906
|
-
ref
|
|
1907
|
-
}), [name, disabled, formState.disabled, onChange, onBlur, ref, value]);
|
|
1908
|
-
import_react.default.useEffect(() => {
|
|
1909
|
-
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
1910
|
-
control.register(name, __spreadValues(__spreadValues({}, _props.current.rules), isBoolean(_props.current.disabled) ? { disabled: _props.current.disabled } : {}));
|
|
1911
|
-
const updateMounted = (name2, value2) => {
|
|
1912
|
-
const field2 = get(control._fields, name2);
|
|
1913
|
-
if (field2 && field2._f) {
|
|
1914
|
-
field2._f.mount = value2;
|
|
1915
|
-
}
|
|
1916
|
-
};
|
|
1917
|
-
updateMounted(name, true);
|
|
1918
|
-
if (_shouldUnregisterField) {
|
|
1919
|
-
const value2 = cloneObject(get(control._defaultValues, name, get(control._options.defaultValues, name, _props.current.defaultValue)));
|
|
1920
|
-
set(control._defaultValues, name, value2);
|
|
1921
|
-
if (isUndefined(get(control._formValues, name))) {
|
|
1922
|
-
set(control._formValues, name, value2);
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
!isArrayField && control.register(name);
|
|
1926
|
-
return () => {
|
|
1927
|
-
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
1928
|
-
};
|
|
1929
|
-
}, [name, control, isArrayField, shouldUnregister]);
|
|
1930
|
-
import_react.default.useEffect(() => {
|
|
1931
|
-
control._setDisabledField({
|
|
1932
|
-
disabled,
|
|
1933
|
-
name
|
|
1934
|
-
});
|
|
1935
|
-
}, [disabled, name, control]);
|
|
1936
|
-
return import_react.default.useMemo(() => ({
|
|
1937
|
-
field,
|
|
1938
|
-
formState,
|
|
1939
|
-
fieldState
|
|
1940
|
-
}), [field, formState, fieldState]);
|
|
1941
|
-
}
|
|
1942
|
-
var Controller = (props) => props.render(useController(props));
|
|
1943
|
-
var HookFormContext = import_react.default.createContext(null);
|
|
1944
|
-
HookFormContext.displayName = "HookFormContext";
|
|
1945
|
-
var useFormContext = () => import_react.default.useContext(HookFormContext);
|
|
1946
|
-
var FormProvider = (props) => {
|
|
1947
|
-
const { children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe } = props;
|
|
1948
|
-
const memoizedValue = import_react.default.useMemo(() => ({
|
|
1949
|
-
watch,
|
|
1950
|
-
getValues,
|
|
1951
|
-
getFieldState,
|
|
1952
|
-
setError,
|
|
1953
|
-
clearErrors,
|
|
1954
|
-
setValue,
|
|
1955
|
-
setValues,
|
|
1956
|
-
trigger,
|
|
1957
|
-
formState,
|
|
1958
|
-
resetField,
|
|
1959
|
-
reset,
|
|
1960
|
-
handleSubmit,
|
|
1961
|
-
unregister,
|
|
1962
|
-
control,
|
|
1963
|
-
register,
|
|
1964
|
-
setFocus,
|
|
1965
|
-
subscribe
|
|
1966
|
-
}), [
|
|
1967
|
-
clearErrors,
|
|
1968
|
-
control,
|
|
1969
|
-
formState,
|
|
1970
|
-
getFieldState,
|
|
1971
|
-
getValues,
|
|
1972
|
-
handleSubmit,
|
|
1973
|
-
register,
|
|
1974
|
-
reset,
|
|
1975
|
-
resetField,
|
|
1976
|
-
setError,
|
|
1977
|
-
setFocus,
|
|
1978
|
-
setValue,
|
|
1979
|
-
setValues,
|
|
1980
|
-
subscribe,
|
|
1981
|
-
trigger,
|
|
1982
|
-
unregister,
|
|
1983
|
-
watch
|
|
1984
|
-
]);
|
|
1985
|
-
return import_react.default.createElement(
|
|
1986
|
-
HookFormContext.Provider,
|
|
1987
|
-
{ value: memoizedValue },
|
|
1988
|
-
import_react.default.createElement(HookFormControlContext.Provider, { value: memoizedValue.control }, children)
|
|
1989
|
-
);
|
|
1990
|
-
};
|
|
1991
|
-
var defaultOptions = {
|
|
1992
|
-
mode: VALIDATION_MODE.onSubmit,
|
|
1993
|
-
reValidateMode: VALIDATION_MODE.onChange,
|
|
1994
|
-
shouldFocusError: true
|
|
1995
|
-
};
|
|
1580
|
+
var import_react_hook_form = require("react-hook-form");
|
|
1996
1581
|
|
|
1997
1582
|
// src/components/ui/label.tsx
|
|
1998
|
-
var
|
|
1583
|
+
var React12 = __toESM(require("react"));
|
|
1999
1584
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
2000
1585
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
2001
1586
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
2002
1587
|
var labelVariants = (0, import_class_variance_authority4.cva)(
|
|
2003
1588
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2004
1589
|
);
|
|
2005
|
-
var Label3 =
|
|
1590
|
+
var Label3 = React12.forwardRef((_a, ref) => {
|
|
2006
1591
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2007
1592
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2008
1593
|
LabelPrimitive.Root,
|
|
@@ -2016,18 +1601,18 @@ Label3.displayName = LabelPrimitive.Root.displayName;
|
|
|
2016
1601
|
|
|
2017
1602
|
// src/components/ui/form.tsx
|
|
2018
1603
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2019
|
-
var Form = FormProvider;
|
|
2020
|
-
var FormFieldContext =
|
|
1604
|
+
var Form = import_react_hook_form.FormProvider;
|
|
1605
|
+
var FormFieldContext = React13.createContext(
|
|
2021
1606
|
{}
|
|
2022
1607
|
);
|
|
2023
1608
|
var FormField = (_a) => {
|
|
2024
1609
|
var props = __objRest(_a, []);
|
|
2025
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Controller, __spreadValues({}, props)) });
|
|
1610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_hook_form.Controller, __spreadValues({}, props)) });
|
|
2026
1611
|
};
|
|
2027
1612
|
var useFormField = () => {
|
|
2028
|
-
const fieldContext =
|
|
2029
|
-
const itemContext =
|
|
2030
|
-
const { getFieldState, formState } = useFormContext();
|
|
1613
|
+
const fieldContext = React13.useContext(FormFieldContext);
|
|
1614
|
+
const itemContext = React13.useContext(FormItemContext);
|
|
1615
|
+
const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
|
|
2031
1616
|
const fieldState = getFieldState(fieldContext.name, formState);
|
|
2032
1617
|
if (!fieldContext) {
|
|
2033
1618
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -2041,16 +1626,16 @@ var useFormField = () => {
|
|
|
2041
1626
|
formMessageId: `${id}-form-item-message`
|
|
2042
1627
|
}, fieldState);
|
|
2043
1628
|
};
|
|
2044
|
-
var FormItemContext =
|
|
1629
|
+
var FormItemContext = React13.createContext(
|
|
2045
1630
|
{}
|
|
2046
1631
|
);
|
|
2047
|
-
var FormItem =
|
|
1632
|
+
var FormItem = React13.forwardRef((_a, ref) => {
|
|
2048
1633
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2049
|
-
const id =
|
|
1634
|
+
const id = React13.useId();
|
|
2050
1635
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", __spreadValues({ ref, className: cn("", className) }, props)) });
|
|
2051
1636
|
});
|
|
2052
1637
|
FormItem.displayName = "FormItem";
|
|
2053
|
-
var FormLabel =
|
|
1638
|
+
var FormLabel = React13.forwardRef((_a, ref) => {
|
|
2054
1639
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2055
1640
|
const { error, formItemId } = useFormField();
|
|
2056
1641
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
@@ -2063,7 +1648,7 @@ var FormLabel = React14.forwardRef((_a, ref) => {
|
|
|
2063
1648
|
);
|
|
2064
1649
|
});
|
|
2065
1650
|
FormLabel.displayName = "FormLabel";
|
|
2066
|
-
var FormControl =
|
|
1651
|
+
var FormControl = React13.forwardRef((_a, ref) => {
|
|
2067
1652
|
var props = __objRest(_a, []);
|
|
2068
1653
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2069
1654
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
@@ -2077,7 +1662,7 @@ var FormControl = React14.forwardRef((_a, ref) => {
|
|
|
2077
1662
|
);
|
|
2078
1663
|
});
|
|
2079
1664
|
FormControl.displayName = "FormControl";
|
|
2080
|
-
var FormDescription =
|
|
1665
|
+
var FormDescription = React13.forwardRef((_a, ref) => {
|
|
2081
1666
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2082
1667
|
const { formDescriptionId } = useFormField();
|
|
2083
1668
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
@@ -2090,7 +1675,7 @@ var FormDescription = React14.forwardRef((_a, ref) => {
|
|
|
2090
1675
|
);
|
|
2091
1676
|
});
|
|
2092
1677
|
FormDescription.displayName = "FormDescription";
|
|
2093
|
-
var FormMessage =
|
|
1678
|
+
var FormMessage = React13.forwardRef((_a, ref) => {
|
|
2094
1679
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2095
1680
|
const { error, formMessageId } = useFormField();
|
|
2096
1681
|
const body = error ? String(error == null ? void 0 : error.message) : children;
|
|
@@ -2111,12 +1696,12 @@ var FormMessage = React14.forwardRef((_a, ref) => {
|
|
|
2111
1696
|
FormMessage.displayName = "FormMessage";
|
|
2112
1697
|
|
|
2113
1698
|
// src/components/ui/hover-card.tsx
|
|
2114
|
-
var
|
|
1699
|
+
var React14 = __toESM(require("react"));
|
|
2115
1700
|
var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"));
|
|
2116
1701
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2117
1702
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2118
1703
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2119
|
-
var HoverCardContent =
|
|
1704
|
+
var HoverCardContent = React14.forwardRef((_a, ref) => {
|
|
2120
1705
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
2121
1706
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
2122
1707
|
HoverCardPrimitive.Content,
|
|
@@ -2134,9 +1719,9 @@ var HoverCardContent = React15.forwardRef((_a, ref) => {
|
|
|
2134
1719
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
2135
1720
|
|
|
2136
1721
|
// src/components/ui/input.tsx
|
|
2137
|
-
var
|
|
1722
|
+
var React15 = __toESM(require("react"));
|
|
2138
1723
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2139
|
-
var Input =
|
|
1724
|
+
var Input = React15.forwardRef(
|
|
2140
1725
|
(_a, ref) => {
|
|
2141
1726
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
2142
1727
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -2155,7 +1740,7 @@ var Input = React16.forwardRef(
|
|
|
2155
1740
|
Input.displayName = "Input";
|
|
2156
1741
|
|
|
2157
1742
|
// src/components/ui/menubar.tsx
|
|
2158
|
-
var
|
|
1743
|
+
var React16 = __toESM(require("react"));
|
|
2159
1744
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
|
2160
1745
|
var import_lucide_react6 = require("lucide-react");
|
|
2161
1746
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
@@ -2164,7 +1749,7 @@ var MenubarGroup = MenubarPrimitive.Group;
|
|
|
2164
1749
|
var MenubarPortal = MenubarPrimitive.Portal;
|
|
2165
1750
|
var MenubarSub = MenubarPrimitive.Sub;
|
|
2166
1751
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
|
2167
|
-
var Menubar =
|
|
1752
|
+
var Menubar = React16.forwardRef((_a, ref) => {
|
|
2168
1753
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2169
1754
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2170
1755
|
MenubarPrimitive.Root,
|
|
@@ -2178,7 +1763,7 @@ var Menubar = React17.forwardRef((_a, ref) => {
|
|
|
2178
1763
|
);
|
|
2179
1764
|
});
|
|
2180
1765
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
2181
|
-
var MenubarTrigger =
|
|
1766
|
+
var MenubarTrigger = React16.forwardRef((_a, ref) => {
|
|
2182
1767
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2183
1768
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2184
1769
|
MenubarPrimitive.Trigger,
|
|
@@ -2192,7 +1777,7 @@ var MenubarTrigger = React17.forwardRef((_a, ref) => {
|
|
|
2192
1777
|
);
|
|
2193
1778
|
});
|
|
2194
1779
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
2195
|
-
var MenubarSubTrigger =
|
|
1780
|
+
var MenubarSubTrigger = React16.forwardRef((_a, ref) => {
|
|
2196
1781
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
2197
1782
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2198
1783
|
MenubarPrimitive.SubTrigger,
|
|
@@ -2212,7 +1797,7 @@ var MenubarSubTrigger = React17.forwardRef((_a, ref) => {
|
|
|
2212
1797
|
);
|
|
2213
1798
|
});
|
|
2214
1799
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
2215
|
-
var MenubarSubContent =
|
|
1800
|
+
var MenubarSubContent = React16.forwardRef((_a, ref) => {
|
|
2216
1801
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2217
1802
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2218
1803
|
MenubarPrimitive.SubContent,
|
|
@@ -2226,7 +1811,7 @@ var MenubarSubContent = React17.forwardRef((_a, ref) => {
|
|
|
2226
1811
|
);
|
|
2227
1812
|
});
|
|
2228
1813
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
2229
|
-
var MenubarContent =
|
|
1814
|
+
var MenubarContent = React16.forwardRef(
|
|
2230
1815
|
(_a, ref) => {
|
|
2231
1816
|
var _b = _a, { className, align = "start", alignOffset = -4, sideOffset = 8 } = _b, props = __objRest(_b, ["className", "align", "alignOffset", "sideOffset"]);
|
|
2232
1817
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
@@ -2245,7 +1830,7 @@ var MenubarContent = React17.forwardRef(
|
|
|
2245
1830
|
}
|
|
2246
1831
|
);
|
|
2247
1832
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
2248
|
-
var MenubarItem =
|
|
1833
|
+
var MenubarItem = React16.forwardRef((_a, ref) => {
|
|
2249
1834
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
2250
1835
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2251
1836
|
MenubarPrimitive.Item,
|
|
@@ -2260,7 +1845,7 @@ var MenubarItem = React17.forwardRef((_a, ref) => {
|
|
|
2260
1845
|
);
|
|
2261
1846
|
});
|
|
2262
1847
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
2263
|
-
var MenubarCheckboxItem =
|
|
1848
|
+
var MenubarCheckboxItem = React16.forwardRef((_a, ref) => {
|
|
2264
1849
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
2265
1850
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2266
1851
|
MenubarPrimitive.CheckboxItem,
|
|
@@ -2280,7 +1865,7 @@ var MenubarCheckboxItem = React17.forwardRef((_a, ref) => {
|
|
|
2280
1865
|
);
|
|
2281
1866
|
});
|
|
2282
1867
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
2283
|
-
var MenubarRadioItem =
|
|
1868
|
+
var MenubarRadioItem = React16.forwardRef((_a, ref) => {
|
|
2284
1869
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2285
1870
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
2286
1871
|
MenubarPrimitive.RadioItem,
|
|
@@ -2299,7 +1884,7 @@ var MenubarRadioItem = React17.forwardRef((_a, ref) => {
|
|
|
2299
1884
|
);
|
|
2300
1885
|
});
|
|
2301
1886
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
2302
|
-
var MenubarLabel =
|
|
1887
|
+
var MenubarLabel = React16.forwardRef((_a, ref) => {
|
|
2303
1888
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
2304
1889
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2305
1890
|
MenubarPrimitive.Label,
|
|
@@ -2314,7 +1899,7 @@ var MenubarLabel = React17.forwardRef((_a, ref) => {
|
|
|
2314
1899
|
);
|
|
2315
1900
|
});
|
|
2316
1901
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
2317
|
-
var MenubarSeparator =
|
|
1902
|
+
var MenubarSeparator = React16.forwardRef((_a, ref) => {
|
|
2318
1903
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2319
1904
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2320
1905
|
MenubarPrimitive.Separator,
|
|
@@ -2344,12 +1929,12 @@ var MenubarShortcut = (_a) => {
|
|
|
2344
1929
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
2345
1930
|
|
|
2346
1931
|
// src/components/ui/navigation-menu.tsx
|
|
2347
|
-
var
|
|
1932
|
+
var React17 = __toESM(require("react"));
|
|
2348
1933
|
var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"));
|
|
2349
1934
|
var import_class_variance_authority5 = require("class-variance-authority");
|
|
2350
1935
|
var import_lucide_react7 = require("lucide-react");
|
|
2351
1936
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2352
|
-
var NavigationMenu =
|
|
1937
|
+
var NavigationMenu = React17.forwardRef((_a, ref) => {
|
|
2353
1938
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2354
1939
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2355
1940
|
NavigationMenuPrimitive.Root,
|
|
@@ -2368,7 +1953,7 @@ var NavigationMenu = React18.forwardRef((_a, ref) => {
|
|
|
2368
1953
|
);
|
|
2369
1954
|
});
|
|
2370
1955
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2371
|
-
var NavigationMenuList =
|
|
1956
|
+
var NavigationMenuList = React17.forwardRef((_a, ref) => {
|
|
2372
1957
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2373
1958
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2374
1959
|
NavigationMenuPrimitive.List,
|
|
@@ -2386,7 +1971,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
|
2386
1971
|
var navigationMenuTriggerStyle = (0, import_class_variance_authority5.cva)(
|
|
2387
1972
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
2388
1973
|
);
|
|
2389
|
-
var NavigationMenuTrigger =
|
|
1974
|
+
var NavigationMenuTrigger = React17.forwardRef((_a, ref) => {
|
|
2390
1975
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2391
1976
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
2392
1977
|
NavigationMenuPrimitive.Trigger,
|
|
@@ -2409,7 +1994,7 @@ var NavigationMenuTrigger = React18.forwardRef((_a, ref) => {
|
|
|
2409
1994
|
);
|
|
2410
1995
|
});
|
|
2411
1996
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
2412
|
-
var NavigationMenuContent =
|
|
1997
|
+
var NavigationMenuContent = React17.forwardRef((_a, ref) => {
|
|
2413
1998
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2414
1999
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2415
2000
|
NavigationMenuPrimitive.Content,
|
|
@@ -2424,7 +2009,7 @@ var NavigationMenuContent = React18.forwardRef((_a, ref) => {
|
|
|
2424
2009
|
});
|
|
2425
2010
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
2426
2011
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
2427
|
-
var NavigationMenuViewport =
|
|
2012
|
+
var NavigationMenuViewport = React17.forwardRef((_a, ref) => {
|
|
2428
2013
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2429
2014
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2430
2015
|
NavigationMenuPrimitive.Viewport,
|
|
@@ -2438,7 +2023,7 @@ var NavigationMenuViewport = React18.forwardRef((_a, ref) => {
|
|
|
2438
2023
|
) });
|
|
2439
2024
|
});
|
|
2440
2025
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
2441
|
-
var NavigationMenuIndicator =
|
|
2026
|
+
var NavigationMenuIndicator = React17.forwardRef((_a, ref) => {
|
|
2442
2027
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2443
2028
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2444
2029
|
NavigationMenuPrimitive.Indicator,
|
|
@@ -2456,13 +2041,13 @@ var NavigationMenuIndicator = React18.forwardRef((_a, ref) => {
|
|
|
2456
2041
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
2457
2042
|
|
|
2458
2043
|
// src/components/ui/popover.tsx
|
|
2459
|
-
var
|
|
2044
|
+
var React18 = __toESM(require("react"));
|
|
2460
2045
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
2461
2046
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
2462
2047
|
var Popover = PopoverPrimitive.Root;
|
|
2463
2048
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
2464
2049
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
2465
|
-
var PopoverContent =
|
|
2050
|
+
var PopoverContent = React18.forwardRef((_a, ref) => {
|
|
2466
2051
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
2467
2052
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2468
2053
|
PopoverPrimitive.Content,
|
|
@@ -2480,10 +2065,10 @@ var PopoverContent = React19.forwardRef((_a, ref) => {
|
|
|
2480
2065
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
2481
2066
|
|
|
2482
2067
|
// src/components/ui/progress.tsx
|
|
2483
|
-
var
|
|
2068
|
+
var React19 = __toESM(require("react"));
|
|
2484
2069
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
2485
2070
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
2486
|
-
var Progress =
|
|
2071
|
+
var Progress = React19.forwardRef((_a, ref) => {
|
|
2487
2072
|
var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
|
|
2488
2073
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
2489
2074
|
ProgressPrimitive.Root,
|
|
@@ -2507,11 +2092,11 @@ var Progress = React20.forwardRef((_a, ref) => {
|
|
|
2507
2092
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
2508
2093
|
|
|
2509
2094
|
// src/components/ui/radio-group.tsx
|
|
2510
|
-
var
|
|
2095
|
+
var React20 = __toESM(require("react"));
|
|
2511
2096
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
|
|
2512
2097
|
var import_lucide_react8 = require("lucide-react");
|
|
2513
2098
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2514
|
-
var RadioGroup4 =
|
|
2099
|
+
var RadioGroup4 = React20.forwardRef((_a, ref) => {
|
|
2515
2100
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2516
2101
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2517
2102
|
RadioGroupPrimitive.Root,
|
|
@@ -2523,7 +2108,7 @@ var RadioGroup4 = React21.forwardRef((_a, ref) => {
|
|
|
2523
2108
|
);
|
|
2524
2109
|
});
|
|
2525
2110
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
2526
|
-
var RadioGroupItem =
|
|
2111
|
+
var RadioGroupItem = React20.forwardRef((_a, ref) => {
|
|
2527
2112
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2528
2113
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2529
2114
|
RadioGroupPrimitive.Item,
|
|
@@ -2541,10 +2126,10 @@ var RadioGroupItem = React21.forwardRef((_a, ref) => {
|
|
|
2541
2126
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
2542
2127
|
|
|
2543
2128
|
// src/components/ui/scroll-area.tsx
|
|
2544
|
-
var
|
|
2129
|
+
var React21 = __toESM(require("react"));
|
|
2545
2130
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
|
2546
2131
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2547
|
-
var ScrollArea =
|
|
2132
|
+
var ScrollArea = React21.forwardRef((_a, ref) => {
|
|
2548
2133
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2549
2134
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
2550
2135
|
ScrollAreaPrimitive.Root,
|
|
@@ -2561,7 +2146,7 @@ var ScrollArea = React22.forwardRef((_a, ref) => {
|
|
|
2561
2146
|
);
|
|
2562
2147
|
});
|
|
2563
2148
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
2564
|
-
var ScrollBar =
|
|
2149
|
+
var ScrollBar = React21.forwardRef((_a, ref) => {
|
|
2565
2150
|
var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
|
|
2566
2151
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2567
2152
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
@@ -2582,14 +2167,14 @@ var ScrollBar = React22.forwardRef((_a, ref) => {
|
|
|
2582
2167
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2583
2168
|
|
|
2584
2169
|
// src/components/ui/select.tsx
|
|
2585
|
-
var
|
|
2170
|
+
var React22 = __toESM(require("react"));
|
|
2586
2171
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
2587
2172
|
var import_lucide_react9 = require("lucide-react");
|
|
2588
2173
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
2589
2174
|
var Select = SelectPrimitive.Root;
|
|
2590
2175
|
var SelectGroup = SelectPrimitive.Group;
|
|
2591
2176
|
var SelectValue = SelectPrimitive.Value;
|
|
2592
|
-
var SelectTrigger =
|
|
2177
|
+
var SelectTrigger = React22.forwardRef((_a, ref) => {
|
|
2593
2178
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2594
2179
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2595
2180
|
SelectPrimitive.Trigger,
|
|
@@ -2608,7 +2193,7 @@ var SelectTrigger = React23.forwardRef((_a, ref) => {
|
|
|
2608
2193
|
);
|
|
2609
2194
|
});
|
|
2610
2195
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
2611
|
-
var SelectContent =
|
|
2196
|
+
var SelectContent = React22.forwardRef((_a, ref) => {
|
|
2612
2197
|
var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
|
|
2613
2198
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2614
2199
|
SelectPrimitive.Content,
|
|
@@ -2635,7 +2220,7 @@ var SelectContent = React23.forwardRef((_a, ref) => {
|
|
|
2635
2220
|
) });
|
|
2636
2221
|
});
|
|
2637
2222
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2638
|
-
var SelectLabel =
|
|
2223
|
+
var SelectLabel = React22.forwardRef((_a, ref) => {
|
|
2639
2224
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2640
2225
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2641
2226
|
SelectPrimitive.Label,
|
|
@@ -2646,7 +2231,7 @@ var SelectLabel = React23.forwardRef((_a, ref) => {
|
|
|
2646
2231
|
);
|
|
2647
2232
|
});
|
|
2648
2233
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
2649
|
-
var SelectItem =
|
|
2234
|
+
var SelectItem = React22.forwardRef((_a, ref) => {
|
|
2650
2235
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
2651
2236
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2652
2237
|
SelectPrimitive.Item,
|
|
@@ -2665,7 +2250,7 @@ var SelectItem = React23.forwardRef((_a, ref) => {
|
|
|
2665
2250
|
);
|
|
2666
2251
|
});
|
|
2667
2252
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
2668
|
-
var SelectSeparator =
|
|
2253
|
+
var SelectSeparator = React22.forwardRef((_a, ref) => {
|
|
2669
2254
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2670
2255
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2671
2256
|
SelectPrimitive.Separator,
|
|
@@ -2678,10 +2263,10 @@ var SelectSeparator = React23.forwardRef((_a, ref) => {
|
|
|
2678
2263
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
2679
2264
|
|
|
2680
2265
|
// src/components/ui/separator.tsx
|
|
2681
|
-
var
|
|
2266
|
+
var React23 = __toESM(require("react"));
|
|
2682
2267
|
var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
|
|
2683
2268
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
2684
|
-
var Separator5 =
|
|
2269
|
+
var Separator5 = React23.forwardRef(
|
|
2685
2270
|
(_a, ref) => {
|
|
2686
2271
|
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
2687
2272
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
@@ -2702,7 +2287,7 @@ var Separator5 = React24.forwardRef(
|
|
|
2702
2287
|
Separator5.displayName = SeparatorPrimitive.Root.displayName;
|
|
2703
2288
|
|
|
2704
2289
|
// src/components/ui/sheet.tsx
|
|
2705
|
-
var
|
|
2290
|
+
var React24 = __toESM(require("react"));
|
|
2706
2291
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
2707
2292
|
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
2708
2293
|
var import_class_variance_authority6 = require("class-variance-authority");
|
|
@@ -2711,7 +2296,7 @@ var Sheet = SheetPrimitive.Root;
|
|
|
2711
2296
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
2712
2297
|
var SheetClose = SheetPrimitive.Close;
|
|
2713
2298
|
var SheetPortal = SheetPrimitive.Portal;
|
|
2714
|
-
var SheetOverlay =
|
|
2299
|
+
var SheetOverlay = React24.forwardRef((_a, ref) => {
|
|
2715
2300
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2716
2301
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2717
2302
|
SheetPrimitive.Overlay,
|
|
@@ -2742,7 +2327,7 @@ var sheetVariants = (0, import_class_variance_authority6.cva)(
|
|
|
2742
2327
|
}
|
|
2743
2328
|
}
|
|
2744
2329
|
);
|
|
2745
|
-
var SheetContent =
|
|
2330
|
+
var SheetContent = React24.forwardRef((_a, ref) => {
|
|
2746
2331
|
var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
|
|
2747
2332
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(SheetPortal, { children: [
|
|
2748
2333
|
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(SheetOverlay, {}),
|
|
@@ -2798,7 +2383,7 @@ var SheetFooter = (_a) => {
|
|
|
2798
2383
|
);
|
|
2799
2384
|
};
|
|
2800
2385
|
SheetFooter.displayName = "SheetFooter";
|
|
2801
|
-
var SheetTitle =
|
|
2386
|
+
var SheetTitle = React24.forwardRef((_a, ref) => {
|
|
2802
2387
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2803
2388
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2804
2389
|
SheetPrimitive.Title,
|
|
@@ -2809,7 +2394,7 @@ var SheetTitle = React25.forwardRef((_a, ref) => {
|
|
|
2809
2394
|
);
|
|
2810
2395
|
});
|
|
2811
2396
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
2812
|
-
var SheetDescription =
|
|
2397
|
+
var SheetDescription = React24.forwardRef((_a, ref) => {
|
|
2813
2398
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2814
2399
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
2815
2400
|
SheetPrimitive.Description,
|
|
@@ -2838,10 +2423,10 @@ function Skeleton(_a) {
|
|
|
2838
2423
|
}
|
|
2839
2424
|
|
|
2840
2425
|
// src/components/ui/slider.tsx
|
|
2841
|
-
var
|
|
2426
|
+
var React25 = __toESM(require("react"));
|
|
2842
2427
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
|
2843
2428
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2844
|
-
var Slider =
|
|
2429
|
+
var Slider = React25.forwardRef((_a, ref) => {
|
|
2845
2430
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2846
2431
|
const value = props.value || props.defaultValue;
|
|
2847
2432
|
const thumbs = value && Array.isArray(value) ? value.length : 1;
|
|
@@ -2870,10 +2455,10 @@ var Slider = React26.forwardRef((_a, ref) => {
|
|
|
2870
2455
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
2871
2456
|
|
|
2872
2457
|
// src/components/ui/switch.tsx
|
|
2873
|
-
var
|
|
2458
|
+
var React26 = __toESM(require("react"));
|
|
2874
2459
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
|
2875
2460
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2876
|
-
var Switch =
|
|
2461
|
+
var Switch = React26.forwardRef((_a, ref) => {
|
|
2877
2462
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2878
2463
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2879
2464
|
SwitchPrimitives.Root,
|
|
@@ -2898,9 +2483,9 @@ var Switch = React27.forwardRef((_a, ref) => {
|
|
|
2898
2483
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
2899
2484
|
|
|
2900
2485
|
// src/components/ui/table.tsx
|
|
2901
|
-
var
|
|
2486
|
+
var React27 = __toESM(require("react"));
|
|
2902
2487
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2903
|
-
var Table =
|
|
2488
|
+
var Table = React27.forwardRef((_a, ref) => {
|
|
2904
2489
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2905
2490
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2906
2491
|
"table",
|
|
@@ -2911,12 +2496,12 @@ var Table = React28.forwardRef((_a, ref) => {
|
|
|
2911
2496
|
) });
|
|
2912
2497
|
});
|
|
2913
2498
|
Table.displayName = "Table";
|
|
2914
|
-
var TableHeader =
|
|
2499
|
+
var TableHeader = React27.forwardRef((_a, ref) => {
|
|
2915
2500
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2916
2501
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
|
|
2917
2502
|
});
|
|
2918
2503
|
TableHeader.displayName = "TableHeader";
|
|
2919
|
-
var TableBody =
|
|
2504
|
+
var TableBody = React27.forwardRef((_a, ref) => {
|
|
2920
2505
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2921
2506
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2922
2507
|
"tbody",
|
|
@@ -2927,7 +2512,7 @@ var TableBody = React28.forwardRef((_a, ref) => {
|
|
|
2927
2512
|
);
|
|
2928
2513
|
});
|
|
2929
2514
|
TableBody.displayName = "TableBody";
|
|
2930
|
-
var TableFooter =
|
|
2515
|
+
var TableFooter = React27.forwardRef((_a, ref) => {
|
|
2931
2516
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2932
2517
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2933
2518
|
"tfoot",
|
|
@@ -2938,7 +2523,7 @@ var TableFooter = React28.forwardRef((_a, ref) => {
|
|
|
2938
2523
|
);
|
|
2939
2524
|
});
|
|
2940
2525
|
TableFooter.displayName = "TableFooter";
|
|
2941
|
-
var TableRow =
|
|
2526
|
+
var TableRow = React27.forwardRef((_a, ref) => {
|
|
2942
2527
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2943
2528
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2944
2529
|
"tr",
|
|
@@ -2952,7 +2537,7 @@ var TableRow = React28.forwardRef((_a, ref) => {
|
|
|
2952
2537
|
);
|
|
2953
2538
|
});
|
|
2954
2539
|
TableRow.displayName = "TableRow";
|
|
2955
|
-
var TableHead =
|
|
2540
|
+
var TableHead = React27.forwardRef((_a, ref) => {
|
|
2956
2541
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2957
2542
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2958
2543
|
"th",
|
|
@@ -2966,7 +2551,7 @@ var TableHead = React28.forwardRef((_a, ref) => {
|
|
|
2966
2551
|
);
|
|
2967
2552
|
});
|
|
2968
2553
|
TableHead.displayName = "TableHead";
|
|
2969
|
-
var TableCell =
|
|
2554
|
+
var TableCell = React27.forwardRef((_a, ref) => {
|
|
2970
2555
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2971
2556
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2972
2557
|
"td",
|
|
@@ -2977,7 +2562,7 @@ var TableCell = React28.forwardRef((_a, ref) => {
|
|
|
2977
2562
|
);
|
|
2978
2563
|
});
|
|
2979
2564
|
TableCell.displayName = "TableCell";
|
|
2980
|
-
var TableCaption =
|
|
2565
|
+
var TableCaption = React27.forwardRef((_a, ref) => {
|
|
2981
2566
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2982
2567
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2983
2568
|
"caption",
|
|
@@ -2990,11 +2575,11 @@ var TableCaption = React28.forwardRef((_a, ref) => {
|
|
|
2990
2575
|
TableCaption.displayName = "TableCaption";
|
|
2991
2576
|
|
|
2992
2577
|
// src/components/ui/tabs.tsx
|
|
2993
|
-
var
|
|
2578
|
+
var React28 = __toESM(require("react"));
|
|
2994
2579
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
2995
2580
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2996
2581
|
var Tabs = TabsPrimitive.Root;
|
|
2997
|
-
var TabsList =
|
|
2582
|
+
var TabsList = React28.forwardRef((_a, ref) => {
|
|
2998
2583
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
2999
2584
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3000
2585
|
TabsPrimitive.List,
|
|
@@ -3008,7 +2593,7 @@ var TabsList = React29.forwardRef((_a, ref) => {
|
|
|
3008
2593
|
);
|
|
3009
2594
|
});
|
|
3010
2595
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
3011
|
-
var TabsTrigger =
|
|
2596
|
+
var TabsTrigger = React28.forwardRef((_a, ref) => {
|
|
3012
2597
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3013
2598
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3014
2599
|
TabsPrimitive.Trigger,
|
|
@@ -3022,7 +2607,7 @@ var TabsTrigger = React29.forwardRef((_a, ref) => {
|
|
|
3022
2607
|
);
|
|
3023
2608
|
});
|
|
3024
2609
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
3025
|
-
var TabsContent =
|
|
2610
|
+
var TabsContent = React28.forwardRef((_a, ref) => {
|
|
3026
2611
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3027
2612
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3028
2613
|
TabsPrimitive.Content,
|
|
@@ -3070,9 +2655,9 @@ var TagList = (props) => {
|
|
|
3070
2655
|
var tag_list_default = TagList;
|
|
3071
2656
|
|
|
3072
2657
|
// src/components/ui/textarea.tsx
|
|
3073
|
-
var
|
|
2658
|
+
var React29 = __toESM(require("react"));
|
|
3074
2659
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3075
|
-
var Textarea =
|
|
2660
|
+
var Textarea = React29.forwardRef(
|
|
3076
2661
|
(_a, ref) => {
|
|
3077
2662
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3078
2663
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
@@ -3090,13 +2675,13 @@ var Textarea = React30.forwardRef(
|
|
|
3090
2675
|
Textarea.displayName = "Textarea";
|
|
3091
2676
|
|
|
3092
2677
|
// src/components/ui/toast.tsx
|
|
3093
|
-
var
|
|
2678
|
+
var React30 = __toESM(require("react"));
|
|
3094
2679
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
|
3095
2680
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
3096
2681
|
var import_lucide_react10 = require("lucide-react");
|
|
3097
2682
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3098
2683
|
var ToastProvider = ToastPrimitives.Provider;
|
|
3099
|
-
var ToastViewport =
|
|
2684
|
+
var ToastViewport = React30.forwardRef((_a, ref) => {
|
|
3100
2685
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3101
2686
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3102
2687
|
ToastPrimitives.Viewport,
|
|
@@ -3124,7 +2709,7 @@ var toastVariants = (0, import_class_variance_authority7.cva)(
|
|
|
3124
2709
|
}
|
|
3125
2710
|
}
|
|
3126
2711
|
);
|
|
3127
|
-
var Toast =
|
|
2712
|
+
var Toast = React30.forwardRef((_a, ref) => {
|
|
3128
2713
|
var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
|
|
3129
2714
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3130
2715
|
ToastPrimitives.Root,
|
|
@@ -3135,7 +2720,7 @@ var Toast = React31.forwardRef((_a, ref) => {
|
|
|
3135
2720
|
);
|
|
3136
2721
|
});
|
|
3137
2722
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
3138
|
-
var ToastAction =
|
|
2723
|
+
var ToastAction = React30.forwardRef((_a, ref) => {
|
|
3139
2724
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3140
2725
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3141
2726
|
ToastPrimitives.Action,
|
|
@@ -3149,7 +2734,7 @@ var ToastAction = React31.forwardRef((_a, ref) => {
|
|
|
3149
2734
|
);
|
|
3150
2735
|
});
|
|
3151
2736
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
3152
|
-
var ToastClose =
|
|
2737
|
+
var ToastClose = React30.forwardRef((_a, ref) => {
|
|
3153
2738
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3154
2739
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3155
2740
|
ToastPrimitives.Close,
|
|
@@ -3166,7 +2751,7 @@ var ToastClose = React31.forwardRef((_a, ref) => {
|
|
|
3166
2751
|
);
|
|
3167
2752
|
});
|
|
3168
2753
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
3169
|
-
var ToastTitle =
|
|
2754
|
+
var ToastTitle = React30.forwardRef((_a, ref) => {
|
|
3170
2755
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3171
2756
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3172
2757
|
ToastPrimitives.Title,
|
|
@@ -3177,7 +2762,7 @@ var ToastTitle = React31.forwardRef((_a, ref) => {
|
|
|
3177
2762
|
);
|
|
3178
2763
|
});
|
|
3179
2764
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
3180
|
-
var ToastDescription =
|
|
2765
|
+
var ToastDescription = React30.forwardRef((_a, ref) => {
|
|
3181
2766
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
3182
2767
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3183
2768
|
ToastPrimitives.Description,
|
|
@@ -3190,7 +2775,7 @@ var ToastDescription = React31.forwardRef((_a, ref) => {
|
|
|
3190
2775
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
3191
2776
|
|
|
3192
2777
|
// src/components/ui/use-toast.ts
|
|
3193
|
-
var
|
|
2778
|
+
var React31 = __toESM(require("react"));
|
|
3194
2779
|
var TOAST_LIMIT = 1;
|
|
3195
2780
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
3196
2781
|
var count = 0;
|
|
@@ -3285,8 +2870,8 @@ function toast(_a) {
|
|
|
3285
2870
|
};
|
|
3286
2871
|
}
|
|
3287
2872
|
function useToast() {
|
|
3288
|
-
const [state, setState] =
|
|
3289
|
-
|
|
2873
|
+
const [state, setState] = React31.useState(memoryState);
|
|
2874
|
+
React31.useEffect(() => {
|
|
3290
2875
|
listeners.push(setState);
|
|
3291
2876
|
return () => {
|
|
3292
2877
|
const index = listeners.indexOf(setState);
|
|
@@ -3322,7 +2907,7 @@ function Toaster() {
|
|
|
3322
2907
|
}
|
|
3323
2908
|
|
|
3324
2909
|
// src/components/ui/toggle.tsx
|
|
3325
|
-
var
|
|
2910
|
+
var React32 = __toESM(require("react"));
|
|
3326
2911
|
var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"));
|
|
3327
2912
|
var import_class_variance_authority8 = require("class-variance-authority");
|
|
3328
2913
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
@@ -3346,7 +2931,7 @@ var toggleVariants = (0, import_class_variance_authority8.cva)(
|
|
|
3346
2931
|
}
|
|
3347
2932
|
}
|
|
3348
2933
|
);
|
|
3349
|
-
var Toggle =
|
|
2934
|
+
var Toggle = React32.forwardRef((_a, ref) => {
|
|
3350
2935
|
var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
|
|
3351
2936
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3352
2937
|
TogglePrimitive.Root,
|
|
@@ -3359,13 +2944,13 @@ var Toggle = React33.forwardRef((_a, ref) => {
|
|
|
3359
2944
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
3360
2945
|
|
|
3361
2946
|
// src/components/ui/tooltip.tsx
|
|
3362
|
-
var
|
|
2947
|
+
var React33 = __toESM(require("react"));
|
|
3363
2948
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
3364
2949
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3365
2950
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3366
2951
|
var Tooltip = TooltipPrimitive.Root;
|
|
3367
2952
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3368
|
-
var TooltipContent =
|
|
2953
|
+
var TooltipContent = React33.forwardRef((_a, ref) => {
|
|
3369
2954
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
3370
2955
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3371
2956
|
TooltipPrimitive.Content,
|
|
@@ -4376,7 +3961,7 @@ var UsersGroup = (_a) => {
|
|
|
4376
3961
|
|
|
4377
3962
|
// src/components/Shared/CustomTable.tsx
|
|
4378
3963
|
var import_react_table = require("@tanstack/react-table");
|
|
4379
|
-
var
|
|
3964
|
+
var import_react = require("react");
|
|
4380
3965
|
|
|
4381
3966
|
// src/components/Shared/Pagination.tsx
|
|
4382
3967
|
var import_uuid = require("uuid");
|
|
@@ -4479,7 +4064,7 @@ var TableView = ({
|
|
|
4479
4064
|
totalCount,
|
|
4480
4065
|
pageSize
|
|
4481
4066
|
}) => {
|
|
4482
|
-
const renderHeader = (0,
|
|
4067
|
+
const renderHeader = (0, import_react.useCallback)(() => {
|
|
4483
4068
|
const headerGroups = table.getHeaderGroups();
|
|
4484
4069
|
return headerGroups.map((headerGroup) => {
|
|
4485
4070
|
const headers = headerGroup.headers;
|
|
@@ -4499,7 +4084,7 @@ var TableView = ({
|
|
|
4499
4084
|
}) }, headerGroup.id);
|
|
4500
4085
|
});
|
|
4501
4086
|
}, [table]);
|
|
4502
|
-
const renderBody = (0,
|
|
4087
|
+
const renderBody = (0, import_react.useCallback)(() => {
|
|
4503
4088
|
const rows = table.getRowModel().rows;
|
|
4504
4089
|
return rows.map((row) => {
|
|
4505
4090
|
const cells = row.getVisibleCells();
|
|
@@ -4572,13 +4157,13 @@ var Loader = () => {
|
|
|
4572
4157
|
};
|
|
4573
4158
|
|
|
4574
4159
|
// src/components/Shared/Search.tsx
|
|
4575
|
-
var
|
|
4160
|
+
var import_react5 = require("react");
|
|
4576
4161
|
|
|
4577
4162
|
// src/components/Shared/hooks/useDebounce.ts
|
|
4578
|
-
var
|
|
4163
|
+
var import_react2 = require("react");
|
|
4579
4164
|
var useDebounce = (value, delay = 800) => {
|
|
4580
|
-
const [debouncedValue, setDebouncedValue] = (0,
|
|
4581
|
-
(0,
|
|
4165
|
+
const [debouncedValue, setDebouncedValue] = (0, import_react2.useState)(value);
|
|
4166
|
+
(0, import_react2.useEffect)(
|
|
4582
4167
|
() => {
|
|
4583
4168
|
const handler = setTimeout(() => {
|
|
4584
4169
|
setDebouncedValue(value);
|
|
@@ -4594,13 +4179,13 @@ var useDebounce = (value, delay = 800) => {
|
|
|
4594
4179
|
};
|
|
4595
4180
|
|
|
4596
4181
|
// src/components/Shared/Input.tsx
|
|
4597
|
-
var
|
|
4182
|
+
var import_react4 = require("react");
|
|
4598
4183
|
|
|
4599
4184
|
// src/components/Shared/Label.tsx
|
|
4600
|
-
var
|
|
4185
|
+
var import_react3 = require("react");
|
|
4601
4186
|
var LabelPrimitive2 = __toESM(require("@radix-ui/react-label"));
|
|
4602
4187
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
4603
|
-
var Label6 = (0,
|
|
4188
|
+
var Label6 = (0, import_react3.forwardRef)((_a, ref) => {
|
|
4604
4189
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4605
4190
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
4606
4191
|
LabelPrimitive2.Root,
|
|
@@ -4617,7 +4202,7 @@ Label6.displayName = LabelPrimitive2.Root.displayName;
|
|
|
4617
4202
|
|
|
4618
4203
|
// src/components/Shared/Input.tsx
|
|
4619
4204
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
4620
|
-
var Input2 = (0,
|
|
4205
|
+
var Input2 = (0, import_react4.forwardRef)(
|
|
4621
4206
|
(_a, ref) => {
|
|
4622
4207
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4623
4208
|
const { label, errMessage, id } = props;
|
|
@@ -4642,10 +4227,10 @@ Input2.displayName = "Input";
|
|
|
4642
4227
|
// src/components/Shared/Search.tsx
|
|
4643
4228
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
4644
4229
|
var SearchInput = ({ onUpdate, value }) => {
|
|
4645
|
-
const [searchTerm, setSearchTerm] = (0,
|
|
4646
|
-
const ref = (0,
|
|
4230
|
+
const [searchTerm, setSearchTerm] = (0, import_react5.useState)(value);
|
|
4231
|
+
const ref = (0, import_react5.useRef)(null);
|
|
4647
4232
|
const searchStr = useDebounce(searchTerm);
|
|
4648
|
-
const onSearchEvent = (0,
|
|
4233
|
+
const onSearchEvent = (0, import_react5.useCallback)(
|
|
4649
4234
|
(e) => {
|
|
4650
4235
|
const target = e.target;
|
|
4651
4236
|
const { value: value2 } = target;
|
|
@@ -4656,10 +4241,10 @@ var SearchInput = ({ onUpdate, value }) => {
|
|
|
4656
4241
|
},
|
|
4657
4242
|
[onUpdate]
|
|
4658
4243
|
);
|
|
4659
|
-
(0,
|
|
4244
|
+
(0, import_react5.useEffect)(() => {
|
|
4660
4245
|
if (searchStr) onUpdate(searchStr);
|
|
4661
4246
|
}, [onUpdate, searchStr]);
|
|
4662
|
-
(0,
|
|
4247
|
+
(0, import_react5.useEffect)(() => {
|
|
4663
4248
|
var _a;
|
|
4664
4249
|
if (value) {
|
|
4665
4250
|
(_a = ref.current) == null ? void 0 : _a.focus();
|
|
@@ -4676,21 +4261,21 @@ var SearchInput = ({ onUpdate, value }) => {
|
|
|
4676
4261
|
}
|
|
4677
4262
|
) });
|
|
4678
4263
|
};
|
|
4679
|
-
var Search2 = (0,
|
|
4264
|
+
var Search2 = (0, import_react5.memo)(SearchInput);
|
|
4680
4265
|
|
|
4681
4266
|
// src/components/Shared/ThemeChanger.tsx
|
|
4682
|
-
var
|
|
4267
|
+
var import_react7 = require("react");
|
|
4683
4268
|
var import_lucide_react13 = require("lucide-react");
|
|
4684
4269
|
|
|
4685
4270
|
// src/components/Shared/DropdownMenu.tsx
|
|
4686
4271
|
var DropdownMenuPrimitive2 = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
4687
4272
|
var import_lucide_react12 = require("lucide-react");
|
|
4688
|
-
var
|
|
4273
|
+
var import_react6 = __toESM(require("react"));
|
|
4689
4274
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
4690
4275
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
4691
4276
|
var DropdownMenu2 = DropdownMenuPrimitive2.Root;
|
|
4692
4277
|
var DropdownMenuTrigger2 = DropdownMenuPrimitive2.Trigger;
|
|
4693
|
-
var DropdownMenuSubTrigger2 =
|
|
4278
|
+
var DropdownMenuSubTrigger2 = import_react6.default.forwardRef((_a, ref) => {
|
|
4694
4279
|
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
4695
4280
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
4696
4281
|
DropdownMenuPrimitive2.SubTrigger,
|
|
@@ -4710,7 +4295,7 @@ var DropdownMenuSubTrigger2 = import_react7.default.forwardRef((_a, ref) => {
|
|
|
4710
4295
|
);
|
|
4711
4296
|
});
|
|
4712
4297
|
DropdownMenuSubTrigger2.displayName = DropdownMenuPrimitive2.SubTrigger.displayName;
|
|
4713
|
-
var DropdownMenuSubContent2 =
|
|
4298
|
+
var DropdownMenuSubContent2 = import_react6.default.forwardRef((_a, ref) => {
|
|
4714
4299
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4715
4300
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4716
4301
|
DropdownMenuPrimitive2.SubContent,
|
|
@@ -4724,7 +4309,7 @@ var DropdownMenuSubContent2 = import_react7.default.forwardRef((_a, ref) => {
|
|
|
4724
4309
|
);
|
|
4725
4310
|
});
|
|
4726
4311
|
DropdownMenuSubContent2.displayName = DropdownMenuPrimitive2.SubContent.displayName;
|
|
4727
|
-
var DropdownMenuContent2 =
|
|
4312
|
+
var DropdownMenuContent2 = import_react6.default.forwardRef((_a, ref) => {
|
|
4728
4313
|
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
4729
4314
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4730
4315
|
DropdownMenuPrimitive2.Content,
|
|
@@ -4740,7 +4325,7 @@ var DropdownMenuContent2 = import_react7.default.forwardRef((_a, ref) => {
|
|
|
4740
4325
|
) });
|
|
4741
4326
|
});
|
|
4742
4327
|
DropdownMenuContent2.displayName = DropdownMenuPrimitive2.Content.displayName;
|
|
4743
|
-
var DropdownMenuItem2 =
|
|
4328
|
+
var DropdownMenuItem2 = import_react6.default.forwardRef((_a, ref) => {
|
|
4744
4329
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
4745
4330
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4746
4331
|
DropdownMenuPrimitive2.Item,
|
|
@@ -4755,7 +4340,7 @@ var DropdownMenuItem2 = import_react7.default.forwardRef((_a, ref) => {
|
|
|
4755
4340
|
);
|
|
4756
4341
|
});
|
|
4757
4342
|
DropdownMenuItem2.displayName = DropdownMenuPrimitive2.Item.displayName;
|
|
4758
|
-
var DropdownMenuCheckboxItem2 =
|
|
4343
|
+
var DropdownMenuCheckboxItem2 = import_react6.default.forwardRef((_a, ref) => {
|
|
4759
4344
|
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
4760
4345
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
4761
4346
|
DropdownMenuPrimitive2.CheckboxItem,
|
|
@@ -4775,7 +4360,7 @@ var DropdownMenuCheckboxItem2 = import_react7.default.forwardRef((_a, ref) => {
|
|
|
4775
4360
|
);
|
|
4776
4361
|
});
|
|
4777
4362
|
DropdownMenuCheckboxItem2.displayName = DropdownMenuPrimitive2.CheckboxItem.displayName;
|
|
4778
|
-
var DropdownMenuRadioItem2 =
|
|
4363
|
+
var DropdownMenuRadioItem2 = import_react6.default.forwardRef((_a, ref) => {
|
|
4779
4364
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
4780
4365
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
4781
4366
|
DropdownMenuPrimitive2.RadioItem,
|
|
@@ -4794,7 +4379,7 @@ var DropdownMenuRadioItem2 = import_react7.default.forwardRef((_a, ref) => {
|
|
|
4794
4379
|
);
|
|
4795
4380
|
});
|
|
4796
4381
|
DropdownMenuRadioItem2.displayName = DropdownMenuPrimitive2.RadioItem.displayName;
|
|
4797
|
-
var DropdownMenuLabel2 =
|
|
4382
|
+
var DropdownMenuLabel2 = import_react6.default.forwardRef((_a, ref) => {
|
|
4798
4383
|
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
4799
4384
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4800
4385
|
DropdownMenuPrimitive2.Label,
|
|
@@ -4809,7 +4394,7 @@ var DropdownMenuLabel2 = import_react7.default.forwardRef((_a, ref) => {
|
|
|
4809
4394
|
);
|
|
4810
4395
|
});
|
|
4811
4396
|
DropdownMenuLabel2.displayName = DropdownMenuPrimitive2.Label.displayName;
|
|
4812
|
-
var DropdownMenuSeparator2 =
|
|
4397
|
+
var DropdownMenuSeparator2 = import_react6.default.forwardRef((_a, ref) => {
|
|
4813
4398
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
4814
4399
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
4815
4400
|
DropdownMenuPrimitive2.Separator,
|
|
@@ -4839,8 +4424,8 @@ DropdownMenuShortcut2.displayName = "DropdownMenuShortcut";
|
|
|
4839
4424
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
4840
4425
|
var themes = ["light", "dark", "cupcake", "dracula"];
|
|
4841
4426
|
var ThemeSwitcher = () => {
|
|
4842
|
-
const [currTheme, setCurrTheme] = (0,
|
|
4843
|
-
(0,
|
|
4427
|
+
const [currTheme, setCurrTheme] = (0, import_react7.useState)("");
|
|
4428
|
+
(0, import_react7.useEffect)(() => {
|
|
4844
4429
|
const t = getCurrentSelectedTheme();
|
|
4845
4430
|
setCurrTheme(t);
|
|
4846
4431
|
document.documentElement.setAttribute("data-theme", t);
|
|
@@ -4934,6 +4519,7 @@ var OldCustomInput = (props) => {
|
|
|
4934
4519
|
};
|
|
4935
4520
|
|
|
4936
4521
|
// src/components/Input/MultiSelect.tsx
|
|
4522
|
+
var import_react_hook_form2 = require("react-hook-form");
|
|
4937
4523
|
var import_react_select = __toESM(require("react-select"));
|
|
4938
4524
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
4939
4525
|
var MultiSelect = (props) => {
|
|
@@ -4946,7 +4532,7 @@ var MultiSelect = (props) => {
|
|
|
4946
4532
|
};
|
|
4947
4533
|
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { children: [
|
|
4948
4534
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
4949
|
-
Controller,
|
|
4535
|
+
import_react_hook_form2.Controller,
|
|
4950
4536
|
{
|
|
4951
4537
|
control: props.control,
|
|
4952
4538
|
rules: { required: props.isRequired },
|
|
@@ -5090,9 +4676,9 @@ var PrimaryButton = (props) => {
|
|
|
5090
4676
|
};
|
|
5091
4677
|
|
|
5092
4678
|
// src/components/DesignElements/typography.tsx
|
|
5093
|
-
var
|
|
4679
|
+
var import_react8 = require("react");
|
|
5094
4680
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
5095
|
-
var LandingTitle = (0,
|
|
4681
|
+
var LandingTitle = (0, import_react8.forwardRef)(
|
|
5096
4682
|
(_a, ref) => {
|
|
5097
4683
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5098
4684
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5108,7 +4694,7 @@ var LandingTitle = (0, import_react9.forwardRef)(
|
|
|
5108
4694
|
}
|
|
5109
4695
|
);
|
|
5110
4696
|
LandingTitle.displayName = "LandingTitle";
|
|
5111
|
-
var LandingTitleAccent = (0,
|
|
4697
|
+
var LandingTitleAccent = (0, import_react8.forwardRef)(
|
|
5112
4698
|
(_a, ref) => {
|
|
5113
4699
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5114
4700
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5124,7 +4710,7 @@ var LandingTitleAccent = (0, import_react9.forwardRef)(
|
|
|
5124
4710
|
}
|
|
5125
4711
|
);
|
|
5126
4712
|
LandingTitleAccent.displayName = "LandingTitleAccent";
|
|
5127
|
-
var BigLandingTitle = (0,
|
|
4713
|
+
var BigLandingTitle = (0, import_react8.forwardRef)(
|
|
5128
4714
|
(_a, ref) => {
|
|
5129
4715
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5130
4716
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5140,7 +4726,7 @@ var BigLandingTitle = (0, import_react9.forwardRef)(
|
|
|
5140
4726
|
}
|
|
5141
4727
|
);
|
|
5142
4728
|
BigLandingTitle.displayName = "BigLandingTitle";
|
|
5143
|
-
var BigLandingTitleAccent = (0,
|
|
4729
|
+
var BigLandingTitleAccent = (0, import_react8.forwardRef)(
|
|
5144
4730
|
(_a, ref) => {
|
|
5145
4731
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5146
4732
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5156,7 +4742,7 @@ var BigLandingTitleAccent = (0, import_react9.forwardRef)(
|
|
|
5156
4742
|
}
|
|
5157
4743
|
);
|
|
5158
4744
|
BigLandingTitleAccent.displayName = "BigLandingTitleAccent";
|
|
5159
|
-
var H1Design = (0,
|
|
4745
|
+
var H1Design = (0, import_react8.forwardRef)(
|
|
5160
4746
|
(_a, ref) => {
|
|
5161
4747
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5162
4748
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5172,7 +4758,7 @@ var H1Design = (0, import_react9.forwardRef)(
|
|
|
5172
4758
|
}
|
|
5173
4759
|
);
|
|
5174
4760
|
H1Design.displayName = "H1Design";
|
|
5175
|
-
var H1AccentDesign = (0,
|
|
4761
|
+
var H1AccentDesign = (0, import_react8.forwardRef)(
|
|
5176
4762
|
(_a, ref) => {
|
|
5177
4763
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5178
4764
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5188,7 +4774,7 @@ var H1AccentDesign = (0, import_react9.forwardRef)(
|
|
|
5188
4774
|
}
|
|
5189
4775
|
);
|
|
5190
4776
|
H1AccentDesign.displayName = "H1AccentDesign";
|
|
5191
|
-
var H2Design = (0,
|
|
4777
|
+
var H2Design = (0, import_react8.forwardRef)(
|
|
5192
4778
|
(_a, ref) => {
|
|
5193
4779
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5194
4780
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5204,7 +4790,7 @@ var H2Design = (0, import_react9.forwardRef)(
|
|
|
5204
4790
|
}
|
|
5205
4791
|
);
|
|
5206
4792
|
H2Design.displayName = "H2Design";
|
|
5207
|
-
var H2AccentDesign = (0,
|
|
4793
|
+
var H2AccentDesign = (0, import_react8.forwardRef)(
|
|
5208
4794
|
(_a, ref) => {
|
|
5209
4795
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5210
4796
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5220,7 +4806,7 @@ var H2AccentDesign = (0, import_react9.forwardRef)(
|
|
|
5220
4806
|
}
|
|
5221
4807
|
);
|
|
5222
4808
|
H2AccentDesign.displayName = "H2AccentDesign";
|
|
5223
|
-
var H3Design = (0,
|
|
4809
|
+
var H3Design = (0, import_react8.forwardRef)(
|
|
5224
4810
|
(_a, ref) => {
|
|
5225
4811
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5226
4812
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5236,7 +4822,7 @@ var H3Design = (0, import_react9.forwardRef)(
|
|
|
5236
4822
|
}
|
|
5237
4823
|
);
|
|
5238
4824
|
H3Design.displayName = "H3Design";
|
|
5239
|
-
var H4Design = (0,
|
|
4825
|
+
var H4Design = (0, import_react8.forwardRef)(
|
|
5240
4826
|
(_a, ref) => {
|
|
5241
4827
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5242
4828
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5252,7 +4838,7 @@ var H4Design = (0, import_react9.forwardRef)(
|
|
|
5252
4838
|
}
|
|
5253
4839
|
);
|
|
5254
4840
|
H4Design.displayName = "H4Design";
|
|
5255
|
-
var H5Design = (0,
|
|
4841
|
+
var H5Design = (0, import_react8.forwardRef)(
|
|
5256
4842
|
(_a, ref) => {
|
|
5257
4843
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5258
4844
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5268,7 +4854,7 @@ var H5Design = (0, import_react9.forwardRef)(
|
|
|
5268
4854
|
}
|
|
5269
4855
|
);
|
|
5270
4856
|
H5Design.displayName = "H5Design";
|
|
5271
|
-
var H6Design = (0,
|
|
4857
|
+
var H6Design = (0, import_react8.forwardRef)(
|
|
5272
4858
|
(_a, ref) => {
|
|
5273
4859
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5274
4860
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5284,7 +4870,7 @@ var H6Design = (0, import_react9.forwardRef)(
|
|
|
5284
4870
|
}
|
|
5285
4871
|
);
|
|
5286
4872
|
H6Design.displayName = "H6Design";
|
|
5287
|
-
var H7Design = (0,
|
|
4873
|
+
var H7Design = (0, import_react8.forwardRef)(
|
|
5288
4874
|
(_a, ref) => {
|
|
5289
4875
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5290
4876
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5300,7 +4886,7 @@ var H7Design = (0, import_react9.forwardRef)(
|
|
|
5300
4886
|
}
|
|
5301
4887
|
);
|
|
5302
4888
|
H7Design.displayName = "H7Design";
|
|
5303
|
-
var H8Design = (0,
|
|
4889
|
+
var H8Design = (0, import_react8.forwardRef)(
|
|
5304
4890
|
(_a, ref) => {
|
|
5305
4891
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5306
4892
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5316,7 +4902,7 @@ var H8Design = (0, import_react9.forwardRef)(
|
|
|
5316
4902
|
}
|
|
5317
4903
|
);
|
|
5318
4904
|
H8Design.displayName = "H8Design";
|
|
5319
|
-
var H9Design = (0,
|
|
4905
|
+
var H9Design = (0, import_react8.forwardRef)(
|
|
5320
4906
|
(_a, ref) => {
|
|
5321
4907
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5322
4908
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5332,7 +4918,7 @@ var H9Design = (0, import_react9.forwardRef)(
|
|
|
5332
4918
|
}
|
|
5333
4919
|
);
|
|
5334
4920
|
H9Design.displayName = "H9Design";
|
|
5335
|
-
var Caption = (0,
|
|
4921
|
+
var Caption = (0, import_react8.forwardRef)((_a, ref) => {
|
|
5336
4922
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5337
4923
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
5338
4924
|
"p",
|
|
@@ -5343,7 +4929,7 @@ var Caption = (0, import_react9.forwardRef)((_a, ref) => {
|
|
|
5343
4929
|
);
|
|
5344
4930
|
});
|
|
5345
4931
|
Caption.displayName = "Caption";
|
|
5346
|
-
var Body20sb = (0,
|
|
4932
|
+
var Body20sb = (0, import_react8.forwardRef)(
|
|
5347
4933
|
(_a, ref) => {
|
|
5348
4934
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5349
4935
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5356,7 +4942,7 @@ var Body20sb = (0, import_react9.forwardRef)(
|
|
|
5356
4942
|
}
|
|
5357
4943
|
);
|
|
5358
4944
|
Body20sb.displayName = "Body20sb";
|
|
5359
|
-
var Body20m = (0,
|
|
4945
|
+
var Body20m = (0, import_react8.forwardRef)(
|
|
5360
4946
|
(_a, ref) => {
|
|
5361
4947
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5362
4948
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5372,7 +4958,7 @@ var Body20m = (0, import_react9.forwardRef)(
|
|
|
5372
4958
|
}
|
|
5373
4959
|
);
|
|
5374
4960
|
Body20m.displayName = "Body20m";
|
|
5375
|
-
var Body20 = (0,
|
|
4961
|
+
var Body20 = (0, import_react8.forwardRef)(
|
|
5376
4962
|
(_a, ref) => {
|
|
5377
4963
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5378
4964
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5385,7 +4971,7 @@ var Body20 = (0, import_react9.forwardRef)(
|
|
|
5385
4971
|
}
|
|
5386
4972
|
);
|
|
5387
4973
|
Body20.displayName = "Body20";
|
|
5388
|
-
var Body18sb = (0,
|
|
4974
|
+
var Body18sb = (0, import_react8.forwardRef)(
|
|
5389
4975
|
(_a, ref) => {
|
|
5390
4976
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5391
4977
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5401,7 +4987,7 @@ var Body18sb = (0, import_react9.forwardRef)(
|
|
|
5401
4987
|
}
|
|
5402
4988
|
);
|
|
5403
4989
|
Body18sb.displayName = "Body18sb";
|
|
5404
|
-
var Body18m = (0,
|
|
4990
|
+
var Body18m = (0, import_react8.forwardRef)(
|
|
5405
4991
|
(_a, ref) => {
|
|
5406
4992
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5407
4993
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5417,7 +5003,7 @@ var Body18m = (0, import_react9.forwardRef)(
|
|
|
5417
5003
|
}
|
|
5418
5004
|
);
|
|
5419
5005
|
Body18m.displayName = "Body18m";
|
|
5420
|
-
var Body18 = (0,
|
|
5006
|
+
var Body18 = (0, import_react8.forwardRef)(
|
|
5421
5007
|
(_a, ref) => {
|
|
5422
5008
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5423
5009
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5430,7 +5016,7 @@ var Body18 = (0, import_react9.forwardRef)(
|
|
|
5430
5016
|
}
|
|
5431
5017
|
);
|
|
5432
5018
|
Body18.displayName = "Body18";
|
|
5433
|
-
var Body16sb = (0,
|
|
5019
|
+
var Body16sb = (0, import_react8.forwardRef)(
|
|
5434
5020
|
(_a, ref) => {
|
|
5435
5021
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5436
5022
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5446,7 +5032,7 @@ var Body16sb = (0, import_react9.forwardRef)(
|
|
|
5446
5032
|
}
|
|
5447
5033
|
);
|
|
5448
5034
|
Body16sb.displayName = "Body16sb";
|
|
5449
|
-
var Body16m = (0,
|
|
5035
|
+
var Body16m = (0, import_react8.forwardRef)(
|
|
5450
5036
|
(_a, ref) => {
|
|
5451
5037
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5452
5038
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5462,7 +5048,7 @@ var Body16m = (0, import_react9.forwardRef)(
|
|
|
5462
5048
|
}
|
|
5463
5049
|
);
|
|
5464
5050
|
Body16m.displayName = "Body16m";
|
|
5465
|
-
var Body16 = (0,
|
|
5051
|
+
var Body16 = (0, import_react8.forwardRef)(
|
|
5466
5052
|
(_a, ref) => {
|
|
5467
5053
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5468
5054
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5478,7 +5064,7 @@ var Body16 = (0, import_react9.forwardRef)(
|
|
|
5478
5064
|
}
|
|
5479
5065
|
);
|
|
5480
5066
|
Body16.displayName = "Body16";
|
|
5481
|
-
var Body16it = (0,
|
|
5067
|
+
var Body16it = (0, import_react8.forwardRef)(
|
|
5482
5068
|
(_a, ref) => {
|
|
5483
5069
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5484
5070
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5491,7 +5077,7 @@ var Body16it = (0, import_react9.forwardRef)(
|
|
|
5491
5077
|
}
|
|
5492
5078
|
);
|
|
5493
5079
|
Body16it.displayName = "Body16it";
|
|
5494
|
-
var Body15sb = (0,
|
|
5080
|
+
var Body15sb = (0, import_react8.forwardRef)(
|
|
5495
5081
|
(_a, ref) => {
|
|
5496
5082
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5497
5083
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5507,7 +5093,7 @@ var Body15sb = (0, import_react9.forwardRef)(
|
|
|
5507
5093
|
}
|
|
5508
5094
|
);
|
|
5509
5095
|
Body15sb.displayName = "Body15sb";
|
|
5510
|
-
var Body15m = (0,
|
|
5096
|
+
var Body15m = (0, import_react8.forwardRef)(
|
|
5511
5097
|
(_a, ref) => {
|
|
5512
5098
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5513
5099
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5523,7 +5109,7 @@ var Body15m = (0, import_react9.forwardRef)(
|
|
|
5523
5109
|
}
|
|
5524
5110
|
);
|
|
5525
5111
|
Body15m.displayName = "Body15m";
|
|
5526
|
-
var Body15 = (0,
|
|
5112
|
+
var Body15 = (0, import_react8.forwardRef)(
|
|
5527
5113
|
(_a, ref) => {
|
|
5528
5114
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5529
5115
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5536,7 +5122,7 @@ var Body15 = (0, import_react9.forwardRef)(
|
|
|
5536
5122
|
}
|
|
5537
5123
|
);
|
|
5538
5124
|
Body15.displayName = "Body15";
|
|
5539
|
-
var Body15it = (0,
|
|
5125
|
+
var Body15it = (0, import_react8.forwardRef)(
|
|
5540
5126
|
(_a, ref) => {
|
|
5541
5127
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5542
5128
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5549,7 +5135,7 @@ var Body15it = (0, import_react9.forwardRef)(
|
|
|
5549
5135
|
}
|
|
5550
5136
|
);
|
|
5551
5137
|
Body15it.displayName = "Body15it";
|
|
5552
|
-
var Body14sb = (0,
|
|
5138
|
+
var Body14sb = (0, import_react8.forwardRef)(
|
|
5553
5139
|
(_a, ref) => {
|
|
5554
5140
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5555
5141
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5562,7 +5148,7 @@ var Body14sb = (0, import_react9.forwardRef)(
|
|
|
5562
5148
|
}
|
|
5563
5149
|
);
|
|
5564
5150
|
Body14sb.displayName = "Body14sb";
|
|
5565
|
-
var Body14m = (0,
|
|
5151
|
+
var Body14m = (0, import_react8.forwardRef)(
|
|
5566
5152
|
(_a, ref) => {
|
|
5567
5153
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5568
5154
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5575,7 +5161,7 @@ var Body14m = (0, import_react9.forwardRef)(
|
|
|
5575
5161
|
}
|
|
5576
5162
|
);
|
|
5577
5163
|
Body14m.displayName = "Body14m";
|
|
5578
|
-
var Body14 = (0,
|
|
5164
|
+
var Body14 = (0, import_react8.forwardRef)(
|
|
5579
5165
|
(_a, ref) => {
|
|
5580
5166
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5581
5167
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5588,7 +5174,7 @@ var Body14 = (0, import_react9.forwardRef)(
|
|
|
5588
5174
|
}
|
|
5589
5175
|
);
|
|
5590
5176
|
Body14.displayName = "Body14";
|
|
5591
|
-
var Body12sb = (0,
|
|
5177
|
+
var Body12sb = (0, import_react8.forwardRef)(
|
|
5592
5178
|
(_a, ref) => {
|
|
5593
5179
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5594
5180
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5601,7 +5187,7 @@ var Body12sb = (0, import_react9.forwardRef)(
|
|
|
5601
5187
|
}
|
|
5602
5188
|
);
|
|
5603
5189
|
Body12sb.displayName = "Body12sb";
|
|
5604
|
-
var Body12m = (0,
|
|
5190
|
+
var Body12m = (0, import_react8.forwardRef)(
|
|
5605
5191
|
(_a, ref) => {
|
|
5606
5192
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5607
5193
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5614,7 +5200,7 @@ var Body12m = (0, import_react9.forwardRef)(
|
|
|
5614
5200
|
}
|
|
5615
5201
|
);
|
|
5616
5202
|
Body12m.displayName = "Body12m";
|
|
5617
|
-
var Body12 = (0,
|
|
5203
|
+
var Body12 = (0, import_react8.forwardRef)(
|
|
5618
5204
|
(_a, ref) => {
|
|
5619
5205
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5620
5206
|
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
@@ -5638,16 +5224,16 @@ var AboutInfoItem = ({ title, description }) => {
|
|
|
5638
5224
|
};
|
|
5639
5225
|
|
|
5640
5226
|
// src/components/DesignElements/breadcrumb.tsx
|
|
5641
|
-
var
|
|
5227
|
+
var React35 = __toESM(require("react"));
|
|
5642
5228
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
5643
5229
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
5644
5230
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
5645
|
-
var Breadcrumb =
|
|
5231
|
+
var Breadcrumb = React35.forwardRef((_a, ref) => {
|
|
5646
5232
|
var props = __objRest(_a, []);
|
|
5647
5233
|
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("nav", __spreadValues({ ref, "aria-label": "breadcrumb" }, props));
|
|
5648
5234
|
});
|
|
5649
5235
|
Breadcrumb.displayName = "Breadcrumb";
|
|
5650
|
-
var BreadcrumbList =
|
|
5236
|
+
var BreadcrumbList = React35.forwardRef((_a, ref) => {
|
|
5651
5237
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5652
5238
|
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
5653
5239
|
"ol",
|
|
@@ -5661,7 +5247,7 @@ var BreadcrumbList = React36.forwardRef((_a, ref) => {
|
|
|
5661
5247
|
);
|
|
5662
5248
|
});
|
|
5663
5249
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
5664
|
-
var BreadcrumbItem =
|
|
5250
|
+
var BreadcrumbItem = React35.forwardRef((_a, ref) => {
|
|
5665
5251
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5666
5252
|
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
5667
5253
|
"li",
|
|
@@ -5672,7 +5258,7 @@ var BreadcrumbItem = React36.forwardRef((_a, ref) => {
|
|
|
5672
5258
|
);
|
|
5673
5259
|
});
|
|
5674
5260
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
5675
|
-
var BreadcrumbLink =
|
|
5261
|
+
var BreadcrumbLink = React35.forwardRef((_a, ref) => {
|
|
5676
5262
|
var _b = _a, { asChild, className } = _b, props = __objRest(_b, ["asChild", "className"]);
|
|
5677
5263
|
const Comp = asChild ? import_react_slot3.Slot : "a";
|
|
5678
5264
|
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
@@ -5684,7 +5270,7 @@ var BreadcrumbLink = React36.forwardRef((_a, ref) => {
|
|
|
5684
5270
|
);
|
|
5685
5271
|
});
|
|
5686
5272
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
5687
|
-
var BreadcrumbPage =
|
|
5273
|
+
var BreadcrumbPage = React35.forwardRef((_a, ref) => {
|
|
5688
5274
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5689
5275
|
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
5690
5276
|
"span",
|
|
@@ -5742,7 +5328,7 @@ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
|
5742
5328
|
|
|
5743
5329
|
// src/components/DesignElements/button.tsx
|
|
5744
5330
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
5745
|
-
var
|
|
5331
|
+
var import_react9 = __toESM(require("react"));
|
|
5746
5332
|
var import_class_variance_authority9 = require("class-variance-authority");
|
|
5747
5333
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
5748
5334
|
var designButtonVariants = (0, import_class_variance_authority9.cva)(
|
|
@@ -5771,7 +5357,7 @@ var designButtonVariants = (0, import_class_variance_authority9.cva)(
|
|
|
5771
5357
|
}
|
|
5772
5358
|
}
|
|
5773
5359
|
);
|
|
5774
|
-
var DesignButton =
|
|
5360
|
+
var DesignButton = import_react9.default.forwardRef(
|
|
5775
5361
|
(_a, ref) => {
|
|
5776
5362
|
var _b = _a, {
|
|
5777
5363
|
className,
|
|
@@ -5833,19 +5419,19 @@ var DesignButton = import_react10.default.forwardRef(
|
|
|
5833
5419
|
DesignButton.displayName = "DesignButton";
|
|
5834
5420
|
|
|
5835
5421
|
// src/components/DesignElements/carousel.tsx
|
|
5836
|
-
var
|
|
5422
|
+
var React37 = __toESM(require("react"));
|
|
5837
5423
|
var import_embla_carousel_react = __toESM(require("embla-carousel-react"));
|
|
5838
5424
|
var import_lucide_react14 = require("lucide-react");
|
|
5839
5425
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
5840
|
-
var CarouselContext =
|
|
5426
|
+
var CarouselContext = React37.createContext(null);
|
|
5841
5427
|
function useCarousel() {
|
|
5842
|
-
const context =
|
|
5428
|
+
const context = React37.useContext(CarouselContext);
|
|
5843
5429
|
if (!context) {
|
|
5844
5430
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
5845
5431
|
}
|
|
5846
5432
|
return context;
|
|
5847
5433
|
}
|
|
5848
|
-
var Carousel =
|
|
5434
|
+
var Carousel = React37.forwardRef(
|
|
5849
5435
|
(_a, ref) => {
|
|
5850
5436
|
var _b = _a, {
|
|
5851
5437
|
orientation = "horizontal",
|
|
@@ -5871,22 +5457,22 @@ var Carousel = React38.forwardRef(
|
|
|
5871
5457
|
}),
|
|
5872
5458
|
plugins
|
|
5873
5459
|
);
|
|
5874
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
5875
|
-
const [canScrollNext, setCanScrollNext] =
|
|
5876
|
-
const onSelect =
|
|
5460
|
+
const [canScrollPrev, setCanScrollPrev] = React37.useState(false);
|
|
5461
|
+
const [canScrollNext, setCanScrollNext] = React37.useState(false);
|
|
5462
|
+
const onSelect = React37.useCallback((api2) => {
|
|
5877
5463
|
if (!api2) {
|
|
5878
5464
|
return;
|
|
5879
5465
|
}
|
|
5880
5466
|
setCanScrollPrev(api2.canScrollPrev());
|
|
5881
5467
|
setCanScrollNext(api2.canScrollNext());
|
|
5882
5468
|
}, []);
|
|
5883
|
-
const scrollPrev =
|
|
5469
|
+
const scrollPrev = React37.useCallback(() => {
|
|
5884
5470
|
api == null ? void 0 : api.scrollPrev();
|
|
5885
5471
|
}, [api]);
|
|
5886
|
-
const scrollNext =
|
|
5472
|
+
const scrollNext = React37.useCallback(() => {
|
|
5887
5473
|
api == null ? void 0 : api.scrollNext();
|
|
5888
5474
|
}, [api]);
|
|
5889
|
-
const handleKeyDown =
|
|
5475
|
+
const handleKeyDown = React37.useCallback(
|
|
5890
5476
|
(event) => {
|
|
5891
5477
|
if (event.key === "ArrowLeft") {
|
|
5892
5478
|
event.preventDefault();
|
|
@@ -5898,13 +5484,13 @@ var Carousel = React38.forwardRef(
|
|
|
5898
5484
|
},
|
|
5899
5485
|
[scrollPrev, scrollNext]
|
|
5900
5486
|
);
|
|
5901
|
-
|
|
5487
|
+
React37.useEffect(() => {
|
|
5902
5488
|
if (!api || !setApi) {
|
|
5903
5489
|
return;
|
|
5904
5490
|
}
|
|
5905
5491
|
setApi(api);
|
|
5906
5492
|
}, [api, setApi]);
|
|
5907
|
-
|
|
5493
|
+
React37.useEffect(() => {
|
|
5908
5494
|
if (!api) {
|
|
5909
5495
|
return;
|
|
5910
5496
|
}
|
|
@@ -5946,7 +5532,7 @@ var Carousel = React38.forwardRef(
|
|
|
5946
5532
|
}
|
|
5947
5533
|
);
|
|
5948
5534
|
Carousel.displayName = "Carousel";
|
|
5949
|
-
var CarouselContent =
|
|
5535
|
+
var CarouselContent = React37.forwardRef((_a, ref) => {
|
|
5950
5536
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5951
5537
|
const { carouselRef, orientation } = useCarousel();
|
|
5952
5538
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
@@ -5962,7 +5548,7 @@ var CarouselContent = React38.forwardRef((_a, ref) => {
|
|
|
5962
5548
|
) });
|
|
5963
5549
|
});
|
|
5964
5550
|
CarouselContent.displayName = "CarouselContent";
|
|
5965
|
-
var CarouselItem =
|
|
5551
|
+
var CarouselItem = React37.forwardRef((_a, ref) => {
|
|
5966
5552
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5967
5553
|
const { orientation } = useCarousel();
|
|
5968
5554
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
@@ -5980,7 +5566,7 @@ var CarouselItem = React38.forwardRef((_a, ref) => {
|
|
|
5980
5566
|
);
|
|
5981
5567
|
});
|
|
5982
5568
|
CarouselItem.displayName = "CarouselItem";
|
|
5983
|
-
var CarouselPrevious =
|
|
5569
|
+
var CarouselPrevious = React37.forwardRef((_a, ref) => {
|
|
5984
5570
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
5985
5571
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
5986
5572
|
return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
@@ -6003,7 +5589,7 @@ var CarouselPrevious = React38.forwardRef((_a, ref) => {
|
|
|
6003
5589
|
);
|
|
6004
5590
|
});
|
|
6005
5591
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
6006
|
-
var CarouselNext =
|
|
5592
|
+
var CarouselNext = React37.forwardRef(
|
|
6007
5593
|
(_a, ref) => {
|
|
6008
5594
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6009
5595
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
@@ -6030,11 +5616,11 @@ var CarouselNext = React38.forwardRef(
|
|
|
6030
5616
|
CarouselNext.displayName = "CarouselNext";
|
|
6031
5617
|
|
|
6032
5618
|
// src/components/DesignElements/checkbox.tsx
|
|
6033
|
-
var
|
|
5619
|
+
var React38 = __toESM(require("react"));
|
|
6034
5620
|
var CheckboxPrimitive2 = __toESM(require("@radix-ui/react-checkbox"));
|
|
6035
5621
|
var import_lucide_react15 = require("lucide-react");
|
|
6036
5622
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
6037
|
-
var Checkbox2 =
|
|
5623
|
+
var Checkbox2 = React38.forwardRef((_a, ref) => {
|
|
6038
5624
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6039
5625
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
6040
5626
|
CheckboxPrimitive2.Root,
|
|
@@ -6058,11 +5644,11 @@ var Checkbox2 = React39.forwardRef((_a, ref) => {
|
|
|
6058
5644
|
Checkbox2.displayName = CheckboxPrimitive2.Root.displayName;
|
|
6059
5645
|
|
|
6060
5646
|
// src/components/DesignElements/cookies.tsx
|
|
6061
|
-
var
|
|
5647
|
+
var import_react10 = require("react");
|
|
6062
5648
|
var import_lucide_react16 = require("lucide-react");
|
|
6063
5649
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
6064
5650
|
var Cookies = ({ handleAccept, handleDecline }) => {
|
|
6065
|
-
const [isOpen, setIsOpen] = (0,
|
|
5651
|
+
const [isOpen, setIsOpen] = (0, import_react10.useState)(true);
|
|
6066
5652
|
const handleClose = () => {
|
|
6067
5653
|
setIsOpen(false);
|
|
6068
5654
|
};
|
|
@@ -6160,7 +5746,7 @@ var InfoBox = ({ title, text }) => {
|
|
|
6160
5746
|
};
|
|
6161
5747
|
|
|
6162
5748
|
// src/components/DesignElements/input.tsx
|
|
6163
|
-
var
|
|
5749
|
+
var React39 = __toESM(require("react"));
|
|
6164
5750
|
var import_class_variance_authority10 = require("class-variance-authority");
|
|
6165
5751
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
6166
5752
|
var designInputVariants = (0, import_class_variance_authority10.cva)(
|
|
@@ -6178,7 +5764,7 @@ var designInputVariants = (0, import_class_variance_authority10.cva)(
|
|
|
6178
5764
|
}
|
|
6179
5765
|
}
|
|
6180
5766
|
);
|
|
6181
|
-
var DesignInput =
|
|
5767
|
+
var DesignInput = React39.forwardRef(
|
|
6182
5768
|
(_a, ref) => {
|
|
6183
5769
|
var _b = _a, { className, type, variant } = _b, props = __objRest(_b, ["className", "type", "variant"]);
|
|
6184
5770
|
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "relative", children: [
|
|
@@ -6264,11 +5850,11 @@ var NoResults = () => {
|
|
|
6264
5850
|
};
|
|
6265
5851
|
|
|
6266
5852
|
// src/components/DesignElements/radio-group.tsx
|
|
6267
|
-
var
|
|
5853
|
+
var React40 = __toESM(require("react"));
|
|
6268
5854
|
var RadioGroupPrimitive2 = __toESM(require("@radix-ui/react-radio-group"));
|
|
6269
5855
|
var import_lucide_react17 = require("lucide-react");
|
|
6270
5856
|
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
6271
|
-
var DesignRadioGroup =
|
|
5857
|
+
var DesignRadioGroup = React40.forwardRef((_a, ref) => {
|
|
6272
5858
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6273
5859
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6274
5860
|
RadioGroupPrimitive2.Root,
|
|
@@ -6280,7 +5866,7 @@ var DesignRadioGroup = React41.forwardRef((_a, ref) => {
|
|
|
6280
5866
|
);
|
|
6281
5867
|
});
|
|
6282
5868
|
DesignRadioGroup.displayName = RadioGroupPrimitive2.Root.displayName;
|
|
6283
|
-
var DesignRadioGroupItem =
|
|
5869
|
+
var DesignRadioGroupItem = React40.forwardRef((_a, ref) => {
|
|
6284
5870
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
6285
5871
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6286
5872
|
RadioGroupPrimitive2.Item,
|
|
@@ -6480,10 +6066,10 @@ var DesignSimpleTag = ({
|
|
|
6480
6066
|
};
|
|
6481
6067
|
|
|
6482
6068
|
// src/components/DesignElements/switch.tsx
|
|
6483
|
-
var
|
|
6069
|
+
var React41 = __toESM(require("react"));
|
|
6484
6070
|
var SwitchPrimitives2 = __toESM(require("@radix-ui/react-switch"));
|
|
6485
6071
|
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
6486
|
-
var DesignSwitch =
|
|
6072
|
+
var DesignSwitch = React41.forwardRef((_a, ref) => {
|
|
6487
6073
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
6488
6074
|
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
6489
6075
|
SwitchPrimitives2.Root,
|
|
@@ -6509,11 +6095,11 @@ var DesignSwitch = React42.forwardRef((_a, ref) => {
|
|
|
6509
6095
|
DesignSwitch.displayName = SwitchPrimitives2.Root.displayName;
|
|
6510
6096
|
|
|
6511
6097
|
// src/components/DesignElements/tag.tsx
|
|
6512
|
-
var
|
|
6098
|
+
var import_react11 = require("react");
|
|
6513
6099
|
var import_lucide_react19 = require("lucide-react");
|
|
6514
6100
|
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
6515
6101
|
var DesignResultTag = ({ tag, name }) => {
|
|
6516
|
-
const [isOpen, setIsOpen] = (0,
|
|
6102
|
+
const [isOpen, setIsOpen] = (0, import_react11.useState)(true);
|
|
6517
6103
|
const handleClose = () => {
|
|
6518
6104
|
setIsOpen(false);
|
|
6519
6105
|
};
|
|
@@ -6564,8 +6150,8 @@ var ResourceTag = ({ tag, type }) => {
|
|
|
6564
6150
|
};
|
|
6565
6151
|
|
|
6566
6152
|
// src/components/DesignElements/Notification.tsx
|
|
6567
|
-
var
|
|
6568
|
-
var
|
|
6153
|
+
var import_react12 = require("@headlessui/react");
|
|
6154
|
+
var import_react13 = require("react");
|
|
6569
6155
|
var import_outline = require("@heroicons/react/24/outline");
|
|
6570
6156
|
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
6571
6157
|
var Notification = ({
|
|
@@ -6575,11 +6161,11 @@ var Notification = ({
|
|
|
6575
6161
|
setOpen,
|
|
6576
6162
|
icon
|
|
6577
6163
|
}) => {
|
|
6578
|
-
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
6164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_react12.Transition.Root, { show: open, as: import_react13.Fragment, "data-component": "Notification", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_react12.Dialog, { as: "div", className: "relative z-10", onClose: setOpen, children: [
|
|
6579
6165
|
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
6580
|
-
|
|
6166
|
+
import_react12.Transition.Child,
|
|
6581
6167
|
{
|
|
6582
|
-
as:
|
|
6168
|
+
as: import_react13.Fragment,
|
|
6583
6169
|
enter: "ease-out duration-300",
|
|
6584
6170
|
enterFrom: "opacity-0",
|
|
6585
6171
|
enterTo: "opacity-100",
|
|
@@ -6590,16 +6176,16 @@ var Notification = ({
|
|
|
6590
6176
|
}
|
|
6591
6177
|
),
|
|
6592
6178
|
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "fixed z-10 inset-0 overflow-y-auto text-black", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "flex items-center justify-center min-h-full p-4 text-center ", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
6593
|
-
|
|
6179
|
+
import_react12.Transition.Child,
|
|
6594
6180
|
{
|
|
6595
|
-
as:
|
|
6181
|
+
as: import_react13.Fragment,
|
|
6596
6182
|
enter: "ease-out duration-300",
|
|
6597
6183
|
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
6598
6184
|
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
6599
6185
|
leave: "ease-in duration-200",
|
|
6600
6186
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
6601
6187
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
6602
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
6188
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_react12.Dialog.Panel, { className: "relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all py-8 max-w-4xl w-full p-10", children: [
|
|
6603
6189
|
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "absolute top-0 right-0 pt-10 pr-10", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
6604
6190
|
"button",
|
|
6605
6191
|
{
|
|
@@ -6730,11 +6316,11 @@ var ThreeColumn = ({ tag, content, TagClassName }) => {
|
|
|
6730
6316
|
};
|
|
6731
6317
|
|
|
6732
6318
|
// src/components/DesignElements/VersionDisplay.tsx
|
|
6733
|
-
var
|
|
6319
|
+
var import_react14 = require("react");
|
|
6734
6320
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
6735
6321
|
var VersionDisplay = () => {
|
|
6736
|
-
const [version, setVersion] = (0,
|
|
6737
|
-
(0,
|
|
6322
|
+
const [version, setVersion] = (0, import_react14.useState)();
|
|
6323
|
+
(0, import_react14.useEffect)(() => {
|
|
6738
6324
|
fetch("/version.json").then((res) => {
|
|
6739
6325
|
if (!res.ok) throw new Error("Version file not found");
|
|
6740
6326
|
return res.json();
|
|
@@ -6748,8 +6334,8 @@ var VersionDisplay = () => {
|
|
|
6748
6334
|
};
|
|
6749
6335
|
|
|
6750
6336
|
// src/components/DesignElements/header.tsx
|
|
6751
|
-
var
|
|
6752
|
-
var
|
|
6337
|
+
var import_react15 = require("react");
|
|
6338
|
+
var import_react16 = require("@headlessui/react");
|
|
6753
6339
|
var import_outline2 = require("@heroicons/react/24/outline");
|
|
6754
6340
|
var import_solid2 = require("@heroicons/react/20/solid");
|
|
6755
6341
|
var import_core3 = require("@geowiki/core");
|
|
@@ -6842,8 +6428,8 @@ var DesignHeader = ({
|
|
|
6842
6428
|
privacy_policy_url,
|
|
6843
6429
|
mobile_menu_color
|
|
6844
6430
|
}) => {
|
|
6845
|
-
const [mobileMenuOpen, setMobileMenuOpen] = (0,
|
|
6846
|
-
const [openNotification, setOpenNotification] = (0,
|
|
6431
|
+
const [mobileMenuOpen, setMobileMenuOpen] = (0, import_react15.useState)(false);
|
|
6432
|
+
const [openNotification, setOpenNotification] = (0, import_react15.useState)(false);
|
|
6847
6433
|
let rootPath = "/";
|
|
6848
6434
|
if (rootUrl) {
|
|
6849
6435
|
rootPath = rootUrl != null ? rootUrl : "/";
|
|
@@ -6923,9 +6509,9 @@ var DesignHeader = ({
|
|
|
6923
6509
|
}
|
|
6924
6510
|
)
|
|
6925
6511
|
] }) }),
|
|
6926
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
6927
|
-
(menuItem) => menuItem.subMenu ? /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
|
|
6928
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
|
|
6512
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react16.Popover.Group, { className: "hidden lg:flex lg:items-center lg:gap-x-6 grid-cols-1 flex items-center gap-6 text-base font-medium", children: mainMenu.map(
|
|
6513
|
+
(menuItem) => menuItem.subMenu ? /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_react16.Popover, { children: [
|
|
6514
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_react16.Popover.Button, { className: "flex items-center gap-x-1 text-base font-medium outline-none border-none", children: [
|
|
6929
6515
|
menuItem.text,
|
|
6930
6516
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
6931
6517
|
import_solid2.ChevronDownIcon,
|
|
@@ -6935,7 +6521,7 @@ var DesignHeader = ({
|
|
|
6935
6521
|
}
|
|
6936
6522
|
)
|
|
6937
6523
|
] }),
|
|
6938
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
6524
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react16.Popover.Panel, { className: "absolute mt-3 bg-white overflow-hidden bg-neutral-content rounded-lg ring-1 ring-gray-900/5 z-[401]", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "p-4 space-y-4 ", children: menuItem.subMenu.map((subItem) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
6939
6525
|
"div",
|
|
6940
6526
|
{
|
|
6941
6527
|
className: "group relative flex rounded-lg text-sm leading-tight",
|
|
@@ -7004,7 +6590,7 @@ var DesignHeader = ({
|
|
|
7004
6590
|
}
|
|
7005
6591
|
) }),
|
|
7006
6592
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
|
|
7007
|
-
|
|
6593
|
+
import_react16.Dialog,
|
|
7008
6594
|
{
|
|
7009
6595
|
as: "div",
|
|
7010
6596
|
className: "lg:hidden",
|
|
@@ -7012,7 +6598,7 @@ var DesignHeader = ({
|
|
|
7012
6598
|
onClose: setMobileMenuOpen,
|
|
7013
6599
|
children: [
|
|
7014
6600
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "fixed inset-0 z-10" }),
|
|
7015
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_react16.Dialog.Panel, { className: "fixed inset-y-0 right-0 z-10 flex w-full flex-col bg-white shadow-xl sm:max-w-sm", children: [
|
|
7016
6602
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "flex items-center justify-between p-4", children: [
|
|
7017
6603
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_core3.Link, { href: rootPath, className: "flex-shrink-0", children: [
|
|
7018
6604
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)("span", { className: "sr-only", style: { position: "absolute", width: "1px", height: "1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)" }, children: branding.title }),
|
|
@@ -7058,8 +6644,8 @@ var DesignHeader = ({
|
|
|
7058
6644
|
}
|
|
7059
6645
|
) }),
|
|
7060
6646
|
mainMenu.map(
|
|
7061
|
-
(menuItem) => menuItem.subMenu ? /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
|
|
7062
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
|
|
6647
|
+
(menuItem) => menuItem.subMenu ? /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_react16.Popover, { className: "relative", children: [
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_react16.Popover.Button, { className: "flex w-full justify-between items-center text-lg font-semibold text-gray-900 hover:text-gray-700 transition-colors duration-200 outline-none border-none py-2", children: [
|
|
7063
6649
|
menuItem.text,
|
|
7064
6650
|
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7065
6651
|
import_solid2.ChevronDownIcon,
|
|
@@ -7069,7 +6655,7 @@ var DesignHeader = ({
|
|
|
7069
6655
|
}
|
|
7070
6656
|
)
|
|
7071
6657
|
] }),
|
|
7072
|
-
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
6658
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_react16.Popover.Panel, { className: "relative mt-2 ml-4", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { className: "space-y-3", children: menuItem.subMenu.map((subItem) => /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
7073
6659
|
import_core3.Link,
|
|
7074
6660
|
{
|
|
7075
6661
|
href: subItem.link,
|
|
@@ -7222,12 +6808,12 @@ var HtmlView = (props) => {
|
|
|
7222
6808
|
};
|
|
7223
6809
|
|
|
7224
6810
|
// src/components/DesignElements/ResourcesQuickFind.tsx
|
|
7225
|
-
var
|
|
6811
|
+
var import_react17 = require("react");
|
|
7226
6812
|
var import_core4 = require("@geowiki/core");
|
|
7227
6813
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
7228
6814
|
var ResourcesQuickFind = (props) => {
|
|
7229
|
-
const [selectedParent, setSelectedParent] = (0,
|
|
7230
|
-
const [selectedChild, setSelectedChild] = (0,
|
|
6815
|
+
const [selectedParent, setSelectedParent] = (0, import_react17.useState)();
|
|
6816
|
+
const [selectedChild, setSelectedChild] = (0, import_react17.useState)();
|
|
7231
6817
|
console.log(selectedChild);
|
|
7232
6818
|
const handleParentChange = (selectedValue) => {
|
|
7233
6819
|
setSelectedParent(selectedValue);
|
|
@@ -7335,17 +6921,17 @@ var ResourcesQuickFind = (props) => {
|
|
|
7335
6921
|
};
|
|
7336
6922
|
|
|
7337
6923
|
// src/components/DesignElements/FAQItem.tsx
|
|
7338
|
-
var
|
|
6924
|
+
var import_react18 = require("@headlessui/react");
|
|
7339
6925
|
var import_outline3 = require("@heroicons/react/24/outline");
|
|
7340
6926
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
7341
6927
|
var FAQItem = ({ faqs, backgroundColor }) => {
|
|
7342
6928
|
return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "mx-auto", "data-component": "FAQItem", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("dl", { children: faqs.map((faq) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
7343
|
-
|
|
6929
|
+
import_react18.Disclosure,
|
|
7344
6930
|
{
|
|
7345
6931
|
as: "div",
|
|
7346
6932
|
className: "border-0 border-b border-zinc-300",
|
|
7347
6933
|
children: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_jsx_runtime123.Fragment, { children: [
|
|
7348
|
-
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)("dt", { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
|
|
6934
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)("dt", { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(import_react18.Disclosure.Button, { className: "pt-6 flex w-full items-start justify-between text-left lg:pt-8", children: [
|
|
7349
6935
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Body20m, { className: `${open ? "pb-0" : "pb-6 lg:pb-8"}`, children: faq.question }),
|
|
7350
6936
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { className: "ml-6 flex h-7 items-center", children: open ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
7351
6937
|
import_outline3.MinusSmallIcon,
|
|
@@ -7356,7 +6942,7 @@ var FAQItem = ({ faqs, backgroundColor }) => {
|
|
|
7356
6942
|
) : /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_outline3.PlusSmallIcon, { className: "h-6 w-6", "aria-hidden": "true" }) })
|
|
7357
6943
|
] }) }),
|
|
7358
6944
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
|
|
7359
|
-
|
|
6945
|
+
import_react18.Disclosure.Panel,
|
|
7360
6946
|
{
|
|
7361
6947
|
as: "dd",
|
|
7362
6948
|
className: `pr-10 ${faq.hint ? "pt-6 pb-8 space-y-6" : "py-6"}`,
|
|
@@ -7576,11 +7162,11 @@ var BasicFooter = (props) => {
|
|
|
7576
7162
|
};
|
|
7577
7163
|
|
|
7578
7164
|
// src/components/DesignElements/AppItem.tsx
|
|
7579
|
-
var
|
|
7165
|
+
var import_react22 = require("react");
|
|
7580
7166
|
|
|
7581
7167
|
// src/components/DesignElements/AppItemPopUpView.tsx
|
|
7582
|
-
var
|
|
7583
|
-
var
|
|
7168
|
+
var import_react20 = require("react");
|
|
7169
|
+
var import_react21 = require("@headlessui/react");
|
|
7584
7170
|
var import_outline4 = require("@heroicons/react/24/outline");
|
|
7585
7171
|
var import_core5 = require("@geowiki/core");
|
|
7586
7172
|
|
|
@@ -7634,10 +7220,10 @@ var ResourceIcon = ({
|
|
|
7634
7220
|
};
|
|
7635
7221
|
|
|
7636
7222
|
// src/components/DesignElements/ExpandableText.tsx
|
|
7637
|
-
var
|
|
7223
|
+
var import_react19 = require("react");
|
|
7638
7224
|
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
7639
7225
|
var ExpandableText = ({ text, maxLength = 120, show_read_more = false, no_word_wrap = true }) => {
|
|
7640
|
-
const [expanded, setExpanded] = (0,
|
|
7226
|
+
const [expanded, setExpanded] = (0, import_react19.useState)(false);
|
|
7641
7227
|
if (text.length <= maxLength || maxLength == 0) {
|
|
7642
7228
|
return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: no_word_wrap ? "whitespace-normal" : "whitespace-nowrap", children: [
|
|
7643
7229
|
" ",
|
|
@@ -7689,8 +7275,8 @@ function AppItemPopUpView({
|
|
|
7689
7275
|
languages
|
|
7690
7276
|
}) {
|
|
7691
7277
|
var _a, _b, _c, _d;
|
|
7692
|
-
const [isNarrowViewport, setIsNarrowViewport] = (0,
|
|
7693
|
-
(0,
|
|
7278
|
+
const [isNarrowViewport, setIsNarrowViewport] = (0, import_react20.useState)(false);
|
|
7279
|
+
(0, import_react20.useEffect)(() => {
|
|
7694
7280
|
const mql = window.matchMedia("(max-width: 699px)");
|
|
7695
7281
|
setIsNarrowViewport(mql.matches);
|
|
7696
7282
|
const update = (e) => setIsNarrowViewport(e.matches);
|
|
@@ -7716,11 +7302,11 @@ function AppItemPopUpView({
|
|
|
7716
7302
|
const currentTypes = ((_a = types == null ? void 0 : types.find((type) => type.key === resource.resourceType)) == null ? void 0 : _a.value) || resource.resourceType;
|
|
7717
7303
|
const link = (resource == null ? void 0 : resource.link) || "";
|
|
7718
7304
|
const linkText = link.length > 70 ? `${link.slice(0, 70)}...` : link;
|
|
7719
|
-
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
7305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_react21.Transition.Root, { show: open, as: import_react20.Fragment, "data-component": "AppItemPopUpView", children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_react21.Dialog, { as: "div", className: "relative z-10", onClose: setOpen, children: [
|
|
7720
7306
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
7721
|
-
|
|
7307
|
+
import_react21.Transition.Child,
|
|
7722
7308
|
{
|
|
7723
|
-
as:
|
|
7309
|
+
as: import_react20.Fragment,
|
|
7724
7310
|
enter: "ease-out duration-300",
|
|
7725
7311
|
enterFrom: "opacity-0",
|
|
7726
7312
|
enterTo: "opacity-100",
|
|
@@ -7731,9 +7317,9 @@ function AppItemPopUpView({
|
|
|
7731
7317
|
}
|
|
7732
7318
|
),
|
|
7733
7319
|
/* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { className: "fixed z-10 inset-0 overflow-y-auto text-black", children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { className: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0", children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
7734
|
-
|
|
7320
|
+
import_react21.Transition.Child,
|
|
7735
7321
|
{
|
|
7736
|
-
as:
|
|
7322
|
+
as: import_react20.Fragment,
|
|
7737
7323
|
enter: "ease-out duration-300",
|
|
7738
7324
|
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
7739
7325
|
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
@@ -7741,7 +7327,7 @@ function AppItemPopUpView({
|
|
|
7741
7327
|
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
7742
7328
|
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
7743
7329
|
children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
|
|
7744
|
-
|
|
7330
|
+
import_react21.Dialog.Panel,
|
|
7745
7331
|
{
|
|
7746
7332
|
className: is_small ? `relative bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-xl sm:w-full sm:p-10` : `relative bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl sm:w-full sm:p-10`,
|
|
7747
7333
|
children: [
|
|
@@ -7875,7 +7461,7 @@ var AppItemPopUpView_default = AppItemPopUpView;
|
|
|
7875
7461
|
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
7876
7462
|
var AppItem = (props) => {
|
|
7877
7463
|
var _a;
|
|
7878
|
-
const [open, setOpen] = (0,
|
|
7464
|
+
const [open, setOpen] = (0, import_react22.useState)(false);
|
|
7879
7465
|
return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { className: "w-full h-64 pointer-events-auto mb-6 md:mb-0 md:pointer-events-none", onClick: () => {
|
|
7880
7466
|
if (window.innerWidth < 700)
|
|
7881
7467
|
setOpen(true);
|
|
@@ -7939,10 +7525,10 @@ var CarouselGalleryItem = ({ text, url }) => {
|
|
|
7939
7525
|
};
|
|
7940
7526
|
|
|
7941
7527
|
// src/components/DesignElements/Carousel/CarouselOpen.tsx
|
|
7942
|
-
var
|
|
7943
|
-
var
|
|
7528
|
+
var import_react23 = require("react");
|
|
7529
|
+
var import_react24 = require("@headlessui/react");
|
|
7944
7530
|
var import_outline5 = require("@heroicons/react/24/outline");
|
|
7945
|
-
var
|
|
7531
|
+
var import_react25 = require("react");
|
|
7946
7532
|
var import_lucide_react20 = require("lucide-react");
|
|
7947
7533
|
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
7948
7534
|
var GalleryCarouselOpen = ({
|
|
@@ -7951,9 +7537,10 @@ var GalleryCarouselOpen = ({
|
|
|
7951
7537
|
open,
|
|
7952
7538
|
setOpen
|
|
7953
7539
|
}) => {
|
|
7954
|
-
const [defaultPhoto, setDefaultPhoto] = (0,
|
|
7955
|
-
const [text, setDefaultText] = (0,
|
|
7956
|
-
(0,
|
|
7540
|
+
const [defaultPhoto, setDefaultPhoto] = (0, import_react25.useState)(currentPhoto);
|
|
7541
|
+
const [text, setDefaultText] = (0, import_react25.useState)("");
|
|
7542
|
+
const [rotation, setRotation] = (0, import_react25.useState)(0);
|
|
7543
|
+
(0, import_react25.useEffect)(() => {
|
|
7957
7544
|
setDefaultPhoto(currentPhoto);
|
|
7958
7545
|
}, [currentPhoto]);
|
|
7959
7546
|
const handlePrevious = () => {
|
|
@@ -7974,17 +7561,17 @@ var GalleryCarouselOpen = ({
|
|
|
7974
7561
|
setDefaultPhoto({ imageUrl: list[nextIndex].url });
|
|
7975
7562
|
}
|
|
7976
7563
|
};
|
|
7977
|
-
(0,
|
|
7564
|
+
(0, import_react25.useEffect)(() => {
|
|
7978
7565
|
const foundPhoto = list.find((list2) => list2.url === defaultPhoto.imageUrl);
|
|
7979
7566
|
if (foundPhoto) {
|
|
7980
7567
|
setDefaultText(foundPhoto.text);
|
|
7981
7568
|
}
|
|
7982
7569
|
}, [defaultPhoto, list]);
|
|
7983
|
-
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
7570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react24.Transition.Root, { show: open, as: import_react23.Fragment, "data-component": "ResourceView", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_react24.Dialog, { as: "div", className: "relative z-10", onClose: setOpen, children: [
|
|
7984
7571
|
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
7985
|
-
|
|
7572
|
+
import_react24.Transition.Child,
|
|
7986
7573
|
{
|
|
7987
|
-
as:
|
|
7574
|
+
as: import_react23.Fragment,
|
|
7988
7575
|
enter: "ease-out duration-300",
|
|
7989
7576
|
enterFrom: "opacity-0",
|
|
7990
7577
|
enterTo: "opacity-100",
|
|
@@ -7994,7 +7581,7 @@ var GalleryCarouselOpen = ({
|
|
|
7994
7581
|
children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "fixed inset-0 bg-black bg-opacity-90 transition-opacity" })
|
|
7995
7582
|
}
|
|
7996
7583
|
),
|
|
7997
|
-
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
7584
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react24.Dialog.Panel, { className: "relative ", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "fixed inset-0 flex items-center justify-between", children: [
|
|
7998
7585
|
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "absolute top-0 right-0 pt-4 pr-4 z-40", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
7999
7586
|
"button",
|
|
8000
7587
|
{
|
|
@@ -8013,27 +7600,35 @@ var GalleryCarouselOpen = ({
|
|
|
8013
7600
|
]
|
|
8014
7601
|
}
|
|
8015
7602
|
) }),
|
|
8016
|
-
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "mx-20 w-full items-center z-30 cursor-default ", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "flex justify-between w-full ", children: [
|
|
7603
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)("div", { className: "mx-20 w-full items-center z-30 cursor-default ", children: /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "flex justify-between items-center w-full ", children: [
|
|
8017
7604
|
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8018
7605
|
"button",
|
|
8019
7606
|
{
|
|
8020
7607
|
type: "button",
|
|
8021
7608
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40 ",
|
|
8022
7609
|
onClick: handlePrevious,
|
|
8023
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_lucide_react20.ChevronLeft, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white" })
|
|
7610
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_lucide_react20.ChevronLeft, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white", onClick: () => setRotation(0) })
|
|
8024
7611
|
}
|
|
8025
7612
|
),
|
|
8026
|
-
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "w-full flex-col flex
|
|
7613
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "w-full flex-col flex justify-center", children: [
|
|
8027
7614
|
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8028
7615
|
"img",
|
|
8029
7616
|
{
|
|
8030
7617
|
src: defaultPhoto.imageUrl,
|
|
8031
7618
|
alt: "Description",
|
|
8032
|
-
style: { maxWidth: "
|
|
7619
|
+
style: { maxWidth: "95%", maxHeight: "95%", transform: `rotate(${rotation}deg)` },
|
|
8033
7620
|
className: " h-4/6 w-auto py-4"
|
|
8034
7621
|
}
|
|
8035
7622
|
),
|
|
8036
|
-
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Body16, { className: "z-40 text-white", children: text })
|
|
7623
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Body16, { className: "z-40 text-white", children: text }),
|
|
7624
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsxs)("div", { className: "gap-2 flex flex-row", children: [
|
|
7625
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_lucide_react20.RotateCcw, { className: "h-6 w-6 text-white cursor-pointer", onClick: () => {
|
|
7626
|
+
setRotation(rotation - 90);
|
|
7627
|
+
} }),
|
|
7628
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_lucide_react20.RotateCw, { className: "h-6 w-6 text-white cursor-pointer", onClick: () => {
|
|
7629
|
+
setRotation(rotation + 90);
|
|
7630
|
+
} })
|
|
7631
|
+
] })
|
|
8037
7632
|
] }),
|
|
8038
7633
|
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
|
|
8039
7634
|
"button",
|
|
@@ -8041,7 +7636,7 @@ var GalleryCarouselOpen = ({
|
|
|
8041
7636
|
type: "button",
|
|
8042
7637
|
className: " rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 z-40",
|
|
8043
7638
|
onClick: handleNext,
|
|
8044
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_lucide_react20.ChevronRight, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white" })
|
|
7639
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_lucide_react20.ChevronRight, { className: "h-8 w-8 disabled:pointer-events-none disabled:opacity-60 text-white", onClick: () => setRotation(0) })
|
|
8045
7640
|
}
|
|
8046
7641
|
)
|
|
8047
7642
|
] }) })
|
|
@@ -8050,11 +7645,11 @@ var GalleryCarouselOpen = ({
|
|
|
8050
7645
|
};
|
|
8051
7646
|
|
|
8052
7647
|
// src/components/DesignElements/Carousel/CarouselGalleryItemList.tsx
|
|
8053
|
-
var
|
|
7648
|
+
var import_react26 = require("react");
|
|
8054
7649
|
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
8055
7650
|
var CarouselItemList = ({ galleryItems }) => {
|
|
8056
|
-
const [open, setOpen] = (0,
|
|
8057
|
-
const [selectedItemId, setSelectedItemId] = (0,
|
|
7651
|
+
const [open, setOpen] = (0, import_react26.useState)(false);
|
|
7652
|
+
const [selectedItemId, setSelectedItemId] = (0, import_react26.useState)("");
|
|
8058
7653
|
const handleOpenGallery = (id) => {
|
|
8059
7654
|
setOpen(true);
|
|
8060
7655
|
setSelectedItemId(id);
|
|
@@ -8093,7 +7688,7 @@ var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
|
8093
7688
|
var OldButton = ({
|
|
8094
7689
|
label,
|
|
8095
7690
|
appearance,
|
|
8096
|
-
compact
|
|
7691
|
+
compact = false,
|
|
8097
7692
|
handleClick,
|
|
8098
7693
|
loading = false,
|
|
8099
7694
|
type
|
|
@@ -8106,11 +7701,11 @@ var OldButton = ({
|
|
|
8106
7701
|
"flex w-full justify-center lg:w-auto text-center uppercase tracking-wide font-semibold text-base md:text-sm border-2 rounded-md",
|
|
8107
7702
|
// Full-size button
|
|
8108
7703
|
{
|
|
8109
|
-
"px-8 py-4":
|
|
7704
|
+
"px-8 py-4": compact === false
|
|
8110
7705
|
},
|
|
8111
7706
|
// Compact button
|
|
8112
7707
|
{
|
|
8113
|
-
"px-6 py-2":
|
|
7708
|
+
"px-6 py-2": compact === true
|
|
8114
7709
|
},
|
|
8115
7710
|
// Specific to when the button is fully dark
|
|
8116
7711
|
{
|
|
@@ -8137,7 +7732,7 @@ var OldButton = ({
|
|
|
8137
7732
|
// src/components/Elements/button-link.tsx
|
|
8138
7733
|
var import_classnames5 = __toESM(require("classnames"));
|
|
8139
7734
|
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
8140
|
-
var ButtonContent = ({ button, appearance, compact
|
|
7735
|
+
var ButtonContent = ({ button, appearance, compact }) => {
|
|
8141
7736
|
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
8142
7737
|
"div",
|
|
8143
7738
|
{
|
|
@@ -8146,11 +7741,11 @@ var ButtonContent = ({ button, appearance, compact: compact2 }) => {
|
|
|
8146
7741
|
"block mr-4 w-full lg:w-auto text-center uppercase tracking-wide font-semibold text-base md:text-sm border-2 rounded-md",
|
|
8147
7742
|
// Full-size button
|
|
8148
7743
|
{
|
|
8149
|
-
"px-8 py-4":
|
|
7744
|
+
"px-8 py-4": compact === false
|
|
8150
7745
|
},
|
|
8151
7746
|
// Compact button
|
|
8152
7747
|
{
|
|
8153
|
-
"px-6 py-2":
|
|
7748
|
+
"px-6 py-2": compact === true
|
|
8154
7749
|
},
|
|
8155
7750
|
// Specific to when the button is fully dark
|
|
8156
7751
|
{
|
|
@@ -8176,9 +7771,9 @@ var ButtonContent = ({ button, appearance, compact: compact2 }) => {
|
|
|
8176
7771
|
var ButtonLink = ({
|
|
8177
7772
|
button,
|
|
8178
7773
|
appearance,
|
|
8179
|
-
compact
|
|
7774
|
+
compact = false
|
|
8180
7775
|
}) => {
|
|
8181
|
-
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ButtonContent, { button, appearance, compact
|
|
7776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(ButtonContent, { button, appearance, compact });
|
|
8182
7777
|
};
|
|
8183
7778
|
|
|
8184
7779
|
// src/components/Elements/Error.tsx
|
|
@@ -8219,11 +7814,11 @@ var FeatureDisabled = () => {
|
|
|
8219
7814
|
};
|
|
8220
7815
|
|
|
8221
7816
|
// src/components/Elements/IframeViewer.tsx
|
|
8222
|
-
var
|
|
7817
|
+
var import_react27 = require("react");
|
|
8223
7818
|
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
8224
7819
|
var IframeViewer = ({ html, className }) => {
|
|
8225
|
-
const containerRef = (0,
|
|
8226
|
-
(0,
|
|
7820
|
+
const containerRef = (0, import_react27.useRef)(null);
|
|
7821
|
+
(0, import_react27.useEffect)(() => {
|
|
8227
7822
|
if (containerRef.current) {
|
|
8228
7823
|
containerRef.current.innerHTML = "";
|
|
8229
7824
|
const tempDiv = document.createElement("div");
|
|
@@ -8443,7 +8038,7 @@ var HeroImage = ({ path, cmsUrl }) => {
|
|
|
8443
8038
|
};
|
|
8444
8039
|
|
|
8445
8040
|
// src/components/Hero/HeroImageRightWithAppButtons.tsx
|
|
8446
|
-
var
|
|
8041
|
+
var import_react28 = require("react");
|
|
8447
8042
|
|
|
8448
8043
|
// src/components/HeadingTextBlocks/H1BodyButton.tsx
|
|
8449
8044
|
var import_core6 = require("@geowiki/core");
|
|
@@ -8636,8 +8231,8 @@ var H1BodyButtonWithApp = (props) => {
|
|
|
8636
8231
|
// src/components/Hero/HeroImageRightWithAppButtons.tsx
|
|
8637
8232
|
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
8638
8233
|
var HeroImageRightWithAppButtons = (props) => {
|
|
8639
|
-
const [description, setDescription] = (0,
|
|
8640
|
-
(0,
|
|
8234
|
+
const [description, setDescription] = (0, import_react28.useState)(props.description);
|
|
8235
|
+
(0, import_react28.useEffect)(() => {
|
|
8641
8236
|
var _a;
|
|
8642
8237
|
if (typeof window !== "undefined") {
|
|
8643
8238
|
const desc = window.innerWidth < 700 ? (_a = props.description) == null ? void 0 : _a.replaceAll("<br>", "") : props.description;
|