efficient-shell 13.13.0 → 13.15.0
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/README.md +12 -1
- package/dist/{Browser-H3A2AO7Q.js → Browser-KHMTFVKZ.js} +14 -14
- package/dist/Calculator-OKVS4UOJ.js +29 -0
- package/dist/CurrencyConverter-ZA2NGJWI.js +21 -0
- package/dist/{Files-YVC66K6X.js → Files-EN4DDZYV.js} +56 -56
- package/dist/Notepad-PHQNEUKW.js +24 -0
- package/dist/{PomodoroTimer-I575OSRR.js → PomodoroTimer-PW7BRZUJ.js} +48 -48
- package/dist/{Preview-UXATJW7C.js → Preview-OSQHIS3Z.js} +32 -32
- package/dist/Stock-2P4NWUNB.js +16 -0
- package/dist/{Weather-RPCD2UW3.js → Weather-7LIQ4POB.js} +21 -21
- package/dist/{WorldClock-AC3EUSVG.js → WorldClock-KHBYIJQZ.js} +4 -4
- package/dist/ai/index.js +47 -47
- package/dist/apps/index.js +1 -1
- package/dist/bin/browser-check.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/charts/ChartFrame.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/{chunk-6LDXTZGE.js → chunk-3OUG6QAD.js} +1 -1
- package/dist/{chunk-XRTH47EO.js → chunk-3QNZ7YGZ.js} +66 -66
- package/dist/chunk-42RCQEEJ.js +14 -0
- package/dist/{chunk-U7WDBCVV.js → chunk-4OBSVO6U.js} +1 -1
- package/dist/{chunk-3PLQKRD4.js → chunk-5HBAJ2UA.js} +14 -14
- package/dist/{chunk-EMRTVPQ5.js → chunk-6CDWPEND.js} +7 -7
- package/dist/{chunk-L3BECLHD.js → chunk-6LS6Q77E.js} +1 -1
- package/dist/{chunk-EHNQGKW4.js → chunk-7JG64RQW.js} +1 -1
- package/dist/{chunk-FT2YDMG7.js → chunk-A4WNUFLT.js} +1 -1
- package/dist/chunk-AOLJKOO6.js +28 -0
- package/dist/{chunk-NEHVW324.js → chunk-AWWNMSDN.js} +8 -8
- package/dist/chunk-BWJZTHZ6.js +1 -0
- package/dist/{chunk-2GMYO6ET.js → chunk-BWLC56GZ.js} +1 -1
- package/dist/chunk-CBUBDXJ2.js +1 -0
- package/dist/{chunk-S5N37QIV.js → chunk-CGKY4ZRA.js} +1 -1
- package/dist/{chunk-IG7JPSBG.js → chunk-D3T3JCUC.js} +1 -1
- package/dist/{chunk-B53VREFW.js → chunk-DVHRL3G6.js} +5 -5
- package/dist/chunk-EV5BEEVO.js +1 -0
- package/dist/chunk-F6UJLCMI.js +19 -0
- package/dist/chunk-FHNQC2MA.js +1 -0
- package/dist/{chunk-AHMYBYXJ.js → chunk-G4PPHQ23.js} +1 -1
- package/dist/chunk-G5UGCAWN.js +17 -0
- package/dist/{chunk-LURBH6G4.js → chunk-GKNF53YM.js} +1 -1
- package/dist/chunk-GSLZ46DJ.js +24 -0
- package/dist/{chunk-GITRDCHS.js → chunk-GURY4WS5.js} +1 -1
- package/dist/chunk-HNPJ3V3I.js +6 -0
- package/dist/{chunk-2QE6QD4Y.js → chunk-HVHIXX6O.js} +8 -8
- package/dist/{chunk-JPKNVTTK.js → chunk-I6JTDAOB.js} +1 -1
- package/dist/{chunk-YY7OFUT2.js → chunk-JFRBUVHX.js} +2 -2
- package/dist/chunk-KXPXLUNM.js +4 -0
- package/dist/chunk-LHHJHTWP.js +1 -0
- package/dist/{chunk-QQGNTDMO.js → chunk-LLYMOV4S.js} +1 -1
- package/dist/{chunk-AI4A7GYI.js → chunk-NISLELJF.js} +1 -1
- package/dist/{chunk-WIFK6TLB.js → chunk-NYKOATR5.js} +1 -1
- package/dist/chunk-O2PVZC5D.js +8 -0
- package/dist/{chunk-SR6DDTUN.js → chunk-QQK7HKNK.js} +1 -1
- package/dist/{chunk-RZJ63ZM4.js → chunk-QVQO3EFL.js} +9 -9
- package/dist/{chunk-6LYKIC7W.js → chunk-RZ3OQFOD.js} +6 -6
- package/dist/chunk-S25KELFW.js +11 -0
- package/dist/{chunk-JHGBFZHL.js → chunk-S6YEPA4I.js} +5 -5
- package/dist/{chunk-L3STE7JN.js → chunk-TTLVTJR6.js} +1 -1
- package/dist/{chunk-UKBXQXDZ.js → chunk-U6DRRCCG.js} +1 -1
- package/dist/{chunk-TNNH6F3V.js → chunk-UGEX7SVM.js} +7 -7
- package/dist/chunk-UVCMV2TL.js +1 -0
- package/dist/{chunk-PKXHAF43.js → chunk-WJ7U6TGK.js} +6 -6
- package/dist/{chunk-HK53EKZH.js → chunk-WLG7BE55.js} +1 -1
- package/dist/{chunk-WBXPA7TY.js → chunk-WP43XYL6.js} +1 -1
- package/dist/{chunk-JMGDGNM7.js → chunk-WU2ZA6J2.js} +1 -1
- package/dist/chunk-YDQBELHJ.js +6 -0
- package/dist/{chunk-YNVH2EIE.js → chunk-ZNKZ6J65.js} +3 -3
- package/dist/chunk-ZOCE74ED.js +2 -0
- package/dist/data/EntityList.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/data/statusColumn.d.ts +30 -0
- package/dist/data/statusColumn.js +1 -0
- package/dist/data/useColumnConfig.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/icons/brands.node.js +1 -1
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/payment.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +517 -517
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/Card.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/Dialog.d.ts +14 -4
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/Popover.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/StatusBadge.d.ts +7 -1
- package/dist/shell/StatusBadge.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.d.ts +2 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +4 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-3PVLP3UK.js +0 -29
- package/dist/CurrencyConverter-JLRIAP2Z.js +0 -21
- package/dist/Notepad-BCND3SM3.js +0 -24
- package/dist/Stock-EPJQJ3XE.js +0 -16
- package/dist/chunk-4S3E3VJH.js +0 -11
- package/dist/chunk-64RHGJXK.js +0 -4
- package/dist/chunk-6AUQWWUA.js +0 -17
- package/dist/chunk-AEEK74UI.js +0 -6
- package/dist/chunk-FQD6P6EZ.js +0 -4
- package/dist/chunk-GYPYOBG5.js +0 -19
- package/dist/chunk-JGKDWDVM.js +0 -27
- package/dist/chunk-NJD7HVTP.js +0 -14
- package/dist/chunk-NMP74ZCB.js +0 -1
- package/dist/chunk-PR3VNBQY.js +0 -28
- package/dist/chunk-RIG5FEVS.js +0 -1
- package/dist/chunk-S5AGWCMT.js +0 -1
- package/dist/chunk-VP64XZR6.js +0 -1
- package/dist/chunk-XSHDPG45.js +0 -9
- /package/dist/{chunk-JR2HHKVP.js → chunk-HOHHRNCB.js} +0 -0
- /package/dist/{chunk-CLEMKDRO.js → chunk-VG6BT2UG.js} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{useOverlayTarget as e,usePopupAnchor as i,usePopupLevel as t,usePopupLevelBindings as r,windowScrimStyle as o,OverlayLayerProvider as l,scrimHasCorners as n,CloseButton as d,popupLayerStyle as a}from"./chunk-ZOCE74ED.js";import{useDiscardGuard as s}from"./chunk-HOHHRNCB.js";import{dialogA11y as m}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as c}from"./chunk-7QSDPSXP.js";import{useFocusTrap as p,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as u,DESCRIPTION_TEXT as f,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{useHydrated as y}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as v}from"./chunk-TWVUQUUD.js";import{useRef as x,useId as w,useState as g,useEffect as k}from"react";import{createPortal as N}from"react-dom";import{jsxs as j,Fragment as C,jsx as H}from"react/jsx-runtime";var D={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},W={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function $(e,i){const t=window.innerHeight-(i.top+i.height);if("bottom"===e)return{left:i.left,width:i.width,bottom:t};const r={top:i.top,height:i.height};return"left"===e?{...r,left:i.left}:{...r,right:window.innerWidth-(i.left+i.width)}}function B({open:B,onClose:Z,side:E="right",size:O="md",title:T,description:U,footer:z,children:G,blocking:J=!1,dirty:P=!1,initialFocus:Q,"aria-label":S,"aria-labelledby":V,"aria-describedby":Y,className:A=""}){const F=x(null),I=w(),R=w(),X=w(),q=e(y()),[K,L]=g(null),M=s({open:B,dirty:P,onClose:Z,title:T,layer:K}),_=x(null),ee=i(B&&null!==q,_),ie=t(B&&null!==q,_),te=r(ie,K),re=o(ie),oe=null!==ie.host;if(c(B),p(F,B&&null!==q,Q,te),h(B),k(()=>{if(B)return v(()=>!te.current?.(document.activeElement)&&(J||M(),!0),()=>F.current)},[B,J,M,te]),!B||!q)return null;const le="bottom"===E,ne={...le?{maxHeight:"85vh"}:{},...ee?$(E,ee):{}};/* @__PURE__ */
|
|
2
|
+
return j(C,{children:[/* @__PURE__ */H("span",{ref:_,hidden:!0,"data-popup-anchor":""}),N(
|
|
3
|
+
/* @__PURE__ */H(l,{value:K,children:/* @__PURE__ */j("div",{ref:L,className:oe?"fixed inset-0 pointer-events-none":"fixed inset-0",style:a(ie),role:"presentation","data-overlay-layer":"",children:[
|
|
4
|
+
/* @__PURE__ */H("div",{className:"fixed bg-black/30 backdrop-blur-sm "+(oe?"pointer-events-auto"+(n(ie)?" rounded-(--radius-window)":""):"inset-0"),style:re??void 0,hidden:oe&&!re,onClick:J?void 0:M,"aria-hidden":"true","data-popup-scrim":oe?"window":"system"}),
|
|
5
|
+
/* @__PURE__ */j("div",{ref:F,...m({modal:!0,titleId:T?X:void 0,labelledBy:V,label:S}),"aria-describedby":Y??(U?R:G?I:void 0),"data-drawer-side":E,"data-popup-panel":"",style:ne,className:[`fixed flex flex-col ${b}`,oe?"pointer-events-auto":"",le?"":`w-full max-w-full ${D[O]}`,ee?"":W[E],le?"rounded-t-xl":"",A].filter(Boolean).join(" "),children:[T?/* @__PURE__ */j("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
|
|
6
|
+
/* @__PURE__ */j("div",{className:"min-w-0",children:[
|
|
7
|
+
/* @__PURE__ */H("h2",{id:X,className:u,children:T}),U&&/* @__PURE__ */H("p",{id:R,className:`mt-0.5 ${f}`,children:U})]}),!J&&/* @__PURE__ */H(d,{onClose:M})]}):!J&&/* @__PURE__ */H("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */H(d,{onClose:M})}),
|
|
8
|
+
/* @__PURE__ */j("div",{id:I,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[U&&!T&&/* @__PURE__ */H("p",{id:R,className:`mb-3 ${f} ${J?"":"pr-8"}`.trim(),children:U}),G]}),z&&/* @__PURE__ */H("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:z})]})]})}),q)]})}export{B as Drawer};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{SidebarLayout as e}from"./chunk-
|
|
1
|
+
import{SidebarLayout as e}from"./chunk-42RCQEEJ.js";import{Avatar as t}from"./chunk-W2TPXKCV.js";import{Input_default as a}from"./chunk-PT4GMPUB.js";import{Button_default as i}from"./chunk-EVYD6UFQ.js";import{useState as s}from"react";import{jsx as n,jsxs as l}from"react/jsx-runtime";var r=[{id:1,name:"Priya Patel",last:"Sounds good — shipping it now",time:"9:41",status:"online"},{id:2,name:"Design team",last:"Marco: updated the tokens",time:"9:12",status:"away"},{id:3,name:"Tom Becker",last:"Thanks!",time:"Yest",status:"offline"},{id:4,name:"Sara Lind",last:"See you Friday 🎉",time:"Yest",status:"busy"}],m=[{mine:!1,text:"Hey! Did the latest build go out?"},{mine:!0,text:"Just merged — deploying now."},{mine:!1,text:"Nice. Any breaking changes for the portal?"},{mine:!0,text:"Nope, fully additive. New components only."},{mine:!1,text:"Sounds good — shipping it now"}];function d(){const[d,o]=s(1),c=r.find(e=>e.id===d)??r[0];/* @__PURE__ */
|
|
2
2
|
return n("div",{className:"h-full",children:/* @__PURE__ */n(e,{side:"left",defaultWidth:260,sidebar:/* @__PURE__ */n("div",{className:"h-full overflow-auto",children:r.map(e=>/* @__PURE__ */l("button",{onClick:()=>o(e.id),className:"flex w-full items-center gap-3 border-b border-gray-100 px-3 py-3 text-left hover:bg-gray-50 "+(e.id===d?"bg-blue-50/50":""),children:[
|
|
3
3
|
/* @__PURE__ */n(t,{name:e.name,status:e.status}),
|
|
4
4
|
/* @__PURE__ */l("div",{className:"min-w-0 flex-1",children:[
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{Popover as e}from"./chunk-
|
|
2
|
-
return v("button",{ref:l,type:o,"aria-pressed":a,className:N({size:r,selected:a,className:n}),...t,children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"absolute inset-0",style:C(e)})})}),z=(e,r,a)=>Math.min(a,Math.max(r,e)),D=e=>"string"==typeof e?{value:e}:e;function I(e,r,a){const n=a?.1:.01,o={ArrowLeft:[-n,0],ArrowRight:[n,0],ArrowDown:[0,-n],ArrowUp:[0,n]}[r];return o?{...e,s:z(e.s+o[0],0,1),v:z(e.v+o[1],0,1)}:null}function A(e,r,a){const n=a?10:1;switch(r){case"ArrowLeft":case"ArrowDown":return z(e-n,0,359);case"ArrowRight":case"ArrowUp":return z(e+n,0,359);case"PageDown":return z(e-10,0,359);case"PageUp":return z(e+10,0,359);case"Home":return 0;case"End":return 359;default:return null}}var M={boxShadow:"0 0 0 2px white, 0 0 0 3px color-mix(in srgb, black 35%, transparent)"};function P(e,r,a){const n=a?10:1;switch(r){case"ArrowLeft":case"ArrowDown":return z(e-n,0,100);case"ArrowRight":case"ArrowUp":return z(e+n,0,100);case"PageDown":return z(e-10,0,100);case"PageUp":return z(e+10,0,100);case"Home":return 0;case"End":return 100;default:return null}}function j({value:e,onChange:r,label:i,presets:u,clearable:g=!1,fallback:f,dragWrites:x="live",disabled:N=!1,opacity:z,onOpacityChange:j,onClose:S,id:K,className:T=""}){const
|
|
3
|
-
return w("div",{id:K,className:`flex w-56 flex-col gap-3 ${N?"opacity-60":""} ${T}`.trim(),onKeyDown:e=>{"Escape"===e.key&&S&&(e.preventDefault(),e.stopPropagation(),S())},children:[(ne.length>0||g)&&/* @__PURE__ */w("div",{role:"group","aria-label":
|
|
1
|
+
import{Popover as e}from"./chunk-KXPXLUNM.js";import{InputNumber_default as r}from"./chunk-F5B5WOQ7.js";import{parseHexColor as a,hexToHsv as n,hsvToHex as o,hexReadout as t,HUE_GRADIENT as l,HEX_MAX_LENGTH as i,svFromPoint as s,hueFromPoint as c}from"./chunk-S6OB6HJB.js";import{inputClasses as u}from"./chunk-AYZY3YNC.js";import{Tooltip as d}from"./chunk-SOZCWT6I.js";import{useShellStrings as h}from"./chunk-IUVGHHR3.js";import{forwardRef as g,useState as p,useRef as b,useEffect as m,useId as f}from"react";import{jsx as v,jsxs as w}from"react/jsx-runtime";var x={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},y={backgroundImage:"conic-gradient(var(--line-strong) 25%, var(--surface) 0 50%, var(--line-strong) 0 75%, var(--surface) 0)",backgroundSize:"8px 8px"};function k(e){return null==e||Number.isNaN(e)?100:Math.round(Math.min(100,Math.max(0,e)))}function C(e,r){if(!e)return y;const a=k(r);if(a>=100)return{background:e};const n=`color-mix(in srgb, ${e} ${a}%, transparent)`;return{backgroundImage:`linear-gradient(${n}, ${n}), ${y.backgroundImage}`,backgroundSize:`auto, ${y.backgroundSize}`}}function N({size:e="md",selected:r=!1,className:a=""}={}){return["relative inline-flex shrink-0 overflow-hidden rounded-md p-0 transition-shadow","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]","disabled:cursor-not-allowed disabled:opacity-60",r?"border-2 border-blue-500":"border border-gray-300 hover:shadow-sm",x[e],a].filter(Boolean).join(" ")}var $=g(function({color:e,size:r="md",selected:a,className:n,type:o="button",...t},l){/* @__PURE__ */
|
|
2
|
+
return v("button",{ref:l,type:o,"aria-pressed":a,className:N({size:r,selected:a,className:n}),...t,children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"absolute inset-0",style:C(e)})})}),z=(e,r,a)=>Math.min(a,Math.max(r,e)),D=e=>"string"==typeof e?{value:e}:e;function I(e,r,a){const n=a?.1:.01,o={ArrowLeft:[-n,0],ArrowRight:[n,0],ArrowDown:[0,-n],ArrowUp:[0,n]}[r];return o?{...e,s:z(e.s+o[0],0,1),v:z(e.v+o[1],0,1)}:null}function A(e,r,a){const n=a?10:1;switch(r){case"ArrowLeft":case"ArrowDown":return z(e-n,0,359);case"ArrowRight":case"ArrowUp":return z(e+n,0,359);case"PageDown":return z(e-10,0,359);case"PageUp":return z(e+10,0,359);case"Home":return 0;case"End":return 359;default:return null}}var M={boxShadow:"0 0 0 2px white, 0 0 0 3px color-mix(in srgb, black 35%, transparent)"};function P(e,r,a){const n=a?10:1;switch(r){case"ArrowLeft":case"ArrowDown":return z(e-n,0,100);case"ArrowRight":case"ArrowUp":return z(e+n,0,100);case"PageDown":return z(e-10,0,100);case"PageUp":return z(e+10,0,100);case"Home":return 0;case"End":return 100;default:return null}}function j({value:e,onChange:r,label:i,presets:u,clearable:g=!1,fallback:f,dragWrites:x="live",disabled:N=!1,opacity:z,onOpacityChange:j,onClose:S,id:K,className:T=""}){const U=h().color,R=k(z),H=e=>{const r=k(e);N||r===R||j?.(r)},L=e=>{const r=e.currentTarget.getBoundingClientRect();return r.width>0?(e.clientX-r.left)/r.width*100:R},W=a(f??""),[X,E]=p(()=>n(e||W||"")),Y=b(e);m(()=>{e!==Y.current&&(Y.current=e,e?E(n(e)):W&&E(n(W)))},[e]);const q=a=>{N||a===e||(Y.current=a,r(a))},F=e=>{const r=a(e);r&&(E(n(r)),q(r))},V=e=>{E(e),q(o(e))},[Z,G]=p(!1),J=b(X);J.current=X;const Q=e=>({onPointerDown:r=>{if(N||0!==r.button)return;r.currentTarget.setPointerCapture?.(r.pointerId),r.currentTarget.focus({preventScroll:!0});const a=e(r,J.current);"end"===x?(G(!0),E(a)):V(a)},onPointerMove:r=>{if(N||!(1&r.buttons))return;const a=e(r,J.current);"end"===x?E(a):V(a)},onPointerUp:r=>{"end"===x&&Z&&(G(!1),V(e(r,J.current)))}}),_=Q((e,r)=>({...r,...s(e.clientX,e.clientY,e.currentTarget.getBoundingClientRect())})),ee=Q((e,r)=>({...r,h:c(e.clientX,e.currentTarget.getBoundingClientRect())})),re=Z?o(X):e,ae=e=>`${Math.round(100*e)}%`,ne=(u??[]).map(D),oe=a(e),te=re||W||"";/* @__PURE__ */
|
|
3
|
+
return w("div",{id:K,className:`flex w-56 flex-col gap-3 ${N?"opacity-60":""} ${T}`.trim(),onKeyDown:e=>{"Escape"===e.key&&S&&(e.preventDefault(),e.stopPropagation(),S())},children:[(ne.length>0||g)&&/* @__PURE__ */w("div",{role:"group","aria-label":U.presets,className:"flex flex-wrap gap-2",children:[g&&/* @__PURE__ */v(d,{content:U.clear,children:/* @__PURE__ */v($,{color:"",size:"sm","aria-label":U.clear,selected:""===e,disabled:N,onClick:()=>{N||""===e||(Y.current="",r(""))}})}),ne.map(e=>{const r=a(e.value),n=e.label?`${e.label} · ${t(r??e.value)}`:t(r??e.value);/* @__PURE__ */
|
|
4
4
|
return v(d,{content:n,children:/* @__PURE__ */v($,{color:r??e.value,size:"sm","aria-label":n,selected:null!==r&&r===oe,disabled:N,onClick:()=>F(e.value)})},`${e.label??""}:${e.value}`)})]}),
|
|
5
|
-
/* @__PURE__ */v("div",{role:"slider",tabIndex:N?-1:0,"aria-label":
|
|
6
|
-
/* @__PURE__ */v("div",{role:"slider",tabIndex:N?-1:0,"aria-label":
|
|
5
|
+
/* @__PURE__ */v("div",{role:"slider",tabIndex:N?-1:0,"aria-label":U.square,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(100*X.v),"aria-valuetext":U.squareValue(Math.round(100*X.s),Math.round(100*X.v)),"aria-disabled":N||void 0,"data-color-square":"",onKeyDown:e=>{if(N)return;const r=I(X,e.key,e.shiftKey);r&&(e.preventDefault(),V(r))},..._,className:"relative h-36 w-full cursor-crosshair touch-none rounded-md rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",style:{backgroundColor:o({h:X.h,s:1,v:1}),backgroundImage:"linear-gradient(to top, black, transparent), linear-gradient(to right, white, transparent)"},children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-3 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:ae(X.s),top:ae(1-X.v),...M}})}),
|
|
6
|
+
/* @__PURE__ */v("div",{role:"slider",tabIndex:N?-1:0,"aria-label":U.hue,"aria-valuemin":0,"aria-valuemax":359,"aria-valuenow":Math.round(X.h),"aria-orientation":"horizontal","aria-disabled":N||void 0,"data-color-hue":"",onKeyDown:e=>{if(N)return;const r=A(X.h,e.key,e.shiftKey);null!==r&&(e.preventDefault(),V({...X,h:r}))},...ee,className:"relative h-3 w-full cursor-pointer touch-none rounded-full rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",style:{backgroundImage:l},children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:X.h/360*100+"%",background:o({h:X.h,s:1,v:1}),...M}})}),j&&/* @__PURE__ */v("div",{role:"slider",tabIndex:N?-1:0,"aria-label":U.opacity(i),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":R,"aria-valuetext":`${R}%`,"aria-orientation":"horizontal","aria-disabled":N||void 0,"data-color-opacity":"",onKeyDown:e=>{if(N)return;const r=P(R,e.key,e.shiftKey);null!==r&&(e.preventDefault(),H(r))},onPointerDown:e=>{N||0!==e.button||(e.currentTarget.setPointerCapture?.(e.pointerId),e.currentTarget.focus({preventScroll:!0}),H(L(e)))},onPointerMove:e=>{!N&&1&e.buttons&&H(L(e))},className:"relative h-3 w-full cursor-pointer touch-none rounded-full rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",style:{backgroundImage:`linear-gradient(to right, transparent, ${te||"black"}), ${y.backgroundImage}`,backgroundSize:`auto, ${y.backgroundSize}`},children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:`${R}%`,...C(te||"black",R),...M}})}),
|
|
7
7
|
/* @__PURE__ */w("div",{className:"flex items-center gap-2",children:[
|
|
8
|
-
/* @__PURE__ */v("span",{"aria-hidden":"true",className:"relative h-8 w-8 shrink-0 overflow-hidden rounded-md border border-line-strong",style:C(te,j?
|
|
9
|
-
/* @__PURE__ */v(B,{value:re,placeholder:!e&&W?t(W):void 0,onChange:F,label:
|
|
8
|
+
/* @__PURE__ */v("span",{"aria-hidden":"true",className:"relative h-8 w-8 shrink-0 overflow-hidden rounded-md border border-line-strong",style:C(te,j?R:null)}),
|
|
9
|
+
/* @__PURE__ */v(B,{value:re,placeholder:!e&&W?t(W):void 0,onChange:F,label:U.hex(i),disabled:N}),j&&/* @__PURE__ */v(O,{value:R,onChange:H,label:U.opacity(i),disabled:N})]})]})}var S={sm:"w-[calc(7ch+1rem+4px)] min-w-[calc(7ch+1rem+4px)]",md:"w-[calc(7ch+1.5rem+4px)] min-w-[calc(7ch+1.5rem+4px)]",lg:"w-[calc(7ch+2rem+4px)] min-w-[calc(7ch+2rem+4px)]"},K={sm:"h-6",md:"h-8",lg:"h-10"},T=["block w-[calc(7ch+0.5rem+4px)] min-w-[calc(7ch+0.5rem+4px)] flex-none rounded-(--radius-control)","border border-transparent bg-transparent px-1 text-2xs font-mono uppercase","text-ink-strong placeholder:text-[color:var(--ink-placeholder)] hover:border-gray-300","focus:border-blue-400 focus:bg-(--surface) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)]","disabled:cursor-not-allowed disabled:opacity-60"].join(" ");function B({value:e,onChange:r,label:n,placeholder:o,disabled:l,id:s,size:c="md",look:d="box",className:h=""}){const[g,b]=p(null),m="text"===d?`${T} ${K[c]} ${h}`.trim():u({size:c,className:`${S[c]} flex-1 font-mono uppercase ${h}`.trim()}).replace(/(^| )w-full( |$)/," ");/* @__PURE__ */
|
|
10
10
|
return v("input",{id:s,type:"text",value:g??(e?t(e):""),"aria-label":n,placeholder:o,maxLength:i,spellCheck:!1,autoComplete:"off",disabled:l,onChange:n=>{b(n.target.value);const o=a(n.target.value);null!==o&&o!==e&&r(o)},onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),b(null))},onBlur:()=>b(null),"data-hex-look":d,className:m})}function O({value:e,onChange:a,label:n,disabled:o,size:t="md"}){/* @__PURE__ */
|
|
11
|
-
return v("div",{"data-color-opacity-box":"",className:"w-20 shrink-0",children:/* @__PURE__ */v(r,{value:e,onChange:e=>{null!==e&&a(e)},min:0,max:100,precision:0,suffix:"%",size:t,"aria-label":n,disabled:o})})}function
|
|
11
|
+
return v("div",{"data-color-opacity-box":"",className:"w-20 shrink-0",children:/* @__PURE__ */v(r,{value:e,onChange:e=>{null!==e&&a(e)},min:0,max:100,precision:0,suffix:"%",size:t,"aria-label":n,disabled:o})})}function U({value:r,onChange:n,label:o,presets:l,clearable:i,fallback:s,dragWrites:c,disabled:u,id:d,showHexInput:g=!1,opacity:p,onOpacityChange:b,size:m="md",align:x="start",open:y,onOpenChange:$,className:z=""}){const D=h().color,I=k(p),A=f(),M=a(s??""),P=r||M||"",S=r?t(r):M?t(M):D.none;
|
|
12
12
|
/* @__PURE__ */
|
|
13
13
|
return w("div",{className:`inline-flex items-center ${b?"flex-wrap justify-end gap-1":g?"gap-1":"gap-2"} ${z}`.trim(),children:[
|
|
14
14
|
/* @__PURE__ */v(e,{id:d,trigger:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"absolute inset-0",style:C(P,b?I:null)}),triggerLabel:D.swatch(o,S),triggerClassName:N({size:m}),"aria-label":D.panel(o),align:x,open:y,onOpenChange:$,disabled:u,children:/* @__PURE__ */v(j,{id:A,value:r,onChange:n,label:o,presets:l,clearable:i,fallback:s,dragWrites:c,disabled:u,opacity:p,onOpacityChange:b})}),g&&
|
|
15
|
-
/* @__PURE__ */v(B,{value:r,placeholder:!r&&M?t(M):void 0,onChange:e=>{u||e===r||n(e)},label:D.hex(o),disabled:u,size:m,look:"text"}),b&&/* @__PURE__ */v(O,{value:I,onChange:e=>{u||e===I||b(e)},label:D.opacity(o),disabled:u,size:m})]})}export{
|
|
15
|
+
/* @__PURE__ */v(B,{value:r,placeholder:!r&&M?t(M):void 0,onChange:e=>{u||e===r||n(e)},label:D.hex(o),disabled:u,size:m,look:"text"}),b&&/* @__PURE__ */v(O,{value:I,onChange:e=>{u||e===I||b(e)},label:D.opacity(o),disabled:u,size:m})]})}export{U as ColorPicker,j as ColorPickerPanel,$ as ColorSwatch,B as HexInput,y as NO_COLOR_FILL,k as clampOpacity,C as colorFill,N as colorSwatchClasses,A as stepHue,P as stepOpacity,I as stepSquare};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{copyToClipboard as e,selectionAt as t}from"./chunk-UFX7F3KG.js";import{useTableNav as n}from"./chunk-ATMJ5ZPK.js";import{escapeHtml as r}from"./chunk-G6DKCCWH.js";import{ListFooter as o}from"./chunk-DO3DSSAW.js";import{ListLoadError as l}from"./chunk-VCR3RADH.js";import{ResizableTable as i}from"./chunk-
|
|
2
|
-
return x(l,{title:
|
|
3
|
-
/* @__PURE__ */x("div",{ref:
|
|
1
|
+
import{copyToClipboard as e,selectionAt as t}from"./chunk-UFX7F3KG.js";import{useTableNav as n}from"./chunk-ATMJ5ZPK.js";import{escapeHtml as r}from"./chunk-G6DKCCWH.js";import{ListFooter as o}from"./chunk-DO3DSSAW.js";import{ListLoadError as l}from"./chunk-VCR3RADH.js";import{ResizableTable as i}from"./chunk-5HBAJ2UA.js";import{Checkbox_default as a}from"./chunk-CGZBDI6C.js";import{LoadingSpinner as c}from"./chunk-4U5M37SF.js";import{PopupMenu as d,PopupMenuLabel as s,PopupMenuItem as h,PopupMenuDivider as m}from"./chunk-GOAFMGUI.js";import{keepsNativeMenu as u}from"./chunk-5QFPTDQF.js";import{LoadingSpinner as p}from"./chunk-R2VKEMZH.js";import{shellHttp as f}from"./chunk-STKJA4PV.js";import{toast_default as g}from"./chunk-VQ35LXDC.js";import{useShellStrings as y}from"./chunk-IUVGHHR3.js";import{useState as k,useRef as b}from"react";import{jsx as x,Fragment as w,jsxs as C}from"react/jsx-runtime";function j(e){return Array.from(e.children).filter(e=>void 0!==e.dataset?.colKey&&"_select"!==e.dataset.colKey)}function v(e){return("string"==typeof e.innerText?e.innerText:e.textContent??"").replace(/\s+/g," ").trim()}function S(S){const{items:R,isLoading:A,emptyState:N,totalCount:L,isError:$,onRetry:F,errorTitle:M,errorMessage:T,tableId:U,columns:D,renderCell:K,getRowId:E=e=>e.id,sort:H,onSort:I,selected:P,setSelected:G,onRowClick:O,onRowHover:V,getRowClassName:W,footerLabel:B,footerExtra:J,footerExtraAfter:_,sentinelRef:Q,isFetchingNextPage:X,saveDefaultPerms:Z,exportEndpoint:z,exportFilename:q="export.csv",contextActions:Y}=S,[ee,te]=k(null),ne=b(null),re=y(),oe=re.entityList,le=e=>{G(t=>{const n=new Set(t),r=E(e);return n.has(r)?n.delete(r):n.add(r),n})},ie=()=>{G(e=>{const t=R.map(E),n=new Set(e);return t.every(t=>e.has(t))?t.forEach(e=>n.delete(e)):t.forEach(e=>n.add(e)),n})},ae=n(R,O,le,ie,(e,t)=>{G(n=>{const r=new Set(n);for(let n=e;n<=t;n++)r.add(E(R[n]));return r})},ne),ce=R.filter(e=>P.has(E(e))),de=()=>{const e=[...ne.current?.querySelectorAll("tr[data-row-idx]")??[]].filter(e=>{const t=R[Number(e.dataset.rowIdx)];return void 0!==t&&P.has(E(t))}),t=e.length?j(e[0]).map(e=>e.dataset.colKey??""):[],n=new Map(D.map(e=>[e.key,e.label]));return{keys:t,header:t.map(e=>n.get(e)??e),body:e.map(e=>j(e).map(v))}},se=()=>{te(null);const{header:t,body:n}=de();if(!n.length)return;const o=[t,...n].map(e=>e.join("\t")).join("\n"),l="<table><thead><tr>"+t.map(e=>`<th>${r(e)}</th>`).join("")+"</tr></thead><tbody>"+n.map(e=>`<tr>${e.map(e=>`<td>${r(e)}</td>`).join("")}</tr>`).join("")+"</tbody></table>";e(oe.copiedRows(n.length),o,l)},he=async()=>{te(null);const e=ce.map(E);if(!e.length||!z)return;const t=new URLSearchParams({ids:e.join(",")}),n=(()=>{const e=new Map(D.map(e=>[e.key,e.exportLabel??e.label]));try{const t=localStorage.getItem(`col-config-${U}`);if(t){const n=JSON.parse(t).filter(t=>!t.hidden&&"_select"!==t.key&&e.has(t.key)).map(t=>`${t.key}|${e.get(t.key)}`);if(n.length)return n.join(",")}}catch{}return D.filter(e=>!e.defaultHidden).map(e=>`${e.key}|${e.exportLabel??e.label}`).join(",")})();n&&t.set("cols",n);const r=z.includes("?")?"&":"?";try{const n=await f.get(`${z}${r}${t}`,{responseType:"blob"}),o=window.URL.createObjectURL(new Blob([n.data],{type:"text/csv"})),l=document.createElement("a");l.href=o,l.download=q,l.click(),window.URL.revokeObjectURL(o);const i=n.headers??{},a=Number(i["x-row-count"]);if("true"===String(i["x-truncated"]))return void g.notify(Number.isFinite(a)?oe.exportTruncated(a,e.length):oe.exportTruncatedUnknown(e.length));g.success(oe.exported(e.length))}catch{g.error(oe.exportFailed)}};if(A)/* @__PURE__ */return x(c,{});if($&&0===R.length)/* @__PURE__ */
|
|
2
|
+
return x(l,{title:M,message:T,onRetry:F});if(0===R.length)/* @__PURE__ */return x(w,{children:N});const me=R.length>0&&ce.length===R.length,ue=ce.length>0&&!me,pe=P.size-ce.length,fe=[{key:"_select",label:"",defaultWidth:52,minWidth:52,headerNode:/* @__PURE__ */x(a,{"aria-label":re.table.selectAll,checked:me,indeterminate:ue,onChange:ie,style:{height:14,width:14}})},...D],ge=/* @__PURE__ */x(o,{selectedCount:ce.length,hiddenSelectedCount:pe,loadedCount:R.length,totalCount:L,label:B,isFetchingMore:X,extra:J,extraAfter:_}),ye=Q?/* @__PURE__ */C(w,{children:[
|
|
3
|
+
/* @__PURE__ */x("div",{ref:Q}),X&&/* @__PURE__ */x(p,{size:"sm",padding:"py-3",label:re.list.loadingMore})]}):void 0;let ke=null;if(ee){const{x:t,y:n,item:r,text:o,firstColumn:l}=ee,i=Y?Y(ce):[],a=ce.length,c=()=>te(null),u=void 0!==L&&L>R.length;ke=/* @__PURE__ */C(d,{portal:!0,style:{left:t,top:n},onClose:c,minWidth:210,children:[
|
|
4
4
|
/* @__PURE__ */x(s,{children:pe>0?re.list.selectedNotShown(a,pe):re.list.selected(a)}),
|
|
5
5
|
/* @__PURE__ */x(h,{className:"font-medium",onClick:()=>{c(),O(r)},children:oe.open}),
|
|
6
6
|
/* @__PURE__ */x(m,{}),o&&/* @__PURE__ */x(h,{onClick:()=>{c(),e(oe.copiedText,o.text,o.html)},children:oe.copy}),l&&/* @__PURE__ */x(h,{onClick:()=>(t=>{te(null);const{keys:n,body:r}=de(),o=n.indexOf(t.key);o<0||!r.length||e(t.label,r.map(e=>e[o]).join("\n"))})(l),children:oe.copyColumn(l.label)}),
|
|
7
7
|
/* @__PURE__ */x(h,{disabled:0===a,onClick:se,children:oe.copyRows(a)}),z&&/* @__PURE__ */x(h,{onClick:he,children:oe.exportSelected}),i.map((e,t)=>/* @__PURE__ */C("div",{children:[(e.divider||0===t)&&/* @__PURE__ */x(m,{}),
|
|
8
8
|
/* @__PURE__ */x(h,{danger:e.danger,disabled:e.disabled,onClick:()=>{c(),e.onClick(ce)},children:e.label})]},t)),
|
|
9
9
|
/* @__PURE__ */x(m,{}),!me&&/* @__PURE__ */x(h,{onClick:()=>{c(),G(e=>/* @__PURE__ */new Set([...e,...R.map(E)]))},children:u?oe.selectAllLoaded(R.length):oe.selectAll}),
|
|
10
|
-
/* @__PURE__ */x(h,{onClick:()=>{c(),G(/* @__PURE__ */new Set)},children:oe.clearSelection}),
|
|
10
|
+
/* @__PURE__ */x(h,{onClick:()=>{c(),G(/* @__PURE__ */new Set)},children:oe.clearSelection}),F&&/* @__PURE__ */x(h,{onClick:()=>{c(),F()},children:oe.refresh})]})}/* @__PURE__ */
|
|
11
11
|
return C("div",{className:"flex-1 flex flex-col mb-1 bg-white rounded-lg shadow overflow-hidden",children:[
|
|
12
|
-
/* @__PURE__ */x("div",{className:"flex-1 min-h-0 flex flex-col",children:/* @__PURE__ */x(i,{tableId:
|
|
13
|
-
return x("tr",{"data-row-idx":r,className:`cursor-pointer ${ae===r?"bg-blue-50 ring-1 ring-inset ring-blue-300":
|
|
12
|
+
/* @__PURE__ */x("div",{className:"flex-1 min-h-0 flex flex-col",children:/* @__PURE__ */x(i,{tableId:U,columns:fe,sort:H,onSort:I,footer:ge,afterBody:ye,saveDefaultPerms:Z,children:e=>/* @__PURE__ */x("tbody",{ref:ne,className:"divide-y divide-gray-100",children:R.map((n,r)=>{const o=E(n);/* @__PURE__ */
|
|
13
|
+
return x("tr",{"data-row-idx":r,className:`cursor-pointer ${ae===r?"bg-blue-50 ring-1 ring-inset ring-blue-300":P.has(o)?"bg-blue-50 hover:bg-blue-100":"hover:bg-gray-50"} ${W?.(n)??""}`,onClick:()=>O(n),onContextMenu:e=>((e,n)=>{if(e.shiftKey||u(e.target))return;e.preventDefault();const r=E(n);P.has(r)||G(/* @__PURE__ */new Set([r]));const o=j(e.currentTarget)[0]?.dataset.colKey,l=o?D.find(e=>e.key===o)?.label:void 0;te({x:e.clientX,y:e.clientY,item:n,text:t(e.target),firstColumn:o&&l?{key:o,label:l}:null})})(e,n),onMouseEnter:V?()=>V(n):void 0,children:e.map(e=>/* @__PURE__ */x("td",{"data-col-key":e.key,className:"px-4 py-3 whitespace-nowrap text-sm overflow-hidden",children:"_select"===e.key?/* @__PURE__ */x(a,{"aria-label":re.table.selectRow,checked:P.has(o),onChange:()=>le(n),onClick:e=>e.stopPropagation(),style:{height:14,width:14}}):K(n,e.key)},e.key))},o)})})})}),ke]})}export{S as EntityList};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{HEADING_TEXT as e}from"./chunk-BWJZTHZ6.js";import{useShellLocale as r}from"./chunk-IUVGHHR3.js";import{formatPlain as d}from"./chunk-C3QOHMR6.js";import{useId as a,Children as n}from"react";import{jsxs as i,jsx as t}from"react/jsx-runtime";var l={none:{body:"",edge:"px-4 py-3"},sm:{body:"p-3",edge:"px-3 py-2"},md:{body:"p-4",edge:"px-4 py-3"},lg:{body:"p-6",edge:"px-6 py-4"}},s={neutral:"border-line",warning:"border-amber-300",current:"border-line"};function c({children:r,header:d,description:c,footer:o,padded:m=!0,padding:u,headingLevel:b,headerActions:p,"aria-label":h,className:x="",bodyClassName:g="",style:f,tone:y="neutral"}){const N=l[u??(m?"md":"none")],v=a(),$=a(),w=null!=d&&null!=c&&""!==c,j=null!=b&&null!=d,k=`h${b}`,H=null!=h&&""!==h,A=j||H,B=A?"section":"div",C=`rounded-(--radius-card) border ${s[y]} bg-surface shadow-sm ${x}`.trim(),R=n.toArray(r).length>0,Z=R?"border-b border-line-subtle ":"",G="current"===y,I=G?"text-base font-semibold text-blue-700":e,J=G?"rounded-t-(--radius-card) bg-accent-tint ":"",L=`${Z}${J}${N.edge} ${I}`;/* @__PURE__ */
|
|
2
|
+
return i(B,{className:C,style:f,...H?{"aria-label":h}:j?{"aria-labelledby":v}:{},...w&&A?{"aria-describedby":$}:{},...G?{"aria-current":!0}:{},children:[w?
|
|
3
|
+
/* @__PURE__ */i("div",{className:`${Z}${J}${N.edge}`,children:[null!=p?/* @__PURE__ */i("div",{className:`flex items-center justify-between gap-3 ${I}`,children:[j?/* @__PURE__ */t(k,{id:v,children:d}):/* @__PURE__ */t("span",{children:d}),p]}):j?/* @__PURE__ */t(k,{id:v,className:I,children:d}):/* @__PURE__ */t("div",{className:I,children:d}),
|
|
4
|
+
/* @__PURE__ */t("p",{id:$,className:G?"mt-0.5 text-xs text-gray-600":"mt-0.5 text-xs text-ink-faint",children:c})]}):null!=d&&(null!=p?
|
|
5
|
+
/* @__PURE__ */i("div",{className:`${L} flex items-center justify-between gap-3`,children:[j?/* @__PURE__ */t(k,{id:v,children:d}):/* @__PURE__ */t("span",{children:d}),p]}):j?
|
|
6
|
+
/* @__PURE__ */t(k,{id:v,className:L,children:d}):/* @__PURE__ */t("div",{className:L,children:d})),R&&/* @__PURE__ */t("div",{className:[N.body,g].filter(Boolean).join(" "),children:r}),o&&/* @__PURE__ */t("div",{className:`border-t border-gray-100 ${N.edge}`,children:o})]})}function o({label:e,value:a,icon:n,delta:l,className:s=""}){const c=r(),o="number"==typeof a&&c?d(a,c):a,m="up"===l?.direction?"text-green-600":"down"===l?.direction?"text-red-600":"text-gray-500",u="up"===l?.direction?"▲":"down"===l?.direction?"▼":"→";/* @__PURE__ */
|
|
7
|
+
return i("div",{className:`rounded-(--radius-card) border border-gray-200 bg-white p-4 shadow-sm ${s}`.trim(),children:[
|
|
8
|
+
/* @__PURE__ */i("div",{className:"flex items-center justify-between text-ink-faint",children:[
|
|
9
|
+
/* @__PURE__ */t("span",{className:"text-xs font-medium uppercase tracking-wide",children:e}),n]}),
|
|
10
|
+
/* @__PURE__ */i("div",{className:"mt-2 flex items-baseline gap-2",children:[
|
|
11
|
+
/* @__PURE__ */t("span",{className:"text-2xl font-semibold text-gray-900",children:o}),l&&/* @__PURE__ */i("span",{className:`text-xs font-medium ${m}`,children:[u," ",l.value]})]})]})}export{c as Card,o as StatCard};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-
|
|
1
|
+
import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-G4PPHQ23.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-VFSAJMNX.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},H){const $=m(),z=l().files,C=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),F=j?`${$}-error`:N?`${$}-hint`:void 0;/* @__PURE__ */
|
|
2
2
|
return o(e,{label:g,htmlFor:$,hint:N,error:j,required:k,className:v,children:[
|
|
3
|
-
/* @__PURE__ */o("button",{ref:H,type:"button",id:$,disabled:y,onClick:
|
|
3
|
+
/* @__PURE__ */o("button",{ref:H,type:"button",id:$,disabled:y,onClick:C.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":F,...C.zoneProps,className:t(C.dragOver,y,a(y),"px-4 py-6"),children:[
|
|
4
4
|
/* @__PURE__ */o("span",{children:[
|
|
5
5
|
/* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?z.chooseMany:z.chooseOne}),
|
|
6
6
|
/* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?z.dragMany:z.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
|
|
7
|
-
/* @__PURE__ */d("input",{...
|
|
7
|
+
/* @__PURE__ */d("input",{...C.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
|
|
8
8
|
/* @__PURE__ */d("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-800",title:e.name,children:e.name}),
|
|
9
9
|
/* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,z)}),
|
|
10
|
-
/* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{
|
|
11
|
-
/* @__PURE__ */d(s,{rejections:
|
|
10
|
+
/* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{C.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":z.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
|
|
11
|
+
/* @__PURE__ */d(s,{rejections:C.rejections})]})});export{p as FilePicker_default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{useWindowMenuItem as e,Modal as t}from"./chunk-
|
|
1
|
+
import{useWindowMenuItem as e,Modal as t}from"./chunk-3QNZ7YGZ.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-CBUBDXJ2.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-IUVGHHR3.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.5.0",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.1",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,C]=a(b.partOf);/* @__PURE__ */
|
|
2
2
|
return d(t,{open:!0,onClose:()=>v(!1),title:k,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
|
|
3
3
|
/* @__PURE__ */d("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:y}),
|
|
4
4
|
/* @__PURE__ */d("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:i.name}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useDefaultColumnConfig as e}from"./chunk-ULJQYXHB.js";import{useShellPrefs as t}from"./chunk-KC3EX26K.js";import{useState as n,useRef as r,useCallback as i,useEffect as d}from"react";function l(e,t){return e.length===t.length&&e.every((e,n)=>e.key===t[n].key&&e.width===t[n].width&&!!e.hidden==!!t[n].hidden)}function o(e){const t=e.findIndex(e=>"_select"===e.key);if(t>=0){const[n]=e.splice(t,1);n.hidden=!1,e.unshift(n)}return e}function u(u,c){const{prefs:s,save:a}=t(),f=`columns_${u}`,y=s[f],{defaultConfig:h}=e(u),[k,m]=n(()=>{const e="undefined"==typeof window?null:localStorage.getItem(`col-config-${u}`);if(e)try{const t=JSON.parse(e),n=new Set(t.map(e=>e.key));return o([...t.filter(e=>c.some(t=>t.key===e.key)),...c.filter(e=>!n.has(e.key)).map(e=>({key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden}))])}catch{}return o(c.map(e=>({key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden})))}),[p,g]=n(null),[w,v]=n(null),S=r(null),x=r(!1),I=r(y);I.current=y;const W=r(null),C=r(a);C.current=a;const D=i(e=>{x.current=!0,localStorage.setItem(`col-config-${u}`,JSON.stringify(e)),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{C.current({[f]:e})},1e3)},[u,f]);d(()=>{if(x.current||!Array.isArray(y))return;const e=new Set(y.map(e=>e.key)),t=o([...y.filter(e=>c.some(t=>t.key===e.key)).map(e=>({...e})),...c.filter(t=>!e.has(t.key)).map(e=>({key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden}))]);m(e=>l(e,t)?e:t),localStorage.setItem(`col-config-${u}`,JSON.stringify(t))},[u,y]),d(()=>{if(x.current||Array.isArray(I.current))return;const e=h?.visible_columns;if(!Array.isArray(e)||0===e.length)return;const t=new Set(e),n=o(c.map(e=>({key:e.key,width:e.defaultWidth||150,hidden:!t.has(e.key)})));m(e=>l(e,n)?e:n),localStorage.setItem(`col-config-${u}`,JSON.stringify(n))},[u,h]);const X=r(/* @__PURE__ */new Map);d(()=>{m(e=>function(e,t,n){const r=new Set(t.map(e=>e.key)),i=new Set(e.map(e=>e.key)),d=t.filter(e=>!i.has(e.key)),l=e.filter(e=>"_select"===e.key||r.has(e.key));if(!d.length&&l.length===e.length)return e;for(const t of e)"_select"===t.key||r.has(t.key)||n.set(t.key,t);const u=[...l];for(const e of d){let r=-1;for(let n=t.indexOf(e)-1;n>=0;n-=1){const e=u.findIndex(e=>e.key===t[n].key);if(e>=0){r=e;break}}u.splice(r+1,0,n.get(e.key)??{key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden}),n.delete(e.key)}return o(u)}(e,c,X.current))},[c]);const A=k.filter(e=>!e.hidden),E=i((e,t)=>{t.preventDefault(),t.stopPropagation();const n=A[e],r=k.findIndex(e=>e.key===n.key);S.current={idx:r,startX:t.clientX,startWidth:k[r].width};const
|
|
1
|
+
import{useDefaultColumnConfig as e}from"./chunk-ULJQYXHB.js";import{useShellPrefs as t}from"./chunk-KC3EX26K.js";import{useState as n,useRef as r,useCallback as i,useEffect as d}from"react";function l(e,t){return e.length===t.length&&e.every((e,n)=>e.key===t[n].key&&e.width===t[n].width&&!!e.hidden==!!t[n].hidden)}function o(e){const t=e.findIndex(e=>"_select"===e.key);if(t>=0){const[n]=e.splice(t,1);n.hidden=!1,e.unshift(n)}return e}function u(u,c){const{prefs:s,save:a}=t(),f=`columns_${u}`,y=s[f],{defaultConfig:h}=e(u),[k,m]=n(()=>{const e="undefined"==typeof window?null:localStorage.getItem(`col-config-${u}`);if(e)try{const t=JSON.parse(e),n=new Set(t.map(e=>e.key));return o([...t.filter(e=>c.some(t=>t.key===e.key)),...c.filter(e=>!n.has(e.key)).map(e=>({key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden}))])}catch{}return o(c.map(e=>({key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden})))}),[p,g]=n(null),[w,v]=n(null),S=r(null),x=r(!1),I=r(y);I.current=y;const W=r(null),C=r(a);C.current=a;const D=i(e=>{x.current=!0,localStorage.setItem(`col-config-${u}`,JSON.stringify(e)),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{C.current({[f]:e})},1e3)},[u,f]);d(()=>{if(x.current||!Array.isArray(y))return;const e=new Set(y.map(e=>e.key)),t=o([...y.filter(e=>c.some(t=>t.key===e.key)).map(e=>({...e})),...c.filter(t=>!e.has(t.key)).map(e=>({key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden}))]);m(e=>l(e,t)?e:t),localStorage.setItem(`col-config-${u}`,JSON.stringify(t))},[u,y]),d(()=>{if(x.current||Array.isArray(I.current))return;const e=h?.visible_columns;if(!Array.isArray(e)||0===e.length)return;const t=new Set(e),n=o(c.map(e=>({key:e.key,width:e.defaultWidth||150,hidden:!t.has(e.key)})));m(e=>l(e,n)?e:n),localStorage.setItem(`col-config-${u}`,JSON.stringify(n))},[u,h]);const X=r(/* @__PURE__ */new Map);d(()=>{m(e=>function(e,t,n){const r=new Set(t.map(e=>e.key)),i=new Set(e.map(e=>e.key)),d=t.filter(e=>!i.has(e.key)),l=e.filter(e=>"_select"===e.key||r.has(e.key));if(!d.length&&l.length===e.length)return e;for(const t of e)"_select"===t.key||r.has(t.key)||n.set(t.key,t);const u=[...l];for(const e of d){let r=-1;for(let n=t.indexOf(e)-1;n>=0;n-=1){const e=u.findIndex(e=>e.key===t[n].key);if(e>=0){r=e;break}}u.splice(r+1,0,n.get(e.key)??{key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden}),n.delete(e.key)}return o(u)}(e,c,X.current))},[c]);const A=k.filter(e=>!e.hidden),E=i((e,t)=>{t.preventDefault(),t.stopPropagation();const n=A[e],r=k.findIndex(e=>e.key===n.key),i=c.find(e=>e.key===k[r].key)?.minWidth??0;S.current={idx:r,startX:t.clientX,startWidth:Math.max(k[r].width,i)};const d=e=>{if(!S.current)return;const{idx:t,startX:n,startWidth:r}=S.current,i=c.find(e=>e.key===k[t].key)?.minWidth||30,d=Math.max(i,r+e.clientX-n);m(e=>{const n=[...e];return n[t]={...n[t],width:d},n})},l=()=>{document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",l),S.current=null,m(e=>(D(e),e))};document.addEventListener("mousemove",d),document.addEventListener("mouseup",l)},[k,A,c,D]),H=i(e=>{g(e)},[]),O=i((e,t)=>{if(t.preventDefault(),null===p)return;const n=t.currentTarget.getBoundingClientRect();let r=t.clientX<n.left+n.width/2?e:e+1;const i=k.filter(e=>!e.hidden);"_select"===i[0]?.key&&0===r&&(r=1),v(r)},[p,k]),_=i((e,t)=>(t.preventDefault(),null===p||null===w||w===p||w===p+1?(g(null),void v(null)):(m(e=>{const t=e.filter(e=>!e.hidden),n=t[p];if(!n)return e;const r=e.findIndex(e=>e.key===n.key);let i;i=w<t.length?e.findIndex(e=>e.key===t[w].key):e.findIndex(e=>e.key===t[t.length-1].key)+1;const d=[...e],[l]=d.splice(r,1);return d.splice(i>r?i-1:i,0,l),D(d),d}),g(null),void v(null))),[p,w,D]),J=i(()=>{g(null),v(null)},[]),L=i(e=>{m(t=>{const n=t.map(t=>t.key===e?{...t,hidden:!t.hidden}:t);return 0===n.filter(e=>!e.hidden).length?t:(D(n),n)})},[D]),$=i(()=>{const e=o(c.map(e=>({key:e.key,width:e.defaultWidth||150,hidden:e.defaultHidden})));m(e),D(e)},[c,D]);return{orderedColumns:A.map(e=>{const t=c.find(t=>t.key===e.key);return{...t,width:Math.max(e.width,t?.minWidth??0)}}).filter(Boolean),allColumns:k.map(e=>{const t=c.find(t=>t.key===e.key);return{key:e.key,label:t?.label||e.key,hidden:!!e.hidden}}),onResizeStart:E,onDragStart:H,onDragOver:O,onDrop:_,onDragEnd:J,toggleColumn:L,resetColumns:$,draggedIdx:p,dropGap:w}}export{u as useColumnConfig};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ImageFocusPoint as e}from"./chunk-5POQCJL6.js";import{FormField as i}from"./chunk-6KBDNYRW.js";import{Segmented as a}from"./chunk-HNIIDDLJ.js";import{isVideoUrl as t,mediaPromptLine as r,mediaFileName as o,FilenameBadge as n,BusyOverlay as s,UploadGlyph as l,zoneFocusClass as c,dropzoneClass as d}from"./chunk-G4PPHQ23.js";import{TransferProgress as u}from"./chunk-6LS6Q77E.js";import{useFileIntake as m,FileIntakeAlert as h}from"./chunk-VFSAJMNX.js";import{Icon as p}from"./chunk-ISVODSRP.js";import{useShellStrings as b}from"./chunk-IUVGHHR3.js";import{useState as f,useRef as g,useEffect as v,useId as y}from"react";import{jsxs as k,jsx as x,Fragment as j}from"react/jsx-runtime";var N=["flex h-8 items-center justify-center rounded-(--radius-control) text-(--status-on-solid)","not-disabled:hover:bg-white/10 disabled:cursor-not-allowed disabled:opacity-60","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]"].join(" ");function w({value:w,onChange:L,onPick:R,onFile:C,label:P,hint:$,error:F,required:U,className:z,accept:H="image/*",maxSizeBytes:O,fit:I="cover",height:S,shape:q="rect",placeholder:D,cta:V,acceptHint:B,showFilename:J=!0,allowReplace:Q=!0,allowRemove:A=!0,replaceLabel:G,removeLabel:K,busy:W=!1,busyLabel:_,choosingLabel:E,pickFailedLabel:M,progress:X,disabled:Y=!1,kind:T,onKindChange:Z,focus:ee,onFocusChange:ie,focusLabel:ae}){const te=b().media,re="circle"===q,oe=S??(re?96:112),ne=V??te.cta,se=T??(/video/.test(H)&&!/image/.test(H)?"video":"image"),le="string"==typeof K&&K?K:te.remove,[ce,de]=f(!1),[ue,me]=f(!1),he=g(!0);v(()=>()=>{he.current=!1},[]);const pe=W||ce,be=ce&&!W?E??te.choosing:_??te.uploading,fe=F??(ue?M??te.pickFailed:void 0),ge=e=>{if(!R)return;me(!1);const i=R(e);i&&"function"==typeof i.then&&(de(!0),i.then(e=>{he.current&&(de(!1),"string"==typeof e&&e&&L(e))},()=>{he.current&&(de(!1),me(!0))}))},ve=y(),ye=g(null),[ke,xe]=f(null);v(()=>()=>{ye.current&&URL.revokeObjectURL(ye.current)},[]);const je=Y||pe,Ne=!!w&&(t(w,H)||w===ke),we=D??r(H,te),Le=G??(Ne||"video"===se?te.changeVideo:te.changeImage),Re=e=>{R?ge(e):C?C(e):(e=>{ye.current&&URL.revokeObjectURL(ye.current);const i=URL.createObjectURL(e);ye.current=i,xe(e.type.startsWith("video/")?i:null),L(i)})(e)},Ce=m({accept:H,maxSizeBytes:O,acceptHint:B,multiple:!1,disabled:je,onAccept:([e])=>Re(e)}),{dragOver:Pe}=Ce,$e=()=>{je||(R?ge():Ce.open())},Fe=w?o(w):"",Ue=!re&&!Ne&&!!ie,ze=Y||!Q&&!A?null:/* @__PURE__ */k("div",{"data-media-bar":"",className:[re?"absolute inset-0 flex items-center justify-center gap-1 p-1 text-(--status-on-solid)":"absolute inset-x-0 bottom-0 flex items-center gap-1 p-1 text-(--status-on-solid)","opacity-0 transition-opacity duration-(--motion-fast)","group-hover/media:opacity-100 group-focus-within/media:opacity-100 [@media(hover:none)]:opacity-100"].join(" "),style:{background:"var(--rosh-media-scrim-button)"},children:[Q&&/* @__PURE__ */k("button",{id:Ue?void 0:ve,type:"button","aria-labelledby":`${ve}-change`,onClick:()=>$e(),disabled:pe,className:re?`w-8 shrink-0 ${N}`:`min-w-0 flex-1 gap-1 px-2 text-sm font-medium ${N}`,children:[
|
|
2
2
|
/* @__PURE__ */x(p,{name:"swap","aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
|
|
3
|
-
/* @__PURE__ */x("span",{id:`${ve}-change`,className:re?"sr-only":"truncate",children:Le})]}),
|
|
4
|
-
/* @__PURE__ */x(
|
|
3
|
+
/* @__PURE__ */x("span",{id:`${ve}-change`,className:re?"sr-only":"truncate",children:Le})]}),A&&/* @__PURE__ */x("button",{type:"button","aria-label":le,onClick:()=>{ye.current&&(URL.revokeObjectURL(ye.current),ye.current=null),xe(null),L("")},disabled:pe,className:`${re?"":"ml-auto "}w-8 shrink-0 ${N}`,children:/* @__PURE__ */x(p,{name:"trash","aria-hidden":"true",className:"h-4 w-4"})})]}),He=/* @__PURE__ */k("div",{...Ce.zoneProps,"data-media-frame":"",className:["group/media relative overflow-hidden border transition-colors",re?"shrink-0 rounded-full":"rounded-(--radius-control)",Ue?"":"bg-gray-100",Pe?"border-blue-500":"border-line"].join(" "),style:Ue?void 0:re?{height:oe,width:oe}:{height:oe},children:[Ue?
|
|
4
|
+
/* @__PURE__ */x(e,{value:ee??"",onChange:e=>ie?.(e),label:ae??te.focus,image:w,hint:null,id:ve,disabled:je,className:"[&_[data-image-focus-picture]]:rounded-none [&_[data-image-focus-picture]]:border-0"}):Ne?/* @__PURE__ */x("video",{src:w??void 0,muted:!0,playsInline:!0,preload:"metadata","aria-label":Fe||void 0,className:"h-full w-full",style:{objectFit:I}}):/* @__PURE__ */x("img",{src:w??void 0,alt:Fe,className:"h-full w-full",style:{objectFit:I,objectPosition:ee||void 0}}),J&&!re&&w&&/* @__PURE__ */x(n,{children:Fe}),ze,pe&&/* @__PURE__ */x(s,{label:be,progress:X,rounded:re?"rounded-full":"rounded-md"})]}),Oe=/* @__PURE__ */k(j,{children:[
|
|
5
5
|
/* @__PURE__ */x("span",{className:"px-3 text-xs text-ink-faint",children:we}),
|
|
6
|
-
/* @__PURE__ */x("span",{className:"text-sm font-medium text-blue-600",children:ne}),
|
|
7
|
-
/* @__PURE__ */x("span",{className:["flex shrink-0 items-center justify-center rounded-full border-2 border-dashed text-ink-faintest transition-colors"
|
|
8
|
-
/* @__PURE__ */x("span",{className:"flex min-w-0 flex-col items-start gap-1 [&>span]:px-0",children:pe?/* @__PURE__ */x(u,{state:"busy",verb:be,pct:
|
|
6
|
+
/* @__PURE__ */x("span",{className:"text-sm font-medium text-blue-600",children:ne}),B&&/* @__PURE__ */x("span",{className:"text-xs text-ink-faintest",children:B})]}),Ie=/* @__PURE__ */k("button",{type:"button",id:ve,onClick:()=>$e(),disabled:je,"aria-label":"string"==typeof we?we:te.upload,"aria-busy":pe||void 0,"aria-invalid":!!fe||void 0,"aria-required":U||void 0,"aria-describedby":fe?`${ve}-error`:$?`${ve}-hint`:void 0,...Ce.zoneProps,"data-media-circle":"",className:["group/zone flex w-full items-center gap-4 rounded-lg text-left",je?"cursor-not-allowed opacity-60":"cursor-pointer",c(je)].join(" "),children:[
|
|
7
|
+
/* @__PURE__ */x("span",{className:["flex shrink-0 items-center justify-center rounded-full border-2 border-dashed text-ink-faintest transition-colors",Pe?"border-accent-fill bg-accent-tint":"border-line-strong bg-surface-sunken group-hover/zone:bg-accent-tint"].join(" "),style:{height:oe,width:oe},children:/* @__PURE__ */x(l,{})}),
|
|
8
|
+
/* @__PURE__ */x("span",{className:"flex min-w-0 flex-col items-start gap-1 [&>span]:px-0",children:pe?/* @__PURE__ */x(u,{state:"busy",verb:be,pct:X}):Oe})]}),Se=re?Ie:/* @__PURE__ */x("button",{type:"button",id:ve,onClick:()=>$e(),disabled:je,"aria-label":"string"==typeof we?we:te.upload,"aria-busy":pe||void 0,"aria-invalid":!!fe||void 0,"aria-required":U||void 0,"aria-describedby":fe?`${ve}-error`:$?`${ve}-hint`:void 0,...Ce.zoneProps,className:d(Pe,je,c(je)),style:{minHeight:oe},children:pe?/* @__PURE__ */x(u,{state:"busy",verb:be,pct:X}):/* @__PURE__ */k(j,{children:[
|
|
9
9
|
/* @__PURE__ */x("span",{className:"text-ink-faintest",children:/* @__PURE__ */x(l,{})}),Oe]})});/* @__PURE__ */
|
|
10
|
-
return k(
|
|
10
|
+
return k(i,{label:P,htmlFor:ve,hint:$,error:fe,required:U,className:z,children:[Z&&/* @__PURE__ */x("div",{"data-media-kind":"",className:"mb-2",children:/* @__PURE__ */x(a,{value:se,onChange:e=>Z(e),options:[{value:"image",label:te.image,icon:/* @__PURE__ */x(p,{name:"image","aria-hidden":"true",className:"h-4 w-4"}),disabled:je},{value:"video",label:te.video,icon:/* @__PURE__ */x(p,{name:"play","aria-hidden":"true",className:"h-4 w-4"}),disabled:je}],block:!0,size:"md",label:"string"==typeof P&&P?P:te.upload})}),w?He:Se,!R&&/* @__PURE__ */x("input",{...Ce.inputProps}),
|
|
11
11
|
/* @__PURE__ */x(h,{rejections:Ce.rejections})]})}export{w as MediaUploadField};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e;function t(t,n){if(void 0===e&&(e=null,"undefined"!=typeof document))try{e=document.createElement("canvas").getContext("2d")}catch{e=null}return e?(e.font=n,e.measureText(t).width):null}export{t as textWidth};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{MediaUploadField as e}from"./chunk-
|
|
2
|
-
return n("section",{"aria-label":
|
|
1
|
+
import{MediaUploadField as e}from"./chunk-UGEX7SVM.js";import{BrandMark as r}from"./chunk-MI67DI3H.js";import{Button_default as a}from"./chunk-EVYD6UFQ.js";import{useShellStrings as t}from"./chunk-IUVGHHR3.js";import{useRef as i,useState as l,useEffect as s}from"react";import{jsxs as n,jsx as c}from"react/jsx-runtime";function d({committedUrl:d,committedHasAlpha:o=null,committedIsLight:m=null,fallbackUrl:g,fallbackHasAlpha:h=null,fallbackIsLight:u=null,subjectName:b,assetName:p,onSave:x,onRemove:f,accept:v="image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",acceptHint:y="PNG · ICO · SVG · JPG · WEBP",maxBytes:N=5242880,previews:w=[],disabled:k=!1}){const j=i(null),[L,U]=l(null),[R,H]=l(""),[I,C]=l(""),[E,F]=l(!1),[G,A]=l(!1),O=function(e){return e.trim().toLocaleLowerCase().split(/\s+/).at(-1)||"image"}(p),S=t().brandAsset,V=R||d||g||"",B=L?null:d?o:h,P=L?null:d?m:u;s(()=>()=>{j.current&&URL.revokeObjectURL(j.current)},[]);const $=()=>{j.current&&(URL.revokeObjectURL(j.current),j.current=null)};/* @__PURE__ */
|
|
2
|
+
return n("section",{"aria-label":S.region(p,b),className:"grid gap-4 lg:grid-cols-2",children:[
|
|
3
3
|
/* @__PURE__ */n("div",{className:"rounded-lg border border-gray-200 bg-white p-4",children:[
|
|
4
|
-
/* @__PURE__ */c(e,{value:
|
|
4
|
+
/* @__PURE__ */c(e,{value:V,onChange:()=>{},onFile:e=>{if(k)return;$();const r=URL.createObjectURL(e);j.current=r,U(e),H(r),C("")},label:p,hint:I||S.usedFor(b),error:I||void 0,accept:v,acceptHint:y,maxSizeBytes:N,fit:"contain",height:180,allowRemove:!1,busy:E||G,disabled:k}),
|
|
5
5
|
/* @__PURE__ */n("div",{className:"mt-3 flex flex-wrap gap-2",children:[
|
|
6
|
-
/* @__PURE__ */c(a,{onClick:async()=>{if(L&&!k&&!
|
|
7
|
-
/* @__PURE__ */c("h3",{className:"text-sm font-semibold text-gray-900",children:
|
|
8
|
-
/* @__PURE__ */c("div",{className:"mt-3 grid gap-3",children:w.map(e=>{const a=/* @__PURE__ */c(r,{src:
|
|
6
|
+
/* @__PURE__ */c(a,{onClick:async()=>{if(L&&!k&&!E){F(!0),C("");try{await x(L),$(),U(null),H("")}catch(e){C(e instanceof Error?e.message:S.saveFailed(O,p))}finally{F(!1)}}},disabled:!L||k,loading:E,children:S.save(O,p)}),(L||d)&&/* @__PURE__ */c(a,{variant:"ghost-danger",onClick:async()=>{if(!k&&!G){if(L)return $(),U(null),H(""),void C("");if(d){A(!0),C("");try{await f()}catch(e){C(e instanceof Error?e.message:S.removeFailed(O,p))}finally{A(!1)}}}},disabled:k,loading:G,children:L?S.discard:S.remove(O,p)})]})]}),w.length>0&&/* @__PURE__ */n("div",{className:"rounded-lg border border-gray-200 bg-white p-4","aria-label":S.previews(p),children:[
|
|
7
|
+
/* @__PURE__ */c("h3",{className:"text-sm font-semibold text-gray-900",children:S.preview}),
|
|
8
|
+
/* @__PURE__ */c("div",{className:"mt-3 grid gap-3",children:w.map(e=>{const a=/* @__PURE__ */c(r,{src:V,alt:S.alt(b,p),slot:e.slot,surface:e.surface,adaptive:!0,hasAlpha:B,isLight:P,size:"browser-tab"===e.kind?16:void 0});/* @__PURE__ */
|
|
9
9
|
return n("div",{"data-brand-preview":!0,className:"dark"===e.surface?"text-white":"text-gray-900",children:[
|
|
10
10
|
/* @__PURE__ */c("div",{className:"mb-2 text-xs font-medium text-gray-500",children:e.label}),"browser-tab"===e.kind?/* @__PURE__ */n("div",{className:"flex items-end gap-1 border-b border-gray-200",children:[
|
|
11
11
|
/* @__PURE__ */n("div",{className:"flex max-w-[220px] items-center gap-2 rounded-t-lg border border-b-0 border-gray-200 bg-white px-3 py-2",children:[a,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{GROUP_COLORS as e,BADGE_PILL as o}from"./chunk-
|
|
1
|
+
import{GROUP_COLORS as e,BADGE_PILL as o}from"./chunk-WU2ZA6J2.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as r}from"./chunk-G67CJAQ2.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";function l({colorClass:l,tone:c,children:a,size:m="sm",capitalize:p=!1,closable:u=!1,onClose:f,closeLabel:h,className:x=""}){const d=l??e[c??"neutral"],y="xs"===m?"px-2 py-0.5 text-3xs":"md"===m?"px-3 py-0.5 text-xs":"px-2 py-0.5 text-xs",b=p?"capitalize":"",g=s().badge,j=h??("string"==typeof a?g.removeItem(a):g.remove),k="xs"===m?"h-2.5 w-2.5":"h-3 w-3";/* @__PURE__ */
|
|
2
2
|
return t("span",{className:[o,"font-medium",y,b,d,x].filter(Boolean).join(" "),children:[
|
|
3
3
|
/* @__PURE__ */n(r,{children:a}),u&&/* @__PURE__ */n("button",{type:"button",onClick:f,"aria-label":j,className:"-mr-0.5 ml-1 inline-flex shrink-0 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",children:/* @__PURE__ */n(i,{name:"close",look:"mini",className:k,"aria-hidden":"true"})})]})}export{l as ColoredBadge};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{IconButton_default as e}from"./chunk-SV5RRBVA.js";import{CloseGlyph as t}from"./chunk-
|
|
1
|
+
import{IconButton_default as e}from"./chunk-SV5RRBVA.js";import{CloseGlyph as t}from"./chunk-G4PPHQ23.js";import{humanSize as n,useFileIntake as r,FileIntakeAlert as a}from"./chunk-VFSAJMNX.js";import{Button_default as s}from"./chunk-EVYD6UFQ.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useShellStrings as c}from"./chunk-IUVGHHR3.js";import{useRef as l,useEffect as o}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
2
2
|
return d(i,{name:"attach",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function p({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
3
3
|
return d(i,{name:"page",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function h({intake:e,dropLabel:t,className:n="",children:r}){const a=c().files;/* @__PURE__ */
|
|
4
4
|
return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,children:[r,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{OneLineLabel as t}from"./chunk-G67CJAQ2.js";import{createContext as s,useContext as a,useCallback as r}from"react";import{jsx as o}from"react/jsx-runtime";var e="inline-flex max-w-full items-center whitespace-nowrap rounded-full",n={success:"bg-[var(--status-success-soft)] text-[color:var(--status-success-soft-ink)]",active:"bg-[var(--status-active-soft)] text-[color:var(--status-active-soft-ink)]",queued:"bg-[var(--status-queued-soft)] text-[color:var(--status-queued-soft-ink)]",info:"bg-[var(--status-info-soft)] text-[color:var(--status-info-soft-ink)]",pending:"bg-[var(--status-pending-soft)] text-[color:var(--status-pending-soft-ink)]",warning:"bg-[var(--status-warning-soft)] text-[color:var(--status-warning-soft-ink)]",danger:"bg-[var(--status-danger-soft)] text-[color:var(--status-danger-soft-ink)]",draft:"bg-[var(--status-draft-soft)] text-[color:var(--status-draft-soft-ink)]",neutral:"bg-[var(--status-neutral-soft)] text-[color:var(--status-neutral-soft-ink)]"},u={success:"bg-[var(--status-success-solid)] text-[color:var(--status-on-solid)]",active:"bg-[var(--status-active-solid)] text-[color:var(--status-on-solid)]",queued:"bg-[var(--status-queued-solid)] text-[color:var(--status-on-solid)]",info:"bg-[var(--status-info-solid)] text-[color:var(--status-on-solid)]",pending:"bg-[var(--status-pending-solid)] text-[color:var(--status-on-solid)]",warning:"bg-[var(--status-warning-solid)] text-[color:var(--status-on-solid)]",danger:"bg-[var(--status-danger-solid)] text-[color:var(--status-on-solid)]",draft:"bg-[var(--status-draft-solid)] text-[color:var(--status-on-solid)]",neutral:"bg-[var(--status-neutral-solid)] text-[color:var(--status-on-solid)]"};function i(t,s="subtle"){return"solid"===s?u[t]:n[t]}var l=s({}),c=s(void 0);function d(t){return t.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function v({groups:t,labelFor:s,children:a}){/* @__PURE__ */
|
|
2
2
|
return o(l.Provider,{value:t,children:/* @__PURE__ */o(c.Provider,{value:s,children:a})})}function f(){const t=a(c);return r(s=>t?.(s)??d(s),[t])}function g({status:s,label:r,emphasis:n="subtle"}){const u=i(a(l)[s]??"neutral",n),v=a(c),f=r??v?.(s)??d(s);/* @__PURE__ */
|
|
3
|
-
return o("span",{className:`${e} px-3 py-0.5 text-xs font-medium ${u}`,children:/* @__PURE__ */o(t,{children:f})})}export{e as BADGE_PILL,n as GROUP_COLORS,u as GROUP_COLORS_SOLID,g as StatusBadge,v as StatusBadgeProvider,i as groupColors,f as useStatusLabel};
|
|
3
|
+
return o("span",{className:`${e} px-3 py-0.5 text-xs font-medium ${u}`,children:/* @__PURE__ */o(t,{children:f})})}export{e as BADGE_PILL,n as GROUP_COLORS,u as GROUP_COLORS_SOLID,g as StatusBadge,v as StatusBadgeProvider,i as groupColors,d as statusLabel,f as useStatusLabel};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{resolveColumnShares as e,COLUMN_SHARES_EQUAL as r,COLUMN_SHARE_MIN as t,COLUMN_COUNT_MAX as n}from"./chunk-PLGJOHEG.js";import{InputNumber_default as o}from"./chunk-F5B5WOQ7.js";import{textWidth as l}from"./chunk-UVCMV2TL.js";import{Tooltip as i}from"./chunk-SOZCWT6I.js";import{useShellStrings as a}from"./chunk-IUVGHHR3.js";import{useId as s,useRef as c,useState as u,useEffect as d,Fragment as h}from"react";import{jsxs as f,jsx as m}from"react/jsx-runtime";var p=(e,r,t)=>Math.min(t,Math.max(r,e)),g=e=>e.reduce((e,r)=>e+r,0),v=(e,r)=>e.length===r.length&&e.every((e,t)=>e===r[t]);var b="w-0.5",y=`${b} group-hover/widths:w-1 group-focus-visible/widths:w-1`;var w=["text-blue-700","text-gray-600"];function x({count:x,value:$,onChange:k,label:C,"aria-labelledby":N,readOnly:P=!1,disabled:M=!1,className:j=""}){const R=a().widths,z=s(),B=p(Math.round(x)||1,1,n),O=e($,B),S=O??[...r[B]??[]],A=[...S,100-g(S)],T=P||M,D=c(null),H=c({onChange:k,shown:S,locked:T,n:B,stored:O});H.current={onChange:k,shown:S,locked:T,n:B,stored:O};const I=r=>{const{onChange:t,shown:n,locked:o,n:l}=H.current;if(o)return!1;const i=e(r,l);return!(!i||v(i,n))&&(t(i),!0)},K=(e,r,n)=>{const o=e[r]+e[r+1],l=[...e];l[r]=p(Math.round(n),t,o-t),l[r+1]=o-l[r],I(l.slice(0,-1))&&(ne.current=null)},L=e=>r=>{if(r.altKey||r.ctrlKey||r.metaKey)return;const n=r.shiftKey?10:1,o=A[e]+A[e+1],l="ArrowRight"===r.key?A[e]+n:"ArrowLeft"===r.key?A[e]-n:"PageUp"===r.key?A[e]+10:"PageDown"===r.key?A[e]-10:"Home"===r.key?t:"End"===r.key?o-t:null;null!==l&&(r.preventDefault(),K(A,e,l))},U=c(null),[V,W]=u(null),E=()=>{U.current=null,W(null),document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")};d(()=>E,[]);const F=e=>r=>{if(0!==r.button||T)return;r.preventDefault();const t=D.current?.getBoundingClientRect().width??0;t<=0||(U.current={i:e,x:r.clientX,width:t,from:A,moved:!1,pointer:r.pointerId},W(e),r.currentTarget.setPointerCapture?.(r.pointerId),document.body.style.cursor="col-resize",document.body.style.userSelect="none")},G=e=>{const r=U.current;if(!r)return;if(0===e.buttons)return void E();const t=e.clientX-r.x;if(!r.moved){if(Math.abs(t)<3)return;r.moved=!0}K(r.from,r.i,r.from[r.i]+t/r.width*100)},X=e=>{const r=U.current;r&&(e.currentTarget.hasPointerCapture?.(r.pointer)&&e.currentTarget.releasePointerCapture(r.pointer),E())},q=(e,r)=>{const{shown:n}=H.current,o=function(e,r,n){const o=e.length,l=[...e];if(o<2)return l;const i=p(Math.round(n),t,100-(o-1)*t);let a=i-l[r];l[r]=i;const s=[...Array.from({length:o-1-r},(e,t)=>r+1+t),...Array.from({length:r},(e,t)=>r-1-t)];if(a<0)return l[s[0]]-=a,l;for(const e of s){if(a<=0)break;const r=Math.min(a,l[e]-t);l[e]-=r,a-=r}return l}([...n,100-g(n)],e,r);return I(o.slice(0,-1))?o:null},[J,Q]=u(0);d(()=>{const e=D.current;if(!e||"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver(()=>Q(e.getBoundingClientRect().width));return r.observe(e),()=>r.disconnect()},[]);const Z=c(null),[Y,_]=u(null),[ee,re]=u([]),te=(e,r)=>_(t=>r?e:t===e?null:t),ne=c(null),oe=(e,r)=>{const t=ne.current;if(!t||t.column!==e||t.share!==r)return!1;const{onChange:n,locked:o,stored:l}=H.current;var i,a;return o||(i=l,a=t.stored,void 0===i||void 0===a?i===a:v(i,a))||n(t.stored),!0},le=A.join(",");d(()=>{const e=null===Y?[]:function(e,r){if(!e)return[];const t=Array.from(e.querySelectorAll("input[data-widths-label]")),n=t[r]?.getBoundingClientRect();return n&&0!==n.width?null===l("","12px sans-serif")?[]:t.flatMap((e,t)=>{if(t===r)return[];const o=e.getBoundingClientRect(),i=getComputedStyle(e),a=(l(e.value,`${i.fontWeight} ${i.fontSize} ${i.fontFamily}`)??0)/2,s=(o.left+o.right)/2;return s+a>n.left&&s-a<n.right?[t]:[]}):[]}(Z.current,Y);re(r=>v(r,e)?r:e)},[Y,le,J]);const ie=R.hint(B,t),ae=A.slice(0,-1).map((e,r)=>g(A.slice(0,r+1)));/* @__PURE__ */
|
|
2
|
+
return f("div",{role:"group","aria-label":N?void 0:C,"aria-labelledby":N,"aria-describedby":B>1?z:void 0,className:`flex w-full min-w-0 flex-col gap-2 ${M?"opacity-60":""} ${j}`.trim(),children:[
|
|
3
|
+
/* @__PURE__ */f("div",{ref:Z,"data-widths-bar":"",className:"relative h-8",children:[
|
|
4
|
+
/* @__PURE__ */m("div",{ref:D,"data-widths-track":"",className:"flex h-full w-full overflow-hidden rounded-(--radius-control) bg-surface",children:A.map((e,r)=>/* @__PURE__ */m("div",{"data-widths-segment":"",style:{flexBasis:`${e}%`},className:`flex min-w-0 shrink-0 grow-0 items-center justify-center overflow-hidden whitespace-nowrap text-xs font-medium tabular-nums ${w[r%2]} ${r%2==0?"bg-accent-tint":""}`,children:1===B&&/* @__PURE__ */m("span",{"data-widths-label":"",children:`${e}%`})},r))}),
|
|
5
|
+
/* @__PURE__ */m("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 rounded-(--radius-control) border border-line-strong"}),B>1&&A.map((e,r)=>/* @__PURE__ */f(h,{children:[(()=>{const n=Y===r,l=g(A.slice(0,r)),a=n?`max(${e}%, 40px)`:`${e}%`;/* @__PURE__ */
|
|
6
|
+
return m("div",{"data-widths-tip":"",className:"absolute inset-y-0 "+(n?"z-20":""),style:{left:`clamp(0px, calc(${l+e/2}% - ${a} / 2), calc(100% - ${a}))`,width:a},children:/* @__PURE__ */m(i,{content:ie,delay:600,describe:!1,className:"absolute inset-0",children:/* @__PURE__ */m(o,{appearance:"bare",value:e,display:()=>(e=>J>0&&J*e/100<36?String(e):`${e}%`)(e),suffix:"%",min:t,max:100-(B-1)*t,step:1,shiftStep:10,precision:0,allowEmpty:!1,reportWhileTyping:!1,readOnly:P,disabled:M,"aria-label":R.column(r+1),"aria-describedby":z,"data-widths-label":"",onChange:e=>{null===e||oe(r,e)||q(r,e)},onRevert:e=>((e,r)=>{H.current.locked||null===r||oe(e,r)||q(e,r)})(r,e),onFocus:()=>{ne.current={column:r,share:e,stored:H.current.stored},te(r,!0)},onBlur:()=>te(r,!1),className:`absolute inset-0 text-xs font-medium ${w[r%2]} ${ee.includes(r)&&!n?"opacity-0":""}`})})})})(),r<B-1&&/* @__PURE__ */m("div",{className:"absolute inset-y-0 z-10 w-3 -translate-x-1/2",style:{left:`${ae[r]}%`},children:/* @__PURE__ */m(i,{content:R.dragHint,delay:600,className:"relative flex h-full w-full",children:/* @__PURE__ */m("div",{role:"separator",tabIndex:M?-1:0,"aria-orientation":"vertical","aria-label":R.divider(r+1,r+2),"aria-valuenow":A[r],"aria-valuemin":t,"aria-valuemax":A[r]+A[r+1]-t,"aria-valuetext":R.dividerValue(r+1,A[r],r+2,A[r+1]),"aria-disabled":T||void 0,onKeyDown:T?void 0:L(r),onPointerDown:F(r),onPointerMove:G,onPointerUp:X,onPointerCancel:X,onLostPointerCapture:()=>{U.current&&E()},className:"group/widths flex h-full w-full touch-none justify-center rounded-(--radius-control) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(T?"cursor-default":"cursor-col-resize"),children:/* @__PURE__ */m("span",{"aria-hidden":"true","data-widths-line":"",className:"h-full rounded-full "+(T?`${b} bg-gray-300`:`bg-accent-fill transition-[width,background-color] duration-(--motion-fast) group-hover/widths:bg-blue-700 ${V===r?"w-1":y}`)})})})})]},r))]}),B>1&&/* @__PURE__ */m("span",{id:z,className:"sr-only",children:ie})]})}export{x as WidthsBar};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Popover as e}from"./chunk-
|
|
2
|
-
return l(e,{className:k,disabled:N,triggerLabel:V?y.button(p,I(V)):p,"aria-label":p,initialFocus:
|
|
1
|
+
import{Popover as e}from"./chunk-KXPXLUNM.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{Tooltip as a}from"./chunk-SOZCWT6I.js";import{useShellStrings as t}from"./chunk-IUVGHHR3.js";import{useRef as i}from"react";import{jsx as l,jsxs as o,Fragment as s}from"react/jsx-runtime";var c={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]},u={alignItems:"flex-start",paddingTop:"var(--space-8)",paddingBottom:"var(--space-4)"};function d({value:d,onChange:m,options:h,label:p,emptyValue:f,columns:g=5,cell:v,header:w,onPreview:b,tooltips:x=!0,disabled:N=!1,className:k=""}){const j=t(),y=j.iconPicker,A=j.iconNames,I=e=>e.label??A[e.value]??e.value,C=i([]),R=Math.max(0,h.findIndex(e=>e.value===d)),V=h[R],D=V?.value===f,M=i(null);/* @__PURE__ */
|
|
2
|
+
return l(e,{className:k,disabled:N,triggerLabel:V?y.button(p,I(V)):p,"aria-label":p,initialFocus:M,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */l("span",D||!V?{className:"text-sm",children:V?I(V):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:V.icon}),
|
|
3
3
|
/* @__PURE__ */l(n,{name:"chevron-down",className:"h-4 w-4"})]}),children:({close:e})=>/* @__PURE__ */o(s,{children:["function"==typeof w?w({close:e}):w,
|
|
4
|
-
/* @__PURE__ */l("div",{role:"listbox","aria-label":p,className:v?"grid gap-1 rosh-one-height-rows":"grid gap-1",style:{gridTemplateColumns:`repeat(${g}, ${v?.width??"2rem"})`},children:h.map((n,t)=>{const i=n.value===d,o=/* @__PURE__ */l(r,{ref:e=>{
|
|
4
|
+
/* @__PURE__ */l("div",{role:"listbox","aria-label":p,className:v?"grid gap-1 rosh-one-height-rows":"grid gap-1",style:{gridTemplateColumns:`repeat(${g}, ${v?.width??"2rem"})`},children:h.map((n,t)=>{const i=n.value===d,o=/* @__PURE__ */l(r,{ref:e=>{C.current[t]=e,t===R&&(M.current=e)},role:"option","aria-selected":i,"aria-label":I(n),pressed:i,tabIndex:t===R?0:-1,onKeyDown:e=>((e,r)=>{const n=c[r.key];if(!n)return;r.preventDefault();const a=Math.floor(e/g)+n[0],t=e%g+n[1];if(a<0||t<0||t>=g)return;const i=a*g+t;if(!(i>=h.length)){for(const[e,r]of C.current.entries())r?.setAttribute("tabindex",e===i?"0":"-1");C.current[i]?.focus()}})(t,e),onClick:()=>{m(n.value),e()},onMouseEnter:b?e=>b(n.value,e.currentTarget):void 0,style:v?{width:v.width,height:"auto",minHeight:v.height,...v.words?u:null}:void 0,children:/* @__PURE__ */l("span",{"aria-hidden":"true",className:v?"inline-flex":"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})},n.value);return x?/* @__PURE__ */l(a,{content:I(n),children:o},n.value):o})})]})})}export{d as IconPicker};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{getActiveModalId as t}from"./chunk-F3ZOO23R.js";import{Icon as e}from"./chunk-ISVODSRP.js";import{Z_LAYERS as n}from"./chunk-62LW225J.js";import{useBrowserLayoutEffect as i}from"./chunk-D65T4H6J.js";import{useShellStrings as o}from"./chunk-IUVGHHR3.js";import{createContext as r,useContext as u,useRef as s,useState as l}from"react";import{jsx as d}from"react/jsx-runtime";var h=r(void 0),c=h.Provider;function a(t){const e=u(h);return t?void 0===e?document.body:e:null}function f(t,e){if("undefined"==typeof Element||!(t instanceof Element))return!1;const n=t.closest("[data-overlay-layer]");return null!==n&&!e?.contains(n)}var w="[data-modal-panel], [data-popup-panel]",v=16;function p(t,e){const n=Math.max(0,t.left),i=Math.max(0,t.top),o=Math.min(e.width,t.left+t.width),r=Math.min(e.height,t.top+t.height);return o-n<1||r-i<1?null:{left:n,top:i,width:o-n,height:r-i}}function m(t,e,n){return n<e?e:Math.min(Math.max(t,e),n)}function b(){return{width:window.innerWidth,height:window.innerHeight}}function g(t,e){const n=s(null),o=s(!1);t&&!o.current&&(n.current="undefined"==typeof document?null:document.activeElement),o.current=t;const[r,u]=l(null);return i(()=>{if(!t)return void u(null);const i=(o=e.current,r=n.current,o?.parentElement?.closest(w)??r?.closest(w)??null);var o,r;if(!i)return void u(null);const s=()=>{const t=i.getBoundingClientRect(),e=b(),n=p({left:t.left,top:t.top,width:t.width,height:t.height},e),o=null!==n&&n.width>=e.width-1&&n.height>=e.height-1;u(t=>{const e=o?null:n;return t===e||t&&e&&t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height?t:e})};s(),window.addEventListener("resize",s);const l="undefined"==typeof ResizeObserver?null:new ResizeObserver(s);return l?.observe(i),()=>{window.removeEventListener("resize",s),l?.disconnect()}},[t,e]),r}function x(t,e){const[n,o]=l(null);return i(()=>{const n=e.current;if(!t||!n)return void o(null);const i=()=>{const e=function(t,e,n,i=16){return{left:m(t.left+t.width/2-e.width/2,i,n.width-i-e.width),top:m(t.top+t.height/2-e.height/2,i,n.height-i-e.height)}}(t,{width:n.offsetWidth,height:n.offsetHeight},b());o(t=>t&&t.left===e.left&&t.top===e.top?t:e)};i(),window.addEventListener("resize",i);const r="undefined"==typeof ResizeObserver?null:new ResizeObserver(i);return r?.observe(n),()=>{window.removeEventListener("resize",i),r?.disconnect()}},[t,e]),n}var y=/* @__PURE__ */new WeakMap;function z(t){if(!t)return null;const e=t.closest("[data-overlay-layer]");return e?y.get(e)??null:t.closest("[data-modal-panel]")}var E={host:null,box:null,z:0,hidden:!1};function O(t,e){const n=s(null),o=s(!1);t&&!o.current&&(n.current="undefined"==typeof document?null:document.activeElement),o.current=t;const[r,u]=l(E);return i(()=>{if(!t)return void u(E);const i=(o=e.current,r=n.current,z(o?.parentElement)??z(r));var o,r;if(!i)return void u(E);const s=()=>{const t=i.getBoundingClientRect(),e=getComputedStyle(i),n=p({left:t.left,top:t.top,width:t.width,height:t.height},{width:window.innerWidth,height:window.innerHeight}),o=Number.parseInt(e.zIndex,10),r={host:i,box:n,z:Number.isFinite(o)?o:0,hidden:null===n||"none"===e.display||"hidden"===e.visibility};u(t=>{return n=r,(e=t).host===n.host&&e.z===n.z&&e.hidden===n.hidden&&(e.box===n.box||null!==e.box&&null!==n.box&&e.box.left===n.box.left&&e.box.top===n.box.top&&e.box.width===n.box.width&&e.box.height===n.box.height)?t:r;var e,n})};s(),window.addEventListener("resize",s);const l="undefined"==typeof ResizeObserver?null:new ResizeObserver(s);l?.observe(i);const d="undefined"==typeof MutationObserver?null:new MutationObserver(s);return d?.observe(i,{attributes:!0,attributeFilter:["style","class"]}),()=>{window.removeEventListener("resize",s),l?.disconnect(),d?.disconnect()}},[t,e]),r}function R(e,n){const i=s(null);return i.current=i=>function(t,e,n,i){const o=t.host;if(!o)return!1;if(n&&e?.contains(n))return!1;const r=o.getAttribute("data-modal-id");if(i&&r&&i!==r)return!0;const u=z(n);return null!==u&&u!==o&&!o.contains(u)}(e,n,i,t()),n&&function(t,e){y.set(t,e)}(n,e.host),i}function k(t){return t.host?{zIndex:t.z+1,...t.hidden?{visibility:"hidden"}:{}}:{zIndex:n.overlay}}function M(t){if(!t.host||!t.box)return null;const{left:e,top:n,width:i,height:o}=t.box;return{left:e,top:n,width:i,height:o}}function L(t){return null!==t.host&&!t.host.hasAttribute("data-window-tab")}function j({onClose:t,className:n=""}){const i=o().dialog;/* @__PURE__ */
|
|
2
|
+
return d("button",{type:"button",onClick:t,"aria-label":i.close,className:(n?`${n} `:"")+"rounded-(--radius-control) p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */d(e,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})}export{j as CloseButton,c as OverlayLayerProvider,v as POPUP_GUTTER,f as isInOverlayOver,k as popupLayerStyle,L as scrimHasCorners,a as useOverlayTarget,x as usePanelPosition,g as usePopupAnchor,O as usePopupLevel,R as usePopupLevelBindings,M as windowScrimStyle};
|
package/dist/data/EntityList.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{EntityList as default}from"../chunk-
|
|
2
|
+
export{EntityList as default}from"../chunk-RZ3OQFOD.js";import"../chunk-UFX7F3KG.js";import"../chunk-ATMJ5ZPK.js";import"../chunk-G6DKCCWH.js";import"../chunk-DO3DSSAW.js";import"../chunk-VCR3RADH.js";import"../chunk-5HBAJ2UA.js";import"../chunk-SI26KESU.js";import"../chunk-U6DRRCCG.js";import"../chunk-ULJQYXHB.js";import"../chunk-CGZBDI6C.js";import"../chunk-4U5M37SF.js";import"../chunk-F3ZOO23R.js";import"../chunk-2QY5BJLA.js";import"../chunk-UGTRSRIW.js";import"../chunk-KC3EX26K.js";import"../chunk-GOAFMGUI.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-STKJA4PV.js";import"../chunk-VQ35LXDC.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ResizableTable as default}from"../chunk-
|
|
2
|
+
export{ResizableTable as default}from"../chunk-5HBAJ2UA.js";import"../chunk-SI26KESU.js";import"../chunk-U6DRRCCG.js";import"../chunk-ULJQYXHB.js";import"../chunk-2QY5BJLA.js";import"../chunk-UGTRSRIW.js";import"../chunk-KC3EX26K.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-STKJA4PV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** The badge's side padding: StatusBadge draws it as a control's side padding.
|
|
2
|
+
* tests/statusColumn.test.tsx fails if the badge's class stops matching. */
|
|
3
|
+
declare const BADGE_X: 12;
|
|
4
|
+
/** The list cell's side padding: EntityList's body cell. That cell is wider
|
|
5
|
+
* than the token role `cellX` (12); this follows what EntityList draws, and
|
|
6
|
+
* tests/statusColumn.test.tsx fails if its class stops matching. */
|
|
7
|
+
declare const CELL_X: 16;
|
|
8
|
+
/**
|
|
9
|
+
* The width of a list's Status column: its longest status badge plus the
|
|
10
|
+
* badge's and the cell's padding, so no status is cut ("Cancel…").
|
|
11
|
+
*
|
|
12
|
+
* Pass the column's WHOLE status set, keyed by the stored value; type the key
|
|
13
|
+
* from the row (`statusColumn<Row['status']>({ … })`) and a status the backend
|
|
14
|
+
* adds later is a type error until the column lists it. `true` = the badge's
|
|
15
|
+
* derived words (`statusLabel`); a string = the `label` the cell passes to
|
|
16
|
+
* `StatusBadge`. Spread the result into the column:
|
|
17
|
+
*
|
|
18
|
+
* { key: 'status', label: 'Status', ...statusColumn<Row['status']>({ draft: true, posted: true }) }
|
|
19
|
+
*
|
|
20
|
+
* `minWidth` equals the fit, so a layout a user saved narrower before still
|
|
21
|
+
* opens wide enough (`useColumnConfig` never shows a width below `minWidth`).
|
|
22
|
+
* A provider `labelFor` is not seen here (it lives in a render); a host that
|
|
23
|
+
* renames statuses passes its words as strings.
|
|
24
|
+
*/
|
|
25
|
+
declare function statusColumn<S extends string>(statuses: Record<S, true | string>): {
|
|
26
|
+
defaultWidth: number;
|
|
27
|
+
minWidth: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { BADGE_X, CELL_X, statusColumn };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{BADGE_X,CELL_X,statusColumn}from"../chunk-LHHJHTWP.js";import"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";import"../chunk-AW7TOB6N.js";import"../chunk-WU2ZA6J2.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{useColumnConfig}from"../chunk-
|
|
2
|
+
export{useColumnConfig}from"../chunk-U6DRRCCG.js";import"../chunk-ULJQYXHB.js";import"../chunk-KC3EX26K.js";import"../chunk-D65T4H6J.js";import"../chunk-STKJA4PV.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{borderSides,borderStartEach,BorderInput as default}from"../chunk-
|
|
2
|
+
export{borderSides,borderStartEach,BorderInput as default}from"../chunk-JFRBUVHX.js";import"../chunk-ZNKZ6J65.js";import"../chunk-QVQO3EFL.js";import"../chunk-KXPXLUNM.js";import"../chunk-F5B5WOQ7.js";import"../chunk-QOYKBINM.js";import"../chunk-2NMW66P5.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";import"../chunk-S6OB6HJB.js";import"../chunk-3DSGJIC7.js";import"../chunk-UZFFSZFI.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-DWGYC7OD.js";import"../chunk-GOAFMGUI.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-BWJZTHZ6.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{BrandAssetEditor as default}from"../chunk-
|
|
2
|
+
export{BrandAssetEditor as default}from"../chunk-WJ7U6TGK.js";import"../chunk-UGEX7SVM.js";import"../chunk-5POQCJL6.js";import"../chunk-6KBDNYRW.js";import"../chunk-MI67DI3H.js";import"../chunk-25RR3GQW.js";import"../chunk-HNIIDDLJ.js";import"../chunk-EFKJLUYP.js";import"../chunk-G4PPHQ23.js";import"../chunk-6LS6Q77E.js";import"../chunk-VFSAJMNX.js";import"../chunk-WU2ZA6J2.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ColorPickerPanel,ColorSwatch,HexInput,NO_COLOR_FILL,clampOpacity,colorFill,colorSwatchClasses,ColorPicker as default,stepHue,stepOpacity,stepSquare}from"../chunk-
|
|
2
|
+
export{ColorPickerPanel,ColorSwatch,HexInput,NO_COLOR_FILL,clampOpacity,colorFill,colorSwatchClasses,ColorPicker as default,stepHue,stepOpacity,stepSquare}from"../chunk-QVQO3EFL.js";import"../chunk-KXPXLUNM.js";import"../chunk-F5B5WOQ7.js";import"../chunk-QOYKBINM.js";import"../chunk-2NMW66P5.js";import"../chunk-S6OB6HJB.js";import"../chunk-3DSGJIC7.js";import"../chunk-UZFFSZFI.js";import"../chunk-SV5RRBVA.js";import"../chunk-AYZY3YNC.js";import"../chunk-DWGYC7OD.js";import"../chunk-GOAFMGUI.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-BWJZTHZ6.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{AttachButton,AttachmentDropZone,AttachmentList,PaperclipGlyph,ComposerAttachments as default}from"../chunk-
|
|
2
|
+
export{AttachButton,AttachmentDropZone,AttachmentList,PaperclipGlyph,ComposerAttachments as default}from"../chunk-WP43XYL6.js";import"../chunk-SV5RRBVA.js";import"../chunk-G4PPHQ23.js";import"../chunk-6LS6Q77E.js";import"../chunk-VFSAJMNX.js";import"../chunk-WU2ZA6J2.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
package/dist/forms/FilePicker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FilePicker_default as default}from"../chunk-
|
|
2
|
+
export{FilePicker_default as default}from"../chunk-S6YEPA4I.js";import"../chunk-6KBDNYRW.js";import"../chunk-G4PPHQ23.js";import"../chunk-6LS6Q77E.js";import"../chunk-VFSAJMNX.js";import"../chunk-WU2ZA6J2.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|
package/dist/forms/IconPicker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{IconPicker as default}from"../chunk-
|
|
2
|
+
export{IconPicker as default}from"../chunk-ZNKZ6J65.js";import"../chunk-KXPXLUNM.js";import"../chunk-SV5RRBVA.js";import"../chunk-DWGYC7OD.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-BWJZTHZ6.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
|