@adoptaunabuelo/react-components 0.3.152 → 0.3.155
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/Tabs/Tabs.d.ts +2 -2
- package/dist/esm/index.js +105 -60
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -925,14 +925,14 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
925
925
|
align-items: center;
|
|
926
926
|
justify-content: center;
|
|
927
927
|
padding: 14px 16px;
|
|
928
|
-
height:
|
|
928
|
+
height: 64px;
|
|
929
|
+
box-sizing: border-box;
|
|
929
930
|
border-radius: 16px;
|
|
930
|
-
box-shadow: ${e=>e.$selected?`0 0 0 2px ${De.border.primary}`:`0 0 0 1px ${De.border.neutralSoft}`};
|
|
931
|
+
box-shadow: ${e=>e.$selected?`inset 0 0 0 2px ${De.border.primary}`:`inset 0 0 0 1px ${De.border.neutralSoft}`};
|
|
931
932
|
cursor: pointer;
|
|
932
|
-
|
|
933
|
+
|
|
933
934
|
&:hover {
|
|
934
|
-
background-color: ${De.
|
|
935
|
-
box-shadow: 0 0 0 2px ${De.border.primary};
|
|
935
|
+
background-color: ${De.surface.neutralSoft};
|
|
936
936
|
}
|
|
937
937
|
`,ci=r.input`
|
|
938
938
|
font-family: Poppins;
|
|
@@ -959,15 +959,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
959
959
|
flex-direction: column;
|
|
960
960
|
align-items: center;
|
|
961
961
|
justify-content: center;
|
|
962
|
-
height:
|
|
963
|
-
box-
|
|
962
|
+
height: 64px;
|
|
963
|
+
box-sizing: border-box;
|
|
964
|
+
box-shadow: ${e=>e.$focus||e.$isSelected?`inset 0 0 0 2px ${De.border.primary}`:e.$error?`inset 0 0 0 2px ${De.border.red}`:`inset 0 0 0 1px ${De.border.neutralSoft}`};
|
|
964
965
|
border-radius: 16px;
|
|
965
966
|
padding: 14px 16px;
|
|
966
967
|
background-color: ${e=>e.$isSelected||e.$focus?De.border.primarySoft:"transparent"};
|
|
967
968
|
cursor: pointer;
|
|
968
969
|
&:hover {
|
|
969
|
-
background-color: ${De.border.
|
|
970
|
-
box-shadow: 0 0 0 2px ${De.border.primary};
|
|
970
|
+
background-color: ${De.border.neutralSoft};
|
|
971
971
|
}
|
|
972
972
|
`,hi=r.div`
|
|
973
973
|
display: flex;
|
|
@@ -975,9 +975,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
975
975
|
`,ui=r(Re)`
|
|
976
976
|
position: relative;
|
|
977
977
|
padding: 8px 12px;
|
|
978
|
-
background-color: ${De.surface.
|
|
978
|
+
background-color: ${De.surface.neutralSoft};
|
|
979
979
|
border-radius: 8px;
|
|
980
|
-
color:
|
|
980
|
+
color: ${De.text.neutralHard};
|
|
981
981
|
max-width: 50%;
|
|
982
982
|
text-align: center;
|
|
983
983
|
${d.lessThan("small")`
|
|
@@ -989,7 +989,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
989
989
|
position: absolute;
|
|
990
990
|
width: 0;
|
|
991
991
|
height: 0;
|
|
992
|
-
border-top: 11px solid ${De.surface.
|
|
992
|
+
border-top: 11px solid ${De.surface.neutralSoft};
|
|
993
993
|
border-left: 8px solid transparent;
|
|
994
994
|
border-right: 8px solid transparent;
|
|
995
995
|
top: 100%;
|
|
@@ -997,7 +997,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
997
997
|
margin-left: -8px;
|
|
998
998
|
margin-top: -1px;
|
|
999
999
|
}
|
|
1000
|
-
`,gi=e=>{const t=k,o=x(null),r=x([]),a=x(null),[l,d]=c(void 0),[s,h]=c(""),[u,g]=c(!1),[m,f]=c(""),[y,b]=c(24);p(()=>{d(e.defaultOption)},[e.defaultOption]),p(()=>{if(e.options.length>0){const t=e.options[e.options.length-1].price.toString().length;t>5?b(16):t>4?b(18):t>3&&b(21)}},[e.options]),p(()=>{const t=e.options.findIndex(e=>e.price===l);if(-1!==t&&r.current[t]&&o.current){const e=o.current,n=r.current[t],i=e.offsetWidth,a=n.offsetWidth,l=n.offsetLeft-(i/2-a/2);e.scrollTo({left:l,behavior:"smooth"})}},[l]);return i(ai,{style:e.style,ref:o,children:[e.label&&e.labelValueConversion&&!e.options[0].data&&n(hi,{style:{justifyContent:l?0===e.options.findIndex(e=>e.price===l)?"flex-start":1===e.options.findIndex(e=>e.price===l)?"center":"flex-end":"center"},children:i(ui,{type:"c1",children:[e.label.replace("{{value}}",(e.labelValueConversion*(l||(s?parseInt(s):0))).toFixed(0)),n(xi,{$position:l?0===e.options.findIndex(e=>e.price===l)?"left":1===e.options.findIndex(e=>e.price===l)?"center":"right":"center"})]})}),n(di,{style:e.containerStyle,children:e.options.map((o,a)=>{const c=l===o.price&&0===s.length;return i(si,{ref:e=>{r.current[a]=e},$selected:c,$data:!!o.data,onClick:()=>(t=>{h(""),f(""),d(t),e.onChange&&e.onChange(t)})(o.price),children:[i(Re,{type:"h3",weight:"medium",style:{fontSize:y},children:[o.price.toLocaleString("es-ES",{useGrouping:!0}),n("span",{style:{fontSize:y-6},children:e.currency})]}),o.data&&o.data.length>0&&n("div",{style:{display:"flex",flexDirection:"column",gap:3,marginTop:12,paddingTop:12,borderTop:"1px solid "+De.border.neutralSoft},children:o.data.map((e,o)=>{const r=e.icon?t[e.icon]:t.Check;return i("div",{style:{display:"flex",gap:8},children:[n(r,{height:16,width:16,color:De.text.primary}),n(Re,{type:"c1",style:{flex:1},children:e.title})]},`column-${a}-data-${o}`)})})]},"price-option-"+a)})}),!e.hideCustomAmount&&i(pi,{$focus:u,$isSelected:s.length>0,$error:m.length>0,onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.focus()},children:[i(li,{$data:!!e.options[0].data,children:[n(ci,{ref:a,style:{fontSize:y,width:s.length>0?s.length+"ch":"unset"},type:"number",value:s,placeholder:"Otra cantidad",onChange:e=>{h(e.target.value)},onFocus:e=>{g(!0),f(""),d(void 0)},onBlur:t=>{g(!1);const n=parseInt(t.target.value),i=e.options[0].price;n<i||!n?f(`La donación mínima es de ${i}${e.currency}`):(f(""),e.onChange&&e.onChange(t.target.value.length>0?n:l||0))}}),s.length>0&&n(Re,{type:"h6",weight:"medium",style:{fontSize:18,marginTop:6},children:e.currency})]}),e.customAmountData&&n("div",{style:{marginTop:12,paddingTop:12,borderTop:"1px solid "+De.border.neutralSoft},children:e.customAmountData}),m&&n(Re,{type:"p2",weight:"medium",style:{marginTop:4,color:De.text.red,textAlign:"center"},children:m})]})]})},mi=r.div`
|
|
1000
|
+
`,gi=e=>{const t=k,o=x(null),r=x([]),a=x(null),[l,d]=c(void 0),[s,h]=c(""),[u,g]=c(!1),[m,f]=c(""),[y,b]=c(24);p(()=>{d(e.defaultOption)},[e.defaultOption]),p(()=>{if(e.options.length>0){const t=e.options[e.options.length-1].price.toString().length;t>5?b(16):t>4?b(18):t>3&&b(21)}},[e.options]),p(()=>{const t=e.options.findIndex(e=>e.price===l);if(-1!==t&&r.current[t]&&o.current){const e=o.current,n=r.current[t],i=e.offsetWidth,a=n.offsetWidth,l=n.offsetLeft-(i/2-a/2);e.scrollTo({left:l,behavior:"smooth"})}},[l]);return i(ai,{style:e.style,ref:o,children:[e.label&&e.labelValueConversion&&!e.options[0].data&&n(hi,{style:{justifyContent:l?0===e.options.findIndex(e=>e.price===l)?"flex-start":1===e.options.findIndex(e=>e.price===l)?"center":"flex-end":"center"},children:i(ui,{type:"c1",children:[e.label.replace("{{value}}",(e.labelValueConversion*(l||(s?parseInt(s):0))).toFixed(0)),n(xi,{$position:l?0===e.options.findIndex(e=>e.price===l)?"left":1===e.options.findIndex(e=>e.price===l)?"center":"right":"center"})]})}),n(di,{style:e.containerStyle,children:e.options.map((o,a)=>{const c=l===o.price&&0===s.length;return i(si,{ref:e=>{r.current[a]=e},$selected:c,$data:!!o.data,onClick:()=>(t=>{h(""),f(""),d(t),e.onChange&&e.onChange(t)})(o.price),children:[i(Re,{type:"h3",weight:"medium",style:{fontSize:y},children:[o.price.toLocaleString("es-ES",{useGrouping:!0}),n("span",{style:{fontSize:y-6,marginLeft:2},children:e.currency})]}),o.data&&o.data.length>0&&n("div",{style:{display:"flex",flexDirection:"column",gap:3,marginTop:12,paddingTop:12,borderTop:"1px solid "+De.border.neutralSoft},children:o.data.map((e,o)=>{const r=e.icon?t[e.icon]:t.Check;return i("div",{style:{display:"flex",gap:8},children:[n(r,{height:16,width:16,color:De.text.primary}),n(Re,{type:"c1",style:{flex:1},children:e.title})]},`column-${a}-data-${o}`)})})]},"price-option-"+a)})}),!e.hideCustomAmount&&i(pi,{$focus:u,$isSelected:s.length>0,$error:m.length>0,onClick:()=>{var e;return null===(e=a.current)||void 0===e?void 0:e.focus()},children:[i(li,{$data:!!e.options[0].data,children:[n(ci,{ref:a,style:{fontSize:y,width:s.length>0?s.length+"ch":"unset"},type:"number",value:s,placeholder:"Otra cantidad",onChange:e=>{h(e.target.value)},onFocus:e=>{g(!0),f(""),d(void 0)},onBlur:t=>{g(!1);const n=parseInt(t.target.value),i=e.options[0].price;n<i||!n?f(`La donación mínima es de ${i}${e.currency}`):(f(""),e.onChange&&e.onChange(t.target.value.length>0?n:l||0))}}),s.length>0&&n(Re,{type:"h6",weight:"medium",style:{fontSize:18,marginTop:6},children:e.currency})]}),e.customAmountData&&n("div",{style:{marginTop:12,paddingTop:12,borderTop:"1px solid "+De.border.neutralSoft},children:e.customAmountData}),m&&n(Re,{type:"p2",weight:"medium",style:{marginTop:4,color:De.text.red,textAlign:"center"},children:m})]})]})},mi=r.div`
|
|
1001
1001
|
position: relative;
|
|
1002
1002
|
`,fi=r.div`
|
|
1003
1003
|
display: flex;
|
|
@@ -1511,6 +1511,29 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1511
1511
|
width: fit-content;
|
|
1512
1512
|
gap: 4px;
|
|
1513
1513
|
`,Ho=r.div`
|
|
1514
|
+
position: relative;
|
|
1515
|
+
display: flex;
|
|
1516
|
+
flex-direction: row;
|
|
1517
|
+
width: fit-content;
|
|
1518
|
+
height: 40px;
|
|
1519
|
+
gap: 0;
|
|
1520
|
+
padding: 3px;
|
|
1521
|
+
box-sizing: border-box;
|
|
1522
|
+
border-radius: 999px;
|
|
1523
|
+
box-shadow: inset 0 0 0 1px ${Le.line.soft};
|
|
1524
|
+
background-color: ${Le.background.neutral};
|
|
1525
|
+
`,Vo=r.div`
|
|
1526
|
+
position: absolute;
|
|
1527
|
+
top: 3px;
|
|
1528
|
+
bottom: 3px;
|
|
1529
|
+
border-radius: 999px;
|
|
1530
|
+
background-color: ${Le.background.soft};
|
|
1531
|
+
box-shadow: 0 1px 2px ${Le.line.softTransparent};
|
|
1532
|
+
transition:
|
|
1533
|
+
transform 0.28s ease,
|
|
1534
|
+
width 0.28s ease;
|
|
1535
|
+
pointer-events: none;
|
|
1536
|
+
`,To=r.div`
|
|
1514
1537
|
display: flex;
|
|
1515
1538
|
flex: 1;
|
|
1516
1539
|
align-items: center;
|
|
@@ -1528,18 +1551,40 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1528
1551
|
background-color: ${e.color?e.color:Le.status.neutral.hover};
|
|
1529
1552
|
}
|
|
1530
1553
|
`}
|
|
1531
|
-
`,
|
|
1554
|
+
`,Io=r.div`
|
|
1555
|
+
display: flex;
|
|
1556
|
+
flex: 1;
|
|
1557
|
+
align-items: center;
|
|
1558
|
+
justify-content: center;
|
|
1559
|
+
position: relative;
|
|
1560
|
+
z-index: 1;
|
|
1561
|
+
cursor: pointer;
|
|
1562
|
+
height: 34px;
|
|
1563
|
+
box-sizing: border-box;
|
|
1564
|
+
padding: 2px 16px;
|
|
1565
|
+
border-radius: 32px;
|
|
1566
|
+
white-space: nowrap;
|
|
1567
|
+
text-align: center;
|
|
1568
|
+
`,No=r(Re)`
|
|
1569
|
+
display: flex;
|
|
1570
|
+
align-items: center;
|
|
1571
|
+
justify-content: center;
|
|
1572
|
+
height: 100%;
|
|
1573
|
+
line-height: 1;
|
|
1574
|
+
color: ${e=>e.$selected?e.textColor?e.textColor:Le.text.deepBlue:Le.text.high};
|
|
1575
|
+
transition: color 0.2s ease;
|
|
1576
|
+
`,Zo=r(Re)`
|
|
1532
1577
|
font-size: 14px;
|
|
1533
1578
|
color: ${e=>e.$selected?e.textColor?e.textColor:Le.text.primary:Le.text.high};
|
|
1534
1579
|
width: max-content;
|
|
1535
1580
|
transition: color 0.15s ease-in;
|
|
1536
|
-
`,
|
|
1581
|
+
`,Ro=e=>{var t;const[o,r]=c(e.selectedOption?e.selectedOption:e.options[0]),a=x({}),[l,d]=c({width:0,left:0}),[s,h]=c(void 0);p(()=>{e.selectedOption&&r(e.selectedOption)},[e.selectedOption]),p(()=>{if("third"!==e.design||!o)return;const t=()=>{const t=e.options.map(e=>a.current[e.id]).filter(e=>Boolean(e)),n=e.options.findIndex(e=>e.id===o.id);if(0===t.length||-1===n)return;const i=Math.max(...t.map(e=>e.getBoundingClientRect().width));h(i),d({width:i,left:n*i})};return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e.design,e.options,o]);const u=t=>{r(t),e.onChange&&e.onChange(t)};return"secondary"===e.design?n(Ao,{role:"container",style:Object.assign({backgroundColor:e.backgroundColor},e.style),children:e.options.map(t=>{const i=o.id===t.id;return n(To,{role:t.id,$selected:i,onClick:()=>u(t),style:e.cellStyle,color:e.cellColor,children:n(Re,{type:"p",weight:"medium",style:Object.assign({fontSize:14,color:i?e.textColor?e.textColor:Le.text.primary:Le.text.high,width:"max-content"},e.textStyle),children:t.title})},t.id)})}):"third"===e.design?i(Ho,{role:"container",style:Object.assign({backgroundColor:e.backgroundColor},e.style),children:[n(Vo,{style:{width:l.width,transform:`translateX(${l.left}px)`,backgroundColor:null!==(t=e.cellColor)&&void 0!==t?t:Le.background.soft}}),e.options.map(t=>{const i=o.id===t.id;return n(Io,{role:t.id,ref:e=>{a.current[t.id]=e},onClick:()=>u(t),style:Object.assign({width:s,minWidth:s,boxSizing:"border-box"},e.cellStyle),children:n(No,{type:"p",weight:"medium",$selected:i,textColor:e.textColor,style:Object.assign({fontSize:14,width:"100%"},e.textStyle),children:t.title})},t.id)})]}):n(Eo,{role:"container",style:Object.assign({backgroundColor:e.backgroundColor},e.style),children:e.options.map(t=>{const i=o.id===t.id;return n(Oo,{role:t.id,$selected:i,onClick:()=>u(t),style:e.cellStyle,color:e.cellColor,children:n(Zo,{type:"p",weight:"medium",textColor:e.textColor,$selected:i,style:e.textStyle,children:t.title})},t.id)})})},Go=r.div`
|
|
1537
1582
|
box-shadow: 0 0 0
|
|
1538
1583
|
${e=>e.$focus?"secondary"===e.$design?"2px "+De.border.neutralMedium:"1px "+De.border.neutralHard:"secondary"===e.$design?"1px "+De.border.neutralSoft:"none"};
|
|
1539
1584
|
background-color: ${e=>e.$focus||"secondary"===e.$design?"white":e.$error?De.surface.redSoft:De.surface.neutralSoft};
|
|
1540
1585
|
border-radius: ${e=>"secondary"===e.$design?"12px":"6px"};
|
|
1541
1586
|
padding: ${e=>"secondary"===e.$design?"19px 16px":"10px 16px"};
|
|
1542
|
-
`,
|
|
1587
|
+
`,Wo=r.div`
|
|
1543
1588
|
margin: 0px 8px;
|
|
1544
1589
|
font-style: normal;
|
|
1545
1590
|
font-weight: 500;
|
|
@@ -1547,7 +1592,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1547
1592
|
line-height: 12px;
|
|
1548
1593
|
display: flex;
|
|
1549
1594
|
color: ${De.text.red};
|
|
1550
|
-
`,
|
|
1595
|
+
`,Yo=u((e,o)=>{var r;const[a,l]=c(void 0),[d,s]=c(void 0),[h,u]=c(void 0),[x,m]=c(void 0),[f,y]=c(void 0),[b,k]=c(!1),[v,w]=c(void 0),C=ye(),$=be();p(()=>{e.userData&&e.userData.email?s(e.userData.email):s(void 0)},[e.userData]),g(o,()=>({getPaymentMethod(){return t(this,void 0,void 0,function*(){return yield _()})}}));const L=e=>t(void 0,void 0,void 0,function*(){y(void 0),e.complete?w(e):w(void 0)}),_=()=>t(void 0,void 0,void 0,function*(){if(!($&&C&&v&&a))return a||u("Debes añadir el nombre del titular"),v||y("Debes añadir un método de pago válido"),void(d||m("Debes añadir un email válido"));if("iban"===v.elementType){e.onLoading&&e.onLoading(!0);const t=$.getElement(ke);if(t&&d){const{error:n,paymentMethod:i}=yield C.createPaymentMethod({type:"sepa_debit",sepa_debit:t,billing_details:{name:a,email:d}});return n?void(e.onLoading&&e.onLoading(!1)):(e.onLoading&&e.onLoading(!1),i)}return void(d||m("Debes añadir un email válido"))}{e.onLoading&&e.onLoading(!0);const t=$.getElement(ve);if(t){const{error:n,paymentMethod:i}=yield C.createPaymentMethod({type:"card",card:t,billing_details:{name:a}});return n?void(e.onLoading&&e.onLoading(!1)):(e.onLoading&&e.onLoading(!1),i)}}}),F=()=>{k(!0)},S=()=>{k(!1)};return i("div",{style:e.style,children:[n(Tt,{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,u(void 0),void l(t));var t},error:h}),"sepa_debit"===e.option&&!(null===(r=e.userData)||void 0===r?void 0:r.email)&&n(Tt,{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,m(void 0),void s(t));var t},error:x}),n(Go,{$error:!!f,$focus:b,$design:e.design,children:"card"===e.option?n(ve,{options:{style:{base:{fontFamily:"Poppins",fontSize:"secondary"===e.design?"15px":"14px","::placeholder":{color:De.text.neutralMedium}}},hidePostalCode:!0},onChange:L,onFocus:F,onBlur:S}):n(ke,{options:{supportedCountries:["SEPA"],style:{base:{fontFamily:"Poppins",fontSize:"secondary"===e.design?"15px":"14px","::placeholder":{color:De.text.neutralMedium}}}},onChange:L,onFocus:F,onBlur:S})}),f&&n(Wo,{children:n(Re,{type:"p",weight:"medium",style:{color:De.text.red,marginTop:4,fontSize:14},children:f})})]})}),Uo=r.div``,qo=u((e,o)=>{const r=x(null),a=x(null),[l,d]=c(()=>Ce(e.stripeKey)),[s,h]=c(!1);g(o,()=>({getPaymentMethod(){return t(this,void 0,void 0,function*(){var e;return yield null===(e=a.current)||void 0===e?void 0:e.getPaymentMethod()})}})),p(()=>{e.stripeConfirmUrl?h(!0):u()},[e.stripeConfirmUrl]),window.addEventListener("message",function(e){"3DS-authentication-complete"===e.data&&s&&u()},!1);const u=()=>{r.current&&r.current.close()};return i(Uo,{style:e.style,role:"container",children:[n($n,{ref:r,type:"web",isVisible:s,hideClose:!0,url:e.stripeConfirmUrl,style:{width:600,height:400,padding:0},onClose:()=>{h(!1),e.onSetupConfirmed&&e.onSetupConfirmed()}}),n(we,{stripe:l,options:{fonts:[{cssSrc:"https://fonts.googleapis.com/css2?family=Poppins&display=swap"}]},children:n(Yo,{ref:a,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})})]})}),Xo=r.div`
|
|
1551
1596
|
display: flex;
|
|
1552
1597
|
flex-direction: row;
|
|
1553
1598
|
border: 1px solid ${De.border.neutralSoft};
|
|
@@ -1556,7 +1601,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1556
1601
|
overflow: hidden;
|
|
1557
1602
|
padding: 2px;
|
|
1558
1603
|
background-color: ${De.surface.invert};
|
|
1559
|
-
`,
|
|
1604
|
+
`,Ko=r.div`
|
|
1560
1605
|
display: flex;
|
|
1561
1606
|
padding: 8px;
|
|
1562
1607
|
cursor: pointer;
|
|
@@ -1564,10 +1609,10 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1564
1609
|
border-radius: 100px;
|
|
1565
1610
|
align-items: center;
|
|
1566
1611
|
justify-content: center;
|
|
1567
|
-
`,
|
|
1612
|
+
`,Jo=e=>{const[t,i]=c(e.options[0]);return n(Xo,{role:"container",style:e.style,children:e.options.map(o=>{const r=o.id===t.id;return n(Ko,{role:o.id,$selected:r,onClick:()=>{i(o),e.onChange&&e.onChange(o)},children:s.cloneElement(o.icon,Object.assign({color:r?De.border.primary:De.border.neutralMedium,height:20,width:20},o.icon.props))},"switch"+o.id)})})},Qo=r.div`
|
|
1568
1613
|
display: flex;
|
|
1569
1614
|
align-items: center;
|
|
1570
|
-
`,
|
|
1615
|
+
`,er=r.div`
|
|
1571
1616
|
display: flex;
|
|
1572
1617
|
flex-direction: column;
|
|
1573
1618
|
justify-content: center;
|
|
@@ -1578,13 +1623,13 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1578
1623
|
&:hover {
|
|
1579
1624
|
background-color: ${Le.background.soft};
|
|
1580
1625
|
}
|
|
1581
|
-
`,
|
|
1626
|
+
`,tr=e=>{const[t,o]=c(0),[r,a]=c(0);p(()=>{a(Math.ceil(e.length/e.rowsPerPage))},[e.length,e.rowsPerPage]),p(()=>{e.start&&e.start<r&&o(e.start)},[e.start]);return i(Qo,{role:"pagination",style:e.style,children:[n(er,{role:"first-arrow",onClick:()=>{t>0&&(o(0),e.onChange&&e.onChange(0))},style:{cursor:0===t?"auto":"pointer"},children:n(Z,{style:{stroke:0===t?Le.text.low:Le.text.full}})}),n(er,{role:"left-arrow",onClick:()=>{if(t>0){const n=t-1;o(n),e.onChange&&e.onChange(n)}},style:{cursor:0===t?"auto":"pointer"},children:n(R,{style:{stroke:0===t?Le.text.low:Le.text.full}})}),i(Re,{type:"p",style:{color:Le.text.full,margin:"0px 12px"},children:[n("span",{style:{fontWeight:700},children:t+1})," de"," ",n("span",{style:{fontWeight:700},children:r})]}),n(er,{role:"right-arrow",onClick:()=>{if(t<r-1){const n=t+1;o(n),e.onChange&&e.onChange(n)}},style:{cursor:t===r-1?"auto":"pointer"},children:n(G,{style:{stroke:t===r-1?Le.text.low:Le.text.full}})}),n(er,{role:"last-arrow",onClick:()=>{t<r-1&&(o(r-1),e.onChange&&e.onChange(r-1))},style:{cursor:t===r-1?"auto":"pointer"},children:n(W,{style:{stroke:t===r-1?Le.text.low:Le.text.full}})})]})},nr=r.div`
|
|
1582
1627
|
display: flex;
|
|
1583
1628
|
flex-direction: row;
|
|
1584
1629
|
padding: 10px 16px;
|
|
1585
1630
|
border-radius: 6px;
|
|
1586
1631
|
width: fit-content;
|
|
1587
|
-
`,
|
|
1632
|
+
`,ir=t=>{var o;X.locale("es");const{toDate:r,textColor:a,color:l}=t,d=e(t,["toDate","textColor","color"]),[s,h]=c(0),[u,x]=c(""),[g,m]=c(!1);p(()=>{r&&f()},[r]);const f=()=>{const e=X(r),t=X(),n=X.duration(e.diff(t)),i=n.asDays(),o=n.asHours();m(i<1&&o<2),n.locale("es"),h(n.asDays()),x(n.humanize())};return i(nr,Object.assign({role:"container"},d,{style:Object.assign({backgroundColor:g?Le.status.color.error:l||(null===(o=d.style)||void 0===o?void 0:o.backgroundColor)},d.style),children:[n(Y,{height:20,width:20,color:g?"white":a||Le.text.full,style:{marginRight:8}}),i(Re,{type:"p2",weight:"medium",style:{color:g?"white":a||Le.text.full},children:[u," ",s<0?"de retraso":"restantes"]})]}))},or=r.div`
|
|
1588
1633
|
display: flex;
|
|
1589
1634
|
flex-direction: column;
|
|
1590
1635
|
align-items: center;
|
|
@@ -1607,7 +1652,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1607
1652
|
width: auto;
|
|
1608
1653
|
max-width: none;
|
|
1609
1654
|
`}
|
|
1610
|
-
`,
|
|
1655
|
+
`,rr=r(Re)`
|
|
1611
1656
|
color: var(--text-clear-neutral-hard, rgba(0, 29, 61, 0.92));
|
|
1612
1657
|
font-feature-settings:
|
|
1613
1658
|
"liga" off,
|
|
@@ -1616,7 +1661,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1616
1661
|
font-weight: 500;
|
|
1617
1662
|
font-size: 14px !important;
|
|
1618
1663
|
text-align: center;
|
|
1619
|
-
`,
|
|
1664
|
+
`,ar=e=>n(or,{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:n(rr,{type:"p",children:e.title})}),lr=r.div`
|
|
1620
1665
|
display: flex;
|
|
1621
1666
|
flex-direction: column;
|
|
1622
1667
|
align-items: center;
|
|
@@ -1640,14 +1685,14 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1640
1685
|
width: auto;
|
|
1641
1686
|
max-width: none;
|
|
1642
1687
|
`}
|
|
1643
|
-
`,
|
|
1688
|
+
`,dr=r(Re)`
|
|
1644
1689
|
color: var(--text-clear-neutral-hard, rgba(0, 29, 61, 0.92));
|
|
1645
1690
|
font-feature-settings: "liga" off, "clig" off;
|
|
1646
1691
|
font-style: normal;
|
|
1647
1692
|
font-weight: 500;
|
|
1648
1693
|
font-size: 14px !important;
|
|
1649
1694
|
text-align: center;
|
|
1650
|
-
`,
|
|
1695
|
+
`,sr=r(Re)`
|
|
1651
1696
|
color: var(--text-clear-neutral-medium, rgba(0, 29, 61, 0.56));
|
|
1652
1697
|
text-align: center;
|
|
1653
1698
|
font-family: Poppins;
|
|
@@ -1655,11 +1700,11 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1655
1700
|
font-style: normal;
|
|
1656
1701
|
font-weight: 400;
|
|
1657
1702
|
line-height: 20px;
|
|
1658
|
-
`,
|
|
1703
|
+
`,cr=e=>i(lr,{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:[n(dr,{type:"p",children:e.title}),n(sr,{type:"p",children:e.subtitle})]}),pr=r.div`
|
|
1659
1704
|
display: flex;
|
|
1660
1705
|
flex-direction: row;
|
|
1661
1706
|
flex-wrap: wrap;
|
|
1662
|
-
`,
|
|
1707
|
+
`,hr=e=>{const[t,i]=c(e.optionsSelected?e.optionsSelected:[]);p(()=>{e.optionsSelected&&i(e.optionsSelected)},[e.optionsSelected]);const o=n=>{if("single"===e.type){t.findIndex(e=>e.id===n.id)>-1?(i([]),e.onChange&&e.onChange([])):(i([n]),e.onChange&&e.onChange([n]))}else if("multiple"===e.type){const o=[...t],r=o.findIndex(e=>e.id===n.id);r>-1?o.splice(r,1):o.push(n),i(o),e.onChange&&e.onChange(o)}};return n(pr,{role:"container",style:e.style,children:e.options.map((i,r)=>{const a=t.some(e=>e.id===i.id);return i.subtitle?n(cr,{role:i.id,title:i.title,subtitle:i.subtitle,selected:a,onlyVisual:e.onlyVisual,design:e.design,onClick:()=>o(i)},i.id):n(ar,{role:i.id,title:i.title,selected:a,onlyVisual:e.onlyVisual,design:e.design,onClick:()=>o(i)},i.id)})})},ur=r.div``,xr=r.div`
|
|
1663
1708
|
display: flex;
|
|
1664
1709
|
flex-direction: row;
|
|
1665
1710
|
margin-bottom: 24px;
|
|
@@ -1667,10 +1712,10 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1667
1712
|
&:hover {
|
|
1668
1713
|
text-decoration: ${e=>e.$selected?"none":"underline"};
|
|
1669
1714
|
}
|
|
1670
|
-
`,
|
|
1715
|
+
`,gr=r.div`
|
|
1671
1716
|
display: flex;
|
|
1672
1717
|
flex-direction: column;
|
|
1673
|
-
`,
|
|
1718
|
+
`,mr=e=>{const[t,o]=c(0);return n(ur,{role:"container",style:e.style,children:e.options.map((r,a)=>{const l=t===a;return i(xr,{role:r.id,$selected:l,onClick:()=>(n=>{o(n===t?void 0:n),e.onClick&&e.onClick(n)})(a),children:[n(gr,{children:n(l?M:P,{width:20,height:20,color:Le.text.high,style:{marginTop:3}})}),i(gr,{style:{marginLeft:12},children:[n(Re,{type:"p",weight:"medium",children:r.title}),n(Re,{type:"p2",style:{display:l?"flex":"none",marginTop:8,color:De.text.neutralMedium},children:r.description})]})]},r.id+a)})})};var fr="styles-module_fcc__container__zadQu",yr="styles-module_fcc__digit_block_container__PpRXT",br="styles-module_fcc__digit_block__BTDZJ",kr="styles-module_fcc__current_below__HQtVT",vr="styles-module_fcc__next_above__V8I1M",wr="styles-module_fcc__card__TY7mL",Cr="styles-module_fcc__flipped__yL0nE",$r="styles-module_fcc__card_face__qnzxT",Lr="styles-module_fcc__card_face_front__RD6TB",_r="styles-module_fcc__card_face_back__VzEYT";function Fr(e){const{current:t,next:o,className:r}=e,[a,l]=s.useState({current:t,next:o}),[d,c]=s.useState(!1);s.useEffect(()=>{a.current!==t?(a.current===a.next&&l(Object.assign(Object.assign({},a),{next:o})),c(!0)):c(!1)},[t,o]);return i("div",{className:$e(br,r),children:[n("div",{className:vr,children:a.next}),n("div",{className:kr,children:a.current}),i("div",{className:$e(wr,{[Cr]:d}),onTransitionEnd:()=>{l({current:t,next:o}),c(!1)},children:[n("div",{className:$e($r,Lr),children:a.current}),n("div",{className:$e($r,_r),children:a.next})]})]})}function Sr(e){const[t,i]=c(e.amount>0?e.amount-10:0),o=x(t);o.current=t;const r=x(0);function a(){window.clearInterval(r.current)}function l(){i(o.current+1),o.current+1>=e.amount&&a()}p(()=>(a(),i(e.amount>0?e.amount-(e.amount>=10?10:e.amount):0),r.current=window.setInterval(l,400),()=>a()),[e.amount]);const d=y(()=>[function(t){const n=e.amount.toString().length,i=t.toString().split(""),o=(t+1).toString().split("");for(var r=0;r<n&&n-i.length-r!==0;r++);return{current:i,next:o}}(t)],[t]),s=y(()=>({"--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 n("div",{className:fr,"data-testid":"fcc-container",style:s,children:d.map((e,t)=>n(b,{children:n("div",{className:yr,children:e.current.map((t,i)=>n(Fr,{current:e.current[i],next:e.next[i]},i))})},`digit-block-${t}`))})}dn('.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 Dr=r.div`
|
|
1674
1719
|
position: relative;
|
|
1675
1720
|
width: fit-content;
|
|
1676
1721
|
width: 108px;
|
|
@@ -1679,7 +1724,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1679
1724
|
height: 120px;
|
|
1680
1725
|
width: 96px;
|
|
1681
1726
|
`}
|
|
1682
|
-
`,
|
|
1727
|
+
`,zr=r.div`
|
|
1683
1728
|
display: flex;
|
|
1684
1729
|
align-items: center;
|
|
1685
1730
|
justify-content: center;
|
|
@@ -1692,20 +1737,20 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1692
1737
|
height: 84px;
|
|
1693
1738
|
width: 84px;
|
|
1694
1739
|
`}
|
|
1695
|
-
`,
|
|
1740
|
+
`,Mr=r.div`
|
|
1696
1741
|
position: absolute;
|
|
1697
1742
|
top: 0px;
|
|
1698
1743
|
bottom: 0px;
|
|
1699
1744
|
left: 0px;
|
|
1700
1745
|
right: 0px;
|
|
1701
|
-
`,
|
|
1746
|
+
`,Pr=r.div`
|
|
1702
1747
|
display: flex;
|
|
1703
1748
|
flex-direction: column;
|
|
1704
1749
|
align-items: center;
|
|
1705
1750
|
z-index: 1;
|
|
1706
1751
|
position: relative;
|
|
1707
1752
|
height: 100%;
|
|
1708
|
-
`,Dr=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:[n("rect",{x:"10",y:"9",width:"82",height:"82",fill:"white"}),n("rect",{x:"10",y:"9",width:"82",height:"82",stroke:"white","stroke-width":"2"}),n("rect",{width:"84",height:"24",transform:"translate(9 92)",fill:"white"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 2C95 4.20914 96.7909 6 99 6L99 8L93 8L93 2L95 2Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 118C96.7909 118 95 119.791 95 122L93 122L93 116L99 116L99 118Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 122C7 119.791 5.20914 118 3 118L3 116L9 116L9 122L7 122Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"})]}),n("defs",{children:i("filter",{id:"filter0_d_13051_9213",x:"0",y:"0",width:"102",height:"126",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[n("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),n("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"}),n("feOffset",{dy:"1"}),n("feGaussianBlur",{stdDeviation:"1.5"}),n("feComposite",{in2:"hardAlpha",operator:"out"}),n("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"}),n("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13051_9213"}),n("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:[n("rect",{x:"10",y:"9",width:"94",height:"94",fill:"white"}),n("rect",{x:"10",y:"9",width:"94",height:"94",stroke:"white","stroke-width":"2"}),n("rect",{width:"96",height:"24",transform:"translate(9 104)",fill:"white"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 2C107 4.20914 108.791 6 111 6L111 8L105 8L105 2L107 2Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M111 130C108.791 130 107 131.791 107 134L105 134L105 128L111 128L111 130Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 134C7 131.791 5.20914 130 3 130L3 128L9 128L9 134L7 134Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"})]}),n("defs",{children:i("filter",{id:"filter0_d_13052_9519",x:"0",y:"0",width:"114",height:"138",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[n("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),n("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"}),n("feOffset",{dy:"1"}),n("feGaussianBlur",{stdDeviation:"1.5"}),n("feComposite",{in2:"hardAlpha",operator:"out"}),n("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"}),n("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13052_9519"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13052_9519",result:"shape"})]})})]}),zr=e=>{const t=window.innerWidth<=450;return i(Lr,{role:"stamp",style:e.style,children:[n(Fr,{children:n(Dr,{isMobile:t})}),i(Sr,{children:[n(_r,{$backgroundColor:e.backgroundColor,children:n(Re,{type:"d1",children:e.icon})}),n(Re,{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})]})]})},Mr=r.div`
|
|
1753
|
+
`,jr=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:[n("rect",{x:"10",y:"9",width:"82",height:"82",fill:"white"}),n("rect",{x:"10",y:"9",width:"82",height:"82",stroke:"white","stroke-width":"2"}),n("rect",{width:"84",height:"24",transform:"translate(9 92)",fill:"white"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M95 2C95 4.20914 96.7909 6 99 6L99 8L93 8L93 2L95 2Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M99 118C96.7909 118 95 119.791 95 122L93 122L93 116L99 116L99 118Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 122C7 119.791 5.20914 118 3 118L3 116L9 116L9 122L7 122Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"})]}),n("defs",{children:i("filter",{id:"filter0_d_13051_9213",x:"0",y:"0",width:"102",height:"126",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[n("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),n("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"}),n("feOffset",{dy:"1"}),n("feGaussianBlur",{stdDeviation:"1.5"}),n("feComposite",{in2:"hardAlpha",operator:"out"}),n("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"}),n("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13051_9213"}),n("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:[n("rect",{x:"10",y:"9",width:"94",height:"94",fill:"white"}),n("rect",{x:"10",y:"9",width:"94",height:"94",stroke:"white","stroke-width":"2"}),n("rect",{width:"96",height:"24",transform:"translate(9 104)",fill:"white"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6C5.20914 6 7 4.20914 7 2H9V8H3V6Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M107 2C107 4.20914 108.791 6 111 6L111 8L105 8L105 2L107 2Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M111 130C108.791 130 107 131.791 107 134L105 134L105 128L111 128L111 130Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 134C7 131.791 5.20914 130 3 130L3 128L9 128L9 134L7 134Z",fill:"white"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"}),n("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"})]}),n("defs",{children:i("filter",{id:"filter0_d_13052_9519",x:"0",y:"0",width:"114",height:"138",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[n("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),n("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"}),n("feOffset",{dy:"1"}),n("feGaussianBlur",{stdDeviation:"1.5"}),n("feComposite",{in2:"hardAlpha",operator:"out"}),n("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"}),n("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13052_9519"}),n("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13052_9519",result:"shape"})]})})]}),Br=e=>{const t=window.innerWidth<=450;return i(Dr,{role:"stamp",style:e.style,children:[n(Mr,{children:n(jr,{isMobile:t})}),i(Pr,{children:[n(zr,{$backgroundColor:e.backgroundColor,children:n(Re,{type:"d1",children:e.icon})}),n(Re,{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})]})]})},Er=r.div`
|
|
1709
1754
|
position: relative;
|
|
1710
1755
|
display: flex;
|
|
1711
1756
|
width: 48px;
|
|
@@ -1717,7 +1762,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1717
1762
|
background: ${e=>e.$active?e.$color?e.$color:De.surface.primary:De.surface.neutralLow};
|
|
1718
1763
|
cursor: pointer;
|
|
1719
1764
|
transition: background 0.3s;
|
|
1720
|
-
`,
|
|
1765
|
+
`,Or=r.div`
|
|
1721
1766
|
position: absolute;
|
|
1722
1767
|
display: flex;
|
|
1723
1768
|
align-items: center;
|
|
@@ -1729,9 +1774,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1729
1774
|
top: 2px;
|
|
1730
1775
|
left: ${e=>e.$active?"22px":"2px"};
|
|
1731
1776
|
transition: left 0.3s;
|
|
1732
|
-
`,
|
|
1777
|
+
`,Ar=e=>{const[t,i]=c(!1);return p(()=>{e.active?i(e.active):i(!1)},[e.active]),n(Er,{role:"container",$active:t,$color:e.color,onClick:()=>{e.onChange&&e.onChange(!t),i(!t)},children:n(Or,{role:"tag",$active:t,children:t&&n(v,{color:e.color?e.color:De.text.primary,strokeWidth:3,height:18,width:18})})})};dn('.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');dn(".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 Hr=r.div`
|
|
1733
1778
|
padding: 6px 8px 2px;
|
|
1734
|
-
`,
|
|
1779
|
+
`,Vr=r.div`
|
|
1735
1780
|
display: flex;
|
|
1736
1781
|
justify-content: flex-end;
|
|
1737
1782
|
align-items: center;
|
|
@@ -1739,15 +1784,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1739
1784
|
font-size: 10px;
|
|
1740
1785
|
color: ${De.text.neutralMedium};
|
|
1741
1786
|
padding: 0px 6px;
|
|
1742
|
-
`,
|
|
1787
|
+
`,Tr=r.div``,Ir=r.img`
|
|
1743
1788
|
max-width: 100%;
|
|
1744
1789
|
width: auto;
|
|
1745
1790
|
height: auto;
|
|
1746
1791
|
border-radius: 6px;
|
|
1747
1792
|
object-fit: cover;
|
|
1748
|
-
`,
|
|
1793
|
+
`,Nr=r.audio`
|
|
1749
1794
|
height: 30px;
|
|
1750
|
-
`,
|
|
1795
|
+
`,Zr=e=>{const[t,o]=c(void 0);return p(()=>{o(k["delivered"===e.message.state?"CheckCheck":"failed"===e.message.state?"X":"read"===e.message.state?"CheckCheck":"sent"===e.message.state?"Check":"Clock"])},[]),n("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(Tr,{children:[e.message.media[0].content_type.startsWith("image")&&n(Ir,{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(Nr,{className:"sender"===e.message.type?"you--audio":"me--audio",controls:!0,controlsList:"nodownload",children:[n("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&&n(Hr,{children:e.message.text}),i(Vr,{children:[X(e.message.createdAt).format("HH:mm"),t&&n(t,{height:14,width:14,color:"read"===e.message.state?De.text.primary:De.text.neutralMedium})]})]})},e.message.key)},Rr=r.div`
|
|
1751
1796
|
position: relative;
|
|
1752
1797
|
padding: 8px 12px;
|
|
1753
1798
|
margin-bottom: 2px;
|
|
@@ -1757,7 +1802,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1757
1802
|
&:hover {
|
|
1758
1803
|
background-color: ${De.surface.neutralSoft};
|
|
1759
1804
|
}
|
|
1760
|
-
`,
|
|
1805
|
+
`,Gr=e=>{const[t,o]=c(void 0);return n($n,{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 a=t===e.id;return i(Rr,{title:e.description,$isSelected:a,onClick:()=>o(e.id),children:[n(Re,{type:"p",children:e.title}),n(Re,{type:"p2",style:{color:De.text.neutralMedium},children:e.subtitle})]},"template-"+r)})})},Wr=r.div`
|
|
1761
1806
|
display: flex;
|
|
1762
1807
|
flex-direction: column;
|
|
1763
1808
|
justify-content: flex-end;
|
|
@@ -1766,51 +1811,51 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1766
1811
|
height: 100vh;
|
|
1767
1812
|
background-color: "white";
|
|
1768
1813
|
overflow: hidden;
|
|
1769
|
-
`,
|
|
1814
|
+
`,Yr=r.div`
|
|
1770
1815
|
overflow: scroll;
|
|
1771
1816
|
padding: 24px 16px 32px;
|
|
1772
1817
|
${d.lessThan("small")`
|
|
1773
1818
|
padding: 16px 16px 32px;
|
|
1774
1819
|
`}
|
|
1775
|
-
`,
|
|
1820
|
+
`,Ur=r.div`
|
|
1776
1821
|
position: sticky;
|
|
1777
1822
|
bottom: 0px;
|
|
1778
1823
|
padding: 8px 24px 24px;
|
|
1779
1824
|
${d.lessThan("small")`
|
|
1780
1825
|
padding: 8px 16px 24px;
|
|
1781
1826
|
`}
|
|
1782
|
-
`,
|
|
1827
|
+
`,qr=r.div`
|
|
1783
1828
|
display: flex;
|
|
1784
1829
|
flex: 1;
|
|
1785
1830
|
justify-content: center;
|
|
1786
1831
|
align-items: center;
|
|
1787
1832
|
padding: 16px 8px;
|
|
1788
|
-
`,
|
|
1833
|
+
`,Xr=r(Re)`
|
|
1789
1834
|
padding: 0px 8px;
|
|
1790
|
-
`,
|
|
1835
|
+
`,Kr=r.div`
|
|
1791
1836
|
display: flex;
|
|
1792
1837
|
flex: 1;
|
|
1793
1838
|
border-top: 1px solid ${De.border.neutralSoft};
|
|
1794
1839
|
height: 1px;
|
|
1795
|
-
`,
|
|
1840
|
+
`,Jr=r.div`
|
|
1796
1841
|
display: flex;
|
|
1797
1842
|
background-color: ${De.surface.secondary};
|
|
1798
1843
|
margin: 0 18px;
|
|
1799
1844
|
padding: 2px 8px;
|
|
1800
1845
|
border-radius: 6px 6px 0px 0px;
|
|
1801
|
-
`,
|
|
1846
|
+
`,Qr=e=>{const t=x(null),[o,r]=c({}),[a,l]=c(!1),[d,s]=c(!1);p(()=>{h(e.messages);const n=e.messages.slice().reverse().find(e=>"recipient"===e.type);if(n){X().diff(X(n.createdAt),"hours")>=24&&l(!0)}else l(!0);t.current&&t.current.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})},[e.messages]);const h=e=>{const t=e.reduce((e,t)=>{const n=X(new Date(t.createdAt)).format("YYYY-MM-DD");return e[n]||(e[n]=[]),e[n].push(t),e},{});r(t)};return i(Wr,{role:"container",style:e.style,children:[n(Gr,{isVisible:d,templates:e.templates,onSend:e.onSend,onClose:()=>s(!1)}),n(Yr,{ref:t,children:Object.keys(o).map(e=>i(b,{children:[i(qr,{children:[n(Kr,{}),n(Xr,{type:"c1",children:X(e).format("ddd DD MMM")}),n(Kr,{})]}),o[e].map((e,t)=>n(Zr,{message:e},e.key))]},e))}),i(Ur,{children:[a&&n(Jr,{children:n(Re,{type:"c2",children:"El último mensaje es de hace más de 24 horas. Continuar la conversación usando plantillas."})}),n(tn,{loading:e.loading,disabled:a,placeholder:e.placeholder,options:[{id:"template",label:"Plantillas",icon:n(U,{})},{id:"image",label:"Fotos",icon:n(D,{})}],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 n;const i=null===(n=t.target.files)||void 0===n?void 0:n[0];if(i){const t=new FileReader;t.onloadend=()=>{const n=t.result;e.onSend({media:{base64:n,contentType:"image/*"}})},t.readAsDataURL(i)}},t.click()}},onSend:t=>e.onSend(t)})]})]})},ea=r.div`
|
|
1802
1847
|
display: flex;
|
|
1803
1848
|
flex-direction: column;
|
|
1804
1849
|
gap: 8px;
|
|
1805
|
-
`,
|
|
1850
|
+
`,ta=r.div`
|
|
1806
1851
|
display: flex;
|
|
1807
1852
|
flex-direction: row;
|
|
1808
1853
|
gap: 8px;
|
|
1809
|
-
`,
|
|
1854
|
+
`,na=r.div`
|
|
1810
1855
|
display: ${e=>e.visible?"flex":"none"};
|
|
1811
1856
|
flex-direction: column;
|
|
1812
1857
|
gap: 8px;
|
|
1813
|
-
`,
|
|
1858
|
+
`,ia=o=>{var r;const[a,l]=c(o.defaultLocation),[d,s]=c(void 0),[,h]=c(!1);p(()=>{l(o.defaultLocation)},[o.defaultLocation]);let u="";return i(ea,{style:o.style,children:[n(Hn,{design:o.design,isLoaded:o.isLoaded,placeholder:o.placeholder?o.placeholder:"Nombre y número de la calle",defaultValue:a&&a.route?`${a.route} ${a.routeNumber}`:void 0,isForm:!0,error:d,onLocationChange:n=>t(void 0,void 0,void 0,function*(){var t,i,r,d;if(s(void 0),n.route&&n.routeNumber){const t=`${n.route} ${n.routeNumber}, ${n.zipCode}, ${n.city}, ${n.province}, ${n.country}`,i=e(null!=a?a:{},["routeInfo"]),r=Object.assign(Object.assign(Object.assign({},i),n),{address:t});l(r),o.onSubmit({data:r})}else{u=n.route&&n.routeNumber?`${n.route} ${n.routeNumber}, ${(null==a?void 0:a.routeInfo)?a.routeInfo+", ":""}${null!==(t=n.zipCode)&&void 0!==t?t:""}, ${null!==(i=n.city)&&void 0!==i?i:""}, ${null!==(r=n.province)&&void 0!==r?r:""}, ${null!==(d=n.country)&&void 0!==d?d:""}`:"",l(Object.assign(Object.assign({},a),{route:n.route,routeNumber:n.routeNumber?n.routeNumber:"",address:u,routeInfo:null==a?void 0:a.routeInfo}));const e="Añade la dirección completa, incluyendo el número de la calle",c=e+".";h(t=>{const n=!t,i=n?e:c;return s(i),o.onSubmit({error:i}),n})}})}),i(na,{visible:!!(null==a?void 0:a.route),children:[n(Tt,{containerStyle:{flex:1},type:"text",placeholder:"Apartamento, suite, unidad, edificio o piso",design:o.design,value:null!==(r=null==a?void 0:a.routeInfo)&&void 0!==r?r:"",onChange:e=>{if(a){const t=`${a.route} ${a.routeNumber}, ${e.target.value}, ${a.zipCode}, ${a.city}, ${a.province}, ${a.country}`,n=Object.assign(Object.assign({},a),{address:t,routeInfo:e.target.value});l(n),o.onSubmit({data:n})}}}),i(ta,{children:[n(Tt,{containerStyle:{flex:3},type:"text",placeholder:"Ciudad",design:o.design,value:null==a?void 0:a.city,disabled:!0}),n(Tt,{containerStyle:{flex:2},type:"text",placeholder:"Código postal",design:o.design,value:null==a?void 0:a.zipCode,disabled:!0})]}),n(Tt,{type:"text",placeholder:"Provincia",design:o.design,value:null==a?void 0:a.province,disabled:!0})]})]})},oa=e=>"location"===e.type?n(ia,Object.assign({},e)):null,ra=r.div`
|
|
1814
1859
|
display: flex;
|
|
1815
1860
|
width: fit-content;
|
|
1816
1861
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.24);
|
|
@@ -1821,7 +1866,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1821
1866
|
&:hover {
|
|
1822
1867
|
background-color: ${De.surface.neutralSoft};
|
|
1823
1868
|
}
|
|
1824
|
-
`,
|
|
1869
|
+
`,aa=r.div`
|
|
1825
1870
|
display: flex;
|
|
1826
1871
|
align-items: center;
|
|
1827
1872
|
padding: 8px;
|
|
@@ -1838,7 +1883,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1838
1883
|
border-bottom: 1px solid ${De.border.neutralSoft};
|
|
1839
1884
|
border-radius: 0px;
|
|
1840
1885
|
`}
|
|
1841
|
-
`,
|
|
1886
|
+
`,la=r.div`
|
|
1842
1887
|
display: flex;
|
|
1843
1888
|
align-items: center;
|
|
1844
1889
|
justify-content: center;
|
|
@@ -1846,18 +1891,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1846
1891
|
width: 24px;
|
|
1847
1892
|
border-radius: 24px;
|
|
1848
1893
|
background-color: ${De.surface.primary};
|
|
1849
|
-
`,
|
|
1894
|
+
`,da=e=>{const t=window.innerWidth<=450,[r,a]=c(e.selectedOption||e.options[0]),[l,d]=c(!1);p(()=>{e.selectedOption?a(e.selectedOption):e.options.length>0&&a(e.options[0])},[e.selectedOption,e.options]);return i(o,{children:[i($n,{isVisible:l,type:t?"full-screen":"default",hideHeader:!0,contentStyle:{paddingBottom:12},onClose:()=>d(!1),children:[n(Re,{type:"p",weight:"medium",style:{marginBottom:8},children:"Selecciona una divisa"}),e.options.map((o,l)=>{const s=r.currency===o.currency;return i(aa,{$isSelected:s,onClick:()=>(t=>{var n;a(t),d(!1),null===(n=e.onChange)||void 0===n||n.call(e,t)})(o),children:[!t&&s&&n(v,{height:16,width:16,color:De.text.primary}),i(Re,{type:"p2",style:{flex:1},children:[o.name," (",o.symbol,")"]}),t&&s&&n(la,{children:n(v,{height:16,width:16,color:"white"})})]},l)})]}),n(ra,{style:e.style,onClick:()=>d(!0),children:i(Re,{type:"b2",children:[r.symbol," ",r.currency]})})]})},sa=l`
|
|
1850
1895
|
0% { opacity: 0; transform: translateY(10px); }
|
|
1851
1896
|
20% { opacity: 1; transform: translateY(0); }
|
|
1852
1897
|
80% { opacity: 1; transform: translateY(0); }
|
|
1853
1898
|
100% { opacity: 0; transform: translateY(-10px); }
|
|
1854
|
-
`,
|
|
1899
|
+
`,ca=r.span`
|
|
1855
1900
|
display: inline-block;
|
|
1856
|
-
animation: ${
|
|
1857
|
-
`,
|
|
1901
|
+
animation: ${sa} 2.5s ease-in-out infinite;
|
|
1902
|
+
`,pa=t=>{var{children:o}=t,r=e(t,["children"]);const[a,l]=c(0);p(()=>{const e=setInterval(()=>{l(e=>(e+1)%r.options.length)},r.interval?r.interval:2500);return()=>clearInterval(e)},[r.options.length]);const[d,s]=null==o?void 0:o.split("{{data}}");return i(Re,Object.assign({},r,{children:[d,n(ca,{children:r.options[a]},r.options[a]),s]}))},ha=r.div`
|
|
1858
1903
|
position: relative;
|
|
1859
1904
|
display: inline-block;
|
|
1860
|
-
`,
|
|
1905
|
+
`,ua=r.div`
|
|
1861
1906
|
display: none;
|
|
1862
1907
|
position: absolute;
|
|
1863
1908
|
top: 100%;
|
|
@@ -1868,8 +1913,8 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1868
1913
|
z-index: 10;
|
|
1869
1914
|
border-radius: 24px;
|
|
1870
1915
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
1871
|
-
${
|
|
1916
|
+
${ha}:hover & {
|
|
1872
1917
|
display: block;
|
|
1873
1918
|
}
|
|
1874
|
-
`,
|
|
1919
|
+
`,xa=t=>{var{children:o,modalProps:r}=t,a=e(t,["children","modalProps"]);return i(ha,Object.assign({},a,{children:[o,n(ua,Object.assign({},r))]}))};export{Bi as Avatar,Se as BreadCrumb,ut as Button,Bo as CellSelector,Qr as Chat,Xi as Checkbox,Le as Color,De as ColorV2,ir as Countdown,Sr as Counter,da as CurrencySelector,co as Dropdown,mr as FAQs,yt as Feedback,no as Filter,oa as Form,xa as Hover,Tt as Input,Gt as InputBirthday,tn as InputChat,ln as InputCode,hn as InputDateRange,jn as InputImage,Hn as InputLocation,Yn as InputPhone,gi as InputPrice,ri as InputRange,Di as Label,Kt as Menu,$n as Modal,tr as Pagination,qo as Payout,qe as ProgressBar,Do as RadioButton,$i as SearchBar,ki as Select,Br as Stamp,Ar as Switch,Jo as SwitchTag,Ro as Tabs,hr as TagSelector,Re as Text,pa as TextAnimated,Co as TextArea};
|
|
1875
1920
|
//# sourceMappingURL=index.js.map
|