@adoptaunabuelo/react-components 0.3.140 → 0.3.142
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/components/Form/LocationForm.d.ts +1 -1
- package/dist/esm/components/Modal/ModalPrimary.d.ts +1 -1
- package/dist/esm/components/TextArea/TextAreaEditor.d.ts +4 -2
- package/dist/esm/index.js +441 -441
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -4
- package/package.json +12 -10
package/dist/esm/index.js
CHANGED
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
import{__rest as e,__awaiter as t}from"tslib";import{jsx as
|
|
1
|
+
import{__rest as e,__awaiter as t}from"tslib";import{jsx as o,jsxs as i,Fragment as n}from"react/jsx-runtime";import r,{css as l,keyframes as a}from"styled-components";import d from"@constants/Color";import s from"styled-media-query";import c from"@constants/ColorV2";import p,{useState as u,useEffect as h,createElement as g,forwardRef as f,useRef as x,useImperativeHandle as m,useCallback as y,createRef as b,useMemo as v,Fragment as w}from"react";import $ from"@components/Text/Text";import*as C from"lucide-react";import{Check as k,X as L,Trash2 as F,Plus as S,Send as _,Mic as D,Camera as z,Image as j,Crop as O,ChevronUp as M,ChevronDown as B,Search as E,MoreVertical as H,Heading1 as A,Heading2 as P,Pilcrow as T,Bold as V,Italic as I,Underline as Z,AlignLeft as R,AlignCenter as N,AlignRight as W,ChevronFirst as Y,ChevronLeft as U,ChevronRight as q,ChevronLast as G,Clock as J,NotebookText as K}from"lucide-react";import Q from"@components/Button/Button";import{Player as X}from"@lottiefiles/react-lottie-player";import ee from"@assets/animations/button-check.json";import te from"@assets/animations/button-loading.json";import oe from"moment";import ie from"@assets/animations/loading-small.json";import ne from"@components/Button/ButtonImage";import re from"@components/Menu/Menu";import"react-dates/initialize";import"react-dates/lib/css/_datepicker.css";import{DateRangePicker as le,DayPickerRangeController as ae}from"react-dates";import de from"compressorjs";import se,{centerCrop as ce,makeAspectCrop as pe}from"react-image-crop";import"react-image-crop/dist/ReactCrop.css";import ue from"react-webcam";import he from"@components/Modal/Modal";import ge from"lodash.debounce";import fe from"google-libphonenumber";import*as xe from"country-flag-icons/react/3x2";import me from"@assets/animations/pop.json";import ye from"react-modal";import be from"fuse.js";import ve from"@components/SearchBar/SearchBar";import we from"@components/Checkbox/CheckboxList";import $e from"@components/Input/Range/InputRange";import Ce from"@components/Avatar/Avatar";import{convertToRaw as ke}from"draft-js";import Le from"draftjs-to-html";import{TextStyleKit as Fe}from"@tiptap/extension-text-style";import{useEditor as Se,EditorContent as _e,useEditorState as De}from"@tiptap/react";import ze from"@tiptap/extension-text-align";import je from"@tiptap/starter-kit";import{Placeholder as Oe}from"@tiptap/extensions";import Me from"@components/Select/Select";import{useStripe as Be,useElements as Ee,IbanElement as He,CardElement as Ae,Elements as Pe}from"@stripe/react-stripe-js";import{loadStripe as Te}from"@stripe/stripe-js";import Ve from"@components/Input/Basic/Input";import"moment/locale/es";import Ie from"clsx";import{format as Ze}from"date-fns";import Re from"@components/Input/Chat/InputChat";import Ne from"@components/Input/Location/InputLocation";const We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: row;
|
|
4
|
-
`,
|
|
4
|
+
`,Ye=r.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?d.background.primary:d.text.low};
|
|
11
|
+
`,Ue=t=>{var{steps:i=1,selectedStep:n=0}=t,r=e(t,["steps","selectedStep"]);const l=Array.from(Array(i).keys());return o(We,Object.assign({role:"bread-crumb"},r,{children:l.map((e,t)=>o(Ye,{$isSelected:n===t},"crumb"+t))}))},qe=r.h1`
|
|
12
12
|
padding: 0px;
|
|
13
13
|
margin: 0px;
|
|
14
14
|
font-family: "Poppins", "sans-serif";
|
|
15
|
-
color: ${
|
|
15
|
+
color: ${c.text.neutralHard};
|
|
16
16
|
font-size: 52px;
|
|
17
17
|
line-height: 64px;
|
|
18
18
|
${s.lessThan("medium")`
|
|
19
19
|
font-size: 48px;
|
|
20
20
|
line-height: 60px;
|
|
21
21
|
`}
|
|
22
|
-
`,
|
|
22
|
+
`,Ge=r.h1`
|
|
23
23
|
padding: 0px;
|
|
24
24
|
margin: 0px;
|
|
25
25
|
font-family: "Poppins", "sans-serif";
|
|
26
|
-
color: ${
|
|
26
|
+
color: ${c.text.neutralHard};
|
|
27
27
|
font-size: 48px;
|
|
28
28
|
line-height: 56px;
|
|
29
29
|
${s.lessThan("medium")`
|
|
30
30
|
font-size: 32px;
|
|
31
31
|
line-height: 40px;
|
|
32
32
|
`}
|
|
33
|
-
`,
|
|
33
|
+
`,Je=r.h2`
|
|
34
34
|
padding: 0px;
|
|
35
35
|
margin: 0px;
|
|
36
36
|
font-family: "Poppins", "sans-serif";
|
|
37
|
-
color: ${
|
|
37
|
+
color: ${c.text.neutralHard};
|
|
38
38
|
font-size: 40px;
|
|
39
39
|
line-height: 48px;
|
|
40
40
|
${s.lessThan("medium")`
|
|
41
41
|
font-size: 28px;
|
|
42
42
|
line-height: 36px;
|
|
43
43
|
`}
|
|
44
|
-
`,
|
|
44
|
+
`,Ke=r.h3`
|
|
45
45
|
padding: 0px;
|
|
46
46
|
margin: 0px;
|
|
47
47
|
font-family: "Poppins", "sans-serif";
|
|
48
|
-
color: ${
|
|
48
|
+
color: ${c.text.neutralHard};
|
|
49
49
|
font-size: 28px;
|
|
50
50
|
line-height: 36px;
|
|
51
51
|
${s.lessThan("medium")`
|
|
52
52
|
font-size: 24px;
|
|
53
53
|
line-height: 32px;
|
|
54
54
|
`}
|
|
55
|
-
`,
|
|
55
|
+
`,Qe=r.h4`
|
|
56
56
|
padding: 0px;
|
|
57
57
|
margin: 0px;
|
|
58
58
|
font-family: "Poppins", "sans-serif";
|
|
59
|
-
color: ${
|
|
59
|
+
color: ${c.text.neutralHard};
|
|
60
60
|
font-size: 24px;
|
|
61
61
|
line-height: 32px;
|
|
62
62
|
${s.lessThan("medium")`
|
|
63
63
|
font-size: 20px;
|
|
64
64
|
line-height: 28px;
|
|
65
65
|
`}
|
|
66
|
-
`,
|
|
66
|
+
`,Xe=r.h5`
|
|
67
67
|
padding: 0px;
|
|
68
68
|
margin: 0px;
|
|
69
69
|
font-family: "Poppins", "sans-serif";
|
|
70
|
-
color: ${
|
|
70
|
+
color: ${c.text.neutralHard};
|
|
71
71
|
font-size: 20px;
|
|
72
72
|
line-height: 28px;
|
|
73
73
|
${s.lessThan("medium")`
|
|
74
74
|
font-size: 18px;
|
|
75
75
|
line-height: 26px;
|
|
76
76
|
`}
|
|
77
|
-
`,
|
|
77
|
+
`,et=r.h6`
|
|
78
78
|
padding: 0px;
|
|
79
79
|
margin: 0px;
|
|
80
80
|
font-family: "Poppins", "sans-serif";
|
|
81
|
-
color: ${
|
|
81
|
+
color: ${c.text.neutralHard};
|
|
82
82
|
font-size: 18px;
|
|
83
83
|
line-height: 26px;
|
|
84
84
|
${s.lessThan("medium")`
|
|
85
85
|
font-size: 16px;
|
|
86
86
|
line-height: 24px;
|
|
87
87
|
`}
|
|
88
|
-
`,
|
|
88
|
+
`,tt=t=>{const{children:i,type:n,weight:r,style:l}=t,a=e(t,["children","type","weight","style"]);return o("d1"===n?qe:"h1"===n?Ge:"h2"===n?Je:"h3"===n?Ke:"h4"===n?Qe:"h5"===n?Xe:et,Object.assign({style:Object.assign({fontWeight:"semibold"===r?600:"medium"===r?500:400},l)},a,{children:i}))},ot=r.p`
|
|
89
89
|
font-family: "Poppins";
|
|
90
90
|
margin: 0px;
|
|
91
|
-
color: ${
|
|
92
|
-
`,
|
|
91
|
+
color: ${c.text.neutralHard};
|
|
92
|
+
`,it=t=>{const{style:i,type:n,children:r,weight:l}=t,a=e(t,["style","type","children","weight"]);return o(ot,Object.assign({style:Object.assign({fontSize:"p"===n?15:"p2"===n?14:"c1"===n?13:"c2"===n?12:"o1"===n?13:12,fontWeight:"semibold"===l?600:"medium"===l?500:400,textTransform:"o1"===n||"o2"===n?"uppercase":"none"},i)},a,{children:r}))},nt=r.p`
|
|
93
93
|
padding: 0px;
|
|
94
94
|
margin: 0px;
|
|
95
95
|
font-family: "Poppins", "sans-serif";
|
|
96
|
-
color: ${
|
|
96
|
+
color: ${c.text.neutralHard};
|
|
97
97
|
font-size: 18px;
|
|
98
98
|
${s.lessThan("medium")`
|
|
99
99
|
font-size: 15px;
|
|
100
100
|
`}
|
|
101
|
-
`,
|
|
101
|
+
`,rt=r.p`
|
|
102
102
|
padding: 0px;
|
|
103
103
|
margin: 0px;
|
|
104
104
|
font-family: "Poppins", "sans-serif";
|
|
105
|
-
color: ${
|
|
105
|
+
color: ${c.text.neutralHard};
|
|
106
106
|
font-size: 15px;
|
|
107
107
|
${s.lessThan("medium")`
|
|
108
108
|
font-size: 14px;
|
|
109
109
|
`}
|
|
110
|
-
`,
|
|
110
|
+
`,lt=r.p`
|
|
111
111
|
padding: 0px;
|
|
112
112
|
margin: 0px;
|
|
113
113
|
font-family: "Poppins", "sans-serif";
|
|
114
|
-
color: ${
|
|
114
|
+
color: ${c.text.neutralHard};
|
|
115
115
|
font-size: 13px;
|
|
116
116
|
${s.lessThan("medium")`
|
|
117
117
|
font-size: 13px;
|
|
118
118
|
`}
|
|
119
|
-
`,
|
|
119
|
+
`,at=t=>{const{children:i,type:n,weight:r,style:l}=t,a=e(t,["children","type","weight","style"]);return o("b1"===n?nt:"b2"===n?rt:lt,Object.assign({style:Object.assign({fontWeight:"semibold"===r?600:"medium"===r?500:400},l)},a,{children:i}))},dt=e=>"d1"===e.type||"h1"===e.type||"h2"===e.type||"h3"===e.type||"h4"===e.type||"h5"===e.type||"h6"===e.type?o(tt,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?o(it,Object.assign({role:"paragraph"},e,{children:e.children})):"b1"===e.type||"b2"===e.type||"b3"===e.type?o(at,Object.assign({role:"button"},e,{children:e.children})):null,st=r.div`
|
|
120
120
|
position: relative;
|
|
121
121
|
height: 6px;
|
|
122
|
-
`,
|
|
122
|
+
`,ct=r.div`
|
|
123
123
|
display: flex;
|
|
124
124
|
flex: 1;
|
|
125
|
-
background-color: ${
|
|
125
|
+
background-color: ${d.background.soft};
|
|
126
126
|
border-radius: 100px;
|
|
127
127
|
overflow: hidden;
|
|
128
|
-
`,
|
|
129
|
-
background: ${e=>e.color?e.color:
|
|
128
|
+
`,pt=r.div`
|
|
129
|
+
background: ${e=>e.color?e.color:d.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
|
+
`,ut=r.div`
|
|
134
134
|
position: absolute;
|
|
135
|
-
background-color: ${
|
|
135
|
+
background-color: ${c.surface.primary};
|
|
136
136
|
padding: 0px 4px;
|
|
137
137
|
border-radius: 4px;
|
|
138
138
|
top: -28px;
|
|
@@ -141,7 +141,52 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
141
141
|
flex-direction: column;
|
|
142
142
|
align-items: center;
|
|
143
143
|
transform-origin: bottom center;
|
|
144
|
-
`,qe=t=>{const{minValue:n=0,maxValue:r=100,progress:l,style:a,showPercentage:s}=t,d=e(t,["minValue","maxValue","progress","style","showPercentage"]),[u,x]=c("number"==typeof t.progress?0:t.progress.map(e=>({value:0,color:e.color})));return p(()=>{x(t.progress)},[t.progress]),o(We,{style:a,children:[s&&("number"==typeof u?i(Ue,{style:{left:`calc(${u/(r-n)*100}% - 20px)`,backgroundColor:t.color?t.color:De.surface.primary},children:i(Ne,{type:"p2",weight:"medium",style:{color:"white"},children:"number"==typeof u&&`${(u/(r-n)*100).toFixed(0)}%`})}):u.map((e,t)=>i(Ue,{style:{left:`calc(${e.value/(r-n)*100}% - 20px)`,backgroundColor:e.color?e.color:De.surface.primary},children:i(Ne,{type:"p2",weight:"medium",style:{color:"white"},children:`${(e.value/(r-n)*100).toFixed(0)}%`})},"progress-percentage-"+t))),i(Ge,Object.assign({role:"progress-bar"},d,{children:"number"==typeof u?i(Ye,Object.assign({},d,{style:{height:t.style&&t.style.height?t.style.height:6},$progress:u/(r-n)*100,color:t.color,$animationTime:t.animationTime,$animationDelay:t.animationDelay})):u.map((e,i)=>h(Ye,Object.assign({},d,{key:"progress-value-"+i,style:{height:t.style&&t.style.height?t.style.height:6},$progress:e.value/(r-n)*100,color:e.color,$animationTime:t.animationTime,$animationDelay:t.animationDelay})))}))]})};var Je={nm:"Check",mn:"",layers:[{ty:4,nm:"Check 2",mn:"",sr:1,st:0,op:75,ip:20,hd:!1,cl:"",ln:"",ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[100,83.687,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[75,74.604,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ef:[],shapes:[{ty:"gr",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Group",nm:"Grupo 1",ix:1,cix:2,np:3,it:[{ty:"sh",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Shape - Group",nm:"Caminho 1",ix:1,d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-50,.396],[-17.209,33.687],[50,-33.687]]},ix:2}},{ty:"tm",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Filter - Trim",nm:"Aparar caminhos 1",ix:2,e:{a:1,k:[{o:{x:.599,y:0},i:{x:.188,y:1},s:[0],t:20},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[100],t:45}],ix:2},o:{a:0,k:0,ix:3},s:{a:0,k:0,ix:1},m:1},{ty:"st",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Graphic - Stroke",nm:"Traçado 1",lc:2,lj:2,ml:1,o:{a:0,k:100,ix:4},w:{a:0,k:20,ix:5},d:[],c:{a:0,k:[1,1,1],ix:3}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[100,83.686],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:3,mn:"",sr:1,st:0,op:91.2,ip:75,hd:!1,cl:"",ln:"",ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[100,83.687,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[75,74.604,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ind:2},{ty:3,mn:"",sr:1,st:0,op:40,ip:0,hd:!1,cl:"",ln:"",ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[100,83.687,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[75,74.604,0],ix:2},r:{a:0,k:0,ix:10},sa:{a:0,k:0},o:{a:0,k:100,ix:11}},ind:3}],ddd:0,h:150,w:150,meta:{a:"",k:"",d:"",g:"@lottiefiles/toolkit-js 0.22.1",tc:"#000000"},v:"5.1.3",fr:60,op:70,ip:0,assets:[]},Ke={nm:"Comp 1",mn:"",layers:[{ty:0,nm:"Pre-comp 1",mn:"",sr:1,st:0,op:211,ip:0,hd:!1,cl:"",ln:"",ddd:0,bm:0,tt:0,hasMask:!1,td:0,ao:0,ks:{a:{a:0,k:[150,150,0],ix:1},s:{a:0,k:[41,41,100],ix:6},sk:{a:0,k:0},p:{a:0,k:[150,150,0],ix:2},sa:{a:0,k:0},o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10}},ef:[],w:300,h:300,refId:"comp_0",ind:0}],ddd:0,h:300,w:300,meta:{a:"",k:"",d:"",g:"LottieFiles AE 1.0.0",tc:"#000000"},v:"4.8.0",fr:60,op:41,ip:9,assets:[{nm:"",mn:"",layers:[{ty:4,nm:"ball4",mn:"",sr:1,st:25,op:71,ip:40,hd:!1,cl:"",ln:"",ddd:0,bm:0,tt:0,hasMask:!1,td:0,ao:0,ks:{a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{s:!0,x:{a:0,k:223,ix:3},y:{a:1,k:[{o:{x:.534,y:0},i:{x:.465,y:1},s:[169.5],t:25},{o:{x:.514,y:0},i:{x:.424,y:1},s:[129.5],t:40},{o:{x:.054,y:0},i:{x:.465,y:1},s:[169.5],t:55},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[129.5],t:70}],ix:4}},sa:{a:0,k:0},o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10}},ef:[],shapes:[{ty:"gr",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Group",nm:"Group 1",ix:1,cix:2,np:2,it:[{ty:"sh",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,-14.359],[14.359,0],[0,14.359],[-14.359,0]],o:[[0,14.359],[-14.359,0],[0,-14.359],[14.359,0]],v:[[26,0],[0,26],[-26,0],[0,-26]]},ix:2}},{ty:"fl",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[0,0],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:0},{ty:4,nm:"ball 4",mn:"",sr:1,st:20,op:66,ip:35,hd:!1,cl:"",ln:"",ddd:0,bm:0,tt:0,hasMask:!1,td:0,ao:0,ks:{a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{s:!0,x:{a:0,k:150,ix:3},y:{a:1,k:[{o:{x:.534,y:0},i:{x:.465,y:1},s:[169.5],t:20},{o:{x:.514,y:0},i:{x:.424,y:1},s:[129.5],t:35},{o:{x:.054,y:0},i:{x:.465,y:1},s:[169.5],t:50},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[129.5],t:65}],ix:4}},sa:{a:0,k:0},o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10}},ef:[],shapes:[{ty:"gr",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Group",nm:"Group 1",ix:1,cix:2,np:2,it:[{ty:"sh",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,-14.359],[14.359,0],[0,14.359],[-14.359,0]],o:[[0,14.359],[-14.359,0],[0,-14.359],[14.359,0]],v:[[26,0],[0,26],[-26,0],[0,-26]]},ix:2}},{ty:"fl",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[0,0],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:1},{ty:4,nm:"ball 3",mn:"",sr:1,st:15,op:61,ip:30,hd:!1,cl:"",ln:"",ddd:0,bm:0,tt:0,hasMask:!1,td:0,ao:0,ks:{a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{s:!0,x:{a:0,k:77,ix:3},y:{a:1,k:[{o:{x:.534,y:0},i:{x:.465,y:1},s:[169.5],t:15},{o:{x:.514,y:0},i:{x:.424,y:1},s:[129.5],t:30},{o:{x:.054,y:0},i:{x:.465,y:1},s:[169.5],t:45},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[129.5],t:60}],ix:4}},sa:{a:0,k:0},o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10}},ef:[],shapes:[{ty:"gr",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Group",nm:"Group 1",ix:1,cix:2,np:2,it:[{ty:"sh",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,-14.359],[14.359,0],[0,14.359],[-14.359,0]],o:[[0,14.359],[-14.359,0],[0,-14.359],[14.359,0]],v:[[26,0],[0,26],[-26,0],[0,-26]]},ix:2}},{ty:"fl",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[0,0],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:2},{ty:4,nm:"ball3",mn:"",sr:1,st:-6,op:40,ip:9,hd:!1,cl:"",ln:"",ddd:0,bm:0,tt:0,hasMask:!1,td:0,ao:0,ks:{a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{s:!0,x:{a:0,k:223,ix:3},y:{a:1,k:[{o:{x:.534,y:0},i:{x:.465,y:1},s:[169.5],t:-6},{o:{x:.514,y:0},i:{x:.424,y:1},s:[129.5],t:9},{o:{x:.054,y:0},i:{x:.465,y:1},s:[169.5],t:24},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[129.5],t:39}],ix:4}},sa:{a:0,k:0},o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10}},ef:[],shapes:[{ty:"gr",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Group",nm:"Group 1",ix:1,cix:2,np:2,it:[{ty:"sh",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,-14.359],[14.359,0],[0,14.359],[-14.359,0]],o:[[0,14.359],[-14.359,0],[0,-14.359],[14.359,0]],v:[[26,0],[0,26],[-26,0],[0,-26]]},ix:2}},{ty:"fl",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[0,0],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:3},{ty:4,nm:"ball 2",mn:"",sr:1,st:-11,op:35,ip:4,hd:!1,cl:"",ln:"",ddd:0,bm:0,tt:0,hasMask:!1,td:0,ao:0,ks:{a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{s:!0,x:{a:0,k:150,ix:3},y:{a:1,k:[{o:{x:.534,y:0},i:{x:.465,y:1},s:[169.5],t:-11},{o:{x:.514,y:0},i:{x:.424,y:1},s:[129.5],t:4},{o:{x:.054,y:0},i:{x:.465,y:1},s:[169.5],t:19},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[129.5],t:34}],ix:4}},sa:{a:0,k:0},o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10}},ef:[],shapes:[{ty:"gr",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Group",nm:"Group 1",ix:1,cix:2,np:2,it:[{ty:"sh",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,-14.359],[14.359,0],[0,14.359],[-14.359,0]],o:[[0,14.359],[-14.359,0],[0,-14.359],[14.359,0]],v:[[26,0],[0,26],[-26,0],[0,-26]]},ix:2}},{ty:"fl",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[0,0],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:4},{ty:4,nm:"ball 1",mn:"",sr:1,st:-16,op:30,ip:-1,hd:!1,cl:"",ln:"",ddd:0,bm:0,tt:0,hasMask:!1,td:0,ao:0,ks:{a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[100,100,100],ix:6},sk:{a:0,k:0},p:{s:!0,x:{a:0,k:77,ix:3},y:{a:1,k:[{o:{x:.534,y:0},i:{x:.465,y:1},s:[169.5],t:-16},{o:{x:.514,y:0},i:{x:.424,y:1},s:[129.5],t:-1},{o:{x:.054,y:0},i:{x:.465,y:1},s:[169.5],t:14},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[129.5],t:29}],ix:4}},sa:{a:0,k:0},o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10}},ef:[],shapes:[{ty:"gr",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Group",nm:"Group 1",ix:1,cix:2,np:2,it:[{ty:"sh",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Shape - Group",nm:"Path 1",ix:1,d:1,ks:{a:0,k:{c:!0,i:[[0,-14.359],[14.359,0],[0,14.359],[-14.359,0]],o:[[0,14.359],[-14.359,0],[0,-14.359],[14.359,0]],v:[[26,0],[0,26],[-26,0],[0,-26]]},ix:2}},{ty:"fl",bm:0,cl:"",ln:"",hd:!1,mn:"ADBE Vector Graphic - Fill",nm:"Fill 1",c:{a:0,k:[1,1,1],ix:4},r:1,o:{a:0,k:100,ix:5}},{ty:"tr",a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},sk:{a:0,k:0,ix:4},p:{a:0,k:[0,0],ix:2},r:{a:0,k:0,ix:6},sa:{a:0,k:0,ix:5},o:{a:0,k:100,ix:7}}]}],ind:5}],id:"comp_0",fr:30}]};const Qe=r.button`
|
|
144
|
+
`,ht=t=>{const{minValue:n=0,maxValue:r=100,progress:l,style:a,showPercentage:d}=t,s=e(t,["minValue","maxValue","progress","style","showPercentage"]),[p,f]=u("number"==typeof t.progress?0:t.progress.map(e=>({value:0,color:e.color})));return h(()=>{f(t.progress)},[t.progress]),i(st,{style:a,children:[d&&("number"==typeof p?o(ut,{style:{left:`calc(${p/(r-n)*100}% - 20px)`,backgroundColor:t.color?t.color:c.surface.primary},children:o($,{type:"p2",weight:"medium",style:{color:"white"},children:"number"==typeof p&&`${(p/(r-n)*100).toFixed(0)}%`})}):p.map((e,t)=>o(ut,{style:{left:`calc(${e.value/(r-n)*100}% - 20px)`,backgroundColor:e.color?e.color:c.surface.primary},children:o($,{type:"p2",weight:"medium",style:{color:"white"},children:`${(e.value/(r-n)*100).toFixed(0)}%`})},"progress-percentage-"+t))),o(ct,Object.assign({role:"progress-bar"},s,{children:"number"==typeof p?o(pt,Object.assign({},s,{style:{height:t.style&&t.style.height?t.style.height:6},$progress:p/(r-n)*100,color:t.color,$animationTime:t.animationTime,$animationDelay:t.animationDelay})):p.map((e,o)=>g(pt,Object.assign({},s,{key:"progress-value-"+o,style:{height:t.style&&t.style.height?t.style.height:6},$progress:e.value/(r-n)*100,color:e.color,$animationTime:t.animationTime,$animationDelay:t.animationDelay})))}))]})},gt=r.div`
|
|
145
|
+
transform-origin: left bottom;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
position: absolute;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: row;
|
|
150
|
+
align-items: center;
|
|
151
|
+
min-width: 40%;
|
|
152
|
+
max-width: calc(100% - 24px);
|
|
153
|
+
width: fit-content;
|
|
154
|
+
bottom: 24px;
|
|
155
|
+
left: 24px;
|
|
156
|
+
right: 24px;
|
|
157
|
+
background: ${e=>{var t;return"success"===e.$type?d.status.color.success:"error"===e.$type?d.status.color.error:null===(t=e.style)||void 0===t?void 0:t.background}};
|
|
158
|
+
box-shadow: 2px 0px 20px rgba(0, 0, 0, 0.09), 0px 4px 8px rgba(0, 0, 0, 0.1);
|
|
159
|
+
border-radius: 4px;
|
|
160
|
+
z-index: 100;
|
|
161
|
+
animation: ${e=>e.$visible?l`
|
|
162
|
+
${xt} 0.3s ease-out forwards
|
|
163
|
+
`:l`
|
|
164
|
+
${mt} 0.3s ease-in forwards
|
|
165
|
+
`};
|
|
166
|
+
`,ft=r.div`
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: row;
|
|
169
|
+
align-items: center;
|
|
170
|
+
margin: 16px;
|
|
171
|
+
`,xt=a`
|
|
172
|
+
from {
|
|
173
|
+
opacity: 0;
|
|
174
|
+
transform: scale(0, 0)
|
|
175
|
+
}
|
|
176
|
+
to {
|
|
177
|
+
opacity: 1;
|
|
178
|
+
transform: scale(1, 1);
|
|
179
|
+
}
|
|
180
|
+
`,mt=a`
|
|
181
|
+
from {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
transform: scale(1, 1);
|
|
184
|
+
}
|
|
185
|
+
to {
|
|
186
|
+
opacity: 0;
|
|
187
|
+
transform: scale(0, 0);
|
|
188
|
+
}
|
|
189
|
+
`,yt=t=>{var{type:n="success",text:r,isVisible:l=!1}=t,a=e(t,["type","text","isVisible"]);const[d,s]=u(!1),[c,p]=u(!1);return h(()=>{s(l);const e=setTimeout(()=>{a.onClose&&a.onClose(),s(!1)},a.closeAfter?a.closeAfter:3e3);return()=>clearTimeout(e)},[l]),h(()=>{l&&p(!0)},[d]),c?o(gt,Object.assign({$type:n,$text:r,$visible:d},a,{role:"feedback",children:i(ft,{children:["success"===n?o(k,{style:{marginRight:12},color:"white",height:24,width:24}):"error"===n?o(L,{style:{marginRight:12},color:"white",height:24,width:24}):a.icon,o($,{type:"p",style:{display:"flex",flex:1,color:"white"},children:r}),a.showClose&&o(Q,{style:{position:"absolute",top:0,right:0},design:"image",icon:o(L,{height:18,width:18,color:"white"}),onClick:()=>{a.onClose&&a.onClose(),s(!1)}})]})})):null},bt=r.button`
|
|
145
190
|
display: flex;
|
|
146
191
|
flex-direction: row;
|
|
147
192
|
align-items: center;
|
|
@@ -151,19 +196,19 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
151
196
|
border-radius: 1000px;
|
|
152
197
|
border: none;
|
|
153
198
|
color: white;
|
|
154
|
-
background-color: ${e=>e.$success?
|
|
199
|
+
background-color: ${e=>e.$success?d.status.color.success:d.background.primary};
|
|
155
200
|
opacity: ${e=>e.disabled?.48:1};
|
|
156
201
|
transition: transform 0.05s ease-out, width 0.2s ease-out,
|
|
157
202
|
background-color 0.2s ease-out, opacity 0.2s ease-out;
|
|
158
203
|
min-width: ${e=>"small"===e.$size?"80px":"100px"};
|
|
159
204
|
cursor: ${e=>e.disabled||e.$loading||e.$countdown?"default":"pointer"};
|
|
160
205
|
&:hover {
|
|
161
|
-
background-color: ${e=>e.disabled||e.$loading||e.$countdown?
|
|
206
|
+
background-color: ${e=>e.disabled||e.$loading||e.$countdown?d.background.primary:d.status.primary.hover};
|
|
162
207
|
}
|
|
163
208
|
&:active {
|
|
164
209
|
transform: ${e=>e.disabled||e.$loading||e.$countdown?"none":"scale(0.95)"};
|
|
165
210
|
}
|
|
166
|
-
`,
|
|
211
|
+
`,vt=r($)`
|
|
167
212
|
display: flex;
|
|
168
213
|
align-items: center;
|
|
169
214
|
gap: 6px;
|
|
@@ -171,7 +216,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
171
216
|
width: 100%;
|
|
172
217
|
margin-left: ${e=>e.$icon?6:0};
|
|
173
218
|
color: white;
|
|
174
|
-
`,
|
|
219
|
+
`,wt=t=>{var r,l,a,d,s,{loading:c,success:p,size:g,animationDelay:f,onSuccess:x,icon:m,iconPosition:y,animationTime:b,countdown:v,onCountdownEnd:w}=t,$=e(t,["loading","success","size","animationDelay","onSuccess","icon","iconPosition","animationTime","countdown","onCountdownEnd"]);const[C,k]=u(v||0);return h(()=>{if(v){const e=setInterval(()=>{k(e=>e-1)},1e3);return C<=0&&(clearInterval(e),w&&w()),()=>clearInterval(e)}k(0)},[C,v]),o(bt,Object.assign({role:"button",type:"button",$loading:c,$countdown:C>0,$success:p,$size:g},$,{onClick:e=>$.onClick&&!c&&C<=0&&!$.disabled&&$.onClick(e),children:p?o(X,{style:{height:"small"===g?25:30,width:"small"===g?25:30},autoplay:!0,loop:!1,keepLastFrame:!0,src:ee,onEvent:e=>{"complete"===e&&x&&x(!0)}}):c?o(X,{style:{width:"small"===g?80:100},autoplay:!0,loop:!0,src:te}):i(n,{children:[m&&"right"!==y&&m,i(vt,{role:"label",type:"p",weight:"medium",$size:g,$icon:!!m,style:{width:"unset",margin:"0px 6px",fontWeight:(null===(r=$.style)||void 0===r?void 0:r.fontWeight)?null===(l=$.style)||void 0===l?void 0:l.fontWeight:500,fontSize:(null===(a=$.style)||void 0===a?void 0:a.fontSize)?null===(d=$.style)||void 0===d?void 0:d.fontSize:"small"===g?14:15,color:(null===(s=$.style)||void 0===s?void 0:s.color)?$.style.color:"white",transition:"opacity "+(b||.3)+"s ease-out, transform "+(b||.3)+"s ease-out"},children:[$.children,C>0&&` ${C} segundos`]}),m&&"right"===y&&m]})}))},$t=r.button`
|
|
175
220
|
display: flex;
|
|
176
221
|
flex-direction: row;
|
|
177
222
|
align-items: center;
|
|
@@ -179,9 +224,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
179
224
|
height: ${e=>"small"===e.$size?"36px":"56px"};
|
|
180
225
|
padding: ${e=>e.$loading?"0px":"small"===e.$size?"0px 12px":"0px 24px"};
|
|
181
226
|
border-radius: 1000px;
|
|
182
|
-
border: ${e=>e.$success?"none":"1px solid "+(e.color?e.color:
|
|
227
|
+
border: ${e=>e.$success?"none":"1px solid "+(e.color?e.color:d.background.primary)};
|
|
183
228
|
opacity: ${e=>e.disabled?.48:1};
|
|
184
|
-
background-color: ${e=>e.$success?
|
|
229
|
+
background-color: ${e=>e.$success?d.status.color.success:"transparent"};
|
|
185
230
|
transition:
|
|
186
231
|
transform 0.05s ease-out,
|
|
187
232
|
width 0.2s ease-out,
|
|
@@ -190,16 +235,16 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
190
235
|
gap: 8px;
|
|
191
236
|
cursor: ${e=>e.disabled||e.$loading?"default":"pointer"};
|
|
192
237
|
&:hover {
|
|
193
|
-
background-color: ${e=>e.disabled||e.$loading?"transparent":
|
|
238
|
+
background-color: ${e=>e.disabled||e.$loading?"transparent":d.background.primary+"30"};
|
|
194
239
|
}
|
|
195
240
|
&:active {
|
|
196
241
|
transform: ${e=>e.disabled||e.$loading?"none":"scale(0.95)"};
|
|
197
242
|
}
|
|
198
|
-
`,
|
|
243
|
+
`,Ct=r($)`
|
|
199
244
|
font-size: ${e=>"small"===e.$size?"14px":"15px"};
|
|
200
245
|
width: 100%;
|
|
201
246
|
color: white;
|
|
202
|
-
`,
|
|
247
|
+
`,kt=t=>{var r,l,a,s,c,{loading:p,success:g,size:f,animationDelay:x,onSuccess:m,icon:y,iconPosition:b,animationTime:v}=t,w=e(t,["loading","success","size","animationDelay","onSuccess","icon","iconPosition","animationTime"]);const[$,C]=u(!0),[k,L]=u(w.children),[F,S]=u(void 0);h(()=>{_()},[]),h(()=>{k!==w.children&&(C(!1),D(x||600).then(()=>{C(!0),L(w.children)}))},[w.children]);const _=()=>{var e;const t=JSON.stringify(te);if(null===(e=w.style)||void 0===e?void 0:e.color){var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(w.style.color);if(o){const e={r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)};let i=t.replaceAll("[1,1,1]",`[${e.r/255},${e.g/255},${e.b/255}]`);S(JSON.parse(i))}else{let e=t.replaceAll("[1,1,1]",`[0,${143/255},${245/255}]`);S(JSON.parse(e))}}else{let e=t.replaceAll("[1,1,1]",`[0,${143/255},${245/255}]`);S(JSON.parse(e))}},D=e=>new Promise(t=>setTimeout(t,e));return o($t,Object.assign({role:"button"},w,{onClick:e=>w.onClick&&!p&&!w.disabled&&w.onClick(e),children:g?o(X,{style:{height:"small"===f?25:30,width:"small"===f?25:30},autoplay:!0,loop:!1,keepLastFrame:!0,src:ee,onEvent:e=>{"complete"===e&&m&&m(!0)}}):p&&F?o(X,{style:{width:"small"===f?80:100},autoplay:!0,loop:!0,src:F}):i(n,{children:[y&&"right"!==b&&y,o(Ct,{role:"label",type:"p",weight:"medium",$size:f,style:{fontWeight:(null===(r=w.style)||void 0===r?void 0:r.fontWeight)?null===(l=w.style)||void 0===l?void 0:l.fontWeight:500,fontSize:(null===(a=w.style)||void 0===a?void 0:a.fontSize)?null===(s=w.style)||void 0===s?void 0:s.fontSize:"small"===f?14:15,color:(null===(c=w.style)||void 0===c?void 0:c.color)?w.style.color:d.text.primary,opacity:$?1:0,transform:$?"translateY(0px)":"translateY(10px)",transition:"opacity "+(v||.3)+"s ease-out, transform "+(v||.3)+"s ease-out"},children:k}),y&&"right"===b&&y]})}))},Lt=r.button`
|
|
203
248
|
display: flex;
|
|
204
249
|
flex-direction: row;
|
|
205
250
|
align-items: center;
|
|
@@ -213,15 +258,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
213
258
|
gap: 8px;
|
|
214
259
|
font-family: "Poppins", "sans-serif";
|
|
215
260
|
font-size: ${e=>"small"===e.$size?"14px":"16px"};
|
|
216
|
-
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:d.text.full}};
|
|
217
262
|
opacity: ${e=>e.disabled?.5:1};
|
|
218
263
|
&:hover {
|
|
219
|
-
background-color: ${e=>e.disabled?"transparent":
|
|
264
|
+
background-color: ${e=>e.disabled?"transparent":d.status.neutral.hover};
|
|
220
265
|
}
|
|
221
266
|
&:active {
|
|
222
267
|
transform: scale(0.95);
|
|
223
268
|
}
|
|
224
|
-
`,
|
|
269
|
+
`,Ft=t=>{var{size:o,icon:n,iconPosition:r,loading:l}=t,a=e(t,["size","icon","iconPosition","loading"]);return i(Lt,Object.assign({role:"button"},a,{disabled:a.disabled||l,onClick:e=>a.onClick&&!l&&!a.disabled&&a.onClick(e),children:[n&&"right"!==r&&n,a.children,n&&"right"===r&&n]}))},St=r.button`
|
|
225
270
|
display: inline-flex;
|
|
226
271
|
padding: 0px;
|
|
227
272
|
cursor: ${e=>!e.disabled&&"pointer"};
|
|
@@ -238,28 +283,28 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
238
283
|
opacity 0.2s ease-out;
|
|
239
284
|
font-family: "Poppins", "sans-serif";
|
|
240
285
|
font-size: 14px;
|
|
241
|
-
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:d.text.full}};
|
|
242
287
|
&:active {
|
|
243
288
|
transform: scale(0.95);
|
|
244
289
|
}
|
|
245
|
-
`,
|
|
290
|
+
`,_t=r.div`
|
|
246
291
|
display: inline-flex;
|
|
247
292
|
padding: 12px;
|
|
248
293
|
border-radius: 1000px;
|
|
249
294
|
align-items: center;
|
|
250
295
|
justify-content: center;
|
|
251
296
|
&:hover {
|
|
252
|
-
background-color: ${e=>!e.$disabled&&
|
|
297
|
+
background-color: ${e=>!e.$disabled&&d.status.neutral.hover};
|
|
253
298
|
}
|
|
254
299
|
&:active {
|
|
255
300
|
transform: scale(0.95);
|
|
256
301
|
}
|
|
257
|
-
`,
|
|
302
|
+
`,Dt=r.div`
|
|
258
303
|
margin-top: 4px;
|
|
259
|
-
`,
|
|
304
|
+
`,zt=r.img`
|
|
260
305
|
height: 24px;
|
|
261
306
|
width: 24px;
|
|
262
|
-
`,
|
|
307
|
+
`,jt=t=>{var{src:n,icon:r,loading:l}=t,a=e(t,["src","icon","loading"]);return i(St,Object.assign({role:"button"},a,{disabled:a.disabled||l,onClick:e=>a.onClick&&!l&&!a.disabled&&a.onClick(e),children:[o(_t,{$disabled:a.disabled,children:r||o(zt,{src:n})}),a.children&&o(Dt,{children:a.children})]}))},Ot=r.button`
|
|
263
308
|
display: flex;
|
|
264
309
|
gap: 8px;
|
|
265
310
|
align-items: center;
|
|
@@ -267,71 +312,26 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
267
312
|
border: none;
|
|
268
313
|
cursor: ${e=>e.disabled||e.$loading?"default":"pointer"};
|
|
269
314
|
opacity: ${e=>e.disabled||e.$loading?.5:1};
|
|
270
|
-
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:d.text.primary}};
|
|
271
316
|
font-family: "Poppins", "sans-serif";
|
|
272
317
|
font-size: ${e=>"small"===e.$size?"14px":"16px"};
|
|
273
318
|
&:hover {
|
|
274
319
|
text-decoration: ${e=>e.disabled||e.$loading?"none":"underline"};
|
|
275
320
|
}
|
|
276
|
-
`,
|
|
277
|
-
transform-origin: left bottom;
|
|
278
|
-
overflow: hidden;
|
|
279
|
-
position: absolute;
|
|
280
|
-
display: flex;
|
|
281
|
-
flex-direction: row;
|
|
282
|
-
align-items: center;
|
|
283
|
-
min-width: 40%;
|
|
284
|
-
max-width: calc(100% - 24px);
|
|
285
|
-
width: fit-content;
|
|
286
|
-
bottom: 24px;
|
|
287
|
-
left: 24px;
|
|
288
|
-
right: 24px;
|
|
289
|
-
background: ${e=>{var t;return"success"===e.$type?Le.status.color.success:"error"===e.$type?Le.status.color.error:null===(t=e.style)||void 0===t?void 0:t.background}};
|
|
290
|
-
box-shadow: 2px 0px 20px rgba(0, 0, 0, 0.09), 0px 4px 8px rgba(0, 0, 0, 0.1);
|
|
291
|
-
border-radius: 4px;
|
|
292
|
-
z-index: 100;
|
|
293
|
-
animation: ${e=>e.$visible?l`
|
|
294
|
-
${mt} 0.3s ease-out forwards
|
|
295
|
-
`:l`
|
|
296
|
-
${ft} 0.3s ease-in forwards
|
|
297
|
-
`};
|
|
298
|
-
`,gt=r.div`
|
|
299
|
-
display: flex;
|
|
300
|
-
flex-direction: row;
|
|
301
|
-
align-items: center;
|
|
302
|
-
margin: 16px;
|
|
303
|
-
`,mt=a`
|
|
304
|
-
from {
|
|
305
|
-
opacity: 0;
|
|
306
|
-
transform: scale(0, 0)
|
|
307
|
-
}
|
|
308
|
-
to {
|
|
309
|
-
opacity: 1;
|
|
310
|
-
transform: scale(1, 1);
|
|
311
|
-
}
|
|
312
|
-
`,ft=a`
|
|
313
|
-
from {
|
|
314
|
-
opacity: 1;
|
|
315
|
-
transform: scale(1, 1);
|
|
316
|
-
}
|
|
317
|
-
to {
|
|
318
|
-
opacity: 0;
|
|
319
|
-
transform: scale(0, 0);
|
|
320
|
-
}
|
|
321
|
-
`,yt=t=>{var{type:n="success",text:r,isVisible:l=!1}=t,a=e(t,["type","text","isVisible"]);const[s,d]=c(!1),[h,u]=c(!1);return p(()=>{d(l);const e=setTimeout(()=>{a.onClose&&a.onClose(),d(!1)},a.closeAfter?a.closeAfter:3e3);return()=>clearTimeout(e)},[l]),p(()=>{l&&u(!0)},[s]),h?i(xt,Object.assign({$type:n,$text:r,$visible:s},a,{role:"feedback",children:o(gt,{children:["success"===n?i(v,{style:{marginRight:12},color:"white",height:24,width:24}):"error"===n?i(w,{style:{marginRight:12},color:"white",height:24,width:24}):a.icon,i(Ne,{type:"p",style:{display:"flex",flex:1,color:"white"},children:r}),a.showClose&&i(ut,{style:{position:"absolute",top:0,right:0},design:"image",icon:i(w,{height:18,width:18,color:"white"}),onClick:()=>{a.onClose&&a.onClose(),d(!1)}})]})})):null},bt=r.input`
|
|
321
|
+
`,Mt=t=>{var{icon:o,iconPosition:n,loading:r,size:l}=t,a=e(t,["icon","iconPosition","loading","size"]);return i(Ot,Object.assign({role:"button",$loading:r,$size:l,disabled:a.disabled},a,{onClick:e=>a.onClick&&!r&&!a.disabled&&a.onClick(e),children:["right"!==n?o:void 0,a.children,"right"===n?o:void 0]}))},Bt=t=>{var{design:i,onSuccess:n}=t,r=e(t,["design","onSuccess"]);return"secondary"===i?o(kt,Object.assign({onSuccess:n},r)):"text"===i?o(Ft,Object.assign({},r)):"image"===i?o(jt,Object.assign({},r)):"call-to-action"===i?o(Mt,Object.assign({},r)):o(wt,Object.assign({onSuccess:n},r))},Et=r.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: ${c.text.neutralHard};
|
|
329
329
|
width: 100%;
|
|
330
330
|
cursor: inherit;
|
|
331
331
|
&::placeholder {
|
|
332
|
-
color: ${
|
|
332
|
+
color: ${c.text.neutralMedium};
|
|
333
333
|
}
|
|
334
|
-
`,
|
|
334
|
+
`,Ht=f((e,t)=>o(Et,Object.assign({role:"input",ref:t},e))),At=a`
|
|
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 i,jsxs as o,Fragment
|
|
|
342
342
|
height: 20px;
|
|
343
343
|
transform: translateY(0);
|
|
344
344
|
}
|
|
345
|
-
`,
|
|
345
|
+
`,Pt=r.div``,Tt=r.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 i,jsxs as o,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 "+c.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?c.surface.redSoft:c.surface.neutralSoft};
|
|
358
358
|
opacity: ${e=>e.$disabled?.48:1};
|
|
359
|
-
`,
|
|
359
|
+
`,Vt=r.div`
|
|
360
360
|
margin: 2px 8px 0px;
|
|
361
361
|
display: flex;
|
|
362
|
-
color: ${
|
|
363
|
-
animation-name: ${e=>e.$error?
|
|
362
|
+
color: ${c.text.red};
|
|
363
|
+
animation-name: ${e=>e.$error?At:"none"};
|
|
364
364
|
animation-duration: 0.25s;
|
|
365
|
-
`,
|
|
365
|
+
`,It=r.div`
|
|
366
366
|
display: flex;
|
|
367
367
|
flex: 1;
|
|
368
368
|
flex-direction: column;
|
|
369
|
-
`,
|
|
369
|
+
`,Zt=f((t,n)=>{const{LeftContent:r,design:l,error:a,containerStyle:d}=t,s=e(t,["LeftContent","design","error","containerStyle"]),[p,g]=u(void 0),[f,x]=u(!1);h(()=>{g(t.value)},[t.value]);return i(Pt,{style:t.containerStyle,children:[i(Tt,{$error:!!t.error,style:t.style,$focus:f,$disabled:!!t.disabled,children:[r,o(It,{children:o(Ht,Object.assign({},s,{ref:n,value:p,onChange:e=>{g(e.target.value),t.onChange&&t.onChange(e)},onFocus:e=>{x(!0),t.onFocus&&t.onFocus(e)},onBlur:e=>{x(!1),t.onBlur&&t.onBlur(e)}}))})]}),a&&o(Vt,{role:"error",$error:!!t.error,children:o($,{type:"p",weight:"medium",style:{color:c.text.red,fontSize:14,lineHeight:"18px"},children:a})})]})}),Rt=a`
|
|
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 i,jsxs as o,Fragment
|
|
|
377
377
|
height: 20px;
|
|
378
378
|
transform: translateY(0);
|
|
379
379
|
}
|
|
380
|
-
`,
|
|
380
|
+
`,Nt=r.div``,Wt=r.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 i,jsxs as o,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 "+c.border.neutralMedium:e.$error?"1px "+c.text.red:"1px "+c.border.neutralSoft};
|
|
390
390
|
padding: 0px 16px;
|
|
391
|
-
background-color: ${e=>e.$disabled?
|
|
391
|
+
background-color: ${e=>e.$disabled?c.border.neutralSoft:"white"};
|
|
392
392
|
cursor: ${e=>e.$disabled?"default":"text"};
|
|
393
393
|
opacity: ${e=>e.$disabled?.4:1};
|
|
394
|
-
`,
|
|
394
|
+
`,Yt=r.div`
|
|
395
395
|
margin: 0px 8px;
|
|
396
396
|
display: flex;
|
|
397
|
-
animation-name: ${e=>e.$error?
|
|
397
|
+
animation-name: ${e=>e.$error?Rt:"none"};
|
|
398
398
|
animation-duration: 0.25s;
|
|
399
|
-
`,
|
|
399
|
+
`,Ut=r.div`
|
|
400
400
|
position: relative;
|
|
401
401
|
display: flex;
|
|
402
402
|
flex: 1;
|
|
403
403
|
flex-direction: column;
|
|
404
|
-
`,
|
|
404
|
+
`,qt=r($)`
|
|
405
405
|
position: absolute;
|
|
406
406
|
top: ${e=>e.$focus?"-2px":"6px"};
|
|
407
407
|
left: 0px;
|
|
408
|
-
color: ${
|
|
408
|
+
color: ${c.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
|
+
`,Gt=f((t,n)=>{var r,l,a,d;const s=x(null),[p,g]=u(!1),[f,y]=u(!1),{LeftContent:b,containerStyle:v,error:w,design:C}=t,k=e(t,["LeftContent","containerStyle","error","design"]);m(n,()=>s.current),h(()=>{y(!(!t.defaultValue&&!t.value))},[t.defaultValue,t.value]);return i(Nt,{style:v,children:[i(Wt,{$error:!!w,style:t.style,$focus:p,$disabled:!!t.disabled,onClick:()=>{var e;null===(e=s.current)||void 0===e||e.focus()},children:[b,i(Ut,{children:[o(qt,{role:"placeholder",type:"p",$focus:!!(p||f&&(null===(r=s.current)||void 0===r?void 0:r.value)||(null===(l=s.current)||void 0===l?void 0:l.value)),$error:!!w,children:t.placeholder}),o(Ht,Object.assign({ref:s},k,{placeholder:"",style:Object.assign({opacity:p||f&&(null===(a=s.current)||void 0===a?void 0:a.value)||(null===(d=s.current)||void 0===d?void 0:d.value)?"1":"0",marginTop:14},t.style),onFocus:e=>{g(!0),t.onFocus&&t.onFocus(e)},onBlur:e=>{g(!1),t.onBlur&&t.onBlur(e)}}))]})]}),w&&o(Yt,{role:"error",$error:!!t.error,children:o($,{type:"p",weight:"medium",style:{color:c.text.red,marginTop:4,fontSize:13,lineHeight:"18px"},children:w})})]})}),Jt=a`
|
|
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 i,jsxs as o,Fragment
|
|
|
419
419
|
height: 20px;
|
|
420
420
|
transform: translateY(0);
|
|
421
421
|
}
|
|
422
|
-
`,
|
|
422
|
+
`,Kt=r.div``,Qt=r.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 i,jsxs as o,Fragment
|
|
|
429
429
|
min-height: 34px;
|
|
430
430
|
outline: none;
|
|
431
431
|
border-bottom: 1px solid
|
|
432
|
-
${e=>e.$focus?
|
|
432
|
+
${e=>e.$focus?c.border.neutralHard:c.border.neutralMedium};
|
|
433
433
|
opacity: ${e=>e.$disabled?.5:1};
|
|
434
|
-
`,
|
|
435
|
-
animation-name: ${e=>e.$error?
|
|
434
|
+
`,Xt=r.div`
|
|
435
|
+
animation-name: ${e=>e.$error?Jt:"none"};
|
|
436
436
|
animation-duration: 0.25s;
|
|
437
437
|
margin: 0px;
|
|
438
|
-
`,
|
|
438
|
+
`,eo=r.div`
|
|
439
439
|
display: flex;
|
|
440
440
|
flex: 1;
|
|
441
441
|
flex-direction: column;
|
|
442
|
-
`,
|
|
442
|
+
`,to=f((t,n)=>{const{LeftContent:r,design:l,error:a,containerStyle:d}=t,s=e(t,["LeftContent","design","error","containerStyle"]),p=x(null),[g,f]=u(void 0),[y,b]=u(!1);m(n,()=>p.current),h(()=>{f(t.value)},[t.value]);return i(Kt,{style:t.containerStyle,children:[i(Qt,{$error:!!t.error,style:t.style,$focus:y,$disabled:!!t.disabled,children:[r,o(eo,{children:o(Ht,Object.assign({ref:p},s,{value:g,onChange:e=>{f(e.target.value),t.onChange&&t.onChange(e)},onFocus:e=>{b(!0),t.onFocus&&t.onFocus(e)},onBlur:e=>{b(!1),t.onBlur&&t.onBlur(e)}}))})]}),a&&o(Xt,{role:"error",$error:!!t.error,children:o($,{type:"p",weight:"medium",style:{color:c.text.red,marginTop:4,fontSize:13,lineHeight:"18px"},children:a})})]})}),oo=f((e,t)=>"primary"===e.design?o(Zt,Object.assign({},e,{ref:t})):"secondary"===e.design?o(Gt,Object.assign({},e,{ref:t})):"third"===e.design?o(to,Object.assign({},e,{ref:t})):o(Gt,Object.assign({},e,{design:"secondary",ref:t}))),io=a`
|
|
443
443
|
from {
|
|
444
444
|
opacity: 0;
|
|
445
445
|
height: 0;
|
|
@@ -450,91 +450,56 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
450
450
|
height: 20px;
|
|
451
451
|
transform: translateY(0);
|
|
452
452
|
}
|
|
453
|
-
`,
|
|
453
|
+
`,no=r.div`
|
|
454
454
|
display: flex;
|
|
455
455
|
flex-direction: column;
|
|
456
456
|
gap: 8px;
|
|
457
|
-
`,
|
|
457
|
+
`,ro=r.div`
|
|
458
458
|
display: flex;
|
|
459
459
|
flex-direction: row;
|
|
460
460
|
gap: 8px;
|
|
461
|
-
`,
|
|
461
|
+
`,lo=r.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: ${c.text.red};
|
|
469
|
+
animation-name: ${e=>e.$error?io:"none"};
|
|
470
470
|
animation-duration: 0.25s;
|
|
471
|
-
`,
|
|
472
|
-
position: relative;
|
|
473
|
-
`,Ut=r.div`
|
|
474
|
-
position: absolute;
|
|
475
|
-
display: flex;
|
|
476
|
-
flex-direction: column;
|
|
477
|
-
top: ${e=>"bottom-left"===e.$position||"bottom-right"===e.$position?"44px":"unset"};
|
|
478
|
-
bottom: ${e=>"top-left"===e.$position||"top-right"===e.$position?"44px":"unset"};
|
|
479
|
-
right: ${e=>"bottom-left"===e.$position||"top-left"===e.$position?"8px":"unset"};
|
|
480
|
-
left: ${e=>"bottom-right"===e.$position||"top-right"===e.$position?"8px":"unset"};
|
|
481
|
-
padding: ${e=>e.$padding?"16px":" 0px"};
|
|
482
|
-
border-radius: 12px;
|
|
483
|
-
width: max-content;
|
|
484
|
-
background-color: white;
|
|
485
|
-
box-shadow: 6px 6px 10px 1px rgba(0, 0, 0, 0.1);
|
|
486
|
-
z-index: 1000;
|
|
487
|
-
border: 1px solid ${Le.line.soft};
|
|
488
|
-
overflow: hidden;
|
|
489
|
-
opacity: ${e=>e.$show?1:0};
|
|
490
|
-
transform: ${e=>e.$show?"scale(1)":"scale(0)"};
|
|
491
|
-
transform-origin: ${e=>"bottom-right"===e.$position||"top-right"===e.$position?"left":"right"} ${e=>"top-right"===e.$position||"top-left"===e.$position?"bottom":"top"};
|
|
492
|
-
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
493
|
-
font-family: 'Poppins';
|
|
494
|
-
color: ${Le.text.full};
|
|
495
|
-
`,qt=r.div`
|
|
496
|
-
cursor: pointer;
|
|
497
|
-
`,Jt=r.div`
|
|
498
|
-
display: flex;
|
|
499
|
-
align-items: center;
|
|
500
|
-
padding: 12px 16px;
|
|
501
|
-
gap: 12px;
|
|
502
|
-
cursor: pointer;
|
|
503
|
-
&:hover{
|
|
504
|
-
background-color: ${Le.status.neutral.hover};
|
|
505
|
-
}
|
|
506
|
-
`,Kt=u((e,t)=>{const[n,r]=c(!1);g(t,()=>({close(){r(!1)}})),p(()=>(document.addEventListener("mousedown",t=>{const i=document.getElementById(e.id);null!==i&&(i.contains(t.target)||n&&l(t))}),document.removeEventListener("mousedown",l)));const l=t=>{t.stopPropagation(),n?(r(!1),e.onChange&&e.onChange(!1)):(r(!0),e.onChange&&e.onChange(!0))};return o(Yt,{id:e.id,role:"menu",style:e.style,children:[e.Icon?i(qt,{onClick:l,children:e.Icon}):i(ut,{style:{backgroundColor:n?Le.status.neutral.active:void 0},design:"image",icon:e.icon?e.icon:i($,{}),onClick:l}),o(Ut,{$padding:!e.options,$position:e.position,style:e.menuStyle,$show:n,children:[e.children,e.options&&e.options.map((t,n)=>{var l;return o(Jt,{style:{borderBottom:n+1===(null===(l=e.options)||void 0===l?void 0:l.length)?"none":"1px solid "+Le.line.soft},onClick:i=>((t,i)=>{t.stopPropagation(),r(!1),e.onClick&&e.onClick(i)})(i,t),children:[t.icon,i(Ne,{type:"p",style:{color:t.labelColor},children:t.label})]},"action"+n)})]})]})}),Qt=r.div`
|
|
471
|
+
`,ao=t=>{var{error:n,onChange:r,containerStyle:l}=t,a=e(t,["error","onChange","containerStyle"]);const d=x(null),s=x(null),p=x(null),g=(()=>{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:""}})(),[f,m]=u(g.day),[y,b]=u(g.month),[v,w]=u(g.year),[C,k]=u({day:g.day||void 0,month:g.month||void 0,year:g.year||void 0});h(()=>{if(a.defaultValue&&"string"==typeof a.defaultValue){const[e,t,o]=a.defaultValue.split("-");m(o||""),b(t||""),w(e||""),k({day:o||void 0,month:t||void 0,year:e||void 0})}},[a.defaultValue]);const[L,F]=u(void 0);h(()=>{F(n)},[n]);const S=e=>{if(F(void 0),k(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=oe(t,"YYYY-MM-DD",!0);if(o.isValid()){const e=o.toDate();r&&r(e)}else F("Fecha no válida")}};return i(no,{children:[i(ro,{children:[o(oo,Object.assign({ref:d,value:f,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,"");m(o),2===o.length&&(null===(t=s.current)||void 0===t||t.focus()),S(Object.assign(Object.assign({},C),{day:o}))}})),o(oo,Object.assign({ref:s,value:y,containerStyle:Object.assign({flex:1},l),inputMode:"numeric",pattern:"[0-9]*"},a,{placeholder:"Mes",maxLength:2,onChange:e=>{var t,o;const i=e.target.value.replace(/\D/g,"");b(i),0===i.length?null===(t=d.current)||void 0===t||t.focus():2===i.length&&(null===(o=p.current)||void 0===o||o.focus()),S(Object.assign(Object.assign({},C),{month:i}))}})),o(oo,Object.assign({ref:p,value:v,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,"");w(o),0===o.length&&(null===(t=s.current)||void 0===t||t.focus()),S(Object.assign(Object.assign({},C),{year:o}))}}))]}),L&&o(lo,{role:"error",$error:!!L,children:o($,{type:"c1",weight:"medium",style:{color:c.text.red},children:L})})]})},so=r.div`
|
|
507
472
|
display: flex;
|
|
508
473
|
align-items: center;
|
|
509
474
|
height: 48px;
|
|
510
475
|
border-radius: 100px;
|
|
511
476
|
outline: none;
|
|
512
477
|
box-shadow: 0 0 0
|
|
513
|
-
${e=>e.$focus?"2px "+
|
|
478
|
+
${e=>e.$focus?"2px "+c.border.neutralMedium:"1px "+c.border.neutralSoft};
|
|
514
479
|
padding: 0px 20px 0px ${e=>e.$options?"10px":"20px"};
|
|
515
|
-
background-color: ${e=>e.$loading?
|
|
516
|
-
`,
|
|
480
|
+
background-color: ${e=>e.$loading?c.surface.neutralSoft:"white"};
|
|
481
|
+
`,co=r.input`
|
|
517
482
|
display: flex;
|
|
518
483
|
flex: 1;
|
|
519
484
|
font-family: "Poppins";
|
|
520
485
|
font-size: 14px;
|
|
521
486
|
border: none;
|
|
522
|
-
color: ${
|
|
487
|
+
color: ${c.text.neutralHard};
|
|
523
488
|
background-color: transparent;
|
|
524
489
|
&::placeholder {
|
|
525
|
-
color: ${e=>(e.$loading,
|
|
490
|
+
color: ${e=>(e.$loading,c.text.neutralHard)};
|
|
526
491
|
}
|
|
527
492
|
&:focus {
|
|
528
493
|
outline: none;
|
|
529
494
|
}
|
|
530
|
-
`,
|
|
495
|
+
`,po=r.canvas`
|
|
531
496
|
border: 1px solid #ddd;
|
|
532
497
|
display: ${e=>e.$isRecording?"block":"none"};
|
|
533
498
|
height: 100%;
|
|
534
499
|
width: 100%;
|
|
535
|
-
`,
|
|
500
|
+
`,uo=r=>{const l=x(null),[a,d]=u(""),[s,p]=u(!1),h=x(null),g=x(null),f=x(null),[m,y]=u(!1),[b,v]=u(null),[w,$]=u(null),{style:C,value:k,defaultValue:L,onOptionClick:z,options:j}=r,O=e(r,["style","value","defaultValue","onOptionClick","options"]),M=()=>{a&&(r.onSend&&r.onSend({text:a}),d(""))},B=e=>{b&&(b.ondataavailable=t=>{t.data.size>0&&"send"===e&&E([t.data])},b.stop(),v(null)),w&&(w.getTracks().forEach(e=>e.stop()),$(null)),y(!1),console.log("Grabación cancelada.")},E=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"}),o=new FileReader;o.onloadend=()=>{var e;const t=null===(e=o.result)||void 0===e?void 0:e.toString().split(",")[1];t&&r.onSend&&r.onSend({media:{base64:t,contentType:"audio/wav"}})},o.readAsDataURL(t)},H=()=>{if(!g.current||!h.current)return;const e=g.current,t=e.getContext("2d"),o=h.current;if(!t)return;const i=o.frequencyBinCount,n=new Uint8Array(i),r=()=>{o.getByteTimeDomainData(n),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 l=1*e.width/i;let a=0;for(let o=0;o<i;o++){const i=n[o]/128*e.height/2;0===o?t.moveTo(a,i):t.lineTo(a,i),a+=l}t.lineTo(e.width,e.height/2),t.stroke(),f.current=requestAnimationFrame(r)};r()};return i(so,{style:C,$loading:r.loading||r.disabled,$focus:s,$options:j,children:[m?o(ne,{icon:o(F,{height:20,width:20,onClick:()=>{B("delete")}})}):r.options&&o(re,{id:"add-menu",position:"top-right",options:j,icon:o(S,{color:c.text.primary}),onClick:e=>{z&&z(e.id)}}),o(po,{ref:g,$isRecording:m}),!m&&o(co,Object.assign({},O,{value:a,ref:l,disabled:r.loading||r.disabled,$loading:r.loading||r.disabled,onChange:e=>{d(e.target.value),r.onChange&&r.onChange(e)},onKeyDown:e=>{"Enter"===e.key&&M(),r.onKeyDown&&r.onKeyDown(e)},onFocus:e=>{p(!0),r.onFocus&&r.onFocus(e)},onBlur:e=>{p(!1),r.onBlur&&r.onBlur(e)}})),r.loading?o(X,{style:{height:48,width:48},src:ie,loop:!0,autoplay:!0}):o(n,{children:o(ne,{disabled:r.disabled,icon:o(a||m?_:D,{height:20,width:20,color:c.text.primary}),onClick:()=>{a?M():m?B("send"):t(void 0,void 0,void 0,function*(){if(!m)try{const e=yield navigator.mediaDevices.getUserMedia({audio:!0}),t=new MediaRecorder(e);t.onstop=()=>{y(!1)},t.start(),v(t),$(e),y(!0);const o=new AudioContext,i=o.createMediaStreamSource(e),n=o.createAnalyser();n.fftSize=512,i.connect(n),h.current=n,H()}catch(e){console.error("Error al iniciar la grabación:",e)}})}})})]})},ho=r.div`
|
|
536
501
|
width: fit-content;
|
|
537
|
-
`,
|
|
502
|
+
`,go=r.div`
|
|
538
503
|
position: relative;
|
|
539
504
|
display: flex;
|
|
540
505
|
align-items: center;
|
|
@@ -544,19 +509,19 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
544
509
|
min-height: 56px;
|
|
545
510
|
outline: none;
|
|
546
511
|
box-shadow: 0 0 0
|
|
547
|
-
${e=>e.$focus?"2px "+
|
|
512
|
+
${e=>e.$focus?"2px "+c.border.neutralMedium:e.$error?"1px "+c.text.red:"1px "+c.border.neutralSoft};
|
|
548
513
|
background-color: white;
|
|
549
514
|
opacity: ${e=>e.$loading?.5:1};
|
|
550
515
|
cursor: ${e=>e.$loading?"default":"text"};
|
|
551
|
-
`,
|
|
516
|
+
`,fo=r.div`
|
|
552
517
|
margin: 0px 12px;
|
|
553
518
|
font-style: normal;
|
|
554
519
|
font-weight: 500;
|
|
555
520
|
font-size: 14px;
|
|
556
521
|
line-height: 12px;
|
|
557
522
|
display: flex;
|
|
558
|
-
color: ${
|
|
559
|
-
`,
|
|
523
|
+
color: ${c.text.red};
|
|
524
|
+
`,xo=r.input`
|
|
560
525
|
display: flex;
|
|
561
526
|
font-family: "DM Mono";
|
|
562
527
|
font-size: 24px;
|
|
@@ -566,19 +531,19 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
566
531
|
height: 100%;
|
|
567
532
|
padding: 0px 16px;
|
|
568
533
|
background-color: transparent;
|
|
569
|
-
color: ${
|
|
534
|
+
color: ${c.text.neutralHard};
|
|
570
535
|
cursor: inherit;
|
|
571
536
|
appearance: textfield;
|
|
572
537
|
letter-spacing: 12px;
|
|
573
538
|
&::placeholder {
|
|
574
|
-
color: ${
|
|
539
|
+
color: ${c.text.neutralSoft};
|
|
575
540
|
}
|
|
576
541
|
&::-webkit-outer-spin-button,
|
|
577
542
|
&::-webkit-inner-spin-button {
|
|
578
543
|
-webkit-appearance: none;
|
|
579
544
|
margin: 0;
|
|
580
545
|
}
|
|
581
|
-
`,
|
|
546
|
+
`,mo=e=>{const t=x(null),[n,r]=u(!1),[l,a]=u(void 0);return i(ho,{style:e.containerStyle,children:[o(go,{$error:!!e.error,style:e.style,$focus:n,$loading:e.loading,onClick:()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},children:o(xo,{role:"input",type:"number",value:l,placeholder:"------",disabled:e.loading,autoFocus:e.autoFocus,onFocus:()=>r(!0),onBlur:()=>r(!1),onChange:o=>{var i;o.target.value.length<=6&&(a(o.target.value),6===o.target.value.length&&(null===(i=t.current)||void 0===i||i.blur(),e.onChange&&e.onChange(o.target.value)))}})}),e.error&&o(fo,{role:"error",children:o($,{type:"p",style:{color:c.text.red,marginTop:8,fontSize:14,lineHeight:"18px"},children:e.error})})]})};function yo(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}yo("\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 bo=r.div`
|
|
582
547
|
display: flex;
|
|
583
548
|
align-items: center;
|
|
584
549
|
border-radius: 12px;
|
|
@@ -586,54 +551,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
586
551
|
height: 56px;
|
|
587
552
|
outline: none;
|
|
588
553
|
box-shadow: 0 0 0
|
|
589
|
-
${e=>e.$focus?"2px "+
|
|
554
|
+
${e=>e.$focus?"2px "+c.border.neutralMedium:"1px "+c.border.neutralSoft};
|
|
590
555
|
padding: 0px 6px;
|
|
591
|
-
`,
|
|
592
|
-
position: sticky;
|
|
593
|
-
display: flex;
|
|
594
|
-
flex-direction: column;
|
|
595
|
-
padding: 10px 24px 16px;
|
|
596
|
-
top: 0px;
|
|
597
|
-
z-index: 100;
|
|
598
|
-
`,pi=r.div`
|
|
599
|
-
padding: 0px 24px;
|
|
600
|
-
position: relative;
|
|
601
|
-
`,hi=r.div`
|
|
602
|
-
position: sticky;
|
|
603
|
-
display: flex;
|
|
604
|
-
flex: 1;
|
|
605
|
-
bottom: 0;
|
|
606
|
-
align-items: center;
|
|
607
|
-
justify-content: flex-end;
|
|
608
|
-
padding: 16px 24px;
|
|
609
|
-
background-color: white;
|
|
610
|
-
${s.lessThan("small")`
|
|
611
|
-
padding: 8px 16px;
|
|
612
|
-
`}
|
|
613
|
-
`,ui=r.div`
|
|
614
|
-
background-color: ${De.surface.redSoft};
|
|
615
|
-
padding: 12px 24px;
|
|
616
|
-
margin-top: 24px;
|
|
617
|
-
`,xi=r.div`
|
|
618
|
-
display: flex;
|
|
619
|
-
justify-content: flex-end;
|
|
620
|
-
padding: 10px 10px 0px 24px;
|
|
621
|
-
`,gi=u((e,t)=>{var n;const[r,l]=c(e.isVisible),[a,s]=c(!1),[d,h]=c(!1);g(t,()=>({close(){x()}})),p(()=>{const e=window.matchMedia("(min-width: 768px)");h(e.matches);const t=e=>{h(e.matches)};return e.addListener(t),()=>e.removeListener(t)},[]),p(()=>{e.isVisible?(l(!0),u(100).then(()=>{s(!0)})):(s(!1),u(500).then(()=>{l(!1)}))},[e.isVisible]);const u=e=>new Promise(t=>setTimeout(t,e)),x=()=>{s(!1),u(300).then(()=>{l(!1),e.onClose&&e.onClose()})};return o(ne,{role:"modal",isOpen:r,onRequestClose:x,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?d?"400px":"100%":486,maxWidth:"full-screen"===e.type?"100%":"lateral"===e.type?d?"400px":"100%":`calc(100% - ${d?96:48}px)`,height:"lateral"===e.type?"100%":void 0,maxHeight:"lateral"===e.type?"100%":`calc(100% - ${d?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&&i(xi,{children:i(ut,{style:{backgroundColor:"white",borderRadius:50},icon:i(w,{height:20,width:20,color:De.text.neutralHard}),design:"image",onClick:x})}),!e.hideHeader&&(e.title||e.subtitle)&&o(ci,{style:Object.assign({paddingTop:e.hideClose?16:4},e.titleStyle),children:[e.title&&i(Ne,{type:"h3",weight:"semibold",children:e.title}),e.subtitle&&i(Ne,{type:"p2",style:{marginTop:8},children:e.subtitle}),e.Header]}),i(pi,{style:e.contentStyle,children:e.children}),e.error&&i(ui,{children:i(Ne,{type:"p",style:{color:De.text.red,fontSize:12},children:e.error})}),e.buttonProps&&o(hi,{style:e.footerStyle,children:[e.Bottom,e.buttonProps&&i(ut,Object.assign({size:"small"},e.buttonProps,{children:e.buttonProps.children?e.buttonProps.children:"Guardar"}))]})]})}),mi=r.div`
|
|
622
|
-
display: flex;
|
|
623
|
-
flex-direction: row;
|
|
624
|
-
margin-bottom: 8px;
|
|
625
|
-
`,fi=r.div`
|
|
626
|
-
display: flex;
|
|
627
|
-
width: 112px;
|
|
628
|
-
align-items: center;
|
|
629
|
-
`,yi=r.div`
|
|
630
|
-
display: flex;
|
|
631
|
-
flex: 1;
|
|
632
|
-
flex-direction: column;
|
|
633
|
-
`,bi=r.div`
|
|
634
|
-
content: none;
|
|
635
|
-
margin-bottom: 24px;
|
|
636
|
-
`,ki=r.iframe``,vi=u((e,t)=>"form"===e.type?i(gi,Object.assign({ref:t},e,{style:Object.assign({width:"80%",maxWidth:600},e.style),children:e.options&&e.options.map((e,t)=>e.hidden?null:"separator"===e.id?i(bi,{},"separator-"+t):o(mi,{children:[i(fi,{children:i(Ne,{type:"c1",weight:"medium",children:e.title})}),i(yi,{children:e.Data})]},"option-"+e.id))})):"web"===e.type?i(gi,Object.assign({ref:t},e,{style:Object.assign(Object.assign({},e.style),{height:"100%"}),contentStyle:Object.assign(Object.assign({},e.contentStyle),{height:"100%",padding:0}),children:i(ki,{id:"web-iframe",src:e.url,width:"100%",height:"100%",style:{border:"none"}})})):i(gi,Object.assign({ref:t},e))),wi=r.div``,$i=r.div`
|
|
556
|
+
`,vo=e=>{const[t,i]=u(e.startDate),[n,r]=u(e.endDate),[l,a]=u(null);return h(()=>{i(e.startDate)},[e.startDate]),h(()=>{r(e.endDate)},[e.endDate]),o(bo,{style:e.style,$focus:!!l,children:o(le,{startDateId:"startDate",endDateId:"endDate",startDate:t,endDate:n,noBorder:!0,showClearDates:!0,isOutsideRange:e.isOutsideRange,startDatePlaceholderText:"Fecha inicio",endDatePlaceholderText:"Fecha final",hideKeyboardShortcutsPanel:!0,onDatesChange:({startDate:t,endDate:o})=>{i(t),r(o),e.onChange({startDate:t,endDate:o})},focusedInput:l,onFocusChange:e=>a(e)})})};yo(".ReactCrop__child-wrapper {\n height: -webkit-fill-available;\n}");const wo=r.div``,$o=r.div`
|
|
637
557
|
position: absolute;
|
|
638
558
|
top: 0;
|
|
639
559
|
bottom: 0;
|
|
@@ -642,7 +562,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
642
562
|
overflow: hidden;
|
|
643
563
|
z-index: 10000;
|
|
644
564
|
background-color: black;
|
|
645
|
-
`,
|
|
565
|
+
`,Co=r.div`
|
|
646
566
|
display: flex;
|
|
647
567
|
width: -webkit-fill-available;
|
|
648
568
|
width: -moz-available;
|
|
@@ -651,8 +571,8 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
651
571
|
justify-content: flex-end;
|
|
652
572
|
height: 50px;
|
|
653
573
|
background-color: white;
|
|
654
|
-
border-bottom: 1px solid ${
|
|
655
|
-
`,
|
|
574
|
+
border-bottom: 1px solid ${c.border.neutralSoft};
|
|
575
|
+
`,ko=r.canvas`
|
|
656
576
|
position: absolute;
|
|
657
577
|
bottom: 12px;
|
|
658
578
|
right: 12px;
|
|
@@ -660,20 +580,20 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
660
580
|
width: 150px;
|
|
661
581
|
height: 150px;
|
|
662
582
|
border-radius: 6px;
|
|
663
|
-
`,
|
|
583
|
+
`,Lo=r.div`
|
|
664
584
|
display: flex;
|
|
665
585
|
flex-direction: row;
|
|
666
586
|
cursor: pointer;
|
|
667
587
|
gap: 12px;
|
|
668
588
|
padding: 12px 24px;
|
|
669
|
-
`,
|
|
589
|
+
`,Fo=r.div`
|
|
670
590
|
display: flex;
|
|
671
591
|
flex-direction: row;
|
|
672
|
-
`,
|
|
592
|
+
`,So=r.div`
|
|
673
593
|
height: 48px;
|
|
674
594
|
width: 48px;
|
|
675
595
|
border-radius: 50%;
|
|
676
|
-
background-color: ${
|
|
596
|
+
background-color: ${c.text.neutralSoft};
|
|
677
597
|
border: 3px solid white;
|
|
678
598
|
cursor: pointer;
|
|
679
599
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
|
|
@@ -685,14 +605,14 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
685
605
|
&:active {
|
|
686
606
|
transform: scale(0.9);
|
|
687
607
|
}
|
|
688
|
-
`,
|
|
608
|
+
`,_o=r.div`
|
|
689
609
|
display: flex;
|
|
690
610
|
justify-content: flex-end;
|
|
691
611
|
padding: 0 16px;
|
|
692
|
-
`;const
|
|
612
|
+
`;const Do=e=>{const r=window.innerWidth<=768,l=x(null),a=x(null),d=x(null),s=x(null),[c,p]=u(""),[g,f]=u(),[m,b]=u(),[v,w]=u(!1),[C,k]=u(!1),[F,S]=u(!1);h(()=>{const e=setTimeout(()=>{_.apply([m])},100);return()=>clearTimeout(e)},[m]);const _=()=>t(void 0,void 0,void 0,function*(){const e=s.current,t=d.current,o=m;if((null==o?void 0:o.width)&&(null==o?void 0:o.height)&&e&&t){const i=t.getContext("2d");if(!i)throw new Error("No 2d context");const n=e.naturalWidth/e.width,r=e.naturalHeight/e.height,l=window.devicePixelRatio;t.width=Math.floor(o.width*n*l),t.height=Math.floor(o.height*r*l),i.scale(l,l),i.imageSmoothingQuality="high";const a=o.x*n,d=o.y*r,s=e.naturalWidth/2,c=e.naturalHeight/2;i.save(),i.translate(-a,-d),i.translate(s,c),i.translate(-s,-c),i.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.naturalWidth,e.naturalHeight),i.restore()}}),D=e=>new Promise((t,o)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=e=>o(e)}),M=o=>{new de(o,{quality:1,maxHeight:e.maxHeight,maxWidth:e.maxWidth,success:o=>t(void 0,void 0,void 0,function*(){p("");const t=yield D(o);e.onChange&&e.onChange(t),w(!1)})})},B=e=>{var t;"camera"===e?S(!0):"library"===e&&(k(!1),null===(t=a.current)||void 0===t||t.click())},E=y(()=>{var t;const o=null===(t=l.current)||void 0===t?void 0:t.getScreenshot();o&&(k(!1),S(!1),p(o),e.hideCrop&&e.onChange&&e.onChange(o))},[l]);return i(wo,{style:e.style,children:[i(he,{isVisible:C,type:r?"full-screen":"default",hideClose:!0,hideHeader:!0,style:{width:r?"100%":400},contentStyle:{padding:"16px 0px",backgroundColor:F?"black":"white"},buttonProps:F?{children:o(Fo,{style:{position:"relative",justifyContent:"center",alignItems:"center",width:"100%",padding:"0 32px"},children:o(So,{onClick:E})}),style:{backgroundColor:"transparent",width:"100%",marginTop:12,marginBottom:12,paddingBottom:"calc(env(safe-area-inset-bottom, 0) + 8px)"}}:void 0,onClose:()=>k(!1),children:[F&&o(Q,{design:"image",icon:o(L,{}),onClick:()=>{S(!1),k(!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}}),F?o(n,{children:o(ue,{ref:l,height:"100%",width:"100%",videoConstraints:{facingMode:"environment"}})}):i(n,{children:[o(_o,{children:o(L,{style:{cursor:"pointer"},onClick:()=>{S(!1),k(!1)}})}),i(Lo,{onClick:()=>B("camera"),children:[o(z,{}),o($,{type:"p",children:"Cámara"})]}),i(Lo,{onClick:()=>B("library"),children:[o(j,{}),o($,{type:"p",children:"Imagen de librería"})]})]})]}),o(Q,{role:"button",onClick:()=>{var t;e.options&&e.options.length>1?k(!0):null===(t=a.current)||void 0===t||t.click()},style:Object.assign({height:32,padding:"0px 12px",fontSize:14,fontWeight:500},e.buttonStyle),icon:e.icon,design:"secondary",children:e.buttonText?e.buttonText:"Subir foto"}),o("input",{name:"image",accept:"image/*",onChange:o=>t(void 0,void 0,void 0,function*(){if(o&&o.target&&o.target.files&&o.target.files[0]){const t=o.target.files[0];if(e.hideCrop){const e=new Blob([t],{type:"image/webp"});M(e)}else{f(void 0);const e=yield D(t);p(e),a.current&&(a.current.value="")}}}),hidden:!0,type:"file",ref:a}),c&&!e.hideCrop&&i($o,{children:[i(Co,{children:[o(Q,{design:"primary",size:"small",loading:v,icon:o(O,{}),onClick:()=>{var e;w(!0),null===(e=d.current)||void 0===e||e.toBlob(e=>{e?M(e):w(!1)},"image/webp")},children:"Recortar"}),o(Q,{style:{marginLeft:12},design:"image",icon:o(L,{}),onClick:()=>{p("")}})]}),o(se,{style:{height:"-webkit-fill-available"},crop:g,onChange:(e,t)=>f(t),onComplete:e=>b(e),aspect:1,children:o("img",{ref:s,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 ce(pe({unit:"%",width:60},o,e,t),e,t)}(t,o,1))}}})}),m&&o(ko,{ref:d,style:e.previewStyle})]})]})},zo=r.div`
|
|
693
613
|
position: relative;
|
|
694
614
|
display: flex;
|
|
695
|
-
`,
|
|
615
|
+
`,jo=r.div`
|
|
696
616
|
position: absolute;
|
|
697
617
|
z-index: 1000;
|
|
698
618
|
background-color: white;
|
|
@@ -703,75 +623,75 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
703
623
|
left: 0px;
|
|
704
624
|
right: 0px;
|
|
705
625
|
padding: 8px;
|
|
706
|
-
`,
|
|
626
|
+
`,Oo=r.div`
|
|
707
627
|
display: flex;
|
|
708
628
|
flex: 1;
|
|
709
629
|
align-items: center;
|
|
710
630
|
cursor: pointer;
|
|
711
631
|
:hover {
|
|
712
|
-
background-color: ${
|
|
632
|
+
background-color: ${c.surface.neutralSoft};
|
|
713
633
|
}
|
|
714
|
-
`,
|
|
634
|
+
`,Mo=r($)`
|
|
715
635
|
display: flex;
|
|
716
636
|
flex: 1;
|
|
717
637
|
text-overflow: ellipsis;
|
|
718
638
|
padding: 8px;
|
|
719
639
|
border-radius: 8px;
|
|
720
|
-
`,
|
|
640
|
+
`,Bo=t=>{var{isLoaded:r,isForm:l,searchTypes:a,searchFields:d,onLocationChange:s}=t;const p=e(t,["isLoaded","isForm","searchTypes","searchFields","onLocationChange"]),{defaultValue:g,value:f,onChange:m}=p,b=e(p,["defaultValue","value","onChange"]),v=x(null),w=x(null),[C,k]=u(()=>void 0!==g?String(g):""),[L,F]=u([]),[S,_]=u(void 0),D=x(!1);h(()=>{void 0!==g&&k(String(g))},[g]),h(()=>{if(r){if("undefined"==typeof google)return;const e=document.createElement("div"),t=new google.maps.Map(e);v.current=new google.maps.places.AutocompleteService,w.current=new google.maps.places.PlacesService(t)}},[r]),h(()=>{r&&!D.current&&void 0!==g&&k(String(g))},[r,g]);const z=y(ge(e=>{v.current&&e&&v.current.getPlacePredictions({input:e,types:a||["address"],language:"es-ES"},e=>{F(e||[])})},500),[]);return i(n,{children:[i(zo,{className:"autocomplete-container",children:[o(oo,Object.assign({},b,{value:C,onChange:e=>{const t=e.target.value;k(t),z(t)},containerStyle:{display:"flex",flex:1,flexDirection:"column"},disabled:!r||b.disabled,placeholder:r?b.placeholder:"Cargando..."})),L.length>0&&o(jo,{className:"custom-list",children:L.map((e,t)=>o(Oo,{className:"custom-list-item",onClick:()=>(e=>{w.current&&w.current.getDetails({placeId:e.place_id,fields:d||["geometry","address_components"]},t=>{if(t&&t.geometry&&t.geometry.location&&t.address_components){F([]),_(void 0);const e=t.address_components.filter(e=>e.types.includes("route")),o=e.length>0?e[0].long_name:void 0,i=t.address_components.filter(e=>e.types.includes("postal_code")),n=i.length>0?i[0].long_name:void 0;if(o&&n){const e=t.address_components.filter(e=>e.types.includes("street_number")),i=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,p=t.address_components.filter(e=>e.types.includes("country")),u=p.length>0?p[0].long_name:void 0,h=p.length>0?p[0].short_name:void 0,g=`${o}${i?" "+i:""}, ${n||""}, ${a}, ${c}, ${u}`,f={address:g,sortAddress:`${a?a+", ":""}${c?c+", ":""}${u}`,route:o,routeNumber:i,location:{lat:t.geometry.location.lat(),lng:t.geometry.location.lng()},country:u,shortCountry:h,city:a,province:c,zipCode:n};s&&s(f),k(l?`${o}${i?" "+i:""}`:g)}else _("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?(F([]),_(void 0),k(e.description),s&&s({location:{lat:t.geometry.location.lat(),lng:t.geometry.location.lng()}})):_("Parece que hubo un error de conexión al obtener la dirección. Prueba de nuevo más tarde.")})})(e),children:o(Mo,{type:"p2",children:e.description})},t))})]}),S&&o($,{type:"c1",style:{color:c.text.red,padding:"0px 4px"},children:S})]})},Eo=r.div``,Ho=r.div`
|
|
721
641
|
display: flex;
|
|
722
642
|
flex-direction: row;
|
|
723
643
|
align-items: center;
|
|
724
644
|
height: 36px;
|
|
725
645
|
border-radius: 4px;
|
|
726
646
|
cursor: pointer;
|
|
727
|
-
`,
|
|
647
|
+
`,Ao=r.div`
|
|
728
648
|
position: absolute;
|
|
729
649
|
top: 64px;
|
|
730
650
|
left: -2px;
|
|
731
651
|
right: -2px;
|
|
732
652
|
z-index: 1000;
|
|
733
|
-
border: 1px solid ${
|
|
653
|
+
border: 1px solid ${d.line.soft};
|
|
734
654
|
background-color: white;
|
|
735
655
|
border-radius: 12px;
|
|
736
656
|
box-shadow: 0px 4px 8px 0px #0000001a;
|
|
737
657
|
max-height: 300px;
|
|
738
658
|
overflow: scroll;
|
|
739
|
-
`,
|
|
659
|
+
`,Po=r.div`
|
|
740
660
|
display: flex;
|
|
741
661
|
flex-direction: row;
|
|
742
662
|
align-items: center;
|
|
743
663
|
padding: 8px 16px;
|
|
744
664
|
cursor: pointer;
|
|
745
665
|
&:hover {
|
|
746
|
-
background-color: ${
|
|
666
|
+
background-color: ${d.background.soft};
|
|
747
667
|
}
|
|
748
|
-
`,
|
|
668
|
+
`,To=r.div`
|
|
749
669
|
display: flex;
|
|
750
670
|
align-items: center;
|
|
751
671
|
justify-content: center;
|
|
752
672
|
height: 24px;
|
|
753
673
|
width: 24px;
|
|
754
674
|
margin-right: 8px;
|
|
755
|
-
`,
|
|
675
|
+
`,Vo=r($)`
|
|
756
676
|
flex: 1;
|
|
757
|
-
color: ${e=>e.color?e.color:
|
|
677
|
+
color: ${e=>e.color?e.color:d.text.full};
|
|
758
678
|
margin-left: 2px;
|
|
759
679
|
margin-top: ${e=>e.$focus?"15px":"0px"};
|
|
760
680
|
transition: margin-top 0.1s ease-out;
|
|
761
681
|
font-size: 14px !important;
|
|
762
|
-
`,
|
|
682
|
+
`,Io=e=>{var t;const r=xe,[l,a]=u(!1),[s,c]=u(void 0),[p,g]=u(e.options);h(()=>{e.options&&(c(Object.assign(Object.assign({},e.options[0]),{flag:r[e.options[0].countryCode]})),g(e.options))},[]),h(()=>(window.addEventListener("mousedown",e=>f(e)),window.removeEventListener("mousedown",()=>{})),[]),h(()=>{e.selectedItem&&c(Object.assign(Object.assign({},e.selectedItem),{flag:r[e.selectedItem.countryCode]}))},[e.selectedItem]);const f=t=>{const o=document.getElementById(e.id);o&&(o.contains(t.target)||a(!1))};return i(Eo,{children:[o(Ho,{role:"select",style:e.style,$showMenu:l,onClick:e=>{if(!e)e=window.event;e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),a(!l)},children:s&&i(n,{children:[o(To,{children:o(s.flag,{height:24,width:24})}),o(l?M:B,{height:20,width:20,color:d.text.high}),o(Vo,{type:"p",$focus:e.focus,color:null===(t=e.style)||void 0===t?void 0:t.color,children:s.prefix})]})}),l&&o(Ao,{role:"menu",id:e.id,style:e.optionStyle,children:p&&p.map((t,n)=>{const l=r[t.countryCode];return i(Po,{role:"country"+n,onClick:o=>((t,o)=>{o||(o=window.event);o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation(),c(Object.assign(Object.assign({},t),{flag:r[t.countryCode]})),a(!1),g(e.options),e.onChange&&e.onChange(t)})(t,o),children:[o(To,{children:o(l,{height:24,width:24})}),i($,{type:"p",style:{fontSize:14,display:"flex",alignItems:"center"},children:[t.esCountry,i("span",{style:{marginLeft:4},children:["(",t.prefix,")"]})]})]},"country"+n)})})]})},Zo=r.div`
|
|
763
683
|
margin-right: 8px;
|
|
764
|
-
`,Ni=t=>{const o=le.PhoneNumberUtil.getInstance(),[n,r]=c(void 0),[l,a]=c({id:"spain",esCountry:"España",enCountry:"Spain",prefix:"+34",countryCode:"ES"}),[s,d]=c(!1),{countryOptions:h,onPhoneChange:u}=t,x=e(t,["countryOptions","onPhoneChange"]);p(()=>{t.defaultValue?r(t.defaultValue):t.value&&r(t.value)},[t.value,t.defaultValue]),p(()=>{if(t.country&&h){const e=h.filter(e=>e.countryCode===t.country);e.length>0&&g(e[0])}},[t.country,h]);const g=e=>{a(e);const i=(n&&"string"==typeof n?n:t.defaultValue&&"string"==typeof t.defaultValue?t.defaultValue:"").replaceAll(/\s/g,""),r=e.prefix+i;u&&u({country:e.prefix,value:i,isValid:r.length>=6&&r.length<18&&o.isValidNumberForRegion(o.parse(r,e.countryCode),e.countryCode)})};return i(Ht,Object.assign({LeftContent:t.countryOptions?i(Ri,{children:i(Zi,{selectedItem:l,onChange:e=>g(e),id:"country",options:t.countryOptions,focus:!(!s&&!n||"secondary"!==t.design)})}):void 0},x,{onChange:e=>{r(e.target.value),t.onChange&&t.onChange(e);const i=e.target.value.replaceAll(/\s/g,""),n=l.prefix+i;u&&u({country:l.prefix,value:i,isValid:n.length>8&&n.length<18&&o.isValidNumberForRegion(o.parse(n,l.countryCode),l.countryCode)})},onFocus:e=>{d(!0),t.onFocus&&t.onFocus(e)},onBlur:e=>{d(!1),t.onBlur&&t.onBlur(e)}}))};var Wi={nm:"Main Scene",ddd:0,h:50,w:50,meta:{g:"@lottiefiles/creator 1.30.0"},layers:[{ty:4,nm:"Dot14",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-21.1987393983936,-21.374364269352988]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[24.000000000000014,13.000000000000007]},r:{a:0,k:-320},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[48],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[30],t:10},{s:[10],t:28.34}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[47],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[29],t:10},{s:[9],t:28.34}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[2],t:10},{s:[0],t:21.66}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.8353,.6392],t:0},{s:[1,.6667,.2784],t:10}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1},{ty:4,nm:"Dot13",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-23.11044356888314,-23.391395812338068]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[26.999999999999993,12]},r:{a:0,k:-306.6},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[45],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[20],t:10},{s:[1],t:37.5}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[44],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[19],t:10},{s:[0],t:37.5}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:10},{s:[0],t:37.5}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.8353,.6392],t:0},{s:[1,.6667,.2784],t:10}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2},{ty:4,nm:"Dot12",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-19.397872320685465,-20.584522084089897]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[33,17]},r:{a:0,k:-271.7},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[48],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[30],t:10},{s:[10],t:28.34}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[47],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[29],t:10},{s:[9],t:28.34}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[2],t:10},{s:[0],t:21.66}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.9176,.9725,.9804],t:0},{s:[0,.6706,.7725],t:10}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3},{ty:4,nm:"Dot11",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-22.713049808185005,-23.379849623359576]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[35.99999999999999,17.999999999999993]},r:{a:0,k:-258.3},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[45],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[20],t:10},{s:[1],t:37.5}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[44],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[19],t:10},{s:[0],t:37.5}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:10},{s:[0],t:37.5}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.9176,.9725,.9804],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.9176,.9725,.9804],t:10},{s:[0,.6706,.7725],t:18.34}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4},{ty:4,nm:"Dot10",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-21.26307544209449,-21.310364209553]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[37,26]},r:{a:0,k:-220.3},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[48],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[30],t:10},{s:[10],t:28.34}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[47],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[29],t:10},{s:[9],t:28.34}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[2],t:10},{s:[0],t:21.66}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.898,.898],t:0},{s:[1,.4667,.2392],t:10}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5},{ty:4,nm:"Dot9",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-22.229578795038613,-22.49101657540558]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[37,28.999999999999986]},r:{a:0,k:-206.9},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[45],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[20],t:10},{s:[1],t:37.5}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[44],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[19],t:10},{s:[0],t:37.5}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:10},{s:[0],t:37.5}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.898,.898],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.898,.898],t:10},{s:[1,.4667,.2392],t:18.34}]}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 2",ix:4,e:{a:0,k:45},o:{a:0,k:0},s:{a:0,k:44},m:1},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6},{ty:4,nm:"Dot8",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-19.79541212747003,-21.404243941415274]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[31,35]},r:{a:0,k:-168.2},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[48],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[30],t:10},{s:[10],t:28.34}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[47],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[29],t:10},{s:[9],t:28.34}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[2],t:10},{s:[0],t:21.66}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.8353,.6392],t:0},{s:[1,.6667,.2784],t:10}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7},{ty:4,nm:"Dot7",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-21.82164927161236,-22.887018658329858]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[28.999999999999993,37]},r:{a:0,k:-154.8},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[45],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[20],t:10},{s:[1],t:37.5}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[44],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[19],t:10},{s:[0],t:37.5}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:10},{s:[0],t:37.5}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.8353,.6392],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.8353,.6392],t:10},{s:[1,.6667,.2784],t:18.34}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8},{ty:4,nm:"Dot6",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-19.92540305447082,-21.42961299503294]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[21,36]},r:{a:0,k:-117.1},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[48],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[30],t:10},{s:[10],t:28.34}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[47],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[29],t:10},{s:[9],t:28.34}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[2],t:10},{s:[0],t:21.66}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.9176,.9725,.9804],t:0},{s:[0,.6706,.7725],t:10}]}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 2",ix:4,e:{a:0,k:30},o:{a:0,k:0},s:{a:0,k:29},m:1},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9},{ty:4,nm:"Dot5",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-22.572933243786906,-23.51515861676333]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[17.999999999999993,35.999999999999986]},r:{a:0,k:-103.7},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[45],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[20],t:10},{s:[1],t:37.5}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[44],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[19],t:10},{s:[0],t:37.5}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:10},{s:[0],t:37.5}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.9176,.9725,.9804],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.9176,.9725,.9804],t:10},{s:[0,.6706,.7725],t:18.34}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10},{ty:4,nm:"Dot4",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-21.413608589302896,-21.30627530058061]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[14.000000000000014,30]},r:{a:0,k:-69.3},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[48],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[30],t:10},{s:[10],t:28.34}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[47],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[29],t:10},{s:[9],t:28.34}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[2],t:10},{s:[0],t:21.66}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.8941,.9725,.9333],t:0},{s:[.0314,.6588,.3569],t:10}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11},{ty:4,nm:"Dot3",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-22.361068996417828,-24.10876590241486]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[12,27]},r:{a:0,k:-55.9},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[45],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[20],t:10},{s:[1],t:37.5}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[44],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[19],t:10},{s:[0],t:37.5}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:10},{s:[0],t:37.5}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.8941,.9725,.9333],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[.8941,.9725,.9333],t:10},{s:[.0314,.6588,.3569],t:18.34}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12},{ty:4,nm:"Dot2",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-20.84317840282256,-20.385335760494883]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[15,19]},r:{a:0,k:-13.4},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[48],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[30],t:10},{s:[10],t:28.34}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[47],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[29],t:10},{s:[9],t:28.34}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[2],t:10},{s:[0],t:21.66}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.898,.898],t:0},{s:[1,.4667,.2392],t:10}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13},{ty:4,nm:"Dot1",sr:1,st:-73.34,op:38.34,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[-22.499999999999986,-22.499999999999986]},s:{a:0,k:[40,40,100]},sk:{a:0,k:0},p:{a:0,k:[16.000000000000007,16.000000000000007]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},shapes:[{ty:"gr",bm:0,hd:!1,nm:"Shape 1",it:[{ty:"sh",bm:0,hd:!1,nm:"Path 1",d:1,ks:{a:0,k:{c:!1,i:[[0,0],[0,0]],o:[[0,0],[0,0]],v:[[-37.5,-40.5],[-1,.5]]}}},{ty:"tm",bm:0,hd:!1,nm:"Trim Paths 1",ix:2,e:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[45],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[20],t:10},{s:[1],t:37.5}]},o:{a:0,k:0},s:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[44],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[19],t:10},{s:[0],t:37.5}]},m:1},{ty:"st",bm:0,hd:!1,nm:"Stroke 1",lc:2,lj:1,ml:4,o:{a:0,k:100},w:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[5],t:10},{s:[0],t:37.5}]},c:{a:1,k:[{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.898,.898],t:0},{o:{x:.167,y:.167},i:{x:.833,y:.833},s:[1,.898,.898],t:10},{s:[1,.4667,.2392],t:18.34}]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:14}],v:"5.7.0",fr:50,op:50,ip:0,assets:[]};const Gi=r.div`
|
|
684
|
+
`,Ro=t=>{const i=fe.PhoneNumberUtil.getInstance(),[n,r]=u(void 0),[l,a]=u({id:"spain",esCountry:"España",enCountry:"Spain",prefix:"+34",countryCode:"ES"}),[d,s]=u(!1),{countryOptions:c,onPhoneChange:p}=t,g=e(t,["countryOptions","onPhoneChange"]);h(()=>{t.defaultValue?r(t.defaultValue):t.value&&r(t.value)},[t.value,t.defaultValue]),h(()=>{if(t.country&&c){const e=c.filter(e=>e.countryCode===t.country);e.length>0&&f(e[0])}},[t.country,c]);const f=e=>{a(e);const o=(n&&"string"==typeof n?n:t.defaultValue&&"string"==typeof t.defaultValue?t.defaultValue:"").replaceAll(/\s/g,""),r=e.prefix+o;p&&p({country:e.prefix,value:o,isValid:r.length>=6&&r.length<18&&i.isValidNumberForRegion(i.parse(r,e.countryCode),e.countryCode)})};return o(oo,Object.assign({LeftContent:t.countryOptions?o(Zo,{children:o(Io,{selectedItem:l,onChange:e=>f(e),id:"country",options:t.countryOptions,focus:!(!d&&!n||"secondary"!==t.design)})}):void 0},g,{onChange:e=>{r(e.target.value),t.onChange&&t.onChange(e);const o=e.target.value.replaceAll(/\s/g,""),n=l.prefix+o;p&&p({country:l.prefix,value:o,isValid:n.length>8&&n.length<18&&i.isValidNumberForRegion(i.parse(n,l.countryCode),l.countryCode)})},onFocus:e=>{s(!0),t.onFocus&&t.onFocus(e)},onBlur:e=>{s(!1),t.onBlur&&t.onBlur(e)}}))},No=r.div`
|
|
765
685
|
display: flex;
|
|
766
686
|
flex-direction: column;
|
|
767
687
|
position: relative;
|
|
768
688
|
width: 100%;
|
|
769
|
-
`,
|
|
689
|
+
`,Wo=r.input`
|
|
770
690
|
width: 100%;
|
|
771
691
|
-webkit-appearance: none;
|
|
772
692
|
appearance: none;
|
|
773
693
|
height: 8px;
|
|
774
|
-
background: ${e=>"linear-gradient(to right, "+(e.$lineColor?e.$lineColor:
|
|
694
|
+
background: ${e=>"linear-gradient(to right, "+(e.$lineColor?e.$lineColor:c.text.primary)+", "+(e.$lineColor?e.$lineColor:c.text.primary)+" "+e.$backValue+"px, "+(e.$backgroundColor?e.$backgroundColor:c.surface.primaryLow)+" "+e.$backValue+"px, "+(e.$backgroundColor?e.$backgroundColor:c.surface.primaryLow)+" 100%)"};
|
|
775
695
|
outline: none;
|
|
776
696
|
border-radius: 10px;
|
|
777
697
|
margin: 18px 0px;
|
|
@@ -784,7 +704,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
784
704
|
border: 2px solid white;
|
|
785
705
|
appearance: none;
|
|
786
706
|
border-radius: 50%;
|
|
787
|
-
background-color: ${e=>e.$thumbColor?e.$thumbColor:
|
|
707
|
+
background-color: ${e=>e.$thumbColor?e.$thumbColor:c.surface.primary};
|
|
788
708
|
background-image: url("https://adoptaunabuelo.org/wp-content/uploads/2023/03/heart_icon.svg");
|
|
789
709
|
background-position: center;
|
|
790
710
|
background-size: 18px;
|
|
@@ -799,7 +719,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
799
719
|
border: 2px solid white;
|
|
800
720
|
appearance: none;
|
|
801
721
|
border-radius: 50%;
|
|
802
|
-
background-color: ${e=>e.$thumbColor?e.$thumbColor:
|
|
722
|
+
background-color: ${e=>e.$thumbColor?e.$thumbColor:c.surface.primary};
|
|
803
723
|
background-image: url("https://adoptaunabuelo.org/wp-content/uploads/2023/03/heart_icon.svg");
|
|
804
724
|
background-position: center;
|
|
805
725
|
background-size: 18px;
|
|
@@ -812,17 +732,17 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
812
732
|
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
|
|
813
733
|
}
|
|
814
734
|
}
|
|
815
|
-
`,
|
|
735
|
+
`,Yo=r.div`
|
|
816
736
|
left: ${e=>e.$value+"px"};
|
|
817
737
|
position: absolute;
|
|
818
738
|
top: -8px;
|
|
819
|
-
`,
|
|
739
|
+
`,Uo=r.span`
|
|
820
740
|
height: 24px;
|
|
821
741
|
padding: 0 1em;
|
|
822
742
|
line-height: 24px;
|
|
823
743
|
text-align: center;
|
|
824
|
-
background: ${
|
|
825
|
-
color: ${
|
|
744
|
+
background: ${c.surface.neutralLow};
|
|
745
|
+
color: ${c.text.neutralHard};
|
|
826
746
|
font-family: "Poppins";
|
|
827
747
|
font-size: 12px;
|
|
828
748
|
display: block;
|
|
@@ -836,7 +756,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
836
756
|
position: absolute;
|
|
837
757
|
width: 0;
|
|
838
758
|
height: 0;
|
|
839
|
-
border-top: 10px solid ${
|
|
759
|
+
border-top: 10px solid ${c.surface.neutralLow};
|
|
840
760
|
border-left: 5px solid transparent;
|
|
841
761
|
border-right: 5px solid transparent;
|
|
842
762
|
top: 100%;
|
|
@@ -844,18 +764,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
844
764
|
margin-left: -5px;
|
|
845
765
|
margin-top: -1px;
|
|
846
766
|
}
|
|
847
|
-
`,
|
|
767
|
+
`,qo=r.div`
|
|
848
768
|
display: flex;
|
|
849
769
|
flex: 1;
|
|
850
770
|
flex-direction: row;
|
|
851
771
|
justify-content: space-between;
|
|
852
772
|
margin-top: 8px;
|
|
853
|
-
`,
|
|
773
|
+
`,Go=a`
|
|
854
774
|
40% { transform: rotate(0deg) }
|
|
855
775
|
60% { transform: rotate(-10deg) scale(1.2) }
|
|
856
776
|
80% { transform: rotate(10deg) scale(1.2)}
|
|
857
777
|
100% { transform: rotate(0deg) }
|
|
858
|
-
`,
|
|
778
|
+
`,Jo=r.div`
|
|
859
779
|
position: absolute;
|
|
860
780
|
top: -35px;
|
|
861
781
|
gap: 12px;
|
|
@@ -863,15 +783,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
863
783
|
flex-direction: column;
|
|
864
784
|
align-items: center;
|
|
865
785
|
transform-origin: bottom center;
|
|
866
|
-
animation-name: ${
|
|
786
|
+
animation-name: ${Go};
|
|
867
787
|
animation-duration: 2s;
|
|
868
|
-
`,
|
|
788
|
+
`,Ko=r.div`
|
|
869
789
|
width: 10px;
|
|
870
790
|
height: 10px;
|
|
871
791
|
border-radius: 44px;
|
|
872
792
|
border: 2px solid white;
|
|
873
793
|
background-color: ${e=>(e.$isSelected,e.$colorSuccess)};
|
|
874
|
-
`,
|
|
794
|
+
`,Qo=r.div`
|
|
875
795
|
display: flex;
|
|
876
796
|
width: 36px;
|
|
877
797
|
height: 36px;
|
|
@@ -887,12 +807,12 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
887
807
|
&:hover {
|
|
888
808
|
transform: ${e=>"scale(1.2) "+(e.$isSelected?"translateY(-8px)":"translateY(0px)")};
|
|
889
809
|
}
|
|
890
|
-
`,
|
|
810
|
+
`,Xo=r.div`
|
|
891
811
|
position: absolute;
|
|
892
812
|
top: -40px;
|
|
893
813
|
height: 100px;
|
|
894
814
|
width: 100px;
|
|
895
|
-
`,
|
|
815
|
+
`,ei=t=>{var n;const r=b(),[l,a]=u(0),[d,s]=u(t.value&&"number"==typeof t.value?t.value:t.defaultValue&&"number"==typeof t.defaultValue?t.defaultValue:0),{style:p,hideRange:g,unit:f}=t,x=e(t,["style","hideRange","unit"]);h(()=>{r.current&&a(r.current.offsetWidth)},[r.current]),h(()=>{t.value&&"number"==typeof t.value&&s(t.value)},[t.value]);return i(No,{ref:r,style:p,children:[!g&&o(Yo,{role:"range",id:"bubbleHeight",$value:t.min&&t.max?(d-t.min)/(t.max-t.min)*l:d/100*l,children:o(Uo,{children:d})}),null===(n=t.presents)||void 0===n?void 0:n.map(e=>{const n=t.min&&t.max?(e.value-t.min)/(t.max-t.min)*l:e.value/100*l,r=d>=e.value;return i(Jo,{style:{left:`calc(${n}px - 22px)`},children:[r&&o(Xo,{children:o(X,{style:{height:"100%",width:"100%"},autoplay:!0,loop:!1,keepLastFrame:!0,src:me})}),o(Qo,{$colorSuccess:e.colorSuccess,$color:e.color,$isSelected:r,onClick:()=>e.onClick&&e.onClick(),children:o(e.icon,{height:20,width:20,color:r?"white":e.colorSuccess})}),o(Ko,{$color:e.color,$colorSuccess:e.colorSuccess,$isSelected:r})]})}),o(Wo,Object.assign({role:"input"},x,{value:d,id:"rangeHeight",type:"range",$thumbColor:t.thumbColor,$lineColor:t.lineColor,$backgroundColor:t.backgroundColor,$backValue:t.min&&t.max?(d-t.min)/(t.max-t.min)*l:d/100*l,onChange:e=>{s(parseInt(e.target.value)),t.onChange&&t.onChange(e)}})),t.min&&t.max&&!t.hideLabels?i(qo,{children:[i($,{type:"p2",style:{color:c.text.neutralMedium},children:[t.min," ",f]}),i($,{type:"p2",style:{color:c.text.neutralMedium},children:[t.max," ",f]})]}):null]})},ti=r.div`
|
|
896
816
|
position: relative;
|
|
897
817
|
display: flex;
|
|
898
818
|
flex-direction: column;
|
|
@@ -904,10 +824,10 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
904
824
|
::-webkit-scrollbar {
|
|
905
825
|
display: none;
|
|
906
826
|
}
|
|
907
|
-
`,
|
|
827
|
+
`,oi=r.div`
|
|
908
828
|
display: flex;
|
|
909
829
|
flex-direction: row;
|
|
910
|
-
`,
|
|
830
|
+
`,ii=r.div`
|
|
911
831
|
display: flex;
|
|
912
832
|
flex-direction: row;
|
|
913
833
|
gap: 8px;
|
|
@@ -915,7 +835,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
915
835
|
${s.lessThan("small")`
|
|
916
836
|
flex-direction: row;
|
|
917
837
|
`}
|
|
918
|
-
`,
|
|
838
|
+
`,ni=r.div`
|
|
919
839
|
display: flex;
|
|
920
840
|
flex: 1;
|
|
921
841
|
width: 247px;
|
|
@@ -926,18 +846,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
926
846
|
padding: 14px 16px;
|
|
927
847
|
height: fit-content;
|
|
928
848
|
border-radius: 16px;
|
|
929
|
-
box-shadow: ${e=>e.$selected?`0 0 0 2px ${
|
|
849
|
+
box-shadow: ${e=>e.$selected?`0 0 0 2px ${c.border.primary}`:`0 0 0 1px ${c.border.neutralSoft}`};
|
|
930
850
|
cursor: pointer;
|
|
931
|
-
background-color: ${e=>e.$selected?
|
|
851
|
+
background-color: ${e=>e.$selected?c.border.primarySoft:"transparent"};
|
|
932
852
|
&:hover {
|
|
933
|
-
background-color: ${
|
|
934
|
-
box-shadow: 0 0 0 2px ${
|
|
853
|
+
background-color: ${c.border.primarySoft};
|
|
854
|
+
box-shadow: 0 0 0 2px ${c.border.primary};
|
|
935
855
|
}
|
|
936
|
-
`,
|
|
856
|
+
`,ri=r.input`
|
|
937
857
|
font-family: Poppins;
|
|
938
858
|
font-size: 24px;
|
|
939
859
|
font-weight: 500;
|
|
940
|
-
color: ${
|
|
860
|
+
color: ${c.text.neutralHard};
|
|
941
861
|
display: flex;
|
|
942
862
|
border: none;
|
|
943
863
|
outline: none;
|
|
@@ -952,29 +872,29 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
952
872
|
-webkit-appearance: none;
|
|
953
873
|
margin: 0;
|
|
954
874
|
}
|
|
955
|
-
`,
|
|
875
|
+
`,li=r.div`
|
|
956
876
|
display: flex;
|
|
957
877
|
flex: 1;
|
|
958
878
|
flex-direction: column;
|
|
959
879
|
align-items: center;
|
|
960
880
|
justify-content: center;
|
|
961
881
|
height: fit-content;
|
|
962
|
-
box-shadow: ${e=>e.$focus||e.$isSelected?`0 0 0 2px ${
|
|
882
|
+
box-shadow: ${e=>e.$focus||e.$isSelected?`0 0 0 2px ${c.border.primary}`:e.$error?`0 0 0 2px ${c.border.red}`:`0 0 0 1px ${c.border.neutralSoft}`};
|
|
963
883
|
border-radius: 16px;
|
|
964
884
|
padding: 14px 16px;
|
|
965
|
-
background-color: ${e=>e.$isSelected||e.$focus?
|
|
885
|
+
background-color: ${e=>e.$isSelected||e.$focus?c.border.primarySoft:"transparent"};
|
|
966
886
|
cursor: pointer;
|
|
967
887
|
&:hover {
|
|
968
|
-
background-color: ${
|
|
969
|
-
box-shadow: 0 0 0 2px ${
|
|
888
|
+
background-color: ${c.border.primarySoft};
|
|
889
|
+
box-shadow: 0 0 0 2px ${c.border.primary};
|
|
970
890
|
}
|
|
971
|
-
`,
|
|
891
|
+
`,ai=r.div`
|
|
972
892
|
display: flex;
|
|
973
893
|
margin-bottom: 6px;
|
|
974
|
-
`,
|
|
894
|
+
`,di=r($)`
|
|
975
895
|
position: relative;
|
|
976
896
|
padding: 8px 12px;
|
|
977
|
-
background-color: ${
|
|
897
|
+
background-color: ${c.surface.primary};
|
|
978
898
|
border-radius: 8px;
|
|
979
899
|
color: white;
|
|
980
900
|
max-width: 50%;
|
|
@@ -982,13 +902,13 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
982
902
|
${s.lessThan("small")`
|
|
983
903
|
max-width: 100%;
|
|
984
904
|
`}
|
|
985
|
-
`,
|
|
905
|
+
`,si=r.span`
|
|
986
906
|
&::before {
|
|
987
907
|
content: "";
|
|
988
908
|
position: absolute;
|
|
989
909
|
width: 0;
|
|
990
910
|
height: 0;
|
|
991
|
-
border-top: 11px solid ${
|
|
911
|
+
border-top: 11px solid ${c.surface.primary};
|
|
992
912
|
border-left: 8px solid transparent;
|
|
993
913
|
border-right: 8px solid transparent;
|
|
994
914
|
top: 100%;
|
|
@@ -996,32 +916,32 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
996
916
|
margin-left: -8px;
|
|
997
917
|
margin-top: -1px;
|
|
998
918
|
}
|
|
999
|
-
`,
|
|
919
|
+
`,ci=e=>{const t=C,n=x(null),r=x([]),l=x(null),[a,d]=u(void 0),[s,p]=u(""),[g,f]=u(!1),[m,y]=u(""),[b,v]=u(24);h(()=>{d(e.defaultOption)},[e.defaultOption]),h(()=>{if(e.options.length>0){const t=e.options[e.options.length-1].price.toString().length;t>5?v(16):t>4?v(18):t>3&&v(21)}},[e.options]),h(()=>{const t=e.options.findIndex(e=>e.price===a);if(-1!==t&&r.current[t]&&n.current){const e=n.current,o=r.current[t],i=e.offsetWidth,l=o.offsetWidth,a=o.offsetLeft-(i/2-l/2);e.scrollTo({left:a,behavior:"smooth"})}},[a]);return i(ti,{style:e.style,ref:n,children:[e.label&&e.labelValueConversion&&!e.options[0].data&&o(ai,{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:i(di,{type:"c1",children:[e.label.replace("{{value}}",(e.labelValueConversion*(a||(s?parseInt(s):0))).toFixed(0)),o(si,{$position:a?0===e.options.findIndex(e=>e.price===a)?"left":1===e.options.findIndex(e=>e.price===a)?"center":"right":"center"})]})}),o(ii,{style:e.containerStyle,children:e.options.map((n,l)=>{const u=a===n.price&&0===s.length;return i(ni,{ref:e=>r.current[l]=e,$selected:u,$data:!!n.data,onClick:()=>(t=>{p(""),y(""),d(t),e.onChange&&e.onChange(t)})(n.price),children:[i($,{type:"h3",weight:"medium",style:{fontSize:b},children:[n.price.toLocaleString("es-ES",{useGrouping:!0}),o("span",{style:{fontSize:b-6},children:e.currency})]}),n.data&&n.data.length>0&&o("div",{style:{display:"flex",flexDirection:"column",gap:3,marginTop:12,paddingTop:12,borderTop:"1px solid "+c.border.neutralSoft},children:n.data.map((e,n)=>{const r=e.icon?t[e.icon]:t.Check;return i("div",{style:{display:"flex",gap:8},children:[o(r,{height:16,width:16,color:c.text.primary}),o($,{type:"c1",style:{flex:1},children:e.title})]},`column-${l}-data-${n}`)})})]},"price-option-"+l)})}),!e.hideCustomAmount&&i(li,{$focus:g,$isSelected:s.length>0,$error:m.length>0,onClick:()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.focus()},children:[i(oi,{$data:!!e.options[0].data,children:[o(ri,{ref:l,style:{fontSize:b,width:s.length>0?s.length+"ch":"unset"},type:"number",value:s,placeholder:"Otra cantidad",onChange:e=>{p(e.target.value)},onFocus:e=>{f(!0),y(""),d(void 0)},onBlur:t=>{f(!1);const o=parseInt(t.target.value),i=e.options[0].price;o<i||!o?y(`La donación mínima es de ${i}${e.currency}`):(y(""),e.onChange&&e.onChange(t.target.value.length>0?o:a||0))}}),s.length>0&&o($,{type:"h6",weight:"medium",style:{fontSize:18,marginTop:6},children:e.currency})]}),e.customAmountData&&o("div",{style:{marginTop:12,paddingTop:12,borderTop:"1px solid "+c.border.neutralSoft},children:e.customAmountData}),m&&o($,{type:"p2",weight:"medium",style:{marginTop:4,color:c.text.red,textAlign:"center"},children:m})]})]})},pi=r.div`
|
|
1000
920
|
position: relative;
|
|
1001
|
-
`,
|
|
921
|
+
`,ui=r.div`
|
|
1002
922
|
display: flex;
|
|
1003
923
|
flex-direction: row;
|
|
1004
924
|
align-items: center;
|
|
1005
|
-
border: 1px solid ${
|
|
925
|
+
border: 1px solid ${d.line.soft};
|
|
1006
926
|
padding: 0px 12px;
|
|
1007
927
|
height: 36px;
|
|
1008
928
|
border-radius: 4px;
|
|
1009
929
|
cursor: pointer;
|
|
1010
930
|
background-color: white;
|
|
1011
931
|
gap: 8px;
|
|
1012
|
-
`,
|
|
932
|
+
`,hi=r.div`
|
|
1013
933
|
position: absolute;
|
|
1014
934
|
top: 42px;
|
|
1015
935
|
z-index: 1000;
|
|
1016
936
|
border: 1px solid rgba(0, 0, 0, 0.04);
|
|
1017
|
-
border: 1px solid ${
|
|
937
|
+
border: 1px solid ${d.line.soft};
|
|
1018
938
|
background-color: white;
|
|
1019
939
|
border-radius: 4px;
|
|
1020
940
|
box-shadow: 0px 4px 8px 0px #0000001a;
|
|
1021
941
|
max-height: 220px;
|
|
1022
942
|
overflow: scroll;
|
|
1023
943
|
width: 100%;
|
|
1024
|
-
`,
|
|
944
|
+
`,gi=r.div`
|
|
1025
945
|
display: flex;
|
|
1026
946
|
flex-direction: row;
|
|
1027
947
|
align-items: center;
|
|
@@ -1029,18 +949,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1029
949
|
cursor: pointer;
|
|
1030
950
|
gap: 8px;
|
|
1031
951
|
&:hover {
|
|
1032
|
-
background-color: ${
|
|
952
|
+
background-color: ${d.background.soft};
|
|
1033
953
|
}
|
|
1034
|
-
`,
|
|
954
|
+
`,fi=e=>{const[t,n]=u(!1),[r,l]=u(e.options&&e.options[0]);h(()=>(window.addEventListener("click",e=>a(e)),window.removeEventListener("click",()=>{})),[]),h(()=>{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 i(pi,{children:[i(ui,{role:"select",id:e.id,style:e.style,onClick:e=>{if(!e)e=window.event;e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation(),n(!t)},children:[null==r?void 0:r.icon,!e.hideTitle&&o($,{type:"p",style:{flex:1,fontSize:14,color:e.style?e.style.color:d.text.full},children:null==r?void 0:r.label}),o(t?M:B,{height:20,width:20})]}),t&&o(hi,{role:"menu",style:e.optionStyle,children:e.options.map((t,r)=>i(gi,{role:"cell-"+r,onClick:o=>((t,o)=>{o||(o=window.event);o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation(),l(t),n(!1),e.onChange&&e.onChange(t)})(t,o),children:[t.icon,o($,{type:"p",children:t.label})]},e.id+"-cell-"+r))})]})},xi=r.div`
|
|
1035
955
|
display: flex;
|
|
1036
956
|
align-items: center;
|
|
1037
957
|
padding: 0px;
|
|
1038
958
|
height: auto;
|
|
1039
|
-
`,
|
|
959
|
+
`,mi=r.input`
|
|
1040
960
|
height: 38px;
|
|
1041
961
|
border-radius: 100px;
|
|
1042
962
|
border: none;
|
|
1043
|
-
box-shadow: ${e=>"secondary"===e.$design?"none":`0 0 0 1px ${
|
|
963
|
+
box-shadow: ${e=>"secondary"===e.$design?"none":`0 0 0 1px ${d.line.soft}`};
|
|
1044
964
|
font-family: "Poppins";
|
|
1045
965
|
font-size: 14px;
|
|
1046
966
|
padding: 0px;
|
|
@@ -1052,16 +972,96 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1052
972
|
cursor: pointer;
|
|
1053
973
|
}
|
|
1054
974
|
&:focus {
|
|
1055
|
-
box-shadow: ${e=>"secondary"===e.$design?"none":`0 0 0 1px ${
|
|
975
|
+
box-shadow: ${e=>"secondary"===e.$design?"none":`0 0 0 1px ${d.text.full}`};
|
|
1056
976
|
background: white;
|
|
1057
977
|
cursor: text;
|
|
1058
978
|
}
|
|
1059
|
-
`,
|
|
979
|
+
`,yi=r.div`
|
|
1060
980
|
position: absolute;
|
|
1061
981
|
display: flex;
|
|
1062
982
|
align-items: center;
|
|
1063
983
|
margin-left: ${e=>"secondary"===e.$design?"0px;":"16px;"};
|
|
1064
|
-
`,
|
|
984
|
+
`,bi=t=>{const{id:n,style:r,design:l}=t,a=e(t,["id","style","design"]);return"big"===t.type?i(xi,{id:n,role:"search-bar",style:r,children:[o(yi,{$design:l,style:{height:24,width:24},children:o(E,{stroke:d.text.high})}),o(mi,Object.assign({role:"input",style:{height:"48px",paddingLeft:"secondary"===l?"36px":"46px"}},a,{$design:l}))]}):i(xi,{id:n,role:"search-bar",style:r,children:[o(yi,{$design:l,style:{height:22,width:22},children:o(E,{stroke:d.text.high})}),o(mi,Object.assign({role:"input",style:{fontSize:16,paddingLeft:"secondary"===l?"36px":"46px"},$design:l},a))]})},vi=r.div`
|
|
985
|
+
position: sticky;
|
|
986
|
+
display: flex;
|
|
987
|
+
flex-direction: column;
|
|
988
|
+
padding: 10px 24px 16px;
|
|
989
|
+
top: 0px;
|
|
990
|
+
z-index: 100;
|
|
991
|
+
`,wi=r.div`
|
|
992
|
+
padding: 0px 24px;
|
|
993
|
+
position: relative;
|
|
994
|
+
`,$i=r.div`
|
|
995
|
+
position: sticky;
|
|
996
|
+
display: flex;
|
|
997
|
+
flex: 1;
|
|
998
|
+
bottom: 0;
|
|
999
|
+
align-items: center;
|
|
1000
|
+
justify-content: flex-end;
|
|
1001
|
+
padding: 16px 24px;
|
|
1002
|
+
background-color: white;
|
|
1003
|
+
${s.lessThan("small")`
|
|
1004
|
+
padding: 8px 16px;
|
|
1005
|
+
`}
|
|
1006
|
+
`,Ci=r.div`
|
|
1007
|
+
background-color: ${c.surface.redSoft};
|
|
1008
|
+
padding: 12px 24px;
|
|
1009
|
+
margin-top: 24px;
|
|
1010
|
+
`,ki=r.div`
|
|
1011
|
+
display: flex;
|
|
1012
|
+
justify-content: flex-end;
|
|
1013
|
+
padding: 10px 10px 0px 24px;
|
|
1014
|
+
`,Li=f((e,t)=>{var n;const[r,l]=u(e.isVisible),[a,d]=u(!1),[s,p]=u(!1);m(t,()=>({close(){f()}})),h(()=>{const e=window.matchMedia("(min-width: 768px)");p(e.matches);const t=e=>{p(e.matches)};return e.addListener(t),()=>e.removeListener(t)},[]),h(()=>{e.isVisible?(l(!0),g(100).then(()=>{d(!0)})):(d(!1),g(500).then(()=>{l(!1)}))},[e.isVisible]);const g=e=>new Promise(t=>setTimeout(t,e)),f=()=>{d(!1),g(300).then(()=>{l(!1),e.onClose&&e.onClose()})};return i(ye,{role:"modal",isOpen:r,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?s?"400px":"100%":486,maxWidth:"full-screen"===e.type?"100%":"lateral"===e.type?s?"400px":"100%":`calc(100% - ${s?96:48}px)`,height:"lateral"===e.type?"100%":void 0,maxHeight:"lateral"===e.type?"100%":`calc(100% - ${s?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&&o(ki,{children:o(Q,{style:{backgroundColor:"white",borderRadius:50},icon:o(L,{height:20,width:20,color:c.text.neutralHard}),design:"image",onClick:f})}),!e.hideHeader&&(e.title||e.subtitle)&&i(vi,{style:Object.assign({paddingTop:e.hideClose?16:4},e.titleStyle),children:[e.title&&o($,{type:"h3",weight:"semibold",children:e.title}),e.subtitle&&o($,{type:"p2",style:{marginTop:8},children:e.subtitle}),e.Header]}),o(wi,{style:e.contentStyle,children:e.children}),e.error&&o(Ci,{children:o($,{type:"p",style:{color:c.text.red,fontSize:12},children:e.error})}),e.buttonProps&&i($i,{style:e.footerStyle,children:[e.Bottom,e.buttonProps&&o(Q,Object.assign({size:"small"},e.buttonProps,{children:e.buttonProps.children?e.buttonProps.children:"Guardar"}))]})]})}),Fi=r.div`
|
|
1015
|
+
display: flex;
|
|
1016
|
+
flex-direction: row;
|
|
1017
|
+
margin-bottom: 8px;
|
|
1018
|
+
`,Si=r.div`
|
|
1019
|
+
display: flex;
|
|
1020
|
+
width: 112px;
|
|
1021
|
+
align-items: center;
|
|
1022
|
+
`,_i=r.div`
|
|
1023
|
+
display: flex;
|
|
1024
|
+
flex: 1;
|
|
1025
|
+
flex-direction: column;
|
|
1026
|
+
`,Di=r.div`
|
|
1027
|
+
content: none;
|
|
1028
|
+
margin-bottom: 24px;
|
|
1029
|
+
`,zi=r.iframe``,ji=f((e,t)=>"form"===e.type?o(Li,Object.assign({ref:t},e,{style:Object.assign({width:"80%",maxWidth:600},e.style),children:e.options&&e.options.map((e,t)=>e.hidden?null:"separator"===e.id?o(Di,{},"separator-"+t):i(Fi,{children:[o(Si,{children:o($,{type:"c1",weight:"medium",children:e.title})}),o(_i,{children:e.Data})]},"option-"+e.id))})):"web"===e.type?o(Li,Object.assign({ref:t},e,{style:Object.assign(Object.assign({},e.style),{height:"100%"}),contentStyle:Object.assign(Object.assign({},e.contentStyle),{height:"100%",padding:0}),children:o(zi,{id:"web-iframe",src:e.url,width:"100%",height:"100%",style:{border:"none"}})})):o(Li,Object.assign({ref:t},e))),Oi=r.div`
|
|
1030
|
+
position: relative;
|
|
1031
|
+
`,Mi=r.div`
|
|
1032
|
+
position: absolute;
|
|
1033
|
+
display: flex;
|
|
1034
|
+
flex-direction: column;
|
|
1035
|
+
top: ${e=>"bottom-left"===e.$position||"bottom-right"===e.$position?"44px":"unset"};
|
|
1036
|
+
bottom: ${e=>"top-left"===e.$position||"top-right"===e.$position?"44px":"unset"};
|
|
1037
|
+
right: ${e=>"bottom-left"===e.$position||"top-left"===e.$position?"8px":"unset"};
|
|
1038
|
+
left: ${e=>"bottom-right"===e.$position||"top-right"===e.$position?"8px":"unset"};
|
|
1039
|
+
padding: ${e=>e.$padding?"16px":" 0px"};
|
|
1040
|
+
border-radius: 12px;
|
|
1041
|
+
width: max-content;
|
|
1042
|
+
background-color: white;
|
|
1043
|
+
box-shadow: 6px 6px 10px 1px rgba(0, 0, 0, 0.1);
|
|
1044
|
+
z-index: 1000;
|
|
1045
|
+
border: 1px solid ${d.line.soft};
|
|
1046
|
+
overflow: hidden;
|
|
1047
|
+
opacity: ${e=>e.$show?1:0};
|
|
1048
|
+
transform: ${e=>e.$show?"scale(1)":"scale(0)"};
|
|
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
|
+
transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
1051
|
+
font-family: 'Poppins';
|
|
1052
|
+
color: ${d.text.full};
|
|
1053
|
+
`,Bi=r.div`
|
|
1054
|
+
cursor: pointer;
|
|
1055
|
+
`,Ei=r.div`
|
|
1056
|
+
display: flex;
|
|
1057
|
+
align-items: center;
|
|
1058
|
+
padding: 12px 16px;
|
|
1059
|
+
gap: 12px;
|
|
1060
|
+
cursor: pointer;
|
|
1061
|
+
&:hover{
|
|
1062
|
+
background-color: ${d.status.neutral.hover};
|
|
1063
|
+
}
|
|
1064
|
+
`,Hi=f((e,t)=>{const[n,r]=u(!1);m(t,()=>({close(){r(!1)}})),h(()=>(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?(r(!1),e.onChange&&e.onChange(!1)):(r(!0),e.onChange&&e.onChange(!0))};return i(Oi,{id:e.id,role:"menu",style:e.style,children:[e.Icon?o(Bi,{onClick:l,children:e.Icon}):o(Q,{style:{backgroundColor:n?d.status.neutral.active:void 0},design:"image",icon:e.icon?e.icon:o(H,{}),onClick:l}),i(Mi,{$padding:!e.options,$position:e.position,style:e.menuStyle,$show:n,children:[e.children,e.options&&e.options.map((t,n)=>{var l;return i(Ei,{style:{borderBottom:n+1===(null===(l=e.options)||void 0===l?void 0:l.length)?"none":"1px solid "+d.line.soft},onClick:o=>((t,o)=>{t.stopPropagation(),r(!1),e.onClick&&e.onClick(o)})(o,t),children:[t.icon,o($,{type:"p",style:{color:t.labelColor},children:t.label})]},"action"+n)})]})]})}),Ai=r.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 i,jsxs as o,Fragment
|
|
|
1070
1070
|
width: fit-content;
|
|
1071
1071
|
height: 28px;
|
|
1072
1072
|
border-radius: 3px;
|
|
1073
|
-
`,
|
|
1073
|
+
`,Pi=r.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 i,jsxs as o,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?d.background.soft:d.background.primaryLow};
|
|
1082
|
+
`,Ti=r.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 i,jsxs as o,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?d.background.soft:d.background.primaryLow};
|
|
1093
|
+
`,Vi=r.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 i,jsxs as o,Fragment
|
|
|
1098
1098
|
padding: 0px 12px;
|
|
1099
1099
|
height: 32px;
|
|
1100
1100
|
border: 1px solid
|
|
1101
|
-
${e=>e.disabled?
|
|
1101
|
+
${e=>e.disabled?d.line.low:d.line.full};
|
|
1102
1102
|
opacity: ${e=>e.disabled?.6:1};
|
|
1103
1103
|
box-sizing: border-box;
|
|
1104
1104
|
border-radius: 555px;
|
|
1105
|
-
`,
|
|
1105
|
+
`,Ii=t=>{var r;const l=e(t,["text"]),[a,s]=u(void 0);h(()=>{s(c())},[t.text]);const c=()=>{switch(t.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:d.text.red,backgroundColor:d.background.redLow,text:"Cancelado"};case"failed":return{color:d.text.red,backgroundColor:d.background.redLow,text:"Fallido"};case"cancel":return{color:d.text.red,backgroundColor:d.background.redLow,text:"Cancelada"};case"No resuelto":return{color:d.text.red,backgroundColor:d.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"===t.type?"big"===t.size?o(Ti,Object.assign({role:"chip"},l,{children:o($,{type:"p2",weight:"medium",style:{color:t.disabled?d.text.high:d.text.primary},children:t.text.slice(0,1).toLocaleUpperCase()+t.text.slice(1,t.text.length).toLocaleLowerCase()})})):"selector"===t.size?o(Vi,Object.assign({role:"chip"},l,{children:o($,{type:"p2",weight:"medium",children:t.text})})):o(Pi,{role:"chip",style:Object.assign(Object.assign({},t.style),{background:t.disabled?d.background.soft:d.background.primaryLow}),children:o($,{type:"p2",weight:"medium",style:{color:t.disabled?d.text.high:d.text.primary},children:t.text.slice(0,1).toLocaleUpperCase()+t.text.slice(1,2)})}):o(Ai,Object.assign({role:"label",id:"Label"},l,{style:Object.assign({background:t.backgroundColor?t.backgroundColor:a?a.backgroundColor:d.background.soft},t.style),children:i(n,{children:[t.icon&&o("span",{style:{display:"flex",alignItems:"center",marginRight:4},children:t.icon}),o($,{type:"p",style:{fontSize:(null===(r=t.style)||void 0===r?void 0:r.fontSize)?t.style.fontSize:14,fontWeight:500,color:t.color?t.color:a?a.color:d.text.full},children:(null==a?void 0:a.text)?a.text:t.text})]})}))},Zi=r.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 i,jsxs as o,Fragment
|
|
|
1110
1110
|
align-items: center;
|
|
1111
1111
|
text-align: center;
|
|
1112
1112
|
border-radius: 50%;
|
|
1113
|
-
background-color: ${
|
|
1113
|
+
background-color: ${d.background.primaryLow};
|
|
1114
1114
|
cursor: ${e=>e.$editable||e.$clickable?"pointer":"default"};
|
|
1115
|
-
`,
|
|
1115
|
+
`,Ri=r.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: ${d.text.primary};
|
|
1122
1122
|
text-align: center;
|
|
1123
|
-
`,
|
|
1123
|
+
`,Ni=r.img`
|
|
1124
1124
|
height: 100%;
|
|
1125
1125
|
width: 100%;
|
|
1126
1126
|
object-fit: cover;
|
|
1127
1127
|
border-radius: 50%;
|
|
1128
|
-
`,
|
|
1128
|
+
`,Wi=r.img`
|
|
1129
1129
|
width: 100%;
|
|
1130
1130
|
height: 100%;
|
|
1131
1131
|
object-fit: cover;
|
|
1132
|
-
`,
|
|
1132
|
+
`,Yi=e=>{var r,l,a;const s=x(null),[c,p]=u(!1),h=e=>new Promise((t,o)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=e=>o(e)});return i(n,{children:[o(he,{isVisible:c,onClose:()=>p(!1),contentStyle:{padding:0,backgroundColor:"black"},hideHeader:!0,children:o(Wi,{src:e.icon})}),i(Zi,{role:"avatar",style:e.style,$editable:e.editable,$clickable:e.clickable,onClick:()=>{var t;e.editable?null===(t=s.current)||void 0===t||t.click():e.clickable&&p(!0)},children:[o("input",{ref:s,id:"file",type:"file",accept:"image/x-png,image/gif,image/jpeg",style:{display:"none"},onChange:o=>t(void 0,void 0,void 0,function*(){if(o.target&&o.target.files&&o.target.files[0])if(o.target.files[0].name.match(/\.(jpg|jpeg|png|gif)$/)){const t=yield h(o.target.files[0]);e.onChange&&e.onChange(t)}else alert("Debes seleccionar una imagen")})}),e.icon?o(Ni,{src:e.icon}):e.name?o(Ri,{style:{color:(null===(r=e.style)||void 0===r?void 0:r.color)?null===(l=e.style)||void 0===l?void 0:l.color:d.text.primary,fontSize:(null===(a=e.style)||void 0===a?void 0:a.fontSize)?e.style.fontSize:24,fontWeight:600},children:e.name.substring(0,1).toLocaleUpperCase()}):null]})]})},Ui=r.div`
|
|
1133
1133
|
position: relative;
|
|
1134
1134
|
width: fit-content;
|
|
1135
|
-
`,
|
|
1135
|
+
`,qi=r.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 i,jsxs as o,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 "+c.border.neutralSoft:e.$selected?"2px solid "+c.border.primary:"1px solid "+c.border.neutralSoft};
|
|
1146
1146
|
background-color: transparent;
|
|
1147
1147
|
cursor: ${e=>e.disabled?"default":"pointer"};
|
|
1148
1148
|
&:hover {
|
|
1149
|
-
background-color: ${
|
|
1149
|
+
background-color: ${c.surface.neutralSoft};
|
|
1150
1150
|
}
|
|
1151
|
-
`,
|
|
1151
|
+
`,Gi=r.div`
|
|
1152
1152
|
position: absolute;
|
|
1153
1153
|
display: flex;
|
|
1154
1154
|
flex-direction: column;
|
|
@@ -1178,11 +1178,11 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1178
1178
|
${s.lessThan("small")`
|
|
1179
1179
|
display: none;
|
|
1180
1180
|
`}
|
|
1181
|
-
`,
|
|
1181
|
+
`,Ji=r.div`
|
|
1182
1182
|
position: sticky;
|
|
1183
1183
|
bottom: 0;
|
|
1184
1184
|
z-index: 5;
|
|
1185
|
-
`,
|
|
1185
|
+
`,Ki=r.div`
|
|
1186
1186
|
display: flex;
|
|
1187
1187
|
flex-direction: row;
|
|
1188
1188
|
align-items: center;
|
|
@@ -1194,20 +1194,20 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1194
1194
|
${s.lessThan("small")`
|
|
1195
1195
|
padding: 16px 0px;
|
|
1196
1196
|
`}
|
|
1197
|
-
`,
|
|
1197
|
+
`,Qi=r.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
|
+
`,Xi=r.div`
|
|
1205
1205
|
display: flex;
|
|
1206
1206
|
flex: 1;
|
|
1207
1207
|
padding-right: 2px;
|
|
1208
1208
|
|
|
1209
1209
|
overflow-y: auto;
|
|
1210
|
-
`,
|
|
1210
|
+
`,en=r.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 i,jsxs as o,Fragment
|
|
|
1219
1219
|
z-index: 5;
|
|
1220
1220
|
gap: 8px;
|
|
1221
1221
|
background-color: white;
|
|
1222
|
-
`,
|
|
1222
|
+
`,tn=r.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
|
+
`,on=e=>{const t=window.innerWidth<=450,[r,l]=u(!1),[a,s]=u(void 0),p=x(null),g=x(null);h(()=>{const e=()=>{l(!1)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),h(()=>{const e=e=>{(r&&p.current&&!g.current&&!p.current.contains(e.target)||r&&g.current&&!g.current.contains(e.target))&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),h(()=>{r||e.onClose&&e.onClose()},[r]);const f=t=>{const o=t.target.value;s(o),e.onSearchChange&&e.onSearchChange(o)},m=()=>o(n,{children:i(Ji,{children:[o(Qi,{}),i(Ki,{children:[e.childrenBottomBar,o(Q,{design:"call-to-action",size:t?"normal":"small",onClick:()=>{l(!1),e.onRemove&&e.onRemove()},children:"Borrar"}),o(Q,{design:"primary",size:t?"normal":"small",onClick:()=>{l(!1),e.onSave&&e.onSave()},children:"Aplicar"})]})]})});return i(Ui,{id:e.id,role:"filter",style:e.style,children:[i(qi,{role:"filter-button",$selected:!!e.label,disabled:e.disabled,onClick:()=>{l(!0)},children:[o($,{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?o(tn,{onClick:t=>{t.stopPropagation(),e.onRemove&&e.onRemove()},children:o(L,{height:18,width:18,color:e.disabled?d.text.low:"black"})}):o(tn,{children:o(B,{height:18,width:18,color:e.disabled?d.text.low:d.text.high})})]}),o(he,{type:"full-screen",isVisible:r&&t,onClose:()=>{l(!1)},hideClose:!0,children:i("div",{ref:g,children:[i(en,{$hideSearchBar:!!e.hideSearchBar&&e.hideSearchBar,children:[!e.hideSearchBar&&o(ve,{defaultValue:a,style:{flex:1},placeholder:"Buscar",design:"primary",onChange:f}),o(Q,{design:"call-to-action",size:"small",style:{color:c.text.neutralHard},onClick:()=>{l(!1)},children:"Cancelar"})]}),o(Xi,{style:{flex:1,overflowY:"auto"},children:e.children}),m()]})}),!t&&r&&i(Gi,{style:e.menuStyle,ref:p,$position:e.position,children:[!e.hideSearchBar&&o(ve,{defaultValue:a,style:{borderBottom:"1px solid "+c.border.neutralSoft,marginBottom:8},placeholder:"Buscar",design:"secondary",onChange:f}),o(Xi,{children:e.children}),m()]})]})},nn=f((t,i)=>{var{type:n,options:r,selectedOptions:l,onChange:a}=t,d=e(t,["type","options","selectedOptions","onChange"]);const s=window.innerWidth<=450,[c,p]=u([]),[g,f]=u(r),[x,y]=u(void 0),[b,v]=u(void 0);m(i,()=>({clean(){$()}})),h(()=>{y(new be(r,{keys:["label","id"]})),f(r)},[r]),h(()=>{p(l||[]),w(l||[])},[l]);const w=e=>{if("single"===n&&e.length>0){const t=e[0];if(t.label)v(t.label);else{const e=r.find(e=>e.id===t.id);v(e?e.label:"1 seleccionado")}}else"multiple"===n&&e.length>0&&v(`${e.length} seleccionados`)},$=()=>{v(void 0),p([]),a&&a([])};return o(on,Object.assign({},d,{label:b,childrenBottomBar:"multiple"===n&&!s&&o(Q,{design:"call-to-action",size:s?"normal":"small",onClick:()=>{p(r)},children:"Seleccionar todo"}),onSave:()=>{w(c),a&&a(c)},onRemove:$,onSearchChange:e=>{if(e){const t=x.search(e).map(e=>e.item);f(t)}else f(r)},onClose:()=>{f(r)},children:o(we,{style:{width:"100%"},options:g,selectedOptions:c,type:n,shape:d.shape,height:s?22:18,width:s?22:18,position:s?"right":"left",onChange:e=>{p(e)}})}))});yo(".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 rn=f((t,i)=>{var{position:n,selectedOptions:r,onChange:l}=t,a=e(t,["position","selectedOptions","onChange"]);const d=window.innerWidth<=450,s=window.innerWidth<=400,[c,p]=u(void 0),[g,f]=u(null),[x,y]=u(null),[b,v]=u("startDate");m(i,()=>({clean(){$()}})),h(()=>{r?(f(r.startDate),y(r.endDate),w(r.startDate?r.startDate:void 0,r.endDate?r.endDate:void 0)):(f(null),y(null),p(""))},[r]);const w=(e,t)=>{let o="";e&&(o=e.format("D MMM")),t&&(o+=` - ${t.format("D MMM")}`),p(o)},$=()=>{y(null),f(null),v("startDate"),p(void 0),l&&l({startDate:null,endDate:null})};return o(on,Object.assign({},a,{label:c,hideSearchBar:!0,position:n,onSave:()=>{w(g||void 0,x||void 0),l&&l({startDate:g?g.startOf("date"):null,endDate:x?x.endOf("date"):null})},onRemove:$,children:o(ae,{startDate:g,endDate:x,onDatesChange:({startDate:e,endDate:t})=>{f(e),y(t)},daySize:s?35:d?48:void 0,focusedInput:b,noBorder:!0,onFocusChange:e=>v(e),initialVisibleMonth:()=>oe()})}))}),ln=f((t,i)=>{var{selectedOptions:n,min:r,max:l,unit:a,onChange:d}=t,s=e(t,["selectedOptions","min","max","unit","onChange"]);const c=window.innerWidth<=450,[p,g]=u(void 0),[f,x]=u(0),[y,b]=u(void 0);m(i,()=>({clean(){v()}})),h(()=>{n?(x(n),g(`${n.toString()} ${a||""}`)):(x(0),g(void 0))},[n]);const v=()=>{x(0),b(void 0),g(void 0),d&&d(void 0)};return o(on,Object.assign({},s,{label:p,hideSearchBar:!0,onSave:()=>{y&&(g(`${y.toString()} ${a||""}`),x(y),d&&d(y))},onRemove:v,children:o($e,{style:{width:"100%",margin:c?"20px 0px":20,marginTop:40},min:r,max:l,unit:a,defaultValue:f,onChange:e=>{b(e.target.value)}})}))}),an=f((e,t)=>"date"===e.type?o(rn,Object.assign({ref:t},e)):"ratio"===e.type?o(ln,Object.assign({ref:t},e)):o(nn,Object.assign({ref:t},e))),dn=r.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 i,jsxs as o,Fragment
|
|
|
1237
1237
|
opacity: ${e=>e.disabled?.5:1};
|
|
1238
1238
|
width: 100%;
|
|
1239
1239
|
gap: 12px;
|
|
1240
|
-
`,
|
|
1240
|
+
`,sn=r.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 i,jsxs as o,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?d.status.color.error:d.background.primary:e.$error?d.status.color.errorDefault:d.background.primaryLow};
|
|
1249
|
+
border: ${e=>e.$selected?"1px solid "+(e.$error?d.status.color.error:d.background.primary):"1px solid "+(e.$error?d.line.redSoft:d.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 i,jsxs as o,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?d.status.color.error:d.background.primary:e.$error?d.status.color.errorDefault:d.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?d.status.color.error:d.background.primary:e.$error?d.status.color.errorDefault:"#FFFFFF"};
|
|
1266
|
+
border: ${e=>e.$selected?"1px solid "+(e.$error?d.status.color.error:d.background.primary):"1px solid rgba(0, 29, 61, 0.24)"};
|
|
1267
1267
|
}
|
|
1268
|
-
`,
|
|
1268
|
+
`,cn=r.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
|
+
`,pn=t=>{var{position:n="left",error:r,sublabel:l,selected:a=!1,avatarEnabled:d,shape:s="square"}=t,c=e(t,["position","error","sublabel","selected","avatarEnabled","shape"]);const[p,g]=u(a);h(()=>{g(a)},[a]);return i(dn,Object.assign({"data-testid":"checkbox",onClick:e=>{g(!p),c.onClick&&c.onClick(e)}},c,{children:["left"===n&&o(sn,{$shape:s,$selected:a,$error:r,$height:c.height,$width:c.width,children:a&&o(X,{style:{height:18,width:18},autoplay:!0,loop:!1,keepLastFrame:!0,src:ee,onEvent:e=>{}})}),i(cn,{children:[d&&o(Ce,{name:c.label||"",style:{height:32,width:32,marginRight:8,fontSize:15}}),i("div",{children:[c.children&&c.children,c.label&&o($,{type:"p",children:c.label}),l&&o($,{type:"p",style:{fontSize:12},children:l})]})]}),"right"===n&&o(sn,{$shape:s,$selected:a,$error:r,$height:c.height,$width:c.width,children:a&&o(X,{style:{height:18,width:18},autoplay:!0,loop:!1,keepLastFrame:!0,src:ee,onEvent:e=>{}})})]}))},un=r.div``,hn=e=>{const[t,i]=u([]),[n,r]=u(!1),[l,a]=u(window.innerWidth<768);h(()=>{e.selectedOptions&&i(e.selectedOptions);const t=()=>{a(window.innerWidth<768)};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e.selectedOptions]);return o(un,{role:"checkboxlist",style:e.style,children:o("div",{style:{paddingBottom:"2px"},children:e.options.map((a,d)=>{const s=t.some(e=>e.id===a.id);return o(pn,{role:"checkbox-"+d,style:Object.assign({marginRight:"16px",marginBottom:"16px",padding:l?"4px 1px":"0px"},e.elementStyle),label:a.label,sublabel:a.sublabel,error:a.error,selected:s,height:e.height,shape:e.shape,width:e.width,position:e.position,avatarEnabled:e.avatarEnabled,onClick:()=>(o=>{const l=t.findIndex(e=>o.id===e.id);let a=t;"single"===e.type?a=[o]:-1===l?a.push(o):a.splice(l,1),i(a),r(!n),e.onChange&&e.onChange(a)})(a),children:a.Element},a.id)})})})},gn=r.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 i,jsxs as o,Fragment
|
|
|
1279
1279
|
max-height: 40px;
|
|
1280
1280
|
min-height: 40px;
|
|
1281
1281
|
padding: 0px 12px;
|
|
1282
|
-
background: ${
|
|
1282
|
+
background: ${d.background.soft};
|
|
1283
1283
|
border-radius: 6px;
|
|
1284
1284
|
position: relative;
|
|
1285
|
-
`,
|
|
1285
|
+
`,fn=r.div`
|
|
1286
1286
|
display: flex;
|
|
1287
1287
|
flex: 1;
|
|
1288
1288
|
justify-content: space-between;
|
|
1289
1289
|
cursor: pointer;
|
|
1290
|
-
`,
|
|
1290
|
+
`,xn=r.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 i,jsxs as o,Fragment
|
|
|
1305
1305
|
overflow: hidden;
|
|
1306
1306
|
overflow-y: auto;
|
|
1307
1307
|
z-index: 2;
|
|
1308
|
-
`,
|
|
1308
|
+
`,mn=r.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 i,jsxs as o,Fragment
|
|
|
1320
1320
|
border-radius: 6px;
|
|
1321
1321
|
cursor: pointer;
|
|
1322
1322
|
&:hover {
|
|
1323
|
-
background-color: ${
|
|
1323
|
+
background-color: ${d.status.neutral.hover};
|
|
1324
1324
|
}
|
|
1325
|
-
`,
|
|
1325
|
+
`,yn=r.div`
|
|
1326
1326
|
height: 16px;
|
|
1327
1327
|
width: 16px;
|
|
1328
|
-
`,
|
|
1328
|
+
`,bn=r.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 i,jsxs as o,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?d.background.primary:d.background.primaryLow};
|
|
1337
|
+
border: ${e=>e.$selected?"1px solid "+d.background.primary:"1px solid "+d.line.primarySoft};
|
|
1338
1338
|
border-radius: 4px;
|
|
1339
|
-
`,
|
|
1339
|
+
`,vn=e=>{const[t,n]=u(!1),[r,l]=u(e.selectedOptions||[]),[a,s]=u(!1);h(()=>{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]),h(()=>{const o=o=>{const i=document.getElementById(e.id);null!==i&&!i.contains(o.target)&&t&&p(o)};return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}},[t,e.id]);const p=e=>{e.stopPropagation(),n(!1)};return i(gn,{role:"dropdown",style:e.style,id:e.id,children:[i(fn,{onClick:()=>n(!t),children:[o($,{type:"p",style:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",color:r.length>0?c.text.neutralHard:c.text.neutralMedium},children:r.length>0?r.map((e,t)=>0===t?e.title:", "+e.title):e.placeholder}),o(t?M:B,{style:{stroke:d.text.high}})]}),t&&i(xn,{"data-testid":"menu",$position:e.menuPosition,style:e.menuStyle,children:[e.onSearchChange&&o(ve,{style:{marginBottom:8},type:"small",placeholder:"Buscar",onChange:t=>{e.onSearchChange&&e.onSearchChange(t.target.value)}}),e.options.map(c=>{const p=r.some(e=>e.id===c.id);return i(mn,{style:e.optionStyle,onClick:()=>(o=>{if("single"===e.type)l([o]),n(!t),e.onChange&&e.onChange([o]);else{const t=r.findIndex(e=>o.id===e.id);let i=[...r];-1===t?i.push(o):i.splice(t,1),l(i),s(!a),e.onChange&&e.onChange(i)}})(c),children:[o(yn,{children:"single"===e.type?p&&o(k,{height:16,width:16}):o(bn,{$selected:p,children:p&&o(k,{height:16,width:16,color:"white"})})}),c.icon,o($,{type:"p",style:{color:`${d.text.full}`},children:c.title})]},c.id)})]})]})},wn=r.div``,$n=r.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 i,jsxs as o,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 "+d.line.soft:"none"};
|
|
1354
|
+
color: ${d.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":d.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 "+d.line.full:"1px "+d.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 i,jsxs as o,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 "+d.line.full:"1px "+d.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 i,jsxs as o,Fragment
|
|
|
1391
1391
|
border-radius: 9999px;
|
|
1392
1392
|
background-color: #e0e0e0;
|
|
1393
1393
|
}
|
|
1394
|
-
`,
|
|
1394
|
+
`,Cn=e=>{const[t,n]=u(e.maxLength?e.maxLength:0);h(()=>{e.maxLength&&n(e.maxLength)},[e.maxLength]);return i(wn,{role:"text-area",children:[o($n,{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=Le(ke(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&&i($,{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:[t,"/",e.maxLength," caracteres"]})]})};yo('/* 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 kn=r.div`
|
|
1395
1395
|
position: relative;
|
|
1396
1396
|
border-radius: 12px;
|
|
1397
1397
|
overflow: hidden;
|
|
1398
|
-
`,
|
|
1398
|
+
`,Ln=r.div`
|
|
1399
1399
|
overflow: scroll;
|
|
1400
1400
|
height: calc(100% - 63px);
|
|
1401
1401
|
cursor: text;
|
|
1402
|
-
`,
|
|
1402
|
+
`,Fn=r.div`
|
|
1403
1403
|
padding: 16px 18px 8px;
|
|
1404
|
-
border-bottom: 1px solid ${
|
|
1404
|
+
border-bottom: 1px solid ${c.border.neutralSoft};
|
|
1405
1405
|
background-color: white;
|
|
1406
|
-
`,
|
|
1406
|
+
`,Sn=r.div`
|
|
1407
1407
|
display: flex;
|
|
1408
1408
|
flex-direction: row;
|
|
1409
1409
|
gap: 8px;
|
|
1410
|
-
`,
|
|
1410
|
+
`,_n=r.div`
|
|
1411
1411
|
position: relative;
|
|
1412
|
-
`,
|
|
1412
|
+
`,Dn=r.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 i,jsxs as o,Fragment
|
|
|
1418
1418
|
right: 16px;
|
|
1419
1419
|
z-index: 10;
|
|
1420
1420
|
height: 100%;
|
|
1421
|
-
`,
|
|
1421
|
+
`,zn=r.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 i,jsxs as o,Fragment
|
|
|
1426
1426
|
width: 32px;
|
|
1427
1427
|
border-radius: 80px;
|
|
1428
1428
|
&:hover {
|
|
1429
|
-
background-color: ${
|
|
1429
|
+
background-color: ${c.surface.neutralSoft};
|
|
1430
1430
|
}
|
|
1431
|
-
|
|
1431
|
+
`;function jn({editor:e}){const t=De({editor:e,selector:e=>{var t,o,i,n,r,l,a,d,s,c,p,u,h;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!==(i=e.editor.isActive("italic"))&&void 0!==i&&i,canItalic:null!==(n=e.editor.can().chain().toggleItalic().run())&&void 0!==n&&n,isUnderline:null!==(r=e.editor.isActive("underline"))&&void 0!==r&&r,canUnderline:null!==(l=e.editor.can().chain().toggleUnderline().run())&&void 0!==l&&l,canClearMarks:null!==(a=e.editor.can().chain().unsetAllMarks().run())&&void 0!==a&&a,isParagraph:null!==(d=e.editor.isActive("paragraph"))&&void 0!==d&&d,isHeading1:null!==(s=e.editor.isActive("heading",{level:1}))&&void 0!==s&&s,isHeading2:null!==(c=e.editor.isActive("heading",{level:2}))&&void 0!==c&&c,isAlignLeft:null!==(p=e.editor.isActive({textAlign:"left"}))&&void 0!==p&&p,isAlignCenter:null!==(u=e.editor.isActive({textAlign:"center"}))&&void 0!==u&&u,isAlignRight:null!==(h=e.editor.isActive({textAlign:"right"}))&&void 0!==h&&h}}});return o(Fn,{children:i(Sn,{className:"toolbar",children:[o(Me,{id:"select-text-type",selectedItem:{icon:t.isHeading1?o(A,{}):t.isHeading2?o(P,{}):o(T,{}),label:t.isHeading1?"Título":t.isHeading2?"Subtítlo":"Párrafo"},options:[{icon:o(A,{}),label:"Título"},{icon:o(P,{}),label:"Subtítlo"},{icon:o(T,{}),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()}}),o(zn,{onClick:()=>e.chain().focus().toggleBold().run(),disabled:!t.canBold,className:t.isBold?"is-active":"",children:o(V,{height:20,width:20,color:c.text.neutralHard})}),o(zn,{onClick:()=>e.chain().focus().toggleItalic().run(),disabled:!t.canItalic,className:t.isItalic?"is-active":"",children:o(I,{height:20,width:20,color:c.text.neutralHard})}),o(zn,{onClick:()=>e.chain().focus().toggleUnderline().run(),disabled:!t.canUnderline,className:t.isUnderline?"is-active":"",children:o(Z,{height:20,width:20,color:c.text.neutralHard})}),o(zn,{onClick:()=>e.chain().setTextAlign("left").run(),className:t.isAlignLeft?"is-active":"",children:o(R,{height:20,width:20,color:c.text.neutralHard})}),o(zn,{onClick:()=>e.chain().setTextAlign("center").run(),className:t.isAlignCenter?"is-active":"",children:o(N,{height:20,width:20,color:c.text.neutralHard})}),o(zn,{onClick:()=>e.chain().setTextAlign("right").run(),className:t.isAlignRight?"is-active":"",children:o(W,{height:20,width:20,color:c.text.neutralHard})})]})})}const On=e=>{const t=Se({extensions:[Fe,je,ze.configure({types:["heading","paragraph"]}),Oe.configure({placeholder:e.placeholder})],content:e.value||"",onUpdate:({editor:t})=>{e.onChange&&e.onChange(t.getHTML())}});return i(kn,{role:"text-area",style:e.style,children:[i(_n,{children:[e.ToolbarButton&&o(Dn,{children:e.ToolbarButton}),o(jn,{editor:t})]}),o(Ln,{onClick:()=>t.commands.focus(),children:o(_e,{editor:t})})]})},Mn=e=>"default"===e.type?o(Cn,Object.assign({},e)):"edit"===e.type?o(On,Object.assign({},e)):null,Bn=r.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
|
+
`,En=r.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 i,jsxs as o,Fragment
|
|
|
1445
1445
|
align-items: center;
|
|
1446
1446
|
margin-right: 12px;
|
|
1447
1447
|
transition: all 0.1s linear;
|
|
1448
|
-
|
|
1448
|
+
`,Hn=r.div`
|
|
1449
1449
|
width: 10px;
|
|
1450
1450
|
height: 10px;
|
|
1451
1451
|
border-radius: 50%;
|
|
1452
1452
|
transition: all 0.1s linear;
|
|
1453
|
-
`,
|
|
1453
|
+
`,An=e=>{const[t,n]=u(e.selected);h(()=>{n(e.selected)},[e.selected]);return i(Bn,{role:e.id,style:e.style,onClick:o=>{n(!t),e.onClick&&e.onClick(o)},children:[o(En,{style:{border:e.disabled?`2px solid ${d.line.soft}`:` 2px solid ${d.background.primary}`},children:o(Hn,{style:{background:t?`${d.background.primary}`:"white"}})}),o($,{type:"p",style:{color:`${d.text.high}`},children:e.children})]})},Pn=r.div``,Tn=e=>{const[t,i]=u(e.options.filter(e=>e.selected)),[n,r]=u(!1);return o(Pn,{style:e.style,role:"radiobuttonlist",children:e.options.map((l,a)=>{const d=t.some(e=>e.id===l.id);return o(An,{id:l.id,style:e.cellStyle,children:l.children,selected:d,onClick:()=>(o=>{const l=t.findIndex(e=>o.id===e.id);let a=t;"single"===e.type?a=[o]:-1===l?a.push(o):a.splice(l,1),i(a),r(!n),e.onChange&&e.onChange(a)})(l)},l.id+"-"+a)})})},Vn=r.div`
|
|
1454
1454
|
display: flex;
|
|
1455
1455
|
flex: 1;
|
|
1456
1456
|
flex-wrap: wrap;
|
|
1457
1457
|
justify-content: space-around;
|
|
1458
|
-
`,
|
|
1458
|
+
`,In=r.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
|
+
`,Zn=r.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 i,jsxs as o,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 "+d.line.primary:"design2"===e.$design?"0 0 0 1px "+d.line.soft:"0 0 0 1px "+d.text.white};
|
|
1478
1478
|
|
|
1479
|
-
background-color: ${e=>e.$disabled?
|
|
1479
|
+
background-color: ${e=>e.$disabled?d.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?d.line.soft:e.$selected?d.background.primaryLow:d.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
|
+
`,Rn=r.div`
|
|
1490
1490
|
display: flex;
|
|
1491
1491
|
flex: 1;
|
|
1492
1492
|
flex-direction: column;
|
|
1493
1493
|
margin-top: 4px;
|
|
1494
|
-
`,
|
|
1494
|
+
`,Nn=e=>{const[t,n]=u(e.selectedOptions?e.selectedOptions:[]);h(()=>{n(e.selectedOptions?e.selectedOptions:[])},[e.selectedOptions]);return o(Vn,{style:e.style,role:"container",children:e.options.map((r,l)=>{const a=!!t&&t.some(e=>r.id===e.id);return i(In,{role:"cell"+l,onClick:()=>{r.disabled||(o=>{if("multiple"===e.type){const i=t.findIndex(e=>e.id===o.id),r=[...t];-1===i?r.push(o):r.splice(i,1),n(r),e.onClick&&e.onClick(o),e.onChange&&e.onChange(r)}else n([o]),e.onClick&&e.onClick(o),e.onChange&&e.onChange([o])})(r)},$disabled:r.disabled,children:[i(Zn,{$selected:a,style:e.cellStyle,$disabled:r.disabled,$design:e.design||"design1",children:[r.icon,o($,{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:r.title})]}),o(Rn,{children:r.subtitle&&o($,{type:"p",style:{fontSize:14,marginTop:2,textAlign:"center"},children:r.subtitle})})]},"cell"+l)})})},Wn=r.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
|
+
`,Yn=r.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:d.line.primary):"0px"};
|
|
1507
|
+
`,Un=r.div`
|
|
1508
1508
|
display: flex;
|
|
1509
1509
|
flex-direction: row;
|
|
1510
1510
|
width: fit-content;
|
|
1511
1511
|
gap: 4px;
|
|
1512
|
-
`,
|
|
1512
|
+
`,qn=r.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 i,jsxs as o,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:d.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:d.background.primaryLow:d.status.neutral.hover};
|
|
1524
1524
|
}
|
|
1525
1525
|
${e=>s.lessThan("medium")`
|
|
1526
1526
|
&:hover{
|
|
1527
|
-
background-color: ${e.color?e.color:
|
|
1527
|
+
background-color: ${e.color?e.color:d.status.neutral.hover};
|
|
1528
1528
|
}
|
|
1529
1529
|
`}
|
|
1530
|
-
`,
|
|
1530
|
+
`,Gn=r($)`
|
|
1531
1531
|
font-size: 14px;
|
|
1532
|
-
color: ${e=>e.$selected?e.textColor?e.textColor:
|
|
1532
|
+
color: ${e=>e.$selected?e.textColor?e.textColor:d.text.primary:d.text.high};
|
|
1533
1533
|
width: max-content;
|
|
1534
1534
|
transition: color 0.15s ease-in;
|
|
1535
|
-
`,
|
|
1535
|
+
`,Jn=e=>{const[t,i]=u(e.selectedOption?e.selectedOption:e.options[0]);h(()=>{e.selectedOption&&i(e.selectedOption)},[e.selectedOption]);const n=t=>{i(t),e.onChange&&e.onChange(t)};return"secondary"===e.design?o(Un,{role:"container",style:Object.assign({backgroundColor:e.backgroundColor},e.style),children:e.options.map(i=>{const r=t.id===i.id;return o(qn,{role:i.id,$selected:r,onClick:()=>n(i),style:e.cellStyle,color:e.cellColor,children:o($,{type:"p",weight:"medium",style:Object.assign({fontSize:14,color:r?e.textColor?e.textColor:d.text.primary:d.text.high,width:"max-content"},e.textStyle),children:i.title})},i.id)})}):o(Wn,{role:"container",style:Object.assign({backgroundColor:e.backgroundColor},e.style),children:e.options.map(i=>{const r=t.id===i.id;return o(Yn,{role:i.id,$selected:r,onClick:()=>n(i),style:e.cellStyle,color:e.cellColor,children:o(Gn,{type:"p",weight:"medium",textColor:e.textColor,$selected:r,style:e.textStyle,children:i.title})},i.id)})})},Kn=r.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 "+c.border.neutralMedium:"1px "+c.border.neutralHard:"secondary"===e.$design?"1px "+c.border.neutralSoft:"none"};
|
|
1538
|
+
background-color: ${e=>e.$focus||"secondary"===e.$design?"white":e.$error?c.surface.redSoft:c.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
|
+
`,Qn=r.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: ${c.text.red};
|
|
1549
|
+
`,Xn=f((e,n)=>{var r;const[l,a]=u(void 0),[d,s]=u(void 0),[p,g]=u(void 0),[f,x]=u(void 0),[y,b]=u(void 0),[v,w]=u(!1),[C,k]=u(void 0),L=Be(),F=Ee();h(()=>{e.userData&&e.userData.email?s(e.userData.email):s(void 0)},[e.userData]),m(n,()=>({getPaymentMethod(){return t(this,void 0,void 0,function*(){return yield _()})}}));const S=e=>t(void 0,void 0,void 0,function*(){b(void 0),e.complete?k(e):k(void 0)}),_=()=>t(void 0,void 0,void 0,function*(){if(!(F&&L&&C&&l))return l||g("Debes añadir el nombre del titular"),C||b("Debes añadir un método de pago válido"),void(d||x("Debes añadir un email válido"));if("iban"===C.elementType){e.onLoading&&e.onLoading(!0);const t=F.getElement(He);if(t&&d){const{error:o,paymentMethod:i}=yield L.createPaymentMethod({type:"sepa_debit",sepa_debit:t,billing_details:{name:l,email:d}});return o?(console.error(o),void(e.onLoading&&e.onLoading(!1))):(e.onLoading&&e.onLoading(!1),i)}return void(d||x("Debes añadir un email válido"))}{e.onLoading&&e.onLoading(!0);const t=F.getElement(Ae);if(t){const{error:o,paymentMethod:i}=yield L.createPaymentMethod({type:"card",card:t,billing_details:{name:l}});return o?(console.error(o),void(e.onLoading&&e.onLoading(!1))):(e.onLoading&&e.onLoading(!1),i)}}}),D=()=>{w(!0)},z=()=>{w(!1)};return i("div",{style:e.style,children:[o(Ve,{type:"text",title:e.placeholderName?e.placeholderName:"Nombre del titular",placeholder:e.placeholderName?e.placeholderName:"Nombre del titular",containerStyle:{marginBottom:8},design:e.design,onChange:e=>{return e&&(t=e.target.value,g(void 0),void a(t));var t},error:p}),"sepa_debit"===e.option&&!(null===(r=e.userData)||void 0===r?void 0:r.email)&&o(Ve,{title:e.placeholderEmail?e.placeholderEmail:"Email",placeholder:e.placeholderEmail?e.placeholderEmail:"Email",containerStyle:{marginBottom:8},type:"email",design:e.design,onChange:e=>{return e&&(t=e.target.value,x(void 0),void s(t));var t},error:f}),o(Kn,{$error:!!y,$focus:v,$design:e.design,children:"card"===e.option?o(Ae,{options:{style:{base:{fontFamily:"Poppins",fontSize:"secondary"===e.design?"15px":"14px","::placeholder":{color:c.text.neutralMedium}}},hidePostalCode:!0},onChange:S,onFocus:D,onBlur:z}):o(He,{options:{supportedCountries:["SEPA"],style:{base:{fontFamily:"Poppins",fontSize:"secondary"===e.design?"15px":"14px","::placeholder":{color:c.text.neutralMedium}}}},onChange:S,onFocus:D,onBlur:z})}),y&&o(Qn,{children:o($,{type:"p",weight:"medium",style:{color:c.text.red,marginTop:4,fontSize:14},children:y})})]})}),er=r.div``,tr=f((e,n)=>{const r=x(null),l=x(null),[a,d]=u(()=>Te(e.stripeKey)),[s,c]=u(!1);m(n,()=>({getPaymentMethod(){return t(this,void 0,void 0,function*(){var e;return yield null===(e=l.current)||void 0===e?void 0:e.getPaymentMethod()})}})),h(()=>{e.stripeConfirmUrl?c(!0):p()},[e.stripeConfirmUrl]),window.addEventListener("message",function(e){"3DS-authentication-complete"===e.data&&s&&p()},!1);const p=()=>{r.current&&r.current.close()};return i(er,{style:e.style,role:"container",children:[o(he,{ref:r,type:"web",isVisible:s,hideClose:!0,url:e.stripeConfirmUrl,style:{width:600,height:400,padding:0},onClose:()=>{c(!1),e.onSetupConfirmed&&e.onSetupConfirmed()}}),o(Pe,{stripe:a,options:{fonts:[{cssSrc:"https://fonts.googleapis.com/css2?family=Poppins&display=swap"}]},children:o(Xn,{ref:l,option:e.paymentOption,style:e.cardStyle,onLoading:t=>{e.onLoading&&e.onLoading(t)},error:e.error,userData:e.userData,design:e.design,placeholderEmail:e.placeholderEmail,placeholderName:e.placeholderName})})]})}),or=r.div`
|
|
1550
1550
|
display: flex;
|
|
1551
1551
|
flex-direction: row;
|
|
1552
|
-
border: 1px solid ${
|
|
1552
|
+
border: 1px solid ${c.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: ${c.surface.invert};
|
|
1558
|
+
`,ir=r.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?c.surface.neutralSoft:"transparent"};
|
|
1563
1563
|
border-radius: 100px;
|
|
1564
1564
|
align-items: center;
|
|
1565
1565
|
justify-content: center;
|
|
1566
|
-
`,
|
|
1566
|
+
`,nr=e=>{const[t,i]=u(e.options[0]);return o(or,{role:"container",style:e.style,children:e.options.map(n=>{const r=n.id===t.id;return o(ir,{role:n.id,$selected:r,onClick:()=>{i(n),e.onChange&&e.onChange(n)},children:p.cloneElement(n.icon,Object.assign({color:r?c.border.primary:c.border.neutralMedium,height:20,width:20},n.icon.props))},"switch"+n.id)})})},rr=r.div`
|
|
1567
1567
|
display: flex;
|
|
1568
1568
|
align-items: center;
|
|
1569
|
-
`,
|
|
1569
|
+
`,lr=r.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 i,jsxs as o,Fragment
|
|
|
1575
1575
|
height: 26px;
|
|
1576
1576
|
border-radius: 42px;
|
|
1577
1577
|
&:hover {
|
|
1578
|
-
background-color: ${
|
|
1578
|
+
background-color: ${d.background.soft};
|
|
1579
1579
|
}
|
|
1580
|
-
`,
|
|
1580
|
+
`,ar=e=>{const[t,n]=u(0),[r,l]=u(0);h(()=>{l(Math.ceil(e.length/e.rowsPerPage))},[e.length,e.rowsPerPage]),h(()=>{e.start&&e.start<r&&n(e.start)},[e.start]);return i(rr,{role:"pagination",style:e.style,children:[o(lr,{role:"first-arrow",onClick:()=>{t>0&&(n(0),e.onChange&&e.onChange(0))},style:{cursor:0===t?"auto":"pointer"},children:o(Y,{style:{stroke:0===t?d.text.low:d.text.full}})}),o(lr,{role:"left-arrow",onClick:()=>{if(t>0){const o=t-1;n(o),e.onChange&&e.onChange(o)}},style:{cursor:0===t?"auto":"pointer"},children:o(U,{style:{stroke:0===t?d.text.low:d.text.full}})}),i($,{type:"p",style:{color:d.text.full,margin:"0px 12px"},children:[o("span",{style:{fontWeight:700},children:t+1})," de"," ",o("span",{style:{fontWeight:700},children:r})]}),o(lr,{role:"right-arrow",onClick:()=>{if(t<r-1){const o=t+1;n(o),e.onChange&&e.onChange(o)}},style:{cursor:t===r-1?"auto":"pointer"},children:o(q,{style:{stroke:t===r-1?d.text.low:d.text.full}})}),o(lr,{role:"last-arrow",onClick:()=>{t<r-1&&(n(r-1),e.onChange&&e.onChange(r-1))},style:{cursor:t===r-1?"auto":"pointer"},children:o(G,{style:{stroke:t===r-1?d.text.low:d.text.full}})})]})},dr=r.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
|
+
`,sr=t=>{var n;oe.locale("es");const{toDate:r,textColor:l,color:a}=t,s=e(t,["toDate","textColor","color"]),[c,p]=u(0),[g,f]=u(""),[x,m]=u(!1);h(()=>{r&&y()},[r]);const y=()=>{const e=oe(r),t=oe(),o=oe.duration(e.diff(t)),i=o.asDays(),n=o.asHours();m(i<1&&n<2),o.locale("es"),p(o.asDays()),f(o.humanize())};return i(dr,Object.assign({role:"container"},s,{style:Object.assign({backgroundColor:x?d.status.color.error:a||(null===(n=s.style)||void 0===n?void 0:n.backgroundColor)},s.style),children:[o(J,{height:20,width:20,color:x?"white":l||d.text.full,style:{marginRight:8}}),i($,{type:"p2",weight:"medium",style:{color:x?"white":l||d.text.full},children:[g," ",c<0?"de retraso":"restantes"]})]}))},cr=r.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 "+d.line.primary:"design2"===e.$design?"0 0 0 1px "+d.line.soft:"0 0 0 1px "+d.text.white};
|
|
1594
1594
|
background: var(--surface-invert, #fff);
|
|
1595
1595
|
margin: 3.9px;
|
|
1596
1596
|
cursor: ${e=>e.$onlyVisual?"default":"pointer"};
|
|
@@ -1606,7 +1606,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1606
1606
|
width: auto;
|
|
1607
1607
|
max-width: none;
|
|
1608
1608
|
`}
|
|
1609
|
-
`,
|
|
1609
|
+
`,pr=r($)`
|
|
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 i,jsxs as o,Fragment
|
|
|
1615
1615
|
font-weight: 500;
|
|
1616
1616
|
font-size: 14px !important;
|
|
1617
1617
|
text-align: center;
|
|
1618
|
-
`,
|
|
1618
|
+
`,ur=e=>o(cr,{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:o(pr,{type:"p",children:e.title})}),hr=r.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 "+d.line.primary:"design2"===e.$design?"0 0 0 1px "+d.line.soft:"0 0 0 1px "+d.text.white};
|
|
1626
1626
|
background: var(--surface-invert, #fff);
|
|
1627
1627
|
margin: 3.9px;
|
|
1628
1628
|
margin-bottom: 8px;
|
|
@@ -1639,14 +1639,14 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1639
1639
|
width: auto;
|
|
1640
1640
|
max-width: none;
|
|
1641
1641
|
`}
|
|
1642
|
-
`,
|
|
1642
|
+
`,gr=r($)`
|
|
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
|
+
`,fr=r($)`
|
|
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 i,jsxs as o,Fragment
|
|
|
1654
1654
|
font-style: normal;
|
|
1655
1655
|
font-weight: 400;
|
|
1656
1656
|
line-height: 20px;
|
|
1657
|
-
`,
|
|
1657
|
+
`,xr=e=>i(hr,{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:[o(gr,{type:"p",children:e.title}),o(fr,{type:"p",children:e.subtitle})]}),mr=r.div`
|
|
1658
1658
|
display: flex;
|
|
1659
1659
|
flex-direction: row;
|
|
1660
1660
|
flex-wrap: wrap;
|
|
1661
|
-
`,
|
|
1661
|
+
`,yr=e=>{const[t,i]=u(e.optionsSelected?e.optionsSelected:[]);h(()=>{e.optionsSelected&&i(e.optionsSelected)},[e.optionsSelected]);const n=o=>{if("single"===e.type){t.findIndex(e=>e.id===o.id)>-1?(i([]),e.onChange&&e.onChange([])):(i([o]),e.onChange&&e.onChange([o]))}else if("multiple"===e.type){const n=[...t],r=n.findIndex(e=>e.id===o.id);r>-1?n.splice(r,1):n.push(o),i(n),e.onChange&&e.onChange(n)}};return o(mr,{role:"container",style:e.style,children:e.options.map((i,r)=>{const l=t.some(e=>e.id===i.id);return i.subtitle?o(xr,{role:i.id,title:i.title,subtitle:i.subtitle,selected:l,onlyVisual:e.onlyVisual,design:e.design,onClick:()=>n(i)},i.id):o(ur,{role:i.id,title:i.title,selected:l,onlyVisual:e.onlyVisual,design:e.design,onClick:()=>n(i)},i.id)})})},br=r.div``,vr=r.div`
|
|
1662
1662
|
display: flex;
|
|
1663
1663
|
flex-direction: row;
|
|
1664
1664
|
margin-bottom: 24px;
|
|
@@ -1666,10 +1666,10 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1666
1666
|
&:hover {
|
|
1667
1667
|
text-decoration: ${e=>e.$selected?"none":"underline"};
|
|
1668
1668
|
}
|
|
1669
|
-
`,
|
|
1669
|
+
`,wr=r.div`
|
|
1670
1670
|
display: flex;
|
|
1671
1671
|
flex-direction: column;
|
|
1672
|
-
|
|
1672
|
+
`,$r=e=>{const[t,n]=u(0);return o(br,{role:"container",style:e.style,children:e.options.map((r,l)=>{const a=t===l;return i(vr,{role:r.id,$selected:a,onClick:()=>(o=>{n(o===t?void 0:o),e.onClick&&e.onClick(o)})(l),children:[o(wr,{children:o(a?M:B,{width:20,height:20,color:d.text.high,style:{marginTop:3}})}),i(wr,{style:{marginLeft:12},children:[o($,{type:"p",weight:"medium",children:r.title}),o($,{type:"p2",style:{display:a?"flex":"none",marginTop:8,color:c.text.neutralMedium},children:r.description})]})]},r.id+l)})})};var Cr="styles-module_fcc__container__zadQu",kr="styles-module_fcc__digit_block_container__PpRXT",Lr="styles-module_fcc__digit_block__BTDZJ",Fr="styles-module_fcc__current_below__HQtVT",Sr="styles-module_fcc__next_above__V8I1M",_r="styles-module_fcc__card__TY7mL",Dr="styles-module_fcc__flipped__yL0nE",zr="styles-module_fcc__card_face__qnzxT",jr="styles-module_fcc__card_face_front__RD6TB",Or="styles-module_fcc__card_face_back__VzEYT";function Mr(e){const{current:t,next:n,className:r}=e,[l,a]=p.useState({current:t,next:n}),[d,s]=p.useState(!1);p.useEffect(()=>{l.current!==t?(l.current===l.next&&a(Object.assign(Object.assign({},l),{next:n})),s(!0)):s(!1)},[t,n]);return i("div",{className:Ie(Lr,r),children:[o("div",{className:Sr,children:l.next}),o("div",{className:Fr,children:l.current}),i("div",{className:Ie(_r,{[Dr]:d}),onTransitionEnd:()=>{a({current:t,next:n}),s(!1)},children:[o("div",{className:Ie(zr,jr),children:l.current}),o("div",{className:Ie(zr,Or),children:l.next})]})]})}function Br(e){const[t,i]=u(e.amount>0?e.amount-10:0),n=x(t);n.current=t;const r=x(0);function l(){window.clearInterval(r.current)}function a(){i(n.current+1),n.current+1>=e.amount&&l()}h(()=>(l(),i(e.amount>0?e.amount-(e.amount>=10?10:e.amount):0),r.current=window.setInterval(a,400),()=>l()),[e.amount]);const d=v(()=>[function(t){const o=e.amount.toString().length,i=t.toString().split(""),n=(t+1).toString().split("");for(var r=0;r<o&&o-i.length-r!==0;r++);return{current:i,next:n}}(t)],[t]),s=v(()=>({"--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 o("div",{className:Cr,"data-testid":"fcc-container",style:s,children:d.map((e,t)=>o(w,{children:o("div",{className:kr,children:e.current.map((t,i)=>o(Mr,{current:e.current[i],next:e.next[i]},i))})},`digit-block-${t}`))})}yo('.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 Er=r.div`
|
|
1673
1673
|
position: relative;
|
|
1674
1674
|
width: fit-content;
|
|
1675
1675
|
width: 108px;
|
|
@@ -1678,7 +1678,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1678
1678
|
height: 120px;
|
|
1679
1679
|
width: 96px;
|
|
1680
1680
|
`}
|
|
1681
|
-
|
|
1681
|
+
`,Hr=r.div`
|
|
1682
1682
|
display: flex;
|
|
1683
1683
|
align-items: center;
|
|
1684
1684
|
justify-content: center;
|
|
@@ -1691,20 +1691,20 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as i,jsxs as o,Fragment
|
|
|
1691
1691
|
height: 84px;
|
|
1692
1692
|
width: 84px;
|
|
1693
1693
|
`}
|
|
1694
|
-
`,
|
|
1694
|
+
`,Ar=r.div`
|
|
1695
1695
|
position: absolute;
|
|
1696
1696
|
top: 0px;
|
|
1697
1697
|
bottom: 0px;
|
|
1698
1698
|
left: 0px;
|
|
1699
1699
|
right: 0px;
|
|
1700
|
-
`,
|
|
1700
|
+
`,Pr=r.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
|
-
`,Fr=e=>e.isMobile?o("svg",{width:"102",height:"126",viewBox:"0 0 102 126",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o("g",{filter:"url(#filter0_d_13051_9213)",children:[i("rect",{x:"10",y:"9",width:"82",height:"82",fill:"white"}),i("rect",{x:"10",y:"9",width:"82",height:"82",stroke:"white","stroke-width":"2"}),i("rect",{width:"84",height:"24",transform:"translate(9 92)",fill:"white"}),i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 2C95 4.20914 96.7909 6 99 6L99 8L93 8L93 2L95 2Z",fill:"white"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 118C96.7909 118 95 119.791 95 122L93 122L93 116L99 116L99 118Z",fill:"white"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 122C7 119.791 5.20914 118 3 118L3 116L9 116L9 122L7 122Z",fill:"white"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"})]}),i("defs",{children:o("filter",{id:"filter0_d_13051_9213",x:"0",y:"0",width:"102",height:"126",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[i("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),i("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"}),i("feOffset",{dy:"1"}),i("feGaussianBlur",{stdDeviation:"1.5"}),i("feComposite",{in2:"hardAlpha",operator:"out"}),i("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"}),i("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13051_9213"}),i("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13051_9213",result:"shape"})]})})]}):o("svg",{width:"114",height:"138",viewBox:"0 0 114 138",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o("g",{filter:"url(#filter0_d_13052_9519)",children:[i("rect",{x:"10",y:"9",width:"94",height:"94",fill:"white"}),i("rect",{x:"10",y:"9",width:"94",height:"94",stroke:"white","stroke-width":"2"}),i("rect",{width:"96",height:"24",transform:"translate(9 104)",fill:"white"}),i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 2C107 4.20914 108.791 6 111 6L111 8L105 8L105 2L107 2Z",fill:"white"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M111 130C108.791 130 107 131.791 107 134L105 134L105 128L111 128L111 130Z",fill:"white"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 134C7 131.791 5.20914 130 3 130L3 128L9 128L9 134L7 134Z",fill:"white"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"}),i("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"})]}),i("defs",{children:o("filter",{id:"filter0_d_13052_9519",x:"0",y:"0",width:"114",height:"138",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[i("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),i("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"}),i("feOffset",{dy:"1"}),i("feGaussianBlur",{stdDeviation:"1.5"}),i("feComposite",{in2:"hardAlpha",operator:"out"}),i("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"}),i("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13052_9519"}),i("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13052_9519",result:"shape"})]})})]}),Sr=e=>{const t=window.innerWidth<=450;return o(wr,{role:"stamp",style:e.style,children:[i(Cr,{children:i(Fr,{isMobile:t})}),o(Lr,{children:[i($r,{$backgroundColor:e.backgroundColor,children:i(Ne,{type:"d1",children:e.icon})}),i(Ne,{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})]})]})},_r=r.div`
|
|
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`
|
|
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 i,jsxs as o,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:c.surface.primary:c.surface.neutralLow};
|
|
1717
1717
|
cursor: pointer;
|
|
1718
1718
|
transition: background 0.3s;
|
|
1719
|
-
`,
|
|
1719
|
+
`,Zr=r.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 i,jsxs as o,Fragment
|
|
|
1728
1728
|
top: 2px;
|
|
1729
1729
|
left: ${e=>e.$active?"22px":"2px"};
|
|
1730
1730
|
transition: left 0.3s;
|
|
1731
|
-
`,
|
|
1731
|
+
`,Rr=e=>{const[t,i]=u(!1);return h(()=>{e.active?i(e.active):i(!1)},[e.active]),o(Ir,{role:"container",$active:t,$color:e.color,onClick:()=>{e.onChange&&e.onChange(!t),i(!t)},children:o(Zr,{role:"tag",$active:t,children:t&&o(k,{color:e.color?e.color:c.text.primary,strokeWidth:3,height:18,width:18})})})};yo('.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');yo(".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 Nr=r.div`
|
|
1732
1732
|
padding: 6px 8px 2px;
|
|
1733
|
-
`,
|
|
1733
|
+
`,Wr=r.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: ${c.text.neutralMedium};
|
|
1740
1740
|
padding: 0px 6px;
|
|
1741
|
-
`,
|
|
1741
|
+
`,Yr=r.div``,Ur=r.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
|
+
`,qr=r.audio`
|
|
1748
1748
|
height: 30px;
|
|
1749
|
-
`,
|
|
1749
|
+
`,Gr=e=>{const[t,n]=u(void 0);return h(()=>{n(C["delivered"===e.message.state?"CheckCheck":"failed"===e.message.state?"X":"read"===e.message.state?"CheckCheck":"sent"===e.message.state?"Check":"Clock"])},[]),o("div",{role:e.message.role,className:`bubble-container ${"sender"===e.message.type?"bubble-direction-reverse":""} `,children:i("div",{className:"bubble "+("sender"===e.message.type?"you":"me"),children:[e.message.media&&e.message.media.length>0&&i(Yr,{children:[e.message.media[0].content_type.startsWith("image")&&o(Ur,{src:e.message.media[0].base64?e.message.media[0].base64:e.message.media[0].url}),e.message.media[0].content_type.startsWith("audio")&&i(qr,{className:"sender"===e.message.type?"you--audio":"me--audio",controls:!0,controlsList:"nodownload",children:[o("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&&o(Nr,{children:e.message.text}),i(Wr,{children:[oe(e.message.createdAt).format("HH:mm"),t&&o(t,{height:14,width:14,color:"read"===e.message.state?c.text.primary:c.text.neutralMedium})]})]})},e.message.key)},Jr=r.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?c.surface.neutralSoft:"transparent"};
|
|
1756
1756
|
&:hover {
|
|
1757
|
-
background-color: ${
|
|
1757
|
+
background-color: ${c.surface.neutralSoft};
|
|
1758
1758
|
}
|
|
1759
|
-
`,
|
|
1759
|
+
`,Kr=e=>{const[t,n]=u(void 0);return o(he,{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:!t,onClick:()=>{e.onSend({template:t}),e.onClose()}},contentStyle:{paddingBottom:24},onClose:e.onClose,children:e.templates.map((e,r)=>{const l=t===e.id;return i(Jr,{title:e.description,$isSelected:l,onClick:()=>n(e.id),children:[o($,{type:"p",children:e.title}),o($,{type:"p2",style:{color:c.text.neutralMedium},children:e.subtitle})]},"template-"+r)})})},Qr=r.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 i,jsxs as o,Fragment
|
|
|
1765
1765
|
height: 100vh;
|
|
1766
1766
|
background-color: "white";
|
|
1767
1767
|
overflow: hidden;
|
|
1768
|
-
`,
|
|
1768
|
+
`,Xr=r.div`
|
|
1769
1769
|
overflow: scroll;
|
|
1770
1770
|
padding: 24px 16px 32px;
|
|
1771
1771
|
${s.lessThan("small")`
|
|
1772
1772
|
padding: 16px 16px 32px;
|
|
1773
1773
|
`}
|
|
1774
|
-
`,
|
|
1774
|
+
`,el=r.div`
|
|
1775
1775
|
position: sticky;
|
|
1776
1776
|
bottom: 0px;
|
|
1777
1777
|
padding: 8px 24px 24px;
|
|
1778
1778
|
${s.lessThan("small")`
|
|
1779
1779
|
padding: 8px 16px 24px;
|
|
1780
1780
|
`}
|
|
1781
|
-
`,
|
|
1781
|
+
`,tl=r.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
|
+
`,ol=r($)`
|
|
1788
1788
|
padding: 0px 8px;
|
|
1789
|
-
`,
|
|
1789
|
+
`,il=r.div`
|
|
1790
1790
|
display: flex;
|
|
1791
1791
|
flex: 1;
|
|
1792
|
-
border-top: 1px solid ${
|
|
1792
|
+
border-top: 1px solid ${c.border.neutralSoft};
|
|
1793
1793
|
height: 1px;
|
|
1794
|
-
`,
|
|
1794
|
+
`,nl=r.div`
|
|
1795
1795
|
display: flex;
|
|
1796
|
-
background-color: ${
|
|
1796
|
+
background-color: ${c.surface.secondary};
|
|
1797
1797
|
margin: 0 18px;
|
|
1798
1798
|
padding: 2px 8px;
|
|
1799
1799
|
border-radius: 6px 6px 0px 0px;
|
|
1800
|
-
`,
|
|
1800
|
+
`,rl=e=>{const t=x(null),[n,r]=u({}),[l,a]=u(!1),[d,s]=u(!1);h(()=>{c(e.messages);const o=e.messages.slice().reverse().find(e=>"recipient"===e.type);if(console.log(o),o){oe().diff(oe(o.createdAt),"hours")>=24&&a(!0)}else a(!0);t.current&&t.current.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},[e.messages]);const c=e=>{const t=e.reduce((e,t)=>{const o=Ze(new Date(t.createdAt),"yyyy-MM-dd");return e[o]||(e[o]=[]),e[o].push(t),e},{});r(t)};return i(Qr,{role:"container",style:e.style,children:[o(Kr,{isVisible:d,templates:e.templates,onSend:e.onSend,onClose:()=>s(!1)}),o(Xr,{ref:t,children:Object.keys(n).map(e=>i(w,{children:[i(tl,{children:[o(il,{}),o(ol,{type:"c1",children:oe(e).format("ddd DD MMM")}),o(il,{})]}),n[e].map((e,t)=>o(Gr,{message:e},e.key))]},e))}),i(el,{children:[l&&o(nl,{children:o($,{type:"c2",children:"El último mensaje es de hace más de 24 horas. Continuar la conversación usando plantillas."})}),o(Re,{loading:e.loading,disabled:l,placeholder:e.placeholder,options:[{id:"template",label:"Plantillas",icon:o(K,{})},{id:"image",label:"Fotos",icon:o(j,{})}],onOptionClick:t=>{if("template"===t)s(!0);else if("image"===t){const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=t=>{var o;const i=null===(o=t.target.files)||void 0===o?void 0:o[0];if(i){const t=new FileReader;t.onloadend=()=>{const o=t.result;e.onSend({media:{base64:o,contentType:"image/*"}})},t.readAsDataURL(i)}},t.click()}},onSend:t=>e.onSend(t)})]})]})},ll=r.div`
|
|
1801
1801
|
display: flex;
|
|
1802
1802
|
flex-direction: column;
|
|
1803
1803
|
gap: 8px;
|
|
1804
|
-
`,
|
|
1804
|
+
`,al=r.div`
|
|
1805
1805
|
display: flex;
|
|
1806
1806
|
flex-direction: row;
|
|
1807
1807
|
gap: 8px;
|
|
1808
|
-
`,
|
|
1808
|
+
`,dl=r.div`
|
|
1809
1809
|
display: ${e=>e.visible?"flex":"none"};
|
|
1810
1810
|
flex-direction: column;
|
|
1811
1811
|
gap: 8px;
|
|
1812
|
-
`,
|
|
1812
|
+
`,sl=n=>{var r;const[l,a]=u(n.defaultLocation),[d,s]=u(void 0),[,c]=u(!1);h(()=>{a(n.defaultLocation)},[n.defaultLocation]);let p="";return i(ll,{style:n.style,children:[o(Ne,{design:n.design,isLoaded:n.isLoaded,placeholder:n.placeholder?n.placeholder:"Nombre y número de la calle",defaultValue:l&&l.route?`${l.route} ${l.routeNumber}`:void 0,isForm:!0,error:d,onLocationChange:o=>t(void 0,void 0,void 0,function*(){var t,i,r,d;if(s(void 0),o.route&&o.routeNumber){const t=`${o.route} ${o.routeNumber}, ${o.zipCode}, ${o.city}, ${o.province}, ${o.country}`,i=e(null!=l?l:{},["routeInfo"]),r=Object.assign(Object.assign(Object.assign({},i),o),{address:t});a(r),n.onSubmit({data:r})}else{p=o.route&&o.routeNumber?`${o.route} ${o.routeNumber}, ${(null==l?void 0:l.routeInfo)?l.routeInfo+", ":""}${null!==(t=o.zipCode)&&void 0!==t?t:""}, ${null!==(i=o.city)&&void 0!==i?i:""}, ${null!==(r=o.province)&&void 0!==r?r:""}, ${null!==(d=o.country)&&void 0!==d?d:""}`:"",a(Object.assign(Object.assign({},l),{route:o.route,routeNumber:o.routeNumber?o.routeNumber:"",address:p,routeInfo:null==l?void 0:l.routeInfo}));const e="Añade la dirección completa, incluyendo el número de la calle",u=e+".";c(t=>{const o=!t,i=o?e:u;return s(i),n.onSubmit({error:i}),o})}})}),i(dl,{visible:!!(null==l?void 0:l.route),children:[o(Ve,{containerStyle:{flex:1},type:"text",placeholder:"Apartamento, suite, unidad, edificio o piso",design:n.design,value:null!==(r=null==l?void 0:l.routeInfo)&&void 0!==r?r:"",onChange:e=>{if(l){const t=`${l.route} ${l.routeNumber}, ${e.target.value}, ${l.zipCode}, ${l.city}, ${l.province}, ${l.country}`,o=Object.assign(Object.assign({},l),{address:t,routeInfo:e.target.value});a(o),n.onSubmit({data:o})}}}),i(al,{children:[o(Ve,{containerStyle:{flex:3},type:"text",placeholder:"Ciudad",design:n.design,value:null==l?void 0:l.city,disabled:!0}),o(Ve,{containerStyle:{flex:2},type:"text",placeholder:"Código postal",design:n.design,value:null==l?void 0:l.zipCode,disabled:!0})]}),o(Ve,{type:"text",placeholder:"Provincia",design:n.design,value:null==l?void 0:l.province,disabled:!0})]})]})},cl=e=>"location"===e.type?o(sl,Object.assign({},e)):null,pl=r.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 i,jsxs as o,Fragment
|
|
|
1818
1818
|
padding: 10px;
|
|
1819
1819
|
cursor: pointer;
|
|
1820
1820
|
&:hover {
|
|
1821
|
-
background-color: ${
|
|
1821
|
+
background-color: ${c.surface.neutralSoft};
|
|
1822
1822
|
}
|
|
1823
|
-
`,
|
|
1823
|
+
`,ul=r.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 i,jsxs as o,Fragment
|
|
|
1830
1830
|
gap: 4px;
|
|
1831
1831
|
margin: 0px -4px;
|
|
1832
1832
|
&:hover {
|
|
1833
|
-
background-color: ${
|
|
1833
|
+
background-color: ${c.surface.neutralSoft};
|
|
1834
1834
|
}
|
|
1835
1835
|
${s.lessThan("medium")`
|
|
1836
1836
|
padding: 12px 0px;
|
|
1837
|
-
border-bottom: 1px solid ${
|
|
1837
|
+
border-bottom: 1px solid ${c.border.neutralSoft};
|
|
1838
1838
|
border-radius: 0px;
|
|
1839
1839
|
`}
|
|
1840
|
-
`,
|
|
1840
|
+
`,hl=r.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: ${c.surface.primary};
|
|
1848
|
+
`,gl=e=>{const t=window.innerWidth<=450,[r,l]=u(e.selectedOption||e.options[0]),[a,d]=u(!1);h(()=>{e.selectedOption?l(e.selectedOption):e.options.length>0&&l(e.options[0])},[e.selectedOption,e.options]);return i(n,{children:[i(he,{isVisible:a,type:t?"full-screen":"default",hideHeader:!0,contentStyle:{paddingBottom:12},onClose:()=>d(!1),children:[o($,{type:"p",weight:"medium",style:{marginBottom:8},children:"Selecciona una divisa"}),e.options.map((n,a)=>{const s=r.currency===n.currency;return i(ul,{$isSelected:s,onClick:()=>(t=>{var o;l(t),d(!1),null===(o=e.onChange)||void 0===o||o.call(e,t)})(n),children:[!t&&s&&o(k,{height:16,width:16,color:c.text.primary}),i($,{type:"p2",style:{flex:1},children:[n.name," (",n.symbol,")"]}),t&&s&&o(hl,{children:o(k,{height:16,width:16,color:"white"})})]},a)})]}),o(pl,{style:e.style,onClick:()=>d(!0),children:i($,{type:"b2",children:[r.symbol," ",r.currency]})})]})},fl=a`
|
|
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
|
+
`,xl=r.span`
|
|
1854
1854
|
display: inline-block;
|
|
1855
|
-
animation: ${
|
|
1856
|
-
`,
|
|
1855
|
+
animation: ${fl} 2.5s ease-in-out infinite;
|
|
1856
|
+
`,ml=t=>{var{children:n}=t,r=e(t,["children"]);const[l,a]=u(0);h(()=>{const e=setInterval(()=>{a(e=>(e+1)%r.options.length)},r.interval?r.interval:2500);return()=>clearInterval(e)},[r.options.length]);const[d,s]=null==n?void 0:n.split("{{data}}");return i(dt,Object.assign({},r,{children:[d,o(xl,{children:r.options[l]},r.options[l]),s]}))},yl=r.div`
|
|
1857
1857
|
position: relative;
|
|
1858
1858
|
display: inline-block;
|
|
1859
|
-
`,
|
|
1859
|
+
`,bl=r.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 ${c.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
|
+
${yl}:hover & {
|
|
1871
1871
|
display: block;
|
|
1872
1872
|
}
|
|
1873
|
-
`,
|
|
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{Yi as Avatar,Ue as BreadCrumb,Bt as Button,Nn as CellSelector,rl as Chat,hn as Checkbox,wl as Color,$l as ColorV2,sr as Countdown,Br as Counter,gl as CurrencySelector,vn as Dropdown,$r as FAQs,yt as Feedback,an as Filter,cl as Form,vl as Hover,oo as Input,ao as InputBirthday,uo as InputChat,mo as InputCode,vo as InputDateRange,Do as InputImage,Bo as InputLocation,Ro as InputPhone,ci as InputPrice,ei as InputRange,Ii as Label,Hi as Menu,ji as Modal,ar as Pagination,tr as Payout,ht as ProgressBar,Tn as RadioButton,bi as SearchBar,fi as Select,Vr as Stamp,Rr as Switch,nr as SwitchTag,Jn as Tabs,yr as TagSelector,dt as Text,ml as TextAnimated,Mn as TextArea};
|
|
1874
1874
|
//# sourceMappingURL=index.js.map
|