@tap-payments/os-micro-frontend-shared 0.3.282 → 0.3.283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_chunks/{chunk-KVZJDQV2.js → chunk-2SZKMLBQ.js} +1 -1
- package/build/_chunks/{chunk-FIFXF3JZ.js → chunk-32GIDLTK.js} +1 -1
- package/build/_chunks/{chunk-QZJCQWTE.js → chunk-3HYMTOAJ.js} +1 -1
- package/build/_chunks/{chunk-ADEEIE7D.js → chunk-3M7YAX7A.js} +1 -1
- package/build/_chunks/{chunk-52PPSCXG.js → chunk-4UPB4XII.js} +1 -1
- package/build/_chunks/chunk-564OU743.js +2 -0
- package/build/_chunks/chunk-6GZFEPN6.js +2 -0
- package/build/_chunks/{chunk-SN2KTD4P.js → chunk-6PCVGKSW.js} +1 -1
- package/build/_chunks/{chunk-YQEBQZXF.js → chunk-7EIZDPRX.js} +1 -1
- package/build/_chunks/{chunk-JDNJX7KL.js → chunk-7LVGFAVY.js} +1 -1
- package/build/_chunks/{chunk-JM6GMHUT.js → chunk-AI4TRR5F.js} +1 -1
- package/build/_chunks/{chunk-IERB2R3J.js → chunk-ARPUXMV4.js} +1 -1
- package/build/_chunks/{chunk-KOBQX2C2.js → chunk-AYDZ5BY7.js} +1 -1
- package/build/_chunks/{chunk-BCIBP56P.js → chunk-B7SIZBZ4.js} +1 -1
- package/build/_chunks/{chunk-YDOKNGL2.js → chunk-BT4FYCLB.js} +1 -1
- package/build/_chunks/{chunk-22OKMCFR.js → chunk-CZZIV6U2.js} +1 -1
- package/build/_chunks/{chunk-YQYHL4AG.js → chunk-DO5LOF3O.js} +1 -1
- package/build/_chunks/{chunk-A6YF5T27.js → chunk-FYZLPKZJ.js} +1 -1
- package/build/_chunks/{chunk-42T6C72N.js → chunk-HFZFV3IA.js} +1 -1
- package/build/_chunks/{chunk-363HMCRF.js → chunk-IBVECU2A.js} +1 -1
- package/build/_chunks/{chunk-265MSIZH.js → chunk-IPYIRN2R.js} +1 -1
- package/build/_chunks/{chunk-UZVOPL5U.js → chunk-J5Y23R6K.js} +1 -1
- package/build/_chunks/{chunk-5SPLSDGC.js → chunk-JDSJDVQK.js} +1 -1
- package/build/_chunks/chunk-JKW2LY7R.js +1 -0
- package/build/_chunks/{chunk-ZFVCIKJ5.js → chunk-JRADYN3S.js} +1 -1
- package/build/_chunks/{chunk-K7ENJA7I.js → chunk-KZIIULI3.js} +1 -1
- package/build/_chunks/{chunk-B3QNGYUI.js → chunk-LDCRZFUN.js} +1 -1
- package/build/_chunks/{chunk-VEPRRBYW.js → chunk-LR6FBC7S.js} +1 -1
- package/build/_chunks/{chunk-EKOUE2IZ.js → chunk-MGKZHRIG.js} +1 -1
- package/build/_chunks/{chunk-QFKF5I2T.js → chunk-MLJHEMAE.js} +1 -1
- package/build/_chunks/{chunk-BVAZARPH.js → chunk-MZBS2I4P.js} +1 -1
- package/build/_chunks/{chunk-ROTVD5UM.js → chunk-N2WU3HEH.js} +1 -1
- package/build/_chunks/{chunk-FJNHU3S4.js → chunk-NQGK2Q5L.js} +1 -1
- package/build/_chunks/{chunk-ZO7IPGTD.js → chunk-OL4HUADY.js} +1 -1
- package/build/_chunks/{chunk-EVLGRGMN.js → chunk-ONSPUGYN.js} +1 -1
- package/build/_chunks/{chunk-2FFQR4XJ.js → chunk-OR22XGAD.js} +1 -1
- package/build/_chunks/{chunk-JL3QN5TK.js → chunk-PG6JHNLH.js} +1 -1
- package/build/_chunks/{chunk-JGVAEGDX.js → chunk-PPHYI47H.js} +1 -1
- package/build/_chunks/{chunk-IPIA27QM.js → chunk-R367WWTC.js} +1 -1
- package/build/_chunks/{chunk-UQ7XDCXB.js → chunk-RI3HCTED.js} +1 -1
- package/build/_chunks/{chunk-XMGXCCSD.js → chunk-S6DUWS2C.js} +1 -1
- package/build/_chunks/chunk-SLWEWDRS.js +1 -0
- package/build/_chunks/chunk-TPR56EBW.js +2 -0
- package/build/_chunks/{chunk-I7OG7E3Z.js → chunk-UENR5XJD.js} +1 -1
- package/build/_chunks/{chunk-RXDZGI4N.js → chunk-VBB5WMVK.js} +1 -1
- package/build/_chunks/{chunk-46V3JVHX.js → chunk-VIBNNV7I.js} +1 -1
- package/build/_chunks/{chunk-QUYS25CX.js → chunk-WRJLCKDU.js} +1 -1
- package/build/_chunks/{chunk-O44C6KUS.js → chunk-XSMIOEMD.js} +1 -1
- package/build/_chunks/{chunk-5NT7R5KF.js → chunk-XYGYT5QV.js} +1 -1
- package/build/_chunks/{chunk-7XEIN7KW.js → chunk-XYMZXP5A.js} +1 -1
- package/build/_chunks/{chunk-WEDCKMUU.js → chunk-YHRFQZCJ.js} +1 -1
- package/build/_chunks/{chunk-SKASDIJH.js → chunk-YI5J4DCB.js} +1 -1
- package/build/_chunks/{chunk-KPY3W62P.js → chunk-Z2ELLNWM.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/Card/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DateInput/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterBar/FilterBar.d.ts +4 -0
- package/build/components/FilterBar/FilterBarButton.d.ts +4 -0
- package/build/components/FilterBar/constants.d.ts +12 -0
- package/build/components/FilterBar/icons.d.ts +2 -0
- package/build/components/FilterBar/index.d.ts +3 -0
- package/build/components/FilterBar/index.js +1 -0
- package/build/components/FilterBar/style.d.ts +25 -0
- package/build/components/FilterBar/type.d.ts +143 -0
- package/build/components/FilterChip/index.js +1 -1
- package/build/components/FilterChip/style.d.ts +2 -0
- package/build/components/FilterChip/type.d.ts +2 -0
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListHeader/types.d.ts +10 -2
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MultiLevelSelect/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/Select/index.js +1 -1
- package/build/components/Sidebar/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowServices/index.js +1 -1
- package/build/components/WindowToolbar/index.js +1 -1
- package/build/components/index.d.ts +1 -2
- package/build/components/index.js +1 -1
- package/build/components/modules/JSONViewWindow/index.js +1 -1
- package/build/components/modules/RangeCalender/index.js +1 -1
- package/build/components/modules/VirtualTables/index.js +1 -1
- package/build/components/modules/WindowShell/index.js +1 -1
- package/build/components/modules/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/datetime/components/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/hooks/useBadgesCount.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-CAVYK7HF.js +0 -2
- package/build/_chunks/chunk-HZCNE5Q2.js +0 -1
- package/build/_chunks/chunk-JDEIU7E5.js +0 -1
- package/build/_chunks/chunk-JGCMUAHD.js +0 -1
- package/build/_chunks/chunk-VYBEYQLV.js +0 -2
- package/build/_chunks/chunk-WAQJPDMU.js +0 -2
- package/build/components/StatusBar/StatusBar.d.ts +0 -14
- package/build/components/StatusBar/index.d.ts +0 -3
- package/build/components/StatusBar/index.js +0 -1
- package/build/components/StatusBar/type.d.ts +0 -18
- package/build/components/StatusButton/ChevronIcon.d.ts +0 -3
- package/build/components/StatusButton/StatusButton.d.ts +0 -4
- package/build/components/StatusButton/constant.d.ts +0 -29
- package/build/components/StatusButton/index.d.ts +0 -4
- package/build/components/StatusButton/index.js +0 -1
- package/build/components/StatusButton/style.d.ts +0 -52
- package/build/components/StatusButton/type.d.ts +0 -41
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-VIBNNV7I.js';import {L,aa,B}from'./chunk-6GZFEPN6.js';import {Dc}from'./chunk-Z2DUFVI5.js';import {Eb,A}from'./chunk-3M2GZVQW.js';import ne,{memo,useState,useEffect}from'react';import P from'@mui/material/Box';import te from'@mui/material/InputAdornment';import oe from'@mui/material/Skeleton';import {styled,Popper,Box,ClickAwayListener}from'@mui/material';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1}from'@mui/material/styles';var N=styled("button")(({theme:e,disabled:o})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"12px",borderRadius:"3px"},".arrow":{width:14,alignSelf:""},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px",borderRadius:"2px"},cursor:o?"default":"pointer",opacity:o?.5:1,paddingTop:0,backgroundColor:"transparent",border:"none",paddingInlineStart:0,minWidth:70,marginTop:1})),_=styled(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),H=styled("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),q=styled("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),z=styled(L)(()=>({flexGrow:1,maxWidth:"100%",height:24,padding:"4px",marginBottom:"4px"})),D=styled(Box)(()=>({color:"red !important"}));function G({isLoading:e,countries:o,value:n,onCountryChange:l,required:b,disabled:f}){let[a,C]=useState(),[u,g]=useState(null),[y,i]=useState([]),[I,S]=useState(""),s=!!u&&!f,w=t=>{t.stopPropagation(),g(t.currentTarget);},m=()=>{g(null);},L=t=>{l?.(t),C(t),m(),i(o);},k=t=>{let p=t.target.value.toString()??"";if(S(p),!p){i(o);return}let Y=o.filter(F=>F.idd_prefix.toString().startsWith(p)||F.iso2.toLowerCase().startsWith(p.toLowerCase()));i(Y);};return useEffect(()=>{n&&C(n);},[n?.countryId]),useEffect(()=>{o.length&&i(o);},[o.length]),jsxs(P,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(N,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:w,disabled:e||f,children:e?jsx(oe,{variant:"rectangular",width:56.5,height:15,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[a&&jsxs(Fragment,{children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx(P,{component:"span",flex:1,children:`+${a?.idd_prefix}`})]}),b&&jsx(D,{component:"span",children:"*"}),jsx(P,{component:"img",src:Eb,alt:"d",className:"arrow",sx:{...s&&{transform:"rotate(180deg)"}}})]})}),s&&jsx(B,{onClick:m,sx:{zIndex:9999}}),s&&jsx(ClickAwayListener,{onClickAway:m,children:jsxs(_,{id:"CountriesList_CountriesWrapper",open:s,anchorEl:u,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[-8,6]}}],children:[jsx(z,{type:"number",endAdornment:jsx(te,{position:"end",children:jsx("img",{src:A,alt:"arrow"})}),onChange:k,hideArrows:true,disableFocusRing:true,"data-testid":"CountriesList_InputStyled",value:I}),jsx(H,{"data-testid":"CountriesList_CountriesListStyled",children:y.map(t=>{let p=a?.countryId===t.countryId;return jsxs(q,{onClick:()=>{L(t);},sx:{backgroundColor:p?"#F9F9F9":"transparent",color:p?"#000":"#8D8D94"},children:[jsx("img",{src:t.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${t.idd_prefix}`})]},`country-code-${t.countryId}`)})})]})})]})}G.displayName="CountriesList";var V=memo(G);var v=V;styled$1(P,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:o,hasFeedback:n})=>{let{borderColor:l}=aa(e,o);return {border:`1px solid ${o?l:e.palette.divider}`,display:"flex",position:"relative",alignItems:"center",borderRadius:n?"4px 4px 0 0":"4px",borderBottom:n?"none":void 0}});var K=styled$1(b)({flexGrow:1,maxWidth:"100%",paddingInlineEnd:0,img:{cursor:"pointer"}});styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));styled$1(P)(()=>({flex:1}));function U({phoneValue:e,error:o,hasError:n,countries:l,isCountriesLoading:b,countryValue:f,onCountryChange:a,onPhoneChange:C,helperText:u,required:g,disabled:y,feedback:i,id:I="PhoneInput",...S},s){let w=t=>{a?.(t);},m=i?.message??u,{isProvided:L}=Dc(i,{message:m});return jsx(K,{id:I,type:"number",value:e,"data-testid":"PhoneInput",ref:s,inputProps:{autoComplete:"off"},error:(o??n??false)&&!L,disabled:y,feedback:i,helperText:u,startAdornment:jsx(v,{isLoading:b,countries:l,value:f,onCountryChange:w,required:g,disabled:y}),...S,onChange:C,hideArrows:true})}U.displayName="PhoneInput";var X=ne.forwardRef(U);export{v as a,X as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j as j$1,L,R as R$1}from'./chunk-
|
|
1
|
+
import {j as j$1,L,R as R$1}from'./chunk-6GZFEPN6.js';import {Bc,Ma}from'./chunk-Z2DUFVI5.js';import {dl,el}from'./chunk-3M2GZVQW.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var S=styled(g)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),z=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:i})=>{let{base:u,grey:p,brand:b}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:u.white,border:`1px solid ${p[100]}`,borderRadius:"19px",height:i==="large"?32:24,width:i==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:b[500]}}}),x=styled(g)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),F=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:i,grey:u,brand:p}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:i.white,border:`1px solid ${u[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:p[500],backgroundColor:alpha(p[500],.1)}}}),$=styled(g)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),j=styled(g)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(g)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),I=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px",textAlign:"center"},".MuiInput-root":{paddingInline:"8px"},height:32,width:32}));var _=r=>r===0?12:r<=12?r:r-12,ae=r=>r>=12?"PM":"AM",R=()=>new Date().getMinutes(),N=()=>{let r=new Date().getHours();return _(r)},ce=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var G=["AM","PM"],f=12,h=59;function O({onChange:r,defaultTime:o,enableRealTimeChange:i,size:u="large"}){let p=Bc(useId(),"time-picker"),[b,H]=useState(null),[a,U]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[c,y]=useState(o?.hour??N()),[l,C]=useState(o?.minute??R()),v=!!b;useEffect(()=>{i&&r?.({hour:c,minute:l,period:a});},[c,l,a,i]);let q=e=>{H(e.currentTarget);},J=()=>{H(null),r?.({hour:c,minute:l,period:a});},K=e=>{U(e);},s=e=>e<10?`0${e}`:e.toString(),Q=e=>{let m=Ma(s(Number(e.target.value)));if(m>12){e.preventDefault();return}y(m);},D=()=>{y(e=>e===12?1:e+1);},E=()=>{y(e=>e===1?12:e-1);},V=e=>{let m=Ma(s(Number(e.target.value)));if(m>59){e.preventDefault();return}C(m);},X=()=>{C(e=>e===59?(D(),0):e+1);},Y=()=>{C(e=>e===0?(E(),59):e-1);};return jsx(te,{onClickAway:J,children:jsxs(g,{id:p,"data-testid":"TimePicker",children:[jsx(z,{size:u,open:v,onClick:q,children:`${s(c)}:${s(l)}${a.toLowerCase()}`}),jsx(R$1,{open:v,anchorEl:b,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(S,{children:[jsxs(j,{children:[jsxs(k,{children:[jsx(x,{onClick:D,children:jsx("img",{src:dl,alt:"arrow"})}),jsx(I,{type:"number",hideArrows:true,disableFocusRing:true,value:s(c),onChange:Q}),jsx(x,{onClick:E,children:jsx("img",{src:el,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(x,{onClick:X,children:jsx("img",{src:dl,alt:"arrow"})}),jsx(I,{type:"number",hideArrows:true,disableFocusRing:true,value:s(l),onChange:V}),jsx(x,{onClick:Y,children:jsx("img",{src:el,alt:"arrow"})})]})]}),jsx($,{children:G.map(e=>jsx(F,{onClick:()=>{K(e);},selected:a===e,children:e},e))})]})})]})})}var ve=O;export{_ as a,ae as b,R as c,N as d,ce as e,G as f,f as g,h,O as i,ve as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {p}from'./chunk-
|
|
1
|
+
import {p}from'./chunk-6GZFEPN6.js';import {Ya,Bc,eb}from'./chunk-Z2DUFVI5.js';import {Sk,ya,xa,wa,Pj}from'./chunk-3M2GZVQW.js';import {memo,useId}from'react';import C from'@mui/material/Box';import O from'lodash/capitalize';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var D=styled(C,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:Ya(t)?"18px":"24px"}));var e={DESKTOP:wa,PHONE:xa,TABLET:ya,TERMINAL:Sk};var i=o=>!!e[o];function S({type:o,isTextShown:t,tableMode:T,...E}){let p$1=Bc(useId(),"device-icon"),{t:v}=useTranslation(),m=i(o)?e[o]:null;return jsx(p,{title:m?`Device - ${eb((o??"").toLowerCase())}`:v("unKnown"),children:t?jsx(D,{id:p$1,"data-testid":"DeviceIcon",tableMode:T,children:o?O(o):"Unknown"}):jsx(C,{...E,id:p$1,"data-testid":"DeviceIcon",component:"img",src:o?m||Pj:Pj,alt:o})})}var b=memo(S);var X=b;export{e as a,i as b,X as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-6GZFEPN6.js';import {mc,nc}from'./chunk-Z2DUFVI5.js';import {Oj,j,m}from'./chunk-3M2GZVQW.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var x="os-shared-CountryFlag",a={root:`${x}-root`};var p=styled(d)({width:"auto",height:"auto"});var f=forwardRef(({countryCode:o,currencyCode:t,width:y=16,height:i,alt:u,id:s,className:F,sx:C},c)=>jsx(p,{ref:c,id:s,"data-testid":s??"CountryFlag",src:o&&j(o)||t&&m(t)||Oj,alt:u??o??t??"flag",loading:"lazy",onError:d=>{d.currentTarget.src=Oj;},className:nc(a.root,F),sx:mc({width:y,height:i},C)}));f.displayName="CountryFlag";var P=memo(f);export{a,P as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {h,g,f,j,c,d,i,E as E$1,a,e}from'./chunk-
|
|
1
|
+
import {h,g,f,j,c,d,i,E as E$1,a,e}from'./chunk-OL4HUADY.js';import {mc,nc}from'./chunk-Z2DUFVI5.js';function s(e){return e==null||typeof e=="boolean"?"":typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(s).join(""):typeof e=="object"&&"props"in e?s(e.props.children):""}function E(e){return typeof e.label=="string"||typeof e.label=="number"?String(e.label):s(e.label).trim()||(e.value!=null?String(e.value):"")}function w(e){let t=e?.currentTarget??e?.target;return t instanceof Element?(t.closest(".MuiInputBase-root")??t).getBoundingClientRect():null}function N(e,t,n){let r=e?.PaperProps?.style?.maxHeight;if(typeof r=="number"&&Number.isFinite(r))return r;if(typeof r=="string"){let o=Number.parseFloat(r);if(Number.isFinite(o))return o}return t&&n?h:t?g:f}function F({preferred:e,anchorRect:t,menuMaxHeight:n,gapPx:r}){if(e===j.top||t==null)return e;let o=window.innerHeight-t.bottom-r,c=t.top-r;return o>=n?j.bottom:c>o?j.top:j.bottom}function I(e$1,t,n){let r=e$1?.PaperProps,o=t===j.top,p={marginTop:`${o?-c:c}px`,marginBottom:0},f$1=n!=null&&Number.isFinite(n)&&n>0,h=f$1?{width:n,minWidth:n,maxWidth:n}:{};return {...e$1,autoFocus:false,disableAutoFocus:true,disableAutoFocusItem:true,disableEnforceFocus:true,variant:"menu",marginThreshold:0,anchorOrigin:{vertical:o?"top":"bottom",horizontal:"left"},transformOrigin:{vertical:o?"bottom":"top",horizontal:"left"},MenuListProps:{...e$1?.MenuListProps,autoFocus:false,autoFocusItem:false,sx:mc({padding:0,display:"flex",flexDirection:"column",gap:`${e}px`,flex:1,minHeight:0,overflowX:"hidden",overflowY:"auto"},e$1?.MenuListProps?.sx??{})},PaperProps:{...r,className:nc(a.menu,r?.className),style:{...r?.style,...p,...h,maxHeight:r?.style?.maxHeight??f},sx:mc({...p,...E$1,borderRadius:`${i}px`,boxSizing:"border-box",display:"flex",flexDirection:"column",padding:`${d}px`,overflow:"hidden",overflowX:"hidden",overflowY:"hidden",...f$1&&{width:`${n}px`,minWidth:`${n}px`,maxWidth:`${n}px`,boxSizing:"border-box"}},r?.sx??{})}}}function R(e){e.stopPropagation();}function T(e){return e.map(t=>({...t,id:String(t.value)}))}function H(e,t){return t==null?null:e.find(n=>n.value===t||String(n.value)===String(t))??null}function D(e){return e==null?"":String(e.value)}function k(e){let t=e?.target;return t instanceof Element&&t.closest("[data-select-menu-search], [data-select-menu-keep-open]")!=null}function A(e){if(e==null||typeof e!="object")return false;let t=e;if(t.key==="Escape"||t.type==="keydown")return false;let n=t.target;return n instanceof Element&&n.closest('[role="option"], .MuiMenuItem-root')!=null}function $(e){let t=e?.target;return t instanceof Element&&t.closest(".Select-clearIconButton, [data-select-clear]")!=null}function B(e){return e==null?false:Array.isArray(e)?e.length>0:typeof e=="object"?String(e.value??"")!=="":String(e)!==""}export{s as a,E as b,w as c,N as d,F as e,I as f,R as g,T as h,H as i,D as j,k,A as l,$ as m,B as n};
|