@worldresources/wri-design-systems 2.137.1 → 2.137.2
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/index.cjs.js +155 -146
- package/dist/index.esm.js +150 -141
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1763,6 +1763,11 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1763
1763
|
`,yn=({ariaLabel:e,icon:t,backgroundColor:r,onClick:n})=>N("div",{css:wn(r,!!n),"aria-label":e,role:"button",tabIndex:0,onClick:n,onKeyDown:n,children:t}),$n={Paper:({ariaLabel:e,onClick:t})=>A(yn,{ariaLabel:e||"paper icon",icon:A(je,{color:"#79022C"}),backgroundColor:"#FFBCD4",onClick:t}),Drop:({ariaLabel:e,onClick:t})=>A(yn,{ariaLabel:e||"drop icon",icon:A(Pe,{color:"#7D2A03"}),backgroundColor:"#F3A078",onClick:t}),Plant:({ariaLabel:e,onClick:t})=>A(yn,{ariaLabel:e||"plant icon",icon:A(Te,{color:"#3B6402"}),backgroundColor:"#B7E578",onClick:t})},kn=F`
|
|
1764
1764
|
background-color: ${le("neutral",100)};
|
|
1765
1765
|
`,Ln=F`
|
|
1766
|
+
padding: 16px 16px 0px 16px;
|
|
1767
|
+
&:focus-visible {
|
|
1768
|
+
outline-color: ${le("primary",700)};
|
|
1769
|
+
}
|
|
1770
|
+
`,Mn=F`
|
|
1766
1771
|
font-size: 16px;
|
|
1767
1772
|
font-weight: 700;
|
|
1768
1773
|
line-height: 24px;
|
|
@@ -1772,42 +1777,46 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1772
1777
|
align-items: center;
|
|
1773
1778
|
text-align: left;
|
|
1774
1779
|
gap: 10px;
|
|
1775
|
-
`,
|
|
1780
|
+
`,Sn=F`
|
|
1776
1781
|
font-size: 12px;
|
|
1777
1782
|
font-weight: 400;
|
|
1778
1783
|
line-height: 16px;
|
|
1779
1784
|
text-align: left;
|
|
1780
1785
|
color: ${le("neutral",700)};
|
|
1781
1786
|
margin-bottom: 8px;
|
|
1782
|
-
`,
|
|
1787
|
+
`,Vn=F`
|
|
1783
1788
|
width: 100%;
|
|
1784
1789
|
padding: 16px 0;
|
|
1785
1790
|
border-bottom: 1px solid ${le("neutral",300)};
|
|
1786
|
-
|
|
1791
|
+
|
|
1792
|
+
&:last-of-type {
|
|
1793
|
+
border-bottom: none;
|
|
1794
|
+
}
|
|
1795
|
+
`,Rn=F`
|
|
1787
1796
|
display: flex;
|
|
1788
1797
|
align-items: flex-start;
|
|
1789
1798
|
justify-content: space-between;
|
|
1790
|
-
`,
|
|
1799
|
+
`,Dn=F`
|
|
1791
1800
|
display: flex;
|
|
1792
1801
|
flex-direction: column;
|
|
1793
|
-
`,
|
|
1802
|
+
`,_n=e=>F`
|
|
1794
1803
|
font-size: 16px;
|
|
1795
1804
|
font-weight: 400;
|
|
1796
1805
|
line-height: 24px;
|
|
1797
1806
|
text-align: left;
|
|
1798
1807
|
color: ${le("neutral",e?500:800)};
|
|
1799
|
-
`,
|
|
1808
|
+
`,zn=e=>F`
|
|
1800
1809
|
font-size: 14px;
|
|
1801
1810
|
font-weight: 400;
|
|
1802
1811
|
line-height: 20px;
|
|
1803
1812
|
text-align: left;
|
|
1804
1813
|
color: ${le("neutral",e?500:700)};
|
|
1805
|
-
`,
|
|
1814
|
+
`,In=({name:e,label:t,caption:r,showInfoButton:o=!0,infoButtonLabel:i="About data",variant:l="switch",disabled:a,onInfoClick:s,isDefaultSelected:d=!1,onChange:c})=>{const p="switch"===l;return B("div",{css:Vn,children:[B("div",p?{css:Rn,children:[B("div",{css:Dn,children:[N("p",{css:_n(a),"aria-label":t,"aria-disabled":a,children:t}),N("p",{"aria-label":r,css:zn(a),children:r})]}),N(At,{"aria-label":`${t}, ${r}`,name:e,disabled:a,defaultChecked:d,onChange:c,role:"switch"})]}:{style:{display:"flex",flexDirection:"column"},children:[N(zt,{value:e,disabled:a,fontSize:"16px",color:"var(--chakra-colors-neutral-800)",children:t}),N("p",{style:{marginLeft:"28px"},css:zn(a),children:r})]}),o?N(n,{display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:p?0:"28px",children:N(ue,{variant:"secondary",label:i,rightIcon:N(be,{}),size:"small",onClick:s,disabled:a})}):null]})},En=({label:e,caption:t,value:r,layerItems:o,onChangeForRadioVariant:i})=>{const[l,a]=X({}),[s]=X((e=>{const t=e.find((e=>"radio"===e.variant&&e.isDefaultSelected));return t?.name})(o));G((()=>{let t={...l};o.forEach((r=>{r.isDefaultSelected&&(t={...t,["radio"===r.variant?e:r.name]:r.isDefaultSelected})})),a(t)}),[]);const d=(e,t,r,n)=>{const o={...l,[e]:t};a(o),r&&r(e,t,n)},c=Object.values(l).filter((e=>!0===e)).length,p=`${e}, ${c} Active layers on the map${t?`, ${t}`:""}`;return B(k.Item,{value:r,width:"100%",children:[B(k.ItemTrigger,{css:Ln,alignItems:"flex-start","aria-label":p,children:[B(n,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:[B("span",{css:Mn,children:[e,N(Ir,{label:`${c} Active`,size:"small",variant:c>0?"success":"info-grey"})]}),N("div",{css:Sn,children:t})]}),N(k.ItemIndicator,{display:"flex",children:N(me,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),N(k.ItemContent,{paddingLeft:"16px",paddingRight:"16px",children:N(It,{name:e,defaultValue:s,customGap:"0px",onChange:(e,t)=>d(e,!!t,i,t),children:o.map((e=>N(In,{...e,onChange:(t,r)=>d(t,r,e.onChange)},e.label)))})})]})},Hn=({children:e,defaultValue:t,...r})=>N("div",{css:kn,style:{width:"100%"},children:N(k.Root,{css:{},defaultValue:t,multiple:!0,...r,children:e})}),jn=F`
|
|
1806
1815
|
margin-bottom: 16px;
|
|
1807
1816
|
border: 1px solid ${le("neutral",300)};
|
|
1808
1817
|
border-radius: 4px;
|
|
1809
1818
|
box-shadow: 0px 1px 2px 0px #0000000d;
|
|
1810
|
-
`,
|
|
1819
|
+
`,Pn=F`
|
|
1811
1820
|
padding: 6px 8px;
|
|
1812
1821
|
align-items: center;
|
|
1813
1822
|
background-color: ${le("neutral",100)};
|
|
@@ -1823,12 +1832,12 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1823
1832
|
height: 10px;
|
|
1824
1833
|
width: 10px;
|
|
1825
1834
|
}
|
|
1826
|
-
`,
|
|
1835
|
+
`,Tn=F`
|
|
1827
1836
|
font-size: 12px;
|
|
1828
1837
|
font-weight: 700;
|
|
1829
1838
|
line-height: 16px;
|
|
1830
1839
|
color: ${le("neutral",800)};
|
|
1831
|
-
`,
|
|
1840
|
+
`,On=F`
|
|
1832
1841
|
padding: 12px 8px;
|
|
1833
1842
|
display: flex;
|
|
1834
1843
|
flex-direction: column;
|
|
@@ -1844,13 +1853,13 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1844
1853
|
margin-bottom: 0px;
|
|
1845
1854
|
}
|
|
1846
1855
|
}
|
|
1847
|
-
`,
|
|
1856
|
+
`,Bn=({label:e,children:t,openedByDefault:r})=>N("div",{children:N(k.Root,{defaultValue:r?[e]:[],multiple:!0,children:B(k.Item,{css:jn,value:e,children:[B(k.ItemTrigger,{css:Pn,children:[N(n,{width:"full",display:"flex",flexDirection:"column",alignItems:"flex-start",children:N("p",{css:Tn,children:e})}),N(k.ItemIndicator,{display:"flex",children:N(me,{color:"var(--chakra-colors-neutral-700)",height:"16px",width:"16px"})})]}),N(k.ItemContent,{css:On,children:K.map(t,(e=>N("div",{className:"layer-parameters-item-child",children:e})))})]})})}),Nn=F`
|
|
1848
1857
|
padding: 12px;
|
|
1849
1858
|
padding-bottom: 20px;
|
|
1850
1859
|
display: flex;
|
|
1851
1860
|
gap: 12px;
|
|
1852
1861
|
border-bottom: 1px solid ${le("neutral",300)};
|
|
1853
|
-
`,
|
|
1862
|
+
`,Zn=F`
|
|
1854
1863
|
display: flex;
|
|
1855
1864
|
flex-direction: column;
|
|
1856
1865
|
|
|
@@ -1859,44 +1868,44 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1859
1868
|
fill: ${le("neutral",700)} !important;
|
|
1860
1869
|
}
|
|
1861
1870
|
}
|
|
1862
|
-
`,
|
|
1871
|
+
`,Fn=F`
|
|
1863
1872
|
display: flex;
|
|
1864
1873
|
align-items: flex-start;
|
|
1865
1874
|
justify-content: space-between;
|
|
1866
1875
|
gap: 12px;
|
|
1867
1876
|
margin-bottom: 16px;
|
|
1868
|
-
`,
|
|
1877
|
+
`,An=F`
|
|
1869
1878
|
font-size: 16px;
|
|
1870
1879
|
line-height: 24px;
|
|
1871
1880
|
font-weight: 400;
|
|
1872
1881
|
text-align: left;
|
|
1873
1882
|
color: ${le("neutral",900)};
|
|
1874
|
-
`,
|
|
1883
|
+
`,Wn=F`
|
|
1875
1884
|
font-size: 14px;
|
|
1876
1885
|
line-height: 20px;
|
|
1877
1886
|
font-weight: 400;
|
|
1878
1887
|
text-align: left;
|
|
1879
1888
|
color: ${le("neutral",700)};
|
|
1880
|
-
`,
|
|
1889
|
+
`,Yn=F`
|
|
1881
1890
|
display: flex;
|
|
1882
1891
|
justify-content: space-between;
|
|
1883
1892
|
|
|
1884
1893
|
button {
|
|
1885
1894
|
width: 46%;
|
|
1886
1895
|
}
|
|
1887
|
-
`,
|
|
1896
|
+
`,qn=F`
|
|
1888
1897
|
width: 234px;
|
|
1889
1898
|
border: 1px solid ${le("neutral",600)};
|
|
1890
1899
|
border-radius: 4px;
|
|
1891
|
-
`,qn=F`
|
|
1892
|
-
padding: 12px;
|
|
1893
1900
|
`,Un=F`
|
|
1901
|
+
padding: 12px;
|
|
1902
|
+
`,Xn=F`
|
|
1894
1903
|
font-size: 14px;
|
|
1895
1904
|
line-height: 20px;
|
|
1896
1905
|
font-weight: 400;
|
|
1897
1906
|
text-align: left;
|
|
1898
1907
|
color: ${le("neutral",900)};
|
|
1899
|
-
`,
|
|
1908
|
+
`,Gn=F`
|
|
1900
1909
|
display: flex;
|
|
1901
1910
|
align-items: center;
|
|
1902
1911
|
gap: 12px;
|
|
@@ -1917,20 +1926,20 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1917
1926
|
margin-top: 18px;
|
|
1918
1927
|
width: 100%;
|
|
1919
1928
|
}
|
|
1920
|
-
`,
|
|
1929
|
+
`,Kn=({defaultValue:e,onOpacityChanged:t})=>{const[r,n]=X(e);return B(L.Root,{positioning:{placement:"bottom-end"},children:[N(L.Trigger,{asChild:!0,children:N(ue,{label:"Opacity",size:"small",variant:"secondary",leftIcon:N(be,{})})}),N(L.Positioner,{children:N(L.Content,{css:qn,children:B(L.Body,{css:Un,children:[N("p",{css:Xn,children:"Opacity"}),B("div",{css:Gn,children:[B("div",{style:{position:"relative"},children:[N(cr,{"aria-label":"Opacity",min:"0",max:"100",value:r,onChange:e=>{const r=e.target.value||"0";let o=parseInt(r,10);o=Number.isNaN(o)?0:o,o=o<0?0:o,o=o>100?100:o,n(o),t&&t(o)},className:"opacity-control-text-input",onClick:e=>e.target.select()}),N("p",{style:{position:"absolute",top:"18.5px",right:"5px"},children:"%"})]}),N(Zt,{min:0,max:100,value:[r],onValueChangeEnd:({value:e})=>{n(e[0]),t&&t(e[0])}})]})]})})})]})},Jn=({layerName:e,dataUnit:t,onDrag:r,onUpClick:n,onDownClick:o,onRemoveClick:i,children:l,onInfoClick:a,onOpacityChanged:s})=>B("div",{css:Nn,children:[B("div",{css:Zn,children:[N(qe,{icon:N($e,{}),"aria-label":"Drag and drop","aria-hidden":!0,onClick:r,style:{display:"none",marginBottom:"12px"}}),B("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[N(qe,{icon:N(me,{rotate:"180"}),"aria-label":"Up",onClick:n}),N(qe,{icon:N(me,{}),"aria-label":"Down",onClick:o})]})]}),B("div",{style:{width:"100%"},children:[B("div",{css:Fn,children:[B("div",{children:[N("h3",{css:An,children:e}),N("p",{css:Wn,children:t})]}),N(ue,{label:"Remove",size:"small",variant:"secondary",rightIcon:N(ve,{}),onClick:i})]}),l,B("div",{css:Yn,children:[N(ue,{label:"About data",size:"small",variant:"secondary",leftIcon:N(be,{}),onClick:a}),N(Kn,{defaultValue:80,onOpacityChanged:s})]})]})]}),Qn=e=>F`
|
|
1921
1930
|
width: 20px;
|
|
1922
1931
|
height: 20px;
|
|
1923
1932
|
border-radius: 50%;
|
|
1924
1933
|
background-color: ${e};
|
|
1925
1934
|
border: 1px solid ${le("neutral",400)};
|
|
1926
|
-
`,
|
|
1935
|
+
`,eo=e=>F`
|
|
1927
1936
|
width: 20px;
|
|
1928
1937
|
height: 8px;
|
|
1929
1938
|
border-radius: 2px;
|
|
1930
1939
|
background-color: ${e};
|
|
1931
1940
|
border: 1px solid ${le("neutral",400)};
|
|
1932
1941
|
margin-top: 5px;
|
|
1933
|
-
`,
|
|
1942
|
+
`,to=e=>F`
|
|
1934
1943
|
width: 20px;
|
|
1935
1944
|
height: 20px;
|
|
1936
1945
|
border-radius: 50%;
|
|
@@ -1943,26 +1952,26 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1943
1952
|
width: 10px;
|
|
1944
1953
|
height: 10px;
|
|
1945
1954
|
}
|
|
1946
|
-
`,
|
|
1955
|
+
`,ro=F`
|
|
1947
1956
|
width: 100%;
|
|
1948
1957
|
display: flex;
|
|
1949
1958
|
justify-content: space-between;
|
|
1950
1959
|
gap: 8px;
|
|
1951
1960
|
margin-bottom: 16px;
|
|
1952
|
-
`,
|
|
1961
|
+
`,no=F`
|
|
1953
1962
|
display: flex;
|
|
1954
1963
|
gap: 8px;
|
|
1955
|
-
`,
|
|
1964
|
+
`,oo=F`
|
|
1956
1965
|
font-size: 14px;
|
|
1957
1966
|
line-height: 20px;
|
|
1958
1967
|
font-weight: 400;
|
|
1959
1968
|
color: ${le("neutral",800)};
|
|
1960
|
-
`,
|
|
1969
|
+
`,io=F`
|
|
1961
1970
|
font-size: 12px;
|
|
1962
1971
|
line-height: 16px;
|
|
1963
1972
|
font-weight: 400;
|
|
1964
1973
|
color: ${le("neutral",700)};
|
|
1965
|
-
`,
|
|
1974
|
+
`,lo=F`
|
|
1966
1975
|
button {
|
|
1967
1976
|
height: 25px;
|
|
1968
1977
|
font-size: 12px;
|
|
@@ -1971,12 +1980,12 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1971
1980
|
color: ${le("neutral",600)};
|
|
1972
1981
|
padding: 0 10px;
|
|
1973
1982
|
}
|
|
1974
|
-
`,
|
|
1983
|
+
`,ao=({type:e,label:t,caption:r,color:n,onActionClick:o,showActionButton:i,pointIcon:l})=>{const[a,s]=X(!0),d="line"===e,c="point"===e;return B("div",{css:ro,children:[B("div",{css:no,children:[B("div",{children:["raster"===e&&N("div",{css:Qn(n)}),d&&N("div",{css:eo(n)}),c&&N("div",{css:to(n),children:l})]}),B("div",{children:[N("p",{css:oo,"aria-label":t,children:t}),r?N("p",{css:io,"aria-label":r,children:r}):null]})]}),o&&i?N("div",{css:lo,children:N(ue,{variant:"borderless",label:a?"Hide":"Show",rightIcon:N(a?ye:we,{}),"aria-label":"Show or Hide action",onClick:()=>{s(!a),o&&o()}})}):null]})},so=F`
|
|
1975
1984
|
width: 100%;
|
|
1976
1985
|
display: flex;
|
|
1977
1986
|
flex-direction: column;
|
|
1978
1987
|
margin-bottom: 16px;
|
|
1979
|
-
`,
|
|
1988
|
+
`,co=F`
|
|
1980
1989
|
height: 20px;
|
|
1981
1990
|
width: 100%;
|
|
1982
1991
|
margin-bottom: 8px;
|
|
@@ -1994,34 +2003,34 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
1994
2003
|
border-top-right-radius: 3px;
|
|
1995
2004
|
border-bottom-right-radius: 3px;
|
|
1996
2005
|
}
|
|
1997
|
-
`,
|
|
2006
|
+
`,po=F`
|
|
1998
2007
|
display: flex;
|
|
1999
2008
|
justify-content: space-between;
|
|
2000
2009
|
align-items: flex-start;
|
|
2001
|
-
`,
|
|
2010
|
+
`,uo=F`
|
|
2002
2011
|
width: 100%;
|
|
2003
2012
|
font-size: 12px;
|
|
2004
2013
|
line-height: 16px;
|
|
2005
2014
|
font-weight: 400;
|
|
2006
2015
|
color: ${le("neutral",800)};
|
|
2007
2016
|
text-align: center;
|
|
2008
|
-
`,
|
|
2017
|
+
`,ho=F`
|
|
2009
2018
|
font-size: 12px;
|
|
2010
2019
|
line-height: 16px;
|
|
2011
2020
|
font-weight: 400;
|
|
2012
2021
|
color: ${le("neutral",700)};
|
|
2013
2022
|
text-align: center;
|
|
2014
|
-
`,
|
|
2023
|
+
`,xo=e=>{const t=e.map(((t,r)=>`${r/(e.length-1)*100}%`));return`linear-gradient(to right, ${e.map(((e,r)=>`${e} ${t[r]}`)).join(", ")})`},go=({colors:e,values:t,subLabels:r,isGradient:n})=>{return B("div",{css:so,children:[N("div",n?{css:(o=xo(e),F`
|
|
2015
2024
|
height: 20px;
|
|
2016
2025
|
width: 100%;
|
|
2017
2026
|
margin-bottom: 8px;
|
|
2018
2027
|
border: 1px solid ${le("neutral",300)};
|
|
2019
2028
|
border-radius: 4px;
|
|
2020
2029
|
${o?`background: ${o};`:""}
|
|
2021
|
-
`)}:{css:
|
|
2030
|
+
`)}:{css:co,children:e?.map(((e,r)=>N("div",{"data-test":`${e}-${t?.[r]}`,style:{backgroundColor:e,width:"100%",height:"100%"}},`${e}-${t?.[r]}`)))}),N("div",{css:po,children:t?.map((e=>N("div",{style:{width:n?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:N("p",{css:uo,children:e})},e)))}),r&&r.length?N("div",{css:po,children:r.map((e=>N("div",{style:{width:n?"auto":`calc(100% / ${t.length})`,display:"flex",justifyContent:"center"},children:N("p",{css:ho,style:{width:"100%"},children:e})},e)))}):null]});var o},fo=F`
|
|
2022
2031
|
display: flex;
|
|
2023
2032
|
flex-direction: column;
|
|
2024
|
-
`,
|
|
2033
|
+
`,bo=F`
|
|
2025
2034
|
display: flex;
|
|
2026
2035
|
gap: 16px;
|
|
2027
2036
|
align-items: center;
|
|
@@ -2030,39 +2039,39 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2030
2039
|
.select-input-container {
|
|
2031
2040
|
margin-bottom: 0px;
|
|
2032
2041
|
}
|
|
2033
|
-
`,
|
|
2042
|
+
`,mo=F`
|
|
2034
2043
|
font-size: 18px;
|
|
2035
2044
|
line-height: 28px;
|
|
2036
2045
|
font-weight: 400;
|
|
2037
2046
|
color: ${le("neutral",700)};
|
|
2038
|
-
`,
|
|
2047
|
+
`,Co=({pageSize:e,currentPage:t,totalItems:r,onPageSizeChange:n,showItemCountText:o})=>B("div",{css:fo,children:[B("div",{css:bo,children:[N("div",{style:{width:"80px"},children:N(jr,{defaultValue:[`${e}`],items:[{label:"10",value:"10"},{label:"20",value:"20"},{label:"50",value:"50"},{label:"100",value:"100"}],onChange:e=>{n&&n(parseInt(e[0],10))},required:!0})}),N("p",{css:mo,children:"Per Page"})]}),o?N("p",{css:mo,children:(()=>{const n=e,o=(t-1)*n+1;return`Showing ${o}-${Math.min(o+n-1,r)} of ${r}`})()}):null]}),vo=F`
|
|
2039
2048
|
border: 1px solid ${le("neutral",300)};
|
|
2040
|
-
`,
|
|
2049
|
+
`,wo=F`
|
|
2041
2050
|
color: ${le("neutral",700)};
|
|
2042
2051
|
line-height: 20px;
|
|
2043
2052
|
white-space: nowrap;
|
|
2044
2053
|
overflow: hidden;
|
|
2045
2054
|
text-overflow: ellipsis;
|
|
2046
|
-
`,
|
|
2055
|
+
`,yo=F`
|
|
2047
2056
|
font-weight: 400;
|
|
2048
2057
|
color: ${le("neutral",700)};
|
|
2049
2058
|
white-space: nowrap;
|
|
2050
2059
|
overflow: hidden;
|
|
2051
2060
|
text-overflow: ellipsis;
|
|
2052
|
-
|
|
2061
|
+
`,$o=F`
|
|
2053
2062
|
color: ${le("neutral",700)};
|
|
2054
2063
|
text-align: right;
|
|
2055
2064
|
font-weight: 700;
|
|
2056
2065
|
white-space: nowrap;
|
|
2057
2066
|
overflow: hidden;
|
|
2058
2067
|
text-overflow: ellipsis;
|
|
2059
|
-
|
|
2068
|
+
`,ko=F`
|
|
2060
2069
|
width: 16px;
|
|
2061
2070
|
height: 16px;
|
|
2062
2071
|
path {
|
|
2063
2072
|
fill: ${le("neutral",700)};
|
|
2064
2073
|
}
|
|
2065
|
-
`,
|
|
2074
|
+
`,Lo=F`
|
|
2066
2075
|
display: flex;
|
|
2067
2076
|
align-items: center;
|
|
2068
2077
|
justify-content: space-between;
|
|
@@ -2071,7 +2080,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2071
2080
|
border-bottom: 1px solid ${le("neutral",200)};
|
|
2072
2081
|
width: 100%;
|
|
2073
2082
|
text-align: left;
|
|
2074
|
-
`,
|
|
2083
|
+
`,Mo=F`
|
|
2075
2084
|
display: flex;
|
|
2076
2085
|
align-items: center;
|
|
2077
2086
|
justify-content: space-between;
|
|
@@ -2105,18 +2114,18 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2105
2114
|
background-color: ${le("primary",100)};
|
|
2106
2115
|
border: 1px solid ${le("primary",700)};
|
|
2107
2116
|
}
|
|
2108
|
-
`,
|
|
2117
|
+
`,So=({id:e,label:t,caption:r,icon:o,value:l,variant:a="data",onItemClick:s,isExpanded:d=!1,ariaLabel:c})=>{const p="navigation"===a&&!!s,u=p?M.button:M.div;return B(u,{id:e,css:"data"===a?Lo:Mo,onClick:p?s:void 0,tabIndex:p?0:void 0,onKeyDown:e=>{p&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s?.()))},role:p?"button":void 0,"aria-expanded":p?d:void 0,"aria-label":c||("data"===a&&l?`${t}, ${l}`:t),children:[B(S,{gap:3,flex:"1",overflow:"hidden",children:[o&&N(i,{css:ko,as:o.type,boxSize:4,"aria-hidden":"true"}),B(n,{flex:"1",minWidth:0,children:[N(V,{fontWeight:"navigation"===a?"700":"400",css:wo,children:t}),r&&N(V,{css:yo,children:r})]})]}),"data"===a&&l&&N(V,{css:$o,children:l}),"navigation"===a&&N(i,{as:Ce,boxSize:4,"aria-hidden":"true"})]})},Vo=({items:e})=>N(n,{css:vo,children:e.map((e=>N(So,{id:e.id,icon:e.icon,label:e.label,caption:e.caption,value:e.value,variant:e.variant??"data",onItemClick:e.onItemClick},e.id??e.label)))}),Ro=F`
|
|
2109
2118
|
svg {
|
|
2110
2119
|
path {
|
|
2111
2120
|
fill: ${le("primary",500)};
|
|
2112
2121
|
}
|
|
2113
2122
|
}
|
|
2114
|
-
`,
|
|
2123
|
+
`,Do=F`
|
|
2115
2124
|
font-size: 16px;
|
|
2116
2125
|
line-height: 24px;
|
|
2117
2126
|
font-weight: 700;
|
|
2118
2127
|
color: ${le("neutral",900)};
|
|
2119
|
-
`,
|
|
2128
|
+
`,_o=F`
|
|
2120
2129
|
span {
|
|
2121
2130
|
height: 20px;
|
|
2122
2131
|
width: 20px;
|
|
@@ -2126,7 +2135,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2126
2135
|
background-color: transparent;
|
|
2127
2136
|
}
|
|
2128
2137
|
}
|
|
2129
|
-
`,
|
|
2138
|
+
`,zo=F`
|
|
2130
2139
|
font-size: 16px;
|
|
2131
2140
|
line-height: 24px;
|
|
2132
2141
|
font-weight: 400;
|
|
@@ -2136,22 +2145,22 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2136
2145
|
color: ${le("neutral",900)};
|
|
2137
2146
|
font-weight: 700;
|
|
2138
2147
|
}
|
|
2139
|
-
`,
|
|
2148
|
+
`,Io=({totalItems:e,pageSize:t,currentPage:r,variant:n="default",onPageChange:o})=>{const i="compact"===n||"compact-with-buttons"===n,l="compact-with-buttons"===n;return N("div",{"aria-label":"Pagination",children:N(R.Root,{count:e,pageSize:t,defaultPage:r,onPageChange:e=>o&&o(e.page),siblingCount:1,children:B(D,{gap:"2",size:"sm",variant:"ghost",css:_o,children:[N(R.PrevTrigger,{asChild:!0,children:l?N(ue,{variant:"secondary",label:"Previous",size:"small",leftIcon:N(me,{style:{rotate:"90deg"},color:"var(--chakra-colors-primary-500)"})}):N(qe,{css:Ro,style:{rotate:"90deg"},icon:N(me,{}),"aria-label":"Previous page"})}),i?N(R.PageText,{css:Do}):N(R.Items,{render:e=>N(qe,{css:zo,"aria-label":`Page ${e.value}`,icon:N("p",{children:e.value})})}),N(R.NextTrigger,{asChild:!0,children:l?N(ue,{variant:"secondary",label:"Next",size:"small",rightIcon:N(me,{style:{rotate:"270deg"},color:"var(--chakra-colors-primary-500)"})}):N(qe,{css:Ro,style:{rotate:"270deg"},icon:N(me,{}),"aria-label":"Next page"})})]})})})},Eo=F`
|
|
2140
2149
|
border: 1px solid ${le("neutral",300)};
|
|
2141
2150
|
border-radius: 2px;
|
|
2142
2151
|
box-shadow: 0 0 0 1px ${le("neutral",300)};
|
|
2143
|
-
`,
|
|
2152
|
+
`,Ho=F`
|
|
2144
2153
|
tr {
|
|
2145
2154
|
background-color: ${le("neutral",200)};
|
|
2146
2155
|
}
|
|
2147
|
-
`,
|
|
2156
|
+
`,jo=F`
|
|
2148
2157
|
font-size: 16px;
|
|
2149
2158
|
line-height: 24px;
|
|
2150
2159
|
font-weight: 700;
|
|
2151
2160
|
color: ${le("neutral",800)};
|
|
2152
2161
|
display: flex;
|
|
2153
2162
|
align-items: center;
|
|
2154
|
-
`,
|
|
2163
|
+
`,Po=F`
|
|
2155
2164
|
height: 24px;
|
|
2156
2165
|
width: 10px;
|
|
2157
2166
|
display: flex;
|
|
@@ -2174,19 +2183,19 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2174
2183
|
}
|
|
2175
2184
|
}
|
|
2176
2185
|
}
|
|
2177
|
-
`,
|
|
2186
|
+
`,To=e=>F`
|
|
2178
2187
|
svg {
|
|
2179
2188
|
path {
|
|
2180
2189
|
fill: ${e?le("primary",600):le("neutral",400)} !important;
|
|
2181
2190
|
}
|
|
2182
2191
|
}
|
|
2183
|
-
`,
|
|
2192
|
+
`,Oo=F`
|
|
2184
2193
|
margin-top: 12px;
|
|
2185
2194
|
display: flex;
|
|
2186
2195
|
justify-content: space-between;
|
|
2187
|
-
`,
|
|
2196
|
+
`,Bo=F`
|
|
2188
2197
|
margin-top: 9px;
|
|
2189
|
-
`,
|
|
2198
|
+
`,No=({columns:e,data:t,renderRow:r,striped:n,stickyHeader:o,pagination:i,selectable:l,selectedRows:a,onSortColumn:s,onPageSizeChange:d,onPageChange:c,onAllItemsSelected:p})=>{const[u,h]=X({key:"",order:""}),{totalItems:x=t.length,currentPage:g=1,pageSize:f=10,showItemCount:b,showItemCountText:m}=i||{},C=(e,t)=>{h({key:e,order:t}),s&&s({key:e,order:t})},v=a?.length===t?.length,w=a&&a.length>0&&!v;return B("div",{children:[B(_.Root,{css:Eo,striped:n,stickyHeader:o,interactive:!0,children:[N(_.Header,{css:Ho,children:B(_.Row,{children:[l?N(_.ColumnHeader,{children:N(gt,{name:"header-checkbox",checked:v,indeterminate:w,onCheckedChange:({checked:e})=>{p&&p(e)}})}):null,e.map((e=>N(_.ColumnHeader,{role:e.sortable?"columnheader":void 0,"aria-sort":e.sortable&&"asc"===u.order?"ascending":e.sortable&&"desc"===u.order?"descending":void 0,children:B("div",{css:jo,children:[e.label,e.sortable?B("div",{css:Po,children:[N(qe,{css:To(u.key===e.key&&"asc"===u.order),icon:N(me,{style:{transform:"rotate(180deg)"}}),onClick:()=>C(e.key,"asc"),"aria-label":"Ascending"}),N(qe,{css:To(u.key===e.key&&"desc"===u.order),icon:N(me,{}),onClick:()=>C(e.key,"desc"),"aria-label":"Descending"})]}):null]})},e.key)))]})}),N(_.Body,{children:t.map((e=>N(U.Fragment,{children:r(e)},e.id)))})]}),B("div",{css:Oo,children:[N("div",{children:b?N(Co,{pageSize:f,currentPage:g,totalItems:x,onPageSizeChange:d,showItemCountText:m}):null}),i?N("div",{css:Bo,children:N(Io,{totalItems:x,pageSize:f,currentPage:g,onPageChange:c})}):null]})]})},Zo=_.Row,Fo=_.Cell;function Ao(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wo(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Yo,qo={exports:{}},Uo={},Xo={exports:{}},Go={exports:{}},Ko={};var Jo,Qo,ei,ti,ri,ni,oi,ii,li,ai,si,di,ci,pi={};
|
|
2190
2199
|
/** @license React v16.13.1
|
|
2191
2200
|
* react-is.development.js
|
|
2192
2201
|
*
|
|
@@ -2194,7 +2203,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2194
2203
|
*
|
|
2195
2204
|
* This source code is licensed under the MIT license found in the
|
|
2196
2205
|
* LICENSE file in the root directory of this source tree.
|
|
2197
|
-
*/function pi(){return Jo||(Jo=1,"production"===process.env.NODE_ENV?Xo.exports=function(){if(Wo)return Go;Wo=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:switch(e=e.type){case s:case d:case n:case i:case o:case p:return e;default:switch(e=e&&e.$$typeof){case a:case c:case x:case h:case l:return e;default:return u}}case r:return u}}}function v(e){return C(e)===d}return Go.AsyncMode=s,Go.ConcurrentMode=d,Go.ContextConsumer=a,Go.ContextProvider=l,Go.Element=t,Go.ForwardRef=c,Go.Fragment=n,Go.Lazy=x,Go.Memo=h,Go.Portal=r,Go.Profiler=i,Go.StrictMode=o,Go.Suspense=p,Go.isAsyncMode=function(e){return v(e)||C(e)===s},Go.isConcurrentMode=v,Go.isContextConsumer=function(e){return C(e)===a},Go.isContextProvider=function(e){return C(e)===l},Go.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Go.isForwardRef=function(e){return C(e)===c},Go.isFragment=function(e){return C(e)===n},Go.isLazy=function(e){return C(e)===x},Go.isMemo=function(e){return C(e)===h},Go.isPortal=function(e){return C(e)===r},Go.isProfiler=function(e){return C(e)===i},Go.isStrictMode=function(e){return C(e)===o},Go.isSuspense=function(e){return C(e)===p},Go.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===d||e===i||e===o||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===m||e.$$typeof===g)},Go.typeOf=C,Go}():Xo.exports=(Ko||(Ko=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:var g=e.type;switch(g){case s:case d:case n:case i:case o:case p:return g;default:var f=g&&g.$$typeof;switch(f){case a:case c:case x:case h:case l:return f;default:return u}}case r:return u}}}var v=s,w=d,y=a,$=l,k=t,L=c,M=n,S=x,V=h,R=r,D=i,_=o,z=p,I=!1;function E(e){return C(e)===d}ci.AsyncMode=v,ci.ConcurrentMode=w,ci.ContextConsumer=y,ci.ContextProvider=$,ci.Element=k,ci.ForwardRef=L,ci.Fragment=M,ci.Lazy=S,ci.Memo=V,ci.Portal=R,ci.Profiler=D,ci.StrictMode=_,ci.Suspense=z,ci.isAsyncMode=function(e){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(e)||C(e)===s},ci.isConcurrentMode=E,ci.isContextConsumer=function(e){return C(e)===a},ci.isContextProvider=function(e){return C(e)===l},ci.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ci.isForwardRef=function(e){return C(e)===c},ci.isFragment=function(e){return C(e)===n},ci.isLazy=function(e){return C(e)===x},ci.isMemo=function(e){return C(e)===h},ci.isPortal=function(e){return C(e)===r},ci.isProfiler=function(e){return C(e)===i},ci.isStrictMode=function(e){return C(e)===o},ci.isSuspense=function(e){return C(e)===p},ci.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===d||e===i||e===o||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===m||e.$$typeof===g)},ci.typeOf=C}()),ci)),Xo.exports}function ui(){if(ei)return Qo;ei=1;return Qo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function hi(){return ri?ti:(ri=1,ti=Function.call.bind(Object.prototype.hasOwnProperty))}function xi(){if(li)return ii;li=1;var e=pi(),t=re,r=ui(),n=hi(),o=function(){if(oi)return ni;oi=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=ui(),r={},n=hi();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,l,a,s){if("production"!==process.env.NODE_ENV)for(var d in o)if(n(o,d)){var c;try{if("function"!=typeof o[d]){var p=Error((a||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}c=o[d](i,d,a,l,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((a||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in r)){r[c.message]=!0;var u=s?s():"";e("Failed "+l+" type: "+c.message+(null!=u?u:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},ni=o}(),i=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),ii=function(a,s){var d="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:x(l),arrayOf:function(e){return x((function(t,n,o,i,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+i+" `"+l+"` of type `"+m(a)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<a.length;s++){var d=e(a,s,o,i,l+"["+s+"]",r);if(d instanceof Error)return d}return null}))},element:x((function(e,t,r,n,o){var i=e[t];return a(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+m(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:x((function(t,r,n,o,i){var l=t[r];return e.isValidElementType(l)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(l)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return x((function(t,r,n,o,i){if(!(t[r]instanceof e)){var l=e.name||c;return new h("Invalid "+o+" `"+i+"` of type `"+(((a=t[r]).constructor&&a.constructor.name?a.constructor.name:c)+"` supplied to `")+n+"`, expected instance of `"+l+"`.")}var a;return null}))},node:x((function(e,t,r,n,o){return b(e[t])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return x((function(t,o,i,l,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[o],d=m(s);if("object"!==d)return new h("Invalid "+l+" `"+a+"` of type `"+d+"` supplied to `"+i+"`, expected an object.");for(var c in s)if(n(s,c)){var p=e(s,c,i,l,a+"."+c,r);if(p instanceof Error)return p}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l;return x((function(t,r,n,o,i){for(var l=t[r],a=0;a<e.length;a++)if(u(l,e[a]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===C(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(l)+"` supplied to `"+n+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(o)+" at index "+t+"."),l}return x((function(t,o,i,l,a){for(var s=[],d=0;d<e.length;d++){var c=(0,e[d])(t,o,i,l,a,r);if(null==c)return null;c.data&&n(c.data,"expectedType")&&s.push(c.data.expectedType)}return new h("Invalid "+l+" `"+a+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return x((function(t,n,o,i,l){var a=t[n],s=m(a);if("object"!==s)return new h("Invalid "+i+" `"+l+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var d in e){var c=e[d];if("function"!=typeof c)return f(o,i,l,d,C(c));var p=c(a,d,o,i,l+"."+d,r);if(p)return p}return null}))},exact:function(e){return x((function(o,i,l,a,s){var d=o[i],c=m(d);if("object"!==c)return new h("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+l+"`, expected `object`.");var p=t({},o[i],e);for(var u in p){var x=e[u];if(n(e,u)&&"function"!=typeof x)return f(l,a,s,u,C(x));if(!x)return new h("Invalid "+a+" `"+s+"` key `"+u+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=x(d,u,l,a,s+"."+u,r);if(g)return g}return null}))}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function x(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function o(o,l,a,d,p,u,x){if(d=d||c,u=u||a,x!==r){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=d+":"+a;!t[f]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+d+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,n++)}}return null==l[a]?o?null===l[a]?new h("The "+p+" `"+u+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+u+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,a,d,p,u)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function g(e){return x((function(t,r,n,o,i,l){var a=t[r];return m(a)!==e?new h("Invalid "+o+" `"+i+"` of type `"+C(a)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function f(e,t,r,n,o){return new h((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||a(e))return!0;var t=function(e){var t=e&&(d&&e[d]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!b(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function C(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},ii}function gi(){if(di)return Uo.exports;if(di=1,"production"!==process.env.NODE_ENV){var e=pi();Uo.exports=xi()(e.isElement,!0)}else Uo.exports=function(){if(si)return ai;si=1;var e=ui();function t(){}function r(){}return r.resetWarningCache=t,ai=function(){function n(t,r,n,o,i,l){if(l!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}()();return Uo.exports}function fi(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=fi(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bi(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=fi(e))&&(n&&(n+=" "),n+=t);return n}var mi,Ci=Ao(Object.freeze({__proto__:null,clsx:bi,default:bi})),vi={},wi={};function yi(){if(mi)return wi;return mi=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.dontSetMe=function(e,t,r){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(r," - do not set this, set it on the child."))},wi.findInArray=function(e,t){for(let r=0,n=e.length;r<n;r++)if(t.apply(t,[e[r],r,e]))return e[r]},wi.int=function(e){return parseInt(e,10)},wi.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},wi.isNum=function(e){return"number"==typeof e&&!isNaN(e)},wi}var $i,ki,Li={};function Mi(){if(ki)return vi;ki=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.addClassName=l,vi.addEvent=function(e,t,r,n){if(!e)return;const o={capture:!0,...n};e.addEventListener?e.addEventListener(t,r,o):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r},vi.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&l(e.body,"react-draggable-transparent-selection")},vi.createCSSTransform=function(e,r){const n=i(e,r,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:n}},vi.createSVGTransform=function(e,t){return i(e,t,"")},vi.getTouch=function(t,r){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>r===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>r===e.identifier))},vi.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},vi.getTranslation=i,vi.innerHeight=function(t){let r=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return r-=(0,e.int)(n.paddingTop),r-=(0,e.int)(n.paddingBottom),r},vi.innerWidth=function(t){let r=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return r-=(0,e.int)(n.paddingLeft),r-=(0,e.int)(n.paddingRight),r},vi.matchesSelector=o,vi.matchesSelectorAndParentsTo=function(e,t,r){let n=e;do{if(o(n,t))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1},vi.offsetXYFromParent=function(e,t,r){const n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-n.left)/r,i=(e.clientY+t.scrollTop-n.top)/r;return{x:o,y:i}},vi.outerHeight=function(t){let r=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return r+=(0,e.int)(n.borderTopWidth),r+=(0,e.int)(n.borderBottomWidth),r},vi.outerWidth=function(t){let r=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return r+=(0,e.int)(n.borderLeftWidth),r+=(0,e.int)(n.borderRightWidth),r},vi.removeClassName=a,vi.removeEvent=function(e,t,r,n){if(!e)return;const o={capture:!0,...n};e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null},vi.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=yi(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=i?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}o.default=e,n&&n.set(e,o);return o}(function(){if($i)return Li;$i=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li.browserPrefixToKey=r,Li.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},Li.default=void 0,Li.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!o)return"";if(n in o)return"";for(let t=0;t<e.length;t++)if(r(n,e[t])in o)return e[t];return""}function r(e,t){return t?"".concat(t).concat(function(e){let t="",r=!0;for(let n=0;n<e.length;n++)r?(t+=e[n].toUpperCase(),r=!1):"-"===e[n]?r=!0:t+=e[n];return t}(e)):e}return Li.default=t(),Li}());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}let n="";function o(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(r){return(0,e.isFunction)(t[r])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function i(e,t,r){let{x:n,y:o}=e,i="translate(".concat(n).concat(r,",").concat(o).concat(r,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+r),n="".concat("string"==typeof t.y?t.y:t.y+r);i="translate(".concat(e,", ").concat(n,")")+i}return i}function l(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return vi}var Si,Vi={};function Ri(){if(Si)return Vi;Si=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Vi.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Vi.createCoreData=function(t,n,o){const i=!(0,e.isNum)(t.lastX),l=r(t);return i?{node:l,deltaX:0,deltaY:0,lastX:n,lastY:o,x:n,y:o}:{node:l,deltaX:n-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:n,y:o}},Vi.createDraggableData=function(e,t){const r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},Vi.getBoundPosition=function(n,o,i){if(!n.props.bounds)return[o,i];let{bounds:l}=n.props;l="string"==typeof l?l:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(l);const a=r(n);if("string"==typeof l){const{ownerDocument:r}=a,n=r.defaultView;let o;if(o="parent"===l?a.parentNode:r.querySelector(l),!(o instanceof n.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const i=o,s=n.getComputedStyle(a),d=n.getComputedStyle(i);l={left:-a.offsetLeft+(0,e.int)(d.paddingLeft)+(0,e.int)(s.marginLeft),top:-a.offsetTop+(0,e.int)(d.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(d.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(d.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(l.right)&&(o=Math.min(o,l.right));(0,e.isNum)(l.bottom)&&(i=Math.min(i,l.bottom));(0,e.isNum)(l.left)&&(o=Math.max(o,l.left));(0,e.isNum)(l.top)&&(i=Math.max(i,l.top));return[o,i]},Vi.getControlPosition=function(e,n,o){const i="number"==typeof n?(0,t.getTouch)(e,n):null;if("number"==typeof n&&!i)return null;const l=r(o),a=o.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,o.props.scale)},Vi.snapToGrid=function(e,t,r){const n=Math.round(t/e[0])*e[0],o=Math.round(r/e[1])*e[1];return[n,o]};var e=yi(),t=Mi();function r(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Vi}var Di,_i,zi,Ii,Ei={},Hi={};function ji(){if(Di)return Hi;return Di=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=function(){},Hi}function Pi(){if(_i)return Ei;_i=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(U),t=a(gi()),r=a(ne),n=Mi(),o=Ri(),i=yi(),l=a(ji());function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let u=p,h=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const i=(0,n.getTouchIdentifier)(e);this.touchIdentifier=i;const a=(0,o.getControlPosition)(e,i,this);if(null==a)return;const{x:s,y:d}=a,c=(0,o.createCoreData)(this,s,d);(0,l.default)("DraggableCore: handleDragStart: %j",c),(0,l.default)("calling",this.props.onStart);!1!==this.props.onStart(e,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(r),this.dragging=!0,this.lastX=s,this.lastY=d,(0,n.addEvent)(r,u.move,this.handleDrag),(0,n.addEvent)(r,u.stop,this.handleDragStop))})),d(this,"handleDrag",(e=>{const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:r,y:n}=t;if(Array.isArray(this.props.grid)){let e=r-this.lastX,t=n-this.lastY;if([e,t]=(0,o.snapToGrid)(this.props.grid,e,t),!e&&!t)return;r=this.lastX+e,n=this.lastY+t}const i=(0,o.createCoreData)(this,r,n);(0,l.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(e,i)&&!1!==this.mounted)this.lastX=r,this.lastY=n;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),d(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:r,y:i}=t;if(Array.isArray(this.props.grid)){let e=r-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,o.snapToGrid)(this.props.grid,e,t),r=this.lastX+e,i=this.lastY+t}const a=(0,o.createCoreData)(this,r,i);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(s.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,l.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(s.ownerDocument,u.move,this.handleDrag),(0,n.removeEvent)(s.ownerDocument,u.stop,this.handleDragStop))})),d(this,"onMouseDown",(e=>(u=p,this.handleDragStart(e)))),d(this,"onMouseUp",(e=>(u=p,this.handleDragStop(e)))),d(this,"onTouchStart",(e=>(u=c,this.handleDragStart(e)))),d(this,"onTouchEnd",(e=>(u=c,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,n.addEvent)(e,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,n.removeEvent)(t,p.move,this.handleDrag),(0,n.removeEvent)(t,c.move,this.handleDrag),(0,n.removeEvent)(t,p.stop,this.handleDragStop),(0,n.removeEvent)(t,c.stop,this.handleDragStop),(0,n.removeEvent)(e,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Ei.default=h,d(h,"displayName","DraggableCore"),d(h,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),d(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Ei}function Ti(){return zi||(zi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(U),r=c(gi()),n=c(ne),o=c(Ci),i=Mi(),l=Ri(),a=yi(),s=c(Pi()),d=c(ji());function c(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class x extends t.Component{static getDerivedStateFromProps(e,t){let{position:r}=e,{prevPropsPosition:n}=t;return!r||n&&r.x===n.x&&r.y===n.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:{...r}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,d.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const r=(0,l.createDraggableData)(this,t),n={x:r.x,y:r.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=n;n.x+=this.state.slackX,n.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,n.x,n.y);n.x=o,n.y=i,n.slackX=this.state.slackX+(e-n.x),n.slackY=this.state.slackY+(t-n.y),r.x=n.x,r.y=n.y,r.deltaX=n.x-this.state.x,r.deltaY=n.y-this.state.y}if(!1===this.props.onDrag(e,r))return!1;this.setState(n)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const r={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;r.x=e,r.y=t}this.setState(r)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:n.default.findDOMNode(this)}render(){const{axis:e,bounds:r,children:n,defaultPosition:a,defaultClassName:d,defaultClassNameDragging:c,defaultClassNameDragged:p,position:h,positionOffset:x,scale:g,...f}=this.props;let b={},m=null;const C=!Boolean(h)||this.state.dragging,v=h||a,w={x:(0,l.canDragX)(this)&&C?this.state.x:v.x,y:(0,l.canDragY)(this)&&C?this.state.y:v.y};this.state.isElementSVG?m=(0,i.createSVGTransform)(w,x):b=(0,i.createCSSTransform)(w,x);const y=(0,o.default)(n.props.className||"",d,{[c]:this.state.dragging,[p]:this.state.dragged});return t.createElement(s.default,u({},f,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(n),{className:y,style:{...n.props.style,...b},transform:m}))}}e.default=x,h(x,"displayName","Draggable"),h(x,"propTypes",{...s.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(x,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(qo)),qo}var Oi=function(){if(Ii)return Yo.exports;Ii=1;const{default:e,DraggableCore:t}=Ti();return Yo.exports=e,Yo.exports.default=e,Yo.exports.DraggableCore=t,Yo.exports}(),Bi=Fo(Oi);const Ni=e=>F`
|
|
2206
|
+
*/function ui(){return Qo||(Qo=1,"production"===process.env.NODE_ENV?Go.exports=function(){if(Yo)return Ko;Yo=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:switch(e=e.type){case s:case d:case n:case i:case o:case p:return e;default:switch(e=e&&e.$$typeof){case a:case c:case x:case h:case l:return e;default:return u}}case r:return u}}}function v(e){return C(e)===d}return Ko.AsyncMode=s,Ko.ConcurrentMode=d,Ko.ContextConsumer=a,Ko.ContextProvider=l,Ko.Element=t,Ko.ForwardRef=c,Ko.Fragment=n,Ko.Lazy=x,Ko.Memo=h,Ko.Portal=r,Ko.Profiler=i,Ko.StrictMode=o,Ko.Suspense=p,Ko.isAsyncMode=function(e){return v(e)||C(e)===s},Ko.isConcurrentMode=v,Ko.isContextConsumer=function(e){return C(e)===a},Ko.isContextProvider=function(e){return C(e)===l},Ko.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ko.isForwardRef=function(e){return C(e)===c},Ko.isFragment=function(e){return C(e)===n},Ko.isLazy=function(e){return C(e)===x},Ko.isMemo=function(e){return C(e)===h},Ko.isPortal=function(e){return C(e)===r},Ko.isProfiler=function(e){return C(e)===i},Ko.isStrictMode=function(e){return C(e)===o},Ko.isSuspense=function(e){return C(e)===p},Ko.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===d||e===i||e===o||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===m||e.$$typeof===g)},Ko.typeOf=C,Ko}():Go.exports=(Jo||(Jo=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,m=e?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:var g=e.type;switch(g){case s:case d:case n:case i:case o:case p:return g;default:var f=g&&g.$$typeof;switch(f){case a:case c:case x:case h:case l:return f;default:return u}}case r:return u}}}var v=s,w=d,y=a,$=l,k=t,L=c,M=n,S=x,V=h,R=r,D=i,_=o,z=p,I=!1;function E(e){return C(e)===d}pi.AsyncMode=v,pi.ConcurrentMode=w,pi.ContextConsumer=y,pi.ContextProvider=$,pi.Element=k,pi.ForwardRef=L,pi.Fragment=M,pi.Lazy=S,pi.Memo=V,pi.Portal=R,pi.Profiler=D,pi.StrictMode=_,pi.Suspense=z,pi.isAsyncMode=function(e){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(e)||C(e)===s},pi.isConcurrentMode=E,pi.isContextConsumer=function(e){return C(e)===a},pi.isContextProvider=function(e){return C(e)===l},pi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},pi.isForwardRef=function(e){return C(e)===c},pi.isFragment=function(e){return C(e)===n},pi.isLazy=function(e){return C(e)===x},pi.isMemo=function(e){return C(e)===h},pi.isPortal=function(e){return C(e)===r},pi.isProfiler=function(e){return C(e)===i},pi.isStrictMode=function(e){return C(e)===o},pi.isSuspense=function(e){return C(e)===p},pi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===d||e===i||e===o||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===m||e.$$typeof===g)},pi.typeOf=C}()),pi)),Go.exports}function hi(){if(ti)return ei;ti=1;return ei="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function xi(){return ni?ri:(ni=1,ri=Function.call.bind(Object.prototype.hasOwnProperty))}function gi(){if(ai)return li;ai=1;var e=ui(),t=re,r=hi(),n=xi(),o=function(){if(ii)return oi;ii=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=hi(),r={},n=xi();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,l,a,s){if("production"!==process.env.NODE_ENV)for(var d in o)if(n(o,d)){var c;try{if("function"!=typeof o[d]){var p=Error((a||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}c=o[d](i,d,a,l,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((a||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in r)){r[c.message]=!0;var u=s?s():"";e("Failed "+l+" type: "+c.message+(null!=u?u:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},oi=o}(),i=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),li=function(a,s){var d="function"==typeof Symbol&&Symbol.iterator;var c="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:x(l),arrayOf:function(e){return x((function(t,n,o,i,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+i+" `"+l+"` of type `"+m(a)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<a.length;s++){var d=e(a,s,o,i,l+"["+s+"]",r);if(d instanceof Error)return d}return null}))},element:x((function(e,t,r,n,o){var i=e[t];return a(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+m(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:x((function(t,r,n,o,i){var l=t[r];return e.isValidElementType(l)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(l)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return x((function(t,r,n,o,i){if(!(t[r]instanceof e)){var l=e.name||c;return new h("Invalid "+o+" `"+i+"` of type `"+(((a=t[r]).constructor&&a.constructor.name?a.constructor.name:c)+"` supplied to `")+n+"`, expected instance of `"+l+"`.")}var a;return null}))},node:x((function(e,t,r,n,o){return b(e[t])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return x((function(t,o,i,l,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[o],d=m(s);if("object"!==d)return new h("Invalid "+l+" `"+a+"` of type `"+d+"` supplied to `"+i+"`, expected an object.");for(var c in s)if(n(s,c)){var p=e(s,c,i,l,a+"."+c,r);if(p instanceof Error)return p}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l;return x((function(t,r,n,o,i){for(var l=t[r],a=0;a<e.length;a++)if(u(l,e[a]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===C(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(l)+"` supplied to `"+n+"`, expected one of "+s+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v(o)+" at index "+t+"."),l}return x((function(t,o,i,l,a){for(var s=[],d=0;d<e.length;d++){var c=(0,e[d])(t,o,i,l,a,r);if(null==c)return null;c.data&&n(c.data,"expectedType")&&s.push(c.data.expectedType)}return new h("Invalid "+l+" `"+a+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return x((function(t,n,o,i,l){var a=t[n],s=m(a);if("object"!==s)return new h("Invalid "+i+" `"+l+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var d in e){var c=e[d];if("function"!=typeof c)return f(o,i,l,d,C(c));var p=c(a,d,o,i,l+"."+d,r);if(p)return p}return null}))},exact:function(e){return x((function(o,i,l,a,s){var d=o[i],c=m(d);if("object"!==c)return new h("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+l+"`, expected `object`.");var p=t({},o[i],e);for(var u in p){var x=e[u];if(n(e,u)&&"function"!=typeof x)return f(l,a,s,u,C(x));if(!x)return new h("Invalid "+a+" `"+s+"` key `"+u+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=x(d,u,l,a,s+"."+u,r);if(g)return g}return null}))}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function x(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function o(o,l,a,d,p,u,x){if(d=d||c,u=u||a,x!==r){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=d+":"+a;!t[f]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+d+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,n++)}}return null==l[a]?o?null===l[a]?new h("The "+p+" `"+u+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+u+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,a,d,p,u)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function g(e){return x((function(t,r,n,o,i,l){var a=t[r];return m(a)!==e?new h("Invalid "+o+" `"+i+"` of type `"+C(a)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function f(e,t,r,n,o){return new h((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||a(e))return!0;var t=function(e){var t=e&&(d&&e[d]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!b(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function C(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},li}function fi(){if(ci)return Xo.exports;if(ci=1,"production"!==process.env.NODE_ENV){var e=ui();Xo.exports=gi()(e.isElement,!0)}else Xo.exports=function(){if(di)return si;di=1;var e=hi();function t(){}function r(){}return r.resetWarningCache=t,si=function(){function n(t,r,n,o,i,l){if(l!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i}}()();return Xo.exports}function bi(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=bi(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function mi(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=bi(e))&&(n&&(n+=" "),n+=t);return n}var Ci,vi=Wo(Object.freeze({__proto__:null,clsx:mi,default:mi})),wi={},yi={};function $i(){if(Ci)return yi;return Ci=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.dontSetMe=function(e,t,r){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(r," - do not set this, set it on the child."))},yi.findInArray=function(e,t){for(let r=0,n=e.length;r<n;r++)if(t.apply(t,[e[r],r,e]))return e[r]},yi.int=function(e){return parseInt(e,10)},yi.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},yi.isNum=function(e){return"number"==typeof e&&!isNaN(e)},yi}var ki,Li,Mi={};function Si(){if(Li)return wi;Li=1,Object.defineProperty(wi,"__esModule",{value:!0}),wi.addClassName=l,wi.addEvent=function(e,t,r,n){if(!e)return;const o={capture:!0,...n};e.addEventListener?e.addEventListener(t,r,o):e.attachEvent?e.attachEvent("on"+t,r):e["on"+t]=r},wi.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&l(e.body,"react-draggable-transparent-selection")},wi.createCSSTransform=function(e,r){const n=i(e,r,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:n}},wi.createSVGTransform=function(e,t){return i(e,t,"")},wi.getTouch=function(t,r){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,(e=>r===e.identifier))||t.changedTouches&&(0,e.findInArray)(t.changedTouches,(e=>r===e.identifier))},wi.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},wi.getTranslation=i,wi.innerHeight=function(t){let r=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return r-=(0,e.int)(n.paddingTop),r-=(0,e.int)(n.paddingBottom),r},wi.innerWidth=function(t){let r=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return r-=(0,e.int)(n.paddingLeft),r-=(0,e.int)(n.paddingRight),r},wi.matchesSelector=o,wi.matchesSelectorAndParentsTo=function(e,t,r){let n=e;do{if(o(n,t))return!0;if(n===r)return!1;n=n.parentNode}while(n);return!1},wi.offsetXYFromParent=function(e,t,r){const n=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-n.left)/r,i=(e.clientY+t.scrollTop-n.top)/r;return{x:o,y:i}},wi.outerHeight=function(t){let r=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return r+=(0,e.int)(n.borderTopWidth),r+=(0,e.int)(n.borderBottomWidth),r},wi.outerWidth=function(t){let r=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return r+=(0,e.int)(n.borderLeftWidth),r+=(0,e.int)(n.borderRightWidth),r},wi.removeClassName=a,wi.removeEvent=function(e,t,r,n){if(!e)return;const o={capture:!0,...n};e.removeEventListener?e.removeEventListener(t,r,o):e.detachEvent?e.detachEvent("on"+t,r):e["on"+t]=null},wi.removeUserSelectStyles=function(e){if(!e)return;try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var e=$i(),t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=i?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}o.default=e,n&&n.set(e,o);return o}(function(){if(ki)return Mi;ki=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.browserPrefixToKey=r,Mi.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},Mi.default=void 0,Mi.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.style;if(!o)return"";if(n in o)return"";for(let t=0;t<e.length;t++)if(r(n,e[t])in o)return e[t];return""}function r(e,t){return t?"".concat(t).concat(function(e){let t="",r=!0;for(let n=0;n<e.length;n++)r?(t+=e[n].toUpperCase(),r=!1):"-"===e[n]?r=!0:t+=e[n];return t}(e)):e}return Mi.default=t(),Mi}());function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}let n="";function o(t,r){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(r){return(0,e.isFunction)(t[r])}))),!!(0,e.isFunction)(t[n])&&t[n](r)}function i(e,t,r){let{x:n,y:o}=e,i="translate(".concat(n).concat(r,",").concat(o).concat(r,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+r),n="".concat("string"==typeof t.y?t.y:t.y+r);i="translate(".concat(e,", ").concat(n,")")+i}return i}function l(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}return wi}var Vi,Ri={};function Di(){if(Vi)return Ri;Vi=1,Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},Ri.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},Ri.createCoreData=function(t,n,o){const i=!(0,e.isNum)(t.lastX),l=r(t);return i?{node:l,deltaX:0,deltaY:0,lastX:n,lastY:o,x:n,y:o}:{node:l,deltaX:n-t.lastX,deltaY:o-t.lastY,lastX:t.lastX,lastY:t.lastY,x:n,y:o}},Ri.createDraggableData=function(e,t){const r=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/r,y:e.state.y+t.deltaY/r,deltaX:t.deltaX/r,deltaY:t.deltaY/r,lastX:e.state.x,lastY:e.state.y}},Ri.getBoundPosition=function(n,o,i){if(!n.props.bounds)return[o,i];let{bounds:l}=n.props;l="string"==typeof l?l:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(l);const a=r(n);if("string"==typeof l){const{ownerDocument:r}=a,n=r.defaultView;let o;if(o="parent"===l?a.parentNode:r.querySelector(l),!(o instanceof n.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const i=o,s=n.getComputedStyle(a),d=n.getComputedStyle(i);l={left:-a.offsetLeft+(0,e.int)(d.paddingLeft)+(0,e.int)(s.marginLeft),top:-a.offsetTop+(0,e.int)(d.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(d.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(d.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(l.right)&&(o=Math.min(o,l.right));(0,e.isNum)(l.bottom)&&(i=Math.min(i,l.bottom));(0,e.isNum)(l.left)&&(o=Math.max(o,l.left));(0,e.isNum)(l.top)&&(i=Math.max(i,l.top));return[o,i]},Ri.getControlPosition=function(e,n,o){const i="number"==typeof n?(0,t.getTouch)(e,n):null;if("number"==typeof n&&!i)return null;const l=r(o),a=o.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,o.props.scale)},Ri.snapToGrid=function(e,t,r){const n=Math.round(t/e[0])*e[0],o=Math.round(r/e[1])*e[1];return[n,o]};var e=$i(),t=Si();function r(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return Ri}var _i,zi,Ii,Ei,Hi={},ji={};function Pi(){if(_i)return ji;return _i=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=function(){},ji}function Ti(){if(zi)return Hi;zi=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(U),t=a(fi()),r=a(ne),n=Si(),o=Di(),i=$i(),l=a(Pi());function a(e){return e&&e.__esModule?e:{default:e}}function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let u=p,h=class extends e.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const i=(0,n.getTouchIdentifier)(e);this.touchIdentifier=i;const a=(0,o.getControlPosition)(e,i,this);if(null==a)return;const{x:s,y:d}=a,c=(0,o.createCoreData)(this,s,d);(0,l.default)("DraggableCore: handleDragStart: %j",c),(0,l.default)("calling",this.props.onStart);!1!==this.props.onStart(e,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(r),this.dragging=!0,this.lastX=s,this.lastY=d,(0,n.addEvent)(r,u.move,this.handleDrag),(0,n.addEvent)(r,u.stop,this.handleDragStop))})),d(this,"handleDrag",(e=>{const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:r,y:n}=t;if(Array.isArray(this.props.grid)){let e=r-this.lastX,t=n-this.lastY;if([e,t]=(0,o.snapToGrid)(this.props.grid,e,t),!e&&!t)return;r=this.lastX+e,n=this.lastY+t}const i=(0,o.createCoreData)(this,r,n);(0,l.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(e,i)&&!1!==this.mounted)this.lastX=r,this.lastY=n;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),d(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:r,y:i}=t;if(Array.isArray(this.props.grid)){let e=r-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,o.snapToGrid)(this.props.grid,e,t),r=this.lastX+e,i=this.lastY+t}const a=(0,o.createCoreData)(this,r,i);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(s.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,l.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(s.ownerDocument,u.move,this.handleDrag),(0,n.removeEvent)(s.ownerDocument,u.stop,this.handleDragStop))})),d(this,"onMouseDown",(e=>(u=p,this.handleDragStart(e)))),d(this,"onMouseUp",(e=>(u=p,this.handleDragStop(e)))),d(this,"onTouchStart",(e=>(u=c,this.handleDragStart(e)))),d(this,"onTouchEnd",(e=>(u=c,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,n.addEvent)(e,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,n.removeEvent)(t,p.move,this.handleDrag),(0,n.removeEvent)(t,c.move,this.handleDrag),(0,n.removeEvent)(t,p.stop,this.handleDragStop),(0,n.removeEvent)(t,c.stop,this.handleDragStop),(0,n.removeEvent)(e,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Hi.default=h,d(h,"displayName","DraggableCore"),d(h,"propTypes",{allowAnyClick:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),d(h,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Hi}function Oi(){return Ii||(Ii=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(U),r=c(fi()),n=c(ne),o=c(vi),i=Si(),l=Di(),a=$i(),s=c(Ti()),d=c(Pi());function c(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class x extends t.Component{static getDerivedStateFromProps(e,t){let{position:r}=e,{prevPropsPosition:n}=t;return!r||n&&r.x===n.x&&r.y===n.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:r,prevPropsPosition:n}),{x:r.x,y:r.y,prevPropsPosition:{...r}})}constructor(e){super(e),h(this,"onDragStart",((e,t)=>{(0,d.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),h(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const r=(0,l.createDraggableData)(this,t),n={x:r.x,y:r.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=n;n.x+=this.state.slackX,n.y+=this.state.slackY;const[o,i]=(0,l.getBoundPosition)(this,n.x,n.y);n.x=o,n.y=i,n.slackX=this.state.slackX+(e-n.x),n.slackY=this.state.slackY+(t-n.y),r.x=n.x,r.y=n.y,r.deltaX=n.x-this.state.x,r.deltaY=n.y-this.state.y}if(!1===this.props.onDrag(e,r))return!1;this.setState(n)})),h(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const r={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;r.x=e,r.y=t}this.setState(r)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:n.default.findDOMNode(this)}render(){const{axis:e,bounds:r,children:n,defaultPosition:a,defaultClassName:d,defaultClassNameDragging:c,defaultClassNameDragged:p,position:h,positionOffset:x,scale:g,...f}=this.props;let b={},m=null;const C=!Boolean(h)||this.state.dragging,v=h||a,w={x:(0,l.canDragX)(this)&&C?this.state.x:v.x,y:(0,l.canDragY)(this)&&C?this.state.y:v.y};this.state.isElementSVG?m=(0,i.createSVGTransform)(w,x):b=(0,i.createCSSTransform)(w,x);const y=(0,o.default)(n.props.className||"",d,{[c]:this.state.dragging,[p]:this.state.dragged});return t.createElement(s.default,u({},f,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(n),{className:y,style:{...n.props.style,...b},transform:m}))}}e.default=x,h(x,"displayName","Draggable"),h(x,"propTypes",{...s.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(x,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Uo)),Uo}var Bi=function(){if(Ei)return qo.exports;Ei=1;const{default:e,DraggableCore:t}=Oi();return qo.exports=e,qo.exports.default=e,qo.exports.DraggableCore=t,qo.exports}(),Ni=Ao(Bi);const Zi=e=>F`
|
|
2198
2207
|
width: 240px;
|
|
2199
2208
|
${"medium"===e&&"width: 320px;"}
|
|
2200
2209
|
${"large"===e&&"width: 440px;"}
|
|
@@ -2205,7 +2214,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2205
2214
|
border-radius: 4px;
|
|
2206
2215
|
box-shadow: 0px 4px 6px -4px #0000001a;
|
|
2207
2216
|
box-shadow: 0px 10px 15px -3px #0000001a;
|
|
2208
|
-
`,
|
|
2217
|
+
`,Fi=F`
|
|
2209
2218
|
height: 100%;
|
|
2210
2219
|
min-height: 40px;
|
|
2211
2220
|
display: flex;
|
|
@@ -2213,31 +2222,31 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2213
2222
|
justify-content: space-between;
|
|
2214
2223
|
padding: 8px;
|
|
2215
2224
|
border-bottom: 1px solid ${le("neutral",300)};
|
|
2216
|
-
`,Fi=F`
|
|
2217
|
-
top: 10px;
|
|
2218
2225
|
`,Ai=F`
|
|
2226
|
+
top: 10px;
|
|
2227
|
+
`,Wi=F`
|
|
2219
2228
|
padding: 12px;
|
|
2220
|
-
`,
|
|
2229
|
+
`,Yi=({header:e,content:t,footer:r,size:n="medium",draggable:o,blocking:i,open:l,onClose:a})=>l?N(z.Root,{open:l,onOpenChange:a,placement:"center",scrollBehavior:"inside",closeOnInteractOutside:!o&&!i,preventScroll:!o&&!i,closeOnEscape:!i,defaultOpen:!0,children:B(s,{children:[o?null:N(z.Backdrop,{}),N(Ni,{disabled:!o,children:N(z.Positioner,{children:B(z.Content,{css:Zi(n),children:[B(z.Header,{css:Fi,children:[e,i?null:N(z.CloseTrigger,{css:Ai,asChild:!0,children:N(Ue,{})})]}),N(z.Body,{css:Wi,children:t}),r?N(z.Footer,{padding:"12px",children:r}):null]})})})]})}):null,qi=e=>F`
|
|
2221
2230
|
height: 100%;
|
|
2222
2231
|
width: ${e||"320px"};
|
|
2223
2232
|
background-color: ${le("neutral",100)};
|
|
2224
2233
|
box-shadow: 0px 1px 2px -1px #0000001a;
|
|
2225
2234
|
box-shadow: 0px 1px 3px 0px #0000001a;
|
|
2226
2235
|
position: relative;
|
|
2227
|
-
`,qi=F`
|
|
2228
|
-
border-right: 1px solid ${le("neutral",300)};
|
|
2229
2236
|
`,Ui=F`
|
|
2237
|
+
border-right: 1px solid ${le("neutral",300)};
|
|
2238
|
+
`,Xi=F`
|
|
2230
2239
|
border: 1px solid ${le("neutral",300)};
|
|
2231
2240
|
border-radius: 4px;
|
|
2232
|
-
`,
|
|
2241
|
+
`,Gi=F`
|
|
2233
2242
|
min-height: 48px;
|
|
2234
2243
|
width: 100%;
|
|
2235
2244
|
border-bottom: 1px solid ${le("neutral",300)};
|
|
2236
|
-
`,
|
|
2245
|
+
`,Ki=(e,t)=>F`
|
|
2237
2246
|
height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
|
|
2238
2247
|
width: 100%;
|
|
2239
2248
|
overflow-y: auto;
|
|
2240
|
-
`,
|
|
2249
|
+
`,Ji=F`
|
|
2241
2250
|
min-height: 64px;
|
|
2242
2251
|
width: 100%;
|
|
2243
2252
|
display: flex;
|
|
@@ -2247,13 +2256,13 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2247
2256
|
bottom: 0;
|
|
2248
2257
|
left: 0;
|
|
2249
2258
|
border-top: 1px solid ${le("neutral",300)};
|
|
2250
|
-
`,
|
|
2259
|
+
`,Qi=({header:e,content:t,footer:r,variant:n="fixed",width:o})=>{const[i,l]=X(void 0),[a,s]=X(void 0),d=J(null),c=J(null);G((()=>{l(d?.current?.getBoundingClientRect()?.height),s(c?.current?.getBoundingClientRect()?.height)}),[e,r]);return B("div",{css:[qi(o),"fixed"===n?Ui:Xi],children:[e?N("div",{css:Gi,ref:d,children:e}):null,N("div",{css:Ki(i,a),children:t}),r?N("div",{css:Ji,ref:c,children:r}):null]})},el=F`
|
|
2251
2260
|
width: 100%;
|
|
2252
2261
|
position: absolute;
|
|
2253
2262
|
bottom: 0;
|
|
2254
2263
|
z-index: 999;
|
|
2255
2264
|
display: block;
|
|
2256
|
-
`,
|
|
2265
|
+
`,tl=F`
|
|
2257
2266
|
position: absolute;
|
|
2258
2267
|
left: 0;
|
|
2259
2268
|
right: 0;
|
|
@@ -2272,25 +2281,25 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2272
2281
|
height 300ms ease,
|
|
2273
2282
|
transform 300ms ease;
|
|
2274
2283
|
overflow: hidden;
|
|
2275
|
-
`,
|
|
2284
|
+
`,rl=F`
|
|
2276
2285
|
display: flex;
|
|
2277
2286
|
justify-content: center;
|
|
2278
2287
|
align-items: center;
|
|
2279
2288
|
cursor: pointer;
|
|
2280
|
-
`,
|
|
2289
|
+
`,nl=F`
|
|
2281
2290
|
height: 2px;
|
|
2282
2291
|
width: 32px;
|
|
2283
2292
|
background-color: ${le("neutral",300)};
|
|
2284
2293
|
margin: 8px 0;
|
|
2285
|
-
`,
|
|
2294
|
+
`,ol=F`
|
|
2286
2295
|
min-height: 50px;
|
|
2287
2296
|
width: 100%;
|
|
2288
2297
|
border-bottom: 1px solid ${le("neutral",300)};
|
|
2289
|
-
`,
|
|
2298
|
+
`,il=(e,t)=>F`
|
|
2290
2299
|
height: ${((e,t)=>e&&t?`calc(100% - ${e+t}px)`:e?`calc(100% - ${e}px)`:t?`calc(100% - ${t}px)`:"100%")(e,t)};
|
|
2291
2300
|
width: 100%;
|
|
2292
2301
|
overflow-y: scroll;
|
|
2293
|
-
`,
|
|
2302
|
+
`,ll=F`
|
|
2294
2303
|
min-height: 64px;
|
|
2295
2304
|
width: 100%;
|
|
2296
2305
|
display: flex;
|
|
@@ -2301,7 +2310,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2301
2310
|
left: 0;
|
|
2302
2311
|
border-top: 1px solid ${le("neutral",300)};
|
|
2303
2312
|
background-color: ${le("neutral",100)};
|
|
2304
|
-
`,
|
|
2313
|
+
`,al=({header:e,content:t,footer:r,open:n=!1,onClose:o,minimizedHeight:i=50,midHeight:l=200,maxFullHeight:a=1e3,defaultSnap:s="minimized"})=>{const[d,c]=X(void 0),[p,u]=X(void 0),h=J(null),x=J(null);G((()=>{c(h?.current?.getBoundingClientRect()?.height),u(x?.current?.getBoundingClientRect()?.height)}),[e,r]);const g=Q((()=>{if("undefined"==typeof window)return 0;const e=document.createElement("div");e.style.cssText="position:fixed;bottom:0;height:env(safe-area-inset-bottom);",document.body.appendChild(e);const t=e.getBoundingClientRect().height||0;return document.body.removeChild(e),t}),[]),f=Q((()=>{const e=(()=>{if("undefined"!=typeof window){const e=.9*(window?.screen?.height||0);return e>a?a:e}return 0})(),t=Math.max(0,e-g);return a?Math.min(t,a):t}),[g,a]),b=Q((()=>({closed:18,minimized:Math.min(i,f),mid:Math.min(Math.max(i,l),f),fullHeight:f,full:f})),[i,l,f]),[m,C]=X(s),[v,w]=X(0);G((()=>{if(n){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[n]),G((()=>{n?w(b[m]):(w(0),C(s))}),[m,b,n]);const y=J(null),$=J(null),k=J(0),L=J(0),M=J(0),S=J(0),V=J(0),R=J(!1);return G((()=>{const e=y.current;if(!e)return;const t=t=>{n&&(R.current=!0,e.setPointerCapture(t.pointerId),k.current=t.clientY,L.current=v,M.current=t.clientY,S.current=performance.now(),V.current=0,$.current&&($.current.style.transition="none"))},r=e=>{if(!R.current)return;const t=e.clientY-k.current,r=Math.max(0,Math.min(f,L.current-t));w(r);const n=performance.now(),o=Math.max(1,n-S.current),i=(e.clientY-M.current)/(o/1e3);V.current=i,M.current=e.clientY,S.current=n},i=()=>{if(!R.current)return;R.current=!1,$.current&&($.current.style.transition="height 300ms ease, transform 300ms ease");const e=V.current,t=v,{closed:r,minimized:n,mid:i,full:l}=b;if(e>900&&t<=i||t<=.6*n)return w(0),void window.setTimeout((()=>o&&o()),260);const a=[{k:"closed",v:r},{k:"minimized",v:n},{k:"mid",v:i},{k:"full",v:l}];let s=m;Math.abs(e)>900?s=e<0?t<(i+l)/2?"mid":"full":t>(n+i)/2?"mid":"minimized":(a.sort(((e,r)=>Math.abs(t-e.v)-Math.abs(t-r.v))),s=a[0].k),C(s);w("full"===s?l:"mid"===s?i:n)};return e.addEventListener("pointerdown",t),window.addEventListener("pointermove",r),window.addEventListener("pointerup",i),window.addEventListener("pointercancel",i),()=>{e.removeEventListener("pointerdown",t),window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",i),window.removeEventListener("pointercancel",i)}}),[n,v,f,b,m]),G((()=>{if(n){w(0);const e=window.setTimeout((()=>w(b[m])),10);return()=>window.clearTimeout(e)}w(0)}),[n,m,b]),N("div",{css:el,"aria-hidden":!n,children:B("div",{ref:$,role:"dialog","aria-modal":"true",css:tl,style:{height:`${v}px`,transform:n?"translateY(0)":"translateY(100%)"},children:[N("div",{ref:y,css:rl,role:"button","aria-label":"Drag to expand or collapse",tabIndex:0,children:N("span",{css:nl})}),e?N("div",{css:ol,ref:h,children:e}):null,N("div",{css:il(d,p),children:t}),r&&"full"===m?N("div",{css:ll,ref:x,children:r}):null]})})},sl=F`
|
|
2305
2314
|
a,
|
|
2306
2315
|
p {
|
|
2307
2316
|
font-size: 16px;
|
|
@@ -2333,19 +2342,19 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2333
2342
|
a:hover {
|
|
2334
2343
|
text-decoration: underline;
|
|
2335
2344
|
}
|
|
2336
|
-
`,
|
|
2345
|
+
`,dl=F`
|
|
2337
2346
|
svg {
|
|
2338
2347
|
height: 12px;
|
|
2339
2348
|
width: 12px;
|
|
2340
2349
|
color: ${le("neutral",600)};
|
|
2341
2350
|
}
|
|
2342
|
-
`,
|
|
2351
|
+
`,cl=F`
|
|
2343
2352
|
cursor: pointer;
|
|
2344
2353
|
color: ${le("neutral",600)};
|
|
2345
2354
|
display: flex;
|
|
2346
2355
|
justify-content: center;
|
|
2347
2356
|
align-items: center;
|
|
2348
|
-
`,
|
|
2357
|
+
`,pl=({links:e,separator:t,maxItems:r=99,linkRouter:n})=>{const[o,i]=X(e.length>r);G((()=>{i(e.length>r)}),[e.length]);const l=n;return N(I.Root,{children:N(I.List,{gap:"16px",children:o?B(Z,{children:[N(I.Item,{css:sl,children:B(l,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),N(I.Separator,{css:dl,children:t||N(me,{rotate:"270"})}),N("li",{className:"chakra-breadcrumb__item",children:N("button",{css:cl,type:"button",onClick:()=>i(!1),children:"..."})}),N(I.Separator,{css:dl,children:t||N(me,{rotate:"270"})}),N(I.Item,{css:sl,children:B("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((r,n)=>r?.label?B(ee,{children:[N(I.Item,{css:sl,children:n<e.length-1?B(l,{to:r.link,href:r.link,children:[r.icon,r.label]}):B("p",{"aria-current":"page","aria-label":r.label,children:[r.label&&r.icon?r.icon:"",r.label]})}),n<e.length-1?N(I.Separator,{css:dl,children:t||N(me,{rotate:"270"})}):null]},r.label):null))})})},ul=(e,t)=>F`
|
|
2349
2358
|
min-height: 56px;
|
|
2350
2359
|
width: 100vw;
|
|
2351
2360
|
position: ${e?"sticky":"absolute"};
|
|
@@ -2355,7 +2364,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2355
2364
|
background-color: ${le("neutral",t?200:100)};
|
|
2356
2365
|
border-top: 1px solid ${le("neutral",400)};
|
|
2357
2366
|
z-index: 101;
|
|
2358
|
-
`,
|
|
2367
|
+
`,hl=e=>F`
|
|
2359
2368
|
height: 100%;
|
|
2360
2369
|
width: 100%;
|
|
2361
2370
|
max-width: ${e?`${e}px`:"100%"};
|
|
@@ -2370,7 +2379,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2370
2379
|
flex-direction: column;
|
|
2371
2380
|
align-items: flex-start;
|
|
2372
2381
|
}
|
|
2373
|
-
`,
|
|
2382
|
+
`,xl=F`
|
|
2374
2383
|
display: flex;
|
|
2375
2384
|
align-items: center;
|
|
2376
2385
|
flex-wrap: wrap;
|
|
@@ -2383,7 +2392,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2383
2392
|
color: ${le("neutral",700)};
|
|
2384
2393
|
text-decoration: underline;
|
|
2385
2394
|
}
|
|
2386
|
-
`,
|
|
2395
|
+
`,gl=F`
|
|
2387
2396
|
width: 240px;
|
|
2388
2397
|
font-size: 14px;
|
|
2389
2398
|
line-height: 20px;
|
|
@@ -2394,7 +2403,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2394
2403
|
@media screen and (max-width: 768px) {
|
|
2395
2404
|
text-align: left;
|
|
2396
2405
|
}
|
|
2397
|
-
`,
|
|
2406
|
+
`,fl=({children:e,label:t="© World Resources Institute",fixed:r,filled:n,maxWidth:o})=>{const i=(new Date).getFullYear();return N("footer",{css:ul(r,n),children:B("div",{css:hl(o),children:[N("div",{children:N(Se,{height:"32px",width:"91px"})}),N("div",{css:xl,children:e}),N("div",{children:B("p",{css:gl,children:[t," ",i]})})]})})},bl=(e,t)=>F`
|
|
2398
2407
|
height: ${e?"96px":"48px"};
|
|
2399
2408
|
width: 100%;
|
|
2400
2409
|
background-color: ${le("neutral",100)};
|
|
@@ -2403,7 +2412,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2403
2412
|
left: 0;
|
|
2404
2413
|
z-index: 102;
|
|
2405
2414
|
border-bottom: 1px solid ${le("neutral",400)};
|
|
2406
|
-
`,
|
|
2415
|
+
`,ml=F`
|
|
2407
2416
|
height: 48px;
|
|
2408
2417
|
width: 100%;
|
|
2409
2418
|
background-color: ${le("neutral",100)};
|
|
@@ -2413,7 +2422,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2413
2422
|
justify-content: flex-start;
|
|
2414
2423
|
gap: 0px;
|
|
2415
2424
|
padding: 8px 16px;
|
|
2416
|
-
`,
|
|
2425
|
+
`,Cl=(e,t)=>F`
|
|
2417
2426
|
height: 48px;
|
|
2418
2427
|
width: 100%;
|
|
2419
2428
|
max-width: ${t?`${t}px`:"100%"};
|
|
@@ -2423,7 +2432,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2423
2432
|
justify-content: space-between;
|
|
2424
2433
|
margin: 0 auto;
|
|
2425
2434
|
padding: 8px 16px;
|
|
2426
|
-
`,
|
|
2435
|
+
`,vl=F`
|
|
2427
2436
|
outline: none;
|
|
2428
2437
|
a {
|
|
2429
2438
|
&:focus-visible {
|
|
@@ -2434,12 +2443,12 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2434
2443
|
outline-width: 2px;
|
|
2435
2444
|
}
|
|
2436
2445
|
}
|
|
2437
|
-
`,
|
|
2446
|
+
`,wl=e=>F`
|
|
2438
2447
|
display: ${e?"none":"flex"};
|
|
2439
2448
|
align-items: center;
|
|
2440
2449
|
justify-content: flex-start;
|
|
2441
2450
|
gap: 0px;
|
|
2442
|
-
`,
|
|
2451
|
+
`,yl=e=>F`
|
|
2443
2452
|
font-size: 16px;
|
|
2444
2453
|
line-height: 24px;
|
|
2445
2454
|
font-weight: 400;
|
|
@@ -2464,12 +2473,12 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2464
2473
|
font-weight: 700;
|
|
2465
2474
|
color: ${le("accessible","controls-on-neutral-lights")};
|
|
2466
2475
|
`:""}
|
|
2467
|
-
|
|
2476
|
+
`,$l=F`
|
|
2468
2477
|
height: 48px;
|
|
2469
2478
|
display: flex;
|
|
2470
2479
|
align-items: center;
|
|
2471
2480
|
justify-content: flex-end;
|
|
2472
|
-
|
|
2481
|
+
`,kl=e=>F`
|
|
2473
2482
|
height: 100%;
|
|
2474
2483
|
font-size: 16px;
|
|
2475
2484
|
line-height: 24px;
|
|
@@ -2488,7 +2497,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2488
2497
|
}
|
|
2489
2498
|
}
|
|
2490
2499
|
`:""}
|
|
2491
|
-
`,
|
|
2500
|
+
`,Ll=e=>F`
|
|
2492
2501
|
height: 100%;
|
|
2493
2502
|
display: flex;
|
|
2494
2503
|
align-items: center;
|
|
@@ -2496,7 +2505,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2496
2505
|
gap: 20px;
|
|
2497
2506
|
padding-left: 16px;
|
|
2498
2507
|
border-left: 1px solid ${le("neutral",e?700:300)};
|
|
2499
|
-
`,
|
|
2508
|
+
`,Ml=F`
|
|
2500
2509
|
background-color: none;
|
|
2501
2510
|
border: none;
|
|
2502
2511
|
cursor: pointer;
|
|
@@ -2521,7 +2530,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2521
2530
|
outline-width: 2px;
|
|
2522
2531
|
background-color: ${le("neutral",200)};
|
|
2523
2532
|
}
|
|
2524
|
-
`,
|
|
2533
|
+
`,Sl=e=>F`
|
|
2525
2534
|
position: absolute;
|
|
2526
2535
|
top: 48px;
|
|
2527
2536
|
right: 0;
|
|
@@ -2534,10 +2543,10 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2534
2543
|
justify-content: flex-start;
|
|
2535
2544
|
gap: 16px;
|
|
2536
2545
|
transition: width 0.5s ease-in-out;
|
|
2537
|
-
`,
|
|
2546
|
+
`,Vl=F`
|
|
2538
2547
|
height: 100%;
|
|
2539
2548
|
width: 100%;
|
|
2540
|
-
`,
|
|
2549
|
+
`,Rl=F`
|
|
2541
2550
|
background-color: ${le("neutral",200)};
|
|
2542
2551
|
border-bottom: 1px solid ${le("neutral",300)};
|
|
2543
2552
|
|
|
@@ -2557,13 +2566,13 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2557
2566
|
margin-left: -12px;
|
|
2558
2567
|
}
|
|
2559
2568
|
}
|
|
2560
|
-
`,Rl=F`
|
|
2561
|
-
background-color: ${le("neutral",100)};
|
|
2562
2569
|
`,Dl=F`
|
|
2570
|
+
background-color: ${le("neutral",100)};
|
|
2571
|
+
`,_l=F`
|
|
2563
2572
|
min-height: 100vh;
|
|
2564
2573
|
width: 100%;
|
|
2565
2574
|
overflow-y: scroll;
|
|
2566
|
-
`;F``;const
|
|
2575
|
+
`;F``;const zl=e=>F`
|
|
2567
2576
|
display: inline-block;
|
|
2568
2577
|
width: 100%;
|
|
2569
2578
|
padding: 12px 16px;
|
|
@@ -2592,7 +2601,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2592
2601
|
outline-width: 2px;
|
|
2593
2602
|
background-color: ${le("neutral",200)};
|
|
2594
2603
|
}
|
|
2595
|
-
`,
|
|
2604
|
+
`,Il=F`
|
|
2596
2605
|
width: 100%;
|
|
2597
2606
|
padding: 12px 16px;
|
|
2598
2607
|
display: flex;
|
|
@@ -2616,7 +2625,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2616
2625
|
outline-width: 2px;
|
|
2617
2626
|
background-color: ${le("neutral",200)};
|
|
2618
2627
|
}
|
|
2619
|
-
`,
|
|
2628
|
+
`,El=e=>F`
|
|
2620
2629
|
position: absolute;
|
|
2621
2630
|
top: 0px;
|
|
2622
2631
|
right: 0;
|
|
@@ -2628,7 +2637,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2628
2637
|
align-items: flex-start;
|
|
2629
2638
|
justify-content: flex-start;
|
|
2630
2639
|
transition: width 0.5s ease-in-out;
|
|
2631
|
-
`,
|
|
2640
|
+
`,Hl=F`
|
|
2632
2641
|
height: 48px;
|
|
2633
2642
|
width: 100%;
|
|
2634
2643
|
display: flex;
|
|
@@ -2639,7 +2648,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2639
2648
|
position: relative;
|
|
2640
2649
|
top: 0;
|
|
2641
2650
|
left: 0;
|
|
2642
|
-
`,
|
|
2651
|
+
`,jl=F`
|
|
2643
2652
|
position: absolute;
|
|
2644
2653
|
bottom: 0;
|
|
2645
2654
|
left: 0;
|
|
@@ -2654,13 +2663,13 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2654
2663
|
button {
|
|
2655
2664
|
width: calc(48% - 24px);
|
|
2656
2665
|
}
|
|
2657
|
-
`,
|
|
2666
|
+
`,Pl=({navigationSection:e,utilitySection:t,actionsSection:r,linkRouter:n,isOpen:o,setIsOpen:i,pathname:l})=>{const[a,s]=X(void 0),[d,c]=X(-1),p=J(null),u=J([]),h=n;return B(Z,{children:[N("div",{css:Sl(o),children:o&&B("div",{css:Vl,children:[B("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?N("div",{css:Rl,children:t?.map((e=>N("div",{className:"utility-item",children:e})))}):null,e?N("div",{css:Dl,children:e.map(((e,t)=>e.link?N(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),c(-1),i(!1)},css:zl(l===e.link),children:e.label},e.label):B("button",{css:Il,type:"button",ref:e=>u.current[t]=e,onClick:()=>{e.items&&(s(e),c(t),setTimeout((()=>{p.current?.focus()}),100))},children:[e.label,e.items?N(me,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),r?N("div",{css:jl,children:r.map((e=>N(ue,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),c(-1),i(!1)}},e.label)))}):null]})}),N("div",{css:El(!!a?.items),children:a?.items?B(Z,{children:[B("div",{css:Hl,children:[B("button",{type:"button",onClick:()=>{s(void 0),c(-1),u.current[d]?.focus()},"aria-label":"Go back",css:Ml,ref:p,children:[N(me,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),a?.label]}),B("button",{type:"button",onClick:()=>{s(void 0),c(-1),i(!1)},"aria-label":"Close menu",css:Ml,children:["Close",N(ve,{height:"16px",width:"16px"})]})]}),N("div",{css:_l,children:a?.items?.map((e=>N(h,{to:e.link,href:e.link,css:zl(),onClick:()=>{s(void 0),c(-1),i(!1)},children:e.label},e.label)))})]}):null})]})},Tl=1023,Ol=({logo:e,linkRouter:t,pathname:r,navigationSection:n,utilitySection:o,actionsSection:i,maxWidth:l,fixed:a,onNavbarHeightChange:s})=>{const d=J(null),c=J(null),p=J(null),[u,h]=X(!1),[x,g]=X(-1),[f,b]=X("undefined"!=typeof window&&window?.innerWidth<=Tl),[m,C]=X(!1),v=t,w=te((()=>{if(c.current&&d.current&&p.current){const e=d.current.getBoundingClientRect(),t=c.current.getBoundingClientRect(),r=p.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=Tl||window.innerWidth<=x?(s?.(96),h(!0)):window.innerWidth>Tl&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>x&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),u&&(window.innerWidth<=Tl||r.right>=t.left?(b(!0),s?.(48)):(b(!1),s?.(96)))}}),[x,u]);return G((()=>(w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)})),[w]),B("nav",{css:bl(u&&!f,a),children:[B("div",{css:Cl(u&&!f,l),children:[B("div",{css:(y=u&&!f,F`
|
|
2658
2667
|
display: flex;
|
|
2659
2668
|
align-items: center;
|
|
2660
2669
|
justify-content: flex-start;
|
|
2661
2670
|
gap: 12px;
|
|
2662
2671
|
color: ${le("neutral",y?100:900)};
|
|
2663
|
-
`),ref:d,children:[e?N("div",{ref:p,css:
|
|
2672
|
+
`),ref:d,children:[e?N("div",{ref:p,css:vl,children:e}):null,N("div",{css:wl(u),children:n?.map((e=>e.link?N(v,{to:e.link,href:e.link,css:yl(r===e.link),children:e.label},e.label):N(st,{label:e.label,items:e.items||[]},e.label)))})]}),N("div",{css:$l,ref:c,children:f?B("button",{type:"button",onClick:()=>C(!m),"aria-label":"Open menu",css:Ml,children:[m?"Close":"Menu",N(m?ve:Fe,{height:"16px",width:"16px"})]}):B(Z,{children:[N("div",{css:$l,children:o?.map(((e,t)=>N("div",{css:kl(u),children:e},t)))}),i?N("div",{css:Ll(u),children:i.map((e=>N(ue,{...e},e.label)))}):null]})})]}),u&&!f?N("div",{css:ml,children:n?.map((e=>e.link?N(v,{to:e.link,href:e.link,css:yl(r===e.link),children:e.label},e.label):N(st,{label:e.label,items:e.items||[]},e.label)))}):null,f?N(Pl,{navigationSection:n,utilitySection:o,actionsSection:i,linkRouter:t,isOpen:m,setIsOpen:C,pathname:r}):null]});var y},Bl=F`
|
|
2664
2673
|
width: 64px;
|
|
2665
2674
|
height: 100%;
|
|
2666
2675
|
z-index: 100;
|
|
@@ -2669,7 +2678,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2669
2678
|
display: flex;
|
|
2670
2679
|
flex-direction: column;
|
|
2671
2680
|
justify-content: space-between;
|
|
2672
|
-
`,
|
|
2681
|
+
`,Nl=F`
|
|
2673
2682
|
width: 64px;
|
|
2674
2683
|
height: 64px;
|
|
2675
2684
|
background-color: ${le("neutral",200)};
|
|
@@ -2759,7 +2768,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2759
2768
|
}
|
|
2760
2769
|
}
|
|
2761
2770
|
}
|
|
2762
|
-
`,
|
|
2771
|
+
`,Zl=F`
|
|
2763
2772
|
display: flex;
|
|
2764
2773
|
justify-content: center;
|
|
2765
2774
|
align-items: center;
|
|
@@ -2772,7 +2781,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2772
2781
|
fill: ${le("neutral",600)};
|
|
2773
2782
|
}
|
|
2774
2783
|
}
|
|
2775
|
-
`,
|
|
2784
|
+
`,Fl=F`
|
|
2776
2785
|
width: 64px;
|
|
2777
2786
|
height: 64px;
|
|
2778
2787
|
background-color: ${le("neutral",200)};
|
|
@@ -2810,7 +2819,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2810
2819
|
text-align: center;
|
|
2811
2820
|
color: ${le("neutral",600)};
|
|
2812
2821
|
}
|
|
2813
|
-
`,
|
|
2822
|
+
`,Al=F`
|
|
2814
2823
|
width: 320px;
|
|
2815
2824
|
height: 100%;
|
|
2816
2825
|
z-index: 100;
|
|
@@ -2818,14 +2827,14 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2818
2827
|
background-color: ${le("neutral",100)};
|
|
2819
2828
|
overflow-y: auto;
|
|
2820
2829
|
overflow-x: hidden;
|
|
2821
|
-
`,
|
|
2830
|
+
`,Wl=({tabs:e=[],defaultValue:t,onTabClick:r,children:o,onOpenChange:i})=>{const[l,a]=X(!1),[s,d]=X(t||e?.[0]?.value);return B("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[B("div",{css:Bl,children:[N(E.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;d(t=e),r&&r(t)},role:"tablist",children:N(E.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>N(E.Trigger,{css:Nl,"aria-label":e["aria-label"]||e.label,...e,children:B(n,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"tab-label",children:[e.icon?N("div",{css:Zl,children:e.icon}):null,N("p",{children:e.label})]})},e.label)))})}),o?N(H.Root,{onOpenChange:({open:e})=>{a(e),i&&i(!e)},children:B(H.Trigger,{css:Fl,children:[N("div",{css:Zl,children:N(l?xe:he,{})}),B("div",{className:"tab-label",children:[N("p",{children:l?"Show":"Hide"}),N("p",{children:"Sidebar"})]})]})}):null]}),o?N(H.Root,{defaultOpen:!0,open:!l,children:N(H.Content,{height:"100%",children:N("div",{css:Al,role:"tabpanel","aria-labelledby":s,children:o})})}):null]})},Yl=e=>F`
|
|
2822
2831
|
width: 100%;
|
|
2823
2832
|
display: flex;
|
|
2824
2833
|
align-items: center;
|
|
2825
2834
|
height: 40px;
|
|
2826
2835
|
|
|
2827
2836
|
${"view"===e&&`\n border: 1px solid ${le("neutral",400)};\n background-color: ${le("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
|
|
2828
|
-
`,
|
|
2837
|
+
`,ql=F`
|
|
2829
2838
|
width: 99%;
|
|
2830
2839
|
height: 40px;
|
|
2831
2840
|
padding: 8px 16px;
|
|
@@ -2841,7 +2850,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2841
2850
|
&:focus-visible {
|
|
2842
2851
|
box-shadow: none;
|
|
2843
2852
|
}
|
|
2844
|
-
`,
|
|
2853
|
+
`,Ul=F`
|
|
2845
2854
|
background-color: ${le("neutral",200)};
|
|
2846
2855
|
color: ${le("neutral",700)};
|
|
2847
2856
|
|
|
@@ -2898,11 +2907,11 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2898
2907
|
opacity: 1;
|
|
2899
2908
|
}
|
|
2900
2909
|
}
|
|
2901
|
-
`,
|
|
2910
|
+
`,Xl=F`
|
|
2902
2911
|
width: 4px;
|
|
2903
2912
|
height: 24px;
|
|
2904
2913
|
background-color: ${le("neutral",400)};
|
|
2905
|
-
`,
|
|
2914
|
+
`,Gl=F`
|
|
2906
2915
|
height: 32px;
|
|
2907
2916
|
border-radius: 2px;
|
|
2908
2917
|
background-color: ${le("neutral",200)};
|
|
@@ -2975,16 +2984,16 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2975
2984
|
opacity: 1;
|
|
2976
2985
|
}
|
|
2977
2986
|
}
|
|
2978
|
-
`,
|
|
2987
|
+
`,Kl=(e,t)=>e.findIndex((e=>e.value===t)),Jl=e=>1===e?"none":2===e?"left":"right",Ql=({variant:e="panel",defaultValue:t,tabs:r,onTabClick:o})=>{const[i,l]=X(Kl(r,t)||0),a="view"===e;return N("div",{css:Yl(e),children:N(E.Root,{width:"full",defaultValue:t||r?.[0]?.value,onValueChange:({value:e})=>{return l(Kl(r,t=e)),void(o&&o(t));var t},children:N(E.List,{alignItems:"center",border:"none",children:r.map(((e,t)=>B(ee,{children:[a&&1===t&&"left"===Jl(i)?N("div",{css:Xl}):null,N(E.Trigger,{css:[ql,a?Gl:Ul],"aria-label":e["aria-label"]||e.label,...e,children:B(n,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),a&&1===t&&"right"===Jl(i)?N("div",{css:Xl}):null]},e.label)))})})})},ea=F`
|
|
2979
2988
|
display: flex;
|
|
2980
2989
|
justify-content: flex-start;
|
|
2981
2990
|
align-items: center;
|
|
2982
2991
|
gap: 8px;
|
|
2983
|
-
`,
|
|
2992
|
+
`,ta=e=>F`
|
|
2984
2993
|
width: ${e||"16px"};
|
|
2985
2994
|
position: relative;
|
|
2986
2995
|
display: flex;
|
|
2987
|
-
`,
|
|
2996
|
+
`,ra=F`
|
|
2988
2997
|
height: 4px;
|
|
2989
2998
|
width: 4px;
|
|
2990
2999
|
background-color: ${le("error",500)};
|
|
@@ -2992,7 +3001,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
2992
3001
|
position: absolute;
|
|
2993
3002
|
top: 0px;
|
|
2994
3003
|
right: 0px;
|
|
2995
|
-
`,
|
|
3004
|
+
`,na=F`
|
|
2996
3005
|
height: 10px;
|
|
2997
3006
|
background-color: ${le("error",500)};
|
|
2998
3007
|
padding: 0 3px 1px 3px;
|
|
@@ -3003,11 +3012,11 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3003
3012
|
position: absolute;
|
|
3004
3013
|
top: -2px;
|
|
3005
3014
|
left: 9px;
|
|
3006
|
-
`,
|
|
3015
|
+
`,oa=F`
|
|
3007
3016
|
font-size: 9px;
|
|
3008
3017
|
font-weight: 700;
|
|
3009
3018
|
color: ${le("error",100)};
|
|
3010
|
-
`,
|
|
3019
|
+
`,ia=F`
|
|
3011
3020
|
height: 16px;
|
|
3012
3021
|
min-width: 16px;
|
|
3013
3022
|
background-color: ${le("error",500)};
|
|
@@ -3016,11 +3025,11 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3016
3025
|
justify-content: center;
|
|
3017
3026
|
align-items: center;
|
|
3018
3027
|
padding: 0px 4px 1px 4px;
|
|
3019
|
-
`,
|
|
3028
|
+
`,la=F`
|
|
3020
3029
|
font-size: 16px;
|
|
3021
3030
|
font-weight: 700;
|
|
3022
3031
|
color: ${le("error",100)};
|
|
3023
|
-
`,
|
|
3032
|
+
`,aa=({hasNotification:e,notificationCount:t,label:r})=>{const[n,o]=X(!1);G((()=>{const e=()=>{window.innerWidth<1024?o(!0):o(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const i=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let l="16px";return t&&t>99?l="28px":t&&t>9&&(l="22px"),B("div",n?{css:ea,role:"status","aria-live":"polite",children:[B("div",{css:ta(),children:[N(Ve,{color:"currentColor",height:"16px",width:"16px"}),!e||t||r?null:N("div",{css:ra,"aria-hidden":!0})]}),r?N("p",{children:r}):null,i.length>0?N("div",{css:ia,children:N("p",{css:la,"aria-label":`${t} unread message`,children:i})}):null]}:{css:ea,role:"status","aria-live":"polite",children:[r?N("p",{children:r}):null,B("div",{css:ta(l),children:[i.length>0?N("div",{css:na,children:N("p",{css:oa,"aria-label":`${t} unread message`,children:i})}):null,e&&!t?N("div",{css:ra,"aria-hidden":!0}):null,N(Ve,{color:"currentColor",height:"16px",width:"16px"})]})]})},sa=(e,t)=>F`
|
|
3024
3033
|
width: 100%;
|
|
3025
3034
|
min-width: ${"small"===e?"234px":"320px"};
|
|
3026
3035
|
border-radius: 4px;
|
|
@@ -3035,7 +3044,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3035
3044
|
button {
|
|
3036
3045
|
margin-left: ${t?0:"24px"};
|
|
3037
3046
|
}
|
|
3038
|
-
`,
|
|
3047
|
+
`,da=F`
|
|
3039
3048
|
display: flex;
|
|
3040
3049
|
align-items: flex-start;
|
|
3041
3050
|
gap: 8px;
|
|
@@ -3043,28 +3052,28 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3043
3052
|
svg {
|
|
3044
3053
|
margin-top: 6px;
|
|
3045
3054
|
}
|
|
3046
|
-
`,
|
|
3055
|
+
`,ca=e=>F`
|
|
3047
3056
|
color: ${le("neutral",800)};
|
|
3048
3057
|
font-size: ${"small"===e?"14px":"18px"};
|
|
3049
3058
|
line-height: ${"small"===e?"20px":"28px"};
|
|
3050
3059
|
font-weight: 400;
|
|
3051
3060
|
text-align: left;
|
|
3052
|
-
`,
|
|
3061
|
+
`,pa=e=>F`
|
|
3053
3062
|
color: ${le("neutral",700)};
|
|
3054
3063
|
font-size: ${"small"===e?"12px":"16px"};
|
|
3055
3064
|
line-height: ${"small"===e?"16px":"24px"};
|
|
3056
3065
|
font-weight: 400;
|
|
3057
3066
|
margin-left: 24px;
|
|
3058
3067
|
text-align: left;
|
|
3059
|
-
`,
|
|
3068
|
+
`,ua=F`
|
|
3060
3069
|
background-color: ${le("neutral",100)};
|
|
3061
3070
|
border: 1px solid ${le("neutral",300)};
|
|
3062
3071
|
color: ${le("neutral",700)};
|
|
3063
|
-
`,
|
|
3072
|
+
`,ha=F`
|
|
3064
3073
|
background-color: ${le("neutral",200)};
|
|
3065
3074
|
border: 1px solid ${le("neutral",300)};
|
|
3066
3075
|
color: ${le("neutral",700)};
|
|
3067
|
-
`,
|
|
3076
|
+
`,xa=F`
|
|
3068
3077
|
background-color: ${le("success",100)};
|
|
3069
3078
|
border: 1px solid ${le("success",300)};
|
|
3070
3079
|
color: ${le("success",500)};
|
|
@@ -3072,7 +3081,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3072
3081
|
p {
|
|
3073
3082
|
color: ${le("success",900)};
|
|
3074
3083
|
}
|
|
3075
|
-
`,
|
|
3084
|
+
`,ga=F`
|
|
3076
3085
|
background-color: ${le("warning",100)};
|
|
3077
3086
|
border: 1px solid ${le("warning",300)};
|
|
3078
3087
|
color: ${le("warning",500)};
|
|
@@ -3080,7 +3089,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3080
3089
|
p {
|
|
3081
3090
|
color: ${le("warning",900)};
|
|
3082
3091
|
}
|
|
3083
|
-
`,
|
|
3092
|
+
`,fa=F`
|
|
3084
3093
|
background-color: ${le("error",100)};
|
|
3085
3094
|
border: 1px solid ${le("error",300)};
|
|
3086
3095
|
color: ${le("error",500)};
|
|
@@ -3088,37 +3097,37 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3088
3097
|
p {
|
|
3089
3098
|
color: ${le("error",900)};
|
|
3090
3099
|
}
|
|
3091
|
-
`,
|
|
3100
|
+
`,ba=({label:e,caption:t,variant:r,size:n="large",icon:o=N(be,{height:"16px",width:"16px"}),onActionClick:i,actionLabel:l,isButtonRight:a})=>{let s=ua;return"info-grey"===r?s=ha:"success"===r?s=xa:"warning"===r?s=ga:"error"===r&&(s=fa),B("div",{css:[sa(n,a),s],"aria-roledescription":"Note",children:[B("div",{children:[B("div",{css:da,children:[o,N("p",{css:ca(n),children:e})]}),N("p",{css:pa(n),children:t})]}),l?N(ue,{label:l,variant:"info-white"===r||"info-grey"===r?"primary":"secondary",size:"large"===n?"default":"small",onClick:i}):null]})},ma=F`
|
|
3092
3101
|
height: 8px;
|
|
3093
3102
|
width: 100%;
|
|
3094
3103
|
background-color: ${le("neutral",300)};
|
|
3095
3104
|
display: flex;
|
|
3096
3105
|
align-items: center;
|
|
3097
3106
|
justify-content: flex-start;
|
|
3098
|
-
`,
|
|
3107
|
+
`,Ca=e=>F`
|
|
3099
3108
|
height: 100%;
|
|
3100
3109
|
width: ${e}%;
|
|
3101
3110
|
background-color: ${le("primary",500)};
|
|
3102
3111
|
transition: width 0.5s ease-in-out;
|
|
3103
|
-
`,
|
|
3112
|
+
`,va=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),N("div",{css:ma,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:N("div",{css:Ca(t)})})},wa=F`
|
|
3104
3113
|
width: 100%;
|
|
3105
3114
|
display: flex;
|
|
3106
3115
|
align-items: center;
|
|
3107
3116
|
justify-content: space-between;
|
|
3108
3117
|
position: relative;
|
|
3109
|
-
`,
|
|
3118
|
+
`,ya=F`
|
|
3110
3119
|
height: 60px;
|
|
3111
3120
|
width: 80px;
|
|
3112
3121
|
display: flex;
|
|
3113
3122
|
flex-direction: column;
|
|
3114
3123
|
align-items: center;
|
|
3115
3124
|
justify-content: space-between;
|
|
3116
|
-
|
|
3125
|
+
`,$a=e=>F`
|
|
3117
3126
|
color: ${le("neutral",e?800:600)};
|
|
3118
3127
|
font-size: 14px;
|
|
3119
3128
|
line-height: 20px;
|
|
3120
3129
|
font-weight: 400;
|
|
3121
|
-
|
|
3130
|
+
`,ka=F`
|
|
3122
3131
|
height: 1px;
|
|
3123
3132
|
width: 100%;
|
|
3124
3133
|
padding: 0 30px;
|
|
@@ -3126,11 +3135,11 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3126
3135
|
top: 16px;
|
|
3127
3136
|
left: 0;
|
|
3128
3137
|
z-index: -1;
|
|
3129
|
-
`,
|
|
3138
|
+
`,La=F`
|
|
3130
3139
|
height: 1px;
|
|
3131
3140
|
width: 100%;
|
|
3132
3141
|
background-color: ${le("neutral",400)};
|
|
3133
|
-
`,
|
|
3142
|
+
`,Ma=({steps:e,currentStep:t})=>B("div",{css:wa,children:[e.map(((e,r)=>{return B("div",{css:ya,children:[N("button",{css:(n=t>=r+1,o=t<r+1,F`
|
|
3134
3143
|
height: 32px;
|
|
3135
3144
|
width: 32px;
|
|
3136
3145
|
display: flex;
|
|
@@ -3166,7 +3175,7 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3166
3175
|
}
|
|
3167
3176
|
|
|
3168
3177
|
${o?`\n background-color: ${le("neutral",300)};\n \n &:hover {\n background-color: ${le("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
3169
|
-
`),type:"button",onClick:e.onClick,"aria-current":t===r+1,"aria-disabled":t<r+1,disabled:t<r+1,"aria-label":`Current Step ${r}${e.label?` ${e.label}`:""}`,"data-active":t>=r+1,children:t>r+1?N(ge,{height:"16px",width:"16px"}):r+1}),e.label?N("p",{css
|
|
3178
|
+
`),type:"button",onClick:e.onClick,"aria-current":t===r+1,"aria-disabled":t<r+1,disabled:t<r+1,"aria-label":`Current Step ${r}${e.label?` ${e.label}`:""}`,"data-active":t>=r+1,children:t>r+1?N(ge,{height:"16px",width:"16px"}):r+1}),e.label?N("p",{css:$a(t===r+1),children:e.label}):null]},`${e.label}-${r}`);var n,o})),N("div",{css:ka,children:N("div",{css:La})})]}),Sa=F`
|
|
3170
3179
|
justify-content: space-between;
|
|
3171
3180
|
align-items: center;
|
|
3172
3181
|
gap: 8px;
|
|
@@ -3209,18 +3218,18 @@ import{createSystem as e,defaultConfig as t,Button as r,Box as n,Spinner as o,Ic
|
|
|
3209
3218
|
color: ${le("error",900)};
|
|
3210
3219
|
}
|
|
3211
3220
|
}
|
|
3212
|
-
`,
|
|
3221
|
+
`,Va=F`
|
|
3213
3222
|
font-size: 18px;
|
|
3214
3223
|
line-height: 28px;
|
|
3215
3224
|
font-weight: 400;
|
|
3216
3225
|
color: ${le("neutral",800)};
|
|
3217
|
-
`,
|
|
3226
|
+
`,Ra=F`
|
|
3218
3227
|
font-size: 16px;
|
|
3219
3228
|
line-height: 24px;
|
|
3220
3229
|
font-weight: 400;
|
|
3221
3230
|
color: ${le("neutral",700)};
|
|
3222
|
-
`,Ra=F`
|
|
3223
|
-
padding: 6px;
|
|
3224
3231
|
`,Da=F`
|
|
3225
3232
|
padding: 6px;
|
|
3226
|
-
`,_a=
|
|
3233
|
+
`,_a=F`
|
|
3234
|
+
padding: 6px;
|
|
3235
|
+
`,za={pauseOnPageIdle:!0,offsets:"24px"},Ia={"top-start":j({placement:"top-start",...za}),"top-end":j({placement:"top-end",...za}),"bottom-start":j({placement:"bottom-start",...za}),"bottom-end":j({placement:"bottom-end",...za})},Ea=e=>{Ia[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},Ha=()=>Object.keys(Ia).map((e=>N(s,{children:N(P,{toaster:Ia[e],insetInline:{mdDown:"4"},children:t=>B(T.Root,{css:Sa,width:{md:"sm"},children:[B(O,{flexDirection:"row",className:"icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:N(be,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?N(o,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:N(ke,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:N(Le,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:N(Me,{color:"var(--chakra-colors-error-500)"}):null,B(O,{gap:"1",flex:"1",maxWidth:"100%",children:[N(T.Title,{css:Va,"aria-label":`${t.title}`,children:t.title}),t.description?N(T.Title,{css:Ra,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?B(O,{flexDirection:"row",children:[t.action?N(ue,{css:Da,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),Ia[e].dismiss()}}):null,t.meta?.closable?N(ue,{css:_a,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:N(ve,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>Ia[e].dismiss()}):null]}):null]})})},e)));export{aa as Badge,vn as BaseMap,pl as Breadcrumb,ue as Button,gt as Checkbox,Kt as CheckboxList,yt as CheckboxOptionCard,Ue as CloseButton,fl as Footer,qe as IconButton,yn as IconMarker,$n as IconMarkers,ba as InlineMessage,Pr as InputWithUnits,Co as ItemCount,En as LayerGroup,Hn as LayerGroupContainer,In as LayerItem,Bn as LayerParameters,Jn as LegendItem,Vo as List,Qe as MapControl,et as MapControls,st as Menu,Yi as Modal,ht as MultiActionButton,Ol as Navbar,Wl as NavigationRail,Rt as OptionCard,Io as Pagination,Qi as Panel,Wr as Password,va as ProgressBar,ao as QualitativeAttribute,zt as Radio,It as RadioGroup,Qr as RadioList,Ae as SSOButtons,go as ScaleBar,jr as Select,al as Sheet,Zt as Slider,nn as SliderInput,Ma as StepProgressIndicator,At as Switch,Ql as TabBar,No as Table,Fo as TableCell,Zo as TableRow,Ir as Tag,cr as TextInput,un as Textarea,Ha as Toast,ie as designSystemStyles,le as getThemedColor,Ea as showToast};
|