@secondstaxorg/sscomp 1.8.25 → 1.8.27
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/bundle.css +1 -1
- package/dist/fonts/Yellowtail-Regular.ttf +0 -0
- package/dist/index.css +8 -1
- package/dist/index.es.css +8 -1
- package/dist/index.es.js +96 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2088 -1757
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +8 -1
- package/dist/index.min.js +96 -4
- package/dist/index.min.js.map +1 -1
- package/dist/typography.css +8 -0
- package/package.json +1 -1
- package/types/components/DatePicker/DatePicker.d.ts +1 -0
- package/types/components/SignatureField/SignatureField.d.ts +5 -0
- package/types/components/SignatureField/style.d.ts +3 -0
- package/types/components/SignatureField/type.d.ts +6 -0
- package/types/components/Tab/type.d.ts +5 -1
- package/types/components/index.d.ts +1 -0
package/dist/bundle.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default {"display1Medium":"typography_display1Medium__p65-F","display2Medium":"typography_display2Medium__p90JY","heading1Medium":"typography_heading1Medium__HpNdN","heading1SMedium":"typography_heading1SMedium__HVtt-","heading2Medium":"typography_heading2Medium__YaxT5","heading2SMedium":"typography_heading2SMedium__awX2b","heading3Medium":"typography_heading3Medium__9iQg2","heading3SMedium":"typography_heading3SMedium__-Llds","heading4Medium":"typography_heading4Medium__s-vGl","heading4SMedium":"typography_heading4SMedium__eiAiD","heading5Medium":"typography_heading5Medium__j6TZN","heading5SMedium":"typography_heading5SMedium__lt3vu","heading6Medium":"typography_heading6Medium__ek7rt","heading6SMedium":"typography_heading6SMedium__ZcqbS","display1Bold":"typography_display1Bold__GPpO2","display2Bold":"typography_display2Bold__-2-jN","heading1Bold":"typography_heading1Bold__Zv7zk","heading1SBold":"typography_heading1SBold__lXRPW","heading2Bold":"typography_heading2Bold__Xq9uT","heading2SBold":"typography_heading2SBold__Sv-Of","heading3Bold":"typography_heading3Bold__7O9aP","heading3SBold":"typography_heading3SBold__heSC-","heading4Bold":"typography_heading4Bold__QOe0O","heading4SBold":"typography_heading4SBold__Kkklz","heading5Bold":"typography_heading5Bold__0Rd6m","heading5SBold":"typography_heading5SBold__rXZCN","heading6Bold":"typography_heading6Bold__6WQxu","heading6SBold":"typography_heading6SBold__wcFKn","display1Black":"typography_display1Black__PYVxt","display2Black":"typography_display2Black__zPhc5","heading1Black":"typography_heading1Black__Zh6HK","heading1SBlack":"typography_heading1SBlack__XlgEz","heading2Black":"typography_heading2Black__VFL6U","heading2SBlack":"typography_heading2SBlack__IjhZK","heading3Black":"typography_heading3Black__Jvu-n","heading3SBlack":"typography_heading3SBlack__exQzK","heading4Black":"typography_heading4Black__Ls2AB","heading4SBlack":"typography_heading4SBlack__uffh2","heading5Black":"typography_heading5Black__PpZzI","heading5SBlack":"typography_heading5SBlack__7c4D4","heading6Black":"typography_heading6Black__nQ14v","heading6SBlack":"typography_heading6SBlack__pfICx","subheadingRegular":"typography_subheadingRegular__wMBGN","subheadingMedium":"typography_subheadingMedium__0uqNv","subheadingUnderlined":"typography_subheadingUnderlined__Zz2ca","paragraph1Regular":"typography_paragraph1Regular__uuGEy","paragraph1Medium":"typography_paragraph1Medium__ZGj-C","paragraph1Underlined":"typography_paragraph1Underlined__L-7Gr","paragraph2Regular":"typography_paragraph2Regular__pHN4I","paragraph2Medium":"typography_paragraph2Medium__nHNtx","paragraph2Underlined":"typography_paragraph2Underlined__Kxn6n","paragraph3Regular":"typography_paragraph3Regular__mcp96","paragraph3Medium":"typography_paragraph3Medium__IzVmY","paragraph3Underlined":"typography_paragraph3Underlined__BFotj","captionBook":"typography_captionBook__A7rfE","captionMedium":"typography_captionMedium__-qJuP","captionAllCaps":"typography_captionAllCaps__Hb-X2","footerBook":"typography_footerBook__GzWQn","footerMedium":"typography_footerMedium__YexEa","footerAllCaps":"typography_footerAllCaps__CDxdj"};
|
|
1
|
+
export default {"display1Medium":"typography_display1Medium__p65-F","display2Medium":"typography_display2Medium__p90JY","heading1Medium":"typography_heading1Medium__HpNdN","heading1SMedium":"typography_heading1SMedium__HVtt-","heading2Medium":"typography_heading2Medium__YaxT5","heading2SMedium":"typography_heading2SMedium__awX2b","heading3Medium":"typography_heading3Medium__9iQg2","heading3SMedium":"typography_heading3SMedium__-Llds","heading4Medium":"typography_heading4Medium__s-vGl","heading4SMedium":"typography_heading4SMedium__eiAiD","heading5Medium":"typography_heading5Medium__j6TZN","heading5SMedium":"typography_heading5SMedium__lt3vu","heading6Medium":"typography_heading6Medium__ek7rt","heading6SMedium":"typography_heading6SMedium__ZcqbS","display1Bold":"typography_display1Bold__GPpO2","display2Bold":"typography_display2Bold__-2-jN","heading1Bold":"typography_heading1Bold__Zv7zk","heading1SBold":"typography_heading1SBold__lXRPW","heading2Bold":"typography_heading2Bold__Xq9uT","heading2SBold":"typography_heading2SBold__Sv-Of","heading3Bold":"typography_heading3Bold__7O9aP","heading3SBold":"typography_heading3SBold__heSC-","heading4Bold":"typography_heading4Bold__QOe0O","heading4SBold":"typography_heading4SBold__Kkklz","heading5Bold":"typography_heading5Bold__0Rd6m","heading5SBold":"typography_heading5SBold__rXZCN","heading6Bold":"typography_heading6Bold__6WQxu","heading6SBold":"typography_heading6SBold__wcFKn","display1Black":"typography_display1Black__PYVxt","display2Black":"typography_display2Black__zPhc5","heading1Black":"typography_heading1Black__Zh6HK","heading1SBlack":"typography_heading1SBlack__XlgEz","heading2Black":"typography_heading2Black__VFL6U","heading2SBlack":"typography_heading2SBlack__IjhZK","heading3Black":"typography_heading3Black__Jvu-n","heading3SBlack":"typography_heading3SBlack__exQzK","heading4Black":"typography_heading4Black__Ls2AB","heading4SBlack":"typography_heading4SBlack__uffh2","heading5Black":"typography_heading5Black__PpZzI","heading5SBlack":"typography_heading5SBlack__7c4D4","heading6Black":"typography_heading6Black__nQ14v","heading6SBlack":"typography_heading6SBlack__pfICx","subheadingRegular":"typography_subheadingRegular__wMBGN","subheadingMedium":"typography_subheadingMedium__0uqNv","subheadingUnderlined":"typography_subheadingUnderlined__Zz2ca","paragraph1Regular":"typography_paragraph1Regular__uuGEy","paragraph1Medium":"typography_paragraph1Medium__ZGj-C","paragraph1Underlined":"typography_paragraph1Underlined__L-7Gr","paragraph2Regular":"typography_paragraph2Regular__pHN4I","paragraph2Medium":"typography_paragraph2Medium__nHNtx","paragraph2Underlined":"typography_paragraph2Underlined__Kxn6n","paragraph3Regular":"typography_paragraph3Regular__mcp96","paragraph3Medium":"typography_paragraph3Medium__IzVmY","paragraph3Underlined":"typography_paragraph3Underlined__BFotj","captionBook":"typography_captionBook__A7rfE","captionMedium":"typography_captionMedium__-qJuP","captionAllCaps":"typography_captionAllCaps__Hb-X2","footerBook":"typography_footerBook__GzWQn","footerMedium":"typography_footerMedium__YexEa","footerAllCaps":"typography_footerAllCaps__CDxdj","signature":"typography_signature__W-v2-"};
|
|
2
2
|
export default {"loader":"style_loader__WisPd"};
|
|
3
3
|
export default {"icon-search":"icons_icon-search__Suq-P","icon-angle-right-b":"icons_icon-angle-right-b__HUlDm","icon-angle-left":"icons_icon-angle-left__rFa--","icon-angle-left-b":"icons_icon-angle-left-b__d-MbM","icon-exclamation-triangle":"icons_icon-exclamation-triangle__I6HFk","icon-eye":"icons_icon-eye__gR3er","icon-eye-slash":"icons_icon-eye-slash__nB-2V","icon-info-circle":"icons_icon-info-circle__E9tZC","icon-arrow-left":"icons_icon-arrow-left__0FlZU","icon-check":"icons_icon-check__S6CFf","icon-history":"icons_icon-history__Fg53C","icon-dash":"icons_icon-dash__fmxNJ","icon-arrow-up-right":"icons_icon-arrow-up-right__H1cka","icon-arrow-down-right":"icons_icon-arrow-down-right__sQHwe","icon-arrows-left-right":"icons_icon-arrows-left-right__dmv5o","icon-angle-up":"icons_icon-angle-up__oiCBz","icon-user":"icons_icon-user__jooqY","icon-logout":"icons_icon-logout__4kJjS","icon-angle-right":"icons_icon-angle-right__vgtLv","icon-times":"icons_icon-times__tNdUM","icon-bars":"icons_icon-bars__yKP5v","icon-angle-down":"icons_icon-angle-down__jlO4a","icon-bug":"icons_icon-bug__kxO8i","icon-notification":"icons_icon-notification__fQhv-","icon-settings":"icons_icon-settings__pypbX","icon-chart":"icons_icon-chart__czcdA","icon-dashboard":"icons_icon-dashboard__g0twC","icon-report":"icons_icon-report__C2wpi","icon-angle-right-b-16":"icons_icon-angle-right-b-16__6Zc4l","icon-angle-left-16":"icons_icon-angle-left-16__wmprn","icon-angle-left-b-16":"icons_icon-angle-left-b-16__Z8ZYH","icon-angle-right-16":"icons_icon-angle-right-16__0tvm-"};
|
|
4
4
|
export default {"display1Medium":"typography-module_display1Medium__WzrLm","display2Medium":"typography-module_display2Medium__-JMJO","heading1Medium":"typography-module_heading1Medium__8PXHA","heading1SMedium":"typography-module_heading1SMedium__AATI3","heading2Medium":"typography-module_heading2Medium__vNc5j","heading2SMedium":"typography-module_heading2SMedium__E4n5X","heading3Medium":"typography-module_heading3Medium__9qTju","heading3SMedium":"typography-module_heading3SMedium__vgBWm","heading4Medium":"typography-module_heading4Medium__g0LH-","heading4SMedium":"typography-module_heading4SMedium__jR0ts","heading5Medium":"typography-module_heading5Medium__O0uOb","heading5SMedium":"typography-module_heading5SMedium__FD7hn","heading6Medium":"typography-module_heading6Medium__hKoT1","heading6SMedium":"typography-module_heading6SMedium__bSAXF","display1Bold":"typography-module_display1Bold__XR0hN","display2Bold":"typography-module_display2Bold__Bxxeq","heading1Bold":"typography-module_heading1Bold__PiAsP","heading1SBold":"typography-module_heading1SBold__bmlFK","heading2Bold":"typography-module_heading2Bold__yOuDB","heading2SBold":"typography-module_heading2SBold__MlY2O","heading3Bold":"typography-module_heading3Bold__jilQc","heading3SBold":"typography-module_heading3SBold__uI3jN","heading4Bold":"typography-module_heading4Bold__--aKF","heading4SBold":"typography-module_heading4SBold__-ZWrY","heading5Bold":"typography-module_heading5Bold__XsZSd","heading5SBold":"typography-module_heading5SBold__KoO1K","heading6Bold":"typography-module_heading6Bold__hPmXC","heading6SBold":"typography-module_heading6SBold__8uRys","display1Black":"typography-module_display1Black__DfPuC","display2Black":"typography-module_display2Black__dgmd6","heading1Black":"typography-module_heading1Black__8sruN","heading1SBlack":"typography-module_heading1SBlack__alIlb","heading2Black":"typography-module_heading2Black__JiRob","heading2SBlack":"typography-module_heading2SBlack__7909N","heading3Black":"typography-module_heading3Black__KojcB","heading3SBlack":"typography-module_heading3SBlack__mYaMr","heading4Black":"typography-module_heading4Black__QY25R","heading4SBlack":"typography-module_heading4SBlack__k-yw5","heading5Black":"typography-module_heading5Black__HeWDL","heading5SBlack":"typography-module_heading5SBlack__HiDyd","heading6Black":"typography-module_heading6Black__AQt-h","heading6SBlack":"typography-module_heading6SBlack__6LydW","subheadingRegular":"typography-module_subheadingRegular__l-mIW","subheadingMedium":"typography-module_subheadingMedium__o1WbN","subheadingUnderlined":"typography-module_subheadingUnderlined__-6Gfb","paragraph1Regular":"typography-module_paragraph1Regular__MEN3U","paragraph1Medium":"typography-module_paragraph1Medium__WX3UB","paragraph1Underlined":"typography-module_paragraph1Underlined__d3MsO","paragraph2Regular":"typography-module_paragraph2Regular__tmp90","paragraph2Medium":"typography-module_paragraph2Medium__lOwG5","paragraph2Underlined":"typography-module_paragraph2Underlined__qXXT5","paragraph3Regular":"typography-module_paragraph3Regular__AYcDS","paragraph3Medium":"typography-module_paragraph3Medium__2Xt-I","paragraph3Underlined":"typography-module_paragraph3Underlined__9KF21","captionBook":"typography-module_captionBook__aqKsr","captionMedium":"typography-module_captionMedium__xUdVe","captionAllCaps":"typography-module_captionAllCaps__-l9G2","footerBook":"typography-module_footerBook__B4JF0","footerMedium":"typography-module_footerMedium__yFY5y","footerAllCaps":"typography-module_footerAllCaps__t5w9I"};
|
|
Binary file
|
package/dist/index.css
CHANGED
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
font-family: Circular Black;
|
|
15
15
|
src: url("./fonts/Circular Pro Black.ttf");
|
|
16
16
|
}
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: Yellowtail Regular;
|
|
19
|
+
src: url("./fonts/Yellowtail-Regular.ttf");
|
|
20
|
+
}
|
|
17
21
|
|
|
18
22
|
.typography_display1Medium__p65-F,
|
|
19
23
|
.typography_display2Medium__p90JY,
|
|
@@ -320,7 +324,10 @@
|
|
|
320
324
|
letter-spacing: 0.08em;
|
|
321
325
|
text-transform: uppercase;
|
|
322
326
|
}
|
|
323
|
-
|
|
327
|
+
|
|
328
|
+
.typography_signature__W-v2-, .typography_signature__W-v2- input{
|
|
329
|
+
font-family: 'Yellowtail Regular',cursive !important;
|
|
330
|
+
}
|
|
324
331
|
.style_loader__WisPd svg{
|
|
325
332
|
animation: style_loader__WisPd 1.2s infinite linear;
|
|
326
333
|
}
|
package/dist/index.es.css
CHANGED
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
font-family: Circular Black;
|
|
15
15
|
src: url("./fonts/Circular Pro Black.ttf");
|
|
16
16
|
}
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: Yellowtail Regular;
|
|
19
|
+
src: url("./fonts/Yellowtail-Regular.ttf");
|
|
20
|
+
}
|
|
17
21
|
|
|
18
22
|
.typography_display1Medium__p65-F,
|
|
19
23
|
.typography_display2Medium__p90JY,
|
|
@@ -320,7 +324,10 @@
|
|
|
320
324
|
letter-spacing: 0.08em;
|
|
321
325
|
text-transform: uppercase;
|
|
322
326
|
}
|
|
323
|
-
|
|
327
|
+
|
|
328
|
+
.typography_signature__W-v2-, .typography_signature__W-v2- input{
|
|
329
|
+
font-family: 'Yellowtail Regular',cursive !important;
|
|
330
|
+
}
|
|
324
331
|
.style_loader__WisPd svg{
|
|
325
332
|
animation: style_loader__WisPd 1.2s infinite linear;
|
|
326
333
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -1558,7 +1558,19 @@ function kt(e){return e+.5|0}const Bt=(e,t,i)=>Math.max(Math.min(e,i),t);functio
|
|
|
1558
1558
|
background: ${s["neutral-50"]};
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
|
-
.
|
|
1561
|
+
.disabled-month {
|
|
1562
|
+
display: flex;
|
|
1563
|
+
height: 35px;
|
|
1564
|
+
justify-content: center;
|
|
1565
|
+
align-items: center;
|
|
1566
|
+
}
|
|
1567
|
+
.disabled-year {
|
|
1568
|
+
display: flex;
|
|
1569
|
+
justify-content: center;
|
|
1570
|
+
align-items: center;
|
|
1571
|
+
height: 35px;
|
|
1572
|
+
}
|
|
1573
|
+
.previous-month-day,.next-month-day,.past-day,.future-day,.min-year,.max-year,.disabled-month,.disabled-year{
|
|
1562
1574
|
color: ${s["neutral-200"]};
|
|
1563
1575
|
cursor: default;
|
|
1564
1576
|
&:hover{
|
|
@@ -1604,7 +1616,7 @@ function kt(e){return e+.5|0}const Bt=(e,t,i)=>Math.max(Math.min(e,i),t);functio
|
|
|
1604
1616
|
gap: 8px;
|
|
1605
1617
|
justify-content: start;
|
|
1606
1618
|
align-items: center;
|
|
1607
|
-
`,Ss="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\DatePicker\\DatePicker.tsx",Zs=e=>{const{onChange:n,label:l,subtext:a,disablePastDays:s,disableFutureDays:c,placeholder:d,width:u,required:f,value:b,numInvalidPastYears:m,numInvalidFutureYears:h,readonly:p}=e,[A,g]=i(null),[C,v]=i(!1),[N,x]=i(""),w=o(null);r((()=>{b&&(g(b),x("success"))}),[b]),r((()=>{p||document.addEventListener("click",(function(e){w.current&&v(w.current.contains(e.target))}))}),[p]);r((()=>{document.querySelectorAll(".date-field").forEach((e=>{e.addEventListener("click",(function(t){setTimeout((()=>{const t=e.querySelector(".calendar-flyout");if(t){const i=e.getBoundingClientRect(),r=t.offsetHeight,n=window.innerHeight-i.bottom,o=i.top;n<r&&o>r&&(t.style.bottom="55px",t.style.transformOrigin="bottom",t.style.position="absolute")}}),3)}))}))}),[C]);return t.createElement("div",{style:{display:"flex",flexDirection:"column",gap:12,position:"relative"},__self:void 0,__source:{fileName:Ss,lineNumber:90}},l&&t.createElement(Qs,{__self:void 0,__source:{fileName:Ss,lineNumber:92}},t.createElement("label",{className:"paragraph2Medium",__self:void 0,__source:{fileName:Ss,lineNumber:93}},l),a&&t.createElement("span",{className:"paragraph1Regular",__self:void 0,__source:{fileName:Ss,lineNumber:94}},a)),t.createElement(zs,{ref:w,className:`date-field ${N}`,style:{width:u||"100%"},__self:void 0,__source:{fileName:Ss,lineNumber:97}},t.createElement(Ys,{className:`${N} ${C?"focused":""}`,__self:void 0,__source:{fileName:Ss,lineNumber:99}},t.createElement("input",{type:"text",className:"sr-only",required:f,value:A||"",onChange:()=>{},onInvalid:()=>{x("error")},__self:void 0,__source:{fileName:Ss,lineNumber:100}}),t.createElement("input",{type:"text",value:A?A.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",readOnly:!0,placeholder:`${d||"Select date"}`,onClick:()=>{p||v(!0)},onBlur:()=>{f&&!A&&x("error")},__self:void 0,__source:{fileName:Ss,lineNumber:105}}),t.createElement("button",{type:"button",onClick:()=>{C&&setTimeout((()=>{v(!1)}),50)},__self:void 0,__source:{fileName:Ss,lineNumber:120}},t.createElement("svg",{width:"21",height:"22",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:128}},t.createElement("path",{d:"M10.5 18C10.6978 18 10.8911 17.9414 11.0556 17.8315C11.22 17.7216 11.3482 17.5654 11.4239 17.3827C11.4996 17.2 11.5194 16.9989 11.4808 16.8049C11.4422 16.6109 11.347 16.4327 11.2071 16.2929C11.0673 16.153 10.8891 16.0578 10.6951 16.0192C10.5011 15.9806 10.3 16.0004 10.1173 16.0761C9.93459 16.1518 9.77841 16.28 9.66853 16.4444C9.55865 16.6089 9.5 16.8022 9.5 17C9.5 17.2652 9.60536 17.5196 9.79289 17.7071C9.98043 17.8946 10.2348 18 10.5 18ZM15.5 18C15.6978 18 15.8911 17.9414 16.0556 17.8315C16.22 17.7216 16.3482 17.5654 16.4239 17.3827C16.4996 17.2 16.5194 16.9989 16.4808 16.8049C16.4422 16.6109 16.347 16.4327 16.2071 16.2929C16.0673 16.153 15.8891 16.0578 15.6951 16.0192C15.5011 15.9806 15.3 16.0004 15.1173 16.0761C14.9346 16.1518 14.7784 16.28 14.6685 16.4444C14.5586 16.6089 14.5 16.8022 14.5 17C14.5 17.2652 14.6054 17.5196 14.7929 17.7071C14.9804 17.8946 15.2348 18 15.5 18ZM15.5 14C15.6978 14 15.8911 13.9414 16.0556 13.8315C16.22 13.7216 16.3482 13.5654 16.4239 13.3827C16.4996 13.2 16.5194 12.9989 16.4808 12.8049C16.4422 12.6109 16.347 12.4327 16.2071 12.2929C16.0673 12.153 15.8891 12.0578 15.6951 12.0192C15.5011 11.9806 15.3 12.0004 15.1173 12.0761C14.9346 12.1518 14.7784 12.28 14.6685 12.4444C14.5586 12.6089 14.5 12.8022 14.5 13C14.5 13.2652 14.6054 13.5196 14.7929 13.7071C14.9804 13.8946 15.2348 14 15.5 14ZM10.5 14C10.6978 14 10.8911 13.9414 11.0556 13.8315C11.22 13.7216 11.3482 13.5654 11.4239 13.3827C11.4996 13.2 11.5194 12.9989 11.4808 12.8049C11.4422 12.6109 11.347 12.4327 11.2071 12.2929C11.0673 12.153 10.8891 12.0578 10.6951 12.0192C10.5011 11.9806 10.3 12.0004 10.1173 12.0761C9.93459 12.1518 9.77841 12.28 9.66853 12.4444C9.55865 12.6089 9.5 12.8022 9.5 13C9.5 13.2652 9.60536 13.5196 9.79289 13.7071C9.98043 13.8946 10.2348 14 10.5 14ZM17.5 2H16.5V1C16.5 0.734784 16.3946 0.48043 16.2071 0.292893C16.0196 0.105357 15.7652 0 15.5 0C15.2348 0 14.9804 0.105357 14.7929 0.292893C14.6054 0.48043 14.5 0.734784 14.5 1V2H6.5V1C6.5 0.734784 6.39464 0.48043 6.20711 0.292893C6.01957 0.105357 5.76522 0 5.5 0C5.23478 0 4.98043 0.105357 4.79289 0.292893C4.60536 0.48043 4.5 0.734784 4.5 1V2H3.5C2.70435 2 1.94129 2.31607 1.37868 2.87868C0.816071 3.44129 0.5 4.20435 0.5 5V19C0.5 19.7956 0.816071 20.5587 1.37868 21.1213C1.94129 21.6839 2.70435 22 3.5 22H17.5C18.2956 22 19.0587 21.6839 19.6213 21.1213C20.1839 20.5587 20.5 19.7956 20.5 19V5C20.5 4.20435 20.1839 3.44129 19.6213 2.87868C19.0587 2.31607 18.2956 2 17.5 2ZM18.5 19C18.5 19.2652 18.3946 19.5196 18.2071 19.7071C18.0196 19.8946 17.7652 20 17.5 20H3.5C3.23478 20 2.98043 19.8946 2.79289 19.7071C2.60536 19.5196 2.5 19.2652 2.5 19V10H18.5V19ZM18.5 8H2.5V5C2.5 4.73478 2.60536 4.48043 2.79289 4.29289C2.98043 4.10536 3.23478 4 3.5 4H4.5V5C4.5 5.26522 4.60536 5.51957 4.79289 5.70711C4.98043 5.89464 5.23478 6 5.5 6C5.76522 6 6.01957 5.89464 6.20711 5.70711C6.39464 5.51957 6.5 5.26522 6.5 5V4H14.5V5C14.5 5.26522 14.6054 5.51957 14.7929 5.70711C14.9804 5.89464 15.2348 6 15.5 6C15.7652 6 16.0196 5.89464 16.2071 5.70711C16.3946 5.51957 16.5 5.26522 16.5 5V4H17.5C17.7652 4 18.0196 4.10536 18.2071 4.29289C18.3946 4.48043 18.5 4.73478 18.5 5V8ZM5.5 14C5.69778 14 5.89112 13.9414 6.05557 13.8315C6.22002 13.7216 6.34819 13.5654 6.42388 13.3827C6.49957 13.2 6.51937 12.9989 6.48079 12.8049C6.4422 12.6109 6.34696 12.4327 6.20711 12.2929C6.06725 12.153 5.88907 12.0578 5.69509 12.0192C5.50111 11.9806 5.30004 12.0004 5.11732 12.0761C4.93459 12.1518 4.77841 12.28 4.66853 12.4444C4.55865 12.6089 4.5 12.8022 4.5 13C4.5 13.2652 4.60536 13.5196 4.79289 13.7071C4.98043 13.8946 5.23478 14 5.5 14ZM5.5 18C5.69778 18 5.89112 17.9414 6.05557 17.8315C6.22002 17.7216 6.34819 17.5654 6.42388 17.3827C6.49957 17.2 6.51937 16.9989 6.48079 16.8049C6.4422 16.6109 6.34696 16.4327 6.20711 16.2929C6.06725 16.153 5.88907 16.0578 5.69509 16.0192C5.50111 15.9806 5.30004 16.0004 5.11732 16.0761C4.93459 16.1518 4.77841 16.28 4.66853 16.4444C4.55865 16.6089 4.5 16.8022 4.5 17C4.5 17.2652 4.60536 17.5196 4.79289 17.7071C4.98043 17.8946 5.23478 18 5.5 18Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:129}})))),C&&t.createElement(js,{__self:void 0,__source:{fileName:Ss,lineNumber:136}},t.createElement(Gs,{onChange:e=>{var t;g(t=e),n(t),setTimeout((()=>{v(!1)}),10),x("success")},selected:A,disablePastDaysProp:!!s,disableFutureDaysProp:!!c,numInvalidPastYearsProp:m,numInvalidFutureYearsProp:h,__self:void 0,__source:{fileName:Ss,lineNumber:137}})),f&&"error"===N&&t.createElement(Us,{__self:void 0,__source:{fileName:Ss,lineNumber:148}},t.createElement("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:150}},t.createElement("path",{d:"M8.00006 9.66669C7.86821 9.66669 7.73931 9.70578 7.62968 9.77904C7.52005 9.85229 7.4346 9.95641 7.38414 10.0782C7.33368 10.2 7.32048 10.3341 7.3462 10.4634C7.37193 10.5927 7.43542 10.7115 7.52866 10.8048C7.62189 10.898 7.74068 10.9615 7.87 10.9872C7.99932 11.0129 8.13336 10.9997 8.25518 10.9493C8.377 10.8988 8.48112 10.8134 8.55437 10.7037C8.62763 10.5941 8.66673 10.4652 8.66673 10.3334C8.66673 10.1565 8.59649 9.98697 8.47146 9.86195C8.34644 9.73692 8.17687 9.66669 8.00006 9.66669ZM15.1134 10.6467L9.74673 1.31335C9.57326 1.00236 9.31992 0.743323 9.01285 0.562997C8.70579 0.382672 8.35615 0.287598 8.00006 0.287598C7.64396 0.287598 7.29433 0.382672 6.98726 0.562997C6.6802 0.743323 6.42686 1.00236 6.25339 1.31335L0.92006 10.6467C0.74059 10.9494 0.644155 11.294 0.640489 11.6459C0.636824 11.9978 0.726058 12.3444 0.899184 12.6507C1.07231 12.9571 1.3232 13.2123 1.62652 13.3907C1.92984 13.5691 2.27485 13.6643 2.62673 13.6667H13.3734C13.7281 13.6702 14.0773 13.5793 14.3853 13.4033C14.6933 13.2273 14.949 12.9726 15.126 12.6652C15.3031 12.3579 15.3953 12.009 15.3931 11.6542C15.3908 11.2995 15.2943 10.9518 15.1134 10.6467ZM13.9601 11.98C13.9016 12.084 13.8164 12.1704 13.7132 12.2302C13.61 12.29 13.4927 12.321 13.3734 12.32H2.62673C2.50747 12.321 2.39013 12.29 2.28694 12.2302C2.18375 12.1704 2.0985 12.084 2.04006 11.98C1.98155 11.8787 1.95074 11.7637 1.95074 11.6467C1.95074 11.5297 1.98155 11.4147 2.04006 11.3134L7.37339 1.98002C7.42934 1.87082 7.51433 1.77917 7.61902 1.71518C7.72371 1.65119 7.84403 1.61733 7.96673 1.61733C8.08942 1.61733 8.20974 1.65119 8.31443 1.71518C8.41912 1.77917 8.50411 1.87082 8.56006 1.98002L13.9267 11.3134C13.9929 11.4132 14.0309 11.5291 14.0367 11.6488C14.0426 11.7684 14.0161 11.8875 13.9601 11.9934V11.98ZM8.00006 4.33335C7.82325 4.33335 7.65368 4.40359 7.52866 4.52861C7.40363 4.65364 7.33339 4.82321 7.33339 5.00002V7.66669C7.33339 7.8435 7.40363 8.01307 7.52866 8.13809C7.65368 8.26311 7.82325 8.33335 8.00006 8.33335C8.17687 8.33335 8.34644 8.26311 8.47146 8.13809C8.59649 8.01307 8.66673 7.8435 8.66673 7.66669V5.00002C8.66673 4.82321 8.59649 4.65364 8.47146 4.52861C8.34644 4.40359 8.17687 4.33335 8.00006 4.33335Z",fill:"#F80000",__self:void 0,__source:{fileName:Ss,lineNumber:151}})),t.createElement("span",{className:"paragraph1Regular",__self:void 0,__source:{fileName:Ss,lineNumber:155}},"This field is required"))))},Gs=({onChange:e,selected:n,disablePastDaysProp:o,disableFutureDaysProp:l,numInvalidPastYearsProp:a,numInvalidFutureYearsProp:s})=>{const[c,d]=i(n||new Date),[u,f]=i((new Date).getFullYear()),[b,m]=i(!0),[h,p]=i(!1),A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=(e,t)=>new Date(e,t+1,0).getDate();r((()=>{a&&(f(u-a-1),d(new Date(u-a-1,0,1))),s&&(f(u+s+1),d(new Date(u+s+1,0,1)))}),[a,s]);const C=t=>{const i=new Date(c.getFullYear(),c.getMonth(),t);e(i)},v=e=>{d(new Date(c.setFullYear(e))),setTimeout((()=>{m(!1),p(!0)}),20)};return t.createElement(Vs,{className:"calendar-flyout",__self:void 0,__source:{fileName:Ss,lineNumber:369}},t.createElement("div",{className:"header",__self:void 0,__source:{fileName:Ss,lineNumber:370}},!b&&!h&&t.createElement("button",{type:"button",onClick:()=>{f(u-20)},__self:void 0,__source:{fileName:Ss,lineNumber:372}},t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:374}},t.createElement("path",{d:"M6.29 9.29C6.19896 9.3851 6.12759 9.49725 6.08 9.62C5.97998 9.86346 5.97998 10.1365 6.08 10.38C6.12759 10.5028 6.19896 10.6149 6.29 10.71L9.29 13.71C9.4783 13.8983 9.7337 14.0041 10 14.0041C10.2663 14.0041 10.5217 13.8983 10.71 13.71C10.8983 13.5217 11.0041 13.2663 11.0041 13C11.0041 12.7337 10.8983 12.4783 10.71 12.29L9.41 11H13C13.2652 11 13.5196 10.8946 13.7071 10.7071C13.8946 10.5196 14 10.2652 14 10C14 9.73478 13.8946 9.48043 13.7071 9.29289C13.5196 9.10536 13.2652 9 13 9H9.41L10.71 7.71C10.8037 7.61704 10.8781 7.50644 10.9289 7.38458C10.9797 7.26272 11.0058 7.13201 11.0058 7C11.0058 6.86799 10.9797 6.73728 10.9289 6.61542C10.8781 6.49356 10.8037 6.38296 10.71 6.29C10.617 6.19627 10.5064 6.12188 10.3846 6.07111C10.2627 6.02034 10.132 5.9942 10 5.9942C9.86799 5.9942 9.73728 6.02034 9.61542 6.07111C9.49356 6.12188 9.38296 6.19627 9.29 6.29L6.29 9.29ZM0 10C0 11.9778 0.58649 13.9112 1.6853 15.5557C2.78412 17.2002 4.3459 18.4819 6.17317 19.2388C8.00043 19.9957 10.0111 20.1937 11.9509 19.8079C13.8907 19.422 15.6725 18.4696 17.0711 17.0711C18.4696 15.6725 19.422 13.8907 19.8079 11.9509C20.1937 10.0111 19.9957 8.00043 19.2388 6.17317C18.4819 4.3459 17.2002 2.78412 15.5557 1.6853C13.9112 0.58649 11.9778 0 10 0C8.68678 0 7.38642 0.258658 6.17317 0.761205C4.95991 1.26375 3.85752 2.00035 2.92893 2.92893C1.05357 4.8043 0 7.34784 0 10ZM18 10C18 11.5823 17.5308 13.129 16.6518 14.4446C15.7727 15.7602 14.5233 16.7855 13.0615 17.391C11.5997 17.9965 9.99113 18.155 8.43928 17.8463C6.88743 17.5376 5.46197 16.7757 4.34315 15.6569C3.22433 14.538 2.4624 13.1126 2.15372 11.5607C1.84504 10.0089 2.00346 8.40034 2.60896 6.93853C3.21447 5.47672 4.23984 4.22729 5.55544 3.34824C6.87103 2.46919 8.41775 2 10 2C12.1217 2 14.1566 2.84285 15.6569 4.34315C17.1571 5.84344 18 7.87827 18 10Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:375}}))),b&&t.createElement("button",{type:"button",onClick:()=>{d(new Date(c.getFullYear(),c.getMonth()-1))},__self:void 0,__source:{fileName:Ss,lineNumber:382}},t.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:384}},t.createElement("path",{d:"M3.28982 5.99995L6.82982 2.45995C7.01607 2.27259 7.12061 2.01913 7.12061 1.75495C7.12061 1.49076 7.01607 1.23731 6.82982 1.04995C6.73686 0.95622 6.62626 0.881826 6.5044 0.831057C6.38254 0.780288 6.25183 0.75415 6.11982 0.75415C5.98781 0.75415 5.8571 0.780288 5.73524 0.831057C5.61339 0.881826 5.50278 0.95622 5.40982 1.04995L1.16982 5.28995C1.07609 5.38291 1.0017 5.49351 0.950931 5.61537C0.900162 5.73723 0.874023 5.86794 0.874023 5.99995C0.874023 6.13196 0.900162 6.26267 0.950931 6.38453C1.0017 6.50638 1.07609 6.61699 1.16982 6.70995L5.40982 10.9999C5.50326 11.0926 5.61408 11.166 5.73592 11.2157C5.85775 11.2655 5.98821 11.2907 6.11982 11.2899C6.25143 11.2907 6.38189 11.2655 6.50373 11.2157C6.62557 11.166 6.73638 11.0926 6.82982 10.9999C7.01607 10.8126 7.12061 10.5591 7.12061 10.2949C7.12061 10.0308 7.01607 9.77731 6.82982 9.58995L3.28982 5.99995Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:385}}))),t.createElement("div",{className:"month-year-area",__self:void 0,__source:{fileName:Ss,lineNumber:391}},h&&t.createElement("button",{type:"button",className:"month-cls-btn",onClick:()=>{setTimeout((()=>{m(!1),p(!1)}),20)},__self:void 0,__source:{fileName:Ss,lineNumber:393}},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:395}},t.createElement("path",{d:"M13.4099 11.9999L17.7099 7.70994C17.8982 7.52164 18.004 7.26624 18.004 6.99994C18.004 6.73364 17.8982 6.47825 17.7099 6.28994C17.5216 6.10164 17.2662 5.99585 16.9999 5.99585C16.7336 5.99585 16.4782 6.10164 16.2899 6.28994L11.9999 10.5899L7.70994 6.28994C7.52164 6.10164 7.26624 5.99585 6.99994 5.99585C6.73364 5.99585 6.47824 6.10164 6.28994 6.28994C6.10164 6.47825 5.99585 6.73364 5.99585 6.99994C5.99585 7.26624 6.10164 7.52164 6.28994 7.70994L10.5899 11.9999L6.28994 16.2899C6.19621 16.3829 6.12182 16.4935 6.07105 16.6154C6.02028 16.7372 5.99414 16.8679 5.99414 16.9999C5.99414 17.132 6.02028 17.2627 6.07105 17.3845C6.12182 17.5064 6.19621 17.617 6.28994 17.7099C6.3829 17.8037 6.4935 17.8781 6.61536 17.9288C6.73722 17.9796 6.86793 18.0057 6.99994 18.0057C7.13195 18.0057 7.26266 17.9796 7.38452 17.9288C7.50638 17.8781 7.61698 17.8037 7.70994 17.7099L11.9999 13.4099L16.2899 17.7099C16.3829 17.8037 16.4935 17.8781 16.6154 17.9288C16.7372 17.9796 16.8679 18.0057 16.9999 18.0057C17.132 18.0057 17.2627 17.9796 17.3845 17.9288C17.5064 17.8781 17.617 17.8037 17.7099 17.7099C17.8037 17.617 17.8781 17.5064 17.9288 17.3845C17.9796 17.2627 18.0057 17.132 18.0057 16.9999C18.0057 16.8679 17.9796 16.7372 17.9288 16.6154C17.8781 16.4935 17.8037 16.3829 17.7099 16.2899L13.4099 11.9999Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:396}}))),t.createElement("div",{className:"month-year-btn-container",__self:void 0,__source:{fileName:Ss,lineNumber:400}},t.createElement("button",{type:"button",className:"month-year",onClick:()=>{p(!1),m(!b)},__self:void 0,__source:{fileName:Ss,lineNumber:401}},c.toLocaleString("en-us",{month:"long",year:"numeric"}),t.createElement("svg",{className:b?"year-view":"",width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:404}},t.createElement("path",{d:"M11 1.17C10.8126 0.983753 10.5592 0.879211 10.295 0.879211C10.0308 0.879211 9.77737 0.983753 9.59001 1.17L6.00001 4.71L2.46001 1.17C2.27265 0.983753 2.0192 0.879211 1.75501 0.879211C1.49082 0.879211 1.23737 0.983753 1.05001 1.17C0.956281 1.26297 0.881887 1.37357 0.831118 1.49543C0.780349 1.61729 0.754211 1.74799 0.754211 1.88C0.754211 2.01202 0.780349 2.14272 0.831118 2.26458C0.881887 2.38644 0.956281 2.49704 1.05001 2.59L5.29001 6.83C5.38297 6.92373 5.49357 6.99813 5.61543 7.04889C5.73729 7.09966 5.868 7.1258 6.00001 7.1258C6.13202 7.1258 6.26273 7.09966 6.38459 7.04889C6.50645 6.99813 6.61705 6.92373 6.71001 6.83L11 2.59C11.0937 2.49704 11.1681 2.38644 11.2189 2.26458C11.2697 2.14272 11.2958 2.01202 11.2958 1.88C11.2958 1.74799 11.2697 1.61729 11.2189 1.49543C11.1681 1.37357 11.0937 1.26297 11 1.17Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:406}}))))),b&&t.createElement("button",{type:"button",onClick:()=>{d(new Date(c.getFullYear(),c.getMonth()+1))},__self:void 0,__source:{fileName:Ss,lineNumber:414}},t.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:416}},t.createElement("path",{d:"M6.83019 5.28995L2.59019 1.04995C2.49722 0.95622 2.38662 0.881826 2.26476 0.831057C2.1429 0.780288 2.0122 0.75415 1.88019 0.75415C1.74818 0.75415 1.61747 0.780288 1.49561 0.831057C1.37375 0.881826 1.26315 0.95622 1.17019 1.04995C0.983936 1.23731 0.879395 1.49076 0.879395 1.75495C0.879395 2.01913 0.983936 2.27259 1.17019 2.45995L4.71019 5.99995L1.17019 9.53995C0.983936 9.72731 0.879395 9.98076 0.879395 10.2449C0.879395 10.5091 0.983936 10.7626 1.17019 10.9499C1.26363 11.0426 1.37444 11.116 1.49628 11.1657C1.61812 11.2155 1.74858 11.2407 1.88019 11.2399C2.01179 11.2407 2.14226 11.2155 2.26409 11.1657C2.38593 11.116 2.49675 11.0426 2.59019 10.9499L6.83019 6.70995C6.92392 6.61699 6.99831 6.50638 7.04908 6.38453C7.09985 6.26267 7.12599 6.13196 7.12599 5.99995C7.12599 5.86794 7.09985 5.73723 7.04908 5.61537C6.99831 5.49351 6.92392 5.38291 6.83019 5.28995Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:417}}))),!b&&!h&&t.createElement("button",{type:"button",onClick:()=>{f(u+20)},__self:void 0,__source:{fileName:Ss,lineNumber:424}},t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:426}},t.createElement("path",{d:"M13.71 10.71C13.801 10.6149 13.8724 10.5028 13.92 10.38C14.02 10.1365 14.02 9.86347 13.92 9.62C13.8724 9.49725 13.801 9.38511 13.71 9.29L10.71 6.29C10.5217 6.1017 10.2663 5.99591 10 5.99591C9.7337 5.99591 9.47831 6.1017 9.29 6.29C9.1017 6.47831 8.99591 6.7337 8.99591 7C8.99591 7.26631 9.1017 7.5217 9.29 7.71L10.59 9H7C6.73479 9 6.48043 9.10536 6.2929 9.2929C6.10536 9.48043 6 9.73479 6 10C6 10.2652 6.10536 10.5196 6.2929 10.7071C6.48043 10.8946 6.73479 11 7 11H10.59L9.29 12.29C9.19628 12.383 9.12188 12.4936 9.07111 12.6154C9.02034 12.7373 8.99421 12.868 8.99421 13C8.99421 13.132 9.02034 13.2627 9.07111 13.3846C9.12188 13.5064 9.19628 13.617 9.29 13.71C9.38297 13.8037 9.49357 13.8781 9.61543 13.9289C9.73729 13.9797 9.86799 14.0058 10 14.0058C10.132 14.0058 10.2627 13.9797 10.3846 13.9289C10.5064 13.8781 10.617 13.8037 10.71 13.71L13.71 10.71ZM20 10C20 8.02219 19.4135 6.08879 18.3147 4.4443C17.2159 2.79981 15.6541 1.51809 13.8268 0.761209C11.9996 0.00433284 9.98891 -0.193701 8.0491 0.192152C6.10929 0.578004 4.32746 1.53041 2.92894 2.92894C1.53041 4.32746 0.578004 6.10929 0.192152 8.0491C-0.193701 9.98891 0.00433284 11.9996 0.761209 13.8268C1.51809 15.6541 2.79981 17.2159 4.4443 18.3147C6.08879 19.4135 8.02219 20 10 20C12.6522 20 15.1957 18.9464 17.0711 17.0711C18.9464 15.1957 20 12.6522 20 10ZM2 10C2 8.41775 2.4692 6.87104 3.34825 5.55544C4.2273 4.23985 5.47673 3.21447 6.93854 2.60897C8.40035 2.00347 10.0089 1.84504 11.5607 2.15372C13.1126 2.4624 14.538 3.22433 15.6569 4.34315C16.7757 5.46197 17.5376 6.88743 17.8463 8.43928C18.155 9.99113 17.9965 11.5997 17.391 13.0615C16.7855 14.5233 15.7602 15.7727 14.4446 16.6518C13.129 17.5308 11.5823 18 10 18C7.87827 18 5.84344 17.1572 4.34315 15.6569C2.84286 14.1566 2 12.1217 2 10Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:427}})))),t.createElement("div",{style:{display:b?"block ":"none"},__self:void 0,__source:{fileName:Ss,lineNumber:435}},t.createElement("div",{className:"weekdays",__self:void 0,__source:{fileName:Ss,lineNumber:436}},["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>t.createElement("div",{key:e,className:"weekday",__self:void 0,__source:{fileName:Ss,lineNumber:438}},e)))),t.createElement("div",{className:"days",__self:void 0,__source:{fileName:Ss,lineNumber:443}},(()=>{const e=c.getFullYear(),i=c.getMonth(),r=g(e,i),d=((e,t)=>new Date(e,t,1).getDay())(e,i),u=g(e,0===i?11:i-1),f=[];for(let e=d-1;e>=0;e--){const i=u-e;f.push(t.createElement("div",{key:`previous-day-${i}`,className:"calendar-day previous-month-day",__self:void 0,__source:{fileName:Ss,lineNumber:263}},i))}const b=new Date,m=b.getDate();for(let c=1;c<=r;c++){const r=n&&n.getDate()===c&&n.getMonth()===i&&n.getFullYear()===e,d=c===m&&i===b.getMonth()&&e===b.getFullYear(),u=o&&(e<b.getFullYear()||e===b.getFullYear()&&i<b.getMonth()||e===b.getFullYear()&&i===b.getMonth()&&c<m),h=a&&b.getFullYear()-a<=e,p=s&&b.getFullYear()+s>=e,A=l&&(e>b.getFullYear()||e===b.getFullYear()&&i>b.getMonth()||e===b.getFullYear()&&i===b.getMonth()&&c>m),g=r?"selected-day":!d||h||p?u?"past-day":A||p?"future-day":h?"min-year":"":"current-day",v=u||A||h||p?()=>{}:()=>C(c);f.push(t.createElement("div",{key:`current-day-${c}`,className:`calendar-day ${g}`,onClick:v,__self:void 0,__source:{fileName:Ss,lineNumber:309}},c))}const h=(7-f.length%7)%7;for(let e=1;e<=h;e++)f.push(t.createElement("div",{key:`next-day-${e}`,className:"calendar-day next-month-day",__self:void 0,__source:{fileName:Ss,lineNumber:323}},e));return f})())),t.createElement("div",{style:{display:b?"none":"block"},__self:void 0,__source:{fileName:Ss,lineNumber:447}},h&&(()=>{const e=[];for(let i=0;i<A.length;i++)e.push(t.createElement("div",{key:i,onClick:()=>{var e;e=i,d(new Date(c.setMonth(e))),setTimeout((()=>{p(!1),m(!0)}),20)},className:"month-option",__self:void 0,__source:{fileName:Ss,lineNumber:335}},A[i]));return t.createElement("div",{className:"month-options",__self:void 0,__source:{fileName:Ss,lineNumber:344}},e)})(),!h&&(e=>{const i=[];for(let r=e-10;r<=e+10;r++){const e=r===c.getFullYear()?"selected-year":"";i.push(t.createElement("div",{key:r,onClick:()=>{v(r)},className:`year-option ${e}`,__self:void 0,__source:{fileName:Ss,lineNumber:353}},r))}return t.createElement("div",{className:"year-picker",__self:void 0,__source:{fileName:Ss,lineNumber:362}},t.createElement("div",{className:"year-options",__self:void 0,__source:{fileName:Ss,lineNumber:363}},i))})(u)))},Ks=l.div`
|
|
1619
|
+
`,Ss="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\DatePicker\\DatePicker.tsx",Zs=e=>{const{onChange:n,label:l,subtext:a,disablePastDays:s,disableFutureDays:c,placeholder:d,width:u,required:f,value:b,numInvalidPastYears:m,numInvalidFutureYears:h,readonly:p}=e,[A,g]=i(null),[C,v]=i(!1),[N,x]=i(""),w=o(null);r((()=>{b&&(g(b),x("success"))}),[b]),r((()=>{p||document.addEventListener("click",(function(e){w.current&&v(w.current.contains(e.target))}))}),[p]);r((()=>{document.querySelectorAll(".date-field").forEach((e=>{e.addEventListener("click",(function(t){setTimeout((()=>{const t=e.querySelector(".calendar-flyout");if(t){const i=e.getBoundingClientRect(),r=t.offsetHeight,n=window.innerHeight-i.bottom,o=i.top;n<r&&o>r&&(t.style.bottom="55px",t.style.transformOrigin="bottom",t.style.position="absolute")}}),3)}))}))}),[C]);return t.createElement("div",{style:{display:"flex",flexDirection:"column",gap:12,position:"relative"},__self:void 0,__source:{fileName:Ss,lineNumber:91}},l&&t.createElement(Qs,{__self:void 0,__source:{fileName:Ss,lineNumber:93}},t.createElement("label",{className:"paragraph2Medium",__self:void 0,__source:{fileName:Ss,lineNumber:94}},l),a&&t.createElement("span",{className:"paragraph1Regular",__self:void 0,__source:{fileName:Ss,lineNumber:95}},a)),t.createElement(zs,{ref:w,className:`date-field ${N}`,style:{width:u||"100%"},__self:void 0,__source:{fileName:Ss,lineNumber:98}},t.createElement(Ys,{className:`${N} ${C?"focused":""}`,__self:void 0,__source:{fileName:Ss,lineNumber:100}},t.createElement("input",{type:"text",className:"sr-only",required:f,value:A||"",onChange:()=>{},onInvalid:()=>{x("error")},__self:void 0,__source:{fileName:Ss,lineNumber:101}}),t.createElement("input",{type:"text",value:A?A.toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}):"",readOnly:!0,placeholder:`${d||"Select date"}`,onClick:()=>{p||v(!0)},onBlur:()=>{f&&!A&&x("error")},__self:void 0,__source:{fileName:Ss,lineNumber:106}}),t.createElement("button",{type:"button",onClick:()=>{C&&setTimeout((()=>{v(!1)}),50)},__self:void 0,__source:{fileName:Ss,lineNumber:121}},t.createElement("svg",{width:"21",height:"22",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:129}},t.createElement("path",{d:"M10.5 18C10.6978 18 10.8911 17.9414 11.0556 17.8315C11.22 17.7216 11.3482 17.5654 11.4239 17.3827C11.4996 17.2 11.5194 16.9989 11.4808 16.8049C11.4422 16.6109 11.347 16.4327 11.2071 16.2929C11.0673 16.153 10.8891 16.0578 10.6951 16.0192C10.5011 15.9806 10.3 16.0004 10.1173 16.0761C9.93459 16.1518 9.77841 16.28 9.66853 16.4444C9.55865 16.6089 9.5 16.8022 9.5 17C9.5 17.2652 9.60536 17.5196 9.79289 17.7071C9.98043 17.8946 10.2348 18 10.5 18ZM15.5 18C15.6978 18 15.8911 17.9414 16.0556 17.8315C16.22 17.7216 16.3482 17.5654 16.4239 17.3827C16.4996 17.2 16.5194 16.9989 16.4808 16.8049C16.4422 16.6109 16.347 16.4327 16.2071 16.2929C16.0673 16.153 15.8891 16.0578 15.6951 16.0192C15.5011 15.9806 15.3 16.0004 15.1173 16.0761C14.9346 16.1518 14.7784 16.28 14.6685 16.4444C14.5586 16.6089 14.5 16.8022 14.5 17C14.5 17.2652 14.6054 17.5196 14.7929 17.7071C14.9804 17.8946 15.2348 18 15.5 18ZM15.5 14C15.6978 14 15.8911 13.9414 16.0556 13.8315C16.22 13.7216 16.3482 13.5654 16.4239 13.3827C16.4996 13.2 16.5194 12.9989 16.4808 12.8049C16.4422 12.6109 16.347 12.4327 16.2071 12.2929C16.0673 12.153 15.8891 12.0578 15.6951 12.0192C15.5011 11.9806 15.3 12.0004 15.1173 12.0761C14.9346 12.1518 14.7784 12.28 14.6685 12.4444C14.5586 12.6089 14.5 12.8022 14.5 13C14.5 13.2652 14.6054 13.5196 14.7929 13.7071C14.9804 13.8946 15.2348 14 15.5 14ZM10.5 14C10.6978 14 10.8911 13.9414 11.0556 13.8315C11.22 13.7216 11.3482 13.5654 11.4239 13.3827C11.4996 13.2 11.5194 12.9989 11.4808 12.8049C11.4422 12.6109 11.347 12.4327 11.2071 12.2929C11.0673 12.153 10.8891 12.0578 10.6951 12.0192C10.5011 11.9806 10.3 12.0004 10.1173 12.0761C9.93459 12.1518 9.77841 12.28 9.66853 12.4444C9.55865 12.6089 9.5 12.8022 9.5 13C9.5 13.2652 9.60536 13.5196 9.79289 13.7071C9.98043 13.8946 10.2348 14 10.5 14ZM17.5 2H16.5V1C16.5 0.734784 16.3946 0.48043 16.2071 0.292893C16.0196 0.105357 15.7652 0 15.5 0C15.2348 0 14.9804 0.105357 14.7929 0.292893C14.6054 0.48043 14.5 0.734784 14.5 1V2H6.5V1C6.5 0.734784 6.39464 0.48043 6.20711 0.292893C6.01957 0.105357 5.76522 0 5.5 0C5.23478 0 4.98043 0.105357 4.79289 0.292893C4.60536 0.48043 4.5 0.734784 4.5 1V2H3.5C2.70435 2 1.94129 2.31607 1.37868 2.87868C0.816071 3.44129 0.5 4.20435 0.5 5V19C0.5 19.7956 0.816071 20.5587 1.37868 21.1213C1.94129 21.6839 2.70435 22 3.5 22H17.5C18.2956 22 19.0587 21.6839 19.6213 21.1213C20.1839 20.5587 20.5 19.7956 20.5 19V5C20.5 4.20435 20.1839 3.44129 19.6213 2.87868C19.0587 2.31607 18.2956 2 17.5 2ZM18.5 19C18.5 19.2652 18.3946 19.5196 18.2071 19.7071C18.0196 19.8946 17.7652 20 17.5 20H3.5C3.23478 20 2.98043 19.8946 2.79289 19.7071C2.60536 19.5196 2.5 19.2652 2.5 19V10H18.5V19ZM18.5 8H2.5V5C2.5 4.73478 2.60536 4.48043 2.79289 4.29289C2.98043 4.10536 3.23478 4 3.5 4H4.5V5C4.5 5.26522 4.60536 5.51957 4.79289 5.70711C4.98043 5.89464 5.23478 6 5.5 6C5.76522 6 6.01957 5.89464 6.20711 5.70711C6.39464 5.51957 6.5 5.26522 6.5 5V4H14.5V5C14.5 5.26522 14.6054 5.51957 14.7929 5.70711C14.9804 5.89464 15.2348 6 15.5 6C15.7652 6 16.0196 5.89464 16.2071 5.70711C16.3946 5.51957 16.5 5.26522 16.5 5V4H17.5C17.7652 4 18.0196 4.10536 18.2071 4.29289C18.3946 4.48043 18.5 4.73478 18.5 5V8ZM5.5 14C5.69778 14 5.89112 13.9414 6.05557 13.8315C6.22002 13.7216 6.34819 13.5654 6.42388 13.3827C6.49957 13.2 6.51937 12.9989 6.48079 12.8049C6.4422 12.6109 6.34696 12.4327 6.20711 12.2929C6.06725 12.153 5.88907 12.0578 5.69509 12.0192C5.50111 11.9806 5.30004 12.0004 5.11732 12.0761C4.93459 12.1518 4.77841 12.28 4.66853 12.4444C4.55865 12.6089 4.5 12.8022 4.5 13C4.5 13.2652 4.60536 13.5196 4.79289 13.7071C4.98043 13.8946 5.23478 14 5.5 14ZM5.5 18C5.69778 18 5.89112 17.9414 6.05557 17.8315C6.22002 17.7216 6.34819 17.5654 6.42388 17.3827C6.49957 17.2 6.51937 16.9989 6.48079 16.8049C6.4422 16.6109 6.34696 16.4327 6.20711 16.2929C6.06725 16.153 5.88907 16.0578 5.69509 16.0192C5.50111 15.9806 5.30004 16.0004 5.11732 16.0761C4.93459 16.1518 4.77841 16.28 4.66853 16.4444C4.55865 16.6089 4.5 16.8022 4.5 17C4.5 17.2652 4.60536 17.5196 4.79289 17.7071C4.98043 17.8946 5.23478 18 5.5 18Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:130}})))),C&&t.createElement(js,{__self:void 0,__source:{fileName:Ss,lineNumber:137}},t.createElement(Gs,{onChange:e=>{var t;g(t=e),n(t),setTimeout((()=>{v(!1)}),10),x("success")},selected:A,disablePastDaysProp:!!s,disableFutureDaysProp:!!c,numInvalidPastYearsProp:m,numInvalidFutureYearsProp:h,__self:void 0,__source:{fileName:Ss,lineNumber:138}})),f&&"error"===N&&t.createElement(Us,{__self:void 0,__source:{fileName:Ss,lineNumber:149}},t.createElement("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:151}},t.createElement("path",{d:"M8.00006 9.66669C7.86821 9.66669 7.73931 9.70578 7.62968 9.77904C7.52005 9.85229 7.4346 9.95641 7.38414 10.0782C7.33368 10.2 7.32048 10.3341 7.3462 10.4634C7.37193 10.5927 7.43542 10.7115 7.52866 10.8048C7.62189 10.898 7.74068 10.9615 7.87 10.9872C7.99932 11.0129 8.13336 10.9997 8.25518 10.9493C8.377 10.8988 8.48112 10.8134 8.55437 10.7037C8.62763 10.5941 8.66673 10.4652 8.66673 10.3334C8.66673 10.1565 8.59649 9.98697 8.47146 9.86195C8.34644 9.73692 8.17687 9.66669 8.00006 9.66669ZM15.1134 10.6467L9.74673 1.31335C9.57326 1.00236 9.31992 0.743323 9.01285 0.562997C8.70579 0.382672 8.35615 0.287598 8.00006 0.287598C7.64396 0.287598 7.29433 0.382672 6.98726 0.562997C6.6802 0.743323 6.42686 1.00236 6.25339 1.31335L0.92006 10.6467C0.74059 10.9494 0.644155 11.294 0.640489 11.6459C0.636824 11.9978 0.726058 12.3444 0.899184 12.6507C1.07231 12.9571 1.3232 13.2123 1.62652 13.3907C1.92984 13.5691 2.27485 13.6643 2.62673 13.6667H13.3734C13.7281 13.6702 14.0773 13.5793 14.3853 13.4033C14.6933 13.2273 14.949 12.9726 15.126 12.6652C15.3031 12.3579 15.3953 12.009 15.3931 11.6542C15.3908 11.2995 15.2943 10.9518 15.1134 10.6467ZM13.9601 11.98C13.9016 12.084 13.8164 12.1704 13.7132 12.2302C13.61 12.29 13.4927 12.321 13.3734 12.32H2.62673C2.50747 12.321 2.39013 12.29 2.28694 12.2302C2.18375 12.1704 2.0985 12.084 2.04006 11.98C1.98155 11.8787 1.95074 11.7637 1.95074 11.6467C1.95074 11.5297 1.98155 11.4147 2.04006 11.3134L7.37339 1.98002C7.42934 1.87082 7.51433 1.77917 7.61902 1.71518C7.72371 1.65119 7.84403 1.61733 7.96673 1.61733C8.08942 1.61733 8.20974 1.65119 8.31443 1.71518C8.41912 1.77917 8.50411 1.87082 8.56006 1.98002L13.9267 11.3134C13.9929 11.4132 14.0309 11.5291 14.0367 11.6488C14.0426 11.7684 14.0161 11.8875 13.9601 11.9934V11.98ZM8.00006 4.33335C7.82325 4.33335 7.65368 4.40359 7.52866 4.52861C7.40363 4.65364 7.33339 4.82321 7.33339 5.00002V7.66669C7.33339 7.8435 7.40363 8.01307 7.52866 8.13809C7.65368 8.26311 7.82325 8.33335 8.00006 8.33335C8.17687 8.33335 8.34644 8.26311 8.47146 8.13809C8.59649 8.01307 8.66673 7.8435 8.66673 7.66669V5.00002C8.66673 4.82321 8.59649 4.65364 8.47146 4.52861C8.34644 4.40359 8.17687 4.33335 8.00006 4.33335Z",fill:"#F80000",__self:void 0,__source:{fileName:Ss,lineNumber:152}})),t.createElement("span",{className:"paragraph1Regular",__self:void 0,__source:{fileName:Ss,lineNumber:156}},"This field is required"))))},Gs=({onChange:e,selected:n,disablePastDaysProp:o,disableFutureDaysProp:l,numInvalidPastYearsProp:a,numInvalidFutureYearsProp:s})=>{const[c,d]=i(n||new Date),[u,f]=i((new Date).getFullYear()),[b,m]=i(!0),[h,p]=i(!1),A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],g=(e,t)=>new Date(e,t+1,0).getDate();r((()=>{a&&(f(u-a-1),d(new Date(u-a-1,0,1))),s&&(f(u+s+1),d(new Date(u+s+1,0,1)))}),[a,s]);const C=t=>{const i=new Date(c.getFullYear(),c.getMonth(),t);e(i)},v=e=>{d(new Date(c.setFullYear(e))),setTimeout((()=>{m(!1),p(!0)}),20)};return t.createElement(Vs,{className:"calendar-flyout",__self:void 0,__source:{fileName:Ss,lineNumber:424}},t.createElement("div",{className:"header",__self:void 0,__source:{fileName:Ss,lineNumber:425}},!b&&!h&&t.createElement("button",{type:"button",onClick:()=>{f(u-20)},__self:void 0,__source:{fileName:Ss,lineNumber:427}},t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:429}},t.createElement("path",{d:"M6.29 9.29C6.19896 9.3851 6.12759 9.49725 6.08 9.62C5.97998 9.86346 5.97998 10.1365 6.08 10.38C6.12759 10.5028 6.19896 10.6149 6.29 10.71L9.29 13.71C9.4783 13.8983 9.7337 14.0041 10 14.0041C10.2663 14.0041 10.5217 13.8983 10.71 13.71C10.8983 13.5217 11.0041 13.2663 11.0041 13C11.0041 12.7337 10.8983 12.4783 10.71 12.29L9.41 11H13C13.2652 11 13.5196 10.8946 13.7071 10.7071C13.8946 10.5196 14 10.2652 14 10C14 9.73478 13.8946 9.48043 13.7071 9.29289C13.5196 9.10536 13.2652 9 13 9H9.41L10.71 7.71C10.8037 7.61704 10.8781 7.50644 10.9289 7.38458C10.9797 7.26272 11.0058 7.13201 11.0058 7C11.0058 6.86799 10.9797 6.73728 10.9289 6.61542C10.8781 6.49356 10.8037 6.38296 10.71 6.29C10.617 6.19627 10.5064 6.12188 10.3846 6.07111C10.2627 6.02034 10.132 5.9942 10 5.9942C9.86799 5.9942 9.73728 6.02034 9.61542 6.07111C9.49356 6.12188 9.38296 6.19627 9.29 6.29L6.29 9.29ZM0 10C0 11.9778 0.58649 13.9112 1.6853 15.5557C2.78412 17.2002 4.3459 18.4819 6.17317 19.2388C8.00043 19.9957 10.0111 20.1937 11.9509 19.8079C13.8907 19.422 15.6725 18.4696 17.0711 17.0711C18.4696 15.6725 19.422 13.8907 19.8079 11.9509C20.1937 10.0111 19.9957 8.00043 19.2388 6.17317C18.4819 4.3459 17.2002 2.78412 15.5557 1.6853C13.9112 0.58649 11.9778 0 10 0C8.68678 0 7.38642 0.258658 6.17317 0.761205C4.95991 1.26375 3.85752 2.00035 2.92893 2.92893C1.05357 4.8043 0 7.34784 0 10ZM18 10C18 11.5823 17.5308 13.129 16.6518 14.4446C15.7727 15.7602 14.5233 16.7855 13.0615 17.391C11.5997 17.9965 9.99113 18.155 8.43928 17.8463C6.88743 17.5376 5.46197 16.7757 4.34315 15.6569C3.22433 14.538 2.4624 13.1126 2.15372 11.5607C1.84504 10.0089 2.00346 8.40034 2.60896 6.93853C3.21447 5.47672 4.23984 4.22729 5.55544 3.34824C6.87103 2.46919 8.41775 2 10 2C12.1217 2 14.1566 2.84285 15.6569 4.34315C17.1571 5.84344 18 7.87827 18 10Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:430}}))),b&&t.createElement("button",{type:"button",onClick:()=>{d(new Date(c.getFullYear(),c.getMonth()-1))},__self:void 0,__source:{fileName:Ss,lineNumber:437}},t.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:439}},t.createElement("path",{d:"M3.28982 5.99995L6.82982 2.45995C7.01607 2.27259 7.12061 2.01913 7.12061 1.75495C7.12061 1.49076 7.01607 1.23731 6.82982 1.04995C6.73686 0.95622 6.62626 0.881826 6.5044 0.831057C6.38254 0.780288 6.25183 0.75415 6.11982 0.75415C5.98781 0.75415 5.8571 0.780288 5.73524 0.831057C5.61339 0.881826 5.50278 0.95622 5.40982 1.04995L1.16982 5.28995C1.07609 5.38291 1.0017 5.49351 0.950931 5.61537C0.900162 5.73723 0.874023 5.86794 0.874023 5.99995C0.874023 6.13196 0.900162 6.26267 0.950931 6.38453C1.0017 6.50638 1.07609 6.61699 1.16982 6.70995L5.40982 10.9999C5.50326 11.0926 5.61408 11.166 5.73592 11.2157C5.85775 11.2655 5.98821 11.2907 6.11982 11.2899C6.25143 11.2907 6.38189 11.2655 6.50373 11.2157C6.62557 11.166 6.73638 11.0926 6.82982 10.9999C7.01607 10.8126 7.12061 10.5591 7.12061 10.2949C7.12061 10.0308 7.01607 9.77731 6.82982 9.58995L3.28982 5.99995Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:440}}))),t.createElement("div",{className:"month-year-area",__self:void 0,__source:{fileName:Ss,lineNumber:446}},h&&t.createElement("button",{type:"button",className:"month-cls-btn",onClick:()=>{setTimeout((()=>{m(!1),p(!1)}),20)},__self:void 0,__source:{fileName:Ss,lineNumber:448}},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:450}},t.createElement("path",{d:"M13.4099 11.9999L17.7099 7.70994C17.8982 7.52164 18.004 7.26624 18.004 6.99994C18.004 6.73364 17.8982 6.47825 17.7099 6.28994C17.5216 6.10164 17.2662 5.99585 16.9999 5.99585C16.7336 5.99585 16.4782 6.10164 16.2899 6.28994L11.9999 10.5899L7.70994 6.28994C7.52164 6.10164 7.26624 5.99585 6.99994 5.99585C6.73364 5.99585 6.47824 6.10164 6.28994 6.28994C6.10164 6.47825 5.99585 6.73364 5.99585 6.99994C5.99585 7.26624 6.10164 7.52164 6.28994 7.70994L10.5899 11.9999L6.28994 16.2899C6.19621 16.3829 6.12182 16.4935 6.07105 16.6154C6.02028 16.7372 5.99414 16.8679 5.99414 16.9999C5.99414 17.132 6.02028 17.2627 6.07105 17.3845C6.12182 17.5064 6.19621 17.617 6.28994 17.7099C6.3829 17.8037 6.4935 17.8781 6.61536 17.9288C6.73722 17.9796 6.86793 18.0057 6.99994 18.0057C7.13195 18.0057 7.26266 17.9796 7.38452 17.9288C7.50638 17.8781 7.61698 17.8037 7.70994 17.7099L11.9999 13.4099L16.2899 17.7099C16.3829 17.8037 16.4935 17.8781 16.6154 17.9288C16.7372 17.9796 16.8679 18.0057 16.9999 18.0057C17.132 18.0057 17.2627 17.9796 17.3845 17.9288C17.5064 17.8781 17.617 17.8037 17.7099 17.7099C17.8037 17.617 17.8781 17.5064 17.9288 17.3845C17.9796 17.2627 18.0057 17.132 18.0057 16.9999C18.0057 16.8679 17.9796 16.7372 17.9288 16.6154C17.8781 16.4935 17.8037 16.3829 17.7099 16.2899L13.4099 11.9999Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:451}}))),t.createElement("div",{className:"month-year-btn-container",__self:void 0,__source:{fileName:Ss,lineNumber:455}},t.createElement("button",{type:"button",className:"month-year",onClick:()=>{p(!1),m(!b)},__self:void 0,__source:{fileName:Ss,lineNumber:456}},c.toLocaleString("en-us",{month:"long",year:"numeric"}),t.createElement("svg",{className:b?"year-view":"",width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:459}},t.createElement("path",{d:"M11 1.17C10.8126 0.983753 10.5592 0.879211 10.295 0.879211C10.0308 0.879211 9.77737 0.983753 9.59001 1.17L6.00001 4.71L2.46001 1.17C2.27265 0.983753 2.0192 0.879211 1.75501 0.879211C1.49082 0.879211 1.23737 0.983753 1.05001 1.17C0.956281 1.26297 0.881887 1.37357 0.831118 1.49543C0.780349 1.61729 0.754211 1.74799 0.754211 1.88C0.754211 2.01202 0.780349 2.14272 0.831118 2.26458C0.881887 2.38644 0.956281 2.49704 1.05001 2.59L5.29001 6.83C5.38297 6.92373 5.49357 6.99813 5.61543 7.04889C5.73729 7.09966 5.868 7.1258 6.00001 7.1258C6.13202 7.1258 6.26273 7.09966 6.38459 7.04889C6.50645 6.99813 6.61705 6.92373 6.71001 6.83L11 2.59C11.0937 2.49704 11.1681 2.38644 11.2189 2.26458C11.2697 2.14272 11.2958 2.01202 11.2958 1.88C11.2958 1.74799 11.2697 1.61729 11.2189 1.49543C11.1681 1.37357 11.0937 1.26297 11 1.17Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:461}}))))),b&&t.createElement("button",{type:"button",onClick:()=>{d(new Date(c.getFullYear(),c.getMonth()+1))},__self:void 0,__source:{fileName:Ss,lineNumber:469}},t.createElement("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:471}},t.createElement("path",{d:"M6.83019 5.28995L2.59019 1.04995C2.49722 0.95622 2.38662 0.881826 2.26476 0.831057C2.1429 0.780288 2.0122 0.75415 1.88019 0.75415C1.74818 0.75415 1.61747 0.780288 1.49561 0.831057C1.37375 0.881826 1.26315 0.95622 1.17019 1.04995C0.983936 1.23731 0.879395 1.49076 0.879395 1.75495C0.879395 2.01913 0.983936 2.27259 1.17019 2.45995L4.71019 5.99995L1.17019 9.53995C0.983936 9.72731 0.879395 9.98076 0.879395 10.2449C0.879395 10.5091 0.983936 10.7626 1.17019 10.9499C1.26363 11.0426 1.37444 11.116 1.49628 11.1657C1.61812 11.2155 1.74858 11.2407 1.88019 11.2399C2.01179 11.2407 2.14226 11.2155 2.26409 11.1657C2.38593 11.116 2.49675 11.0426 2.59019 10.9499L6.83019 6.70995C6.92392 6.61699 6.99831 6.50638 7.04908 6.38453C7.09985 6.26267 7.12599 6.13196 7.12599 5.99995C7.12599 5.86794 7.09985 5.73723 7.04908 5.61537C6.99831 5.49351 6.92392 5.38291 6.83019 5.28995Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:472}}))),!b&&!h&&t.createElement("button",{type:"button",onClick:()=>{f(u+20)},__self:void 0,__source:{fileName:Ss,lineNumber:479}},t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Ss,lineNumber:481}},t.createElement("path",{d:"M13.71 10.71C13.801 10.6149 13.8724 10.5028 13.92 10.38C14.02 10.1365 14.02 9.86347 13.92 9.62C13.8724 9.49725 13.801 9.38511 13.71 9.29L10.71 6.29C10.5217 6.1017 10.2663 5.99591 10 5.99591C9.7337 5.99591 9.47831 6.1017 9.29 6.29C9.1017 6.47831 8.99591 6.7337 8.99591 7C8.99591 7.26631 9.1017 7.5217 9.29 7.71L10.59 9H7C6.73479 9 6.48043 9.10536 6.2929 9.2929C6.10536 9.48043 6 9.73479 6 10C6 10.2652 6.10536 10.5196 6.2929 10.7071C6.48043 10.8946 6.73479 11 7 11H10.59L9.29 12.29C9.19628 12.383 9.12188 12.4936 9.07111 12.6154C9.02034 12.7373 8.99421 12.868 8.99421 13C8.99421 13.132 9.02034 13.2627 9.07111 13.3846C9.12188 13.5064 9.19628 13.617 9.29 13.71C9.38297 13.8037 9.49357 13.8781 9.61543 13.9289C9.73729 13.9797 9.86799 14.0058 10 14.0058C10.132 14.0058 10.2627 13.9797 10.3846 13.9289C10.5064 13.8781 10.617 13.8037 10.71 13.71L13.71 10.71ZM20 10C20 8.02219 19.4135 6.08879 18.3147 4.4443C17.2159 2.79981 15.6541 1.51809 13.8268 0.761209C11.9996 0.00433284 9.98891 -0.193701 8.0491 0.192152C6.10929 0.578004 4.32746 1.53041 2.92894 2.92894C1.53041 4.32746 0.578004 6.10929 0.192152 8.0491C-0.193701 9.98891 0.00433284 11.9996 0.761209 13.8268C1.51809 15.6541 2.79981 17.2159 4.4443 18.3147C6.08879 19.4135 8.02219 20 10 20C12.6522 20 15.1957 18.9464 17.0711 17.0711C18.9464 15.1957 20 12.6522 20 10ZM2 10C2 8.41775 2.4692 6.87104 3.34825 5.55544C4.2273 4.23985 5.47673 3.21447 6.93854 2.60897C8.40035 2.00347 10.0089 1.84504 11.5607 2.15372C13.1126 2.4624 14.538 3.22433 15.6569 4.34315C16.7757 5.46197 17.5376 6.88743 17.8463 8.43928C18.155 9.99113 17.9965 11.5997 17.391 13.0615C16.7855 14.5233 15.7602 15.7727 14.4446 16.6518C13.129 17.5308 11.5823 18 10 18C7.87827 18 5.84344 17.1572 4.34315 15.6569C2.84286 14.1566 2 12.1217 2 10Z",fill:"#070B12",__self:void 0,__source:{fileName:Ss,lineNumber:482}})))),t.createElement("div",{style:{display:b?"block ":"none"},__self:void 0,__source:{fileName:Ss,lineNumber:490}},t.createElement("div",{className:"weekdays",__self:void 0,__source:{fileName:Ss,lineNumber:491}},["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>t.createElement("div",{key:e,className:"weekday",__self:void 0,__source:{fileName:Ss,lineNumber:493}},e)))),t.createElement("div",{className:"days",__self:void 0,__source:{fileName:Ss,lineNumber:498}},(()=>{const e=c.getFullYear(),i=c.getMonth(),r=g(e,i),d=((e,t)=>new Date(e,t,1).getDay())(e,i),u=g(e,0===i?11:i-1),f=[];for(let e=d-1;e>=0;e--){const i=u-e;f.push(t.createElement("div",{key:`previous-day-${i}`,className:"calendar-day previous-month-day paragraph1Regular",__self:void 0,__source:{fileName:Ss,lineNumber:264}},i))}const b=new Date,m=b.getDate();for(let c=1;c<=r;c++){const r=n&&n.getDate()===c&&n.getMonth()===i&&n.getFullYear()===e,d=c===m&&i===b.getMonth()&&e===b.getFullYear(),u=o&&(e<b.getFullYear()||e===b.getFullYear()&&i<b.getMonth()||e===b.getFullYear()&&i===b.getMonth()&&c<m),h=a&&b.getFullYear()-a<=e,p=s&&b.getFullYear()+s>=e,A=l&&(e>b.getFullYear()||e===b.getFullYear()&&i>b.getMonth()||e===b.getFullYear()&&i===b.getMonth()&&c>m),g=r?"selected-day":!d||h||p?u?"past-day":A||p?"future-day":h?"min-year":"":"current-day",v=u||A||h||p?()=>{}:()=>C(c);f.push(t.createElement("div",{key:`current-day-${c}`,className:`calendar-day paragraph1Regular ${g}`,onClick:v,__self:void 0,__source:{fileName:Ss,lineNumber:310}},c))}const h=(7-f.length%7)%7;for(let e=1;e<=h;e++)f.push(t.createElement("div",{key:`next-day-${e}`,className:"calendar-day next-month-day paragraph1Regular",__self:void 0,__source:{fileName:Ss,lineNumber:324}},e));return f})())),t.createElement("div",{style:{display:b?"none":"block"},__self:void 0,__source:{fileName:Ss,lineNumber:502}},h&&(()=>{const e=[],i=(new Date).getFullYear(),r=(new Date).getMonth(),n=new Date((new Date).getFullYear(),r,1);function a(e){const t=new Date(c.getFullYear(),e,1);return o&&i>c.getFullYear()||o&&n.getTime()-t.getTime()>0?"disabled-month":void 0}function s(e){const t=new Date(c.getFullYear(),e,1);return l&&i<c.getFullYear()||l&&n.getTime()-t.getTime()<0?"disabled-month":void 0}for(let i=0;i<A.length;i++)e.push(t.createElement("div",{key:i,onClick:()=>{var e;"disabled-month"!=s(i)&&("disabled-month"!=a(i)&&(e=i,d(new Date(c.setMonth(e))),setTimeout((()=>{p(!1),m(!0)}),20)))},className:`paragraph1Regular ${a(i)||s(i)||"month-option"}`,__self:void 0,__source:{fileName:Ss,lineNumber:367}},A[i]));return t.createElement("div",{className:"month-options",__self:void 0,__source:{fileName:Ss,lineNumber:378}},e)})(),!h&&(e=>{const i=[],r=(new Date).getFullYear();function n(e){return o&&e<r?"disabled-year":""}function a(e){return l&&e>r?"disabled-year":""}for(let r=e-10;r<=e+10;r++){const e=r===c.getFullYear()?" selected-year":"";i.push(t.createElement("div",{key:r,onClick:()=>{"disabled-year"!=n(r)&&"disabled-year"!=a(r)&&v(r)},className:`paragraph1Regular ${n(r)||a(r)||"year-option"}${e}`,__self:void 0,__source:{fileName:Ss,lineNumber:406}},r))}return t.createElement("div",{className:"year-picker",__self:void 0,__source:{fileName:Ss,lineNumber:417}},t.createElement("div",{className:"year-options",__self:void 0,__source:{fileName:Ss,lineNumber:418}},i))})(u)))},Ks=l.div`
|
|
1608
1620
|
div.input-field{
|
|
1609
1621
|
display: flex;
|
|
1610
1622
|
flex-direction: column;
|
|
@@ -2837,6 +2849,7 @@ function kt(e){return e+.5|0}const Bt=(e,t,i)=>Math.max(Math.min(e,i),t);functio
|
|
|
2837
2849
|
color: ${s["neutral-900"]};
|
|
2838
2850
|
cursor: pointer;
|
|
2839
2851
|
border-bottom: 2px solid ${s["neutral-100"]};
|
|
2852
|
+
box-sizing: border-box;
|
|
2840
2853
|
&.active{
|
|
2841
2854
|
border-bottom: 2px solid ${s["neutral-900"]};
|
|
2842
2855
|
background: ${s["neutral-100"]};
|
|
@@ -2859,7 +2872,7 @@ function kt(e){return e+.5|0}const Bt=(e,t,i)=>Math.max(Math.min(e,i),t);functio
|
|
|
2859
2872
|
display: flex;
|
|
2860
2873
|
flex-direction: column;
|
|
2861
2874
|
flex: 1;
|
|
2862
|
-
`,Rd="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\Tab\\Tab.tsx",Fd=e=>{const{tabs:
|
|
2875
|
+
`,Rd="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\Tab\\Tab.tsx",Fd=e=>{const{tabs:n,bgHexColor:o,inactiveTabBgHexColor:l,selectedTab:a,header:s,initialTab:c}=e,[d,u]=i(0);return r((()=>{c&&u(c)}),[c]),r((()=>{a&&a(d)}),[d]),t.createElement(t.Fragment,null,n&&n.length>0&&t.createElement(Pd,{style:{background:l},__self:void 0,__source:{fileName:Rd,lineNumber:27}},n.map(((e,i)=>t.createElement(Ld,{key:i,className:d===i?"active":"",style:{background:d===i?e.activeBgHexColor:""},onClick:()=>{u(i),a&&a(i)},__self:void 0,__source:{fileName:Rd,lineNumber:30}},t.createElement("span",{className:"heading6SMedium",__self:void 0,__source:{fileName:Rd,lineNumber:33}},e.tabName))))),s&&s," ",t.createElement(Od,{style:{background:o},__self:void 0,__source:{fileName:Rd,lineNumber:39}},n&&t.createElement(t.Fragment,null,n[d].tabComponent)))},Qd="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\MarketMovers\\MarketMovers.tsx",zd=e=>{const{movers:i,lastUpdated:r}=e,n=[{tabName:"Gainers",tabComponent:t.createElement((e=>{const{movers:i}=e;return t.createElement(t.Fragment,null,i&&i.length>0&&t.createElement(Dd,{__self:void 0,__source:{fileName:Qd,lineNumber:17}},i.map(((e,i)=>{if("top"===e.type.toLowerCase())return t.createElement(kd,{key:i,__self:void 0,__source:{fileName:Qd,lineNumber:21}},t.createElement("div",{__self:void 0,__source:{fileName:Qd,lineNumber:22}},t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Qd,lineNumber:23}},t.createElement("path",{d:"M10.71 6.29C10.6149 6.19896 10.5028 6.12759 10.38 6.08C10.1365 5.97998 9.86347 5.97998 9.62 6.08C9.49725 6.12759 9.38511 6.19896 9.29 6.29L6.29 9.29C6.1017 9.4783 5.99591 9.7337 5.99591 10C5.99591 10.2663 6.1017 10.5217 6.29 10.71C6.47831 10.8983 6.7337 11.0041 7 11.0041C7.26631 11.0041 7.5217 10.8983 7.71 10.71L9 9.41V13C9 13.2652 9.10536 13.5196 9.2929 13.7071C9.48043 13.8946 9.73479 14 10 14C10.2652 14 10.5196 13.8946 10.7071 13.7071C10.8946 13.5196 11 13.2652 11 13V9.41L12.29 10.71C12.383 10.8037 12.4936 10.8781 12.6154 10.9289C12.7373 10.9797 12.868 11.0058 13 11.0058C13.132 11.0058 13.2627 10.9797 13.3846 10.9289C13.5064 10.8781 13.617 10.8037 13.71 10.71C13.8037 10.617 13.8781 10.5064 13.9289 10.3846C13.9797 10.2627 14.0058 10.132 14.0058 10C14.0058 9.86799 13.9797 9.73728 13.9289 9.61542C13.8781 9.49356 13.8037 9.38296 13.71 9.29L10.71 6.29ZM10 0C8.02219 0 6.08879 0.58649 4.4443 1.6853C2.79981 2.78412 1.51809 4.3459 0.761209 6.17317C0.00433284 8.00043 -0.193701 10.0111 0.192152 11.9509C0.578004 13.8907 1.53041 15.6725 2.92894 17.0711C4.32746 18.4696 6.10929 19.422 8.0491 19.8079C9.98891 20.1937 11.9996 19.9957 13.8268 19.2388C15.6541 18.4819 17.2159 17.2002 18.3147 15.5557C19.4135 13.9112 20 11.9778 20 10C20 8.68678 19.7413 7.38642 19.2388 6.17317C18.7363 4.95991 17.9997 3.85752 17.0711 2.92893C16.1425 2.00035 15.0401 1.26375 13.8268 0.761205C12.6136 0.258658 11.3132 0 10 0ZM10 18C8.41775 18 6.87104 17.5308 5.55544 16.6518C4.23985 15.7727 3.21447 14.5233 2.60897 13.0615C2.00347 11.5997 1.84504 9.99113 2.15372 8.43928C2.4624 6.88743 3.22433 5.46197 4.34315 4.34315C5.46197 3.22433 6.88743 2.4624 8.43928 2.15372C9.99113 1.84504 11.5997 2.00346 13.0615 2.60896C14.5233 3.21447 15.7727 4.23984 16.6518 5.55544C17.5308 6.87103 18 8.41775 18 10C18 12.1217 17.1572 14.1566 15.6569 15.6569C14.1566 17.1571 12.1217 18 10 18Z",fill:"#06BA63",__self:void 0,__source:{fileName:Qd,lineNumber:24}}))),t.createElement(Id,{__self:void 0,__source:{fileName:Qd,lineNumber:27}},t.createElement(Bd,{__self:void 0,__source:{fileName:Qd,lineNumber:28}},t.createElement("div",{className:"entity-short-name",__self:void 0,__source:{fileName:Qd,lineNumber:29}},t.createElement("p",{className:"heading6SMedium",__self:void 0,__source:{fileName:Qd,lineNumber:30}},e.entityShortName)),t.createElement("div",{className:"changeRatio",__self:void 0,__source:{fileName:Qd,lineNumber:32}},t.createElement("span",{className:"success",__self:void 0,__source:{fileName:Qd,lineNumber:33}},e.changeAmount)," / ",t.createElement("span",{className:"success",__self:void 0,__source:{fileName:Qd,lineNumber:33}},e.changePercent,"%"))),t.createElement(Bd,{__self:void 0,__source:{fileName:Qd,lineNumber:36}},t.createElement("div",{className:"entity-long-name",__self:void 0,__source:{fileName:Qd,lineNumber:37}},t.createElement("p",{className:"paragraph1Regular",__self:void 0,__source:{fileName:Qd,lineNumber:38}},e.entityName),t.createElement("img",{src:e.marketFlag,alt:"Market flag",__self:void 0,__source:{fileName:Qd,lineNumber:39}})),t.createElement("div",{className:"entity-price",__self:void 0,__source:{fileName:Qd,lineNumber:41}},e.entityPrice))))}))))}),{movers:i,__self:void 0,__source:{fileName:Qd,lineNumber:103}})},{tabName:"Losers",tabComponent:t.createElement((e=>{const{movers:i}=e;return t.createElement(t.Fragment,null,i&&i.length>0&&t.createElement(Dd,{__self:void 0,__source:{fileName:Qd,lineNumber:61}},i.map(((e,i)=>{if("worst"===e.type.toLowerCase())return t.createElement(kd,{key:i,__self:void 0,__source:{fileName:Qd,lineNumber:65}},t.createElement("div",{__self:void 0,__source:{fileName:Qd,lineNumber:66}},t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:Qd,lineNumber:67}},t.createElement("path",{d:"M9.29 13.71C9.3851 13.801 9.49725 13.8724 9.62 13.92C9.86346 14.02 10.1365 14.02 10.38 13.92C10.5028 13.8724 10.6149 13.801 10.71 13.71L13.71 10.71C13.8983 10.5217 14.0041 10.2663 14.0041 10C14.0041 9.7337 13.8983 9.47831 13.71 9.29C13.5217 9.1017 13.2663 8.99591 13 8.99591C12.7337 8.99591 12.4783 9.1017 12.29 9.29L11 10.59V7C11 6.73479 10.8946 6.48043 10.7071 6.2929C10.5196 6.10536 10.2652 6 10 6C9.73478 6 9.48043 6.10536 9.29289 6.2929C9.10536 6.48043 9 6.73479 9 7V10.59L7.71 9.29C7.61704 9.19628 7.50644 9.12188 7.38458 9.07111C7.26272 9.02034 7.13201 8.99421 7 8.99421C6.86799 8.99421 6.73728 9.02034 6.61542 9.07111C6.49356 9.12188 6.38296 9.19628 6.29 9.29C6.19627 9.38297 6.12188 9.49357 6.07111 9.61543C6.02034 9.73729 5.9942 9.86799 5.9942 10C5.9942 10.132 6.02034 10.2627 6.07111 10.3846C6.12188 10.5064 6.19627 10.617 6.29 10.71L9.29 13.71ZM10 20C11.9778 20 13.9112 19.4135 15.5557 18.3147C17.2002 17.2159 18.4819 15.6541 19.2388 13.8268C19.9957 11.9996 20.1937 9.98891 19.8079 8.0491C19.422 6.10929 18.4696 4.32746 17.0711 2.92894C15.6725 1.53041 13.8907 0.578004 11.9509 0.192152C10.0111 -0.193701 8.00043 0.00433284 6.17317 0.761209C4.3459 1.51809 2.78412 2.79981 1.6853 4.4443C0.58649 6.08879 0 8.02219 0 10C0 12.6522 1.05357 15.1957 2.92893 17.0711C3.85752 17.9997 4.95991 18.7363 6.17317 19.2388C7.38642 19.7413 8.68678 20 10 20V20ZM10 2C11.5823 2 13.129 2.4692 14.4446 3.34825C15.7602 4.2273 16.7855 5.47673 17.391 6.93854C17.9965 8.40035 18.155 10.0089 17.8463 11.5607C17.5376 13.1126 16.7757 14.538 15.6569 15.6569C14.538 16.7757 13.1126 17.5376 11.5607 17.8463C10.0089 18.155 8.40034 17.9965 6.93853 17.391C5.47672 16.7855 4.22729 15.7602 3.34824 14.4446C2.46919 13.129 2 11.5823 2 10C2 7.87827 2.84285 5.84344 4.34315 4.34315C5.84344 2.84286 7.87827 2 10 2V2Z",fill:"#F80000",__self:void 0,__source:{fileName:Qd,lineNumber:68}}))),t.createElement(Id,{__self:void 0,__source:{fileName:Qd,lineNumber:71}},t.createElement(Bd,{__self:void 0,__source:{fileName:Qd,lineNumber:72}},t.createElement("div",{className:"entity-short-name",__self:void 0,__source:{fileName:Qd,lineNumber:73}},t.createElement("p",{className:"heading6SMedium",__self:void 0,__source:{fileName:Qd,lineNumber:74}},e.entityShortName)),t.createElement("div",{className:"changeRatio",__self:void 0,__source:{fileName:Qd,lineNumber:76}},t.createElement("span",{className:"error",__self:void 0,__source:{fileName:Qd,lineNumber:77}},e.changeAmount)," / ",t.createElement("span",{className:"error",__self:void 0,__source:{fileName:Qd,lineNumber:77}},e.changePercent,"%"))),t.createElement(Bd,{__self:void 0,__source:{fileName:Qd,lineNumber:80}},t.createElement("div",{className:"entity-long-name",__self:void 0,__source:{fileName:Qd,lineNumber:81}},t.createElement("p",{className:"paragraph1Regular",__self:void 0,__source:{fileName:Qd,lineNumber:82}},e.entityName),t.createElement("img",{src:e.marketFlag,alt:"Market flag",__self:void 0,__source:{fileName:Qd,lineNumber:83}})),t.createElement("div",{className:"entity-price",__self:void 0,__source:{fileName:Qd,lineNumber:85}},e.entityPrice))))}))))}),{movers:i,__self:void 0,__source:{fileName:Qd,lineNumber:107}})}];return t.createElement(Md,{__self:void 0,__source:{fileName:Qd,lineNumber:112}},t.createElement(Fd,{tabs:n,__self:void 0,__source:{fileName:Qd,lineNumber:113}}),r&&t.createElement(Hd,{__self:void 0,__source:{fileName:Qd,lineNumber:114}},"Last updated on ",r))},jd=l.div`
|
|
2863
2876
|
display: flex;
|
|
2864
2877
|
justify-content: space-around;
|
|
2865
2878
|
align-items: center;
|
|
@@ -5468,5 +5481,84 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
5468
5481
|
cursor: not-allowed;
|
|
5469
5482
|
}
|
|
5470
5483
|
}
|
|
5471
|
-
`;const AA="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\PDFViewer\\PDFViewer.tsx";a.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js";const gA=e=>{const{files:n,closeBtnFn:l,actionArea:s}=e,[c,d]=i(1),[u,f]=i(1),[b,m]=i(0),[h,p]=i(null),[A,g]=i(!1),C=o(null);return r((()=>{g(!1),a.getDocument(n[b].fileUrl).promise.then((e=>{g(!0),p(e)}))}),[n,b]),r((()=>{h&&(d(h.numPages),h.getPage(u).then((e=>{const t=C.current,i=t.getContext("2d"),r=e.getViewport({scale:2});t.width=r.width,t.height=r.height,e.render({canvasContext:i,viewport:r})})))}),[h,u]),r((()=>{f(1)}),[b]),t.createElement(t.Fragment,null,t.createElement(bA,{__self:void 0,__source:{fileName:AA,lineNumber:58}},t.createElement("div",{className:"logo-filename",__self:void 0,__source:{fileName:AA,lineNumber:59}},t.createElement("img",{src:"data:image/png;base64,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",alt:"SSX Logo",__self:void 0,__source:{fileName:AA,lineNumber:60}}),n[b].fileName&&t.createElement("span",{className:"paragraph2Regular",__self:void 0,__source:{fileName:AA,lineNumber:61}},n[b].fileName)),t.createElement("div",{className:"action-area",__self:void 0,__source:{fileName:AA,lineNumber:63}},s&&t.createElement("div",{className:"pdf-actions",__self:void 0,__source:{fileName:AA,lineNumber:65}},s),l&&t.createElement("button",{type:"button",className:"cls-btn",onClick:()=>{l(!1)},__self:void 0,__source:{fileName:AA,lineNumber:70}},t.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:71}},t.createElement("path",{d:"M7.4 6L11.7 1.7C12.1 1.3 12.1 0.7 11.7 0.3C11.3 -0.1 10.7 -0.1 10.3 0.3L6 4.6L1.7 0.3C1.3 -0.1 0.7 -0.1 0.3 0.3C-0.0999998 0.7 -0.0999998 1.3 0.3 1.7L4.6 6L0.3 10.3C0.1 10.5 0 10.7 0 11C0 11.6 0.4 12 1 12C1.3 12 1.5 11.9 1.7 11.7L6 7.4L10.3 11.7C10.5 11.9 10.7 12 11 12C11.3 12 11.5 11.9 11.7 11.7C12.1 11.3 12.1 10.7 11.7 10.3L7.4 6Z",fill:"#070B12",__self:void 0,__source:{fileName:AA,lineNumber:72}}))))),t.createElement(mA,{__self:void 0,__source:{fileName:AA,lineNumber:78}},!A&&t.createElement("div",{className:"loading-pdf",__self:void 0,__source:{fileName:AA,lineNumber:80}},t.createElement(ee,{variant:"primary",__self:void 0,__source:{fileName:AA,lineNumber:81}})),A&&t.createElement(t.Fragment,null,h&&t.createElement(t.Fragment,null,t.createElement("canvas",{ref:C,__self:void 0,__source:{fileName:AA,lineNumber:88}}),t.createElement(hA,{__self:void 0,__source:{fileName:AA,lineNumber:89}},t.createElement("div",{className:"doc-nav",__self:void 0,__source:{fileName:AA,lineNumber:90}},b>0&&t.createElement(J,{variant:"primary",size:"sm",width:"fit-content",withBg:!0,type:"button",onClick:()=>{m(b-1)},__self:void 0,__source:{fileName:AA,lineNumber:92}},t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:93}},t.createElement("path",{d:"M11.3334 7.83338H6.27343L8.47343 5.64004C8.59896 5.51451 8.66949 5.34424 8.66949 5.16671C8.66949 4.98917 8.59896 4.81891 8.47343 4.69338C8.34789 4.56784 8.17763 4.49731 8.00009 4.49731C7.82256 4.49731 7.6523 4.56784 7.52676 4.69338L4.19343 8.02671C4.13273 8.09011 4.08516 8.16487 4.05343 8.24671C3.98675 8.40902 3.98675 8.59107 4.05343 8.75338C4.08516 8.83521 4.13273 8.90997 4.19343 8.97338L7.52676 12.3067C7.58874 12.3692 7.66247 12.4188 7.74371 12.4526C7.82495 12.4865 7.91209 12.5039 8.00009 12.5039C8.0881 12.5039 8.17524 12.4865 8.25648 12.4526C8.33772 12.4188 8.41145 12.3692 8.47343 12.3067C8.53591 12.2447 8.58551 12.171 8.61935 12.0898C8.6532 12.0085 8.67063 11.9214 8.67063 11.8334C8.67063 11.7454 8.6532 11.6582 8.61935 11.577C8.58551 11.4958 8.53591 11.422 8.47343 11.36L6.27343 9.16671H11.3334C11.5102 9.16671 11.6798 9.09647 11.8048 8.97145C11.9299 8.84642 12.0001 8.67685 12.0001 8.50004C12.0001 8.32323 11.9299 8.15366 11.8048 8.02864C11.6798 7.90361 11.5102 7.83338 11.3334 7.83338Z",fill:"#4040F2",__self:void 0,__source:{fileName:AA,lineNumber:94}})),"Previous file")),t.createElement(pA,{__self:void 0,__source:{fileName:AA,lineNumber:100}},t.createElement("div",{className:"page-nav",__self:void 0,__source:{fileName:AA,lineNumber:101}},t.createElement("button",{type:"button",onClick:()=>{u>1&&f(u-1)},disabled:1==u,__self:void 0,__source:{fileName:AA,lineNumber:102}},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:103}},t.createElement("path",{d:"M11.2898 11.9999L14.8298 8.45995C15.0161 8.27259 15.1206 8.01913 15.1206 7.75495C15.1206 7.49076 15.0161 7.23731 14.8298 7.04995C14.7369 6.95622 14.6263 6.88183 14.5044 6.83106C14.3825 6.78029 14.2518 6.75415 14.1198 6.75415C13.9878 6.75415 13.8571 6.78029 13.7352 6.83106C13.6134 6.88183 13.5028 6.95622 13.4098 7.04995L9.16982 11.2899C9.07609 11.3829 9.0017 11.4935 8.95093 11.6154C8.90016 11.7372 8.87402 11.8679 8.87402 11.9999C8.87402 12.132 8.90016 12.2627 8.95093 12.3845C9.0017 12.5064 9.07609 12.617 9.16982 12.7099L13.4098 16.9999C13.5033 17.0926 13.6141 17.166 13.7359 17.2157C13.8578 17.2655 13.9882 17.2907 14.1198 17.2899C14.2514 17.2907 14.3819 17.2655 14.5037 17.2157C14.6256 17.166 14.7364 17.0926 14.8298 16.9999C15.0161 16.8126 15.1206 16.5591 15.1206 16.2949C15.1206 16.0308 15.0161 15.7773 14.8298 15.5899L11.2898 11.9999Z",fill:"#070B12",__self:void 0,__source:{fileName:AA,lineNumber:104}}))),t.createElement("span",{__self:void 0,__source:{fileName:AA,lineNumber:107}},u," of ",c),t.createElement("button",{type:"button",onClick:()=>{u<c&&f(u+1)},disabled:u==c,__self:void 0,__source:{fileName:AA,lineNumber:108}},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:109}},t.createElement("path",{d:"M14.8302 11.2899L10.5902 7.04995C10.4972 6.95622 10.3866 6.88183 10.2648 6.83106C10.1429 6.78029 10.0122 6.75415 9.88019 6.75415C9.74818 6.75415 9.61747 6.78029 9.49561 6.83106C9.37375 6.88183 9.26315 6.95622 9.17019 7.04995C8.98394 7.23731 8.87939 7.49076 8.87939 7.75495C8.87939 8.01913 8.98394 8.27259 9.17019 8.45995L12.7102 11.9999L9.17019 15.5399C8.98394 15.7273 8.87939 15.9808 8.87939 16.2449C8.87939 16.5091 8.98394 16.7626 9.17019 16.9499C9.26363 17.0426 9.37444 17.116 9.49628 17.1657C9.61812 17.2155 9.74858 17.2407 9.88019 17.2399C10.0118 17.2407 10.1423 17.2155 10.2641 17.1657C10.3859 17.116 10.4967 17.0426 10.5902 16.9499L14.8302 12.7099C14.9239 12.617 14.9983 12.5064 15.0491 12.3845C15.0998 12.2627 15.126 12.132 15.126 11.9999C15.126 11.8679 15.0998 11.7372 15.0491 11.6154C14.9983 11.4935 14.9239 11.3829 14.8302 11.2899Z",fill:"#070B12",__self:void 0,__source:{fileName:AA,lineNumber:110}}))))),t.createElement("div",{className:"doc-nav",__self:void 0,__source:{fileName:AA,lineNumber:115}},b+1<n.length&&t.createElement(J,{variant:"primary",size:"sm",width:"fit-content",withBg:!0,type:"button",onClick:()=>{m(b+1)},__self:void 0,__source:{fileName:AA,lineNumber:117}},"Next file",t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:119}},t.createElement("path",{d:"M11.9467 8.24671C11.9149 8.16487 11.8674 8.09011 11.8067 8.02671L8.47333 4.69338C8.41117 4.63122 8.33738 4.58191 8.25617 4.54827C8.17495 4.51463 8.08791 4.49731 8 4.49731C7.82247 4.49731 7.6522 4.56784 7.52667 4.69338C7.46451 4.75553 7.4152 4.82933 7.38156 4.91054C7.34792 4.99176 7.33061 5.0788 7.33061 5.16671C7.33061 5.34424 7.40113 5.51451 7.52667 5.64004L9.72667 7.83338H4.66667C4.48986 7.83338 4.32029 7.90361 4.19526 8.02864C4.07024 8.15366 4 8.32323 4 8.50004C4 8.67685 4.07024 8.84642 4.19526 8.97145C4.32029 9.09647 4.48986 9.16671 4.66667 9.16671H9.72667L7.52667 11.36C7.46418 11.422 7.41459 11.4958 7.38074 11.577C7.34689 11.6582 7.32947 11.7454 7.32947 11.8334C7.32947 11.9214 7.34689 12.0085 7.38074 12.0898C7.41459 12.171 7.46418 12.2447 7.52667 12.3067C7.58864 12.3692 7.66238 12.4188 7.74362 12.4526C7.82486 12.4865 7.91199 12.5039 8 12.5039C8.08801 12.5039 8.17515 12.4865 8.25638 12.4526C8.33762 12.4188 8.41136 12.3692 8.47333 12.3067L11.8067 8.97338C11.8674 8.90997 11.9149 8.83521 11.9467 8.75338C12.0133 8.59107 12.0133 8.40902 11.9467 8.24671Z",fill:"#4040F2",__self:void 0,__source:{fileName:AA,lineNumber:120}})))))))))};export{Tp as Accordion,m as ActionFailed,g as ActionSuccess,D as AppActionsTable,L as AppFormsTable,j as AppModulesTable,G as AuditLog,ie as BankAccounts,se as BankSelector,Jb as BidsCards,ue as BreadcrumbBar,ge as BrokersTable,d as Button,J as ButtonOutline,qa as Chart,ls as ChartMedium,bs as ChartSmall,vs as CookieConsent,Is as CountrySelector,Fs as CurrencyPairs,Zs as DatePicker,$s as DateRangePicker,ic as DisplayField,fc as DropdownList,oA as EmailField,Ac as ExchangeRates,$p as FileUpload,vc as FooterNew,Mc as Indices,Qc as LPRequestTable,Kc as LPSideNav,hd as LPTopBar,Ic as LoadingShimmer,ee as LoadingSpinner,_d as MarketData,zd as MarketMovers,Ud as MenuBar,Jd as NewsCard,iu as NewsFilterBar,ou as NewsSourceTag,su as NewsTitleBar,uA as NumberField,gA as PDFViewer,_ as Pagination,hu as PasswordField,Nu as PaymentMethodsTable,km as PhoneInput,Du as PopupModal,Ru as ProvidersTable,Su as RateHistory,ef as RequestForm,lf as Ribbon,Vb as SSXBar,df as SearchBar,bf as SearchResultsBar,bm as Selector,Nf as SideModal,kf as SmallNewsCard,Lu as StatusBadge,Cm as StepProgress,zf as StocksTicker,Zf as SystemConfigTable,Fd as Tab,qf as Table,om as TableAlternative,im as TablePrimary,rb as TextArea,Ju as TextField,Zp as Tooltip,sb as TransactionDetails,fb as TransactionDetailsWithPayment,Cb as UpdateUserActions,_b as UserActions,Hb as UserRolesTable,Qb as UsersTable,jb as WidgetTitle};
|
|
5484
|
+
`;const AA="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\PDFViewer\\PDFViewer.tsx";a.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js";const gA=e=>{const{files:n,closeBtnFn:l,actionArea:s}=e,[c,d]=i(1),[u,f]=i(1),[b,m]=i(0),[h,p]=i(null),[A,g]=i(!1),C=o(null);return r((()=>{g(!1),a.getDocument(n[b].fileUrl).promise.then((e=>{g(!0),p(e)}))}),[n,b]),r((()=>{h&&(d(h.numPages),h.getPage(u).then((e=>{const t=C.current,i=t.getContext("2d"),r=e.getViewport({scale:2});t.width=r.width,t.height=r.height,e.render({canvasContext:i,viewport:r})})))}),[h,u]),r((()=>{f(1)}),[b]),t.createElement(t.Fragment,null,t.createElement(bA,{__self:void 0,__source:{fileName:AA,lineNumber:58}},t.createElement("div",{className:"logo-filename",__self:void 0,__source:{fileName:AA,lineNumber:59}},t.createElement("img",{src:"data:image/png;base64,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",alt:"SSX Logo",__self:void 0,__source:{fileName:AA,lineNumber:60}}),n[b].fileName&&t.createElement("span",{className:"paragraph2Regular",__self:void 0,__source:{fileName:AA,lineNumber:61}},n[b].fileName)),t.createElement("div",{className:"action-area",__self:void 0,__source:{fileName:AA,lineNumber:63}},s&&t.createElement("div",{className:"pdf-actions",__self:void 0,__source:{fileName:AA,lineNumber:65}},s),l&&t.createElement("button",{type:"button",className:"cls-btn",onClick:()=>{l(!1)},__self:void 0,__source:{fileName:AA,lineNumber:70}},t.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:71}},t.createElement("path",{d:"M7.4 6L11.7 1.7C12.1 1.3 12.1 0.7 11.7 0.3C11.3 -0.1 10.7 -0.1 10.3 0.3L6 4.6L1.7 0.3C1.3 -0.1 0.7 -0.1 0.3 0.3C-0.0999998 0.7 -0.0999998 1.3 0.3 1.7L4.6 6L0.3 10.3C0.1 10.5 0 10.7 0 11C0 11.6 0.4 12 1 12C1.3 12 1.5 11.9 1.7 11.7L6 7.4L10.3 11.7C10.5 11.9 10.7 12 11 12C11.3 12 11.5 11.9 11.7 11.7C12.1 11.3 12.1 10.7 11.7 10.3L7.4 6Z",fill:"#070B12",__self:void 0,__source:{fileName:AA,lineNumber:72}}))))),t.createElement(mA,{__self:void 0,__source:{fileName:AA,lineNumber:78}},!A&&t.createElement("div",{className:"loading-pdf",__self:void 0,__source:{fileName:AA,lineNumber:80}},t.createElement(ee,{variant:"primary",__self:void 0,__source:{fileName:AA,lineNumber:81}})),A&&t.createElement(t.Fragment,null,h&&t.createElement(t.Fragment,null,t.createElement("canvas",{ref:C,__self:void 0,__source:{fileName:AA,lineNumber:88}}),t.createElement(hA,{__self:void 0,__source:{fileName:AA,lineNumber:89}},t.createElement("div",{className:"doc-nav",__self:void 0,__source:{fileName:AA,lineNumber:90}},b>0&&t.createElement(J,{variant:"primary",size:"sm",width:"fit-content",withBg:!0,type:"button",onClick:()=>{m(b-1)},__self:void 0,__source:{fileName:AA,lineNumber:92}},t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:93}},t.createElement("path",{d:"M11.3334 7.83338H6.27343L8.47343 5.64004C8.59896 5.51451 8.66949 5.34424 8.66949 5.16671C8.66949 4.98917 8.59896 4.81891 8.47343 4.69338C8.34789 4.56784 8.17763 4.49731 8.00009 4.49731C7.82256 4.49731 7.6523 4.56784 7.52676 4.69338L4.19343 8.02671C4.13273 8.09011 4.08516 8.16487 4.05343 8.24671C3.98675 8.40902 3.98675 8.59107 4.05343 8.75338C4.08516 8.83521 4.13273 8.90997 4.19343 8.97338L7.52676 12.3067C7.58874 12.3692 7.66247 12.4188 7.74371 12.4526C7.82495 12.4865 7.91209 12.5039 8.00009 12.5039C8.0881 12.5039 8.17524 12.4865 8.25648 12.4526C8.33772 12.4188 8.41145 12.3692 8.47343 12.3067C8.53591 12.2447 8.58551 12.171 8.61935 12.0898C8.6532 12.0085 8.67063 11.9214 8.67063 11.8334C8.67063 11.7454 8.6532 11.6582 8.61935 11.577C8.58551 11.4958 8.53591 11.422 8.47343 11.36L6.27343 9.16671H11.3334C11.5102 9.16671 11.6798 9.09647 11.8048 8.97145C11.9299 8.84642 12.0001 8.67685 12.0001 8.50004C12.0001 8.32323 11.9299 8.15366 11.8048 8.02864C11.6798 7.90361 11.5102 7.83338 11.3334 7.83338Z",fill:"#4040F2",__self:void 0,__source:{fileName:AA,lineNumber:94}})),"Previous file")),t.createElement(pA,{__self:void 0,__source:{fileName:AA,lineNumber:100}},t.createElement("div",{className:"page-nav",__self:void 0,__source:{fileName:AA,lineNumber:101}},t.createElement("button",{type:"button",onClick:()=>{u>1&&f(u-1)},disabled:1==u,__self:void 0,__source:{fileName:AA,lineNumber:102}},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:103}},t.createElement("path",{d:"M11.2898 11.9999L14.8298 8.45995C15.0161 8.27259 15.1206 8.01913 15.1206 7.75495C15.1206 7.49076 15.0161 7.23731 14.8298 7.04995C14.7369 6.95622 14.6263 6.88183 14.5044 6.83106C14.3825 6.78029 14.2518 6.75415 14.1198 6.75415C13.9878 6.75415 13.8571 6.78029 13.7352 6.83106C13.6134 6.88183 13.5028 6.95622 13.4098 7.04995L9.16982 11.2899C9.07609 11.3829 9.0017 11.4935 8.95093 11.6154C8.90016 11.7372 8.87402 11.8679 8.87402 11.9999C8.87402 12.132 8.90016 12.2627 8.95093 12.3845C9.0017 12.5064 9.07609 12.617 9.16982 12.7099L13.4098 16.9999C13.5033 17.0926 13.6141 17.166 13.7359 17.2157C13.8578 17.2655 13.9882 17.2907 14.1198 17.2899C14.2514 17.2907 14.3819 17.2655 14.5037 17.2157C14.6256 17.166 14.7364 17.0926 14.8298 16.9999C15.0161 16.8126 15.1206 16.5591 15.1206 16.2949C15.1206 16.0308 15.0161 15.7773 14.8298 15.5899L11.2898 11.9999Z",fill:"#070B12",__self:void 0,__source:{fileName:AA,lineNumber:104}}))),t.createElement("span",{__self:void 0,__source:{fileName:AA,lineNumber:107}},u," of ",c),t.createElement("button",{type:"button",onClick:()=>{u<c&&f(u+1)},disabled:u==c,__self:void 0,__source:{fileName:AA,lineNumber:108}},t.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:109}},t.createElement("path",{d:"M14.8302 11.2899L10.5902 7.04995C10.4972 6.95622 10.3866 6.88183 10.2648 6.83106C10.1429 6.78029 10.0122 6.75415 9.88019 6.75415C9.74818 6.75415 9.61747 6.78029 9.49561 6.83106C9.37375 6.88183 9.26315 6.95622 9.17019 7.04995C8.98394 7.23731 8.87939 7.49076 8.87939 7.75495C8.87939 8.01913 8.98394 8.27259 9.17019 8.45995L12.7102 11.9999L9.17019 15.5399C8.98394 15.7273 8.87939 15.9808 8.87939 16.2449C8.87939 16.5091 8.98394 16.7626 9.17019 16.9499C9.26363 17.0426 9.37444 17.116 9.49628 17.1657C9.61812 17.2155 9.74858 17.2407 9.88019 17.2399C10.0118 17.2407 10.1423 17.2155 10.2641 17.1657C10.3859 17.116 10.4967 17.0426 10.5902 16.9499L14.8302 12.7099C14.9239 12.617 14.9983 12.5064 15.0491 12.3845C15.0998 12.2627 15.126 12.132 15.126 11.9999C15.126 11.8679 15.0998 11.7372 15.0491 11.6154C14.9983 11.4935 14.9239 11.3829 14.8302 11.2899Z",fill:"#070B12",__self:void 0,__source:{fileName:AA,lineNumber:110}}))))),t.createElement("div",{className:"doc-nav",__self:void 0,__source:{fileName:AA,lineNumber:115}},b+1<n.length&&t.createElement(J,{variant:"primary",size:"sm",width:"fit-content",withBg:!0,type:"button",onClick:()=>{m(b+1)},__self:void 0,__source:{fileName:AA,lineNumber:117}},"Next file",t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:AA,lineNumber:119}},t.createElement("path",{d:"M11.9467 8.24671C11.9149 8.16487 11.8674 8.09011 11.8067 8.02671L8.47333 4.69338C8.41117 4.63122 8.33738 4.58191 8.25617 4.54827C8.17495 4.51463 8.08791 4.49731 8 4.49731C7.82247 4.49731 7.6522 4.56784 7.52667 4.69338C7.46451 4.75553 7.4152 4.82933 7.38156 4.91054C7.34792 4.99176 7.33061 5.0788 7.33061 5.16671C7.33061 5.34424 7.40113 5.51451 7.52667 5.64004L9.72667 7.83338H4.66667C4.48986 7.83338 4.32029 7.90361 4.19526 8.02864C4.07024 8.15366 4 8.32323 4 8.50004C4 8.67685 4.07024 8.84642 4.19526 8.97145C4.32029 9.09647 4.48986 9.16671 4.66667 9.16671H9.72667L7.52667 11.36C7.46418 11.422 7.41459 11.4958 7.38074 11.577C7.34689 11.6582 7.32947 11.7454 7.32947 11.8334C7.32947 11.9214 7.34689 12.0085 7.38074 12.0898C7.41459 12.171 7.46418 12.2447 7.52667 12.3067C7.58864 12.3692 7.66238 12.4188 7.74362 12.4526C7.82486 12.4865 7.91199 12.5039 8 12.5039C8.08801 12.5039 8.17515 12.4865 8.25638 12.4526C8.33762 12.4188 8.41136 12.3692 8.47333 12.3067L11.8067 8.97338C11.8674 8.90997 11.9149 8.83521 11.9467 8.75338C12.0133 8.59107 12.0133 8.40902 11.9467 8.24671Z",fill:"#4040F2",__self:void 0,__source:{fileName:AA,lineNumber:120}})))))))))},CA=l.div`
|
|
5485
|
+
padding: 24px;
|
|
5486
|
+
background: ${s["neutral-50"]};
|
|
5487
|
+
border-radius: 8px;
|
|
5488
|
+
border: 1px solid ${s["neutral-200"]};
|
|
5489
|
+
margin-block: 8px;
|
|
5490
|
+
`,vA=l.div`
|
|
5491
|
+
display: flex;
|
|
5492
|
+
flex-direction: column;
|
|
5493
|
+
gap: 12px;
|
|
5494
|
+
color: ${s["neutral-900"]};
|
|
5495
|
+
.upload-field-container{
|
|
5496
|
+
position: relative;
|
|
5497
|
+
background: white;
|
|
5498
|
+
border: 1px solid ${s["neutral-200"]};
|
|
5499
|
+
padding: 13px 16px;
|
|
5500
|
+
border-radius: 8px;
|
|
5501
|
+
display: flex;
|
|
5502
|
+
justify-content: space-between;
|
|
5503
|
+
align-items: center;
|
|
5504
|
+
min-height: 48px;
|
|
5505
|
+
box-sizing: border-box;
|
|
5506
|
+
}
|
|
5507
|
+
.field-placeholder{
|
|
5508
|
+
color: ${s["neutral-400"]};
|
|
5509
|
+
}
|
|
5510
|
+
.file-selector{
|
|
5511
|
+
color: ${s["primary-500"]};
|
|
5512
|
+
background: none;
|
|
5513
|
+
border: none;
|
|
5514
|
+
cursor: pointer;
|
|
5515
|
+
padding-block: 8px;
|
|
5516
|
+
box-sizing: border-box;
|
|
5517
|
+
}
|
|
5518
|
+
.file-input{
|
|
5519
|
+
position: absolute;
|
|
5520
|
+
bottom: 0;
|
|
5521
|
+
left: 0;
|
|
5522
|
+
width: 1px;
|
|
5523
|
+
height: 1px;
|
|
5524
|
+
margin: -1px;
|
|
5525
|
+
}
|
|
5526
|
+
.signature-preview-area{
|
|
5527
|
+
display: flex;
|
|
5528
|
+
flex-direction: column;
|
|
5529
|
+
gap: 8px;
|
|
5530
|
+
width: 100%;
|
|
5531
|
+
}
|
|
5532
|
+
.signature-preview-area .action-area{
|
|
5533
|
+
display: flex;
|
|
5534
|
+
justify-content: space-between;
|
|
5535
|
+
align-items: center;
|
|
5536
|
+
}
|
|
5537
|
+
.action-area button{
|
|
5538
|
+
background: none;
|
|
5539
|
+
border: none;
|
|
5540
|
+
cursor: pointer;
|
|
5541
|
+
color: ${s["primary-500"]};
|
|
5542
|
+
}
|
|
5543
|
+
.signature-preview{
|
|
5544
|
+
background: ${s["neutral-50"]};
|
|
5545
|
+
height: 97px;
|
|
5546
|
+
display: flex;
|
|
5547
|
+
justify-content: center;
|
|
5548
|
+
align-items: center;
|
|
5549
|
+
border-radius: 8px;
|
|
5550
|
+
padding: 16px;
|
|
5551
|
+
}
|
|
5552
|
+
.signature-preview img{
|
|
5553
|
+
height: 65px;
|
|
5554
|
+
}
|
|
5555
|
+
.text-error{
|
|
5556
|
+
color: ${s["error-500"]};
|
|
5557
|
+
}
|
|
5558
|
+
`,NA=l.div`
|
|
5559
|
+
display: flex;
|
|
5560
|
+
flex-direction: column;
|
|
5561
|
+
gap: 12px;
|
|
5562
|
+
color: ${s["neutral-900"]};
|
|
5563
|
+
`,xA="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\SignatureField\\SignatureField.tsx",wA=e=>{const{onChange:n,required:l,value:a,maxFileSize:s}=e,[c,d]=i(0),[u,f]=i(!1),[b,m]=i(!1);r((()=>{a&&("string"==typeof a&&d(1),"object"==typeof a&&d(0))}),[a]);const h=[{tabName:"Upload Your Signature",tabComponent:(()=>{const[e,c]=i(null),[d,h]=i(""),p=o(null),[A,g]=i(!0),[C,v]=i("");function N(e){if(e){const t=new FileReader;t.onloadend=function(){v(t.result),n(e)},t.readAsDataURL(e)}}r((()=>{a&&"object"==typeof a&&a.name?(c(a),N(a)):(c(null),v(""))}),[a]),r((()=>{A?g(!1):h(l?e?"selected":"error":"selected")}),[e]);const x=["image/jpeg","image/png"];return t.createElement(CA,{__self:void 0,__source:{fileName:xA,lineNumber:86}},t.createElement(vA,{__self:void 0,__source:{fileName:xA,lineNumber:87}},t.createElement("label",{className:"field-label paragraph2Medium",__self:void 0,__source:{fileName:xA,lineNumber:88}},"Upload Your Signature"),t.createElement("div",{className:`upload-field-container ${d}`,__self:void 0,__source:{fileName:xA,lineNumber:89}},!e&&t.createElement(t.Fragment,null,t.createElement("input",{type:"file",accept:"image/jpeg, image/png",className:"file-input",ref:p,required:!e&&l,onInvalid:()=>{e||h("error")},onChange:e=>{(function(e){f(!1),m(!1);let t=!0;return x.includes(e.type)||(f(!0),t=!1),s&&e.size/1e3>s&&(m(!0),t=!1),t})(e.target.files[0])&&(c(e.target.files[0]),N(e.target.files[0]))},__self:void 0,__source:{fileName:xA,lineNumber:92}}),t.createElement("span",{className:"field-placeholder paragraph2Regular",__self:void 0,__source:{fileName:xA,lineNumber:101}},"Nothing selected"),t.createElement("button",{type:"button",className:"file-selector paragraph1Medium",onClick:()=>{p.current.click()},__self:void 0,__source:{fileName:xA,lineNumber:102}},"Choose File")),e&&t.createElement("div",{className:"signature-preview-area",__self:void 0,__source:{fileName:xA,lineNumber:106}},t.createElement("div",{className:"signature-preview",__self:void 0,__source:{fileName:xA,lineNumber:107}},t.createElement("img",{src:C,alt:"",__self:void 0,__source:{fileName:xA,lineNumber:108}})),t.createElement("div",{className:"action-area",__self:void 0,__source:{fileName:xA,lineNumber:110}},t.createElement("span",{className:"paragraph2Regular",__self:void 0,__source:{fileName:xA,lineNumber:111}},e.name),t.createElement("button",{className:"rm-btn paragraph1Medium",type:"button",onClick:()=>{c(null),v("")},__self:void 0,__source:{fileName:xA,lineNumber:112}},"Remove File")))),t.createElement("p",{className:`captionBook ${u&&"text-error"}`,__self:void 0,__source:{fileName:xA,lineNumber:120}},"Only ",t.createElement("b",{__self:void 0,__source:{fileName:xA,lineNumber:120}},"JPGs, JPEGs, PNGs")," are allowed"),s&&t.createElement("p",{className:`captionBook ${b&&"text-error"}`,__self:void 0,__source:{fileName:xA,lineNumber:121}},"Maximum ",t.createElement("b",{__self:void 0,__source:{fileName:xA,lineNumber:121}},s>=1e3?Math.round(s/1e3):s," ",s>=1e3?"MB":"KB")," allowed")))})()},{tabName:"Type Your Signature",tabComponent:(()=>{const[e,o]=i("");return r((()=>{o(a&&"string"==typeof a?a:"")}),[a]),t.createElement(t.Fragment,null,t.createElement(CA,{__self:void 0,__source:{fileName:xA,lineNumber:140}},t.createElement(NA,{__self:void 0,__source:{fileName:xA,lineNumber:141}},t.createElement("label",{className:"field-label paragraph2Medium",__self:void 0,__source:{fileName:xA,lineNumber:142}},"Type Your Signature"),t.createElement("div",{className:"signature",__self:void 0,__source:{fileName:xA,lineNumber:143}},t.createElement(Ju,{placeholder:"Type your signature",required:l,onChange:e=>{o(e.target.value),n(e.target.value)},value:e,__self:void 0,__source:{fileName:xA,lineNumber:144}})))))})()}];return t.createElement(t.Fragment,null,t.createElement(Fd,{tabs:h,initialTab:c,__self:void 0,__source:{fileName:xA,lineNumber:168}}))};export{Tp as Accordion,m as ActionFailed,g as ActionSuccess,D as AppActionsTable,L as AppFormsTable,j as AppModulesTable,G as AuditLog,ie as BankAccounts,se as BankSelector,Jb as BidsCards,ue as BreadcrumbBar,ge as BrokersTable,d as Button,J as ButtonOutline,qa as Chart,ls as ChartMedium,bs as ChartSmall,vs as CookieConsent,Is as CountrySelector,Fs as CurrencyPairs,Zs as DatePicker,$s as DateRangePicker,ic as DisplayField,fc as DropdownList,oA as EmailField,Ac as ExchangeRates,$p as FileUpload,vc as FooterNew,Mc as Indices,Qc as LPRequestTable,Kc as LPSideNav,hd as LPTopBar,Ic as LoadingShimmer,ee as LoadingSpinner,_d as MarketData,zd as MarketMovers,Ud as MenuBar,Jd as NewsCard,iu as NewsFilterBar,ou as NewsSourceTag,su as NewsTitleBar,uA as NumberField,gA as PDFViewer,_ as Pagination,hu as PasswordField,Nu as PaymentMethodsTable,km as PhoneInput,Du as PopupModal,Ru as ProvidersTable,Su as RateHistory,ef as RequestForm,lf as Ribbon,Vb as SSXBar,df as SearchBar,bf as SearchResultsBar,bm as Selector,Nf as SideModal,wA as SignatureField,kf as SmallNewsCard,Lu as StatusBadge,Cm as StepProgress,zf as StocksTicker,Zf as SystemConfigTable,Fd as Tab,qf as Table,om as TableAlternative,im as TablePrimary,rb as TextArea,Ju as TextField,Zp as Tooltip,sb as TransactionDetails,fb as TransactionDetailsWithPayment,Cb as UpdateUserActions,_b as UserActions,Hb as UserRolesTable,Qb as UsersTable,jb as WidgetTitle};
|
|
5472
5564
|
//# sourceMappingURL=index.es.js.map
|