@tap-payments/os-micro-frontend-shared 0.3.300 → 0.3.301
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-35RUQ6MX.js → chunk-DOK4RXSY.js} +1 -1
- package/build/_chunks/{chunk-PVQ32HFD.js → chunk-MDHPSQZO.js} +1 -1
- package/build/_chunks/{chunk-5YOH2ITP.js → chunk-S3EORDGB.js} +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/index.d.ts +0 -1
- package/build/components/index.js +1 -1
- package/build/components/modules/JSONViewWindow/index.js +1 -1
- package/build/components/modules/WindowShell/index.js +1 -1
- package/build/components/modules/WindowShell/type.d.ts +1 -1
- package/build/components/modules/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-YFVDAPEB.js +0 -1
- package/build/components/ListLayout/ListLayout.d.ts +0 -4
- package/build/components/ListLayout/constants.d.ts +0 -4
- package/build/components/ListLayout/index.d.ts +0 -3
- package/build/components/ListLayout/index.js +0 -1
- package/build/components/ListLayout/style.d.ts +0 -4
- package/build/components/ListLayout/type.d.ts +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b,h as h$1,c as c$1,e,d,j as j$1,i}from'./chunk-NR5II44J.js';import {h,b as b$1,f as f$1}from'./chunk-P4S7PQWK.js';import {g,f,h as h$2}from'./chunk-ISC5KT5E.js';import {H as H$1,j}from'./chunk-6ZPNLCMN.js';import {a}from'./chunk-VJSBADTP.js';import {Gb,Hb}from'./chunk-MMXWSV6V.js';import {c}from'./chunk-53X3U5WT.js';import {Wd,ta,el,fl,xi,Jk,A,ye,xe as xe$1,sa,qa,ra}from'./chunk-VRGBJY4Q.js';import {forwardRef,memo,createContext,useState,useRef,useMemo,useContext,useEffect,useCallback,useId}from'react';import ie from'@mui/material/Box';import it from'@mui/material/Typography';import P from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';var O="os-shared-JSONViewWindow",m={root:`${O}-root`,body:`${O}-body`,requestPane:`${O}-requestPane`,responsePane:`${O}-responsePane`,section:`${O}-section`,title:`${O}-title`,actions:`${O}-actions`,scroll:`${O}-scroll`,footer:`${O}-footer`,count:`${O}-count`},N=400,B=545,Z=.5,co=20,mo=30,Ne="Items",We="JSON Response",be="JSON Request & Response",fo="rgb(231, 231, 231)";var uo=styled("span")({display:"inline-flex",alignItems:"center",gap:"6px"}),xo=styled("span")({margin:"0px",fontStyle:"normal",fontStretch:"normal",color:"rgb(32, 35, 43)",letterSpacing:"0px",fontSize:"9px",fontWeight:400,lineHeight:"10.8px"}),go=styled("span")({margin:"0px",fontStyle:"normal",fontStretch:"normal",color:"rgb(32, 35, 43)",letterSpacing:"0px",fontSize:"10.5px",fontWeight:700,lineHeight:"12.6px",textAlign:"right"});var ho=forwardRef(function({totalCount:o,id:n,className:t,sx:r},i){return jsx(h,{ref:i,id:n,"data-testid":n??"Footer",className:Hb(g,m.footer,t),sx:Gb({justifyContent:"flex-start",cursor:"move"},r),children:o!=null?jsx(H$1,{variant:"text",className:m.count,sx:{cursor:"text",borderWidth:.75},children:jsxs(uo,{children:[jsx(xo,{children:Ne}),jsx(go,{children:c(o??0)})]})}):null})});ho.displayName="Footer";var H=memo(ho);var yo=styled("button")(({theme:e})=>({outline:"none",cursor:"pointer",border:"1px solid transparent","&:hover":{boxShadow:e.shadows[8]},borderRadius:"0.25rem",position:"relative",backgroundColor:e.palette.background.transparent,display:"inline-flex",alignItems:"center",justifyContent:"center"})),Ie=styled(motion.img)({height:"14px",width:"14px"});function oe({"data-copied":e,style:o,onClick:n},{keyName:t}){return t?jsxs(yo,{style:o,onClick:r=>{n?.(r);},children:[jsx(AnimatePresence,{children:e&&jsx(Ie,{initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ta,alt:"icon"},"copied-icon")}),jsx(AnimatePresence,{children:!e&&jsx(Ie,{initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ra,alt:"icon"},"copy-icon")})]}):jsx("span",{})}var No=styled("button")(({theme:e})=>({padding:"0rem",borderRadius:"0.25rem",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",color:e.palette.text.primary,fontSize:"0.625rem",fontWeight:e.typography.fontWeightBold,outline:"none",cursor:"pointer",border:`1px solid ${e.palette.grey[100]}`,"&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark};`},position:"relative",overflow:"hidden",transition:"all 0.2s ease-in-out",width:"24px",height:"24px",flexShrink:0}));function Wo({onClick:e,icon:o,label:n,disableAnimation:t,...r}){let[i,s]=useState(false),{t:c}=useTranslation();return jsxs(No,{...r,onClick:p=>{e?.(p),!t&&(s(true),setTimeout(()=>{s(false);},2e3));},children:[jsxs(ie,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:i&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:ta,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!i&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:o,alt:"icon"},"id-icon")})]}),n&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:c("copied")})}),jsx(AnimatePresence,{children:!i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:n})})]})]})}Wo.displayName="IconButton";var T=memo(Wo);var bo=styled("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),Co=styled("button")(({theme:e,isActive:o})=>({width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",border:`1px solid ${o?e.palette.info.dark:e.palette.grey[100]}`,backgroundColor:e.palette.background.paper,cursor:"pointer",outline:"none",padding:0,position:"relative",zIndex:11,transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`}})),Io=styled(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),Oo=styled(motion.input)(({theme:e})=>({width:"177px",height:"24px",borderRadius:"4px",color:e.palette.text.primary,fontSize:"10px",outline:0,background:e.palette.background.paper,boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`,paddingLeft:"8px",boxSizing:"border-box","::placeholder":{color:"#D5D5D5"}})),Te={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},To={...Te,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},Po=styled("button")(()=>({...To,right:53})),_o=styled("button")(()=>({...To,right:39})),vo=styled(motion.img)(()=>({...Te,right:24,width:10,height:10,cursor:"pointer"})),Jo=styled(motion.img)(()=>({...Te,right:8,width:11,height:11,cursor:"default"})),Pe=styled("img")(()=>({width:10,height:10})),Eo=styled("img")(()=>({width:12,height:12})),Vo=styled("span")(({theme:e})=>({position:"absolute",right:67,top:"50%",transform:"translateY(-50%)",fontSize:"9px",lineHeight:1,color:e.palette.text.secondary,whiteSpace:"nowrap",userSelect:"none",zIndex:2,pointerEvents:"none"}));function Ht({value:e,onChange:o,currentIndex:n,totalCount:t,onPrev:r,onNext:i,onOpen:s,placeholder:c="Search..."}){let[a,p]=useState(false),u=useRef(null),f=e.trim().length>0,y=t>0,S=f,b=()=>{s?.(),p(true),requestAnimationFrame(()=>u.current?.focus());},C=()=>{o(""),p(false);};return jsxs(bo,{children:[jsx(AnimatePresence,{children:a&&jsxs(Io,{initial:{clipPath:"inset(0 0 0 100%)",opacity:0},animate:{clipPath:"inset(0 0 0 0%)",opacity:1},exit:{clipPath:"inset(0 0 0 100%)",opacity:0},transition:{duration:.22,ease:[.4,0,.2,1]},children:[jsx(Oo,{ref:u,initial:false,animate:{paddingRight:S?"98px":"24px"},transition:{duration:.15},placeholder:c,value:e,onChange:I=>o(I.target.value),onKeyDown:I=>{I.key==="Enter"&&(I.shiftKey?r():i()),I.key==="Escape"&&C();},onBlur:()=>{f||p(false);}}),S&&jsx(Po,{onClick:r,disabled:!y,title:"Previous match (Shift+Enter)",children:jsx(Pe,{src:el,alt:"prev"})}),S&&jsx(_o,{onClick:i,disabled:!y,title:"Next match (Enter)",children:jsx(Pe,{src:fl,alt:"next"})}),S&&jsx(vo,{src:xi,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:C}),jsx(Jo,{src:Jk,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),S&&jsx(Vo,{children:y?`${n+1}/${t}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!a&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(Co,{isActive:false,onClick:b,title:"Search",children:jsx(Eo,{src:A,alt:"search"})})})})]})}var M=memo(Ht);function Do(e,o){let n=[],t=o.length,r=0,i=e.indexOf(o,r);for(;i!==-1;){let s=i+t;n.push([i,s]),r=s,i=e.indexOf(o,r);}return n}var Mt={padding:0,outline:"none"};function Ao({text:e,queryLength:o,ranges:n,idPrefix:t}){let r=[],i=0;return n.forEach(([s,c],a)=>{s>i&&r.push(e.slice(i,s)),r.push(jsx("mark",{style:Mt,children:e.slice(s,s+o)},`${t}-${a}`)),i=c;}),i<e.length&&r.push(e.slice(i)),jsx(Fragment,{children:r})}function R({text:e,query:o}){let n=useId(),t=useMemo(()=>o.trim().toLowerCase(),[o]),r=useMemo(()=>{if(!t)return e;let i=e.toLowerCase(),s=Do(i,t);return s.length===0?e:jsx(Ao,{text:e,queryLength:o.length,ranges:s,idPrefix:n})},[e,o.length,t,n]);return jsx(Fragment,{children:r})}var Lo={overflow:"visible",boxShadow:"none",filter:"drop-shadow(0 0 20px rgba(0, 0, 0, 0.15))"},_e={"--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#357fb9","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ffffff","--w-rjv-arrow-color":"#116e6bed","--w-rjv-edit-color":"#9cdcfe","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#FFE20B","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#000000","--w-rjv-colon-color":"#000000","--w-rjv-brackets-color":"#000000","--w-rjv-quotes-color":"#9cdcfe","--w-rjv-quotes-string-color":"#c27c46","--w-rjv-type-string-color":"#c27c46","--w-rjv-type-int-color":"#956ea5","--w-rjv-type-float-color":"#956ea5","--w-rjv-type-bigint-color":"#956ea5","--w-rjv-type-boolean-color":"#357fb9","--w-rjv-type-date-color":"#956ea5","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#956ea5","--w-rjv-type-nan-color":"#956ea5","--w-rjv-type-undefined-color":"#956ea5",padding:"1rem",height:"100%",overflow:"auto"},zo={..._e,background:"transparent","--w-rjv-line-color":"transparent"},ve=styled(j)(()=>({border:"1px solid rgba(242, 242, 242, 0.70);",display:"inline-flex",height:"24px",minWidth:"73px",padding:"0px 8px",justifyContent:"center",alignItems:"center",gap:"6px",borderRadius:"37.5px",backgroundColor:"#fff",fontSize:"9px",lineHeight:"15px",fontWeight:400})),Je=styled(ie)(()=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"8px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,flexShrink:0,minHeight:44})),Ee=styled(ie)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",flexShrink:0,marginLeft:"auto"})),Fo=styled(ie)(()=>({display:"flex",flexDirection:"row",flex:1,minHeight:0,height:"100%",width:"100%",background:"transparent",position:"relative",overflow:"visible"})),Ve=styled(ie)(()=>({display:"flex",flexDirection:"column",flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden"})),qo=styled(motion.div,{shouldForwardProp:e=>!["isRequestShown","isMaximized"].includes(e)})(({isRequestShown:e,isMaximized:o})=>({width:"100%",height:"100%",minHeight:0,overflow:"hidden",background:"#fff",zIndex:20,position:"relative",left:0,display:"flex",flexDirection:"column",flex:1,minWidth:0,borderBottomRightRadius:"12px",borderBottomLeftRadius:e?0:"12px",...o&&{borderBottomLeftRadius:0,borderBottomRightRadius:0}})),$o=styled(motion.div,{shouldForwardProp:e=>!["isMaximized","currentRequestWidth"].includes(e)})(({isMaximized:e,currentRequestWidth:o})=>({backgroundColor:fo,backdropFilter:"blur(24px)",height:"100%",overflowY:"auto",overflowX:"hidden",position:"absolute",width:e?"100%":o,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px",top:0,bottom:0})),Ko=styled("span")(()=>({color:"#032F62"})),Uo=styled("span")(()=>({color:"#357fb9"}));function se(e,o){return e.toLowerCase().includes(o)}function ae(e){return e.trim().toLowerCase()}function le(e){let o=ae(e);return (n,{keyName:t})=>{if(!o||!t)return;let r=String(t);if(se(r,o))return jsx(Uo,{children:jsx(R,{text:String(t),query:e})})}}function pe(e){let o=ae(e);return (n,{value:t})=>{if(!o)return;let r=String(t??"");if(se(r,o))return jsxs(Ko,{children:['"',jsx(R,{text:String(t??""),query:e}),'"']})}}function Qo(e,o){return e==null?String(e).includes(o):typeof e=="string"?e.toLowerCase().includes(o):typeof e=="number"||typeof e=="boolean"?String(e).includes(o):false}function Yo(e,o){if(Array.isArray(e)){let n=e.map(t=>Yo(t,o)).filter(t=>t!=null);return n.length>0?n:null}return typeof e=="object"&&e!==null?Xo(e,o):Qo(e,o)?e:null}function Xo(e,o){let n={};for(let[t,r]of Object.entries(e))if(t.toLowerCase().includes(o))n[t]=r;else if(typeof r=="object"&&r!==null){let i=Yo(r,o);i!==null&&(n[t]=i);}else Qo(r,o)&&(n[t]=r);return Object.keys(n).length>0?n:null}function Re(e,o){return o.trim()?Xo(e,o.toLowerCase()):e}function Zo(e,o,n){return {x:e/2-N/4+n*co,y:o/2-B/2+n*mo}}var nt="#FFE20B";function z(e,o){let[n,t]=useState(0),[r,i]=useState(0);useEffect(()=>{if(!o.trim()){i(0),t(0);return}let a=setTimeout(()=>{let p=e.current?.querySelectorAll("mark")??[];i(p.length),t(0);},50);return ()=>clearTimeout(a)},[o,e]),useEffect(()=>{if(!e.current||!o.trim())return;let a=Array.from(e.current.querySelectorAll("mark"));a.forEach((p,u)=>{let f=u===n;p.style.backgroundColor=f?nt:"transparent",p.style.outline=f?`1px solid ${nt}`:"none",p.style.borderRadius="2px";}),a[n]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[n,r,o,e]);let s=useCallback(()=>{r!==0&&t(a=>(a+1)%r);},[r]),c=useCallback(()=>{r!==0&&t(a=>(a-1+r)%r);},[r]);return {currentIndex:n,totalCount:r,goNext:s,goPrev:c}}function st({json:e,requestJson:o={},onJsonSearch:n,onJsonCopy:t,onJsonIdCopy:r,onJsonNodesMinimize:i,onJsonNodesMaximize:s,isRequestShown:c,isToolbarAnimationDisabled:a}){let{isMaximized:p,size:u,isResizing:f}=b$1(),[y,S]=useState(false),[b,C]=useState(true),[x,g]=useState(""),[h,I]=useState(""),D=useRef(null),A=useRef(null),U=z(D,x),G=z(A,h),Wt=useMemo(()=>Object.keys(e??{})?.length??0,[e]),Ae=u.width||N,He=_=>{setTimeout(()=>{navigator.clipboard.writeText(_||"").then(()=>{});},10);},bt=useMemo(()=>Object.keys(o??{})?.length??0,[o]),Me=useMemo(()=>Re(e,x),[e,x]),je=useMemo(()=>Re(o,h),[o,h]);return jsxs(Fo,{"data-testid":"Pane",className:Hb(m.root,m.body),children:[jsx(AnimatePresence,{children:c&&jsx($o,{className:Hb(m.requestPane),initial:{left:0},animate:{left:p?0:-Ae},exit:{left:0},transition:{duration:Z,...a&&{duration:0},...f&&{duration:0}},isMaximized:p,currentRequestWidth:Ae,children:jsxs(ie,{ref:A,sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[jsxs(Je,{className:Hb(m.section),sx:{background:"transparent"},children:[jsx(ve,{variant:"subtitle1",className:Hb(m.title),children:"API Request"}),jsxs(Ee,{className:Hb(m.actions),children:[jsx(M,{value:h,onChange:I,onOpen:()=>n?.(),currentIndex:G.currentIndex,totalCount:G.totalCount,onPrev:G.goPrev,onNext:G.goNext}),jsx(T,{disableAnimation:true,onClick:()=>{b?s?.():i?.(),C(_=>!_);},icon:b?ye:xe$1}),jsx(T,{onClick:()=>{t?.(),navigator.clipboard.writeText(JSON.stringify(o,null,2)).then(()=>{});},icon:sa}),jsx(T,{onClick:()=>{r?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),h.trim()&&je===null?jsx(ie,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(it,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsx(Ve,{className:Hb(m.scroll),children:jsxs(P,{value:je??o,style:zo,displayDataTypes:false,collapsed:h.trim()?void 0:b?1:void 0,onCopied:(_,v)=>{typeof v=="string"&&He(v);},enableClipboard:false,children:[jsx(P.String,{render:pe(h)}),jsx(P.KeyName,{render:le(h)}),jsx(P.CountInfo,{render:(_,{keyName:v})=>{if(!v)return jsx("span",{})}}),jsx(P.Copied,{render:oe})]})}),jsx(H,{totalCount:bt,sx:{borderBottomRightRadius:0,background:"#f8f9fb"}})]})},"request-pane")}),jsxs(qo,{ref:D,className:Hb(m.responsePane),isMaximized:p,isRequestShown:c,initial:{...p&&{width:"100vw",left:0}},animate:{...p&&{position:"absolute",left:c?"50vw":"0"}},transition:{duration:Z,...a&&{duration:0},...f&&{duration:0}},children:[jsxs(Je,{className:Hb(m.section),children:[jsx(ve,{variant:"subtitle1",className:Hb(m.title),children:"API Response"}),jsxs(Ee,{className:Hb(m.actions),children:[jsx(M,{value:x,onChange:g,onOpen:()=>n?.(),currentIndex:U.currentIndex,totalCount:U.totalCount,onPrev:U.goPrev,onNext:U.goNext}),jsx(T,{disableAnimation:true,onClick:()=>{y?s?.():i?.(),S(_=>!_);},icon:y?ye:xe$1}),jsx(T,{onClick:()=>{t?.(),navigator.clipboard.writeText(JSON.stringify(e,null,2)).then(()=>{});},icon:sa}),jsx(T,{onClick:()=>{r?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),x.trim()&&Me===null?jsx(ie,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(it,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsx(Ve,{className:Hb(m.scroll),children:jsxs(P,{value:Me??e,style:_e,displayDataTypes:false,collapsed:x.trim()?void 0:y?1:void 0,onCopied:(_,v)=>{typeof v=="string"&&He(v);},children:[jsx(P.String,{render:pe(x)}),jsx(P.KeyName,{render:le(x)}),jsx(P.CountInfo,{render:(_,{keyName:v})=>{if(!v)return jsx("span",{})}}),jsx(P.Copied,{render:oe})]})}),jsx(H,{totalCount:Wt,sx:{borderBottomLeftRadius:c?0:"12px",background:"#f8f9fb"}})]})]})}st.displayName="Pane";var me=memo(st);var Ut="os-shared-JSONViewWindowToolbar",F={root:`${Ut}-root`};var lt=forwardRef(function({title:o,onClose:n,onMaximize:t,maximized:r=false,onRequestClick:i$1,requestDirection:s="left",showRequestIcon:c=false,id:a,className:p,sx:u},f$1){return jsxs(b,{ref:f$1,id:a??f,"data-testid":a??"Toolbar",sx:Gb({backgroundColor:"#f9f9f9",backdropFilter:"none"},u),className:Hb(F.root,p),children:[jsxs(h$1,{children:[jsx(c$1,{onClick:n}),jsx(e,{isMaximized:r,onClick:t}),c&&jsx(d,{onClick:i$1,direction:s,children:"Request"})]}),jsx(j$1,{title:o,icon:Wd}),jsx(i,{})]})});lt.displayName="Toolbar";var $=memo(lt);var Yt="os-shared-JSONViewWindowContent",pt={root:`${Yt}-root`};var dt=styled(motion.div)({flexShrink:0}),mt=styled("div")({display:"contents"});function en({requestJson:e={},onClose:o,onJsonRequestOpen:n,isRequestShown:t,setIsRequestShown:r,isToolbarAnimationDisabled:i,setIsToolbarAnimationDisabled:s,className:c,...a}){let{isMaximized:p,setIsMaximized:u,setSize:f,size:y,isResizing:S}=b$1(),b=Object.keys(e??{})?.length,C=y.width||N;return jsxs(Fragment,{children:[jsx(dt,{animate:{width:p?"100%":t?C*2:C,x:!p&&t?-C:0},transition:{duration:S||i?0:h$2},children:jsx($,{title:t?be:We,onClose:()=>o(),onMaximize:()=>{u(x=>!x),s(true),setTimeout(()=>{s(false);},h$2*1e3);},maximized:p,onRequestClick:()=>{r(x=>!x),s(false),t||(n?.(),f({width:N,height:B}));},requestDirection:t?"right":"left",showRequestIcon:!!b})}),jsx(mt,{className:Hb(pt.root,c),children:jsx(me,{...a,requestJson:e,onClose:o,onJsonRequestOpen:n,isRequestShown:t,isToolbarAnimationDisabled:i})})]})}var K=memo(en);var k=createContext({windows:[],open:()=>{},close:()=>{},closeAll:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{},registerJSONViewWindowEvents:()=>{},containerRef:{current:null}});function ut({list:e,events:o,onClose:n,isWindowMinimized:t,windowOrder:r}){return e?.length?jsx(Fragment,{children:e.map((i,s)=>jsx(xe,{index:s,...o,...i,onClose:()=>{n(s);},isWindowMinimized:t,windowOrder:r},i.json.id))}):null}ut.displayName="List";var ue=memo(ut);var gt=({children:e,containerRef:o})=>{let[n,t]=useState([]),[r,i]=useState(false),[s,c]=useState(1),a=useRef({}),p=useCallback(g=>{if(n.length===7){alert("Maximum allowed active JSON View Window is 7 per table.");return}if(n.some(A=>A.json.id===g.json.id))return;let h=structuredClone(g.json),I=h.request_body,D={...g,json:h,requestJson:g.requestJson||I||void 0};delete D.json.request_body,t(A=>[...A,D]);},[n]),u=useCallback(g=>{t(h=>h.filter((I,D)=>g!==D));},[]),f=useCallback(()=>{t([]);},[]),y=useCallback(g=>{i(g);},[]),S=useCallback(g=>{c(g);},[]),b=useCallback(g=>{a.current=g;},[]),C=useMemo(()=>({onJsonRequestOpen:()=>a.current.onJsonRequestOpen?.(),onJsonSearch:()=>a.current.onJsonSearch?.(),onJsonCopy:()=>a.current.onJsonCopy?.(),onJsonIdCopy:()=>a.current.onJsonIdCopy?.(),onJsonNodesMinimize:()=>a.current.onJsonNodesMinimize?.(),onJsonNodesMaximize:()=>a.current.onJsonNodesMaximize?.()}),[]),x=useMemo(()=>({windows:n,open:p,close:u,closeAll:f,handleWindowMinimize:y,handleWindowOrder:S,registerJSONViewWindowEvents:b,containerRef:o}),[n,p,u,f,y,S,b,o]);return jsxs(k.Provider,{value:x,children:[e,jsx(ue,{list:n,events:C,onClose:u,isWindowMinimized:r,windowOrder:s})]})};function yt(e){let{containerRef:o}=useContext(k),{height:n,width:t}=a(),[r,i]=useState(false),[s,c]=useState(false);return jsx(f$1,{isOpen:true,onClose:e.onClose,containerRef:o,defaultSize:{width:N,height:B},minSize:{width:N,height:300},defaultPosition:Zo(t,n,e.index),order:e.windowOrder,isMinimized:e.isWindowMinimized,id:"json-view-window",className:Hb(m.root,e.className),sx:Lo,children:jsx(K,{...e,isRequestShown:r,setIsRequestShown:i,isToolbarAnimationDisabled:s,setIsToolbarAnimationDisabled:c})})}yt.displayName="JSONViewWindow";var xe=memo(yt);var Nt=({isWindowMinimized:e,windowOrder:o,...n}={})=>{let{windows:t,open:r,close:i,closeAll:s,handleWindowMinimize:c,handleWindowOrder:a,registerJSONViewWindowEvents:p}=useContext(k),u=useCallback(()=>{c(e??false);},[c,e]),f=useCallback(()=>{a(o??1);},[a,o]);return useEffect(()=>{f();},[f]),useEffect(()=>{u();},[u]),useEffect(()=>{p(n);},[p,n]),{open:r,close:i,closeAll:s,windows:t,count:t.length}};var Ts=xe;export{m as a,N as b,B as c,Z as d,Ne as e,We as f,be as g,H as h,T as i,M as j,R as k,z as l,me as m,F as n,$ as o,K as p,k as q,ue as r,gt as s,Nt as t,Ts as u};
|
|
1
|
+
import {h,b as b$1,f as f$1}from'./chunk-P4S7PQWK.js';import {b,h as h$1,c as c$1,e,d,j as j$1,i}from'./chunk-NR5II44J.js';import {g,f,h as h$2}from'./chunk-ISC5KT5E.js';import {H as H$1,j}from'./chunk-6ZPNLCMN.js';import {a}from'./chunk-VJSBADTP.js';import {Gb,Hb}from'./chunk-MMXWSV6V.js';import {c}from'./chunk-53X3U5WT.js';import {Wd,ta,el,fl,xi,Jk,A,ye,xe as xe$1,sa,qa,ra}from'./chunk-VRGBJY4Q.js';import {forwardRef,memo,createContext,useState,useRef,useMemo,useContext,useEffect,useCallback,useId}from'react';import ie from'@mui/material/Box';import it from'@mui/material/Typography';import P from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';var O="os-shared-JSONViewWindow",m={root:`${O}-root`,body:`${O}-body`,requestPane:`${O}-requestPane`,responsePane:`${O}-responsePane`,section:`${O}-section`,title:`${O}-title`,actions:`${O}-actions`,scroll:`${O}-scroll`,footer:`${O}-footer`,count:`${O}-count`},N=400,B=545,Z=.5,co=20,mo=30,Ne="Items",We="JSON Response",be="JSON Request & Response",fo="rgb(231, 231, 231)";var uo=styled("span")({display:"inline-flex",alignItems:"center",gap:"6px"}),xo=styled("span")({margin:"0px",fontStyle:"normal",fontStretch:"normal",color:"rgb(32, 35, 43)",letterSpacing:"0px",fontSize:"9px",fontWeight:400,lineHeight:"10.8px"}),go=styled("span")({margin:"0px",fontStyle:"normal",fontStretch:"normal",color:"rgb(32, 35, 43)",letterSpacing:"0px",fontSize:"10.5px",fontWeight:700,lineHeight:"12.6px",textAlign:"right"});var ho=forwardRef(function({totalCount:o,id:n,className:t,sx:r},i){return jsx(h,{ref:i,id:n,"data-testid":n??"Footer",className:Hb(g,m.footer,t),sx:Gb({justifyContent:"flex-start",cursor:"move"},r),children:o!=null?jsx(H$1,{variant:"text",className:m.count,sx:{cursor:"text",borderWidth:.75},children:jsxs(uo,{children:[jsx(xo,{children:Ne}),jsx(go,{children:c(o??0)})]})}):null})});ho.displayName="Footer";var H=memo(ho);var yo=styled("button")(({theme:e})=>({outline:"none",cursor:"pointer",border:"1px solid transparent","&:hover":{boxShadow:e.shadows[8]},borderRadius:"0.25rem",position:"relative",backgroundColor:e.palette.background.transparent,display:"inline-flex",alignItems:"center",justifyContent:"center"})),Ie=styled(motion.img)({height:"14px",width:"14px"});function oe({"data-copied":e,style:o,onClick:n},{keyName:t}){return t?jsxs(yo,{style:o,onClick:r=>{n?.(r);},children:[jsx(AnimatePresence,{children:e&&jsx(Ie,{initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ta,alt:"icon"},"copied-icon")}),jsx(AnimatePresence,{children:!e&&jsx(Ie,{initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ra,alt:"icon"},"copy-icon")})]}):jsx("span",{})}var No=styled("button")(({theme:e})=>({padding:"0rem",borderRadius:"0.25rem",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",color:e.palette.text.primary,fontSize:"0.625rem",fontWeight:e.typography.fontWeightBold,outline:"none",cursor:"pointer",border:`1px solid ${e.palette.grey[100]}`,"&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark};`},position:"relative",overflow:"hidden",transition:"all 0.2s ease-in-out",width:"24px",height:"24px",flexShrink:0}));function Wo({onClick:e,icon:o,label:n,disableAnimation:t,...r}){let[i,s]=useState(false),{t:c}=useTranslation();return jsxs(No,{...r,onClick:p=>{e?.(p),!t&&(s(true),setTimeout(()=>{s(false);},2e3));},children:[jsxs(ie,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:i&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:ta,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!i&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:o,alt:"icon"},"id-icon")})]}),n&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:c("copied")})}),jsx(AnimatePresence,{children:!i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:n})})]})]})}Wo.displayName="IconButton";var T=memo(Wo);var bo=styled("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),Co=styled("button")(({theme:e,isActive:o})=>({width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",border:`1px solid ${o?e.palette.info.dark:e.palette.grey[100]}`,backgroundColor:e.palette.background.paper,cursor:"pointer",outline:"none",padding:0,position:"relative",zIndex:11,transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`}})),Io=styled(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),Oo=styled(motion.input)(({theme:e})=>({width:"177px",height:"24px",borderRadius:"4px",color:e.palette.text.primary,fontSize:"10px",outline:0,background:e.palette.background.paper,boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`,paddingLeft:"8px",boxSizing:"border-box","::placeholder":{color:"#D5D5D5"}})),Te={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},To={...Te,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},Po=styled("button")(()=>({...To,right:53})),_o=styled("button")(()=>({...To,right:39})),vo=styled(motion.img)(()=>({...Te,right:24,width:10,height:10,cursor:"pointer"})),Jo=styled(motion.img)(()=>({...Te,right:8,width:11,height:11,cursor:"default"})),Pe=styled("img")(()=>({width:10,height:10})),Eo=styled("img")(()=>({width:12,height:12})),Vo=styled("span")(({theme:e})=>({position:"absolute",right:67,top:"50%",transform:"translateY(-50%)",fontSize:"9px",lineHeight:1,color:e.palette.text.secondary,whiteSpace:"nowrap",userSelect:"none",zIndex:2,pointerEvents:"none"}));function Ht({value:e,onChange:o,currentIndex:n,totalCount:t,onPrev:r,onNext:i,onOpen:s,placeholder:c="Search..."}){let[a,p]=useState(false),u=useRef(null),f=e.trim().length>0,y=t>0,S=f,b=()=>{s?.(),p(true),requestAnimationFrame(()=>u.current?.focus());},C=()=>{o(""),p(false);};return jsxs(bo,{children:[jsx(AnimatePresence,{children:a&&jsxs(Io,{initial:{clipPath:"inset(0 0 0 100%)",opacity:0},animate:{clipPath:"inset(0 0 0 0%)",opacity:1},exit:{clipPath:"inset(0 0 0 100%)",opacity:0},transition:{duration:.22,ease:[.4,0,.2,1]},children:[jsx(Oo,{ref:u,initial:false,animate:{paddingRight:S?"98px":"24px"},transition:{duration:.15},placeholder:c,value:e,onChange:I=>o(I.target.value),onKeyDown:I=>{I.key==="Enter"&&(I.shiftKey?r():i()),I.key==="Escape"&&C();},onBlur:()=>{f||p(false);}}),S&&jsx(Po,{onClick:r,disabled:!y,title:"Previous match (Shift+Enter)",children:jsx(Pe,{src:el,alt:"prev"})}),S&&jsx(_o,{onClick:i,disabled:!y,title:"Next match (Enter)",children:jsx(Pe,{src:fl,alt:"next"})}),S&&jsx(vo,{src:xi,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:C}),jsx(Jo,{src:Jk,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),S&&jsx(Vo,{children:y?`${n+1}/${t}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!a&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(Co,{isActive:false,onClick:b,title:"Search",children:jsx(Eo,{src:A,alt:"search"})})})})]})}var M=memo(Ht);function Do(e,o){let n=[],t=o.length,r=0,i=e.indexOf(o,r);for(;i!==-1;){let s=i+t;n.push([i,s]),r=s,i=e.indexOf(o,r);}return n}var Mt={padding:0,outline:"none"};function Ao({text:e,queryLength:o,ranges:n,idPrefix:t}){let r=[],i=0;return n.forEach(([s,c],a)=>{s>i&&r.push(e.slice(i,s)),r.push(jsx("mark",{style:Mt,children:e.slice(s,s+o)},`${t}-${a}`)),i=c;}),i<e.length&&r.push(e.slice(i)),jsx(Fragment,{children:r})}function R({text:e,query:o}){let n=useId(),t=useMemo(()=>o.trim().toLowerCase(),[o]),r=useMemo(()=>{if(!t)return e;let i=e.toLowerCase(),s=Do(i,t);return s.length===0?e:jsx(Ao,{text:e,queryLength:o.length,ranges:s,idPrefix:n})},[e,o.length,t,n]);return jsx(Fragment,{children:r})}var Lo={overflow:"visible",boxShadow:"none",filter:"drop-shadow(0 0 20px rgba(0, 0, 0, 0.15))"},_e={"--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#357fb9","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ffffff","--w-rjv-arrow-color":"#116e6bed","--w-rjv-edit-color":"#9cdcfe","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#FFE20B","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#000000","--w-rjv-colon-color":"#000000","--w-rjv-brackets-color":"#000000","--w-rjv-quotes-color":"#9cdcfe","--w-rjv-quotes-string-color":"#c27c46","--w-rjv-type-string-color":"#c27c46","--w-rjv-type-int-color":"#956ea5","--w-rjv-type-float-color":"#956ea5","--w-rjv-type-bigint-color":"#956ea5","--w-rjv-type-boolean-color":"#357fb9","--w-rjv-type-date-color":"#956ea5","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#956ea5","--w-rjv-type-nan-color":"#956ea5","--w-rjv-type-undefined-color":"#956ea5",padding:"1rem",height:"100%",overflow:"auto"},zo={..._e,background:"transparent","--w-rjv-line-color":"transparent"},ve=styled(j)(()=>({border:"1px solid rgba(242, 242, 242, 0.70);",display:"inline-flex",height:"24px",minWidth:"73px",padding:"0px 8px",justifyContent:"center",alignItems:"center",gap:"6px",borderRadius:"37.5px",backgroundColor:"#fff",fontSize:"9px",lineHeight:"15px",fontWeight:400})),Je=styled(ie)(()=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"8px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,flexShrink:0,minHeight:44})),Ee=styled(ie)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",flexShrink:0,marginLeft:"auto"})),Fo=styled(ie)(()=>({display:"flex",flexDirection:"row",flex:1,minHeight:0,height:"100%",width:"100%",background:"transparent",position:"relative",overflow:"visible"})),Ve=styled(ie)(()=>({display:"flex",flexDirection:"column",flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden"})),qo=styled(motion.div,{shouldForwardProp:e=>!["isRequestShown","isMaximized"].includes(e)})(({isRequestShown:e,isMaximized:o})=>({width:"100%",height:"100%",minHeight:0,overflow:"hidden",background:"#fff",zIndex:20,position:"relative",left:0,display:"flex",flexDirection:"column",flex:1,minWidth:0,borderBottomRightRadius:"12px",borderBottomLeftRadius:e?0:"12px",...o&&{borderBottomLeftRadius:0,borderBottomRightRadius:0}})),$o=styled(motion.div,{shouldForwardProp:e=>!["isMaximized","currentRequestWidth"].includes(e)})(({isMaximized:e,currentRequestWidth:o})=>({backgroundColor:fo,backdropFilter:"blur(24px)",height:"100%",overflowY:"auto",overflowX:"hidden",position:"absolute",width:e?"100%":o,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px",top:0,bottom:0})),Ko=styled("span")(()=>({color:"#032F62"})),Uo=styled("span")(()=>({color:"#357fb9"}));function se(e,o){return e.toLowerCase().includes(o)}function ae(e){return e.trim().toLowerCase()}function le(e){let o=ae(e);return (n,{keyName:t})=>{if(!o||!t)return;let r=String(t);if(se(r,o))return jsx(Uo,{children:jsx(R,{text:String(t),query:e})})}}function pe(e){let o=ae(e);return (n,{value:t})=>{if(!o)return;let r=String(t??"");if(se(r,o))return jsxs(Ko,{children:['"',jsx(R,{text:String(t??""),query:e}),'"']})}}function Qo(e,o){return e==null?String(e).includes(o):typeof e=="string"?e.toLowerCase().includes(o):typeof e=="number"||typeof e=="boolean"?String(e).includes(o):false}function Yo(e,o){if(Array.isArray(e)){let n=e.map(t=>Yo(t,o)).filter(t=>t!=null);return n.length>0?n:null}return typeof e=="object"&&e!==null?Xo(e,o):Qo(e,o)?e:null}function Xo(e,o){let n={};for(let[t,r]of Object.entries(e))if(t.toLowerCase().includes(o))n[t]=r;else if(typeof r=="object"&&r!==null){let i=Yo(r,o);i!==null&&(n[t]=i);}else Qo(r,o)&&(n[t]=r);return Object.keys(n).length>0?n:null}function Re(e,o){return o.trim()?Xo(e,o.toLowerCase()):e}function Zo(e,o,n){return {x:e/2-N/4+n*co,y:o/2-B/2+n*mo}}var nt="#FFE20B";function z(e,o){let[n,t]=useState(0),[r,i]=useState(0);useEffect(()=>{if(!o.trim()){i(0),t(0);return}let a=setTimeout(()=>{let p=e.current?.querySelectorAll("mark")??[];i(p.length),t(0);},50);return ()=>clearTimeout(a)},[o,e]),useEffect(()=>{if(!e.current||!o.trim())return;let a=Array.from(e.current.querySelectorAll("mark"));a.forEach((p,u)=>{let f=u===n;p.style.backgroundColor=f?nt:"transparent",p.style.outline=f?`1px solid ${nt}`:"none",p.style.borderRadius="2px";}),a[n]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[n,r,o,e]);let s=useCallback(()=>{r!==0&&t(a=>(a+1)%r);},[r]),c=useCallback(()=>{r!==0&&t(a=>(a-1+r)%r);},[r]);return {currentIndex:n,totalCount:r,goNext:s,goPrev:c}}function st({json:e,requestJson:o={},onJsonSearch:n,onJsonCopy:t,onJsonIdCopy:r,onJsonNodesMinimize:i,onJsonNodesMaximize:s,isRequestShown:c,isToolbarAnimationDisabled:a}){let{isMaximized:p,size:u,isResizing:f}=b$1(),[y,S]=useState(false),[b,C]=useState(true),[x,g]=useState(""),[h,I]=useState(""),D=useRef(null),A=useRef(null),U=z(D,x),G=z(A,h),Wt=useMemo(()=>Object.keys(e??{})?.length??0,[e]),Ae=u.width||N,He=_=>{setTimeout(()=>{navigator.clipboard.writeText(_||"").then(()=>{});},10);},bt=useMemo(()=>Object.keys(o??{})?.length??0,[o]),Me=useMemo(()=>Re(e,x),[e,x]),je=useMemo(()=>Re(o,h),[o,h]);return jsxs(Fo,{"data-testid":"Pane",className:Hb(m.root,m.body),children:[jsx(AnimatePresence,{children:c&&jsx($o,{className:Hb(m.requestPane),initial:{left:0},animate:{left:p?0:-Ae},exit:{left:0},transition:{duration:Z,...a&&{duration:0},...f&&{duration:0}},isMaximized:p,currentRequestWidth:Ae,children:jsxs(ie,{ref:A,sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[jsxs(Je,{className:Hb(m.section),sx:{background:"transparent"},children:[jsx(ve,{variant:"subtitle1",className:Hb(m.title),children:"API Request"}),jsxs(Ee,{className:Hb(m.actions),children:[jsx(M,{value:h,onChange:I,onOpen:()=>n?.(),currentIndex:G.currentIndex,totalCount:G.totalCount,onPrev:G.goPrev,onNext:G.goNext}),jsx(T,{disableAnimation:true,onClick:()=>{b?s?.():i?.(),C(_=>!_);},icon:b?ye:xe$1}),jsx(T,{onClick:()=>{t?.(),navigator.clipboard.writeText(JSON.stringify(o,null,2)).then(()=>{});},icon:sa}),jsx(T,{onClick:()=>{r?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),h.trim()&&je===null?jsx(ie,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(it,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsx(Ve,{className:Hb(m.scroll),children:jsxs(P,{value:je??o,style:zo,displayDataTypes:false,collapsed:h.trim()?void 0:b?1:void 0,onCopied:(_,v)=>{typeof v=="string"&&He(v);},enableClipboard:false,children:[jsx(P.String,{render:pe(h)}),jsx(P.KeyName,{render:le(h)}),jsx(P.CountInfo,{render:(_,{keyName:v})=>{if(!v)return jsx("span",{})}}),jsx(P.Copied,{render:oe})]})}),jsx(H,{totalCount:bt,sx:{borderBottomRightRadius:0,background:"#f8f9fb"}})]})},"request-pane")}),jsxs(qo,{ref:D,className:Hb(m.responsePane),isMaximized:p,isRequestShown:c,initial:{...p&&{width:"100vw",left:0}},animate:{...p&&{position:"absolute",left:c?"50vw":"0"}},transition:{duration:Z,...a&&{duration:0},...f&&{duration:0}},children:[jsxs(Je,{className:Hb(m.section),children:[jsx(ve,{variant:"subtitle1",className:Hb(m.title),children:"API Response"}),jsxs(Ee,{className:Hb(m.actions),children:[jsx(M,{value:x,onChange:g,onOpen:()=>n?.(),currentIndex:U.currentIndex,totalCount:U.totalCount,onPrev:U.goPrev,onNext:U.goNext}),jsx(T,{disableAnimation:true,onClick:()=>{y?s?.():i?.(),S(_=>!_);},icon:y?ye:xe$1}),jsx(T,{onClick:()=>{t?.(),navigator.clipboard.writeText(JSON.stringify(e,null,2)).then(()=>{});},icon:sa}),jsx(T,{onClick:()=>{r?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),x.trim()&&Me===null?jsx(ie,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(it,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsx(Ve,{className:Hb(m.scroll),children:jsxs(P,{value:Me??e,style:_e,displayDataTypes:false,collapsed:x.trim()?void 0:y?1:void 0,onCopied:(_,v)=>{typeof v=="string"&&He(v);},children:[jsx(P.String,{render:pe(x)}),jsx(P.KeyName,{render:le(x)}),jsx(P.CountInfo,{render:(_,{keyName:v})=>{if(!v)return jsx("span",{})}}),jsx(P.Copied,{render:oe})]})}),jsx(H,{totalCount:Wt,sx:{borderBottomLeftRadius:c?0:"12px",background:"#f8f9fb"}})]})]})}st.displayName="Pane";var me=memo(st);var Ut="os-shared-JSONViewWindowToolbar",F={root:`${Ut}-root`};var lt=forwardRef(function({title:o,onClose:n,onMaximize:t,maximized:r=false,onRequestClick:i$1,requestDirection:s="left",showRequestIcon:c=false,id:a,className:p,sx:u},f$1){return jsxs(b,{ref:f$1,id:a??f,"data-testid":a??"Toolbar",sx:Gb({backgroundColor:"#f9f9f9",backdropFilter:"none"},u),className:Hb(F.root,p),children:[jsxs(h$1,{children:[jsx(c$1,{onClick:n}),jsx(e,{isMaximized:r,onClick:t}),c&&jsx(d,{onClick:i$1,direction:s,children:"Request"})]}),jsx(j$1,{title:o,icon:Wd}),jsx(i,{})]})});lt.displayName="Toolbar";var $=memo(lt);var Yt="os-shared-JSONViewWindowContent",pt={root:`${Yt}-root`};var dt=styled(motion.div)({flexShrink:0}),mt=styled("div")({display:"contents"});function en({requestJson:e={},onClose:o,onJsonRequestOpen:n,isRequestShown:t,setIsRequestShown:r,isToolbarAnimationDisabled:i,setIsToolbarAnimationDisabled:s,className:c,...a}){let{isMaximized:p,setIsMaximized:u,setSize:f,size:y,isResizing:S}=b$1(),b=Object.keys(e??{})?.length,C=y.width||N;return jsxs(Fragment,{children:[jsx(dt,{animate:{width:p?"100%":t?C*2:C,x:!p&&t?-C:0},transition:{duration:S||i?0:h$2},children:jsx($,{title:t?be:We,onClose:()=>o(),onMaximize:()=>{u(x=>!x),s(true),setTimeout(()=>{s(false);},h$2*1e3);},maximized:p,onRequestClick:()=>{r(x=>!x),s(false),t||(n?.(),f({width:N,height:B}));},requestDirection:t?"right":"left",showRequestIcon:!!b})}),jsx(mt,{className:Hb(pt.root,c),children:jsx(me,{...a,requestJson:e,onClose:o,onJsonRequestOpen:n,isRequestShown:t,isToolbarAnimationDisabled:i})})]})}var K=memo(en);var k=createContext({windows:[],open:()=>{},close:()=>{},closeAll:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{},registerJSONViewWindowEvents:()=>{},containerRef:{current:null}});function ut({list:e,events:o,onClose:n,isWindowMinimized:t,windowOrder:r}){return e?.length?jsx(Fragment,{children:e.map((i,s)=>jsx(xe,{index:s,...o,...i,onClose:()=>{n(s);},isWindowMinimized:t,windowOrder:r},i.json.id))}):null}ut.displayName="List";var ue=memo(ut);var gt=({children:e,containerRef:o})=>{let[n,t]=useState([]),[r,i]=useState(false),[s,c]=useState(1),a=useRef({}),p=useCallback(g=>{if(n.length===7){alert("Maximum allowed active JSON View Window is 7 per table.");return}if(n.some(A=>A.json.id===g.json.id))return;let h=structuredClone(g.json),I=h.request_body,D={...g,json:h,requestJson:g.requestJson||I||void 0};delete D.json.request_body,t(A=>[...A,D]);},[n]),u=useCallback(g=>{t(h=>h.filter((I,D)=>g!==D));},[]),f=useCallback(()=>{t([]);},[]),y=useCallback(g=>{i(g);},[]),S=useCallback(g=>{c(g);},[]),b=useCallback(g=>{a.current=g;},[]),C=useMemo(()=>({onJsonRequestOpen:()=>a.current.onJsonRequestOpen?.(),onJsonSearch:()=>a.current.onJsonSearch?.(),onJsonCopy:()=>a.current.onJsonCopy?.(),onJsonIdCopy:()=>a.current.onJsonIdCopy?.(),onJsonNodesMinimize:()=>a.current.onJsonNodesMinimize?.(),onJsonNodesMaximize:()=>a.current.onJsonNodesMaximize?.()}),[]),x=useMemo(()=>({windows:n,open:p,close:u,closeAll:f,handleWindowMinimize:y,handleWindowOrder:S,registerJSONViewWindowEvents:b,containerRef:o}),[n,p,u,f,y,S,b,o]);return jsxs(k.Provider,{value:x,children:[e,jsx(ue,{list:n,events:C,onClose:u,isWindowMinimized:r,windowOrder:s})]})};function yt(e){let{containerRef:o}=useContext(k),{height:n,width:t}=a(),[r,i]=useState(false),[s,c]=useState(false);return jsx(f$1,{isOpen:true,onClose:e.onClose,containerRef:o,defaultSize:{width:N,height:B},minSize:{width:N,height:300},defaultPosition:Zo(t,n,e.index),order:e.windowOrder,isMinimized:e.isWindowMinimized,id:"json-view-window",className:Hb(m.root,e.className),sx:Lo,children:jsx(K,{...e,isRequestShown:r,setIsRequestShown:i,isToolbarAnimationDisabled:s,setIsToolbarAnimationDisabled:c})})}yt.displayName="JSONViewWindow";var xe=memo(yt);var Nt=({isWindowMinimized:e,windowOrder:o,...n}={})=>{let{windows:t,open:r,close:i,closeAll:s,handleWindowMinimize:c,handleWindowOrder:a,registerJSONViewWindowEvents:p}=useContext(k),u=useCallback(()=>{c(e??false);},[c,e]),f=useCallback(()=>{a(o??1);},[a,o]);return useEffect(()=>{f();},[f]),useEffect(()=>{u();},[u]),useEffect(()=>{p(n);},[p,n]),{open:r,close:i,closeAll:s,windows:t,count:t.length}};var Ts=xe;export{m as a,N as b,B as c,Z as d,Ne as e,We as f,be as g,H as h,T as i,M as j,R as k,z as l,me as m,F as n,$ as o,K as p,k as q,ue as r,gt as s,Nt as t,Ts as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{qc as ColumnViewsPicker,sc as CreateViewDialog,oc as CustomViews,pc as DefaultViews,rc as ViewsDropdown,Kb as areAllColumnsSelected,Qb as areAllCurrentColumnsSelected,Tb as areColumnsEqual,Lb as areSomeColumnsSelected,Rb as areSomeCurrentColumnsSelected,jc as buildFullTemplateLayouts,hc as buildRequiredColumnView,rb as convertColumnsToLayoutSection,ac as convertTemplateToColumnsView,bc as convertTemplatesToColumnsView,zb as countCustomTemplates,Ab as countCustomViewMenuItems,tb as createCustomViewMenuItem,Nb as deepCloneColumns,Gb as getColumnCheckState,Zb as getColumnOrder,qb as getColumnsByMode,fc as getLayoutCodesForMode,sb as getLayoutDataFromTemplates,gc as getOtherModeSectionCode,Yb as getSubmenuFromTemplateLayout,Db as getSubmenuItems,Fb as getSubmenuItemsForDisplay,vb as getTemplateRole,_b as handleTemplateUpdate,ic as hasLayoutSectionForMode,Eb as hasSubmenu,Wb as initializeCreateColumns,Xb as initializeCreateColumnsWithCurrentState,Vb as initializeEditingColumns,ec as isCheckboxInteractionTarget,yb as isCustomTemplate,xb as isCustomView,nb as isDateColumn,ob as isIndexColumn,wb as isPresetView,Mb as isValidTemplateName,Cb as mapTemplatesToMenuItems,Sb as normalizeColumnsSelected,cc as replaceTemplateInList,Ub as resetColumnsToDefault,ub as setViewAsDefault,$b as templateToViewMenuItem,Jb as toggleAllColumns,Pb as toggleAllCurrentColumns,Hb as toggleColumn,Ob as toggleSingleColumn,Ib as toggleSubItem,pb as transformLayoutToColumns,Bb as transformTemplatesToViewMenuItems,dc as updateCurrentTemplate,nc as useCustomTableViews,mc as useSubmenuHover,kc as useViewsManager,lc as useViewsMenu}from'../../_chunks/chunk-
|
|
1
|
+
export{qc as ColumnViewsPicker,sc as CreateViewDialog,oc as CustomViews,pc as DefaultViews,rc as ViewsDropdown,Kb as areAllColumnsSelected,Qb as areAllCurrentColumnsSelected,Tb as areColumnsEqual,Lb as areSomeColumnsSelected,Rb as areSomeCurrentColumnsSelected,jc as buildFullTemplateLayouts,hc as buildRequiredColumnView,rb as convertColumnsToLayoutSection,ac as convertTemplateToColumnsView,bc as convertTemplatesToColumnsView,zb as countCustomTemplates,Ab as countCustomViewMenuItems,tb as createCustomViewMenuItem,Nb as deepCloneColumns,Gb as getColumnCheckState,Zb as getColumnOrder,qb as getColumnsByMode,fc as getLayoutCodesForMode,sb as getLayoutDataFromTemplates,gc as getOtherModeSectionCode,Yb as getSubmenuFromTemplateLayout,Db as getSubmenuItems,Fb as getSubmenuItemsForDisplay,vb as getTemplateRole,_b as handleTemplateUpdate,ic as hasLayoutSectionForMode,Eb as hasSubmenu,Wb as initializeCreateColumns,Xb as initializeCreateColumnsWithCurrentState,Vb as initializeEditingColumns,ec as isCheckboxInteractionTarget,yb as isCustomTemplate,xb as isCustomView,nb as isDateColumn,ob as isIndexColumn,wb as isPresetView,Mb as isValidTemplateName,Cb as mapTemplatesToMenuItems,Sb as normalizeColumnsSelected,cc as replaceTemplateInList,Ub as resetColumnsToDefault,ub as setViewAsDefault,$b as templateToViewMenuItem,Jb as toggleAllColumns,Pb as toggleAllCurrentColumns,Hb as toggleColumn,Ob as toggleSingleColumn,Ib as toggleSubItem,pb as transformLayoutToColumns,Bb as transformTemplatesToViewMenuItems,dc as updateCurrentTemplate,nc as useCustomTableViews,mc as useSubmenuHover,kc as useViewsManager,lc as useViewsMenu}from'../../_chunks/chunk-MDHPSQZO.js';import'../../_chunks/chunk-RL2HFGDQ.js';import'../../_chunks/chunk-JSTCL624.js';import'../../_chunks/chunk-S3EORDGB.js';import'../../_chunks/chunk-DOK4RXSY.js';import'../../_chunks/chunk-P4S7PQWK.js';import'../../_chunks/chunk-TZZV6XFT.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-NR5II44J.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-WE7OB4CG.js';import'../../_chunks/chunk-VYVRCIYJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-L2GLBT5H.js';import'../../_chunks/chunk-BNKBYTQ3.js';import'../../_chunks/chunk-NOLYKMU3.js';import'../../_chunks/chunk-BFBJOTG2.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-UF4J7JEY.js';import'../../_chunks/chunk-LVK5VG43.js';import'../../_chunks/chunk-4NHNAJKD.js';import'../../_chunks/chunk-LJWTINBT.js';import'../../_chunks/chunk-HXJSH3G2.js';import'../../_chunks/chunk-WM3AFXCW.js';import'../../_chunks/chunk-QLASTW76.js';import'../../_chunks/chunk-IHXFOGTQ.js';import'../../_chunks/chunk-DFN7XD7P.js';import'../../_chunks/chunk-VDGOANGT.js';import'../../_chunks/chunk-PPO3PSE7.js';import'../../_chunks/chunk-W77B5KVI.js';import'../../_chunks/chunk-K6633DSY.js';import'../../_chunks/chunk-CFZR2VK2.js';import'../../_chunks/chunk-26OK5BYP.js';import'../../_chunks/chunk-5OC2QXZL.js';import'../../_chunks/chunk-6LO7PI3V.js';import'../../_chunks/chunk-RD4DGYOQ.js';import'../../_chunks/chunk-7S2LHLZC.js';import'../../_chunks/chunk-THSE46VC.js';import'../../_chunks/chunk-SXXIPX35.js';import'../../_chunks/chunk-GFEQDSYL.js';import'../../_chunks/chunk-PEOYN7GO.js';import'../../_chunks/chunk-OBELDQWE.js';import'../../_chunks/chunk-OJS6C6S6.js';import'../../_chunks/chunk-LZKPVI6B.js';import'../../_chunks/chunk-ZGVTCYRV.js';import'../../_chunks/chunk-XFEWBGH5.js';import'../../_chunks/chunk-IM4LTXAH.js';import'../../_chunks/chunk-D7JDLT2O.js';import'../../_chunks/chunk-OHT5KJVT.js';import'../../_chunks/chunk-SHUOO4XL.js';import'../../_chunks/chunk-PNLHCTCW.js';import'../../_chunks/chunk-GDIPXZTC.js';import'../../_chunks/chunk-N57Z6DIM.js';import'../../_chunks/chunk-HIGHKQAD.js';import'../../_chunks/chunk-4IQ3J4LF.js';import'../../_chunks/chunk-57D57K75.js';import'../../_chunks/chunk-VBGXGFX5.js';import'../../_chunks/chunk-WYH4IUDI.js';import'../../_chunks/chunk-76GQ37UR.js';import'../../_chunks/chunk-4EOSR5FI.js';import'../../_chunks/chunk-6UMTGWFW.js';import'../../_chunks/chunk-RXCJF7BB.js';import'../../_chunks/chunk-AN56DE5R.js';import'../../_chunks/chunk-6ZPNLCMN.js';import'../../_chunks/chunk-WXWRA4VU.js';import'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-JY4U45C5.js';import'../../_chunks/chunk-VJSBADTP.js';export{Xa as CUSTOM_VIEW,Sa as DATE_COLUMN_CONFIG,Wa as DEFAULT_VIEW,Ya as DEFAULT_VIEW_OPTIONS,Na as DIALOG_HEIGHT,Ma as DIALOG_WIDTH,Ra as INDEX_COLUMN_CONFIG,Oa as MAX_CUSTOM_VIEWS,Pa as TEMPLATE_NAME_MAX_LENGTH,Qa as TableViewColumnNames}from'../../_chunks/chunk-MMXWSV6V.js';import'../../_chunks/chunk-53X3U5WT.js';import'../../_chunks/chunk-VRGBJY4Q.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{vc as DateFilter}from'../../_chunks/chunk-
|
|
1
|
+
export{vc as DateFilter}from'../../_chunks/chunk-MDHPSQZO.js';import'../../_chunks/chunk-RL2HFGDQ.js';import'../../_chunks/chunk-JSTCL624.js';import'../../_chunks/chunk-S3EORDGB.js';import'../../_chunks/chunk-DOK4RXSY.js';import'../../_chunks/chunk-P4S7PQWK.js';import'../../_chunks/chunk-TZZV6XFT.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-NR5II44J.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-WE7OB4CG.js';import'../../_chunks/chunk-VYVRCIYJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-L2GLBT5H.js';import'../../_chunks/chunk-BNKBYTQ3.js';import'../../_chunks/chunk-NOLYKMU3.js';import'../../_chunks/chunk-BFBJOTG2.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-UF4J7JEY.js';import'../../_chunks/chunk-LVK5VG43.js';import'../../_chunks/chunk-4NHNAJKD.js';import'../../_chunks/chunk-LJWTINBT.js';import'../../_chunks/chunk-HXJSH3G2.js';import'../../_chunks/chunk-WM3AFXCW.js';import'../../_chunks/chunk-QLASTW76.js';import'../../_chunks/chunk-IHXFOGTQ.js';import'../../_chunks/chunk-DFN7XD7P.js';import'../../_chunks/chunk-VDGOANGT.js';import'../../_chunks/chunk-PPO3PSE7.js';import'../../_chunks/chunk-W77B5KVI.js';import'../../_chunks/chunk-K6633DSY.js';import'../../_chunks/chunk-CFZR2VK2.js';import'../../_chunks/chunk-26OK5BYP.js';import'../../_chunks/chunk-5OC2QXZL.js';import'../../_chunks/chunk-6LO7PI3V.js';import'../../_chunks/chunk-RD4DGYOQ.js';import'../../_chunks/chunk-7S2LHLZC.js';import'../../_chunks/chunk-THSE46VC.js';import'../../_chunks/chunk-SXXIPX35.js';import'../../_chunks/chunk-GFEQDSYL.js';import'../../_chunks/chunk-PEOYN7GO.js';import'../../_chunks/chunk-OBELDQWE.js';import'../../_chunks/chunk-OJS6C6S6.js';import'../../_chunks/chunk-LZKPVI6B.js';import'../../_chunks/chunk-ZGVTCYRV.js';import'../../_chunks/chunk-XFEWBGH5.js';import'../../_chunks/chunk-IM4LTXAH.js';import'../../_chunks/chunk-D7JDLT2O.js';import'../../_chunks/chunk-OHT5KJVT.js';import'../../_chunks/chunk-SHUOO4XL.js';import'../../_chunks/chunk-PNLHCTCW.js';import'../../_chunks/chunk-GDIPXZTC.js';import'../../_chunks/chunk-N57Z6DIM.js';import'../../_chunks/chunk-HIGHKQAD.js';import'../../_chunks/chunk-4IQ3J4LF.js';import'../../_chunks/chunk-57D57K75.js';import'../../_chunks/chunk-VBGXGFX5.js';import'../../_chunks/chunk-WYH4IUDI.js';import'../../_chunks/chunk-76GQ37UR.js';import'../../_chunks/chunk-4EOSR5FI.js';import'../../_chunks/chunk-6UMTGWFW.js';import'../../_chunks/chunk-RXCJF7BB.js';import'../../_chunks/chunk-AN56DE5R.js';import'../../_chunks/chunk-6ZPNLCMN.js';import'../../_chunks/chunk-WXWRA4VU.js';import'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-JY4U45C5.js';import'../../_chunks/chunk-VJSBADTP.js';import'../../_chunks/chunk-MMXWSV6V.js';import'../../_chunks/chunk-53X3U5WT.js';import'../../_chunks/chunk-VRGBJY4Q.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{uc as ListHeader}from'../../_chunks/chunk-
|
|
1
|
+
export{uc as ListHeader}from'../../_chunks/chunk-MDHPSQZO.js';import'../../_chunks/chunk-RL2HFGDQ.js';import'../../_chunks/chunk-JSTCL624.js';import'../../_chunks/chunk-S3EORDGB.js';import'../../_chunks/chunk-DOK4RXSY.js';import'../../_chunks/chunk-P4S7PQWK.js';import'../../_chunks/chunk-TZZV6XFT.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-NR5II44J.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-WE7OB4CG.js';import'../../_chunks/chunk-VYVRCIYJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-L2GLBT5H.js';import'../../_chunks/chunk-BNKBYTQ3.js';import'../../_chunks/chunk-NOLYKMU3.js';import'../../_chunks/chunk-BFBJOTG2.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-UF4J7JEY.js';import'../../_chunks/chunk-LVK5VG43.js';import'../../_chunks/chunk-4NHNAJKD.js';import'../../_chunks/chunk-LJWTINBT.js';import'../../_chunks/chunk-HXJSH3G2.js';import'../../_chunks/chunk-WM3AFXCW.js';import'../../_chunks/chunk-QLASTW76.js';import'../../_chunks/chunk-IHXFOGTQ.js';import'../../_chunks/chunk-DFN7XD7P.js';import'../../_chunks/chunk-VDGOANGT.js';import'../../_chunks/chunk-PPO3PSE7.js';import'../../_chunks/chunk-W77B5KVI.js';import'../../_chunks/chunk-K6633DSY.js';import'../../_chunks/chunk-CFZR2VK2.js';import'../../_chunks/chunk-26OK5BYP.js';import'../../_chunks/chunk-5OC2QXZL.js';import'../../_chunks/chunk-6LO7PI3V.js';import'../../_chunks/chunk-RD4DGYOQ.js';import'../../_chunks/chunk-7S2LHLZC.js';import'../../_chunks/chunk-THSE46VC.js';import'../../_chunks/chunk-SXXIPX35.js';import'../../_chunks/chunk-GFEQDSYL.js';import'../../_chunks/chunk-PEOYN7GO.js';import'../../_chunks/chunk-OBELDQWE.js';import'../../_chunks/chunk-OJS6C6S6.js';import'../../_chunks/chunk-LZKPVI6B.js';import'../../_chunks/chunk-ZGVTCYRV.js';import'../../_chunks/chunk-XFEWBGH5.js';import'../../_chunks/chunk-IM4LTXAH.js';import'../../_chunks/chunk-D7JDLT2O.js';import'../../_chunks/chunk-OHT5KJVT.js';import'../../_chunks/chunk-SHUOO4XL.js';import'../../_chunks/chunk-PNLHCTCW.js';import'../../_chunks/chunk-GDIPXZTC.js';import'../../_chunks/chunk-N57Z6DIM.js';import'../../_chunks/chunk-HIGHKQAD.js';import'../../_chunks/chunk-4IQ3J4LF.js';import'../../_chunks/chunk-57D57K75.js';import'../../_chunks/chunk-VBGXGFX5.js';import'../../_chunks/chunk-WYH4IUDI.js';import'../../_chunks/chunk-76GQ37UR.js';import'../../_chunks/chunk-4EOSR5FI.js';import'../../_chunks/chunk-6UMTGWFW.js';import'../../_chunks/chunk-RXCJF7BB.js';import'../../_chunks/chunk-AN56DE5R.js';import'../../_chunks/chunk-6ZPNLCMN.js';import'../../_chunks/chunk-WXWRA4VU.js';import'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-JY4U45C5.js';import'../../_chunks/chunk-VJSBADTP.js';import'../../_chunks/chunk-MMXWSV6V.js';import'../../_chunks/chunk-53X3U5WT.js';import'../../_chunks/chunk-VRGBJY4Q.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{R as AgreementIcon,T as AuthIcons,S as AuthSourceAnimation,V as AuthorizationAutoIcons,W as AuthorizedIcon,X as ChargeStatusIcon,Y as CustomerInitiatedIcon,ga as DestinationIcon,_ as DeviceIconChip,$ as DisputeIcon,Z as GeographyIcon,aa as IssuerIcon,ba as PayoutIcon,ca as RefundIcon,ea as SourceIcon,fa as SourceIcons,U as VoidAutoIcon,da as getPaymentMethodKey}from'../../_chunks/chunk-
|
|
1
|
+
export{R as AgreementIcon,T as AuthIcons,S as AuthSourceAnimation,V as AuthorizationAutoIcons,W as AuthorizedIcon,X as ChargeStatusIcon,Y as CustomerInitiatedIcon,ga as DestinationIcon,_ as DeviceIconChip,$ as DisputeIcon,Z as GeographyIcon,aa as IssuerIcon,ba as PayoutIcon,ca as RefundIcon,ea as SourceIcon,fa as SourceIcons,U as VoidAutoIcon,da as getPaymentMethodKey}from'../../_chunks/chunk-MDHPSQZO.js';import'../../_chunks/chunk-RL2HFGDQ.js';import'../../_chunks/chunk-JSTCL624.js';import'../../_chunks/chunk-S3EORDGB.js';import'../../_chunks/chunk-DOK4RXSY.js';import'../../_chunks/chunk-P4S7PQWK.js';import'../../_chunks/chunk-TZZV6XFT.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-NR5II44J.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-WE7OB4CG.js';import'../../_chunks/chunk-VYVRCIYJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-L2GLBT5H.js';import'../../_chunks/chunk-BNKBYTQ3.js';import'../../_chunks/chunk-NOLYKMU3.js';import'../../_chunks/chunk-BFBJOTG2.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-UF4J7JEY.js';import'../../_chunks/chunk-LVK5VG43.js';import'../../_chunks/chunk-4NHNAJKD.js';import'../../_chunks/chunk-LJWTINBT.js';import'../../_chunks/chunk-HXJSH3G2.js';import'../../_chunks/chunk-WM3AFXCW.js';import'../../_chunks/chunk-QLASTW76.js';import'../../_chunks/chunk-IHXFOGTQ.js';import'../../_chunks/chunk-DFN7XD7P.js';import'../../_chunks/chunk-VDGOANGT.js';import'../../_chunks/chunk-PPO3PSE7.js';import'../../_chunks/chunk-W77B5KVI.js';import'../../_chunks/chunk-K6633DSY.js';import'../../_chunks/chunk-CFZR2VK2.js';import'../../_chunks/chunk-26OK5BYP.js';import'../../_chunks/chunk-5OC2QXZL.js';import'../../_chunks/chunk-6LO7PI3V.js';import'../../_chunks/chunk-RD4DGYOQ.js';import'../../_chunks/chunk-7S2LHLZC.js';import'../../_chunks/chunk-THSE46VC.js';import'../../_chunks/chunk-SXXIPX35.js';import'../../_chunks/chunk-GFEQDSYL.js';import'../../_chunks/chunk-PEOYN7GO.js';import'../../_chunks/chunk-OBELDQWE.js';import'../../_chunks/chunk-OJS6C6S6.js';import'../../_chunks/chunk-LZKPVI6B.js';import'../../_chunks/chunk-ZGVTCYRV.js';import'../../_chunks/chunk-XFEWBGH5.js';import'../../_chunks/chunk-IM4LTXAH.js';import'../../_chunks/chunk-D7JDLT2O.js';import'../../_chunks/chunk-OHT5KJVT.js';import'../../_chunks/chunk-SHUOO4XL.js';import'../../_chunks/chunk-PNLHCTCW.js';import'../../_chunks/chunk-GDIPXZTC.js';import'../../_chunks/chunk-N57Z6DIM.js';import'../../_chunks/chunk-HIGHKQAD.js';import'../../_chunks/chunk-4IQ3J4LF.js';import'../../_chunks/chunk-57D57K75.js';import'../../_chunks/chunk-VBGXGFX5.js';import'../../_chunks/chunk-WYH4IUDI.js';import'../../_chunks/chunk-76GQ37UR.js';import'../../_chunks/chunk-4EOSR5FI.js';import'../../_chunks/chunk-6UMTGWFW.js';import'../../_chunks/chunk-RXCJF7BB.js';import'../../_chunks/chunk-AN56DE5R.js';import'../../_chunks/chunk-6ZPNLCMN.js';import'../../_chunks/chunk-WXWRA4VU.js';import'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-JY4U45C5.js';import'../../_chunks/chunk-VJSBADTP.js';import'../../_chunks/chunk-MMXWSV6V.js';import'../../_chunks/chunk-53X3U5WT.js';import'../../_chunks/chunk-VRGBJY4Q.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{O as ActionCell,Q as ActionIconColumn,M as ActionIconsVariants,P as ActionsColumn,ua as AgreementCell,G as AmountCell,y as AmountCellContainer,I as AmountCellSheet,H as AmountCellText,D as AmountConversionTooltipLabel,va as AuthCell,Qa as AuthenticationCell,ta as AuthenticationModeBadge,Fa as AuthenticationStatusCell,Ga as AuthenticationTypeCell,i as AvatarStyled,d as BadgeWrapper,ma as BalanceCell,na as BalanceCellSheet,Aa as BankCell,Oa as BankReferenceCell,Ya as BrandCell,fb as BrandsCell,k as CaptureTextLabel,Ha as ChannelsCell,Wa as ChargeStatus,Ra as CheckoutStatusCell,z as ConversionBadge,B as ConversionTooltip,C as ConversionTooltipRow,E as ConversionTypeLabel,g as CountBadge,Ma as CurrencyCell,F as CurrencyInfo,A as CurrencySpan,w as CustomerCell,x as CustomerCellSheet,t as DateCell,s as DateViewer,ia as DestinationCell,ja as DestinationCellSheet,ka as DestinationCellText,Da as DestinationStatusCell,ha as DeviceCell,Ja as DueDateCell,cb as EntityCell,b as GeographyBox,N as IDButton,h as IdButtonContainer,r as ImageWrapper,eb as IndividualsCell,Sa as IntentsStatusCell,Ua as InvoiceStatusCell,lb as LinkCell,db as MarketPlaceCell,Za as MetadataCell,u as OrderCell,v as OrderCellSheet,mb as OrdersCellSheet,ib as PaymentAgreementCellSheet,pa as PaymentCardNumberSource,qa as PaymentMethodSource,sa as PaymentSchemeSource,ra as PaymentTypeSource,Na as PayoutDateCell,_a as PayoutReportCell,Ba as PayoutStatusCell,q as PiePercentage,Ka as ProductsCell,jb as ProviderCell,kb as PurposeCell,$a as ReceiptCell,ab as ReceiptCellSheet,bb as ReceiptCellText,Pa as ReferenceCell,Ta as RefundChargeCell,xa as RefundStateIcon,ya as RefundStatusCell,wa as RefundStatusIcon,Ca as RefundTooltipView,gb as SalesChannelCell,hb as SalesChannelCellSheet,oa as SourceCell,f as StarBadgeWrapper,J as StatusCell,n as StatusCellContainer,K as StatusCellSheet,L as StatusCellText,p as StatusIcon,o as StatusIconWrapper,m as StyledTextTableCell,a as TableCell,j as TextLabel,La as TextTableCell,Va as TextWithBadgeCell,e as TimeZone,Xa as TokenStatusCell,c as TransparentButton,l as VoidTextLabel,za as WalletCell,Ea as authenticationStatusIcons,la as generateDestinationTooltip}from'../../_chunks/chunk-
|
|
1
|
+
export{O as ActionCell,Q as ActionIconColumn,M as ActionIconsVariants,P as ActionsColumn,ua as AgreementCell,G as AmountCell,y as AmountCellContainer,I as AmountCellSheet,H as AmountCellText,D as AmountConversionTooltipLabel,va as AuthCell,Qa as AuthenticationCell,ta as AuthenticationModeBadge,Fa as AuthenticationStatusCell,Ga as AuthenticationTypeCell,i as AvatarStyled,d as BadgeWrapper,ma as BalanceCell,na as BalanceCellSheet,Aa as BankCell,Oa as BankReferenceCell,Ya as BrandCell,fb as BrandsCell,k as CaptureTextLabel,Ha as ChannelsCell,Wa as ChargeStatus,Ra as CheckoutStatusCell,z as ConversionBadge,B as ConversionTooltip,C as ConversionTooltipRow,E as ConversionTypeLabel,g as CountBadge,Ma as CurrencyCell,F as CurrencyInfo,A as CurrencySpan,w as CustomerCell,x as CustomerCellSheet,t as DateCell,s as DateViewer,ia as DestinationCell,ja as DestinationCellSheet,ka as DestinationCellText,Da as DestinationStatusCell,ha as DeviceCell,Ja as DueDateCell,cb as EntityCell,b as GeographyBox,N as IDButton,h as IdButtonContainer,r as ImageWrapper,eb as IndividualsCell,Sa as IntentsStatusCell,Ua as InvoiceStatusCell,lb as LinkCell,db as MarketPlaceCell,Za as MetadataCell,u as OrderCell,v as OrderCellSheet,mb as OrdersCellSheet,ib as PaymentAgreementCellSheet,pa as PaymentCardNumberSource,qa as PaymentMethodSource,sa as PaymentSchemeSource,ra as PaymentTypeSource,Na as PayoutDateCell,_a as PayoutReportCell,Ba as PayoutStatusCell,q as PiePercentage,Ka as ProductsCell,jb as ProviderCell,kb as PurposeCell,$a as ReceiptCell,ab as ReceiptCellSheet,bb as ReceiptCellText,Pa as ReferenceCell,Ta as RefundChargeCell,xa as RefundStateIcon,ya as RefundStatusCell,wa as RefundStatusIcon,Ca as RefundTooltipView,gb as SalesChannelCell,hb as SalesChannelCellSheet,oa as SourceCell,f as StarBadgeWrapper,J as StatusCell,n as StatusCellContainer,K as StatusCellSheet,L as StatusCellText,p as StatusIcon,o as StatusIconWrapper,m as StyledTextTableCell,a as TableCell,j as TextLabel,La as TextTableCell,Va as TextWithBadgeCell,e as TimeZone,Xa as TokenStatusCell,c as TransparentButton,l as VoidTextLabel,za as WalletCell,Ea as authenticationStatusIcons,la as generateDestinationTooltip}from'../../_chunks/chunk-MDHPSQZO.js';import'../../_chunks/chunk-RL2HFGDQ.js';import'../../_chunks/chunk-JSTCL624.js';import'../../_chunks/chunk-S3EORDGB.js';import'../../_chunks/chunk-DOK4RXSY.js';import'../../_chunks/chunk-P4S7PQWK.js';import'../../_chunks/chunk-TZZV6XFT.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-NR5II44J.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-WE7OB4CG.js';import'../../_chunks/chunk-VYVRCIYJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-L2GLBT5H.js';import'../../_chunks/chunk-BNKBYTQ3.js';import'../../_chunks/chunk-NOLYKMU3.js';import'../../_chunks/chunk-BFBJOTG2.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-UF4J7JEY.js';import'../../_chunks/chunk-LVK5VG43.js';import'../../_chunks/chunk-4NHNAJKD.js';import'../../_chunks/chunk-LJWTINBT.js';import'../../_chunks/chunk-HXJSH3G2.js';import'../../_chunks/chunk-WM3AFXCW.js';import'../../_chunks/chunk-QLASTW76.js';import'../../_chunks/chunk-IHXFOGTQ.js';import'../../_chunks/chunk-DFN7XD7P.js';import'../../_chunks/chunk-VDGOANGT.js';import'../../_chunks/chunk-PPO3PSE7.js';import'../../_chunks/chunk-W77B5KVI.js';import'../../_chunks/chunk-K6633DSY.js';import'../../_chunks/chunk-CFZR2VK2.js';import'../../_chunks/chunk-26OK5BYP.js';import'../../_chunks/chunk-5OC2QXZL.js';import'../../_chunks/chunk-6LO7PI3V.js';import'../../_chunks/chunk-RD4DGYOQ.js';import'../../_chunks/chunk-7S2LHLZC.js';import'../../_chunks/chunk-THSE46VC.js';import'../../_chunks/chunk-SXXIPX35.js';import'../../_chunks/chunk-GFEQDSYL.js';import'../../_chunks/chunk-PEOYN7GO.js';import'../../_chunks/chunk-OBELDQWE.js';import'../../_chunks/chunk-OJS6C6S6.js';import'../../_chunks/chunk-LZKPVI6B.js';import'../../_chunks/chunk-ZGVTCYRV.js';import'../../_chunks/chunk-XFEWBGH5.js';import'../../_chunks/chunk-IM4LTXAH.js';import'../../_chunks/chunk-D7JDLT2O.js';import'../../_chunks/chunk-OHT5KJVT.js';import'../../_chunks/chunk-SHUOO4XL.js';import'../../_chunks/chunk-PNLHCTCW.js';import'../../_chunks/chunk-GDIPXZTC.js';import'../../_chunks/chunk-N57Z6DIM.js';import'../../_chunks/chunk-HIGHKQAD.js';import'../../_chunks/chunk-4IQ3J4LF.js';import'../../_chunks/chunk-57D57K75.js';import'../../_chunks/chunk-VBGXGFX5.js';import'../../_chunks/chunk-WYH4IUDI.js';import'../../_chunks/chunk-76GQ37UR.js';import'../../_chunks/chunk-4EOSR5FI.js';import'../../_chunks/chunk-6UMTGWFW.js';import'../../_chunks/chunk-RXCJF7BB.js';import'../../_chunks/chunk-AN56DE5R.js';import'../../_chunks/chunk-6ZPNLCMN.js';import'../../_chunks/chunk-WXWRA4VU.js';import'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-JY4U45C5.js';import'../../_chunks/chunk-VJSBADTP.js';import'../../_chunks/chunk-MMXWSV6V.js';import'../../_chunks/chunk-53X3U5WT.js';import'../../_chunks/chunk-VRGBJY4Q.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -58,7 +58,6 @@ export { errorToastClassNames } from './ErrorToast';
|
|
|
58
58
|
export { default as CurrencyAmountInput, currencyAmountInputClassNames, type CurrencyAmountInputClassNames, type CurrencyAmountInputProps, } from './CurrencyAmountInput';
|
|
59
59
|
export { default as WindowServices, windowServicesClassNames, type WindowServicesClassNames, type WindowServicesProps } from './WindowServices';
|
|
60
60
|
export { WindowSkeleton, windowSkeletonClassNames, type WindowSkeletonClassNames, type WindowSkeletonProps } from './WindowServices';
|
|
61
|
-
export { default as ListLayout, listLayoutClassNames, type ListLayoutClassNames, type ListLayoutProps } from './ListLayout';
|
|
62
61
|
export { Autocomplete, autocompleteClassNames, autocompleteMenuDirection, autocompleteDefaultOpenOnFocus, type AutocompleteProps, type AutocompleteOption, type AutocompleteClassNames, type AutocompleteMenuDirection, } from './Autocomplete';
|
|
63
62
|
export { default as Logo, type LogoProps, type LogoClassNames, logoClassNames } from './Logo';
|
|
64
63
|
export { default as FilterButton, filterButtonClassNames } from './FilterButton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{O as ActionCell,Q as ActionIconColumn,M as ActionIconsVariants,P as ActionsColumn,ua as AgreementCell,R as AgreementIcon,G as AmountCell,y as AmountCellContainer,I as AmountCellSheet,H as AmountCellText,D as AmountConversionTooltipLabel,va as AuthCell,T as AuthIcons,S as AuthSourceAnimation,Qa as AuthenticationCell,ta as AuthenticationModeBadge,Fa as AuthenticationStatusCell,Ga as AuthenticationTypeCell,V as AuthorizationAutoIcons,W as AuthorizedIcon,i as AvatarStyled,d as BadgeWrapper,ma as BalanceCell,na as BalanceCellSheet,Aa as BankCell,Oa as BankReferenceCell,Ya as BrandCell,fb as BrandsCell,k as CaptureTextLabel,Ha as ChannelsCell,Wa as ChargeStatus,X as ChargeStatusIcon,Ra as CheckoutStatusCell,z as ConversionBadge,B as ConversionTooltip,C as ConversionTooltipRow,E as ConversionTypeLabel,g as CountBadge,Ma as CurrencyCell,F as CurrencyInfo,A as CurrencySpan,w as CustomerCell,x as CustomerCellSheet,Y as CustomerInitiatedIcon,t as DateCell,vc as DateFilter,s as DateViewer,ia as DestinationCell,ja as DestinationCellSheet,ka as DestinationCellText,ga as DestinationIcon,Da as DestinationStatusCell,ha as DeviceCell,_ as DeviceIconChip,$ as DisputeIcon,Ja as DueDateCell,cb as EntityCell,b as GeographyBox,Z as GeographyIcon,N as IDButton,h as IdButtonContainer,r as ImageWrapper,eb as IndividualsCell,Sa as IntentsStatusCell,Ua as InvoiceStatusCell,aa as IssuerIcon,lb as LinkCell,uc as ListHeader,tc as ListHeaderToolbarAside,db as MarketPlaceCell,Za as MetadataCell,u as OrderCell,v as OrderCellSheet,mb as OrdersCellSheet,ib as PaymentAgreementCellSheet,pa as PaymentCardNumberSource,qa as PaymentMethodSource,sa as PaymentSchemeSource,ra as PaymentTypeSource,Na as PayoutDateCell,ba as PayoutIcon,_a as PayoutReportCell,Ba as PayoutStatusCell,q as PiePercentage,Ka as ProductsCell,jb as ProviderCell,kb as PurposeCell,$a as ReceiptCell,ab as ReceiptCellSheet,bb as ReceiptCellText,Pa as ReferenceCell,Ta as RefundChargeCell,ca as RefundIcon,xa as RefundStateIcon,ya as RefundStatusCell,wa as RefundStatusIcon,Ca as RefundTooltipView,gb as SalesChannelCell,hb as SalesChannelCellSheet,oa as SourceCell,ea as SourceIcon,fa as SourceIcons,f as StarBadgeWrapper,J as StatusCell,n as StatusCellContainer,K as StatusCellSheet,L as StatusCellText,p as StatusIcon,o as StatusIconWrapper,m as StyledTextTableCell,a as TableCell,j as TextLabel,La as TextTableCell,Va as TextWithBadgeCell,e as TimeZone,Xa as TokenStatusCell,c as TransparentButton,U as VoidAutoIcon,l as VoidTextLabel,za as WalletCell,Ea as authenticationStatusIcons,la as generateDestinationTooltip,da as getPaymentMethodKey,nc as useCustomTableViews}from'../_chunks/chunk-PVQ32HFD.js';export{e as VerificationIcon,b as VerificationIconStatus,a as verificationIconClassNames}from'../_chunks/chunk-RL2HFGDQ.js';export{d as ColumnFilter,b as Inputs,t as LastRowContent,c as List,B as ListItemWrapperWithCard,q as RowErrorState,aa as SheetViewVirtualTable,h as StyledCell,u as StyledItemWrapper,o as TableError,w as TableFooter,k as TableLastItem,m as TableLoading,y as TableLoadingWithCard,p as TableNoData,z as TableNoDataWithCard,r as TableRow,l as TableRowLoading,x as TableRowLoadingWithCard,A as TableRowWithCard,e as VirtualScrollInner,g as VirtualScrollList,f as VirtualScrollOuter,v as VirtualTable,j as VirtualTableHeader,C as VirtualTableWithCard}from'../_chunks/chunk-JSTCL624.js';export{u as JSONViewWindow,q as JSONViewWindowContext,s as JSONViewWindowProvider,a as jsonViewWindowClassNames,t as useJSONViewWindow}from'../_chunks/chunk-5YOH2ITP.js';export{b as WindowShell,a as windowShellClassNames}from'../_chunks/chunk-35RUQ6MX.js';export{c as WindowServices,d as WindowSkeleton,a as windowServicesClassNames,b as windowSkeletonClassNames}from'../_chunks/chunk-TZZV6XFT.js';export{c as CloseIcon,d as DirectionIcon,e as MaximizeIcon,f as MinimizeIcon,g as SandboxIcon,b as WindowToolbar,i as WindowToolbarEndAdornment,h as WindowToolbarStartAdornment,j as WindowToolbarTitle,a as windowToolbarClassNames}from'../_chunks/chunk-NR5II44J.js';export{f as Window,g as WindowContent,a as WindowContext,h as WindowFooter,i as WindowFooterActions,e as WindowProvider,d as resolveWindowBounds,c as resolveWindowDimension,b as useWindow}from'../_chunks/chunk-P4S7PQWK.js';import'../_chunks/chunk-2I5L7ASP.js';export{a as windowClassNames,g as windowDragHandleClass,f as windowDragHandleId}from'../_chunks/chunk-ISC5KT5E.js';export{b as SheetViewChip,a as sheetViewChipClassNames}from'../_chunks/chunk-LJWTINBT.js';export{b as Sidebar,a as sidebarClassNames}from'../_chunks/chunk-WE7OB4CG.js';export{b as TableViewToggleButton,a as tableViewToggleButtonClassNames}from'../_chunks/chunk-VYVRCIYJ.js';export{a as ThemeProvider}from'../_chunks/chunk-G3QDXDRW.js';export{e as Timeline,d as timelineClassNames}from'../_chunks/chunk-L2GLBT5H.js';export{a as CountriesList,b as PhoneInput}from'../_chunks/chunk-PPO3PSE7.js';export{b as TextInput,a as textInputClassNames}from'../_chunks/chunk-W77B5KVI.js';export{a as ProgressRing}from'../_chunks/chunk-BNKBYTQ3.js';export{e as RADIO_GROUP_DEFAULT_LAYOUT,d as RADIO_GROUP_DEFAULT_SIZE,f as RADIO_GROUP_DEFAULT_SPACING,c as RADIO_GROUP_LAYOUTS,b as RADIO_GROUP_SIZES,g as RadioGroup,a as radioGroupClassNames}from'../_chunks/chunk-NOLYKMU3.js';export{a as RangeCalender}from'../_chunks/chunk-BFBJOTG2.js';import'../_chunks/chunk-BFJT5WSV.js';import'../_chunks/chunk-UF4J7JEY.js';export{b as SearchButton,a as searchButtonClassNames}from'../_chunks/chunk-LVK5VG43.js';export{b as SearchInput,a as searchInputClassNames}from'../_chunks/chunk-4NHNAJKD.js';export{b as HeatMap}from'../_chunks/chunk-HXJSH3G2.js';export{b as ListLayout,a as listLayoutClassNames}from'../_chunks/chunk-YFVDAPEB.js';export{b as Loader,a as loaderClassNames}from'../_chunks/chunk-WM3AFXCW.js';export{b as Logo,a as logoClassNames}from'../_chunks/chunk-QLASTW76.js';export{b as MaskedText,a as maskedTextClassNames}from'../_chunks/chunk-IHXFOGTQ.js';export{b as MultiLevelMenu,a as multiLevelMenuClassNames}from'../_chunks/chunk-DFN7XD7P.js';export{b as MultiLevelSelect,a as multiLevelSelectClassNames}from'../_chunks/chunk-VDGOANGT.js';export{b as FilePreview,a as filePreviewClassNames}from'../_chunks/chunk-K6633DSY.js';export{b as FileUploader,a as fileUploaderClassNames}from'../_chunks/chunk-CFZR2VK2.js';export{b as FilterBar,a as filterBarClassNames}from'../_chunks/chunk-26OK5BYP.js';export{b as FilterButton,a as filterButtonClassNames}from'../_chunks/chunk-5OC2QXZL.js';export{d as FilterChip,a as filterChipClassNames}from'../_chunks/chunk-6LO7PI3V.js';export{f as FilterPopover,a as filterPopoverClassNames,e as useFilterPopover}from'../_chunks/chunk-RD4DGYOQ.js';export{c as DEFAULT_FLIP_DURATION,d as FlipCard,a as flipCardClassNamePrefix,b as flipCardClassNames}from'../_chunks/chunk-7S2LHLZC.js';export{b as GroupedSelect,a as groupedSelectClassNames}from'../_chunks/chunk-THSE46VC.js';export{c as DateInput,a as dateInputCalendarMode,b as dateInputClassNames}from'../_chunks/chunk-SXXIPX35.js';export{a as Select}from'../_chunks/chunk-GFEQDSYL.js';export{a as DEVICE_ICON,c as DeviceIcon,b as isDeviceIconShown}from'../_chunks/chunk-PEOYN7GO.js';export{b as EmptyState,a as emptyStateClassNames}from'../_chunks/chunk-OBELDQWE.js';export{b as ErrorToast,a as errorToastClassNames}from'../_chunks/chunk-OJS6C6S6.js';export{b as ExpandableChip,a as expandableChipClassNames}from'../_chunks/chunk-LZKPVI6B.js';export{c as ExportReportButton,a as exportReportButtonClassNames,b as useReportDownload}from'../_chunks/chunk-ZGVTCYRV.js';export{b as FileDropbox,a as fileDropboxClassNames}from'../_chunks/chunk-XFEWBGH5.js';export{f as ColorPicker,b as colorPickerClassNames}from'../_chunks/chunk-IM4LTXAH.js';export{b as ConfirmDialogProvider,a as useConfirm}from'../_chunks/chunk-D7JDLT2O.js';export{b as CountryFlag,a as countryFlagClassNames}from'../_chunks/chunk-OHT5KJVT.js';export{b as CurrenciesMenu,a as currenciesMenuClassNames}from'../_chunks/chunk-SHUOO4XL.js';export{b as CurrencyAmount,a as currencyAmountClassNames}from'../_chunks/chunk-PNLHCTCW.js';export{b as CurrencyAmountInput,a as currencyAmountInputClassNames}from'../_chunks/chunk-GDIPXZTC.js';export{b as CurrencySymbol,a as currencySymbolClassNames}from'../_chunks/chunk-N57Z6DIM.js';export{a as ActionsDropdownMenu,b as AppMenuItem}from'../_chunks/chunk-HIGHKQAD.js';export{b as Alert,a as alertClassNames}from'../_chunks/chunk-4IQ3J4LF.js';export{b as AreaChart,a as areaChartClassNames}from'../_chunks/chunk-57D57K75.js';export{d as Autocomplete,a as autocompleteClassNames,c as autocompleteDefaultOpenOnFocus,b as autocompleteMenuDirection}from'../_chunks/chunk-VBGXGFX5.js';import'../_chunks/chunk-WYH4IUDI.js';export{aa as SelectChevronIcon,a as selectClassNames,j as selectMenuDirection,l as selectValueAlignment}from'../_chunks/chunk-76GQ37UR.js';export{b as AVATAR_STACK_VARIANTS,e as AvatarStack,d as AvatarStackItem,c as DEFAULT_AVATAR_STACK_VARIANT,a as avatarStackClassNames}from'../_chunks/chunk-4EOSR5FI.js';export{b as Calender}from'../_chunks/chunk-6UMTGWFW.js';export{j as Timepicker}from'../_chunks/chunk-RXCJF7BB.js';export{b as Card,c as CardHeader,a as cardClassNames}from'../_chunks/chunk-AN56DE5R.js';export{P as Accordion,t as Avatar,B as Backdrop,z as Badge,b as Button,f as Checkbox,H as Chip,n as CircularProgress,x as Collapse,D as CopyButton,T as Dialog,v as Divider,ba as FieldFeedback,d as Icon,L as Input,_ as LazyImage,R as Menu,V as MenuItem,F as ProgressBar,l as RadioButton,da as ScrollLoader,r as Skeleton,J as Slider,h as Switch,N as Textarea,Y as ToggleButtons,p as Tooltip,j as Typography,O as accordionClassNames,s as avatarClassNames,A as backdropClassNames,y as badgeClassNames,a as buttonClassNames,e as checkboxClassNames,G as chipClassNames,m as circularProgressClassNames,w as collapseClassNames,C as copyButtonClassNames,S as dialogClassNames,u as dividerClassNames,$ as fieldFeedbackClassNames,aa as getFieldFeedbackColors,c as iconClassNames,K as inputClassNames,Z as lazyImageClassNames,Q as menuClassNames,U as menuItemClassNames,E as progressBarClassNames,k as radioButtonClassNames,ca as scrollLoaderClassNames,q as skeletonClassNames,I as sliderClassNames,g as switchClassNames,M as textareaClassNames,W as toggleButtonsClassNames,X as toggleButtonsSize,o as tooltipClassNames,i as typographyClassNames}from'../_chunks/chunk-6ZPNLCMN.js';export{b as CardList,c as CardListItem,a as cardListClassNames}from'../_chunks/chunk-WXWRA4VU.js';import'../_chunks/chunk-IXFXTDH7.js';import'../_chunks/chunk-JY4U45C5.js';import'../_chunks/chunk-VJSBADTP.js';import'../_chunks/chunk-MMXWSV6V.js';import'../_chunks/chunk-53X3U5WT.js';import'../_chunks/chunk-VRGBJY4Q.js';import'../_chunks/chunk-LS57WE6K.js';
|
|
1
|
+
export{O as ActionCell,Q as ActionIconColumn,M as ActionIconsVariants,P as ActionsColumn,ua as AgreementCell,R as AgreementIcon,G as AmountCell,y as AmountCellContainer,I as AmountCellSheet,H as AmountCellText,D as AmountConversionTooltipLabel,va as AuthCell,T as AuthIcons,S as AuthSourceAnimation,Qa as AuthenticationCell,ta as AuthenticationModeBadge,Fa as AuthenticationStatusCell,Ga as AuthenticationTypeCell,V as AuthorizationAutoIcons,W as AuthorizedIcon,i as AvatarStyled,d as BadgeWrapper,ma as BalanceCell,na as BalanceCellSheet,Aa as BankCell,Oa as BankReferenceCell,Ya as BrandCell,fb as BrandsCell,k as CaptureTextLabel,Ha as ChannelsCell,Wa as ChargeStatus,X as ChargeStatusIcon,Ra as CheckoutStatusCell,z as ConversionBadge,B as ConversionTooltip,C as ConversionTooltipRow,E as ConversionTypeLabel,g as CountBadge,Ma as CurrencyCell,F as CurrencyInfo,A as CurrencySpan,w as CustomerCell,x as CustomerCellSheet,Y as CustomerInitiatedIcon,t as DateCell,vc as DateFilter,s as DateViewer,ia as DestinationCell,ja as DestinationCellSheet,ka as DestinationCellText,ga as DestinationIcon,Da as DestinationStatusCell,ha as DeviceCell,_ as DeviceIconChip,$ as DisputeIcon,Ja as DueDateCell,cb as EntityCell,b as GeographyBox,Z as GeographyIcon,N as IDButton,h as IdButtonContainer,r as ImageWrapper,eb as IndividualsCell,Sa as IntentsStatusCell,Ua as InvoiceStatusCell,aa as IssuerIcon,lb as LinkCell,uc as ListHeader,tc as ListHeaderToolbarAside,db as MarketPlaceCell,Za as MetadataCell,u as OrderCell,v as OrderCellSheet,mb as OrdersCellSheet,ib as PaymentAgreementCellSheet,pa as PaymentCardNumberSource,qa as PaymentMethodSource,sa as PaymentSchemeSource,ra as PaymentTypeSource,Na as PayoutDateCell,ba as PayoutIcon,_a as PayoutReportCell,Ba as PayoutStatusCell,q as PiePercentage,Ka as ProductsCell,jb as ProviderCell,kb as PurposeCell,$a as ReceiptCell,ab as ReceiptCellSheet,bb as ReceiptCellText,Pa as ReferenceCell,Ta as RefundChargeCell,ca as RefundIcon,xa as RefundStateIcon,ya as RefundStatusCell,wa as RefundStatusIcon,Ca as RefundTooltipView,gb as SalesChannelCell,hb as SalesChannelCellSheet,oa as SourceCell,ea as SourceIcon,fa as SourceIcons,f as StarBadgeWrapper,J as StatusCell,n as StatusCellContainer,K as StatusCellSheet,L as StatusCellText,p as StatusIcon,o as StatusIconWrapper,m as StyledTextTableCell,a as TableCell,j as TextLabel,La as TextTableCell,Va as TextWithBadgeCell,e as TimeZone,Xa as TokenStatusCell,c as TransparentButton,U as VoidAutoIcon,l as VoidTextLabel,za as WalletCell,Ea as authenticationStatusIcons,la as generateDestinationTooltip,da as getPaymentMethodKey,nc as useCustomTableViews}from'../_chunks/chunk-MDHPSQZO.js';export{e as VerificationIcon,b as VerificationIconStatus,a as verificationIconClassNames}from'../_chunks/chunk-RL2HFGDQ.js';export{d as ColumnFilter,b as Inputs,t as LastRowContent,c as List,B as ListItemWrapperWithCard,q as RowErrorState,aa as SheetViewVirtualTable,h as StyledCell,u as StyledItemWrapper,o as TableError,w as TableFooter,k as TableLastItem,m as TableLoading,y as TableLoadingWithCard,p as TableNoData,z as TableNoDataWithCard,r as TableRow,l as TableRowLoading,x as TableRowLoadingWithCard,A as TableRowWithCard,e as VirtualScrollInner,g as VirtualScrollList,f as VirtualScrollOuter,v as VirtualTable,j as VirtualTableHeader,C as VirtualTableWithCard}from'../_chunks/chunk-JSTCL624.js';export{u as JSONViewWindow,q as JSONViewWindowContext,s as JSONViewWindowProvider,a as jsonViewWindowClassNames,t as useJSONViewWindow}from'../_chunks/chunk-S3EORDGB.js';export{b as WindowShell,a as windowShellClassNames}from'../_chunks/chunk-DOK4RXSY.js';export{f as Window,g as WindowContent,a as WindowContext,h as WindowFooter,i as WindowFooterActions,e as WindowProvider,d as resolveWindowBounds,c as resolveWindowDimension,b as useWindow}from'../_chunks/chunk-P4S7PQWK.js';export{c as WindowServices,d as WindowSkeleton,a as windowServicesClassNames,b as windowSkeletonClassNames}from'../_chunks/chunk-TZZV6XFT.js';import'../_chunks/chunk-2I5L7ASP.js';export{c as CloseIcon,d as DirectionIcon,e as MaximizeIcon,f as MinimizeIcon,g as SandboxIcon,b as WindowToolbar,i as WindowToolbarEndAdornment,h as WindowToolbarStartAdornment,j as WindowToolbarTitle,a as windowToolbarClassNames}from'../_chunks/chunk-NR5II44J.js';export{a as windowClassNames,g as windowDragHandleClass,f as windowDragHandleId}from'../_chunks/chunk-ISC5KT5E.js';export{b as Sidebar,a as sidebarClassNames}from'../_chunks/chunk-WE7OB4CG.js';export{b as TableViewToggleButton,a as tableViewToggleButtonClassNames}from'../_chunks/chunk-VYVRCIYJ.js';export{a as ThemeProvider}from'../_chunks/chunk-G3QDXDRW.js';export{e as Timeline,d as timelineClassNames}from'../_chunks/chunk-L2GLBT5H.js';export{a as ProgressRing}from'../_chunks/chunk-BNKBYTQ3.js';export{e as RADIO_GROUP_DEFAULT_LAYOUT,d as RADIO_GROUP_DEFAULT_SIZE,f as RADIO_GROUP_DEFAULT_SPACING,c as RADIO_GROUP_LAYOUTS,b as RADIO_GROUP_SIZES,g as RadioGroup,a as radioGroupClassNames}from'../_chunks/chunk-NOLYKMU3.js';export{a as RangeCalender}from'../_chunks/chunk-BFBJOTG2.js';import'../_chunks/chunk-BFJT5WSV.js';import'../_chunks/chunk-UF4J7JEY.js';export{b as SearchButton,a as searchButtonClassNames}from'../_chunks/chunk-LVK5VG43.js';export{b as SearchInput,a as searchInputClassNames}from'../_chunks/chunk-4NHNAJKD.js';export{b as SheetViewChip,a as sheetViewChipClassNames}from'../_chunks/chunk-LJWTINBT.js';export{b as HeatMap}from'../_chunks/chunk-HXJSH3G2.js';export{b as Loader,a as loaderClassNames}from'../_chunks/chunk-WM3AFXCW.js';export{b as Logo,a as logoClassNames}from'../_chunks/chunk-QLASTW76.js';export{b as MaskedText,a as maskedTextClassNames}from'../_chunks/chunk-IHXFOGTQ.js';export{b as MultiLevelMenu,a as multiLevelMenuClassNames}from'../_chunks/chunk-DFN7XD7P.js';export{b as MultiLevelSelect,a as multiLevelSelectClassNames}from'../_chunks/chunk-VDGOANGT.js';export{a as CountriesList,b as PhoneInput}from'../_chunks/chunk-PPO3PSE7.js';export{b as TextInput,a as textInputClassNames}from'../_chunks/chunk-W77B5KVI.js';export{b as FilePreview,a as filePreviewClassNames}from'../_chunks/chunk-K6633DSY.js';export{b as FileUploader,a as fileUploaderClassNames}from'../_chunks/chunk-CFZR2VK2.js';export{b as FilterBar,a as filterBarClassNames}from'../_chunks/chunk-26OK5BYP.js';export{b as FilterButton,a as filterButtonClassNames}from'../_chunks/chunk-5OC2QXZL.js';export{d as FilterChip,a as filterChipClassNames}from'../_chunks/chunk-6LO7PI3V.js';export{f as FilterPopover,a as filterPopoverClassNames,e as useFilterPopover}from'../_chunks/chunk-RD4DGYOQ.js';export{c as DEFAULT_FLIP_DURATION,d as FlipCard,a as flipCardClassNamePrefix,b as flipCardClassNames}from'../_chunks/chunk-7S2LHLZC.js';export{b as GroupedSelect,a as groupedSelectClassNames}from'../_chunks/chunk-THSE46VC.js';export{c as DateInput,a as dateInputCalendarMode,b as dateInputClassNames}from'../_chunks/chunk-SXXIPX35.js';export{a as Select}from'../_chunks/chunk-GFEQDSYL.js';export{a as DEVICE_ICON,c as DeviceIcon,b as isDeviceIconShown}from'../_chunks/chunk-PEOYN7GO.js';export{b as EmptyState,a as emptyStateClassNames}from'../_chunks/chunk-OBELDQWE.js';export{b as ErrorToast,a as errorToastClassNames}from'../_chunks/chunk-OJS6C6S6.js';export{b as ExpandableChip,a as expandableChipClassNames}from'../_chunks/chunk-LZKPVI6B.js';export{c as ExportReportButton,a as exportReportButtonClassNames,b as useReportDownload}from'../_chunks/chunk-ZGVTCYRV.js';export{b as FileDropbox,a as fileDropboxClassNames}from'../_chunks/chunk-XFEWBGH5.js';export{f as ColorPicker,b as colorPickerClassNames}from'../_chunks/chunk-IM4LTXAH.js';export{b as ConfirmDialogProvider,a as useConfirm}from'../_chunks/chunk-D7JDLT2O.js';export{b as CountryFlag,a as countryFlagClassNames}from'../_chunks/chunk-OHT5KJVT.js';export{b as CurrenciesMenu,a as currenciesMenuClassNames}from'../_chunks/chunk-SHUOO4XL.js';export{b as CurrencyAmount,a as currencyAmountClassNames}from'../_chunks/chunk-PNLHCTCW.js';export{b as CurrencyAmountInput,a as currencyAmountInputClassNames}from'../_chunks/chunk-GDIPXZTC.js';export{b as CurrencySymbol,a as currencySymbolClassNames}from'../_chunks/chunk-N57Z6DIM.js';export{a as ActionsDropdownMenu,b as AppMenuItem}from'../_chunks/chunk-HIGHKQAD.js';export{b as Alert,a as alertClassNames}from'../_chunks/chunk-4IQ3J4LF.js';export{b as AreaChart,a as areaChartClassNames}from'../_chunks/chunk-57D57K75.js';export{d as Autocomplete,a as autocompleteClassNames,c as autocompleteDefaultOpenOnFocus,b as autocompleteMenuDirection}from'../_chunks/chunk-VBGXGFX5.js';import'../_chunks/chunk-WYH4IUDI.js';export{aa as SelectChevronIcon,a as selectClassNames,j as selectMenuDirection,l as selectValueAlignment}from'../_chunks/chunk-76GQ37UR.js';export{b as AVATAR_STACK_VARIANTS,e as AvatarStack,d as AvatarStackItem,c as DEFAULT_AVATAR_STACK_VARIANT,a as avatarStackClassNames}from'../_chunks/chunk-4EOSR5FI.js';export{b as Calender}from'../_chunks/chunk-6UMTGWFW.js';export{j as Timepicker}from'../_chunks/chunk-RXCJF7BB.js';export{b as Card,c as CardHeader,a as cardClassNames}from'../_chunks/chunk-AN56DE5R.js';export{P as Accordion,t as Avatar,B as Backdrop,z as Badge,b as Button,f as Checkbox,H as Chip,n as CircularProgress,x as Collapse,D as CopyButton,T as Dialog,v as Divider,ba as FieldFeedback,d as Icon,L as Input,_ as LazyImage,R as Menu,V as MenuItem,F as ProgressBar,l as RadioButton,da as ScrollLoader,r as Skeleton,J as Slider,h as Switch,N as Textarea,Y as ToggleButtons,p as Tooltip,j as Typography,O as accordionClassNames,s as avatarClassNames,A as backdropClassNames,y as badgeClassNames,a as buttonClassNames,e as checkboxClassNames,G as chipClassNames,m as circularProgressClassNames,w as collapseClassNames,C as copyButtonClassNames,S as dialogClassNames,u as dividerClassNames,$ as fieldFeedbackClassNames,aa as getFieldFeedbackColors,c as iconClassNames,K as inputClassNames,Z as lazyImageClassNames,Q as menuClassNames,U as menuItemClassNames,E as progressBarClassNames,k as radioButtonClassNames,ca as scrollLoaderClassNames,q as skeletonClassNames,I as sliderClassNames,g as switchClassNames,M as textareaClassNames,W as toggleButtonsClassNames,X as toggleButtonsSize,o as tooltipClassNames,i as typographyClassNames}from'../_chunks/chunk-6ZPNLCMN.js';export{b as CardList,c as CardListItem,a as cardListClassNames}from'../_chunks/chunk-WXWRA4VU.js';import'../_chunks/chunk-IXFXTDH7.js';import'../_chunks/chunk-JY4U45C5.js';import'../_chunks/chunk-VJSBADTP.js';import'../_chunks/chunk-MMXWSV6V.js';import'../_chunks/chunk-53X3U5WT.js';import'../_chunks/chunk-VRGBJY4Q.js';import'../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{p as Content,h as Footer,k as HighlightText,i as IconButton,j as JSONSearchBar,q as JSONViewWindowContext,s as JSONViewWindowProvider,d as JSON_VIEW_WINDOW_ANIMATION_DURATION,e as JSON_VIEW_WINDOW_COUNT_LABEL,c as JSON_VIEW_WINDOW_HEIGHT,f as JSON_VIEW_WINDOW_TITLE,g as JSON_VIEW_WINDOW_TITLE_WITH_REQUEST,b as JSON_VIEW_WINDOW_WIDTH,r as List,m as Pane,o as Toolbar,u as default,a as jsonViewWindowClassNames,n as toolbarClassNames,t as useJSONViewWindow,l as useJsonSearch}from'../../../_chunks/chunk-
|
|
1
|
+
export{p as Content,h as Footer,k as HighlightText,i as IconButton,j as JSONSearchBar,q as JSONViewWindowContext,s as JSONViewWindowProvider,d as JSON_VIEW_WINDOW_ANIMATION_DURATION,e as JSON_VIEW_WINDOW_COUNT_LABEL,c as JSON_VIEW_WINDOW_HEIGHT,f as JSON_VIEW_WINDOW_TITLE,g as JSON_VIEW_WINDOW_TITLE_WITH_REQUEST,b as JSON_VIEW_WINDOW_WIDTH,r as List,m as Pane,o as Toolbar,u as default,a as jsonViewWindowClassNames,n as toolbarClassNames,t as useJSONViewWindow,l as useJsonSearch}from'../../../_chunks/chunk-S3EORDGB.js';import'../../../_chunks/chunk-P4S7PQWK.js';import'../../../_chunks/chunk-2I5L7ASP.js';import'../../../_chunks/chunk-NR5II44J.js';import'../../../_chunks/chunk-ISC5KT5E.js';import'../../../_chunks/chunk-6ZPNLCMN.js';import'../../../_chunks/chunk-VJSBADTP.js';import'../../../_chunks/chunk-MMXWSV6V.js';import'../../../_chunks/chunk-53X3U5WT.js';import'../../../_chunks/chunk-VRGBJY4Q.js';import'../../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as default,a as windowShellClassNames}from'../../../_chunks/chunk-
|
|
1
|
+
export{b as default,a as windowShellClassNames}from'../../../_chunks/chunk-DOK4RXSY.js';import'../../../_chunks/chunk-P4S7PQWK.js';import'../../../_chunks/chunk-TZZV6XFT.js';import'../../../_chunks/chunk-2I5L7ASP.js';import'../../../_chunks/chunk-NR5II44J.js';import'../../../_chunks/chunk-ISC5KT5E.js';import'../../../_chunks/chunk-6ZPNLCMN.js';import'../../../_chunks/chunk-VJSBADTP.js';import'../../../_chunks/chunk-MMXWSV6V.js';import'../../../_chunks/chunk-53X3U5WT.js';import'../../../_chunks/chunk-VRGBJY4Q.js';import'../../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -136,7 +136,7 @@ export interface WindowShellContentConfig {
|
|
|
136
136
|
'data-id'?: string;
|
|
137
137
|
/** MUI sx overrides for the body column. Paints BodySlot when sidebar/panel columns exist (never the slots), else WindowContent itself. */
|
|
138
138
|
sx?: SxProps<Theme>;
|
|
139
|
-
/** Window body — typically
|
|
139
|
+
/** Window body — typically an article `Stack` (flex 1, full height) wrapping ListHeader + VirtualTable. */
|
|
140
140
|
children?: ReactNode;
|
|
141
141
|
}
|
|
142
142
|
export interface WindowShellAnimationConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{u as JSONViewWindow,a as jsonViewWindowClassNames}from'../../_chunks/chunk-
|
|
1
|
+
export{u as JSONViewWindow,a as jsonViewWindowClassNames}from'../../_chunks/chunk-S3EORDGB.js';export{b as WindowShell,a as windowShellClassNames}from'../../_chunks/chunk-DOK4RXSY.js';import'../../_chunks/chunk-P4S7PQWK.js';import'../../_chunks/chunk-TZZV6XFT.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-NR5II44J.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-6ZPNLCMN.js';import'../../_chunks/chunk-VJSBADTP.js';import'../../_chunks/chunk-MMXWSV6V.js';import'../../_chunks/chunk-53X3U5WT.js';import'../../_chunks/chunk-VRGBJY4Q.js';import'../../_chunks/chunk-LS57WE6K.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../../_chunks/chunk-PVQ32HFD.js';export{Ia as ZonedDueDateCell}from'../../_chunks/chunk-PVQ32HFD.js';import'../../_chunks/chunk-RL2HFGDQ.js';import'../../_chunks/chunk-JSTCL624.js';import'../../_chunks/chunk-5YOH2ITP.js';import'../../_chunks/chunk-35RUQ6MX.js';import'../../_chunks/chunk-TZZV6XFT.js';import'../../_chunks/chunk-NR5II44J.js';import'../../_chunks/chunk-P4S7PQWK.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-LJWTINBT.js';import'../../_chunks/chunk-WE7OB4CG.js';import'../../_chunks/chunk-VYVRCIYJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-L2GLBT5H.js';import'../../_chunks/chunk-PPO3PSE7.js';import'../../_chunks/chunk-W77B5KVI.js';import'../../_chunks/chunk-BNKBYTQ3.js';import'../../_chunks/chunk-NOLYKMU3.js';import'../../_chunks/chunk-BFBJOTG2.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-UF4J7JEY.js';import'../../_chunks/chunk-LVK5VG43.js';import'../../_chunks/chunk-4NHNAJKD.js';import'../../_chunks/chunk-HXJSH3G2.js';import'../../_chunks/chunk-YFVDAPEB.js';import'../../_chunks/chunk-WM3AFXCW.js';import'../../_chunks/chunk-QLASTW76.js';import'../../_chunks/chunk-IHXFOGTQ.js';import'../../_chunks/chunk-DFN7XD7P.js';import'../../_chunks/chunk-VDGOANGT.js';import'../../_chunks/chunk-K6633DSY.js';import'../../_chunks/chunk-CFZR2VK2.js';import'../../_chunks/chunk-26OK5BYP.js';import'../../_chunks/chunk-5OC2QXZL.js';import'../../_chunks/chunk-6LO7PI3V.js';import'../../_chunks/chunk-RD4DGYOQ.js';import'../../_chunks/chunk-7S2LHLZC.js';import'../../_chunks/chunk-THSE46VC.js';export{c as DateInput,a as dateInputCalendarMode,b as dateInputClassNames}from'../../_chunks/chunk-SXXIPX35.js';import'../../_chunks/chunk-GFEQDSYL.js';import'../../_chunks/chunk-PEOYN7GO.js';import'../../_chunks/chunk-OBELDQWE.js';import'../../_chunks/chunk-OJS6C6S6.js';import'../../_chunks/chunk-LZKPVI6B.js';import'../../_chunks/chunk-ZGVTCYRV.js';import'../../_chunks/chunk-XFEWBGH5.js';import'../../_chunks/chunk-IM4LTXAH.js';import'../../_chunks/chunk-D7JDLT2O.js';import {b as b$1}from'../../_chunks/chunk-OHT5KJVT.js';import'../../_chunks/chunk-SHUOO4XL.js';import'../../_chunks/chunk-PNLHCTCW.js';import'../../_chunks/chunk-GDIPXZTC.js';import'../../_chunks/chunk-N57Z6DIM.js';import'../../_chunks/chunk-HIGHKQAD.js';import {b as b$2}from'../../_chunks/chunk-4IQ3J4LF.js';import'../../_chunks/chunk-57D57K75.js';import'../../_chunks/chunk-VBGXGFX5.js';import'../../_chunks/chunk-WYH4IUDI.js';import'../../_chunks/chunk-76GQ37UR.js';import'../../_chunks/chunk-4EOSR5FI.js';export{a as DatePicker}from'../../_chunks/chunk-6UMTGWFW.js';export{i as TimePicker}from'../../_chunks/chunk-RXCJF7BB.js';import'../../_chunks/chunk-AN56DE5R.js';import {j,L,B as B$2,x,p,R,h}from'../../_chunks/chunk-6ZPNLCMN.js';import'../../_chunks/chunk-WXWRA4VU.js';import {A,y,C,D,B as B$1,n,b as b$3,p as p$1,e,q,o}from'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-JY4U45C5.js';import'../../_chunks/chunk-VJSBADTP.js';import {qa,ea}from'../../_chunks/chunk-MMXWSV6V.js';import'../../_chunks/chunk-53X3U5WT.js';import {Wj,Xj,Yj,Zj,H,Yc,ec,gc,fc,el,fl}from'../../_chunks/chunk-VRGBJY4Q.js';import'../../_chunks/chunk-LS57WE6K.js';import b from'@mui/material/Box';import Et from'@mui/material/Popper';import {useTranslation}from'react-i18next';import {memo,createContext,useState,useMemo,useRef,useEffect,useContext}from'react';import At from'@mui/material/ClickAwayListener';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import re from'@mui/material/Button';import {Calendar,DateObject}from'react-multi-date-picker';import to from'react-date-object';import jt from'react-date-object/calendars/arabic';import Ht from'react-date-object/calendars/gregorian';import Wt from'react-date-object/locales/arabic_en';import Gt from'react-date-object/locales/gregorian_en';var Eo=styled(b)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),Pe=styled(b)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),Oo=styled(b,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),X=styled(b)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),J=styled(b)(()=>({width:12,height:12})),ee=styled(b)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function Je({zone:e,onChange:o,defaultCountryZone:t,countryCodes:n}){let[l,i]=useState(null),p=f=>{l||i(f.currentTarget);},a=()=>{l&&i(null);},r=(f,s)=>{f.stopPropagation(),o(s);},m=useMemo(()=>n.map(B$1).filter(f=>!!f),[n]),u=m.some(f=>C(f,e)),x=u?e:t;return jsxs(X,{onMouseEnter:p,onMouseLeave:a,onClick:()=>{o(x);},children:[u?jsx("img",{src:Zj,alt:"icon"}):jsx(J,{}),jsx("img",{src:Xj,alt:"entity-timezone"}),jsx(b$1,{countryCode:x.countryCode}),jsx(ee,{className:u?"selected":"",children:D(x)}),jsx(Et,{open:!!l,anchorEl:l,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(Pe,{sx:{maxHeight:300},children:m.map(f=>{let s=C(f,e);return jsxs(X,{onClick:Z=>{r(Z,f);},sx:{gap:"4px"},children:[s?jsx("img",{src:Zj,alt:"icon"}):jsx(J,{}),jsx(b$1,{countryCode:f.countryCode}),jsx(ee,{className:s?"selected":"",children:D(f)})]},f.countryCode)})})})]})}function eo({zone:e,onChange:o}){let t=A(y());if(!t)return null;let n=C(t,e);return jsxs(X,{onClick:()=>o(t),children:[n?jsx("img",{src:Zj,alt:"icon"}):jsx(J,{}),jsx("img",{src:Wj,alt:"user-timezone"}),jsx(b$1,{countryCode:t.countryCode}),jsx(ee,{className:n?"selected":"",children:D(t)})]})}function Lt({zone:e,onChange:o,defaultCountryZone:t,countryCodes:n}){let[l,i]=useState(null),p=!!l,a=A(y()),r=()=>{i(null);},m=f=>{o(f),r();},u=f=>{i(f.currentTarget);},x=C(e,a)?Wj:C(e,t)?Xj:Yj;return jsx(At,{onClickAway:r,children:jsxs(Eo,{"data-testid":"ZonePicker",children:[jsxs(Oo,{open:p,onClick:u,children:[jsx("img",{src:x,alt:"zone-icon"}),jsx(b$1,{countryCode:e.countryCode}),jsx("span",{children:D(e)})]}),jsx(Et,{open:p,anchorEl:l,placement:"top-start",sx:{zIndex:1400},children:jsxs(Pe,{"data-testid":"ZonePicker_dropdown",children:[jsx(Je,{zone:e,onChange:m,defaultCountryZone:t,countryCodes:n}),jsx(eo,{zone:e,onChange:m})]})})]})})}var te=memo(Lt);var Re=styled(b)(({theme:e})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),Me=styled(re)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),Be=styled(re)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),ve=styled(b)(()=>({display:"flex",gap:8,marginLeft:"auto",flexShrink:0})),U=styled(re,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),Se=styled(b)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),Ee=styled(b)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),Oe=styled(b)(()=>({display:"flex",alignItems:"center",gap:"10px"})),Ze=styled(b)(()=>({position:"relative"})),Ie=styled(b)(()=>({display:"flex",flexDirection:"column",gap:"24px"})),Io=styled(b)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ao=styled(b,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),zo=styled(b)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),Lo=styled(b)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}})),Fo=styled(b)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}})),jo=styled(re)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}})),Ho=styled(re)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),Wo=styled(b)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),Go=styled(b,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Vo=styled(b)(()=>({width:235})),No=styled(b)(()=>({display:"flex",gap:"4px"})),Yo=styled(b)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function ne({calendarMode:e,onCalendarModeChange:o}){let{t}=useTranslation();return jsx(b,{children:jsxs(Fo,{children:[jsxs(b,{children:[jsx("img",{src:ec,alt:"hijri"}),jsx("span",{children:t("hijri")})]}),jsx(h,{checked:e==="hijri",onChange:()=>o?.(e==="hijri"?"gregorian":"hijri")})]})})}var B=e=>e==="hijri"?Wt:Gt,v=e=>e==="hijri"?jt:Ht,_o=(e,o)=>!e||Number.isNaN(e.getTime())?void 0:new to({date:e,calendar:v(o),locale:B(o)}),ro=(e$1,o,t)=>{let n=_o(e(e$1?.[0],t),o),l=_o(e(e$1?.[1],t),o);if(n&&l)return [n,l];let i=v(o),p=B(o),a=e(Date.now(),t)??new Date;return [new to({date:new Date(a.getFullYear(),a.getMonth(),a.getDate()-6),calendar:i,locale:p}),new to({date:a,calendar:i,locale:p})]},Uo=(e,o)=>Math.round((Date.UTC(o.getFullYear(),o.getMonth(),o.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/864e5),ze=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),Le=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),no=e=>!!e[1]&&e[0].format("YYYYMMDD")===e[1].format("YYYYMMDD");var Kt=31,ae=createContext(null);function S(){let e=useContext(ae);if(!e)throw new Error("useDateRangeCalendar must be used inside a DateRangeCalendar");return e}function Fe({zone:e$1,range:o$1,onApply:t,calendarMode:n="gregorian",maxRangeDays:l,groupBy:i,onGroupByChange:p}){let[a,r]=useState(()=>ro(o$1,n,e$1.zone)),[m,u]=useState(a),[x,f]=useState(e$1),[s,Z]=useState(i??"day"),[k,T]=useState(()=>p$1(o$1,e$1.zone)),[me,q$1]=useState(null),[ue,fe]=useState(false),I=useRef(null),N=!!me,c=l===void 0?Kt:l;useEffect(()=>{if(N)return;let d=ro(o$1,n,e$1.zone);r(d),u(d),T(p$1(o$1,e$1.zone)),I.current&&I.current.set("date",d[0]);},[o$1,e$1.zone,e$1.countryCode,n,N]),useEffect(()=>{let d=g=>new DateObject({date:g.toDate(),calendar:v(n),locale:B(n)});r(g=>[d(g[0]),d(g[1])]),u(g=>[d(g[0]),d(g[1])]);},[n]),useEffect(()=>{f(d=>d.zone===e$1.zone&&d.countryCode===e$1.countryCode?d:e$1);},[e$1.zone,e$1.countryCode,N]);let P=d=>{let g=d;if(d.length<2||c===0)return g;let Y=Uo(ze(d[0]).toDate(),Le(d[1]).toDate());return Y<=c?g:(fe(true),setTimeout(()=>{fe(false);},3e3),[d[0],d[1].subtract(Y-c,"d")])},gt=d=>{let g=P(d);r(g),T(!no(g));},xt=d=>{let g=P(d);r([ze(g[0]),Le(g[1])]),T(true),I.current&&I.current.set("date",g[0]);},yt=d=>r(d),bt=d=>{T(d),d&&a[1]&&r([ze(a[0]),Le(a[1])]);},yo=()=>q$1(null),Dt=d=>q$1(d.currentTarget),Ct=()=>{let d=[a[0].toDate(),a[1].toDate()];return {range:(k?q(d,x.zone):o(d,x.zone))??d,zone:x}},ht=()=>{t(Ct())!==false&&(u(a),p?.(s),yo());},kt=d=>{let g=d[0]?.format("MMM D"),Y=d[1]?.format("MMM D")??g;return g?g===Y?g:`${g} - ${Y}`:Y};return {draft:a,isAllDay:k,isSameDay:no(a),isError:ue,maxRangeDays:c,open:N,anchorEl:me,pickedZone:x,selectedGroupBy:s,calendarRef:I,maxDate:e(Date.now(),x.zone),rangeLabel:kt(m),pickRange:gt,pickPreset:xt,setTimes:yt,setAllDay:bt,pickZone:f,setGroupBy:Z,openPicker:Dt,closePicker:yo,apply:ht}}var Qo={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function Qt(){let{selectedGroupBy:e,setGroupBy:o,open:t}=S(),[n,l]=useState(null),i=!!n&&t,{t:p}=useTranslation();return jsx(At,{onClickAway:()=>l(null),children:jsxs(b,{children:[jsx(Io,{children:p("groupedBy")}),jsxs(Ao,{onClick:a=>l(a.currentTarget),open:i,children:[jsx("span",{children:Qo[e]}),jsx(b,{component:"img",src:Yc,alt:"arrow",sx:{...i&&{transform:"rotate(180deg)"}}})]}),jsx(R,{open:i,anchorEl:n,children:jsx(zo,{sx:{width:n?.clientWidth},children:Object.entries(Qo).map(([a,r])=>jsx(Lo,{onClick:()=>{o(a),l(null);},className:e===a?"active":"",children:r},a))})})]})})}var je=Qt;var Jt=["Su","Mo","Tu","We","Th","Fr","Sa"];function er({calendarMode:e,numberOfMonths:o=2}){let{draft:t,maxDate:n,calendarRef:l,pickRange:i}=S();return jsx(Calendar,{ref:l,numberOfMonths:o,value:t,onChange:i,calendar:v(e),locale:B(e),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(p,a)=>jsx(jo,{onClick:a,children:jsx("img",{src:p==="right"?gc:fc,alt:"arrow"})}),weekDays:Jt,maxDate:n})}var He=er;function ie({calendarMode:e$1}){let{t:o}=useTranslation(),{pickedZone:t,pickPreset:n}=S(),l=useMemo(()=>{let i=e(Date.now(),t.zone)??new Date,p=()=>new DateObject({date:i,calendar:v(e$1),locale:B(e$1)}),a=r=>p().subtract(r,"month");return [{id:"today",value:[p(),p()]},{id:"lastWeek",value:[p().subtract(6,"day"),p()]},{id:"lastMonth",value:[p().subtract(30,"day"),p()]},...[1,2,3].map(r=>({id:a(r).toFirstOfMonth().format("MMMM YYYY"),value:[a(r).toFirstOfMonth(),a(r).toLastOfMonth()]}))]},[e$1,t.zone]);return jsx(b,{"data-testid":"RangePresets",children:jsx(Wo,{children:l.map(i=>jsx(Ho,{onClick:p=>{p.preventDefault(),n(i.value);},children:o(i.id)},i.id))})})}var pe=e=>e===0?12:e<=12?e:e-12,We=e=>e>=12?"PM":"AM",Ge=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e,Jo=()=>new Date().getMinutes(),et=()=>pe(new Date().getHours());var ot=styled(b)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),tt=styled(j,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:t})=>{let{base:n,grey:l,brand:i}=e.v2.palette;return {fontSize:"11px",fontWeight:500,background:n.white,border:`1px solid ${l[100]}`,borderRadius:"19px",height:t==="large"?32:24,width:t==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:i[500]}}}),de=styled(b)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),rt=styled(j,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>{let{base:t,grey:n,brand:l}=e.v2.palette;return {fontSize:"11px",fontWeight:500,background:t.white,border:`1px solid ${n[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:l[500],backgroundColor:alpha(l[500],.1)}}}),nt=styled(b)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),at=styled(b)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),lo=styled(b)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),so=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px",textAlign:"center"},".MuiInput-root":{paddingInline:"8px"},height:32,width:32}));var dr=["AM","PM"],Ne=12,co=59;function Ye({id:e="time-picker",onChange:o,defaultTime:t,enableRealTimeChange:n,size:l="large"}){let[i,p]=useState(null),[a,r]=useState(t?.period??(new Date().getHours()>=Ne?"PM":"AM")),[m,u]=useState(t?.hour??et()),[x,f]=useState(t?.minute??Jo()),s=!!i;useEffect(()=>{n&&o?.({hour:m,minute:x,period:a});},[m,x,a,n]);let Z=c=>{p(c.currentTarget);},k=()=>{p(null),o?.({hour:m,minute:x,period:a});},T=c=>c<10?`0${c}`:c.toString(),me=c=>{let P=ea(T(Number(c.target.value)));if(P>Ne){c.preventDefault();return}u(P);},q=()=>{u(c=>c===Ne?1:c+1);},ue=()=>{u(c=>c===1?Ne:c-1);},fe=c=>{let P=ea(T(Number(c.target.value)));if(P>co){c.preventDefault();return}f(P);},I=()=>{f(c=>c===co?(q(),0):c+1);},N=()=>{f(c=>c===0?(ue(),co):c-1);};return jsx(At,{onClickAway:k,children:jsxs(b,{id:e,"data-testid":"TimePicker",children:[jsx(tt,{size:l,open:s,onClick:Z,children:`${T(m)}:${T(x)}${a.toLowerCase()}`}),jsx(R,{open:s,anchorEl:i,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(ot,{children:[jsxs(at,{children:[jsxs(lo,{children:[jsx(de,{onClick:q,children:jsx("img",{src:el,alt:"arrow"})}),jsx(so,{type:"number",hideArrows:true,disableFocusRing:true,value:T(m),onChange:me}),jsx(de,{onClick:ue,children:jsx("img",{src:fl,alt:"arrow"})})]}),jsx(j,{children:":"}),jsxs(lo,{children:[jsx(de,{onClick:I,children:jsx("img",{src:el,alt:"arrow"})}),jsx(so,{type:"number",hideArrows:true,disableFocusRing:true,value:T(x),onChange:fe}),jsx(de,{onClick:N,children:jsx("img",{src:fl,alt:"arrow"})})]})]}),jsx(nt,{children:dr.map(c=>jsx(rt,{onClick:()=>r(c),selected:a===c,children:c},c))})]})})]})})}function cr(){let{t:e}=useTranslation(),{draft:o,isAllDay:t,setTimes:n,setAllDay:l}=S(),i=new DateObject(o[0]),p=new DateObject(o[1]),a=({hour:m,minute:u,period:x})=>{n([i.setHour(Ge(m,x??"AM")).setMinute(u).setSecond(0),p]);},r=({hour:m,minute:u,period:x})=>{n([i,p.setHour(Ge(m,x??"AM")).setMinute(u).setSecond(59)]);};return jsx(Vo,{children:jsxs(Yo,{children:[jsxs(Go,{isAllDay:t,children:[jsx("span",{className:"label",children:e("allDay")}),jsx(h,{checked:t,onChange:m=>l(m.target.checked)})]}),!t&&jsxs(No,{children:[jsx(Ye,{defaultTime:{hour:pe(i.hour),minute:i.minute,period:We(i.hour)},size:"small",onChange:a,enableRealTimeChange:true},`${o[0]?.toString()}-start`),jsx(Ye,{defaultTime:{hour:pe(p.hour),minute:p.minute,period:We(p.hour)},size:"small",onChange:r,enableRealTimeChange:true},`${o[1]?.toString()}-end`)]})]})})}var $e=cr;function gr(e){let{id:o="date-range-calendar",calendarMode:t="gregorian",onCalendarModeChange:n,defaultCountryZone:l,countryCodes:i,groupBy:p}=e,{t:a}=useTranslation(),r=Fe(e),m=u=>{u.key==="Enter"&&r.draft[1]&&!r.isError?(u.stopPropagation(),r.apply()):u.key==="Escape"&&(u.stopPropagation(),r.closePicker());};return jsx(ae.Provider,{value:r,children:jsxs(Ze,{id:o,"data-testid":"DateRangeCalendar",children:[jsx(U,{onClick:r.openPicker,open:r.open,children:r.rangeLabel}),r.open&&jsx(B$2,{onClick:u=>{u.stopPropagation(),r.closePicker();}}),jsx(Et,{open:r.open,anchorEl:r.anchorEl,placement:"bottom-end",children:jsxs(Re,{onKeyDown:m,children:[jsxs(Ee,{children:[jsx(ie,{calendarMode:t}),jsxs(Ie,{children:[p&&jsx(je,{}),jsx(ne,{calendarMode:t,onCalendarModeChange:n})]})]}),jsxs(b,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(He,{calendarMode:t}),jsx(x,{in:r.isError&&r.maxRangeDays>0,children:jsx(b$2,{severity:"error",message:a("dateRangeError",{number:r.maxRangeDays}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(Se,{sx:{borderBottomLeftRadius:"8px"},children:[l&&i&&jsx(Oe,{children:jsx(te,{zone:r.pickedZone,onChange:r.pickZone,defaultCountryZone:l,countryCodes:i},String(r.open))}),r.isSameDay&&jsx($e,{}),jsxs(ve,{children:[jsx(Me,{variant:"contained",onClick:r.closePicker,children:a("cancel")}),jsx(Be,{variant:"contained",onClick:r.apply,disabled:!r.draft[1],children:a("okay")})]})]})]})]})})]})})}var pt=gr;function Dr(e){let{calendarMode:o="gregorian",onCalendarModeChange:t,defaultCountryZone:n,countryCodes:l,groupBy:i,trigger:p,popperProps:a,sx:r,numberOfMonths:m=2,showPresets:u=true,id:x$1="embedded-date-range-calendar"}=e,{t:f}=useTranslation(),s=Fe(e),Z=k=>{k.key==="Enter"&&s.draft[1]&&!s.isError?(k.stopPropagation(),s.apply()):k.key==="Escape"&&(k.stopPropagation(),s.closePicker());};return jsx(ae.Provider,{value:s,children:jsxs(Ze,{id:x$1,"data-testid":"EmbeddedDateRangeCalendar",sx:r,children:[p?p({label:s.rangeLabel,open:s.open,openPicker:s.openPicker}):jsx(U,{onClick:s.openPicker,open:s.open,children:s.rangeLabel}),s.open&&jsx(B$2,{onClick:k=>{k.stopPropagation(),s.closePicker();}}),jsx(Et,{...a,open:s.open,anchorEl:s.anchorEl,placement:a?.placement??"bottom-end",children:jsxs(Re,{onKeyDown:Z,children:[jsxs(Ee,{children:[u&&jsx(ie,{calendarMode:o}),jsxs(Ie,{children:[i&&jsx(je,{}),jsx(ne,{calendarMode:o,onCalendarModeChange:t})]})]}),jsxs(b,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(He,{calendarMode:o,numberOfMonths:m}),jsx(x,{in:s.isError&&s.maxRangeDays>0,children:jsx(b$2,{severity:"error",message:f("dateRangeError",{number:s.maxRangeDays}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(Se,{sx:{borderBottomLeftRadius:"8px"},children:[n&&l&&jsx(Oe,{children:jsx(te,{zone:s.pickedZone,onChange:s.pickZone,defaultCountryZone:n,countryCodes:l},String(s.open))}),s.isSameDay&&jsx($e,{}),jsxs(ve,{children:[jsx(Me,{variant:"contained",onClick:s.closePicker,children:f("cancel")}),jsx(Be,{variant:"contained",onClick:s.apply,disabled:!s.draft[1],children:f("okay")})]})]})]})]})})]})})}var Ke=Dr;var Cr=styled(j)(()=>({fontSize:"11px"})),lt=styled(b)(()=>({display:"flex",flexDirection:"column",gap:"8px",marginBottom:"8px"})),uo=styled(Cr)(()=>({fontSize:"11px",fontWeight:500,color:"#8D8D94",padding:"8px 16px"})),dt=styled(b)(({theme:e})=>({borderBlock:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",gap:"2px",width:"100%"})),st=styled(b)(()=>({display:"flex",alignItems:"center",gap:"4px",width:"100%",paddingInline:"16px"})),ct=styled(uo)(()=>({color:"#1F88D0",padding:"4px 24px",cursor:"pointer"})),mt=styled(b)(({theme:e})=>({backgroundColor:e.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",width:"auto",marginTop:"8px",boxShadow:e.shadows[3],"&:focus":{outline:"none"}}));function kr({id:e="date-range-filter",hasRange:o,onClear:t,onClose:n,trigger:l,...i}){let{t:p}=useTranslation(),a=r=>{let m=i.onApply(r);return m!==false&&n?.(),m};return jsx(mt,{id:e,"data-testid":"DateRangeFilter",children:jsxs(lt,{children:[jsx(dt,{children:jsx(uo,{component:"span",children:p("filterBy")})}),jsx(st,{children:jsx(Ke,{...i,onApply:a,trigger:l??(({label:r,open:m,openPicker:u})=>jsx(U,{open:m,onClick:u,sx:{width:"100%",justifyContent:"space-between"},children:jsx("span",{children:r})}))})}),o&&jsx(ct,{component:"span",onClick:t,children:p("clear")})]})})}var ut=kr;function Pr({value:e,zone:o,format:t,...n$1}){let l=useMemo(()=>n(e,o,t),[e,o,t]);return jsx(a,{...n$1,children:l})}var Rr=Pr;var ft=styled(b)({display:"flex",alignItems:"center",gap:"12px"});function Or({value:e,zone:o,format:t,rendered:n$1,tableMode:l,...i}){let p=useMemo(()=>n$1??n(e,o,t),[n$1,e,o,t]);return jsx(a,{...i,children:jsx(ft,{children:jsx(b,{sx:{...qa(l)&&{fontSize:"11px"}},children:p})})})}var go=Or;function Ar({value:e,zone:o,hintZone:t,format:n$1,tableMode:l,...i}){let p$1=useMemo(()=>{if(!(!t||e==null||e===""))return b$3(o,t,e)?n(e,t):void 0},[e,o,t]);return jsxs(b,{sx:{display:"flex",gap:"8px"},children:[jsx(go,{value:e,zone:o,format:n$1,tableMode:l,...i}),p$1!==void 0&&jsx(p,{title:p$1,children:jsx("img",{src:H,width:14,alt:"timezone"})})]})}var zr=Ar;export{pt as DateRangeCalendar,ut as DateRangeFilter,Ke as EmbeddedDateRangeCalendar,te as ZonePicker,Rr as ZonedDateCell,zr as ZonedDateHintViewer,go as ZonedDateViewer};
|
|
1
|
+
import {a}from'../../_chunks/chunk-MDHPSQZO.js';export{Ia as ZonedDueDateCell}from'../../_chunks/chunk-MDHPSQZO.js';import'../../_chunks/chunk-RL2HFGDQ.js';import'../../_chunks/chunk-JSTCL624.js';import'../../_chunks/chunk-S3EORDGB.js';import'../../_chunks/chunk-DOK4RXSY.js';import'../../_chunks/chunk-P4S7PQWK.js';import'../../_chunks/chunk-TZZV6XFT.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-NR5II44J.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-WE7OB4CG.js';import'../../_chunks/chunk-VYVRCIYJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-L2GLBT5H.js';import'../../_chunks/chunk-BNKBYTQ3.js';import'../../_chunks/chunk-NOLYKMU3.js';import'../../_chunks/chunk-BFBJOTG2.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-UF4J7JEY.js';import'../../_chunks/chunk-LVK5VG43.js';import'../../_chunks/chunk-4NHNAJKD.js';import'../../_chunks/chunk-LJWTINBT.js';import'../../_chunks/chunk-HXJSH3G2.js';import'../../_chunks/chunk-WM3AFXCW.js';import'../../_chunks/chunk-QLASTW76.js';import'../../_chunks/chunk-IHXFOGTQ.js';import'../../_chunks/chunk-DFN7XD7P.js';import'../../_chunks/chunk-VDGOANGT.js';import'../../_chunks/chunk-PPO3PSE7.js';import'../../_chunks/chunk-W77B5KVI.js';import'../../_chunks/chunk-K6633DSY.js';import'../../_chunks/chunk-CFZR2VK2.js';import'../../_chunks/chunk-26OK5BYP.js';import'../../_chunks/chunk-5OC2QXZL.js';import'../../_chunks/chunk-6LO7PI3V.js';import'../../_chunks/chunk-RD4DGYOQ.js';import'../../_chunks/chunk-7S2LHLZC.js';import'../../_chunks/chunk-THSE46VC.js';export{c as DateInput,a as dateInputCalendarMode,b as dateInputClassNames}from'../../_chunks/chunk-SXXIPX35.js';import'../../_chunks/chunk-GFEQDSYL.js';import'../../_chunks/chunk-PEOYN7GO.js';import'../../_chunks/chunk-OBELDQWE.js';import'../../_chunks/chunk-OJS6C6S6.js';import'../../_chunks/chunk-LZKPVI6B.js';import'../../_chunks/chunk-ZGVTCYRV.js';import'../../_chunks/chunk-XFEWBGH5.js';import'../../_chunks/chunk-IM4LTXAH.js';import'../../_chunks/chunk-D7JDLT2O.js';import {b as b$1}from'../../_chunks/chunk-OHT5KJVT.js';import'../../_chunks/chunk-SHUOO4XL.js';import'../../_chunks/chunk-PNLHCTCW.js';import'../../_chunks/chunk-GDIPXZTC.js';import'../../_chunks/chunk-N57Z6DIM.js';import'../../_chunks/chunk-HIGHKQAD.js';import {b as b$2}from'../../_chunks/chunk-4IQ3J4LF.js';import'../../_chunks/chunk-57D57K75.js';import'../../_chunks/chunk-VBGXGFX5.js';import'../../_chunks/chunk-WYH4IUDI.js';import'../../_chunks/chunk-76GQ37UR.js';import'../../_chunks/chunk-4EOSR5FI.js';export{a as DatePicker}from'../../_chunks/chunk-6UMTGWFW.js';export{i as TimePicker}from'../../_chunks/chunk-RXCJF7BB.js';import'../../_chunks/chunk-AN56DE5R.js';import {j,L,B as B$2,x,p,R,h}from'../../_chunks/chunk-6ZPNLCMN.js';import'../../_chunks/chunk-WXWRA4VU.js';import {A,y,C,D,B as B$1,n,b as b$3,p as p$1,e,q,o}from'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-JY4U45C5.js';import'../../_chunks/chunk-VJSBADTP.js';import {qa,ea}from'../../_chunks/chunk-MMXWSV6V.js';import'../../_chunks/chunk-53X3U5WT.js';import {Wj,Xj,Yj,Zj,H,Yc,ec,gc,fc,el,fl}from'../../_chunks/chunk-VRGBJY4Q.js';import'../../_chunks/chunk-LS57WE6K.js';import b from'@mui/material/Box';import Et from'@mui/material/Popper';import {useTranslation}from'react-i18next';import {memo,createContext,useState,useMemo,useRef,useEffect,useContext}from'react';import At from'@mui/material/ClickAwayListener';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import re from'@mui/material/Button';import {Calendar,DateObject}from'react-multi-date-picker';import to from'react-date-object';import jt from'react-date-object/calendars/arabic';import Ht from'react-date-object/calendars/gregorian';import Wt from'react-date-object/locales/arabic_en';import Gt from'react-date-object/locales/gregorian_en';var Eo=styled(b)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),Pe=styled(b)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),Oo=styled(b,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),X=styled(b)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),J=styled(b)(()=>({width:12,height:12})),ee=styled(b)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function Je({zone:e,onChange:o,defaultCountryZone:t,countryCodes:n}){let[l,i]=useState(null),p=f=>{l||i(f.currentTarget);},a=()=>{l&&i(null);},r=(f,s)=>{f.stopPropagation(),o(s);},m=useMemo(()=>n.map(B$1).filter(f=>!!f),[n]),u=m.some(f=>C(f,e)),x=u?e:t;return jsxs(X,{onMouseEnter:p,onMouseLeave:a,onClick:()=>{o(x);},children:[u?jsx("img",{src:Zj,alt:"icon"}):jsx(J,{}),jsx("img",{src:Xj,alt:"entity-timezone"}),jsx(b$1,{countryCode:x.countryCode}),jsx(ee,{className:u?"selected":"",children:D(x)}),jsx(Et,{open:!!l,anchorEl:l,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(Pe,{sx:{maxHeight:300},children:m.map(f=>{let s=C(f,e);return jsxs(X,{onClick:Z=>{r(Z,f);},sx:{gap:"4px"},children:[s?jsx("img",{src:Zj,alt:"icon"}):jsx(J,{}),jsx(b$1,{countryCode:f.countryCode}),jsx(ee,{className:s?"selected":"",children:D(f)})]},f.countryCode)})})})]})}function eo({zone:e,onChange:o}){let t=A(y());if(!t)return null;let n=C(t,e);return jsxs(X,{onClick:()=>o(t),children:[n?jsx("img",{src:Zj,alt:"icon"}):jsx(J,{}),jsx("img",{src:Wj,alt:"user-timezone"}),jsx(b$1,{countryCode:t.countryCode}),jsx(ee,{className:n?"selected":"",children:D(t)})]})}function Lt({zone:e,onChange:o,defaultCountryZone:t,countryCodes:n}){let[l,i]=useState(null),p=!!l,a=A(y()),r=()=>{i(null);},m=f=>{o(f),r();},u=f=>{i(f.currentTarget);},x=C(e,a)?Wj:C(e,t)?Xj:Yj;return jsx(At,{onClickAway:r,children:jsxs(Eo,{"data-testid":"ZonePicker",children:[jsxs(Oo,{open:p,onClick:u,children:[jsx("img",{src:x,alt:"zone-icon"}),jsx(b$1,{countryCode:e.countryCode}),jsx("span",{children:D(e)})]}),jsx(Et,{open:p,anchorEl:l,placement:"top-start",sx:{zIndex:1400},children:jsxs(Pe,{"data-testid":"ZonePicker_dropdown",children:[jsx(Je,{zone:e,onChange:m,defaultCountryZone:t,countryCodes:n}),jsx(eo,{zone:e,onChange:m})]})})]})})}var te=memo(Lt);var Re=styled(b)(({theme:e})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none"},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),Me=styled(re)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),Be=styled(re)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),ve=styled(b)(()=>({display:"flex",gap:8,marginLeft:"auto",flexShrink:0})),U=styled(re,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),Se=styled(b)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),Ee=styled(b)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),Oe=styled(b)(()=>({display:"flex",alignItems:"center",gap:"10px"})),Ze=styled(b)(()=>({position:"relative"})),Ie=styled(b)(()=>({display:"flex",flexDirection:"column",gap:"24px"})),Io=styled(b)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Ao=styled(b,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),zo=styled(b)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),Lo=styled(b)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}})),Fo=styled(b)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}})),jo=styled(re)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}})),Ho=styled(re)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),Wo=styled(b)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),Go=styled(b,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Vo=styled(b)(()=>({width:235})),No=styled(b)(()=>({display:"flex",gap:"4px"})),Yo=styled(b)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function ne({calendarMode:e,onCalendarModeChange:o}){let{t}=useTranslation();return jsx(b,{children:jsxs(Fo,{children:[jsxs(b,{children:[jsx("img",{src:ec,alt:"hijri"}),jsx("span",{children:t("hijri")})]}),jsx(h,{checked:e==="hijri",onChange:()=>o?.(e==="hijri"?"gregorian":"hijri")})]})})}var B=e=>e==="hijri"?Wt:Gt,v=e=>e==="hijri"?jt:Ht,_o=(e,o)=>!e||Number.isNaN(e.getTime())?void 0:new to({date:e,calendar:v(o),locale:B(o)}),ro=(e$1,o,t)=>{let n=_o(e(e$1?.[0],t),o),l=_o(e(e$1?.[1],t),o);if(n&&l)return [n,l];let i=v(o),p=B(o),a=e(Date.now(),t)??new Date;return [new to({date:new Date(a.getFullYear(),a.getMonth(),a.getDate()-6),calendar:i,locale:p}),new to({date:a,calendar:i,locale:p})]},Uo=(e,o)=>Math.round((Date.UTC(o.getFullYear(),o.getMonth(),o.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/864e5),ze=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),Le=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),no=e=>!!e[1]&&e[0].format("YYYYMMDD")===e[1].format("YYYYMMDD");var Kt=31,ae=createContext(null);function S(){let e=useContext(ae);if(!e)throw new Error("useDateRangeCalendar must be used inside a DateRangeCalendar");return e}function Fe({zone:e$1,range:o$1,onApply:t,calendarMode:n="gregorian",maxRangeDays:l,groupBy:i,onGroupByChange:p}){let[a,r]=useState(()=>ro(o$1,n,e$1.zone)),[m,u]=useState(a),[x,f]=useState(e$1),[s,Z]=useState(i??"day"),[k,T]=useState(()=>p$1(o$1,e$1.zone)),[me,q$1]=useState(null),[ue,fe]=useState(false),I=useRef(null),N=!!me,c=l===void 0?Kt:l;useEffect(()=>{if(N)return;let d=ro(o$1,n,e$1.zone);r(d),u(d),T(p$1(o$1,e$1.zone)),I.current&&I.current.set("date",d[0]);},[o$1,e$1.zone,e$1.countryCode,n,N]),useEffect(()=>{let d=g=>new DateObject({date:g.toDate(),calendar:v(n),locale:B(n)});r(g=>[d(g[0]),d(g[1])]),u(g=>[d(g[0]),d(g[1])]);},[n]),useEffect(()=>{f(d=>d.zone===e$1.zone&&d.countryCode===e$1.countryCode?d:e$1);},[e$1.zone,e$1.countryCode,N]);let P=d=>{let g=d;if(d.length<2||c===0)return g;let Y=Uo(ze(d[0]).toDate(),Le(d[1]).toDate());return Y<=c?g:(fe(true),setTimeout(()=>{fe(false);},3e3),[d[0],d[1].subtract(Y-c,"d")])},gt=d=>{let g=P(d);r(g),T(!no(g));},xt=d=>{let g=P(d);r([ze(g[0]),Le(g[1])]),T(true),I.current&&I.current.set("date",g[0]);},yt=d=>r(d),bt=d=>{T(d),d&&a[1]&&r([ze(a[0]),Le(a[1])]);},yo=()=>q$1(null),Dt=d=>q$1(d.currentTarget),Ct=()=>{let d=[a[0].toDate(),a[1].toDate()];return {range:(k?q(d,x.zone):o(d,x.zone))??d,zone:x}},ht=()=>{t(Ct())!==false&&(u(a),p?.(s),yo());},kt=d=>{let g=d[0]?.format("MMM D"),Y=d[1]?.format("MMM D")??g;return g?g===Y?g:`${g} - ${Y}`:Y};return {draft:a,isAllDay:k,isSameDay:no(a),isError:ue,maxRangeDays:c,open:N,anchorEl:me,pickedZone:x,selectedGroupBy:s,calendarRef:I,maxDate:e(Date.now(),x.zone),rangeLabel:kt(m),pickRange:gt,pickPreset:xt,setTimes:yt,setAllDay:bt,pickZone:f,setGroupBy:Z,openPicker:Dt,closePicker:yo,apply:ht}}var Qo={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function Qt(){let{selectedGroupBy:e,setGroupBy:o,open:t}=S(),[n,l]=useState(null),i=!!n&&t,{t:p}=useTranslation();return jsx(At,{onClickAway:()=>l(null),children:jsxs(b,{children:[jsx(Io,{children:p("groupedBy")}),jsxs(Ao,{onClick:a=>l(a.currentTarget),open:i,children:[jsx("span",{children:Qo[e]}),jsx(b,{component:"img",src:Yc,alt:"arrow",sx:{...i&&{transform:"rotate(180deg)"}}})]}),jsx(R,{open:i,anchorEl:n,children:jsx(zo,{sx:{width:n?.clientWidth},children:Object.entries(Qo).map(([a,r])=>jsx(Lo,{onClick:()=>{o(a),l(null);},className:e===a?"active":"",children:r},a))})})]})})}var je=Qt;var Jt=["Su","Mo","Tu","We","Th","Fr","Sa"];function er({calendarMode:e,numberOfMonths:o=2}){let{draft:t,maxDate:n,calendarRef:l,pickRange:i}=S();return jsx(Calendar,{ref:l,numberOfMonths:o,value:t,onChange:i,calendar:v(e),locale:B(e),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(p,a)=>jsx(jo,{onClick:a,children:jsx("img",{src:p==="right"?gc:fc,alt:"arrow"})}),weekDays:Jt,maxDate:n})}var He=er;function ie({calendarMode:e$1}){let{t:o}=useTranslation(),{pickedZone:t,pickPreset:n}=S(),l=useMemo(()=>{let i=e(Date.now(),t.zone)??new Date,p=()=>new DateObject({date:i,calendar:v(e$1),locale:B(e$1)}),a=r=>p().subtract(r,"month");return [{id:"today",value:[p(),p()]},{id:"lastWeek",value:[p().subtract(6,"day"),p()]},{id:"lastMonth",value:[p().subtract(30,"day"),p()]},...[1,2,3].map(r=>({id:a(r).toFirstOfMonth().format("MMMM YYYY"),value:[a(r).toFirstOfMonth(),a(r).toLastOfMonth()]}))]},[e$1,t.zone]);return jsx(b,{"data-testid":"RangePresets",children:jsx(Wo,{children:l.map(i=>jsx(Ho,{onClick:p=>{p.preventDefault(),n(i.value);},children:o(i.id)},i.id))})})}var pe=e=>e===0?12:e<=12?e:e-12,We=e=>e>=12?"PM":"AM",Ge=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e,Jo=()=>new Date().getMinutes(),et=()=>pe(new Date().getHours());var ot=styled(b)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),tt=styled(j,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:t})=>{let{base:n,grey:l,brand:i}=e.v2.palette;return {fontSize:"11px",fontWeight:500,background:n.white,border:`1px solid ${l[100]}`,borderRadius:"19px",height:t==="large"?32:24,width:t==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:i[500]}}}),de=styled(b)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),rt=styled(j,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>{let{base:t,grey:n,brand:l}=e.v2.palette;return {fontSize:"11px",fontWeight:500,background:t.white,border:`1px solid ${n[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:l[500],backgroundColor:alpha(l[500],.1)}}}),nt=styled(b)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),at=styled(b)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),lo=styled(b)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),so=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px",textAlign:"center"},".MuiInput-root":{paddingInline:"8px"},height:32,width:32}));var dr=["AM","PM"],Ne=12,co=59;function Ye({id:e="time-picker",onChange:o,defaultTime:t,enableRealTimeChange:n,size:l="large"}){let[i,p]=useState(null),[a,r]=useState(t?.period??(new Date().getHours()>=Ne?"PM":"AM")),[m,u]=useState(t?.hour??et()),[x,f]=useState(t?.minute??Jo()),s=!!i;useEffect(()=>{n&&o?.({hour:m,minute:x,period:a});},[m,x,a,n]);let Z=c=>{p(c.currentTarget);},k=()=>{p(null),o?.({hour:m,minute:x,period:a});},T=c=>c<10?`0${c}`:c.toString(),me=c=>{let P=ea(T(Number(c.target.value)));if(P>Ne){c.preventDefault();return}u(P);},q=()=>{u(c=>c===Ne?1:c+1);},ue=()=>{u(c=>c===1?Ne:c-1);},fe=c=>{let P=ea(T(Number(c.target.value)));if(P>co){c.preventDefault();return}f(P);},I=()=>{f(c=>c===co?(q(),0):c+1);},N=()=>{f(c=>c===0?(ue(),co):c-1);};return jsx(At,{onClickAway:k,children:jsxs(b,{id:e,"data-testid":"TimePicker",children:[jsx(tt,{size:l,open:s,onClick:Z,children:`${T(m)}:${T(x)}${a.toLowerCase()}`}),jsx(R,{open:s,anchorEl:i,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(ot,{children:[jsxs(at,{children:[jsxs(lo,{children:[jsx(de,{onClick:q,children:jsx("img",{src:el,alt:"arrow"})}),jsx(so,{type:"number",hideArrows:true,disableFocusRing:true,value:T(m),onChange:me}),jsx(de,{onClick:ue,children:jsx("img",{src:fl,alt:"arrow"})})]}),jsx(j,{children:":"}),jsxs(lo,{children:[jsx(de,{onClick:I,children:jsx("img",{src:el,alt:"arrow"})}),jsx(so,{type:"number",hideArrows:true,disableFocusRing:true,value:T(x),onChange:fe}),jsx(de,{onClick:N,children:jsx("img",{src:fl,alt:"arrow"})})]})]}),jsx(nt,{children:dr.map(c=>jsx(rt,{onClick:()=>r(c),selected:a===c,children:c},c))})]})})]})})}function cr(){let{t:e}=useTranslation(),{draft:o,isAllDay:t,setTimes:n,setAllDay:l}=S(),i=new DateObject(o[0]),p=new DateObject(o[1]),a=({hour:m,minute:u,period:x})=>{n([i.setHour(Ge(m,x??"AM")).setMinute(u).setSecond(0),p]);},r=({hour:m,minute:u,period:x})=>{n([i,p.setHour(Ge(m,x??"AM")).setMinute(u).setSecond(59)]);};return jsx(Vo,{children:jsxs(Yo,{children:[jsxs(Go,{isAllDay:t,children:[jsx("span",{className:"label",children:e("allDay")}),jsx(h,{checked:t,onChange:m=>l(m.target.checked)})]}),!t&&jsxs(No,{children:[jsx(Ye,{defaultTime:{hour:pe(i.hour),minute:i.minute,period:We(i.hour)},size:"small",onChange:a,enableRealTimeChange:true},`${o[0]?.toString()}-start`),jsx(Ye,{defaultTime:{hour:pe(p.hour),minute:p.minute,period:We(p.hour)},size:"small",onChange:r,enableRealTimeChange:true},`${o[1]?.toString()}-end`)]})]})})}var $e=cr;function gr(e){let{id:o="date-range-calendar",calendarMode:t="gregorian",onCalendarModeChange:n,defaultCountryZone:l,countryCodes:i,groupBy:p}=e,{t:a}=useTranslation(),r=Fe(e),m=u=>{u.key==="Enter"&&r.draft[1]&&!r.isError?(u.stopPropagation(),r.apply()):u.key==="Escape"&&(u.stopPropagation(),r.closePicker());};return jsx(ae.Provider,{value:r,children:jsxs(Ze,{id:o,"data-testid":"DateRangeCalendar",children:[jsx(U,{onClick:r.openPicker,open:r.open,children:r.rangeLabel}),r.open&&jsx(B$2,{onClick:u=>{u.stopPropagation(),r.closePicker();}}),jsx(Et,{open:r.open,anchorEl:r.anchorEl,placement:"bottom-end",children:jsxs(Re,{onKeyDown:m,children:[jsxs(Ee,{children:[jsx(ie,{calendarMode:t}),jsxs(Ie,{children:[p&&jsx(je,{}),jsx(ne,{calendarMode:t,onCalendarModeChange:n})]})]}),jsxs(b,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(He,{calendarMode:t}),jsx(x,{in:r.isError&&r.maxRangeDays>0,children:jsx(b$2,{severity:"error",message:a("dateRangeError",{number:r.maxRangeDays}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(Se,{sx:{borderBottomLeftRadius:"8px"},children:[l&&i&&jsx(Oe,{children:jsx(te,{zone:r.pickedZone,onChange:r.pickZone,defaultCountryZone:l,countryCodes:i},String(r.open))}),r.isSameDay&&jsx($e,{}),jsxs(ve,{children:[jsx(Me,{variant:"contained",onClick:r.closePicker,children:a("cancel")}),jsx(Be,{variant:"contained",onClick:r.apply,disabled:!r.draft[1],children:a("okay")})]})]})]})]})})]})})}var pt=gr;function Dr(e){let{calendarMode:o="gregorian",onCalendarModeChange:t,defaultCountryZone:n,countryCodes:l,groupBy:i,trigger:p,popperProps:a,sx:r,numberOfMonths:m=2,showPresets:u=true,id:x$1="embedded-date-range-calendar"}=e,{t:f}=useTranslation(),s=Fe(e),Z=k=>{k.key==="Enter"&&s.draft[1]&&!s.isError?(k.stopPropagation(),s.apply()):k.key==="Escape"&&(k.stopPropagation(),s.closePicker());};return jsx(ae.Provider,{value:s,children:jsxs(Ze,{id:x$1,"data-testid":"EmbeddedDateRangeCalendar",sx:r,children:[p?p({label:s.rangeLabel,open:s.open,openPicker:s.openPicker}):jsx(U,{onClick:s.openPicker,open:s.open,children:s.rangeLabel}),s.open&&jsx(B$2,{onClick:k=>{k.stopPropagation(),s.closePicker();}}),jsx(Et,{...a,open:s.open,anchorEl:s.anchorEl,placement:a?.placement??"bottom-end",children:jsxs(Re,{onKeyDown:Z,children:[jsxs(Ee,{children:[u&&jsx(ie,{calendarMode:o}),jsxs(Ie,{children:[i&&jsx(je,{}),jsx(ne,{calendarMode:o,onCalendarModeChange:t})]})]}),jsxs(b,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(He,{calendarMode:o,numberOfMonths:m}),jsx(x,{in:s.isError&&s.maxRangeDays>0,children:jsx(b$2,{severity:"error",message:f("dateRangeError",{number:s.maxRangeDays}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(Se,{sx:{borderBottomLeftRadius:"8px"},children:[n&&l&&jsx(Oe,{children:jsx(te,{zone:s.pickedZone,onChange:s.pickZone,defaultCountryZone:n,countryCodes:l},String(s.open))}),s.isSameDay&&jsx($e,{}),jsxs(ve,{children:[jsx(Me,{variant:"contained",onClick:s.closePicker,children:f("cancel")}),jsx(Be,{variant:"contained",onClick:s.apply,disabled:!s.draft[1],children:f("okay")})]})]})]})]})})]})})}var Ke=Dr;var Cr=styled(j)(()=>({fontSize:"11px"})),lt=styled(b)(()=>({display:"flex",flexDirection:"column",gap:"8px",marginBottom:"8px"})),uo=styled(Cr)(()=>({fontSize:"11px",fontWeight:500,color:"#8D8D94",padding:"8px 16px"})),dt=styled(b)(({theme:e})=>({borderBlock:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",gap:"2px",width:"100%"})),st=styled(b)(()=>({display:"flex",alignItems:"center",gap:"4px",width:"100%",paddingInline:"16px"})),ct=styled(uo)(()=>({color:"#1F88D0",padding:"4px 24px",cursor:"pointer"})),mt=styled(b)(({theme:e})=>({backgroundColor:e.palette.common.white,borderRadius:"4px",filter:"drop-shadow(0px 8px 30px rgba(0, 0, 0, 0.16))",width:"auto",marginTop:"8px",boxShadow:e.shadows[3],"&:focus":{outline:"none"}}));function kr({id:e="date-range-filter",hasRange:o,onClear:t,onClose:n,trigger:l,...i}){let{t:p}=useTranslation(),a=r=>{let m=i.onApply(r);return m!==false&&n?.(),m};return jsx(mt,{id:e,"data-testid":"DateRangeFilter",children:jsxs(lt,{children:[jsx(dt,{children:jsx(uo,{component:"span",children:p("filterBy")})}),jsx(st,{children:jsx(Ke,{...i,onApply:a,trigger:l??(({label:r,open:m,openPicker:u})=>jsx(U,{open:m,onClick:u,sx:{width:"100%",justifyContent:"space-between"},children:jsx("span",{children:r})}))})}),o&&jsx(ct,{component:"span",onClick:t,children:p("clear")})]})})}var ut=kr;function Pr({value:e,zone:o,format:t,...n$1}){let l=useMemo(()=>n(e,o,t),[e,o,t]);return jsx(a,{...n$1,children:l})}var Rr=Pr;var ft=styled(b)({display:"flex",alignItems:"center",gap:"12px"});function Or({value:e,zone:o,format:t,rendered:n$1,tableMode:l,...i}){let p=useMemo(()=>n$1??n(e,o,t),[n$1,e,o,t]);return jsx(a,{...i,children:jsx(ft,{children:jsx(b,{sx:{...qa(l)&&{fontSize:"11px"}},children:p})})})}var go=Or;function Ar({value:e,zone:o,hintZone:t,format:n$1,tableMode:l,...i}){let p$1=useMemo(()=>{if(!(!t||e==null||e===""))return b$3(o,t,e)?n(e,t):void 0},[e,o,t]);return jsxs(b,{sx:{display:"flex",gap:"8px"},children:[jsx(go,{value:e,zone:o,format:n$1,tableMode:l,...i}),p$1!==void 0&&jsx(p,{title:p$1,children:jsx("img",{src:H,width:14,alt:"timezone"})})]})}var zr=Ar;export{pt as DateRangeCalendar,ut as DateRangeFilter,Ke as EmbeddedDateRangeCalendar,te as ZonePicker,Rr as ZonedDateCell,zr as ZonedDateHintViewer,go as ZonedDateViewer};
|