digital-rabbit-cl 2.4.15 → 2.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CSSReset/CSSReset.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +13 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/MediaCard/MediaCard.d.ts +4 -3
- package/dist/components/MediaCard/MediaCard.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +319 -286
- package/dist/digital-rabbit-cl.umd.js +4 -11
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/theme/ThemeContext.d.ts +5 -0
- package/dist/theme/ThemeContext.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.Button-module__button___2ZuB7{border-style:solid;cursor:pointer;font-weight:700;line-height:1.25;outline:none}.Button-module__button___2ZuB7:disabled{cursor:default}.Button-module__sizeSmall___DRT8P{padding:var(--button-padding-small)}.Button-module__sizeLarge___yeZSH{padding:var(--button-padding-large)}.Checkbox-module__container___aV9qz{display:flex;align-items:center;line-height:1.2}.Checkbox-module__svg___kkluC{flex-shrink:0}.Checkbox-module__label___cwRtI{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.FormLabel-module__label___0M-fo{display:inline-block;font-weight:700;padding-bottom:var(--form-label-padding-bottom)}.FormLabel-module__label___0M-fo.FormLabel-module__disabled___ktIFp{opacity:.5;cursor:not-allowed}.FormLabel-module__label___0M-fo:not(.FormLabel-module__disabled___ktIFp){cursor:default}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-size: 16px;--font-size-md: 16px;--font-size-sm: 12px;--line-height: 1.5;--font-weight-header: 700;--primary-color: #000;--background-color: #fff;--accent-color: #0066cc;--font-size-h1: 2.5rem;--font-size-h2: 1.75rem;--font-size-h3: 1.38316rem;--font-size-h4: 1rem;--font-size-h5: .85028rem;--font-size-h6: .78405rem;--breakpoint-xs: 350px;--breakpoint-sm: 475px;--breakpoint-md: 769px;--breakpoint-lg: 1025px;--layout-max-width: 1280px;--layout-wrapper-padding-sm: .5rem;--layout-wrapper-padding: 1rem}html{line-height:var(--line-height);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:var(--font-size);font-family:var(--font-family);box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}body{margin:0;font-family:var(--font-family);font-size:1em;line-height:var(--line-height);color:var(--primary-color);background-color:var(--background-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:var(--font-weight-header);overflow-wrap:break-word}h1{font-size:var(--font-size-h1)}h2{font-size:var(--font-size-h2)}h3{font-size:var(--font-size-h3)}h4{font-size:var(--font-size-h4)}h5{font-size:var(--font-size-h5)}h6{font-size:var(--font-size-h6)}hr{box-sizing:content-box;height:0;overflow:visible;border:0;border-top:1px solid rgba(0,0,0,.1);margin:1em 0}pre{font-family:monospace,monospace;font-size:1em;overflow:auto}a{background-color:transparent;text-decoration:none}a:link{color:var(--accent-color)}a:hover{text-decoration:underline}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;max-width:100%;height:auto;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:var(--line-height);margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;cursor:pointer}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item;cursor:pointer}template,[hidden]{display:none}table{border-collapse:collapse;width:100%}ul,ol{padding-left:1.5em}p{margin-top:0;margin-bottom:1em;overflow-wrap:break-word}.FormError-module__formError___kaUBn{font-size:.875em;margin-top:var(--form-error-margin-top);font-weight:400}.FormGroup-module__formGroup___aVI-B{display:flex;flex-direction:column;margin-bottom:var(--form-group-margin-bottom)}.FormGroup-module__inputWrapper___429QE{display:flex;flex-direction:column;gap:.5em}.FormGroup-module__indented___t61iz{padding-left:.5em}.FormGroup-module__formGroup___aVI-B.FormGroup-module__disabled___W-tJ0{opacity:.6;pointer-events:none}.FormGroup-module__required___mO3xA{color:inherit;margin-left:.125em}.FormGroup-module__errorMessage___SHzl3{font-size:.875em;margin-top:.25rem;font-weight:400}.Input-module__input___WjT81{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Input-module__input___WjT81::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Input-module__input___WjT81:disabled{opacity:.3}.Input-module__sizeSmall___NFvsi{padding:var(--input-padding-small)}.Input-module__sizeLarge___4Boj3{padding:var(--input-padding-large)}.Textarea-module__textarea___Z-y6g{background-color:transparent;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Textarea-module__textarea___Z-y6g::placeholder{color:inherit;opacity:var(--placeholder-opacity, .3)}.Textarea-module__textarea___Z-y6g:disabled{opacity:.3}.Textarea-module__sizeSmall___HHFEM{padding:var(--textarea-padding-small)}.Textarea-module__sizeLarge___5a3sf{padding:var(--textarea-padding-large)}.Select-module__select___cjdcr{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;background-position:right center;background-repeat:no-repeat;background-size:auto 85%;border-style:solid;box-sizing:border-box;display:block;font-weight:700;line-height:1.25;outline:none;width:100%}.Select-module__select___cjdcr:disabled{cursor:default;opacity:.3}.Select-module__select___cjdcr:not(:disabled){cursor:pointer}.Select-module__sizeSmall___i1quj{padding:var(--select-padding-small)}.Select-module__sizeLarge___eBA1T{padding:var(--select-padding-large)}.Radio-module__container___AQxhk{display:flex;align-items:center;line-height:1.25}.Radio-module__svg___zl5kF{flex-shrink:0}.Radio-module__label___vAFIP{font-weight:700;margin-left:.25em;-webkit-user-select:none;user-select:none}.Hamburger-module__hamburger___Tf4-t{background:transparent;border:none;cursor:pointer;display:none;flex-direction:column;justify-content:space-around;height:2em;outline:none;padding:0;position:relative;width:2em;z-index:11}.Hamburger-module__line___gybZM{background:currentColor;border-radius:var(--hamburger-border-radius, 10px);height:12.5%;position:relative;transform-origin:1px;transition:all .3s linear;width:100%}.Hamburger-module__line___gybZM:first-child{transform:rotate(0)}.Hamburger-module__line___gybZM:nth-child(2){opacity:1;transform:translate(0)}.Hamburger-module__line___gybZM:nth-child(3){transform:rotate(0)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:first-child{transform:rotate(45deg)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(2){opacity:0;transform:translate(20px)}.Hamburger-module__hamburger___Tf4-t.Hamburger-module__open___gRswh .Hamburger-module__line___gybZM:nth-child(3){transform:rotate(-45deg)}.Header-module__header___RUooH{width:100%}.Header-module__container___t68M9{display:flex;align-items:center;justify-content:space-between;margin:0 auto;font-size:var(--header-font-size);max-width:var(--header-max-width);padding:var(--header-padding);position:relative}.ResponsiveNav-module__nav___xOfv5{display:flex}.ResponsiveNav-module__navMobile___h795P{flex-direction:column;min-height:100%;overflow-x:hidden}.ResponsiveNav-module__navHeader___Me8bB{height:3.5em;flex-shrink:0}.ResponsiveNav-module__navMobile___h795P.ResponsiveNav-module__compact___UhuAE .ResponsiveNav-module__navHeader___Me8bB{height:3em}.ResponsiveNav-module__navDesktop___9wscZ{align-items:center;flex-direction:row;height:auto}.ResponsiveNav-module__navDesktop___9wscZ>*{margin-left:1.25rem}.Popover-module__triggerWrapper___dZpf6{display:inline-block}.Popover-module__popup___JAvrb{max-height:60vh;min-width:120px;overflow:auto}.Popover-module__panelOverlay___1xDU5{top:0;right:0;bottom:0;left:0;pointer-events:none;position:fixed;z-index:1000}.Popover-module__panelOverlayVisible___BgtIQ{pointer-events:auto}.Popover-module__backdrop___e8qHL{top:0;right:0;bottom:0;left:0;position:absolute;transition:background-color .3s ease}.Popover-module__panel___eUJ2E{bottom:0;overflow-y:auto;padding:1rem;position:absolute;top:0;transition:transform .3s ease-in-out}.Popover-module__panelLeft___9nSLp{left:0;transform:translate(-100%)}.Popover-module__panelRight___OrQfl{right:0;transform:translate(100%)}.Popover-module__panelOpen___hhvV-{transform:translate(0)}.Popover-module__panelCloseButton___kALaN{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;height:1.5rem;justify-content:center;padding:0;position:absolute;right:1rem;top:1rem;width:1.5rem}.Popover-module__panelCloseButton___kALaN:hover{opacity:.7}.NavDropdown-module__trigger___1PQZp{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;font-family:inherit;font-size:inherit;gap:.375rem;padding:0}.NavDropdown-module__chevron___ZLAV7{align-items:center;display:inline-flex;transition:transform .2s ease}.NavDropdown-module__chevronOpen___9mgjr{transform:rotate(180deg)}.Modal-module__backdrop___GVUh4{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1em}.Modal-module__modal___aD7aP{padding:1em;position:relative;display:flex;flex-direction:column;gap:1em;max-height:90vh;box-shadow:0 10px 40px #0003;outline:none}.Modal-module__header___ILG9i{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.Modal-module__title___A5OeE{margin:0;font-size:1.5rem;font-weight:600;flex:1}.Modal-module__closeButton___3LpSf{background:none;border:none;cursor:pointer;padding:0;width:1.75em;height:1.75em;display:flex;align-items:center;justify-content:center;color:inherit;margin-left:auto;opacity:.6;transition:opacity .2s,transform .2s;flex-shrink:0}.Modal-module__closeButton___3LpSf svg{display:block;flex-shrink:0}.Modal-module__content___dWO-B{overflow-y:auto;flex:1}.Modal-module__actions___hY6zi{flex-shrink:0}@media (max-width: calc(var(--breakpoint-md) - 1px)){.Modal-module__backdrop___GVUh4{padding:.5em}.Modal-module__header___ILG9i,.Modal-module__content___dWO-B,.Modal-module__actions___hY6zi{padding:1rem}.Modal-module__title___A5OeE{font-size:1.25em}}.Stack-module__stack___yUU-B{display:flex}.Stack-module__vertical___sKTyQ{flex-direction:column}.Stack-module__horizontal___YsvtV{flex-direction:row;align-items:center}.ResponsiveSection-module__section___gBESK{width:100%;padding:0}.ResponsiveSection-module__innerDiv___r1bky{max-width:var(--max-width);margin:0 auto;padding:var(--section-padding)}.Hero-module__hero___IB2tg{padding:var(--hero-padding, 3rem 0)}.Hero-module__content___rkkfQ h1{font-size:var(--hero-h1-font-size, 2rem);margin-bottom:var(--hero-h1-margin-bottom)}.Hero-module__content___rkkfQ p{font-size:var(--hero-p-font-size, 1.125rem);line-height:1.6}.Footer-module__footer___A76NF{width:100%;margin-top:auto}.Footer-module__container___QneNs{display:flex;align-items:center;justify-content:space-between;margin:0 auto}.FeatureCard-module__card___XQt66{display:flex;flex-direction:column;align-items:center;text-align:center;padding:var(--feature-card-padding)}.FeatureCard-module__icon___dXJ92{font-size:var(--feature-icon-font-size, 2.5rem);margin-bottom:var(--feature-icon-margin-bottom);color:var(--feature-icon-color, var(--primary-color))}.FeatureCard-module__title___KxXyA{font-size:var(--feature-title-font-size, 1.25rem);font-weight:600;margin-bottom:var(--feature-title-margin-bottom);color:var(--feature-title-color, inherit)}.FeatureCard-module__content___68xkw{font-size:1rem;line-height:1.6;color:var(--feature-content-color, var(--primary-color))}.FeatureGrid-module__grid___6sW6f{display:grid;gap:2rem;grid-template-columns:var(--grid-template-columns, 1fr)}.MediaCard-module__card___9pZ7C{display:flex;overflow:hidden}.MediaCard-module__clickable___Rae9n{cursor:pointer;transition:opacity .15s ease}.MediaCard-module__clickable___Rae9n:hover{opacity:.85}.MediaCard-module__vertical___GWtOA{flex-direction:column}.MediaCard-module__vertical___GWtOA .MediaCard-module__imageWrapper___HUiag{width:100%}.MediaCard-module__horizontal___qlK4y{flex-direction:row;align-items:var(--media-card-align-items, center)}.MediaCard-module__horizontal___qlK4y .MediaCard-module__imageWrapper___HUiag{width:var(--media-card-image-width, 7em);flex-shrink:0;padding-top:var(--media-card-image-padding-top, 0)}.MediaCard-module__content___MlqE4{flex:1;min-width:0}.PageLayout-module__layoutContainer___diLdT{display:flex;flex-direction:column;min-height:100vh}.PageLayout-module__content___h2mBr{flex:1 0 auto;display:flex;flex-direction:column}.PageLayout-module__main___Sw7Pv{flex:1}.FileUpload-module__dropzone___jqua0{border-style:dashed;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:1rem;position:relative;text-align:center;transition:opacity .15s ease,background-color .15s ease;width:100%}.FileUpload-module__dropzone___jqua0:hover:not(.FileUpload-module__loading___C7PsH){background-color:#00000008}.FileUpload-module__dropzone___jqua0:focus-visible{outline:2px solid var(--upload-color, currentColor);outline-offset:2px}.FileUpload-module__dragOver___q1zPo{background-color:#0000000f}.FileUpload-module__loading___C7PsH{cursor:not-allowed;opacity:.6}.FileUpload-module__hiddenInput___RLLPJ{display:none}.FileUpload-module__content___yCP0l{display:flex;flex-direction:column;align-items:center;gap:.35rem}.FileUpload-module__contentHidden___0Ewoe{visibility:hidden}.FileUpload-module__spinnerOverlay___e3Rle{position:absolute}.FileUpload-module__label___lbMkx{font-weight:600}.FileUpload-module__hint___8dXlk{font-size:.85em;opacity:.7}.FileUpload-module__errorMessage___8HB3n{font-size:.85em;font-weight:600;margin-top:.25rem}.Image-module__container___sVJdZ{position:relative;overflow:hidden;width:100%}.Image-module__img___pKhPw{width:100%;height:100%;object-fit:cover;display:block;position:absolute;top:0;right:0;bottom:0;left:0}.Image-module__fallback___wysuM{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}@keyframes Skeleton-module__pulse___8RWFn{0%,to{opacity:.4}50%{opacity:1}}.Skeleton-module__skeleton___CB4uF{background-color:var(--skeleton-color, color-mix(in srgb, currentColor 20%, transparent));animation:Skeleton-module__pulse___8RWFn 2s ease-in-out infinite;display:block;width:100%;height:100%}.ImageThumbnail-module__thumbnail___-igbe{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.ImageThumbnail-module__img___Q7Z4V{width:100%;height:100%;object-fit:cover;display:block}.ImageThumbnail-module__sizeXs___TvSHV{width:1.25em;height:1.25em}.ImageThumbnail-module__sizeSmall___2KnCh{width:3em;height:3em}.ImageThumbnail-module__sizeDefault___laoQk{width:4em;height:4em}.ImageThumbnail-module__sizeLarge___iwz3o{width:5em;height:5em}.ImageThumbnail-module__removeButton___Ceh1Q{position:absolute;top:.25rem;right:.25rem;width:1.1rem;height:1.1rem;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;z-index:1;opacity:.6;transition:opacity .15s ease}.ImageThumbnail-module__removeButton___Ceh1Q:hover{opacity:1}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import { jsx as _, jsxs as D, Fragment as Fe } from "react/jsx-runtime";
|
|
3
|
-
import N, { createContext as ht, useContext as or, useState as J, useLayoutEffect as Pt, useSyncExternalStore as Hr, useEffect as ne, useCallback as Ce, useRef as Ve, useMemo as
|
|
3
|
+
import N, { createContext as ht, useContext as or, useState as J, useLayoutEffect as Pt, useSyncExternalStore as Hr, useEffect as ne, useCallback as Ce, useRef as Ve, useMemo as Ue } from "react";
|
|
4
4
|
import { createPortal as lt } from "react-dom";
|
|
5
|
-
const jr = "Button-module__button___2ZuB7", Wr = "Button-module__sizeSmall___DRT8P", Ur = "Button-module__sizeLarge___yeZSH",
|
|
5
|
+
const jr = "Button-module__button___2ZuB7", Wr = "Button-module__sizeSmall___DRT8P", Ur = "Button-module__sizeLarge___yeZSH", Me = {
|
|
6
6
|
button: jr,
|
|
7
7
|
sizeSmall: Wr,
|
|
8
8
|
sizeLarge: Ur
|
|
@@ -54,15 +54,16 @@ function Le(e) {
|
|
|
54
54
|
unit: o
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const Re = {
|
|
58
58
|
primary: "#000",
|
|
59
59
|
secondary: "#FFF",
|
|
60
|
+
secondaryBackground: "#1e1e1f",
|
|
60
61
|
accent: "#4381C1",
|
|
61
62
|
error: "#F00",
|
|
62
63
|
success: "#008000",
|
|
63
64
|
warning: "#FFEB3B"
|
|
64
65
|
}, ct = {
|
|
65
|
-
colors:
|
|
66
|
+
colors: Re,
|
|
66
67
|
fonts: {
|
|
67
68
|
color: "#000",
|
|
68
69
|
lineHeight: 1.5,
|
|
@@ -83,7 +84,7 @@ const Xe = {
|
|
|
83
84
|
textColor: "#FFF",
|
|
84
85
|
paddingHorizontal: 0.35,
|
|
85
86
|
primary: {
|
|
86
|
-
textColor:
|
|
87
|
+
textColor: Re.secondary
|
|
87
88
|
}
|
|
88
89
|
},
|
|
89
90
|
inputs: {
|
|
@@ -112,12 +113,15 @@ const Xe = {
|
|
|
112
113
|
paddingSm: "0.5rem",
|
|
113
114
|
padding: "1rem"
|
|
114
115
|
},
|
|
116
|
+
cards: {
|
|
117
|
+
backgroundColor: Re.secondaryBackground
|
|
118
|
+
},
|
|
115
119
|
modal: {
|
|
116
|
-
backgroundColor:
|
|
120
|
+
backgroundColor: Re.secondaryBackground,
|
|
117
121
|
backdropColor: "rgba(0, 0, 0, 0.5)",
|
|
118
122
|
boxShadow: "0 10px 40px rgba(0, 0, 0, 0.2)"
|
|
119
123
|
}
|
|
120
|
-
}, nr = ht(ct),
|
|
124
|
+
}, nr = ht(ct), la = ({ theme: e, children: r }) => {
|
|
121
125
|
const t = e ? sr(ct, e) : ct;
|
|
122
126
|
return /* @__PURE__ */ _(nr.Provider, { value: t, children: r });
|
|
123
127
|
}, R = () => or(nr), Gr = ({
|
|
@@ -155,9 +159,9 @@ const Xe = {
|
|
|
155
159
|
...f
|
|
156
160
|
// Top-level style overrides
|
|
157
161
|
}, V = [
|
|
158
|
-
|
|
159
|
-
s === "small" ?
|
|
160
|
-
n ?
|
|
162
|
+
Me.button,
|
|
163
|
+
s === "small" ? Me.sizeSmall : Me.sizeLarge,
|
|
164
|
+
n ? Me.outline : "",
|
|
161
165
|
i
|
|
162
166
|
].filter(Boolean).join(" ");
|
|
163
167
|
return /* @__PURE__ */ _(
|
|
@@ -175,15 +179,15 @@ const Xe = {
|
|
|
175
179
|
}
|
|
176
180
|
);
|
|
177
181
|
};
|
|
178
|
-
var
|
|
182
|
+
var Mt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), Zr = new Uint8Array(16);
|
|
179
183
|
function Kr() {
|
|
180
|
-
if (!
|
|
184
|
+
if (!Mt)
|
|
181
185
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
182
|
-
return
|
|
186
|
+
return Mt(Zr);
|
|
183
187
|
}
|
|
184
188
|
var ar = [];
|
|
185
|
-
for (var
|
|
186
|
-
ar[
|
|
189
|
+
for (var Oe = 0; Oe < 256; ++Oe)
|
|
190
|
+
ar[Oe] = (Oe + 256).toString(16).substr(1);
|
|
187
191
|
function Qr(e, r) {
|
|
188
192
|
var t = 0, o = ar;
|
|
189
193
|
return [o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], "-", o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]], o[e[t++]]].join("");
|
|
@@ -282,8 +286,8 @@ const Xr = "Checkbox-module__container___aV9qz", Jr = "Checkbox-module__svg___kk
|
|
|
282
286
|
checkmarkColor: r,
|
|
283
287
|
disabled: s,
|
|
284
288
|
inverted: o
|
|
285
|
-
}), F = (
|
|
286
|
-
s || f(
|
|
289
|
+
}), F = (B) => {
|
|
290
|
+
s || f(B);
|
|
287
291
|
}, z = {
|
|
288
292
|
cursor: g.cursor,
|
|
289
293
|
fontSize: "1em",
|
|
@@ -292,7 +296,7 @@ const Xr = "Checkbox-module__container___aV9qz", Jr = "Checkbox-module__svg___kk
|
|
|
292
296
|
// Top-level style prop overrides
|
|
293
297
|
}, E = {
|
|
294
298
|
width: "1em"
|
|
295
|
-
},
|
|
299
|
+
}, M = {
|
|
296
300
|
fill: o && t ? g.checkboxColor : "transparent",
|
|
297
301
|
strokeWidth: "25",
|
|
298
302
|
stroke: g.checkboxColor
|
|
@@ -308,7 +312,7 @@ const Xr = "Checkbox-module__container___aV9qz", Jr = "Checkbox-module__svg___kk
|
|
|
308
312
|
id: p,
|
|
309
313
|
checked: t,
|
|
310
314
|
disabled: s,
|
|
311
|
-
onChange: (
|
|
315
|
+
onChange: (B) => F({ target: { checked: B.target.checked, name: a, type: "checkbox" } }),
|
|
312
316
|
name: a,
|
|
313
317
|
style: { display: "none" },
|
|
314
318
|
type: "checkbox"
|
|
@@ -323,7 +327,7 @@ const Xr = "Checkbox-module__container___aV9qz", Jr = "Checkbox-module__svg___kk
|
|
|
323
327
|
style: E,
|
|
324
328
|
className: Je.svg,
|
|
325
329
|
children: [
|
|
326
|
-
/* @__PURE__ */ _("rect", { x: "0", y: "0", height: "100", width: "100", style:
|
|
330
|
+
/* @__PURE__ */ _("rect", { x: "0", y: "0", height: "100", width: "100", style: M }),
|
|
327
331
|
t && /* @__PURE__ */ _("path", { d: "M 25 45 L 45 65 L 75 30", style: P })
|
|
328
332
|
]
|
|
329
333
|
}
|
|
@@ -341,7 +345,7 @@ const Xr = "Checkbox-module__container___aV9qz", Jr = "Checkbox-module__svg___kk
|
|
|
341
345
|
}
|
|
342
346
|
)
|
|
343
347
|
] });
|
|
344
|
-
},
|
|
348
|
+
}, ca = () => {
|
|
345
349
|
const e = R();
|
|
346
350
|
return Pt(() => {
|
|
347
351
|
const r = document.documentElement;
|
|
@@ -353,19 +357,12 @@ const Xr = "Checkbox-module__container___aV9qz", Jr = "Checkbox-module__svg___kk
|
|
|
353
357
|
@media (max-width: ${e.breakpoints.md}) {
|
|
354
358
|
html {
|
|
355
359
|
font-size: var(--font-size-md);
|
|
356
|
-
--model-order-form-layout-direction: column;
|
|
357
|
-
--model-order-form-image-width: 100%;
|
|
358
360
|
}
|
|
359
361
|
}
|
|
360
362
|
|
|
361
363
|
@media (max-width: ${e.breakpoints.sm}) {
|
|
362
364
|
html {
|
|
363
365
|
font-size: var(--font-size-sm);
|
|
364
|
-
--order-list-card-gap: 0.6em;
|
|
365
|
-
--order-list-card-align-items: flex-start;
|
|
366
|
-
--order-list-card-image-width: 4.5em;
|
|
367
|
-
--order-list-card-image-padding-top: 0.4em;
|
|
368
|
-
--order-list-content-padding: 0.4em 0.75em 0.4em 0;
|
|
369
366
|
}
|
|
370
367
|
}
|
|
371
368
|
`, () => {
|
|
@@ -395,14 +392,14 @@ function X(e) {
|
|
|
395
392
|
return e;
|
|
396
393
|
return r;
|
|
397
394
|
}
|
|
398
|
-
var
|
|
395
|
+
var qe = (e) => /^\w*$/.test(e), W = (e) => e === void 0, gt = (e) => Array.isArray(e) ? e.filter(Boolean) : [], vt = (e) => gt(e.replace(/["|']|\]/g, "").split(/\.|\[/)), w = (e, r, t) => {
|
|
399
396
|
if (!r || !Z(e))
|
|
400
397
|
return t;
|
|
401
|
-
const o = (
|
|
398
|
+
const o = (qe(r) ? [r] : vt(r)).reduce((s, n) => ee(s) ? s : s[n], e);
|
|
402
399
|
return W(o) || o === e ? W(e[r]) ? t : e[r] : o;
|
|
403
400
|
}, re = (e) => typeof e == "boolean", H = (e, r, t) => {
|
|
404
401
|
let o = -1;
|
|
405
|
-
const s =
|
|
402
|
+
const s = qe(r) ? [r] : vt(r), n = s.length, a = n - 1;
|
|
406
403
|
for (; ++o < n; ) {
|
|
407
404
|
const i = s[o];
|
|
408
405
|
let f = t;
|
|
@@ -415,7 +412,7 @@ var Ue = (e) => /^\w*$/.test(e), W = (e) => e === void 0, gt = (e) => Array.isAr
|
|
|
415
412
|
e[i] = f, e = e[i];
|
|
416
413
|
}
|
|
417
414
|
};
|
|
418
|
-
const
|
|
415
|
+
const He = {
|
|
419
416
|
BLUR: "blur",
|
|
420
417
|
FOCUS_OUT: "focusout",
|
|
421
418
|
CHANGE: "change"
|
|
@@ -512,8 +509,8 @@ function io(e) {
|
|
|
512
509
|
if (!n) {
|
|
513
510
|
const E = ut(o, t._names, z || t._formValues, !1, f.current);
|
|
514
511
|
if (c.current) {
|
|
515
|
-
const
|
|
516
|
-
le(
|
|
512
|
+
const M = c.current(E);
|
|
513
|
+
le(M, d.current) || (b(M), d.current = M);
|
|
517
514
|
} else
|
|
518
515
|
b(E);
|
|
519
516
|
}
|
|
@@ -578,13 +575,13 @@ function lo(e) {
|
|
|
578
575
|
value: cr(F),
|
|
579
576
|
name: t
|
|
580
577
|
},
|
|
581
|
-
type:
|
|
578
|
+
type: He.CHANGE
|
|
582
579
|
}), [t]), k = N.useCallback(() => C.current.onBlur({
|
|
583
580
|
target: {
|
|
584
581
|
value: w(s._formValues, t),
|
|
585
582
|
name: t
|
|
586
583
|
},
|
|
587
|
-
type:
|
|
584
|
+
type: He.BLUR
|
|
588
585
|
}), [t, s._formValues]), V = N.useCallback((F) => {
|
|
589
586
|
const z = w(s._fields, t);
|
|
590
587
|
z && F && (z._f.ref = {
|
|
@@ -607,13 +604,13 @@ function lo(e) {
|
|
|
607
604
|
...y.current.rules,
|
|
608
605
|
...re(y.current.disabled) ? { disabled: y.current.disabled } : {}
|
|
609
606
|
});
|
|
610
|
-
const E = (
|
|
611
|
-
const U = w(s._fields,
|
|
607
|
+
const E = (M, P) => {
|
|
608
|
+
const U = w(s._fields, M);
|
|
612
609
|
U && U._f && (U._f.mount = P);
|
|
613
610
|
};
|
|
614
611
|
if (E(t, !0), F) {
|
|
615
|
-
const
|
|
616
|
-
H(s._defaultValues, t,
|
|
612
|
+
const M = X(w(s._options.defaultValues, t, y.current.defaultValue));
|
|
613
|
+
H(s._defaultValues, t, M), W(w(s._formValues, t)) && H(s._formValues, t, M);
|
|
617
614
|
}
|
|
618
615
|
return !i && s.register(t), m.current = t, () => {
|
|
619
616
|
(i ? F && !s._state.action : F) ? s.unregister(t) : E(t, !1);
|
|
@@ -667,12 +664,12 @@ function mr(e, r) {
|
|
|
667
664
|
}
|
|
668
665
|
return t;
|
|
669
666
|
}
|
|
670
|
-
var Y = (e) => Z(e) && !Object.keys(e).length, kt = (e) => e.type === "file", ce = (e) => typeof e == "function",
|
|
667
|
+
var Y = (e) => Z(e) && !Object.keys(e).length, kt = (e) => e.type === "file", ce = (e) => typeof e == "function", je = (e) => {
|
|
671
668
|
if (!pt)
|
|
672
669
|
return !1;
|
|
673
670
|
const r = e ? e.ownerDocument : 0;
|
|
674
671
|
return e instanceof (r && r.defaultView ? r.defaultView.HTMLElement : HTMLElement);
|
|
675
|
-
}, yr = (e) => e.type === "select-multiple", xt = (e) => e.type === "radio", co = (e) => xt(e) || Ae(e), Ye = (e) =>
|
|
672
|
+
}, yr = (e) => e.type === "select-multiple", xt = (e) => e.type === "radio", co = (e) => xt(e) || Ae(e), Ye = (e) => je(e) && e.isConnected;
|
|
676
673
|
function uo(e, r) {
|
|
677
674
|
const t = r.slice(0, -1).length;
|
|
678
675
|
let o = 0;
|
|
@@ -687,7 +684,7 @@ function fo(e) {
|
|
|
687
684
|
return !0;
|
|
688
685
|
}
|
|
689
686
|
function G(e, r) {
|
|
690
|
-
const t = Array.isArray(r) ? r :
|
|
687
|
+
const t = Array.isArray(r) ? r : qe(r) ? [r] : vt(r), o = t.length === 1 ? e : uo(e, t), s = t.length - 1, n = t[s];
|
|
691
688
|
return o && delete o[n], s !== 0 && (Z(o) && Y(o) || Array.isArray(o) && fo(o)) && G(e, t.slice(0, -1)), e;
|
|
692
689
|
}
|
|
693
690
|
var mo = (e) => {
|
|
@@ -751,7 +748,7 @@ var yo = (e, r, t, o) => {
|
|
|
751
748
|
fields: s,
|
|
752
749
|
shouldUseNativeValidation: o
|
|
753
750
|
};
|
|
754
|
-
},
|
|
751
|
+
}, We = (e) => e instanceof RegExp, ze = (e) => W(e) ? e : We(e) ? e.source : Z(e) ? We(e.value) ? e.value.source : e.value : e, jt = (e) => ({
|
|
755
752
|
isOnSubmit: !e || e === ie.onSubmit,
|
|
756
753
|
isOnBlur: e === ie.onBlur,
|
|
757
754
|
isOnChange: e === ie.onChange,
|
|
@@ -779,7 +776,7 @@ const $e = (e, r, t, o) => {
|
|
|
779
776
|
};
|
|
780
777
|
function qt(e, r, t) {
|
|
781
778
|
const o = w(e, t);
|
|
782
|
-
if (o ||
|
|
779
|
+
if (o || qe(t))
|
|
783
780
|
return {
|
|
784
781
|
error: o,
|
|
785
782
|
name: t
|
|
@@ -821,7 +818,7 @@ function Gt(e, r, t = "validate") {
|
|
|
821
818
|
ref: r
|
|
822
819
|
};
|
|
823
820
|
}
|
|
824
|
-
var be = (e) => Z(e) && !
|
|
821
|
+
var be = (e) => Z(e) && !We(e) ? e : {
|
|
825
822
|
value: e,
|
|
826
823
|
message: ""
|
|
827
824
|
}, Zt = async (e, r, t, o, s, n) => {
|
|
@@ -830,7 +827,7 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
830
827
|
return {};
|
|
831
828
|
const F = i ? i[0] : a, z = (L) => {
|
|
832
829
|
s && F.reportValidity && (F.setCustomValidity(re(L) ? "" : L || ""), F.reportValidity());
|
|
833
|
-
}, E = {},
|
|
830
|
+
}, E = {}, M = xt(a), P = Ae(a), U = M || P, B = (k || kt(a)) && W(a.value) && W(g) || je(a) && a.value === "" || g === "" || Array.isArray(g) && !g.length, K = wt.bind(null, p, o, E), q = (L, A, O, I = fe.maxLength, Q = fe.minLength) => {
|
|
834
831
|
const te = L ? A : O;
|
|
835
832
|
E[p] = {
|
|
836
833
|
type: L ? I : Q,
|
|
@@ -839,7 +836,7 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
839
836
|
...K(L ? I : Q, te)
|
|
840
837
|
};
|
|
841
838
|
};
|
|
842
|
-
if (n ? !Array.isArray(g) || !g.length : f && (!U && (
|
|
839
|
+
if (n ? !Array.isArray(g) || !g.length : f && (!U && (B || ee(g)) || re(g) && !g || P && !_r(i).isValid || M && !gr(i).isValid)) {
|
|
843
840
|
const { value: L, message: A } = oe(f) ? { value: !!f, message: f } : be(f);
|
|
844
841
|
if (L && (E[p] = {
|
|
845
842
|
type: fe.required,
|
|
@@ -849,27 +846,27 @@ var be = (e) => Z(e) && !je(e) ? e : {
|
|
|
849
846
|
}, !o))
|
|
850
847
|
return z(A), E;
|
|
851
848
|
}
|
|
852
|
-
if (!
|
|
849
|
+
if (!B && (!ee(y) || !ee(m))) {
|
|
853
850
|
let L, A;
|
|
854
851
|
const O = be(m), I = be(y);
|
|
855
852
|
if (!ee(g) && !isNaN(g)) {
|
|
856
853
|
const Q = a.valueAsNumber || g && +g;
|
|
857
854
|
ee(O.value) || (L = Q > O.value), ee(I.value) || (A = Q < I.value);
|
|
858
855
|
} else {
|
|
859
|
-
const Q = a.valueAsDate || new Date(g), te = (
|
|
856
|
+
const Q = a.valueAsDate || new Date(g), te = (Be) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + Be), me = a.type == "time", ve = a.type == "week";
|
|
860
857
|
oe(O.value) && g && (L = me ? te(g) > te(O.value) : ve ? g > O.value : Q > new Date(O.value)), oe(I.value) && g && (A = me ? te(g) < te(I.value) : ve ? g < I.value : Q < new Date(I.value));
|
|
861
858
|
}
|
|
862
859
|
if ((L || A) && (q(!!L, O.message, I.message, fe.max, fe.min), !o))
|
|
863
860
|
return z(E[p].message), E;
|
|
864
861
|
}
|
|
865
|
-
if ((c || d) && !
|
|
862
|
+
if ((c || d) && !B && (oe(g) || n && Array.isArray(g))) {
|
|
866
863
|
const L = be(c), A = be(d), O = !ee(L.value) && g.length > +L.value, I = !ee(A.value) && g.length < +A.value;
|
|
867
864
|
if ((O || I) && (q(O, L.message, A.message), !o))
|
|
868
865
|
return z(E[p].message), E;
|
|
869
866
|
}
|
|
870
|
-
if (C && !
|
|
867
|
+
if (C && !B && oe(g)) {
|
|
871
868
|
const { value: L, message: A } = be(C);
|
|
872
|
-
if (
|
|
869
|
+
if (We(L) && !g.match(L) && (E[p] = {
|
|
873
870
|
type: fe.pattern,
|
|
874
871
|
message: A,
|
|
875
872
|
ref: a,
|
|
@@ -959,7 +956,7 @@ function ko(e = {}) {
|
|
|
959
956
|
clearTimeout(c), c = setTimeout(l, u);
|
|
960
957
|
}, p = async (l) => {
|
|
961
958
|
if (!r.disabled && (d.isValid || y.isValid || l)) {
|
|
962
|
-
const u = r.resolver ? Y((await P()).errors) : await
|
|
959
|
+
const u = r.resolver ? Y((await P()).errors) : await B(o, !0);
|
|
963
960
|
u !== t.isValid && m.state.next({
|
|
964
961
|
isValid: u
|
|
965
962
|
});
|
|
@@ -1027,7 +1024,7 @@ function ko(e = {}) {
|
|
|
1027
1024
|
v && S && m.state.next(T);
|
|
1028
1025
|
}
|
|
1029
1026
|
return v ? T : {};
|
|
1030
|
-
},
|
|
1027
|
+
}, M = (l, u, h, x) => {
|
|
1031
1028
|
const S = w(t.errors, l), v = (d.isValid || y.isValid) && re(u) && t.isValid !== u;
|
|
1032
1029
|
if (r.delayError && h ? (f = b(() => g(l, h)), f(r.delayError)) : (clearTimeout(c), f = null, h ? H(t.errors, l, h) : G(t.errors, l)), (h ? !le(S, h) : S) || !Y(x) || v) {
|
|
1033
1030
|
const $ = {
|
|
@@ -1055,7 +1052,7 @@ function ko(e = {}) {
|
|
|
1055
1052
|
else
|
|
1056
1053
|
t.errors = u;
|
|
1057
1054
|
return u;
|
|
1058
|
-
},
|
|
1055
|
+
}, B = async (l, u, h = {
|
|
1059
1056
|
valid: !0
|
|
1060
1057
|
}) => {
|
|
1061
1058
|
for (const x in l) {
|
|
@@ -1070,24 +1067,24 @@ function ko(e = {}) {
|
|
|
1070
1067
|
break;
|
|
1071
1068
|
!u && (w(se, v.name) ? T ? So(t.errors, se, v.name) : H(t.errors, v.name, se[v.name]) : G(t.errors, v.name));
|
|
1072
1069
|
}
|
|
1073
|
-
!Y($) && await
|
|
1070
|
+
!Y($) && await B($, u, h);
|
|
1074
1071
|
}
|
|
1075
1072
|
}
|
|
1076
1073
|
return h.valid;
|
|
1077
1074
|
}, K = () => {
|
|
1078
1075
|
for (const l of i.unMount) {
|
|
1079
1076
|
const u = w(o, l);
|
|
1080
|
-
u && (u._f.refs ? u._f.refs.every((h) => !Ye(h)) : !Ye(u._f.ref)) &&
|
|
1077
|
+
u && (u._f.refs ? u._f.refs.every((h) => !Ye(h)) : !Ye(u._f.ref)) && Ge(l);
|
|
1081
1078
|
}
|
|
1082
1079
|
i.unMount = /* @__PURE__ */ new Set();
|
|
1083
|
-
}, q = (l, u) => !r.disabled && (l && u && H(n, l, u), !le(
|
|
1080
|
+
}, q = (l, u) => !r.disabled && (l && u && H(n, l, u), !le(Be(), s)), L = (l, u, h) => ut(l, i, {
|
|
1084
1081
|
...a.mount ? n : W(u) ? s : oe(l) ? { [l]: u } : u
|
|
1085
1082
|
}, h, u), A = (l) => gt(w(a.mount ? n : s, l, r.shouldUnregister ? w(s, l, []) : [])), O = (l, u, h = {}) => {
|
|
1086
1083
|
const x = w(o, l);
|
|
1087
1084
|
let S = u;
|
|
1088
1085
|
if (x) {
|
|
1089
1086
|
const v = x._f;
|
|
1090
|
-
v && (!v.disabled && H(n, l, pr(u, v)), S =
|
|
1087
|
+
v && (!v.disabled && H(n, l, pr(u, v)), S = je(v.ref) && ee(u) ? "" : u, yr(v.ref) ? [...v.ref.options].forEach(($) => $.selected = S.includes($.value)) : v.refs ? Ae(v.ref) ? v.refs.forEach(($) => {
|
|
1091
1088
|
(!$.defaultChecked || !$.disabled) && (Array.isArray(S) ? $.checked = !!S.find((T) => T === $.value) : $.checked = S === $.value || !!S);
|
|
1092
1089
|
}) : v.refs.forEach(($) => $.checked = $.value === S) : kt(v.ref) ? v.ref.value = "" : (v.ref.value = S, v.ref.type || m.state.next({
|
|
1093
1090
|
name: l,
|
|
@@ -1124,24 +1121,24 @@ function ko(e = {}) {
|
|
|
1124
1121
|
}, $ = jt(r.mode), T = jt(r.reValidateMode);
|
|
1125
1122
|
if (S) {
|
|
1126
1123
|
let j, se;
|
|
1127
|
-
const Pe = u.type ? Ht(S._f) : cr(l), ye = l.type ===
|
|
1124
|
+
const Pe = u.type ? Ht(S._f) : cr(l), ye = l.type === He.BLUR || l.type === He.FOCUS_OUT, Or = !_o(S._f) && !r.resolver && !w(t.errors, h) && !S._f.deps || vo(ye, w(t.touchedFields, h), t.isSubmitted, T, $), Qe = Ut(h, i, ye);
|
|
1128
1125
|
H(n, h, Pe), ye ? (!u || !u.readOnly) && (S._f.onBlur && S._f.onBlur(l), f && f(0)) : S._f.onChange && S._f.onChange(l);
|
|
1129
|
-
const
|
|
1126
|
+
const Xe = E(h, Pe, ye), Ir = !Y(Xe) || Qe;
|
|
1130
1127
|
if (!ye && m.state.next({
|
|
1131
1128
|
name: h,
|
|
1132
1129
|
type: l.type,
|
|
1133
1130
|
values: X(n)
|
|
1134
1131
|
}), Or)
|
|
1135
|
-
return (d.isValid || y.isValid) && (r.mode === "onBlur" ? ye && p() : ye || p()), Ir && m.state.next({ name: h, ...
|
|
1136
|
-
if (!ye &&
|
|
1132
|
+
return (d.isValid || y.isValid) && (r.mode === "onBlur" ? ye && p() : ye || p()), Ir && m.state.next({ name: h, ...Qe ? {} : Xe });
|
|
1133
|
+
if (!ye && Qe && m.state.next({ ...t }), r.resolver) {
|
|
1137
1134
|
const { errors: At } = await P([h]);
|
|
1138
1135
|
if (v(Pe), x) {
|
|
1139
|
-
const Tr = qt(t.errors, o, h),
|
|
1140
|
-
j =
|
|
1136
|
+
const Tr = qt(t.errors, o, h), Bt = qt(At, o, Tr.name || h);
|
|
1137
|
+
j = Bt.error, h = Bt.name, se = Y(At);
|
|
1141
1138
|
}
|
|
1142
1139
|
} else
|
|
1143
|
-
k([h], !0), j = (await Zt(S, i.disabled, n, C, r.shouldUseNativeValidation))[h], k([h]), v(Pe), x && (j ? se = !1 : (d.isValid || y.isValid) && (se = await
|
|
1144
|
-
x && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && ve(S._f.deps),
|
|
1140
|
+
k([h], !0), j = (await Zt(S, i.disabled, n, C, r.shouldUseNativeValidation))[h], k([h]), v(Pe), x && (j ? se = !1 : (d.isValid || y.isValid) && (se = await B(o, !0)));
|
|
1141
|
+
x && (S._f.deps && (!Array.isArray(S._f.deps) || S._f.deps.length > 0) && ve(S._f.deps), M(h, se, j, Xe));
|
|
1145
1142
|
}
|
|
1146
1143
|
}, me = (l, u) => {
|
|
1147
1144
|
if (w(t.errors, u) && l.focus)
|
|
@@ -1154,14 +1151,14 @@ function ko(e = {}) {
|
|
|
1154
1151
|
h = Y(v), x = l ? !S.some(($) => w(v, $)) : h;
|
|
1155
1152
|
} else l ? (x = (await Promise.all(S.map(async (v) => {
|
|
1156
1153
|
const $ = w(o, v);
|
|
1157
|
-
return await
|
|
1158
|
-
}))).every(Boolean), !(!x && !t.isValid) && p()) : x = h = await
|
|
1154
|
+
return await B($ && $._f ? { [v]: $ } : $);
|
|
1155
|
+
}))).every(Boolean), !(!x && !t.isValid) && p()) : x = h = await B(o);
|
|
1159
1156
|
return m.state.next({
|
|
1160
1157
|
...!oe(l) || (d.isValid || y.isValid) && h !== t.isValid ? {} : { name: l },
|
|
1161
1158
|
...r.resolver || !l ? { isValid: h } : {},
|
|
1162
1159
|
errors: t.errors
|
|
1163
1160
|
}), u.shouldFocus && !x && $e(o, me, l ? S : i.mount), x;
|
|
1164
|
-
},
|
|
1161
|
+
}, Be = (l, u) => {
|
|
1165
1162
|
let h = {
|
|
1166
1163
|
...a.mount ? n : s
|
|
1167
1164
|
};
|
|
@@ -1198,13 +1195,13 @@ function ko(e = {}) {
|
|
|
1198
1195
|
defaultValues: s
|
|
1199
1196
|
});
|
|
1200
1197
|
}
|
|
1201
|
-
}).unsubscribe,
|
|
1198
|
+
}).unsubscribe, Br = (l) => (a.mount = !0, y = {
|
|
1202
1199
|
...y,
|
|
1203
1200
|
...l.formState
|
|
1204
1201
|
}, Vt({
|
|
1205
1202
|
...l,
|
|
1206
1203
|
formState: y
|
|
1207
|
-
})),
|
|
1204
|
+
})), Ge = (l, u = {}) => {
|
|
1208
1205
|
for (const h of l ? Ne(l) : i.mount)
|
|
1209
1206
|
i.mount.delete(h), i.array.delete(h), u.keepValue || (G(o, h), G(n, h)), !u.keepError && G(t.errors, h), !u.keepDirty && G(t.dirtyFields, h), !u.keepTouched && G(t.touchedFields, h), !u.keepIsValidating && G(t.validatingFields, h), !r.shouldUnregister && !u.keepDefaultValue && G(s, h);
|
|
1210
1207
|
m.state.next({
|
|
@@ -1215,7 +1212,7 @@ function ko(e = {}) {
|
|
|
1215
1212
|
}), !u.keepIsValid && p();
|
|
1216
1213
|
}, zt = ({ disabled: l, name: u }) => {
|
|
1217
1214
|
(re(l) && a.mount || l || i.disabled.has(u)) && (l ? i.disabled.add(u) : i.disabled.delete(u));
|
|
1218
|
-
},
|
|
1215
|
+
}, Ze = (l, u = {}) => {
|
|
1219
1216
|
let h = w(o, l);
|
|
1220
1217
|
const x = re(u.disabled) || re(r.disabled);
|
|
1221
1218
|
return H(o, l, {
|
|
@@ -1244,7 +1241,7 @@ function ko(e = {}) {
|
|
|
1244
1241
|
onBlur: te,
|
|
1245
1242
|
ref: (S) => {
|
|
1246
1243
|
if (S) {
|
|
1247
|
-
|
|
1244
|
+
Ze(l, u), h = w(o, l);
|
|
1248
1245
|
const v = W(S.value) && S.querySelectorAll && S.querySelectorAll("input,select,textarea")[0] || S, $ = co(v), T = h._f.refs || [];
|
|
1249
1246
|
if ($ ? T.find((j) => j === v) : v === h._f.ref)
|
|
1250
1247
|
return;
|
|
@@ -1265,7 +1262,7 @@ function ko(e = {}) {
|
|
|
1265
1262
|
h = w(o, l, {}), h._f && (h._f.mount = !1), (r.shouldUnregister || u.shouldUnregister) && !(dr(i.array, l) && a.action) && i.unMount.add(l);
|
|
1266
1263
|
}
|
|
1267
1264
|
};
|
|
1268
|
-
},
|
|
1265
|
+
}, Ke = () => r.shouldFocusError && $e(o, me, i.mount), Pr = (l) => {
|
|
1269
1266
|
re(l) && (m.state.next({ disabled: l }), $e(o, (u, h) => {
|
|
1270
1267
|
const x = w(o, h);
|
|
1271
1268
|
x && (u.disabled = x._f.disabled || l, Array.isArray(x._f.refs) && x._f.refs.forEach((S) => {
|
|
@@ -1282,7 +1279,7 @@ function ko(e = {}) {
|
|
|
1282
1279
|
const { errors: v, values: $ } = await P();
|
|
1283
1280
|
t.errors = v, S = X($);
|
|
1284
1281
|
} else
|
|
1285
|
-
await
|
|
1282
|
+
await B(o);
|
|
1286
1283
|
if (i.disabled.size)
|
|
1287
1284
|
for (const v of i.disabled)
|
|
1288
1285
|
G(S, v);
|
|
@@ -1296,7 +1293,7 @@ function ko(e = {}) {
|
|
|
1296
1293
|
x = v;
|
|
1297
1294
|
}
|
|
1298
1295
|
} else
|
|
1299
|
-
u && await u({ ...t.errors }, h),
|
|
1296
|
+
u && await u({ ...t.errors }, h), Ke(), setTimeout(Ke);
|
|
1300
1297
|
if (m.state.next({
|
|
1301
1298
|
isSubmitted: !0,
|
|
1302
1299
|
isSubmitting: !1,
|
|
@@ -1305,7 +1302,7 @@ function ko(e = {}) {
|
|
|
1305
1302
|
errors: t.errors
|
|
1306
1303
|
}), x)
|
|
1307
1304
|
throw x;
|
|
1308
|
-
},
|
|
1305
|
+
}, Mr = (l, u = {}) => {
|
|
1309
1306
|
w(o, l) && (W(u.defaultValue) ? Q(l, X(w(s, l))) : (Q(l, u.defaultValue), H(s, l, X(u.defaultValue))), u.keepTouched || G(t.touchedFields, l), u.keepDirty || (G(t.dirtyFields, l), t.isDirty = u.defaultValue ? q(l, X(w(s, l))) : q()), u.keepError || (G(t.errors, l), d.isValid && p()), m.state.next({ ...t }));
|
|
1310
1307
|
}, Nt = (l, u = {}) => {
|
|
1311
1308
|
const h = l ? X(l) : s, x = X(h), S = Y(l), v = S ? s : x;
|
|
@@ -1323,7 +1320,7 @@ function ko(e = {}) {
|
|
|
1323
1320
|
const T = w(o, $);
|
|
1324
1321
|
if (T && T._f) {
|
|
1325
1322
|
const j = Array.isArray(T._f.refs) ? T._f.refs[0] : T._f.ref;
|
|
1326
|
-
if (
|
|
1323
|
+
if (je(j)) {
|
|
1327
1324
|
const se = j.closest("form");
|
|
1328
1325
|
if (se) {
|
|
1329
1326
|
se.reset();
|
|
@@ -1376,14 +1373,14 @@ function ko(e = {}) {
|
|
|
1376
1373
|
};
|
|
1377
1374
|
}, Lt = {
|
|
1378
1375
|
control: {
|
|
1379
|
-
register:
|
|
1380
|
-
unregister:
|
|
1376
|
+
register: Ze,
|
|
1377
|
+
unregister: Ge,
|
|
1381
1378
|
getFieldState: Ct,
|
|
1382
1379
|
handleSubmit: Et,
|
|
1383
1380
|
setError: Ft,
|
|
1384
1381
|
_subscribe: Vt,
|
|
1385
1382
|
_runSchema: P,
|
|
1386
|
-
_focusError:
|
|
1383
|
+
_focusError: Ke,
|
|
1387
1384
|
_getWatch: L,
|
|
1388
1385
|
_getDirty: q,
|
|
1389
1386
|
_setValid: p,
|
|
@@ -1435,17 +1432,17 @@ function ko(e = {}) {
|
|
|
1435
1432
|
};
|
|
1436
1433
|
}
|
|
1437
1434
|
},
|
|
1438
|
-
subscribe:
|
|
1435
|
+
subscribe: Br,
|
|
1439
1436
|
trigger: ve,
|
|
1440
|
-
register:
|
|
1437
|
+
register: Ze,
|
|
1441
1438
|
handleSubmit: Et,
|
|
1442
1439
|
watch: Ar,
|
|
1443
1440
|
setValue: Q,
|
|
1444
|
-
getValues:
|
|
1441
|
+
getValues: Be,
|
|
1445
1442
|
reset: $t,
|
|
1446
|
-
resetField:
|
|
1443
|
+
resetField: Mr,
|
|
1447
1444
|
clearErrors: Lr,
|
|
1448
|
-
unregister:
|
|
1445
|
+
unregister: Ge,
|
|
1449
1446
|
setError: Ft,
|
|
1450
1447
|
setFocus: Dr,
|
|
1451
1448
|
getFieldState: Ct
|
|
@@ -1593,14 +1590,14 @@ function zo(e, r) {
|
|
|
1593
1590
|
}
|
|
1594
1591
|
const Sr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
1595
1592
|
};
|
|
1596
|
-
function
|
|
1593
|
+
function Ie(e) {
|
|
1597
1594
|
return typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
1598
1595
|
}
|
|
1599
1596
|
function wr(e, r, t) {
|
|
1600
1597
|
var s, n, a, i, f, c;
|
|
1601
1598
|
const o = { ...e, path: e.path ?? [] };
|
|
1602
1599
|
if (!e.message) {
|
|
1603
|
-
const d =
|
|
1600
|
+
const d = Ie((a = (n = (s = e.inst) == null ? void 0 : s._zod.def) == null ? void 0 : n.error) == null ? void 0 : a.call(n, e)) ?? Ie((i = r == null ? void 0 : r.error) == null ? void 0 : i.call(r, e)) ?? Ie((f = t.customError) == null ? void 0 : f.call(t, e)) ?? Ie((c = t.localeError) == null ? void 0 : c.call(t, e)) ?? "Invalid input";
|
|
1604
1601
|
o.message = d;
|
|
1605
1602
|
}
|
|
1606
1603
|
return delete o.inst, delete o.continue, r != null && r.reportInput || delete o.input, o;
|
|
@@ -1642,7 +1639,7 @@ function Jt(e, r) {
|
|
|
1642
1639
|
}
|
|
1643
1640
|
return t && t.then ? t.then(void 0, r) : t;
|
|
1644
1641
|
}
|
|
1645
|
-
function
|
|
1642
|
+
function Bo(e, r) {
|
|
1646
1643
|
for (var t = {}; e.length; ) {
|
|
1647
1644
|
var o = e[0], s = o.code, n = o.message, a = o.path.join(".");
|
|
1648
1645
|
if (!t[a]) if ("unionErrors" in o) {
|
|
@@ -1680,7 +1677,7 @@ function Po(e, r) {
|
|
|
1680
1677
|
}
|
|
1681
1678
|
return t;
|
|
1682
1679
|
}
|
|
1683
|
-
function
|
|
1680
|
+
function Mo(e, r, t) {
|
|
1684
1681
|
if (t === void 0 && (t = {}), (function(o) {
|
|
1685
1682
|
return "_def" in o && typeof o._def == "object" && "typeName" in o._def;
|
|
1686
1683
|
})(e)) return function(o, s, n) {
|
|
@@ -1692,7 +1689,7 @@ function Bo(e, r, t) {
|
|
|
1692
1689
|
}, function(a) {
|
|
1693
1690
|
if ((function(i) {
|
|
1694
1691
|
return Array.isArray(i == null ? void 0 : i.issues);
|
|
1695
|
-
})(a)) return { values: {}, errors: Qt(
|
|
1692
|
+
})(a)) return { values: {}, errors: Qt(Bo(a.errors, !n.shouldUseNativeValidation && n.criteriaMode === "all"), n) };
|
|
1696
1693
|
throw a;
|
|
1697
1694
|
}));
|
|
1698
1695
|
} catch (a) {
|
|
@@ -1738,14 +1735,14 @@ function Ro({
|
|
|
1738
1735
|
formProps: f
|
|
1739
1736
|
}) {
|
|
1740
1737
|
const c = xo({
|
|
1741
|
-
resolver: t ?
|
|
1738
|
+
resolver: t ? Mo(t) : void 0,
|
|
1742
1739
|
defaultValues: o,
|
|
1743
1740
|
mode: s,
|
|
1744
1741
|
reValidateMode: n
|
|
1745
1742
|
}), d = c.handleSubmit(e);
|
|
1746
1743
|
return /* @__PURE__ */ _(Cr.Provider, { value: c, children: /* @__PURE__ */ _("form", { ...f, className: a, style: i, onSubmit: d, children: typeof r == "function" ? r(c) : r }) });
|
|
1747
1744
|
}
|
|
1748
|
-
const
|
|
1745
|
+
const da = Ro, Oo = "FormError-module__formError___kaUBn", Io = {
|
|
1749
1746
|
formError: Oo
|
|
1750
1747
|
}, To = ({
|
|
1751
1748
|
// Color prop
|
|
@@ -1940,7 +1937,7 @@ const Zo = "Input-module__input___WjT81", Ko = "Input-module__sizeSmall___NFvsi"
|
|
|
1940
1937
|
}
|
|
1941
1938
|
);
|
|
1942
1939
|
};
|
|
1943
|
-
function
|
|
1940
|
+
function ua({
|
|
1944
1941
|
name: e,
|
|
1945
1942
|
label: r,
|
|
1946
1943
|
required: t,
|
|
@@ -2049,7 +2046,7 @@ const Yo = "Textarea-module__textarea___Z-y6g", es = "Textarea-module__sizeSmall
|
|
|
2049
2046
|
}
|
|
2050
2047
|
);
|
|
2051
2048
|
};
|
|
2052
|
-
function
|
|
2049
|
+
function fa({
|
|
2053
2050
|
name: e,
|
|
2054
2051
|
label: r,
|
|
2055
2052
|
required: t,
|
|
@@ -2181,7 +2178,7 @@ const ss = "Select-module__select___cjdcr", ns = "Select-module__sizeSmall___i1q
|
|
|
2181
2178
|
}
|
|
2182
2179
|
);
|
|
2183
2180
|
};
|
|
2184
|
-
function
|
|
2181
|
+
function ma({
|
|
2185
2182
|
name: e,
|
|
2186
2183
|
label: r,
|
|
2187
2184
|
required: t,
|
|
@@ -2217,7 +2214,7 @@ function fa({
|
|
|
2217
2214
|
}
|
|
2218
2215
|
);
|
|
2219
2216
|
}
|
|
2220
|
-
function
|
|
2217
|
+
function ya({
|
|
2221
2218
|
name: e,
|
|
2222
2219
|
required: r,
|
|
2223
2220
|
rules: t,
|
|
@@ -2297,8 +2294,8 @@ const cs = "Radio-module__container___AQxhk", ds = "Radio-module__svg___zl5kF",
|
|
|
2297
2294
|
stroke: k.radioColor
|
|
2298
2295
|
}, E = {
|
|
2299
2296
|
fill: k.radioColor
|
|
2300
|
-
},
|
|
2301
|
-
return /* @__PURE__ */ D("div", { ...y, className:
|
|
2297
|
+
}, M = [ot.container, c].filter(Boolean).join(" ");
|
|
2298
|
+
return /* @__PURE__ */ D("div", { ...y, className: M, style: g, children: [
|
|
2302
2299
|
/* @__PURE__ */ _(
|
|
2303
2300
|
"input",
|
|
2304
2301
|
{
|
|
@@ -2339,7 +2336,7 @@ const cs = "Radio-module__container___AQxhk", ds = "Radio-module__svg___zl5kF",
|
|
|
2339
2336
|
)
|
|
2340
2337
|
] });
|
|
2341
2338
|
};
|
|
2342
|
-
function
|
|
2339
|
+
function ha({
|
|
2343
2340
|
name: e,
|
|
2344
2341
|
label: r,
|
|
2345
2342
|
required: t,
|
|
@@ -2373,7 +2370,7 @@ function ya({
|
|
|
2373
2370
|
}
|
|
2374
2371
|
);
|
|
2375
2372
|
}
|
|
2376
|
-
function
|
|
2373
|
+
function _a({
|
|
2377
2374
|
name: e,
|
|
2378
2375
|
label: r,
|
|
2379
2376
|
required: t,
|
|
@@ -2413,7 +2410,7 @@ function ha({
|
|
|
2413
2410
|
}
|
|
2414
2411
|
);
|
|
2415
2412
|
}
|
|
2416
|
-
function
|
|
2413
|
+
function pa({
|
|
2417
2414
|
name: e,
|
|
2418
2415
|
label: r,
|
|
2419
2416
|
required: t,
|
|
@@ -2598,11 +2595,11 @@ const ms = "Hamburger-module__hamburger___Tf4-t", ys = "Hamburger-module__line__
|
|
|
2598
2595
|
gap: c,
|
|
2599
2596
|
backgroundColor: e,
|
|
2600
2597
|
color: r
|
|
2601
|
-
}),
|
|
2598
|
+
}), M = [Yt.container, C].filter(Boolean).join(" "), P = y ? { position: "fixed", top: 0, left: 0, right: 0, zIndex: 1e3 } : {};
|
|
2602
2599
|
return /* @__PURE__ */ _("header", { ...p, className: Yt.header, style: P, children: /* @__PURE__ */ _(
|
|
2603
2600
|
"div",
|
|
2604
2601
|
{
|
|
2605
|
-
className:
|
|
2602
|
+
className: M,
|
|
2606
2603
|
style: { ...E, ...b },
|
|
2607
2604
|
children: m
|
|
2608
2605
|
}
|
|
@@ -2613,7 +2610,7 @@ const ms = "Hamburger-module__hamburger___Tf4-t", ys = "Hamburger-module__line__
|
|
|
2613
2610
|
navHeader: xs,
|
|
2614
2611
|
compact: Cs,
|
|
2615
2612
|
navDesktop: Fs
|
|
2616
|
-
}, Vs = "Popover-module__triggerWrapper___dZpf6", zs = "Popover-module__popup___JAvrb", Es = "Popover-module__panelOverlay___1xDU5", Ns = "Popover-module__panelOverlayVisible___BgtIQ", $s = "Popover-module__backdrop___e8qHL", Ls = "Popover-module__panel___eUJ2E", As = "Popover-module__panelLeft___9nSLp",
|
|
2613
|
+
}, Vs = "Popover-module__triggerWrapper___dZpf6", zs = "Popover-module__popup___JAvrb", Es = "Popover-module__panelOverlay___1xDU5", Ns = "Popover-module__panelOverlayVisible___BgtIQ", $s = "Popover-module__backdrop___e8qHL", Ls = "Popover-module__panel___eUJ2E", As = "Popover-module__panelLeft___9nSLp", Bs = "Popover-module__panelRight___OrQfl", Ps = "Popover-module__panelOpen___hhvV-", Ms = "Popover-module__panelCloseButton___kALaN", ue = {
|
|
2617
2614
|
triggerWrapper: Vs,
|
|
2618
2615
|
popup: zs,
|
|
2619
2616
|
panelOverlay: Es,
|
|
@@ -2621,9 +2618,9 @@ const ms = "Hamburger-module__hamburger___Tf4-t", ys = "Hamburger-module__line__
|
|
|
2621
2618
|
backdrop: $s,
|
|
2622
2619
|
panel: Ls,
|
|
2623
2620
|
panelLeft: As,
|
|
2624
|
-
panelRight:
|
|
2621
|
+
panelRight: Bs,
|
|
2625
2622
|
panelOpen: Ps,
|
|
2626
|
-
panelCloseButton:
|
|
2623
|
+
panelCloseButton: Ms
|
|
2627
2624
|
};
|
|
2628
2625
|
function Ds(e, r) {
|
|
2629
2626
|
const [t, o] = J(!1), [s, n] = J(!1);
|
|
@@ -2687,7 +2684,7 @@ const Vr = ({
|
|
|
2687
2684
|
p || V(I), s == null || s(I);
|
|
2688
2685
|
},
|
|
2689
2686
|
[p, s]
|
|
2690
|
-
),
|
|
2687
|
+
), M = Ce(() => E(!g), [g, E]), P = Ce(() => E(!1), [E]), { panelMounted: U, panelVisible: B, handleTransitionEnd: K } = Ds(g, t), { popupPositionStyle: q } = Rs(g, t, F, n);
|
|
2691
2688
|
ne(() => {
|
|
2692
2689
|
if (!g || t !== "popup") return;
|
|
2693
2690
|
const I = (Q) => {
|
|
@@ -2708,11 +2705,11 @@ const Vr = ({
|
|
|
2708
2705
|
document.body.style.position = "", document.body.style.top = "", document.body.style.width = "", window.scrollTo(0, I);
|
|
2709
2706
|
};
|
|
2710
2707
|
}, [g, t]);
|
|
2711
|
-
const L = e ? typeof e == "function" ? e({ onClick:
|
|
2708
|
+
const L = e ? typeof e == "function" ? e({ onClick: M, isOpen: g }) : (
|
|
2712
2709
|
// Non-function trigger: wrap in a span that delegates clicks to the trigger element.
|
|
2713
2710
|
// The wrapped element (e.g. <button>) handles its own keyboard accessibility.
|
|
2714
2711
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
2715
|
-
/* @__PURE__ */ _("span", { onClick:
|
|
2712
|
+
/* @__PURE__ */ _("span", { onClick: M, style: { cursor: "pointer", display: "contents" }, children: e })
|
|
2716
2713
|
) : null, A = e ? /* @__PURE__ */ _("span", { ref: F, className: ue.triggerWrapper, children: L }) : null;
|
|
2717
2714
|
if (t === "popup") {
|
|
2718
2715
|
const I = {
|
|
@@ -2750,13 +2747,13 @@ const Vr = ({
|
|
|
2750
2747
|
/* @__PURE__ */ D(
|
|
2751
2748
|
"div",
|
|
2752
2749
|
{
|
|
2753
|
-
className: [ue.panelOverlay,
|
|
2750
|
+
className: [ue.panelOverlay, B ? ue.panelOverlayVisible : ""].filter(Boolean).join(" "),
|
|
2754
2751
|
children: [
|
|
2755
2752
|
/* @__PURE__ */ _(
|
|
2756
2753
|
"div",
|
|
2757
2754
|
{
|
|
2758
2755
|
className: ue.backdrop,
|
|
2759
|
-
style: { backgroundColor:
|
|
2756
|
+
style: { backgroundColor: B ? f : "transparent" },
|
|
2760
2757
|
onClick: d ? P : void 0,
|
|
2761
2758
|
role: "presentation"
|
|
2762
2759
|
}
|
|
@@ -2768,7 +2765,7 @@ const Vr = ({
|
|
|
2768
2765
|
className: [
|
|
2769
2766
|
ue.panel,
|
|
2770
2767
|
a === "right" ? ue.panelRight : ue.panelLeft,
|
|
2771
|
-
|
|
2768
|
+
B ? ue.panelOpen : "",
|
|
2772
2769
|
y
|
|
2773
2770
|
].filter(Boolean).join(" "),
|
|
2774
2771
|
style: O,
|
|
@@ -2824,7 +2821,7 @@ const Vr = ({
|
|
|
2824
2821
|
desktop: o
|
|
2825
2822
|
}) => {
|
|
2826
2823
|
const s = R();
|
|
2827
|
-
return
|
|
2824
|
+
return Ue(() => e ? {
|
|
2828
2825
|
navStyles: {
|
|
2829
2826
|
...(t == null ? void 0 : t.backgroundColor) && { backgroundColor: t.backgroundColor },
|
|
2830
2827
|
color: (t == null ? void 0 : t.color) || s.fonts.color,
|
|
@@ -2888,7 +2885,7 @@ const Vr = ({
|
|
|
2888
2885
|
cssProps: t,
|
|
2889
2886
|
navProps: o,
|
|
2890
2887
|
content: s
|
|
2891
|
-
}) => /* @__PURE__ */ _("nav", { ...o, className: r, style: t, children: typeof s == "function" ? s({ setOpen: e }) : s }),
|
|
2888
|
+
}) => /* @__PURE__ */ _("nav", { ...o, className: r, style: t, children: typeof s == "function" ? s({ setOpen: e }) : s }), ga = ({
|
|
2892
2889
|
mobile: e,
|
|
2893
2890
|
desktop: r,
|
|
2894
2891
|
breakpoints: t,
|
|
@@ -2903,7 +2900,7 @@ const Vr = ({
|
|
|
2903
2900
|
isCompact: z,
|
|
2904
2901
|
mobile: e,
|
|
2905
2902
|
desktop: r
|
|
2906
|
-
}),
|
|
2903
|
+
}), M = { ...E, ...n }, P = (K) => {
|
|
2907
2904
|
const q = K.target;
|
|
2908
2905
|
q.closest("[data-navdropdown-trigger]") || q.closest("a, button") && c(!1);
|
|
2909
2906
|
}, U = [
|
|
@@ -2911,7 +2908,7 @@ const Vr = ({
|
|
|
2911
2908
|
xe.navMobile,
|
|
2912
2909
|
z || e != null && e.compact ? xe.compact : "",
|
|
2913
2910
|
s
|
|
2914
|
-
].filter(Boolean).join(" "),
|
|
2911
|
+
].filter(Boolean).join(" "), B = [xe.nav, xe.navDesktop, s].filter(Boolean).join(" ");
|
|
2915
2912
|
return /* @__PURE__ */ _(Is.Provider, { value: { isMobile: F, setOpen: c }, children: F ? /* @__PURE__ */ _(
|
|
2916
2913
|
Ts,
|
|
2917
2914
|
{
|
|
@@ -2923,7 +2920,7 @@ const Vr = ({
|
|
|
2923
2920
|
panelWidth: e == null ? void 0 : e.panelWidth,
|
|
2924
2921
|
side: e == null ? void 0 : e.side,
|
|
2925
2922
|
navClassName: U,
|
|
2926
|
-
cssProps:
|
|
2923
|
+
cssProps: M,
|
|
2927
2924
|
navProps: a,
|
|
2928
2925
|
content: (e == null ? void 0 : e.content) || o,
|
|
2929
2926
|
onNavClick: P
|
|
@@ -2932,8 +2929,8 @@ const Vr = ({
|
|
|
2932
2929
|
Hs,
|
|
2933
2930
|
{
|
|
2934
2931
|
setOpen: c,
|
|
2935
|
-
navClassName:
|
|
2936
|
-
cssProps:
|
|
2932
|
+
navClassName: B,
|
|
2933
|
+
cssProps: M,
|
|
2937
2934
|
navProps: a,
|
|
2938
2935
|
content: (r == null ? void 0 : r.content) || o
|
|
2939
2936
|
}
|
|
@@ -2960,7 +2957,7 @@ function zr({
|
|
|
2960
2957
|
onMouseLeave: () => n(!1)
|
|
2961
2958
|
};
|
|
2962
2959
|
}
|
|
2963
|
-
const
|
|
2960
|
+
const va = ({
|
|
2964
2961
|
label: e,
|
|
2965
2962
|
children: r,
|
|
2966
2963
|
dropdownVariant: t = "popup",
|
|
@@ -3031,7 +3028,7 @@ const ga = ({
|
|
|
3031
3028
|
children: r
|
|
3032
3029
|
}
|
|
3033
3030
|
);
|
|
3034
|
-
},
|
|
3031
|
+
}, ba = ({ isActive: e, hoverOpacity: r, color: t, children: o }) => {
|
|
3035
3032
|
const { style: s, onMouseEnter: n, onMouseLeave: a } = zr({
|
|
3036
3033
|
isActive: e,
|
|
3037
3034
|
hoverOpacity: r,
|
|
@@ -3105,7 +3102,7 @@ const ga = ({
|
|
|
3105
3102
|
children: d
|
|
3106
3103
|
}
|
|
3107
3104
|
) : d;
|
|
3108
|
-
},
|
|
3105
|
+
}, Sa = ({ children: e, loadingComponent: r }) => {
|
|
3109
3106
|
const [t, o] = J(!1);
|
|
3110
3107
|
return ne(() => {
|
|
3111
3108
|
requestAnimationFrame(() => {
|
|
@@ -3168,16 +3165,16 @@ const ga = ({
|
|
|
3168
3165
|
};
|
|
3169
3166
|
}, [e]), ne(() => {
|
|
3170
3167
|
if (!e || !a) return;
|
|
3171
|
-
const
|
|
3168
|
+
const B = (K) => {
|
|
3172
3169
|
K.key === "Escape" && r();
|
|
3173
3170
|
};
|
|
3174
|
-
return document.addEventListener("keydown",
|
|
3171
|
+
return document.addEventListener("keydown", B), () => document.removeEventListener("keydown", B);
|
|
3175
3172
|
}, [e, a, r]);
|
|
3176
|
-
const E = (
|
|
3177
|
-
|
|
3173
|
+
const E = (B) => {
|
|
3174
|
+
B.target === B.currentTarget && n && r();
|
|
3178
3175
|
};
|
|
3179
3176
|
if (!e) return null;
|
|
3180
|
-
const
|
|
3177
|
+
const M = {
|
|
3181
3178
|
width: c,
|
|
3182
3179
|
maxWidth: d,
|
|
3183
3180
|
backgroundColor: y || k.colors.secondary,
|
|
@@ -3197,7 +3194,7 @@ const ga = ({
|
|
|
3197
3194
|
{
|
|
3198
3195
|
ref: V,
|
|
3199
3196
|
className: [he.modal, C].filter(Boolean).join(" "),
|
|
3200
|
-
style:
|
|
3197
|
+
style: M,
|
|
3201
3198
|
role: "dialog",
|
|
3202
3199
|
"aria-modal": "true",
|
|
3203
3200
|
"aria-labelledby": o ? "modal-title" : void 0,
|
|
@@ -3238,16 +3235,16 @@ const ga = ({
|
|
|
3238
3235
|
)
|
|
3239
3236
|
] }),
|
|
3240
3237
|
/* @__PURE__ */ _("div", { className: he.content, children: t }),
|
|
3241
|
-
i.length > 0 && /* @__PURE__ */ _(rn, { direction: z ? "column" : "row", className: he.actions, children: i.map((
|
|
3238
|
+
i.length > 0 && /* @__PURE__ */ _(rn, { direction: z ? "column" : "row", className: he.actions, children: i.map((B, K) => /* @__PURE__ */ _(
|
|
3242
3239
|
Gr,
|
|
3243
3240
|
{
|
|
3244
|
-
color:
|
|
3245
|
-
outline:
|
|
3246
|
-
disabled:
|
|
3241
|
+
color: B.color,
|
|
3242
|
+
outline: B.variant === "outline",
|
|
3243
|
+
disabled: B.disabled,
|
|
3247
3244
|
onClick: () => {
|
|
3248
|
-
|
|
3245
|
+
B.onClick ? B.onClick(f || r) : f ? f(B.value) : r();
|
|
3249
3246
|
},
|
|
3250
|
-
children:
|
|
3247
|
+
children: B.label
|
|
3251
3248
|
},
|
|
3252
3249
|
K
|
|
3253
3250
|
)) })
|
|
@@ -3257,7 +3254,7 @@ const ga = ({
|
|
|
3257
3254
|
}
|
|
3258
3255
|
);
|
|
3259
3256
|
return lt(U, document.body);
|
|
3260
|
-
}, Nr = ht(null),
|
|
3257
|
+
}, Nr = ht(null), wa = ({ children: e }) => {
|
|
3261
3258
|
const [r, t] = J(null), o = N.useCallback((c) => new Promise((d, y) => {
|
|
3262
3259
|
const m = Math.random().toString(36).substr(2, 9);
|
|
3263
3260
|
t({
|
|
@@ -3330,15 +3327,45 @@ const ga = ({
|
|
|
3330
3327
|
}
|
|
3331
3328
|
)
|
|
3332
3329
|
] });
|
|
3333
|
-
},
|
|
3330
|
+
}, ka = () => {
|
|
3334
3331
|
const e = or(Nr);
|
|
3335
3332
|
if (!e)
|
|
3336
3333
|
throw new Error("useModal must be used within a ModalProvider");
|
|
3337
3334
|
return e;
|
|
3338
|
-
}, sn =
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3335
|
+
}, sn = ({
|
|
3336
|
+
children: e,
|
|
3337
|
+
className: r,
|
|
3338
|
+
style: t,
|
|
3339
|
+
padding: o = "0.5em",
|
|
3340
|
+
border: s = !1,
|
|
3341
|
+
backgroundColor: n,
|
|
3342
|
+
divProps: a
|
|
3343
|
+
}) => {
|
|
3344
|
+
const i = R();
|
|
3345
|
+
return /* @__PURE__ */ _(
|
|
3346
|
+
"div",
|
|
3347
|
+
{
|
|
3348
|
+
...a,
|
|
3349
|
+
className: r,
|
|
3350
|
+
style: {
|
|
3351
|
+
padding: o,
|
|
3352
|
+
borderRadius: i.border.radius,
|
|
3353
|
+
fontSize: "1em",
|
|
3354
|
+
backgroundColor: n ?? i.cards.backgroundColor,
|
|
3355
|
+
...s && {
|
|
3356
|
+
borderWidth: i.border.width,
|
|
3357
|
+
borderStyle: "solid",
|
|
3358
|
+
borderColor: i.colors.primary
|
|
3359
|
+
},
|
|
3360
|
+
...t
|
|
3361
|
+
},
|
|
3362
|
+
children: e
|
|
3363
|
+
}
|
|
3364
|
+
);
|
|
3365
|
+
}, nn = "ResponsiveSection-module__section___gBESK", an = "ResponsiveSection-module__innerDiv___r1bky", er = {
|
|
3366
|
+
section: nn,
|
|
3367
|
+
innerDiv: an
|
|
3368
|
+
}, ln = ({
|
|
3342
3369
|
// Color props
|
|
3343
3370
|
backgroundColor: e,
|
|
3344
3371
|
color: r,
|
|
@@ -3375,14 +3402,14 @@ const ga = ({
|
|
|
3375
3402
|
"--gap": c
|
|
3376
3403
|
}, E = [er.section, m].filter(Boolean).join(" ");
|
|
3377
3404
|
return /* @__PURE__ */ _("section", { ...b, className: E, style: V, children: /* @__PURE__ */ _("div", { className: er.innerDiv, style: z, children: y }) });
|
|
3378
|
-
},
|
|
3379
|
-
hero:
|
|
3380
|
-
content:
|
|
3381
|
-
},
|
|
3405
|
+
}, cn = "Hero-module__hero___IB2tg", dn = "Hero-module__content___rkkfQ", tr = {
|
|
3406
|
+
hero: cn,
|
|
3407
|
+
content: dn
|
|
3408
|
+
}, un = ({
|
|
3382
3409
|
isMd: e = !1,
|
|
3383
3410
|
isLg: r = !1,
|
|
3384
3411
|
theme: t
|
|
3385
|
-
}) =>
|
|
3412
|
+
}) => Ue(() => {
|
|
3386
3413
|
const { rhythm: o } = t.fonts;
|
|
3387
3414
|
let s = `calc(${o} * 2) 0`, n = "2rem", a = "1.125rem";
|
|
3388
3415
|
return r ? (s = `calc(${o} * 4) 0`, n = "3.5rem", a = "1.5rem") : e && (s = `calc(${o} * 3.5) 0`, n = "3rem", a = "1.25rem"), {
|
|
@@ -3391,7 +3418,7 @@ const ga = ({
|
|
|
3391
3418
|
"--hero-p-font-size": a,
|
|
3392
3419
|
"--hero-h1-margin-bottom": `calc(${o} * 0.7)`
|
|
3393
3420
|
};
|
|
3394
|
-
}, [e, r, t.fonts]),
|
|
3421
|
+
}, [e, r, t.fonts]), xa = ({
|
|
3395
3422
|
// Color props
|
|
3396
3423
|
color: e,
|
|
3397
3424
|
// Layout props
|
|
@@ -3403,9 +3430,9 @@ const ga = ({
|
|
|
3403
3430
|
style: s,
|
|
3404
3431
|
...n
|
|
3405
3432
|
}) => {
|
|
3406
|
-
const a = R(), i = [tr.hero, o].filter(Boolean).join(" "), f = (r == null ? void 0 : r.md) || a.breakpoints.md, c = (r == null ? void 0 : r.lg) || a.breakpoints.lg, d = de(`(min-width: ${f})`), y = de(`(min-width: ${c})`), m =
|
|
3433
|
+
const a = R(), i = [tr.hero, o].filter(Boolean).join(" "), f = (r == null ? void 0 : r.md) || a.breakpoints.md, c = (r == null ? void 0 : r.lg) || a.breakpoints.lg, d = de(`(min-width: ${f})`), y = de(`(min-width: ${c})`), m = un({ isMd: d, isLg: y, theme: a });
|
|
3407
3434
|
return /* @__PURE__ */ _(
|
|
3408
|
-
|
|
3435
|
+
ln,
|
|
3409
3436
|
{
|
|
3410
3437
|
className: i,
|
|
3411
3438
|
color: e || a.fonts.color,
|
|
@@ -3414,10 +3441,10 @@ const ga = ({
|
|
|
3414
3441
|
children: /* @__PURE__ */ _("div", { className: tr.content, children: t })
|
|
3415
3442
|
}
|
|
3416
3443
|
);
|
|
3417
|
-
},
|
|
3418
|
-
footer:
|
|
3419
|
-
container:
|
|
3420
|
-
},
|
|
3444
|
+
}, fn = "Footer-module__footer___A76NF", mn = "Footer-module__container___QneNs", rr = {
|
|
3445
|
+
footer: fn,
|
|
3446
|
+
container: mn
|
|
3447
|
+
}, yn = ({
|
|
3421
3448
|
isSmallScreen: e = !1,
|
|
3422
3449
|
maxWidth: r,
|
|
3423
3450
|
minWidth: t,
|
|
@@ -3442,7 +3469,7 @@ const ga = ({
|
|
|
3442
3469
|
backgroundColor: c,
|
|
3443
3470
|
color: d || y.fonts.color
|
|
3444
3471
|
};
|
|
3445
|
-
},
|
|
3472
|
+
}, hn = ({
|
|
3446
3473
|
// Color props
|
|
3447
3474
|
backgroundColor: e,
|
|
3448
3475
|
color: r,
|
|
@@ -3464,7 +3491,7 @@ const ga = ({
|
|
|
3464
3491
|
// Element-specific props
|
|
3465
3492
|
footerProps: b
|
|
3466
3493
|
}) => {
|
|
3467
|
-
const p = R(), k = d || p.breakpoints.sm, { maxWidth: V, unit: g } = Le(k), F = de(`(max-width: ${V}${g})`), z =
|
|
3494
|
+
const p = R(), k = d || p.breakpoints.sm, { maxWidth: V, unit: g } = Le(k), F = de(`(max-width: ${V}${g})`), z = yn({
|
|
3468
3495
|
isSmallScreen: F,
|
|
3469
3496
|
maxWidth: t,
|
|
3470
3497
|
minWidth: o,
|
|
@@ -3478,15 +3505,15 @@ const ga = ({
|
|
|
3478
3505
|
color: r
|
|
3479
3506
|
}), E = [rr.container, m].filter(Boolean).join(" ");
|
|
3480
3507
|
return /* @__PURE__ */ _("footer", { ...b, className: rr.footer, children: /* @__PURE__ */ _("div", { className: E, style: { ...z, ...C }, children: y }) });
|
|
3481
|
-
},
|
|
3482
|
-
card:
|
|
3483
|
-
icon:
|
|
3484
|
-
title:
|
|
3485
|
-
content:
|
|
3486
|
-
},
|
|
3508
|
+
}, _n = "FeatureCard-module__card___XQt66", pn = "FeatureCard-module__icon___dXJ92", gn = "FeatureCard-module__title___KxXyA", vn = "FeatureCard-module__content___68xkw", Te = {
|
|
3509
|
+
card: _n,
|
|
3510
|
+
icon: pn,
|
|
3511
|
+
title: gn,
|
|
3512
|
+
content: vn
|
|
3513
|
+
}, bn = ({
|
|
3487
3514
|
isMd: e = !1,
|
|
3488
3515
|
theme: r
|
|
3489
|
-
}) =>
|
|
3516
|
+
}) => Ue(() => {
|
|
3490
3517
|
const { rhythm: t } = r.fonts;
|
|
3491
3518
|
return {
|
|
3492
3519
|
"--feature-icon-font-size": e ? "3rem" : "2.5rem",
|
|
@@ -3495,7 +3522,7 @@ const ga = ({
|
|
|
3495
3522
|
"--feature-icon-margin-bottom": `calc(${t} * 0.7)`,
|
|
3496
3523
|
"--feature-title-margin-bottom": `calc(${t} * 0.5)`
|
|
3497
3524
|
};
|
|
3498
|
-
}, [e, r.fonts]),
|
|
3525
|
+
}, [e, r.fonts]), Ca = ({
|
|
3499
3526
|
// Layout props
|
|
3500
3527
|
breakpoint: e,
|
|
3501
3528
|
// Content
|
|
@@ -3508,7 +3535,7 @@ const ga = ({
|
|
|
3508
3535
|
// Element-specific props
|
|
3509
3536
|
divProps: a
|
|
3510
3537
|
}) => {
|
|
3511
|
-
const i = R(), f = [
|
|
3538
|
+
const i = R(), f = [Te.card, s].filter(Boolean).join(" "), c = e || i.breakpoints.md, d = de(`(min-width: ${c})`), y = bn({ isMd: d, theme: i });
|
|
3512
3539
|
return /* @__PURE__ */ D(
|
|
3513
3540
|
"div",
|
|
3514
3541
|
{
|
|
@@ -3516,19 +3543,19 @@ const ga = ({
|
|
|
3516
3543
|
className: f,
|
|
3517
3544
|
style: { ...y, ...n },
|
|
3518
3545
|
children: [
|
|
3519
|
-
r && /* @__PURE__ */ _("div", { className:
|
|
3520
|
-
/* @__PURE__ */ _("h3", { className:
|
|
3521
|
-
/* @__PURE__ */ _("div", { className:
|
|
3546
|
+
r && /* @__PURE__ */ _("div", { className: Te.icon, children: r }),
|
|
3547
|
+
/* @__PURE__ */ _("h3", { className: Te.title, children: t }),
|
|
3548
|
+
/* @__PURE__ */ _("div", { className: Te.content, children: o })
|
|
3522
3549
|
]
|
|
3523
3550
|
}
|
|
3524
3551
|
);
|
|
3525
|
-
},
|
|
3526
|
-
grid:
|
|
3527
|
-
},
|
|
3552
|
+
}, Sn = "FeatureGrid-module__grid___6sW6f", wn = {
|
|
3553
|
+
grid: Sn
|
|
3554
|
+
}, kn = ({
|
|
3528
3555
|
columns: e,
|
|
3529
3556
|
isMd: r = !1,
|
|
3530
3557
|
isLg: t = !1
|
|
3531
|
-
}) =>
|
|
3558
|
+
}) => Ue(() => r ? r && !t && (e === 3 || e === 4) ? {
|
|
3532
3559
|
"--grid-template-columns": "repeat(2, 1fr)"
|
|
3533
3560
|
} : {
|
|
3534
3561
|
"--grid-template-columns": {
|
|
@@ -3539,7 +3566,7 @@ const ga = ({
|
|
|
3539
3566
|
}[e]
|
|
3540
3567
|
} : {
|
|
3541
3568
|
"--grid-template-columns": "1fr"
|
|
3542
|
-
}, [e, r, t]),
|
|
3569
|
+
}, [e, r, t]), Fa = ({
|
|
3543
3570
|
columns: e = 3,
|
|
3544
3571
|
breakpoints: r,
|
|
3545
3572
|
gap: t,
|
|
@@ -3548,65 +3575,70 @@ const ga = ({
|
|
|
3548
3575
|
style: n
|
|
3549
3576
|
}) => {
|
|
3550
3577
|
const a = R(), i = (r == null ? void 0 : r.md) || a.breakpoints.md, f = (r == null ? void 0 : r.lg) || a.breakpoints.lg, c = de(`(min-width: ${i})`), d = de(`(min-width: ${f})`), m = {
|
|
3551
|
-
...
|
|
3578
|
+
...kn({ columns: e, isMd: c, isLg: d }),
|
|
3552
3579
|
gap: t,
|
|
3553
3580
|
...n
|
|
3554
3581
|
};
|
|
3555
|
-
return /* @__PURE__ */ _("div", { className: [
|
|
3556
|
-
},
|
|
3557
|
-
card:
|
|
3558
|
-
clickable:
|
|
3559
|
-
vertical:
|
|
3560
|
-
imageWrapper:
|
|
3561
|
-
horizontal:
|
|
3562
|
-
content:
|
|
3563
|
-
},
|
|
3582
|
+
return /* @__PURE__ */ _("div", { className: [wn.grid, s].filter(Boolean).join(" "), style: m, children: o });
|
|
3583
|
+
}, xn = "MediaCard-module__card___9pZ7C", Cn = "MediaCard-module__clickable___Rae9n", Fn = "MediaCard-module__vertical___GWtOA", Vn = "MediaCard-module__imageWrapper___HUiag", zn = "MediaCard-module__horizontal___qlK4y", En = "MediaCard-module__content___MlqE4", we = {
|
|
3584
|
+
card: xn,
|
|
3585
|
+
clickable: Cn,
|
|
3586
|
+
vertical: Fn,
|
|
3587
|
+
imageWrapper: Vn,
|
|
3588
|
+
horizontal: zn,
|
|
3589
|
+
content: En
|
|
3590
|
+
}, Va = ({
|
|
3564
3591
|
direction: e = "column",
|
|
3565
3592
|
imageSlot: r,
|
|
3566
3593
|
imageWidth: t,
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3594
|
+
border: o,
|
|
3595
|
+
backgroundColor: s,
|
|
3596
|
+
padding: n = "0",
|
|
3597
|
+
children: a,
|
|
3598
|
+
className: i,
|
|
3599
|
+
style: f,
|
|
3600
|
+
onClick: c,
|
|
3601
|
+
actions: d,
|
|
3602
|
+
divProps: y
|
|
3574
3603
|
}) => {
|
|
3575
|
-
const
|
|
3604
|
+
const m = [
|
|
3576
3605
|
we.card,
|
|
3577
3606
|
e === "row" ? we.horizontal : we.vertical,
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
].filter(Boolean).join(" "),
|
|
3581
|
-
|
|
3582
|
-
...o && { backgroundColor: o },
|
|
3583
|
-
...t && e === "row" && { "--media-card-image-width": t },
|
|
3584
|
-
...a
|
|
3607
|
+
c ? we.clickable : void 0,
|
|
3608
|
+
i
|
|
3609
|
+
].filter(Boolean).join(" "), C = (b) => {
|
|
3610
|
+
c && (b.key === "Enter" || b.key === " ") && (b.preventDefault(), c());
|
|
3585
3611
|
};
|
|
3586
3612
|
return /* @__PURE__ */ D(
|
|
3587
|
-
|
|
3613
|
+
sn,
|
|
3588
3614
|
{
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3615
|
+
border: o,
|
|
3616
|
+
backgroundColor: s,
|
|
3617
|
+
padding: n,
|
|
3618
|
+
className: m,
|
|
3619
|
+
style: {
|
|
3620
|
+
...t && e === "row" && { "--media-card-image-width": t },
|
|
3621
|
+
...f
|
|
3622
|
+
},
|
|
3623
|
+
divProps: {
|
|
3624
|
+
...y,
|
|
3625
|
+
onClick: c,
|
|
3626
|
+
onKeyDown: c ? C : void 0,
|
|
3627
|
+
role: c ? "button" : void 0,
|
|
3628
|
+
tabIndex: c ? 0 : void 0
|
|
3629
|
+
},
|
|
3598
3630
|
children: [
|
|
3599
3631
|
r && /* @__PURE__ */ _("div", { className: we.imageWrapper, children: r }),
|
|
3600
|
-
/* @__PURE__ */ _("div", { className: we.content, children:
|
|
3601
|
-
|
|
3632
|
+
/* @__PURE__ */ _("div", { className: we.content, children: a }),
|
|
3633
|
+
d
|
|
3602
3634
|
]
|
|
3603
3635
|
}
|
|
3604
3636
|
);
|
|
3605
|
-
},
|
|
3606
|
-
layoutContainer:
|
|
3607
|
-
content:
|
|
3608
|
-
main:
|
|
3609
|
-
},
|
|
3637
|
+
}, Nn = "PageLayout-module__layoutContainer___diLdT", $n = "PageLayout-module__content___h2mBr", Ln = "PageLayout-module__main___Sw7Pv", at = {
|
|
3638
|
+
layoutContainer: Nn,
|
|
3639
|
+
content: $n,
|
|
3640
|
+
main: Ln
|
|
3641
|
+
}, za = ({
|
|
3610
3642
|
// Content
|
|
3611
3643
|
header: e,
|
|
3612
3644
|
footer: r,
|
|
@@ -3626,20 +3658,20 @@ const ga = ({
|
|
|
3626
3658
|
e && /* @__PURE__ */ _(Ss, { ...n, children: e }),
|
|
3627
3659
|
/* @__PURE__ */ _("main", { ...f, className: at.main, children: t })
|
|
3628
3660
|
] }),
|
|
3629
|
-
r && /* @__PURE__ */ _(
|
|
3661
|
+
r && /* @__PURE__ */ _(hn, { ...a, children: r })
|
|
3630
3662
|
] });
|
|
3631
|
-
},
|
|
3632
|
-
dropzone:
|
|
3633
|
-
loading:
|
|
3634
|
-
dragOver:
|
|
3635
|
-
hiddenInput:
|
|
3636
|
-
content:
|
|
3637
|
-
contentHidden:
|
|
3638
|
-
spinnerOverlay:
|
|
3639
|
-
label:
|
|
3640
|
-
hint:
|
|
3641
|
-
errorMessage:
|
|
3642
|
-
},
|
|
3663
|
+
}, An = "FileUpload-module__dropzone___jqua0", Bn = "FileUpload-module__loading___C7PsH", Pn = "FileUpload-module__dragOver___q1zPo", Mn = "FileUpload-module__hiddenInput___RLLPJ", Dn = "FileUpload-module__content___yCP0l", Rn = "FileUpload-module__contentHidden___0Ewoe", On = "FileUpload-module__spinnerOverlay___e3Rle", In = "FileUpload-module__label___lbMkx", Tn = "FileUpload-module__hint___8dXlk", Hn = "FileUpload-module__errorMessage___8HB3n", ae = {
|
|
3664
|
+
dropzone: An,
|
|
3665
|
+
loading: Bn,
|
|
3666
|
+
dragOver: Pn,
|
|
3667
|
+
hiddenInput: Mn,
|
|
3668
|
+
content: Dn,
|
|
3669
|
+
contentHidden: Rn,
|
|
3670
|
+
spinnerOverlay: On,
|
|
3671
|
+
label: In,
|
|
3672
|
+
hint: Tn,
|
|
3673
|
+
errorMessage: Hn
|
|
3674
|
+
}, jn = ({ color: e }) => /* @__PURE__ */ _(
|
|
3643
3675
|
"svg",
|
|
3644
3676
|
{
|
|
3645
3677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3650,7 +3682,7 @@ const ga = ({
|
|
|
3650
3682
|
"aria-hidden": !0,
|
|
3651
3683
|
children: /* @__PURE__ */ _("path", { d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" })
|
|
3652
3684
|
}
|
|
3653
|
-
),
|
|
3685
|
+
), Ea = ({
|
|
3654
3686
|
onUpload: e,
|
|
3655
3687
|
accept: r,
|
|
3656
3688
|
maxSizeBytes: t,
|
|
@@ -3678,13 +3710,13 @@ const ga = ({
|
|
|
3678
3710
|
}, E = (L) => {
|
|
3679
3711
|
var A;
|
|
3680
3712
|
(L.key === "Enter" || L.key === " ") && !o && (L.preventDefault(), (A = y.current) == null || A.click());
|
|
3681
|
-
},
|
|
3713
|
+
}, M = (L) => {
|
|
3682
3714
|
var O;
|
|
3683
3715
|
const A = (O = L.target.files) == null ? void 0 : O[0];
|
|
3684
3716
|
A && F(A), L.target.value = "";
|
|
3685
3717
|
}, P = (L) => {
|
|
3686
3718
|
L.preventDefault(), o || C(!0);
|
|
3687
|
-
}, U = () => C(!1),
|
|
3719
|
+
}, U = () => C(!1), B = (L) => {
|
|
3688
3720
|
var O;
|
|
3689
3721
|
if (L.preventDefault(), C(!1), o) return;
|
|
3690
3722
|
const A = (O = L.dataTransfer.files) == null ? void 0 : O[0];
|
|
@@ -3713,7 +3745,7 @@ const ga = ({
|
|
|
3713
3745
|
onKeyDown: E,
|
|
3714
3746
|
onDragOver: P,
|
|
3715
3747
|
onDragLeave: U,
|
|
3716
|
-
onDrop:
|
|
3748
|
+
onDrop: B,
|
|
3717
3749
|
role: "button",
|
|
3718
3750
|
tabIndex: o ? -1 : 0,
|
|
3719
3751
|
"aria-disabled": o,
|
|
@@ -3726,7 +3758,7 @@ const ga = ({
|
|
|
3726
3758
|
ref: y,
|
|
3727
3759
|
type: "file",
|
|
3728
3760
|
accept: r,
|
|
3729
|
-
onChange:
|
|
3761
|
+
onChange: M,
|
|
3730
3762
|
disabled: o,
|
|
3731
3763
|
className: ae.hiddenInput,
|
|
3732
3764
|
tabIndex: -1,
|
|
@@ -3747,7 +3779,7 @@ const ga = ({
|
|
|
3747
3779
|
className: [ae.content, o && ae.contentHidden].filter(Boolean).join(" "),
|
|
3748
3780
|
"aria-hidden": o || void 0,
|
|
3749
3781
|
children: [
|
|
3750
|
-
/* @__PURE__ */ _(
|
|
3782
|
+
/* @__PURE__ */ _(jn, { color: V }),
|
|
3751
3783
|
/* @__PURE__ */ _("span", { className: ae.label, children: n }),
|
|
3752
3784
|
r && /* @__PURE__ */ D("span", { className: ae.hint, children: [
|
|
3753
3785
|
"Accepted: ",
|
|
@@ -3765,14 +3797,14 @@ const ga = ({
|
|
|
3765
3797
|
]
|
|
3766
3798
|
}
|
|
3767
3799
|
);
|
|
3768
|
-
},
|
|
3769
|
-
container:
|
|
3770
|
-
img:
|
|
3771
|
-
fallback:
|
|
3772
|
-
},
|
|
3773
|
-
skeleton:
|
|
3800
|
+
}, Wn = "Image-module__container___sVJdZ", Un = "Image-module__img___pKhPw", qn = "Image-module__fallback___wysuM", it = {
|
|
3801
|
+
container: Wn,
|
|
3802
|
+
img: Un,
|
|
3803
|
+
fallback: qn
|
|
3804
|
+
}, Gn = "Skeleton-module__skeleton___CB4uF", Zn = {
|
|
3805
|
+
skeleton: Gn
|
|
3774
3806
|
}, $r = ({ className: e, style: r, divProps: t }) => {
|
|
3775
|
-
const o = R(), s = [
|
|
3807
|
+
const o = R(), s = [Zn.skeleton, e].filter(Boolean).join(" ");
|
|
3776
3808
|
return /* @__PURE__ */ _(
|
|
3777
3809
|
"div",
|
|
3778
3810
|
{
|
|
@@ -3783,7 +3815,7 @@ const ga = ({
|
|
|
3783
3815
|
"aria-busy": !0
|
|
3784
3816
|
}
|
|
3785
3817
|
);
|
|
3786
|
-
},
|
|
3818
|
+
}, Na = ({
|
|
3787
3819
|
src: e,
|
|
3788
3820
|
alt: r = "",
|
|
3789
3821
|
aspectRatio: t = "1 / 1",
|
|
@@ -3800,7 +3832,7 @@ const ga = ({
|
|
|
3800
3832
|
const U = setTimeout(() => p(e), s);
|
|
3801
3833
|
return () => clearTimeout(U);
|
|
3802
3834
|
}, [e, s]);
|
|
3803
|
-
const F = o || !!e && !k && !V && g, z = !o && (!e || V), E = !o && !!e && !V,
|
|
3835
|
+
const F = o || !!e && !k && !V && g, z = !o && (!e || V), E = !o && !!e && !V, M = [it.container, a].filter(Boolean).join(" "), P = {
|
|
3804
3836
|
aspectRatio: t,
|
|
3805
3837
|
borderRadius: c.border.radius,
|
|
3806
3838
|
...i
|
|
@@ -3808,7 +3840,7 @@ const ga = ({
|
|
|
3808
3840
|
return /* @__PURE__ */ D(
|
|
3809
3841
|
"div",
|
|
3810
3842
|
{
|
|
3811
|
-
className:
|
|
3843
|
+
className: M,
|
|
3812
3844
|
style: P,
|
|
3813
3845
|
"aria-label": z ? r || "Image placeholder" : void 0,
|
|
3814
3846
|
"aria-busy": F || void 0,
|
|
@@ -3830,20 +3862,20 @@ const ga = ({
|
|
|
3830
3862
|
]
|
|
3831
3863
|
}
|
|
3832
3864
|
);
|
|
3833
|
-
},
|
|
3834
|
-
thumbnail:
|
|
3835
|
-
img:
|
|
3836
|
-
sizeXs:
|
|
3837
|
-
sizeSmall:
|
|
3838
|
-
sizeDefault:
|
|
3839
|
-
sizeLarge:
|
|
3840
|
-
removeButton:
|
|
3841
|
-
},
|
|
3865
|
+
}, Kn = "ImageThumbnail-module__thumbnail___-igbe", Qn = "ImageThumbnail-module__img___Q7Z4V", Xn = "ImageThumbnail-module__sizeXs___TvSHV", Jn = "ImageThumbnail-module__sizeSmall___2KnCh", Yn = "ImageThumbnail-module__sizeDefault___laoQk", ea = "ImageThumbnail-module__sizeLarge___iwz3o", ta = "ImageThumbnail-module__removeButton___Ceh1Q", pe = {
|
|
3866
|
+
thumbnail: Kn,
|
|
3867
|
+
img: Qn,
|
|
3868
|
+
sizeXs: Xn,
|
|
3869
|
+
sizeSmall: Jn,
|
|
3870
|
+
sizeDefault: Yn,
|
|
3871
|
+
sizeLarge: ea,
|
|
3872
|
+
removeButton: ta
|
|
3873
|
+
}, ra = {
|
|
3842
3874
|
xs: pe.sizeXs,
|
|
3843
3875
|
small: pe.sizeSmall,
|
|
3844
3876
|
default: pe.sizeDefault,
|
|
3845
3877
|
large: pe.sizeLarge
|
|
3846
|
-
},
|
|
3878
|
+
}, oa = ({ color: e }) => /* @__PURE__ */ D(
|
|
3847
3879
|
"svg",
|
|
3848
3880
|
{
|
|
3849
3881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3860,7 +3892,7 @@ const ga = ({
|
|
|
3860
3892
|
/* @__PURE__ */ _("polyline", { points: "21 15 16 10 5 21" })
|
|
3861
3893
|
]
|
|
3862
3894
|
}
|
|
3863
|
-
),
|
|
3895
|
+
), $a = ({
|
|
3864
3896
|
src: e,
|
|
3865
3897
|
alt: r = "",
|
|
3866
3898
|
size: t = "default",
|
|
@@ -3879,7 +3911,7 @@ const ga = ({
|
|
|
3879
3911
|
const q = setTimeout(() => V(e), s);
|
|
3880
3912
|
return () => clearTimeout(q);
|
|
3881
3913
|
}, [e, s]);
|
|
3882
|
-
const E = o || !!e && !g && !F && z,
|
|
3914
|
+
const E = o || !!e && !g && !F && z, M = !o && (!e || F), P = !o && !!e && !F, U = [pe.thumbnail, ra[t], f].filter(Boolean).join(" "), B = {
|
|
3883
3915
|
borderRadius: y.border.radius,
|
|
3884
3916
|
...c
|
|
3885
3917
|
}, K = {
|
|
@@ -3891,12 +3923,12 @@ const ga = ({
|
|
|
3891
3923
|
"div",
|
|
3892
3924
|
{
|
|
3893
3925
|
className: U,
|
|
3894
|
-
style:
|
|
3895
|
-
"aria-label":
|
|
3926
|
+
style: B,
|
|
3927
|
+
"aria-label": M ? r || "Image placeholder" : void 0,
|
|
3896
3928
|
"aria-busy": E || void 0,
|
|
3897
3929
|
children: [
|
|
3898
3930
|
E && /* @__PURE__ */ _($r, { style: { borderRadius: "inherit", position: "absolute", inset: 0 } }),
|
|
3899
|
-
|
|
3931
|
+
M && (i ?? /* @__PURE__ */ _(oa, { color: y.colors.primary })),
|
|
3900
3932
|
P && /* @__PURE__ */ _(
|
|
3901
3933
|
"img",
|
|
3902
3934
|
{
|
|
@@ -3943,52 +3975,53 @@ const ga = ({
|
|
|
3943
3975
|
};
|
|
3944
3976
|
export {
|
|
3945
3977
|
Gr as Button,
|
|
3946
|
-
|
|
3978
|
+
ca as CSSReset,
|
|
3979
|
+
sn as Card,
|
|
3947
3980
|
dt as Checkbox,
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3981
|
+
Ca as FeatureCard,
|
|
3982
|
+
Fa as FeatureGrid,
|
|
3983
|
+
Ea as FileUpload,
|
|
3984
|
+
hn as Footer,
|
|
3985
|
+
da as Form,
|
|
3986
|
+
ya as FormCheckbox,
|
|
3987
|
+
pa as FormCheckboxGroup,
|
|
3955
3988
|
To as FormError,
|
|
3956
3989
|
ge as FormField,
|
|
3957
3990
|
Go as FormGroup,
|
|
3958
|
-
|
|
3991
|
+
ua as FormInput,
|
|
3959
3992
|
_t as FormLabel,
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3993
|
+
ha as FormRadio,
|
|
3994
|
+
_a as FormRadioGroup,
|
|
3995
|
+
ma as FormSelect,
|
|
3996
|
+
fa as FormTextarea,
|
|
3964
3997
|
ps as Hamburger,
|
|
3965
3998
|
Ss as Header,
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3999
|
+
xa as Hero,
|
|
4000
|
+
Na as Image,
|
|
4001
|
+
$a as ImageThumbnail,
|
|
3969
4002
|
Jo as Input,
|
|
3970
4003
|
Er as LoadingSpinner,
|
|
3971
|
-
|
|
4004
|
+
Va as MediaCard,
|
|
3972
4005
|
on as Modal,
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
4006
|
+
wa as ModalProvider,
|
|
4007
|
+
va as NavDropdown,
|
|
4008
|
+
ba as NavLink,
|
|
4009
|
+
za as PageLayout,
|
|
3977
4010
|
Vr as Popover,
|
|
3978
4011
|
Fr as Radio,
|
|
3979
|
-
|
|
4012
|
+
ga as ResponsiveNav,
|
|
3980
4013
|
Is as ResponsiveNavContext,
|
|
3981
|
-
|
|
4014
|
+
ln as ResponsiveSection,
|
|
3982
4015
|
ls as Select,
|
|
3983
4016
|
$r as Skeleton,
|
|
3984
4017
|
rn as Stack,
|
|
3985
|
-
|
|
4018
|
+
Sa as StyleLoader,
|
|
3986
4019
|
os as Textarea,
|
|
3987
|
-
|
|
4020
|
+
la as ThemeProvider,
|
|
3988
4021
|
Le as parseBreakpoint,
|
|
3989
4022
|
Do as useFormContext,
|
|
3990
4023
|
de as useMediaQuery,
|
|
3991
|
-
|
|
4024
|
+
ka as useModal,
|
|
3992
4025
|
zr as useNavLinkStyles,
|
|
3993
4026
|
R as useTheme
|
|
3994
4027
|
};
|