@tap-payments/os-micro-frontend-shared 0.3.309 → 0.3.310
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-JYVB2MAR.js → chunk-2MGV5XP4.js} +1 -1
- package/build/_chunks/{chunk-L2CUT2AZ.js → chunk-3YBLN7RZ.js} +1 -1
- package/build/_chunks/{chunk-JBDIMDMZ.js → chunk-3YZF4W2L.js} +1 -1
- package/build/_chunks/{chunk-6DGM7DYT.js → chunk-3ZUUAIFN.js} +1 -1
- package/build/_chunks/{chunk-3TZY3PB4.js → chunk-4V64TJJW.js} +1 -1
- package/build/_chunks/{chunk-D4FXMX5O.js → chunk-565FQDLE.js} +1 -1
- package/build/_chunks/{chunk-XK5TVDKR.js → chunk-632OM3TB.js} +1 -1
- package/build/_chunks/{chunk-K5QISMYX.js → chunk-7UR5RTMD.js} +1 -1
- package/build/_chunks/{chunk-247ZI55C.js → chunk-AIKE5IVU.js} +1 -1
- package/build/_chunks/{chunk-ALG4KR24.js → chunk-AM66KDGG.js} +1 -1
- package/build/_chunks/{chunk-LTTRVHN5.js → chunk-AO5BBZSP.js} +1 -1
- package/build/_chunks/{chunk-PYVM4SKE.js → chunk-EGIKB732.js} +1 -1
- package/build/_chunks/{chunk-EKOQHUCL.js → chunk-FXTZ22TS.js} +1 -1
- package/build/_chunks/{chunk-XVIGXV43.js → chunk-G4W4TPFT.js} +1 -1
- package/build/_chunks/{chunk-YMEGCVZ4.js → chunk-GGX2FEQV.js} +1 -1
- package/build/_chunks/{chunk-5FR3LFXC.js → chunk-HNVAFVUA.js} +1 -1
- package/build/_chunks/{chunk-ZPYQLESN.js → chunk-JBD7LBKC.js} +1 -1
- package/build/_chunks/{chunk-DIN6W5Q6.js → chunk-JGXI5MLK.js} +1 -1
- package/build/_chunks/{chunk-4SDKOPUI.js → chunk-KLN3YM53.js} +1 -1
- package/build/_chunks/{chunk-YIVUI2NW.js → chunk-L2SDX2MP.js} +1 -1
- package/build/_chunks/{chunk-UXDNAGHP.js → chunk-LQSTGJBJ.js} +1 -1
- package/build/_chunks/{chunk-OJO5GAN7.js → chunk-MXZD4IG6.js} +1 -1
- package/build/_chunks/{chunk-LKYA6XFU.js → chunk-NFDDJIRN.js} +1 -1
- package/build/_chunks/{chunk-GD5PXPUD.js → chunk-OL6JOGIF.js} +1 -1
- package/build/_chunks/{chunk-7H5HCDY6.js → chunk-PEQGKPA2.js} +1 -1
- package/build/_chunks/{chunk-YG4CT6O4.js → chunk-PI263RZJ.js} +1 -1
- package/build/_chunks/{chunk-3RQCYR24.js → chunk-Q6BI36AR.js} +1 -1
- package/build/_chunks/{chunk-W2FF6EIY.js → chunk-Q6MQJAZI.js} +1 -1
- package/build/_chunks/{chunk-DHSYX6K2.js → chunk-QIUS47UY.js} +1 -1
- package/build/_chunks/{chunk-XKEBWPJM.js → chunk-R6E5X56S.js} +1 -1
- package/build/_chunks/{chunk-R2J57DPG.js → chunk-RF6JK6KJ.js} +1 -1
- package/build/_chunks/{chunk-SSK26DK7.js → chunk-SKDHJYOO.js} +1 -1
- package/build/_chunks/{chunk-RW26DPMJ.js → chunk-SMGH6EBP.js} +1 -1
- package/build/_chunks/{chunk-D7Q6GITS.js → chunk-TJ3OEL7X.js} +1 -1
- package/build/_chunks/{chunk-EAAJJGUI.js → chunk-TKWUFXNT.js} +1 -1
- package/build/_chunks/{chunk-PF4KBDPV.js → chunk-UHP2ZQJO.js} +1 -1
- package/build/_chunks/{chunk-M3TZIB3C.js → chunk-V4ZKOYOF.js} +1 -1
- package/build/_chunks/{chunk-AGNZUPPF.js → chunk-VLOXMCB3.js} +1 -1
- package/build/_chunks/{chunk-ODDV623H.js → chunk-VLXDIIDL.js} +1 -1
- package/build/_chunks/{chunk-TJMY7Q26.js → chunk-W755BEL7.js} +1 -1
- package/build/_chunks/{chunk-EM7XGO3A.js → chunk-WE5WS7B2.js} +1 -1
- package/build/_chunks/{chunk-RGQ5AGHK.js → chunk-XJOPGP7Y.js} +1 -1
- package/build/_chunks/chunk-Z6D3LMCU.js +2 -0
- package/build/_chunks/{chunk-JBE2LXDH.js → chunk-Z7GYOTVN.js} +1 -1
- package/build/components/ActionMenu/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/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/CountryFlag/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/DeviceIcon/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExportReportButton/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/index.js +1 -1
- package/build/components/FilterPopover/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MultiLevelMenu/index.js +1 -1
- package/build/components/MultiLevelSelect/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/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/StatusIcons/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/WindowServices/index.js +1 -1
- package/build/components/WindowToolbar/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/components/modules/JSONViewWindow/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/MenuItem/icons.d.ts +8 -4
- package/build/components/primitives/index.js +1 -1
- package/build/datetime/components/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-F7I3KDV5.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1,aa}from'./chunk-F7I3KDV5.js';import {Sc,A as A$1}from'./chunk-EYLBXWXJ.js';import {forwardRef}from'react';import r from'@mui/material/Box';import ne from'@mui/material/CircularProgress';import ie from'@mui/material/SvgIcon';import J from'@mui/material/Button';import K from'@mui/material/FormControl';import Q from'@mui/material/Input';import m from'@mui/material/ListSubheader';import U from'@mui/material/MenuItem';import X from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-Select",u={root:`${o}-root`,field:`${o}-field`,input:`${o}-input`,display:`${o}-display`,endAdornment:`${o}-endAdornment`,chevron:`${o}-chevron`,loading:`${o}-loading`,menu:`${o}-menu`,option:`${o}-option`,clear:`${o}-clear`,feedback:`${o}-feedback`,values:`${o}-values`,value:`${o}-value`,valueOverflow:`${o}-valueOverflow`,search:`${o}-search`,summary:`${o}-summary`,groupLabel:`${o}-groupLabel`},ae="Search",de=8,pe=8,a=28,d=36,n=17,se=4,z=256,W=272,A=293,ce=8,E={bottom:"bottom",top:"top"},xe=E.bottom,h={start:"start",end:"end"},ge=h.start,R=48,O=1,G=R-2*O,D=8,ue=10,j=13,N=D+j,Z=4,q=6,he=G-N-Z-q,b=8,f=4,y=f,c=8,x=16,v=8,g=4,me=g+x+v,Se=g+c+y;var Fe={maxHeight:z,[`&:has(.${u.search})`]:{maxHeight:`${W}px !important`},[`&:has(.${u.search}):has(.${u.summary})`]:{maxHeight:`${A}px !important`}},$e=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),Le=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),ze=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),B="#F8F8F8",We=styled(U,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:l})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:a,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:a},boxSizing:"border-box",borderRadius:4,backgroundColor:i?B:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:B},"&.Mui-disabled":{opacity:.38},...l&&{display:"none !important"}})),Ae=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Be=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Te=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===h.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Ve=styled(r)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:e.v2.palette.base.black,textAlign:"start"})),Ee=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),Y=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:d,minHeight:d,maxHeight:d,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:d,minHeight:d,padding:0,lineHeight:1}}));Y.muiSkipListHighlight=true;var _=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:"14px"}}));_.muiSkipListHighlight=true;var ee=styled(m,{shouldForwardProp:e=>e!=="$divider"&&e!=="$hidden"})(({theme:e,$divider:i,$hidden:l})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",flexShrink:0,padding:"8px 8px 4px",fontSize:10,fontWeight:500,lineHeight:"100%",color:e.v2.palette.grey[500],borderTop:i?`1px solid ${e.v2.palette.border.default}`:"none","&.MuiListSubheader-root":{position:"static",lineHeight:"100%"},"&:empty":{padding:0},...l&&{display:"none !important"}})),Re=Object.assign(ee,{muiSkipListHighlight:true}),Oe=styled(Q)(({theme:e})=>({width:"100%",height:d,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),T=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),Ge=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:n,minHeight:n,maxHeight:n,padding:0,lineHeight:`${n}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:n,minHeight:n,padding:0,lineHeight:`${n}px`}})),De=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:n,minHeight:n,gap:e.spacing(1)})),je=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${n}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),Ne=styled(J)(({theme:e})=>({minWidth:0,minHeight:0,height:n,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${n}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:n,padding:0,lineHeight:`${n}px`}})),Ze=styled(K)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}})),qe=styled(X,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:l,hasFeedback:s,valueAlignment:V,hasLabel:w})=>{let{borderColor:I}=aa(e,l),C=s?"4px 4px 0 0":"4px",S=V===h.end,P=S?g:f,H=w?`18px ${P}px 6px ${b}px !important`:`0 ${P}px 0 ${b}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:C,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:s?`1px solid ${l?I:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:s?"none":void 0,boxShadow:s?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:H,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:w?"flex-end !important":"center !important",justifyContent:S?"flex-end !important":"flex-start !important",textAlign:S?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:C,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:H},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:y,gap:g,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:v}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:e.v2.palette.base.black,lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create(["transform","color"],{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:x,minWidth:x,height:x,cursor:"default"}},"&.Mui-focused .Select-menuTriggerIcon, & .Select-menuTriggerIcon-open":{color:e.v2.palette.brand[500]},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...l&&{border:`1px solid ${I}`},...s&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Je=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function ot(){return jsx(r,{component:"img",src:Sc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function nt(){return jsx(T,{src:A$1,alt:""})}function it(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var re=forwardRef((e,i)=>jsx(ie,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})}));re.displayName="SelectChevronIcon";function rt(){return jsx(ne,{size:14,sx:{color:"text.secondary"}})}export{nt as $,v as A,g as B,me as C,Se as D,Fe as E,$e as F,Le as G,ze as H,We as I,Ae as J,Be as K,Te as L,Ve as M,Ee as N,Y as O,_ as P,Re as Q,Oe as R,Ge as S,De as T,je as U,Ne as V,Ze as W,qe as X,Je as Y,Ke as Z,ot as _,u as a,it as aa,ae as b,re as ba,de as c,rt as ca,pe as d,se as e,z as f,W as g,A as h,ce as i,E as j,xe as k,h as l,ge as m,R as n,O as o,D as p,ue as q,j as r,N as s,Z as t,q as u,he as v,b as w,y as x,c as y,x as z};
|
|
1
|
+
import {f as f$1,aa}from'./chunk-Z6D3LMCU.js';import {Sc,A as A$1}from'./chunk-EYLBXWXJ.js';import {forwardRef}from'react';import r from'@mui/material/Box';import ne from'@mui/material/CircularProgress';import ie from'@mui/material/SvgIcon';import J from'@mui/material/Button';import K from'@mui/material/FormControl';import Q from'@mui/material/Input';import m from'@mui/material/ListSubheader';import U from'@mui/material/MenuItem';import X from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-Select",u={root:`${o}-root`,field:`${o}-field`,input:`${o}-input`,display:`${o}-display`,endAdornment:`${o}-endAdornment`,chevron:`${o}-chevron`,loading:`${o}-loading`,menu:`${o}-menu`,option:`${o}-option`,clear:`${o}-clear`,feedback:`${o}-feedback`,values:`${o}-values`,value:`${o}-value`,valueOverflow:`${o}-valueOverflow`,search:`${o}-search`,summary:`${o}-summary`,groupLabel:`${o}-groupLabel`},ae="Search",de=8,pe=8,a=28,d=36,n=17,se=4,z=256,W=272,A=293,ce=8,E={bottom:"bottom",top:"top"},xe=E.bottom,h={start:"start",end:"end"},ge=h.start,R=48,O=1,G=R-2*O,D=8,ue=10,j=13,N=D+j,Z=4,q=6,he=G-N-Z-q,b=8,f=4,y=f,c=8,x=16,v=8,g=4,me=g+x+v,Se=g+c+y;var Fe={maxHeight:z,[`&:has(.${u.search})`]:{maxHeight:`${W}px !important`},[`&:has(.${u.search}):has(.${u.summary})`]:{maxHeight:`${A}px !important`}},$e=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),Le=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),ze=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),B="#F8F8F8",We=styled(U,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:l})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:a,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:a},boxSizing:"border-box",borderRadius:4,backgroundColor:i?B:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:B},"&.Mui-disabled":{opacity:.38},...l&&{display:"none !important"}})),Ae=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Be=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Te=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===h.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Ve=styled(r)(({theme:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:e.v2.palette.base.black,textAlign:"start"})),Ee=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),Y=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:d,minHeight:d,maxHeight:d,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:d,minHeight:d,padding:0,lineHeight:1}}));Y.muiSkipListHighlight=true;var _=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:"14px"}}));_.muiSkipListHighlight=true;var ee=styled(m,{shouldForwardProp:e=>e!=="$divider"&&e!=="$hidden"})(({theme:e,$divider:i,$hidden:l})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",flexShrink:0,padding:"8px 8px 4px",fontSize:10,fontWeight:500,lineHeight:"100%",color:e.v2.palette.grey[500],borderTop:i?`1px solid ${e.v2.palette.border.default}`:"none","&.MuiListSubheader-root":{position:"static",lineHeight:"100%"},"&:empty":{padding:0},...l&&{display:"none !important"}})),Re=Object.assign(ee,{muiSkipListHighlight:true}),Oe=styled(Q)(({theme:e})=>({width:"100%",height:d,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),T=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),Ge=styled(m)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:n,minHeight:n,maxHeight:n,padding:0,lineHeight:`${n}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:n,minHeight:n,padding:0,lineHeight:`${n}px`}})),De=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:n,minHeight:n,gap:e.spacing(1)})),je=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${n}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),Ne=styled(J)(({theme:e})=>({minWidth:0,minHeight:0,height:n,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${n}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:n,padding:0,lineHeight:`${n}px`}})),Ze=styled(K)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}})),qe=styled(X,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:l,hasFeedback:s,valueAlignment:V,hasLabel:w})=>{let{borderColor:I}=aa(e,l),C=s?"4px 4px 0 0":"4px",S=V===h.end,P=S?g:f,H=w?`18px ${P}px 6px ${b}px !important`:`0 ${P}px 0 ${b}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:C,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:s?`1px solid ${l?I:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:s?"none":void 0,boxShadow:s?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:H,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:w?"flex-end !important":"center !important",justifyContent:S?"flex-end !important":"flex-start !important",textAlign:S?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:C,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:H},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:y,gap:g,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:v}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:e.v2.palette.base.black,lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create(["transform","color"],{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:x,minWidth:x,height:x,cursor:"default"}},"&.Mui-focused .Select-menuTriggerIcon, & .Select-menuTriggerIcon-open":{color:e.v2.palette.brand[500]},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...l&&{border:`1px solid ${I}`},...s&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Je=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function ot(){return jsx(r,{component:"img",src:Sc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function nt(){return jsx(T,{src:A$1,alt:""})}function it(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var re=forwardRef((e,i)=>jsx(ie,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:.233333})}));re.displayName="SelectChevronIcon";function rt(){return jsx(ne,{size:14,sx:{color:"text.secondary"}})}export{nt as $,v as A,g as B,me as C,Se as D,Fe as E,$e as F,Le as G,ze as H,We as I,Ae as J,Be as K,Te as L,Ve as M,Ee as N,Y as O,_ as P,Re as Q,Oe as R,Ge as S,De as T,je as U,Ne as V,Ze as W,qe as X,Je as Y,Ke as Z,ot as _,u as a,it as aa,ae as b,re as ba,de as c,rt as ca,pe as d,se as e,z as f,W as g,A as h,ce as i,E as j,xe as k,h as l,ge as m,R as n,O as o,D as p,ue as q,j as r,N as s,Z as t,q as u,he as v,b as w,y as x,c as y,x as z};
|