profinansy-ui-lib 3.8.12 → 3.8.13
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.
|
@@ -1908,7 +1908,7 @@ Check the top-level render call using <`+q+">.")}return G}}function U2(M,G){{if(
|
|
|
1908
1908
|
${Et}
|
|
1909
1909
|
`,Wg=h.styled(O3)`
|
|
1910
1910
|
margin: 20px auto 0 auto;
|
|
1911
|
-
`,Gg=e=>{const[t,n]=m.useState(null),[r,o]=m.useState(null),{locale:i}=ue(),a=m.useMemo(()=>{if(e){const p=e.categories.reduce((C,g)=>{let v=0;return g.subcategories.forEach(b=>{v+=b.total}),v&&C.push({value:g.categoryKey,label:i===Bn.ru?g.nameRu:g.nameEn,dataCount:v}),C},[]);return p.length?p:null}return null},[e]),l=m.useMemo(()=>e&&t?e.categories.find(p=>p.categoryKey===t):null,[t,e]),c=m.useMemo(()=>l&&r?l.subcategories.find(p=>p.subcategoryKey===r):null,[l,r,e]),u=m.useMemo(()=>{if(l){const p=l.subcategories.reduce((C,g)=>(g.total&&C.push({value:g.subcategoryKey,label:i===Bn.ru?g.nameRu:g.nameEn,dataCount:g.total}),C),[]);return p.length?p:null}return null},[l,e]),f=m.useMemo(()=>c?.children||[],[c,l,e]);return m.useEffect(()=>{a&&a.length&&(t&&a.find(C=>C.value===t)||n(a[0].value))},[a]),m.useEffect(()=>{if(u&&u.length){
|
|
1911
|
+
`,Gg=e=>{const[t,n]=m.useState(null),[r,o]=m.useState(null),{locale:i}=ue(),a=m.useMemo(()=>{if(e){const p=e.categories.reduce((C,g)=>{let v=0;return g.subcategories.forEach(b=>{v+=b.total}),v&&C.push({value:g.categoryKey,label:i===Bn.ru?g.nameRu:g.nameEn,dataCount:v}),C},[]);return p.length?p:null}return null},[e]),l=m.useMemo(()=>e&&t?e.categories.find(p=>p.categoryKey===t):null,[t,e]),c=m.useMemo(()=>l&&r?l.subcategories.find(p=>p.subcategoryKey===r):null,[l,r,e]),u=m.useMemo(()=>{if(l){const p=l.subcategories.reduce((C,g)=>(g.total&&C.push({value:g.subcategoryKey,label:i===Bn.ru?g.nameRu:g.nameEn,dataCount:g.total}),C),[]);return p.length?p:null}return null},[l,e]),f=m.useMemo(()=>c?.children||[],[c,l,e]);return m.useEffect(()=>{a&&a.length&&(t&&a.find(C=>C.value===t)||n(a[0].value))},[a]),m.useEffect(()=>{if(u&&u.length){const p=u[0];o(p.value)}},[u,l]),{listItems:f,tabs:a,selectedTab:t,bubbles:u,selectedBubble:r,setSelectedBubble:o,setSelectedTab:n}},Yg=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.922 11.872L9.9259 11.8681C10.1173 11.6768 10.1173 11.3621 9.9259 11.1707L7.02812 8.27296C6.87727 8.12212 6.87727 7.87675 7.02812 7.72591L9.9259 4.82813C10.1173 4.63676 10.1173 4.32212 9.9259 4.13074C9.73453 3.93937 9.41989 3.93937 9.22852 4.13074L6.33074 7.02852C5.79714 7.56212 5.79714 8.43676 6.33074 8.97035L9.22852 11.8681C9.32677 11.9664 9.45262 12.0128 9.57721 12.0128C9.7065 12.0128 9.82902 11.9588 9.922 11.872Z",fill:"#A2A1A7"})),zg=e=>d.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.6818 10.388L8.68521 10.3846C8.85266 10.2172 8.85266 9.94187 8.68521 9.77442L6.14965 7.23886C6.01766 7.10687 6.01766 6.89218 6.14965 6.76019L8.68521 4.22463C8.85266 4.05718 8.85266 3.78187 8.68521 3.61442C8.51776 3.44697 8.24245 3.44697 8.075 3.61442L5.53944 6.14997C5.07255 6.61687 5.07255 7.38218 5.53944 7.84908L8.075 10.3846C8.16097 10.4706 8.27109 10.5112 8.3801 10.5112C8.49324 10.5112 8.60044 10.464 8.6818 10.388Z",fill:"#A2A1A7"})),Xg={L:{size:`
|
|
1912
1912
|
width: 36px;
|
|
1913
1913
|
min-width: 36px;
|
|
1914
1914
|
height: 36px;
|