freemium-ui 2.0.38 → 2.0.40
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 +255 -252
- package/lib/index.d.ts +1 -0
- package/lib/index.js +255 -252
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/dist/README.md +0 -86
- package/dist/index.cjs.js +0 -16653
- package/dist/index.d.ts +0 -1748
- package/dist/index.js +0 -16478
- package/dist/package.json +0 -74
package/lib/index.js
CHANGED
|
@@ -4584,6 +4584,7 @@ const{__scopeAlertDialog:t,...n}=e,r=Zy(t);return o($y,E({},r,n,{modal:!0}))
|
|
|
4584
4584
|
border-bottom-left-radius: 8px;
|
|
4585
4585
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
4586
4586
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
4587
|
+
color: ${({theme:e})=>e.colors.text.primary};
|
|
4587
4588
|
&:focus {
|
|
4588
4589
|
outline: none;
|
|
4589
4590
|
}
|
|
@@ -4608,6 +4609,7 @@ const{__scopeAlertDialog:t,...n}=e,r=Zy(t);return o($y,E({},r,n,{modal:!0}))
|
|
|
4608
4609
|
padding: 32px 32px
|
|
4609
4610
|
${({$hasdescription:e})=>e?"0px":"16px"} 32px;
|
|
4610
4611
|
`,bb=Or(db)`
|
|
4612
|
+
color: ${({theme:e})=>e.colors.text.primary};
|
|
4611
4613
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
4612
4614
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
4613
4615
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
@@ -9299,9 +9301,9 @@ console.info("Finished '".concat(e,"' in ").concat(o,"ms"))),[2]}var i}))}))}
|
|
|
9299
9301
|
function F_(e){return $e(this,void 0,void 0,(function(){var t,n
|
|
9300
9302
|
;return Be(this,(function(r){switch(r.label){case 0:
|
|
9301
9303
|
return t=e.loader,"function"!=typeof(n=void 0===t?B_.defaultLoader:t)?[3,1]:[2,n]
|
|
9302
|
-
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return
|
|
9304
|
+
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return YG
|
|
9303
9305
|
}))];case 2:return[2,r.sent().allPathsLoader];case 3:
|
|
9304
|
-
return[4,Promise.resolve().then((function(){return
|
|
9306
|
+
return[4,Promise.resolve().then((function(){return WG}))];case 4:
|
|
9305
9307
|
return[2,r.sent().splitPathsBySizeLoader]}}))}))}var $_=function(){function e(){
|
|
9306
9308
|
this.defaultLoader="split-by-size",
|
|
9307
9309
|
this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}
|
|
@@ -16344,7 +16346,7 @@ fill:e.fill}))))`
|
|
|
16344
16346
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
16345
16347
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16346
16348
|
animation-name: ${no};
|
|
16347
|
-
`,lY=Or.div``,cY=Or.div``,sY=Or.div`
|
|
16349
|
+
`,lY=Or.div``,cY=Or.div``,sY=Or.div``,uY=Or.div`
|
|
16348
16350
|
display: flex;
|
|
16349
16351
|
align-items: center;
|
|
16350
16352
|
direction: ${({theme:e})=>e.direction};
|
|
@@ -16369,7 +16371,7 @@ fill:e.fill}))))`
|
|
|
16369
16371
|
font-size: 14px;
|
|
16370
16372
|
font-weight: 400;
|
|
16371
16373
|
}
|
|
16372
|
-
`,
|
|
16374
|
+
`,dY=Or.div`
|
|
16373
16375
|
display: flex;
|
|
16374
16376
|
gap: 8px;
|
|
16375
16377
|
align-items: center;
|
|
@@ -16381,10 +16383,10 @@ fill:e.fill}))))`
|
|
|
16381
16383
|
place-content: center;
|
|
16382
16384
|
padding: 0;
|
|
16383
16385
|
}
|
|
16384
|
-
`,
|
|
16386
|
+
`,hY=Or.div`
|
|
16385
16387
|
overflow: auto;
|
|
16386
16388
|
flex: 1;
|
|
16387
|
-
`,
|
|
16389
|
+
`,pY=Or.table`
|
|
16388
16390
|
border-spacing: 0px;
|
|
16389
16391
|
border-collapse: collapse;
|
|
16390
16392
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
@@ -16393,9 +16395,9 @@ fill:e.fill}))))`
|
|
|
16393
16395
|
margin: 0;
|
|
16394
16396
|
direction: ${({theme:e})=>e.direction};
|
|
16395
16397
|
position: relative;
|
|
16396
|
-
`,
|
|
16398
|
+
`,fY=Or.thead``,mY=Or.tbody`
|
|
16397
16399
|
position: relative;
|
|
16398
|
-
`,
|
|
16400
|
+
`,vY=Or.tfoot``,gY=Or.tr`
|
|
16399
16401
|
&:hover {
|
|
16400
16402
|
transition: 0.2s ease;
|
|
16401
16403
|
background-color: ${({theme:e})=>e.colors.fill.medium};
|
|
@@ -16409,7 +16411,7 @@ fill:e.fill}))))`
|
|
|
16409
16411
|
border-bottom-width: 3px;
|
|
16410
16412
|
}
|
|
16411
16413
|
`}
|
|
16412
|
-
`,
|
|
16414
|
+
`,yY=Or.div`
|
|
16413
16415
|
position: absolute;
|
|
16414
16416
|
width: 100%;
|
|
16415
16417
|
height: 100%;
|
|
@@ -16419,7 +16421,7 @@ fill:e.fill}))))`
|
|
|
16419
16421
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
16420
16422
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16421
16423
|
animation-name: ${Wr};
|
|
16422
|
-
`,
|
|
16424
|
+
`,bY=Or.th`
|
|
16423
16425
|
padding: 16px;
|
|
16424
16426
|
font-size: 12px;
|
|
16425
16427
|
line-height: 16px;
|
|
@@ -16452,7 +16454,7 @@ fill:e.fill}))))`
|
|
|
16452
16454
|
border-right: 3px solid ${({theme:e})=>e.colors.border.light};
|
|
16453
16455
|
}
|
|
16454
16456
|
`}
|
|
16455
|
-
`,
|
|
16457
|
+
`,wY=Or.td`
|
|
16456
16458
|
padding: 12px;
|
|
16457
16459
|
margin: 0;
|
|
16458
16460
|
font-size: 14px;
|
|
@@ -16475,19 +16477,19 @@ fill:e.fill}))))`
|
|
|
16475
16477
|
border-right: 3px solid ${e.colors.border.light};
|
|
16476
16478
|
}
|
|
16477
16479
|
`}
|
|
16478
|
-
`,wY=Or.div`
|
|
16479
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16480
16480
|
`,CY=Or.div`
|
|
16481
|
+
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16482
|
+
`,zY=Or.div`
|
|
16481
16483
|
padding: 24px;
|
|
16482
16484
|
display: flex;
|
|
16483
16485
|
justify-content: space-between;
|
|
16484
16486
|
align-items: center;
|
|
16485
|
-
`,
|
|
16487
|
+
`,MY=Or.div`
|
|
16486
16488
|
padding: 0 24px;
|
|
16487
16489
|
display: flex;
|
|
16488
16490
|
gap: 16px;
|
|
16489
16491
|
height: 256px;
|
|
16490
|
-
`,
|
|
16492
|
+
`,xY=Or.div`
|
|
16491
16493
|
background: ${({theme:e})=>e.colors.fill.medium};
|
|
16492
16494
|
border-radius: 4px 4px 0px 0px;
|
|
16493
16495
|
padding: 8px 8px 0 8px;
|
|
@@ -16501,11 +16503,11 @@ fill:e.fill}))))`
|
|
|
16501
16503
|
margin-bottom: 8px;
|
|
16502
16504
|
}
|
|
16503
16505
|
}
|
|
16504
|
-
`,
|
|
16506
|
+
`,EY=Or.div`
|
|
16505
16507
|
display: flex;
|
|
16506
16508
|
gap: 8px;
|
|
16507
16509
|
flex-direction: column;
|
|
16508
|
-
`,
|
|
16510
|
+
`,SY=Or.div`
|
|
16509
16511
|
display: flex;
|
|
16510
16512
|
gap: 12px;
|
|
16511
16513
|
flex-direction: column;
|
|
@@ -16519,13 +16521,13 @@ fill:e.fill}))))`
|
|
|
16519
16521
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
16520
16522
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
16521
16523
|
}
|
|
16522
|
-
`,
|
|
16524
|
+
`,_Y=Or.div`
|
|
16523
16525
|
background-color: ${({theme:e})=>e.colors.fill.base};
|
|
16524
16526
|
display: flex;
|
|
16525
16527
|
padding: 16px;
|
|
16526
16528
|
gap: 8px;
|
|
16527
16529
|
justify-content: flex-end;
|
|
16528
|
-
`,
|
|
16530
|
+
`,HY=Or.div`
|
|
16529
16531
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16530
16532
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
16531
16533
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
@@ -16539,7 +16541,7 @@ fill:e.fill}))))`
|
|
|
16539
16541
|
display: flex;
|
|
16540
16542
|
justify-content: space-between;
|
|
16541
16543
|
gap: 8px;
|
|
16542
|
-
`,
|
|
16544
|
+
`,DY=Or.div`
|
|
16543
16545
|
display: flex;
|
|
16544
16546
|
align-items: center;
|
|
16545
16547
|
width: fit-content;
|
|
@@ -16560,7 +16562,7 @@ fill:e.fill}))))`
|
|
|
16560
16562
|
color: ${e.colors.text.link};
|
|
16561
16563
|
`}
|
|
16562
16564
|
}
|
|
16563
|
-
`,
|
|
16565
|
+
`,AY=t.forwardRef(((e,n)=>{const r=Hr();return t.createElement("svg",{
|
|
16564
16566
|
width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",
|
|
16565
16567
|
xmlns:"http://www.w3.org/2000/svg",...e,ref:n},t.createElement("path",{
|
|
16566
16568
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -16569,36 +16571,36 @@ fill:r.colors.text.primary}),t.createElement("mask",{id:"mask0_3930_5537",
|
|
|
16569
16571
|
style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",
|
|
16570
16572
|
height:"16"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
16571
16573
|
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"
|
|
16572
|
-
})))})),
|
|
16574
|
+
})))})),LY=["rowMenuOptions","select"],VY=({table:e})=>{
|
|
16573
16575
|
const n=Hr(),[r,o]=t.useState({}),[a,i]=t.useState([]),l=e.getAllColumns(),c=e.getState(),s=t.useCallback((()=>{
|
|
16574
16576
|
const e={};l.forEach((t=>{e[t.id]=t
|
|
16575
16577
|
})),i(c.columnOrder.map((t=>e[t])).filter((e=>e.getIsVisible())))
|
|
16576
16578
|
}),[c.columnOrder,l,i]);return t.useEffect((()=>{o(c.columnVisibility),s()
|
|
16577
16579
|
}),[c.columnVisibility,s]),
|
|
16578
|
-
t.createElement(
|
|
16580
|
+
t.createElement(CY,null,t.createElement(zY,null,t.createElement(sa,{
|
|
16579
16581
|
weight:"semi-bold"},"Customize columns"),t.createElement(Wm,{variant:"link",
|
|
16580
16582
|
onClick:()=>{const t={};e.getAllColumns().forEach((e=>{t[e.id]=e.getIsVisible()
|
|
16581
16583
|
})),o(t),s()}
|
|
16582
|
-
},"Reset")),t.createElement(
|
|
16583
|
-
startAdornment:t.createElement(
|
|
16584
|
+
},"Reset")),t.createElement(MY,null,t.createElement(EY,null,t.createElement(qc,{
|
|
16585
|
+
startAdornment:t.createElement(AY,{viewBox:"0 0 18px 18px"}),
|
|
16584
16586
|
placeholder:"Search columns"}),t.createElement(sa,{weight:"semi-bold"
|
|
16585
|
-
},"Choose columns"),t.createElement(
|
|
16587
|
+
},"Choose columns"),t.createElement(SY,null,e.getAllColumns().filter((e=>!LY.includes(e.id))).map((n=>t.createElement(my,{
|
|
16586
16588
|
key:n.id,label:n.columnDef.header?.toString(),checked:!!r[n.id],
|
|
16587
16589
|
onCheckedChange:t=>{const r=e.getAllColumns().find((e=>e.id===n.id));o((e=>({
|
|
16588
16590
|
...e,[n.id]:!0===t
|
|
16589
16591
|
}))),i((e=>!0===t?[...e,...r?[r]:[]]:e.filter((e=>e.id!==n.id))))}
|
|
16590
|
-
}))))),t.createElement(
|
|
16592
|
+
}))))),t.createElement(xY,null,t.createElement(sa,{weight:"semi-bold"
|
|
16591
16593
|
},`Selected columns (${a.length})`),t.createElement(Jj,{
|
|
16592
16594
|
className:"ReorderContainer",onReorder:e=>{i(e)},
|
|
16593
|
-
customFilter:e=>!
|
|
16595
|
+
customFilter:e=>!LY.includes(e.id??""),customRender:e=>t.createElement(HY,{
|
|
16594
16596
|
key:e.id
|
|
16595
16597
|
},t.createElement("div",null,e?.columnDef?.header?.toString()??""),t.createElement(Jo,{
|
|
16596
16598
|
onClick:()=>{o((t=>({...t,[e.id]:!1}))),i((t=>t.filter((t=>t.id!==e.id))))}
|
|
16597
16599
|
},t.createElement(Mo,{fill:n.colors.text.primary}))),items:a
|
|
16598
|
-
}))),t.createElement(
|
|
16600
|
+
}))),t.createElement(_Y,null,t.createElement(n$,{asChild:!0
|
|
16599
16601
|
},t.createElement(Wm,{variant:"secondary"},"Cancel")),t.createElement(Wm,{
|
|
16600
16602
|
onClick:()=>{e.setColumnOrder(a.map((e=>e.id))),e.setColumnVisibility(r)}
|
|
16601
|
-
},"Update")))},
|
|
16603
|
+
},"Update")))},kY=e=>{
|
|
16602
16604
|
const{trigger:n,idAccessor:r="id",nameAccessor:o="name",onSelect:a,isDisableSortDropdown:i=!1,options:l=[],value:c}=e,s=Hr()
|
|
16603
16605
|
;return t.createElement(gg,null,t.createElement(yg,{asChild:!0,disabled:i
|
|
16604
16606
|
},t.createElement(aa,null,n)),t.createElement(bg,null,t.createElement(zg,{
|
|
@@ -16607,35 +16609,35 @@ side:"bottom",sideOffset:4,align:"center",className:"DropdownMenuContent"
|
|
|
16607
16609
|
},e.map((e=>t.createElement(Mg,{id:e?.[r],disabled:e?.disabled,
|
|
16608
16610
|
className:"DropdownMenuItem",key:e?.[r],onSelect:()=>{const t=c??[];t[n]=e?.[r],
|
|
16609
16611
|
a?.(t)}},e?.[o],c?.[n]===e?.[r]&&t.createElement(xo,{fill:s.colors.common.accent
|
|
16610
|
-
})))),t.createElement(Cg,{className:"DropdownMenuSeparator"})))))))},
|
|
16611
|
-
const{data:r,columns:o,showFooter:a=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,
|
|
16612
|
+
})))),t.createElement(Cg,{className:"DropdownMenuSeparator"})))))))},TY=n=>{
|
|
16613
|
+
const{data:r,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:A,enableSorting:L,sortingValues:V,sortingOptions:k,onSortingOptionSelect:T,onNextPageClick:P,disableRowSelect:I,hideSelectAllInTable:R,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}=n,Q=Hr(),[ee,te]=t.useState(!g),ne={
|
|
16612
16614
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
16613
|
-
display:e=>e,group:e=>e},
|
|
16614
|
-
id:"select",header:({table:e})=>
|
|
16615
|
+
display:e=>e,group:e=>e},re=-1===z||void 0===z,oe=t.useMemo((()=>[...I?[]:[{
|
|
16616
|
+
id:"select",header:({table:e})=>R?t.createElement("div",{
|
|
16615
16617
|
className:"table-checkbox-header"}):t.createElement(my,{
|
|
16616
16618
|
className:"table-checkbox",
|
|
16617
16619
|
checked:e.getIsSomeRowsSelected()?"indeterminate":e.getIsAllRowsSelected(),
|
|
16618
16620
|
indeterminate:e.getIsSomeRowsSelected(),onCheckedChange:t=>{
|
|
16619
|
-
e.toggleAllPageRowsSelected(!0===t),
|
|
16621
|
+
e.toggleAllPageRowsSelected(!0===t),O?.(!0===t)}}),
|
|
16620
16622
|
cell:({row:e})=>t.createElement(my,{className:"table-checkbox",
|
|
16621
16623
|
checked:e.getIsSelected(),disabled:!e.getCanSelect(),
|
|
16622
16624
|
indeterminate:e.getIsSomeSelected(),onCheckedChange:t=>{
|
|
16623
|
-
e.toggleSelected(!0===t),
|
|
16624
|
-
}],...o.map((e=>
|
|
16625
|
-
cell:t=>e.accessorFn(t.row.original)}))),...
|
|
16625
|
+
e.toggleSelected(!0===t),N?.(e.original,!0===t)}})
|
|
16626
|
+
}],...o.map((e=>ne.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
16627
|
+
cell:t=>e.accessorFn(t.row.original)}))),...D?[{id:"rowMenuOptions",
|
|
16626
16628
|
header:()=>t.createElement("div",{id:"more-actions-header"}),
|
|
16627
16629
|
cell:({row:e})=>t.createElement(Pb,{trigger:t.createElement(Ao,{
|
|
16628
|
-
className:"more-actions",fill:"currentcolor"}),options:
|
|
16629
|
-
onSelect:t=>{t.id&&
|
|
16630
|
-
}]:[]]),[o,
|
|
16631
|
-
;return o.forEach((t=>{e[t.id]=!(
|
|
16632
|
-
}),[o,
|
|
16630
|
+
className:"more-actions",fill:"currentcolor"}),options:D(e.original)||[],
|
|
16631
|
+
onSelect:t=>{t.id&&F?.(t.id,e.original)},side:"bottom",align:"end"})
|
|
16632
|
+
}]:[]]),[o,I,R,Q.colors.text.primary]),ae=t.useMemo((()=>{const e={}
|
|
16633
|
+
;return o.forEach((t=>{e[t.id]=!(Y??[]).includes(t.id)})),e
|
|
16634
|
+
}),[o,Y]),ie=t.useMemo((()=>({pageIndex:M,pageSize:x})),[x,M]),le=function(t){
|
|
16633
16635
|
const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t
|
|
16634
16636
|
},[r]=e.useState((()=>({current:qU(n)
|
|
16635
16637
|
}))),[o,a]=e.useState((()=>r.current.initialState))
|
|
16636
16638
|
;return r.current.setOptions((e=>({...e,...t,state:{...o,...t.state},
|
|
16637
16639
|
onStateChange:e=>{a(e),null==t.onStateChange||t.onStateChange(e)}}))),r.current
|
|
16638
|
-
}({data:r,columns:
|
|
16640
|
+
}({data:r,columns:oe,getRowId:e=>e?.[q]??"id",
|
|
16639
16641
|
getCoreRowModel:e=>rU((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],
|
|
16640
16642
|
rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[]
|
|
16641
16643
|
;for(let c=0;c<t.length;c++){
|
|
@@ -16645,77 +16647,78 @@ n.rowsById[s.id]=s,i.push(s),e.options.getSubRows&&(s.originalSubRows=e.options.
|
|
|
16645
16647
|
null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,o+1,s)))}
|
|
16646
16648
|
return i};return n.rows=r(t),n
|
|
16647
16649
|
}),oU(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),
|
|
16648
|
-
state:{columnOrder
|
|
16650
|
+
state:{columnOrder:B,columnVisibility:ae,rowSelection:W,pagination:ie},
|
|
16649
16651
|
initialState:{columnPinning:{left:["select"],right:["rowMenuOptions"]}},
|
|
16650
|
-
onPaginationChange:e=>{let t=
|
|
16651
|
-
},onColumnVisibilityChange:e=>{let t=
|
|
16652
|
-
;t="function"==typeof e?e(
|
|
16653
|
-
onColumnOrderChange:e=>{let t
|
|
16654
|
-
onRowSelectionChange:e=>{let t=
|
|
16655
|
-
enableRowSelection:!0,manualPagination:!0,rowCount:
|
|
16656
|
-
}),{getPageCount:
|
|
16657
|
-
;return t.createElement(QU,{className:"TableContainer"},!
|
|
16652
|
+
onPaginationChange:e=>{let t=ie;t="function"==typeof e?e(ie):e,X?.(t.pageIndex)
|
|
16653
|
+
},onColumnVisibilityChange:e=>{let t=ae
|
|
16654
|
+
;t="function"==typeof e?e(ae):e,U?.(Object.keys(t).filter((e=>!t[e])))},
|
|
16655
|
+
onColumnOrderChange:e=>{let t=B??[];t="function"==typeof e?e(B??[]):e,j?.(t)},
|
|
16656
|
+
onRowSelectionChange:e=>{let t=W;t="function"==typeof e?e(W):e,K?.(t)},
|
|
16657
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:re?-1:z
|
|
16658
|
+
}),{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+(I?0:1)+(D?1:0),xe=k?.[0].find((e=>e.id===V?.[0]))?.name
|
|
16659
|
+
;return t.createElement(QU,{className:"TableContainer"},!C&&t.createElement(aY,{
|
|
16658
16660
|
className:"table-actions"
|
|
16659
16661
|
},d&&t.createElement(t.Fragment,null,d),t.createElement(cY,{
|
|
16660
|
-
className:"table-header-component"},h??null),t.createElement(
|
|
16661
|
-
className:"table-header-dropdown-pagination"},
|
|
16662
|
+
className:"table-header-component"},h??null),t.createElement(uY,{
|
|
16663
|
+
className:"table-header-dropdown-pagination"},L&&t.createElement("div",{
|
|
16662
16664
|
className:"table-heading-dropdown"},t.createElement("div",{
|
|
16663
|
-
className:"table-sorting-heading"},`${
|
|
16665
|
+
className:"table-sorting-heading"},`${y}:`)," ",t.createElement(kY,{
|
|
16664
16666
|
trigger:t.createElement("div",{className:"table-sorting-value-continer"
|
|
16665
|
-
},t.createElement("div",null,
|
|
16666
|
-
isDisableSortDropdown:!!
|
|
16667
|
-
})),t.createElement(
|
|
16668
|
-
}
|
|
16669
|
-
|
|
16670
|
-
|
|
16667
|
+
},t.createElement("div",null,xe),t.createElement(XU,{fill:"currentcolor"})),
|
|
16668
|
+
isDisableSortDropdown:!!G,options:k||[],value:V,onSelect:e=>{T?.(e??[])}
|
|
16669
|
+
})),t.createElement(sY,{className:"table-edit-column-component"
|
|
16670
|
+
},p??null),t.createElement(dY,{className:"pagination-actions"
|
|
16671
|
+
},!v&&t.createElement(t.Fragment,null,t.createElement(sa,{variant:"primary",
|
|
16672
|
+
className:"pagination-text"},l&&!w?t.createElement(ts,{size:"small"
|
|
16673
|
+
}):t.createElement(t.Fragment,null,r.length>0?`${we*Ce+1} - ${ze} of ${re?""+(be.length>0?"Many":"-"):z??be.length??"-"}`:null)),t.createElement(Wm,{
|
|
16671
16674
|
variant:"secondary",className:"table-pagination-button",onClick:()=>{
|
|
16672
|
-
|
|
16673
|
-
fill:
|
|
16674
|
-
className:"table-pagination-button",onClick:()=>{
|
|
16675
|
-
disabled:
|
|
16676
|
-
}))),!
|
|
16677
|
-
className:"table-pagination-button filter-toggle",onClick:()=>
|
|
16678
|
-
},t.createElement(eY,{style:{transform:
|
|
16675
|
+
A?.(),re||fe()},disabled:re?!E:!he()||l||c},t.createElement(tY,{
|
|
16676
|
+
fill:Q.colors.text.primary})),t.createElement(Wm,{variant:"secondary",
|
|
16677
|
+
className:"table-pagination-button",onClick:()=>{P?.(),re||ve()},
|
|
16678
|
+
disabled:re?!S:!de()||l||c},t.createElement(nY,{fill:Q.colors.text.primary
|
|
16679
|
+
}))),!g&&t.createElement(Wm,{variant:"secondary",
|
|
16680
|
+
className:"table-pagination-button filter-toggle",onClick:()=>te(!ee)
|
|
16681
|
+
},t.createElement(eY,{style:{transform:ee?"rotateY(180deg)":"rotateY(0deg)"},
|
|
16679
16682
|
fill:"currentcolor"
|
|
16680
|
-
}))))),t.createElement(rY,null,t.createElement(oY,null,i&&t.createElement(lY,null,i),l&&!
|
|
16683
|
+
}))))),t.createElement(rY,null,t.createElement(oY,null,i&&t.createElement(lY,null,i),l&&!b?t.createElement(t.Fragment,null,u):t.createElement(t.Fragment,null,0===be.length&&m?t.createElement(t.Fragment,null,s):t.createElement(hY,null,t.createElement(pY,null,!_&&t.createElement(r$,{
|
|
16681
16684
|
align:"end",avoidCollisions:!0,side:"top",trigger:t.createElement(JU,{
|
|
16682
|
-
fill:"currentcolor"})},t.createElement(
|
|
16683
|
-
})),t.createElement(
|
|
16684
|
-
key:e.id},e.headers.map((e=>t.createElement(
|
|
16685
|
-
},e.isPlaceholder?null:ZU(e.column.columnDef.header,e.getContext())))))))),t.createElement(
|
|
16686
|
-
key:e.id,$isSelected:e.getIsSelected(),...
|
|
16687
|
-
},e.getVisibleCells().map((n=>t.createElement(
|
|
16688
|
-
|
|
16689
|
-
},ZU(n.column.columnDef.cell,n.getContext())))))))),a&&t.createElement(
|
|
16690
|
-
key:e.id},e.headers.map((e=>t.createElement(
|
|
16691
|
-
},e.isPlaceholder?null:ZU(e.column.columnDef.footer,e.getContext())))))))),!
|
|
16692
|
-
colSpan:
|
|
16693
|
-
},t.createElement(Wm,{variant:"secondary",onClick:()=>{
|
|
16694
|
-
disabled:!
|
|
16695
|
-
onClick:()=>{
|
|
16696
|
-
},"<"),
|
|
16697
|
-
variant:"secondary",onClick:()=>{
|
|
16698
|
-
},"1"),
|
|
16699
|
-
},"...")),
|
|
16700
|
-
key:e,variant:"secondary",className:
|
|
16685
|
+
fill:"currentcolor"})},t.createElement(VY,{table:le
|
|
16686
|
+
})),t.createElement(fY,null,le.getHeaderGroups().map((e=>t.createElement(gY,{
|
|
16687
|
+
key:e.id},e.headers.map((e=>t.createElement(bY,{key:e.id
|
|
16688
|
+
},e.isPlaceholder?null:ZU(e.column.columnDef.header,e.getContext())))))))),t.createElement(mY,null,c&&!l&&t.createElement(yY,null,t.createElement(ts,null)),be.map((e=>t.createElement(gY,{
|
|
16689
|
+
key:e.id,$isSelected:e.getIsSelected(),...J?.(e.original)
|
|
16690
|
+
},e.getVisibleCells().map((n=>t.createElement(wY,{key:n.id,onClick:()=>{
|
|
16691
|
+
$?.(e.original,n.column.columnDef)},...Z?.(n)
|
|
16692
|
+
},ZU(n.column.columnDef.cell,n.getContext())))))))),a&&t.createElement(vY,null,le.getFooterGroups().map((e=>t.createElement(gY,{
|
|
16693
|
+
key:e.id},e.headers.map((e=>t.createElement(bY,{key:e.id
|
|
16694
|
+
},e.isPlaceholder?null:ZU(e.column.columnDef.footer,e.getContext())))))))),!H&&t.createElement(vY,null,t.createElement(gY,null,t.createElement(bY,{
|
|
16695
|
+
colSpan:Me},t.createElement(DY,{className:"table-pagination"
|
|
16696
|
+
},t.createElement(Wm,{variant:"secondary",onClick:()=>{ye()},
|
|
16697
|
+
disabled:!he()||l||c},"<<"),t.createElement(Wm,{variant:"secondary",
|
|
16698
|
+
onClick:()=>{fe()},disabled:!he()||l||c
|
|
16699
|
+
},"<"),we+1>2&&t.createElement(t.Fragment,null,t.createElement(Wm,{
|
|
16700
|
+
variant:"secondary",onClick:()=>{ye()},disabled:l||c
|
|
16701
|
+
},"1"),we+1-3!=0&&t.createElement(Wm,{variant:"secondary",disabled:!0
|
|
16702
|
+
},"...")),pe().map((e=>[e-2,e-1,e,e+1,e+2].includes(we+1)&&t.createElement(Wm,{
|
|
16703
|
+
key:e,variant:"secondary",className:we+1===e+1?"active":"",onClick:()=>{me?.(e)
|
|
16701
16704
|
},disabled:l||c
|
|
16702
|
-
},e+1))),
|
|
16705
|
+
},e+1))),we+2<Math.ceil(r.length/Ce)-2&&t.createElement(t.Fragment,null,we+2+3!==Math.ceil(r.length/Ce)&&t.createElement(Wm,{
|
|
16703
16706
|
variant:"secondary",disabled:!0},"..."),t.createElement(Wm,{variant:"secondary",
|
|
16704
|
-
onClick:()=>{
|
|
16705
|
-
},Math.ceil(r.length/
|
|
16706
|
-
|
|
16707
|
-
onClick:()=>{
|
|
16708
|
-
},">>"))))))))),!
|
|
16709
|
-
},
|
|
16707
|
+
onClick:()=>{me?.(Math.ceil(r.length/Ce)-1)},disabled:l||c
|
|
16708
|
+
},Math.ceil(r.length/Ce))),t.createElement(Wm,{variant:"secondary",onClick:()=>{
|
|
16709
|
+
ve()},disabled:!de()||l||c},">"),t.createElement(Wm,{variant:"secondary",
|
|
16710
|
+
onClick:()=>{ge()},disabled:!de()||l||c
|
|
16711
|
+
},">>"))))))))),!g&&ee&&f&&t.createElement(iY,null,f)))
|
|
16712
|
+
},PY="Tabs",[IY,RY]=S(PY,[av]),OY=av(),[NY,FY]=IY(PY),$Y=l(((e,t)=>{
|
|
16710
16713
|
const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:l="horizontal",dir:c,activationMode:s="automatic",...u}=e,d=ce(c),[h,p]=O({
|
|
16711
|
-
prop:r,onChange:a,defaultProp:i});return o(
|
|
16714
|
+
prop:r,onChange:a,defaultProp:i});return o(NY,{scope:n,baseId:W(),value:h,
|
|
16712
16715
|
onValueChange:p,orientation:l,dir:d,activationMode:s},o(N.div,E({dir:d,
|
|
16713
|
-
"data-orientation":l},u,{ref:t})))}));function
|
|
16714
|
-
}function
|
|
16715
|
-
const{__scopeTabs:n,loop:r=!0,...a}=e,i=
|
|
16716
|
+
"data-orientation":l},u,{ref:t})))}));function BY(e,t){return`${e}-trigger-${t}`
|
|
16717
|
+
}function jY(e,t){return`${e}-content-${t}`}const UY=l(((e,t)=>{
|
|
16718
|
+
const{__scopeTabs:n,loop:r=!0,...a}=e,i=FY("TabsList",n),l=OY(n);return o(pv,E({
|
|
16716
16719
|
asChild:!0},l,{orientation:i.orientation,dir:i.dir,loop:r}),o(N.div,E({
|
|
16717
|
-
role:"tablist","aria-orientation":i.orientation},a,{ref:t})))})),
|
|
16718
|
-
const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,l=
|
|
16720
|
+
role:"tablist","aria-orientation":i.orientation},a,{ref:t})))})),YY=l(((e,t)=>{
|
|
16721
|
+
const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,l=FY("TabsTrigger",n),c=OY(n),s=BY(l.baseId,r),u=jY(l.baseId,r),d=r===l.value
|
|
16719
16722
|
;return o(fv,E({asChild:!0},c,{focusable:!a,active:d}),o(N.button,E({
|
|
16720
16723
|
type:"button",role:"tab","aria-selected":d,"aria-controls":u,
|
|
16721
16724
|
"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:s
|
|
@@ -16723,21 +16726,21 @@ type:"button",role:"tab","aria-selected":d,"aria-controls":u,
|
|
|
16723
16726
|
a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(r)})),
|
|
16724
16727
|
onKeyDown:I(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(r)
|
|
16725
16728
|
})),onFocus:I(e.onFocus,(()=>{const e="manual"!==l.activationMode
|
|
16726
|
-
;d||a||!e||l.onValueChange(r)}))})))})),
|
|
16727
|
-
const{__scopeTabs:n,value:r,forceMount:a,children:i,...l}=e,c=
|
|
16729
|
+
;d||a||!e||l.onValueChange(r)}))})))})),WY=l(((e,t)=>{
|
|
16730
|
+
const{__scopeTabs:n,value:r,forceMount:a,children:i,...l}=e,c=FY("TabsContent",n),s=BY(c.baseId,r),u=jY(c.baseId,r),d=r===c.value,f=h(d)
|
|
16728
16731
|
;return p((()=>{const e=requestAnimationFrame((()=>f.current=!1))
|
|
16729
16732
|
;return()=>cancelAnimationFrame(e)}),[]),o(B,{present:a||d
|
|
16730
16733
|
},(({present:n})=>o(N.div,E({"data-state":d?"active":"inactive",
|
|
16731
16734
|
"data-orientation":c.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,
|
|
16732
16735
|
id:u,tabIndex:0},l,{ref:t,style:{...e.style,
|
|
16733
16736
|
animationDuration:f.current?"0s":void 0}}),n&&i)))
|
|
16734
|
-
})),
|
|
16737
|
+
})),GY=Or($Y)``,KY=Or(WY)``,qY=Or(UY)`
|
|
16735
16738
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
16736
16739
|
display: flex;
|
|
16737
16740
|
flex-wrap: nowrap;
|
|
16738
16741
|
gap: 12px;
|
|
16739
16742
|
direction: ${({theme:e})=>e.direction};
|
|
16740
|
-
`,
|
|
16743
|
+
`,ZY=Or(YY)`
|
|
16741
16744
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16742
16745
|
direction: ${({theme:e})=>e.direction};
|
|
16743
16746
|
background-color: unset;
|
|
@@ -16765,33 +16768,33 @@ animationDuration:f.current?"0s":void 0}}),n&&i)))
|
|
|
16765
16768
|
color: ${({theme:e})=>e.colors.text.disabled};
|
|
16766
16769
|
cursor: not-allowed;
|
|
16767
16770
|
}
|
|
16768
|
-
`,
|
|
16769
|
-
const u=Hr();return t.createElement(
|
|
16770
|
-
defaultValue:i,onValueChange:a,dir:u.direction},t.createElement(
|
|
16771
|
-
className:"TabsList","aria-label":l},e.map((e=>t.createElement(
|
|
16771
|
+
`,XY=({options:e=[],idAccessor:n="id",nameAccessor:r="name",disabledAccessor:o="disabled",onChange:a,defaultValue:i,label:l,renderTabsContent:c,value:s})=>{
|
|
16772
|
+
const u=Hr();return t.createElement(GY,{className:"TabsRoot",value:s,
|
|
16773
|
+
defaultValue:i,onValueChange:a,dir:u.direction},t.createElement(qY,{
|
|
16774
|
+
className:"TabsList","aria-label":l},e.map((e=>t.createElement(ZY,{
|
|
16772
16775
|
className:"TabsTrigger",value:e?.[n],key:e?.[n],disabled:e?.[o]
|
|
16773
|
-
},e?.[r])))),e.map((e=>t.createElement(
|
|
16774
|
-
key:e?.[n]},c?c(e):null))))},
|
|
16776
|
+
},e?.[r])))),e.map((e=>t.createElement(KY,{className:"TabsContent",value:e?.[n],
|
|
16777
|
+
key:e?.[n]},c?c(e):null))))},JY=t.createContext({toasts:[],windowState:"focus",
|
|
16775
16778
|
retainOnHover:!0,retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}
|
|
16776
|
-
}),
|
|
16779
|
+
}),QY="ToastProvider",[eW,tW,nW]=P("Toast"),[rW,oW]=S("Toast",[nW]),[aW,iW]=rW(QY),lW=e=>{
|
|
16777
16780
|
const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:l=50,children:c}=e,[s,u]=f(null),[d,p]=f(0),m=h(!1),v=h(!1)
|
|
16778
|
-
;return o(
|
|
16781
|
+
;return o(eW.Provider,{scope:t},o(aW,{scope:t,label:n,duration:r,
|
|
16779
16782
|
swipeDirection:a,swipeThreshold:l,toastCount:d,viewport:s,onViewportChange:u,
|
|
16780
16783
|
onToastAdd:i((()=>p((e=>e+1))),[]),onToastRemove:i((()=>p((e=>e-1))),[]),
|
|
16781
|
-
isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v},c))};
|
|
16784
|
+
isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v},c))};lW.propTypes={
|
|
16782
16785
|
label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){
|
|
16783
|
-
return new Error(`Invalid prop \`label\` supplied to \`${
|
|
16786
|
+
return new Error(`Invalid prop \`label\` supplied to \`${QY}\`. Expected non-empty \`string\`.`)
|
|
16784
16787
|
}return null}}
|
|
16785
|
-
;const
|
|
16786
|
-
const{__scopeToast:n,hotkey:r=
|
|
16788
|
+
;const cW=["F8"],sW="toast.viewportPause",uW="toast.viewportResume",dW=l(((e,t)=>{
|
|
16789
|
+
const{__scopeToast:n,hotkey:r=cW,label:a="Notifications ({hotkey})",...l}=e,c=iW("ToastViewport",n),s=tW(n),u=h(null),d=h(null),f=h(null),m=h(null),v=D(t,m,c.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=c.toastCount>0
|
|
16787
16790
|
;p((()=>{const e=e=>{var t;const n=r.every((t=>e[t]||e.code===t))
|
|
16788
16791
|
;n&&(null===(t=m.current)||void 0===t||t.focus())}
|
|
16789
16792
|
;return document.addEventListener("keydown",e),
|
|
16790
16793
|
()=>document.removeEventListener("keydown",e)}),[r]),p((()=>{
|
|
16791
16794
|
const e=u.current,t=m.current;if(y&&e&&t){const n=()=>{
|
|
16792
|
-
if(!c.isClosePausedRef.current){const e=new CustomEvent(
|
|
16795
|
+
if(!c.isClosePausedRef.current){const e=new CustomEvent(sW)
|
|
16793
16796
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!0}},r=()=>{
|
|
16794
|
-
if(c.isClosePausedRef.current){const e=new CustomEvent(
|
|
16797
|
+
if(c.isClosePausedRef.current){const e=new CustomEvent(uW)
|
|
16795
16798
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!1}},o=t=>{
|
|
16796
16799
|
!e.contains(t.relatedTarget)&&r()},a=()=>{
|
|
16797
16800
|
e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),
|
|
@@ -16803,7 +16806,7 @@ e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),
|
|
|
16803
16806
|
e.removeEventListener("pointerleave",a),
|
|
16804
16807
|
window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}
|
|
16805
16808
|
}),[y,c.isClosePausedRef]);const b=i((({tabbingDirection:e})=>{
|
|
16806
|
-
const t=s().map((t=>{const n=t.ref.current,r=[n,...
|
|
16809
|
+
const t=s().map((t=>{const n=t.ref.current,r=[n,...SW(n)]
|
|
16807
16810
|
;return"forwards"===e?r:r.reverse()}))
|
|
16808
16811
|
;return("forwards"===e?t.reverse():t).flat()}),[s]);return p((()=>{
|
|
16809
16812
|
const e=m.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
@@ -16811,21 +16814,21 @@ const e=m.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
|
16811
16814
|
;if(t.target===e&&i)return void(null===(r=d.current)||void 0===r||r.focus())
|
|
16812
16815
|
;const l=b({tabbingDirection:i?"backwards":"forwards"
|
|
16813
16816
|
}),c=l.findIndex((e=>e===n));var o,a
|
|
16814
|
-
;if(
|
|
16817
|
+
;if(_W(l.slice(c+1)))t.preventDefault();else i?null===(o=d.current)||void 0===o||o.focus():null===(a=f.current)||void 0===a||a.focus()
|
|
16815
16818
|
}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)
|
|
16816
16819
|
}}),[s,b]),o(ps,{ref:u,role:"region","aria-label":a.replace("{hotkey}",g),
|
|
16817
|
-
tabIndex:-1,style:{pointerEvents:y?void 0:"none"}},y&&o(
|
|
16818
|
-
onFocusFromOutsideViewport:()=>{
|
|
16819
|
-
}),o(
|
|
16820
|
-
onFocusFromOutsideViewport:()=>{
|
|
16821
|
-
})),
|
|
16822
|
-
const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,i=
|
|
16820
|
+
tabIndex:-1,style:{pointerEvents:y?void 0:"none"}},y&&o(hW,{ref:d,
|
|
16821
|
+
onFocusFromOutsideViewport:()=>{_W(b({tabbingDirection:"forwards"}))}
|
|
16822
|
+
}),o(eW.Slot,{scope:n},o(N.ol,E({tabIndex:-1},l,{ref:v}))),y&&o(hW,{ref:f,
|
|
16823
|
+
onFocusFromOutsideViewport:()=>{_W(b({tabbingDirection:"backwards"}))}}))
|
|
16824
|
+
})),hW=l(((e,t)=>{
|
|
16825
|
+
const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,i=iW("ToastFocusProxy",n)
|
|
16823
16826
|
;return o(fd,E({"aria-hidden":!0,tabIndex:0},a,{ref:t,style:{position:"fixed"},
|
|
16824
16827
|
onFocus:e=>{var t;const n=e.relatedTarget
|
|
16825
16828
|
;!(null!==(t=i.viewport)&&void 0!==t&&t.contains(n))&&r()}}))
|
|
16826
|
-
})),
|
|
16829
|
+
})),pW="Toast",fW=l(((e,t)=>{
|
|
16827
16830
|
const{forceMount:n,open:r,defaultOpen:a,onOpenChange:i,...l}=e,[c=!0,s]=O({
|
|
16828
|
-
prop:r,defaultProp:a,onChange:i});return o(B,{present:n||c},o(
|
|
16831
|
+
prop:r,defaultProp:a,onChange:i});return o(B,{present:n||c},o(gW,E({open:c},l,{
|
|
16829
16832
|
ref:t,onClose:()=>s(!1),onPause:R(e.onPause),onResume:R(e.onResume),
|
|
16830
16833
|
onSwipeStart:I(e.onSwipeStart,(e=>{
|
|
16831
16834
|
e.currentTarget.setAttribute("data-swipe","start")})),
|
|
@@ -16845,8 +16848,8 @@ e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
|
|
|
16845
16848
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
|
|
16846
16849
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),
|
|
16847
16850
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),s(!1)}))
|
|
16848
|
-
})))})),[
|
|
16849
|
-
const{__scopeToast:n,type:a="foreground",duration:l,open:c,onClose:s,onEscapeKeyDown:u,onPause:m,onResume:v,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...C}=e,z=
|
|
16851
|
+
})))})),[mW,vW]=rW(pW,{onClose(){}}),gW=l(((e,t)=>{
|
|
16852
|
+
const{__scopeToast:n,type:a="foreground",duration:l,open:c,onClose:s,onEscapeKeyDown:u,onPause:m,onResume:v,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...C}=e,z=iW(pW,n),[x,S]=f(null),_=D(t,(e=>S(e))),H=h(null),A=h(null),L=l||z.duration,V=h(0),k=h(L),T=h(0),{onToastAdd:P,onToastRemove:O}=z,F=R((()=>{
|
|
16850
16853
|
var e
|
|
16851
16854
|
;(null==x?void 0:x.contains(document.activeElement))&&(null===(e=z.viewport)||void 0===e||e.focus()),
|
|
16852
16855
|
s()})),$=i((e=>{
|
|
@@ -16855,13 +16858,13 @@ T.current=window.setTimeout(F,e))}),[F]);p((()=>{const e=z.viewport;if(e){
|
|
|
16855
16858
|
const t=()=>{$(k.current),null==v||v()},n=()=>{
|
|
16856
16859
|
const e=(new Date).getTime()-V.current
|
|
16857
16860
|
;k.current=k.current-e,window.clearTimeout(T.current),null==m||m()}
|
|
16858
|
-
;return e.addEventListener(
|
|
16859
|
-
e.removeEventListener(
|
|
16861
|
+
;return e.addEventListener(sW,n),e.addEventListener(uW,t),()=>{
|
|
16862
|
+
e.removeEventListener(sW,n),e.removeEventListener(uW,t)}}
|
|
16860
16863
|
}),[z.viewport,L,m,v,$]),p((()=>{c&&!z.isClosePausedRef.current&&$(L)
|
|
16861
16864
|
}),[c,L,z.isClosePausedRef,$]),p((()=>(P(),()=>O())),[P,O])
|
|
16862
|
-
;const B=r((()=>x?
|
|
16865
|
+
;const B=r((()=>x?MW(x):null),[x]);return z.viewport?o(d,null,B&&o(yW,{
|
|
16863
16866
|
__scopeToast:n,role:"status","aria-live":"foreground"===a?"assertive":"polite",
|
|
16864
|
-
"aria-atomic":!0},B),o(
|
|
16867
|
+
"aria-atomic":!0},B),o(mW,{scope:n,onClose:F},M(o(eW.ItemSlot,{scope:n},o(hs,{
|
|
16865
16868
|
asChild:!0,onEscapeKeyDown:I(u,(()=>{
|
|
16866
16869
|
z.isFocusedToastEscapeKeyDownRef.current||F(),
|
|
16867
16870
|
z.isFocusedToastEscapeKeyDownRef.current=!1}))},o(N.li,E({role:"status",
|
|
@@ -16874,57 +16877,57 @@ F()))})),onPointerDown:I(e.onPointerDown,(e=>{0===e.button&&(H.current={
|
|
|
16874
16877
|
x:e.clientX,y:e.clientY})})),onPointerMove:I(e.onPointerMove,(e=>{
|
|
16875
16878
|
if(!H.current)return
|
|
16876
16879
|
;const t=e.clientX-H.current.x,n=e.clientY-H.current.y,r=Boolean(A.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={
|
|
16877
|
-
x:i,y:l},u={originalEvent:e,delta:s};r?(A.current=s,
|
|
16878
|
-
discrete:!1})):
|
|
16880
|
+
x:i,y:l},u={originalEvent:e,delta:s};r?(A.current=s,xW("toast.swipeMove",y,u,{
|
|
16881
|
+
discrete:!1})):EW(s,z.swipeDirection,c)?(A.current=s,xW("toast.swipeStart",g,u,{
|
|
16879
16882
|
discrete:!1
|
|
16880
16883
|
}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(H.current=null)
|
|
16881
16884
|
})),onPointerUp:I(e.onPointerUp,(e=>{const t=A.current,n=e.target
|
|
16882
16885
|
;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),
|
|
16883
16886
|
A.current=null,H.current=null,t){const n=e.currentTarget,r={originalEvent:e,
|
|
16884
|
-
delta:t};
|
|
16885
|
-
discrete:!0}):
|
|
16887
|
+
delta:t};EW(t,z.swipeDirection,z.swipeThreshold)?xW("toast.swipeEnd",w,r,{
|
|
16888
|
+
discrete:!0}):xW("toast.swipeCancel",b,r,{discrete:!0
|
|
16886
16889
|
}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))
|
|
16887
|
-
})))),z.viewport))):null}));
|
|
16890
|
+
})))),z.viewport))):null}));gW.propTypes={type(e){
|
|
16888
16891
|
if(e.type&&!["foreground","background"].includes(e.type)){
|
|
16889
|
-
return new Error(`Invalid prop \`type\` supplied to \`${
|
|
16890
|
-
}return null}};const
|
|
16891
|
-
const{__scopeToast:t,children:n,...r}=e,a=
|
|
16892
|
+
return new Error(`Invalid prop \`type\` supplied to \`${pW}\`. Expected \`foreground | background\`.`)
|
|
16893
|
+
}return null}};const yW=e=>{
|
|
16894
|
+
const{__scopeToast:t,children:n,...r}=e,a=iW(pW,t),[i,l]=f(!1),[c,s]=f(!1)
|
|
16892
16895
|
;return function(e=(()=>{})){const t=R(e);$((()=>{let e=0,n=0
|
|
16893
16896
|
;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),
|
|
16894
16897
|
()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
|
|
16895
16898
|
}((()=>l(!0))),p((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
|
|
16896
16899
|
;return()=>window.clearTimeout(e)}),[]),c?null:o(hd,{asChild:!0
|
|
16897
|
-
},o(fd,r,i&&o(d,null,a.label," ",n)))},
|
|
16898
|
-
const{__scopeToast:n,...r}=e;return o(N.div,E({},r,{ref:t}))})),
|
|
16899
|
-
const{altText:n,...r}=e;return n?o(
|
|
16900
|
-
}))):null}));
|
|
16900
|
+
},o(fd,r,i&&o(d,null,a.label," ",n)))},bW=l(((e,t)=>{
|
|
16901
|
+
const{__scopeToast:n,...r}=e;return o(N.div,E({},r,{ref:t}))})),wW=l(((e,t)=>{
|
|
16902
|
+
const{altText:n,...r}=e;return n?o(zW,{altText:n,asChild:!0},o(CW,E({},r,{ref:t
|
|
16903
|
+
}))):null}));wW.propTypes={
|
|
16901
16904
|
altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")
|
|
16902
|
-
};const
|
|
16903
|
-
;return o(
|
|
16904
|
-
onClick:I(e.onClick,a.onClose)})))})),
|
|
16905
|
+
};const CW=l(((e,t)=>{const{__scopeToast:n,...r}=e,a=vW("ToastClose",n)
|
|
16906
|
+
;return o(zW,{asChild:!0},o(N.button,E({type:"button"},r,{ref:t,
|
|
16907
|
+
onClick:I(e.onClick,a.onClose)})))})),zW=l(((e,t)=>{
|
|
16905
16908
|
const{__scopeToast:n,altText:r,...a}=e;return o(N.div,E({
|
|
16906
16909
|
"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0
|
|
16907
|
-
},a,{ref:t}))}));function
|
|
16910
|
+
},a,{ref:t}))}));function MW(e){const t=[]
|
|
16908
16911
|
;return Array.from(e.childNodes).forEach((e=>{
|
|
16909
16912
|
if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){
|
|
16910
16913
|
return e.nodeType===e.ELEMENT_NODE}(e)){
|
|
16911
16914
|
const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude
|
|
16912
16915
|
;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)
|
|
16913
|
-
}else t.push(...
|
|
16916
|
+
}else t.push(...MW(e))}})),t}function xW(e,t,n,{discrete:r}){
|
|
16914
16917
|
const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,
|
|
16915
16918
|
cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0
|
|
16916
|
-
}),r?F(o,a):o.dispatchEvent(a)}const
|
|
16919
|
+
}),r?F(o,a):o.dispatchEvent(a)}const EW=(e,t,n=0)=>{
|
|
16917
16920
|
const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o
|
|
16918
|
-
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function
|
|
16921
|
+
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function SW(e){
|
|
16919
16922
|
const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
|
|
16920
16923
|
acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
|
|
16921
16924
|
;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
|
|
16922
|
-
}});for(;n.nextNode();)t.push(n.currentNode);return t}function
|
|
16925
|
+
}});for(;n.nextNode();)t.push(n.currentNode);return t}function _W(e){
|
|
16923
16926
|
const t=document.activeElement
|
|
16924
16927
|
;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}
|
|
16925
|
-
const
|
|
16928
|
+
const HW=dW,DW=fW,AW=bW,LW=wW,VW=Or(lW)``;Or.div`
|
|
16926
16929
|
border-top: 4px solid;
|
|
16927
|
-
`;const
|
|
16930
|
+
`;const kW=Or(DW)`
|
|
16928
16931
|
direction: ${({theme:e})=>e.direction};
|
|
16929
16932
|
&[data-state='open']:nth-last-of-type(1) {
|
|
16930
16933
|
z-index: ${({theme:e})=>(e.zIndex.snackbar||Yo.snackbar)-1};
|
|
@@ -16971,7 +16974,7 @@ const _W=uW,HW=pW,DW=yW,AW=bW,LW=Or(iW)``;Or.div`
|
|
|
16971
16974
|
|
|
16972
16975
|
width: 400px;
|
|
16973
16976
|
transition: all 0.3s ease-in-out;
|
|
16974
|
-
`,
|
|
16977
|
+
`,TW=Or(AW)`
|
|
16975
16978
|
text-align: ${({theme:e})=>"ltr"===e.direction?"left":"right"};
|
|
16976
16979
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16977
16980
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
@@ -16979,7 +16982,7 @@ const _W=uW,HW=pW,DW=yW,AW=bW,LW=Or(iW)``;Or.div`
|
|
|
16979
16982
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
16980
16983
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
16981
16984
|
flex: 1;
|
|
16982
|
-
`,
|
|
16985
|
+
`,PW=Or(LW)``,IW=Or(HW)`
|
|
16983
16986
|
position: fixed;
|
|
16984
16987
|
top: 16px;
|
|
16985
16988
|
display: flex;
|
|
@@ -17011,13 +17014,13 @@ const _W=uW,HW=pW,DW=yW,AW=bW,LW=Or(iW)``;Or.div`
|
|
|
17011
17014
|
animation-play-state: paused;
|
|
17012
17015
|
}
|
|
17013
17016
|
}
|
|
17014
|
-
`,
|
|
17017
|
+
`,RW=Or.div`
|
|
17015
17018
|
direction: ${({theme:e})=>e.direction};
|
|
17016
17019
|
display: flex;
|
|
17017
17020
|
align-items: center;
|
|
17018
17021
|
padding: 16px;
|
|
17019
17022
|
gap: 8px;
|
|
17020
|
-
`,
|
|
17023
|
+
`,OW=Or.div`
|
|
17021
17024
|
height: 4px;
|
|
17022
17025
|
background-color: ${({theme:e,toastType:t="success"})=>e.colors.text.semantic[t]};
|
|
17023
17026
|
border-radius: 4px 4px 0 0;
|
|
@@ -17028,20 +17031,20 @@ const _W=uW,HW=pW,DW=yW,AW=bW,LW=Or(iW)``;Or.div`
|
|
|
17028
17031
|
${"focus"===t?"running":"paused"};
|
|
17029
17032
|
will-change: width;
|
|
17030
17033
|
`}
|
|
17031
|
-
`,
|
|
17034
|
+
`,NW=()=>{const[e,t]=f(!1);return p((()=>{
|
|
17032
17035
|
t(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
|
|
17033
|
-
}),[]),{isBrowser:e,isServer:!e}},
|
|
17034
|
-
;return t.setAttribute("id",e),t}
|
|
17036
|
+
}),[]),{isBrowser:e,isServer:!e}},FW=e=>{const t=document.createElement("div")
|
|
17037
|
+
;return t.setAttribute("id",e),t},$W=e=>{const n=Hr()
|
|
17035
17038
|
;return t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
17036
17039
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
17037
17040
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
17038
17041
|
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",
|
|
17039
|
-
fill:n.colors.text.semantic.error}))}
|
|
17042
|
+
fill:n.colors.text.semantic.error}))},BW=e=>{const n=Hr()
|
|
17040
17043
|
;return t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
17041
17044
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
17042
17045
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
17043
17046
|
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",
|
|
17044
|
-
fill:n.colors.text.semantic.success}))},
|
|
17047
|
+
fill:n.colors.text.semantic.success}))},jW=e=>{const n=Hr()
|
|
17045
17048
|
;return t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
17046
17049
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
17047
17050
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -17050,34 +17053,34 @@ fill:n.colors.text.semantic.warning}),t.createElement("path",{
|
|
|
17050
17053
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
17051
17054
|
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",
|
|
17052
17055
|
fill:n.colors.text.semantic.warning}))
|
|
17053
|
-
},
|
|
17054
|
-
const s=Hr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:p}=t.useContext(
|
|
17056
|
+
},UW=({index:e,customIcon:n,id:r,fixed:o,text:a,showProgress:i=!1,delay:l=3e3,type:c="info"})=>{
|
|
17057
|
+
const s=Hr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:p}=t.useContext(JY)??{},f=t.useRef(null),[m,v]=t.useState(!1)
|
|
17055
17058
|
;t.useEffect((()=>{const e=window.setTimeout((()=>{
|
|
17056
17059
|
o||m&&p||h||u((e=>e.filter((e=>e.id!==r))))}),l);return()=>clearTimeout(e)
|
|
17057
|
-
}),[l,o,r,u,m,p,h]);const g={success:t.createElement(
|
|
17058
|
-
fill:s.colors.text.semantic.success}),warning:t.createElement(
|
|
17059
|
-
fill:s.colors.text.semantic.warning}),error:t.createElement(
|
|
17060
|
+
}),[l,o,r,u,m,p,h]);const g={success:t.createElement(BW,{
|
|
17061
|
+
fill:s.colors.text.semantic.success}),warning:t.createElement(jW,{
|
|
17062
|
+
fill:s.colors.text.semantic.warning}),error:t.createElement($W,{
|
|
17060
17063
|
fill:s.colors.text.semantic.error}),info:t.createElement(Ho,{
|
|
17061
17064
|
fill:s.colors.text.semantic.info})}
|
|
17062
|
-
;return t.createElement(t.Fragment,null,t.createElement(
|
|
17065
|
+
;return t.createElement(t.Fragment,null,t.createElement(kW,{role:"alert",
|
|
17063
17066
|
"aria-live":"polite",ref:f,toastType:c,dir:s.direction,style:o||!i?{
|
|
17064
17067
|
borderTop:"none"}:void 0,toastIndex:e,
|
|
17065
17068
|
className:`ToastRoot Toast-${r??""}`.trim(),duration:o?1/0:l,
|
|
17066
17069
|
onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
|
|
17067
|
-
e||u((e=>e.filter((e=>e.id!==r))))}},t.createElement(
|
|
17070
|
+
e||u((e=>e.filter((e=>e.id!==r))))}},t.createElement(OW,{
|
|
17068
17071
|
className:"ToastProgress",windowState:d,toastType:c,delay:!o&&i?l:"none"
|
|
17069
|
-
}),t.createElement(
|
|
17070
|
-
},a),t.createElement(
|
|
17072
|
+
}),t.createElement(RW,null,n??g[c],t.createElement(TW,{className:"ToastTitle"
|
|
17073
|
+
},a),t.createElement(PW,{className:"ToastAction",asChild:!0,altText:"Close",
|
|
17071
17074
|
"aria-label":"Close"},t.createElement(aa,null,t.createElement(Mo,{
|
|
17072
|
-
fill:s.colors.text.primary}))))))},
|
|
17073
|
-
const t=`ui-${e}`,{isBrowser:n}=
|
|
17074
|
-
const e=document.querySelector(`#${t}`),n=e||
|
|
17075
|
+
fill:s.colors.text.primary}))))))},YW=()=>{const e=((e=Kj())=>{
|
|
17076
|
+
const t=`ui-${e}`,{isBrowser:n}=NW(),[r,o]=f(n?FW(t):null);return p((()=>{
|
|
17077
|
+
const e=document.querySelector(`#${t}`),n=e||FW(t)
|
|
17075
17078
|
;e||document.body.appendChild(n),o(n)}),[]),r
|
|
17076
|
-
})("toast"),{toasts:n}=t.useContext(
|
|
17077
|
-
;return e?M(t.createElement(t.Fragment,null,t.createElement(
|
|
17078
|
-
swipeDirection:"up"},n.map(((e,n)=>t.createElement(
|
|
17079
|
-
index:n}))),t.createElement(
|
|
17080
|
-
},
|
|
17079
|
+
})("toast"),{toasts:n}=t.useContext(JY)??{}
|
|
17080
|
+
;return e?M(t.createElement(t.Fragment,null,t.createElement(VW,{
|
|
17081
|
+
swipeDirection:"up"},n.map(((e,n)=>t.createElement(UW,{key:`Toast-${e.id}`,...e,
|
|
17082
|
+
index:n}))),t.createElement(IW,{className:"ToastViewport"}))),e):null
|
|
17083
|
+
},WW=({children:e,retainOnHover:n=!0,retainOnWindowBlur:r=!1})=>{
|
|
17081
17084
|
const[o,a]=t.useState("focus"),[i,l]=t.useState([]),c=t.useCallback((e=>{
|
|
17082
17085
|
l((t=>[{...e,id:Kj(),state:"open"},...t]))}),[]),s=t.useCallback((e=>{
|
|
17083
17086
|
l((t=>e(t)))}),[]),u=t.useMemo((()=>({toasts:i,addToast:c,windowState:o,
|
|
@@ -17086,48 +17089,48 @@ updateToasts:s,retainOnWindowBlur:r,retainOnHover:n})),[i,c,o,s,n,r])
|
|
|
17086
17089
|
a("focus")}),!1),window.addEventListener("blur",(()=>{a("blur")}),!1)),()=>{
|
|
17087
17090
|
r&&(window.removeEventListener("focus",(()=>{})),
|
|
17088
17091
|
window.removeEventListener("blur",(()=>{})))
|
|
17089
|
-
})),[r]),t.createElement(
|
|
17090
|
-
},
|
|
17091
|
-
;var
|
|
17092
|
+
})),[r]),t.createElement(JY.Provider,{value:u},t.createElement(YW,null),e)
|
|
17093
|
+
},GW=()=>{const{toasts:e,addToast:n}=t.useContext(JY)??{};return[e,n]}
|
|
17094
|
+
;var KW=Fr`
|
|
17092
17095
|
* {
|
|
17093
17096
|
box-sizing: border-box;
|
|
17094
17097
|
/* direction: ${({theme:e})=>e.direction}; */
|
|
17095
17098
|
}
|
|
17096
|
-
`;const
|
|
17097
|
-
},t.createElement(
|
|
17098
|
-
height:4.3},md:{width:8,height:5.73},lg:{width:10,height:7.16}},
|
|
17099
|
+
`;const qW=e=>t.createElement(Dr,{theme:e.theme
|
|
17100
|
+
},t.createElement(KW,null),t.createElement(WW,null,e.children)),ZW={sm:{width:6,
|
|
17101
|
+
height:4.3},md:{width:8,height:5.73},lg:{width:10,height:7.16}},XW={sm:{
|
|
17099
17102
|
width:4.5,height:4.5},md:{width:6,height:6},lg:{width:8,height:8}
|
|
17100
|
-
},
|
|
17103
|
+
},JW="Switch",[QW,eG]=S(JW),[tG,nG]=QW(JW),rG=l(((e,t)=>{
|
|
17101
17104
|
const{__scopeSwitch:n,name:r,checked:a,defaultChecked:i,required:l,disabled:c,value:s="on",onCheckedChange:u,...d}=e,[p,m]=f(null),v=D(t,(e=>m(e))),g=h(!1),y=!p||Boolean(p.closest("form")),[b=!1,w]=O({
|
|
17102
|
-
prop:a,defaultProp:i,onChange:u});return o(
|
|
17105
|
+
prop:a,defaultProp:i,onChange:u});return o(tG,{scope:n,checked:b,disabled:c
|
|
17103
17106
|
},o(N.button,E({type:"button",role:"switch","aria-checked":b,"aria-required":l,
|
|
17104
|
-
"data-state":
|
|
17107
|
+
"data-state":aG(b),"data-disabled":c?"":void 0,disabled:c,value:s},d,{ref:v,
|
|
17105
17108
|
onClick:I(e.onClick,(e=>{
|
|
17106
17109
|
w((e=>!e)),y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())
|
|
17107
|
-
}))})),y&&o(
|
|
17108
|
-
required:l,disabled:c,style:{transform:"translateX(-100%)"}}))})),
|
|
17110
|
+
}))})),y&&o(oG,{control:p,bubbles:!g.current,name:r,value:s,checked:b,
|
|
17111
|
+
required:l,disabled:c,style:{transform:"translateX(-100%)"}}))})),oG=e=>{
|
|
17109
17112
|
const{control:t,checked:n,bubbles:r=!0,...a}=e,i=h(null),l=pd(n),c=Yu(t)
|
|
17110
17113
|
;return p((()=>{
|
|
17111
17114
|
const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
17112
17115
|
;if(l!==n&&o){const t=new Event("click",{bubbles:r})
|
|
17113
17116
|
;o.call(e,n),e.dispatchEvent(t)}}),[l,n,r]),o("input",E({type:"checkbox",
|
|
17114
17117
|
"aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:i,style:{...e.style,...c,
|
|
17115
|
-
position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function
|
|
17116
|
-
return e?"checked":"unchecked"}const
|
|
17117
|
-
const{__scopeSwitch:n,...r}=e,a=
|
|
17118
|
-
"data-state":
|
|
17119
|
-
})),
|
|
17118
|
+
position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function aG(e){
|
|
17119
|
+
return e?"checked":"unchecked"}const iG=l(((e,t)=>{
|
|
17120
|
+
const{__scopeSwitch:n,...r}=e,a=nG("SwitchThumb",n);return o(N.span,E({
|
|
17121
|
+
"data-state":aG(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))
|
|
17122
|
+
})),lG={sm:{width:28,height:12,thumb:16,offTransform:[-2,-2],onTransform:[14,-2]
|
|
17120
17123
|
},md:{width:36,height:16,thumb:20,offTransform:[-2,-2],onTransform:[18,-2]},lg:{
|
|
17121
17124
|
width:44,height:20,thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}
|
|
17122
|
-
},
|
|
17125
|
+
},cG=Or(rG)`
|
|
17123
17126
|
margin: 0;
|
|
17124
17127
|
padding: 0;
|
|
17125
17128
|
outline: 0;
|
|
17126
17129
|
border: none;
|
|
17127
17130
|
position: relative;
|
|
17128
|
-
width: ${({size:e})=>
|
|
17129
|
-
height: ${({size:e})=>
|
|
17130
|
-
border-radius: ${({size:e})=>
|
|
17131
|
+
width: ${({size:e})=>lG[e].width}px;
|
|
17132
|
+
height: ${({size:e})=>lG[e].height}px;
|
|
17133
|
+
border-radius: ${({size:e})=>lG[e].height/2}px;
|
|
17131
17134
|
&[data-disabled] {
|
|
17132
17135
|
opacity: 0.5;
|
|
17133
17136
|
}
|
|
@@ -17147,16 +17150,16 @@ width:44,height:20,thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}
|
|
|
17147
17150
|
}
|
|
17148
17151
|
}
|
|
17149
17152
|
}
|
|
17150
|
-
`,
|
|
17153
|
+
`,sG=Or(iG)`
|
|
17151
17154
|
display: grid;
|
|
17152
17155
|
place-content: center;
|
|
17153
|
-
width: ${({size:e})=>
|
|
17154
|
-
height: ${({size:e})=>
|
|
17156
|
+
width: ${({size:e})=>lG[e].thumb}px;
|
|
17157
|
+
height: ${({size:e})=>lG[e].thumb}px;
|
|
17155
17158
|
border-radius: 50%;
|
|
17156
17159
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
17157
17160
|
transition: transform 100ms;
|
|
17158
17161
|
transform: translate(
|
|
17159
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
17162
|
+
${({theme:e,size:t})=>("ltr"===e.direction?lG[t].offTransform:lG[t].onTransform).map((e=>`${e}px`)).join(",")}
|
|
17160
17163
|
);
|
|
17161
17164
|
will-change: transform;
|
|
17162
17165
|
overflow: hidden;
|
|
@@ -17178,21 +17181,21 @@ width:44,height:20,thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}
|
|
|
17178
17181
|
}
|
|
17179
17182
|
&[data-state='checked'] {
|
|
17180
17183
|
transform: translate(
|
|
17181
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
17184
|
+
${({theme:e,size:t})=>("ltr"===e.direction?lG[t].onTransform:lG[t].offTransform).map((e=>`${e}px`)).join(",")}
|
|
17182
17185
|
);
|
|
17183
17186
|
border: 1px solid ${({theme:e})=>e.colors.common.accent};
|
|
17184
17187
|
svg.toggle-off {
|
|
17185
17188
|
display: none;
|
|
17186
17189
|
}
|
|
17187
17190
|
}
|
|
17188
|
-
`,
|
|
17189
|
-
const s=Hr();return t.createElement(
|
|
17190
|
-
required:a,"aria-required":a,size:i,...c},t.createElement(
|
|
17191
|
+
`,uG=({handleChange:e,hasIcon:n=!1,on:r,isErrored:o,isRequired:a,size:i="md",thumbProps:l,...c})=>{
|
|
17192
|
+
const s=Hr();return t.createElement(cG,{checked:r,onCheckedChange:t=>{e?.(t)},
|
|
17193
|
+
required:a,"aria-required":a,size:i,...c},t.createElement(sG,{...l,size:i
|
|
17191
17194
|
},n&&t.createElement(xo,{fill:s.colors.common.accent,className:"toggle-on",
|
|
17192
|
-
...
|
|
17193
|
-
className:"toggle-off",...
|
|
17194
|
-
},[
|
|
17195
|
-
const{__scopeTooltip:n,...r}=e,a=
|
|
17195
|
+
...ZW[i]}),n&&t.createElement(Mo,{fill:s.colors.text.primary,
|
|
17196
|
+
className:"toggle-off",...XW[i]})))
|
|
17197
|
+
},[dG,hG]=S("Tooltip",[Ku]),pG=Ku(),fG=700,mG="tooltip.open",[vG,gG]=dG("TooltipProvider"),yG="Tooltip",[bG,wG]=dG(yG),CG="TooltipTrigger",zG=l(((e,t)=>{
|
|
17198
|
+
const{__scopeTooltip:n,...r}=e,a=wG(CG,n),l=gG(CG,n),c=pG(n),s=D(t,h(null),a.onTriggerChange),u=h(!1),d=h(!1),f=i((()=>u.current=!1),[])
|
|
17196
17199
|
;return p((()=>()=>document.removeEventListener("pointerup",f)),[f]),o(sd,E({
|
|
17197
17200
|
asChild:!0},c),o(N.button,E({"aria-describedby":a.open?a.contentId:void 0,
|
|
17198
17201
|
"data-state":a.stateAttribute},r,{ref:s,onPointerMove:I(e.onPointerMove,(e=>{
|
|
@@ -17201,12 +17204,12 @@ d.current=!0))})),onPointerLeave:I(e.onPointerLeave,(()=>{
|
|
|
17201
17204
|
a.onTriggerLeave(),d.current=!1})),onPointerDown:I(e.onPointerDown,(()=>{
|
|
17202
17205
|
u.current=!0,document.addEventListener("pointerup",f,{once:!0})})),
|
|
17203
17206
|
onFocus:I(e.onFocus,(()=>{u.current||a.onOpen()})),onBlur:I(e.onBlur,a.onClose),
|
|
17204
|
-
onClick:I(e.onClick,a.onClose)})))})),
|
|
17205
|
-
forceMount:void 0}),
|
|
17206
|
-
const n=
|
|
17207
|
-
;return o(B,{present:r||l.open},l.disableHoverableContent?o(
|
|
17208
|
-
ref:t})):o(
|
|
17209
|
-
const n=
|
|
17207
|
+
onClick:I(e.onClick,a.onClose)})))})),MG="TooltipPortal",[xG,EG]=dG(MG,{
|
|
17208
|
+
forceMount:void 0}),SG="TooltipContent",_G=l(((e,t)=>{
|
|
17209
|
+
const n=EG(SG,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,l=wG(SG,e.__scopeTooltip)
|
|
17210
|
+
;return o(B,{present:r||l.open},l.disableHoverableContent?o(LG,E({side:a},i,{
|
|
17211
|
+
ref:t})):o(HG,E({side:a},i,{ref:t})))})),HG=l(((e,t)=>{
|
|
17212
|
+
const n=wG(SG,e.__scopeTooltip),r=gG(SG,e.__scopeTooltip),a=h(null),l=D(t,a),[c,s]=f(null),{trigger:u,onClose:d}=n,m=a.current,{onPointerInTransitChange:v}=r,g=i((()=>{
|
|
17210
17213
|
s(null),v(!1)}),[v]),y=i(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,
|
|
17211
17214
|
y:e.clientY},o=function(e,t){
|
|
17212
17215
|
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)
|
|
@@ -17241,11 +17244,11 @@ const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){
|
|
|
17241
17244
|
const i=t[e].x,l=t[e].y,c=t[a].x,s=t[a].y
|
|
17242
17245
|
;l>r!=s>r&&n<(c-i)*(r-l)/(s-l)+i&&(o=!o)}return o}(n,c);r?g():o&&(g(),d())}
|
|
17243
17246
|
;return document.addEventListener("pointermove",e),
|
|
17244
|
-
()=>document.removeEventListener("pointermove",e)}}),[u,m,c,d,g]),o(
|
|
17245
|
-
ref:l}))})),[
|
|
17246
|
-
const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=e,s=
|
|
17247
|
-
;return p((()=>(document.addEventListener(
|
|
17248
|
-
()=>document.removeEventListener(
|
|
17247
|
+
()=>document.removeEventListener("pointermove",e)}}),[u,m,c,d,g]),o(LG,E({},e,{
|
|
17248
|
+
ref:l}))})),[DG,AG]=dG(yG,{isInside:!1}),LG=l(((e,t)=>{
|
|
17249
|
+
const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=e,s=wG(SG,n),u=pG(n),{onClose:d}=s
|
|
17250
|
+
;return p((()=>(document.addEventListener(mG,d),
|
|
17251
|
+
()=>document.removeEventListener(mG,d))),[d]),p((()=>{if(s.trigger){const e=e=>{
|
|
17249
17252
|
const t=e.target;null!=t&&t.contains(s.trigger)&&d()}
|
|
17250
17253
|
;return window.addEventListener("scroll",e,{capture:!0
|
|
17251
17254
|
}),()=>window.removeEventListener("scroll",e,{capture:!0})}
|
|
@@ -17258,35 +17261,35 @@ onDismiss:d},o(ud,E({"data-state":s.stateAttribute},u,c,{ref:t,style:{
|
|
|
17258
17261
|
"--radix-tooltip-content-available-height":"var(--radix-popper-available-height)",
|
|
17259
17262
|
"--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
|
|
17260
17263
|
"--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}
|
|
17261
|
-
}),o(V,null,r),o(
|
|
17262
|
-
},a||r))))}));const
|
|
17263
|
-
const{__scopeTooltip:t,delayDuration:n=
|
|
17264
|
-
;return p((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),o(
|
|
17264
|
+
}),o(V,null,r),o(DG,{scope:n,isInside:!0},o(md,{id:s.contentId,role:"tooltip"
|
|
17265
|
+
},a||r))))}));const VG=e=>{
|
|
17266
|
+
const{__scopeTooltip:t,delayDuration:n=fG,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:l}=e,[c,s]=f(!0),u=h(!1),d=h(0)
|
|
17267
|
+
;return p((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),o(vG,{
|
|
17265
17268
|
scope:t,isOpenDelayed:c,delayDuration:n,onOpen:i((()=>{
|
|
17266
17269
|
window.clearTimeout(d.current),s(!1)}),[]),onClose:i((()=>{
|
|
17267
17270
|
window.clearTimeout(d.current),d.current=window.setTimeout((()=>s(!0)),r)
|
|
17268
17271
|
}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:i((e=>{u.current=e
|
|
17269
|
-
}),[]),disableHoverableContent:a},l)},
|
|
17270
|
-
const{__scopeTooltip:t,children:n,open:a,defaultOpen:l=!1,onOpenChange:c,disableHoverableContent:s,delayDuration:u}=e,d=
|
|
17272
|
+
}),[]),disableHoverableContent:a},l)},kG=e=>{
|
|
17273
|
+
const{__scopeTooltip:t,children:n,open:a,defaultOpen:l=!1,onOpenChange:c,disableHoverableContent:s,delayDuration:u}=e,d=gG(yG,e.__scopeTooltip),m=pG(t),[v,g]=f(null),y=W(),b=h(0),w=null!=s?s:d.disableHoverableContent,C=null!=u?u:d.delayDuration,z=h(!1),[M=!1,x]=O({
|
|
17271
17274
|
prop:a,defaultProp:l,onChange:e=>{
|
|
17272
|
-
e?(d.onOpen(),document.dispatchEvent(new CustomEvent(
|
|
17275
|
+
e?(d.onOpen(),document.dispatchEvent(new CustomEvent(mG))):d.onClose(),
|
|
17273
17276
|
null==c||c(e)}
|
|
17274
17277
|
}),E=r((()=>M?z.current?"delayed-open":"instant-open":"closed"),[M]),S=i((()=>{
|
|
17275
17278
|
window.clearTimeout(b.current),z.current=!1,x(!0)}),[x]),_=i((()=>{
|
|
17276
17279
|
window.clearTimeout(b.current),x(!1)}),[x]),H=i((()=>{
|
|
17277
17280
|
window.clearTimeout(b.current),b.current=window.setTimeout((()=>{
|
|
17278
17281
|
z.current=!0,x(!0)}),C)}),[C,x])
|
|
17279
|
-
;return p((()=>()=>window.clearTimeout(b.current)),[]),o(cd,m,o(
|
|
17282
|
+
;return p((()=>()=>window.clearTimeout(b.current)),[]),o(cd,m,o(bG,{scope:t,
|
|
17280
17283
|
contentId:y,open:M,stateAttribute:E,trigger:v,onTriggerChange:g,
|
|
17281
17284
|
onTriggerEnter:i((()=>{d.isOpenDelayed?H():S()}),[d.isOpenDelayed,H,S]),
|
|
17282
17285
|
onTriggerLeave:i((()=>{w?_():window.clearTimeout(b.current)}),[_,w]),onOpen:S,
|
|
17283
|
-
onClose:_,disableHoverableContent:w},n))},
|
|
17284
|
-
const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,i=
|
|
17285
|
-
;return o(
|
|
17286
|
-
container:a},r)))},
|
|
17287
|
-
;return
|
|
17286
|
+
onClose:_,disableHoverableContent:w},n))},TG=zG,PG=e=>{
|
|
17287
|
+
const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,i=wG(MG,t)
|
|
17288
|
+
;return o(xG,{scope:t,forceMount:n},o(B,{present:n||i.open},o(hd,{asChild:!0,
|
|
17289
|
+
container:a},r)))},IG=_G,RG=Or(l(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=pG(n)
|
|
17290
|
+
;return AG("TooltipArrow",n).isInside?null:o(dd,E({},a,r,{ref:t}))})))`
|
|
17288
17291
|
fill: ${({theme:e})=>e.colors.fill.inverse};
|
|
17289
|
-
`,
|
|
17292
|
+
`,OG=Or(IG)`
|
|
17290
17293
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17291
17294
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
17292
17295
|
font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
|
|
@@ -17318,19 +17321,19 @@ container:a},r)))},PG=SG,IG=Or(l(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=hG(n)
|
|
|
17318
17321
|
&[data-state='closed'] {
|
|
17319
17322
|
animation-name: ${Ur};
|
|
17320
17323
|
}
|
|
17321
|
-
`,
|
|
17324
|
+
`,NG=Or(VG)``,FG=Or(kG)``,$G=Or(TG)`
|
|
17322
17325
|
color: inherit;
|
|
17323
|
-
|
|
17324
|
-
const h=Hr(),[p="bottom",f="center"]=e.split("-");return t.createElement(
|
|
17325
|
-
delayDuration:c,...u},t.createElement(
|
|
17326
|
-
},t.createElement(
|
|
17326
|
+
`,BG=Or(PG)``,jG=({position:e="bottom",label:n,html:r,style:o={},children:a,className:i="",disabled:l=!1,delay:c=300,arrow:s=!0,providerProps:u,rootProps:d})=>{
|
|
17327
|
+
const h=Hr(),[p="bottom",f="center"]=e.split("-");return t.createElement(NG,{
|
|
17328
|
+
delayDuration:c,...u},t.createElement(FG,{...d,open:!l&&void 0
|
|
17329
|
+
},t.createElement($G,{className:"TooltipTrigger",asChild:!0,
|
|
17327
17330
|
"aria-label":"string"==typeof a?a:"TooltipTrigger",type:"button"
|
|
17328
17331
|
},t.createElement(aa,{className:i,type:"button"
|
|
17329
|
-
},a)),t.createElement(
|
|
17332
|
+
},a)),t.createElement(BG,null,t.createElement(OG,{forceMount:!0,
|
|
17330
17333
|
"data-tooltip-content":!0,className:"TooltipContent",style:o,sideOffset:5,
|
|
17331
17334
|
"aria-disabled":l,"aria-live":"polite",side:p,align:f,dir:h.direction
|
|
17332
|
-
},n?t.createElement(t.Fragment,null,n):t.createElement(t.Fragment,null,r),s&&t.createElement(
|
|
17333
|
-
};var
|
|
17335
|
+
},n?t.createElement(t.Fragment,null,n):t.createElement(t.Fragment,null,r),s&&t.createElement(RG,null)))))
|
|
17336
|
+
};var UG=Fr`
|
|
17334
17337
|
|
|
17335
17338
|
div:has( > div[data-tooltip-content]){
|
|
17336
17339
|
z-index: ${({theme:e})=>e.zIndex.tooltip||Yo.tooltip} !important;
|
|
@@ -17340,10 +17343,10 @@ div:has( > div[data-popover-content]){
|
|
|
17340
17343
|
z-index: ${({theme:e})=>e.zIndex.popover||Yo.popover} !important;
|
|
17341
17344
|
}
|
|
17342
17345
|
|
|
17343
|
-
`,
|
|
17346
|
+
`,YG=Object.freeze({__proto__:null,allPathsLoader:function(e,t){
|
|
17344
17347
|
return $e(void 0,void 0,void 0,(function(){return Be(this,(function(n){
|
|
17345
17348
|
switch(n.label){case 0:return[4,Promise.resolve().then((function(){return L_}))]
|
|
17346
|
-
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),
|
|
17349
|
+
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),WG=Object.freeze({
|
|
17347
17350
|
__proto__:null,splitPathsBySizeLoader:function(e,t){
|
|
17348
17351
|
return $e(void 0,void 0,void 0,(function(){var n,r;return Be(this,(function(o){
|
|
17349
17352
|
switch(o.label){case 0:
|
|
@@ -17351,4 +17354,4 @@ return n=z_(e),t!==x_.STANDARD?[3,2]:[4,Promise.resolve().then((function(){
|
|
|
17351
17354
|
return S_}))];case 1:return r=o.sent(),[3,4];case 2:
|
|
17352
17355
|
return[4,Promise.resolve().then((function(){return H_}))];case 3:
|
|
17353
17356
|
r=o.sent(),o.label=4;case 4:return[2,r[n]]}}))}))}})
|
|
17354
|
-
;export{Io as Accordion,pa as Alert,jm as AutoComplete,ty as BoxedRadio,Wm as Button,xg as ButtonDropdown,ta as CardActions,ea as CardContent,ra as CardDescription,oa as CardText,na as CardTitle,my as Checkbox,_o as Checkmark,zo as ChevronUp,Cb as Confirmation,Mo as CrossIcon,xF as DatePicker,SF as DateRangePicker,EF as DateTimePicker,_F as DateTimeRangePicker,Ab as Drawer,Lb as Dropdown,mp as DropdownInputItem,Tb as DropdownItem,Mg as DropdownMenuItem,So as ErrorIcon,
|
|
17357
|
+
;export{Io as Accordion,pa as Alert,jm as AutoComplete,ty as BoxedRadio,Wm as Button,xg as ButtonDropdown,ta as CardActions,ea as CardContent,ra as CardDescription,oa as CardText,na as CardTitle,my as Checkbox,_o as Checkmark,zo as ChevronUp,Cb as Confirmation,Mo as CrossIcon,xF as DatePicker,SF as DateRangePicker,EF as DateTimePicker,_F as DateTimeRangePicker,Ab as Drawer,Lb as Dropdown,mp as DropdownInputItem,Tb as DropdownItem,Mg as DropdownMenuItem,So as ErrorIcon,UG as FreemiumUIGlobalStyles,Qo as FreshLink,Jo as IconButton,Ho as InfoIcon,qc as Input,Zo as InputLabel,ts as Loader,Pb as Menu,Do as Minus,jb as Modal,Ao as MoreVertical,aw as MultiSelectDropdown,r$ as Popover,n$ as PopoverClose,e$ as PopoverTrigger,s$ as Radio,u$ as RadioGroup,mg as RadixMenuItem,ip as RadixSelectItem,Jj as Reorder,Xo as RequiredIndicator,qo as StyledLabel,TY as Table,XY as Tabs,KY as TabsContent,qY as TabsList,GY as TabsRoot,ZY as TabsTrigger,ow as Tag,Zc as TextArea,qW as ThemeProvider,Ko as Themes,xo as TickIcon,DF as TimePicker,WW as ToastProvider,uG as Toggle,jG as Tooltip,aa as TriggerButtonWrapper,sa as Typography,Eo as Warning,la as dialogContentMixin,ia as dialogOverlayMixin,GW as useToasts};
|