@adoptaunabuelo/react-components 0.3.151 → 0.3.154
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 +100 -57
- 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
|
@@ -578,7 +578,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
578
578
|
-webkit-appearance: none;
|
|
579
579
|
margin: 0;
|
|
580
580
|
}
|
|
581
|
-
`,ln=e=>{const t=x(null),[o,r]=c(!1),[a,l]=c(void 0);return i(nn,{style:e.containerStyle,children:[n(on,{$error:!!e.error,style:e.style,$focus:o,$loading:e.loading,onClick:()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},children:n(an,{role:"input",type:"number",value:a,placeholder:"------",disabled:e.loading,autoFocus:e.autoFocus,onFocus:()=>r(!0),onBlur:()=>r(!1),onChange:n=>{var i;n.target.value.length<=6&&(l(n.target.value),6===n.target.value.length&&(null===(i=t.current)||void 0===i||i.blur(),e.onChange&&e.onChange(n.target.value)))}})}),e.error&&n(rn,{role:"error",children:n(Re,{type:"p",style:{color:De.text.red,marginTop:8,fontSize:14,lineHeight:"18px"},children:e.error})})]})};function dn(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}dn(".input-date-range .DateRangePicker {\n font-family: 'Poppins';\n width: fit-content;\n}\n\n.input-date-range .DateInput {\n width: 92px;\n}\n\n.input-date-range .DateInput_input {\n font-family: 'Poppins';\n font-size: 14px;\n font-weight: unset;\n padding: 11px 6px;\n}\n\n.input-date-range .CalendarDay__selected_span {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.input-date-range .CalendarDay__selected_span:hover {\n background: #ABC7E0;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.input-date-range .CalendarDay__hovered_span {\n background: #ABC7E0;\n border: 1px solid #C4DEF5;\n color: white;\n}\n\n.input-date-range .CalendarDay__hovered_span:hover {\n background: #006BE5;\n border: 1px solid #C4DEF5;\n color: white;\n}\n\n.input-date-range .CalendarDay__selected {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.input-date-range .CalendarDay__selected:hover {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.input-date-range .DateInput_input__focused {\n border-bottom: 0px;\n background-color: #ECF4FB;\n border-radius: 8px;\n}\n\n.input-date-range .DateRangePickerInput_arrow {\n margin: 0px 12px;\n}\n\n.input-date-range .DateRangePickerInput_clearDates {\n display: none;\n}\n\n.input-date-range .DayPicker {\n border-radius: 0px;\n box-shadow: none;\n font-family: Poppins;\n overflow: hidden;\n}\n\n.input-date-range .DayPicker__horizontal,\n.input-date-range .DayPicker_focusRegion,\n.input-date-range .DayPicker_weekHeaders,\n.input-date-range .DayPicker_transitionContainer,\n.input-date-range .CalendarMonthGrid,\n.input-date-range .CalendarMonthGrid__horizontal,\n.input-date-range .CalendarMonthGrid_month__horizontal {\n overflow: hidden !important;\n}\n\n.input-date-range .DayPicker_weekHeaders {\n margin-left: 9px !important;\n}\n\n.input-date-range .DayPicker_transitionContainer__horizontal {\n height: 320px !important;\n}\n\n.input-date-range .DayPickerNavigation__horizontal {\n height: 0;\n}\n\n.input-date-range .CalendarMonthGrid__horizontal {\n left: 9px !important;\n}\n\n.input-date-range .CalendarMonthGrid_month__horizontal {\n padding: 0 12px 0 0;\n}\n\n.input-date-range .CalendarMonthGrid_month__horizontal:last-child {\n padding-right: 0;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_leftButton__horizontalDefault {\n left: 0px !important;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_rightButton__horizontalDefault {\n right: 0px !important;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_button__horizontalDefault {\n width: 28px;\n height: 28px;\n border: 1px solid #d7dee7;\n border-radius: 8px;\n background: #ffffff;\n box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 2px;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_button__default:focus,\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_button__default:hover {\n border: 1px solid #cdd8e5;\n background: #f8fbff;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_svg__horizontal {\n width: 20px;\n height: 20px;\n fill: #6b7280;\n}\n\n.input-date-range .CalendarMonth_caption {\n padding-top: 24px;\n padding-bottom: 28px;\n padding-left: 59px;\n padding-right: 84px;\n}\n\n.input-date-range .DayPickerKeyboardShortcuts_show__bottomRight {\n display: none;\n}\n\n.input-date-range .CalendarMonth {\n padding: 0px !important;\n}\n\n.input-date-range__month-selector {\n display: flex;\n gap: 6px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n margin: 0 auto;\n padding: 0;\n transform: translateX(-8px);\n}\n\n.input-date-range__select {\n height: 34px;\n min-width: 84px;\n padding: 0 10px;\n border: 1px solid #d7dee7;\n border-radius: 10px;\n background-color: #ffffff;\n color: #202938;\n font-family: Poppins;\n font-size: 14px;\n font-weight: 500;\n box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);\n appearance: none;\n -webkit-appearance: none;\n background-image:\n linear-gradient(45deg, transparent 50%, #4b5563 50%),\n linear-gradient(135deg, #4b5563 50%, transparent 50%);\n background-position:\n calc(100% - 18px) calc(50% - 2px),\n calc(100% - 12px) calc(50% - 2px);\n background-size: 6px 6px, 6px 6px;\n background-repeat: no-repeat;\n cursor: pointer;\n margin-top: -4px;\n}\n\n.input-date-range__select--month {\n width: 110px;\n}\n\n.input-date-range__select:focus {\n outline: none;\n border-color: #1e88f7;\n box-shadow: 0 0 0 3px rgba(30, 136, 247, 0.15);\n}\n\n.input-date-range__calendar-footer {\n display: flex;\n align-items: center;\n padding-top: 16px;\n border-top: 1px solid rgba(0, 29, 61, 0.1);\n}\n\n.input-date-range__clear-button {\n border: 0;\n background: transparent;\n color: #1e88f7;\n font-family: Poppins;\n font-size: 16px;\n font-weight: 500;\n line-height: 1.2;\n cursor: pointer;\n padding: 0;\n}\n\n@media (max-width: 450px) {\n .input-date-range .DateRangePicker_picker .DayPickerNavigation_leftButton__horizontalDefault {\n left: 8px !important;\n }\n\n .input-date-range .DateRangePicker_picker .DayPickerNavigation_rightButton__horizontalDefault {\n right: 8px !important;\n }\n\n .input-date-range .CalendarMonth_caption {\n padding-left: 64px;\n padding-right: 64px;\n }\n\n .input-date-range__month-selector {\n width: fit-content;\n transform: translateX(-4px);\n }\n\n .input-date-range .CalendarMonthGrid_month__horizontal {\n padding-right: 0;\n }\n}\n");const sn=Array.from({length:201},(e,t)=>String(1900+t)),cn=X.months().map((e,t)=>({label:e,value:String(t)})),pn=r.div`
|
|
581
|
+
`,ln=e=>{const t=x(null),[o,r]=c(!1),[a,l]=c(void 0);return i(nn,{style:e.containerStyle,children:[n(on,{$error:!!e.error,style:e.style,$focus:o,$loading:e.loading,onClick:()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},children:n(an,{role:"input",type:"number",value:a,placeholder:"------",disabled:e.loading,autoFocus:e.autoFocus,onFocus:()=>r(!0),onBlur:()=>r(!1),onChange:n=>{var i;n.target.value.length<=6&&(l(n.target.value),6===n.target.value.length&&(null===(i=t.current)||void 0===i||i.blur(),e.onChange&&e.onChange(n.target.value)))}})}),e.error&&n(rn,{role:"error",children:n(Re,{type:"p",style:{color:De.text.red,marginTop:8,fontSize:14,lineHeight:"18px"},children:e.error})})]})};function dn(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}dn(".input-date-range .DateRangePicker {\n font-family: 'Poppins';\n width: fit-content;\n}\n\n.input-date-range .DateInput {\n width: 92px;\n}\n\n.input-date-range .DateInput_input {\n font-family: 'Poppins';\n font-size: 14px;\n font-weight: unset;\n padding: 11px 6px;\n}\n\n.input-date-range .CalendarDay__selected_span {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.input-date-range .CalendarDay__selected_span:hover {\n background: #ABC7E0;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.input-date-range .CalendarDay__hovered_span {\n background: #ABC7E0;\n border: 1px solid #C4DEF5;\n color: white;\n}\n\n.input-date-range .CalendarDay__hovered_span:hover {\n background: #006BE5;\n border: 1px solid #C4DEF5;\n color: white;\n}\n\n.input-date-range .CalendarDay__selected {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.input-date-range .CalendarDay__selected:hover {\n background: #006BE5;\n color: white;\n border: 1px solid #C4DEF5;\n}\n\n.input-date-range .DateInput_input__focused {\n border-bottom: 0px;\n background-color: #ECF4FB;\n border-radius: 8px;\n}\n\n.input-date-range .DateRangePickerInput_arrow {\n margin: 0px 12px;\n}\n\n.input-date-range .DateRangePickerInput_clearDates {\n display: none;\n}\n\n.input-date-range .DayPicker {\n border-radius: 0px;\n box-shadow: none;\n font-family: Poppins;\n overflow: hidden;\n}\n\n.input-date-range .DateRangePicker_picker {\n background: #ffffff;\n border: 1px solid rgba(0, 29, 61, 0.08);\n border-radius: 18px;\n box-shadow: 0 18px 48px rgba(16, 24, 40, 0.14);\n padding: 10px 14px 14px;\n}\n\n.input-date-range .DayPicker__horizontal,\n.input-date-range .DayPicker_focusRegion,\n.input-date-range .DayPicker_weekHeaders,\n.input-date-range .DayPicker_transitionContainer,\n.input-date-range .CalendarMonthGrid,\n.input-date-range .CalendarMonthGrid__horizontal,\n.input-date-range .CalendarMonthGrid_month__horizontal {\n overflow: hidden !important;\n}\n\n.input-date-range .DayPicker_weekHeaders {\n margin-left: 9px !important;\n}\n\n.input-date-range .DayPicker_transitionContainer__horizontal {\n height: 320px !important;\n}\n\n.input-date-range .DayPickerNavigation__horizontal {\n height: 0;\n}\n\n.input-date-range .CalendarMonthGrid__horizontal {\n left: 9px !important;\n}\n\n.input-date-range .CalendarMonthGrid_month__horizontal {\n padding: 0 12px 0 0;\n}\n\n.input-date-range .CalendarMonthGrid_month__horizontal:last-child {\n padding-right: 0;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_leftButton__horizontalDefault {\n left: 0px !important;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_rightButton__horizontalDefault {\n right: 0px !important;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_button__horizontalDefault {\n width: 28px;\n height: 28px;\n border: 1px solid #d7dee7;\n border-radius: 8px;\n background: #ffffff;\n box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-top: 2px;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_button__default:focus,\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_button__default:hover {\n border: 1px solid #cdd8e5;\n background: #f8fbff;\n}\n\n.input-date-range .DateRangePicker_picker .DayPickerNavigation_svg__horizontal {\n width: 20px;\n height: 20px;\n fill: #6b7280;\n}\n\n.input-date-range .CalendarMonth_caption {\n padding-top: 24px;\n padding-bottom: 28px;\n padding-left: 59px;\n padding-right: 84px;\n}\n\n.input-date-range .DayPickerKeyboardShortcuts_show__bottomRight {\n display: none;\n}\n\n.input-date-range .CalendarMonth {\n padding: 0px !important;\n}\n\n.input-date-range__month-selector {\n display: flex;\n gap: 6px;\n align-items: center;\n justify-content: center;\n width: fit-content;\n margin: 0 auto;\n padding: 0;\n transform: translateX(-8px);\n}\n\n.input-date-range__select {\n height: 34px;\n min-width: 84px;\n padding: 0 10px;\n border: 1px solid #d7dee7;\n border-radius: 10px;\n background-color: #ffffff;\n color: #202938;\n font-family: Poppins;\n font-size: 14px;\n font-weight: 500;\n box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);\n appearance: none;\n -webkit-appearance: none;\n background-image:\n linear-gradient(45deg, transparent 50%, #4b5563 50%),\n linear-gradient(135deg, #4b5563 50%, transparent 50%);\n background-position:\n calc(100% - 18px) calc(50% - 2px),\n calc(100% - 12px) calc(50% - 2px);\n background-size: 6px 6px, 6px 6px;\n background-repeat: no-repeat;\n cursor: pointer;\n margin-top: -4px;\n}\n\n.input-date-range__select--month {\n width: 110px;\n}\n\n.input-date-range__select:focus {\n outline: none;\n border-color: #1e88f7;\n box-shadow: 0 0 0 3px rgba(30, 136, 247, 0.15);\n}\n\n.input-date-range__calendar-footer {\n display: flex;\n align-items: center;\n padding-top: 16px;\n border-top: 1px solid rgba(0, 29, 61, 0.1);\n}\n\n.input-date-range__clear-button {\n border: 0;\n background: transparent;\n color: #1e88f7;\n font-family: Poppins;\n font-size: 16px;\n font-weight: 500;\n line-height: 1.2;\n cursor: pointer;\n padding: 0;\n}\n\n@media (max-width: 450px) {\n .input-date-range .DateRangePicker_picker .DayPickerNavigation_leftButton__horizontalDefault {\n left: 8px !important;\n }\n\n .input-date-range .DateRangePicker_picker .DayPickerNavigation_rightButton__horizontalDefault {\n right: 8px !important;\n }\n\n .input-date-range .CalendarMonth_caption {\n padding-left: 64px;\n padding-right: 64px;\n }\n\n .input-date-range__month-selector {\n width: fit-content;\n transform: translateX(-4px);\n }\n\n .input-date-range .CalendarMonthGrid_month__horizontal {\n padding-right: 0;\n }\n}\n");const sn=Array.from({length:201},(e,t)=>String(1900+t)),cn=X.months().map((e,t)=>({label:e,value:String(t)})),pn=r.div`
|
|
582
582
|
display: flex;
|
|
583
583
|
align-items: center;
|
|
584
584
|
width: fit-content;
|
|
@@ -589,7 +589,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
589
589
|
box-shadow: 0 0 0
|
|
590
590
|
${e=>e.$focus?"2px "+De.border.neutralMedium:"1px "+De.border.neutralSoft};
|
|
591
591
|
padding: 0px 6px;
|
|
592
|
-
`,hn=e=>{const[t,o]=c(e.startDate),[r,a]=c(e.endDate),[l,d]=c(null);return p(()=>{o(e.startDate)},[e.startDate]),p(()=>{a(e.endDate)},[e.endDate]),n("div",{className:"input-date-range",children:n(pn,{style:e.style,$focus:!!l,children:n(K,{startDateId:"startDate",endDateId:"endDate",startDate:t,endDate:r,noBorder:!0,showClearDates:!0,isOutsideRange:e.isOutsideRange,startDatePlaceholderText:"Fecha inicio",endDatePlaceholderText:"Fecha final",hideKeyboardShortcutsPanel:!0,numberOfMonths:1,onDatesChange:({startDate:t,endDate:n})=>{o(t),a(n),t&&!n?d("endDate"):t||d("startDate"),console.log("InputDateRange onChange",{startDate:t,endDate:n}),e.onChange({startDate:t,endDate:n})},focusedInput:l,onFocusChange:e=>d(e),renderCalendarInfo:()=>n("div",{className:"input-date-range__calendar-footer",children:n("button",{type:"button",className:"input-date-range__clear-button",onClick:()=>{o(null),a(null),d("startDate"),console.log("InputDateRange onChange",{startDate:null,endDate:null}),e.onChange({startDate:null,endDate:null})},children:"Borrar"})}),renderMonthElement:({month:e,onMonthSelect:t,onYearSelect:o})=>i("div",{className:"input-date-range__month-selector",children:[n("select",{"aria-label":"Seleccionar mes",className:"input-date-range__select input-date-range__select--month",value:String(e.month()),onChange:n=>t(e,n.target.value),children:cn.map(e=>n("option",{value:e.value,children:e.label},e.value))}),n("select",{"aria-label":"Seleccionar año",className:"input-date-range__select",value:String(e.year()),onChange:t=>o(e,t.target.value),children:sn.map(e=>n("option",{value:e,children:e},e))})]})})})})};dn(".ReactCrop__child-wrapper {\n height: -webkit-fill-available;\n}");const un=r.div`
|
|
592
|
+
`,hn=e=>{const[t,o]=c(e.startDate),[r,a]=c(e.endDate),[l,d]=c(null);return p(()=>{o(e.startDate)},[e.startDate]),p(()=>{a(e.endDate)},[e.endDate]),n("div",{className:"input-date-range",children:n(pn,{style:e.style,$focus:!!l,children:n(K,{startDateId:"startDate",endDateId:"endDate",startDate:t,endDate:r,noBorder:!0,showClearDates:!0,isOutsideRange:e.isOutsideRange?e.isOutsideRange:()=>!1,startDatePlaceholderText:"Fecha inicio",endDatePlaceholderText:"Fecha final",hideKeyboardShortcutsPanel:!0,numberOfMonths:1,onDatesChange:({startDate:t,endDate:n})=>{o(t),a(n),t&&!n?d("endDate"):t||d("startDate"),console.log("InputDateRange onChange",{startDate:t,endDate:n}),e.onChange({startDate:t,endDate:n})},focusedInput:l,onFocusChange:e=>d(e),renderCalendarInfo:()=>n("div",{className:"input-date-range__calendar-footer",children:n("button",{type:"button",className:"input-date-range__clear-button",onClick:()=>{o(null),a(null),d("startDate"),console.log("InputDateRange onChange",{startDate:null,endDate:null}),e.onChange({startDate:null,endDate:null})},children:"Borrar"})}),renderMonthElement:({month:e,onMonthSelect:t,onYearSelect:o})=>i("div",{className:"input-date-range__month-selector",children:[n("select",{"aria-label":"Seleccionar mes",className:"input-date-range__select input-date-range__select--month",value:String(e.month()),onChange:n=>t(e,n.target.value),children:cn.map(e=>n("option",{value:e.value,children:e.label},e.value))}),n("select",{"aria-label":"Seleccionar año",className:"input-date-range__select",value:String(e.year()),onChange:t=>o(e,t.target.value),children:sn.map(e=>n("option",{value:e,children:e},e))})]})})})})};dn(".ReactCrop__child-wrapper {\n height: -webkit-fill-available;\n}");const un=r.div`
|
|
593
593
|
position: sticky;
|
|
594
594
|
display: flex;
|
|
595
595
|
flex-direction: column;
|
|
@@ -929,10 +929,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
929
929
|
border-radius: 16px;
|
|
930
930
|
box-shadow: ${e=>e.$selected?`0 0 0 2px ${De.border.primary}`:`0 0 0 1px ${De.border.neutralSoft}`};
|
|
931
931
|
cursor: pointer;
|
|
932
|
-
|
|
932
|
+
|
|
933
933
|
&:hover {
|
|
934
|
-
background-color: ${De.
|
|
935
|
-
box-shadow: 0 0 0 2px ${De.border.primary};
|
|
934
|
+
background-color: ${De.surface.neutralSoft};
|
|
936
935
|
}
|
|
937
936
|
`,ci=r.input`
|
|
938
937
|
font-family: Poppins;
|
|
@@ -966,8 +965,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
966
965
|
background-color: ${e=>e.$isSelected||e.$focus?De.border.primarySoft:"transparent"};
|
|
967
966
|
cursor: pointer;
|
|
968
967
|
&:hover {
|
|
969
|
-
background-color: ${De.border.
|
|
970
|
-
box-shadow: 0 0 0 2px ${De.border.primary};
|
|
968
|
+
background-color: ${De.border.neutralSoft};
|
|
971
969
|
}
|
|
972
970
|
`,hi=r.div`
|
|
973
971
|
display: flex;
|
|
@@ -975,9 +973,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
975
973
|
`,ui=r(Re)`
|
|
976
974
|
position: relative;
|
|
977
975
|
padding: 8px 12px;
|
|
978
|
-
background-color: ${De.surface.
|
|
976
|
+
background-color: ${De.surface.neutralSoft};
|
|
979
977
|
border-radius: 8px;
|
|
980
|
-
color:
|
|
978
|
+
color: ${De.text.neutralHard};
|
|
981
979
|
max-width: 50%;
|
|
982
980
|
text-align: center;
|
|
983
981
|
${d.lessThan("small")`
|
|
@@ -989,7 +987,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
989
987
|
position: absolute;
|
|
990
988
|
width: 0;
|
|
991
989
|
height: 0;
|
|
992
|
-
border-top: 11px solid ${De.surface.
|
|
990
|
+
border-top: 11px solid ${De.surface.neutralSoft};
|
|
993
991
|
border-left: 8px solid transparent;
|
|
994
992
|
border-right: 8px solid transparent;
|
|
995
993
|
top: 100%;
|
|
@@ -1511,6 +1509,29 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1511
1509
|
width: fit-content;
|
|
1512
1510
|
gap: 4px;
|
|
1513
1511
|
`,Ho=r.div`
|
|
1512
|
+
position: relative;
|
|
1513
|
+
display: flex;
|
|
1514
|
+
flex-direction: row;
|
|
1515
|
+
width: fit-content;
|
|
1516
|
+
height: 40px;
|
|
1517
|
+
gap: 0;
|
|
1518
|
+
padding: 3px;
|
|
1519
|
+
box-sizing: border-box;
|
|
1520
|
+
border-radius: 999px;
|
|
1521
|
+
box-shadow: inset 0 0 0 1px ${Le.line.soft};
|
|
1522
|
+
background-color: ${Le.background.neutral};
|
|
1523
|
+
`,Vo=r.div`
|
|
1524
|
+
position: absolute;
|
|
1525
|
+
top: 3px;
|
|
1526
|
+
bottom: 3px;
|
|
1527
|
+
border-radius: 999px;
|
|
1528
|
+
background-color: ${Le.background.soft};
|
|
1529
|
+
box-shadow: 0 1px 2px ${Le.line.softTransparent};
|
|
1530
|
+
transition:
|
|
1531
|
+
transform 0.28s ease,
|
|
1532
|
+
width 0.28s ease;
|
|
1533
|
+
pointer-events: none;
|
|
1534
|
+
`,To=r.div`
|
|
1514
1535
|
display: flex;
|
|
1515
1536
|
flex: 1;
|
|
1516
1537
|
align-items: center;
|
|
@@ -1528,18 +1549,40 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1528
1549
|
background-color: ${e.color?e.color:Le.status.neutral.hover};
|
|
1529
1550
|
}
|
|
1530
1551
|
`}
|
|
1531
|
-
`,
|
|
1552
|
+
`,Io=r.div`
|
|
1553
|
+
display: flex;
|
|
1554
|
+
flex: 1;
|
|
1555
|
+
align-items: center;
|
|
1556
|
+
justify-content: center;
|
|
1557
|
+
position: relative;
|
|
1558
|
+
z-index: 1;
|
|
1559
|
+
cursor: pointer;
|
|
1560
|
+
height: 34px;
|
|
1561
|
+
box-sizing: border-box;
|
|
1562
|
+
padding: 2px 16px;
|
|
1563
|
+
border-radius: 32px;
|
|
1564
|
+
white-space: nowrap;
|
|
1565
|
+
text-align: center;
|
|
1566
|
+
`,No=r(Re)`
|
|
1567
|
+
display: flex;
|
|
1568
|
+
align-items: center;
|
|
1569
|
+
justify-content: center;
|
|
1570
|
+
height: 100%;
|
|
1571
|
+
line-height: 1;
|
|
1572
|
+
color: ${e=>e.$selected?e.textColor?e.textColor:Le.text.deepBlue:Le.text.high};
|
|
1573
|
+
transition: color 0.2s ease;
|
|
1574
|
+
`,Zo=r(Re)`
|
|
1532
1575
|
font-size: 14px;
|
|
1533
1576
|
color: ${e=>e.$selected?e.textColor?e.textColor:Le.text.primary:Le.text.high};
|
|
1534
1577
|
width: max-content;
|
|
1535
1578
|
transition: color 0.15s ease-in;
|
|
1536
|
-
`,
|
|
1579
|
+
`,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
1580
|
box-shadow: 0 0 0
|
|
1538
1581
|
${e=>e.$focus?"secondary"===e.$design?"2px "+De.border.neutralMedium:"1px "+De.border.neutralHard:"secondary"===e.$design?"1px "+De.border.neutralSoft:"none"};
|
|
1539
1582
|
background-color: ${e=>e.$focus||"secondary"===e.$design?"white":e.$error?De.surface.redSoft:De.surface.neutralSoft};
|
|
1540
1583
|
border-radius: ${e=>"secondary"===e.$design?"12px":"6px"};
|
|
1541
1584
|
padding: ${e=>"secondary"===e.$design?"19px 16px":"10px 16px"};
|
|
1542
|
-
`,
|
|
1585
|
+
`,Wo=r.div`
|
|
1543
1586
|
margin: 0px 8px;
|
|
1544
1587
|
font-style: normal;
|
|
1545
1588
|
font-weight: 500;
|
|
@@ -1547,7 +1590,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1547
1590
|
line-height: 12px;
|
|
1548
1591
|
display: flex;
|
|
1549
1592
|
color: ${De.text.red};
|
|
1550
|
-
`,
|
|
1593
|
+
`,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
1594
|
display: flex;
|
|
1552
1595
|
flex-direction: row;
|
|
1553
1596
|
border: 1px solid ${De.border.neutralSoft};
|
|
@@ -1556,7 +1599,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1556
1599
|
overflow: hidden;
|
|
1557
1600
|
padding: 2px;
|
|
1558
1601
|
background-color: ${De.surface.invert};
|
|
1559
|
-
`,
|
|
1602
|
+
`,Ko=r.div`
|
|
1560
1603
|
display: flex;
|
|
1561
1604
|
padding: 8px;
|
|
1562
1605
|
cursor: pointer;
|
|
@@ -1564,10 +1607,10 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1564
1607
|
border-radius: 100px;
|
|
1565
1608
|
align-items: center;
|
|
1566
1609
|
justify-content: center;
|
|
1567
|
-
`,
|
|
1610
|
+
`,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
1611
|
display: flex;
|
|
1569
1612
|
align-items: center;
|
|
1570
|
-
`,
|
|
1613
|
+
`,er=r.div`
|
|
1571
1614
|
display: flex;
|
|
1572
1615
|
flex-direction: column;
|
|
1573
1616
|
justify-content: center;
|
|
@@ -1578,13 +1621,13 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1578
1621
|
&:hover {
|
|
1579
1622
|
background-color: ${Le.background.soft};
|
|
1580
1623
|
}
|
|
1581
|
-
`,
|
|
1624
|
+
`,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
1625
|
display: flex;
|
|
1583
1626
|
flex-direction: row;
|
|
1584
1627
|
padding: 10px 16px;
|
|
1585
1628
|
border-radius: 6px;
|
|
1586
1629
|
width: fit-content;
|
|
1587
|
-
`,
|
|
1630
|
+
`,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
1631
|
display: flex;
|
|
1589
1632
|
flex-direction: column;
|
|
1590
1633
|
align-items: center;
|
|
@@ -1607,7 +1650,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1607
1650
|
width: auto;
|
|
1608
1651
|
max-width: none;
|
|
1609
1652
|
`}
|
|
1610
|
-
`,
|
|
1653
|
+
`,rr=r(Re)`
|
|
1611
1654
|
color: var(--text-clear-neutral-hard, rgba(0, 29, 61, 0.92));
|
|
1612
1655
|
font-feature-settings:
|
|
1613
1656
|
"liga" off,
|
|
@@ -1616,7 +1659,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1616
1659
|
font-weight: 500;
|
|
1617
1660
|
font-size: 14px !important;
|
|
1618
1661
|
text-align: center;
|
|
1619
|
-
`,
|
|
1662
|
+
`,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
1663
|
display: flex;
|
|
1621
1664
|
flex-direction: column;
|
|
1622
1665
|
align-items: center;
|
|
@@ -1640,14 +1683,14 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1640
1683
|
width: auto;
|
|
1641
1684
|
max-width: none;
|
|
1642
1685
|
`}
|
|
1643
|
-
`,
|
|
1686
|
+
`,dr=r(Re)`
|
|
1644
1687
|
color: var(--text-clear-neutral-hard, rgba(0, 29, 61, 0.92));
|
|
1645
1688
|
font-feature-settings: "liga" off, "clig" off;
|
|
1646
1689
|
font-style: normal;
|
|
1647
1690
|
font-weight: 500;
|
|
1648
1691
|
font-size: 14px !important;
|
|
1649
1692
|
text-align: center;
|
|
1650
|
-
`,
|
|
1693
|
+
`,sr=r(Re)`
|
|
1651
1694
|
color: var(--text-clear-neutral-medium, rgba(0, 29, 61, 0.56));
|
|
1652
1695
|
text-align: center;
|
|
1653
1696
|
font-family: Poppins;
|
|
@@ -1655,11 +1698,11 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1655
1698
|
font-style: normal;
|
|
1656
1699
|
font-weight: 400;
|
|
1657
1700
|
line-height: 20px;
|
|
1658
|
-
`,
|
|
1701
|
+
`,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
1702
|
display: flex;
|
|
1660
1703
|
flex-direction: row;
|
|
1661
1704
|
flex-wrap: wrap;
|
|
1662
|
-
`,
|
|
1705
|
+
`,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
1706
|
display: flex;
|
|
1664
1707
|
flex-direction: row;
|
|
1665
1708
|
margin-bottom: 24px;
|
|
@@ -1667,10 +1710,10 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1667
1710
|
&:hover {
|
|
1668
1711
|
text-decoration: ${e=>e.$selected?"none":"underline"};
|
|
1669
1712
|
}
|
|
1670
|
-
`,
|
|
1713
|
+
`,gr=r.div`
|
|
1671
1714
|
display: flex;
|
|
1672
1715
|
flex-direction: column;
|
|
1673
|
-
`,
|
|
1716
|
+
`,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
1717
|
position: relative;
|
|
1675
1718
|
width: fit-content;
|
|
1676
1719
|
width: 108px;
|
|
@@ -1679,7 +1722,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1679
1722
|
height: 120px;
|
|
1680
1723
|
width: 96px;
|
|
1681
1724
|
`}
|
|
1682
|
-
`,
|
|
1725
|
+
`,zr=r.div`
|
|
1683
1726
|
display: flex;
|
|
1684
1727
|
align-items: center;
|
|
1685
1728
|
justify-content: center;
|
|
@@ -1692,20 +1735,20 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1692
1735
|
height: 84px;
|
|
1693
1736
|
width: 84px;
|
|
1694
1737
|
`}
|
|
1695
|
-
`,
|
|
1738
|
+
`,Mr=r.div`
|
|
1696
1739
|
position: absolute;
|
|
1697
1740
|
top: 0px;
|
|
1698
1741
|
bottom: 0px;
|
|
1699
1742
|
left: 0px;
|
|
1700
1743
|
right: 0px;
|
|
1701
|
-
`,
|
|
1744
|
+
`,Pr=r.div`
|
|
1702
1745
|
display: flex;
|
|
1703
1746
|
flex-direction: column;
|
|
1704
1747
|
align-items: center;
|
|
1705
1748
|
z-index: 1;
|
|
1706
1749
|
position: relative;
|
|
1707
1750
|
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`
|
|
1751
|
+
`,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
1752
|
position: relative;
|
|
1710
1753
|
display: flex;
|
|
1711
1754
|
width: 48px;
|
|
@@ -1717,7 +1760,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1717
1760
|
background: ${e=>e.$active?e.$color?e.$color:De.surface.primary:De.surface.neutralLow};
|
|
1718
1761
|
cursor: pointer;
|
|
1719
1762
|
transition: background 0.3s;
|
|
1720
|
-
`,
|
|
1763
|
+
`,Or=r.div`
|
|
1721
1764
|
position: absolute;
|
|
1722
1765
|
display: flex;
|
|
1723
1766
|
align-items: center;
|
|
@@ -1729,9 +1772,9 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1729
1772
|
top: 2px;
|
|
1730
1773
|
left: ${e=>e.$active?"22px":"2px"};
|
|
1731
1774
|
transition: left 0.3s;
|
|
1732
|
-
`,
|
|
1775
|
+
`,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
1776
|
padding: 6px 8px 2px;
|
|
1734
|
-
`,
|
|
1777
|
+
`,Vr=r.div`
|
|
1735
1778
|
display: flex;
|
|
1736
1779
|
justify-content: flex-end;
|
|
1737
1780
|
align-items: center;
|
|
@@ -1739,15 +1782,15 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1739
1782
|
font-size: 10px;
|
|
1740
1783
|
color: ${De.text.neutralMedium};
|
|
1741
1784
|
padding: 0px 6px;
|
|
1742
|
-
`,
|
|
1785
|
+
`,Tr=r.div``,Ir=r.img`
|
|
1743
1786
|
max-width: 100%;
|
|
1744
1787
|
width: auto;
|
|
1745
1788
|
height: auto;
|
|
1746
1789
|
border-radius: 6px;
|
|
1747
1790
|
object-fit: cover;
|
|
1748
|
-
`,
|
|
1791
|
+
`,Nr=r.audio`
|
|
1749
1792
|
height: 30px;
|
|
1750
|
-
`,
|
|
1793
|
+
`,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
1794
|
position: relative;
|
|
1752
1795
|
padding: 8px 12px;
|
|
1753
1796
|
margin-bottom: 2px;
|
|
@@ -1757,7 +1800,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1757
1800
|
&:hover {
|
|
1758
1801
|
background-color: ${De.surface.neutralSoft};
|
|
1759
1802
|
}
|
|
1760
|
-
`,
|
|
1803
|
+
`,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
1804
|
display: flex;
|
|
1762
1805
|
flex-direction: column;
|
|
1763
1806
|
justify-content: flex-end;
|
|
@@ -1766,51 +1809,51 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1766
1809
|
height: 100vh;
|
|
1767
1810
|
background-color: "white";
|
|
1768
1811
|
overflow: hidden;
|
|
1769
|
-
`,
|
|
1812
|
+
`,Yr=r.div`
|
|
1770
1813
|
overflow: scroll;
|
|
1771
1814
|
padding: 24px 16px 32px;
|
|
1772
1815
|
${d.lessThan("small")`
|
|
1773
1816
|
padding: 16px 16px 32px;
|
|
1774
1817
|
`}
|
|
1775
|
-
`,
|
|
1818
|
+
`,Ur=r.div`
|
|
1776
1819
|
position: sticky;
|
|
1777
1820
|
bottom: 0px;
|
|
1778
1821
|
padding: 8px 24px 24px;
|
|
1779
1822
|
${d.lessThan("small")`
|
|
1780
1823
|
padding: 8px 16px 24px;
|
|
1781
1824
|
`}
|
|
1782
|
-
`,
|
|
1825
|
+
`,qr=r.div`
|
|
1783
1826
|
display: flex;
|
|
1784
1827
|
flex: 1;
|
|
1785
1828
|
justify-content: center;
|
|
1786
1829
|
align-items: center;
|
|
1787
1830
|
padding: 16px 8px;
|
|
1788
|
-
`,
|
|
1831
|
+
`,Xr=r(Re)`
|
|
1789
1832
|
padding: 0px 8px;
|
|
1790
|
-
`,
|
|
1833
|
+
`,Kr=r.div`
|
|
1791
1834
|
display: flex;
|
|
1792
1835
|
flex: 1;
|
|
1793
1836
|
border-top: 1px solid ${De.border.neutralSoft};
|
|
1794
1837
|
height: 1px;
|
|
1795
|
-
`,
|
|
1838
|
+
`,Jr=r.div`
|
|
1796
1839
|
display: flex;
|
|
1797
1840
|
background-color: ${De.surface.secondary};
|
|
1798
1841
|
margin: 0 18px;
|
|
1799
1842
|
padding: 2px 8px;
|
|
1800
1843
|
border-radius: 6px 6px 0px 0px;
|
|
1801
|
-
`,
|
|
1844
|
+
`,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
1845
|
display: flex;
|
|
1803
1846
|
flex-direction: column;
|
|
1804
1847
|
gap: 8px;
|
|
1805
|
-
`,
|
|
1848
|
+
`,ta=r.div`
|
|
1806
1849
|
display: flex;
|
|
1807
1850
|
flex-direction: row;
|
|
1808
1851
|
gap: 8px;
|
|
1809
|
-
`,
|
|
1852
|
+
`,na=r.div`
|
|
1810
1853
|
display: ${e=>e.visible?"flex":"none"};
|
|
1811
1854
|
flex-direction: column;
|
|
1812
1855
|
gap: 8px;
|
|
1813
|
-
`,
|
|
1856
|
+
`,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
1857
|
display: flex;
|
|
1815
1858
|
width: fit-content;
|
|
1816
1859
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.24);
|
|
@@ -1821,7 +1864,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1821
1864
|
&:hover {
|
|
1822
1865
|
background-color: ${De.surface.neutralSoft};
|
|
1823
1866
|
}
|
|
1824
|
-
`,
|
|
1867
|
+
`,aa=r.div`
|
|
1825
1868
|
display: flex;
|
|
1826
1869
|
align-items: center;
|
|
1827
1870
|
padding: 8px;
|
|
@@ -1838,7 +1881,7 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1838
1881
|
border-bottom: 1px solid ${De.border.neutralSoft};
|
|
1839
1882
|
border-radius: 0px;
|
|
1840
1883
|
`}
|
|
1841
|
-
`,
|
|
1884
|
+
`,la=r.div`
|
|
1842
1885
|
display: flex;
|
|
1843
1886
|
align-items: center;
|
|
1844
1887
|
justify-content: center;
|
|
@@ -1846,18 +1889,18 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1846
1889
|
width: 24px;
|
|
1847
1890
|
border-radius: 24px;
|
|
1848
1891
|
background-color: ${De.surface.primary};
|
|
1849
|
-
`,
|
|
1892
|
+
`,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
1893
|
0% { opacity: 0; transform: translateY(10px); }
|
|
1851
1894
|
20% { opacity: 1; transform: translateY(0); }
|
|
1852
1895
|
80% { opacity: 1; transform: translateY(0); }
|
|
1853
1896
|
100% { opacity: 0; transform: translateY(-10px); }
|
|
1854
|
-
`,
|
|
1897
|
+
`,ca=r.span`
|
|
1855
1898
|
display: inline-block;
|
|
1856
|
-
animation: ${
|
|
1857
|
-
`,
|
|
1899
|
+
animation: ${sa} 2.5s ease-in-out infinite;
|
|
1900
|
+
`,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
1901
|
position: relative;
|
|
1859
1902
|
display: inline-block;
|
|
1860
|
-
`,
|
|
1903
|
+
`,ua=r.div`
|
|
1861
1904
|
display: none;
|
|
1862
1905
|
position: absolute;
|
|
1863
1906
|
top: 100%;
|
|
@@ -1868,8 +1911,8 @@ import{__rest as e,__awaiter as t}from"tslib";import{jsx as n,jsxs as i,Fragment
|
|
|
1868
1911
|
z-index: 10;
|
|
1869
1912
|
border-radius: 24px;
|
|
1870
1913
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
1871
|
-
${
|
|
1914
|
+
${ha}:hover & {
|
|
1872
1915
|
display: block;
|
|
1873
1916
|
}
|
|
1874
|
-
`,
|
|
1917
|
+
`,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
1918
|
//# sourceMappingURL=index.js.map
|