@adoptaunabuelo/react-components 0.3.136 → 0.3.137
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/esm/index.js +365 -365
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),o=require("styled-components"),n=require("@constants/Color"),i=require("styled-media-query"),l=require("@constants/ColorV2"),r=require("react"),a=require("@components/Text/Text"),s=require("lucide-react"),d=require("@components/Button/Button"),c=require("@lottiefiles/react-lottie-player"),u=require("@animations/button-check.json"),p=require("@animations/button-loading.json"),f=require("moment"),x=require("@animations/loading-small.json"),h=require("@components/Button/ButtonImage"),g=require("@components/Menu/Menu");require("react-dates/initialize"),require("react-dates/lib/css/_datepicker.css");var m=require("react-dates"),y=require("compressorjs"),b=require("react-image-crop");require("react-image-crop/dist/ReactCrop.css");var v=require("react-webcam"),w=require("@components/Modal/Modal"),j=require("lodash.debounce"),C=require("google-libphonenumber"),$=require("country-flag-icons/react/3x2"),k=require("@animations/pop.json"),L=require("react-modal"),S=require("fuse.js"),F=require("@components/SearchBar/SearchBar"),_=require("@components/Checkbox/CheckboxList"),E=require("@components/Input/Range/InputRange"),D=require("@components/Avatar/Avatar"),O=require("draft-js"),z=require("draftjs-to-html"),M=require("@tiptap/extension-text-style"),B=require("@tiptap/react"),H=require("@tiptap/extension-text-align"),P=require("@tiptap/starter-kit"),A=require("@components/Select/Select"),T=require("@stripe/react-stripe-js"),V=require("@stripe/stripe-js"),I=require("@components/Input/Basic/Input");require("moment/locale/es");var R=require("clsx"),Z=require("date-fns"),q=require("@components/Input/Chat/InputChat"),N=require("@components/Input/Location/InputLocation");function W(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function Y(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(o){if("default"!==o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}}),t.default=e,Object.freeze(t)}var U=W(o),X=W(n),G=W(i),K=W(l),Q=W(r),J=W(a),ee=Y(s),te=W(d),oe=W(u),ne=W(p),ie=W(f),le=W(x),re=W(h),ae=W(g),se=W(y),de=W(b),ce=W(v),ue=W(w),pe=W(j),fe=W(C),xe=Y($),he=W(k),ge=W(L),me=W(S),ye=W(F),be=W(_),ve=W(E),we=W(D),je=W(z),Ce=W(H),$e=W(P),ke=W(A),Le=W(I),Se=W(R),Fe=W(q),_e=W(N);const Ee=U.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
|
-
`,
|
|
4
|
+
`,De=U.default.div`
|
|
5
5
|
display: flex;
|
|
6
6
|
height: 8px;
|
|
7
7
|
width: 8px;
|
|
8
8
|
border-radius: 5px;
|
|
9
9
|
margin-right: 16px;
|
|
10
|
-
background-color: ${e=>e.$isSelected?
|
|
11
|
-
`,
|
|
10
|
+
background-color: ${e=>e.$isSelected?X.default.background.primary:X.default.text.low};
|
|
11
|
+
`,Oe=U.default.h1`
|
|
12
12
|
padding: 0px;
|
|
13
13
|
margin: 0px;
|
|
14
14
|
font-family: "Poppins", "sans-serif";
|
|
15
|
-
color: ${
|
|
15
|
+
color: ${K.default.text.neutralHard};
|
|
16
16
|
font-size: 52px;
|
|
17
17
|
line-height: 64px;
|
|
18
|
-
${
|
|
18
|
+
${G.default.lessThan("medium")`
|
|
19
19
|
font-size: 48px;
|
|
20
20
|
line-height: 60px;
|
|
21
21
|
`}
|
|
22
|
-
`,
|
|
22
|
+
`,ze=U.default.h1`
|
|
23
23
|
padding: 0px;
|
|
24
24
|
margin: 0px;
|
|
25
25
|
font-family: "Poppins", "sans-serif";
|
|
26
|
-
color: ${
|
|
26
|
+
color: ${K.default.text.neutralHard};
|
|
27
27
|
font-size: 48px;
|
|
28
28
|
line-height: 56px;
|
|
29
|
-
${
|
|
29
|
+
${G.default.lessThan("medium")`
|
|
30
30
|
font-size: 32px;
|
|
31
31
|
line-height: 40px;
|
|
32
32
|
`}
|
|
33
|
-
`,
|
|
33
|
+
`,Me=U.default.h2`
|
|
34
34
|
padding: 0px;
|
|
35
35
|
margin: 0px;
|
|
36
36
|
font-family: "Poppins", "sans-serif";
|
|
37
|
-
color: ${
|
|
37
|
+
color: ${K.default.text.neutralHard};
|
|
38
38
|
font-size: 40px;
|
|
39
39
|
line-height: 48px;
|
|
40
|
-
${
|
|
40
|
+
${G.default.lessThan("medium")`
|
|
41
41
|
font-size: 28px;
|
|
42
42
|
line-height: 36px;
|
|
43
43
|
`}
|
|
44
|
-
`,
|
|
44
|
+
`,Be=U.default.h3`
|
|
45
45
|
padding: 0px;
|
|
46
46
|
margin: 0px;
|
|
47
47
|
font-family: "Poppins", "sans-serif";
|
|
48
|
-
color: ${
|
|
48
|
+
color: ${K.default.text.neutralHard};
|
|
49
49
|
font-size: 28px;
|
|
50
50
|
line-height: 36px;
|
|
51
|
-
${
|
|
51
|
+
${G.default.lessThan("medium")`
|
|
52
52
|
font-size: 24px;
|
|
53
53
|
line-height: 32px;
|
|
54
54
|
`}
|
|
55
|
-
`,
|
|
55
|
+
`,He=U.default.h4`
|
|
56
56
|
padding: 0px;
|
|
57
57
|
margin: 0px;
|
|
58
58
|
font-family: "Poppins", "sans-serif";
|
|
59
|
-
color: ${
|
|
59
|
+
color: ${K.default.text.neutralHard};
|
|
60
60
|
font-size: 24px;
|
|
61
61
|
line-height: 32px;
|
|
62
|
-
${
|
|
62
|
+
${G.default.lessThan("medium")`
|
|
63
63
|
font-size: 20px;
|
|
64
64
|
line-height: 28px;
|
|
65
65
|
`}
|
|
66
|
-
`,
|
|
66
|
+
`,Pe=U.default.h5`
|
|
67
67
|
padding: 0px;
|
|
68
68
|
margin: 0px;
|
|
69
69
|
font-family: "Poppins", "sans-serif";
|
|
70
|
-
color: ${
|
|
70
|
+
color: ${K.default.text.neutralHard};
|
|
71
71
|
font-size: 20px;
|
|
72
72
|
line-height: 28px;
|
|
73
|
-
${
|
|
73
|
+
${G.default.lessThan("medium")`
|
|
74
74
|
font-size: 18px;
|
|
75
75
|
line-height: 26px;
|
|
76
76
|
`}
|
|
77
|
-
`,
|
|
77
|
+
`,Ae=U.default.h6`
|
|
78
78
|
padding: 0px;
|
|
79
79
|
margin: 0px;
|
|
80
80
|
font-family: "Poppins", "sans-serif";
|
|
81
|
-
color: ${
|
|
81
|
+
color: ${K.default.text.neutralHard};
|
|
82
82
|
font-size: 18px;
|
|
83
83
|
line-height: 26px;
|
|
84
|
-
${
|
|
84
|
+
${G.default.lessThan("medium")`
|
|
85
85
|
font-size: 16px;
|
|
86
86
|
line-height: 24px;
|
|
87
87
|
`}
|
|
88
|
-
`,
|
|
88
|
+
`,Te=o=>{const{children:n,type:i,weight:l,style:r}=o,a=e.__rest(o,["children","type","weight","style"]);return"d1"===i?t.jsx(Oe,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n})):"h1"===i?t.jsx(ze,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n})):"h2"===i?t.jsx(Me,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n})):"h3"===i?t.jsx(Be,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n})):"h4"===i?t.jsx(He,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n})):"h5"===i?t.jsx(Pe,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n})):t.jsx(Ae,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n}))},Ve=U.default.p`
|
|
89
89
|
font-family: "Poppins";
|
|
90
90
|
margin: 0px;
|
|
91
|
-
color: ${
|
|
92
|
-
`,
|
|
91
|
+
color: ${K.default.text.neutralHard};
|
|
92
|
+
`,Ie=o=>{const{style:n,type:i,children:l,weight:r}=o,a=e.__rest(o,["style","type","children","weight"]);return t.jsx(Ve,Object.assign({style:Object.assign({fontSize:"p"===i?15:"p2"===i?14:"c1"===i?13:"c2"===i?12:"o1"===i?13:12,fontWeight:"semibold"===r?600:"medium"===r?500:400,textTransform:"o1"===i||"o2"===i?"uppercase":"none"},n)},a,{children:l}))},Re=U.default.p`
|
|
93
93
|
padding: 0px;
|
|
94
94
|
margin: 0px;
|
|
95
95
|
font-family: "Poppins", "sans-serif";
|
|
96
|
-
color: ${
|
|
96
|
+
color: ${K.default.text.neutralHard};
|
|
97
97
|
font-size: 18px;
|
|
98
|
-
${
|
|
98
|
+
${G.default.lessThan("medium")`
|
|
99
99
|
font-size: 15px;
|
|
100
100
|
`}
|
|
101
|
-
`,
|
|
101
|
+
`,Ze=U.default.p`
|
|
102
102
|
padding: 0px;
|
|
103
103
|
margin: 0px;
|
|
104
104
|
font-family: "Poppins", "sans-serif";
|
|
105
|
-
color: ${
|
|
105
|
+
color: ${K.default.text.neutralHard};
|
|
106
106
|
font-size: 15px;
|
|
107
|
-
${
|
|
107
|
+
${G.default.lessThan("medium")`
|
|
108
108
|
font-size: 14px;
|
|
109
109
|
`}
|
|
110
|
-
`,
|
|
110
|
+
`,qe=U.default.p`
|
|
111
111
|
padding: 0px;
|
|
112
112
|
margin: 0px;
|
|
113
113
|
font-family: "Poppins", "sans-serif";
|
|
114
|
-
color: ${
|
|
114
|
+
color: ${K.default.text.neutralHard};
|
|
115
115
|
font-size: 13px;
|
|
116
|
-
${
|
|
116
|
+
${G.default.lessThan("medium")`
|
|
117
117
|
font-size: 13px;
|
|
118
118
|
`}
|
|
119
|
-
`,
|
|
119
|
+
`,Ne=o=>{const{children:n,type:i,weight:l,style:r}=o,a=e.__rest(o,["children","type","weight","style"]);return"b1"===i?t.jsx(Re,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n})):"b2"===i?t.jsx(Ze,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n})):t.jsx(qe,Object.assign({style:Object.assign({fontWeight:"semibold"===l?600:"medium"===l?500:400},r)},a,{children:n}))},We=e=>"d1"===e.type||"h1"===e.type||"h2"===e.type||"h3"===e.type||"h4"===e.type||"h5"===e.type||"h6"===e.type?t.jsx(Te,Object.assign({role:"header"},e,{children:e.children})):"p"===e.type||"p2"===e.type||"c1"===e.type||"c2"===e.type||"o1"===e.type||"o2"===e.type?t.jsx(Ie,Object.assign({role:"paragraph"},e,{children:e.children})):"b1"===e.type||"b2"===e.type||"b3"===e.type?t.jsx(Ne,Object.assign({role:"button"},e,{children:e.children})):null,Ye=U.default.div`
|
|
120
120
|
position: relative;
|
|
121
121
|
height: 6px;
|
|
122
|
-
`,
|
|
122
|
+
`,Ue=U.default.div`
|
|
123
123
|
display: flex;
|
|
124
124
|
flex: 1;
|
|
125
|
-
background-color: ${
|
|
125
|
+
background-color: ${X.default.background.soft};
|
|
126
126
|
border-radius: 100px;
|
|
127
127
|
overflow: hidden;
|
|
128
|
-
`,
|
|
129
|
-
background: ${e=>e.color?e.color:
|
|
128
|
+
`,Xe=U.default.div`
|
|
129
|
+
background: ${e=>e.color?e.color:X.default.background.primary};
|
|
130
130
|
width: ${e=>e.$progress+"%"};
|
|
131
131
|
height: 6px;
|
|
132
132
|
transition: ${e=>"width "+(e.$animationTime?e.$animationTime:0)+"s ease-out "+(e.$animationDelay?e.$animationDelay:0)+"s"};
|
|
133
|
-
`,
|
|
133
|
+
`,Ge=U.default.div`
|
|
134
134
|
position: absolute;
|
|
135
|
-
background-color: ${
|
|
135
|
+
background-color: ${K.default.surface.primary};
|
|
136
136
|
padding: 0px 4px;
|
|
137
137
|
border-radius: 4px;
|
|
138
138
|
top: -28px;
|
|
@@ -141,7 +141,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
141
141
|
flex-direction: column;
|
|
142
142
|
align-items: center;
|
|
143
143
|
transform-origin: bottom center;
|
|
144
|
-
`,
|
|
144
|
+
`,Ke=U.default.div`
|
|
145
145
|
transform-origin: left bottom;
|
|
146
146
|
overflow: hidden;
|
|
147
147
|
position: absolute;
|
|
@@ -154,21 +154,21 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
154
154
|
bottom: 24px;
|
|
155
155
|
left: 24px;
|
|
156
156
|
right: 24px;
|
|
157
|
-
background: ${e=>{var t;return"success"===e.$type?
|
|
157
|
+
background: ${e=>{var t;return"success"===e.$type?X.default.status.color.success:"error"===e.$type?X.default.status.color.error:null===(t=e.style)||void 0===t?void 0:t.background}};
|
|
158
158
|
box-shadow: 2px 0px 20px rgba(0, 0, 0, 0.09), 0px 4px 8px rgba(0, 0, 0, 0.1);
|
|
159
159
|
border-radius: 4px;
|
|
160
160
|
z-index: 100;
|
|
161
|
-
animation: ${e=>e.$visible?
|
|
162
|
-
${
|
|
163
|
-
`:
|
|
164
|
-
${
|
|
161
|
+
animation: ${e=>e.$visible?o.css`
|
|
162
|
+
${Je} 0.3s ease-out forwards
|
|
163
|
+
`:o.css`
|
|
164
|
+
${et} 0.3s ease-in forwards
|
|
165
165
|
`};
|
|
166
|
-
`,
|
|
166
|
+
`,Qe=U.default.div`
|
|
167
167
|
display: flex;
|
|
168
168
|
flex-direction: row;
|
|
169
169
|
align-items: center;
|
|
170
170
|
margin: 16px;
|
|
171
|
-
`,
|
|
171
|
+
`,Je=o.keyframes`
|
|
172
172
|
from {
|
|
173
173
|
opacity: 0;
|
|
174
174
|
transform: scale(0, 0)
|
|
@@ -177,7 +177,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
177
177
|
opacity: 1;
|
|
178
178
|
transform: scale(1, 1);
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`,et=o.keyframes`
|
|
181
181
|
from {
|
|
182
182
|
opacity: 1;
|
|
183
183
|
transform: scale(1, 1);
|
|
@@ -186,7 +186,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
186
186
|
opacity: 0;
|
|
187
187
|
transform: scale(0, 0);
|
|
188
188
|
}
|
|
189
|
-
`,
|
|
189
|
+
`,tt=U.default.button`
|
|
190
190
|
display: flex;
|
|
191
191
|
flex-direction: row;
|
|
192
192
|
align-items: center;
|
|
@@ -196,19 +196,19 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
196
196
|
border-radius: 1000px;
|
|
197
197
|
border: none;
|
|
198
198
|
color: white;
|
|
199
|
-
background-color: ${e=>e.$success?
|
|
199
|
+
background-color: ${e=>e.$success?X.default.status.color.success:X.default.background.primary};
|
|
200
200
|
opacity: ${e=>e.disabled?.48:1};
|
|
201
201
|
transition: transform 0.05s ease-out, width 0.2s ease-out,
|
|
202
202
|
background-color 0.2s ease-out, opacity 0.2s ease-out;
|
|
203
203
|
min-width: ${e=>"small"===e.$size?"80px":"100px"};
|
|
204
204
|
cursor: ${e=>e.disabled||e.$loading||e.$countdown?"default":"pointer"};
|
|
205
205
|
&:hover {
|
|
206
|
-
background-color: ${e=>e.disabled||e.$loading||e.$countdown?
|
|
206
|
+
background-color: ${e=>e.disabled||e.$loading||e.$countdown?X.default.background.primary:X.default.status.primary.hover};
|
|
207
207
|
}
|
|
208
208
|
&:active {
|
|
209
209
|
transform: ${e=>e.disabled||e.$loading||e.$countdown?"none":"scale(0.95)"};
|
|
210
210
|
}
|
|
211
|
-
`,
|
|
211
|
+
`,ot=U.default(J.default)`
|
|
212
212
|
display: flex;
|
|
213
213
|
align-items: center;
|
|
214
214
|
gap: 6px;
|
|
@@ -216,7 +216,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
216
216
|
width: 100%;
|
|
217
217
|
margin-left: ${e=>e.$icon?6:0};
|
|
218
218
|
color: white;
|
|
219
|
-
`,
|
|
219
|
+
`,nt=o=>{var n,i,l,a,s,{loading:d,success:u,size:p,animationDelay:f,onSuccess:x,icon:h,iconPosition:g,animationTime:m,countdown:y,onCountdownEnd:b}=o,v=e.__rest(o,["loading","success","size","animationDelay","onSuccess","icon","iconPosition","animationTime","countdown","onCountdownEnd"]);const[w,j]=r.useState(y||0);return r.useEffect(()=>{if(y){const e=setInterval(()=>{j(e=>e-1)},1e3);return w<=0&&(clearInterval(e),b&&b()),()=>clearInterval(e)}j(0)},[w,y]),t.jsx(tt,Object.assign({role:"button",type:"button",$loading:d,$countdown:w>0,$success:u,$size:p},v,{onClick:e=>v.onClick&&!d&&w<=0&&!v.disabled&&v.onClick(e),children:u?t.jsx(c.Player,{style:{height:"small"===p?25:30,width:"small"===p?25:30},autoplay:!0,loop:!1,keepLastFrame:!0,src:oe.default,onEvent:e=>{"complete"===e&&x&&x(!0)}}):d?t.jsx(c.Player,{style:{width:"small"===p?80:100},autoplay:!0,loop:!0,src:ne.default}):t.jsxs(t.Fragment,{children:[h&&"right"!==g&&h,t.jsxs(ot,{role:"label",type:"p",weight:"medium",$size:p,$icon:!!h,style:{width:"unset",margin:"0px 6px",fontWeight:(null===(n=v.style)||void 0===n?void 0:n.fontWeight)?null===(i=v.style)||void 0===i?void 0:i.fontWeight:500,fontSize:(null===(l=v.style)||void 0===l?void 0:l.fontSize)?null===(a=v.style)||void 0===a?void 0:a.fontSize:"small"===p?14:15,color:(null===(s=v.style)||void 0===s?void 0:s.color)?v.style.color:"white",transition:"opacity "+(m||.3)+"s ease-out, transform "+(m||.3)+"s ease-out"},children:[v.children,w>0&&` ${w} segundos`]}),h&&"right"===g&&h]})}))},it=U.default.button`
|
|
220
220
|
display: flex;
|
|
221
221
|
flex-direction: row;
|
|
222
222
|
align-items: center;
|
|
@@ -224,9 +224,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
224
224
|
height: ${e=>"small"===e.$size?"36px":"56px"};
|
|
225
225
|
padding: ${e=>e.$loading?"0px":"small"===e.$size?"0px 12px":"0px 24px"};
|
|
226
226
|
border-radius: 1000px;
|
|
227
|
-
border: ${e=>e.$success?"none":"1px solid "+(e.color?e.color:
|
|
227
|
+
border: ${e=>e.$success?"none":"1px solid "+(e.color?e.color:X.default.background.primary)};
|
|
228
228
|
opacity: ${e=>e.disabled?.48:1};
|
|
229
|
-
background-color: ${e=>e.$success?
|
|
229
|
+
background-color: ${e=>e.$success?X.default.status.color.success:"transparent"};
|
|
230
230
|
transition:
|
|
231
231
|
transform 0.05s ease-out,
|
|
232
232
|
width 0.2s ease-out,
|
|
@@ -235,16 +235,16 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
235
235
|
gap: 8px;
|
|
236
236
|
cursor: ${e=>e.disabled||e.$loading?"default":"pointer"};
|
|
237
237
|
&:hover {
|
|
238
|
-
background-color: ${e=>e.disabled||e.$loading?"transparent":
|
|
238
|
+
background-color: ${e=>e.disabled||e.$loading?"transparent":X.default.background.primary+"30"};
|
|
239
239
|
}
|
|
240
240
|
&:active {
|
|
241
241
|
transform: ${e=>e.disabled||e.$loading?"none":"scale(0.95)"};
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
`,lt=U.default(J.default)`
|
|
244
244
|
font-size: ${e=>"small"===e.$size?"14px":"15px"};
|
|
245
245
|
width: 100%;
|
|
246
246
|
color: white;
|
|
247
|
-
`,
|
|
247
|
+
`,rt=o=>{var n,i,l,a,s,{loading:d,success:u,size:p,animationDelay:f,onSuccess:x,icon:h,iconPosition:g,animationTime:m}=o,y=e.__rest(o,["loading","success","size","animationDelay","onSuccess","icon","iconPosition","animationTime"]);const[b,v]=r.useState(!0),[w,j]=r.useState(y.children),[C,$]=r.useState(void 0);r.useEffect(()=>{k()},[]),r.useEffect(()=>{w!==y.children&&(v(!1),L(f||600).then(()=>{v(!0),j(y.children)}))},[y.children]);const k=()=>{var e;const t=JSON.stringify(ne.default);if(null===(e=y.style)||void 0===e?void 0:e.color){var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(y.style.color);if(o){const e={r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)};let n=t.replaceAll("[1,1,1]",`[${e.r/255},${e.g/255},${e.b/255}]`);$(JSON.parse(n))}else{let e=t.replaceAll("[1,1,1]",`[0,${143/255},${245/255}]`);$(JSON.parse(e))}}else{let e=t.replaceAll("[1,1,1]",`[0,${143/255},${245/255}]`);$(JSON.parse(e))}},L=e=>new Promise(t=>setTimeout(t,e));return t.jsx(it,Object.assign({role:"button"},y,{onClick:e=>y.onClick&&!d&&!y.disabled&&y.onClick(e),children:u?t.jsx(c.Player,{style:{height:"small"===p?25:30,width:"small"===p?25:30},autoplay:!0,loop:!1,keepLastFrame:!0,src:oe.default,onEvent:e=>{"complete"===e&&x&&x(!0)}}):d&&C?t.jsx(c.Player,{style:{width:"small"===p?80:100},autoplay:!0,loop:!0,src:C}):t.jsxs(t.Fragment,{children:[h&&"right"!==g&&h,t.jsx(lt,{role:"label",type:"p",weight:"medium",$size:p,style:{fontWeight:(null===(n=y.style)||void 0===n?void 0:n.fontWeight)?null===(i=y.style)||void 0===i?void 0:i.fontWeight:500,fontSize:(null===(l=y.style)||void 0===l?void 0:l.fontSize)?null===(a=y.style)||void 0===a?void 0:a.fontSize:"small"===p?14:15,color:(null===(s=y.style)||void 0===s?void 0:s.color)?y.style.color:X.default.text.primary,opacity:b?1:0,transform:b?"translateY(0px)":"translateY(10px)",transition:"opacity "+(m||.3)+"s ease-out, transform "+(m||.3)+"s ease-out"},children:w}),h&&"right"===g&&h]})}))},at=U.default.button`
|
|
248
248
|
display: flex;
|
|
249
249
|
flex-direction: row;
|
|
250
250
|
align-items: center;
|
|
@@ -258,15 +258,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
258
258
|
gap: 8px;
|
|
259
259
|
font-family: "Poppins", "sans-serif";
|
|
260
260
|
font-size: ${e=>"small"===e.$size?"14px":"16px"};
|
|
261
|
-
color: ${e=>{var t;return(null===(t=e.style)||void 0===t?void 0:t.color)?e.style.color:
|
|
261
|
+
color: ${e=>{var t;return(null===(t=e.style)||void 0===t?void 0:t.color)?e.style.color:X.default.text.full}};
|
|
262
262
|
opacity: ${e=>e.disabled?.5:1};
|
|
263
263
|
&:hover {
|
|
264
|
-
background-color: ${e=>e.disabled?"transparent":
|
|
264
|
+
background-color: ${e=>e.disabled?"transparent":X.default.status.neutral.hover};
|
|
265
265
|
}
|
|
266
266
|
&:active {
|
|
267
267
|
transform: scale(0.95);
|
|
268
268
|
}
|
|
269
|
-
`,
|
|
269
|
+
`,st=o=>{var{size:n,icon:i,iconPosition:l,loading:r}=o,a=e.__rest(o,["size","icon","iconPosition","loading"]);return t.jsxs(at,Object.assign({role:"button"},a,{disabled:a.disabled||r,onClick:e=>a.onClick&&!r&&!a.disabled&&a.onClick(e),children:[i&&"right"!==l&&i,a.children,i&&"right"===l&&i]}))},dt=U.default.button`
|
|
270
270
|
display: inline-flex;
|
|
271
271
|
padding: 0px;
|
|
272
272
|
cursor: ${e=>!e.disabled&&"pointer"};
|
|
@@ -283,28 +283,28 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
283
283
|
opacity 0.2s ease-out;
|
|
284
284
|
font-family: "Poppins", "sans-serif";
|
|
285
285
|
font-size: 14px;
|
|
286
|
-
color: ${e=>{var t;return(null===(t=e.style)||void 0===t?void 0:t.color)?e.style.color:
|
|
286
|
+
color: ${e=>{var t;return(null===(t=e.style)||void 0===t?void 0:t.color)?e.style.color:X.default.text.full}};
|
|
287
287
|
&:active {
|
|
288
288
|
transform: scale(0.95);
|
|
289
289
|
}
|
|
290
|
-
`,
|
|
290
|
+
`,ct=U.default.div`
|
|
291
291
|
display: inline-flex;
|
|
292
292
|
padding: 12px;
|
|
293
293
|
border-radius: 1000px;
|
|
294
294
|
align-items: center;
|
|
295
295
|
justify-content: center;
|
|
296
296
|
&:hover {
|
|
297
|
-
background-color: ${e=>!e.$disabled&&
|
|
297
|
+
background-color: ${e=>!e.$disabled&&X.default.status.neutral.hover};
|
|
298
298
|
}
|
|
299
299
|
&:active {
|
|
300
300
|
transform: scale(0.95);
|
|
301
301
|
}
|
|
302
|
-
`,
|
|
302
|
+
`,ut=U.default.div`
|
|
303
303
|
margin-top: 4px;
|
|
304
|
-
`,
|
|
304
|
+
`,pt=U.default.img`
|
|
305
305
|
height: 24px;
|
|
306
306
|
width: 24px;
|
|
307
|
-
`,
|
|
307
|
+
`,ft=o=>{var{src:n,icon:i,loading:l}=o,r=e.__rest(o,["src","icon","loading"]);return t.jsxs(dt,Object.assign({role:"button"},r,{disabled:r.disabled||l,onClick:e=>r.onClick&&!l&&!r.disabled&&r.onClick(e),children:[t.jsx(ct,{$disabled:r.disabled,children:i||t.jsx(pt,{src:n})}),r.children&&t.jsx(ut,{children:r.children})]}))},xt=U.default.button`
|
|
308
308
|
display: flex;
|
|
309
309
|
gap: 8px;
|
|
310
310
|
align-items: center;
|
|
@@ -312,26 +312,26 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
312
312
|
border: none;
|
|
313
313
|
cursor: ${e=>e.disabled||e.$loading?"default":"pointer"};
|
|
314
314
|
opacity: ${e=>e.disabled||e.$loading?.5:1};
|
|
315
|
-
color: ${e=>{var t;return(null===(t=e.style)||void 0===t?void 0:t.color)?e.style.color:
|
|
315
|
+
color: ${e=>{var t;return(null===(t=e.style)||void 0===t?void 0:t.color)?e.style.color:X.default.text.primary}};
|
|
316
316
|
font-family: "Poppins", "sans-serif";
|
|
317
317
|
font-size: ${e=>"small"===e.$size?"14px":"16px"};
|
|
318
318
|
&:hover {
|
|
319
319
|
text-decoration: ${e=>e.disabled||e.$loading?"none":"underline"};
|
|
320
320
|
}
|
|
321
|
-
`,
|
|
321
|
+
`,ht=o=>{var{icon:n,iconPosition:i,loading:l,size:r}=o,a=e.__rest(o,["icon","iconPosition","loading","size"]);return t.jsxs(xt,Object.assign({role:"button",$loading:l,$size:r,disabled:a.disabled},a,{onClick:e=>a.onClick&&!l&&!a.disabled&&a.onClick(e),children:["right"!==i?n:void 0,a.children,"right"===i?n:void 0]}))},gt=U.default.input`
|
|
322
322
|
font-family: "Poppins";
|
|
323
323
|
font-size: 14px;
|
|
324
324
|
border: none;
|
|
325
325
|
outline: none;
|
|
326
326
|
padding: 0px;
|
|
327
327
|
background-color: transparent;
|
|
328
|
-
color: ${
|
|
328
|
+
color: ${K.default.text.neutralHard};
|
|
329
329
|
width: 100%;
|
|
330
330
|
cursor: inherit;
|
|
331
331
|
&::placeholder {
|
|
332
|
-
color: ${
|
|
332
|
+
color: ${K.default.text.neutralMedium};
|
|
333
333
|
}
|
|
334
|
-
`,
|
|
334
|
+
`,mt=r.forwardRef((e,o)=>t.jsx(gt,Object.assign({role:"input",ref:o},e))),yt=o.keyframes`
|
|
335
335
|
from {
|
|
336
336
|
opacity: 0;
|
|
337
337
|
height: 0;
|
|
@@ -342,7 +342,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
342
342
|
height: 20px;
|
|
343
343
|
transform: translateY(0);
|
|
344
344
|
}
|
|
345
|
-
`,
|
|
345
|
+
`,bt=U.default.div``,vt=U.default.div`
|
|
346
346
|
position: relative;
|
|
347
347
|
display: flex;
|
|
348
348
|
flex: 1;
|
|
@@ -352,21 +352,21 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
352
352
|
min-height: 40px;
|
|
353
353
|
outline: none;
|
|
354
354
|
box-shadow: 0 0 0
|
|
355
|
-
${e=>e.$focus?"1px "+
|
|
355
|
+
${e=>e.$focus?"1px "+K.default.border.neutralHard:"none"};
|
|
356
356
|
padding: 0px 8px;
|
|
357
|
-
background-color: ${e=>e.$focus?"white":e.$error?
|
|
357
|
+
background-color: ${e=>e.$focus?"white":e.$error?K.default.surface.redSoft:K.default.surface.neutralSoft};
|
|
358
358
|
opacity: ${e=>e.$disabled?.48:1};
|
|
359
|
-
`,
|
|
359
|
+
`,wt=U.default.div`
|
|
360
360
|
margin: 2px 8px 0px;
|
|
361
361
|
display: flex;
|
|
362
|
-
color: ${
|
|
363
|
-
animation-name: ${e=>e.$error?
|
|
362
|
+
color: ${K.default.text.red};
|
|
363
|
+
animation-name: ${e=>e.$error?yt:"none"};
|
|
364
364
|
animation-duration: 0.25s;
|
|
365
|
-
`,
|
|
365
|
+
`,jt=U.default.div`
|
|
366
366
|
display: flex;
|
|
367
367
|
flex: 1;
|
|
368
368
|
flex-direction: column;
|
|
369
|
-
`,
|
|
369
|
+
`,Ct=r.forwardRef((o,n)=>{const{LeftContent:i,design:l,error:a,containerStyle:s}=o,d=e.__rest(o,["LeftContent","design","error","containerStyle"]),[c,u]=r.useState(void 0),[p,f]=r.useState(!1);r.useEffect(()=>{u(o.value)},[o.value]);return t.jsxs(bt,{style:o.containerStyle,children:[t.jsxs(vt,{$error:!!o.error,style:o.style,$focus:p,$disabled:!!o.disabled,children:[i,t.jsx(jt,{children:t.jsx(mt,Object.assign({},d,{ref:n,value:c,onChange:e=>{u(e.target.value),o.onChange&&o.onChange(e)},onFocus:e=>{f(!0),o.onFocus&&o.onFocus(e)},onBlur:e=>{f(!1),o.onBlur&&o.onBlur(e)}}))})]}),a&&t.jsx(wt,{role:"error",$error:!!o.error,children:t.jsx(We,{type:"p",weight:"medium",style:{color:K.default.text.red,fontSize:14,lineHeight:"18px"},children:a})})]})}),$t=o.keyframes`
|
|
370
370
|
from {
|
|
371
371
|
opacity: 0;
|
|
372
372
|
height: 0;
|
|
@@ -377,7 +377,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
377
377
|
height: 20px;
|
|
378
378
|
transform: translateY(0);
|
|
379
379
|
}
|
|
380
|
-
`,
|
|
380
|
+
`,kt=U.default.div``,Lt=U.default.div`
|
|
381
381
|
display: flex;
|
|
382
382
|
flex: 1;
|
|
383
383
|
align-items: center;
|
|
@@ -386,29 +386,29 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
386
386
|
min-height: 56px;
|
|
387
387
|
outline: none;
|
|
388
388
|
box-shadow: 0 0 0
|
|
389
|
-
${e=>e.$focus?"2px "+
|
|
389
|
+
${e=>e.$focus?"2px "+K.default.border.neutralMedium:e.$error?"1px "+K.default.text.red:"1px "+K.default.border.neutralSoft};
|
|
390
390
|
padding: 0px 16px;
|
|
391
|
-
background-color: ${e=>e.$disabled?
|
|
391
|
+
background-color: ${e=>e.$disabled?K.default.border.neutralSoft:"white"};
|
|
392
392
|
cursor: ${e=>e.$disabled?"default":"text"};
|
|
393
393
|
opacity: ${e=>e.$disabled?.4:1};
|
|
394
|
-
`,
|
|
394
|
+
`,St=U.default.div`
|
|
395
395
|
margin: 0px 8px;
|
|
396
396
|
display: flex;
|
|
397
|
-
animation-name: ${e=>e.$error
|
|
397
|
+
animation-name: ${e=>e.$error?$t:"none"};
|
|
398
398
|
animation-duration: 0.25s;
|
|
399
|
-
`,
|
|
399
|
+
`,Ft=U.default.div`
|
|
400
400
|
position: relative;
|
|
401
401
|
display: flex;
|
|
402
402
|
flex: 1;
|
|
403
403
|
flex-direction: column;
|
|
404
|
-
`,
|
|
404
|
+
`,_t=U.default(J.default)`
|
|
405
405
|
position: absolute;
|
|
406
406
|
top: ${e=>e.$focus?"-2px":"6px"};
|
|
407
407
|
left: 0px;
|
|
408
|
-
color: ${
|
|
408
|
+
color: ${K.default.text.neutralMedium};
|
|
409
409
|
font-size: ${e=>e.$focus?"12px":"15px"} !important;
|
|
410
410
|
transition: top 0.1s ease-out, font-size 0.1s ease-out;
|
|
411
|
-
`,
|
|
411
|
+
`,Et=r.forwardRef((o,n)=>{var i,l,a,s;const d=r.useRef(null),[c,u]=r.useState(!1),[p,f]=r.useState(!1),{LeftContent:x,containerStyle:h,error:g,design:m}=o,y=e.__rest(o,["LeftContent","containerStyle","error","design"]);r.useImperativeHandle(n,()=>d.current),r.useEffect(()=>{f(!(!o.defaultValue&&!o.value))},[o.defaultValue,o.value]);return t.jsxs(kt,{style:h,children:[t.jsxs(Lt,{$error:!!g,style:o.style,$focus:c,$disabled:!!o.disabled,onClick:()=>{var e;null===(e=d.current)||void 0===e||e.focus()},children:[x,t.jsxs(Ft,{children:[t.jsx(_t,{role:"placeholder",type:"p",$focus:!!(c||p&&(null===(i=d.current)||void 0===i?void 0:i.value)||(null===(l=d.current)||void 0===l?void 0:l.value)),$error:!!g,children:o.placeholder}),t.jsx(mt,Object.assign({ref:d},y,{placeholder:"",style:Object.assign({opacity:c||p&&(null===(a=d.current)||void 0===a?void 0:a.value)||(null===(s=d.current)||void 0===s?void 0:s.value)?"1":"0",marginTop:14},o.style),onFocus:e=>{u(!0),o.onFocus&&o.onFocus(e)},onBlur:e=>{u(!1),o.onBlur&&o.onBlur(e)}}))]})]}),g&&t.jsx(St,{role:"error",$error:!!o.error,children:t.jsx(J.default,{type:"p",weight:"medium",style:{color:K.default.text.red,marginTop:4,fontSize:13,lineHeight:"18px"},children:g})})]})}),Dt=o.keyframes`
|
|
412
412
|
from {
|
|
413
413
|
opacity: 0;
|
|
414
414
|
height: 0;
|
|
@@ -419,7 +419,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
419
419
|
height: 20px;
|
|
420
420
|
transform: translateY(0);
|
|
421
421
|
}
|
|
422
|
-
`,
|
|
422
|
+
`,Ot=U.default.div``,zt=U.default.div`
|
|
423
423
|
position: relative;
|
|
424
424
|
display: flex;
|
|
425
425
|
flex: 1;
|
|
@@ -429,17 +429,17 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
429
429
|
min-height: 34px;
|
|
430
430
|
outline: none;
|
|
431
431
|
border-bottom: 1px solid
|
|
432
|
-
${e=>e.$focus?
|
|
432
|
+
${e=>e.$focus?K.default.border.neutralHard:K.default.border.neutralMedium};
|
|
433
433
|
opacity: ${e=>e.$disabled?.5:1};
|
|
434
|
-
`,
|
|
435
|
-
animation-name: ${e=>e.$error?
|
|
434
|
+
`,Mt=U.default.div`
|
|
435
|
+
animation-name: ${e=>e.$error?Dt:"none"};
|
|
436
436
|
animation-duration: 0.25s;
|
|
437
437
|
margin: 0px;
|
|
438
|
-
`,
|
|
438
|
+
`,Bt=U.default.div`
|
|
439
439
|
display: flex;
|
|
440
440
|
flex: 1;
|
|
441
441
|
flex-direction: column;
|
|
442
|
-
`,
|
|
442
|
+
`,Ht=r.forwardRef((o,n)=>{const{LeftContent:i,design:l,error:a,containerStyle:s}=o,d=e.__rest(o,["LeftContent","design","error","containerStyle"]),c=r.useRef(null),[u,p]=r.useState(void 0),[f,x]=r.useState(!1);r.useImperativeHandle(n,()=>c.current),r.useEffect(()=>{p(o.value)},[o.value]);return t.jsxs(Ot,{style:o.containerStyle,children:[t.jsxs(zt,{$error:!!o.error,style:o.style,$focus:f,$disabled:!!o.disabled,children:[i,t.jsx(Bt,{children:t.jsx(mt,Object.assign({ref:c},d,{value:u,onChange:e=>{p(e.target.value),o.onChange&&o.onChange(e)},onFocus:e=>{x(!0),o.onFocus&&o.onFocus(e)},onBlur:e=>{x(!1),o.onBlur&&o.onBlur(e)}}))})]}),a&&t.jsx(Mt,{role:"error",$error:!!o.error,children:t.jsx(J.default,{type:"p",weight:"medium",style:{color:K.default.text.red,marginTop:4,fontSize:13,lineHeight:"18px"},children:a})})]})}),Pt=r.forwardRef((e,o)=>"primary"===e.design?t.jsx(Ct,Object.assign({},e,{ref:o})):"secondary"===e.design?t.jsx(Et,Object.assign({},e,{ref:o})):"third"===e.design?t.jsx(Ht,Object.assign({},e,{ref:o})):t.jsx(Et,Object.assign({},e,{design:"secondary",ref:o}))),At=o.keyframes`
|
|
443
443
|
from {
|
|
444
444
|
opacity: 0;
|
|
445
445
|
height: 0;
|
|
@@ -450,56 +450,56 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
450
450
|
height: 20px;
|
|
451
451
|
transform: translateY(0);
|
|
452
452
|
}
|
|
453
|
-
`,
|
|
453
|
+
`,Tt=U.default.div`
|
|
454
454
|
display: flex;
|
|
455
455
|
flex-direction: column;
|
|
456
456
|
gap: 8px;
|
|
457
|
-
`,
|
|
457
|
+
`,Vt=U.default.div`
|
|
458
458
|
display: flex;
|
|
459
459
|
flex-direction: row;
|
|
460
460
|
gap: 8px;
|
|
461
|
-
`,
|
|
461
|
+
`,It=U.default.div`
|
|
462
462
|
margin: 0px 8px;
|
|
463
463
|
font-style: normal;
|
|
464
464
|
font-weight: 500;
|
|
465
465
|
font-size: 14px;
|
|
466
466
|
line-height: 12px;
|
|
467
467
|
display: flex;
|
|
468
|
-
color: ${
|
|
469
|
-
animation-name: ${e=>e.$error?
|
|
468
|
+
color: ${K.default.text.red};
|
|
469
|
+
animation-name: ${e=>e.$error?At:"none"};
|
|
470
470
|
animation-duration: 0.25s;
|
|
471
|
-
`,
|
|
471
|
+
`,Rt=U.default.div`
|
|
472
472
|
display: flex;
|
|
473
473
|
align-items: center;
|
|
474
474
|
height: 48px;
|
|
475
475
|
border-radius: 100px;
|
|
476
476
|
outline: none;
|
|
477
477
|
box-shadow: 0 0 0
|
|
478
|
-
${e=>e.$focus?"2px "+
|
|
478
|
+
${e=>e.$focus?"2px "+K.default.border.neutralMedium:"1px "+K.default.border.neutralSoft};
|
|
479
479
|
padding: 0px 20px 0px ${e=>e.$options?"10px":"20px"};
|
|
480
|
-
background-color: ${e=>e.$loading?
|
|
481
|
-
`,
|
|
480
|
+
background-color: ${e=>e.$loading?K.default.surface.neutralSoft:"white"};
|
|
481
|
+
`,Zt=U.default.input`
|
|
482
482
|
display: flex;
|
|
483
483
|
flex: 1;
|
|
484
484
|
font-family: "Poppins";
|
|
485
485
|
font-size: 14px;
|
|
486
486
|
border: none;
|
|
487
|
-
color: ${
|
|
487
|
+
color: ${K.default.text.neutralHard};
|
|
488
488
|
background-color: transparent;
|
|
489
489
|
&::placeholder {
|
|
490
|
-
color: ${e=>(e.$loading,
|
|
490
|
+
color: ${e=>(e.$loading,K.default.text.neutralHard)};
|
|
491
491
|
}
|
|
492
492
|
&:focus {
|
|
493
493
|
outline: none;
|
|
494
494
|
}
|
|
495
|
-
`,
|
|
495
|
+
`,qt=U.default.canvas`
|
|
496
496
|
border: 1px solid #ddd;
|
|
497
497
|
display: ${e=>e.$isRecording?"block":"none"};
|
|
498
498
|
height: 100%;
|
|
499
499
|
width: 100%;
|
|
500
|
-
`,
|
|
500
|
+
`,Nt=U.default.div`
|
|
501
501
|
width: fit-content;
|
|
502
|
-
`,
|
|
502
|
+
`,Wt=U.default.div`
|
|
503
503
|
position: relative;
|
|
504
504
|
display: flex;
|
|
505
505
|
align-items: center;
|
|
@@ -509,19 +509,19 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
509
509
|
min-height: 56px;
|
|
510
510
|
outline: none;
|
|
511
511
|
box-shadow: 0 0 0
|
|
512
|
-
${e=>e.$focus?"2px "+
|
|
512
|
+
${e=>e.$focus?"2px "+K.default.border.neutralMedium:e.$error?"1px "+K.default.text.red:"1px "+K.default.border.neutralSoft};
|
|
513
513
|
background-color: white;
|
|
514
514
|
opacity: ${e=>e.$loading?.5:1};
|
|
515
515
|
cursor: ${e=>e.$loading?"default":"text"};
|
|
516
|
-
`,
|
|
516
|
+
`,Yt=U.default.div`
|
|
517
517
|
margin: 0px 12px;
|
|
518
518
|
font-style: normal;
|
|
519
519
|
font-weight: 500;
|
|
520
520
|
font-size: 14px;
|
|
521
521
|
line-height: 12px;
|
|
522
522
|
display: flex;
|
|
523
|
-
color: ${
|
|
524
|
-
`,
|
|
523
|
+
color: ${K.default.text.red};
|
|
524
|
+
`,Ut=U.default.input`
|
|
525
525
|
display: flex;
|
|
526
526
|
font-family: "DM Mono";
|
|
527
527
|
font-size: 24px;
|
|
@@ -531,19 +531,19 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
531
531
|
height: 100%;
|
|
532
532
|
padding: 0px 16px;
|
|
533
533
|
background-color: transparent;
|
|
534
|
-
color: ${
|
|
534
|
+
color: ${K.default.text.neutralHard};
|
|
535
535
|
cursor: inherit;
|
|
536
536
|
appearance: textfield;
|
|
537
537
|
letter-spacing: 12px;
|
|
538
538
|
&::placeholder {
|
|
539
|
-
color: ${
|
|
539
|
+
color: ${K.default.text.neutralSoft};
|
|
540
540
|
}
|
|
541
541
|
&::-webkit-outer-spin-button,
|
|
542
542
|
&::-webkit-inner-spin-button {
|
|
543
543
|
-webkit-appearance: none;
|
|
544
544
|
margin: 0;
|
|
545
545
|
}
|
|
546
|
-
|
|
546
|
+
`;function Xt(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Xt("\n.DateRangePicker {\n font-family: 'Poppins';\n}\n\n.DateInput{\n\twidth: 110px;\n}\n\n.DateInput_input {\n font-family: 'Poppins';\n font-size: 15px;\n font-weight: unset;\n padding: 11px 8px;\n}\n\n.CalendarDay__selected_span {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.CalendarDay__selected_span:hover {\n background: #ABC7E0;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.CalendarDay__hovered_span {\n background: #ABC7E0;\n border: 1px solid #C4DEF5;\n color: white;\n}\n\n.CalendarDay__hovered_span:hover {\n background: #006BE5;\n border: 1px solid #C4DEF5;\n color: white;\n}\n\n.CalendarDay__selected {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.CalendarDay__selected:hover {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.DateInput_input__focused{\n border-bottom: 0px;\n background-color: #ECF4FB;\n border-radius: 8px;\n}\n\n.DateRangePickerInput_arrow{\n margin: 0px 20px;\n}\n\n.DateRangePickerInput_clearDates{\n\tdisplay: none;\n}");const Gt=U.default.div`
|
|
547
547
|
display: flex;
|
|
548
548
|
align-items: center;
|
|
549
549
|
border-radius: 12px;
|
|
@@ -551,9 +551,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
551
551
|
height: 56px;
|
|
552
552
|
outline: none;
|
|
553
553
|
box-shadow: 0 0 0
|
|
554
|
-
${e=>e.$focus?"2px "+
|
|
554
|
+
${e=>e.$focus?"2px "+K.default.border.neutralMedium:"1px "+K.default.border.neutralSoft};
|
|
555
555
|
padding: 0px 6px;
|
|
556
|
-
|
|
556
|
+
`;Xt(".ReactCrop__child-wrapper {\n height: -webkit-fill-available;\n}");const Kt=U.default.div``,Qt=U.default.div`
|
|
557
557
|
position: absolute;
|
|
558
558
|
top: 0;
|
|
559
559
|
bottom: 0;
|
|
@@ -562,7 +562,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
562
562
|
overflow: hidden;
|
|
563
563
|
z-index: 10000;
|
|
564
564
|
background-color: black;
|
|
565
|
-
|
|
565
|
+
`,Jt=U.default.div`
|
|
566
566
|
display: flex;
|
|
567
567
|
width: -webkit-fill-available;
|
|
568
568
|
width: -moz-available;
|
|
@@ -571,8 +571,8 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
571
571
|
justify-content: flex-end;
|
|
572
572
|
height: 50px;
|
|
573
573
|
background-color: white;
|
|
574
|
-
border-bottom: 1px solid ${
|
|
575
|
-
`,
|
|
574
|
+
border-bottom: 1px solid ${K.default.border.neutralSoft};
|
|
575
|
+
`,eo=U.default.canvas`
|
|
576
576
|
position: absolute;
|
|
577
577
|
bottom: 12px;
|
|
578
578
|
right: 12px;
|
|
@@ -580,20 +580,20 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
580
580
|
width: 150px;
|
|
581
581
|
height: 150px;
|
|
582
582
|
border-radius: 6px;
|
|
583
|
-
`,
|
|
583
|
+
`,to=U.default.div`
|
|
584
584
|
display: flex;
|
|
585
585
|
flex-direction: row;
|
|
586
586
|
cursor: pointer;
|
|
587
587
|
gap: 12px;
|
|
588
588
|
padding: 12px 24px;
|
|
589
|
-
`,
|
|
589
|
+
`,oo=U.default.div`
|
|
590
590
|
display: flex;
|
|
591
591
|
flex-direction: row;
|
|
592
|
-
`,
|
|
592
|
+
`,no=U.default.div`
|
|
593
593
|
height: 48px;
|
|
594
594
|
width: 48px;
|
|
595
595
|
border-radius: 50%;
|
|
596
|
-
background-color: ${
|
|
596
|
+
background-color: ${K.default.text.neutralSoft};
|
|
597
597
|
border: 3px solid white;
|
|
598
598
|
cursor: pointer;
|
|
599
599
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
|
|
@@ -605,14 +605,14 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
605
605
|
&:active {
|
|
606
606
|
transform: scale(0.9);
|
|
607
607
|
}
|
|
608
|
-
`,
|
|
608
|
+
`,io=U.default.div`
|
|
609
609
|
display: flex;
|
|
610
610
|
justify-content: flex-end;
|
|
611
611
|
padding: 0 16px;
|
|
612
|
-
`;const
|
|
612
|
+
`;const lo=U.default.div`
|
|
613
613
|
position: relative;
|
|
614
614
|
display: flex;
|
|
615
|
-
`,
|
|
615
|
+
`,ro=U.default.div`
|
|
616
616
|
position: absolute;
|
|
617
617
|
z-index: 1000;
|
|
618
618
|
background-color: white;
|
|
@@ -623,75 +623,75 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
623
623
|
left: 0px;
|
|
624
624
|
right: 0px;
|
|
625
625
|
padding: 8px;
|
|
626
|
-
`,
|
|
626
|
+
`,ao=U.default.div`
|
|
627
627
|
display: flex;
|
|
628
628
|
flex: 1;
|
|
629
629
|
align-items: center;
|
|
630
630
|
cursor: pointer;
|
|
631
631
|
:hover {
|
|
632
|
-
background-color: ${
|
|
632
|
+
background-color: ${K.default.surface.neutralSoft};
|
|
633
633
|
}
|
|
634
|
-
`,
|
|
634
|
+
`,so=U.default(J.default)`
|
|
635
635
|
display: flex;
|
|
636
636
|
flex: 1;
|
|
637
637
|
text-overflow: ellipsis;
|
|
638
638
|
padding: 8px;
|
|
639
639
|
border-radius: 8px;
|
|
640
|
-
`,
|
|
640
|
+
`,co=U.default.div``,uo=U.default.div`
|
|
641
641
|
display: flex;
|
|
642
642
|
flex-direction: row;
|
|
643
643
|
align-items: center;
|
|
644
644
|
height: 36px;
|
|
645
645
|
border-radius: 4px;
|
|
646
646
|
cursor: pointer;
|
|
647
|
-
`,
|
|
647
|
+
`,po=U.default.div`
|
|
648
648
|
position: absolute;
|
|
649
649
|
top: 64px;
|
|
650
650
|
left: -2px;
|
|
651
651
|
right: -2px;
|
|
652
652
|
z-index: 1000;
|
|
653
|
-
border: 1px solid ${
|
|
653
|
+
border: 1px solid ${X.default.line.soft};
|
|
654
654
|
background-color: white;
|
|
655
655
|
border-radius: 12px;
|
|
656
656
|
box-shadow: 0px 4px 8px 0px #0000001a;
|
|
657
657
|
max-height: 300px;
|
|
658
658
|
overflow: scroll;
|
|
659
|
-
`,
|
|
659
|
+
`,fo=U.default.div`
|
|
660
660
|
display: flex;
|
|
661
661
|
flex-direction: row;
|
|
662
662
|
align-items: center;
|
|
663
663
|
padding: 8px 16px;
|
|
664
664
|
cursor: pointer;
|
|
665
665
|
&:hover {
|
|
666
|
-
background-color: ${
|
|
666
|
+
background-color: ${X.default.background.soft};
|
|
667
667
|
}
|
|
668
|
-
`,
|
|
668
|
+
`,xo=U.default.div`
|
|
669
669
|
display: flex;
|
|
670
670
|
align-items: center;
|
|
671
671
|
justify-content: center;
|
|
672
672
|
height: 24px;
|
|
673
673
|
width: 24px;
|
|
674
674
|
margin-right: 8px;
|
|
675
|
-
`,
|
|
675
|
+
`,ho=U.default(J.default)`
|
|
676
676
|
flex: 1;
|
|
677
|
-
color: ${e=>e.color?e.color:
|
|
677
|
+
color: ${e=>e.color?e.color:X.default.text.full};
|
|
678
678
|
margin-left: 2px;
|
|
679
679
|
margin-top: ${e=>e.$focus?"15px":"0px"};
|
|
680
680
|
transition: margin-top 0.1s ease-out;
|
|
681
681
|
font-size: 14px !important;
|
|
682
|
-
`,
|
|
682
|
+
`,go=e=>{var o;const n=xe,[i,l]=r.useState(!1),[a,d]=r.useState(void 0),[c,u]=r.useState(e.options);r.useEffect(()=>{e.options&&(d(Object.assign(Object.assign({},e.options[0]),{flag:n[e.options[0].countryCode]})),u(e.options))},[]),r.useEffect(()=>(window.addEventListener("mousedown",e=>p(e)),window.removeEventListener("mousedown",()=>{})),[]),r.useEffect(()=>{e.selectedItem&&d(Object.assign(Object.assign({},e.selectedItem),{flag:n[e.selectedItem.countryCode]}))},[e.selectedItem]);const p=t=>{const o=document.getElementById(e.id);o&&(o.contains(t.target)||l(!1))};return t.jsxs(co,{children:[t.jsx(uo,{role:"select",style:e.style,$showMenu:i,onClick:e=>{if(!e)e=window.event;e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),l(!i)},children:a&&t.jsxs(t.Fragment,{children:[t.jsx(xo,{children:t.jsx(a.flag,{height:24,width:24})}),i?t.jsx(s.ChevronUp,{height:20,width:20,color:X.default.text.high}):t.jsx(s.ChevronDown,{height:20,width:20,color:X.default.text.high}),t.jsx(ho,{type:"p",$focus:e.focus,color:null===(o=e.style)||void 0===o?void 0:o.color,children:a.prefix})]})}),i&&t.jsx(po,{role:"menu",id:e.id,style:e.optionStyle,children:c&&c.map((o,i)=>{const r=n[o.countryCode];return t.jsxs(fo,{role:"country"+i,onClick:t=>((t,o)=>{o||(o=window.event);o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation(),d(Object.assign(Object.assign({},t),{flag:n[t.countryCode]})),l(!1),u(e.options),e.onChange&&e.onChange(t)})(o,t),children:[t.jsx(xo,{children:t.jsx(r,{height:24,width:24})}),t.jsxs(J.default,{type:"p",style:{fontSize:14,display:"flex",alignItems:"center"},children:[o.esCountry,t.jsxs("span",{style:{marginLeft:4},children:["(",o.prefix,")"]})]})]},"country"+i)})})]})},mo=U.default.div`
|
|
683
683
|
margin-right: 8px;
|
|
684
|
-
`,
|
|
684
|
+
`,yo=U.default.div`
|
|
685
685
|
display: flex;
|
|
686
686
|
flex-direction: column;
|
|
687
687
|
position: relative;
|
|
688
688
|
width: 100%;
|
|
689
|
-
`,
|
|
689
|
+
`,bo=U.default.input`
|
|
690
690
|
width: 100%;
|
|
691
691
|
-webkit-appearance: none;
|
|
692
692
|
appearance: none;
|
|
693
693
|
height: 8px;
|
|
694
|
-
background: ${e=>"linear-gradient(to right, "+(e.$lineColor?e.$lineColor:
|
|
694
|
+
background: ${e=>"linear-gradient(to right, "+(e.$lineColor?e.$lineColor:K.default.text.primary)+", "+(e.$lineColor?e.$lineColor:K.default.text.primary)+" "+e.$backValue+"px, "+(e.$backgroundColor?e.$backgroundColor:K.default.surface.primaryLow)+" "+e.$backValue+"px, "+(e.$backgroundColor?e.$backgroundColor:K.default.surface.primaryLow)+" 100%)"};
|
|
695
695
|
outline: none;
|
|
696
696
|
border-radius: 10px;
|
|
697
697
|
margin: 18px 0px;
|
|
@@ -704,7 +704,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
704
704
|
border: 2px solid white;
|
|
705
705
|
appearance: none;
|
|
706
706
|
border-radius: 50%;
|
|
707
|
-
background-color: ${e=>e.$thumbColor?e.$thumbColor:
|
|
707
|
+
background-color: ${e=>e.$thumbColor?e.$thumbColor:K.default.surface.primary};
|
|
708
708
|
background-image: url("https://adoptaunabuelo.org/wp-content/uploads/2023/03/heart_icon.svg");
|
|
709
709
|
background-position: center;
|
|
710
710
|
background-size: 18px;
|
|
@@ -719,7 +719,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
719
719
|
border: 2px solid white;
|
|
720
720
|
appearance: none;
|
|
721
721
|
border-radius: 50%;
|
|
722
|
-
background-color: ${e=>e.$thumbColor?e.$thumbColor:
|
|
722
|
+
background-color: ${e=>e.$thumbColor?e.$thumbColor:K.default.surface.primary};
|
|
723
723
|
background-image: url("https://adoptaunabuelo.org/wp-content/uploads/2023/03/heart_icon.svg");
|
|
724
724
|
background-position: center;
|
|
725
725
|
background-size: 18px;
|
|
@@ -732,17 +732,17 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
732
732
|
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
|
-
`,
|
|
735
|
+
`,vo=U.default.div`
|
|
736
736
|
left: ${e=>e.$value+"px"};
|
|
737
737
|
position: absolute;
|
|
738
738
|
top: -8px;
|
|
739
|
-
`,
|
|
739
|
+
`,wo=U.default.span`
|
|
740
740
|
height: 24px;
|
|
741
741
|
padding: 0 1em;
|
|
742
742
|
line-height: 24px;
|
|
743
743
|
text-align: center;
|
|
744
|
-
background: ${
|
|
745
|
-
color: ${
|
|
744
|
+
background: ${K.default.surface.neutralLow};
|
|
745
|
+
color: ${K.default.text.neutralHard};
|
|
746
746
|
font-family: "Poppins";
|
|
747
747
|
font-size: 12px;
|
|
748
748
|
display: block;
|
|
@@ -756,7 +756,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
756
756
|
position: absolute;
|
|
757
757
|
width: 0;
|
|
758
758
|
height: 0;
|
|
759
|
-
border-top: 10px solid ${
|
|
759
|
+
border-top: 10px solid ${K.default.surface.neutralLow};
|
|
760
760
|
border-left: 5px solid transparent;
|
|
761
761
|
border-right: 5px solid transparent;
|
|
762
762
|
top: 100%;
|
|
@@ -764,18 +764,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
764
764
|
margin-left: -5px;
|
|
765
765
|
margin-top: -1px;
|
|
766
766
|
}
|
|
767
|
-
`,
|
|
767
|
+
`,jo=U.default.div`
|
|
768
768
|
display: flex;
|
|
769
769
|
flex: 1;
|
|
770
770
|
flex-direction: row;
|
|
771
771
|
justify-content: space-between;
|
|
772
772
|
margin-top: 8px;
|
|
773
|
-
`,
|
|
773
|
+
`,Co=o.keyframes`
|
|
774
774
|
40% { transform: rotate(0deg) }
|
|
775
775
|
60% { transform: rotate(-10deg) scale(1.2) }
|
|
776
776
|
80% { transform: rotate(10deg) scale(1.2)}
|
|
777
777
|
100% { transform: rotate(0deg) }
|
|
778
|
-
|
|
778
|
+
`,$o=U.default.div`
|
|
779
779
|
position: absolute;
|
|
780
780
|
top: -35px;
|
|
781
781
|
gap: 12px;
|
|
@@ -783,15 +783,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
783
783
|
flex-direction: column;
|
|
784
784
|
align-items: center;
|
|
785
785
|
transform-origin: bottom center;
|
|
786
|
-
animation-name: ${
|
|
786
|
+
animation-name: ${Co};
|
|
787
787
|
animation-duration: 2s;
|
|
788
|
-
`,
|
|
788
|
+
`,ko=U.default.div`
|
|
789
789
|
width: 10px;
|
|
790
790
|
height: 10px;
|
|
791
791
|
border-radius: 44px;
|
|
792
792
|
border: 2px solid white;
|
|
793
793
|
background-color: ${e=>(e.$isSelected,e.$colorSuccess)};
|
|
794
|
-
`,
|
|
794
|
+
`,Lo=U.default.div`
|
|
795
795
|
display: flex;
|
|
796
796
|
width: 36px;
|
|
797
797
|
height: 36px;
|
|
@@ -807,12 +807,12 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
807
807
|
&:hover {
|
|
808
808
|
transform: ${e=>"scale(1.2) "+(e.$isSelected?"translateY(-8px)":"translateY(0px)")};
|
|
809
809
|
}
|
|
810
|
-
`,
|
|
810
|
+
`,So=U.default.div`
|
|
811
811
|
position: absolute;
|
|
812
812
|
top: -40px;
|
|
813
813
|
height: 100px;
|
|
814
814
|
width: 100px;
|
|
815
|
-
`,
|
|
815
|
+
`,Fo=U.default.div`
|
|
816
816
|
position: relative;
|
|
817
817
|
display: flex;
|
|
818
818
|
flex-direction: column;
|
|
@@ -824,18 +824,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
824
824
|
::-webkit-scrollbar {
|
|
825
825
|
display: none;
|
|
826
826
|
}
|
|
827
|
-
`,
|
|
827
|
+
`,_o=U.default.div`
|
|
828
828
|
display: flex;
|
|
829
829
|
flex-direction: row;
|
|
830
|
-
`,
|
|
830
|
+
`,Eo=U.default.div`
|
|
831
831
|
display: flex;
|
|
832
832
|
flex-direction: row;
|
|
833
833
|
gap: 8px;
|
|
834
834
|
flex: 1;
|
|
835
|
-
${
|
|
835
|
+
${G.default.lessThan("small")`
|
|
836
836
|
flex-direction: row;
|
|
837
837
|
`}
|
|
838
|
-
`,
|
|
838
|
+
`,Do=U.default.div`
|
|
839
839
|
display: flex;
|
|
840
840
|
flex: 1;
|
|
841
841
|
width: 247px;
|
|
@@ -846,18 +846,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
846
846
|
padding: 14px 16px;
|
|
847
847
|
height: fit-content;
|
|
848
848
|
border-radius: 16px;
|
|
849
|
-
box-shadow: ${e=>e.$selected?`0 0 0 2px ${
|
|
849
|
+
box-shadow: ${e=>e.$selected?`0 0 0 2px ${K.default.border.primary}`:`0 0 0 1px ${K.default.border.neutralSoft}`};
|
|
850
850
|
cursor: pointer;
|
|
851
|
-
background-color: ${e=>e.$selected?
|
|
851
|
+
background-color: ${e=>e.$selected?K.default.border.primarySoft:"transparent"};
|
|
852
852
|
&:hover {
|
|
853
|
-
background-color: ${
|
|
854
|
-
box-shadow: 0 0 0 2px ${
|
|
853
|
+
background-color: ${K.default.border.primarySoft};
|
|
854
|
+
box-shadow: 0 0 0 2px ${K.default.border.primary};
|
|
855
855
|
}
|
|
856
|
-
`,
|
|
856
|
+
`,Oo=U.default.input`
|
|
857
857
|
font-family: Poppins;
|
|
858
858
|
font-size: 24px;
|
|
859
859
|
font-weight: 500;
|
|
860
|
-
color: ${
|
|
860
|
+
color: ${K.default.text.neutralHard};
|
|
861
861
|
display: flex;
|
|
862
862
|
border: none;
|
|
863
863
|
outline: none;
|
|
@@ -872,43 +872,43 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
872
872
|
-webkit-appearance: none;
|
|
873
873
|
margin: 0;
|
|
874
874
|
}
|
|
875
|
-
`,
|
|
875
|
+
`,zo=U.default.div`
|
|
876
876
|
display: flex;
|
|
877
877
|
flex: 1;
|
|
878
878
|
flex-direction: column;
|
|
879
879
|
align-items: center;
|
|
880
880
|
justify-content: center;
|
|
881
881
|
height: fit-content;
|
|
882
|
-
box-shadow: ${e=>e.$focus||e.$isSelected?`0 0 0 2px ${
|
|
882
|
+
box-shadow: ${e=>e.$focus||e.$isSelected?`0 0 0 2px ${K.default.border.primary}`:e.$error?`0 0 0 2px ${K.default.border.red}`:`0 0 0 1px ${K.default.border.neutralSoft}`};
|
|
883
883
|
border-radius: 16px;
|
|
884
884
|
padding: 14px 16px;
|
|
885
|
-
background-color: ${e=>e.$isSelected||e.$focus?
|
|
885
|
+
background-color: ${e=>e.$isSelected||e.$focus?K.default.border.primarySoft:"transparent"};
|
|
886
886
|
cursor: pointer;
|
|
887
887
|
&:hover {
|
|
888
|
-
background-color: ${
|
|
889
|
-
box-shadow: 0 0 0 2px ${
|
|
888
|
+
background-color: ${K.default.border.primarySoft};
|
|
889
|
+
box-shadow: 0 0 0 2px ${K.default.border.primary};
|
|
890
890
|
}
|
|
891
|
-
`,
|
|
891
|
+
`,Mo=U.default.div`
|
|
892
892
|
display: flex;
|
|
893
893
|
margin-bottom: 6px;
|
|
894
|
-
`,
|
|
894
|
+
`,Bo=U.default(J.default)`
|
|
895
895
|
position: relative;
|
|
896
896
|
padding: 8px 12px;
|
|
897
|
-
background-color: ${
|
|
897
|
+
background-color: ${K.default.surface.primary};
|
|
898
898
|
border-radius: 8px;
|
|
899
899
|
color: white;
|
|
900
900
|
max-width: 50%;
|
|
901
901
|
text-align: center;
|
|
902
|
-
${
|
|
902
|
+
${G.default.lessThan("small")`
|
|
903
903
|
max-width: 100%;
|
|
904
904
|
`}
|
|
905
|
-
`,
|
|
905
|
+
`,Ho=U.default.span`
|
|
906
906
|
&::before {
|
|
907
907
|
content: "";
|
|
908
908
|
position: absolute;
|
|
909
909
|
width: 0;
|
|
910
910
|
height: 0;
|
|
911
|
-
border-top: 11px solid ${
|
|
911
|
+
border-top: 11px solid ${K.default.surface.primary};
|
|
912
912
|
border-left: 8px solid transparent;
|
|
913
913
|
border-right: 8px solid transparent;
|
|
914
914
|
top: 100%;
|
|
@@ -916,32 +916,32 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
916
916
|
margin-left: -8px;
|
|
917
917
|
margin-top: -1px;
|
|
918
918
|
}
|
|
919
|
-
`,
|
|
919
|
+
`,Po=U.default.div`
|
|
920
920
|
position: relative;
|
|
921
|
-
`,
|
|
921
|
+
`,Ao=U.default.div`
|
|
922
922
|
display: flex;
|
|
923
923
|
flex-direction: row;
|
|
924
924
|
align-items: center;
|
|
925
|
-
border: 1px solid ${
|
|
925
|
+
border: 1px solid ${X.default.line.soft};
|
|
926
926
|
padding: 0px 12px;
|
|
927
927
|
height: 36px;
|
|
928
928
|
border-radius: 4px;
|
|
929
929
|
cursor: pointer;
|
|
930
930
|
background-color: white;
|
|
931
931
|
gap: 8px;
|
|
932
|
-
`,
|
|
932
|
+
`,To=U.default.div`
|
|
933
933
|
position: absolute;
|
|
934
934
|
top: 42px;
|
|
935
935
|
z-index: 1000;
|
|
936
936
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
|
937
|
-
border: 1px solid ${
|
|
937
|
+
border: 1px solid ${X.default.line.soft};
|
|
938
938
|
background-color: white;
|
|
939
939
|
border-radius: 4px;
|
|
940
940
|
box-shadow: 0px 4px 8px 0px #0000001a;
|
|
941
941
|
max-height: 220px;
|
|
942
942
|
overflow: scroll;
|
|
943
943
|
width: 100%;
|
|
944
|
-
`,
|
|
944
|
+
`,Vo=U.default.div`
|
|
945
945
|
display: flex;
|
|
946
946
|
flex-direction: row;
|
|
947
947
|
align-items: center;
|
|
@@ -949,18 +949,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
949
949
|
cursor: pointer;
|
|
950
950
|
gap: 8px;
|
|
951
951
|
&:hover {
|
|
952
|
-
background-color: ${
|
|
952
|
+
background-color: ${X.default.background.soft};
|
|
953
953
|
}
|
|
954
|
-
`,
|
|
954
|
+
`,Io=U.default.div`
|
|
955
955
|
display: flex;
|
|
956
956
|
align-items: center;
|
|
957
957
|
padding: 0px;
|
|
958
958
|
height: auto;
|
|
959
|
-
`,
|
|
959
|
+
`,Ro=U.default.input`
|
|
960
960
|
height: 38px;
|
|
961
961
|
border-radius: 100px;
|
|
962
962
|
border: none;
|
|
963
|
-
box-shadow: ${e=>"secondary"===e.$design?"none":`0 0 0 1px ${
|
|
963
|
+
box-shadow: ${e=>"secondary"===e.$design?"none":`0 0 0 1px ${X.default.line.soft}`};
|
|
964
964
|
font-family: "Poppins";
|
|
965
965
|
font-size: 14px;
|
|
966
966
|
padding: 0px;
|
|
@@ -972,26 +972,26 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
972
972
|
cursor: pointer;
|
|
973
973
|
}
|
|
974
974
|
&:focus {
|
|
975
|
-
box-shadow: ${e=>"secondary"===e.$design?"none":`0 0 0 1px ${
|
|
975
|
+
box-shadow: ${e=>"secondary"===e.$design?"none":`0 0 0 1px ${X.default.text.full}`};
|
|
976
976
|
background: white;
|
|
977
977
|
cursor: text;
|
|
978
978
|
}
|
|
979
|
-
`,
|
|
979
|
+
`,Zo=U.default.div`
|
|
980
980
|
position: absolute;
|
|
981
981
|
display: flex;
|
|
982
982
|
align-items: center;
|
|
983
983
|
margin-left: ${e=>"secondary"===e.$design?"0px;":"16px;"};
|
|
984
|
-
`,
|
|
984
|
+
`,qo=U.default.div`
|
|
985
985
|
position: sticky;
|
|
986
986
|
display: flex;
|
|
987
987
|
flex-direction: column;
|
|
988
988
|
padding: 10px 24px 16px;
|
|
989
989
|
top: 0px;
|
|
990
990
|
z-index: 100;
|
|
991
|
-
`,
|
|
991
|
+
`,No=U.default.div`
|
|
992
992
|
padding: 0px 24px;
|
|
993
993
|
position: relative;
|
|
994
|
-
`,
|
|
994
|
+
`,Wo=U.default.div`
|
|
995
995
|
position: sticky;
|
|
996
996
|
display: flex;
|
|
997
997
|
flex: 1;
|
|
@@ -1000,35 +1000,35 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1000
1000
|
justify-content: flex-end;
|
|
1001
1001
|
padding: 16px 24px;
|
|
1002
1002
|
background-color: white;
|
|
1003
|
-
${
|
|
1003
|
+
${G.default.lessThan("small")`
|
|
1004
1004
|
padding: 8px 16px;
|
|
1005
1005
|
`}
|
|
1006
|
-
|
|
1007
|
-
background-color: ${
|
|
1006
|
+
`,Yo=U.default.div`
|
|
1007
|
+
background-color: ${K.default.surface.redSoft};
|
|
1008
1008
|
padding: 12px 24px;
|
|
1009
1009
|
margin-top: 24px;
|
|
1010
|
-
`,
|
|
1010
|
+
`,Uo=U.default.div`
|
|
1011
1011
|
display: flex;
|
|
1012
1012
|
justify-content: flex-end;
|
|
1013
1013
|
padding: 10px 10px 0px 24px;
|
|
1014
|
-
`,
|
|
1014
|
+
`,Xo=r.forwardRef((e,o)=>{var n;const[i,l]=r.useState(e.isVisible),[a,d]=r.useState(!1),[c,u]=r.useState(!1);r.useImperativeHandle(o,()=>({close(){f()}})),r.useEffect(()=>{const e=window.matchMedia("(min-width: 768px)");u(e.matches);const t=e=>{u(e.matches)};return e.addListener(t),()=>e.removeListener(t)},[]),r.useEffect(()=>{e.isVisible?(l(!0),p(100).then(()=>{d(!0)})):(d(!1),p(500).then(()=>{l(!1)}))},[e.isVisible]);const p=e=>new Promise(t=>setTimeout(t,e)),f=()=>{d(!1),p(300).then(()=>{l(!1),e.onClose&&e.onClose()})};return t.jsxs(ge.default,{role:"modal",isOpen:i,onRequestClose:f,shouldCloseOnOverlayClick:null!==(n=e.shouldCloseOnOverlayClick)&&void 0!==n&&n,ariaHideApp:!1,style:{content:Object.assign({position:"absolute",width:"full-screen"===e.type?"100%":"lateral"===e.type?c?"400px":"100%":486,maxWidth:"full-screen"===e.type?"100%":"lateral"===e.type?c?"400px":"100%":`calc(100% - ${c?96:48}px)`,height:"lateral"===e.type?"100%":void 0,maxHeight:"lateral"===e.type?"100%":`calc(100% - ${c?96:48}px)`,background:"#FFFFFF",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.1)",borderRadius:"full-screen"===e.type?"12px 12px 0px 0px":"lateral"===e.type?0:12,top:"lateral"===e.type?"0":"full-screen"!==e.type?a?"50%":"150%":"unset",bottom:"full-screen"===e.type?a?"0px":"-100vh":"unset",right:"lateral"===e.type?a?"0":"-100vw":"unset",transition:"lateral"===e.type?"right 0.3s ease-out, transform 0.3s ease-in-out":"top 0.3s ease-out, bottom 0.3s ease-out, transform 0.3s ease-in-out",left:"lateral"===e.type?"unset":(e.type,"50%"),transform:"full-screen"===e.type?"translate(-50%, 0%)":"lateral"===e.type?"translate(0, 0)":"translate(-50%, -50%) scale("+(a?1:.2)+")",overflow:"hidden",overflowY:"auto",border:"none",padding:0},e.style),overlay:{backgroundColor:"rgba(0, 0, 0, "+(a?e.overlayBackgroundOpacity?e.overlayBackgroundOpacity:.6:0)+")",transition:" background-color 0.3s ease-out",zIndex:1e3}},children:[!e.hideClose&&t.jsx(Uo,{children:t.jsx(te.default,{style:{backgroundColor:"white",borderRadius:50},icon:t.jsx(s.X,{height:20,width:20,color:K.default.text.neutralHard}),design:"image",onClick:f})}),!e.hideHeader&&(e.title||e.subtitle)&&t.jsxs(qo,{style:Object.assign({paddingTop:e.hideClose?16:4},e.titleStyle),children:[e.title&&t.jsx(J.default,{type:"h3",weight:"semibold",children:e.title}),e.subtitle&&t.jsx(J.default,{type:"p2",style:{marginTop:8},children:e.subtitle}),e.Header]}),t.jsx(No,{style:e.contentStyle,children:e.children}),e.error&&t.jsx(Yo,{children:t.jsx(J.default,{type:"p",style:{color:K.default.text.red,fontSize:12},children:e.error})}),e.buttonProps&&t.jsxs(Wo,{style:e.footerStyle,children:[e.Bottom,e.buttonProps&&t.jsx(te.default,Object.assign({size:"small"},e.buttonProps,{children:e.buttonProps.children?e.buttonProps.children:"Guardar"}))]})]})}),Go=U.default.div`
|
|
1015
1015
|
display: flex;
|
|
1016
1016
|
flex-direction: row;
|
|
1017
1017
|
margin-bottom: 8px;
|
|
1018
|
-
`,
|
|
1018
|
+
`,Ko=U.default.div`
|
|
1019
1019
|
display: flex;
|
|
1020
1020
|
width: 112px;
|
|
1021
1021
|
align-items: center;
|
|
1022
|
-
`,
|
|
1022
|
+
`,Qo=U.default.div`
|
|
1023
1023
|
display: flex;
|
|
1024
1024
|
flex: 1;
|
|
1025
1025
|
flex-direction: column;
|
|
1026
|
-
`,
|
|
1026
|
+
`,Jo=U.default.div`
|
|
1027
1027
|
content: none;
|
|
1028
1028
|
margin-bottom: 24px;
|
|
1029
|
-
`,
|
|
1029
|
+
`,en=U.default.iframe``,tn=r.forwardRef((e,o)=>"form"===e.type?t.jsx(Xo,Object.assign({ref:o},e,{style:Object.assign({width:"80%",maxWidth:600},e.style),children:e.options&&e.options.map((e,o)=>e.hidden?null:"separator"===e.id?t.jsx(Jo,{},"separator-"+o):t.jsxs(Go,{children:[t.jsx(Ko,{children:t.jsx(J.default,{type:"c1",weight:"medium",children:e.title})}),t.jsx(Qo,{children:e.Data})]},"option-"+e.id))})):"web"===e.type?t.jsx(Xo,Object.assign({ref:o},e,{style:Object.assign(Object.assign({},e.style),{height:"100%"}),contentStyle:Object.assign(Object.assign({},e.contentStyle),{height:"100%",padding:0}),children:t.jsx(en,{id:"web-iframe",src:e.url,width:"100%",height:"100%",style:{border:"none"}})})):t.jsx(Xo,Object.assign({ref:o},e))),on=U.default.div`
|
|
1030
1030
|
position: relative;
|
|
1031
|
-
`,
|
|
1031
|
+
`,nn=U.default.div`
|
|
1032
1032
|
position: absolute;
|
|
1033
1033
|
display: flex;
|
|
1034
1034
|
flex-direction: column;
|
|
@@ -1042,26 +1042,26 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1042
1042
|
background-color: white;
|
|
1043
1043
|
box-shadow: 6px 6px 10px 1px rgba(0, 0, 0, 0.1);
|
|
1044
1044
|
z-index: 1000;
|
|
1045
|
-
border: 1px solid ${
|
|
1045
|
+
border: 1px solid ${X.default.line.soft};
|
|
1046
1046
|
overflow: hidden;
|
|
1047
1047
|
opacity: ${e=>e.$show?1:0};
|
|
1048
1048
|
transform: ${e=>e.$show?"scale(1)":"scale(0)"};
|
|
1049
1049
|
transform-origin: ${e=>"bottom-right"===e.$position||"top-right"===e.$position?"left":"right"} ${e=>"top-right"===e.$position||"top-left"===e.$position?"bottom":"top"};
|
|
1050
1050
|
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
1051
1051
|
font-family: 'Poppins';
|
|
1052
|
-
color: ${
|
|
1053
|
-
`,
|
|
1052
|
+
color: ${X.default.text.full};
|
|
1053
|
+
`,ln=U.default.div`
|
|
1054
1054
|
cursor: pointer;
|
|
1055
|
-
`,
|
|
1055
|
+
`,rn=U.default.div`
|
|
1056
1056
|
display: flex;
|
|
1057
1057
|
align-items: center;
|
|
1058
1058
|
padding: 12px 16px;
|
|
1059
1059
|
gap: 12px;
|
|
1060
1060
|
cursor: pointer;
|
|
1061
1061
|
&:hover{
|
|
1062
|
-
background-color: ${
|
|
1062
|
+
background-color: ${X.default.status.neutral.hover};
|
|
1063
1063
|
}
|
|
1064
|
-
`,
|
|
1064
|
+
`,an=r.forwardRef((e,o)=>{const[n,i]=r.useState(!1);r.useImperativeHandle(o,()=>({close(){i(!1)}})),r.useEffect(()=>(document.addEventListener("mousedown",t=>{const o=document.getElementById(e.id);null!==o&&(o.contains(t.target)||n&&l(t))}),document.removeEventListener("mousedown",l)));const l=t=>{t.stopPropagation(),n?(i(!1),e.onChange&&e.onChange(!1)):(i(!0),e.onChange&&e.onChange(!0))};return t.jsxs(on,{id:e.id,role:"menu",style:e.style,children:[e.Icon?t.jsx(ln,{onClick:l,children:e.Icon}):t.jsx(te.default,{style:{backgroundColor:n?X.default.status.neutral.active:void 0},design:"image",icon:e.icon?e.icon:t.jsx(s.MoreVertical,{}),onClick:l}),t.jsxs(nn,{$padding:!e.options,$position:e.position,style:e.menuStyle,$show:n,children:[e.children,e.options&&e.options.map((o,n)=>{var l;return t.jsxs(rn,{style:{borderBottom:n+1===(null===(l=e.options)||void 0===l?void 0:l.length)?"none":"1px solid "+X.default.line.soft},onClick:t=>((t,o)=>{t.stopPropagation(),i(!1),e.onClick&&e.onClick(o)})(t,o),children:[o.icon,t.jsx(J.default,{type:"p",style:{color:o.labelColor},children:o.label})]},"action"+n)})]})]})}),sn=U.default.div`
|
|
1065
1065
|
display: flex;
|
|
1066
1066
|
flex-direction: row;
|
|
1067
1067
|
justify-content: center;
|
|
@@ -1070,7 +1070,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1070
1070
|
width: fit-content;
|
|
1071
1071
|
height: 28px;
|
|
1072
1072
|
border-radius: 3px;
|
|
1073
|
-
`,
|
|
1073
|
+
`,dn=U.default.div`
|
|
1074
1074
|
display: flex;
|
|
1075
1075
|
flex-direction: column;
|
|
1076
1076
|
justify-content: center;
|
|
@@ -1078,8 +1078,8 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1078
1078
|
height: 32px;
|
|
1079
1079
|
width: 30px;
|
|
1080
1080
|
border-radius: 50%;
|
|
1081
|
-
background-color: ${e=>e.disabled?
|
|
1082
|
-
`,
|
|
1081
|
+
background-color: ${e=>e.disabled?X.default.background.soft:X.default.background.primaryLow};
|
|
1082
|
+
`,cn=U.default.div`
|
|
1083
1083
|
display: flex;
|
|
1084
1084
|
flex-direction: row;
|
|
1085
1085
|
justify-content: center;
|
|
@@ -1089,8 +1089,8 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1089
1089
|
left: 118px;
|
|
1090
1090
|
top: 1082px;
|
|
1091
1091
|
border-radius: 555px;
|
|
1092
|
-
background-color: ${e=>e.disabled?
|
|
1093
|
-
`,
|
|
1092
|
+
background-color: ${e=>e.disabled?X.default.background.soft:X.default.background.primaryLow};
|
|
1093
|
+
`,un=U.default.div`
|
|
1094
1094
|
display: flex;
|
|
1095
1095
|
flex-direction: row;
|
|
1096
1096
|
justify-content: center;
|
|
@@ -1098,11 +1098,11 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1098
1098
|
padding: 0px 12px;
|
|
1099
1099
|
height: 32px;
|
|
1100
1100
|
border: 1px solid
|
|
1101
|
-
${e=>e.disabled?
|
|
1101
|
+
${e=>e.disabled?X.default.line.low:X.default.line.full};
|
|
1102
1102
|
opacity: ${e=>e.disabled?.6:1};
|
|
1103
1103
|
box-sizing: border-box;
|
|
1104
1104
|
border-radius: 555px;
|
|
1105
|
-
`,
|
|
1105
|
+
`,pn=U.default.div`
|
|
1106
1106
|
width: 50px;
|
|
1107
1107
|
height: 50px;
|
|
1108
1108
|
display: flex;
|
|
@@ -1110,29 +1110,29 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1110
1110
|
align-items: center;
|
|
1111
1111
|
text-align: center;
|
|
1112
1112
|
border-radius: 50%;
|
|
1113
|
-
background-color: ${
|
|
1113
|
+
background-color: ${X.default.background.primaryLow};
|
|
1114
1114
|
cursor: ${e=>e.$editable||e.$clickable?"pointer":"default"};
|
|
1115
|
-
`,
|
|
1115
|
+
`,fn=U.default.p`
|
|
1116
1116
|
font-family: Poppins;
|
|
1117
1117
|
font-style: normal;
|
|
1118
1118
|
font-weight: 500;
|
|
1119
1119
|
font-size: 25.4545px;
|
|
1120
1120
|
line-height: 40px;
|
|
1121
|
-
color: ${
|
|
1121
|
+
color: ${X.default.text.primary};
|
|
1122
1122
|
text-align: center;
|
|
1123
|
-
`,
|
|
1123
|
+
`,xn=U.default.img`
|
|
1124
1124
|
height: 100%;
|
|
1125
1125
|
width: 100%;
|
|
1126
1126
|
object-fit: cover;
|
|
1127
1127
|
border-radius: 50%;
|
|
1128
|
-
`,
|
|
1128
|
+
`,hn=U.default.img`
|
|
1129
1129
|
width: 100%;
|
|
1130
1130
|
height: 100%;
|
|
1131
1131
|
object-fit: cover;
|
|
1132
|
-
`,
|
|
1132
|
+
`,gn=U.default.div`
|
|
1133
1133
|
position: relative;
|
|
1134
1134
|
width: fit-content;
|
|
1135
|
-
`,
|
|
1135
|
+
`,mn=U.default.button`
|
|
1136
1136
|
position: relative;
|
|
1137
1137
|
display: flex;
|
|
1138
1138
|
flex-direction: row;
|
|
@@ -1142,13 +1142,13 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1142
1142
|
padding: 0px 12px;
|
|
1143
1143
|
border-radius: 20px;
|
|
1144
1144
|
gap: 6px;
|
|
1145
|
-
border: ${e=>e.disabled?"0px solid "+
|
|
1145
|
+
border: ${e=>e.disabled?"0px solid "+K.default.border.neutralSoft:e.$selected?"2px solid "+K.default.border.primary:"1px solid "+K.default.border.neutralSoft};
|
|
1146
1146
|
background-color: transparent;
|
|
1147
1147
|
cursor: ${e=>e.disabled?"default":"pointer"};
|
|
1148
1148
|
&:hover {
|
|
1149
|
-
background-color: ${
|
|
1149
|
+
background-color: ${K.default.surface.neutralSoft};
|
|
1150
1150
|
}
|
|
1151
|
-
`,
|
|
1151
|
+
`,yn=U.default.div`
|
|
1152
1152
|
position: absolute;
|
|
1153
1153
|
display: flex;
|
|
1154
1154
|
flex-direction: column;
|
|
@@ -1175,14 +1175,14 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1175
1175
|
z-index: 10;
|
|
1176
1176
|
overflow: hidden;
|
|
1177
1177
|
|
|
1178
|
-
${
|
|
1178
|
+
${G.default.lessThan("small")`
|
|
1179
1179
|
display: none;
|
|
1180
1180
|
`}
|
|
1181
|
-
`,
|
|
1181
|
+
`,bn=U.default.div`
|
|
1182
1182
|
position: sticky;
|
|
1183
1183
|
bottom: 0;
|
|
1184
1184
|
z-index: 5;
|
|
1185
|
-
`,
|
|
1185
|
+
`,vn=U.default.div`
|
|
1186
1186
|
display: flex;
|
|
1187
1187
|
flex-direction: row;
|
|
1188
1188
|
align-items: center;
|
|
@@ -1191,23 +1191,23 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1191
1191
|
background-color: white;
|
|
1192
1192
|
gap: 8px;
|
|
1193
1193
|
|
|
1194
|
-
${
|
|
1194
|
+
${G.default.lessThan("small")`
|
|
1195
1195
|
padding: 16px 0px;
|
|
1196
1196
|
`}
|
|
1197
|
-
`,
|
|
1197
|
+
`,wn=U.default.hr`
|
|
1198
1198
|
margin-top: 8px;
|
|
1199
1199
|
margin-bottom: 0px;
|
|
1200
1200
|
width: calc(100% + 2 * 24px);
|
|
1201
1201
|
margin-left: -25px;
|
|
1202
1202
|
margin-right: -16px;
|
|
1203
1203
|
border-top: 0px solid var(--border-clear-neutral-soft, rgba(0, 29, 61, 0.1));
|
|
1204
|
-
`,
|
|
1204
|
+
`,jn=U.default.div`
|
|
1205
1205
|
display: flex;
|
|
1206
1206
|
flex: 1;
|
|
1207
1207
|
padding-right: 2px;
|
|
1208
1208
|
|
|
1209
1209
|
overflow-y: auto;
|
|
1210
|
-
`,
|
|
1210
|
+
`,Cn=U.default.div`
|
|
1211
1211
|
position: sticky;
|
|
1212
1212
|
top: 0;
|
|
1213
1213
|
display: flex;
|
|
@@ -1219,13 +1219,13 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1219
1219
|
z-index: 5;
|
|
1220
1220
|
gap: 8px;
|
|
1221
1221
|
background-color: white;
|
|
1222
|
-
|
|
1222
|
+
`,$n=U.default.div`
|
|
1223
1223
|
display: flex;
|
|
1224
1224
|
align-items: center;
|
|
1225
1225
|
justify-content: center;
|
|
1226
1226
|
height: 18px;
|
|
1227
1227
|
width: 18px;
|
|
1228
|
-
`,
|
|
1228
|
+
`,kn=e=>{const o=window.innerWidth<=450,[n,i]=r.useState(!1),[l,a]=r.useState(void 0),d=r.useRef(null),c=r.useRef(null);r.useEffect(()=>{const e=()=>{i(!1)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),r.useEffect(()=>{const e=e=>{(n&&d.current&&!c.current&&!d.current.contains(e.target)||n&&c.current&&!c.current.contains(e.target))&&i(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[n]),r.useEffect(()=>{n||e.onClose&&e.onClose()},[n]);const u=t=>{const o=t.target.value;a(o),e.onSearchChange&&e.onSearchChange(o)},p=()=>t.jsx(t.Fragment,{children:t.jsxs(bn,{children:[t.jsx(wn,{}),t.jsxs(vn,{children:[e.childrenBottomBar,t.jsx(te.default,{design:"call-to-action",size:o?"normal":"small",onClick:()=>{i(!1),e.onRemove&&e.onRemove()},children:"Borrar"}),t.jsx(te.default,{design:"primary",size:o?"normal":"small",onClick:()=>{i(!1),e.onSave&&e.onSave()},children:"Aplicar"})]})]})});return t.jsxs(gn,{id:e.id,role:"filter",style:e.style,children:[t.jsxs(mn,{role:"filter-button",$selected:!!e.label,disabled:e.disabled,onClick:()=>{i(!0)},children:[t.jsx(J.default,{type:"b2",weight:"medium",style:{fontWeight:500,whiteSpace:"nowrap",overflow:"hidden",overflowWrap:"break-word",textOverflow:"ellipsis"},children:e.label?e.label:e.placeholder}),e.label?t.jsx($n,{onClick:t=>{t.stopPropagation(),e.onRemove&&e.onRemove()},children:t.jsx(s.X,{height:18,width:18,color:e.disabled?X.default.text.low:"black"})}):t.jsx($n,{children:t.jsx(s.ChevronDown,{height:18,width:18,color:e.disabled?X.default.text.low:X.default.text.high})})]}),t.jsx(ue.default,{type:"full-screen",isVisible:n&&o,onClose:()=>{i(!1)},hideClose:!0,children:t.jsxs("div",{ref:c,children:[t.jsxs(Cn,{$hideSearchBar:!!e.hideSearchBar&&e.hideSearchBar,children:[!e.hideSearchBar&&t.jsx(ye.default,{defaultValue:l,style:{flex:1},placeholder:"Buscar",design:"primary",onChange:u}),t.jsx(te.default,{design:"call-to-action",size:"small",style:{color:K.default.text.neutralHard},onClick:()=>{i(!1)},children:"Cancelar"})]}),t.jsx(jn,{style:{flex:1,overflowY:"auto"},children:e.children}),p()]})}),!o&&n&&t.jsxs(yn,{style:e.menuStyle,ref:d,$position:e.position,children:[!e.hideSearchBar&&t.jsx(ye.default,{defaultValue:l,style:{borderBottom:"1px solid "+K.default.border.neutralSoft,marginBottom:8},placeholder:"Buscar",design:"secondary",onChange:u}),t.jsx(jn,{children:e.children}),p()]})]})},Ln=r.forwardRef((o,n)=>{var{type:i,options:l,selectedOptions:a,onChange:s}=o,d=e.__rest(o,["type","options","selectedOptions","onChange"]);const c=window.innerWidth<=450,[u,p]=r.useState([]),[f,x]=r.useState(l),[h,g]=r.useState(void 0),[m,y]=r.useState(void 0);r.useImperativeHandle(n,()=>({clean(){v()}})),r.useEffect(()=>{g(new me.default(l,{keys:["label","id"]})),x(l)},[l]),r.useEffect(()=>{p(a||[]),b(a||[])},[a]);const b=e=>{if("single"===i&&e.length>0){const t=e[0];if(t.label)y(t.label);else{const e=l.find(e=>e.id===t.id);y(e?e.label:"1 seleccionado")}}else"multiple"===i&&e.length>0&&y(`${e.length} seleccionados`)},v=()=>{y(void 0),p([]),s&&s([])};return t.jsx(kn,Object.assign({},d,{label:m,childrenBottomBar:"multiple"===i&&!c&&t.jsx(te.default,{design:"call-to-action",size:c?"normal":"small",onClick:()=>{p(l)},children:"Seleccionar todo"}),onSave:()=>{b(u),s&&s(u)},onRemove:v,onSearchChange:e=>{if(e){const t=h.search(e).map(e=>e.item);x(t)}else x(l)},onClose:()=>{x(l)},children:t.jsx(be.default,{style:{width:"100%"},options:f,selectedOptions:u,type:i,shape:d.shape,height:c?22:18,width:c?22:18,position:c?"right":"left",onChange:e=>{p(e)}})}))});Xt(".DayPicker{\n border-radius: 0px;\n box-shadow: none;\n font-family: Poppins;\n}\n\n.DayPickerKeyboardShortcuts_show__bottomRight{\n display: none;\n}\n\n.CalendarMonth{\n padding: 0px !important;\n}");const Sn=r.forwardRef((o,n)=>{var{position:i,selectedOptions:l,onChange:a}=o,s=e.__rest(o,["position","selectedOptions","onChange"]);const d=window.innerWidth<=450,c=window.innerWidth<=400,[u,p]=r.useState(void 0),[f,x]=r.useState(null),[h,g]=r.useState(null),[y,b]=r.useState("startDate");r.useImperativeHandle(n,()=>({clean(){w()}})),r.useEffect(()=>{l?(x(l.startDate),g(l.endDate),v(l.startDate?l.startDate:void 0,l.endDate?l.endDate:void 0)):(x(null),g(null),p(""))},[l]);const v=(e,t)=>{let o="";e&&(o=e.format("D MMM")),t&&(o+=` - ${t.format("D MMM")}`),p(o)},w=()=>{g(null),x(null),b("startDate"),p(void 0),a&&a({startDate:null,endDate:null})};return t.jsx(kn,Object.assign({},s,{label:u,hideSearchBar:!0,position:i,onSave:()=>{v(f||void 0,h||void 0),a&&a({startDate:f?f.startOf("date"):null,endDate:h?h.endOf("date"):null})},onRemove:w,children:t.jsx(m.DayPickerRangeController,{startDate:f,endDate:h,onDatesChange:({startDate:e,endDate:t})=>{x(e),g(t)},daySize:c?35:d?48:void 0,focusedInput:y,noBorder:!0,onFocusChange:e=>b(e),initialVisibleMonth:()=>ie.default()})}))}),Fn=r.forwardRef((o,n)=>{var{selectedOptions:i,min:l,max:a,unit:s,onChange:d}=o,c=e.__rest(o,["selectedOptions","min","max","unit","onChange"]);const u=window.innerWidth<=450,[p,f]=r.useState(void 0),[x,h]=r.useState(0),[g,m]=r.useState(void 0);r.useImperativeHandle(n,()=>({clean(){y()}})),r.useEffect(()=>{i?(h(i),f(`${i.toString()} ${s||""}`)):(h(0),f(void 0))},[i]);const y=()=>{h(0),m(void 0),f(void 0),d&&d(void 0)};return t.jsx(kn,Object.assign({},c,{label:p,hideSearchBar:!0,onSave:()=>{g&&(f(`${g.toString()} ${s||""}`),h(g),d&&d(g))},onRemove:y,children:t.jsx(ve.default,{style:{width:"100%",margin:u?"20px 0px":20,marginTop:40},min:l,max:a,unit:s,defaultValue:x,onChange:e=>{m(e.target.value)}})}))}),_n=r.forwardRef((e,o)=>"date"===e.type?t.jsx(Sn,Object.assign({ref:o},e)):"ratio"===e.type?t.jsx(Fn,Object.assign({ref:o},e)):t.jsx(Ln,Object.assign({ref:o},e))),En=U.default.button`
|
|
1229
1229
|
display: flex;
|
|
1230
1230
|
align-items: center;
|
|
1231
1231
|
flex-direction: row;
|
|
@@ -1237,7 +1237,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1237
1237
|
opacity: ${e=>e.disabled?.5:1};
|
|
1238
1238
|
width: 100%;
|
|
1239
1239
|
gap: 12px;
|
|
1240
|
-
`,
|
|
1240
|
+
`,Dn=U.default.div`
|
|
1241
1241
|
display: flex;
|
|
1242
1242
|
align-items: center;
|
|
1243
1243
|
justify-content: center;
|
|
@@ -1245,8 +1245,8 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1245
1245
|
width: ${e=>e.$width?e.$width+"px":"22px"};
|
|
1246
1246
|
min-height: ${e=>e.$height?e.$height+"px":"22px"};
|
|
1247
1247
|
min-width: ${e=>e.$width?e.$width+"px":"22px"};
|
|
1248
|
-
background-color: ${e=>e.$selected?e.$error?
|
|
1249
|
-
border: ${e=>e.$selected?"1px solid "+(e.$error?
|
|
1248
|
+
background-color: ${e=>e.$selected?e.$error?X.default.status.color.error:X.default.background.primary:e.$error?X.default.status.color.errorDefault:X.default.background.primaryLow};
|
|
1249
|
+
border: ${e=>e.$selected?"1px solid "+(e.$error?X.default.status.color.error:X.default.background.primary):"1px solid "+(e.$error?X.default.line.redSoft:X.default.line.primarySoft)};
|
|
1250
1250
|
transition:
|
|
1251
1251
|
background-color 0.2s ease-in-out,
|
|
1252
1252
|
border 0.2s ease-in-out,
|
|
@@ -1255,23 +1255,23 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1255
1255
|
border-radius: ${e=>"square"===e.$shape?"4px":"50%"};
|
|
1256
1256
|
|
|
1257
1257
|
&:hover {
|
|
1258
|
-
background-color: ${e=>e.$selected?e.$error?
|
|
1258
|
+
background-color: ${e=>e.$selected?e.$error?X.default.status.color.error:X.default.background.primary:e.$error?X.default.status.color.errorDefault:X.default.line.primarySoft};
|
|
1259
1259
|
}
|
|
1260
1260
|
&:active {
|
|
1261
1261
|
transform: scale(0.9);
|
|
1262
1262
|
}
|
|
1263
1263
|
|
|
1264
1264
|
@media (max-width: 600px) {
|
|
1265
|
-
background-color: ${e=>e.$selected?e.$error?
|
|
1266
|
-
border: ${e=>e.$selected?"1px solid "+(e.$error?
|
|
1265
|
+
background-color: ${e=>e.$selected?e.$error?X.default.status.color.error:X.default.background.primary:e.$error?X.default.status.color.errorDefault:"#FFFFFF"};
|
|
1266
|
+
border: ${e=>e.$selected?"1px solid "+(e.$error?X.default.status.color.error:X.default.background.primary):"1px solid rgba(0, 29, 61, 0.24)"};
|
|
1267
1267
|
}
|
|
1268
|
-
`,
|
|
1268
|
+
`,On=U.default.div`
|
|
1269
1269
|
display: flex;
|
|
1270
1270
|
align-items: center;
|
|
1271
1271
|
flex-grow: 1;
|
|
1272
1272
|
line-height: 24px;
|
|
1273
1273
|
text-align: left;
|
|
1274
|
-
`,
|
|
1274
|
+
`,zn=o=>{var{position:n="left",error:i,sublabel:l,selected:a=!1,avatarEnabled:s,shape:d="square"}=o,u=e.__rest(o,["position","error","sublabel","selected","avatarEnabled","shape"]);const[p,f]=r.useState(a);r.useEffect(()=>{f(a)},[a]);return t.jsxs(En,Object.assign({"data-testid":"checkbox",onClick:e=>{f(!p),u.onClick&&u.onClick(e)}},u,{children:["left"===n&&t.jsx(Dn,{$shape:d,$selected:a,$error:i,$height:u.height,$width:u.width,children:a&&t.jsx(c.Player,{style:{height:18,width:18},autoplay:!0,loop:!1,keepLastFrame:!0,src:oe.default,onEvent:e=>{}})}),t.jsxs(On,{children:[s&&t.jsx(we.default,{name:u.label||"",style:{height:32,width:32,marginRight:8,fontSize:15}}),t.jsxs("div",{children:[u.children&&u.children,u.label&&t.jsx(J.default,{type:"p",children:u.label}),l&&t.jsx(J.default,{type:"p",style:{fontSize:12},children:l})]})]}),"right"===n&&t.jsx(Dn,{$shape:d,$selected:a,$error:i,$height:u.height,$width:u.width,children:a&&t.jsx(c.Player,{style:{height:18,width:18},autoplay:!0,loop:!1,keepLastFrame:!0,src:oe.default,onEvent:e=>{}})})]}))},Mn=U.default.div``,Bn=U.default.div`
|
|
1275
1275
|
display: flex;
|
|
1276
1276
|
flex: 1;
|
|
1277
1277
|
flex-direction: row;
|
|
@@ -1279,15 +1279,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1279
1279
|
max-height: 40px;
|
|
1280
1280
|
min-height: 40px;
|
|
1281
1281
|
padding: 0px 12px;
|
|
1282
|
-
background: ${
|
|
1282
|
+
background: ${X.default.background.soft};
|
|
1283
1283
|
border-radius: 6px;
|
|
1284
1284
|
position: relative;
|
|
1285
|
-
`,
|
|
1285
|
+
`,Hn=U.default.div`
|
|
1286
1286
|
display: flex;
|
|
1287
1287
|
flex: 1;
|
|
1288
1288
|
justify-content: space-between;
|
|
1289
1289
|
cursor: pointer;
|
|
1290
|
-
`,
|
|
1290
|
+
`,Pn=U.default.div`
|
|
1291
1291
|
display: flex;
|
|
1292
1292
|
flex-direction: column;
|
|
1293
1293
|
align-items: flex-start;
|
|
@@ -1305,7 +1305,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1305
1305
|
overflow: hidden;
|
|
1306
1306
|
overflow-y: auto;
|
|
1307
1307
|
z-index: 2;
|
|
1308
|
-
`,
|
|
1308
|
+
`,An=U.default.div`
|
|
1309
1309
|
display: flex;
|
|
1310
1310
|
flex-direction: row;
|
|
1311
1311
|
align-items: center;
|
|
@@ -1320,12 +1320,12 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1320
1320
|
border-radius: 6px;
|
|
1321
1321
|
cursor: pointer;
|
|
1322
1322
|
&:hover {
|
|
1323
|
-
background-color: ${
|
|
1323
|
+
background-color: ${X.default.status.neutral.hover};
|
|
1324
1324
|
}
|
|
1325
|
-
`,
|
|
1325
|
+
`,Tn=U.default.div`
|
|
1326
1326
|
height: 16px;
|
|
1327
1327
|
width: 16px;
|
|
1328
|
-
`,
|
|
1328
|
+
`,Vn=U.default.div`
|
|
1329
1329
|
display: flex;
|
|
1330
1330
|
align-items: center;
|
|
1331
1331
|
justify-content: center;
|
|
@@ -1333,10 +1333,10 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1333
1333
|
width: 16px;
|
|
1334
1334
|
min-height: 16px;
|
|
1335
1335
|
min-width: 16px;
|
|
1336
|
-
background-color: ${e=>e.$selected?
|
|
1337
|
-
border: ${e=>e.$selected?"1px solid "+
|
|
1336
|
+
background-color: ${e=>e.$selected?X.default.background.primary:X.default.background.primaryLow};
|
|
1337
|
+
border: ${e=>e.$selected?"1px solid "+X.default.background.primary:"1px solid "+X.default.line.primarySoft};
|
|
1338
1338
|
border-radius: 4px;
|
|
1339
|
-
`,
|
|
1339
|
+
`,In=U.default.div``,Rn=U.default.textarea`
|
|
1340
1340
|
display: flex;
|
|
1341
1341
|
flex-direction: row;
|
|
1342
1342
|
align-items: flex-start;
|
|
@@ -1350,18 +1350,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1350
1350
|
border: none;
|
|
1351
1351
|
border-radius: ${e=>"secondary"===e.$design?"12px":"6px"};
|
|
1352
1352
|
box-shadow: 0 0 0
|
|
1353
|
-
${e=>"secondary"===e.$design?"1px "+
|
|
1354
|
-
color: ${
|
|
1353
|
+
${e=>"secondary"===e.$design?"1px "+X.default.line.soft:"none"};
|
|
1354
|
+
color: ${X.default.text.full};
|
|
1355
1355
|
//Remove resize handle
|
|
1356
1356
|
resize: none;
|
|
1357
1357
|
//Remove default scrollbars
|
|
1358
1358
|
overflow: auto;
|
|
1359
1359
|
outline: none;
|
|
1360
|
-
background-color: ${e=>"secondary"===e.$design?"white":
|
|
1360
|
+
background-color: ${e=>"secondary"===e.$design?"white":X.default.background.soft};
|
|
1361
1361
|
&:placeholder-shown {
|
|
1362
1362
|
&:focus {
|
|
1363
1363
|
box-shadow: 0 0 0
|
|
1364
|
-
${e=>"secondary"===e.$design?"2px "+
|
|
1364
|
+
${e=>"secondary"===e.$design?"2px "+X.default.line.full:"1px "+X.default.line.primarySoft};
|
|
1365
1365
|
cursor: text;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
@@ -1379,7 +1379,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1379
1379
|
}
|
|
1380
1380
|
&:focus {
|
|
1381
1381
|
box-shadow: 0 0 0
|
|
1382
|
-
${e=>"secondary"===e.$design?"2px "+
|
|
1382
|
+
${e=>"secondary"===e.$design?"2px "+X.default.line.full:"1px "+X.default.line.primarySoft};
|
|
1383
1383
|
cursor: text;
|
|
1384
1384
|
}
|
|
1385
1385
|
&::-webkit-scrollbar {
|
|
@@ -1391,25 +1391,25 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1391
1391
|
border-radius: 9999px;
|
|
1392
1392
|
background-color: #e0e0e0;
|
|
1393
1393
|
}
|
|
1394
|
-
|
|
1394
|
+
`,Zn=e=>{const[o,n]=r.useState(e.maxLength?e.maxLength:0);r.useEffect(()=>{e.maxLength&&n(e.maxLength)},[e.maxLength]);return t.jsxs(In,{role:"text-area",children:[t.jsx(Rn,{defaultValue:e.defaultValue,name:e.name,maxLength:e.maxLength,onKeyDown:t=>{e.maxLength&&t.currentTarget.value.length>=e.maxLength&&"Backspace"!==t.key&&"Delete"!==t.key&&t.preventDefault()},onChange:(t,o)=>{let i;if(t)i=t;else{const t=je.default(O.convertToRaw(o.getCurrentContent()));i={target:{name:e.name,value:t}}}e.maxLength&&i.target.value.length>e.maxLength||(e.maxLength&&n(i.target.value.length),e.onChange&&e.onChange(i))},"data-testid":"text_area",style:e.style,$design:e.design,placeholder:e.placeholder}),e.maxLength&&t.jsxs(J.default,{type:"h3",weight:"semibold",style:{color:"var(--text-clear-neutral-medium, rgba(0, 29, 61, 0.56)",fontFeatureSettings:"'liga' off, 'clig' off",fontFamily:"Poppins",fontSize:"13px",fontStyle:"normal",fontWeight:400,textAlign:"right",lineHeight:"20px",marginLeft:"16px",marginTop:"8px"},children:[o,"/",e.maxLength," caracteres"]})]})};Xt('/* Basic editor styles */\n.tiptap {\n\tfont-family: "Poppins", sans-serif;\n\tfont-size: 15px;\n\tbackground-color: white;\n\tborder: 0px;\n\toutline: 0px;\n\tpadding: 16px 24px;\n\n\t:focus {\n\t\toutline: none !important;\n\t}\n\t:first-child {\n\t\tmargin-top: 0;\n\t}\n\n\t/* Heading styles */\n\th1 {\n\t\tfont-size: 1.4rem;\n\t}\n\n\th2 {\n\t\tfont-size: 1.2rem;\n\t}\n\n\th3 {\n\t\tfont-size: 1.1rem;\n\t}\n}\n\n.toolbar {\n\t.is-active {\n\t\tbackground-color: #f0f3f6;\n\t}\n}\n');const qn=U.default.div`
|
|
1395
1395
|
position: relative;
|
|
1396
1396
|
border-radius: 12px;
|
|
1397
1397
|
overflow: hidden;
|
|
1398
|
-
`,
|
|
1398
|
+
`,Nn=U.default.div`
|
|
1399
1399
|
overflow: scroll;
|
|
1400
1400
|
height: calc(100% - 63px);
|
|
1401
1401
|
cursor: text;
|
|
1402
|
-
`,
|
|
1402
|
+
`,Wn=U.default.div`
|
|
1403
1403
|
padding: 16px 18px 8px;
|
|
1404
|
-
border-bottom: 1px solid ${
|
|
1404
|
+
border-bottom: 1px solid ${K.default.border.neutralSoft};
|
|
1405
1405
|
background-color: white;
|
|
1406
|
-
`,
|
|
1406
|
+
`,Yn=U.default.div`
|
|
1407
1407
|
display: flex;
|
|
1408
1408
|
flex-direction: row;
|
|
1409
1409
|
gap: 8px;
|
|
1410
|
-
`,
|
|
1410
|
+
`,Un=U.default.div`
|
|
1411
1411
|
position: relative;
|
|
1412
|
-
`,
|
|
1412
|
+
`,Xn=U.default.div`
|
|
1413
1413
|
display: flex;
|
|
1414
1414
|
align-items: center;
|
|
1415
1415
|
justify-content: center;
|
|
@@ -1418,7 +1418,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1418
1418
|
right: 16px;
|
|
1419
1419
|
z-index: 10;
|
|
1420
1420
|
height: 100%;
|
|
1421
|
-
`,
|
|
1421
|
+
`,Gn=U.default.button`
|
|
1422
1422
|
cursor: pointer;
|
|
1423
1423
|
background: none;
|
|
1424
1424
|
border: none;
|
|
@@ -1426,15 +1426,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1426
1426
|
width: 32px;
|
|
1427
1427
|
border-radius: 80px;
|
|
1428
1428
|
&:hover {
|
|
1429
|
-
background-color: ${
|
|
1429
|
+
background-color: ${K.default.surface.neutralSoft};
|
|
1430
1430
|
}
|
|
1431
|
-
`,
|
|
1431
|
+
`,Kn=[M.TextStyleKit,$e.default,Ce.default.configure({types:["heading","paragraph"]})];function Qn({editor:e}){const o=B.useEditorState({editor:e,selector:e=>{var t,o,n,i,l,r,a,s,d,c,u,p,f;return{isBold:null!==(t=e.editor.isActive("bold"))&&void 0!==t&&t,canBold:null!==(o=e.editor.can().chain().toggleBold().run())&&void 0!==o&&o,isItalic:null!==(n=e.editor.isActive("italic"))&&void 0!==n&&n,canItalic:null!==(i=e.editor.can().chain().toggleItalic().run())&&void 0!==i&&i,isUnderline:null!==(l=e.editor.isActive("underline"))&&void 0!==l&&l,canUnderline:null!==(r=e.editor.can().chain().toggleUnderline().run())&&void 0!==r&&r,canClearMarks:null!==(a=e.editor.can().chain().unsetAllMarks().run())&&void 0!==a&&a,isParagraph:null!==(s=e.editor.isActive("paragraph"))&&void 0!==s&&s,isHeading1:null!==(d=e.editor.isActive("heading",{level:1}))&&void 0!==d&&d,isHeading2:null!==(c=e.editor.isActive("heading",{level:2}))&&void 0!==c&&c,isAlignLeft:null!==(u=e.editor.isActive({textAlign:"left"}))&&void 0!==u&&u,isAlignCenter:null!==(p=e.editor.isActive({textAlign:"center"}))&&void 0!==p&&p,isAlignRight:null!==(f=e.editor.isActive({textAlign:"right"}))&&void 0!==f&&f}}});return t.jsx(Wn,{children:t.jsxs(Yn,{className:"toolbar",children:[t.jsx(ke.default,{id:"select-text-type",selectedItem:{icon:o.isHeading1?t.jsx(s.Heading1,{}):o.isHeading2?t.jsx(s.Heading2,{}):t.jsx(s.Pilcrow,{}),label:o.isHeading1?"Título":o.isHeading2?"Subtítlo":"Párrafo"},options:[{icon:t.jsx(s.Heading1,{}),label:"Título"},{icon:t.jsx(s.Heading2,{}),label:"Subtítlo"},{icon:t.jsx(s.Pilcrow,{}),label:"Párrafo"}],onChange:t=>{"Título"===t.label?e.chain().focus().toggleHeading({level:1}).run():"Subtítlo"===t.label?e.chain().focus().toggleHeading({level:2}).run():e.chain().focus().setParagraph().run()}}),t.jsx(Gn,{onClick:()=>e.chain().focus().toggleBold().run(),disabled:!o.canBold,className:o.isBold?"is-active":"",children:t.jsx(s.Bold,{height:20,width:20,color:K.default.text.neutralHard})}),t.jsx(Gn,{onClick:()=>e.chain().focus().toggleItalic().run(),disabled:!o.canItalic,className:o.isItalic?"is-active":"",children:t.jsx(s.Italic,{height:20,width:20,color:K.default.text.neutralHard})}),t.jsx(Gn,{onClick:()=>e.chain().focus().toggleUnderline().run(),disabled:!o.canUnderline,className:o.isUnderline?"is-active":"",children:t.jsx(s.Underline,{height:20,width:20,color:K.default.text.neutralHard})}),t.jsx(Gn,{onClick:()=>e.chain().setTextAlign("left").run(),className:o.isAlignLeft?"is-active":"",children:t.jsx(s.AlignLeft,{height:20,width:20,color:K.default.text.neutralHard})}),t.jsx(Gn,{onClick:()=>e.chain().setTextAlign("center").run(),className:o.isAlignCenter?"is-active":"",children:t.jsx(s.AlignCenter,{height:20,width:20,color:K.default.text.neutralHard})}),t.jsx(Gn,{onClick:()=>e.chain().setTextAlign("right").run(),className:o.isAlignRight?"is-active":"",children:t.jsx(s.AlignRight,{height:20,width:20,color:K.default.text.neutralHard})})]})})}const Jn=e=>{const o=B.useEditor({extensions:Kn,content:e.value||"",onUpdate:({editor:e})=>{}});return t.jsxs(qn,{role:"text-area",style:e.style,children:[t.jsxs(Un,{children:[e.ToolbarButton&&t.jsx(Xn,{children:e.ToolbarButton}),t.jsx(Qn,{editor:o})]}),t.jsx(Nn,{onClick:()=>o.commands.focus(),children:t.jsx(B.EditorContent,{editor:o})})]})},ei=U.default.div`
|
|
1432
1432
|
margin: 24px 0;
|
|
1433
1433
|
display: flex;
|
|
1434
1434
|
cursor: pointer;
|
|
1435
1435
|
user-select: none;
|
|
1436
1436
|
align-items: center;
|
|
1437
|
-
`,
|
|
1437
|
+
`,ti=U.default.div`
|
|
1438
1438
|
width: 18px;
|
|
1439
1439
|
height: 18px;
|
|
1440
1440
|
min-width: 18px;
|
|
@@ -1445,24 +1445,24 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1445
1445
|
align-items: center;
|
|
1446
1446
|
margin-right: 12px;
|
|
1447
1447
|
transition: all 0.1s linear;
|
|
1448
|
-
`,
|
|
1448
|
+
`,oi=U.default.div`
|
|
1449
1449
|
width: 10px;
|
|
1450
1450
|
height: 10px;
|
|
1451
1451
|
border-radius: 50%;
|
|
1452
1452
|
transition: all 0.1s linear;
|
|
1453
|
-
`,
|
|
1453
|
+
`,ni=e=>{const[o,n]=r.useState(e.selected);r.useEffect(()=>{n(e.selected)},[e.selected]);return t.jsxs(ei,{role:e.id,style:e.style,onClick:t=>{n(!o),e.onClick&&e.onClick(t)},children:[t.jsx(ti,{style:{border:e.disabled?`2px solid ${X.default.line.soft}`:` 2px solid ${X.default.background.primary}`},children:t.jsx(oi,{style:{background:o?`${X.default.background.primary}`:"white"}})}),t.jsx(J.default,{type:"p",style:{color:`${X.default.text.high}`},children:e.children})]})},ii=U.default.div``,li=U.default.div`
|
|
1454
1454
|
display: flex;
|
|
1455
1455
|
flex: 1;
|
|
1456
1456
|
flex-wrap: wrap;
|
|
1457
1457
|
justify-content: space-around;
|
|
1458
|
-
`,
|
|
1458
|
+
`,ri=U.default.div`
|
|
1459
1459
|
display: flex;
|
|
1460
1460
|
flex-direction: column;
|
|
1461
1461
|
width: 100px;
|
|
1462
1462
|
padding: 0px;
|
|
1463
1463
|
align-items: center;
|
|
1464
1464
|
cursor: ${e=>e.$disabled?"default":"pointer"};
|
|
1465
|
-
`,
|
|
1465
|
+
`,ai=U.default.div`
|
|
1466
1466
|
display: flex;
|
|
1467
1467
|
flex-direction: column;
|
|
1468
1468
|
align-items: center;
|
|
@@ -1474,42 +1474,42 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1474
1474
|
margin: 4px;
|
|
1475
1475
|
min-width: 95px;
|
|
1476
1476
|
cursor: pointer;
|
|
1477
|
-
box-shadow: ${e=>e.$selected?"0 0 0 2px "+
|
|
1477
|
+
box-shadow: ${e=>e.$selected?"0 0 0 2px "+X.default.line.primary:"design2"===e.$design?"0 0 0 1px "+X.default.line.soft:"0 0 0 1px "+X.default.text.white};
|
|
1478
1478
|
|
|
1479
|
-
background-color: ${e=>e.$disabled?
|
|
1479
|
+
background-color: ${e=>e.$disabled?X.default.line.soft:(e.$selected,"white")};
|
|
1480
1480
|
opacity: ${e=>e.$disabled?.3:1};
|
|
1481
1481
|
transition: transform 0.05s ease-out, background-color 0.1s ease-out;
|
|
1482
1482
|
&:hover {
|
|
1483
|
-
background-color: ${e=>e.$disabled?
|
|
1483
|
+
background-color: ${e=>e.$disabled?X.default.line.soft:e.$selected?X.default.background.primaryLow:X.default.line.soft};
|
|
1484
1484
|
}
|
|
1485
1485
|
&:active {
|
|
1486
1486
|
transform: ${e=>e.$disabled?"none":"scale(0.95)"};
|
|
1487
1487
|
transition: background-color 1.2s ease-out;
|
|
1488
1488
|
}
|
|
1489
|
-
`,
|
|
1489
|
+
`,si=U.default.div`
|
|
1490
1490
|
display: flex;
|
|
1491
1491
|
flex: 1;
|
|
1492
1492
|
flex-direction: column;
|
|
1493
1493
|
margin-top: 4px;
|
|
1494
|
-
`,
|
|
1494
|
+
`,di=U.default.div`
|
|
1495
1495
|
display: flex;
|
|
1496
1496
|
flex-direction: row;
|
|
1497
1497
|
height: 36px;
|
|
1498
1498
|
width: fit-content;
|
|
1499
1499
|
gap: 16px;
|
|
1500
|
-
`,
|
|
1500
|
+
`,ci=U.default.div`
|
|
1501
1501
|
display: flex;
|
|
1502
1502
|
flex: 1;
|
|
1503
1503
|
align-items: center;
|
|
1504
1504
|
justify-content: center;
|
|
1505
1505
|
cursor: pointer;
|
|
1506
|
-
border-bottom: ${e=>e.$selected?"2px solid "+(e.color?e.color:
|
|
1507
|
-
`,
|
|
1506
|
+
border-bottom: ${e=>e.$selected?"2px solid "+(e.color?e.color:X.default.line.primary):"0px"};
|
|
1507
|
+
`,ui=U.default.div`
|
|
1508
1508
|
display: flex;
|
|
1509
1509
|
flex-direction: row;
|
|
1510
1510
|
width: fit-content;
|
|
1511
1511
|
gap: 4px;
|
|
1512
|
-
`,
|
|
1512
|
+
`,pi=U.default.div`
|
|
1513
1513
|
display: flex;
|
|
1514
1514
|
flex: 1;
|
|
1515
1515
|
align-items: center;
|
|
@@ -1517,56 +1517,56 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1517
1517
|
cursor: pointer;
|
|
1518
1518
|
padding: 7px 16px;
|
|
1519
1519
|
border-radius: 32px;
|
|
1520
|
-
background-color: ${e=>e.$selected?e.color?e.color:
|
|
1520
|
+
background-color: ${e=>e.$selected?e.color?e.color:X.default.background.primaryLow:"transparent"};
|
|
1521
1521
|
transition: background-color 0.15s ease-in;
|
|
1522
1522
|
&:hover {
|
|
1523
|
-
background-color: ${e=>e.$selected?e.color?e.color:
|
|
1523
|
+
background-color: ${e=>e.$selected?e.color?e.color:X.default.background.primaryLow:X.default.status.neutral.hover};
|
|
1524
1524
|
}
|
|
1525
|
-
${e=>
|
|
1525
|
+
${e=>G.default.lessThan("medium")`
|
|
1526
1526
|
&:hover{
|
|
1527
|
-
background-color: ${e.color?e.color:
|
|
1527
|
+
background-color: ${e.color?e.color:X.default.status.neutral.hover};
|
|
1528
1528
|
}
|
|
1529
1529
|
`}
|
|
1530
|
-
`,
|
|
1530
|
+
`,fi=U.default(J.default)`
|
|
1531
1531
|
font-size: 14px;
|
|
1532
|
-
color: ${e=>e.$selected?e.textColor?e.textColor:
|
|
1532
|
+
color: ${e=>e.$selected?e.textColor?e.textColor:X.default.text.primary:X.default.text.high};
|
|
1533
1533
|
width: max-content;
|
|
1534
1534
|
transition: color 0.15s ease-in;
|
|
1535
|
-
`,
|
|
1535
|
+
`,xi=U.default.div`
|
|
1536
1536
|
box-shadow: 0 0 0
|
|
1537
|
-
${e=>e.$focus?"secondary"===e.$design?"2px "+
|
|
1538
|
-
background-color: ${e=>e.$focus||"secondary"===e.$design?"white":e.$error?
|
|
1537
|
+
${e=>e.$focus?"secondary"===e.$design?"2px "+K.default.border.neutralMedium:"1px "+K.default.border.neutralHard:"secondary"===e.$design?"1px "+K.default.border.neutralSoft:"none"};
|
|
1538
|
+
background-color: ${e=>e.$focus||"secondary"===e.$design?"white":e.$error?K.default.surface.redSoft:K.default.surface.neutralSoft};
|
|
1539
1539
|
border-radius: ${e=>"secondary"===e.$design?"12px":"6px"};
|
|
1540
1540
|
padding: ${e=>"secondary"===e.$design?"19px 16px":"10px 16px"};
|
|
1541
|
-
`,
|
|
1541
|
+
`,hi=U.default.div`
|
|
1542
1542
|
margin: 0px 8px;
|
|
1543
1543
|
font-style: normal;
|
|
1544
1544
|
font-weight: 500;
|
|
1545
1545
|
font-size: 14px;
|
|
1546
1546
|
line-height: 12px;
|
|
1547
1547
|
display: flex;
|
|
1548
|
-
color: ${
|
|
1549
|
-
`,
|
|
1548
|
+
color: ${K.default.text.red};
|
|
1549
|
+
`,gi=r.forwardRef((o,n)=>{var i;const[l,a]=r.useState(void 0),[s,d]=r.useState(void 0),[c,u]=r.useState(void 0),[p,f]=r.useState(void 0),[x,h]=r.useState(void 0),[g,m]=r.useState(!1),[y,b]=r.useState(void 0),v=T.useStripe(),w=T.useElements();r.useEffect(()=>{o.userData&&o.userData.email?d(o.userData.email):d(void 0)},[o.userData]),r.useImperativeHandle(n,()=>({getPaymentMethod(){return e.__awaiter(this,void 0,void 0,function*(){return yield C()})}}));const j=t=>e.__awaiter(void 0,void 0,void 0,function*(){h(void 0),t.complete?b(t):b(void 0)}),C=()=>e.__awaiter(void 0,void 0,void 0,function*(){if(!(w&&v&&y&&l))return l||u("Debes añadir el nombre del titular"),y||h("Debes añadir un método de pago válido"),void(s||f("Debes añadir un email válido"));if("iban"===y.elementType){o.onLoading&&o.onLoading(!0);const e=w.getElement(T.IbanElement);if(e&&s){const{error:t,paymentMethod:n}=yield v.createPaymentMethod({type:"sepa_debit",sepa_debit:e,billing_details:{name:l,email:s}});return t?(console.error(t),void(o.onLoading&&o.onLoading(!1))):(o.onLoading&&o.onLoading(!1),n)}return void(s||f("Debes añadir un email válido"))}{o.onLoading&&o.onLoading(!0);const e=w.getElement(T.CardElement);if(e){const{error:t,paymentMethod:n}=yield v.createPaymentMethod({type:"card",card:e,billing_details:{name:l}});return t?(console.error(t),void(o.onLoading&&o.onLoading(!1))):(o.onLoading&&o.onLoading(!1),n)}}}),$=()=>{m(!0)},k=()=>{m(!1)};return t.jsxs("div",{style:o.style,children:[t.jsx(Le.default,{type:"text",title:o.placeholderName?o.placeholderName:"Nombre del titular",placeholder:o.placeholderName?o.placeholderName:"Nombre del titular",containerStyle:{marginBottom:8},design:o.design,onChange:e=>{return e&&(t=e.target.value,u(void 0),void a(t));var t},error:c}),"sepa_debit"===o.option&&!(null===(i=o.userData)||void 0===i?void 0:i.email)&&t.jsx(Le.default,{title:o.placeholderEmail?o.placeholderEmail:"Email",placeholder:o.placeholderEmail?o.placeholderEmail:"Email",containerStyle:{marginBottom:8},type:"email",design:o.design,onChange:e=>{return e&&(t=e.target.value,f(void 0),void d(t));var t},error:p}),t.jsx(xi,{$error:!!x,$focus:g,$design:o.design,children:"card"===o.option?t.jsx(T.CardElement,{options:{style:{base:{fontFamily:"Poppins",fontSize:"secondary"===o.design?"15px":"14px","::placeholder":{color:K.default.text.neutralMedium}}},hidePostalCode:!0},onChange:j,onFocus:$,onBlur:k}):t.jsx(T.IbanElement,{options:{supportedCountries:["SEPA"],style:{base:{fontFamily:"Poppins",fontSize:"secondary"===o.design?"15px":"14px","::placeholder":{color:K.default.text.neutralMedium}}}},onChange:j,onFocus:$,onBlur:k})}),x&&t.jsx(hi,{children:t.jsx(J.default,{type:"p",weight:"medium",style:{color:K.default.text.red,marginTop:4,fontSize:14},children:x})})]})}),mi=U.default.div``,yi=r.forwardRef((o,n)=>{const i=r.useRef(null),l=r.useRef(null),[a,s]=r.useState(()=>V.loadStripe(o.stripeKey)),[d,c]=r.useState(!1);r.useImperativeHandle(n,()=>({getPaymentMethod(){return e.__awaiter(this,void 0,void 0,function*(){var e;return yield null===(e=l.current)||void 0===e?void 0:e.getPaymentMethod()})}})),r.useEffect(()=>{o.stripeConfirmUrl?c(!0):u()},[o.stripeConfirmUrl]),window.addEventListener("message",function(e){"3DS-authentication-complete"===e.data&&d&&u()},!1);const u=()=>{i.current&&i.current.close()};return t.jsxs(mi,{style:o.style,role:"container",children:[t.jsx(ue.default,{ref:i,type:"web",isVisible:d,hideClose:!0,url:o.stripeConfirmUrl,style:{width:600,height:400,padding:0},onClose:()=>{c(!1),o.onSetupConfirmed&&o.onSetupConfirmed()}}),t.jsx(T.Elements,{stripe:a,options:{fonts:[{cssSrc:"https://fonts.googleapis.com/css2?family=Poppins&display=swap"}]},children:t.jsx(gi,{ref:l,option:o.paymentOption,style:o.cardStyle,onLoading:e=>{o.onLoading&&o.onLoading(e)},error:o.error,userData:o.userData,design:o.design,placeholderEmail:o.placeholderEmail,placeholderName:o.placeholderName})})]})}),bi=U.default.div`
|
|
1550
1550
|
display: flex;
|
|
1551
1551
|
flex-direction: row;
|
|
1552
|
-
border: 1px solid ${
|
|
1552
|
+
border: 1px solid ${K.default.border.neutralSoft};
|
|
1553
1553
|
width: fit-content;
|
|
1554
1554
|
border-radius: 100px;
|
|
1555
1555
|
overflow: hidden;
|
|
1556
1556
|
padding: 2px;
|
|
1557
|
-
background-color: ${
|
|
1558
|
-
`,
|
|
1557
|
+
background-color: ${K.default.surface.invert};
|
|
1558
|
+
`,vi=U.default.div`
|
|
1559
1559
|
display: flex;
|
|
1560
1560
|
padding: 8px;
|
|
1561
1561
|
cursor: pointer;
|
|
1562
|
-
background-color: ${e=>e.$selected?
|
|
1562
|
+
background-color: ${e=>e.$selected?K.default.surface.neutralSoft:"transparent"};
|
|
1563
1563
|
border-radius: 100px;
|
|
1564
1564
|
align-items: center;
|
|
1565
1565
|
justify-content: center;
|
|
1566
|
-
`,
|
|
1566
|
+
`,wi=U.default.div`
|
|
1567
1567
|
display: flex;
|
|
1568
1568
|
align-items: center;
|
|
1569
|
-
`,
|
|
1569
|
+
`,ji=U.default.div`
|
|
1570
1570
|
display: flex;
|
|
1571
1571
|
flex-direction: column;
|
|
1572
1572
|
justify-content: center;
|
|
@@ -1575,22 +1575,22 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1575
1575
|
height: 26px;
|
|
1576
1576
|
border-radius: 42px;
|
|
1577
1577
|
&:hover {
|
|
1578
|
-
background-color: ${
|
|
1578
|
+
background-color: ${X.default.background.soft};
|
|
1579
1579
|
}
|
|
1580
|
-
`,
|
|
1580
|
+
`,Ci=U.default.div`
|
|
1581
1581
|
display: flex;
|
|
1582
1582
|
flex-direction: row;
|
|
1583
1583
|
padding: 10px 16px;
|
|
1584
1584
|
border-radius: 6px;
|
|
1585
1585
|
width: fit-content;
|
|
1586
|
-
|
|
1586
|
+
`,$i=U.default.div`
|
|
1587
1587
|
display: flex;
|
|
1588
1588
|
flex-direction: column;
|
|
1589
1589
|
align-items: center;
|
|
1590
1590
|
justify-content: center;
|
|
1591
1591
|
padding: 0 14px;
|
|
1592
1592
|
border-radius: ${e=>(e.$onlyVisual,"1000px")};
|
|
1593
|
-
box-shadow: ${e=>e.$selected?"0 0 0 2px "+
|
|
1593
|
+
box-shadow: ${e=>e.$selected?"0 0 0 2px "+X.default.line.primary:"design2"===e.$design?"0 0 0 1px "+X.default.line.soft:"0 0 0 1px "+X.default.text.white};
|
|
1594
1594
|
background: var(--surface-invert, #fff);
|
|
1595
1595
|
margin: 3.9px;
|
|
1596
1596
|
cursor: ${e=>e.$onlyVisual?"default":"pointer"};
|
|
@@ -1602,11 +1602,11 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1602
1602
|
height: 36px;
|
|
1603
1603
|
line-height: 24px;
|
|
1604
1604
|
|
|
1605
|
-
${
|
|
1605
|
+
${G.default.lessThan("small")`
|
|
1606
1606
|
width: auto;
|
|
1607
1607
|
max-width: none;
|
|
1608
1608
|
`}
|
|
1609
|
-
`,
|
|
1609
|
+
`,ki=U.default(J.default)`
|
|
1610
1610
|
color: var(--text-clear-neutral-hard, rgba(0, 29, 61, 0.92));
|
|
1611
1611
|
font-feature-settings:
|
|
1612
1612
|
"liga" off,
|
|
@@ -1615,14 +1615,14 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1615
1615
|
font-weight: 500;
|
|
1616
1616
|
font-size: 14px !important;
|
|
1617
1617
|
text-align: center;
|
|
1618
|
-
`,
|
|
1618
|
+
`,Li=e=>t.jsx($i,{role:e.role,style:e.style,$selected:e.selected,$onlyVisual:e.onlyVisual||!1,$design:e.design||"design1",onClick:()=>{e.onlyVisual||e.onClick&&e.onClick()},children:t.jsx(ki,{type:"p",children:e.title})}),Si=U.default.div`
|
|
1619
1619
|
display: flex;
|
|
1620
1620
|
flex-direction: column;
|
|
1621
1621
|
align-items: center;
|
|
1622
1622
|
justify-content: center;
|
|
1623
1623
|
padding: 16px 8px;
|
|
1624
1624
|
border-radius: ${e=>(e.$onlyVisual,"12px")};
|
|
1625
|
-
box-shadow: ${e=>e.$selected?"0 0 0 2px "+
|
|
1625
|
+
box-shadow: ${e=>e.$selected?"0 0 0 2px "+X.default.line.primary:"design2"===e.$design?"0 0 0 1px "+X.default.line.soft:"0 0 0 1px "+X.default.text.white};
|
|
1626
1626
|
background: var(--surface-invert, #fff);
|
|
1627
1627
|
margin: 3.9px;
|
|
1628
1628
|
margin-bottom: 8px;
|
|
@@ -1635,18 +1635,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1635
1635
|
height: 74px;
|
|
1636
1636
|
line-height: 24px; /* Para centrar verticalmente el texto en contenedores con subtítulo */
|
|
1637
1637
|
|
|
1638
|
-
${
|
|
1638
|
+
${G.default.lessThan("small")`
|
|
1639
1639
|
width: auto;
|
|
1640
1640
|
max-width: none;
|
|
1641
1641
|
`}
|
|
1642
|
-
`,
|
|
1642
|
+
`,Fi=U.default(J.default)`
|
|
1643
1643
|
color: var(--text-clear-neutral-hard, rgba(0, 29, 61, 0.92));
|
|
1644
1644
|
font-feature-settings: "liga" off, "clig" off;
|
|
1645
1645
|
font-style: normal;
|
|
1646
1646
|
font-weight: 500;
|
|
1647
1647
|
font-size: 14px !important;
|
|
1648
1648
|
text-align: center;
|
|
1649
|
-
`,
|
|
1649
|
+
`,_i=U.default(J.default)`
|
|
1650
1650
|
color: var(--text-clear-neutral-medium, rgba(0, 29, 61, 0.56));
|
|
1651
1651
|
text-align: center;
|
|
1652
1652
|
font-family: Poppins;
|
|
@@ -1654,11 +1654,11 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1654
1654
|
font-style: normal;
|
|
1655
1655
|
font-weight: 400;
|
|
1656
1656
|
line-height: 20px;
|
|
1657
|
-
`,
|
|
1657
|
+
`,Ei=e=>t.jsxs(Si,{role:e.role,style:e.style,$selected:e.selected,$onlyVisual:e.onlyVisual||!1,$design:e.design||"design1",onClick:()=>{e.onlyVisual||e.onClick&&e.onClick()},children:[t.jsx(Fi,{type:"p",children:e.title}),t.jsx(_i,{type:"p",children:e.subtitle})]}),Di=U.default.div`
|
|
1658
1658
|
display: flex;
|
|
1659
1659
|
flex-direction: row;
|
|
1660
1660
|
flex-wrap: wrap;
|
|
1661
|
-
`,
|
|
1661
|
+
`,Oi=U.default.div``,zi=U.default.div`
|
|
1662
1662
|
display: flex;
|
|
1663
1663
|
flex-direction: row;
|
|
1664
1664
|
margin-bottom: 24px;
|
|
@@ -1666,19 +1666,19 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1666
1666
|
&:hover {
|
|
1667
1667
|
text-decoration: ${e=>e.$selected?"none":"underline"};
|
|
1668
1668
|
}
|
|
1669
|
-
`,
|
|
1669
|
+
`,Mi=U.default.div`
|
|
1670
1670
|
display: flex;
|
|
1671
1671
|
flex-direction: column;
|
|
1672
|
-
|
|
1672
|
+
`;var Bi="styles-module_fcc__container__zadQu",Hi="styles-module_fcc__digit_block_container__PpRXT",Pi="styles-module_fcc__digit_block__BTDZJ",Ai="styles-module_fcc__current_below__HQtVT",Ti="styles-module_fcc__next_above__V8I1M",Vi="styles-module_fcc__card__TY7mL",Ii="styles-module_fcc__flipped__yL0nE",Ri="styles-module_fcc__card_face__qnzxT",Zi="styles-module_fcc__card_face_front__RD6TB",qi="styles-module_fcc__card_face_back__VzEYT";function Ni(e){const{current:o,next:n,className:i}=e,[l,r]=Q.default.useState({current:o,next:n}),[a,s]=Q.default.useState(!1);Q.default.useEffect(()=>{l.current!==o?(l.current===l.next&&r(Object.assign(Object.assign({},l),{next:n})),s(!0)):s(!1)},[o,n]);return t.jsxs("div",{className:Se.default(Pi,i),children:[t.jsx("div",{className:Ti,children:l.next}),t.jsx("div",{className:Ai,children:l.current}),t.jsxs("div",{className:Se.default(Vi,{[Ii]:a}),onTransitionEnd:()=>{r({current:o,next:n}),s(!1)},children:[t.jsx("div",{className:Se.default(Ri,Zi),children:l.current}),t.jsx("div",{className:Se.default(Ri,qi),children:l.next})]})]})}Xt('.styles-module_fcc__container__zadQu {\n\t--fcc-flip-duration: 0.3s;\n\t--fcc-digit-block-width: 24px;\n\t--fcc-digit-block-height: 36px;\n\t--fcc-digit-font-size: 28px;\n\t--fcc-background: white;\n\t--fcc-digit-color: #008ff5;\n\t--fcc-divider-color: #f9f6f3;\n\t--fcc-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.08);\n}\n\n.styles-module_fcc__container__zadQu {\n\tfont-family: "Poppins";\n\tfont-size: var(--fcc-digit-font-size);\n\tcolor: var(--fcc-digit-color);\n\tline-height: 0;\n\tfont-weight: 500;\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\tuser-select: none;\n\tcursor: default;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.styles-module_fcc__digit_block_container__PpRXT .styles-module_fcc__digit_block__BTDZJ:not(:last-child) {\n\tmargin-right: 2px;\n}\n\n.styles-module_fcc__digit_block_container__PpRXT {\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.styles-module_fcc__digit_block__BTDZJ {\n\tperspective: 200px;\n\tposition: relative;\n\twidth: var(--fcc-digit-block-width);\n\theight: var(--fcc-digit-block-height);\n\tbox-shadow: var(--fcc-shadow);\n\tborder-radius: 6px;\n border: 1px solid var(--fcc-divider-color);\n}\n\n.styles-module_fcc__current_below__HQtVT,\n.styles-module_fcc__next_above__V8I1M {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 50%;\n\toverflow: hidden;\n\tdisplay: flex;\n\tjustify-content: center;\n\tbackground: var(--fcc-background);\n}\n\n.styles-module_fcc__next_above__V8I1M {\n\talign-items: flex-end;\n\ttop: 0;\n\tborder-top-left-radius: 6px;\n\tborder-top-right-radius: 6px;\n\tborder-bottom: 1px solid var(--fcc-divider-color);\n}\n\n.styles-module_fcc__current_below__HQtVT {\n\talign-items: flex-start;\n\tbottom: 0;\n\tborder-bottom-left-radius: 6px;\n\tborder-bottom-right-radius: 6px;\n}\n\n.styles-module_fcc__card__TY7mL {\n\tposition: relative;\n\tz-index: 2;\n\twidth: 100%;\n\theight: 50%;\n\ttransform-style: preserve-3d;\n\ttransform-origin: bottom;\n\ttransform: rotateX(0);\n}\n\n.styles-module_fcc__card__TY7mL.styles-module_fcc__flipped__yL0nE {\n\ttransition: transform var(--fcc-flip-duration) ease-in-out;\n\ttransform: rotateX(-180deg);\n}\n\n.styles-module_fcc__card_face__qnzxT {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tjustify-content: center;\n\toverflow: hidden;\n\tbackface-visibility: hidden;\n\tbackground: var(--fcc-background);\n}\n\n.styles-module_fcc__card_face_front__RD6TB {\n\talign-items: flex-end;\n\tborder-top-left-radius: 6px;\n\tborder-top-right-radius: 6px;\n\tborder-bottom: 1px solid var(--fcc-divider-color);\n}\n\n.styles-module_fcc__card_face_back__VzEYT {\n\talign-items: flex-start;\n\ttransform: rotateX(-180deg);\n\tborder-bottom-left-radius: 6px;\n\tborder-bottom-right-radius: 6px;\n\tbox-shadow: 1px 1px 3px 0px rgba(0, 0, 0, 0.2);\n}\n');const Wi=U.default.div`
|
|
1673
1673
|
position: relative;
|
|
1674
1674
|
width: fit-content;
|
|
1675
1675
|
width: 108px;
|
|
1676
1676
|
height: 132px;
|
|
1677
|
-
${
|
|
1677
|
+
${G.default.lessThan("small")`
|
|
1678
1678
|
height: 120px;
|
|
1679
1679
|
width: 96px;
|
|
1680
1680
|
`}
|
|
1681
|
-
`,
|
|
1681
|
+
`,Yi=U.default.div`
|
|
1682
1682
|
display: flex;
|
|
1683
1683
|
align-items: center;
|
|
1684
1684
|
justify-content: center;
|
|
@@ -1687,24 +1687,24 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1687
1687
|
margin-top: 8px;
|
|
1688
1688
|
margin-left: 5px;
|
|
1689
1689
|
background-color: ${e=>e.$backgroundColor};
|
|
1690
|
-
${
|
|
1690
|
+
${G.default.lessThan("small")`
|
|
1691
1691
|
height: 84px;
|
|
1692
1692
|
width: 84px;
|
|
1693
1693
|
`}
|
|
1694
|
-
`,
|
|
1694
|
+
`,Ui=U.default.div`
|
|
1695
1695
|
position: absolute;
|
|
1696
1696
|
top: 0px;
|
|
1697
1697
|
bottom: 0px;
|
|
1698
1698
|
left: 0px;
|
|
1699
1699
|
right: 0px;
|
|
1700
|
-
`,
|
|
1700
|
+
`,Xi=U.default.div`
|
|
1701
1701
|
display: flex;
|
|
1702
1702
|
flex-direction: column;
|
|
1703
1703
|
align-items: center;
|
|
1704
1704
|
z-index: 1;
|
|
1705
1705
|
position: relative;
|
|
1706
1706
|
height: 100%;
|
|
1707
|
-
`,Tr=e=>e.isMobile?i("svg",{width:"102",height:"126",viewBox:"0 0 102 126",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("g",{filter:"url(#filter0_d_13051_9213)",children:[o("rect",{x:"10",y:"9",width:"82",height:"82",fill:"white"}),o("rect",{x:"10",y:"9",width:"82",height:"82",stroke:"white","stroke-width":"2"}),o("rect",{width:"84",height:"24",transform:"translate(9 92)",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 6C17.2091 6 19 4.20914 19 2H21V8H9V2H11C11 4.20914 12.7909 6 15 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 6C29.2091 6 31 4.20914 31 2H33V8H21V2H23C23 4.20914 24.7909 6 27 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39 6C41.2091 6 43 4.20914 43 2H45V8H33V2H35C35 4.20914 36.7909 6 39 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M51 6C53.2091 6 55 4.20914 55 2H57V8H45V2H47C47 4.20914 48.7909 6 51 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63 6C65.2091 6 67 4.20914 67 2H69V8H57V2H59C59 4.20914 60.7909 6 63 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M75 6C77.2091 6 79 4.20914 79 2H81V8H69V2H71C71 4.20914 72.7909 6 75 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87 6C89.2091 6 91 4.20914 91 2H93V8H81V2H83C83 4.20914 84.7909 6 87 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 2C95 4.20914 96.7909 6 99 6L99 8L93 8L93 2L95 2Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 14C95 16.2091 96.7909 18 99 18L99 20L93 20L93 8L99 8L99 10C96.7909 10 95 11.7909 95 14Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 26C95 28.2091 96.7909 30 99 30L99 32L93 32L93 20L99 20L99 22C96.7909 22 95 23.7909 95 26Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 38C95 40.2091 96.7909 42 99 42L99 44L93 44L93 32L99 32L99 34C96.7909 34 95 35.7909 95 38Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 50C95 52.2091 96.7909 54 99 54L99 56L93 56L93 44L99 44L99 46C96.7909 46 95 47.7909 95 50Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 62C95 64.2091 96.7909 66 99 66L99 68L93 68L93 56L99 56L99 58C96.7909 58 95 59.7909 95 62Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 74C95 76.2091 96.7909 78 99 78L99 80L93 80L93 68L99 68L99 70C96.7909 70 95 71.7909 95 74Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 86C95 88.2091 96.7909 90 99 90L99 92L93 92L93 80L99 80L99 82C96.7909 82 95 83.7909 95 86Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 98C95 100.209 96.7909 102 99 102L99 104L93 104L93 92L99 92L99 94C96.7909 94 95 95.7909 95 98Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 110C95 112.209 96.7909 114 99 114L99 116L93 116L93 104L99 104L99 106C96.7909 106 95 107.791 95 110Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 118C96.7909 118 95 119.791 95 122L93 122L93 116L99 116L99 118Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87 118C84.7909 118 83 119.791 83 122L81 122L81 116L93 116L93 122L91 122C91 119.791 89.2091 118 87 118Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M75 118C72.7909 118 71 119.791 71 122L69 122L69 116L81 116L81 122L79 122C79 119.791 77.2091 118 75 118Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63 118C60.7909 118 59 119.791 59 122L57 122L57 116L69 116L69 122L67 122C67 119.791 65.2091 118 63 118Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M51 118C48.7909 118 47 119.791 47 122L45 122L45 116L57 116L57 122L55 122C55 119.791 53.2091 118 51 118Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39 118C36.7909 118 35 119.791 35 122L33 122L33 116L45 116L45 122L43 122C43 119.791 41.2091 118 39 118Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 118C24.7909 118 23 119.791 23 122L21 122L21 116L33 116L33 122L31 122C31 119.791 29.2091 118 27 118Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 118C12.7909 118 11 119.791 11 122L9 122L9 116L21 116L21 122L19 122C19 119.791 17.2091 118 15 118Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 122C7 119.791 5.20914 118 3 118L3 116L9 116L9 122L7 122Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 110C7 107.791 5.20914 106 3 106L3 104L9 104L9 116L3 116L3 114C5.20914 114 7 112.209 7 110Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 98C7 95.7909 5.20914 94 3 94L3 92L9 92L9 104L3 104L3 102C5.20914 102 7 100.209 7 98Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 86C7 83.7909 5.20914 82 3 82L3 80L9 80L9 92L3 92L3 90C5.20914 90 7 88.2091 7 86Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 74C7 71.7909 5.20914 70 3 70L3 68L9 68L9 80L3 80L3 78C5.20914 78 7 76.2091 7 74Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 62C7 59.7909 5.20914 58 3 58L3 56L9 56L9 68L3 68L3 66C5.20914 66 7 64.2091 7 62Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 50C7 47.7909 5.20914 46 3 46L3 44L9 44L9 56L3 56L3 54C5.20914 54 7 52.2091 7 50Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 38C7 35.7909 5.20914 34 3 34L3 32L9 32L9 44L3 44L3 42C5.20914 42 7 40.2091 7 38Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 26C7 23.7909 5.20914 22 3 22L3 20L9 20L9 32L3 32L3 30C5.20914 30 7 28.2091 7 26Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14C7 11.7909 5.20914 10 3 10L3 8L9 8L9 20L3 20L3 18C5.20914 18 7 16.2091 7 14Z",fill:"white"})]}),o("defs",{children:i("filter",{id:"filter0_d_13051_9213",x:"0",y:"0",width:"102",height:"126",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[o("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o("feOffset",{dy:"1"}),o("feGaussianBlur",{stdDeviation:"1.5"}),o("feComposite",{in2:"hardAlpha",operator:"out"}),o("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24 0"}),o("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13051_9213"}),o("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13051_9213",result:"shape"})]})})]}):i("svg",{width:"114",height:"138",viewBox:"0 0 114 138",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("g",{filter:"url(#filter0_d_13052_9519)",children:[o("rect",{x:"10",y:"9",width:"94",height:"94",fill:"white"}),o("rect",{x:"10",y:"9",width:"94",height:"94",stroke:"white","stroke-width":"2"}),o("rect",{width:"96",height:"24",transform:"translate(9 104)",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 6C17.2091 6 19 4.20914 19 2H21V8H9V2H11C11 4.20914 12.7909 6 15 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 6C29.2091 6 31 4.20914 31 2H33V8H21V2H23C23 4.20914 24.7909 6 27 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39 6C41.2091 6 43 4.20914 43 2H45V8H33V2H35C35 4.20914 36.7909 6 39 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M51 6C53.2091 6 55 4.20914 55 2H57V8H45V2H47C47 4.20914 48.7909 6 51 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63 6C65.2091 6 67 4.20914 67 2H69V8H57V2H59C59 4.20914 60.7909 6 63 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M75 6C77.2091 6 79 4.20914 79 2H81V8H69V2H71C71 4.20914 72.7909 6 75 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87 6C89.2091 6 91 4.20914 91 2H93V8H81V2H83C83 4.20914 84.7909 6 87 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 6C101.209 6 103 4.20914 103 2H105V8H93V2H95C95 4.20914 96.7909 6 99 6Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 2C107 4.20914 108.791 6 111 6L111 8L105 8L105 2L107 2Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 14C107 16.2091 108.791 18 111 18L111 20L105 20L105 8L111 8L111 10C108.791 10 107 11.7909 107 14Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 26C107 28.2091 108.791 30 111 30L111 32L105 32L105 20L111 20L111 22C108.791 22 107 23.7909 107 26Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 38C107 40.2091 108.791 42 111 42L111 44L105 44L105 32L111 32L111 34C108.791 34 107 35.7909 107 38Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 50C107 52.2091 108.791 54 111 54L111 56L105 56L105 44L111 44L111 46C108.791 46 107 47.7909 107 50Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 62C107 64.2091 108.791 66 111 66L111 68L105 68L105 56L111 56L111 58C108.791 58 107 59.7909 107 62Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 74C107 76.2091 108.791 78 111 78L111 80L105 80L105 68L111 68L111 70C108.791 70 107 71.7909 107 74Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 86C107 88.2091 108.791 90 111 90L111 92L105 92L105 80L111 80L111 82C108.791 82 107 83.7909 107 86Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 98C107 100.209 108.791 102 111 102L111 104L105 104L105 92L111 92L111 94C108.791 94 107 95.7909 107 98Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 110C107 112.209 108.791 114 111 114L111 116L105 116L105 104L111 104L111 106C108.791 106 107 107.791 107 110Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 122C107 124.209 108.791 126 111 126L111 128L105 128L105 116L111 116L111 118C108.791 118 107 119.791 107 122Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M111 130C108.791 130 107 131.791 107 134L105 134L105 128L111 128L111 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 130C96.7909 130 95 131.791 95 134L93 134L93 128L105 128L105 134L103 134C103 131.791 101.209 130 99 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87 130C84.7909 130 83 131.791 83 134L81 134L81 128L93 128L93 134L91 134C91 131.791 89.2091 130 87 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M75 130C72.7909 130 71 131.791 71 134L69 134L69 128L81 128L81 134L79 134C79 131.791 77.2091 130 75 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63 130C60.7909 130 59 131.791 59 134L57 134L57 128L69 128L69 134L67 134C67 131.791 65.2091 130 63 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M51 130C48.7909 130 47 131.791 47 134L45 134L45 128L57 128L57 134L55 134C55 131.791 53.2091 130 51 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39 130C36.7909 130 35 131.791 35 134L33 134L33 128L45 128L45 134L43 134C43 131.791 41.2091 130 39 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 130C24.7909 130 23 131.791 23 134L21 134L21 128L33 128L33 134L31 134C31 131.791 29.2091 130 27 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 130C12.7909 130 11 131.791 11 134L9 134L9 128L21 128L21 134L19 134C19 131.791 17.2091 130 15 130Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 134C7 131.791 5.20914 130 3 130L3 128L9 128L9 134L7 134Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 122C7 119.791 5.20914 118 3 118L3 116L9 116L9 128L3 128L3 126C5.20914 126 7 124.209 7 122Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 110C7 107.791 5.20914 106 3 106L3 104L9 104L9 116L3 116L3 114C5.20914 114 7 112.209 7 110Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 98C7 95.7909 5.20914 94 3 94L3 92L9 92L9 104L3 104L3 102C5.20914 102 7 100.209 7 98Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 86C7 83.7909 5.20914 82 3 82L3 80L9 80L9 92L3 92L3 90C5.20914 90 7 88.2091 7 86Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 74C7 71.7909 5.20914 70 3 70L3 68L9 68L9 80L3 80L3 78C5.20914 78 7 76.2091 7 74Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 62C7 59.7909 5.20914 58 3 58L3 56L9 56L9 68L3 68L3 66C5.20914 66 7 64.2091 7 62Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 50C7 47.7909 5.20914 46 3 46L3 44L9 44L9 56L3 56L3 54C5.20914 54 7 52.2091 7 50Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 38C7 35.7909 5.20914 34 3 34L3 32L9 32L9 44L3 44L3 42C5.20914 42 7 40.2091 7 38Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 26C7 23.7909 5.20914 22 3 22L3 20L9 20L9 32L3 32L3 30C5.20914 30 7 28.2091 7 26Z",fill:"white"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14C7 11.7909 5.20914 10 3 10L3 8L9 8L9 20L3 20L3 18C5.20914 18 7 16.2091 7 14Z",fill:"white"})]}),o("defs",{children:i("filter",{id:"filter0_d_13052_9519",x:"0",y:"0",width:"114",height:"138",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[o("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),o("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),o("feOffset",{dy:"1"}),o("feGaussianBlur",{stdDeviation:"1.5"}),o("feComposite",{in2:"hardAlpha",operator:"out"}),o("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24 0"}),o("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13052_9519"}),o("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13052_9519",result:"shape"})]})})]}),Vr=e=>{const t=window.innerWidth<=450;return i(Er,{role:"stamp",style:e.style,children:[o(Ar,{children:o(Tr,{isMobile:t})}),i(Pr,{children:[o(Hr,{$backgroundColor:e.backgroundColor,children:o($,{type:"d1",children:e.icon})}),o($,{type:"p",style:{maxWidth:"-webkit-fill-available",margin:"4px 3px 0px 9px",width:"100%",fontFamily:"DM Mono",fontSize:13,maxHeight:24,textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.title})]})]})},Ir=r.div`
|
|
1707
|
+
`,Gi=e=>e.isMobile?t.jsxs("svg",{width:"102",height:"126",viewBox:"0 0 102 126",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{filter:"url(#filter0_d_13051_9213)",children:[t.jsx("rect",{x:"10",y:"9",width:"82",height:"82",fill:"white"}),t.jsx("rect",{x:"10",y:"9",width:"82",height:"82",stroke:"white","stroke-width":"2"}),t.jsx("rect",{width:"84",height:"24",transform:"translate(9 92)",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 6C17.2091 6 19 4.20914 19 2H21V8H9V2H11C11 4.20914 12.7909 6 15 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 6C29.2091 6 31 4.20914 31 2H33V8H21V2H23C23 4.20914 24.7909 6 27 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39 6C41.2091 6 43 4.20914 43 2H45V8H33V2H35C35 4.20914 36.7909 6 39 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M51 6C53.2091 6 55 4.20914 55 2H57V8H45V2H47C47 4.20914 48.7909 6 51 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63 6C65.2091 6 67 4.20914 67 2H69V8H57V2H59C59 4.20914 60.7909 6 63 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M75 6C77.2091 6 79 4.20914 79 2H81V8H69V2H71C71 4.20914 72.7909 6 75 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87 6C89.2091 6 91 4.20914 91 2H93V8H81V2H83C83 4.20914 84.7909 6 87 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 2C95 4.20914 96.7909 6 99 6L99 8L93 8L93 2L95 2Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 14C95 16.2091 96.7909 18 99 18L99 20L93 20L93 8L99 8L99 10C96.7909 10 95 11.7909 95 14Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 26C95 28.2091 96.7909 30 99 30L99 32L93 32L93 20L99 20L99 22C96.7909 22 95 23.7909 95 26Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 38C95 40.2091 96.7909 42 99 42L99 44L93 44L93 32L99 32L99 34C96.7909 34 95 35.7909 95 38Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 50C95 52.2091 96.7909 54 99 54L99 56L93 56L93 44L99 44L99 46C96.7909 46 95 47.7909 95 50Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 62C95 64.2091 96.7909 66 99 66L99 68L93 68L93 56L99 56L99 58C96.7909 58 95 59.7909 95 62Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 74C95 76.2091 96.7909 78 99 78L99 80L93 80L93 68L99 68L99 70C96.7909 70 95 71.7909 95 74Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 86C95 88.2091 96.7909 90 99 90L99 92L93 92L93 80L99 80L99 82C96.7909 82 95 83.7909 95 86Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 98C95 100.209 96.7909 102 99 102L99 104L93 104L93 92L99 92L99 94C96.7909 94 95 95.7909 95 98Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 110C95 112.209 96.7909 114 99 114L99 116L93 116L93 104L99 104L99 106C96.7909 106 95 107.791 95 110Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 118C96.7909 118 95 119.791 95 122L93 122L93 116L99 116L99 118Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87 118C84.7909 118 83 119.791 83 122L81 122L81 116L93 116L93 122L91 122C91 119.791 89.2091 118 87 118Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M75 118C72.7909 118 71 119.791 71 122L69 122L69 116L81 116L81 122L79 122C79 119.791 77.2091 118 75 118Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63 118C60.7909 118 59 119.791 59 122L57 122L57 116L69 116L69 122L67 122C67 119.791 65.2091 118 63 118Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M51 118C48.7909 118 47 119.791 47 122L45 122L45 116L57 116L57 122L55 122C55 119.791 53.2091 118 51 118Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39 118C36.7909 118 35 119.791 35 122L33 122L33 116L45 116L45 122L43 122C43 119.791 41.2091 118 39 118Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 118C24.7909 118 23 119.791 23 122L21 122L21 116L33 116L33 122L31 122C31 119.791 29.2091 118 27 118Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 118C12.7909 118 11 119.791 11 122L9 122L9 116L21 116L21 122L19 122C19 119.791 17.2091 118 15 118Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 122C7 119.791 5.20914 118 3 118L3 116L9 116L9 122L7 122Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 110C7 107.791 5.20914 106 3 106L3 104L9 104L9 116L3 116L3 114C5.20914 114 7 112.209 7 110Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 98C7 95.7909 5.20914 94 3 94L3 92L9 92L9 104L3 104L3 102C5.20914 102 7 100.209 7 98Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 86C7 83.7909 5.20914 82 3 82L3 80L9 80L9 92L3 92L3 90C5.20914 90 7 88.2091 7 86Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 74C7 71.7909 5.20914 70 3 70L3 68L9 68L9 80L3 80L3 78C5.20914 78 7 76.2091 7 74Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 62C7 59.7909 5.20914 58 3 58L3 56L9 56L9 68L3 68L3 66C5.20914 66 7 64.2091 7 62Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 50C7 47.7909 5.20914 46 3 46L3 44L9 44L9 56L3 56L3 54C5.20914 54 7 52.2091 7 50Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 38C7 35.7909 5.20914 34 3 34L3 32L9 32L9 44L3 44L3 42C5.20914 42 7 40.2091 7 38Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 26C7 23.7909 5.20914 22 3 22L3 20L9 20L9 32L3 32L3 30C5.20914 30 7 28.2091 7 26Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14C7 11.7909 5.20914 10 3 10L3 8L9 8L9 20L3 20L3 18C5.20914 18 7 16.2091 7 14Z",fill:"white"})]}),t.jsx("defs",{children:t.jsxs("filter",{id:"filter0_d_13051_9213",x:"0",y:"0",width:"102",height:"126",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[t.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1"}),t.jsx("feGaussianBlur",{stdDeviation:"1.5"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13051_9213"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13051_9213",result:"shape"})]})})]}):t.jsxs("svg",{width:"114",height:"138",viewBox:"0 0 114 138",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{filter:"url(#filter0_d_13052_9519)",children:[t.jsx("rect",{x:"10",y:"9",width:"94",height:"94",fill:"white"}),t.jsx("rect",{x:"10",y:"9",width:"94",height:"94",stroke:"white","stroke-width":"2"}),t.jsx("rect",{width:"96",height:"24",transform:"translate(9 104)",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 6C17.2091 6 19 4.20914 19 2H21V8H9V2H11C11 4.20914 12.7909 6 15 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 6C29.2091 6 31 4.20914 31 2H33V8H21V2H23C23 4.20914 24.7909 6 27 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39 6C41.2091 6 43 4.20914 43 2H45V8H33V2H35C35 4.20914 36.7909 6 39 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M51 6C53.2091 6 55 4.20914 55 2H57V8H45V2H47C47 4.20914 48.7909 6 51 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63 6C65.2091 6 67 4.20914 67 2H69V8H57V2H59C59 4.20914 60.7909 6 63 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M75 6C77.2091 6 79 4.20914 79 2H81V8H69V2H71C71 4.20914 72.7909 6 75 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87 6C89.2091 6 91 4.20914 91 2H93V8H81V2H83C83 4.20914 84.7909 6 87 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 6C101.209 6 103 4.20914 103 2H105V8H93V2H95C95 4.20914 96.7909 6 99 6Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 2C107 4.20914 108.791 6 111 6L111 8L105 8L105 2L107 2Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 14C107 16.2091 108.791 18 111 18L111 20L105 20L105 8L111 8L111 10C108.791 10 107 11.7909 107 14Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 26C107 28.2091 108.791 30 111 30L111 32L105 32L105 20L111 20L111 22C108.791 22 107 23.7909 107 26Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 38C107 40.2091 108.791 42 111 42L111 44L105 44L105 32L111 32L111 34C108.791 34 107 35.7909 107 38Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 50C107 52.2091 108.791 54 111 54L111 56L105 56L105 44L111 44L111 46C108.791 46 107 47.7909 107 50Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 62C107 64.2091 108.791 66 111 66L111 68L105 68L105 56L111 56L111 58C108.791 58 107 59.7909 107 62Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 74C107 76.2091 108.791 78 111 78L111 80L105 80L105 68L111 68L111 70C108.791 70 107 71.7909 107 74Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 86C107 88.2091 108.791 90 111 90L111 92L105 92L105 80L111 80L111 82C108.791 82 107 83.7909 107 86Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 98C107 100.209 108.791 102 111 102L111 104L105 104L105 92L111 92L111 94C108.791 94 107 95.7909 107 98Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 110C107 112.209 108.791 114 111 114L111 116L105 116L105 104L111 104L111 106C108.791 106 107 107.791 107 110Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 122C107 124.209 108.791 126 111 126L111 128L105 128L105 116L111 116L111 118C108.791 118 107 119.791 107 122Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M111 130C108.791 130 107 131.791 107 134L105 134L105 128L111 128L111 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 130C96.7909 130 95 131.791 95 134L93 134L93 128L105 128L105 134L103 134C103 131.791 101.209 130 99 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M87 130C84.7909 130 83 131.791 83 134L81 134L81 128L93 128L93 134L91 134C91 131.791 89.2091 130 87 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M75 130C72.7909 130 71 131.791 71 134L69 134L69 128L81 128L81 134L79 134C79 131.791 77.2091 130 75 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M63 130C60.7909 130 59 131.791 59 134L57 134L57 128L69 128L69 134L67 134C67 131.791 65.2091 130 63 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M51 130C48.7909 130 47 131.791 47 134L45 134L45 128L57 128L57 134L55 134C55 131.791 53.2091 130 51 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39 130C36.7909 130 35 131.791 35 134L33 134L33 128L45 128L45 134L43 134C43 131.791 41.2091 130 39 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M27 130C24.7909 130 23 131.791 23 134L21 134L21 128L33 128L33 134L31 134C31 131.791 29.2091 130 27 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 130C12.7909 130 11 131.791 11 134L9 134L9 128L21 128L21 134L19 134C19 131.791 17.2091 130 15 130Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 134C7 131.791 5.20914 130 3 130L3 128L9 128L9 134L7 134Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 122C7 119.791 5.20914 118 3 118L3 116L9 116L9 128L3 128L3 126C5.20914 126 7 124.209 7 122Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 110C7 107.791 5.20914 106 3 106L3 104L9 104L9 116L3 116L3 114C5.20914 114 7 112.209 7 110Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 98C7 95.7909 5.20914 94 3 94L3 92L9 92L9 104L3 104L3 102C5.20914 102 7 100.209 7 98Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 86C7 83.7909 5.20914 82 3 82L3 80L9 80L9 92L3 92L3 90C5.20914 90 7 88.2091 7 86Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 74C7 71.7909 5.20914 70 3 70L3 68L9 68L9 80L3 80L3 78C5.20914 78 7 76.2091 7 74Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 62C7 59.7909 5.20914 58 3 58L3 56L9 56L9 68L3 68L3 66C5.20914 66 7 64.2091 7 62Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 50C7 47.7909 5.20914 46 3 46L3 44L9 44L9 56L3 56L3 54C5.20914 54 7 52.2091 7 50Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 38C7 35.7909 5.20914 34 3 34L3 32L9 32L9 44L3 44L3 42C5.20914 42 7 40.2091 7 38Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 26C7 23.7909 5.20914 22 3 22L3 20L9 20L9 32L3 32L3 30C5.20914 30 7 28.2091 7 26Z",fill:"white"}),t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14C7 11.7909 5.20914 10 3 10L3 8L9 8L9 20L3 20L3 18C5.20914 18 7 16.2091 7 14Z",fill:"white"})]}),t.jsx("defs",{children:t.jsxs("filter",{id:"filter0_d_13052_9519",x:"0",y:"0",width:"114",height:"138",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[t.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),t.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),t.jsx("feOffset",{dy:"1"}),t.jsx("feGaussianBlur",{stdDeviation:"1.5"}),t.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),t.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.24 0"}),t.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13052_9519"}),t.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13052_9519",result:"shape"})]})})]}),Ki=U.default.div`
|
|
1708
1708
|
position: relative;
|
|
1709
1709
|
display: flex;
|
|
1710
1710
|
width: 48px;
|
|
@@ -1713,10 +1713,10 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1713
1713
|
justify-content: center;
|
|
1714
1714
|
gap: 10px;
|
|
1715
1715
|
border-radius: 100px;
|
|
1716
|
-
background: ${e=>e.$active?e.$color?e.$color:
|
|
1716
|
+
background: ${e=>e.$active?e.$color?e.$color:K.default.surface.primary:K.default.surface.neutralLow};
|
|
1717
1717
|
cursor: pointer;
|
|
1718
1718
|
transition: background 0.3s;
|
|
1719
|
-
`,
|
|
1719
|
+
`,Qi=U.default.div`
|
|
1720
1720
|
position: absolute;
|
|
1721
1721
|
display: flex;
|
|
1722
1722
|
align-items: center;
|
|
@@ -1728,35 +1728,35 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1728
1728
|
top: 2px;
|
|
1729
1729
|
left: ${e=>e.$active?"22px":"2px"};
|
|
1730
1730
|
transition: left 0.3s;
|
|
1731
|
-
|
|
1731
|
+
`;Xt('.bubble-container {\n\tdisplay: flex;\n\tflex: 1;\n\tfont-family: "Poppins";\n\tfont-size: 13px;\n\tfont-style: normal;\n\tfont-weight: 400;\n\tline-height: 20px;\n\talign-items: flex-end;\n\tmargin-top: 2px;\n}\n\n.bubble-direction-reverse {\n\tflex-direction: row-reverse;\n}\n\n.bubble {\n\tbackground-color: #f2f2f2;\n\tborder-radius: 6px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: relative;\n\tvertical-align: top;\n\tword-wrap: break-word;\n\tcolor: rgba(0, 29, 61, 0.92);\n\tmax-width: 350px;\n}\n\n.me {\n\tbackground-color: #F0F3F6;\n\tmargin-left: 12px;\n\tmargin-right: 40%;\n}\n\n.you {\n\tbackground-color: #008FF5;\n\tmargin-left: 40%;\n\tmargin-right: 12px;\n\tcolor: white;\n}\n\n@media only screen and (max-width: 450px) {\n\t.me {\n\t\tmargin-right: 40px;\n\t}\n\t.you {\n\t\tmargin-right: 12px;\n\t}\n}\n');Xt(".you--audio::-webkit-media-controls-panel {\n\tbackground-color: #008FF5;\n\tpadding: 4px 4px 0px;\n}\n\n.me--audio::-webkit-media-controls-panel {\n\tbackground-color: #f2f2f2;\n\tpadding: 4px 4px 0px;\n\tcolor: white;\n}\n\naudio::-webkit-media-controls-mute-button {\n\tdisplay: none !important;\n}\n\naudio::-webkit-media-controls-volume-slider {\n\tdisplay: none !important;\n}");const Ji=U.default.div`
|
|
1732
1732
|
padding: 6px 8px 2px;
|
|
1733
|
-
`,
|
|
1733
|
+
`,el=U.default.div`
|
|
1734
1734
|
display: flex;
|
|
1735
1735
|
justify-content: flex-end;
|
|
1736
1736
|
align-items: center;
|
|
1737
1737
|
gap: 4px;
|
|
1738
1738
|
font-size: 10px;
|
|
1739
|
-
color: ${
|
|
1739
|
+
color: ${K.default.text.neutralMedium};
|
|
1740
1740
|
padding: 0px 6px;
|
|
1741
|
-
`,
|
|
1741
|
+
`,tl=U.default.div``,ol=U.default.img`
|
|
1742
1742
|
max-width: 100%;
|
|
1743
1743
|
width: auto;
|
|
1744
1744
|
height: auto;
|
|
1745
1745
|
border-radius: 6px;
|
|
1746
1746
|
object-fit: cover;
|
|
1747
|
-
`,
|
|
1747
|
+
`,nl=U.default.audio`
|
|
1748
1748
|
height: 30px;
|
|
1749
|
-
`,
|
|
1749
|
+
`,il=e=>{const[o,n]=r.useState(void 0);return r.useEffect(()=>{n(ee["delivered"===e.message.state?"CheckCheck":"failed"===e.message.state?"X":"read"===e.message.state?"CheckCheck":"sent"===e.message.state?"Check":"Clock"])},[]),t.jsx("div",{role:e.message.role,className:`bubble-container ${"sender"===e.message.type?"bubble-direction-reverse":""} `,children:t.jsxs("div",{className:"bubble "+("sender"===e.message.type?"you":"me"),children:[e.message.media&&e.message.media.length>0&&t.jsxs(tl,{children:[e.message.media[0].content_type.startsWith("image")&&t.jsx(ol,{src:e.message.media[0].base64?e.message.media[0].base64:e.message.media[0].url}),e.message.media[0].content_type.startsWith("audio")&&t.jsxs(nl,{className:"sender"===e.message.type?"you--audio":"me--audio",controls:!0,controlsList:"nodownload",children:[t.jsx("source",{src:e.message.media[0].base64?e.message.media[0].base64:e.message.media[0].url,type:e.message.media[0].content_type}),"Your browser does not support the audio element."]})]}),e.message.text&&t.jsx(Ji,{children:e.message.text}),t.jsxs(el,{children:[ie.default(e.message.createdAt).format("HH:mm"),o&&t.jsx(o,{height:14,width:14,color:"read"===e.message.state?K.default.text.primary:K.default.text.neutralMedium})]})]})},e.message.key)},ll=U.default.div`
|
|
1750
1750
|
position: relative;
|
|
1751
1751
|
padding: 8px 12px;
|
|
1752
1752
|
margin-bottom: 2px;
|
|
1753
1753
|
border-radius: 12px;
|
|
1754
1754
|
cursor: pointer;
|
|
1755
|
-
background-color: ${e=>e.$isSelected?
|
|
1755
|
+
background-color: ${e=>e.$isSelected?K.default.surface.neutralSoft:"transparent"};
|
|
1756
1756
|
&:hover {
|
|
1757
|
-
background-color: ${
|
|
1757
|
+
background-color: ${K.default.surface.neutralSoft};
|
|
1758
1758
|
}
|
|
1759
|
-
`,
|
|
1759
|
+
`,rl=e=>{const[o,n]=r.useState(void 0);return t.jsx(ue.default,{isVisible:e.isVisible,title:"Enviar plantilla",subtitle:"Envía un mensaje predeterminado de WhatsApp para iniciar o retomar una conversación.",buttonProps:{children:"Enviar",disabled:!o,onClick:()=>{e.onSend({template:o}),e.onClose()}},contentStyle:{paddingBottom:24},onClose:e.onClose,children:e.templates.map((e,i)=>{const l=o===e.id;return t.jsxs(ll,{title:e.description,$isSelected:l,onClick:()=>n(e.id),children:[t.jsx(J.default,{type:"p",children:e.title}),t.jsx(J.default,{type:"p2",style:{color:K.default.text.neutralMedium},children:e.subtitle})]},"template-"+i)})})},al=U.default.div`
|
|
1760
1760
|
display: flex;
|
|
1761
1761
|
flex-direction: column;
|
|
1762
1762
|
justify-content: flex-end;
|
|
@@ -1765,51 +1765,51 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1765
1765
|
height: 100vh;
|
|
1766
1766
|
background-color: "white";
|
|
1767
1767
|
overflow: hidden;
|
|
1768
|
-
`,
|
|
1768
|
+
`,sl=U.default.div`
|
|
1769
1769
|
overflow: scroll;
|
|
1770
1770
|
padding: 24px 16px 32px;
|
|
1771
|
-
${
|
|
1771
|
+
${G.default.lessThan("small")`
|
|
1772
1772
|
padding: 16px 16px 32px;
|
|
1773
1773
|
`}
|
|
1774
|
-
`,
|
|
1774
|
+
`,dl=U.default.div`
|
|
1775
1775
|
position: sticky;
|
|
1776
1776
|
bottom: 0px;
|
|
1777
1777
|
padding: 8px 24px 24px;
|
|
1778
|
-
${
|
|
1778
|
+
${G.default.lessThan("small")`
|
|
1779
1779
|
padding: 8px 16px 24px;
|
|
1780
1780
|
`}
|
|
1781
|
-
`,
|
|
1781
|
+
`,cl=U.default.div`
|
|
1782
1782
|
display: flex;
|
|
1783
1783
|
flex: 1;
|
|
1784
1784
|
justify-content: center;
|
|
1785
1785
|
align-items: center;
|
|
1786
1786
|
padding: 16px 8px;
|
|
1787
|
-
`,
|
|
1787
|
+
`,ul=U.default(J.default)`
|
|
1788
1788
|
padding: 0px 8px;
|
|
1789
|
-
`,
|
|
1789
|
+
`,pl=U.default.div`
|
|
1790
1790
|
display: flex;
|
|
1791
1791
|
flex: 1;
|
|
1792
|
-
border-top: 1px solid ${
|
|
1792
|
+
border-top: 1px solid ${K.default.border.neutralSoft};
|
|
1793
1793
|
height: 1px;
|
|
1794
|
-
`,
|
|
1794
|
+
`,fl=U.default.div`
|
|
1795
1795
|
display: flex;
|
|
1796
|
-
background-color: ${
|
|
1796
|
+
background-color: ${K.default.surface.secondary};
|
|
1797
1797
|
margin: 0 18px;
|
|
1798
1798
|
padding: 2px 8px;
|
|
1799
1799
|
border-radius: 6px 6px 0px 0px;
|
|
1800
|
-
`,
|
|
1800
|
+
`,xl=U.default.div`
|
|
1801
1801
|
display: flex;
|
|
1802
1802
|
flex-direction: column;
|
|
1803
1803
|
gap: 8px;
|
|
1804
|
-
`,
|
|
1804
|
+
`,hl=U.default.div`
|
|
1805
1805
|
display: flex;
|
|
1806
1806
|
flex-direction: row;
|
|
1807
1807
|
gap: 8px;
|
|
1808
|
-
`,
|
|
1808
|
+
`,gl=U.default.div`
|
|
1809
1809
|
display: ${e=>e.visible?"flex":"none"};
|
|
1810
1810
|
flex-direction: column;
|
|
1811
1811
|
gap: 8px;
|
|
1812
|
-
`,
|
|
1812
|
+
`,ml=o=>{var n;const[i,l]=r.useState(o.defaultLocation),[a,s]=r.useState(void 0),[,d]=r.useState(!1);r.useEffect(()=>{l(o.defaultLocation)},[o.defaultLocation]);let c="";return t.jsxs(xl,{style:o.style,children:[t.jsx(_e.default,{design:o.design,isLoaded:o.isLoaded,placeholder:o.placeholder?o.placeholder:"Nombre y número de la calle",defaultValue:i&&i.route?`${i.route} ${i.routeNumber}`:void 0,isForm:!0,error:a,onLocationChange:t=>e.__awaiter(void 0,void 0,void 0,function*(){var n,r,a,u;if(s(void 0),t.route&&t.routeNumber){const n=`${t.route} ${t.routeNumber}, ${t.zipCode}, ${t.city}, ${t.province}, ${t.country}`,r=null!=i?i:{},a=e.__rest(r,["routeInfo"]),s=Object.assign(Object.assign(Object.assign({},a),t),{address:n});l(s),o.onSubmit({data:s})}else{c=t.route&&t.routeNumber?`${t.route} ${t.routeNumber}, ${(null==i?void 0:i.routeInfo)?i.routeInfo+", ":""}${null!==(n=t.zipCode)&&void 0!==n?n:""}, ${null!==(r=t.city)&&void 0!==r?r:""}, ${null!==(a=t.province)&&void 0!==a?a:""}, ${null!==(u=t.country)&&void 0!==u?u:""}`:"",l(Object.assign(Object.assign({},i),{route:t.route,routeNumber:t.routeNumber?t.routeNumber:"",address:c,routeInfo:null==i?void 0:i.routeInfo}));const e="Añade la dirección completa, incluyendo el número de la calle",p=e+".";d(t=>{const n=!t,i=n?e:p;return s(i),o.onSubmit({error:i}),n})}})}),t.jsxs(gl,{visible:!!(null==i?void 0:i.route),children:[t.jsx(Le.default,{containerStyle:{flex:1},type:"text",placeholder:"Apartamento, suite, unidad, edificio o piso",design:o.design,value:null!==(n=null==i?void 0:i.routeInfo)&&void 0!==n?n:"",onChange:e=>{if(i){const t=`${i.route} ${i.routeNumber}, ${e.target.value}, ${i.zipCode}, ${i.city}, ${i.province}, ${i.country}`,n=Object.assign(Object.assign({},i),{address:t,routeInfo:e.target.value});l(n),o.onSubmit({data:n})}}}),t.jsxs(hl,{children:[t.jsx(Le.default,{containerStyle:{flex:3},type:"text",placeholder:"Ciudad",design:o.design,value:null==i?void 0:i.city,disabled:!0}),t.jsx(Le.default,{containerStyle:{flex:2},type:"text",placeholder:"Código postal",design:o.design,value:null==i?void 0:i.zipCode,disabled:!0})]}),t.jsx(Le.default,{type:"text",placeholder:"Provincia",design:o.design,value:null==i?void 0:i.province,disabled:!0})]})]})},yl=U.default.div`
|
|
1813
1813
|
display: flex;
|
|
1814
1814
|
width: fit-content;
|
|
1815
1815
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.24);
|
|
@@ -1818,9 +1818,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1818
1818
|
padding: 10px;
|
|
1819
1819
|
cursor: pointer;
|
|
1820
1820
|
&:hover {
|
|
1821
|
-
background-color: ${
|
|
1821
|
+
background-color: ${K.default.surface.neutralSoft};
|
|
1822
1822
|
}
|
|
1823
|
-
`,
|
|
1823
|
+
`,bl=U.default.div`
|
|
1824
1824
|
display: flex;
|
|
1825
1825
|
align-items: center;
|
|
1826
1826
|
padding: 8px;
|
|
@@ -1830,45 +1830,45 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment
|
|
|
1830
1830
|
gap: 4px;
|
|
1831
1831
|
margin: 0px -4px;
|
|
1832
1832
|
&:hover {
|
|
1833
|
-
background-color: ${
|
|
1833
|
+
background-color: ${K.default.surface.neutralSoft};
|
|
1834
1834
|
}
|
|
1835
|
-
${
|
|
1835
|
+
${G.default.lessThan("medium")`
|
|
1836
1836
|
padding: 12px 0px;
|
|
1837
|
-
border-bottom: 1px solid ${
|
|
1837
|
+
border-bottom: 1px solid ${K.default.border.neutralSoft};
|
|
1838
1838
|
border-radius: 0px;
|
|
1839
1839
|
`}
|
|
1840
|
-
`,
|
|
1840
|
+
`,vl=U.default.div`
|
|
1841
1841
|
display: flex;
|
|
1842
1842
|
align-items: center;
|
|
1843
1843
|
justify-content: center;
|
|
1844
1844
|
height: 24px;
|
|
1845
1845
|
width: 24px;
|
|
1846
1846
|
border-radius: 24px;
|
|
1847
|
-
background-color: ${
|
|
1848
|
-
`,
|
|
1847
|
+
background-color: ${K.default.surface.primary};
|
|
1848
|
+
`,wl=o.keyframes`
|
|
1849
1849
|
0% { opacity: 0; transform: translateY(10px); }
|
|
1850
1850
|
20% { opacity: 1; transform: translateY(0); }
|
|
1851
1851
|
80% { opacity: 1; transform: translateY(0); }
|
|
1852
1852
|
100% { opacity: 0; transform: translateY(-10px); }
|
|
1853
|
-
`,
|
|
1853
|
+
`,jl=U.default.span`
|
|
1854
1854
|
display: inline-block;
|
|
1855
|
-
animation: ${
|
|
1856
|
-
`,
|
|
1855
|
+
animation: ${wl} 2.5s ease-in-out infinite;
|
|
1856
|
+
`,Cl=U.default.div`
|
|
1857
1857
|
position: relative;
|
|
1858
1858
|
display: inline-block;
|
|
1859
|
-
|
|
1859
|
+
`,$l=U.default.div`
|
|
1860
1860
|
display: none;
|
|
1861
1861
|
position: absolute;
|
|
1862
1862
|
top: 100%;
|
|
1863
1863
|
left: 0;
|
|
1864
1864
|
background-color: white;
|
|
1865
|
-
border: 1px solid ${
|
|
1865
|
+
border: 1px solid ${K.default.border.neutralSoft};
|
|
1866
1866
|
padding: 24px;
|
|
1867
1867
|
z-index: 10;
|
|
1868
1868
|
border-radius: 24px;
|
|
1869
1869
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
1870
|
-
${
|
|
1870
|
+
${Cl}:hover & {
|
|
1871
1871
|
display: block;
|
|
1872
1872
|
}
|
|
1873
|
-
`,vl=t=>{var{children:n,modalProps:r}=t,l=e(t,["children","modalProps"]);return i(yl,Object.assign({},l,{children:[n,o(bl,Object.assign({},r))]}))},wl={background:{primary:"#008FF5",primaryLow:"#ECF4FB",secondary:"#FFAA47",secondaryLow:"#FFF6E5",deepBlue:"#00315C",deepBlueLow:"#F0F3F6",orange:"#FF773D",redLow:"#FFE5E5",deepGreen:"#1A5B3C",greenLow:"#E4F8EE",aquamarine:"#00ABC5",aquamarineLow:"#EAF8FA",full:"#333333",high:"#4F4F4F",mediumHigh:"#828282",mediumLow:"#BDBDBD",low:"#E0E0E0",soft:"#F2F2F2",neutral:"#FFFFFF"},line:{primary:"#008FF5",primarySoft:"#C4DEF5",secondary:"#FFAA47",secondarySoft:"#FFD5A3",green:"#08A85B",greenSoft:"#B2EBD0",redSoft:"#F5CFCF",deepBlue:"#00315C",deepBlueSoft:"#C0CFDC",full:"#333333",low:"#CCCCCC",soft:"#E0E0E0",softTransparent:"#0000000A",white:"#FFFFFF",whiteTransparent:"#FFFFFF80"},text:{primary:"#008FF5",primarySoft:"#93CCF5",deepBlue:"#00315C",aquamarine:"#00ABC5",orange:"#FF773D",red:"#E02D2D",green:"#08A85B",deepGreen:"#1C5C3D",primaryBlack:"#001D3D",secondaryBlack:"#701E09",full:"#000000C7",high:"#0000007D",medium:"#00000040",low:"#0000001F",white:"#FFFFFF",whiteHigh:"#FFFFFFA6",whiteMedium:"#FFFFFF66",whiteLow:"#FFFFFF47"},status:{primary:{default:"#008FF5",hover:"#005AA8",active:"#00315C",pressed:"#00315C",softDefault:"#EBF3FA",softHover:"#D3E5F5",softActive:"#008FF5",softPressed:"#008FF5"},secondary:{default:"#FFAA47",hover:"#EB9026",pressed:"#C76B00",active:"#C76B00"},neutral:{default:"#FFFFFF",hover:"#0000000D",pressed:"#0000001F",active:"#0000001F"},color:{success:"#08A85B",successDefault:"#E4F8EE",error:"#E02D2D",errorDefault:"#FFE5E5",warning:"#FFAA47",warningDefault:"#FFF1D6"}}},$l={surface:{neutralHigh:"#66839E",neutralMedium:"#A6BACB",neutralLow:"#D8DFE5",neutralSoft:"#F0F3F6",background:"#F9F6F3",invert:"#FFFFFF",primaryHard:"#00315C",primaryHigh:"#005AA8",primary:"#008FF5",primaryLow:"#93CCF5",primarySoft:"#ECF4FB",secondaryHard:"#A25700",secondaryHigh:"#C76B00",secondary:"#FFAA47",secondarySoft:"#FFF6E5",orange:"#FF773D",brown:"#D6AA91",red:"#E02D2D",redMedium:"#FF5A5A",redSoft:"#FFE5E5",greenHard:"#1A5B3C",green:"#08A85B",greenMedium:"#7EE0B1",greenSoft:"#E4F8EE"},transparent:{neutralHard:"rgba(0, 29, 61, 0.92)",neutralHigh:"rgba(0, 29, 61, 0.56)",neutralMedium:"rgba(0, 29, 61, 0.34)",neutralLow:"rgba(0, 29, 61, 0.24)",neutralSoft:"rgba(0, 29, 61, 0.10)",invertHard:"#FFFFFFEB",invertHigh:"#FFFFFF8F",invertMedium:"#FFFFFF5C",invertLow:"#FFFFFF47",invertSoft:"#FFFFFF1F"},border:{neutralHard:"#001D3DEB",neutralHigh:"#00315C8F",neutralMedium:"#00315C57",neutral:"#00315C24",neutralSoft:"#00315C1A",invert:"#FFFFFF",invertSoft:"#FFFFFF33",primary:"#008FF5",primarySoft:"#D3E5F5",secondary:"#FFAA47",secondarySoft:"#FFD5A3",orange:"#FF773D",red:"#E02D2D",redSoft:"#F5CFCF",green:"#08A85B",greenSoft:"#B2EBD0"},text:{neutralHard:"rgba(0, 29, 61, 0.92)",neutralMedium:"rgba(0, 29, 61, 0.56)",neutralSoft:"rgba(0, 29, 61, 0.24)",invert:"#FFFFFF",invertHigh:"#FFFFFFAD",invertMedium:"#FFFFFF75",invertSoft:"#FFFFFF47",primary:"#008FF5",orange:"#FF773D",redHard:"#701E09",red:"#E02D2D",greenHard:"#1A5B3C",green:"#08A85B"}};export{Wi as Avatar,Ye as BreadCrumb,Mt as Button,Nn as CellSelector,rl as Chat,un as Checkbox,wl as Color,$l as ColorV2,sr as Countdown,Br as Counter,gl as CurrencySelector,bn as Dropdown,$r as FAQs,mt as Feedback,ln as Filter,cl as Form,vl as Hover,to as Input,lo as InputBirthday,po as InputChat,xo as InputCode,bo as InputDateRange,_o as InputImage,Mo as InputLocation,Zo as InputPhone,si as InputPrice,Xo as InputRange,Vi as Label,Ei as Menu,zi as Modal,ar as Pagination,tr as Payout,ut as ProgressBar,Tn as RadioButton,yi as SearchBar,gi as Select,Vr as Stamp,Rr as Switch,nr as SwitchTag,Jn as Tabs,yr as TagSelector,at as Text,ml as TextAnimated,Mn as TextArea};
|
|
1873
|
+
`;exports.Avatar=o=>{var n,i,l;const a=r.useRef(null),[s,d]=r.useState(!1),c=e=>new Promise((t,o)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result),n.onerror=e=>o(e)});return t.jsxs(t.Fragment,{children:[t.jsx(ue.default,{isVisible:s,onClose:()=>d(!1),contentStyle:{padding:0,backgroundColor:"black"},hideHeader:!0,children:t.jsx(hn,{src:o.icon})}),t.jsxs(pn,{role:"avatar",style:o.style,$editable:o.editable,$clickable:o.clickable,onClick:()=>{var e;o.editable?null===(e=a.current)||void 0===e||e.click():o.clickable&&d(!0)},children:[t.jsx("input",{ref:a,id:"file",type:"file",accept:"image/x-png,image/gif,image/jpeg",style:{display:"none"},onChange:t=>e.__awaiter(void 0,void 0,void 0,function*(){if(t.target&&t.target.files&&t.target.files[0])if(t.target.files[0].name.match(/\.(jpg|jpeg|png|gif)$/)){const e=yield c(t.target.files[0]);o.onChange&&o.onChange(e)}else alert("Debes seleccionar una imagen")})}),o.icon?t.jsx(xn,{src:o.icon}):o.name?t.jsx(fn,{style:{color:(null===(n=o.style)||void 0===n?void 0:n.color)?null===(i=o.style)||void 0===i?void 0:i.color:X.default.text.primary,fontSize:(null===(l=o.style)||void 0===l?void 0:l.fontSize)?o.style.fontSize:24,fontWeight:600},children:o.name.substring(0,1).toLocaleUpperCase()}):null]})]})},exports.BreadCrumb=o=>{var{steps:n=1,selectedStep:i=0}=o,l=e.__rest(o,["steps","selectedStep"]);const r=Array.from(Array(n).keys());return t.jsx(Ee,Object.assign({role:"bread-crumb"},l,{children:r.map((e,o)=>t.jsx(De,{$isSelected:i===o},"crumb"+o))}))},exports.Button=o=>{var{design:n,onSuccess:i}=o,l=e.__rest(o,["design","onSuccess"]);return"secondary"===n?t.jsx(rt,Object.assign({onSuccess:i},l)):"text"===n?t.jsx(st,Object.assign({},l)):"image"===n?t.jsx(ft,Object.assign({},l)):"call-to-action"===n?t.jsx(ht,Object.assign({},l)):t.jsx(nt,Object.assign({onSuccess:i},l))},exports.CellSelector=e=>{const[o,n]=r.useState(e.selectedOptions?e.selectedOptions:[]);r.useEffect(()=>{n(e.selectedOptions?e.selectedOptions:[])},[e.selectedOptions]);return t.jsx(li,{style:e.style,role:"container",children:e.options.map((i,l)=>{const r=!!o&&o.some(e=>i.id===e.id);return t.jsxs(ri,{role:"cell"+l,onClick:()=>{i.disabled||(t=>{if("multiple"===e.type){const i=o.findIndex(e=>e.id===t.id),l=[...o];-1===i?l.push(t):l.splice(i,1),n(l),e.onClick&&e.onClick(t),e.onChange&&e.onChange(l)}else n([t]),e.onClick&&e.onClick(t),e.onChange&&e.onChange([t])})(i)},$disabled:i.disabled,children:[t.jsxs(ai,{$selected:r,style:e.cellStyle,$disabled:i.disabled,$design:e.design||"design1",children:[i.icon,t.jsx(J.default,{type:"p2",weight:"medium",style:{color:"var(--text-clear-neutral-hard, rgba(0, 29, 61, 0.92)",fontFeatureSettings:"'liga' off, 'clig' off",fontFamily:"Poppins",fontSize:"14px",fontStyle:"normal",fontWeight:500,lineHeight:"22px",textAlign:"center"},children:i.title})]}),t.jsx(si,{children:i.subtitle&&t.jsx(J.default,{type:"p",style:{fontSize:14,marginTop:2,textAlign:"center"},children:i.subtitle})})]},"cell"+l)})})},exports.Chat=e=>{const o=r.useRef(null),[n,i]=r.useState({}),[l,a]=r.useState(!1),[d,c]=r.useState(!1);r.useEffect(()=>{u(e.messages);const t=e.messages.slice().reverse().find(e=>"recipient"===e.type);if(console.log(t),t){ie.default().diff(ie.default(t.createdAt),"hours")>=24&&a(!0)}else a(!0);o.current&&o.current.scrollTo({top:o.current.scrollHeight,behavior:"smooth"})},[e.messages]);const u=e=>{const t=e.reduce((e,t)=>{const o=Z.format(new Date(t.createdAt),"yyyy-MM-dd");return e[o]||(e[o]=[]),e[o].push(t),e},{});i(t)};return t.jsxs(al,{role:"container",style:e.style,children:[t.jsx(rl,{isVisible:d,templates:e.templates,onSend:e.onSend,onClose:()=>c(!1)}),t.jsx(sl,{ref:o,children:Object.keys(n).map(e=>t.jsxs(r.Fragment,{children:[t.jsxs(cl,{children:[t.jsx(pl,{}),t.jsx(ul,{type:"c1",children:ie.default(e).format("ddd DD MMM")}),t.jsx(pl,{})]}),n[e].map((e,o)=>t.jsx(il,{message:e},e.key))]},e))}),t.jsxs(dl,{children:[l&&t.jsx(fl,{children:t.jsx(J.default,{type:"c2",children:"El último mensaje es de hace más de 24 horas. Continuar la conversación usando plantillas."})}),t.jsx(Fe.default,{loading:e.loading,disabled:l,placeholder:e.placeholder,options:[{id:"template",label:"Plantillas",icon:t.jsx(s.NotebookText,{})},{id:"image",label:"Fotos",icon:t.jsx(s.Image,{})}],onOptionClick:t=>{if("template"===t)c(!0);else if("image"===t){const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=t=>{var o;const n=null===(o=t.target.files)||void 0===o?void 0:o[0];if(n){const t=new FileReader;t.onloadend=()=>{const o=t.result;e.onSend({media:{base64:o,contentType:"image/*"}})},t.readAsDataURL(n)}},t.click()}},onSend:t=>e.onSend(t)})]})]})},exports.Checkbox=e=>{const[o,n]=r.useState([]),[i,l]=r.useState(!1),[a,s]=r.useState(window.innerWidth<768);r.useEffect(()=>{e.selectedOptions&&n(e.selectedOptions);const t=()=>{s(window.innerWidth<768)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e.selectedOptions]);return t.jsx(Mn,{role:"checkboxlist",style:e.style,children:t.jsx("div",{style:{paddingBottom:"2px"},children:e.options.map((r,s)=>{const d=o.some(e=>e.id===r.id);return t.jsx(zn,{role:"checkbox-"+s,style:Object.assign({marginRight:"16px",marginBottom:"16px",padding:a?"4px 1px":"0px"},e.elementStyle),label:r.label,sublabel:r.sublabel,error:r.error,selected:d,height:e.height,shape:e.shape,width:e.width,position:e.position,avatarEnabled:e.avatarEnabled,onClick:()=>(t=>{const r=o.findIndex(e=>t.id===e.id);let a=o;"single"===e.type?a=[t]:-1===r?a.push(t):a.splice(r,1),n(a),l(!i),e.onChange&&e.onChange(a)})(r),children:r.Element},r.id)})})})},exports.Color={background:{primary:"#008FF5",primaryLow:"#ECF4FB",secondary:"#FFAA47",secondaryLow:"#FFF6E5",deepBlue:"#00315C",deepBlueLow:"#F0F3F6",orange:"#FF773D",redLow:"#FFE5E5",deepGreen:"#1A5B3C",greenLow:"#E4F8EE",aquamarine:"#00ABC5",aquamarineLow:"#EAF8FA",full:"#333333",high:"#4F4F4F",mediumHigh:"#828282",mediumLow:"#BDBDBD",low:"#E0E0E0",soft:"#F2F2F2",neutral:"#FFFFFF"},line:{primary:"#008FF5",primarySoft:"#C4DEF5",secondary:"#FFAA47",secondarySoft:"#FFD5A3",green:"#08A85B",greenSoft:"#B2EBD0",redSoft:"#F5CFCF",deepBlue:"#00315C",deepBlueSoft:"#C0CFDC",full:"#333333",low:"#CCCCCC",soft:"#E0E0E0",softTransparent:"#0000000A",white:"#FFFFFF",whiteTransparent:"#FFFFFF80"},text:{primary:"#008FF5",primarySoft:"#93CCF5",deepBlue:"#00315C",aquamarine:"#00ABC5",orange:"#FF773D",red:"#E02D2D",green:"#08A85B",deepGreen:"#1C5C3D",primaryBlack:"#001D3D",secondaryBlack:"#701E09",full:"#000000C7",high:"#0000007D",medium:"#00000040",low:"#0000001F",white:"#FFFFFF",whiteHigh:"#FFFFFFA6",whiteMedium:"#FFFFFF66",whiteLow:"#FFFFFF47"},status:{primary:{default:"#008FF5",hover:"#005AA8",active:"#00315C",pressed:"#00315C",softDefault:"#EBF3FA",softHover:"#D3E5F5",softActive:"#008FF5",softPressed:"#008FF5"},secondary:{default:"#FFAA47",hover:"#EB9026",pressed:"#C76B00",active:"#C76B00"},neutral:{default:"#FFFFFF",hover:"#0000000D",pressed:"#0000001F",active:"#0000001F"},color:{success:"#08A85B",successDefault:"#E4F8EE",error:"#E02D2D",errorDefault:"#FFE5E5",warning:"#FFAA47",warningDefault:"#FFF1D6"}}},exports.ColorV2={surface:{neutralHigh:"#66839E",neutralMedium:"#A6BACB",neutralLow:"#D8DFE5",neutralSoft:"#F0F3F6",background:"#F9F6F3",invert:"#FFFFFF",primaryHard:"#00315C",primaryHigh:"#005AA8",primary:"#008FF5",primaryLow:"#93CCF5",primarySoft:"#ECF4FB",secondaryHard:"#A25700",secondaryHigh:"#C76B00",secondary:"#FFAA47",secondarySoft:"#FFF6E5",orange:"#FF773D",brown:"#D6AA91",red:"#E02D2D",redMedium:"#FF5A5A",redSoft:"#FFE5E5",greenHard:"#1A5B3C",green:"#08A85B",greenMedium:"#7EE0B1",greenSoft:"#E4F8EE"},transparent:{neutralHard:"rgba(0, 29, 61, 0.92)",neutralHigh:"rgba(0, 29, 61, 0.56)",neutralMedium:"rgba(0, 29, 61, 0.34)",neutralLow:"rgba(0, 29, 61, 0.24)",neutralSoft:"rgba(0, 29, 61, 0.10)",invertHard:"#FFFFFFEB",invertHigh:"#FFFFFF8F",invertMedium:"#FFFFFF5C",invertLow:"#FFFFFF47",invertSoft:"#FFFFFF1F"},border:{neutralHard:"#001D3DEB",neutralHigh:"#00315C8F",neutralMedium:"#00315C57",neutral:"#00315C24",neutralSoft:"#00315C1A",invert:"#FFFFFF",invertSoft:"#FFFFFF33",primary:"#008FF5",primarySoft:"#D3E5F5",secondary:"#FFAA47",secondarySoft:"#FFD5A3",orange:"#FF773D",red:"#E02D2D",redSoft:"#F5CFCF",green:"#08A85B",greenSoft:"#B2EBD0"},text:{neutralHard:"rgba(0, 29, 61, 0.92)",neutralMedium:"rgba(0, 29, 61, 0.56)",neutralSoft:"rgba(0, 29, 61, 0.24)",invert:"#FFFFFF",invertHigh:"#FFFFFFAD",invertMedium:"#FFFFFF75",invertSoft:"#FFFFFF47",primary:"#008FF5",orange:"#FF773D",redHard:"#701E09",red:"#E02D2D",greenHard:"#1A5B3C",green:"#08A85B"}},exports.Countdown=o=>{var n;ie.default.locale("es");const{toDate:i,textColor:l,color:a}=o,d=e.__rest(o,["toDate","textColor","color"]),[c,u]=r.useState(0),[p,f]=r.useState(""),[x,h]=r.useState(!1);r.useEffect(()=>{i&&g()},[i]);const g=()=>{const e=ie.default(i),t=ie.default(),o=ie.default.duration(e.diff(t)),n=o.asDays(),l=o.asHours();h(n<1&&l<2),o.locale("es"),u(o.asDays()),f(o.humanize())};return t.jsxs(Ci,Object.assign({role:"container"},d,{style:Object.assign({backgroundColor:x?X.default.status.color.error:a||(null===(n=d.style)||void 0===n?void 0:n.backgroundColor)},d.style),children:[t.jsx(s.Clock,{height:20,width:20,color:x?"white":l||X.default.text.full,style:{marginRight:8}}),t.jsxs(J.default,{type:"p2",weight:"medium",style:{color:x?"white":l||X.default.text.full},children:[p," ",c<0?"de retraso":"restantes"]})]}))},exports.Counter=function(e){const[o,n]=r.useState(e.amount>0?e.amount-10:0),i=r.useRef(o);i.current=o;const l=r.useRef(0);function a(){window.clearInterval(l.current)}function s(){n(i.current+1),i.current+1>=e.amount&&a()}r.useEffect(()=>(a(),n(e.amount>0?e.amount-(e.amount>=10?10:e.amount):0),l.current=window.setInterval(s,400),()=>a()),[e.amount]);const d=r.useMemo(()=>[function(t){const o=e.amount.toString().length,n=t.toString().split(""),i=(t+1).toString().split("");for(var l=0;l<o&&o-n.length-l!==0;l++);return{current:n,next:i}}(o)],[o]),c=r.useMemo(()=>({"--fcc-digit-color":e.color,"--fcc-background":e.backgroundColor,"--fcc-digit-block-width":e.width&&e.width+"px","--fcc-digit-block-height":e.height&&e.height+"px","--fcc-digit-font-size":e.fontSize&&e.fontSize+"px","--fcc-divider-color":e.borderColor}),[e]);return t.jsx("div",{className:Bi,"data-testid":"fcc-container",style:c,children:d.map((e,o)=>t.jsx(r.Fragment,{children:t.jsx("div",{className:Hi,children:e.current.map((o,n)=>t.jsx(Ni,{current:e.current[n],next:e.next[n]},n))})},`digit-block-${o}`))})},exports.CurrencySelector=e=>{const o=window.innerWidth<=450,[n,i]=r.useState(e.selectedOption||e.options[0]),[l,a]=r.useState(!1);r.useEffect(()=>{e.selectedOption?i(e.selectedOption):e.options.length>0&&i(e.options[0])},[e.selectedOption,e.options]);return t.jsxs(t.Fragment,{children:[t.jsxs(ue.default,{isVisible:l,type:o?"full-screen":"default",hideHeader:!0,contentStyle:{paddingBottom:12},onClose:()=>a(!1),children:[t.jsx(J.default,{type:"p",weight:"medium",style:{marginBottom:8},children:"Selecciona una divisa"}),e.options.map((l,r)=>{const d=n.currency===l.currency;return t.jsxs(bl,{$isSelected:d,onClick:()=>(t=>{var o;i(t),a(!1),null===(o=e.onChange)||void 0===o||o.call(e,t)})(l),children:[!o&&d&&t.jsx(s.Check,{height:16,width:16,color:K.default.text.primary}),t.jsxs(J.default,{type:"p2",style:{flex:1},children:[l.name," (",l.symbol,")"]}),o&&d&&t.jsx(vl,{children:t.jsx(s.Check,{height:16,width:16,color:"white"})})]},r)})]}),t.jsx(yl,{style:e.style,onClick:()=>a(!0),children:t.jsxs(J.default,{type:"b2",children:[n.symbol," ",n.currency]})})]})},exports.Dropdown=e=>{const[o,n]=r.useState(!1),[i,l]=r.useState(e.selectedOptions||[]),[a,d]=r.useState(!1);r.useEffect(()=>{if(Array.isArray(e.selectedOptions)&&e.selectedOptions.length>0){const t=[];e.options.forEach(o=>{e.selectedOptions&&e.selectedOptions.some(e=>e.id===o.id)&&t.push(o)}),l(t)}else l([])},[e.selectedOptions,e.options]),r.useEffect(()=>{const t=t=>{const n=document.getElementById(e.id);null!==n&&!n.contains(t.target)&&o&&c(t)};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}},[o,e.id]);const c=e=>{e.stopPropagation(),n(!1)};return t.jsxs(Bn,{role:"dropdown",style:e.style,id:e.id,children:[t.jsxs(Hn,{onClick:()=>n(!o),children:[t.jsx(J.default,{type:"p",style:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",color:i.length>0?K.default.text.neutralHard:K.default.text.neutralMedium},children:i.length>0?i.map((e,t)=>0===t?e.title:", "+e.title):e.placeholder}),o?t.jsx(s.ChevronUp,{style:{stroke:X.default.text.high}}):t.jsx(s.ChevronDown,{style:{stroke:X.default.text.high}})]}),o&&t.jsxs(Pn,{"data-testid":"menu",$position:e.menuPosition,style:e.menuStyle,children:[e.onSearchChange&&t.jsx(ye.default,{style:{marginBottom:8},type:"small",placeholder:"Buscar",onChange:t=>{e.onSearchChange&&e.onSearchChange(t.target.value)}}),e.options.map(r=>{const c=i.some(e=>e.id===r.id);return t.jsxs(An,{style:e.optionStyle,onClick:()=>(t=>{if("single"===e.type)l([t]),n(!o),e.onChange&&e.onChange([t]);else{const o=i.findIndex(e=>t.id===e.id);let n=[...i];-1===o?n.push(t):n.splice(o,1),l(n),d(!a),e.onChange&&e.onChange(n)}})(r),children:[t.jsx(Tn,{children:"single"===e.type?c&&t.jsx(s.Check,{height:16,width:16}):t.jsx(Vn,{$selected:c,children:c&&t.jsx(s.Check,{height:16,width:16,color:"white"})})}),r.icon,t.jsx(J.default,{type:"p",style:{color:`${X.default.text.full}`},children:r.title})]},r.id)})]})]})},exports.FAQs=e=>{const[o,n]=r.useState(0);return t.jsx(Oi,{role:"container",style:e.style,children:e.options.map((i,l)=>{const r=o===l;return t.jsxs(zi,{role:i.id,$selected:r,onClick:()=>(t=>{n(t===o?void 0:t),e.onClick&&e.onClick(t)})(l),children:[t.jsx(Mi,{children:r?t.jsx(s.ChevronUp,{width:20,height:20,color:X.default.text.high,style:{marginTop:3}}):t.jsx(s.ChevronDown,{width:20,height:20,color:X.default.text.high,style:{marginTop:3}})}),t.jsxs(Mi,{style:{marginLeft:12},children:[t.jsx(J.default,{type:"p",weight:"medium",children:i.title}),t.jsx(J.default,{type:"p2",style:{display:r?"flex":"none",marginTop:8,color:K.default.text.neutralMedium},children:i.description})]})]},i.id+l)})})},exports.Feedback=o=>{var{type:n="success",text:i,isVisible:l=!1}=o,a=e.__rest(o,["type","text","isVisible"]);const[d,c]=r.useState(!1),[u,p]=r.useState(!1);return r.useEffect(()=>{c(l);const e=setTimeout(()=>{a.onClose&&a.onClose(),c(!1)},a.closeAfter?a.closeAfter:3e3);return()=>clearTimeout(e)},[l]),r.useEffect(()=>{l&&p(!0)},[d]),u?t.jsx(Ke,Object.assign({$type:n,$text:i,$visible:d},a,{role:"feedback",children:t.jsxs(Qe,{children:["success"===n?t.jsx(s.Check,{style:{marginRight:12},color:"white",height:24,width:24}):"error"===n?t.jsx(s.X,{style:{marginRight:12},color:"white",height:24,width:24}):a.icon,t.jsx(J.default,{type:"p",style:{display:"flex",flex:1,color:"white"},children:i}),a.showClose&&t.jsx(te.default,{style:{position:"absolute",top:0,right:0},design:"image",icon:t.jsx(s.X,{height:18,width:18,color:"white"}),onClick:()=>{a.onClose&&a.onClose(),c(!1)}})]})})):null},exports.Filter=_n,exports.Form=e=>"location"===e.type?t.jsx(ml,Object.assign({},e)):null,exports.Hover=o=>{var{children:n,modalProps:i}=o,l=e.__rest(o,["children","modalProps"]);return t.jsxs(Cl,Object.assign({},l,{children:[n,t.jsx($l,Object.assign({},i))]}))},exports.Input=Pt,exports.InputBirthday=o=>{var{error:n,onChange:i,containerStyle:l}=o,a=e.__rest(o,["error","onChange","containerStyle"]);const s=r.useRef(null),d=r.useRef(null),c=r.useRef(null),u=(()=>{if(a.defaultValue&&"string"==typeof a.defaultValue){const e=a.defaultValue.split("-");return{day:e[2]||"",month:e[1]||"",year:e[0]||""}}return{day:"",month:"",year:""}})(),[p,f]=r.useState(u.day),[x,h]=r.useState(u.month),[g,m]=r.useState(u.year),[y,b]=r.useState({day:u.day||void 0,month:u.month||void 0,year:u.year||void 0});r.useEffect(()=>{if(a.defaultValue&&"string"==typeof a.defaultValue){const[e,t,o]=a.defaultValue.split("-");f(o||""),h(t||""),m(e||""),b({day:o||void 0,month:t||void 0,year:e||void 0})}},[a.defaultValue]);const[v,w]=r.useState(void 0);r.useEffect(()=>{w(n)},[n]);const j=e=>{if(w(void 0),b(e),e.day&&2===e.day.length&&e.month&&2===e.month.length&&e.year&&4===e.year.length){const t=`${e.year}-${e.month}-${e.day}`,o=ie.default(t,"YYYY-MM-DD",!0);if(o.isValid()){const e=o.toDate();i&&i(e)}else w("Fecha no válida")}};return t.jsxs(Tt,{children:[t.jsxs(Vt,{children:[t.jsx(Pt,Object.assign({ref:s,value:p,containerStyle:Object.assign({flex:1},l),inputMode:"numeric",pattern:"[0-9]*"},a,{placeholder:"Día",maxLength:2,onChange:e=>{var t;const o=e.target.value.replace(/\D/g,"");f(o),2===o.length&&(null===(t=d.current)||void 0===t||t.focus()),j(Object.assign(Object.assign({},y),{day:o}))}})),t.jsx(Pt,Object.assign({ref:d,value:x,containerStyle:Object.assign({flex:1},l),inputMode:"numeric",pattern:"[0-9]*"},a,{placeholder:"Mes",maxLength:2,onChange:e=>{var t,o;const n=e.target.value.replace(/\D/g,"");h(n),0===n.length?null===(t=s.current)||void 0===t||t.focus():2===n.length&&(null===(o=c.current)||void 0===o||o.focus()),j(Object.assign(Object.assign({},y),{month:n}))}})),t.jsx(Pt,Object.assign({ref:c,value:g,containerStyle:Object.assign({flex:1},l),inputMode:"numeric",pattern:"[0-9]*"},a,{placeholder:"Año",maxLength:4,onChange:e=>{var t;const o=e.target.value.replace(/\D/g,"");m(o),0===o.length&&(null===(t=d.current)||void 0===t||t.focus()),j(Object.assign(Object.assign({},y),{year:o}))}}))]}),v&&t.jsx(It,{role:"error",$error:!!v,children:t.jsx(J.default,{type:"c1",weight:"medium",style:{color:K.default.text.red},children:v})})]})},exports.InputChat=o=>{const n=r.useRef(null),[i,l]=r.useState(""),[a,d]=r.useState(!1),u=r.useRef(null),p=r.useRef(null),f=r.useRef(null),[x,h]=r.useState(!1),[g,m]=r.useState(null),[y,b]=r.useState(null),{style:v,value:w,defaultValue:j,onOptionClick:C,options:$}=o,k=e.__rest(o,["style","value","defaultValue","onOptionClick","options"]),L=()=>{i&&(o.onSend&&o.onSend({text:i}),l(""))},S=e=>{g&&(g.ondataavailable=t=>{t.data.size>0&&"send"===e&&F([t.data])},g.stop(),m(null)),y&&(y.getTracks().forEach(e=>e.stop()),b(null)),h(!1),console.log("Grabación cancelada.")},F=e=>{if(console.log("Iniciar envio grabación"),0===e.length)return void console.error("No hay datos de audio para enviar.");const t=new Blob(e,{type:"audio/wav"}),n=new FileReader;n.onloadend=()=>{var e;const t=null===(e=n.result)||void 0===e?void 0:e.toString().split(",")[1];t&&o.onSend&&o.onSend({media:{base64:t,contentType:"audio/wav"}})},n.readAsDataURL(t)},_=()=>{if(!p.current||!u.current)return;const e=p.current,t=e.getContext("2d"),o=u.current;if(!t)return;const n=o.frequencyBinCount,i=new Uint8Array(n),l=()=>{o.getByteTimeDomainData(i),t.fillStyle="rgba(0, 0, 0, 0.2)",t.fillRect(0,0,e.width,e.height),t.lineWidth=2,t.strokeStyle="#00ff00",t.beginPath();const r=1*e.width/n;let a=0;for(let o=0;o<n;o++){const n=i[o]/128*e.height/2;0===o?t.moveTo(a,n):t.lineTo(a,n),a+=r}t.lineTo(e.width,e.height/2),t.stroke(),f.current=requestAnimationFrame(l)};l()};return t.jsxs(Rt,{style:v,$loading:o.loading||o.disabled,$focus:a,$options:$,children:[x?t.jsx(re.default,{icon:t.jsx(s.Trash2,{height:20,width:20,onClick:()=>{S("delete")}})}):o.options&&t.jsx(ae.default,{id:"add-menu",position:"top-right",options:$,icon:t.jsx(s.Plus,{color:K.default.text.primary}),onClick:e=>{C&&C(e.id)}}),t.jsx(qt,{ref:p,$isRecording:x}),!x&&t.jsx(Zt,Object.assign({},k,{value:i,ref:n,disabled:o.loading||o.disabled,$loading:o.loading||o.disabled,onChange:e=>{l(e.target.value),o.onChange&&o.onChange(e)},onKeyDown:e=>{"Enter"===e.key&&L(),o.onKeyDown&&o.onKeyDown(e)},onFocus:e=>{d(!0),o.onFocus&&o.onFocus(e)},onBlur:e=>{d(!1),o.onBlur&&o.onBlur(e)}})),o.loading?t.jsx(c.Player,{style:{height:48,width:48},src:le.default,loop:!0,autoplay:!0}):t.jsx(t.Fragment,{children:t.jsx(re.default,{disabled:o.disabled,icon:i||x?t.jsx(s.Send,{height:20,width:20,color:K.default.text.primary}):t.jsx(s.Mic,{height:20,width:20,color:K.default.text.primary}),onClick:()=>{i?L():x?S("send"):e.__awaiter(void 0,void 0,void 0,function*(){if(!x)try{const e=yield navigator.mediaDevices.getUserMedia({audio:!0}),t=new MediaRecorder(e);t.onstop=()=>{h(!1)},t.start(),m(t),b(e),h(!0);const o=new AudioContext,n=o.createMediaStreamSource(e),i=o.createAnalyser();i.fftSize=512,n.connect(i),u.current=i,_()}catch(e){console.error("Error al iniciar la grabación:",e)}})}})})]})},exports.InputCode=e=>{const o=r.useRef(null),[n,i]=r.useState(!1),[l,a]=r.useState(void 0);return t.jsxs(Nt,{style:e.containerStyle,children:[t.jsx(Wt,{$error:!!e.error,style:e.style,$focus:n,$loading:e.loading,onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()},children:t.jsx(Ut,{role:"input",type:"number",value:l,placeholder:"------",disabled:e.loading,autoFocus:e.autoFocus,onFocus:()=>i(!0),onBlur:()=>i(!1),onChange:t=>{var n;t.target.value.length<=6&&(a(t.target.value),6===t.target.value.length&&(null===(n=o.current)||void 0===n||n.blur(),e.onChange&&e.onChange(t.target.value)))}})}),e.error&&t.jsx(Yt,{role:"error",children:t.jsx(J.default,{type:"p",style:{color:K.default.text.red,marginTop:8,fontSize:14,lineHeight:"18px"},children:e.error})})]})},exports.InputDateRange=e=>{const[o,n]=r.useState(e.startDate),[i,l]=r.useState(e.endDate),[a,s]=r.useState(null);return r.useEffect(()=>{n(e.startDate)},[e.startDate]),r.useEffect(()=>{l(e.endDate)},[e.endDate]),t.jsx(Gt,{style:e.style,$focus:!!a,children:t.jsx(m.DateRangePicker,{startDateId:"startDate",endDateId:"endDate",startDate:o,endDate:i,noBorder:!0,showClearDates:!0,isOutsideRange:e.isOutsideRange,startDatePlaceholderText:"Fecha inicio",endDatePlaceholderText:"Fecha final",hideKeyboardShortcutsPanel:!0,onDatesChange:({startDate:t,endDate:o})=>{n(t),l(o),e.onChange({startDate:t,endDate:o})},focusedInput:a,onFocusChange:e=>s(e)})})},exports.InputImage=o=>{const n=window.innerWidth<=768,i=r.useRef(null),l=r.useRef(null),a=r.useRef(null),d=r.useRef(null),[c,u]=r.useState(""),[p,f]=r.useState(),[x,h]=r.useState(),[g,m]=r.useState(!1),[y,v]=r.useState(!1),[w,j]=r.useState(!1);r.useEffect(()=>{const e=setTimeout(()=>{C.apply([x])},100);return()=>clearTimeout(e)},[x]);const C=()=>e.__awaiter(void 0,void 0,void 0,function*(){const e=d.current,t=a.current,o=x;if((null==o?void 0:o.width)&&(null==o?void 0:o.height)&&e&&t){const n=t.getContext("2d");if(!n)throw new Error("No 2d context");const i=e.naturalWidth/e.width,l=e.naturalHeight/e.height,r=window.devicePixelRatio;t.width=Math.floor(o.width*i*r),t.height=Math.floor(o.height*l*r),n.scale(r,r),n.imageSmoothingQuality="high";const a=o.x*i,s=o.y*l,d=e.naturalWidth/2,c=e.naturalHeight/2;n.save(),n.translate(-a,-s),n.translate(d,c),n.translate(-d,-c),n.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),n.restore()}}),$=e=>new Promise((t,o)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result),n.onerror=e=>o(e)}),k=t=>{new se.default(t,{quality:1,maxHeight:o.maxHeight,maxWidth:o.maxWidth,success:t=>e.__awaiter(void 0,void 0,void 0,function*(){u("");const e=yield $(t);o.onChange&&o.onChange(e),m(!1)})})},L=e=>{var t;"camera"===e?j(!0):"library"===e&&(v(!1),null===(t=l.current)||void 0===t||t.click())},S=r.useCallback(()=>{var e;const t=null===(e=i.current)||void 0===e?void 0:e.getScreenshot();t&&(v(!1),j(!1),u(t),o.hideCrop&&o.onChange&&o.onChange(t))},[i]);return t.jsxs(Kt,{style:o.style,children:[t.jsxs(ue.default,{isVisible:y,type:n?"full-screen":"default",hideClose:!0,hideHeader:!0,style:{width:n?"100%":400},contentStyle:{padding:"16px 0px",backgroundColor:w?"black":"white"},buttonProps:w?{children:t.jsx(oo,{style:{position:"relative",justifyContent:"center",alignItems:"center",width:"100%",padding:"0 32px"},children:t.jsx(no,{onClick:S})}),style:{backgroundColor:"transparent",width:"100%",marginTop:12,marginBottom:12,paddingBottom:"calc(env(safe-area-inset-bottom, 0) + 8px)"}}:void 0,onClose:()=>v(!1),children:[w&&t.jsx(te.default,{design:"image",icon:t.jsx(s.X,{}),onClick:()=>{j(!1),v(!1)},style:{position:"absolute",top:12,right:12,backgroundColor:"rgba(0, 0, 0, 0.4)",color:"white",border:"none",padding:8,borderRadius:"50%",cursor:"pointer",zIndex:10}}),w?t.jsx(t.Fragment,{children:t.jsx(ce.default,{ref:i,height:"100%",width:"100%",videoConstraints:{facingMode:"environment"}})}):t.jsxs(t.Fragment,{children:[t.jsx(io,{children:t.jsx(s.X,{style:{cursor:"pointer"},onClick:()=>{j(!1),v(!1)}})}),t.jsxs(to,{onClick:()=>L("camera"),children:[t.jsx(s.Camera,{}),t.jsx(J.default,{type:"p",children:"Cámara"})]}),t.jsxs(to,{onClick:()=>L("library"),children:[t.jsx(s.Image,{}),t.jsx(J.default,{type:"p",children:"Imagen de librería"})]})]})]}),t.jsx(te.default,{role:"button",onClick:()=>{var e;o.options&&o.options.length>1?v(!0):null===(e=l.current)||void 0===e||e.click()},style:Object.assign({height:32,padding:"0px 12px",fontSize:14,fontWeight:500},o.buttonStyle),icon:o.icon,design:"secondary",children:o.buttonText?o.buttonText:"Subir foto"}),t.jsx("input",{name:"image",accept:"image/*",onChange:t=>e.__awaiter(void 0,void 0,void 0,function*(){if(t&&t.target&&t.target.files&&t.target.files[0]){const e=t.target.files[0];if(o.hideCrop){const t=new Blob([e],{type:"image/webp"});k(t)}else{f(void 0);const t=yield $(e);u(t),l.current&&(l.current.value="")}}}),hidden:!0,type:"file",ref:l}),c&&!o.hideCrop&&t.jsxs(Qt,{children:[t.jsxs(Jt,{children:[t.jsx(te.default,{design:"primary",size:"small",loading:g,icon:t.jsx(s.Crop,{}),onClick:()=>{var e;m(!0),null===(e=a.current)||void 0===e||e.toBlob(e=>{e?k(e):m(!1)},"image/webp")},children:"Recortar"}),t.jsx(te.default,{style:{marginLeft:12},design:"image",icon:t.jsx(s.X,{}),onClick:()=>{u("")}})]}),t.jsx(de.default,{style:{height:"-webkit-fill-available"},crop:p,onChange:(e,t)=>f(t),onComplete:e=>h(e),aspect:1,children:t.jsx("img",{ref:d,alt:"Crop me",src:c,style:{maxWidth:"100%",maxHeight:"100%"},onLoad:e=>{{const{width:t,height:o}=e.currentTarget;f(function(e,t,o){return b.centerCrop(b.makeAspectCrop({unit:"%",width:60},o,e,t),e,t)}(t,o,1))}}})}),x&&t.jsx(eo,{ref:a,style:o.previewStyle})]})]})},exports.InputLocation=o=>{var{isLoaded:n,isForm:i,searchTypes:l,searchFields:a,onLocationChange:s}=o;const d=e.__rest(o,["isLoaded","isForm","searchTypes","searchFields","onLocationChange"]),{defaultValue:c,value:u,onChange:p}=d,f=e.__rest(d,["defaultValue","value","onChange"]),x=r.useRef(null),h=r.useRef(null),[g,m]=r.useState(()=>void 0!==c?String(c):""),[y,b]=r.useState([]),[v,w]=r.useState(void 0),j=r.useRef(!1);r.useEffect(()=>{void 0!==c&&m(String(c))},[c]),r.useEffect(()=>{if(n){if("undefined"==typeof google)return;const e=document.createElement("div"),t=new google.maps.Map(e);x.current=new google.maps.places.AutocompleteService,h.current=new google.maps.places.PlacesService(t)}},[n]),r.useEffect(()=>{n&&!j.current&&void 0!==c&&m(String(c))},[n,c]);const C=r.useCallback(pe.default(e=>{x.current&&e&&x.current.getPlacePredictions({input:e,types:l||["address"],language:"es-ES"},e=>{b(e||[])})},500),[]);return t.jsxs(t.Fragment,{children:[t.jsxs(lo,{className:"autocomplete-container",children:[t.jsx(Pt,Object.assign({},f,{value:g,onChange:e=>{const t=e.target.value;m(t),C(t)},containerStyle:{display:"flex",flex:1,flexDirection:"column"},disabled:!n||f.disabled,placeholder:n?f.placeholder:"Cargando..."})),y.length>0&&t.jsx(ro,{className:"custom-list",children:y.map((e,o)=>t.jsx(ao,{className:"custom-list-item",onClick:()=>(e=>{h.current&&h.current.getDetails({placeId:e.place_id,fields:a||["geometry","address_components"]},t=>{if(t&&t.geometry&&t.geometry.location&&t.address_components){b([]),w(void 0);const e=t.address_components.filter(e=>e.types.includes("route")),o=e.length>0?e[0].long_name:void 0,n=t.address_components.filter(e=>e.types.includes("postal_code")),l=n.length>0?n[0].long_name:void 0;if(o&&l){const e=t.address_components.filter(e=>e.types.includes("street_number")),n=e.length>0?e[0].long_name:void 0,r=t.address_components.filter(e=>e.types.includes("locality")),a=r.length>0?r[0].long_name:void 0,d=t.address_components.filter(e=>e.types.includes("administrative_area_level_2")),c=d.length>0?d[0].long_name:void 0,u=t.address_components.filter(e=>e.types.includes("country")),p=u.length>0?u[0].long_name:void 0,f=u.length>0?u[0].short_name:void 0,x=`${o}${n?" "+n:""}, ${l||""}, ${a}, ${c}, ${p}`,h={address:x,sortAddress:`${a?a+", ":""}${c?c+", ":""}${p}`,route:o,routeNumber:n,location:{lat:t.geometry.location.lat(),lng:t.geometry.location.lng()},country:p,shortCountry:f,city:a,province:c,zipCode:l};s&&s(h),m(i?`${o}${n?" "+n:""}`:x)}else w("Necesitamos una dirección más precisa para encontrar tu código postal. Por favor, indica el número de la calle.")}else t&&t.geometry&&t.geometry.location?(b([]),w(void 0),m(e.description),s&&s({location:{lat:t.geometry.location.lat(),lng:t.geometry.location.lng()}})):w("Parece que hubo un error de conexión al obtener la dirección. Prueba de nuevo más tarde.")})})(e),children:t.jsx(so,{type:"p2",children:e.description})},o))})]}),v&&t.jsx(J.default,{type:"c1",style:{color:K.default.text.red,padding:"0px 4px"},children:v})]})},exports.InputPhone=o=>{const n=fe.default.PhoneNumberUtil.getInstance(),[i,l]=r.useState(void 0),[a,s]=r.useState({id:"spain",esCountry:"España",enCountry:"Spain",prefix:"+34",countryCode:"ES"}),[d,c]=r.useState(!1),{countryOptions:u,onPhoneChange:p}=o,f=e.__rest(o,["countryOptions","onPhoneChange"]);r.useEffect(()=>{o.defaultValue?l(o.defaultValue):o.value&&l(o.value)},[o.value,o.defaultValue]),r.useEffect(()=>{if(o.country&&u){const e=u.filter(e=>e.countryCode===o.country);e.length>0&&x(e[0])}},[o.country,u]);const x=e=>{s(e);const t=(i&&"string"==typeof i?i:o.defaultValue&&"string"==typeof o.defaultValue?o.defaultValue:"").replaceAll(/\s/g,""),l=e.prefix+t;p&&p({country:e.prefix,value:t,isValid:l.length>=6&&l.length<18&&n.isValidNumberForRegion(n.parse(l,e.countryCode),e.countryCode)})};return t.jsx(Pt,Object.assign({LeftContent:o.countryOptions?t.jsx(mo,{children:t.jsx(go,{selectedItem:a,onChange:e=>x(e),id:"country",options:o.countryOptions,focus:!(!d&&!i||"secondary"!==o.design)})}):void 0},f,{onChange:e=>{l(e.target.value),o.onChange&&o.onChange(e);const t=e.target.value.replaceAll(/\s/g,""),i=a.prefix+t;p&&p({country:a.prefix,value:t,isValid:i.length>8&&i.length<18&&n.isValidNumberForRegion(n.parse(i,a.countryCode),a.countryCode)})},onFocus:e=>{c(!0),o.onFocus&&o.onFocus(e)},onBlur:e=>{c(!1),o.onBlur&&o.onBlur(e)}}))},exports.InputPrice=e=>{const o=ee,n=r.useRef(null),i=r.useRef([]),l=r.useRef(null),[a,s]=r.useState(void 0),[d,c]=r.useState(""),[u,p]=r.useState(!1),[f,x]=r.useState(""),[h,g]=r.useState(24);r.useEffect(()=>{s(e.defaultOption)},[e.defaultOption]),r.useEffect(()=>{if(e.options.length>0){const t=e.options[e.options.length-1].price.toString().length;t>5?g(16):t>4?g(18):t>3&&g(21)}},[e.options]),r.useEffect(()=>{const t=e.options.findIndex(e=>e.price===a);if(-1!==t&&i.current[t]&&n.current){const e=n.current,o=i.current[t],l=e.offsetWidth,r=o.offsetWidth,a=o.offsetLeft-(l/2-r/2);e.scrollTo({left:a,behavior:"smooth"})}},[a]);return t.jsxs(Fo,{style:e.style,ref:n,children:[e.label&&e.labelValueConversion&&!e.options[0].data&&t.jsx(Mo,{style:{justifyContent:a?0===e.options.findIndex(e=>e.price===a)?"flex-start":1===e.options.findIndex(e=>e.price===a)?"center":"flex-end":"center"},children:t.jsxs(Bo,{type:"c1",children:[e.label.replace("{{value}}",(e.labelValueConversion*(a||(d?parseInt(d):0))).toFixed(0)),t.jsx(Ho,{$position:a?0===e.options.findIndex(e=>e.price===a)?"left":1===e.options.findIndex(e=>e.price===a)?"center":"right":"center"})]})}),t.jsx(Eo,{style:e.containerStyle,children:e.options.map((n,l)=>{const r=a===n.price&&0===d.length;return t.jsxs(Do,{ref:e=>i.current[l]=e,$selected:r,$data:!!n.data,onClick:()=>(t=>{c(""),x(""),s(t),e.onChange&&e.onChange(t)})(n.price),children:[t.jsxs(J.default,{type:"h3",weight:"medium",style:{fontSize:h},children:[n.price.toLocaleString("es-ES",{useGrouping:!0}),t.jsx("span",{style:{fontSize:h-6},children:e.currency})]}),n.data&&n.data.length>0&&t.jsx("div",{style:{display:"flex",flexDirection:"column",gap:3,marginTop:12,paddingTop:12,borderTop:"1px solid "+K.default.border.neutralSoft},children:n.data.map((e,n)=>{const i=e.icon?o[e.icon]:o.Check;return t.jsxs("div",{style:{display:"flex",gap:8},children:[t.jsx(i,{height:16,width:16,color:K.default.text.primary}),t.jsx(J.default,{type:"c1",style:{flex:1},children:e.title})]},`column-${l}-data-${n}`)})})]},"price-option-"+l)})}),!e.hideCustomAmount&&t.jsxs(zo,{$focus:u,$isSelected:d.length>0,$error:f.length>0,onClick:()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.focus()},children:[t.jsxs(_o,{$data:!!e.options[0].data,children:[t.jsx(Oo,{ref:l,style:{fontSize:h,width:d.length>0?d.length+"ch":"unset"},type:"number",value:d,placeholder:"Otra cantidad",onChange:e=>{c(e.target.value)},onFocus:e=>{p(!0),x(""),s(void 0)},onBlur:t=>{p(!1);const o=parseInt(t.target.value),n=e.options[0].price;o<n||!o?x(`La donación mínima es de ${n}${e.currency}`):(x(""),e.onChange&&e.onChange(t.target.value.length>0?o:a||0))}}),d.length>0&&t.jsx(J.default,{type:"h6",weight:"medium",style:{fontSize:18,marginTop:6},children:e.currency})]}),e.customAmountData&&t.jsx("div",{style:{marginTop:12,paddingTop:12,borderTop:"1px solid "+K.default.border.neutralSoft},children:e.customAmountData}),f&&t.jsx(J.default,{type:"p2",weight:"medium",style:{marginTop:4,color:K.default.text.red,textAlign:"center"},children:f})]})]})},exports.InputRange=o=>{var n;const i=r.createRef(),[l,a]=r.useState(0),[s,d]=r.useState(o.value&&"number"==typeof o.value?o.value:o.defaultValue&&"number"==typeof o.defaultValue?o.defaultValue:0),{style:u,hideRange:p,unit:f}=o,x=e.__rest(o,["style","hideRange","unit"]);r.useEffect(()=>{i.current&&a(i.current.offsetWidth)},[i.current]),r.useEffect(()=>{o.value&&"number"==typeof o.value&&d(o.value)},[o.value]);return t.jsxs(yo,{ref:i,style:u,children:[!p&&t.jsx(vo,{role:"range",id:"bubbleHeight",$value:o.min&&o.max?(s-o.min)/(o.max-o.min)*l:s/100*l,children:t.jsx(wo,{children:s})}),null===(n=o.presents)||void 0===n?void 0:n.map(e=>{const n=o.min&&o.max?(e.value-o.min)/(o.max-o.min)*l:e.value/100*l,i=s>=e.value;return t.jsxs($o,{style:{left:`calc(${n}px - 22px)`},children:[i&&t.jsx(So,{children:t.jsx(c.Player,{style:{height:"100%",width:"100%"},autoplay:!0,loop:!1,keepLastFrame:!0,src:he.default})}),t.jsx(Lo,{$colorSuccess:e.colorSuccess,$color:e.color,$isSelected:i,onClick:()=>e.onClick&&e.onClick(),children:t.jsx(e.icon,{height:20,width:20,color:i?"white":e.colorSuccess})}),t.jsx(ko,{$color:e.color,$colorSuccess:e.colorSuccess,$isSelected:i})]})}),t.jsx(bo,Object.assign({role:"input"},x,{value:s,id:"rangeHeight",type:"range",$thumbColor:o.thumbColor,$lineColor:o.lineColor,$backgroundColor:o.backgroundColor,$backValue:o.min&&o.max?(s-o.min)/(o.max-o.min)*l:s/100*l,onChange:e=>{d(parseInt(e.target.value)),o.onChange&&o.onChange(e)}})),o.min&&o.max&&!o.hideLabels?t.jsxs(jo,{children:[t.jsxs(J.default,{type:"p2",style:{color:K.default.text.neutralMedium},children:[o.min," ",f]}),t.jsxs(J.default,{type:"p2",style:{color:K.default.text.neutralMedium},children:[o.max," ",f]})]}):null]})},exports.Label=o=>{var n;const i=e.__rest(o,["text"]),[l,a]=r.useState(void 0);r.useEffect(()=>{a(s())},[o.text]);const s=()=>{switch(o.text){case"inRegister":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"En registro"};case"registered":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Registrado"};case"waiting":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Pendiente de match"};case"training":return{color:"#2D7FD9",backgroundColor:"#E5F1FC",text:"Formación en proceso"};case"match":return{color:"#59C183",backgroundColor:"#E7F6ED",text:"Match"};case"shutdown":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Baja"};case"banned":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Bloqueado"};case"exVolunteer":return{color:"#FF5A5A",backgroundColor:"#FCEDF1",text:"Ex-voluntario"};case"paused":return{color:"#828282",backgroundColor:"#F2F2F2",text:"Pausa"};case"inProgress":case"En proceso":return{color:"#FF8854",backgroundColor:"#FFF6E5",text:"En proceso"};case"pending_remittance":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente remesa"};case"pending":case"Pendiente":return{color:"#0000008F",backgroundColor:"#F2F2F2",text:"Pendiente"};case"canceled":return{color:X.default.text.red,backgroundColor:X.default.background.redLow,text:"Cancelado"};case"failed":return{color:X.default.text.red,backgroundColor:X.default.background.redLow,text:"Fallido"};case"cancel":return{color:X.default.text.red,backgroundColor:X.default.background.redLow,text:"Cancelada"};case"No resuelto":return{color:X.default.text.red,backgroundColor:X.default.background.redLow,text:"No resuelto"};case"done":case"Resuelto":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Resuelto"};case"active":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Activa"};case"paid":return{color:"#448B6D",backgroundColor:"#E4F8EE",text:"Pagado"}}};return"chip"===o.type?"big"===o.size?t.jsx(cn,Object.assign({role:"chip"},i,{children:t.jsx(J.default,{type:"p2",weight:"medium",style:{color:o.disabled?X.default.text.high:X.default.text.primary},children:o.text.slice(0,1).toLocaleUpperCase()+o.text.slice(1,o.text.length).toLocaleLowerCase()})})):"selector"===o.size?t.jsx(un,Object.assign({role:"chip"},i,{children:t.jsx(J.default,{type:"p2",weight:"medium",children:o.text})})):t.jsx(dn,{role:"chip",style:Object.assign(Object.assign({},o.style),{background:o.disabled?X.default.background.soft:X.default.background.primaryLow}),children:t.jsx(J.default,{type:"p2",weight:"medium",style:{color:o.disabled?X.default.text.high:X.default.text.primary},children:o.text.slice(0,1).toLocaleUpperCase()+o.text.slice(1,2)})}):t.jsx(sn,Object.assign({role:"label",id:"Label"},i,{style:Object.assign({background:o.backgroundColor?o.backgroundColor:l?l.backgroundColor:X.default.background.soft},o.style),children:t.jsxs(t.Fragment,{children:[o.icon&&t.jsx("span",{style:{display:"flex",alignItems:"center",marginRight:4},children:o.icon}),t.jsx(J.default,{type:"p",style:{fontSize:(null===(n=o.style)||void 0===n?void 0:n.fontSize)?o.style.fontSize:14,fontWeight:500,color:o.color?o.color:l?l.color:X.default.text.full},children:(null==l?void 0:l.text)?l.text:o.text})]})}))},exports.Menu=an,exports.Modal=tn,exports.Pagination=e=>{const[o,n]=r.useState(0),[i,l]=r.useState(0);r.useEffect(()=>{l(Math.ceil(e.length/e.rowsPerPage))},[e.length,e.rowsPerPage]),r.useEffect(()=>{e.start&&e.start<i&&n(e.start)},[e.start]);return t.jsxs(wi,{role:"pagination",style:e.style,children:[t.jsx(ji,{role:"first-arrow",onClick:()=>{o>0&&(n(0),e.onChange&&e.onChange(0))},style:{cursor:0===o?"auto":"pointer"},children:t.jsx(s.ChevronFirst,{style:{stroke:0===o?X.default.text.low:X.default.text.full}})}),t.jsx(ji,{role:"left-arrow",onClick:()=>{if(o>0){const t=o-1;n(t),e.onChange&&e.onChange(t)}},style:{cursor:0===o?"auto":"pointer"},children:t.jsx(s.ChevronLeft,{style:{stroke:0===o?X.default.text.low:X.default.text.full}})}),t.jsxs(J.default,{type:"p",style:{color:X.default.text.full,margin:"0px 12px"},children:[t.jsx("span",{style:{fontWeight:700},children:o+1})," de"," ",t.jsx("span",{style:{fontWeight:700},children:i})]}),t.jsx(ji,{role:"right-arrow",onClick:()=>{if(o<i-1){const t=o+1;n(t),e.onChange&&e.onChange(t)}},style:{cursor:o===i-1?"auto":"pointer"},children:t.jsx(s.ChevronRight,{style:{stroke:o===i-1?X.default.text.low:X.default.text.full}})}),t.jsx(ji,{role:"last-arrow",onClick:()=>{o<i-1&&(n(i-1),e.onChange&&e.onChange(i-1))},style:{cursor:o===i-1?"auto":"pointer"},children:t.jsx(s.ChevronLast,{style:{stroke:o===i-1?X.default.text.low:X.default.text.full}})})]})},exports.Payout=yi,exports.ProgressBar=o=>{const{minValue:n=0,maxValue:i=100,progress:l,style:a,showPercentage:s}=o,d=e.__rest(o,["minValue","maxValue","progress","style","showPercentage"]),[c,u]=r.useState("number"==typeof o.progress?0:o.progress.map(e=>({value:0,color:e.color})));return r.useEffect(()=>{u(o.progress)},[o.progress]),t.jsxs(Ye,{style:a,children:[s&&("number"==typeof c?t.jsx(Ge,{style:{left:`calc(${c/(i-n)*100}% - 20px)`,backgroundColor:o.color?o.color:K.default.surface.primary},children:t.jsx(J.default,{type:"p2",weight:"medium",style:{color:"white"},children:"number"==typeof c&&`${(c/(i-n)*100).toFixed(0)}%`})}):c.map((e,o)=>t.jsx(Ge,{style:{left:`calc(${e.value/(i-n)*100}% - 20px)`,backgroundColor:e.color?e.color:K.default.surface.primary},children:t.jsx(J.default,{type:"p2",weight:"medium",style:{color:"white"},children:`${(e.value/(i-n)*100).toFixed(0)}%`})},"progress-percentage-"+o))),t.jsx(Ue,Object.assign({role:"progress-bar"},d,{children:"number"==typeof c?t.jsx(Xe,Object.assign({},d,{style:{height:o.style&&o.style.height?o.style.height:6},$progress:c/(i-n)*100,color:o.color,$animationTime:o.animationTime,$animationDelay:o.animationDelay})):c.map((e,t)=>r.createElement(Xe,Object.assign({},d,{key:"progress-value-"+t,style:{height:o.style&&o.style.height?o.style.height:6},$progress:e.value/(i-n)*100,color:e.color,$animationTime:o.animationTime,$animationDelay:o.animationDelay})))}))]})},exports.RadioButton=e=>{const[o,n]=r.useState(e.options.filter(e=>e.selected)),[i,l]=r.useState(!1);return t.jsx(ii,{style:e.style,role:"radiobuttonlist",children:e.options.map((r,a)=>{const s=o.some(e=>e.id===r.id);return t.jsx(ni,{id:r.id,style:e.cellStyle,children:r.children,selected:s,onClick:()=>(t=>{const r=o.findIndex(e=>t.id===e.id);let a=o;"single"===e.type?a=[t]:-1===r?a.push(t):a.splice(r,1),n(a),l(!i),e.onChange&&e.onChange(a)})(r)},r.id+"-"+a)})})},exports.SearchBar=o=>{const{id:n,style:i,design:l}=o,r=e.__rest(o,["id","style","design"]);return"big"===o.type?t.jsxs(Io,{id:n,role:"search-bar",style:i,children:[t.jsx(Zo,{$design:l,style:{height:24,width:24},children:t.jsx(s.Search,{stroke:X.default.text.high})}),t.jsx(Ro,Object.assign({role:"input",style:{height:"48px",paddingLeft:"secondary"===l?"36px":"46px"}},r,{$design:l}))]}):t.jsxs(Io,{id:n,role:"search-bar",style:i,children:[t.jsx(Zo,{$design:l,style:{height:22,width:22},children:t.jsx(s.Search,{stroke:X.default.text.high})}),t.jsx(Ro,Object.assign({role:"input",style:{fontSize:16,paddingLeft:"secondary"===l?"36px":"46px"},$design:l},r))]})},exports.Select=e=>{const[o,n]=r.useState(!1),[i,l]=r.useState(e.options&&e.options[0]);r.useEffect(()=>(window.addEventListener("click",e=>a(e)),window.removeEventListener("click",()=>{})),[]),r.useEffect(()=>{e.selectedItem&&l(e.selectedItem)},[e.selectedItem]);const a=t=>{const o=document.getElementById(e.id);null!==o&&(o.contains(t.target)||n(!1))};return t.jsxs(Po,{children:[t.jsxs(Ao,{role:"select",id:e.id,style:e.style,onClick:e=>{if(!e)e=window.event;e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),n(!o)},children:[null==i?void 0:i.icon,!e.hideTitle&&t.jsx(J.default,{type:"p",style:{flex:1,fontSize:14,color:e.style?e.style.color:X.default.text.full},children:null==i?void 0:i.label}),o?t.jsx(s.ChevronUp,{height:20,width:20}):t.jsx(s.ChevronDown,{height:20,width:20})]}),o&&t.jsx(To,{role:"menu",style:e.optionStyle,children:e.options.map((o,i)=>t.jsxs(Vo,{role:"cell-"+i,onClick:t=>((t,o)=>{o||(o=window.event);o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation(),l(t),n(!1),e.onChange&&e.onChange(t)})(o,t),children:[o.icon,t.jsx(J.default,{type:"p",children:o.label})]},e.id+"-cell-"+i))})]})},exports.Stamp=e=>{const o=window.innerWidth<=450;return t.jsxs(Wi,{role:"stamp",style:e.style,children:[t.jsx(Ui,{children:t.jsx(Gi,{isMobile:o})}),t.jsxs(Xi,{children:[t.jsx(Yi,{$backgroundColor:e.backgroundColor,children:t.jsx(J.default,{type:"d1",children:e.icon})}),t.jsx(J.default,{type:"p",style:{maxWidth:"-webkit-fill-available",margin:"4px 3px 0px 9px",width:"100%",fontFamily:"DM Mono",fontSize:13,maxHeight:24,textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.title})]})]})},exports.Switch=e=>{const[o,n]=r.useState(!1);return r.useEffect(()=>{e.active?n(e.active):n(!1)},[e.active]),t.jsx(Ki,{role:"container",$active:o,$color:e.color,onClick:()=>{e.onChange&&e.onChange(!o),n(!o)},children:t.jsx(Qi,{role:"tag",$active:o,children:o&&t.jsx(s.Check,{color:e.color?e.color:K.default.text.primary,strokeWidth:3,height:18,width:18})})})},exports.SwitchTag=e=>{const[o,n]=r.useState(e.options[0]);return t.jsx(bi,{role:"container",style:e.style,children:e.options.map(i=>{const l=i.id===o.id;return t.jsx(vi,{role:i.id,$selected:l,onClick:()=>{n(i),e.onChange&&e.onChange(i)},children:Q.default.cloneElement(i.icon,Object.assign({color:l?K.default.border.primary:K.default.border.neutralMedium,height:20,width:20},i.icon.props))},"switch"+i.id)})})},exports.Tabs=e=>{const[o,n]=r.useState(e.selectedOption?e.selectedOption:e.options[0]);r.useEffect(()=>{e.selectedOption&&n(e.selectedOption)},[e.selectedOption]);const i=t=>{n(t),e.onChange&&e.onChange(t)};return"secondary"===e.design?t.jsx(ui,{role:"container",style:Object.assign({backgroundColor:e.backgroundColor},e.style),children:e.options.map(n=>{const l=o.id===n.id;return t.jsx(pi,{role:n.id,$selected:l,onClick:()=>i(n),style:e.cellStyle,color:e.cellColor,children:t.jsx(J.default,{type:"p",weight:"medium",style:Object.assign({fontSize:14,color:l?e.textColor?e.textColor:X.default.text.primary:X.default.text.high,width:"max-content"},e.textStyle),children:n.title})},n.id)})}):t.jsx(di,{role:"container",style:Object.assign({backgroundColor:e.backgroundColor},e.style),children:e.options.map(n=>{const l=o.id===n.id;return t.jsx(ci,{role:n.id,$selected:l,onClick:()=>i(n),style:e.cellStyle,color:e.cellColor,children:t.jsx(fi,{type:"p",weight:"medium",textColor:e.textColor,$selected:l,style:e.textStyle,children:n.title})},n.id)})})},exports.TagSelector=e=>{const[o,n]=r.useState(e.optionsSelected?e.optionsSelected:[]);r.useEffect(()=>{e.optionsSelected&&n(e.optionsSelected)},[e.optionsSelected]);const i=t=>{if("single"===e.type){o.findIndex(e=>e.id===t.id)>-1?(n([]),e.onChange&&e.onChange([])):(n([t]),e.onChange&&e.onChange([t]))}else if("multiple"===e.type){const i=[...o],l=i.findIndex(e=>e.id===t.id);l>-1?i.splice(l,1):i.push(t),n(i),e.onChange&&e.onChange(i)}};return t.jsx(Di,{role:"container",style:e.style,children:e.options.map((n,l)=>{const r=o.some(e=>e.id===n.id);return n.subtitle?t.jsx(Ei,{role:n.id,title:n.title,subtitle:n.subtitle,selected:r,onlyVisual:e.onlyVisual,design:e.design,onClick:()=>i(n)},n.id):t.jsx(Li,{role:n.id,title:n.title,selected:r,onlyVisual:e.onlyVisual,design:e.design,onClick:()=>i(n)},n.id)})})},exports.Text=We,exports.TextAnimated=o=>{var{children:n}=o,i=e.__rest(o,["children"]);const[l,a]=r.useState(0);r.useEffect(()=>{const e=setInterval(()=>{a(e=>(e+1)%i.options.length)},i.interval?i.interval:2500);return()=>clearInterval(e)},[i.options.length]);const[s,d]=null==n?void 0:n.split("{{data}}");return t.jsxs(We,Object.assign({},i,{children:[s,t.jsx(jl,{children:i.options[l]},i.options[l]),d]}))},exports.TextArea=e=>"default"===e.type?t.jsx(Zn,Object.assign({},e)):"edit"===e.type?t.jsx(Jn,Object.assign({},e)):null;
|
|
1874
1874
|
//# sourceMappingURL=index.js.map
|