@carto/meridian-ds 1.4.3-alpha-codemirror.5 → 1.4.3-alpha-tag.1

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/{Alert-mpNEqtBu.js → Alert-BAvr1f31.js} +1 -1
  3. package/dist/{Alert-Bcn_9-oO.cjs → Alert-DPGMxifE.cjs} +1 -1
  4. package/dist/TablePaginationActions-Bp1DCaIE.cjs +9 -0
  5. package/dist/{TablePaginationActions-Cj_BbjKR.js → TablePaginationActions-WZ3P4O35.js} +88 -106
  6. package/dist/components/index.cjs +1 -2
  7. package/dist/components/index.js +1373 -2213
  8. package/dist/custom-icons/index.cjs +1 -1
  9. package/dist/custom-icons/index.js +925 -878
  10. package/dist/theme/index.cjs +1 -1
  11. package/dist/theme/index.js +2 -2
  12. package/dist/types/components/molecules/Tag.d.ts +20 -0
  13. package/dist/types/components/molecules/Tag.d.ts.map +1 -0
  14. package/dist/types/components/molecules/index.d.ts +2 -0
  15. package/dist/types/components/molecules/index.d.ts.map +1 -1
  16. package/dist/types/components/organisms/index.d.ts +0 -2
  17. package/dist/types/components/organisms/index.d.ts.map +1 -1
  18. package/dist/types/localization/en.d.ts +0 -6
  19. package/dist/types/localization/en.d.ts.map +1 -1
  20. package/dist/types/localization/es.d.ts +0 -6
  21. package/dist/types/localization/es.d.ts.map +1 -1
  22. package/dist/types/localization/id.d.ts +0 -6
  23. package/dist/types/localization/id.d.ts.map +1 -1
  24. package/dist/types/localization/index.d.ts +0 -18
  25. package/dist/types/localization/index.d.ts.map +1 -1
  26. package/dist/widgets/index.cjs +1 -1
  27. package/dist/widgets/index.js +2 -2
  28. package/package.json +1 -6
  29. package/dist/OpenDiagonallyRight-BkCaUpcr.js +0 -56
  30. package/dist/OpenDiagonallyRight-DqSU7b6o.cjs +0 -1
  31. package/dist/TablePaginationActions-BfAn9gSh.cjs +0 -9
  32. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +0 -16
  33. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +0 -1
  34. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +0 -16
  35. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +0 -1
  36. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts +0 -10
  37. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts.map +0 -1
  38. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts +0 -8
  39. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts.map +0 -1
  40. package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +0 -4
  41. package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +0 -1
  42. package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +0 -12
  43. package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +0 -1
  44. package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts +0 -9
  45. package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +0 -1
  46. package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts +0 -26
  47. package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +0 -1
  48. package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts +0 -7
  49. package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +0 -1
  50. package/dist/types/components/organisms/CodeArea/index.d.ts +0 -9
  51. package/dist/types/components/organisms/CodeArea/index.d.ts.map +0 -1
  52. package/dist/types/components/organisms/CodeArea/types.d.ts +0 -38
  53. package/dist/types/components/organisms/CodeArea/types.d.ts.map +0 -1
  54. package/dist/types/components/organisms/CodeArea/utils.d.ts +0 -5
  55. package/dist/types/components/organisms/CodeArea/utils.d.ts.map +0 -1
@@ -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-BfAn9gSh.cjs"),jn=require("echarts-for-react"),wn=require("react-window"),Te=require("../SwatchSquare-C34ayL4L.cjs"),ee=require("@mui/icons-material"),bn=require("../Alert-Bcn_9-oO.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=[],In={},lt=e=>e;function kn(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">
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-Bp1DCaIE.cjs"),jn=require("echarts-for-react"),wn=require("react-window"),Te=require("../SwatchSquare-C34ayL4L.cjs"),ee=require("@mui/icons-material"),bn=require("../Alert-DPGMxifE.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=[],In={},lt=e=>e;function kn(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=In,yAxisData:i,selectedBars:r=Sn,series:s,colors:l,tooltip:a=!0,tooltipFormatter:p=kn,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(I=>n[I]??I),[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(),I=Z.useIntl(),T=j.useImperativeIntl(I),{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(k,O,G,R,H){const q={top:0};return H.contentSize[0]<H.viewSize[0]-k[0]?q.left=k[0]:q.right=H.viewSize[0]-k[0],q},formatter:k=>p(k,d)}),[S,a,p,d]),M=u.useMemo(()=>i.map(k=>te(h(c[k]??String(k)))),[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 k=[];return y?k=n.reduce((O,G)=>(G.forEach((R,H)=>O[H]=(O[H]??0)+(R??Number.MIN_SAFE_INTEGER)),O),[]):k=n.flat().map(O=>O??Number.MIN_SAFE_INTEGER),Math.max(...k)},[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:k=>k>=E?S.palette.black[60]:"transparent",...S.typography.overlineDelicate,formatter:k=>te(d(k))},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((k,O)=>({type:"bar",name:r[O]??"",animation:v,barMaxWidth:100,data:k.map((G,R)=>{const H=s.some(([F,Y=0])=>F===R&&Y===O),q=!!s.length&&!H;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([],[])},_=k=>{k.key==="Enter"&&V()},B=u.useCallback(k=>{if(l){const O=[...s],{dataIndex:G,componentIndex:R}=k,H=O.findIndex(([F,Y=0])=>G===F&&R===Y);H===-1?O.push([G,R]):O.splice(H,1);const q=O.map(([F,Y=0])=>({xAxis:i[F],serie:r[Y],yAxis:n[Y][F]}));l(b?O:O.map(F=>F[0]),q)}},[n,l,s,i,r,b]),$=u.useMemo(()=>m?{click:B}:{},[m,B]);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 Xe({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=[],Hn={},zn=e=>e,Ve=()=>{},Yn=e=>e.reduce((n,i)=>n+(i.value??0),0);function Vn({data:e,formatter:n=zn,labels:i=Hn,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),[I,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:B}=de(!!d),$=Z.useIntl(),k=j.useImperativeIntl($);function O(A){return f.reduce((z,U)=>(A.includes(U.name)&&z.push(U.name),z),[])}function G(A){if(A!==ue){let z;l.includes(A)?z=l.filter(U=>U!==A):z=[...l,A],a&&a(z)}}const R=()=>a([]),H=A=>{A.key==="Enter"&&R()},q=()=>{a([]),C([])},F=A=>{A.key==="Enter"&&q()},Y=()=>{C(O(l))},J=A=>{A.key==="Enter"&&Y()},ie=()=>{const A=O(M);a([...A]),C([...A]),D([]),S(!1),T("")},re=A=>{A.key==="Enter"&&ie()},W=()=>{T(""),S(!1)},X=A=>{if(A!==ue){let z;M.includes(A)?z=M.filter(U=>U!==A):z=[...M,A],D(z)}},K=A=>{A.currentTarget.scrollIntoView()},Q=A=>{T(A.currentTarget.value)},ge=()=>{S(!0),D([...l])},ve=u.useCallback(A=>{if(b)return I?A.filter(z=>{var se;if(!z.name)return!1;const U=String(z.name);return!!(U.toLowerCase().includes(I.toLowerCase())||(se=i[U])!=null&&se.toLowerCase().includes(I.toLowerCase()))}):A;if(w.length)return w.reduce((U,se)=>{const Ce=A.find(le=>le.name===se);return U.push({name:se,value:Ce?Ce.value:null}),U},[]);{const z=A.slice(0,r);if(z.length<A.length){const U={name:ue,value:p(A.slice(r))};return[...z,U]}else return z}},[w,i,r,I,b,p]),he=u.useCallback(()=>{const A=w.length;return A?e.length-A:e.length-r},[e,r,w]),it=u.useCallback(A=>A===ue?`Others ${h?"":`(${he()})`}`:i[String(A)]??String(A),[he,i,h]),hn=u.useCallback(A=>A>=v?A!=null?"100%":0:`${(A||0)*100/v}%`,[v]);u.useEffect(()=>{l.length===0&&C([])},[l]),u.useEffect(()=>{if(e){if(s===pe.RANKING){const A=[...e].sort((U,se)=>(se.value??0)-(U.value??0)),z=ve(A);z.length>0?x(z[0].value??0):x(1),m(z)}else if(s===pe.FIXED){x(Math.max(...e.map(z=>z.value??0)));const A=ve(e);m(A)}}},[w,ve,e,i,r,s,I,b]),u.useEffect(()=>{V&&(_.current=V)},[V]),u.useEffect(()=>{if(c)return _n({start:(_.current||[]).map(A=>({...A,value:A.value??0})),end:f.map(A=>({...A,value:A.value??0})),duration:500,drawFrame:A=>L(A),requestRef:P}),()=>{P.current&&cancelAnimationFrame(P.current)};L(f)},[c,f]),u.useEffect(()=>{b&&N.current&&N.current.focus()},[b,N]);function fn({data:A,onCategoryClick:z}){const U=n(A.value??0),[se,Ce]=u.useState(!1),le=u.useRef(null),ze=()=>{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(()=>(ze(),window.addEventListener("resize",ze),()=>{window.removeEventListener("resize",ze)}),[]);const yn=Ye=>{Ye.key==="Enter"&&z()},vn=!b&&l.length>0&&!l.includes(A.name);return t.jsxs(Nt,{container:!0,direction:"row",spacing:1,onClick:g?z:Ve,onKeyDown:g?yn:Ve,selectable:g,unselected:vn,name:A.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(A.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(A.name),disableHoverListener:!se,children:t.jsx($n,{variant:"body2",noWrap:!0,ref:le,children:it(A.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(A.value??0)}})})]})]})}if((e==null?void 0:e.length)===0||B)return t.jsx(Ot,{});const xn=({index:A,style:z})=>{const U=E[A];return U?t.jsx("div",{style:z,children:t.jsx(fn,{data:U,onCategoryClick:()=>b?X(U.name):G(U.name)})}):null},mn=()=>b?320:E.length<=r?E.length*38: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?k.formatMessage({id:"c4r.widgets.category.selectedItems"},{items:l.length}):k.formatMessage({id:"c4r.widgets.category.all"})}),b?t.jsx(Ae,{onClick:ie,onKeyDown:re,underline:"hover",tabIndex:0,"data-testid":"primaryApplyButton",children:k.formatMessage({id:"c4r.widgets.category.apply"})}):w.length>0?t.jsx(Ae,{onClick:q,onKeyDown:F,underline:"hover",tabIndex:0,children:k.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:Y,onKeyDown:J,underline:"hover",tabIndex:0,children:k.formatMessage({id:"c4r.widgets.category.lock"})}),t.jsx(o.Divider,{orientation:"vertical",flexItem:!0}),t.jsx(Ae,{onClick:R,onKeyDown:H,underline:"hover",tabIndex:0,children:k.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:k.formatMessage({id:"c4r.widgets.category.search"}),onChange:Q,onFocus:K,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:k.formatMessage({id:"c4r.widgets.category.cancel"})})]}),t.jsx(Dt,{container:!0,item:!0,children:E.length?t.jsx(wn.FixedSizeList,{outerElementType:u.forwardRef((A,z)=>t.jsx("div",{ref:z,"data-testid":"category-widget-list",...A})),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:k.formatMessage({id:"c4r.widgets.category.noResults"})}),t.jsx(j.Typography,{component:"p",variant:"caption",mb:2,children:k.formatMessage({id:"c4r.widgets.category.noResultsMessage"},{searchValue:I})})]})}),b&&t.jsx(pt,{size:"small",onClick:ie,children:k.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:k.formatMessage({id:"c4r.widgets.category.cancel"})})}):t.jsx(o.Box,{mt:1.5,children:t.jsx(o.Button,{"data-testid":"show-all-categories-button",size:"small",color:"primary",startIcon:t.jsx(Te.Search,{}),onClick:ge,children:k.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="-",Xn=e=>e;function Kn({data:e=Ee,formatter:n=Xn,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?Xe({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?Xe({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),I=!!y&&!!c,[T,w]=u.useState(),C=k=>w(k),M=u.useMemo(()=>ao(e,n,i,r),[e,n,i,r]),{onEvents:D,markAreaOptions:E}=Zn({data:M,filterable:I,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(k){return h(k,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:k=>{const O=te(s(k));return k===i?so(O):k===r?lo(O):O},color:x.palette.black[60]}}),[i,r,M.length,x,s]),N=u.useMemo(()=>{const k={margin:0,verticalAlign:"bottom",padding:[0,0,j.SPACING*1.25,0],inside:!0,color:R=>{const H=Math.max(...e.map(F=>F??Number.MIN_SAFE_INTEGER))||1;let q="transparent";return R>=H&&(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"?k: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 k=i===r&&M.filter(R=>R[2]!==0).length===1,G=(k?[M[0],M[M.length-1]]:M).map((R,H)=>{const F=p.length&&!p.includes(H)?x.palette.black[25]:x.palette.secondary.main;return{value:R,itemStyle:{color:F}}});return{type:"custom",cursor:"pointer",markArea:E,renderItem:function(R,H){const q=R.dataIndex===M.length-1,F=R.dataIndex===0,Y=G[R.dataIndex].itemStyle.color,J=H.value(0),ie=H.value(1),re=H.value(2),[W,X]=H.coord([J,re]),[K,Q]=H.size([ie-J,re]);return{type:"rect",shape:{x:k?W/10:W+(F?0:1),y:X,width:k?W-W/10:K-(q?0:1),height:Q},style:{fill:Y},...!Qn&&{emphasis:{style:{fill:o.darken(Y,.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]),B=p.reduce((k,O)=>k+=e[O]??0,0),$=k=>{k.key==="Enter"&&c([])};return S?t.jsx(Jn,{height:f}):t.jsxs("div",{children:[I&&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(B))}):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%"})),Io=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)})),ko=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 I,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,(I=d.current)==null?void 0:I.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(Io,{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(ko,{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 Ke="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=Ke,width:a=Ke,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),I=Z.useIntl(),T=j.useImperativeIntl(I),w=u.useMemo(()=>s||(_=>`${I.formatNumber(_,{maximumFractionDigits:2,minimumFractionDigits:2})}%`),[I,s]),C=u.useMemo(()=>{let _;return r&&(_=B=>r(B,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 B={..._},$=(d==null?void 0:d.length)&&!d.includes(B.name);return p!=null&&p[B.name]&&(B.name=p[B.name]),$?{...B,disabled:!0,itemStyle:{color:x.palette.black[25]}}:{...B,itemStyle:{color:B.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 B=[...d],{name:$}=b[_.dataIndex];if($===me)return;const k=B.indexOf($);k===-1?B.push($):B.splice(k,1),y(B)}},[b,y,d]),L=u.useCallback(_=>{if(y){const B=[...d],$=B.indexOf(_);$===-1?B.push(_):B.splice($,1),y(B)}},[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`
@@ -2,12 +2,12 @@ import { jsxs as v, 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, forwardRef as ei, createContext as ti, useContext as ni, useLayoutEffect as an, createRef as ii } from "react";
3
3
  import { useTheme as le, styled as m, Box as S, Skeleton as z, Grid as ae, Link as ye, darken as yt, Button as $e, Divider as wt, TextField as ot, InputAdornment as vt, Checkbox as ln, Tooltip as ue, IconButton as fe, debounce as ri, Slider as xt, TableCell as bt, Table as sn, TableHead as cn, TableRow as Je, TableBody as dn, TableContainer as un, TableSortLabel as oi, TablePagination as ai, Menu as kt, MenuItem as Pe, SvgIcon as je, lighten as pn, Typography as De, ClickAwayListener as li, ToggleButton as si, capitalize as gn, ListItem as ci, Chip as di, List as ui, Paper as hn, Popover as pi, Select as gi, ListItemText as hi, Collapse as St, Drawer as fi, Icon as mi, LinearProgress as yi } from "@mui/material";
4
4
  import { useIntl as se } from "react-intl";
5
- import { d as wi, u as ce, T as H, S as B, B as Mt, a as vi, b as pt } from "../TablePaginationActions-Cj_BbjKR.js";
5
+ import { d as wi, u as ce, T as H, S as B, B as Mt, a as vi, b as pt } from "../TablePaginationActions-WZ3P4O35.js";
6
6
  import xi from "echarts-for-react";
7
7
  import { FixedSizeList as bi } from "react-window";
8
8
  import { S as Qe, a as ki } from "../SwatchSquare-CVpwEFFV.js";
9
9
  import { ChevronLeft as Si, ChevronRight as Mi, KeyboardArrowDown as Ii, ErrorOutline as Ti, Cancel as Ci, VisibilityOutlined as Ai, VisibilityOffOutlined as Ei, ExpandLess as fn, ExpandMore as mn, Close as Li, LayersOutlined as Di, MoreVert as $i } from "@mui/icons-material";
10
- import { A as Pi } from "../Alert-mpNEqtBu.js";
10
+ import { A as Pi } from "../Alert-BAvr1f31.js";
11
11
  import { c as yn, a as Oi, b as wn } from "../paletteUtils-BEwZhrLg.js";
12
12
  function vn() {
13
13
  let e = !1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "1.4.3-alpha-codemirror.5",
3
+ "version": "1.4.3-alpha-tag.1",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -53,7 +53,6 @@
53
53
  "@testing-library/dom": "^10.4.0",
54
54
  "@testing-library/jest-dom": "^6.6.1",
55
55
  "@testing-library/react": "^16.0.1",
56
- "@types/codemirror": "^5.60.16",
57
56
  "@types/geojson": "7946.0.14",
58
57
  "@types/node": "22.10.2",
59
58
  "@types/react": "^18.3.11",
@@ -65,7 +64,6 @@
65
64
  "@vitejs/plugin-react-swc": "3.7.0",
66
65
  "@vitest/coverage-istanbul": "^2.1.3",
67
66
  "cartocolor": "5.0.2",
68
- "codemirror": "^5.65.19",
69
67
  "date-fns": "^2.29.1",
70
68
  "echarts": "5.6.0",
71
69
  "echarts-for-react": "3.0.2",
@@ -85,7 +83,6 @@
85
83
  "lint-staged": "15.2.9",
86
84
  "prettier": "3.3.3",
87
85
  "react": "18.3.1",
88
- "react-codemirror2": "^8.0.1",
89
86
  "react-dom": "18.3.1",
90
87
  "react-intl": "6.6.8",
91
88
  "react-window": "1.8.11",
@@ -101,11 +98,9 @@
101
98
  "@mui/material": ">=5.16.7",
102
99
  "@mui/x-date-pickers": "^7.11.0",
103
100
  "cartocolor": "5.0.2",
104
- "codemirror": ">=5.65.19",
105
101
  "echarts": ">=5.5.1",
106
102
  "echarts-for-react": ">=3.0.2",
107
103
  "react": ">=18.3.1",
108
- "react-codemirror2": ">=8.0.1",
109
104
  "react-dom": ">=18.3.1",
110
105
  "react-intl": ">=6.6.8",
111
106
  "react-window": ">=1.8.11"
@@ -1,56 +0,0 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as r } from "react";
3
- import { createSvgIcon as g } from "@mui/material/utils";
4
- const s = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ l(
5
- "path",
6
- {
7
- fill: "currentColor",
8
- fillRule: "evenodd",
9
- d: "m6.121 19.293 2.877-2.877V19H11v-6l-6 .007v1.994l2.584.001-2.877 2.877zM13 11l6-.007V8.999h-2.585l2.878-2.878-1.414-1.414L15 7.585V5H13z",
10
- clipRule: "evenodd"
11
- }
12
- ) }), a = g(s(), "CloseDiagonallyRight");
13
- function c({ width: o, height: n, sx: e, ...i }, t) {
14
- return /* @__PURE__ */ l(
15
- a,
16
- {
17
- ref: t,
18
- viewBox: "0 0 24 24",
19
- sx: {
20
- width: o,
21
- height: n || o,
22
- ...e
23
- },
24
- ...i
25
- }
26
- );
27
- }
28
- const m = r(c), v = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ l(
29
- "path",
30
- {
31
- fill: "currentColor",
32
- fillRule: "evenodd",
33
- d: "m14.121 11.293 2.877-2.877V11H19V5l-6 .007v1.994l2.584.001-2.877 2.877zM5 19l6-.007v-1.994H8.415l2.878-2.878-1.414-1.414L7 15.585V13H5z",
34
- clipRule: "evenodd"
35
- }
36
- ) }), h = g(v(), "OpenDiagonallyRight");
37
- function f({ width: o, height: n, sx: e, ...i }, t) {
38
- return /* @__PURE__ */ l(
39
- h,
40
- {
41
- ref: t,
42
- viewBox: "0 0 24 24",
43
- sx: {
44
- width: o,
45
- height: n || o,
46
- ...e
47
- },
48
- ...i
49
- }
50
- );
51
- }
52
- const u = r(f);
53
- export {
54
- m as C,
55
- u as O
56
- };
@@ -1 +0,0 @@
1
- "use strict";const l=require("react/jsx-runtime"),s=require("react"),g=require("@mui/material/utils"),c=()=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",children:l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m6.121 19.293 2.877-2.877V19H11v-6l-6 .007v1.994l2.584.001-2.877 2.877zM13 11l6-.007V8.999h-2.585l2.878-2.878-1.414-1.414L15 7.585V5H13z",clipRule:"evenodd"})}),r=g.createSvgIcon(c(),"CloseDiagonallyRight");function a({width:e,height:n,sx:o,...i},t){return l.jsx(r,{ref:t,viewBox:"0 0 24 24",sx:{width:e,height:n||e,...o},...i})}const v=s.forwardRef(a),h=()=>l.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",children:l.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m14.121 11.293 2.877-2.877V11H19V5l-6 .007v1.994l2.584.001-2.877 2.877zM5 19l6-.007v-1.994H8.415l2.878-2.878-1.414-1.414L7 15.585V13H5z",clipRule:"evenodd"})}),u=g.createSvgIcon(h(),"OpenDiagonallyRight");function R({width:e,height:n,sx:o,...i},t){return l.jsx(u,{ref:t,viewBox:"0 0 24 24",sx:{width:e,height:n||e,...o},...i})}const x=s.forwardRef(R);exports.CloseDiagonallyRight=v;exports.OpenDiagonallyRight=x;
@@ -1,9 +0,0 @@
1
- "use strict";const he=require("react-is"),O=require("react/jsx-runtime"),B=require("@mui/material"),De=require("react"),oe=require("@mui/icons-material"),te=require("react-intl");function ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ae={exports:{}};/*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */var W,ce;function xe(){if(ce)return W;ce=1;var e=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function d(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},o=0;o<10;o++)s["_"+String.fromCharCode(o)]=o;var u=Object.getOwnPropertyNames(s).map(function(l){return s[l]});if(u.join("")!=="0123456789")return!1;var y={};return"abcdefghijklmnopqrst".split("").forEach(function(l){y[l]=l}),Object.keys(Object.assign({},y)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return W=d()?Object.assign:function(a,s){for(var o,u=n(a),y,l=1;l<arguments.length;l++){o=Object(arguments[l]);for(var S in o)i.call(o,S)&&(u[S]=o[S]);if(e){y=e(o);for(var M=0;M<y.length;M++)r.call(o,y[M])&&(u[y[M]]=o[y[M]])}}return u},W}var Z,ue;function ie(){if(ue)return Z;ue=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Z=e,Z}var Y,_e;function Se(){return _e||(_e=1,Y=Function.call.bind(Object.prototype.hasOwnProperty)),Y}var J,le;function qe(){if(le)return J;le=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var i=ie(),r={},n=Se();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function d(a,s,o,u,y){if(process.env.NODE_ENV!=="production"){for(var l in a)if(n(a,l)){var S;try{if(typeof a[l]!="function"){var M=Error((u||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}S=a[l](s,l,u,o,null,i)}catch(I){S=I}if(S&&!(S instanceof Error)&&e((u||"React class")+": type specification of "+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof S+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),S instanceof Error&&!(S.message in r)){r[S.message]=!0;var E=y?y():"";e("Failed "+o+" type: "+S.message+(E??""))}}}}return d.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},J=d,J}var $,ye;function Ke(){if(ye)return $;ye=1;var e=he,i=xe(),r=ie(),n=Se(),d=qe(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return $=function(o,u){var y=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function S(t){var c=t&&(y&&t[y]||t[l]);if(typeof c=="function")return c}var M="<<anonymous>>",E={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:k,element:x(),elementType:z(),instanceOf:F,node:Oe(),objectOf:Pe,oneOf:Ae,oneOfType:Ie,shape:ke,exact:Re};function I(t,c){return t===c?t!==0||1/t===1/c:t!==t&&c!==c}function C(t,c){this.message=t,this.data=c&&typeof c=="object"?c:{},this.stack=""}C.prototype=Error.prototype;function L(t){if(process.env.NODE_ENV!=="production")var c={},g=0;function f(m,p,w,h,T,v,P){if(h=h||M,v=v||w,P!==r){if(u){var b=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 b.name="Invariant Violation",b}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var N=h+":"+w;!c[N]&&g<3&&(a("You are manually calling a React.PropTypes validation function for the `"+v+"` prop on `"+h+"`. 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."),c[N]=!0,g++)}}return p[w]==null?m?p[w]===null?new C("The "+T+" `"+v+"` is marked as required "+("in `"+h+"`, but its value is `null`.")):new C("The "+T+" `"+v+"` is marked as required in "+("`"+h+"`, but its value is `undefined`.")):null:t(p,w,h,T,v)}var _=f.bind(null,!1);return _.isRequired=f.bind(null,!0),_}function A(t){function c(g,f,_,m,p,w){var h=g[f],T=R(h);if(T!==t){var v=q(h);return new C("Invalid "+m+" `"+p+"` of type "+("`"+v+"` supplied to `"+_+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return L(c)}function G(){return L(s)}function k(t){function c(g,f,_,m,p){if(typeof t!="function")return new C("Property `"+p+"` of component `"+_+"` has invalid PropType notation inside arrayOf.");var w=g[f];if(!Array.isArray(w)){var h=R(w);return new C("Invalid "+m+" `"+p+"` of type "+("`"+h+"` supplied to `"+_+"`, expected an array."))}for(var T=0;T<w.length;T++){var v=t(w,T,_,m,p+"["+T+"]",r);if(v instanceof Error)return v}return null}return L(c)}function x(){function t(c,g,f,_,m){var p=c[g];if(!o(p)){var w=R(p);return new C("Invalid "+_+" `"+m+"` of type "+("`"+w+"` supplied to `"+f+"`, expected a single ReactElement."))}return null}return L(t)}function z(){function t(c,g,f,_,m){var p=c[g];if(!e.isValidElementType(p)){var w=R(p);return new C("Invalid "+_+" `"+m+"` of type "+("`"+w+"` supplied to `"+f+"`, expected a single ReactElement type."))}return null}return L(t)}function F(t){function c(g,f,_,m,p){if(!(g[f]instanceof t)){var w=t.name||M,h=Ne(g[f]);return new C("Invalid "+m+" `"+p+"` of type "+("`"+h+"` supplied to `"+_+"`, expected ")+("instance of `"+w+"`."))}return null}return L(c)}function Ae(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function c(g,f,_,m,p){for(var w=g[f],h=0;h<t.length;h++)if(I(w,t[h]))return null;var T=JSON.stringify(t,function(P,b){var N=q(b);return N==="symbol"?String(b):b});return new C("Invalid "+m+" `"+p+"` of value `"+String(w)+"` "+("supplied to `"+_+"`, expected one of "+T+"."))}return L(c)}function Pe(t){function c(g,f,_,m,p){if(typeof t!="function")return new C("Property `"+p+"` of component `"+_+"` has invalid PropType notation inside objectOf.");var w=g[f],h=R(w);if(h!=="object")return new C("Invalid "+m+" `"+p+"` of type "+("`"+h+"` supplied to `"+_+"`, expected an object."));for(var T in w)if(n(w,T)){var v=t(w,T,_,m,p+"."+T,r);if(v instanceof Error)return v}return null}return L(c)}function Ie(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var c=0;c<t.length;c++){var g=t[c];if(typeof g!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ge(g)+" at index "+c+"."),s}function f(_,m,p,w,h){for(var T=[],v=0;v<t.length;v++){var P=t[v],b=P(_,m,p,w,h,r);if(b==null)return null;b.data&&n(b.data,"expectedType")&&T.push(b.data.expectedType)}var N=T.length>0?", expected one of type ["+T.join(", ")+"]":"";return new C("Invalid "+w+" `"+h+"` supplied to "+("`"+p+"`"+N+"."))}return L(f)}function Oe(){function t(c,g,f,_,m){return H(c[g])?null:new C("Invalid "+_+" `"+m+"` supplied to "+("`"+f+"`, expected a ReactNode."))}return L(t)}function de(t,c,g,f,_){return new C((t||"React class")+": "+c+" type `"+g+"."+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+_+"`.")}function ke(t){function c(g,f,_,m,p){var w=g[f],h=R(w);if(h!=="object")return new C("Invalid "+m+" `"+p+"` of type `"+h+"` "+("supplied to `"+_+"`, expected `object`."));for(var T in t){var v=t[T];if(typeof v!="function")return de(_,m,p,T,q(v));var P=v(w,T,_,m,p+"."+T,r);if(P)return P}return null}return L(c)}function Re(t){function c(g,f,_,m,p){var w=g[f],h=R(w);if(h!=="object")return new C("Invalid "+m+" `"+p+"` of type `"+h+"` "+("supplied to `"+_+"`, expected `object`."));var T=i({},g[f],t);for(var v in T){var P=t[v];if(n(t,v)&&typeof P!="function")return de(_,m,p,v,q(P));if(!P)return new C("Invalid "+m+" `"+p+"` key `"+v+"` supplied to `"+_+"`.\nBad object: "+JSON.stringify(g[f],null," ")+`
6
- Valid keys: `+JSON.stringify(Object.keys(t),null," "));var b=P(w,v,_,m,p+"."+v,r);if(b)return b}return null}return L(c)}function H(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(H);if(t===null||o(t))return!0;var c=S(t);if(c){var g=c.call(t),f;if(c!==t.entries){for(;!(f=g.next()).done;)if(!H(f.value))return!1}else for(;!(f=g.next()).done;){var _=f.value;if(_&&!H(_[1]))return!1}}else return!1;return!0;default:return!1}}function Be(t,c){return t==="symbol"?!0:c?c["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&c instanceof Symbol:!1}function R(t){var c=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":Be(c,t)?"symbol":c}function q(t){if(typeof t>"u"||t===null)return""+t;var c=R(t);if(c==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return c}function Ge(t){var c=q(t);switch(c){case"array":case"object":return"an "+c;case"boolean":case"date":case"regexp":return"a "+c;default:return c}}function Ne(t){return!t.constructor||!t.constructor.name?M:t.constructor.name}return E.checkPropTypes=d,E.resetWarningCache=d.resetWarningCache,E.PropTypes=E,E},$}var Q,pe;function Ue(){if(pe)return Q;pe=1;var e=ie();function i(){}function r(){}return r.resetWarningCache=i,Q=function(){function n(s,o,u,y,l,S){if(S!==e){var M=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 M.name="Invariant Violation",M}}n.isRequired=n;function d(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:d,element:n,elementType:n,instanceOf:d,node:n,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:r,resetWarningCache:i};return a.PropTypes=a,a},Q}if(process.env.NODE_ENV!=="production"){var He=he,je=!0;ae.exports=Ke()(He.isElement,je)}else ae.exports=Ue()();var Ve=ae.exports;const K=ve(Ve),se=process.env.NODE_ENV!=="production"?K.oneOfType([K.number,K.string,K.object,K.array]):{};function ze(e,i,r=!0){if(e&&e.vars&&r){const n=`vars.${i}`.split(".").reduce((d,a)=>d&&d[a]?d[a]:null,e);if(n!=null)return n}return i.split(".").reduce((n,d)=>n&&n[d]!=null?n[d]:null,e)}const Te=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Me=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Fe=[...Te,...Me];function We(e,i,r,n){var d;const a=(d=ze(e,i,!1))!=null?d:r;return typeof a=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),a*s):Array.isArray(a)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>a.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${s} > ${a.length-1}, you need to add the missing values.`].join(`
7
- `)):console.error([`MUI: The \`theme.${i}\` 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.${i}\` as a number.`].join(`
8
- `))),a[s]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${i}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
9
- `)),()=>{})}function Ze(e){return We(e,"spacing",8,"spacing")}process.env.NODE_ENV!=="production"&&Te.reduce((e,i)=>(e[i]=se,e),{});process.env.NODE_ENV!=="production"&&Me.reduce((e,i)=>(e[i]=se,e),{});process.env.NODE_ENV!=="production"&&Fe.reduce((e,i)=>(e[i]=se,e),{});function Ye(e=8){if(e.mui)return e;const i=Ze({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const s=i(a);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}const Ce=8,Je={XS:320,SM:600,MD:960,LG:1280,XL:1600},U=Ye(Ce),$e=U(1.5),Qe=U(2.25),Xe=U(3),en=U(6),nn=6e3,an={regular:400,medium:500,strong:600};function rn({italic:e,weight:i,style:r,children:n,...d},a){const s={fontWeight:an[i],fontStyle:e?"italic":void 0};return O.jsx(B.Typography,{...d,ref:a,style:{...s,...r},"data-name":"typography",children:n})}const tn=De.forwardRef(rn),sn={c4r:{button:{cancel:"Cancel",leave:"Leave",keepEditing:"Keep editing",close:"Close",expand:"Expand",copy:"Copy",save:"Save",add:"Add",showOptions:"Show options"},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."}},notifications:{changesSaved:"Changes saved successfully",copiedToClipboard:"Copied to clipboard"},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"}}}},dn={c4r:{button:{cancel:"Cancelar",leave:"Salir",keepEditing:"Seguir editando",close:"Cerrar",expand:"Expandir",copy:"Copiar",save:"Guardar",add:"Añadir",showOptions:"Mostrar opciones"},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."}},notifications:{changesSaved:"Cambios guardados correctamente",copiedToClipboard:"Copiado al portapapeles"},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"}}}},on={c4r:{button:{cancel:"Batal",leave:"Keluar",keepEditing:"Terus mengedit",close:"Tutup",expand:"Perluas",copy:"Salin",save:"Simpan",add:"Tambah",showOptions:"Tampilkan opsi"},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."}},notifications:{changesSaved:"Changes saved successfully",copiedToClipboard:"Tersalin ke clipboard"},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"}}}},fe={en:sn,es:dn,id:on};function cn(e){return Intl.getCanonicalLocales(e)}function V(e,i,r){if(r||arguments.length===2)for(var n=0,d=i.length,a;n<d;n++)(a||!(n in i))&&(a||(a=Array.prototype.slice.call(i,0,n)),a[n]=i[n]);return e.concat(a||Array.prototype.slice.call(i))}var X={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"}}]}}},un={"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"]},Ee=/-u(?:-[0-9a-z]{2,8})+/gi;function D(e,i,r){if(r===void 0&&(r=Error),!e)throw new r(i)}var _n=838,ee;function ln(){var e,i;if(!ee){var r=(i=(e=X.supplemental.languageMatching["written-new"][0])===null||e===void 0?void 0:e.paradigmLocales)===null||i===void 0?void 0:i._locales.split(" "),n=X.supplemental.languageMatching["written-new"].slice(1,5),d=X.supplemental.languageMatching["written-new"].slice(5),a=d.map(function(s){var o=Object.keys(s)[0],u=s[o];return{supported:o,desired:u._desired,distance:+u._distance,oneway:u.oneway==="true"}},{});ee={matches:a,matchVariables:n.reduce(function(s,o){var u=Object.keys(o)[0],y=o[u];return s[u.slice(1)]=y._value.split("+"),s},{}),paradigmLocales:V(V([],r,!0),r.map(function(s){return new Intl.Locale(s.replace(/_/g,"-")).maximize().toString()}),!0)}}return ee}function j(e,i,r){var n=i.split("-"),d=n[0],a=n[1],s=n[2],o=!0;if(s&&s[0]==="$"){var u=s[1]!=="!",y=u?r[s.slice(1)]:r[s.slice(2)],l=y.map(function(S){return un[S]||[S]}).reduce(function(S,M){return V(V([],S,!0),M,!0)},[]);o&&(o=l.indexOf(e.region||"")>1==u)}else o&&(o=e.region?s==="*"||s===e.region:!0);return o&&(o=e.script?a==="*"||a===e.script:!0),o&&(o=e.language?d==="*"||d===e.language:!0),o}function we(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function ne(e,i,r){for(var n=0,d=r.matches;n<d.length;n++){var a=d[n],s=j(e,a.desired,r.matchVariables)&&j(i,a.supported,r.matchVariables);if(!a.oneway&&!s&&(s=j(e,a.supported,r.matchVariables)&&j(i,a.desired,r.matchVariables)),s){var o=a.distance*10;return r.paradigmLocales.indexOf(we(e))>-1!=r.paradigmLocales.indexOf(we(i))>-1?o-1:o}}throw new Error("No matching distance found")}function yn(e,i){var r=new Intl.Locale(e).maximize(),n=new Intl.Locale(i).maximize(),d={language:r.language,script:r.script||"",region:r.region||""},a={language:n.language,script:n.script||"",region:n.region||""},s=0,o=ln();return d.language!==a.language&&(s+=ne({language:r.language,script:"",region:""},{language:n.language,script:"",region:""},o)),d.script!==a.script&&(s+=ne({language:r.language,script:d.script,region:""},{language:n.language,script:d.script,region:""},o)),d.region!==a.region&&(s+=ne(d,a,o)),s}function pn(e,i,r){r===void 0&&(r=_n);var n=1/0,d={matchedDesiredLocale:"",distances:{}};return e.forEach(function(a,s){d.distances[a]||(d.distances[a]={}),i.forEach(function(o){var u=yn(a,o)+0+s*40;d.distances[a][o]=u,u<n&&(n=u,d.matchedDesiredLocale=a,d.matchedSupportedLocale=o)})}),n>=r&&(d.matchedDesiredLocale=void 0,d.matchedSupportedLocale=void 0),d}function fn(e,i,r){var n,d,a=[],s=i.reduce(function(u,y){var l=y.replace(Ee,"");return a.push(l),u[l]=y,u},{}),o=pn(a,e);return o.matchedSupportedLocale&&o.matchedDesiredLocale&&(n=o.matchedSupportedLocale,d=s[o.matchedDesiredLocale].slice(o.matchedDesiredLocale.length)||void 0),n?{locale:n,extension:d}:{locale:r()}}function wn(e,i){for(var r=i;;){if(e.indexOf(r)>-1)return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&r[n-2]==="-"&&(n-=2),r=r.slice(0,n)}}function gn(e,i,r){for(var n={locale:""},d=0,a=i;d<a.length;d++){var s=a[d],o=s.replace(Ee,""),u=wn(e,o);if(u)return n.locale=u,s!==o&&(n.extension=s.slice(o.length,s.length)),n}return n.locale=r(),n}function mn(e,i){D(i.length===2,"key must have 2 elements");var r=e.length,n="-".concat(i,"-"),d=e.indexOf(n);if(d!==-1){for(var a=d+4,s=a,o=a,u=!1;!u;){var y=e.indexOf("-",o),l=void 0;y===-1?l=r-o:l=y-o,l===2?u=!0:y===-1?(s=r,u=!0):(s=y,o=y+1)}return e.slice(a,s)}if(n="-".concat(i),d=e.indexOf(n),d!==-1&&d+3===r)return""}function hn(e,i,r,n,d,a){var s=r.localeMatcher,o;s==="lookup"?o=gn(Array.from(e),i,a):o=fn(Array.from(e),i,a);for(var u=o.locale,y={locale:"",dataLocale:u},l="-u",S=0,M=n;S<M.length;S++){var E=M[S];D(u in d,"Missing locale data for ".concat(u));var I=d[u];D(typeof I=="object"&&I!==null,"locale data ".concat(E," must be an object"));var C=I[E];D(Array.isArray(C),"keyLocaleData for ".concat(E," must be an array"));var L=C[0];D(typeof L=="string"||L===null,"value must be string or null but got ".concat(typeof L," in key ").concat(E));var A="";if(o.extension){var G=mn(o.extension,E);G!==void 0&&(G!==""?~C.indexOf(G)&&(L=G,A="-".concat(E,"-").concat(L)):~G.indexOf("true")&&(L="true",A="-".concat(E)))}if(E in r){var k=r[E];D(typeof k=="string"||typeof k>"u"||k===null,"optionsValue must be String, Undefined or Null"),~C.indexOf(k)&&k!==L&&(L=k,A="")}y[E]=L,l+=A}if(l.length>2){var x=u.indexOf("-x-");if(x===-1)u=u+l;else{var z=u.slice(0,x),F=u.slice(x,u.length);u=z+l+F}u=Intl.getCanonicalLocales(u)[0]}return y.locale=u,y}function vn(e,i,r,n){return hn(i,cn(e),{localeMatcher:"best fit"},[],{},function(){return r}).locale}const re="en";function Le(e,i=""){return Object.keys(e).reduce((r,n)=>{const d=e[n],a=i?`${i}.${n}`:n;return typeof d=="string"?r[a]=d:Object.assign(r,Le(d,a)),r},{})}function Sn(e,i){const r=Object.keys(i),n=vn([e],r,re);return n||re}const Tn=te.createIntlCache(),ge=new WeakMap,Mn=e=>{const i=(e==null?void 0:e.locale)||re,r=Sn(i,fe),n={...fe[r]||{},...(e==null?void 0:e.messages)??{}},d=Le(n);return te.createIntl({locale:i,messages:d},Tn)},Cn=e=>{const i=ge.get(e);if(i)return i;const r=Mn(e);return ge.set(e,r),r};function be(e){return Cn(e)}const En=B.styled(B.Box)(({theme:e})=>({display:"flex",gap:e.spacing(.5),marginLeft:e.spacing(1)})),me=B.styled("div")(({theme:e})=>({"& .MuiIconButton-root:not(.Mui-disabled)":{color:e.palette.text.secondary}}));function Ln({count:e,page:i,rowsPerPage:r=10,onPageChange:n,lastPageTooltip:d}){const a=te.useIntl(),s=be(a),o=I=>{n(I,i-1)},u=I=>{n(I,i+1)},y=i===Math.ceil(e/r)-1,l=i===0,S=s.formatMessage({id:"c4r.form.pagination.prevPage"}),M=s.formatMessage({id:"c4r.form.pagination.nextPage"}),E=s.formatMessage({id:"c4r.form.pagination.noMorePages"});return O.jsxs(En,{children:[O.jsx(B.Tooltip,{title:l?E:S,children:O.jsx(me,{children:O.jsx(B.IconButton,{onClick:o,disabled:i===0,"aria-label":S,children:O.jsx(oe.KeyboardArrowLeftOutlined,{})})})}),O.jsx(B.Tooltip,{title:y?d??E:M,children:O.jsx(me,{children:O.jsx(B.IconButton,{onClick:u,disabled:i>=Math.ceil(e/r)-1,"aria-label":M.toLocaleLowerCase(),children:O.jsx(oe.KeyboardArrowRightOutlined,{})})})})]})}exports.APPBAR_SIZE=en;exports.BREAKPOINTS=Je;exports.ICON_SIZE_LARGE=Xe;exports.ICON_SIZE_MEDIUM=Qe;exports.ICON_SIZE_SMALL=$e;exports.NOTIFICATION_DURATION_IN_MS=nn;exports.SPACING=Ce;exports.TablePaginationActions=Ln;exports.Typography=tn;exports.getDefaultExportFromCjs=ve;exports.getSpacing=U;exports.useImperativeIntl=be;
@@ -1,16 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { CodeAreaProps } from '../types';
3
- interface CodeAreaDialogProps extends CodeAreaProps {
4
- open: boolean;
5
- onClose: () => void;
6
- title?: string | ReactNode;
7
- showConfirmation?: boolean;
8
- onCancelConfirm?: () => void;
9
- onCloseConfirm?: () => void;
10
- footerProps?: object;
11
- 'data-testid'?: string;
12
- 'aria-label'?: string;
13
- }
14
- export default function CodeAreaDialog({ open, onClose, title, error, helperText, onClickFooter, disabledButtonFooter, labelIdButtonFooter, disabled, showConfirmation, onCancelConfirm, onCloseConfirm, footerProps, saveLoading, showSaveSnackbar, onCloseSaveSnackbar, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...props }: CodeAreaDialogProps): import("react/jsx-runtime").JSX.Element | null;
15
- export {};
16
- //# sourceMappingURL=CodeAreaDialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,UAAU,mBAAoB,SAAQ,aAAa;IACjD,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,IAAI,EACJ,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,mBAAmB,kDAgErB"}
@@ -1,16 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { CartoAlertSeverity } from '../../..';
3
- interface Props {
4
- onClose?: () => void;
5
- onCancel?: () => void;
6
- cancelButton?: ReactNode;
7
- closeButton?: ReactNode;
8
- cancelLabelId?: string;
9
- contentLabelId?: string;
10
- titleLabelId?: string;
11
- severity?: CartoAlertSeverity;
12
- content?: ReactNode;
13
- }
14
- declare function CodeAreaDialogConfirmation({ onClose, onCancel, cancelLabelId, cancelButton, closeButton, contentLabelId, titleLabelId, severity, content, }: Props): import("react/jsx-runtime").JSX.Element | null;
15
- export default CodeAreaDialogConfirmation;
16
- //# sourceMappingURL=CodeAreaDialogConfirmation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaDialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,EAAU,kBAAkB,EAAsB,MAAM,cAAc,CAAA;AAE7E,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,OAAO,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,0BAA0B,CAAC,EAClC,OAAO,EACP,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,WAAW,EACX,cAAc,EACd,YAAY,EACZ,QAAoB,EACpB,OAAO,GACR,EAAE,KAAK,kDA+CP;AAED,eAAe,0BAA0B,CAAA"}
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- interface CodeAreaDialogContentProps {
3
- children: string | ReactNode;
4
- error?: boolean;
5
- withBorder?: boolean;
6
- withGutter?: boolean;
7
- }
8
- export default function CodeAreaDialogContent({ children, error, withBorder, withGutter, }: CodeAreaDialogContentProps): import("react/jsx-runtime").JSX.Element | null;
9
- export {};
10
- //# sourceMappingURL=CodeAreaDialogContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaDialogContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA8BjC,UAAU,0BAA0B;IAClC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,QAAQ,EACR,KAAK,EACL,UAAiB,EACjB,UAAkB,GACnB,EAAE,0BAA0B,kDAQ5B"}
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- interface CodeAreaDialogErrorProps {
3
- children: string | ReactNode;
4
- hasDivider?: boolean;
5
- }
6
- export default function CodeAreaDialogError({ children, hasDivider, }: CodeAreaDialogErrorProps): import("react/jsx-runtime").JSX.Element | null;
7
- export {};
8
- //# sourceMappingURL=CodeAreaDialogError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaDialogError.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA2CjC,UAAU,wBAAwB;IAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,QAAQ,EACR,UAAU,GACX,EAAE,wBAAwB,kDAiB1B"}
@@ -1,4 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { CodeAreaProps } from './types';
3
- export default function CodeAreaField({ value, defaultValue, validate, onChange, onBlur, onFocus, label, labelHelpTooltip, placeholder, type, disabled, copyValue, helperText, error, size, variant, onClickExpand, onClickFooter, disabledButtonFooter, labelIdButtonFooter, options, id, saveLoading, showSaveSnackbar, onCloseSaveSnackbar, fullScreen, isExpanded, ...props }: PropsWithChildren<CodeAreaProps>): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=CodeAreaField.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaField.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAA;AAgBnD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAgMvC,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,KAAK,EACL,gBAAgB,EAChB,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,KAAK,EACL,IAAc,EACd,OAAoB,EACpB,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,OAAO,EACP,EAAsB,EACtB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,aAAa,CAAC,2CAqGlC"}
@@ -1,12 +0,0 @@
1
- import { ButtonProps } from '../../atoms';
2
- interface Props extends ButtonProps {
3
- labelIdButtonFooter?: string;
4
- disabledButtonFooter?: boolean;
5
- withGutter?: boolean;
6
- onClickFooter?: () => void;
7
- showSnackbar?: boolean;
8
- onCloseSnackbar?: () => void;
9
- }
10
- export default function CodeAreaFooter({ onClickFooter, labelIdButtonFooter, disabledButtonFooter, withGutter, showSnackbar, onCloseSnackbar, loading, disabled, ...props }: Props): import("react/jsx-runtime").JSX.Element | null;
11
- export {};
12
- //# sourceMappingURL=CodeAreaFooter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaFooter.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAyBxD,UAAU,KAAM,SAAQ,WAAW;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,UAAiB,EACjB,YAAY,EACZ,eAAe,EACf,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,kDAqCP"}
@@ -1,9 +0,0 @@
1
- interface Props {
2
- onClickExpand?: () => void;
3
- disabled?: boolean;
4
- copyValue?: string;
5
- size?: 'small' | 'medium';
6
- }
7
- export default function CodeAreaHeader({ disabled, copyValue, onClickExpand, size, }: Props): import("react/jsx-runtime").JSX.Element | null;
8
- export {};
9
- //# sourceMappingURL=CodeAreaHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaHeader.tsx"],"names":[],"mappings":"AA8BA,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,QAAQ,EACR,SAAS,EACT,aAAa,EACb,IAAI,GACL,EAAE,KAAK,kDAsHP"}
@@ -1,26 +0,0 @@
1
- import { Editor } from 'codemirror';
2
- interface CodeAreaInputProps {
3
- value?: string;
4
- defaultValue?: string;
5
- options?: {
6
- mode?: string | {
7
- name: string;
8
- [key: string]: unknown;
9
- };
10
- [key: string]: unknown;
11
- };
12
- id?: string;
13
- onEditorDidMount?: (editor: Editor) => void;
14
- onChange?: (value: string) => void;
15
- onBlur?: (value: string) => void;
16
- onFocus?: () => void;
17
- placeholder?: string;
18
- disabled?: boolean;
19
- size?: 'small' | 'medium';
20
- height?: number | string;
21
- 'data-testid'?: string;
22
- 'aria-label'?: string;
23
- }
24
- export default function CodeAreaInput({ options, value, defaultValue, id, onEditorDidMount, onChange, onBlur, onFocus, placeholder, disabled, size, height, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...props }: CodeAreaInputProps): import("react/jsx-runtime").JSX.Element;
25
- export {};
26
- //# sourceMappingURL=CodeAreaInput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAUxC,OAAO,+BAA+B,CAAA;AACtC,OAAO,8BAA8B,CAAA;AAIrC,OAAO,4BAA4B,CAAA;AACnC,OAAO,0CAA0C,CAAA;AACjD,OAAO,wCAAwC,CAAA;AAC/C,OAAO,sCAAsC,CAAA;AAC7C,OAAO,gCAAgC,CAAA;AACvC,OAAO,kCAAkC,CAAA;AAGzC,OAAO,sCAAsC,CAAA;AAC7C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,qCAAqC,CAAA;AAC5C,OAAO,oCAAoC,CAAA;AAC3C,OAAO,2CAA2C,CAAA;AAClD,OAAO,wCAAwC,CAAA;AAG/C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,qCAAqC,CAAA;AAC5C,OAAO,sCAAsC,CAAA;AAC7C,OAAO,qCAAqC,CAAA;AAC5C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,sCAAsC,CAAA;AAC7C,OAAO,wCAAwC,CAAA;AAC/C,OAAO,uCAAuC,CAAA;AAE9C,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAA;QACxD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KACvB,CAAA;IACD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,OAAO,EACP,KAAK,EACL,YAAY,EACZ,EAAE,EACF,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,QAAQ,EACR,IAAc,EACd,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAmC,EACjD,GAAG,KAAK,EACT,EAAE,kBAAkB,2CA2GpB"}
@@ -1,7 +0,0 @@
1
- export declare const CodeAreaTheme: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
- 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;
3
- }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
4
- size?: "small" | "medium";
5
- height?: number | string;
6
- }, {}, {}>;
7
- //# sourceMappingURL=CodeAreaTheme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaTheme.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;WAGjB,OAAO,GAAG,QAAQ;aAChB,MAAM,GAAG,MAAM;UAqLvB,CAAA"}