@carto/meridian-ds 1.2.0-alpha.2 → 1.2.0-alpha.4
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/CHANGELOG.md +1 -1
- package/dist/{Alert-DtATpSrk.cjs → Alert-Crox9VIQ.cjs} +1 -1
- package/dist/{Alert-D7txRuRX.js → Alert-I7hODOmU.js} +1 -1
- package/dist/{MenuItem-Zfhg5oVa.js → MenuItem-Cj_e0qJW.js} +1 -1
- package/dist/{MenuItem-CYprZ0gF.cjs → MenuItem-DidT4G9p.cjs} +1 -1
- package/dist/TablePaginationActions-DD9ldzb2.cjs +9 -0
- package/dist/{TablePaginationActions-27cy26WD.js → TablePaginationActions-c3pPClvX.js} +8 -29
- package/dist/components/index.cjs +5 -5
- package/dist/components/index.js +3022 -3449
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +21 -19
- package/dist/types/components/molecules/Snackbar.d.ts +11 -0
- package/dist/types/components/molecules/Snackbar.d.ts.map +1 -0
- package/dist/types/components/molecules/index.d.ts +2 -0
- package/dist/types/components/molecules/index.d.ts.map +1 -1
- package/dist/types/components/organisms/index.d.ts +0 -2
- package/dist/types/components/organisms/index.d.ts.map +1 -1
- package/dist/types/localization/en.d.ts +0 -8
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +1 -8
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +1 -8
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +2 -24
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/types/theme/theme-constants.d.ts +1 -0
- package/dist/types/theme/theme-constants.d.ts.map +1 -1
- package/dist/types/theme/types.d.ts +0 -5
- package/dist/types/theme/types.d.ts.map +1 -1
- package/dist/widgets/index.cjs +1 -1
- package/dist/widgets/index.js +2 -2
- package/package.json +2 -3
- package/dist/TablePaginationActions-CoP0Ze6h.cjs +0 -9
- package/dist/types/components/organisms/Dialog/Dialog.d.ts +0 -4
- package/dist/types/components/organisms/Dialog/Dialog.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/DialogAlert.d.ts +0 -4
- package/dist/types/components/organisms/Dialog/DialogAlert.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts +0 -4
- package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/DialogContent.d.ts +0 -7
- package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/DialogFooter.d.ts +0 -7
- package/dist/types/components/organisms/Dialog/DialogFooter.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/DialogHeader.d.ts +0 -4
- package/dist/types/components/organisms/Dialog/DialogHeader.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/DialogPaper.d.ts +0 -32
- package/dist/types/components/organisms/Dialog/DialogPaper.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/DialogStepper.d.ts +0 -3
- package/dist/types/components/organisms/Dialog/DialogStepper.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/index.d.ts +0 -9
- package/dist/types/components/organisms/Dialog/index.d.ts.map +0 -1
- package/dist/types/components/organisms/Dialog/types.d.ts +0 -69
- package/dist/types/components/organisms/Dialog/types.d.ts.map +0 -1
|
@@ -2,8 +2,6 @@ export declare const messages: {
|
|
|
2
2
|
en: {
|
|
3
3
|
c4r: {
|
|
4
4
|
button: {
|
|
5
|
-
cancel: string;
|
|
6
|
-
leave: string;
|
|
7
5
|
close: string;
|
|
8
6
|
};
|
|
9
7
|
form: {
|
|
@@ -31,12 +29,6 @@ export declare const messages: {
|
|
|
31
29
|
endDateCalendar: string;
|
|
32
30
|
time: string;
|
|
33
31
|
};
|
|
34
|
-
dialog: {
|
|
35
|
-
confirmation: {
|
|
36
|
-
title: string;
|
|
37
|
-
content: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
32
|
widgets: {
|
|
41
33
|
category: {
|
|
42
34
|
apply: string;
|
|
@@ -140,8 +132,7 @@ export declare const messages: {
|
|
|
140
132
|
es: {
|
|
141
133
|
c4r: {
|
|
142
134
|
button: {
|
|
143
|
-
|
|
144
|
-
leave: string;
|
|
135
|
+
close: string;
|
|
145
136
|
};
|
|
146
137
|
form: {
|
|
147
138
|
selectAll: string;
|
|
@@ -168,12 +159,6 @@ export declare const messages: {
|
|
|
168
159
|
endDateCalendar: string;
|
|
169
160
|
time: string;
|
|
170
161
|
};
|
|
171
|
-
dialog: {
|
|
172
|
-
confirmation: {
|
|
173
|
-
title: string;
|
|
174
|
-
content: string;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
162
|
widgets: {
|
|
178
163
|
category: {
|
|
179
164
|
apply: string;
|
|
@@ -275,8 +260,7 @@ export declare const messages: {
|
|
|
275
260
|
id: {
|
|
276
261
|
c4r: {
|
|
277
262
|
button: {
|
|
278
|
-
|
|
279
|
-
leave: string;
|
|
263
|
+
close: string;
|
|
280
264
|
};
|
|
281
265
|
form: {
|
|
282
266
|
selectAll: string;
|
|
@@ -303,12 +287,6 @@ export declare const messages: {
|
|
|
303
287
|
endDateCalendar: string;
|
|
304
288
|
time: string;
|
|
305
289
|
};
|
|
306
|
-
dialog: {
|
|
307
|
-
confirmation: {
|
|
308
|
-
title: string;
|
|
309
|
-
content: string;
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
290
|
widgets: {
|
|
313
291
|
category: {
|
|
314
292
|
apply: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/localization/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/localization/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
|
|
@@ -11,4 +11,5 @@ export declare const ICON_SIZE_SMALL: string;
|
|
|
11
11
|
export declare const ICON_SIZE_MEDIUM: string;
|
|
12
12
|
export declare const ICON_SIZE_LARGE: string;
|
|
13
13
|
export declare const APPBAR_SIZE: string;
|
|
14
|
+
export declare const NOTIFICATION_DURATION_IN_MS = 6000;
|
|
14
15
|
//# sourceMappingURL=theme-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-constants.d.ts","sourceRoot":"","sources":["../../../src/theme/theme-constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,IAAI,CAAA;AAGxB,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAA;AAGD,eAAO,MAAM,UAAU,+BAAyB,CAAA;AAGhD,eAAO,MAAM,eAAe,QAAkB,CAAA;AAC9C,eAAO,MAAM,gBAAgB,QAAmB,CAAA;AAChD,eAAO,MAAM,eAAe,QAAgB,CAAA;AAG5C,eAAO,MAAM,WAAW,QAAgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"theme-constants.d.ts","sourceRoot":"","sources":["../../../src/theme/theme-constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,IAAI,CAAA;AAGxB,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAA;AAGD,eAAO,MAAM,UAAU,+BAAyB,CAAA;AAGhD,eAAO,MAAM,eAAe,QAAkB,CAAA;AAC9C,eAAO,MAAM,gBAAgB,QAAmB,CAAA;AAChD,eAAO,MAAM,eAAe,QAAgB,CAAA;AAG5C,eAAO,MAAM,WAAW,QAAgB,CAAA;AAGxC,eAAO,MAAM,2BAA2B,OAAO,CAAA"}
|
|
@@ -106,10 +106,5 @@ declare module '@mui/material/Fab' {
|
|
|
106
106
|
default: true;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
declare module '@mui/material/Dialog' {
|
|
110
|
-
interface DialogProps {
|
|
111
|
-
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
109
|
export {};
|
|
115
110
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/theme/types.ts"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/theme/types.ts"],"names":[],"mappings":"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"}
|
package/dist/widgets/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),o=require("@mui/material"),Z=require("react-intl"),j=require("../TablePaginationActions-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),u=require("react"),o=require("@mui/material"),Z=require("react-intl"),j=require("../TablePaginationActions-DD9ldzb2.cjs"),jn=require("echarts-for-react"),wn=require("react-window"),Te=require("../SwatchSquare-C-QxZLYN.cjs"),ee=require("@mui/icons-material"),bn=require("../Alert-Crox9VIQ.cjs"),Me=require("../paletteUtils-DLQVT9qo.cjs");function Bt(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}function te(e){return!e||typeof e!="object"?e:`${e.prefix??""}${e.value}${e.suffix??""}`}const Sn=[],kn={},lt=e=>e;function In(e,n){if(!e||Array.isArray(e)&&e.length===0)return null;const i=Array.isArray(e)?e:[e];let r="";return r+=String(i[0].axisValueLabel),r+=i.map(({seriesName:s,value:l,data:a,marker:p})=>{const c=s?s+": ":"",g=te(n(Number(l))),h=a,d=`<div style="margin-left: 8px; display: inline">
|
|
2
2
|
${c}${g}${String((h==null?void 0:h.unit)||"")}
|
|
3
3
|
</div>`;return`<div style="margin-top: 4px">${String(p)}${d}</div>`}).join(" "),r}function Tn({height:e,labels:n=kn,yAxisData:i,selectedBars:r=Sn,series:s,colors:l,tooltip:a=!0,tooltipFormatter:p=In,xAxisFormatter:c=lt,yAxisFormatter:g=lt,onSelectedBarsChange:h,animation:d=!0,filterable:y=!0,stacked:f=!0,...m}){const v=o.useTheme(),x=u.useMemo(()=>(s??[]).map(k=>n[k]??k),[s,n]),b=u.useMemo(()=>Array.isArray(i[0])?i:[i],[i]),S=u.useMemo(()=>typeof l=="string"?[l]:Array.isArray(l)&&l.length?l:b.length<=1||x.length===1?[v.palette.secondary.main]:b.length===2||x.length===2?[v.palette.secondary.light,v.palette.secondary.dark]:Object.values(v.palette.qualitative.bold||{}),[l,v,b,x]);return{...m,tooltip:a,tooltipFormatter:p,xAxisFormatter:c,yAxisFormatter:g,onSelectedBarsChange:h,animation:d,filterable:y,stacked:f,labels:n,height:e??parseInt(v.spacing(22)),selectedBars:Mn(r),yAxisData:b,colors:S,series:x}}function Mn(e){return(e??[]).length?e.map(n=>Array.isArray(n)&&n.length===2?n:Array.isArray(n)?[...Array(2)].map((r,s)=>n[s]??0):[n,0]):[]}var Cn=function e(n,i){if(n===i)return!0;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(n.constructor!==i.constructor)return!1;var r,s,l;if(Array.isArray(n)){if(r=n.length,r!=i.length)return!1;for(s=r;s--!==0;)if(!e(n[s],i[s]))return!1;return!0}if(n.constructor===RegExp)return n.source===i.source&&n.flags===i.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===i.toString();if(l=Object.keys(n),r=l.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(i,l[s]))return!1;for(s=r;s--!==0;){var a=l[s];if(!e(n[a],i[a]))return!1}return!0}return n!==n&&i!==i};const xe=j.getDefaultExportFromCjs(Cn);class ye extends jn{componentDidUpdate(n){const{shouldSetOption:i}=this.props;if(typeof i=="function"&&!i(n,this.props))return;if(!xe(n.theme,this.props.theme)||!xe(n.opts,this.props.opts)){this.dispose(),this.renderNewEcharts();return}const r=this.getEchartsInstance();xe(n.onEvents,this.props.onEvents)||(this.offEvents(r,n.onEvents),this.bindEvents(r,this.props.onEvents));const s=["option","notMerge","lazyUpdate","showLoading","loadingOption"];xe(at(this.props,s),at(n,s))||this.updateEChartsOption(),(!xe(n.style,this.props.style)||!xe(n.className,this.props.className))&&this.resize()}updateEChartsOption(){const n=this.props.option,i=this.props.loadingOption||null,{lazyUpdate:r,showLoading:s}=this.props,l=this.getEchartsInstance();return l.setOption(n,{replaceMerge:["series"],lazyUpdate:r}),s?l.showLoading(i):l.hideLoading(),l}offEvents(n,i){if(i)for(const r in i)typeof r=="string"&&n.off(r)}}function at(e,n){const i={};return n.forEach(r=>{i[r]=e[r]}),i}const _e=240,Pt=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"flex-end",justifyContent:"space-between",position:"relative",padding:e.spacing(0,2),"&::before":{content:'""',position:"absolute",top:0,right:0,left:0,bottom:0,backgroundSize:e.spacing(4,4),backgroundImage:`linear-gradient(to bottom, ${e.palette.grey[50]} 1px, transparent 1px)`,transform:"scaleY(-1)"}})),Lt=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"flex-end",justifyContent:"space-between",backgroundImage:`linear-gradient(${e.palette.grey[50]} 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), ${e.palette.grey[50]} calc(100% - 0.5px)), linear-gradient(90deg, ${e.palette.grey[50]} 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), ${e.palette.grey[50]} calc(100% - 0.5px))`,backgroundSize:"8.33% 20%",border:`0.5px solid ${e.palette.grey[50]}`})),je=o.styled(o.Skeleton)(({theme:e})=>({flex:1,maxWidth:e.spacing(12),"& + &":{marginLeft:e.spacing(1)}})),ne=o.styled(o.Skeleton)(({theme:e})=>({flex:1,maxWidth:e.spacing(8),"& + &":{marginLeft:"1px"}})),An=o.styled(o.Skeleton)(({theme:e})=>({backgroundColor:e.palette.common.white})),ct=o.styled(o.Skeleton)(({theme:e})=>({backgroundColor:e.palette.grey[100]}));function En({height:e}){return t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{mb:2,children:t.jsx(o.Skeleton,{width:48,height:8})}),t.jsxs(Pt,{style:{height:e||_e},children:[t.jsx(je,{variant:"rectangular",height:"20%"}),t.jsx(je,{variant:"rectangular",height:"40%"}),t.jsx(je,{variant:"rectangular",height:"60%"}),t.jsx(je,{variant:"rectangular",height:"20%"}),t.jsx(je,{variant:"rectangular",height:"80%"})]})]})}function de(e){const[n,i]=u.useState(!1),[r,s]=u.useState(!1);return u.useEffect(()=>{e&&!r&&(i(!0),s(!0)),e||i(!1)},[e,r]),{showSkeleton:n}}const Bn=Bt(),Pn=o.styled(o.Grid)(({theme:e})=>({marginBottom:e.spacing(2),flexDirection:"row",justifyContent:"space-between",alignItems:"center","& .MuiTypography-caption":{color:e.palette.text.secondary}})),Ln=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer"}));function Dn(e){const{yAxisData:n,xAxisData:i,series:r,selectedBars:s,onSelectedBarsChange:l,tooltip:a,tooltipFormatter:p,labels:c,colors:g,xAxisFormatter:h,yAxisFormatter:d,stacked:y,height:f,filterable:m,animation:v,isLoading:x}=Tn(e),b=r.length>1,S=o.useTheme(),k=Z.useIntl(),T=j.useImperativeIntl(k),{showSkeleton:w}=de(!!x),C=u.useMemo(()=>({show:a,trigger:"axis",padding:[parseInt(S.spacing(.5)),parseInt(S.spacing(1))],borderWidth:0,textStyle:{...S.typography.caption,fontSize:11,color:S.palette.common.white},backgroundColor:S.palette.black[90],position:function(I,O,G,R,z){const q={top:0};return z.contentSize[0]<z.viewSize[0]-I[0]?q.left=I[0]:q.right=z.viewSize[0]-I[0],q},formatter:I=>p(I,d)}),[S,a,p,d]),M=u.useMemo(()=>i.map(I=>te(h(c[I]??String(I)))),[i,c,h]),D=u.useMemo(()=>({type:"category",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{...S.typography.overlineDelicate,padding:[parseInt(S.spacing(.5)),0,0,0]},data:M}),[S,M]),E=u.useMemo(()=>{let I=[];return y?I=n.reduce((O,G)=>(G.forEach((R,z)=>O[z]=(O[z]??0)+(R??Number.MIN_SAFE_INTEGER)),O),[]):I=n.flat().map(O=>O??Number.MIN_SAFE_INTEGER),Math.max(...I)},[n,y]),L=u.useMemo(()=>({type:"value",axisLabel:{margin:0,verticalAlign:"bottom",padding:[0,0,parseInt(S.spacing(1.25)),0],show:!0,showMaxLabel:!0,showMinLabel:!1,inside:!0,color:I=>I>=E?S.palette.black[60]:"transparent",...S.typography.overlineDelicate,formatter:I=>te(d(I))},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,onZero:!1,lineStyle:{color:S.palette.black[4]}}}),[S,E,d]),P=u.useMemo(()=>n.map((I,O)=>({type:"bar",name:r[O]??"",animation:v,barMaxWidth:100,data:I.map((G,R)=>{const z=s.some(([F,H=0])=>F===R&&H===O),q=!!s.length&&!z;return{value:G,...q&&{itemStyle:{color:S.palette.black[25]},disabled:!0}}}),...y&&{stack:"total"},...!Bn&&{emphasis:{focus:"series",itemStyle:{color:o.darken(g[O]??"#000",.25)}}}})),[v,g,r,n,s,y,S]),N=u.useMemo(()=>({grid:{left:M.length>=4?dt(String(M[0]),M.length):0,top:parseInt(S.spacing(2)),right:M.length>=4?dt(String(M[M.length-1]),M.length):0,bottom:0,containLabel:!0},axisPointer:{lineStyle:{color:S.palette.black[40]}},color:g,tooltip:C,xAxis:D,yAxis:L,series:P}),[M,S,g,C,D,L,P]),V=()=>{l&&l([],[])},_=I=>{I.key==="Enter"&&V()},A=u.useCallback(I=>{if(l){const O=[...s],{dataIndex:G,componentIndex:R}=I,z=O.findIndex(([F,H=0])=>G===F&&R===H);z===-1?O.push([G,R]):O.splice(z,1);const q=O.map(([F,H=0])=>({xAxis:i[F],serie:r[H],yAxis:n[H][F]}));l(b?O:O.map(F=>F[0]),q)}},[n,l,s,i,r,b]),$=u.useMemo(()=>m?{click:A}:{},[m,A]);return w?t.jsx(En,{height:f}):t.jsxs("div",{children:[l&&t.jsxs(Pn,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",children:s.length>0?T.formatMessage({id:"c4r.widgets.bar.selectedItems"},{items:s.length}):T.formatMessage({id:"c4r.widgets.bar.all"})}),s&&s.length>0&&t.jsx(Ln,{onClick:()=>V(),onKeyDown:_,underline:"hover",tabIndex:0,children:T.formatMessage({id:"c4r.widgets.bar.clear"})})]}),!!N&&t.jsx(ye,{option:N,lazyUpdate:!0,notMerge:!0,onEvents:$,style:{height:f}})]})}function dt(e="",n=0){return n<=15&&e.length<=8?0:e.length*8.5/6}const ue="__rest__",me="Others";var pe=(e=>(e.RANKING="ranking",e.FIXED="fixed",e))(pe||{});const Dt=o.styled(o.Grid)(({theme:e})=>({maxHeight:e.spacing(40),overflow:"auto",padding:0})),Nt=o.styled(o.Grid,{shouldForwardProp:e=>e!=="selectable"&&e!=="name"&&e!=="unselected"})(({theme:e,selectable:n,name:i,unselected:r})=>({flexDirection:"row",maxWidth:"100%",padding:e.spacing(.5,.25),margin:0,"> .MuiGrid-item":{paddingTop:0,paddingLeft:0},"&:focus-visible":{outline:"none !important",boxShadow:`inset 0 0 0 2px ${e.palette.primary.main} !important`},...r&&{color:e.palette.text.disabled,".progressbar div":{backgroundColor:e.palette.text.disabled}},...i!==ue&&n&&{cursor:"pointer",flexWrap:"nowrap","&:hover .progressbar div":{backgroundColor:e.palette.secondary.dark}},...i===ue&&{cursor:"default",".progressbar div":{backgroundColor:e.palette.text.disabled}}})),ut=o.styled(o.Grid)(({theme:{spacing:e,palette:n}})=>({flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e(1.5),paddingRight:e(1),"& .MuiTypography-caption":{color:n.text.secondary}})),Nn=o.styled(o.Grid)(({theme:e})=>({height:e.spacing(.5),width:"100%",margin:e.spacing(.5,0,.25,0),borderRadius:e.spacing(.5),backgroundColor:e.palette.action.disabledBackground,"& div":{width:0,height:"100%",borderRadius:e.spacing(.5),backgroundColor:e.palette.secondary.main,transition:`background-color ${e.transitions.easing.sharp} ${e.transitions.duration.shortest}ms,
|
|
4
4
|
width ${e.transitions.easing.sharp} ${e.transitions.duration.complex}ms`}})),On=o.styled(o.Grid,{shouldForwardProp:e=>e!=="isSelectable"})(({theme:e,isSelectable:n})=>({...n&&{width:`calc(100% - ${e.spacing(4)})`}})),$n=o.styled(j.Typography)(({theme:e})=>({fontWeight:e.typography.fontWeightBold,marginRight:e.spacing(2)})),Ae=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer","& + hr":{margin:e.spacing(0,1)}})),Rn=o.styled(o.Box)(({theme:e})=>({...e.typography.body2})),pt=o.styled(o.Button)(({theme:e})=>({position:"absolute",left:"-999px",top:"-1px",width:"1px",height:"1px",display:"inline-flex","&:focus-visible":{position:"static",width:"auto",height:"auto",marginTop:e.spacing(2)}})),Fn=o.styled(o.Skeleton)(({theme:e})=>({marginTop:e.spacing(1.25),marginBottom:e.spacing(1.75)})),Wn=e=>e%2===1,Ot=()=>t.jsxs(t.Fragment,{children:[t.jsx(o.Skeleton,{width:48,height:8}),t.jsx(Dt,{container:!0,mt:3,children:[...Array(6)].map((e,n)=>t.jsxs(Nt,{container:!0,spacing:1,children:[t.jsxs(o.Grid,{container:!0,item:!0,direction:"row",justifyContent:"space-between",children:[t.jsx(o.Skeleton,{width:Wn(n)?72:48,height:8}),t.jsx(o.Skeleton,{width:48,height:8})]}),t.jsx(Fn,{height:4,width:"100%"})]},n))})]});function $t(e){const n=u.useRef();return u.useEffect(()=>{n.current=e}),n.current}function Ke({start:e,end:n,duration:i,drawFrame:r,requestRef:s}){if(e===n&&!(e===0&&n===0))return;const a=n-e;let p=e;const c=a/(i/1e3*60),g=()=>{p+=c,r(Math.floor(p)),c>0&&p<n||c<0&&p>n?s.current=requestAnimationFrame(g):r(n)};s.current=requestAnimationFrame(g)}function _n({start:e,end:n,duration:i,drawFrame:r,requestRef:s}){if(e.length===n.length&&e.every((f,m)=>f.value===n[m].value))return;let a=n.map((f,m)=>e[m]&&e[m].name===f.name?{...f,value:e[m].value}:f),p=0;const c=a.map((f,m)=>n[m].value-f.value);if(c.every(f=>f===0)){r(n);return}const h=i/1e3*60,d=c.map(f=>f/h),y=()=>{p<h?(a=a.map((f,m)=>{const v=Math.floor(f.value+d[m]),x=m>0&&Math.floor(f.value+d[m-1]);return{...f,value:v===x?n[m].value:v}}),r(a),p++,s.current=requestAnimationFrame(y)):r(n)};s.current=requestAnimationFrame(y)}const Gn=[],zn={},Hn=e=>e,Ve=()=>{},Yn=e=>e.reduce((n,i)=>n+(i.value??0),0);function Vn({data:e,formatter:n=Hn,labels:i=zn,maxItems:r=5,order:s=pe.RANKING,selectedCategories:l=Gn,onSelectedCategoriesChange:a=Ve,onMaxItemsOverflow:p=Yn,animation:c=!0,filterable:g=!0,searchable:h=!0,isLoading:d}){const y=o.useTheme(),[f,m]=u.useState([]),[v,x]=u.useState(1),[b,S]=u.useState(!1),[k,T]=u.useState(""),[w,C]=u.useState([]),[M,D]=u.useState([]),[E,L]=u.useState([]),P=u.useRef(null),N=u.useRef(),V=$t(E),_=u.useRef([]),{showSkeleton:A}=de(!!d),$=Z.useIntl(),I=j.useImperativeIntl($);function O(B){return f.reduce((Y,U)=>(B.includes(U.name)&&Y.push(U.name),Y),[])}function G(B){if(B!==ue){let Y;l.includes(B)?Y=l.filter(U=>U!==B):Y=[...l,B],a&&a(Y)}}const R=()=>a([]),z=B=>{B.key==="Enter"&&R()},q=()=>{a([]),C([])},F=B=>{B.key==="Enter"&&q()},H=()=>{C(O(l))},J=B=>{B.key==="Enter"&&H()},ie=()=>{const B=O(M);a([...B]),C([...B]),D([]),S(!1),T("")},re=B=>{B.key==="Enter"&&ie()},W=()=>{T(""),S(!1)},K=B=>{if(B!==ue){let Y;M.includes(B)?Y=M.filter(U=>U!==B):Y=[...M,B],D(Y)}},X=B=>{B.currentTarget.scrollIntoView()},Q=B=>{T(B.currentTarget.value)},ge=()=>{S(!0),D([...l])},ve=u.useCallback(B=>{if(b)return k?B.filter(Y=>{var se;if(!Y.name)return!1;const U=String(Y.name);return!!(U.toLowerCase().includes(k.toLowerCase())||(se=i[U])!=null&&se.toLowerCase().includes(k.toLowerCase()))}):B;if(w.length)return w.reduce((U,se)=>{const Ce=B.find(le=>le.name===se);return U.push({name:se,value:Ce?Ce.value:null}),U},[]);{const Y=B.slice(0,r);if(Y.length<B.length){const U={name:ue,value:p(B.slice(r))};return[...Y,U]}else return Y}},[w,i,r,k,b,p]),he=u.useCallback(()=>{const B=w.length;return B?e.length-B:e.length-r},[e,r,w]),it=u.useCallback(B=>B===ue?`Others ${h?"":`(${he()})`}`:i[String(B)]??String(B),[he,i,h]),hn=u.useCallback(B=>B>=v?B!=null?"100%":0:`${(B||0)*100/v}%`,[v]);u.useEffect(()=>{l.length===0&&C([])},[l]),u.useEffect(()=>{if(e){if(s===pe.RANKING){const B=[...e].sort((U,se)=>(se.value??0)-(U.value??0)),Y=ve(B);Y.length>0?x(Y[0].value??0):x(1),m(Y)}else if(s===pe.FIXED){x(Math.max(...e.map(Y=>Y.value??0)));const B=ve(e);m(B)}}},[w,ve,e,i,r,s,k,b]),u.useEffect(()=>{V&&(_.current=V)},[V]),u.useEffect(()=>{if(c)return _n({start:(_.current||[]).map(B=>({...B,value:B.value??0})),end:f.map(B=>({...B,value:B.value??0})),duration:500,drawFrame:B=>L(B),requestRef:P}),()=>{P.current&&cancelAnimationFrame(P.current)};L(f)},[c,f]),u.useEffect(()=>{b&&N.current&&N.current.focus()},[b,N]);function fn({data:B,onCategoryClick:Y}){const U=n(B.value??0),[se,Ce]=u.useState(!1),le=u.useRef(null),He=()=>{var rt,st;const Ye=(((rt=le==null?void 0:le.current)==null?void 0:rt.scrollWidth)??0)>(((st=le==null?void 0:le.current)==null?void 0:st.clientWidth)??0);Ce(Ye)};u.useEffect(()=>(He(),window.addEventListener("resize",He),()=>{window.removeEventListener("resize",He)}),[]);const yn=Ye=>{Ye.key==="Enter"&&Y()},vn=!b&&l.length>0&&!l.includes(B.name);return t.jsxs(Nt,{container:!0,direction:"row",spacing:1,onClick:g?Y:Ve,onKeyDown:g?yn:Ve,selectable:g,unselected:vn,name:B.name===ue?ue:"",tabIndex:g?0:-1,children:[g&&b&&t.jsx(o.Grid,{item:!0,mr:1,children:t.jsx(o.Checkbox,{checked:M.includes(B.name),tabIndex:-1})}),t.jsxs(On,{container:!0,item:!0,xs:!0,isSelectable:b,children:[t.jsxs(o.Grid,{container:!0,item:!0,direction:"row",justifyContent:"space-between",wrap:"nowrap",children:[t.jsx(o.Tooltip,{title:it(B.name),disableHoverListener:!se,children:t.jsx($n,{variant:"body2",noWrap:!0,ref:le,children:it(B.name)})}),typeof U=="object"&&U!==null?t.jsxs("span",{children:[U.prefix,U.value,U.suffix]}):t.jsx("span",{children:U})]}),t.jsx(Nn,{className:"progressbar",item:!0,children:t.jsx("div",{style:{width:hn(B.value??0)}})})]})]})}if((e==null?void 0:e.length)===0||A)return t.jsx(Ot,{});const xn=({index:B,style:Y})=>{const U=E[B];return U?t.jsx("div",{style:Y,children:t.jsx(fn,{data:U,onCategoryClick:()=>b?K(U.name):G(U.name)})}):null},mn=()=>b?320:w.length>0?w.length*38:(r+1)*38;return t.jsxs(Rn,{children:[g&&f.length>0&&t.jsxs(ut,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",children:l.length>0?I.formatMessage({id:"c4r.widgets.category.selectedItems"},{items:l.length}):I.formatMessage({id:"c4r.widgets.category.all"})}),b?t.jsx(Ae,{onClick:ie,onKeyDown:re,underline:"hover",tabIndex:0,"data-testid":"primaryApplyButton",children:I.formatMessage({id:"c4r.widgets.category.apply"})}):w.length>0?t.jsx(Ae,{onClick:q,onKeyDown:F,underline:"hover",tabIndex:0,children:I.formatMessage({id:"c4r.widgets.category.unlock"})}):l.length>0&&t.jsxs(o.Grid,{container:!0,direction:"row",justifyContent:"flex-end",item:!0,xs:!0,children:[t.jsx(Ae,{onClick:H,onKeyDown:J,underline:"hover",tabIndex:0,children:I.formatMessage({id:"c4r.widgets.category.lock"})}),t.jsx(o.Divider,{orientation:"vertical",flexItem:!0}),t.jsx(Ae,{onClick:R,onKeyDown:z,underline:"hover",tabIndex:0,children:I.formatMessage({id:"c4r.widgets.category.clear"})})]})]}),e.length>r&&b&&t.jsxs(ut,{container:!0,children:[t.jsx(o.TextField,{size:"small",sx:{mt:-.5},placeholder:I.formatMessage({id:"c4r.widgets.category.search"}),onChange:Q,onFocus:X,InputProps:{startAdornment:t.jsx(o.InputAdornment,{position:"start",children:t.jsx(Te.Search,{})})},inputProps:{tabIndex:0,ref:N}}),t.jsx(pt,{size:"small",onClick:W,children:I.formatMessage({id:"c4r.widgets.category.cancel"})})]}),t.jsx(Dt,{container:!0,item:!0,children:E.length?t.jsx(wn.FixedSizeList,{height:mn(),width:"100%",itemCount:E.length,itemSize:y.spacingValue*4.5,children:xn}):t.jsxs(o.Box,{children:[t.jsx(j.Typography,{variant:"body2",children:I.formatMessage({id:"c4r.widgets.category.noResults"})}),t.jsx(j.Typography,{component:"p",variant:"caption",mb:2,children:I.formatMessage({id:"c4r.widgets.category.noResultsMessage"},{searchValue:k})})]})}),b&&t.jsx(pt,{size:"small",onClick:ie,children:I.formatMessage({id:"c4r.widgets.category.apply"})}),e.length>r&&h?b?t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{size:"small",color:"primary",onClick:W,"data-testid":"primaryCancelButton",children:I.formatMessage({id:"c4r.widgets.category.cancel"})})}):t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{size:"small",color:"primary",startIcon:t.jsx(Te.Search,{}),onClick:ge,children:I.formatMessage({id:"c4r.widgets.category.searchInfo"},{elements:he()})})}):null]})}const Rt=()=>t.jsx(o.Box,{pt:.5,children:t.jsx(o.Skeleton,{height:24,width:120})}),Un=o.styled("span")(()=>({marginRight:"2px"})),qn=o.styled("span")(()=>({marginLeft:"2px"})),Ee="-",Kn=e=>e;function Xn({data:e=Ee,formatter:n=Kn,animation:i=!0,isLoading:r=!1}){const[s,l]=u.useState(Ee),a=u.useRef(null),p=$t(s),c=u.useRef(p),{showSkeleton:g}=de(!!r);u.useEffect(()=>(typeof e=="number"&&i?Ke({start:c.current||0,end:e,duration:500,drawFrame:f=>l(f),requestRef:a}):typeof e=="object"&&i&&e&&c.current&&e.value!==null&&e.value!==void 0?Ke({start:Number(c.current.value),end:Number(e.value),duration:1e3,drawFrame:f=>l({value:f,prefix:e.prefix,suffix:e.suffix}),requestRef:a}):l(e??Ee),()=>{a.current&&cancelAnimationFrame(a.current)}),[i,e,l]);const h=n(s),d=typeof h=="object"&&h!==null,y=h===Ee;return g?t.jsx(Rt,{}):d?t.jsxs(j.Typography,{variant:"h5",component:"div",weight:"medium",children:[t.jsx(Un,{children:h.prefix}),h.value,t.jsx(qn,{children:h.suffix})]}):t.jsx(j.Typography,{variant:"h5",component:"div",weight:"medium",color:y?"text.disabled":"default",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",children:h})}const gt={};let we=null;function Zn({data:e,filterable:n,selectedBars:i,onSelectedBarsChange:r,echartsInstance:s}){const l=o.useTheme(),[a,p]=u.useState([]),c=u.useMemo(()=>s==null?void 0:s.getZr(),[s]);u.useEffect(()=>{function h(y){if(s){const[f]=s.convertFromPixel({seriesIndex:0},[y.offsetX,y.offsetY]);we=f??null}}function d(y){if(s&&we!==null){const[f]=s.convertFromPixel({seriesIndex:0},[y.offsetX,y.offsetY]);p(we===f?[]:[we,f].sort((m,v)=>m-v))}}if(s&&n){const y=Ue(c,"mousedown",h),f=Ue(c,"mousemove",d);return()=>{y==null||y(),f==null||f()}}},[c,s,n]),u.useEffect(()=>{function h(){if(a.length===2&&r){const d=e.reduce((y,f,m)=>((a[0]>=f[0]&&a[0]<=f[1]||a[1]>=f[0]&&a[1]<=f[1]||a[0]<=f[0]&&a[1]>=f[1])&&y.push(m),y),[]);r(e.length===d.length?[]:d)}p([]),we=null}if(s&&n)return Ue(c,"mouseup",h)},[c,s,a,e,r,n]);const g=u.useCallback(h=>{if(r){const d=new Set(i);d.has(h.dataIndex)?d.delete(h.dataIndex):d.add(h.dataIndex),r(d.size===e.length?[]:Array.from(d))}},[r,i,e.length]);return{markAreaOptions:a.length===2&&{data:[[{coord:[a[0]]},{coord:[a[1]]}]],itemStyle:{color:l.palette.primary.main,opacity:.2}},onEvents:n?{click:g}:{}}}function Ue(e,n,i){if(e!=null&&e.handler)return gt[n]=i,e.on(n,i),()=>{gt[n]&&(e!=null&&e.handler)&&e.off(n,i)}}function Jn({height:e}){return t.jsxs(t.Fragment,{children:[t.jsx(o.Box,{mb:2,children:t.jsx(o.Skeleton,{width:48,height:8})}),t.jsxs(Lt,{style:{height:e??_e},children:[t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"40%"}),t.jsx(ne,{variant:"rectangular",height:"60%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"80%"}),t.jsx(ne,{variant:"rectangular",height:"50%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"40%"}),t.jsx(ne,{variant:"rectangular",height:"60%"}),t.jsx(ne,{variant:"rectangular",height:"20%"}),t.jsx(ne,{variant:"rectangular",height:"80%"}),t.jsx(ne,{variant:"rectangular",height:"50%"})]})]})}const Qn=Bt(),eo=o.styled(o.Grid)(({theme:e})=>({marginBottom:e.spacing(2),flexDirection:"row",justifyContent:"space-between",alignItems:"center","& .MuiTypography-caption":{color:e.palette.text.secondary}})),to=o.styled(o.Link)(({theme:e})=>({...e.typography.caption,cursor:"pointer"})),no=[],oo=()=>{},Oe=e=>e;function io(e,n=Oe,i=Oe){if(!e)return null;if(Array.isArray(e)&&e.length===0)return;const r=Array.isArray(e)?e[0].marker:e.marker,s=Array.isArray(e)?e[0].data:e.data;if((s==null?void 0:s.value)===void 0)return;const[l,a,p]=s.value,c=te(n(l)),g=te(n(a)),h=te(i(p)),d=`${c} <span style="vertical-align: 1px;">—</span> ${g}`,y=`<div style="margin-left: 8px; display: inline">${h}</div>`;return`${d} <div style="margin-top: 4px">${String(r)}${y}</div>`}function ro({data:e,ticks:n,min:i,max:r,xAxisFormatter:s=Oe,yAxisFormatter:l=Oe,yAxisType:a="dense",selectedBars:p=no,onSelectedBarsChange:c=oo,tooltip:g=!0,tooltipFormatter:h=io,animation:d=!0,filterable:y=!0,height:f=200,isLoading:m}){const v=Z.useIntl(),x=o.useTheme(),b=j.useImperativeIntl(v),{showSkeleton:S}=de(!!m),k=!!y&&!!c,[T,w]=u.useState(),C=I=>w(I),M=u.useMemo(()=>ao(e,n,i,r),[e,n,i,r]),{onEvents:D,markAreaOptions:E}=Zn({data:M,filterable:k,selectedBars:p,onSelectedBarsChange:c,echartsInstance:T}),L=u.useMemo(()=>({show:g,trigger:"item",padding:[j.SPACING*.5,j.SPACING],borderWidth:0,textStyle:{...x.typography.caption,fontSize:11,color:x.palette.common.white},backgroundColor:x.palette.black[90],confine:!0,position:"top",formatter(I){return h(I,s,l)}}),[x,g,h,s,l]),P=u.useMemo(()=>({min:i,max:r,interval:(r-i)/M.length,axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:x.palette.black[4]}},axisTick:{show:!1},axisLabel:{showMinLabel:!0,showMaxLabel:!0,...x.typography.overlineDelicate,hideOverlap:!0,padding:[j.SPACING*.5,j.SPACING*.5,0,j.SPACING*.5],formatter:I=>{const O=te(s(I));return I===i?so(O):I===r?lo(O):O},color:x.palette.black[60]}}),[i,r,M.length,x,s]),N=u.useMemo(()=>{const I={margin:0,verticalAlign:"bottom",padding:[0,0,j.SPACING*1.25,0],inside:!0,color:R=>{const z=Math.max(...e.map(F=>F??Number.MIN_SAFE_INTEGER))||1;let q="transparent";return R>=z&&(q=x.palette.black[60]),q},...x.typography.overlineDelicate,formatter:R=>te(l(R))},O={verticalAlign:"middle",padding:[0,0,0,j.SPACING*.5],color:x.palette.black[60]},G=a==="dense"?I:O;return{type:"value",axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:x.palette.black[4]}},axisTick:{show:!1},axisLabel:{show:!0,showMaxLabel:!0,showMinLabel:!1,...G,...x.typography.overlineDelicate,formatter:R=>te(l(R))}}},[x.palette.black,x.typography.overlineDelicate,e,l,a]),V=u.useMemo(()=>{const I=i===r&&M.filter(R=>R[2]!==0).length===1,G=(I?[M[0],M[M.length-1]]:M).map((R,z)=>{const F=p.length&&!p.includes(z)?x.palette.black[25]:x.palette.secondary.main;return{value:R,itemStyle:{color:F}}});return{type:"custom",cursor:"pointer",markArea:E,renderItem:function(R,z){const q=R.dataIndex===M.length-1,F=R.dataIndex===0,H=G[R.dataIndex].itemStyle.color,J=z.value(0),ie=z.value(1),re=z.value(2),[W,K]=z.coord([J,re]),[X,Q]=z.size([ie-J,re]);return{type:"rect",shape:{x:I?W/10:W+(F?0:1),y:K,width:I?W-W/10:X-(q?0:1),height:Q},style:{fill:H},...!Qn&&{emphasis:{style:{fill:o.darken(H,.25)}}}}},encode:{x:[0,1],y:2,tooltip:[0,1,2]},data:G,animation:d}},[i,r,M,E,x.palette.black,x.palette.secondary.main,p,d]),_=u.useMemo(()=>({grid:{left:j.SPACING*.1,right:j.SPACING*.1,top:j.SPACING*2,bottom:j.SPACING*.5,containLabel:!0},tooltip:L,xAxis:P,yAxis:N,series:[V]}),[L,P,N,V]),A=p.reduce((I,O)=>I+=e[O]??0,0),$=I=>{I.key==="Enter"&&c([])};return S?t.jsx(Jn,{height:f}):t.jsxs("div",{children:[k&&t.jsxs(eo,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",weight:"strong",children:p.length>0?b.formatMessage({id:"c4r.widgets.histogram.selectedItems"},{items:te(l(A))}):b.formatMessage({id:"c4r.widgets.histogram.all"})}),p.length>0&&t.jsx(to,{onClick:()=>c([]),onKeyDown:$,underline:"hover",tabIndex:0,children:b.formatMessage({id:"c4r.widgets.histogram.clear"})})]}),t.jsx(ye,{option:_,onEvents:D,lazyUpdate:!0,onChartReady:C,style:{maxHeight:f}})]})}function so(e){return`${Array(String(e).length).fill(" ").join("")}${e}`}function lo(e){const n=Array(String(e).length).fill(" ").join("");return`${e}${n}`}function ao(e,n,i,r){return e.map((s,l)=>[l===0?i:n[l-1],l===e.length-1?r:n[l],s])}function co(e,n,i,r){const s=o.useTheme(),l=u.useMemo(()=>n===pe.RANKING?e.slice().sort((c,g)=>(g.value??0)-(c.value??0)):e,[e,n]),a=u.useMemo(()=>{const c=[];let g=0;for(const h of l)c.length<i?c.push({...h}):g+=h.value??0;return g>0&&c.push({name:me,value:g,emphasis:{scale:!1}}),c},[i,l]);return u.useMemo(()=>{const c=s.palette.common.white;return a.map((g,h)=>{let d=c;if(r.length){const f=r[h%r.length];f&&(d=f)}else{const m=s.palette.qualitative.bold[h];m&&(d=m)}const y=g;return y.color=d,y})},[a,r,s])}const uo=o.styled(o.Box)(({theme:e})=>({zIndex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",paddingBottom:e.spacing(1)})),po=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),maxWidth:"140px",textTransform:"uppercase"})),go=o.styled(o.Box)(({theme:e})=>({display:"inline-block",borderRadius:e.spacing(.5),width:e.spacing(1),minWidth:e.spacing(1),height:e.spacing(1)}));function ho({data:e,selectedCategories:n,formatter:i}){const[r,s]=u.useState(),l=u.useMemo(()=>{if(!e||e.length===0)return null;let g;n.length>0?g=e.filter(m=>n.includes(m.name)):g=e;const h=fo(g),d=g.find(m=>m===h);if(!d)return null;let y=0;for(const m of e)y+=m.value??0;const f=xo(d.value??0,y,i);return{...d,percentage:f}},[e,n,i]);u.useEffect(()=>{l&&s(l)},[l,s]);const{name:a,percentage:p,color:c}=r??{};return r?t.jsxs(uo,{children:[t.jsx(j.Typography,{variant:"h5",children:p}),t.jsxs(po,{children:[t.jsx(go,{bgcolor:c,component:"span"}),t.jsx(j.Typography,{component:"span",variant:"body2",noWrap:!0,children:a})]})]}):null}function fo(e){const n=e.filter(i=>i.name!==me);return n.length===0?e[0]:n.reduce((i,r)=>(r.value??0)>(i.value??0)?r:i)}function xo(e,n,i){let r=0;return n!==0&&(r=e/n*100),i?i(r):`${r}%`}const ht=32,mo=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",marginTop:e.spacing(.5)})),yo=o.styled("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center",position:"relative"})),vo=o.styled(An)(()=>({position:"absolute",zIndex:1})),jo=o.styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(1),position:"absolute",zIndex:2})),wo=o.styled(o.Box)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(2),height:e.spacing(5)})),bo=o.styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1.5)}));function Ft({height:e}){const n=parseInt(String(e),10)||_e,i=n-ht,r=i-ht;return t.jsxs(o.Box,{mt:.5,children:[t.jsx(o.Skeleton,{height:8,width:64}),t.jsx(mo,{height:n,children:t.jsxs(yo,{children:[t.jsx(o.Skeleton,{variant:"circular",width:i,height:i}),t.jsx(vo,{variant:"circular",width:r,height:r}),t.jsxs(jo,{children:[t.jsx(o.Skeleton,{height:24,width:72}),t.jsx(o.Skeleton,{height:8,width:48})]})]})}),t.jsx(wo,{children:[...Array(2)].map((s,l)=>t.jsxs(bo,{children:[t.jsx(o.Skeleton,{variant:"circular",width:8,height:8}),t.jsx(o.Skeleton,{width:48,height:8})]},l))})]})}const So=o.styled(o.Box)(({theme:e})=>({position:"relative",padding:e.spacing(1.25,1,0,1),width:"100%"})),ko=o.styled(o.Box)(({theme:e})=>({position:"relative",display:"flex",flexDirection:"row",overflowX:"hidden",gap:e.spacing(2),padding:e.spacing(.5),margin:e.spacing(-.5)})),Io=o.styled(o.Box)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing(1),alignItems:"center",textOverflow:"ellipsis",whiteSpace:"nowrap",cursor:"pointer"})),To=o.styled(o.Box)(({theme:e})=>({display:"inline-block",position:"absolute",left:e.spacing(-2),top:e.spacing(1),bottom:e.spacing(1),zIndex:1,width:e.spacing(2.5),background:`linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, ${e.palette.background.paper} 100%)`})),Mo=o.styled(o.Box)(({theme:e})=>({position:"absolute",padding:e.spacing(.25,1),top:e.spacing(0),right:0,background:e.palette.background.paper})),Co=o.styled(o.Box,{shouldForwardProp:e=>e!=="color"})(({theme:e,color:n})=>{const i=e.spacing(1);return{backgroundColor:n,borderRadius:"50%",width:i,height:i}});function Wt({series:e,selectedCategories:n,onCategoryClick:i}){var k,T;const r=o.useTheme(),[s,l]=u.useState(!1),[a,p]=u.useState(0),[c,g]=u.useState(void 0),h=u.useRef(null),d=u.useRef(null),y=u.useRef(null),f=Z.useIntl(),m=j.useImperativeIntl(f);function v(){p(a+1)}function x(){p(Math.max(a-1))}function b(w,C){w.key==="Enter"&&(i==null||i(C))}const S=u.useCallback(()=>{var C,M,D;const w=!!d.current&&d.current.scrollWidth>d.current.clientWidth;l(w),g(w&&d.current?(((C=h.current)==null?void 0:C.clientWidth)??0)-(((M=y.current)==null?void 0:M.clientWidth)??70):(((D=h.current)==null?void 0:D.clientWidth)??0)-12||500)},[h,d,y]);return u.useEffect(()=>{S()},[d,(k=d.current)==null?void 0:k.scrollWidth,(T=d.current)==null?void 0:T.clientWidth,S,a]),u.useEffect(()=>{if(typeof ResizeObserver>"u")return;let w;return h.current&&(w=new ResizeObserver(()=>{S()}),w.observe(h.current)),()=>{w==null||w.disconnect()}},[h,S]),t.jsxs(So,{ref:h,children:[t.jsx(ko,{ref:d,style:{maxWidth:`${c}px`},children:e.map((w,C)=>{if(C<a)return null;const M=n.length===0||n.includes(w.name);return t.jsxs(Io,{tabIndex:0,onClick:i?()=>i(w.name):void 0,onKeyDown:i?D=>b(D,w.name):void 0,style:{pointerEvents:!i||w.name==="Others"?"none":void 0},children:[t.jsx(Co,{color:M?w.color:r.palette.text.disabled}),t.jsx(j.Typography,{variant:"overline",color:M?void 0:"text.disabled",children:w.name})]},C)})}),(s||a>0)&&t.jsxs(Mo,{ref:y,children:[t.jsx(To,{}),t.jsx(o.Tooltip,{title:m.formatMessage({id:"c4r.widgets.chartLegend.next"}),children:t.jsx(o.IconButton,{size:"small",disabled:a===0,onClick:x,children:t.jsx(ee.ChevronLeft,{})})}),t.jsx(o.Tooltip,{title:m.formatMessage({id:"c4r.widgets.chartLegend.prev"}),children:t.jsx(o.IconButton,{size:"small",disabled:!s,onClick:v,children:t.jsx(ee.ChevronRight,{})})})]})]})}const Xe="232px",Ao=o.styled(o.Grid)(({theme:e})=>({flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:e.spacing(.5)})),Eo=o.styled(o.Box,{shouldForwardProp:e=>e!=="height"&&e!=="width"})(({height:e,width:n})=>({position:"relative",margin:"0 auto",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:n||"100%",height:e||"100%"})),Bo=o.styled(ye)(()=>({position:"absolute",top:0,right:0,left:0,bottom:0})),ft=[],Po={},Lo=e=>e;function Do({name:e,data:n,formatter:i=Lo,tooltipFormatter:r=No,percentFormatter:s,height:l=Xe,width:a=Xe,labels:p=Po,colors:c=ft,animation:g=!0,filterable:h=!0,selectedCategories:d=ft,onSelectedCategoriesChange:y,isLoading:f,maxItems:m=11,order:v=pe.RANKING}){const x=o.useTheme(),b=co(n,v,m,c),{showSkeleton:S}=de(!!f),k=Z.useIntl(),T=j.useImperativeIntl(k),w=u.useMemo(()=>s||(_=>`${k.formatNumber(_,{maximumFractionDigits:2,minimumFractionDigits:2})}%`),[k,s]),C=u.useMemo(()=>{let _;return r&&(_=A=>r(A,i,w)),{padding:[j.SPACING*.5,j.SPACING],backgroundColor:x.palette.black[90],borderColor:"transparent",textStyle:{color:x.palette.common.white},confine:!0,formatter:_}},[x.palette.black,x.palette.common.white,r,i,w]),M=u.useMemo(()=>[{type:"pie",name:e,animation:g,data:b.map(_=>{const A={..._},$=(d==null?void 0:d.length)&&!d.includes(A.name);return p!=null&&p[A.name]&&(A.name=p[A.name]),$?{...A,disabled:!0,itemStyle:{color:x.palette.black[25]}}:{...A,itemStyle:{color:A.color}}}),radius:["74%","90%"],selectedOffset:0,bottom:j.SPACING*1.5,label:{show:!1},emphasis:{focus:"series",scaleSize:5},itemStyle:{borderColor:x.palette.background.paper,borderWidth:1}}],[e,g,b,p,d,x]),D=u.useMemo(()=>({grid:{left:0,top:0,right:0,bottom:0},tooltip:C,legend:{show:!1},series:M}),[C,M]),E=u.useCallback(_=>{if(y){const A=[...d],{name:$}=b[_.dataIndex];if($===me)return;const I=A.indexOf($);I===-1?A.push($):A.splice(I,1),y(A)}},[b,y,d]),L=u.useCallback(_=>{if(y){const A=[...d],$=A.indexOf(_);$===-1?A.push(_):A.splice($,1),y(A)}},[y,d]),P={...h&&{click:E}},N=()=>{y==null||y([])},V=_=>{_.key==="Enter"&&N()};return S?t.jsx(Ft,{height:l}):t.jsxs(t.Fragment,{children:[h&&t.jsxs(Ao,{container:!0,children:[t.jsx(j.Typography,{variant:"caption",color:"textSecondary",children:d.length?T.formatMessage({id:"c4r.widgets.pie.selectedItems"},{items:d.length}):T.formatMessage({id:"c4r.widgets.pie.allSelected"})}),d.length>0&&t.jsx(o.Link,{variant:"caption",onClick:N,onKeyDown:V,tabIndex:0,children:T.formatMessage({id:"c4r.widgets.pie.clear"})})]}),t.jsxs(Eo,{height:l,width:a,children:[t.jsx(ho,{data:b,selectedCategories:d,formatter:w}),t.jsx(Bo,{option:D,onEvents:P,lazyUpdate:!0,style:{height:l,width:a}})]}),b.length>0&&t.jsx(Wt,{series:b,selectedCategories:d,onCategoryClick:y&&L})]})}function No(e,n,i){var c;const r=Array.isArray(e)?e[0]:e;if(!r)return null;const s=te(n(r.value)),l=i(r.percent)||`${r.percent}%`,p=`display:inline-block;border-radius:4px;width:8px;height:8px;background-color:${((c=r.data)==null?void 0:c.color)||r.textStyle.color}`;return`
|
package/dist/widgets/index.js
CHANGED
|
@@ -2,12 +2,12 @@ import { jsxs as w, Fragment as ie, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import Qn, { useMemo as F, useState as _, useEffect as U, useCallback as oe, useRef as re, createContext as ei, useContext as ti, useLayoutEffect as an, createRef as ni } from "react";
|
|
3
3
|
import { useTheme as le, styled as m, Box as S, Skeleton as H, Grid as ae, Link as ye, darken as yt, Button as Pe, Divider as vt, TextField as ot, InputAdornment as wt, Checkbox as ln, Tooltip as ue, IconButton as fe, debounce as ii, Slider as xt, TableCell as bt, Table as sn, TableHead as cn, TableRow as Je, TableBody as dn, TableContainer as un, TableSortLabel as ri, TablePagination as oi, Menu as kt, MenuItem as $e, SvgIcon as je, lighten as pn, Typography as De, ClickAwayListener as ai, ToggleButton as li, capitalize as gn, ListItem as si, Chip as ci, List as di, Paper as hn, Popover as ui, Select as pi, ListItemText as gi, Collapse as St, Drawer as hi, Icon as fi, LinearProgress as mi } from "@mui/material";
|
|
4
4
|
import { useIntl as se } from "react-intl";
|
|
5
|
-
import { t as yi, u as ce, T as z, S as B, B as Mt, a as vi, b as pt } from "../TablePaginationActions-
|
|
5
|
+
import { t as yi, u as ce, T as z, S as B, B as Mt, a as vi, b as pt } from "../TablePaginationActions-c3pPClvX.js";
|
|
6
6
|
import wi from "echarts-for-react";
|
|
7
7
|
import { FixedSizeList as xi } from "react-window";
|
|
8
8
|
import { S as Qe, a as bi } from "../SwatchSquare-DAne_6Gi.js";
|
|
9
9
|
import { ChevronLeft as ki, ChevronRight as Si, KeyboardArrowDown as Mi, ErrorOutline as Ii, Cancel as Ci, VisibilityOutlined as Ti, VisibilityOffOutlined as Ai, ExpandLess as fn, ExpandMore as mn, Close as Ei, LayersOutlined as Li, MoreVert as Di } from "@mui/icons-material";
|
|
10
|
-
import { A as Pi } from "../Alert-
|
|
10
|
+
import { A as Pi } from "../Alert-I7hODOmU.js";
|
|
11
11
|
import { c as yn, a as $i, b as vn } from "../paletteUtils-BEwZhrLg.js";
|
|
12
12
|
function wn() {
|
|
13
13
|
let e = !1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carto/meridian-ds",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.4",
|
|
4
4
|
"description": "CARTO Meridian Design System",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -158,6 +158,5 @@
|
|
|
158
158
|
"bugs": {
|
|
159
159
|
"url": "https://github.com/CartoDB/meridian-ds/issues"
|
|
160
160
|
},
|
|
161
|
-
"homepage": "https://github.com/CartoDB/meridian-ds#readme"
|
|
162
|
-
"stableVersion": "1.2.0"
|
|
161
|
+
"homepage": "https://github.com/CartoDB/meridian-ds#readme"
|
|
163
162
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";const Be=require("react-is"),I=require("react/jsx-runtime"),R=require("@mui/material"),rn=require("react"),he=require("@mui/icons-material"),_e=require("react-intl");function tn(e){let n="https://mui.com/production-error/?code="+e;for(let t=1;t<arguments.length;t+=1)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+e+"; visit "+n+" for the full message."}function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Z.apply(null,arguments)}function ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe={exports:{}};/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/var X,ve;function an(){if(ve)return X;ve=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},d=0;d<10;d++)s["_"+String.fromCharCode(d)]=d;var c=Object.getOwnPropertyNames(s).map(function(y){return s[y]});if(c.join("")!=="0123456789")return!1;var _={};return"abcdefghijklmnopqrst".split("").forEach(function(y){_[y]=y}),Object.keys(Object.assign({},_)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return X=a()?Object.assign:function(i,s){for(var d,c=r(i),_,y=1;y<arguments.length;y++){d=Object(arguments[y]);for(var f in d)n.call(d,f)&&(c[f]=d[f]);if(e){_=e(d);for(var T=0;T<_.length;T++)t.call(d,_[T])&&(c[_[T]]=d[_[T]])}}return c},X}var ee,Se;function le(){if(Se)return ee;Se=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ee=e,ee}var ne,Te;function Re(){return Te||(Te=1,ne=Function.call.bind(Object.prototype.hasOwnProperty)),ne}var re,Me;function sn(){if(Me)return re;Me=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=le(),t={},r=Re();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,d,c,_){if(process.env.NODE_ENV!=="production"){for(var y in i)if(r(i,y)){var f;try{if(typeof i[y]!="function"){var T=Error((c||"React class")+": "+d+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}f=i[y](s,y,c,d,null,n)}catch(O){f=O}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+d+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in t)){t[f.message]=!0;var b=_?_():"";e("Failed "+d+" type: "+f.message+(b??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},re=a,re}var te,Ee;function dn(){if(Ee)return te;Ee=1;var e=Be,n=an(),t=le(),r=Re(),a=sn(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(d){var c="Warning: "+d;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return te=function(d,c){var _=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function f(o){var u=o&&(_&&o[_]||o[y]);if(typeof u=="function")return u}var T="<<anonymous>>",b={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:G(),arrayOf:B,element:U(),elementType:$(),instanceOf:Q,node:Je(),objectOf:Fe,oneOf:Ve,oneOfType:Ye,shape:$e,exact:Qe};function O(o,u){return o===u?o!==0||1/o===1/u:o!==o&&u!==u}function E(o,u){this.message=o,this.data=u&&typeof u=="object"?u:{},this.stack=""}E.prototype=Error.prototype;function C(o){if(process.env.NODE_ENV!=="production")var u={},m=0;function g(h,p,w,v,M,S,P){if(v=v||T,S=S||w,P!==t){if(c){var L=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 L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var N=v+":"+w;!u[N]&&m<3&&(i("You are manually calling a React.PropTypes validation function for the `"+S+"` prop on `"+v+"`. 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."),u[N]=!0,m++)}}return p[w]==null?h?p[w]===null?new E("The "+M+" `"+S+"` is marked as required "+("in `"+v+"`, but its value is `null`.")):new E("The "+M+" `"+S+"` is marked as required in "+("`"+v+"`, but its value is `undefined`.")):null:o(p,w,v,M,S)}var l=g.bind(null,!1);return l.isRequired=g.bind(null,!0),l}function A(o){function u(m,g,l,h,p,w){var v=m[g],M=k(v);if(M!==o){var S=K(v);return new E("Invalid "+h+" `"+p+"` of type "+("`"+S+"` supplied to `"+l+"`, expected ")+("`"+o+"`."),{expectedType:o})}return null}return C(u)}function G(){return C(s)}function B(o){function u(m,g,l,h,p){if(typeof o!="function")return new E("Property `"+p+"` of component `"+l+"` has invalid PropType notation inside arrayOf.");var w=m[g];if(!Array.isArray(w)){var v=k(w);return new E("Invalid "+h+" `"+p+"` of type "+("`"+v+"` supplied to `"+l+"`, expected an array."))}for(var M=0;M<w.length;M++){var S=o(w,M,l,h,p+"["+M+"]",t);if(S instanceof Error)return S}return null}return C(u)}function U(){function o(u,m,g,l,h){var p=u[m];if(!d(p)){var w=k(p);return new E("Invalid "+l+" `"+h+"` of type "+("`"+w+"` supplied to `"+g+"`, expected a single ReactElement."))}return null}return C(o)}function $(){function o(u,m,g,l,h){var p=u[m];if(!e.isValidElementType(p)){var w=k(p);return new E("Invalid "+l+" `"+h+"` of type "+("`"+w+"` supplied to `"+g+"`, expected a single ReactElement type."))}return null}return C(o)}function Q(o){function u(m,g,l,h,p){if(!(m[g]instanceof o)){var w=o.name||T,v=nn(m[g]);return new E("Invalid "+h+" `"+p+"` of type "+("`"+v+"` supplied to `"+l+"`, expected ")+("instance of `"+w+"`."))}return null}return C(u)}function Ve(o){if(!Array.isArray(o))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function u(m,g,l,h,p){for(var w=m[g],v=0;v<o.length;v++)if(O(w,o[v]))return null;var M=JSON.stringify(o,function(P,L){var N=K(L);return N==="symbol"?String(L):L});return new E("Invalid "+h+" `"+p+"` of value `"+String(w)+"` "+("supplied to `"+l+"`, expected one of "+M+"."))}return C(u)}function Fe(o){function u(m,g,l,h,p){if(typeof o!="function")return new E("Property `"+p+"` of component `"+l+"` has invalid PropType notation inside objectOf.");var w=m[g],v=k(w);if(v!=="object")return new E("Invalid "+h+" `"+p+"` of type "+("`"+v+"` supplied to `"+l+"`, expected an object."));for(var M in w)if(r(w,M)){var S=o(w,M,l,h,p+"."+M,t);if(S instanceof Error)return S}return null}return C(u)}function Ye(o){if(!Array.isArray(o))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var u=0;u<o.length;u++){var m=o[u];if(typeof m!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+en(m)+" at index "+u+"."),s}function g(l,h,p,w,v){for(var M=[],S=0;S<o.length;S++){var P=o[S],L=P(l,h,p,w,v,t);if(L==null)return null;L.data&&r(L.data,"expectedType")&&M.push(L.data.expectedType)}var N=M.length>0?", expected one of type ["+M.join(", ")+"]":"";return new E("Invalid "+w+" `"+v+"` supplied to "+("`"+p+"`"+N+"."))}return C(g)}function Je(){function o(u,m,g,l,h){return z(u[m])?null:new E("Invalid "+l+" `"+h+"` supplied to "+("`"+g+"`, expected a ReactNode."))}return C(o)}function me(o,u,m,g,l){return new E((o||"React class")+": "+u+" type `"+m+"."+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+l+"`.")}function $e(o){function u(m,g,l,h,p){var w=m[g],v=k(w);if(v!=="object")return new E("Invalid "+h+" `"+p+"` of type `"+v+"` "+("supplied to `"+l+"`, expected `object`."));for(var M in o){var S=o[M];if(typeof S!="function")return me(l,h,p,M,K(S));var P=S(w,M,l,h,p+"."+M,t);if(P)return P}return null}return C(u)}function Qe(o){function u(m,g,l,h,p){var w=m[g],v=k(w);if(v!=="object")return new E("Invalid "+h+" `"+p+"` of type `"+v+"` "+("supplied to `"+l+"`, expected `object`."));var M=n({},m[g],o);for(var S in M){var P=o[S];if(r(o,S)&&typeof P!="function")return me(l,h,p,S,K(P));if(!P)return new E("Invalid "+h+" `"+p+"` key `"+S+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(m[g],null," ")+`
|
|
6
|
-
Valid keys: `+JSON.stringify(Object.keys(o),null," "));var L=P(w,S,l,h,p+"."+S,t);if(L)return L}return null}return C(u)}function z(o){switch(typeof o){case"number":case"string":case"undefined":return!0;case"boolean":return!o;case"object":if(Array.isArray(o))return o.every(z);if(o===null||d(o))return!0;var u=f(o);if(u){var m=u.call(o),g;if(u!==o.entries){for(;!(g=m.next()).done;)if(!z(g.value))return!1}else for(;!(g=m.next()).done;){var l=g.value;if(l&&!z(l[1]))return!1}}else return!1;return!0;default:return!1}}function Xe(o,u){return o==="symbol"?!0:u?u["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&u instanceof Symbol:!1}function k(o){var u=typeof o;return Array.isArray(o)?"array":o instanceof RegExp?"object":Xe(u,o)?"symbol":u}function K(o){if(typeof o>"u"||o===null)return""+o;var u=k(o);if(u==="object"){if(o instanceof Date)return"date";if(o instanceof RegExp)return"regexp"}return u}function en(o){var u=K(o);switch(u){case"array":case"object":return"an "+u;case"boolean":case"date":case"regexp":return"a "+u;default:return u}}function nn(o){return!o.constructor||!o.constructor.name?T:o.constructor.name}return b.checkPropTypes=a,b.resetWarningCache=a.resetWarningCache,b.PropTypes=b,b},te}var ae,be;function on(){if(be)return ae;be=1;var e=le();function n(){}function t(){}return t.resetWarningCache=n,ae=function(){function r(s,d,c,_,y,f){if(f!==e){var T=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 T.name="Invariant Violation",T}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:n};return i.PropTypes=i,i},ae}if(process.env.NODE_ENV!=="production"){var cn=Be,un=!0;oe.exports=dn()(cn.isElement,un)}else oe.exports=on()();var _n=oe.exports;const D=ke(_n);function x(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ge(e){if(!x(e))return e;const n={};return Object.keys(e).forEach(t=>{n[t]=Ge(e[t])}),n}function ye(e,n,t={clone:!0}){const r=t.clone?Z({},e):e;return x(e)&&x(n)&&Object.keys(n).forEach(a=>{x(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&x(e[a])?r[a]=ye(e[a],n[a],t):t.clone?r[a]=x(n[a])?Ge(n[a]):n[a]:r[a]=n[a]}),r}const j=process.env.NODE_ENV!=="production"?D.oneOfType([D.number,D.string,D.object,D.array]):{};function Ne(e,n){return n?ye(e,n,{clone:!1}):e}const fe={xs:0,sm:600,md:900,lg:1200,xl:1536},Ce={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fe[e]}px)`};function pe(e,n,t){const r=e.theme||{};if(Array.isArray(n)){const i=r.breakpoints||Ce;return n.reduce((s,d,c)=>(s[i.up(i.keys[c])]=t(n[c]),s),{})}if(typeof n=="object"){const i=r.breakpoints||Ce;return Object.keys(n).reduce((s,d)=>{if(Object.keys(i.values||fe).indexOf(d)!==-1){const c=i.up(d);s[c]=t(n[d],d)}else{const c=d;s[c]=n[c]}return s},{})}return t(n)}function ln(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,a)=>{const i=e.up(a);return r[i]={},r},{}))||{}}function yn(e,n){return e.reduce((t,r)=>{const a=t[r];return(!a||Object.keys(a).length===0)&&delete t[r],t},n)}function De(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function F(e,n,t=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&t){const r=`vars.${n}`.split(".").reduce((a,i)=>a&&a[i]?a[i]:null,e);if(r!=null)return r}return n.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function ce(e,n,t,r=t){let a;return typeof e=="function"?a=e(t):Array.isArray(e)?a=e[t]||r:a=F(e,t)||r,n&&(a=n(a,r,e)),a}function fn(e){const{prop:n,cssProperty:t=e.prop,themeKey:r,transform:a}=e,i=s=>{if(s[n]==null)return null;const d=s[n],c=s.theme,_=F(c,r)||{};return pe(s,d,f=>{let T=ce(_,a,f);return f===T&&typeof f=="string"&&(T=ce(_,a,`${n}${f==="default"?"":De(f)}`,f)),t===!1?T:{[t]:T}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[n]:j}:{},i.filterProps=[n],i}function pn(e){const n={};return t=>(n[t]===void 0&&(n[t]=e(t)),n[t])}const gn={m:"margin",p:"padding"},wn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Le={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mn=pn(e=>{if(e.length>2)if(Le[e])e=Le[e];else return[e];const[n,t]=e.split(""),r=gn[n],a=wn[t]||"";return Array.isArray(a)?a.map(i=>r+i):[r+a]}),Y=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],J=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],hn=[...Y,...J];function xe(e,n,t,r){var a;const i=(a=F(e,n,!1))!=null?a:t;return typeof i=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),i*s):Array.isArray(i)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
7
|
-
`)):console.error([`MUI: The \`theme.${n}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${n}\` as a number.`].join(`
|
|
8
|
-
`))),i[s]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${n}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
9
|
-
`)),()=>{})}function qe(e){return xe(e,"spacing",8,"spacing")}function Ue(e,n){if(typeof n=="string"||n==null)return n;const t=Math.abs(n),r=e(t);return n>=0?r:typeof r=="number"?-r:`-${r}`}function vn(e,n){return t=>e.reduce((r,a)=>(r[a]=Ue(n,t),r),{})}function Sn(e,n,t,r){if(n.indexOf(t)===-1)return null;const a=mn(t),i=vn(a,r),s=e[t];return pe(e,s,i)}function Ke(e,n){const t=qe(e.theme);return Object.keys(e).map(r=>Sn(e,n,r,t)).reduce(Ne,{})}function ge(e){return Ke(e,Y)}ge.propTypes=process.env.NODE_ENV!=="production"?Y.reduce((e,n)=>(e[n]=j,e),{}):{};ge.filterProps=Y;function we(e){return Ke(e,J)}we.propTypes=process.env.NODE_ENV!=="production"?J.reduce((e,n)=>(e[n]=j,e),{}):{};we.filterProps=J;process.env.NODE_ENV!=="production"&&hn.reduce((e,n)=>(e[n]=j,e),{});function je(e=8){if(e.mui)return e;const n=qe({spacing:e}),t=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=n(i);return typeof s=="number"?`${s}px`:s}).join(" "));return t.mui=!0,t}const He=8,Tn={XS:320,SM:600,MD:960,LG:1280,XL:1600},H=je(He),Mn=H(1.5),En=H(2.25),bn=H(3),Cn=H(6),Ln={regular:400,medium:500,strong:600};function An({italic:e,weight:n,style:t,children:r,...a},i){const s={fontWeight:Ln[n],fontStyle:e?"italic":void 0};return I.jsx(R.Typography,{...a,ref:i,style:{...s,...t},children:r})}const Pn=rn.forwardRef(An),On={c4r:{button:{cancel:"Cancel",leave:"Leave",close:"Close"},form:{selectAll:"Select all",selectNone:"None",allSelected:"All selected",noneSelected:"None selected",selected:"selected",add:"Add",filesSelected:"{count, plural, one{# file} other{# files}} selected",dragPlaceholder:"Drag and drop your {count, plural, one{file} other{files}} or click to browse",dragActivePlaceholder:"Drop your {count, plural, one{file} other{files}} here...",pagination:{noMorePages:"No more pages",prevPage:"Previous page",nextPage:"Next page"},startDate:"Start date",endDate:"End date",showPassword:"Show password",hidePassword:"Hide password",clearSelection:"Clear selection",chooseDate:"Choose date",startDateCalendar:"Start date calendar",endDateCalendar:"End date calendar",time:"Time"},dialog:{confirmation:{title:"Are you sure you want to leave?",content:"The changes you made will not be saved."}},widgets:{category:{apply:"Apply",unlock:"Unlock",lock:"Lock",clear:"Clear",noResults:"No results",noResultsMessage:`Your search "{searchValue}" didn't match with any value.`,cancel:"Cancel",searchInfo:"Search in {elements} elements",selectedItems:"{items, plural, one{# selected} other{# selected}}",all:"All",search:"Search"},bar:{all:"All",selectedItems:"{items, plural, one{# selected} other{# selected}}",clear:"Clear"},histogram:{all:"All",selectedItems:"{items} selected",clear:"Clear"},legend:{layerOptions:"Layer options",hide:"Hide",show:"Show",layer:"layer",opacity:"Opacity",hideLayer:"Hide layer",showLayer:"Show layer",open:"Open legend",close:"Close",collapse:"Collapse layer",expand:"Expand layer",zoomLevel:"Zoom level",zoomLevelTooltip:"This layer is only visible at certain zoom levels",lowerThan:"lower than",greaterThan:"greater than",and:"and",zoomNote:"Note: this layer will display at zoom levels",notSupported:"is not a known legend type",subtitles:{proportion:"Radius range by",icon:"Icon based on",strokeColor:"Stroke color based on",color:"Color based on"},max:"Max",min:"Min",maxCategories:"Legend limited to {n} categories"},range:{clear:"Clear",minLimit:"min limit",maxLimit:"max limit",minValue:"min value",maxValue:"max value"},table:{rowsPerPage:"Rows per page",of:"{from}–{to} of {count}",moreThan:"more than"},timeSeries:{speed:"Speed",clear:"Clear"},featureSelection:{drawPolygonMode:"Polygon",drawRectangleMode:"Rectangle",drawPolygonByDraggingMode:"Lasso tool",drawCircleFromCenterMode:"Circle",edit:"Edit mask",clickToEdit:"Click on the mask to edit it",clickToCreate:"Click on the map to create a mask",selectTool:"Select a {label}",selectMode:"Select a mode",chooseSelectionMode:"Choose a selection mode",applyMask:"Apply mask",clearMask:"Clear mask",remove:"Remove",polygon:"Polygon",point:"Point",lineString:"Line",invalid:"Invalid geometry"},pie:{clear:"Clear",selectedItems:"{items, plural, one{# selected} other{# selected}}",allSelected:"All"},chartLegend:{next:"Next page",prev:"Previous page"}}}},In={c4r:{button:{cancel:"Cancelar",leave:"Salir"},form:{selectAll:"Seleccionar todos",selectNone:"Ninguno",allSelected:"Todos seleccionados",noneSelected:"Ninguno seleccionado",selected:"seleccionado",add:"Añadir",filesSelected:"{count, plural, one{# archivo} other{# archivos}} seleccionados",dragPlaceholder:"Arrastra y suelta {count, plural, one{tu archivo} other{tus archivos}} o pulsa para seleccionar",dragActivePlaceholder:"Suelta {count, plural, one{tu archivo} other{tus archivos}} aqui...",pagination:{noMorePages:"No más páginas",prevPage:"Página anterior",nextPage:"Página siguiente"},startDate:"Fecha de inicio",endDate:"Fecha de fin",showPassword:"Mostrar contraseña",hidePassword:"Ocultar contraseña",clearSelection:"Limpiar selección",chooseDate:"Elegir fecha",startDateCalendar:"Calendario de fecha de inicio",endDateCalendar:"Calendario de fecha de fin",time:"Hora"},dialog:{confirmation:{title:"¿Estás seguro de que quieres salir?",content:"Los cambios que has hecho no se guardarán."}},widgets:{category:{apply:"Aplicar",unlock:"Desbloquear",lock:"Bloquear",clear:"Limpiar",noResults:"Sin resultados",noResultsMessage:'Su búsqueda "{searchValue}" no coincide con ningún valor.',cancel:"Cancelar",searchInfo:"Buscar en {elements} elementos",selectedItems:"{items, plural, one {# seleccionado} other {# seleccionados}}",all:"Todos",search:"Buscar"},bar:{all:"Todos",selectedItems:"{items, plural, one {# seleccionado} other {# seleccionados}}",clear:"Limpiar"},histogram:{all:"Todos",selectedItems:"{items} seleccionados",clear:"Limpiar"},legend:{layerOptions:"Opciones de capa",hide:"Ocultar",show:"Mostrar",layer:"capa",opacity:"Opacidad",hideLayer:"Ocultar capa",showLayer:"Mostrar capa",open:"Abrir leyenda",close:"Cerrar",collapse:"Colapsar capa",expand:"Expandir capa",zoomLevel:"Nivel de zoom",zoomLevelTooltip:"Esta capa solo es visible a ciertos niveles de zoom",lowerThan:"menor que",greaterThan:"mayor que",and:"y",zoomNote:"Nota: esta capa se mostrará a un nivel de zoom",notSupported:"no es un tipo de leyenda conocido",subtitles:{proportion:"Tamaño basado en",icon:"Icono basado en",strokeColor:"Color del borde basado en",color:"Color basado en"},max:"Max",min:"Min"},range:{clear:"Limpiar",minLimit:"Límite mínimo",maxLimit:"Límite máximo",minValue:"Valor mínimo",maxValue:"Valor máximo"},table:{rowsPerPage:"Filas por página",of:"{from}–{to} de {count}",moreThan:"más de"},timeSeries:{speed:"Velocidad",clear:"Limpiar"},featureSelection:{drawPolygonMode:"Polígono",drawRectangleMode:"Rectángulo",drawPolygonByDraggingMode:"Herramienta Lazo",drawCircleFromCenterMode:"Círculo",edit:"Editar máscara",clickToEdit:"Haga clic en la máscara para editarla",clickToCreate:"Haga clic en el mapa para crear una máscara",selectTool:"Seleccionar un {label}",selectMode:"Seleccionar un modo",chooseSelectionMode:"Elegir un modo de selección",applyMask:"Aplicar máscara",clearMask:"Limpiar máscara",remove:"Eliminar",polygon:"Polígono",point:"Punto",lineString:"Línea"},pie:{clear:"Limpiar",selectedItems:"{items, plural, one {# seleccionado} other {# seleccionados}}",allSelected:"Todos seleccionados"},chartLegend:{next:"Página siguiente",prev:"Página anterior"}}}},Bn={c4r:{button:{cancel:"Cancel",leave:"Leave"},form:{selectAll:"Select all",selectNone:"None",allSelected:"All selected",noneSelected:"None selected",selected:"selected",add:"Add",filesSelected:"{count, plural, one{# file} other{# files}} selected",dragPlaceholder:"Drag and drop your {count, plural, one{file} other{files}} or click to browse",dragActivePlaceholder:"Drop your {count, plural, one{file} other{files}} here...",pagination:{noMorePages:"No more pages",prevPage:"Previous page",nextPage:"Next page"},startDate:"Start date",endDate:"End date",showPassword:"Show password",hidePassword:"Hide password",clearSelection:"Clear selection",chooseDate:"Choose date",startDateCalendar:"Start date calendar",endDateCalendar:"End date calendar",time:"Time"},dialog:{confirmation:{title:"Are you sure you want to leave?",content:"The changes you made will not be saved."}},widgets:{category:{apply:"Terapkan",unlock:"Buka kunci",lock:"Kunci",clear:"Bersihkan",noResults:"Tidak ada hasil",noResultsMessage:"Pencarian Anda {searchValue} tidak cocok dengan nilai apa pun.",cancel:"Batal",searchInfo:"Cari dalam {elements} elemen",selectedItems:"{items, plural, one{# terpilih} other{# terpilih}}",all:"Semua",search:"Cari"},bar:{all:"Semua",selectedItems:"{items, plural, one{# terpilih} other{# terpilih}}",clear:"Bersihkan"},histogram:{all:"Semua",selectedItems:"{items} terpilih",clear:"Bersihkan"},legend:{layerOptions:"Opsi Layer",hide:"Sembunyikan",show:"Tampilkan",layer:"layer",opacity:"Opasitas",hideLayer:"Sembunyikan layer",showLayer:"Tampilkan layer",open:"Buka legenda",close:"Tutup",collapse:"Ciutkan layer",expand:"Perluas layer",zoomLevel:"Tingkat Zoom",zoomLevelTooltip:"Layer ini hanya terlihat pada tingkat zoom tertentu",lowerThan:"lebih rendah dari",greaterThan:"lebih tinggi dari",and:"dan",zoomNote:"Catatan: layer ini akan ditampilkan pada tingkat zoom",notSupported:"bukan jenis legenda yang dikenal",subtitles:{proportion:"Rentang radius berdasarkan",icon:"Ikon berdasarkan",strokeColor:"Warna garis berdasarkan",color:"Warna berdasarkan"},max:"Maks",min:"Min",maxCategories:"Legenda terbatas pada {n} kategori"},range:{clear:"Bersihkan",minLimit:"batas minimum",maxLimit:"batas maksimum",minValue:"nilai minimum",maxValue:"nilai maksimum"},table:{rowsPerPage:"Baris per halaman",of:"{from}–{to} dari {count}",moreThan:"lebih dari"},timeSeries:{speed:"Kecepatan",clear:"Bersihkan"},featureSelection:{drawPolygonMode:"Poligon",drawRectangleMode:"Persegi panjang",drawPolygonByDraggingMode:"Alat lasso",drawCircleFromCenterMode:"Lingkaran",edit:"Edit masker",clickToEdit:"Klik pada masker untuk mengeditnya",clickToCreate:"Klik pada peta untuk membuat masker",selectTool:"Pilih {label}",selectMode:"Pilih mode",chooseSelectionMode:"Pilih mode seleksi",applyMask:"Terapkan masker",clearMask:"Bersihkan masker",remove:"Hapus",polygon:"Poligon",point:"Titik",lineString:"Garis",invalid:"Geometri tidak valid"},pie:{clear:"Bersihkan",selectedItems:"{items, plural, one{# terpilih} other{# terpilih}}",allSelected:"Semua terpilih"},chartLegend:{next:"Next page",prev:"Previous page"}}}},Ae={en:On,es:In,id:Bn};function kn(e){return Intl.getCanonicalLocales(e)}function V(e,n,t){if(t||arguments.length===2)for(var r=0,a=n.length,i;r<a;r++)(i||!(r in n))&&(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}var ie={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},Rn={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},ze=/-u(?:-[0-9a-z]{2,8})+/gi;function q(e,n,t){if(t===void 0&&(t=Error),!e)throw new t(n)}var Gn=838,se;function Nn(){var e,n;if(!se){var t=(n=(e=ie.supplemental.languageMatching["written-new"][0])===null||e===void 0?void 0:e.paradigmLocales)===null||n===void 0?void 0:n._locales.split(" "),r=ie.supplemental.languageMatching["written-new"].slice(1,5),a=ie.supplemental.languageMatching["written-new"].slice(5),i=a.map(function(s){var d=Object.keys(s)[0],c=s[d];return{supported:d,desired:c._desired,distance:+c._distance,oneway:c.oneway==="true"}},{});se={matches:i,matchVariables:r.reduce(function(s,d){var c=Object.keys(d)[0],_=d[c];return s[c.slice(1)]=_._value.split("+"),s},{}),paradigmLocales:V(V([],t,!0),t.map(function(s){return new Intl.Locale(s.replace(/_/g,"-")).maximize().toString()}),!0)}}return se}function W(e,n,t){var r=n.split("-"),a=r[0],i=r[1],s=r[2],d=!0;if(s&&s[0]==="$"){var c=s[1]!=="!",_=c?t[s.slice(1)]:t[s.slice(2)],y=_.map(function(f){return Rn[f]||[f]}).reduce(function(f,T){return V(V([],f,!0),T,!0)},[]);d&&(d=y.indexOf(e.region||"")>1==c)}else d&&(d=e.region?s==="*"||s===e.region:!0);return d&&(d=e.script?i==="*"||i===e.script:!0),d&&(d=e.language?a==="*"||a===e.language:!0),d}function Pe(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function de(e,n,t){for(var r=0,a=t.matches;r<a.length;r++){var i=a[r],s=W(e,i.desired,t.matchVariables)&&W(n,i.supported,t.matchVariables);if(!i.oneway&&!s&&(s=W(e,i.supported,t.matchVariables)&&W(n,i.desired,t.matchVariables)),s){var d=i.distance*10;return t.paradigmLocales.indexOf(Pe(e))>-1!=t.paradigmLocales.indexOf(Pe(n))>-1?d-1:d}}throw new Error("No matching distance found")}function Dn(e,n){var t=new Intl.Locale(e).maximize(),r=new Intl.Locale(n).maximize(),a={language:t.language,script:t.script||"",region:t.region||""},i={language:r.language,script:r.script||"",region:r.region||""},s=0,d=Nn();return a.language!==i.language&&(s+=de({language:t.language,script:"",region:""},{language:r.language,script:"",region:""},d)),a.script!==i.script&&(s+=de({language:t.language,script:a.script,region:""},{language:r.language,script:a.script,region:""},d)),a.region!==i.region&&(s+=de(a,i,d)),s}function xn(e,n,t){t===void 0&&(t=Gn);var r=1/0,a={matchedDesiredLocale:"",distances:{}};return e.forEach(function(i,s){a.distances[i]||(a.distances[i]={}),n.forEach(function(d){var c=Dn(i,d)+0+s*40;a.distances[i][d]=c,c<r&&(r=c,a.matchedDesiredLocale=i,a.matchedSupportedLocale=d)})}),r>=t&&(a.matchedDesiredLocale=void 0,a.matchedSupportedLocale=void 0),a}function qn(e,n,t){var r,a,i=[],s=n.reduce(function(c,_){var y=_.replace(ze,"");return i.push(y),c[y]=_,c},{}),d=xn(i,e);return d.matchedSupportedLocale&&d.matchedDesiredLocale&&(r=d.matchedSupportedLocale,a=s[d.matchedDesiredLocale].slice(d.matchedDesiredLocale.length)||void 0),r?{locale:r,extension:a}:{locale:t()}}function Un(e,n){for(var t=n;;){if(e.indexOf(t)>-1)return t;var r=t.lastIndexOf("-");if(!~r)return;r>=2&&t[r-2]==="-"&&(r-=2),t=t.slice(0,r)}}function Kn(e,n,t){for(var r={locale:""},a=0,i=n;a<i.length;a++){var s=i[a],d=s.replace(ze,""),c=Un(e,d);if(c)return r.locale=c,s!==d&&(r.extension=s.slice(d.length,s.length)),r}return r.locale=t(),r}function jn(e,n){q(n.length===2,"key must have 2 elements");var t=e.length,r="-".concat(n,"-"),a=e.indexOf(r);if(a!==-1){for(var i=a+4,s=i,d=i,c=!1;!c;){var _=e.indexOf("-",d),y=void 0;_===-1?y=t-d:y=_-d,y===2?c=!0:_===-1?(s=t,c=!0):(s=_,d=_+1)}return e.slice(i,s)}if(r="-".concat(n),a=e.indexOf(r),a!==-1&&a+3===t)return""}function Hn(e,n,t,r,a,i){var s=t.localeMatcher,d;s==="lookup"?d=Kn(Array.from(e),n,i):d=qn(Array.from(e),n,i);for(var c=d.locale,_={locale:"",dataLocale:c},y="-u",f=0,T=r;f<T.length;f++){var b=T[f];q(c in a,"Missing locale data for ".concat(c));var O=a[c];q(typeof O=="object"&&O!==null,"locale data ".concat(b," must be an object"));var E=O[b];q(Array.isArray(E),"keyLocaleData for ".concat(b," must be an array"));var C=E[0];q(typeof C=="string"||C===null,"value must be string or null but got ".concat(typeof C," in key ").concat(b));var A="";if(d.extension){var G=jn(d.extension,b);G!==void 0&&(G!==""?~E.indexOf(G)&&(C=G,A="-".concat(b,"-").concat(C)):~G.indexOf("true")&&(C="true",A="-".concat(b)))}if(b in t){var B=t[b];q(typeof B=="string"||typeof B>"u"||B===null,"optionsValue must be String, Undefined or Null"),~E.indexOf(B)&&B!==C&&(C=B,A="")}_[b]=C,y+=A}if(y.length>2){var U=c.indexOf("-x-");if(U===-1)c=c+y;else{var $=c.slice(0,U),Q=c.slice(U,c.length);c=$+y+Q}c=Intl.getCanonicalLocales(c)[0]}return _.locale=c,_}function zn(e,n,t,r){return Hn(n,kn(e),{localeMatcher:"best fit"},[],{},function(){return t}).locale}const ue="en";function We(e,n=""){return Object.keys(e).reduce((t,r)=>{const a=e[r],i=n?`${n}.${r}`:r;return typeof a=="string"?t[i]=a:Object.assign(t,We(a,i)),t},{})}function Wn(e,n){const t=Object.keys(n),r=zn([e],t,ue);return r||ue}const Zn=_e.createIntlCache(),Oe=new WeakMap,Vn=e=>{const n=(e==null?void 0:e.locale)||ue,t=Wn(n,Ae),r={...Ae[t]||{},...(e==null?void 0:e.messages)??{}},a=We(r);return _e.createIntl({locale:n,messages:a},Zn)},Fn=e=>{const n=Oe.get(e);if(n)return n;const t=Vn(e);return Oe.set(e,t),t};function Ze(e){return Fn(e)}const Yn=R.styled(R.Box)(({theme:e})=>({display:"flex",gap:e.spacing(.5),marginLeft:e.spacing(1)})),Ie=R.styled("div")(({theme:e})=>({"& .MuiIconButton-root:not(.Mui-disabled)":{color:e.palette.text.secondary}}));function Jn({count:e,page:n,rowsPerPage:t=10,onPageChange:r,lastPageTooltip:a}){const i=_e.useIntl(),s=Ze(i),d=O=>{r(O,n-1)},c=O=>{r(O,n+1)},_=n===Math.ceil(e/t)-1,y=n===0,f=s.formatMessage({id:"c4r.form.pagination.prevPage"}),T=s.formatMessage({id:"c4r.form.pagination.nextPage"}),b=s.formatMessage({id:"c4r.form.pagination.noMorePages"});return I.jsxs(Yn,{children:[I.jsx(R.Tooltip,{title:y?b:f,children:I.jsx(Ie,{children:I.jsx(R.IconButton,{onClick:d,disabled:n===0,"aria-label":f,children:I.jsx(he.KeyboardArrowLeftOutlined,{})})})}),I.jsx(R.Tooltip,{title:_?a??b:T,children:I.jsx(Ie,{children:I.jsx(R.IconButton,{onClick:c,disabled:n>=Math.ceil(e/t)-1,"aria-label":T.toLocaleLowerCase(),children:I.jsx(he.KeyboardArrowRightOutlined,{})})})})]})}exports.APPBAR_SIZE=Cn;exports.BREAKPOINTS=Tn;exports.ICON_SIZE_LARGE=bn;exports.ICON_SIZE_MEDIUM=En;exports.ICON_SIZE_SMALL=Mn;exports.PropTypes=D;exports.SPACING=He;exports.TablePaginationActions=Jn;exports.Typography=Pn;exports._extends=Z;exports.capitalize=De;exports.createEmptyBreakpointObject=ln;exports.createSpacing=je;exports.createUnaryUnit=xe;exports.deepmerge=ye;exports.getDefaultExportFromCjs=ke;exports.getPath=F;exports.getSpacing=H;exports.getStyleValue=ce;exports.getValue=Ue;exports.handleBreakpoints=pe;exports.margin=ge;exports.merge=Ne;exports.padding=we;exports.removeUnusedBreakpoints=yn;exports.responsivePropType=j;exports.style=fn;exports.useImperativeIntl=Ze;exports.values=fe;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DialogProps } from './types';
|
|
2
|
-
declare function Dialog({ nonModal, children, size, PaperProps, fullScreen, height, width, hasForm, 'aria-label': ariaLabel, 'data-testid': dataTestId, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default Dialog;
|
|
4
|
-
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,QAAQ,EACR,IAAc,EACd,UAAU,EACV,UAAU,EACV,MAAM,EACN,KAAK,EACL,OAAO,EACP,YAAY,EAAE,SAAS,EACvB,aAAa,EAAE,UAAU,EACzB,GAAG,KAAK,EACT,EAAE,WAAW,2CA0Cb;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogAlert.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAS,UAAU,EAAE,MAAM,cAAc,CAAA;AAmBhD,iBAAS,WAAW,CAAC,EACnB,QAAQ,EACR,QAAoB,EACpB,GAAG,UAAU,EACd,EAAE,UAAU,2CAMZ;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DialogConfirmationProps } from './types';
|
|
2
|
-
declare function DialogConfirmation({ children, onClickAway, actions, severity, opened, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...alertProps }: DialogConfirmationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default DialogConfirmation;
|
|
4
|
-
//# sourceMappingURL=DialogConfirmation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogConfirmation.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAiCjD,iBAAS,kBAAkB,CAAC,EAC1B,QAAQ,EACR,WAAW,EACX,OAAO,EACP,QAAoB,EACpB,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,UAAU,EACd,EAAE,uBAAuB,2CAuCzB;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DialogContentProps } from './types';
|
|
2
|
-
export declare const DialogContentPadded: import('@emotion/styled').StyledComponent<DialogContentProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
3
|
-
withAlert?: boolean;
|
|
4
|
-
}, {}, {}>;
|
|
5
|
-
declare function DialogContent({ children, scrollableContent, hasFooterAlert, withGutter, withBottomGutter, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default DialogContent;
|
|
7
|
-
//# sourceMappingURL=DialogContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogContent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AA4C5C,eAAO,MAAM,mBAAmB;gBAGlB,OAAO;UAOlB,CAAA;AAEH,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,UAAiB,EACjB,gBAAuB,EACvB,GAAG,KAAK,EACT,EAAE,kBAAkB,2CA2CpB;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DialogFooterProps } from './types';
|
|
2
|
-
export declare const DialogActions: import('@emotion/styled').StyledComponent<import('@mui/material').DialogActionsProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
3
|
-
hasAlert?: boolean;
|
|
4
|
-
}, {}, {}>;
|
|
5
|
-
declare function DialogFooter({ children, secondaryActions, alertContent, alertProps, dark, topContent, ...otherProps }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default DialogFooter;
|
|
7
|
-
//# sourceMappingURL=DialogFooter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogFooter.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAoD3C,eAAO,MAAM,aAAa;eAGb,OAAO;UAUjB,CAAA;AAOH,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,IAAI,EACJ,UAAU,EACV,GAAG,UAAU,EACd,EAAE,iBAAiB,2CA2BnB;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DialogHeaderProps } from './types';
|
|
2
|
-
declare function DialogHeader({ title, chipLabel, chipProps, children, onClose, secondaryActions, 'aria-label': ariaLabel, closeIcon, ...otherProps }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default DialogHeader;
|
|
4
|
-
//# sourceMappingURL=DialogHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogHeader.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAgC3C,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,EACP,gBAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,GAAG,UAAU,EACd,EAAE,iBAAiB,2CA6CnB;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DialogSize } from './types';
|
|
2
|
-
export declare const dialogDimensionsBySize: {
|
|
3
|
-
small: {
|
|
4
|
-
width: string;
|
|
5
|
-
maxWidth: string;
|
|
6
|
-
};
|
|
7
|
-
medium: {
|
|
8
|
-
width: string;
|
|
9
|
-
maxWidth: string;
|
|
10
|
-
};
|
|
11
|
-
large: {
|
|
12
|
-
width: string;
|
|
13
|
-
maxWidth: string;
|
|
14
|
-
minHeight: string;
|
|
15
|
-
};
|
|
16
|
-
xlarge: {
|
|
17
|
-
width: string;
|
|
18
|
-
height: string;
|
|
19
|
-
maxWidth: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
declare const DialogPaper: import('@emotion/styled').StyledComponent<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
23
|
-
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
24
|
-
}, "style" | "className" | "classes" | "children" | "sx" | "variant" | "elevation" | "square"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
25
|
-
size?: DialogSize;
|
|
26
|
-
fullScreen?: boolean;
|
|
27
|
-
height?: string;
|
|
28
|
-
width?: string;
|
|
29
|
-
hasForm?: boolean;
|
|
30
|
-
}, {}, {}>;
|
|
31
|
-
export default DialogPaper;
|
|
32
|
-
//# sourceMappingURL=DialogPaper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogPaper.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogPaper.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAgBpC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;CAmBlC,CAAA;AAED,QAAA,MAAM,WAAW;;;WAIR,UAAU;iBACJ,OAAO;aACX,MAAM;YACP,MAAM;cACJ,OAAO;UA4GlB,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DialogStepper.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/DialogStepper.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AA0F5C,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,WAAW,EACX,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAyCpB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { default as Dialog } from './Dialog';
|
|
2
|
-
export { default as DialogPaper, dialogDimensionsBySize } from './DialogPaper';
|
|
3
|
-
export { default as DialogHeader } from './DialogHeader';
|
|
4
|
-
export { default as DialogContent, DialogContentPadded } from './DialogContent';
|
|
5
|
-
export { default as DialogFooter, DialogActions } from './DialogFooter';
|
|
6
|
-
export { default as DialogAlert } from './DialogAlert';
|
|
7
|
-
export { default as DialogConfirmation } from './DialogConfirmation';
|
|
8
|
-
export { DialogStepper } from './DialogStepper';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|