freemium-ui 2.0.39 → 2.0.41

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/lib/index.cjs.js CHANGED
@@ -9231,9 +9231,9 @@ console.info("Finished '".concat(e,"' in ").concat(o,"ms"))),[2]}var i}))}))}
9231
9231
  function d_(e){return Ce(this,void 0,void 0,(function(){var t,n
9232
9232
  ;return ze(this,(function(r){switch(r.label){case 0:
9233
9233
  return t=e.loader,"function"!=typeof(n=void 0===t?p_.defaultLoader:t)?[3,1]:[2,n]
9234
- ;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return rG
9234
+ ;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return oG
9235
9235
  }))];case 2:return[2,r.sent().allPathsLoader];case 3:
9236
- return[4,Promise.resolve().then((function(){return oG}))];case 4:
9236
+ return[4,Promise.resolve().then((function(){return aG}))];case 4:
9237
9237
  return[2,r.sent().splitPathsBySizeLoader]}}))}))}var h_=function(){function e(){
9238
9238
  this.defaultLoader="split-by-size",
9239
9239
  this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}
@@ -16189,12 +16189,12 @@ fill:t.fill}))))`
16189
16189
  animation-duration: ${({theme:e})=>e.transitions.duration.standard};
16190
16190
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
16191
16191
  animation-name: ${Pr};
16192
- `,SU=yr.div``,_U=yr.div``,HU=yr.div`
16192
+ `,SU=yr.div``,_U=yr.div``,HU=yr.div``,DU=yr.div`
16193
16193
  display: flex;
16194
16194
  align-items: center;
16195
+ gap: 10px;
16195
16196
  direction: ${({theme:e})=>e.direction};
16196
16197
  .table-heading-dropdown {
16197
- margin-right: 20px;
16198
16198
  display: flex;
16199
16199
  align-items: center;
16200
16200
  }
@@ -16214,7 +16214,7 @@ fill:t.fill}))))`
16214
16214
  font-size: 14px;
16215
16215
  font-weight: 400;
16216
16216
  }
16217
- `,DU=yr.div`
16217
+ `,kU=yr.div`
16218
16218
  display: flex;
16219
16219
  gap: 8px;
16220
16220
  align-items: center;
@@ -16226,10 +16226,10 @@ fill:t.fill}))))`
16226
16226
  place-content: center;
16227
16227
  padding: 0;
16228
16228
  }
16229
- `,kU=yr.div`
16229
+ `,AU=yr.div`
16230
16230
  overflow: auto;
16231
16231
  flex: 1;
16232
- `,AU=yr.table`
16232
+ `,LU=yr.table`
16233
16233
  border-spacing: 0px;
16234
16234
  border-collapse: collapse;
16235
16235
  font-family: ${({theme:e})=>e.typography.fontFamily};
@@ -16238,9 +16238,9 @@ fill:t.fill}))))`
16238
16238
  margin: 0;
16239
16239
  direction: ${({theme:e})=>e.direction};
16240
16240
  position: relative;
16241
- `,LU=yr.thead``,VU=yr.tbody`
16241
+ `,VU=yr.thead``,TU=yr.tbody`
16242
16242
  position: relative;
16243
- `,TU=yr.tfoot``,RU=yr.tr`
16243
+ `,RU=yr.tfoot``,PU=yr.tr`
16244
16244
  &:hover {
16245
16245
  transition: 0.2s ease;
16246
16246
  background-color: ${({theme:e})=>e.colors.fill.medium};
@@ -16254,7 +16254,7 @@ fill:t.fill}))))`
16254
16254
  border-bottom-width: 3px;
16255
16255
  }
16256
16256
  `}
16257
- `,PU=yr.div`
16257
+ `,IU=yr.div`
16258
16258
  position: absolute;
16259
16259
  width: 100%;
16260
16260
  height: 100%;
@@ -16264,7 +16264,7 @@ fill:t.fill}))))`
16264
16264
  animation-duration: ${({theme:e})=>e.transitions.duration.standard};
16265
16265
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
16266
16266
  animation-name: ${Sr};
16267
- `,IU=yr.th`
16267
+ `,OU=yr.th`
16268
16268
  padding: 16px;
16269
16269
  font-size: 12px;
16270
16270
  line-height: 16px;
@@ -16297,7 +16297,7 @@ fill:t.fill}))))`
16297
16297
  border-right: 3px solid ${({theme:e})=>e.colors.border.light};
16298
16298
  }
16299
16299
  `}
16300
- `,OU=yr.td`
16300
+ `,NU=yr.td`
16301
16301
  padding: 12px;
16302
16302
  margin: 0;
16303
16303
  font-size: 14px;
@@ -16320,19 +16320,19 @@ fill:t.fill}))))`
16320
16320
  border-right: 3px solid ${e.colors.border.light};
16321
16321
  }
16322
16322
  `}
16323
- `,NU=yr.div`
16324
- font-family: ${({theme:e})=>e.typography.fontFamily};
16325
16323
  `,FU=yr.div`
16324
+ font-family: ${({theme:e})=>e.typography.fontFamily};
16325
+ `,$U=yr.div`
16326
16326
  padding: 24px;
16327
16327
  display: flex;
16328
16328
  justify-content: space-between;
16329
16329
  align-items: center;
16330
- `,$U=yr.div`
16330
+ `,BU=yr.div`
16331
16331
  padding: 0 24px;
16332
16332
  display: flex;
16333
16333
  gap: 16px;
16334
16334
  height: 256px;
16335
- `,BU=yr.div`
16335
+ `,jU=yr.div`
16336
16336
  background: ${({theme:e})=>e.colors.fill.medium};
16337
16337
  border-radius: 4px 4px 0px 0px;
16338
16338
  padding: 8px 8px 0 8px;
@@ -16346,11 +16346,11 @@ fill:t.fill}))))`
16346
16346
  margin-bottom: 8px;
16347
16347
  }
16348
16348
  }
16349
- `,jU=yr.div`
16349
+ `,UU=yr.div`
16350
16350
  display: flex;
16351
16351
  gap: 8px;
16352
16352
  flex-direction: column;
16353
- `,UU=yr.div`
16353
+ `,YU=yr.div`
16354
16354
  display: flex;
16355
16355
  gap: 12px;
16356
16356
  flex-direction: column;
@@ -16364,13 +16364,13 @@ fill:t.fill}))))`
16364
16364
  font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
16365
16365
  line-height: ${({theme:e})=>e.typography.primary.lineHeight};
16366
16366
  }
16367
- `,YU=yr.div`
16367
+ `,WU=yr.div`
16368
16368
  background-color: ${({theme:e})=>e.colors.fill.base};
16369
16369
  display: flex;
16370
16370
  padding: 16px;
16371
16371
  gap: 8px;
16372
16372
  justify-content: flex-end;
16373
- `,WU=yr.div`
16373
+ `,GU=yr.div`
16374
16374
  font-family: ${({theme:e})=>e.typography.fontFamily};
16375
16375
  background: ${({theme:e})=>e.colors.fill.surface};
16376
16376
  border: 1px solid ${({theme:e})=>e.colors.border.light};
@@ -16384,7 +16384,7 @@ fill:t.fill}))))`
16384
16384
  display: flex;
16385
16385
  justify-content: space-between;
16386
16386
  gap: 8px;
16387
- `,GU=yr.div`
16387
+ `,KU=yr.div`
16388
16388
  display: flex;
16389
16389
  align-items: center;
16390
16390
  width: fit-content;
@@ -16405,7 +16405,7 @@ fill:t.fill}))))`
16405
16405
  color: ${e.colors.text.link};
16406
16406
  `}
16407
16407
  }
16408
- `,KU=e.forwardRef(((t,n)=>{const r=cr();return e.createElement("svg",{
16408
+ `,qU=e.forwardRef(((t,n)=>{const r=cr();return e.createElement("svg",{
16409
16409
  width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",
16410
16410
  xmlns:"http://www.w3.org/2000/svg",...t,ref:n},e.createElement("path",{
16411
16411
  fillRule:"evenodd",clipRule:"evenodd",
@@ -16414,36 +16414,36 @@ fill:r.colors.text.primary}),e.createElement("mask",{id:"mask0_3930_5537",
16414
16414
  style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",
16415
16415
  height:"16"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
16416
16416
  d:"M2.58355 11.1378C4.81252 13.3668 8.33651 13.5074 10.7134 11.5548L14.1832 15.0246C14.4164 15.2578 14.7939 15.2586 15.0262 15.0262C15.2586 14.7939 15.2578 14.4164 15.0246 14.1832L11.5548 10.7134C13.5074 8.33651 13.3668 4.81252 11.1378 2.58355C8.76634 0.212068 4.92894 0.204542 2.56674 2.56674C0.204542 4.92894 0.212068 8.76634 2.58355 11.1378ZM3.42481 10.2966C1.51985 8.39167 1.5138 5.30917 3.41131 3.41166C5.30881 1.51416 8.39131 1.52021 10.2963 3.42517C12.2012 5.33013 12.2073 8.41263 10.3098 10.3101C8.41228 12.2076 5.32977 12.2016 3.42481 10.2966Z"
16417
- })))})),qU=["rowMenuOptions","select"],ZU=({table:t})=>{
16417
+ })))})),ZU=["rowMenuOptions","select"],XU=({table:t})=>{
16418
16418
  const n=cr(),[r,o]=e.useState({}),[a,i]=e.useState([]),l=t.getAllColumns(),c=t.getState(),s=e.useCallback((()=>{
16419
16419
  const e={};l.forEach((t=>{e[t.id]=t
16420
16420
  })),i(c.columnOrder.map((t=>e[t])).filter((e=>e.getIsVisible())))
16421
16421
  }),[c.columnOrder,l,i]);return e.useEffect((()=>{o(c.columnVisibility),s()
16422
16422
  }),[c.columnVisibility,s]),
16423
- e.createElement(NU,null,e.createElement(FU,null,e.createElement(Bo,{
16423
+ e.createElement(FU,null,e.createElement($U,null,e.createElement(Bo,{
16424
16424
  weight:"semi-bold"},"Customize columns"),e.createElement(Mm,{variant:"link",
16425
16425
  onClick:()=>{const e={};t.getAllColumns().forEach((t=>{e[t.id]=t.getIsVisible()
16426
16426
  })),o(e),s()}
16427
- },"Reset")),e.createElement($U,null,e.createElement(jU,null,e.createElement(_c,{
16428
- startAdornment:e.createElement(KU,{viewBox:"0 0 18px 18px"}),
16427
+ },"Reset")),e.createElement(BU,null,e.createElement(UU,null,e.createElement(_c,{
16428
+ startAdornment:e.createElement(qU,{viewBox:"0 0 18px 18px"}),
16429
16429
  placeholder:"Search columns"}),e.createElement(Bo,{weight:"semi-bold"
16430
- },"Choose columns"),e.createElement(UU,null,t.getAllColumns().filter((e=>!qU.includes(e.id))).map((n=>e.createElement(Ug,{
16430
+ },"Choose columns"),e.createElement(YU,null,t.getAllColumns().filter((e=>!ZU.includes(e.id))).map((n=>e.createElement(Ug,{
16431
16431
  key:n.id,label:n.columnDef.header?.toString(),checked:!!r[n.id],
16432
16432
  onCheckedChange:e=>{const r=t.getAllColumns().find((e=>e.id===n.id));o((t=>({
16433
16433
  ...t,[n.id]:!0===e
16434
16434
  }))),i((t=>!0===e?[...t,...r?[r]:[]]:t.filter((e=>e.id!==n.id))))}
16435
- }))))),e.createElement(BU,null,e.createElement(Bo,{weight:"semi-bold"
16435
+ }))))),e.createElement(jU,null,e.createElement(Bo,{weight:"semi-bold"
16436
16436
  },`Selected columns (${a.length})`),e.createElement(gj,{
16437
16437
  className:"ReorderContainer",onReorder:e=>{i(e)},
16438
- customFilter:e=>!qU.includes(e.id??""),customRender:t=>e.createElement(WU,{
16438
+ customFilter:e=>!ZU.includes(e.id??""),customRender:t=>e.createElement(GU,{
16439
16439
  key:t.id
16440
16440
  },e.createElement("div",null,t?.columnDef?.header?.toString()??""),e.createElement(Ao,{
16441
16441
  onClick:()=>{o((e=>({...e,[t.id]:!1}))),i((e=>e.filter((e=>e.id!==t.id))))}
16442
16442
  },e.createElement(no,{fill:n.colors.text.primary}))),items:a
16443
- }))),e.createElement(YU,null,e.createElement(zF,{asChild:!0
16443
+ }))),e.createElement(WU,null,e.createElement(zF,{asChild:!0
16444
16444
  },e.createElement(Mm,{variant:"secondary"},"Cancel")),e.createElement(Mm,{
16445
16445
  onClick:()=>{t.setColumnOrder(a.map((e=>e.id))),t.setColumnVisibility(r)}
16446
- },"Update")))},XU=t=>{
16446
+ },"Update")))},JU=t=>{
16447
16447
  const{trigger:n,idAccessor:r="id",nameAccessor:o="name",onSelect:a,isDisableSortDropdown:i=!1,options:l=[],value:c}=t,s=cr()
16448
16448
  ;return e.createElement(Kv,null,e.createElement(qv,{asChild:!0,disabled:i
16449
16449
  },e.createElement(Oo,null,n)),e.createElement(Zv,null,e.createElement(Qv,{
@@ -16453,18 +16453,18 @@ side:"bottom",sideOffset:4,align:"center",className:"DropdownMenuContent"
16453
16453
  className:"DropdownMenuItem",key:t?.[r],onSelect:()=>{const e=c??[];e[n]=t?.[r],
16454
16454
  a?.(e)}},t?.[o],c?.[n]===t?.[r]&&e.createElement(ro,{fill:s.colors.common.accent
16455
16455
  })))),e.createElement(Jv,{className:"DropdownMenuSeparator"})))))))
16456
- },JU="Tabs",[QU,eY]=i(JU,[Pm]),tY=Pm(),[nY,rY]=QU(JU),oY=e.forwardRef(((t,n)=>{
16456
+ },QU="Tabs",[eY,tY]=i(QU,[Pm]),nY=Pm(),[rY,oY]=eY(QU),aY=e.forwardRef(((t,n)=>{
16457
16457
  const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:l,orientation:c="horizontal",dir:s,activationMode:u="automatic",...d}=t,h=B(s),[p,f]=y({
16458
- prop:o,onChange:i,defaultProp:l});return e.createElement(nY,{scope:r,baseId:S(),
16458
+ prop:o,onChange:i,defaultProp:l});return e.createElement(rY,{scope:r,baseId:S(),
16459
16459
  value:p,onValueChange:f,orientation:c,dir:h,activationMode:u
16460
16460
  },e.createElement(b.div,a({dir:h,"data-orientation":c},d,{ref:n})))}))
16461
- ;function aY(e,t){return`${e}-trigger-${t}`}function iY(e,t){
16462
- return`${e}-content-${t}`}const lY=e.forwardRef(((t,n)=>{
16463
- const{__scopeTabs:r,loop:o=!0,...i}=t,l=rY("TabsList",r),c=tY(r)
16461
+ ;function iY(e,t){return`${e}-trigger-${t}`}function lY(e,t){
16462
+ return`${e}-content-${t}`}const cY=e.forwardRef(((t,n)=>{
16463
+ const{__scopeTabs:r,loop:o=!0,...i}=t,l=oY("TabsList",r),c=nY(r)
16464
16464
  ;return e.createElement(Um,a({asChild:!0},c,{orientation:l.orientation,
16465
16465
  dir:l.dir,loop:o}),e.createElement(b.div,a({role:"tablist",
16466
- "aria-orientation":l.orientation},i,{ref:n})))})),cY=e.forwardRef(((t,n)=>{
16467
- const{__scopeTabs:r,value:o,disabled:i=!1,...l}=t,c=rY("TabsTrigger",r),s=tY(r),u=aY(c.baseId,o),d=iY(c.baseId,o),h=o===c.value
16466
+ "aria-orientation":l.orientation},i,{ref:n})))})),sY=e.forwardRef(((t,n)=>{
16467
+ const{__scopeTabs:r,value:o,disabled:i=!1,...l}=t,c=oY("TabsTrigger",r),s=nY(r),u=iY(c.baseId,o),d=lY(c.baseId,o),h=o===c.value
16468
16468
  ;return e.createElement(Ym,a({asChild:!0},s,{focusable:!i,active:h
16469
16469
  }),e.createElement(b.button,a({type:"button",role:"tab","aria-selected":h,
16470
16470
  "aria-controls":d,"data-state":h?"active":"inactive",
@@ -16473,21 +16473,21 @@ onMouseDown:v(t.onMouseDown,(e=>{
16473
16473
  i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(o)})),
16474
16474
  onKeyDown:v(t.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(o)
16475
16475
  })),onFocus:v(t.onFocus,(()=>{const e="manual"!==c.activationMode
16476
- ;h||i||!e||c.onValueChange(o)}))})))})),sY=e.forwardRef(((t,n)=>{
16477
- const{__scopeTabs:r,value:o,forceMount:i,children:l,...c}=t,s=rY("TabsContent",r),u=aY(s.baseId,o),d=iY(s.baseId,o),h=o===s.value,p=e.useRef(h)
16476
+ ;h||i||!e||c.onValueChange(o)}))})))})),uY=e.forwardRef(((t,n)=>{
16477
+ const{__scopeTabs:r,value:o,forceMount:i,children:l,...c}=t,s=oY("TabsContent",r),u=iY(s.baseId,o),d=lY(s.baseId,o),h=o===s.value,p=e.useRef(h)
16478
16478
  ;return e.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1))
16479
16479
  ;return()=>cancelAnimationFrame(e)}),[]),e.createElement(z,{present:i||h
16480
16480
  },(({present:r})=>e.createElement(b.div,a({"data-state":h?"active":"inactive",
16481
16481
  "data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,
16482
16482
  id:d,tabIndex:0},c,{ref:n,style:{...t.style,
16483
16483
  animationDuration:p.current?"0s":void 0}}),r&&l)))
16484
- })),uY=yr(oY)``,dY=yr(sY)``,hY=yr(lY)`
16484
+ })),dY=yr(aY)``,hY=yr(uY)``,pY=yr(cY)`
16485
16485
  border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
16486
16486
  display: flex;
16487
16487
  flex-wrap: nowrap;
16488
16488
  gap: 12px;
16489
16489
  direction: ${({theme:e})=>e.direction};
16490
- `,pY=yr(cY)`
16490
+ `,fY=yr(sY)`
16491
16491
  font-family: ${({theme:e})=>e.typography.fontFamily};
16492
16492
  direction: ${({theme:e})=>e.direction};
16493
16493
  background-color: unset;
@@ -16515,28 +16515,28 @@ animationDuration:p.current?"0s":void 0}}),r&&l)))
16515
16515
  color: ${({theme:e})=>e.colors.text.disabled};
16516
16516
  cursor: not-allowed;
16517
16517
  }
16518
- `,fY=e.createContext({toasts:[],windowState:"focus",retainOnHover:!0,
16518
+ `,mY=e.createContext({toasts:[],windowState:"focus",retainOnHover:!0,
16519
16519
  retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}
16520
- }),mY="ToastProvider",[vY,gY,yY]=m("Toast"),[bY,wY]=i("Toast",[yY]),[CY,zY]=bY(mY),MY=t=>{
16520
+ }),vY="ToastProvider",[gY,yY,bY]=m("Toast"),[wY,CY]=i("Toast",[bY]),[zY,MY]=wY(vY),xY=t=>{
16521
16521
  const{__scopeToast:n,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:l}=t,[c,s]=e.useState(null),[u,d]=e.useState(0),h=e.useRef(!1),p=e.useRef(!1)
16522
- ;return e.createElement(vY.Provider,{scope:n},e.createElement(CY,{scope:n,
16522
+ ;return e.createElement(gY.Provider,{scope:n},e.createElement(zY,{scope:n,
16523
16523
  label:r,duration:o,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:c,
16524
16524
  onViewportChange:s,onToastAdd:e.useCallback((()=>d((e=>e+1))),[]),
16525
16525
  onToastRemove:e.useCallback((()=>d((e=>e-1))),[]),
16526
- isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p},l))};MY.propTypes={
16526
+ isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p},l))};xY.propTypes={
16527
16527
  label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){
16528
- return new Error(`Invalid prop \`label\` supplied to \`${mY}\`. Expected non-empty \`string\`.`)
16528
+ return new Error(`Invalid prop \`label\` supplied to \`${vY}\`. Expected non-empty \`string\`.`)
16529
16529
  }return null}}
16530
- ;const xY=["F8"],EY="toast.viewportPause",SY="toast.viewportResume",_Y=e.forwardRef(((t,n)=>{
16531
- const{__scopeToast:r,hotkey:o=xY,label:i="Notifications ({hotkey})",...l}=t,c=zY("ToastViewport",r),u=gY(r),d=e.useRef(null),h=e.useRef(null),p=e.useRef(null),f=e.useRef(null),m=s(n,f,c.onViewportChange),v=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=c.toastCount>0
16530
+ ;const EY=["F8"],SY="toast.viewportPause",_Y="toast.viewportResume",HY=e.forwardRef(((t,n)=>{
16531
+ const{__scopeToast:r,hotkey:o=EY,label:i="Notifications ({hotkey})",...l}=t,c=MY("ToastViewport",r),u=yY(r),d=e.useRef(null),h=e.useRef(null),p=e.useRef(null),f=e.useRef(null),m=s(n,f,c.onViewportChange),v=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=c.toastCount>0
16532
16532
  ;e.useEffect((()=>{const e=e=>{var t;const n=o.every((t=>e[t]||e.code===t))
16533
16533
  ;n&&(null===(t=f.current)||void 0===t||t.focus())}
16534
16534
  ;return document.addEventListener("keydown",e),
16535
16535
  ()=>document.removeEventListener("keydown",e)}),[o]),e.useEffect((()=>{
16536
16536
  const e=d.current,t=f.current;if(g&&e&&t){const n=()=>{
16537
- if(!c.isClosePausedRef.current){const e=new CustomEvent(EY)
16537
+ if(!c.isClosePausedRef.current){const e=new CustomEvent(SY)
16538
16538
  ;t.dispatchEvent(e),c.isClosePausedRef.current=!0}},r=()=>{
16539
- if(c.isClosePausedRef.current){const e=new CustomEvent(SY)
16539
+ if(c.isClosePausedRef.current){const e=new CustomEvent(_Y)
16540
16540
  ;t.dispatchEvent(e),c.isClosePausedRef.current=!1}},o=t=>{
16541
16541
  !e.contains(t.relatedTarget)&&r()},a=()=>{
16542
16542
  e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),
@@ -16548,7 +16548,7 @@ e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),
16548
16548
  e.removeEventListener("pointerleave",a),
16549
16549
  window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}
16550
16550
  }),[g,c.isClosePausedRef]);const y=e.useCallback((({tabbingDirection:e})=>{
16551
- const t=u().map((t=>{const n=t.ref.current,r=[n,...BY(n)]
16551
+ const t=u().map((t=>{const n=t.ref.current,r=[n,...jY(n)]
16552
16552
  ;return"forwards"===e?r:r.reverse()}))
16553
16553
  ;return("forwards"===e?t.reverse():t).flat()}),[u]);return e.useEffect((()=>{
16554
16554
  const e=f.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
@@ -16556,23 +16556,23 @@ const e=f.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
16556
16556
  ;if(t.target===e&&i)return void(null===(r=h.current)||void 0===r||r.focus())
16557
16557
  ;const l=y({tabbingDirection:i?"backwards":"forwards"
16558
16558
  }),c=l.findIndex((e=>e===n));var o,a
16559
- ;if(jY(l.slice(c+1)))t.preventDefault();else i?null===(o=h.current)||void 0===o||o.focus():null===(a=p.current)||void 0===a||a.focus()
16559
+ ;if(UY(l.slice(c+1)))t.preventDefault();else i?null===(o=h.current)||void 0===o||o.focus():null===(a=p.current)||void 0===a||a.focus()
16560
16560
  }};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)
16561
16561
  }}),[u,y]),e.createElement(Yc,{ref:d,role:"region",
16562
16562
  "aria-label":i.replace("{hotkey}",v),tabIndex:-1,style:{
16563
- pointerEvents:g?void 0:"none"}},g&&e.createElement(HY,{ref:h,
16564
- onFocusFromOutsideViewport:()=>{jY(y({tabbingDirection:"forwards"}))}
16565
- }),e.createElement(vY.Slot,{scope:r},e.createElement(b.ol,a({tabIndex:-1},l,{
16566
- ref:m}))),g&&e.createElement(HY,{ref:p,onFocusFromOutsideViewport:()=>{jY(y({
16567
- tabbingDirection:"backwards"}))}}))})),HY=e.forwardRef(((t,n)=>{
16568
- const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=zY("ToastFocusProxy",r)
16563
+ pointerEvents:g?void 0:"none"}},g&&e.createElement(DY,{ref:h,
16564
+ onFocusFromOutsideViewport:()=>{UY(y({tabbingDirection:"forwards"}))}
16565
+ }),e.createElement(gY.Slot,{scope:r},e.createElement(b.ol,a({tabIndex:-1},l,{
16566
+ ref:m}))),g&&e.createElement(DY,{ref:p,onFocusFromOutsideViewport:()=>{UY(y({
16567
+ tabbingDirection:"backwards"}))}}))})),DY=e.forwardRef(((t,n)=>{
16568
+ const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=MY("ToastFocusProxy",r)
16569
16569
  ;return e.createElement(Wu,a({"aria-hidden":!0,tabIndex:0},i,{ref:n,style:{
16570
16570
  position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget
16571
16571
  ;!(null!==(t=l.viewport)&&void 0!==t&&t.contains(n))&&o()}}))
16572
- })),DY="Toast",kY=e.forwardRef(((t,n)=>{
16572
+ })),kY="Toast",AY=e.forwardRef(((t,n)=>{
16573
16573
  const{forceMount:r,open:o,defaultOpen:i,onOpenChange:l,...c}=t,[s=!0,u]=y({
16574
16574
  prop:o,defaultProp:i,onChange:l});return e.createElement(z,{present:r||s
16575
- },e.createElement(VY,a({open:s},c,{ref:n,onClose:()=>u(!1),onPause:g(t.onPause),
16575
+ },e.createElement(TY,a({open:s},c,{ref:n,onClose:()=>u(!1),onPause:g(t.onPause),
16576
16576
  onResume:g(t.onResume),onSwipeStart:v(t.onSwipeStart,(e=>{
16577
16577
  e.currentTarget.setAttribute("data-swipe","start")})),
16578
16578
  onSwipeMove:v(t.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta
@@ -16591,8 +16591,8 @@ e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
16591
16591
  e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
16592
16592
  e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),
16593
16593
  e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),u(!1)}))
16594
- })))})),[AY,LY]=bY(DY,{onClose(){}}),VY=e.forwardRef(((n,r)=>{
16595
- const{__scopeToast:o,type:i="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:f,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:w,...C}=n,z=zY(DY,o),[M,x]=e.useState(null),E=s(r,(e=>x(e))),S=e.useRef(null),_=e.useRef(null),H=l||z.duration,D=e.useRef(0),k=e.useRef(H),A=e.useRef(0),{onToastAdd:L,onToastRemove:V}=z,T=g((()=>{
16594
+ })))})),[LY,VY]=wY(kY,{onClose(){}}),TY=e.forwardRef(((n,r)=>{
16595
+ const{__scopeToast:o,type:i="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:f,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:w,...C}=n,z=MY(kY,o),[M,x]=e.useState(null),E=s(r,(e=>x(e))),S=e.useRef(null),_=e.useRef(null),H=l||z.duration,D=e.useRef(0),k=e.useRef(H),A=e.useRef(0),{onToastAdd:L,onToastRemove:V}=z,T=g((()=>{
16596
16596
  var e
16597
16597
  ;(null==M?void 0:M.contains(document.activeElement))&&(null===(e=z.viewport)||void 0===e||e.focus()),
16598
16598
  u()})),R=e.useCallback((e=>{
@@ -16601,15 +16601,15 @@ A.current=window.setTimeout(T,e))}),[T]);e.useEffect((()=>{const e=z.viewport
16601
16601
  ;if(e){const t=()=>{R(k.current),null==p||p()},n=()=>{
16602
16602
  const e=(new Date).getTime()-D.current
16603
16603
  ;k.current=k.current-e,window.clearTimeout(A.current),null==h||h()}
16604
- ;return e.addEventListener(EY,n),e.addEventListener(SY,t),()=>{
16605
- e.removeEventListener(EY,n),e.removeEventListener(SY,t)}}
16604
+ ;return e.addEventListener(SY,n),e.addEventListener(_Y,t),()=>{
16605
+ e.removeEventListener(SY,n),e.removeEventListener(_Y,t)}}
16606
16606
  }),[z.viewport,H,h,p,R]),e.useEffect((()=>{c&&!z.isClosePausedRef.current&&R(H)
16607
16607
  }),[c,H,z.isClosePausedRef,R]),e.useEffect((()=>(L(),()=>V())),[L,V])
16608
- ;const P=e.useMemo((()=>M?NY(M):null),[M])
16609
- ;return z.viewport?e.createElement(e.Fragment,null,P&&e.createElement(TY,{
16608
+ ;const P=e.useMemo((()=>M?FY(M):null),[M])
16609
+ ;return z.viewport?e.createElement(e.Fragment,null,P&&e.createElement(RY,{
16610
16610
  __scopeToast:o,role:"status","aria-live":"foreground"===i?"assertive":"polite",
16611
- "aria-atomic":!0},P),e.createElement(AY,{scope:o,onClose:T
16612
- },t.createPortal(e.createElement(vY.ItemSlot,{scope:o},e.createElement(Uc,{
16611
+ "aria-atomic":!0},P),e.createElement(LY,{scope:o,onClose:T
16612
+ },t.createPortal(e.createElement(gY.ItemSlot,{scope:o},e.createElement(Uc,{
16613
16613
  asChild:!0,onEscapeKeyDown:v(d,(()=>{
16614
16614
  z.isFocusedToastEscapeKeyDownRef.current||T(),
16615
16615
  z.isFocusedToastEscapeKeyDownRef.current=!1}))},e.createElement(b.li,a({
@@ -16622,59 +16622,59 @@ T()))})),onPointerDown:v(n.onPointerDown,(e=>{0===e.button&&(S.current={
16622
16622
  x:e.clientX,y:e.clientY})})),onPointerMove:v(n.onPointerMove,(e=>{
16623
16623
  if(!S.current)return
16624
16624
  ;const t=e.clientX-S.current.x,n=e.clientY-S.current.y,r=Boolean(_.current),o=["left","right"].includes(z.swipeDirection),a=["left","up"].includes(z.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,l=o?0:a(0,n),c="touch"===e.pointerType?10:2,s={
16625
- x:i,y:l},u={originalEvent:e,delta:s};r?(_.current=s,FY("toast.swipeMove",m,u,{
16626
- discrete:!1})):$Y(s,z.swipeDirection,c)?(_.current=s,FY("toast.swipeStart",f,u,{
16625
+ x:i,y:l},u={originalEvent:e,delta:s};r?(_.current=s,$Y("toast.swipeMove",m,u,{
16626
+ discrete:!1})):BY(s,z.swipeDirection,c)?(_.current=s,$Y("toast.swipeStart",f,u,{
16627
16627
  discrete:!1
16628
16628
  }),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(S.current=null)
16629
16629
  })),onPointerUp:v(n.onPointerUp,(e=>{const t=_.current,n=e.target
16630
16630
  ;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),
16631
16631
  _.current=null,S.current=null,t){const n=e.currentTarget,r={originalEvent:e,
16632
- delta:t};$Y(t,z.swipeDirection,z.swipeThreshold)?FY("toast.swipeEnd",w,r,{
16633
- discrete:!0}):FY("toast.swipeCancel",y,r,{discrete:!0
16632
+ delta:t};BY(t,z.swipeDirection,z.swipeThreshold)?$Y("toast.swipeEnd",w,r,{
16633
+ discrete:!0}):$Y("toast.swipeCancel",y,r,{discrete:!0
16634
16634
  }),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))
16635
- })))),z.viewport))):null}));VY.propTypes={type(e){
16635
+ })))),z.viewport))):null}));TY.propTypes={type(e){
16636
16636
  if(e.type&&!["foreground","background"].includes(e.type)){
16637
- return new Error(`Invalid prop \`type\` supplied to \`${DY}\`. Expected \`foreground | background\`.`)
16638
- }return null}};const TY=t=>{
16639
- const{__scopeToast:n,children:r,...o}=t,a=zY(DY,n),[i,l]=e.useState(!1),[c,s]=e.useState(!1)
16637
+ return new Error(`Invalid prop \`type\` supplied to \`${kY}\`. Expected \`foreground | background\`.`)
16638
+ }return null}};const RY=t=>{
16639
+ const{__scopeToast:n,children:r,...o}=t,a=MY(kY,n),[i,l]=e.useState(!1),[c,s]=e.useState(!1)
16640
16640
  ;return function(e=(()=>{})){const t=g(e);C((()=>{let e=0,n=0
16641
16641
  ;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),
16642
16642
  ()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
16643
16643
  }((()=>l(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
16644
16644
  ;return()=>window.clearTimeout(e)}),[]),c?null:e.createElement(Uu,{asChild:!0
16645
16645
  },e.createElement(Wu,o,i&&e.createElement(e.Fragment,null,a.label," ",r)))
16646
- },RY=e.forwardRef(((t,n)=>{const{__scopeToast:r,...o}=t
16647
- ;return e.createElement(b.div,a({},o,{ref:n}))})),PY=e.forwardRef(((t,n)=>{
16648
- const{altText:r,...o}=t;return r?e.createElement(OY,{altText:r,asChild:!0
16649
- },e.createElement(IY,a({},o,{ref:n}))):null}));PY.propTypes={
16646
+ },PY=e.forwardRef(((t,n)=>{const{__scopeToast:r,...o}=t
16647
+ ;return e.createElement(b.div,a({},o,{ref:n}))})),IY=e.forwardRef(((t,n)=>{
16648
+ const{altText:r,...o}=t;return r?e.createElement(NY,{altText:r,asChild:!0
16649
+ },e.createElement(OY,a({},o,{ref:n}))):null}));IY.propTypes={
16650
16650
  altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")
16651
- };const IY=e.forwardRef(((t,n)=>{
16652
- const{__scopeToast:r,...o}=t,i=LY("ToastClose",r);return e.createElement(OY,{
16651
+ };const OY=e.forwardRef(((t,n)=>{
16652
+ const{__scopeToast:r,...o}=t,i=VY("ToastClose",r);return e.createElement(NY,{
16653
16653
  asChild:!0},e.createElement(b.button,a({type:"button"},o,{ref:n,
16654
- onClick:v(t.onClick,i.onClose)})))})),OY=e.forwardRef(((t,n)=>{
16654
+ onClick:v(t.onClick,i.onClose)})))})),NY=e.forwardRef(((t,n)=>{
16655
16655
  const{__scopeToast:r,altText:o,...i}=t;return e.createElement(b.div,a({
16656
16656
  "data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0
16657
- },i,{ref:n}))}));function NY(e){const t=[]
16657
+ },i,{ref:n}))}));function FY(e){const t=[]
16658
16658
  ;return Array.from(e.childNodes).forEach((e=>{
16659
16659
  if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){
16660
16660
  return e.nodeType===e.ELEMENT_NODE}(e)){
16661
16661
  const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude
16662
16662
  ;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)
16663
- }else t.push(...NY(e))}})),t}function FY(e,t,n,{discrete:r}){
16663
+ }else t.push(...FY(e))}})),t}function $Y(e,t,n,{discrete:r}){
16664
16664
  const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,
16665
16665
  cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0
16666
- }),r?w(o,a):o.dispatchEvent(a)}const $Y=(e,t,n=0)=>{
16666
+ }),r?w(o,a):o.dispatchEvent(a)}const BY=(e,t,n=0)=>{
16667
16667
  const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o
16668
- ;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function BY(e){
16668
+ ;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function jY(e){
16669
16669
  const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
16670
16670
  acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
16671
16671
  ;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
16672
- }});for(;n.nextNode();)t.push(n.currentNode);return t}function jY(e){
16672
+ }});for(;n.nextNode();)t.push(n.currentNode);return t}function UY(e){
16673
16673
  const t=document.activeElement
16674
16674
  ;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}
16675
- const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
16675
+ const YY=HY,WY=AY,GY=PY,KY=IY,qY=yr(xY)``;yr.div`
16676
16676
  border-top: 4px solid;
16677
- `;const qY=yr(YY)`
16677
+ `;const ZY=yr(WY)`
16678
16678
  direction: ${({theme:e})=>e.direction};
16679
16679
  &[data-state='open']:nth-last-of-type(1) {
16680
16680
  z-index: ${({theme:e})=>(e.zIndex.snackbar||xo.snackbar)-1};
@@ -16721,7 +16721,7 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
16721
16721
 
16722
16722
  width: 400px;
16723
16723
  transition: all 0.3s ease-in-out;
16724
- `,ZY=yr(WY)`
16724
+ `,XY=yr(GY)`
16725
16725
  text-align: ${({theme:e})=>"ltr"===e.direction?"left":"right"};
16726
16726
  font-family: ${({theme:e})=>e.typography.fontFamily};
16727
16727
  font-size: ${({theme:e})=>e.typography.primary.fontSize};
@@ -16729,7 +16729,7 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
16729
16729
  line-height: ${({theme:e})=>e.typography.primary.lineHeight};
16730
16730
  color: ${({theme:e})=>e.colors.text.primary};
16731
16731
  flex: 1;
16732
- `,XY=yr(GY)``,JY=yr(UY)`
16732
+ `,JY=yr(KY)``,QY=yr(YY)`
16733
16733
  position: fixed;
16734
16734
  top: 16px;
16735
16735
  display: flex;
@@ -16761,13 +16761,13 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
16761
16761
  animation-play-state: paused;
16762
16762
  }
16763
16763
  }
16764
- `,QY=yr.div`
16764
+ `,eW=yr.div`
16765
16765
  direction: ${({theme:e})=>e.direction};
16766
16766
  display: flex;
16767
16767
  align-items: center;
16768
16768
  padding: 16px;
16769
16769
  gap: 8px;
16770
- `,eW=yr.div`
16770
+ `,tW=yr.div`
16771
16771
  height: 4px;
16772
16772
  background-color: ${({theme:e,toastType:t="success"})=>e.colors.text.semantic[t]};
16773
16773
  border-radius: 4px 4px 0 0;
@@ -16778,20 +16778,20 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
16778
16778
  ${"focus"===t?"running":"paused"};
16779
16779
  will-change: width;
16780
16780
  `}
16781
- `,tW=()=>{const[t,n]=e.useState(!1);return e.useEffect((()=>{
16781
+ `,nW=()=>{const[t,n]=e.useState(!1);return e.useEffect((()=>{
16782
16782
  n(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
16783
- }),[]),{isBrowser:t,isServer:!t}},nW=e=>{const t=document.createElement("div")
16784
- ;return t.setAttribute("id",e),t},rW=t=>{const n=cr()
16783
+ }),[]),{isBrowser:t,isServer:!t}},rW=e=>{const t=document.createElement("div")
16784
+ ;return t.setAttribute("id",e),t},oW=t=>{const n=cr()
16785
16785
  ;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
16786
16786
  fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
16787
16787
  fillRule:"evenodd",clipRule:"evenodd",
16788
16788
  d:"M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 5.87827 15.1571 3.84344 13.6569 2.34315C12.1566 0.842855 10.1217 0 8 0ZM8 14.6C4.35492 14.6 1.4 11.6451 1.4 8C1.4 4.35492 4.35492 1.4 8 1.4C11.6451 1.4 14.6 4.35492 14.6 8C14.5945 11.6428 11.6428 14.5945 8 14.6ZM9 8L10.82 6.17L10.83 6.18C11.1061 5.90386 11.1061 5.45614 10.83 5.18C10.5539 4.90386 10.1061 4.90386 9.83 5.18L8 7L6.18 5.17C5.90386 4.89386 5.45614 4.89386 5.18 5.17C4.90386 5.44614 4.90386 5.89386 5.18 6.17L7 8L5.17 9.82C4.89386 10.0961 4.89386 10.5439 5.17 10.82C5.44614 11.0961 5.89386 11.0961 6.17 10.82L8 9L9.83 10.83C10.1061 11.1061 10.5539 11.1061 10.83 10.83C11.1061 10.5539 11.1061 10.1061 10.83 9.83L9 8Z",
16789
- fill:n.colors.text.semantic.error}))},oW=t=>{const n=cr()
16789
+ fill:n.colors.text.semantic.error}))},aW=t=>{const n=cr()
16790
16790
  ;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
16791
16791
  fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
16792
16792
  fillRule:"evenodd",clipRule:"evenodd",
16793
16793
  d:"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84286 12.1217 2 10 2ZM9.99999 16.6C6.35491 16.6 3.39999 13.6451 3.39999 10C3.39999 6.35493 6.35491 3.40001 9.99999 3.40001C13.6451 3.40001 16.6 6.35493 16.6 10C16.5945 13.6428 13.6428 16.5945 9.99999 16.6ZM14.0045 7.83C14.0045 7.64099 13.927 7.46025 13.79 7.33C13.5144 7.06199 13.0756 7.06199 12.8 7.33L9 11.18L7.21 9.41C7.03137 9.23136 6.771 9.1616 6.52699 9.22698C6.28297 9.29237 6.09237 9.48297 6.02699 9.72698C5.9616 9.971 6.03137 10.2314 6.21 10.41L8.45 12.67C8.7268 12.9446 9.1732 12.9446 9.45 12.67L13.79 8.33C13.927 8.19974 14.0045 8.01901 14.0045 7.83Z",
16794
- fill:n.colors.text.semantic.success}))},aW=t=>{const n=cr()
16794
+ fill:n.colors.text.semantic.success}))},iW=t=>{const n=cr()
16795
16795
  ;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
16796
16796
  fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
16797
16797
  fillRule:"evenodd",clipRule:"evenodd",
@@ -16800,34 +16800,34 @@ fill:n.colors.text.semantic.warning}),e.createElement("path",{
16800
16800
  fillRule:"evenodd",clipRule:"evenodd",
16801
16801
  d:"M9 12.8668C9 12.3145 9.44771 11.8668 10 11.8668C10.5523 11.8668 11 12.3145 11 12.8668C11 13.4191 10.5523 13.8668 10 13.8668C9.44771 13.8668 9 13.4191 9 12.8668ZM9.99951 10.9268C10.387 10.9268 10.7012 10.6127 10.7012 10.2252V6.48847C10.7012 6.10096 10.387 5.78681 9.99951 5.78681C9.612 5.78681 9.29785 6.10096 9.29785 6.48847V10.2252C9.29785 10.6127 9.612 10.9268 9.99951 10.9268Z",
16802
16802
  fill:n.colors.text.semantic.warning}))
16803
- },iW=({index:t,customIcon:n,id:r,fixed:o,text:a,showProgress:i=!1,delay:l=3e3,type:c="info"})=>{
16804
- const s=cr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:p}=e.useContext(fY)??{},f=e.useRef(null),[m,v]=e.useState(!1)
16803
+ },lW=({index:t,customIcon:n,id:r,fixed:o,text:a,showProgress:i=!1,delay:l=3e3,type:c="info"})=>{
16804
+ const s=cr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:p}=e.useContext(mY)??{},f=e.useRef(null),[m,v]=e.useState(!1)
16805
16805
  ;e.useEffect((()=>{const e=window.setTimeout((()=>{
16806
16806
  o||m&&p||h||u((e=>e.filter((e=>e.id!==r))))}),l);return()=>clearTimeout(e)
16807
- }),[l,o,r,u,m,p,h]);const g={success:e.createElement(oW,{
16808
- fill:s.colors.text.semantic.success}),warning:e.createElement(aW,{
16809
- fill:s.colors.text.semantic.warning}),error:e.createElement(rW,{
16807
+ }),[l,o,r,u,m,p,h]);const g={success:e.createElement(aW,{
16808
+ fill:s.colors.text.semantic.success}),warning:e.createElement(iW,{
16809
+ fill:s.colors.text.semantic.warning}),error:e.createElement(oW,{
16810
16810
  fill:s.colors.text.semantic.error}),info:e.createElement(lo,{
16811
16811
  fill:s.colors.text.semantic.info})}
16812
- ;return e.createElement(e.Fragment,null,e.createElement(qY,{role:"alert",
16812
+ ;return e.createElement(e.Fragment,null,e.createElement(ZY,{role:"alert",
16813
16813
  "aria-live":"polite",ref:f,toastType:c,dir:s.direction,style:o||!i?{
16814
16814
  borderTop:"none"}:void 0,toastIndex:t,
16815
16815
  className:`ToastRoot Toast-${r??""}`.trim(),duration:o?1/0:l,
16816
16816
  onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
16817
- e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(eW,{
16817
+ e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(tW,{
16818
16818
  className:"ToastProgress",windowState:d,toastType:c,delay:!o&&i?l:"none"
16819
- }),e.createElement(QY,null,n??g[c],e.createElement(ZY,{className:"ToastTitle"
16820
- },a),e.createElement(XY,{className:"ToastAction",asChild:!0,altText:"Close",
16819
+ }),e.createElement(eW,null,n??g[c],e.createElement(XY,{className:"ToastTitle"
16820
+ },a),e.createElement(JY,{className:"ToastAction",asChild:!0,altText:"Close",
16821
16821
  "aria-label":"Close"},e.createElement(Oo,null,e.createElement(no,{
16822
- fill:s.colors.text.primary}))))))},lW=()=>{const n=((t=pj())=>{
16823
- const n=`ui-${t}`,{isBrowser:r}=tW(),[o,a]=e.useState(r?nW(n):null)
16824
- ;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||nW(n)
16822
+ fill:s.colors.text.primary}))))))},cW=()=>{const n=((t=pj())=>{
16823
+ const n=`ui-${t}`,{isBrowser:r}=nW(),[o,a]=e.useState(r?rW(n):null)
16824
+ ;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||rW(n)
16825
16825
  ;e||document.body.appendChild(t),a(t)}),[]),o
16826
- })("toast"),{toasts:r}=e.useContext(fY)??{}
16827
- ;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(KY,{
16828
- swipeDirection:"up"},r.map(((t,n)=>e.createElement(iW,{key:`Toast-${t.id}`,...t,
16829
- index:n}))),e.createElement(JY,{className:"ToastViewport"}))),n):null
16830
- },cW=({children:t,retainOnHover:n=!0,retainOnWindowBlur:r=!1})=>{
16826
+ })("toast"),{toasts:r}=e.useContext(mY)??{}
16827
+ ;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(qY,{
16828
+ swipeDirection:"up"},r.map(((t,n)=>e.createElement(lW,{key:`Toast-${t.id}`,...t,
16829
+ index:n}))),e.createElement(QY,{className:"ToastViewport"}))),n):null
16830
+ },sW=({children:t,retainOnHover:n=!0,retainOnWindowBlur:r=!1})=>{
16831
16831
  const[o,a]=e.useState("focus"),[i,l]=e.useState([]),c=e.useCallback((e=>{
16832
16832
  l((t=>[{...e,id:pj(),state:"open"},...t]))}),[]),s=e.useCallback((e=>{
16833
16833
  l((t=>e(t)))}),[]),u=e.useMemo((()=>({toasts:i,addToast:c,windowState:o,
@@ -16836,25 +16836,25 @@ updateToasts:s,retainOnWindowBlur:r,retainOnHover:n})),[i,c,o,s,n,r])
16836
16836
  a("focus")}),!1),window.addEventListener("blur",(()=>{a("blur")}),!1)),()=>{
16837
16837
  r&&(window.removeEventListener("focus",(()=>{})),
16838
16838
  window.removeEventListener("blur",(()=>{})))
16839
- })),[r]),e.createElement(fY.Provider,{value:u},e.createElement(lW,null),t)}
16840
- ;var sW=wr`
16839
+ })),[r]),e.createElement(mY.Provider,{value:u},e.createElement(cW,null),t)}
16840
+ ;var uW=wr`
16841
16841
  * {
16842
16842
  box-sizing: border-box;
16843
16843
  /* direction: ${({theme:e})=>e.direction}; */
16844
16844
  }
16845
- `;const uW={sm:{width:6,height:4.3},md:{width:8,height:5.73},lg:{width:10,
16846
- height:7.16}},dW={sm:{width:4.5,height:4.5},md:{width:6,height:6},lg:{width:8,
16847
- height:8}},hW="Switch",[pW,fW]=i(hW),[mW,vW]=pW(hW),gW=e.forwardRef(((t,n)=>{
16845
+ `;const dW={sm:{width:6,height:4.3},md:{width:8,height:5.73},lg:{width:10,
16846
+ height:7.16}},hW={sm:{width:4.5,height:4.5},md:{width:6,height:6},lg:{width:8,
16847
+ height:8}},pW="Switch",[fW,mW]=i(pW),[vW,gW]=fW(pW),yW=e.forwardRef(((t,n)=>{
16848
16848
  const{__scopeSwitch:r,name:o,checked:i,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:h,...p}=t,[f,m]=e.useState(null),g=s(n,(e=>m(e))),w=e.useRef(!1),C=!f||Boolean(f.closest("form")),[z=!1,M]=y({
16849
- prop:i,defaultProp:l,onChange:h});return e.createElement(mW,{scope:r,checked:z,
16849
+ prop:i,defaultProp:l,onChange:h});return e.createElement(vW,{scope:r,checked:z,
16850
16850
  disabled:u},e.createElement(b.button,a({type:"button",role:"switch",
16851
- "aria-checked":z,"aria-required":c,"data-state":bW(z),
16851
+ "aria-checked":z,"aria-required":c,"data-state":wW(z),
16852
16852
  "data-disabled":u?"":void 0,disabled:u,value:d},p,{ref:g,
16853
16853
  onClick:v(t.onClick,(e=>{
16854
16854
  M((e=>!e)),C&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())
16855
- }))})),C&&e.createElement(yW,{control:f,bubbles:!w.current,name:o,value:d,
16855
+ }))})),C&&e.createElement(bW,{control:f,bubbles:!w.current,name:o,value:d,
16856
16856
  checked:z,required:c,disabled:u,style:{transform:"translateX(-100%)"}}))
16857
- })),yW=t=>{
16857
+ })),bW=t=>{
16858
16858
  const{control:n,checked:r,bubbles:o=!0,...i}=t,l=e.useRef(null),c=Yu(r),s=Mu(n)
16859
16859
  ;return e.useEffect((()=>{
16860
16860
  const e=l.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set
@@ -16862,21 +16862,21 @@ const e=l.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDes
16862
16862
  ;n.call(e,r),e.dispatchEvent(t)}}),[c,r,o]),e.createElement("input",a({
16863
16863
  type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:l,style:{
16864
16864
  ...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))}
16865
- ;function bW(e){return e?"checked":"unchecked"}const wW=e.forwardRef(((t,n)=>{
16866
- const{__scopeSwitch:r,...o}=t,i=vW("SwitchThumb",r)
16867
- ;return e.createElement(b.span,a({"data-state":bW(i.checked),
16868
- "data-disabled":i.disabled?"":void 0},o,{ref:n}))})),CW={sm:{width:28,height:12,
16865
+ ;function wW(e){return e?"checked":"unchecked"}const CW=e.forwardRef(((t,n)=>{
16866
+ const{__scopeSwitch:r,...o}=t,i=gW("SwitchThumb",r)
16867
+ ;return e.createElement(b.span,a({"data-state":wW(i.checked),
16868
+ "data-disabled":i.disabled?"":void 0},o,{ref:n}))})),zW={sm:{width:28,height:12,
16869
16869
  thumb:16,offTransform:[-2,-2],onTransform:[14,-2]},md:{width:36,height:16,
16870
16870
  thumb:20,offTransform:[-2,-2],onTransform:[18,-2]},lg:{width:44,height:20,
16871
- thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},zW=yr(gW)`
16871
+ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},MW=yr(yW)`
16872
16872
  margin: 0;
16873
16873
  padding: 0;
16874
16874
  outline: 0;
16875
16875
  border: none;
16876
16876
  position: relative;
16877
- width: ${({size:e})=>CW[e].width}px;
16878
- height: ${({size:e})=>CW[e].height}px;
16879
- border-radius: ${({size:e})=>CW[e].height/2}px;
16877
+ width: ${({size:e})=>zW[e].width}px;
16878
+ height: ${({size:e})=>zW[e].height}px;
16879
+ border-radius: ${({size:e})=>zW[e].height/2}px;
16880
16880
  &[data-disabled] {
16881
16881
  opacity: 0.5;
16882
16882
  }
@@ -16896,16 +16896,16 @@ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},zW=yr(gW)`
16896
16896
  }
16897
16897
  }
16898
16898
  }
16899
- `,MW=yr(wW)`
16899
+ `,xW=yr(CW)`
16900
16900
  display: grid;
16901
16901
  place-content: center;
16902
- width: ${({size:e})=>CW[e].thumb}px;
16903
- height: ${({size:e})=>CW[e].thumb}px;
16902
+ width: ${({size:e})=>zW[e].thumb}px;
16903
+ height: ${({size:e})=>zW[e].thumb}px;
16904
16904
  border-radius: 50%;
16905
16905
  background-color: ${({theme:e})=>e.colors.common.white};
16906
16906
  transition: transform 100ms;
16907
16907
  transform: translate(
16908
- ${({theme:e,size:t})=>("ltr"===e.direction?CW[t].offTransform:CW[t].onTransform).map((e=>`${e}px`)).join(",")}
16908
+ ${({theme:e,size:t})=>("ltr"===e.direction?zW[t].offTransform:zW[t].onTransform).map((e=>`${e}px`)).join(",")}
16909
16909
  );
16910
16910
  will-change: transform;
16911
16911
  overflow: hidden;
@@ -16927,15 +16927,15 @@ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},zW=yr(gW)`
16927
16927
  }
16928
16928
  &[data-state='checked'] {
16929
16929
  transform: translate(
16930
- ${({theme:e,size:t})=>("ltr"===e.direction?CW[t].onTransform:CW[t].offTransform).map((e=>`${e}px`)).join(",")}
16930
+ ${({theme:e,size:t})=>("ltr"===e.direction?zW[t].onTransform:zW[t].offTransform).map((e=>`${e}px`)).join(",")}
16931
16931
  );
16932
16932
  border: 1px solid ${({theme:e})=>e.colors.common.accent};
16933
16933
  svg.toggle-off {
16934
16934
  display: none;
16935
16935
  }
16936
16936
  }
16937
- `,[xW,EW]=i("Tooltip",[Su]),SW=Su(),_W=700,HW="tooltip.open",[DW,kW]=xW("TooltipProvider"),AW="Tooltip",[LW,VW]=xW(AW),TW="TooltipTrigger",RW=e.forwardRef(((t,n)=>{
16938
- const{__scopeTooltip:r,...o}=t,i=VW(TW,r),l=kW(TW,r),c=SW(r),u=s(n,e.useRef(null),i.onTriggerChange),d=e.useRef(!1),h=e.useRef(!1),p=e.useCallback((()=>d.current=!1),[])
16937
+ `,[EW,SW]=i("Tooltip",[Su]),_W=Su(),HW=700,DW="tooltip.open",[kW,AW]=EW("TooltipProvider"),LW="Tooltip",[VW,TW]=EW(LW),RW="TooltipTrigger",PW=e.forwardRef(((t,n)=>{
16938
+ const{__scopeTooltip:r,...o}=t,i=TW(RW,r),l=AW(RW,r),c=_W(r),u=s(n,e.useRef(null),i.onTriggerChange),d=e.useRef(!1),h=e.useRef(!1),p=e.useCallback((()=>d.current=!1),[])
16939
16939
  ;return e.useEffect((()=>()=>document.removeEventListener("pointerup",p)),[p]),
16940
16940
  e.createElement($u,a({asChild:!0},c),e.createElement(b.button,a({
16941
16941
  "aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{
@@ -16945,13 +16945,13 @@ h.current=!0))})),onPointerLeave:v(t.onPointerLeave,(()=>{
16945
16945
  i.onTriggerLeave(),h.current=!1})),onPointerDown:v(t.onPointerDown,(()=>{
16946
16946
  d.current=!0,document.addEventListener("pointerup",p,{once:!0})})),
16947
16947
  onFocus:v(t.onFocus,(()=>{d.current||i.onOpen()})),onBlur:v(t.onBlur,i.onClose),
16948
- onClick:v(t.onClick,i.onClose)})))})),PW="TooltipPortal",[IW,OW]=xW(PW,{
16949
- forceMount:void 0}),NW="TooltipContent",FW=e.forwardRef(((t,n)=>{
16950
- const r=OW(NW,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...l}=t,c=VW(NW,t.__scopeTooltip)
16948
+ onClick:v(t.onClick,i.onClose)})))})),IW="TooltipPortal",[OW,NW]=EW(IW,{
16949
+ forceMount:void 0}),FW="TooltipContent",$W=e.forwardRef(((t,n)=>{
16950
+ const r=NW(FW,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...l}=t,c=TW(FW,t.__scopeTooltip)
16951
16951
  ;return e.createElement(z,{present:o||c.open
16952
- },c.disableHoverableContent?e.createElement(UW,a({side:i},l,{ref:n
16953
- })):e.createElement($W,a({side:i},l,{ref:n})))})),$W=e.forwardRef(((t,n)=>{
16954
- const r=VW(NW,t.__scopeTooltip),o=kW(NW,t.__scopeTooltip),i=e.useRef(null),l=s(n,i),[c,u]=e.useState(null),{trigger:d,onClose:h}=r,p=i.current,{onPointerInTransitChange:f}=o,m=e.useCallback((()=>{
16952
+ },c.disableHoverableContent?e.createElement(YW,a({side:i},l,{ref:n
16953
+ })):e.createElement(BW,a({side:i},l,{ref:n})))})),BW=e.forwardRef(((t,n)=>{
16954
+ const r=TW(FW,t.__scopeTooltip),o=AW(FW,t.__scopeTooltip),i=e.useRef(null),l=s(n,i),[c,u]=e.useState(null),{trigger:d,onClose:h}=r,p=i.current,{onPointerInTransitChange:f}=o,m=e.useCallback((()=>{
16955
16955
  u(null),f(!1)}),[f]),v=e.useCallback(((e,t)=>{const n=e.currentTarget,r={
16956
16956
  x:e.clientX,y:e.clientY},o=function(e,t){
16957
16957
  const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x)
@@ -16988,11 +16988,11 @@ const i=t[e].x,l=t[e].y,c=t[a].x,s=t[a].y
16988
16988
  ;l>r!=s>r&&n<(c-i)*(r-l)/(s-l)+i&&(o=!o)}return o}(n,c);r?m():o&&(m(),h())}
16989
16989
  ;return document.addEventListener("pointermove",e),
16990
16990
  ()=>document.removeEventListener("pointermove",e)}
16991
- }),[d,p,c,h,m]),e.createElement(UW,a({},t,{ref:l}))})),[BW,jW]=xW(AW,{
16992
- isInside:!1}),UW=e.forwardRef(((t,n)=>{
16993
- const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:c,...s}=t,u=VW(NW,r),d=SW(r),{onClose:p}=u
16994
- ;return e.useEffect((()=>(document.addEventListener(HW,p),
16995
- ()=>document.removeEventListener(HW,p))),[p]),e.useEffect((()=>{if(u.trigger){
16991
+ }),[d,p,c,h,m]),e.createElement(YW,a({},t,{ref:l}))})),[jW,UW]=EW(LW,{
16992
+ isInside:!1}),YW=e.forwardRef(((t,n)=>{
16993
+ const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:c,...s}=t,u=TW(FW,r),d=_W(r),{onClose:p}=u
16994
+ ;return e.useEffect((()=>(document.addEventListener(DW,p),
16995
+ ()=>document.removeEventListener(DW,p))),[p]),e.useEffect((()=>{if(u.trigger){
16996
16996
  const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&p()}
16997
16997
  ;return window.addEventListener("scroll",e,{capture:!0
16998
16998
  }),()=>window.removeEventListener("scroll",e,{capture:!0})}
@@ -17005,19 +17005,19 @@ style:{...s.style,
17005
17005
  "--radix-tooltip-content-available-height":"var(--radix-popper-available-height)",
17006
17006
  "--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
17007
17007
  "--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}
17008
- }),e.createElement(h,null,o),e.createElement(BW,{scope:r,isInside:!0
17009
- },e.createElement(Gu,{id:u.contentId,role:"tooltip"},i||o))))}));const YW=t=>{
17010
- const{__scopeTooltip:n,delayDuration:r=_W,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0)
17008
+ }),e.createElement(h,null,o),e.createElement(jW,{scope:r,isInside:!0
17009
+ },e.createElement(Gu,{id:u.contentId,role:"tooltip"},i||o))))}));const WW=t=>{
17010
+ const{__scopeTooltip:n,delayDuration:r=HW,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0)
17011
17011
  ;return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)
17012
- }),[]),e.createElement(DW,{scope:n,isOpenDelayed:l,delayDuration:r,
17012
+ }),[]),e.createElement(kW,{scope:n,isOpenDelayed:l,delayDuration:r,
17013
17013
  onOpen:e.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),
17014
17014
  onClose:e.useCallback((()=>{
17015
17015
  window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)
17016
17016
  }),[o]),isPointerInTransitRef:s,onPointerInTransitChange:e.useCallback((e=>{
17017
- s.current=e}),[]),disableHoverableContent:a},i)},WW=t=>{
17018
- const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=kW(AW,t.__scopeTooltip),u=SW(n),[d,h]=e.useState(null),p=S(),f=e.useRef(0),m=null!=l?l:s.disableHoverableContent,v=null!=c?c:s.delayDuration,g=e.useRef(!1),[b=!1,w]=y({
17017
+ s.current=e}),[]),disableHoverableContent:a},i)},GW=t=>{
17018
+ const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=AW(LW,t.__scopeTooltip),u=_W(n),[d,h]=e.useState(null),p=S(),f=e.useRef(0),m=null!=l?l:s.disableHoverableContent,v=null!=c?c:s.delayDuration,g=e.useRef(!1),[b=!1,w]=y({
17019
17019
  prop:o,defaultProp:a,onChange:e=>{
17020
- e?(s.onOpen(),document.dispatchEvent(new CustomEvent(HW))):s.onClose(),
17020
+ e?(s.onOpen(),document.dispatchEvent(new CustomEvent(DW))):s.onClose(),
17021
17021
  null==i||i(e)}
17022
17022
  }),C=e.useMemo((()=>b?g.current?"delayed-open":"instant-open":"closed"),[b]),z=e.useCallback((()=>{
17023
17023
  window.clearTimeout(f.current),g.current=!1,w(!0)}),[w]),M=e.useCallback((()=>{
@@ -17025,19 +17025,19 @@ window.clearTimeout(f.current),w(!1)}),[w]),x=e.useCallback((()=>{
17025
17025
  window.clearTimeout(f.current),f.current=window.setTimeout((()=>{
17026
17026
  g.current=!0,w(!0)}),v)}),[v,w])
17027
17027
  ;return e.useEffect((()=>()=>window.clearTimeout(f.current)),[]),
17028
- e.createElement(Fu,u,e.createElement(LW,{scope:n,contentId:p,open:b,
17028
+ e.createElement(Fu,u,e.createElement(VW,{scope:n,contentId:p,open:b,
17029
17029
  stateAttribute:C,trigger:d,onTriggerChange:h,onTriggerEnter:e.useCallback((()=>{
17030
17030
  s.isOpenDelayed?x():z()}),[s.isOpenDelayed,x,z]),
17031
17031
  onTriggerLeave:e.useCallback((()=>{m?M():window.clearTimeout(f.current)
17032
- }),[M,m]),onOpen:z,onClose:M,disableHoverableContent:m},r))},GW=RW,KW=t=>{
17033
- const{__scopeTooltip:n,forceMount:r,children:o,container:a}=t,i=VW(PW,n)
17034
- ;return e.createElement(IW,{scope:n,forceMount:r},e.createElement(z,{
17032
+ }),[M,m]),onOpen:z,onClose:M,disableHoverableContent:m},r))},KW=PW,qW=t=>{
17033
+ const{__scopeTooltip:n,forceMount:r,children:o,container:a}=t,i=TW(IW,n)
17034
+ ;return e.createElement(OW,{scope:n,forceMount:r},e.createElement(z,{
17035
17035
  present:r||i.open},e.createElement(Uu,{asChild:!0,container:a},o)))
17036
- },qW=FW,ZW=yr(e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=SW(r)
17037
- ;return jW("TooltipArrow",r).isInside?null:e.createElement(ju,a({},i,o,{ref:n}))
17036
+ },ZW=$W,XW=yr(e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=_W(r)
17037
+ ;return UW("TooltipArrow",r).isInside?null:e.createElement(ju,a({},i,o,{ref:n}))
17038
17038
  })))`
17039
17039
  fill: ${({theme:e})=>e.colors.fill.inverse};
17040
- `,XW=yr(qW)`
17040
+ `,JW=yr(ZW)`
17041
17041
  font-family: ${({theme:e})=>e.typography.fontFamily};
17042
17042
  font-size: ${({theme:e})=>e.typography.secondary.fontSize};
17043
17043
  font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
@@ -17069,9 +17069,9 @@ present:r||i.open},e.createElement(Uu,{asChild:!0,container:a},o)))
17069
17069
  &[data-state='closed'] {
17070
17070
  animation-name: ${xr};
17071
17071
  }
17072
- `,JW=yr(YW)``,QW=yr(WW)``,eG=yr(GW)`
17072
+ `,QW=yr(WW)``,eG=yr(GW)``,tG=yr(KW)`
17073
17073
  color: inherit;
17074
- `,tG=yr(KW)``;var nG=wr`
17074
+ `,nG=yr(qW)``;var rG=wr`
17075
17075
 
17076
17076
  div:has( > div[data-tooltip-content]){
17077
17077
  z-index: ${({theme:e})=>e.zIndex.tooltip||xo.tooltip} !important;
@@ -17081,10 +17081,10 @@ div:has( > div[data-popover-content]){
17081
17081
  z-index: ${({theme:e})=>e.zIndex.popover||xo.popover} !important;
17082
17082
  }
17083
17083
 
17084
- `,rG=Object.freeze({__proto__:null,allPathsLoader:function(e,t){
17084
+ `,oG=Object.freeze({__proto__:null,allPathsLoader:function(e,t){
17085
17085
  return Ce(void 0,void 0,void 0,(function(){return ze(this,(function(n){
17086
17086
  switch(n.label){case 0:return[4,Promise.resolve().then((function(){return n_}))]
17087
- ;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),oG=Object.freeze({
17087
+ ;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),aG=Object.freeze({
17088
17088
  __proto__:null,splitPathsBySizeLoader:function(e,t){
17089
17089
  return Ce(void 0,void 0,void 0,(function(){var n,r;return ze(this,(function(o){
17090
17090
  switch(o.label){case 0:
@@ -17271,7 +17271,7 @@ placement:l,dir:u.direction},!r&&e.createElement(tb,{asChild:!0
17271
17271
  fill:u.colors.text.inverse}))),n)))
17272
17272
  },exports.Dropdown=ob,exports.DropdownInputItem=Gh,
17273
17273
  exports.DropdownItem=lb,exports.DropdownMenuItem=eg,
17274
- exports.ErrorIcon=ao,exports.FreemiumUIGlobalStyles=nG,
17274
+ exports.ErrorIcon=ao,exports.FreemiumUIGlobalStyles=rG,
17275
17275
  exports.FreshLink=Lo,exports.IconButton=Ao,exports.InfoIcon=lo,exports.Input=_c,
17276
17276
  exports.InputLabel=Do,
17277
17277
  exports.Loader=Vc,exports.Menu=cb,exports.Minus=co,exports.Modal=({isOpen:t,children:n,align:r="center",customClass:o="",fullWidth:a=!1,customModalContentStyles:i={},onDismiss:l,position:c="center",size:s})=>{
@@ -17357,34 +17357,34 @@ disabled:t.disabled,htmlFor:t?.[r]
17357
17357
  },exports.RadixMenuItem=Wv,exports.RadixSelectItem=Oh,
17358
17358
  exports.Reorder=gj,exports.RequiredIndicator=ko,
17359
17359
  exports.StyledLabel=Ho,exports.Table=t=>{
17360
- const{data:n,columns:o,showFooter:a=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,sortingHeading:g,showTableOnLoading:y,hideLoaderOnTopPagination:b,hideActions:w,count:C,pageIndex:z=0,pageSize:M=20,enablePreviousPage:x,enableNextPage:E,hideColumnSettings:S=!0,hideBottomPagination:_,rowMenuOptions:H,onPreviousPageClick:D,enableSorting:k,sortingValues:A,sortingOptions:L,onSortingOptionSelect:V,onNextPageClick:T,disableRowSelect:R,hideSelectAllInTable:P,onSelectAllRows:I,onRowSelect:O,onMenuOptionSelect:N,onRowClick:F,columnOrder:$,setColumnOrder:B,setHiddenColumns:j,hiddenColumns:U,selectedRowIds:Y={},isDisableSortDropdown:W,setSelectedRowIds:G,dataKey:K="id",cellPropGetter:q,setPageIndex:Z,rowPropGetter:X}=t,J=cr(),[Q,ee]=e.useState(!v),te={
17360
+ const{data:n,columns:o,showFooter:a=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,editColumnComponent:p,filterComponent:f,hideTableOnEmpty:m,hideTopPagination:v,hideFilters:g,sortingHeading:y,showTableOnLoading:b,hideLoaderOnTopPagination:w,hideActions:C,count:z,pageIndex:M=0,pageSize:x=20,enablePreviousPage:E,enableNextPage:S,hideColumnSettings:_=!0,hideBottomPagination:H,rowMenuOptions:D,onPreviousPageClick:k,enableSorting:A,sortingValues:L,sortingOptions:V,onSortingOptionSelect:T,onNextPageClick:R,disableRowSelect:P,hideSelectAllInTable:I,onSelectAllRows:O,onRowSelect:N,onMenuOptionSelect:F,onRowClick:$,columnOrder:B,setColumnOrder:j,setHiddenColumns:U,hiddenColumns:Y,selectedRowIds:W={},isDisableSortDropdown:G,setSelectedRowIds:K,dataKey:q="id",cellPropGetter:Z,setPageIndex:X,rowPropGetter:J}=t,Q=cr(),[ee,te]=e.useState(!g),ne={
17361
17361
  accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
17362
- display:e=>e,group:e=>e},ne=-1===C||void 0===C,re=e.useMemo((()=>[...R?[]:[{
17363
- id:"select",header:({table:t})=>P?e.createElement("div",{
17362
+ display:e=>e,group:e=>e},re=-1===z||void 0===z,oe=e.useMemo((()=>[...P?[]:[{
17363
+ id:"select",header:({table:t})=>I?e.createElement("div",{
17364
17364
  className:"table-checkbox-header"}):e.createElement(Ug,{
17365
17365
  className:"table-checkbox",
17366
17366
  checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),
17367
17367
  indeterminate:t.getIsSomeRowsSelected(),onCheckedChange:e=>{
17368
- t.toggleAllPageRowsSelected(!0===e),I?.(!0===e)}}),
17368
+ t.toggleAllPageRowsSelected(!0===e),O?.(!0===e)}}),
17369
17369
  cell:({row:t})=>e.createElement(Ug,{className:"table-checkbox",
17370
17370
  checked:t.getIsSelected(),disabled:!t.getCanSelect(),
17371
17371
  indeterminate:t.getIsSomeSelected(),onCheckedChange:e=>{
17372
- t.toggleSelected(!0===e),O?.(t.original,!0===e)}})
17373
- }],...o.map((e=>te.accessor(e.id,{header:e.Header,id:e.id??e.Header,
17374
- cell:t=>e.accessorFn(t.row.original)}))),...H?[{id:"rowMenuOptions",
17372
+ t.toggleSelected(!0===e),N?.(t.original,!0===e)}})
17373
+ }],...o.map((e=>ne.accessor(e.id,{header:e.Header,id:e.id??e.Header,
17374
+ cell:t=>e.accessorFn(t.row.original)}))),...D?[{id:"rowMenuOptions",
17375
17375
  header:()=>e.createElement("div",{id:"more-actions-header"}),
17376
17376
  cell:({row:t})=>e.createElement(cb,{trigger:e.createElement(so,{
17377
- className:"more-actions",fill:"currentcolor"}),options:H(t.original)||[],
17378
- onSelect:e=>{e.id&&N?.(e.id,t.original)},side:"bottom",align:"end"})
17379
- }]:[]]),[o,R,P,J.colors.text.primary]),oe=e.useMemo((()=>{const e={}
17380
- ;return o.forEach((t=>{e[t.id]=!(U??[]).includes(t.id)})),e
17381
- }),[o,U]),ae=e.useMemo((()=>({pageIndex:z,pageSize:M})),[M,z]),ie=function(e){
17377
+ className:"more-actions",fill:"currentcolor"}),options:D(t.original)||[],
17378
+ onSelect:e=>{e.id&&F?.(e.id,t.original)},side:"bottom",align:"end"})
17379
+ }]:[]]),[o,P,I,Q.colors.text.primary]),ae=e.useMemo((()=>{const e={}
17380
+ ;return o.forEach((t=>{e[t.id]=!(Y??[]).includes(t.id)})),e
17381
+ }),[o,Y]),ie=e.useMemo((()=>({pageIndex:M,pageSize:x})),[x,M]),le=function(e){
17382
17382
  const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e
17383
17383
  },[n]=r.useState((()=>({current:fU(t)
17384
17384
  }))),[o,a]=r.useState((()=>n.current.initialState))
17385
17385
  ;return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},
17386
17386
  onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current
17387
- }({data:n,columns:re,getRowId:e=>e?.[K]??"id",
17387
+ }({data:n,columns:oe,getRowId:e=>e?.[q]??"id",
17388
17388
  getCoreRowModel:e=>zj((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],
17389
17389
  rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[]
17390
17390
  ;for(let c=0;c<t.length;c++){
@@ -17394,79 +17394,80 @@ n.rowsById[s.id]=s,i.push(s),e.options.getSubRows&&(s.originalSubRows=e.options.
17394
17394
  null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,o+1,s)))}
17395
17395
  return i};return n.rows=r(t),n
17396
17396
  }),Mj(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),
17397
- state:{columnOrder:$,columnVisibility:oe,rowSelection:Y,pagination:ae},
17397
+ state:{columnOrder:B,columnVisibility:ae,rowSelection:W,pagination:ie},
17398
17398
  initialState:{columnPinning:{left:["select"],right:["rowMenuOptions"]}},
17399
- onPaginationChange:e=>{let t=ae;t="function"==typeof e?e(ae):e,Z?.(t.pageIndex)
17400
- },onColumnVisibilityChange:e=>{let t=oe
17401
- ;t="function"==typeof e?e(oe):e,j?.(Object.keys(t).filter((e=>!t[e])))},
17402
- onColumnOrderChange:e=>{let t=$??[];t="function"==typeof e?e($??[]):e,B?.(t)},
17403
- onRowSelectionChange:e=>{let t=Y;t="function"==typeof e?e(Y):e,G?.(t)},
17404
- enableRowSelection:!0,manualPagination:!0,rowCount:ne?-1:C
17405
- }),{getPageCount:le,getRowModel:ce,getState:se,getCanNextPage:ue,getCanPreviousPage:de,getPageOptions:he,previousPage:pe,setPageIndex:fe,nextPage:me,lastPage:ve,firstPage:ge}=ie,{rows:ye}=ce(),{pagination:{pageIndex:be,pageSize:we}}=se(),Ce=be*we+(be<le()-1?we:ye.length),ze=ie.getAllColumns().filter((e=>e.getIsVisible())).length+(R?0:1)+(H?1:0),Me=L?.[0].find((e=>e.id===A?.[0]))?.name
17406
- ;return e.createElement(yU,{className:"TableContainer"},!w&&e.createElement(xU,{
17399
+ onPaginationChange:e=>{let t=ie;t="function"==typeof e?e(ie):e,X?.(t.pageIndex)
17400
+ },onColumnVisibilityChange:e=>{let t=ae
17401
+ ;t="function"==typeof e?e(ae):e,U?.(Object.keys(t).filter((e=>!t[e])))},
17402
+ onColumnOrderChange:e=>{let t=B??[];t="function"==typeof e?e(B??[]):e,j?.(t)},
17403
+ onRowSelectionChange:e=>{let t=W;t="function"==typeof e?e(W):e,K?.(t)},
17404
+ enableRowSelection:!0,manualPagination:!0,rowCount:re?-1:z
17405
+ }),{getPageCount:ce,getRowModel:se,getState:ue,getCanNextPage:de,getCanPreviousPage:he,getPageOptions:pe,previousPage:fe,setPageIndex:me,nextPage:ve,lastPage:ge,firstPage:ye}=le,{rows:be}=se(),{pagination:{pageIndex:we,pageSize:Ce}}=ue(),ze=we*Ce+(we<ce()-1?Ce:be.length),Me=le.getAllColumns().filter((e=>e.getIsVisible())).length+(P?0:1)+(D?1:0),xe=V?.[0].find((e=>e.id===L?.[0]))?.name
17406
+ ;return e.createElement(yU,{className:"TableContainer"},!C&&e.createElement(xU,{
17407
17407
  className:"table-actions"
17408
17408
  },d&&e.createElement(e.Fragment,null,d),e.createElement(_U,{
17409
- className:"table-header-component"},h??null),e.createElement(HU,{
17410
- className:"table-header-dropdown-pagination"},k&&e.createElement("div",{
17409
+ className:"table-header-component"},h??null),e.createElement(DU,{
17410
+ className:"table-header-dropdown-pagination"},A&&e.createElement("div",{
17411
17411
  className:"table-heading-dropdown"},e.createElement("div",{
17412
- className:"table-sorting-heading"},`${g}:`)," ",e.createElement(XU,{
17412
+ className:"table-sorting-heading"},`${y}:`)," ",e.createElement(JU,{
17413
17413
  trigger:e.createElement("div",{className:"table-sorting-value-continer"
17414
- },e.createElement("div",null,Me),e.createElement(vU,{fill:"currentcolor"})),
17415
- isDisableSortDropdown:!!W,options:L||[],value:A,onSelect:e=>{V?.(e??[])}
17416
- })),e.createElement(DU,{className:"pagination-actions"
17417
- },!m&&e.createElement(e.Fragment,null,e.createElement(Bo,{variant:"primary",
17418
- className:"pagination-text"},l&&!b?e.createElement(Vc,{size:"small"
17419
- }):e.createElement(e.Fragment,null,n.length>0?`${be*we+1} - ${Ce} of ${ne?""+(ye.length>0?"Many":"-"):C??ye.length??"-"}`:null)),e.createElement(Mm,{
17414
+ },e.createElement("div",null,xe),e.createElement(vU,{fill:"currentcolor"})),
17415
+ isDisableSortDropdown:!!G,options:V||[],value:L,onSelect:e=>{T?.(e??[])}
17416
+ })),e.createElement(HU,{className:"table-edit-column-component"
17417
+ },p??null),e.createElement(kU,{className:"pagination-actions"
17418
+ },!v&&e.createElement(e.Fragment,null,e.createElement(Bo,{variant:"primary",
17419
+ className:"pagination-text"},l&&!w?e.createElement(Vc,{size:"small"
17420
+ }):e.createElement(e.Fragment,null,n.length>0?`${we*Ce+1} - ${ze} of ${re?""+(be.length>0?"Many":"-"):z??be.length??"-"}`:null)),e.createElement(Mm,{
17420
17421
  variant:"secondary",className:"table-pagination-button",onClick:()=>{
17421
- D?.(),ne||pe()},disabled:ne?!x:!de()||l||c},e.createElement(wU,{
17422
- fill:J.colors.text.primary})),e.createElement(Mm,{variant:"secondary",
17423
- className:"table-pagination-button",onClick:()=>{T?.(),ne||me()},
17424
- disabled:ne?!E:!ue()||l||c},e.createElement(CU,{fill:J.colors.text.primary
17425
- }))),!v&&e.createElement(Mm,{variant:"secondary",
17426
- className:"table-pagination-button filter-toggle",onClick:()=>ee(!Q)
17427
- },e.createElement(bU,{style:{transform:Q?"rotateY(180deg)":"rotateY(0deg)"},
17422
+ k?.(),re||fe()},disabled:re?!E:!he()||l||c},e.createElement(wU,{
17423
+ fill:Q.colors.text.primary})),e.createElement(Mm,{variant:"secondary",
17424
+ className:"table-pagination-button",onClick:()=>{R?.(),re||ve()},
17425
+ disabled:re?!S:!de()||l||c},e.createElement(CU,{fill:Q.colors.text.primary
17426
+ }))),!g&&e.createElement(Mm,{variant:"secondary",
17427
+ className:"table-pagination-button filter-toggle",onClick:()=>te(!ee)
17428
+ },e.createElement(bU,{style:{transform:ee?"rotateY(180deg)":"rotateY(0deg)"},
17428
17429
  fill:"currentcolor"
17429
- }))))),e.createElement(zU,null,e.createElement(MU,null,i&&e.createElement(SU,null,i),l&&!y?e.createElement(e.Fragment,null,u):e.createElement(e.Fragment,null,0===ye.length&&f?e.createElement(e.Fragment,null,s):e.createElement(kU,null,e.createElement(AU,null,!S&&e.createElement(MF,{
17430
+ }))))),e.createElement(zU,null,e.createElement(MU,null,i&&e.createElement(SU,null,i),l&&!b?e.createElement(e.Fragment,null,u):e.createElement(e.Fragment,null,0===be.length&&m?e.createElement(e.Fragment,null,s):e.createElement(AU,null,e.createElement(LU,null,!_&&e.createElement(MF,{
17430
17431
  align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(gU,{
17431
- fill:"currentcolor"})},e.createElement(ZU,{table:ie
17432
- })),e.createElement(LU,null,ie.getHeaderGroups().map((t=>e.createElement(RU,{
17433
- key:t.id},t.headers.map((t=>e.createElement(IU,{key:t.id
17434
- },t.isPlaceholder?null:mU(t.column.columnDef.header,t.getContext())))))))),e.createElement(VU,null,c&&!l&&e.createElement(PU,null,e.createElement(Vc,null)),ye.map((t=>e.createElement(RU,{
17435
- key:t.id,$isSelected:t.getIsSelected(),...X?.(t.original)
17436
- },t.getVisibleCells().map((n=>e.createElement(OU,{key:n.id,onClick:()=>{
17437
- F?.(t.original,n.column.columnDef)},...q?.(n)
17438
- },mU(n.column.columnDef.cell,n.getContext())))))))),a&&e.createElement(TU,null,ie.getFooterGroups().map((t=>e.createElement(RU,{
17439
- key:t.id},t.headers.map((t=>e.createElement(IU,{key:t.id
17440
- },t.isPlaceholder?null:mU(t.column.columnDef.footer,t.getContext())))))))),!_&&e.createElement(TU,null,e.createElement(RU,null,e.createElement(IU,{
17441
- colSpan:ze},e.createElement(GU,{className:"table-pagination"
17442
- },e.createElement(Mm,{variant:"secondary",onClick:()=>{ge()},
17443
- disabled:!de()||l||c},"<<"),e.createElement(Mm,{variant:"secondary",
17444
- onClick:()=>{pe()},disabled:!de()||l||c
17445
- },"<"),be+1>2&&e.createElement(e.Fragment,null,e.createElement(Mm,{
17446
- variant:"secondary",onClick:()=>{ge()},disabled:l||c
17447
- },"1"),be+1-3!=0&&e.createElement(Mm,{variant:"secondary",disabled:!0
17448
- },"...")),he().map((t=>[t-2,t-1,t,t+1,t+2].includes(be+1)&&e.createElement(Mm,{
17449
- key:t,variant:"secondary",className:be+1===t+1?"active":"",onClick:()=>{fe?.(t)
17432
+ fill:"currentcolor"})},e.createElement(XU,{table:le
17433
+ })),e.createElement(VU,null,le.getHeaderGroups().map((t=>e.createElement(PU,{
17434
+ key:t.id},t.headers.map((t=>e.createElement(OU,{key:t.id
17435
+ },t.isPlaceholder?null:mU(t.column.columnDef.header,t.getContext())))))))),e.createElement(TU,null,c&&!l&&e.createElement(IU,null,e.createElement(Vc,null)),be.map((t=>e.createElement(PU,{
17436
+ key:t.id,$isSelected:t.getIsSelected(),...J?.(t.original)
17437
+ },t.getVisibleCells().map((n=>e.createElement(NU,{key:n.id,onClick:()=>{
17438
+ $?.(t.original,n.column.columnDef)},...Z?.(n)
17439
+ },mU(n.column.columnDef.cell,n.getContext())))))))),a&&e.createElement(RU,null,le.getFooterGroups().map((t=>e.createElement(PU,{
17440
+ key:t.id},t.headers.map((t=>e.createElement(OU,{key:t.id
17441
+ },t.isPlaceholder?null:mU(t.column.columnDef.footer,t.getContext())))))))),!H&&e.createElement(RU,null,e.createElement(PU,null,e.createElement(OU,{
17442
+ colSpan:Me},e.createElement(KU,{className:"table-pagination"
17443
+ },e.createElement(Mm,{variant:"secondary",onClick:()=>{ye()},
17444
+ disabled:!he()||l||c},"<<"),e.createElement(Mm,{variant:"secondary",
17445
+ onClick:()=>{fe()},disabled:!he()||l||c
17446
+ },"<"),we+1>2&&e.createElement(e.Fragment,null,e.createElement(Mm,{
17447
+ variant:"secondary",onClick:()=>{ye()},disabled:l||c
17448
+ },"1"),we+1-3!=0&&e.createElement(Mm,{variant:"secondary",disabled:!0
17449
+ },"...")),pe().map((t=>[t-2,t-1,t,t+1,t+2].includes(we+1)&&e.createElement(Mm,{
17450
+ key:t,variant:"secondary",className:we+1===t+1?"active":"",onClick:()=>{me?.(t)
17450
17451
  },disabled:l||c
17451
- },t+1))),be+2<Math.ceil(n.length/we)-2&&e.createElement(e.Fragment,null,be+2+3!==Math.ceil(n.length/we)&&e.createElement(Mm,{
17452
+ },t+1))),we+2<Math.ceil(n.length/Ce)-2&&e.createElement(e.Fragment,null,we+2+3!==Math.ceil(n.length/Ce)&&e.createElement(Mm,{
17452
17453
  variant:"secondary",disabled:!0},"..."),e.createElement(Mm,{variant:"secondary",
17453
- onClick:()=>{fe?.(Math.ceil(n.length/we)-1)},disabled:l||c
17454
- },Math.ceil(n.length/we))),e.createElement(Mm,{variant:"secondary",onClick:()=>{
17455
- me()},disabled:!ue()||l||c},">"),e.createElement(Mm,{variant:"secondary",
17456
- onClick:()=>{ve()},disabled:!ue()||l||c
17457
- },">>"))))))))),!v&&Q&&p&&e.createElement(EU,null,p)))
17454
+ onClick:()=>{me?.(Math.ceil(n.length/Ce)-1)},disabled:l||c
17455
+ },Math.ceil(n.length/Ce))),e.createElement(Mm,{variant:"secondary",onClick:()=>{
17456
+ ve()},disabled:!de()||l||c},">"),e.createElement(Mm,{variant:"secondary",
17457
+ onClick:()=>{ge()},disabled:!de()||l||c
17458
+ },">>"))))))))),!g&&ee&&f&&e.createElement(EU,null,f)))
17458
17459
  },exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",disabledAccessor:o="disabled",onChange:a,defaultValue:i,label:l,renderTabsContent:c,value:s})=>{
17459
- const u=cr();return e.createElement(uY,{className:"TabsRoot",value:s,
17460
- defaultValue:i,onValueChange:a,dir:u.direction},e.createElement(hY,{
17461
- className:"TabsList","aria-label":l},t.map((t=>e.createElement(pY,{
17460
+ const u=cr();return e.createElement(dY,{className:"TabsRoot",value:s,
17461
+ defaultValue:i,onValueChange:a,dir:u.direction},e.createElement(pY,{
17462
+ className:"TabsList","aria-label":l},t.map((t=>e.createElement(fY,{
17462
17463
  className:"TabsTrigger",value:t?.[n],key:t?.[n],disabled:t?.[o]
17463
- },t?.[r])))),t.map((t=>e.createElement(dY,{className:"TabsContent",value:t?.[n],
17464
+ },t?.[r])))),t.map((t=>e.createElement(hY,{className:"TabsContent",value:t?.[n],
17464
17465
  key:t?.[n]},c?c(t):null))))
17465
- },exports.TabsContent=dY,exports.TabsList=hY,exports.TabsRoot=uY,
17466
- exports.TabsTrigger=pY,
17466
+ },exports.TabsContent=hY,exports.TabsList=pY,exports.TabsRoot=dY,
17467
+ exports.TabsTrigger=fY,
17467
17468
  exports.Tag=kb,exports.TextArea=Hc,exports.ThemeProvider=t=>e.createElement(sr,{
17468
17469
  theme:t.theme
17469
- },e.createElement(sW,null),e.createElement(cW,null,t.children)),exports.Themes=_o,
17470
+ },e.createElement(uW,null),e.createElement(sW,null,t.children)),exports.Themes=_o,
17470
17471
  exports.TickIcon=ro,exports.TimePicker=t=>{
17471
17472
  const{isRequired:n,label:r,isErrored:o,errorText:a,id:i,disabled:l,precision:c="minute",useAmPm:s,value:u="",onChange:d}=t,h=cr()
17472
17473
  ;return e.createElement(FN,{id:`datetime-picker-container-${i??""}`.trim()
@@ -17503,24 +17504,24 @@ showTick:!1,defaultSelectedItem:u?qN.find((e=>e.id===Tb(u).format("A"))):null,
17503
17504
  width:"65px",itemIdentifier:"id",items:qN,onChange:e=>{
17504
17505
  const t=Tb(new Date(u)).hour(Tb(u).hour()+("AM"===e?.id?-12:12))
17505
17506
  ;d?.(t.toISOString())}})),o&&a&&e.createElement(wc,null,a))
17506
- },exports.ToastProvider=cW,
17507
+ },exports.ToastProvider=sW,
17507
17508
  exports.Toggle=({handleChange:t,hasIcon:n=!1,on:r,isErrored:o,isRequired:a,size:i="md",thumbProps:l,...c})=>{
17508
- const s=cr();return e.createElement(zW,{checked:r,onCheckedChange:e=>{t?.(e)},
17509
- required:a,"aria-required":a,size:i,...c},e.createElement(MW,{...l,size:i
17509
+ const s=cr();return e.createElement(MW,{checked:r,onCheckedChange:e=>{t?.(e)},
17510
+ required:a,"aria-required":a,size:i,...c},e.createElement(xW,{...l,size:i
17510
17511
  },n&&e.createElement(ro,{fill:s.colors.common.accent,className:"toggle-on",
17511
- ...uW[i]}),n&&e.createElement(no,{fill:s.colors.text.primary,
17512
- className:"toggle-off",...dW[i]})))
17512
+ ...dW[i]}),n&&e.createElement(no,{fill:s.colors.text.primary,
17513
+ className:"toggle-off",...hW[i]})))
17513
17514
  },exports.Tooltip=({position:t="bottom",label:n,html:r,style:o={},children:a,className:i="",disabled:l=!1,delay:c=300,arrow:s=!0,providerProps:u,rootProps:d})=>{
17514
- const h=cr(),[p="bottom",f="center"]=t.split("-");return e.createElement(JW,{
17515
- delayDuration:c,...u},e.createElement(QW,{...d,open:!l&&void 0
17516
- },e.createElement(eG,{className:"TooltipTrigger",asChild:!0,
17515
+ const h=cr(),[p="bottom",f="center"]=t.split("-");return e.createElement(QW,{
17516
+ delayDuration:c,...u},e.createElement(eG,{...d,open:!l&&void 0
17517
+ },e.createElement(tG,{className:"TooltipTrigger",asChild:!0,
17517
17518
  "aria-label":"string"==typeof a?a:"TooltipTrigger",type:"button"
17518
17519
  },e.createElement(Oo,{className:i,type:"button"
17519
- },a)),e.createElement(tG,null,e.createElement(XW,{forceMount:!0,
17520
+ },a)),e.createElement(nG,null,e.createElement(JW,{forceMount:!0,
17520
17521
  "data-tooltip-content":!0,className:"TooltipContent",style:o,sideOffset:5,
17521
17522
  "aria-disabled":l,"aria-live":"polite",side:p,align:f,dir:h.direction
17522
- },n?e.createElement(e.Fragment,null,n):e.createElement(e.Fragment,null,r),s&&e.createElement(ZW,null)))))
17523
+ },n?e.createElement(e.Fragment,null,n):e.createElement(e.Fragment,null,r),s&&e.createElement(XW,null)))))
17523
17524
  },
17524
17525
  exports.TriggerButtonWrapper=Oo,exports.Typography=Bo,exports.Warning=oo,exports.dialogContentMixin=Fo,
17525
17526
  exports.dialogOverlayMixin=No,exports.useToasts=()=>{
17526
- const{toasts:t,addToast:n}=e.useContext(fY)??{};return[t,n]};
17527
+ const{toasts:t,addToast:n}=e.useContext(mY)??{};return[t,n]};