efficient-shell 4.155.3 → 4.156.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/dist/{Browser-TIDINTH6.js → Browser-UT55GS2Q.js} +14 -14
- package/dist/{Documents-RAMFBU5W.js → Documents-CFKC6E56.js} +4 -4
- package/dist/{Files-MNQESP7F.js → Files-A5PJMN3R.js} +81 -81
- package/dist/Notepad-LLYR2OFZ.js +25 -0
- package/dist/{Preview-B4YSLMYC.js → Preview-YH5VHR7Q.js} +15 -15
- package/dist/{Spreadsheet-MGNBOJBM.js → Spreadsheet-2ZQYF6H3.js} +14 -14
- package/dist/apps/index.js +1 -1
- package/dist/chunk-KAESEFKM.js +1 -0
- package/dist/{chunk-YW2RNWY4.js → chunk-KOUCDWJR.js} +1 -1
- package/dist/{chunk-F23LRPOG.js → chunk-SYMCTL7Q.js} +46 -46
- package/dist/chunk-ZQMUHLYL.js +1 -0
- package/dist/index.js +645 -645
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
- package/dist/Notepad-4NPCRBGL.js +0 -25
- package/dist/chunk-LVTPUYJO.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{Breadcrumbs as e}from"./chunk-26RS37FG.js";import{SidebarLayout as t}from"./chunk-KASHUEJV.js";import{BrandMark as r}from"./chunk-ELCH5NDO.js";import{toast_default as n}from"./chunk-B2TBCVHH.js";import{useIsMobile as a,useShortcutLabel as l,useShellPrefs as i}from"./chunk-T6MKFQRH.js";import{
|
|
2
|
-
return re("button",{ref:i,type:n,className:
|
|
1
|
+
import{Breadcrumbs as e}from"./chunk-26RS37FG.js";import{SidebarLayout as t}from"./chunk-KASHUEJV.js";import{BrandMark as r}from"./chunk-ELCH5NDO.js";import{toast_default as n}from"./chunk-B2TBCVHH.js";import{useIsMobile as a,useShortcutLabel as l,useShellPrefs as i}from"./chunk-T6MKFQRH.js";import{iconButtonClasses as s,Button_default as o,buttonClasses as c}from"./chunk-PH3PRIFP.js";import{useFileIntake as d,humanSize as u,FileIntakeAlert as h}from"./chunk-FHIF6IUV.js";import{useTabLayer as m,focusableIn as p,useFocusTrap as g,useScrollLock as f,stopAfter as x}from"./chunk-PDTZTADH.js";import{glassStyle as b,glassFill as y,PopupMenu as v,PopupMenuDivider as w,PopupMenuLabel as N,itemLook as k}from"./chunk-J7LKJIZC.js";import{registerModalEscapeInterceptor as M,onOverlayOpen as $,Z_LAYERS as C,useDismissPopupsOnOpen as L}from"./chunk-OSJ3ADF2.js";import{useShellLocale as D,useShellStrings as j,DEFAULT_SHELL_STRINGS as S,currentShellStrings as z,formatPlain as P,formatFixed as A,formatPercent as F,splitAround as B}from"./chunk-VVI77XNV.js";import{useBrowserLayoutEffect as T,useBrowserValue as I,useBrowserValueOnce as W,useHydrated as E}from"./chunk-D65T4H6J.js";import{forwardRef as R,useCallback as O,useState as Y,useRef as H,useId as _,useEffect as q,createContext as U,useMemo as V,Children as K,isValidElement as Z,cloneElement as G,useContext as J,Fragment as X,Component as Q,useSyncExternalStore as ee,useLayoutEffect as te}from"react";import{jsx as re,jsxs as ne,Fragment as ae}from"react/jsx-runtime";import{createPortal as le}from"react-dom";var ie=R(function({children:e,variant:t="ghost",size:r="md",type:n="button",className:a="",...l},i){/* @__PURE__ */
|
|
2
|
+
return re("button",{ref:i,type:n,className:s({variant:t,size:r,className:a}),...l,children:e})}),se="block w-full rounded-md border border-gray-300 bg-white",oe="text-gray-800 placeholder:text-gray-400 shadow-sm focus:border-blue-400 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)]",ce={sm:"px-2.5 py-1 text-xs",md:"px-3 py-1.5 text-sm",lg:"px-3.5 py-2 text-base",touch:"h-14 px-4 text-base"},de=`${se} ${ce.md} ${oe}`,ue="disabled:cursor-not-allowed disabled:opacity-60";function he(e){return[e?.size&&"md"!==e.size?`${se} ${ce[e.size]} ${oe}`:de,e?.invalid?"border-red-300 focus:border-red-400 focus-visible:ring-[color:var(--rosh-focus-ring-invalid)]":"",ue,e?.className??""].filter(Boolean).join(" ")}var me=R(function({invalid:e,leftIcon:t,rightAdornment:r,size:n,className:a="",...l},i){const s=`${t?"pl-9":""} ${r?"pr-9":""}`.trim(),o=
|
|
3
3
|
/* @__PURE__ */re("input",{ref:i,"aria-invalid":e||void 0,className:he({invalid:e,size:n,className:[s,a].filter(Boolean).join(" ")}),...l});return t||r?/* @__PURE__ */ne("div",{className:"relative",children:[t&&/* @__PURE__ */re("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-gray-400",children:t}),o,r&&/* @__PURE__ */re("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400",children:r})]}):o}),pe=R(function({invalid:e,autoGrow:t,className:r="",onInput:n,rows:a=3,size:l,...i},s){const o=O(e=>{if(t){const t=e.currentTarget;t.style.height="auto",t.style.height=`${t.scrollHeight}px`}n?.(e)},[t,n]);/* @__PURE__ */
|
|
4
4
|
return re("textarea",{ref:s,"aria-invalid":e||void 0,rows:a,onInput:o,className:he({invalid:e,size:l,className:`${t?"resize-none overflow-hidden":""} ${r}`.trim()}),...i})}),ge=448,fe=240,xe=()=>({left:0,right:window.innerWidth,top:0,bottom:window.innerHeight});function be(e){const t=xe(),r=e?.closest?.("[data-modal-panel]");if(!r)return t;const n=r.getBoundingClientRect();return n.width<=0||n.height<=0?t:{left:Math.max(t.left,n.left),right:Math.min(t.right,n.right),top:Math.max(t.top,n.top),bottom:Math.min(t.bottom,n.bottom)}}var ye=/* @__PURE__ */new Set(["hidden","clip","auto","scroll"]);var ve={top:"bottom",bottom:"top",left:"right",right:"left"},we={top:["right","left"],bottom:["right","left"],left:["top","bottom"],right:["top","bottom"]};function Ne(e,t,r){return{top:e.top-r-(t.top+8),bottom:t.bottom-8-(e.bottom+r),left:e.left-r-(t.left+8),right:t.right-8-(e.right+r)}}var ke=(e,t,r)=>Math.max(t,Math.min(e,r));function Me(e,t,r){let n=NaN,a=NaN,l=NaN,i=NaN,s=NaN;const o=()=>{const t=e()?.getBoundingClientRect();if(!t)return!1;const o=r?r():NaN,c=t.left!==n||t.top!==a||t.right!==l||t.bottom!==i||o!==s&&!(Number.isNaN(o)&&Number.isNaN(s));return n=t.left,a=t.top,l=t.right,i=t.bottom,s=o,c};o();const c=()=>{o(),t()};let d=requestAnimationFrame(function e(){o()&&t(),d=requestAnimationFrame(e)});return window.addEventListener("scroll",c,!0),window.addEventListener("resize",c),()=>{cancelAnimationFrame(d),window.removeEventListener("scroll",c,!0),window.removeEventListener("resize",c)}}function $e({trigger:e,menu:t,bounds:r,align:n,side:a}){const l=Ne(e,r,4),i="bottom"===a?"top":"bottom",s=t.height>l[a]&&(t.height<=l[i]||l[i]>l[a])?i:a,o=Math.max(Math.min(t.height,96),l[s]),c=Math.min(t.height,o),d=ke("bottom"===s?e.bottom+4:e.top-4-c,r.top+8,r.bottom-8-c),u=Math.max(0,r.right-r.left-16),h=Math.min(t.width,u);return{left:ke("start"===n?e.left:e.right-h,r.left+8,r.right-8-h),top:d,side:s,maxHeight:o,maxWidth:u}}function Ce(e,t,r={}){const{matchTriggerWidth:n=!1,preferredMaxWidth:a=ge,preferredMaxHeight:l=fe,popupRef:i}=r,[s,o]=Y(null);return T(()=>{if(!t)return void o(null);const r=()=>{const t=e.current,r=t?.getBoundingClientRect();if(!r)return;const s=be(t),c=s.bottom-r.bottom-4-8,d=r.top-s.top-4-8,u=c<Math.min(l,160)&&d>c,h=Math.max(96,Math.min(l,u?d:c)),m=Math.max(0,s.right-s.left-16),p={minWidth:r.width,maxWidth:Math.min(a,m),maxHeight:h};if(n){const e=Math.min(r.width,m);p.width=e,p.maxWidth=e,p.left=Math.min(Math.max(s.left+8,r.left),s.right-8-e)}else if(i&&s.right-8-r.left<p.maxWidth&&Math.min(r.right,s.right-8)-s.left-8<p.maxWidth){const e=i.current?.offsetWidth??0,t=e>0?Math.min(e,p.maxWidth):p.maxWidth;p.left=Math.max(s.left+8,Math.min(r.left,s.right-8-t))}else if(s.right-8-r.left<p.maxWidth){const e=Math.min(r.right,s.right-8);p.right=window.innerWidth-e,p.maxWidth=Math.min(p.maxWidth,Math.max(0,e-s.left-8))}else p.left=Math.max(s.left+8,r.left);u?p.bottom=window.innerHeight-r.top+4:p.top=r.bottom+4,o(p)};return r(),Me(()=>e.current,r,i?()=>i.current?.offsetWidth??NaN:void 0)},[t,e,n,a,l,i]),s}function Le(e){for(let t=0;t<e.length;t++)if(!e[t].disabled)return t;return-1}function De(e){for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return-1}function je(e,t,r){let n=t+r;for(;n>=0&&n<e.length;){if(!e[n].disabled)return n;n+=r}return t>=0&&t<e.length&&!e[t].disabled?t:r>0?Le(e):De(e)}function Se(e,t,r){const n=t.toLowerCase(),a=e.length;if(!n||0===a)return-1;for(let t=1;t<=a;t++){const l=((r+t)%a+a)%a,i=e[l];if(!i.disabled&&i.label.toLowerCase().startsWith(n))return l}return-1}var ze=R(function({value:e,onChange:t,options:r,placeholder:n,invalid:a,className:l="",size:i,touchSize:s,...o},c){/* @__PURE__ */
|
|
5
5
|
return ne("select",{ref:c,value:e,onChange:e=>t(e.target.value),"aria-invalid":a||void 0,className:he({invalid:a,size:i,className:`pr-8 ${l}`.trim()}),...o,children:[void 0!==n&&/* @__PURE__ */re("option",{value:"",disabled:!0,children:n}),r.map(e=>/* @__PURE__ */re("option",{value:e.value,disabled:e.disabled,lang:e.lang,children:e.label},e.value))]})}),Pe=R(function({value:e,onChange:t,options:r,placeholder:n,invalid:a,className:l="",id:i,disabled:s,size:o,touchSize:c,title:d,"aria-describedby":u,"aria-label":h,"aria-labelledby":m,...p},g){const[f,x]=Y(!1),[y,v]=Y(-1),w=H(null),N=H(null),k=H(null),L=H(f);L.current=f;const D=H({buffer:"",timer:null}),j=_(),S=`${j}-listbox`,z=e=>`${j}-opt-${e}`,P=Ce(N,f,{matchTriggerWidth:!0}),A=r.findIndex(t=>t.value===e),F=A>=0?r[A].label:void 0,B=A>=0?r[A].lang:void 0,T=O((e=!0)=>{x(!1),v(-1),e&&N.current?.focus()},[]),I=O(()=>{s||(v(A>=0?A:Le(r)),x(!0))},[s,r,A]),W=O(e=>{const n=r[e];n&&!n.disabled&&(t(n.value),T())},[r,t,T]);q(()=>{if(!f)return;return M(e=>!("Escape"!==e.key||!L.current)&&(T(),!0))},[f,T]),q(()=>{if(!f)return;const e=e=>{const t=e.target;w.current?.contains(t)||k.current?.contains(t)||T(!1)};document.addEventListener("pointerdown",e);const t=$(()=>T(!1));return()=>{document.removeEventListener("pointerdown",e),t()}},[f,T]),q(()=>{!f||y<0||k.current?.querySelector(`#${CSS.escape(z(y))}`)?.scrollIntoView({block:"nearest"})});const E=O(e=>{const t=D.current;t.timer&&clearTimeout(t.timer),t.buffer+=e,t.timer=setTimeout(()=>{t.buffer="",t.timer=null},500);const n=f?y:A,a=Se(r,t.buffer,n);a<0||(f?v(a):W(a))},[f,y,A,r,W]);/* @__PURE__ */
|
|
@@ -31,22 +31,22 @@ return re("svg",{className:e,viewBox:"0 0 20 20",fill:"none",stroke:"currentColo
|
|
|
31
31
|
return ne("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[
|
|
32
32
|
/* @__PURE__ */re("path",{d:"M12 15V4"}),
|
|
33
33
|
/* @__PURE__ */re("path",{d:"M8 8l4-4 4 4"}),
|
|
34
|
-
/* @__PURE__ */re("path",{d:"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"})]})}function nt({value:e,onChange:t,onPick:r,onFile:n,label:a,hint:l,error:i,required:
|
|
35
|
-
/* @__PURE__ */ne("div",{...O.zoneProps,className:["relative overflow-hidden rounded-md border bg-gray-100 transition-colors",U?"border-blue-500":"border-gray-200"].join(" "),style:{height:g},children:[W?/* @__PURE__ */re("video",{src:e??void 0,muted:!0,playsInline:!0,preload:"metadata","aria-label":K||void 0,className:"h-full w-full",style:{objectFit:p}}):/* @__PURE__ */re("img",{src:e??void 0,alt:K,className:"h-full w-full",style:{objectFit:p}}),y&&e&&/* @__PURE__ */re(Xe,{children:K}),M&&/* @__PURE__ */re(Je,{label:P,rounded:"rounded-md"})]}),!C&&(v||w)&&/* @__PURE__ */ne("div",{className:"mt-2 flex gap-2",children:[v&&/* @__PURE__ */re(
|
|
34
|
+
/* @__PURE__ */re("path",{d:"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3"})]})}function nt({value:e,onChange:t,onPick:r,onFile:n,label:a,hint:l,error:i,required:s,className:c,accept:u="image/*",maxSizeBytes:m,fit:p="cover",height:g=112,placeholder:f,cta:x,acceptHint:b,showFilename:y=!0,allowReplace:v=!0,allowRemove:w=!0,replaceLabel:N,removeLabel:k,busy:M=!1,busyLabel:$,disabled:C=!1}){const L=j().media,D=x??L.cta,S=N??L.replace,z=k??L.remove,P=$??L.uploading,A=_(),F=H(null),[B,T]=Y(null);q(()=>()=>{F.current&&URL.revokeObjectURL(F.current)},[]);const I=C||M,W=!!e&&(Qe(e,u)||e===B),E=f??Ke(u,L),R=e=>{r?r(e):n?n(e):(e=>{F.current&&URL.revokeObjectURL(F.current);const r=URL.createObjectURL(e);F.current=r,T(e.type.startsWith("video/")?r:null),t(r)})(e)},O=d({accept:u,maxSizeBytes:m,acceptHint:b,multiple:!1,disabled:I,onAccept:([e])=>R(e)}),{dragOver:U}=O,V=()=>{I||(r?r():O.open())},K=e?Ue(e):"",Z=/* @__PURE__ */ne("div",{children:[
|
|
35
|
+
/* @__PURE__ */ne("div",{...O.zoneProps,className:["relative overflow-hidden rounded-md border bg-gray-100 transition-colors",U?"border-blue-500":"border-gray-200"].join(" "),style:{height:g},children:[W?/* @__PURE__ */re("video",{src:e??void 0,muted:!0,playsInline:!0,preload:"metadata","aria-label":K||void 0,className:"h-full w-full",style:{objectFit:p}}):/* @__PURE__ */re("img",{src:e??void 0,alt:K,className:"h-full w-full",style:{objectFit:p}}),y&&e&&/* @__PURE__ */re(Xe,{children:K}),M&&/* @__PURE__ */re(Je,{label:P,rounded:"rounded-md"})]}),!C&&(v||w)&&/* @__PURE__ */ne("div",{className:"mt-2 flex gap-2",children:[v&&/* @__PURE__ */re(o,{id:A,variant:"secondary",size:"sm",onClick:()=>V(),disabled:M,children:S}),w&&/* @__PURE__ */re(o,{variant:"ghost",size:"sm",onClick:()=>{F.current&&(URL.revokeObjectURL(F.current),F.current=null),T(null),t("")},disabled:M,children:z})]})]}),G=/* @__PURE__ */re("button",{type:"button",id:A,onClick:()=>V(),disabled:I,"aria-label":"string"==typeof E?E:L.upload,"aria-busy":M||void 0,"aria-invalid":!!i||void 0,"aria-required":s||void 0,"aria-describedby":i?`${A}-error`:l?`${A}-hint`:void 0,...O.zoneProps,className:Ze(U,I,Ge(I)),style:{minHeight:g},children:M?/* @__PURE__ */ne("span",{role:"status",className:"flex flex-col items-center gap-1.5",children:[
|
|
36
36
|
/* @__PURE__ */re(et,{}),
|
|
37
37
|
/* @__PURE__ */re("span",{className:"text-xs font-medium text-gray-500",children:P})]}):/* @__PURE__ */ne(ae,{children:[
|
|
38
38
|
/* @__PURE__ */re("span",{className:"text-gray-400",children:/* @__PURE__ */re(rt,{})}),
|
|
39
39
|
/* @__PURE__ */re("span",{className:"px-3 text-xs text-gray-500",children:E}),
|
|
40
40
|
/* @__PURE__ */re("span",{className:"text-sm font-medium text-blue-600",children:D}),b&&/* @__PURE__ */re("span",{className:"text-xs text-gray-400",children:b})]})});/* @__PURE__ */
|
|
41
|
-
return ne(We,{label:a,htmlFor:A,hint:l,error:i,required:
|
|
42
|
-
/* @__PURE__ */re(
|
|
43
|
-
return ne("section",{"aria-label":S.region(
|
|
41
|
+
return ne(We,{label:a,htmlFor:A,hint:l,error:i,required:s,className:c,children:[e?Z:G,!r&&/* @__PURE__ */re("input",{...O.inputProps}),
|
|
42
|
+
/* @__PURE__ */re(h,{rejections:O.rejections})]})}function at({committedUrl:e,committedHasAlpha:t=null,committedIsLight:n=null,fallbackUrl:a,fallbackHasAlpha:l=null,fallbackIsLight:i=null,subjectName:s,assetName:c,onSave:d,onRemove:u,accept:h="image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",acceptHint:m="PNG · ICO · SVG · JPG · WEBP",maxBytes:p=5242880,previews:g=[],disabled:f=!1}){const x=H(null),[b,y]=Y(null),[v,w]=Y(""),[N,k]=Y(""),[M,$]=Y(!1),[C,L]=Y(!1),D=function(e){return e.trim().toLocaleLowerCase().split(/\s+/).at(-1)||"image"}(c),S=j().brandAsset,z=v||e||a||"",P=b?null:e?t:l,A=b?null:e?n:i;q(()=>()=>{x.current&&URL.revokeObjectURL(x.current)},[]);const F=()=>{x.current&&(URL.revokeObjectURL(x.current),x.current=null)};/* @__PURE__ */
|
|
43
|
+
return ne("section",{"aria-label":S.region(c,s),className:"grid gap-4 lg:grid-cols-2",children:[
|
|
44
44
|
/* @__PURE__ */ne("div",{className:"rounded-lg border border-gray-200 bg-white p-4",children:[
|
|
45
|
-
/* @__PURE__ */re(nt,{value:z,onChange:()=>{},onFile:e=>{if(f)return;F();const t=URL.createObjectURL(e);x.current=t,y(e),w(t),k("")},label:
|
|
45
|
+
/* @__PURE__ */re(nt,{value:z,onChange:()=>{},onFile:e=>{if(f)return;F();const t=URL.createObjectURL(e);x.current=t,y(e),w(t),k("")},label:c,hint:N||S.usedFor(s),error:N||void 0,accept:h,acceptHint:m,maxSizeBytes:p,fit:"contain",height:180,allowRemove:!1,busy:M||C,disabled:f}),
|
|
46
46
|
/* @__PURE__ */ne("div",{className:"mt-3 flex flex-wrap gap-2",children:[
|
|
47
|
-
/* @__PURE__ */re(
|
|
47
|
+
/* @__PURE__ */re(o,{onClick:async()=>{if(b&&!f&&!M){$(!0),k("");try{await d(b),F(),y(null),w("")}catch(e){k(e instanceof Error?e.message:S.saveFailed(D,c))}finally{$(!1)}}},disabled:!b||f,loading:M,children:S.save(D,c)}),(b||e)&&/* @__PURE__ */re(o,{variant:"ghost-danger",onClick:async()=>{if(!f&&!C){if(b)return F(),y(null),w(""),void k("");if(e){L(!0),k("");try{await u()}catch(e){k(e instanceof Error?e.message:S.removeFailed(D,c))}finally{L(!1)}}}},disabled:f,loading:C,children:b?S.discard:S.remove(D,c)})]})]}),g.length>0&&/* @__PURE__ */ne("div",{className:"rounded-lg border border-gray-200 bg-white p-4","aria-label":S.previews(c),children:[
|
|
48
48
|
/* @__PURE__ */re("h3",{className:"text-sm font-semibold text-gray-900",children:S.preview}),
|
|
49
|
-
/* @__PURE__ */re("div",{className:"mt-3 grid gap-3",children:g.map(e=>{const t=/* @__PURE__ */re(r,{src:z,alt:S.alt(s,
|
|
49
|
+
/* @__PURE__ */re("div",{className:"mt-3 grid gap-3",children:g.map(e=>{const t=/* @__PURE__ */re(r,{src:z,alt:S.alt(s,c),slot:e.slot,surface:e.surface,adaptive:!0,hasAlpha:P,isLight:A,size:"browser-tab"===e.kind?16:void 0});/* @__PURE__ */
|
|
50
50
|
return ne("div",{"data-brand-preview":!0,className:"dark"===e.surface?"text-white":"text-gray-900",children:[
|
|
51
51
|
/* @__PURE__ */re("div",{className:"mb-2 text-xs font-medium text-gray-500",children:e.label}),"browser-tab"===e.kind?/* @__PURE__ */ne("div",{className:"flex items-end gap-1 border-b border-gray-200",children:[
|
|
52
52
|
/* @__PURE__ */ne("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:[t,
|
|
@@ -59,16 +59,16 @@ return ne("div",{"data-brand-preview":!0,className:"dark"===e.surface?"text-whit
|
|
|
59
59
|
/* @__PURE__ */re("div",{className:"truncate text-xs font-medium text-gray-700",children:e.title??s}),e.url&&/* @__PURE__ */re("div",{className:"truncate text-xs text-gray-400",children:e.url})]})]}),
|
|
60
60
|
/* @__PURE__ */re("div",{className:"mt-1.5 text-sm font-medium text-blue-700",children:e.title??s}),e.description&&/* @__PURE__ */re("div",{className:"text-xs text-gray-500",children:e.description})]}):/* @__PURE__ */ne("div",{className:["flex items-center gap-3 rounded-md border border-gray-200 p-3","dark"===e.surface?"bg-gray-900 text-white":"bg-white text-gray-900"].join(" "),children:[t,
|
|
61
61
|
/* @__PURE__ */re("span",{className:"text-sm",children:e.title??e.label})]})]},`${e.label}-${e.slot}-${e.surface??"light"}`)})})]})]})}function lt(e,t={}){return t.preferSquare&&e.logo_square_url?{src:e.logo_square_url,hasAlpha:e.logo_square_has_alpha,isLight:e.logo_square_is_light,adaptive:!0}:"dark"===t.surface&&e.logo_on_dark_url?{src:e.logo_on_dark_url,hasAlpha:null,isLight:null,adaptive:!1}:{src:e.logo_url,hasAlpha:e.logo_has_alpha,isLight:e.logo_is_light,adaptive:!0}}var it=U(null);function st(e){const t=document.head.querySelector('link[data-portal-branding="favicon"]');if(!e)return void t?.remove();const r=t??document.createElement("link");r.rel="icon",r.href=e,r.dataset.portalBranding="favicon",t||document.head.appendChild(r)}function ot({load:e,fallback:t,documentTitle:r,children:n}){const[a,l]=Y(t),[i,s]=Y(!0),[o,c]=Y(null),d=H(e),u=H(t);d.current=e,u.current=t,q(()=>{const e=new AbortController;let t=!0;return l(u.current),s(!0),c(null),d.current(e.signal).then(e=>{t&&(l(e),s(!1))},e=>{t&&(c(e instanceof Error?e:new Error("Could not load portal branding.")),s(!1))}),()=>{t=!1,e.abort()}},[]),q(()=>(st(a.favicon_url),()=>st(null)),[a.favicon_url]),q(()=>{r&&(document.title=r(a))},[a,r]);const h=V(()=>({branding:a,loading:i,error:o}),[a,i,o]);/* @__PURE__ */
|
|
62
|
-
return re(it.Provider,{value:h,children:n})}function ct(){const e=J(it);if(!e)throw new Error("usePortalBranding must be used inside PortalBrandingProvider.");return e}var dt=/* @__PURE__ */re("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3",children:/* @__PURE__ */re("path",{d:"M6 6l12 12M18 6L6 18"})});function ut({items:e,onPick:t,onFiles:r,onRemove:n,onReorder:a,label:l,hint:i,error:
|
|
62
|
+
return re(it.Provider,{value:h,children:n})}function ct(){const e=J(it);if(!e)throw new Error("usePortalBranding must be used inside PortalBrandingProvider.");return e}var dt=/* @__PURE__ */re("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3",children:/* @__PURE__ */re("path",{d:"M6 6l12 12M18 6L6 18"})});function ut({items:e,onPick:t,onFiles:r,onRemove:n,onReorder:a,label:l,hint:i,error:s,required:o,className:c,accept:u="image/*",maxSizeBytes:m,maxFiles:p,fit:g="cover",thumbSize:f=96,placeholder:x,cta:b,acceptHint:y,showCover:v=!1,coverLabel:w,busy:N=!1,busyLabel:k,disabled:M=!1,readOnly:$=!1}){const C=j().media,L=b??C.cta,D=w??C.cover,S=k??C.uploading,z=_(),[P,A]=Y(null),F=M||N,B=!(!t&&!r||F||$),T=!!n&&!F&&!$,I=!!a&&!F&&!$,W=Ge(F),E=x??Ke(u,C),R=d({accept:u,maxSizeBytes:m,maxFiles:p,acceptHint:y,multiple:!0,disabled:!B,currentCount:e.length,onAccept:e=>{if(r)r(e);else for(const r of e)t(r)}}),O=R.dragOver,H=()=>{B&&(t?t():R.open())},q={width:f,height:f},U=B&&/* @__PURE__ */ne("button",{type:"button",onClick:()=>H(),"aria-label":C.addMedia,className:`flex shrink-0 flex-col items-center justify-center gap-1 rounded-md border-2 border-dashed border-gray-300 bg-gray-50 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-500 ${W}`,style:q,children:[
|
|
63
63
|
/* @__PURE__ */re(rt,{className:"h-5 w-5"}),
|
|
64
64
|
/* @__PURE__ */re("span",{className:"text-xs font-medium text-gray-500",children:C.add})]}),V=B?/* @__PURE__ */ne("button",{type:"button",onClick:()=>H(),"aria-label":"string"==typeof E?E:C.upload,className:Ze(O,!1,W),style:{minHeight:f+32},children:[
|
|
65
65
|
/* @__PURE__ */re("span",{className:"text-gray-400",children:/* @__PURE__ */re(rt,{})}),
|
|
66
66
|
/* @__PURE__ */re("span",{className:"px-3 text-xs text-gray-500",children:E}),
|
|
67
67
|
/* @__PURE__ */re("span",{className:"text-sm font-medium text-blue-600",children:L}),y&&/* @__PURE__ */re("span",{className:"text-xs text-gray-400",children:y})]}):/* @__PURE__ */re("div",{className:"flex w-full items-center justify-center rounded-lg border border-gray-200 bg-gray-50 px-3 text-xs text-gray-400",style:{minHeight:f+32},children:C.empty});/* @__PURE__ */
|
|
68
|
-
return ne(We,{label:l,labelId:l?`${z}-label`:void 0,htmlFor:z,hint:i,error:
|
|
69
|
-
/* @__PURE__ */ne("div",{id:z,role:"group","aria-labelledby":l?`${z}-label`:void 0,"aria-describedby":
|
|
68
|
+
return ne(We,{label:l,labelId:l?`${z}-label`:void 0,htmlFor:z,hint:i,error:s,required:o,className:c,children:[
|
|
69
|
+
/* @__PURE__ */ne("div",{id:z,role:"group","aria-labelledby":l?`${z}-label`:void 0,"aria-describedby":s?`${z}-error`:i?`${z}-hint`:void 0,"aria-busy":N||void 0,...R.zoneProps,className:"relative rounded-lg transition-colors",style:{...F?{opacity:.6}:{},...O?{boxShadow:"0 0 0 2px var(--rosh-drop-ring)"}:{}},children:[0===e.length?V:/* @__PURE__ */ne("div",{className:"flex flex-wrap gap-2",children:[e.map((t,r)=>{const l=t.kind?"video"===t.kind:Qe(t.url,u),i=Ue(t.url),s=v&&(t.cover??0===r);/* @__PURE__ */
|
|
70
70
|
return ne("div",{draggable:I||void 0,onDragStart:I?e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(r)),A(r)}:void 0,onDragEnd:I?()=>A(null):void 0,onDragOver:I?e=>{null!=P&&(e.preventDefault(),e.stopPropagation())}:void 0,onDrop:I?e=>{null!=P&&(e.preventDefault(),e.stopPropagation(),P!==r&&a(P,r),A(null))}:void 0,tabIndex:I?0:void 0,"aria-label":I?C.reorder(i,r+1,e.length):void 0,onKeyDown:I?t=>{"ArrowLeft"===t.key||"ArrowUp"===t.key?r>0&&(t.preventDefault(),a(r,r-1)):"ArrowRight"!==t.key&&"ArrowDown"!==t.key||r<e.length-1&&(t.preventDefault(),a(r,r+1))}:void 0,className:["relative shrink-0 overflow-hidden rounded-md border border-gray-200 bg-gray-100",W,P===r?"opacity-50":""].join(" "),style:{...q,cursor:I?"move":void 0},children:[l?/* @__PURE__ */re("video",{src:t.url,muted:!0,playsInline:!0,preload:"metadata","aria-label":i,className:"h-full w-full",style:{objectFit:g}}):/* @__PURE__ */re("img",{src:t.url,alt:i,className:"h-full w-full",style:{objectFit:g}}),s&&/* @__PURE__ */re("span",{className:"absolute left-1 top-1 rounded bg-blue-600 px-1.5 py-0.5 text-xs font-medium text-white",children:D}),null!=t.caption&&/* @__PURE__ */re(Xe,{children:t.caption}),T&&/* @__PURE__ */re("button",{type:"button",onClick:()=>n(t.id),"aria-label":C.removeItem(i),className:`absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full text-white ${W}`,style:{background:"var(--rosh-media-scrim-button)"},children:dt})]},t.id)}),U]}),N&&/* @__PURE__ */re(Je,{label:S})]}),!t&&r&&/* @__PURE__ */re("input",{...R.inputProps}),
|
|
71
|
-
/* @__PURE__ */re(
|
|
71
|
+
/* @__PURE__ */re(h,{rejections:R.rejections})]})}var ht=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],mt=["January","February","March","April","May","June","July","August","September","October","November","December"];function pt(e){return ht[parseInt(e,10)-1]??e}function gt(e){return mt[parseInt(e,10)-1]??e}var ft={dateStyle:"medium"},xt=/* @__PURE__ */new Map;function bt(e,t){const r=`${e}|${JSON.stringify(t)}`;let n=xt.get(r);return n||(n=new Intl.DateTimeFormat(e,{...t,timeZone:"UTC",calendar:"gregory"}),xt.set(r,n)),n}function yt(e,t){if(!e)return"—";const r=e.includes("T")?e.split("T")[0]:e,[n,a,l]=r.split("-").map(Number);if(!n||!a||!l)return e;if(t?.locale)return bt(t.locale,t.style??ft).format(new Date(Date.UTC(n,a-1,l)));const i=String(l).padStart(2,"0"),s=String(a).padStart(2,"0"),o=String(n);switch(function(){if("undefined"==typeof window)return"DD/MM/YYYY";try{return localStorage.getItem("user_date_format")||"DD/MM/YYYY"}catch{return"DD/MM/YYYY"}}()){case"MM/DD/YYYY":return`${s}/${i}/${o}`;case"YYYY-MM-DD":return`${o}-${s}-${i}`;case"DD-MM-YYYY":return`${i}-${s}-${o}`;case"MM-DD-YYYY":return`${s}-${i}-${o}`;case"DD.MM.YYYY":return`${i}.${s}.${o}`;case"YYYY.MM.DD":return`${o}.${s}.${i}`;case"YYYY/MM/DD":return`${o}/${s}/${i}`;case"DD/MM/YY":return`${i}/${s}/${o.slice(-2)}`;case"MM/DD/YY":return`${s}/${i}/${o.slice(-2)}`;case"DD/MMM/YYYY":return`${i}/${pt(s)}/${o}`;case"DD/MMM/YY":return`${i}/${pt(s)}/${o.slice(-2)}`;case"DD MMM YYYY":return`${i} ${pt(s)} ${o}`;case"MMM DD, YYYY":return`${pt(s)} ${i}, ${o}`;case"DD MMMM YYYY":return`${i} ${gt(s)} ${o}`;case"MMMM DD, YYYY":return`${gt(s)} ${i}, ${o}`;default:return`${i}/${s}/${o}`}}var vt={months:mt,monthsShort:ht,weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Su","Mo","Tu","We","Th","Fr","Sa"],monthYear:(e,t)=>`${mt[t]} ${e}`,shortMonthYear:(e,t)=>`${ht[t]} ${e}`,longDate:(e,t,r)=>`${r} ${mt[t]} ${e}`},wt=/* @__PURE__ */new Map;function Nt(e){if(!e)return vt;const t=wt.get(e);if(t)return t;const r=t=>bt(e,t),n=(e,t,r=1)=>new Date(Date.UTC(e,t,r)),a=r({month:"long"}),l=r({month:"short"}),i=r({weekday:"long"}),s=r({weekday:"short"}),o=r({month:"long",year:"numeric"}),c=r({month:"short",year:"numeric"}),d=r({day:"numeric",month:"long",year:"numeric"}),u=Array.from({length:12},(e,t)=>t),h=Array.from({length:7},(e,t)=>t),m={months:u.map(e=>a.format(n(2e3,e))),monthsShort:u.map(e=>l.format(n(2e3,e))),weekdays:h.map(e=>i.format(n(2e3,0,2+e))),weekdaysShort:h.map(e=>s.format(n(2e3,0,2+e))),monthYear:(e,t)=>o.format(n(e,t)),shortMonthYear:(e,t)=>c.format(n(e,t)),longDate:(e,t,r)=>d.format(n(e,t,r))};return wt.set(e,m),m}var kt=/* @__PURE__ */new Map;function Mt(e){if(!e)return 0;let t=kt.get(e);if(void 0===t){t=0;try{const r=new Intl.Locale(e),n="function"==typeof r.getWeekInfo?r.getWeekInfo():r.weekInfo;1===n?.firstDay&&(t=1)}catch{}kt.set(e,t)}return t}var $t=e=>String(e).padStart(2,"0");function Ct(e){return`${e.getFullYear()}-${$t(e.getMonth()+1)}-${$t(e.getDate())}`}function Lt(e){if(!e)return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;const r=new Date(Number(t[1]),Number(t[2])-1,Number(t[3]));return Number.isNaN(r.getTime())?null:r}var Dt=e=>`${e.getFullYear()}-${$t(e.getMonth()+1)}`;var jt=()=>Ct(/* @__PURE__ */new Date);var St=(e,t)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+t),zt=(e,t)=>{const r=new Date(e.getFullYear(),e.getMonth()+t,1),n=new Date(r.getFullYear(),r.getMonth()+1,0).getDate();return new Date(r.getFullYear(),r.getMonth(),Math.min(e.getDate(),n))};function Pt({value:e,endValue:t,mode:r="single",onSelect:n,min:a,max:l,month:i,defaultMonth:s,onMonthChange:o,weekStartsOn:c,quickJump:d=!0,"aria-label":u,className:h=""}){const m=Lt(e),p=I(jt,null),g=Lt(p),f=j().calendar,x=D(),b=Nt(x),y=I(()=>Mt(x),0),v=c??y,w=()=>{if(!g)return null;const e=Dt(g);return a&&e<a.slice(0,7)?a.slice(0,7):l&&e>l.slice(0,7)?l.slice(0,7):e},[N,k]=Y(()=>s||(m?Dt(m):w())),M=i??N??w(),$=null===M?null:function(e,t){const r=/^(\d{4})-(\d{2})$/.exec(e);return r?new Date(Number(r[1]),Number(r[2])-1,1):t}(M,g),[C,L]=Y(()=>e??p),S=H(null),z=H(!1),[P,A]=Y("days"),F=V(()=>$?function(e,t){const r=new Date(e.getFullYear(),e.getMonth(),1),n=(r.getDay()-t+7)%7,a=new Date(r.getFullYear(),r.getMonth(),1-n);return Array.from({length:42},(e,t)=>new Date(a.getFullYear(),a.getMonth(),a.getDate()+t))}($,v):[],[M,v]),B=e=>!!a&&e<a||!!l&&e>l,T=C??p,W=F.some(e=>Ct(e)===T),E=$?F.find(e=>e.getMonth()===$.getMonth())??F[0]:null,R=W&&T?T:E?Ct(E):"";if(q(()=>{z.current&&(z.current=!1,S.current?.querySelector('[data-active="true"]')?.focus())},[R,M]),!$)/* @__PURE__ */
|
|
72
72
|
return ne("div",{className:h,"aria-hidden":"true","data-calendar-pending":"",children:[
|
|
73
73
|
/* @__PURE__ */re("div",{className:"mb-2 h-6"}),Array.from({length:7},(e,t)=>/* @__PURE__ */re("div",{className:0===t?"py-1 text-xs":"py-1.5 min-h-11 sm:min-h-0 text-sm",children:" "},t))]});const O=e=>"years"===P?new Date($.getFullYear()+12*e,$.getMonth(),1):"months"===P?new Date($.getFullYear()+e,$.getMonth(),1):zt($,e),_=e=>{const t=Dt(e);void 0===i&&k(t),o?.(t)},U=u??b.monthYear($.getFullYear(),$.getMonth());/* @__PURE__ */
|
|
74
74
|
return ne("div",{className:h,children:[
|
|
@@ -120,8 +120,8 @@ return ne("div",{id:v?void 0:d,"aria-describedby":v?void 0:u,className:["inline-
|
|
|
120
120
|
/* @__PURE__ */re("span",{className:"min-w-0 font-mono text-gray-800 "+(c?"whitespace-pre-wrap break-all":"truncate"),title:c?void 0:e,children:t??e}),!s&&/* @__PURE__ */ne(ae,{children:[
|
|
121
121
|
/* @__PURE__ */re(ie,{id:d,"aria-label":a?f.copyLabel(a):f.copy,"aria-describedby":u,onClick:x,className:`${y} text-gray-400`,children:/* @__PURE__ */re(m?dr:cr,{})}),
|
|
122
122
|
/* @__PURE__ */re("span",{"aria-live":"polite",className:"sr-only",children:m?f.copied:""})]})]})}var hr=2;function mr(e,t){if("."===t)return e.includes(".")?e:""===e?"0.":`${e}.`;if(t<"0"||t>"9")return e;const r=e.indexOf(".");return-1!==r&&e.length-r-1>=2?e:"0"===e?t:e+t}function pr(e){return e.slice(0,-1)}var gr=["1","2","3","4","5","6","7","8","9",".","0"];function fr({value:e,onChange:t,onEnter:r,enterLabel:n,enterDisabled:a,className:l=""}){const i=j().keypad,s=r=>{r!==e&&t(r)};/* @__PURE__ */
|
|
123
|
-
return ne("div",{className:`grid grid-cols-3 gap-3 ${l}`.trim(),children:[gr.map(t=>/* @__PURE__ */re(
|
|
124
|
-
/* @__PURE__ */re(
|
|
123
|
+
return ne("div",{className:`grid grid-cols-3 gap-3 ${l}`.trim(),children:[gr.map(t=>/* @__PURE__ */re(o,{size:"touch-xl",variant:"secondary",onClick:()=>s(mr(e,t)),children:t},t)),
|
|
124
|
+
/* @__PURE__ */re(o,{size:"touch-xl",variant:"secondary","aria-label":i.backspace,onClick:()=>s(pr(e)),children:"⌫"}),r&&/* @__PURE__ */re(o,{size:"touch-xl",variant:"primary",className:"col-span-3",disabled:a,onClick:r,children:n??i.enter})]})}var xr={md:"h-24 p-3",lg:"h-32 p-4"},br=R(function({title:e,subtitle:t,size:r="lg",selected:n=!1,disabled:a,type:l="button",className:i="",...s},o){/* @__PURE__ */
|
|
125
125
|
return ne("button",{ref:o,type:l,disabled:a,"aria-pressed":n||void 0,className:["flex w-full flex-col justify-between rounded-xl border text-left transition-colors rosh-focus-ring","disabled:cursor-not-allowed disabled:opacity-50",n?"border-blue-600 bg-blue-50 ring-2 ring-blue-400/40":"border-gray-200 bg-white hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",xr[r],i].filter(Boolean).join(" "),...s,children:[
|
|
126
126
|
/* @__PURE__ */re("span",{className:"line-clamp-2 font-medium text-gray-900",children:e}),null!=t&&/* @__PURE__ */re("span",{className:"text-sm text-gray-500",children:t})]})}),yr={sm:"h-7 px-2.5 text-xs",md:"h-9 px-3 text-sm",touch:"h-14 px-5 text-base"},vr="bg-white text-gray-900 shadow-sm rosh-segmented-on",wr="text-gray-600 hover:text-gray-900";function Nr({value:e,onChange:t,options:r,name:n,size:a="md",block:l=!1,label:i,className:s="","aria-labelledby":o,"aria-describedby":c}){const d={"aria-label":o?void 0:i,"aria-labelledby":o,"aria-describedby":c},u=_(),h=`inline-flex max-w-full items-center gap-1 overflow-x-auto rounded-lg bg-gray-100 p-1 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden ${l?"w-full":""} ${s}`.trim(),m="inline-flex shrink-0 items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-colors "+(l?"flex-1":"");/* @__PURE__ */
|
|
127
127
|
return re("div",n?{role:"radiogroup",...d,className:h,children:r.map(r=>{const l=`${u}-${r.value}`,i=r.value===e;
|
|
@@ -129,17 +129,17 @@ return re("div",n?{role:"radiogroup",...d,className:h,children:r.map(r=>{const l
|
|
|
129
129
|
return ne("label",{htmlFor:l,title:r.title,className:[m,"relative",yr[a],i?vr:wr,r.disabled?"cursor-not-allowed opacity-40":"cursor-pointer"].join(" "),children:[
|
|
130
130
|
/* @__PURE__ */re("input",{id:l,type:"radio",name:n,value:r.value,checked:i,disabled:r.disabled,onChange:()=>t(r.value),className:"absolute inset-0 m-0 h-full w-full appearance-none rounded-[inherit] bg-transparent cursor-[inherit] rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]"}),r.icon,r.label]},r.value)})}:{role:"group",...d,className:h,children:r.map(r=>{const n=r.value===e;/* @__PURE__ */
|
|
131
131
|
return ne("button",{type:"button",title:r.title,"aria-pressed":n,disabled:r.disabled,onClick:()=>t(r.value),className:[m,yr[a],n?vr:wr,"disabled:cursor-not-allowed disabled:opacity-40"].join(" "),children:[r.icon,r.label]},r.value)})})}var kr={sm:"h-5 w-9",md:"h-6 w-11",touch:"h-8 w-14"},Mr={sm:"h-4 w-4",md:"h-5 w-5",touch:"h-7 w-7"},$r={sm:"translate-x-4",md:"translate-x-5",touch:"translate-x-6"},Cr=R(function({checked:e,onChange:t,disabled:r=!1,size:n="md",label:a,hint:l,id:i,className:s="",disabledReason:o,disabledReasonId:c,...d},u){const h=_(),m=i??h,p=l?`${m}-hint`:void 0,g=r&&c?c:void 0,f=r&&!g&&null!=o&&""!==o,x=f?`${m}-reason`:void 0,b=[p,g??x].filter(Boolean).join(" ")||void 0,y=/* @__PURE__ */re("button",{ref:u,id:m,type:"button",role:"switch","aria-checked":e,"aria-describedby":b,disabled:r,onClick:()=>t(!e),...d,className:["relative inline-flex shrink-0 items-center rounded-full p-0.5 transition-colors","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]","disabled:cursor-not-allowed disabled:opacity-40",kr[n],e?"bg-blue-600":"bg-gray-300"].join(" "),children:/* @__PURE__ */re("span",{className:["inline-block rounded-full bg-white shadow transition-transform",Mr[n],e?$r[n]:"translate-x-0"].join(" ")})});return a||l||f?/* @__PURE__ */ne("span",{className:`flex items-start gap-3 ${s}`.trim(),children:[y,
|
|
132
|
-
/* @__PURE__ */ne("span",{className:"min-w-0",children:[a&&/* @__PURE__ */re("label",{htmlFor:m,className:"block text-sm font-medium text-gray-800",children:a}),l&&/* @__PURE__ */re("span",{id:p,className:"mt-0.5 block text-xs text-gray-500",children:l}),f&&/* @__PURE__ */re("span",{id:x,className:"mt-0.5 block text-xs text-red-600",children:o})]})]}):/* @__PURE__ */re("span",{className:s,children:y})}),Lr=(e,t)=>null==e?"":null!=t?e.toFixed(t):String(e);function Dr(e){const t=e.trim();if(""===t||"-"===t||"."===t||"-."===t)return null;const r=Number(t);return Number.isFinite(r)?r:null}var jr=R(function({value:e,onChange:t,min:r,max:n,precision:a,step:l,disabled:i,invalid:s,placeholder:o,size:c,prefix:d,suffix:u,id:h,name:m,className:p="",onBlur:g},f){const[x,b]=Y(()=>Lr(e,a)),y=H(x);y.current=x,q(()=>{Dr(y.current)!==e&&b(Lr(e,a))},[e,a]);const v=/* @__PURE__ */re("input",{ref:f,id:h,name:m,type:"text",inputMode:0===a?"numeric":"decimal",value:x,disabled:i,placeholder:o,step:l,role:"spinbutton","aria-valuenow":e??void 0,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":null==e?void 0:Lr(e,a),"aria-invalid":s||void 0,onChange:e=>{var r;(""===(r=e.target.value)||/^-?\d*\.?\d*$/.test(r))&&(b(r),t(Dr(r)))},onKeyDown:e=>{const s=l??1,o="ArrowUp"===e.key?s:"ArrowDown"===e.key?-s:"PageUp"===e.key?10*s:"PageDown"===e.key?10*-s:null;null===o||i||(e.preventDefault(),(e=>{let i=(Dr(y.current)??0)+e;null!=r&&i<r&&(i=r),null!=n&&i>n&&(i=n);const s=a??String(l??1).split(".")[1]?.length??0;i=Number(i.toFixed(s)),b(Lr(i,a)),t(i)})(o))},onBlur:()=>{const e=Dr(x);if(null==e)b(""),t(null);else{let l=e;null!=r&&l<r&&(l=r),null!=n&&l>n&&(l=n),null!=a&&(l=Number(l.toFixed(a))),b(Lr(l,a)),l!==e&&t(l)}g?.()},className:he({invalid:s,size:c,className:[d?"pl-7":"",u?"pr-9":"","text-right tabular-nums",p].filter(Boolean).join(" ")})});return d||u?/* @__PURE__ */ne("div",{className:"relative",children:[d&&/* @__PURE__ */re("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-sm text-gray-500",children:d}),v,u&&/* @__PURE__ */re("span",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500",children:u})]}):v}),Sr=R(function({files:e,onChange:t,accept:r,acceptHint:n,multiple:a=!0,maxSizeBytes:l,maxFiles:i,disabled:
|
|
133
|
-
return ne(We,{label:
|
|
134
|
-
/* @__PURE__ */ne("button",{ref:f,type:"button",id:x,disabled:
|
|
132
|
+
/* @__PURE__ */ne("span",{className:"min-w-0",children:[a&&/* @__PURE__ */re("label",{htmlFor:m,className:"block text-sm font-medium text-gray-800",children:a}),l&&/* @__PURE__ */re("span",{id:p,className:"mt-0.5 block text-xs text-gray-500",children:l}),f&&/* @__PURE__ */re("span",{id:x,className:"mt-0.5 block text-xs text-red-600",children:o})]})]}):/* @__PURE__ */re("span",{className:s,children:y})}),Lr=(e,t)=>null==e?"":null!=t?e.toFixed(t):String(e);function Dr(e){const t=e.trim();if(""===t||"-"===t||"."===t||"-."===t)return null;const r=Number(t);return Number.isFinite(r)?r:null}var jr=R(function({value:e,onChange:t,min:r,max:n,precision:a,step:l,disabled:i,invalid:s,placeholder:o,size:c,prefix:d,suffix:u,id:h,name:m,className:p="",onBlur:g},f){const[x,b]=Y(()=>Lr(e,a)),y=H(x);y.current=x,q(()=>{Dr(y.current)!==e&&b(Lr(e,a))},[e,a]);const v=/* @__PURE__ */re("input",{ref:f,id:h,name:m,type:"text",inputMode:0===a?"numeric":"decimal",value:x,disabled:i,placeholder:o,step:l,role:"spinbutton","aria-valuenow":e??void 0,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":null==e?void 0:Lr(e,a),"aria-invalid":s||void 0,onChange:e=>{var r;(""===(r=e.target.value)||/^-?\d*\.?\d*$/.test(r))&&(b(r),t(Dr(r)))},onKeyDown:e=>{const s=l??1,o="ArrowUp"===e.key?s:"ArrowDown"===e.key?-s:"PageUp"===e.key?10*s:"PageDown"===e.key?10*-s:null;null===o||i||(e.preventDefault(),(e=>{let i=(Dr(y.current)??0)+e;null!=r&&i<r&&(i=r),null!=n&&i>n&&(i=n);const s=a??String(l??1).split(".")[1]?.length??0;i=Number(i.toFixed(s)),b(Lr(i,a)),t(i)})(o))},onBlur:()=>{const e=Dr(x);if(null==e)b(""),t(null);else{let l=e;null!=r&&l<r&&(l=r),null!=n&&l>n&&(l=n),null!=a&&(l=Number(l.toFixed(a))),b(Lr(l,a)),l!==e&&t(l)}g?.()},className:he({invalid:s,size:c,className:[d?"pl-7":"",u?"pr-9":"","text-right tabular-nums",p].filter(Boolean).join(" ")})});return d||u?/* @__PURE__ */ne("div",{className:"relative",children:[d&&/* @__PURE__ */re("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-sm text-gray-500",children:d}),v,u&&/* @__PURE__ */re("span",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500",children:u})]}):v}),Sr=R(function({files:e,onChange:t,accept:r,acceptHint:n,multiple:a=!0,maxSizeBytes:l,maxFiles:i,disabled:s=!1,label:o,hint:c,error:m,required:p,className:g=""},f){const x=_(),b=j().files,y=d({accept:r,acceptHint:n,maxSizeBytes:l,maxFiles:i,multiple:a,disabled:s,currentCount:e.length,onAccept:r=>t(a?[...e,...r]:r.slice(0,1))}),v=m?`${x}-error`:c?`${x}-hint`:void 0;/* @__PURE__ */
|
|
133
|
+
return ne(We,{label:o,htmlFor:x,hint:c,error:m,required:p,className:g,children:[
|
|
134
|
+
/* @__PURE__ */ne("button",{ref:f,type:"button",id:x,disabled:s,onClick:y.open,"aria-invalid":!!m||void 0,"aria-required":p||void 0,"aria-describedby":v,...y.zoneProps,className:Ze(y.dragOver,s,`px-4 py-6 ${Ge(s)}`),children:[
|
|
135
135
|
/* @__PURE__ */ne("span",{children:[
|
|
136
136
|
/* @__PURE__ */re("span",{className:"text-sm font-medium text-blue-600",children:a?b.chooseMany:b.chooseOne}),
|
|
137
137
|
/* @__PURE__ */re("span",{className:"text-sm text-gray-500",children:` ${a?b.dragMany:b.dragOne}`})]}),n&&/* @__PURE__ */re("span",{className:"text-xs text-gray-400",children:n})]}),
|
|
138
138
|
/* @__PURE__ */re("input",{...y.inputProps}),e.length>0&&/* @__PURE__ */re("ul",{className:"mt-2 flex flex-col gap-1",children:e.map((r,n)=>/* @__PURE__ */ne("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
|
|
139
139
|
/* @__PURE__ */re("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-800",title:r.name,children:r.name}),
|
|
140
|
-
/* @__PURE__ */re("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:
|
|
141
|
-
/* @__PURE__ */re("button",{type:"button",disabled:
|
|
142
|
-
/* @__PURE__ */re(
|
|
140
|
+
/* @__PURE__ */re("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:u(r.size,b)}),
|
|
141
|
+
/* @__PURE__ */re("button",{type:"button",disabled:s,onClick:()=>{y.clearRejections(),t(e.filter((e,t)=>t!==n))},"aria-label":b.remove(r.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */re(tt,{})})]},`${r.name}-${n}`))}),
|
|
142
|
+
/* @__PURE__ */re(h,{rejections:y.rejections})]})});function zr({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
143
143
|
return re("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:/* @__PURE__ */re("path",{d:"M21 11.5l-8.5 8.5a5.5 5.5 0 0 1-7.8-7.8l9-9a3.5 3.5 0 0 1 5 5l-9 9a1.5 1.5 0 0 1-2.1-2.1l8-8"})})}function Pr({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
144
144
|
return ne("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e,children:[
|
|
145
145
|
/* @__PURE__ */re("path",{d:"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"}),
|
|
@@ -148,12 +148,12 @@ return ne("div",{...e.zoneProps,...e.pasteProps,className:`relative ${r}`,childr
|
|
|
148
148
|
/* @__PURE__ */re("input",{...e.inputProps}),e.dragOver&&/* @__PURE__ */re("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-lg border-2 border-dashed border-blue-500 bg-blue-50/80 text-sm font-medium text-blue-600",children:t??a.drop})]})}function Fr({files:e,onRemove:t,disabled:r=!1,className:n=""}){const a=j().files,l=H(/* @__PURE__ */new Map);q(()=>{const t=new Set(e);for(const[e,r]of l.current)t.has(e)||(URL.revokeObjectURL(r),l.current.delete(e))},[e]),q(()=>()=>{for(const e of l.current.values())URL.revokeObjectURL(e);l.current.clear()},[]);const i=e=>{if(!e.type.startsWith("image/")||"undefined"==typeof URL||"function"!=typeof URL.createObjectURL)return null;let t=l.current.get(e);return t||(t=URL.createObjectURL(e),l.current.set(e,t)),t};return 0===e.length?null:/* @__PURE__ */re("ul",{className:`flex flex-wrap gap-1.5 ${n}`,children:e.map((e,n)=>{const l=i(e);/* @__PURE__ */
|
|
149
149
|
return ne("li",{className:"flex max-w-full items-center gap-1.5 rounded-md border border-gray-200 bg-gray-50 py-1 pl-1.5 pr-1 text-xs text-gray-700",children:[l?/* @__PURE__ */re("img",{src:l,alt:"",className:"h-6 w-6 shrink-0 rounded object-cover"}):/* @__PURE__ */re("span",{className:"text-gray-400",children:/* @__PURE__ */re(Pr,{})}),
|
|
150
150
|
/* @__PURE__ */re("span",{className:"min-w-0 truncate",title:e.name,children:e.name}),
|
|
151
|
-
/* @__PURE__ */re("span",{className:"shrink-0 tabular-nums text-gray-400",children:
|
|
152
|
-
/* @__PURE__ */re(ie,{"aria-label":s,onClick:e,disabled:a,size:"sm",children:/* @__PURE__ */re(zr,{})}),t>0&&/* @__PURE__ */re("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-1 -top-1 min-w-[1rem] rounded-full bg-blue-600 px-1 text-center text-[10px] font-semibold leading-4 text-white",children:t})]}):/* @__PURE__ */re(
|
|
151
|
+
/* @__PURE__ */re("span",{className:"shrink-0 tabular-nums text-gray-400",children:u(e.size,a)}),t&&/* @__PURE__ */re("button",{type:"button",disabled:r,onClick:()=>t(n),"aria-label":a.remove(e.name),className:"shrink-0 rounded p-0.5 text-gray-400 hover:bg-gray-200 hover:text-gray-600 disabled:cursor-not-allowed",children:/* @__PURE__ */re(tt,{className:"h-3.5 w-3.5"})})]},`${e.name}-${e.size}-${n}`)})})}function Br({onClick:e,count:t=0,variant:r="button",label:n,disabled:a=!1}){const l=j().files,i=n??l.attach,s=t>0?`${i} (${t})`:i;return"icon"===r?/* @__PURE__ */ne("span",{className:"relative inline-flex",children:[
|
|
152
|
+
/* @__PURE__ */re(ie,{"aria-label":s,onClick:e,disabled:a,size:"sm",children:/* @__PURE__ */re(zr,{})}),t>0&&/* @__PURE__ */re("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-1 -top-1 min-w-[1rem] rounded-full bg-blue-600 px-1 text-center text-[10px] font-semibold leading-4 text-white",children:t})]}):/* @__PURE__ */re(o,{type:"button",variant:"secondary",size:"sm",onClick:e,disabled:a,leftIcon:/* @__PURE__ */re(zr,{}),children:s})}function Tr({files:e,onChange:t,accept:r,maxSizeBytes:n,maxFiles:a,acceptHint:l,disabled:i=!1,dropLabel:s,attachLabel:o,trigger:c="button",actions:u,onReject:m,className:p="",children:g}){const f=d({accept:r,maxSizeBytes:n,maxFiles:a,acceptHint:l,disabled:i,multiple:!0,currentCount:e.length,onAccept:r=>t([...e,...r])}),x=H([]);return q(()=>{m&&f.rejections.length>0&&f.rejections!==x.current&&(x.current=f.rejections,m(f.rejections))},[f.rejections,m]),/* @__PURE__ */ne(Ar,{intake:f,dropLabel:s,className:p,children:[g,
|
|
153
153
|
/* @__PURE__ */re(Fr,{files:e,disabled:i,onRemove:r=>{f.clearRejections(),t(e.filter((e,t)=>t!==r))},className:"mt-2"}),
|
|
154
154
|
/* @__PURE__ */ne("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[
|
|
155
|
-
/* @__PURE__ */re(Br,{onClick:f.open,count:e.length,variant:
|
|
156
|
-
/* @__PURE__ */re(
|
|
155
|
+
/* @__PURE__ */re(Br,{onClick:f.open,count:e.length,variant:c,label:o,disabled:i}),u]}),
|
|
156
|
+
/* @__PURE__ */re(h,{rejections:f.rejections})]})}function Ir({onClear:e,ariaLabel:t}){/* @__PURE__ */
|
|
157
157
|
return re("button",{type:"button","aria-label":t,onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity text-base leading-none",children:"×"})}function Wr({value:e,onChange:t,options:r,placeholder:n,emptyOptionLabel:a,className:l="",disabled:i,id:s,allowFreeText:o=!1,onSearchChange:c,rightAdornment:d}){const[u,h]=Y(!1),[m,p]=Y(""),g=j(),f=a??g.select.none,x=e=>{p(e),c?.(e)},y=H(null),v=H(null),w=H(null),N=H(null),k=H(u);k.current=u;const L=H(!1),D=r=>{if(!k.current)return;k.current=!1;const n=m.trim();r&&o&&n&&n!==e&&t(n),h(!1),x("")},[S,z]=Y(null);T(()=>{if(!d||u)return void z(null);const t=N.current?.offsetWidth??0;z(t?t+(e&&!i?32:8)+6:null)});const P=Ce(v,u,{matchTriggerWidth:!0}),A=V(()=>{const t=r.find(t=>t.value===e);return t?t.label:o?e:""},[r,e,o]);q(()=>{if(!u)return;const e=e=>{const t=e.target;y.current?.contains(t)||w.current?.contains(t)||D(!0)};document.addEventListener("mousedown",e);const t=$(()=>D(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[u,o,m,e,t]),q(()=>{if(u)return M(e=>!("Escape"!==e.key||!k.current)&&(D(!1),v.current?.blur(),!0))},[u]);const F=V(()=>{const e=/* @__PURE__ */new Set,t=[];for(const n of r)e.has(n.value)||(e.add(n.value),t.push(n));return t},[r]),B=V(()=>{if(c)return F;const e=m.trim().toLowerCase();return e?F.filter(t=>t.label.toLowerCase().includes(e)||(t.sublabel?.toLowerCase().includes(e)??!1)):F},[F,m,c]);/* @__PURE__ */
|
|
158
158
|
return ne("div",{ref:y,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(y.current?.contains(t)||w.current?.contains(t))||L.current||document.activeElement!==v.current&&D(!0)},children:[
|
|
159
159
|
/* @__PURE__ */re("input",{id:s,ref:v,type:"text",autoComplete:"off",role:"combobox","aria-expanded":u,value:u?m:A,onChange:e=>{x(e.target.value),h(!0)},onFocus:()=>{i||(x(""),h(!0))},onKeyDown:e=>{"Enter"===e.key?(e.preventDefault(),1===B.length?(t(B[0].value),D(!1)):o&&m.trim()&&(t(m.trim()),D(!1),v.current?.blur())):"Escape"===e.key?(D(!1),v.current?.blur()):"Tab"===e.key&&D(!0)},placeholder:n||f,className:`${de} ${l} ${e?"pr-8":""} ${i?"bg-gray-50 text-gray-400 cursor-not-allowed":""} truncate`,style:S?{paddingRight:S}:void 0,disabled:i}),e&&!i&&/* @__PURE__ */re(Ir,{ariaLabel:g.select.clear,onClear:()=>{t(""),D(!1)}}),d&&!u&&/* @__PURE__ */re("div",{ref:N,className:`absolute top-1/2 -translate-y-1/2 ${e&&!i?"right-8":"right-2"} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:d}),u&&le(
|
|
@@ -461,11 +461,11 @@ return ne("button",{type:"button",role:"menuitemradio","aria-checked":e.checked,
|
|
|
461
461
|
return ne("button",{type:"button",role:"menuitem",disabled:e.disabled,className:r.className,style:r.style,onClick:()=>I(e),...E(t,e),children:[e.icon,e.label]},e.key)},U={...Il.test(s)?{}:{zIndex:C.popup},minWidth:o};/* @__PURE__ */
|
|
462
462
|
return ne("div",{ref:x,className:`relative inline-flex ${l}`.trim(),children:[
|
|
463
463
|
/* @__PURE__ */re("button",{ref:b,id:S,type:"button","aria-haspopup":"menu","aria-expanded":m,"aria-controls":m?D:void 0,"aria-label":a,"aria-describedby":h,disabled:d,onClick:()=>m?z(!1):B(P(0,1)),onKeyDown:e=>{"ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),B(P(0,1))):"ArrowUp"===e.key&&(e.preventDefault(),B(P(t.length-1,-1)))},className:i??"inline-flex items-center justify-center rounded-md text-gray-600 transition-colors hover:bg-gray-100 hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60",children:e}),m&&
|
|
464
|
-
/* @__PURE__ */re(v,{portal:!0,className:s,style:U,children:/* @__PURE__ */re("div",{ref:y,id:D,role:"menu","aria-orientation":"vertical","aria-label":a,"aria-labelledby":a?void 0:S,tabIndex:-1,onKeyDown:e=>{if("ArrowDown"===e.key)e.preventDefault(),f(P(g+1,1));else if("ArrowUp"===e.key)e.preventDefault(),f(P(g-1,-1));else if("Home"===e.key)e.preventDefault(),f(P(0,1));else if("End"===e.key)e.preventDefault(),f(P(t.length-1,-1));else if("Tab"===e.key)e.preventDefault(),z(!0);else if(" "===e.key){const t=e.target;t.matches?.("a[href]")&&(e.preventDefault(),t.click())}else 1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||(e=>{const r=Date.now(),n=e.key.toLowerCase(),a=r-L.current.at<500?L.current.text+n:n;L.current={text:a,at:r};const l=[...a].every(e=>e===a[0]),i=l?a[0]:a,s=l?g+1:Math.max(g,0),o=y.current,c=t.length;for(let r=0;r<c;r+=1){const n=((s+r)%c+c)%c;if(El(t[n])&&(o?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(i))return e.preventDefault(),void f(n)}})(e)},children:(()=>{const e=[];for(let r=0;r<t.length;){const n=t[r];if("radio"!==n.type&&"checkbox"!==n.type){e.push(R(n,r)),r+=1;continue}const a=n.type,l=r,i=[];for(;r<t.length&&t[r].type===a;)i.push(R(t[r],r)),r+=1;const s="label"===t[l-1]?.type?`${D}-label-${l-1}`:void 0;e.push(/* @__PURE__ */re("div",{role:"group","aria-labelledby":s,children:i},`group:${n.key}`))}return e})()})})]})}var Ol=/(^|[\s:])!?z-/;function Yl({trigger:e,children:t,title:r,description:n,"aria-label":a,align:l="start",side:i="bottom",open:s,defaultOpen:o=!1,onOpenChange:
|
|
464
|
+
/* @__PURE__ */re(v,{portal:!0,className:s,style:U,children:/* @__PURE__ */re("div",{ref:y,id:D,role:"menu","aria-orientation":"vertical","aria-label":a,"aria-labelledby":a?void 0:S,tabIndex:-1,onKeyDown:e=>{if("ArrowDown"===e.key)e.preventDefault(),f(P(g+1,1));else if("ArrowUp"===e.key)e.preventDefault(),f(P(g-1,-1));else if("Home"===e.key)e.preventDefault(),f(P(0,1));else if("End"===e.key)e.preventDefault(),f(P(t.length-1,-1));else if("Tab"===e.key)e.preventDefault(),z(!0);else if(" "===e.key){const t=e.target;t.matches?.("a[href]")&&(e.preventDefault(),t.click())}else 1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||(e=>{const r=Date.now(),n=e.key.toLowerCase(),a=r-L.current.at<500?L.current.text+n:n;L.current={text:a,at:r};const l=[...a].every(e=>e===a[0]),i=l?a[0]:a,s=l?g+1:Math.max(g,0),o=y.current,c=t.length;for(let r=0;r<c;r+=1){const n=((s+r)%c+c)%c;if(El(t[n])&&(o?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(i))return e.preventDefault(),void f(n)}})(e)},children:(()=>{const e=[];for(let r=0;r<t.length;){const n=t[r];if("radio"!==n.type&&"checkbox"!==n.type){e.push(R(n,r)),r+=1;continue}const a=n.type,l=r,i=[];for(;r<t.length&&t[r].type===a;)i.push(R(t[r],r)),r+=1;const s="label"===t[l-1]?.type?`${D}-label-${l-1}`:void 0;e.push(/* @__PURE__ */re("div",{role:"group","aria-labelledby":s,children:i},`group:${n.key}`))}return e})()})})]})}var Ol=/(^|[\s:])!?z-/;function Yl({trigger:e,children:t,title:r,description:n,"aria-label":a,align:l="start",side:i="bottom",open:s,defaultOpen:o=!1,onOpenChange:d,matchTriggerWidth:u=!1,maxHeight:h,initialFocus:g,id:f,triggerLabel:b,"aria-describedby":y,disabled:v,className:w="",triggerClassName:N,panelClassName:k=""}){const[L,D]=Y(o),j=(s??L)&&!v,S=E(),z=H(null),P=H(null),A=H(null),F=H(null),B=_(),I=f??B,W=_(),R=_(),U=_(),V=H(null),K=H(!1),Z=H({openProp:s,onOpenChange:d});Z.current={openProp:s,onOpenChange:d};const G=O(e=>{void 0===Z.current.openProp&&D(e),Z.current.onOpenChange?.(e)},[]),J=O((e=!1)=>{K.current=e,G(!1)},[G]),X=e=>{V.current=e.nativeEvent},Q=O(()=>{const e=A.current,t=P.current;if(!e||!t)return;const r=t.getBoundingClientRect(),n=be(t),a=Math.max(0,n.right-n.left-16),s=e.style;s.left="0px",s.top="0px",s.maxWidth=`${a}px`,s.maxHeight="none",s.width=u?`${Math.min(r.width,a)}px`:"";const o={width:e.offsetWidth,height:e.offsetHeight},c=h??1/0,d=$e({trigger:r,menu:{width:o.width,height:Math.min(o.height,c)},bounds:n,align:l,side:i}),m=Math.min(d.maxHeight,c);s.left=`${d.left}px`,s.top=`${d.top}px`,s.maxHeight=`${m}px`,s.overflowY=o.height>m?"auto":"",e.dataset.side=d.side,e.dataset.align=l},[l,i,u,h]);T(()=>{j&&S&&Q()}),q(()=>{if(!j||!S)return;const e=Me(()=>P.current,Q),t=F.current;if(!t||"undefined"==typeof ResizeObserver)return e;const r=new ResizeObserver(()=>Q());return r.observe(t),()=>{e(),r.disconnect()}},[j,S,Q]),q(()=>{if(!j)return;const e=e=>{let t=null,r=0;const n=e=>{t===e&&(t=null,window.clearTimeout(r),(e=>{if(V.current===e)return!1;const t=e.target;return!(t&&(z.current?.contains(t)||A.current?.contains(t)))})(e)&&J(!0))},a=e=>{t=e,r=window.setTimeout(()=>n(e),0)},l=e=>n(e);return document.addEventListener(e,a,!0),window.addEventListener(e,l),()=>{window.clearTimeout(r),document.removeEventListener(e,a,!0),window.removeEventListener(e,l)}},t=e("pointerdown"),r=e("focusin"),n=$(()=>J()),a=M(e=>"Escape"===e.key&&(J(),P.current?.focus(),!0));return()=>{t(),r(),n(),a()}},[j,J]),m(A,j&&S),T(()=>{if(!j||!S)return;const e=A.current;return()=>{if(K.current)return;const t=document.activeElement;t&&t!==document.body&&!e?.contains(t)||P.current?.focus({preventScroll:!0})}},[j,S]),q(()=>{if(!j||!S)return;const e=A.current;e&&(K.current=!1,(g?.current??p(e)[0]??e).focus({preventScroll:!0}))},[j,S]);const ee="function"==typeof t?t({close:()=>J()}):t,te=r?{"aria-labelledby":R}:a?{"aria-label":a}:{"aria-labelledby":I};/* @__PURE__ */
|
|
465
465
|
return ne("div",{ref:z,className:`relative inline-flex ${w}`.trim(),children:[
|
|
466
|
-
/* @__PURE__ */re("button",{ref:P,id:I,type:"button","aria-haspopup":"dialog","aria-expanded":j,"aria-controls":j&&S?W:void 0,"aria-label":b,"aria-describedby":y,disabled:v,onClick:()=>j?J():G(!0),onKeyDown:e=>{if("Tab"!==e.key||e.shiftKey||!j)return;const t=(()=>{const e=A.current;return e?p(e)[0]??e:null})();t&&(e.preventDefault(),t.focus({preventScroll:!0}))},className:N??
|
|
467
|
-
/* @__PURE__ */re("div",{ref:A,id:W,role:"dialog",...te,"aria-describedby":n?U:void 0,tabIndex:-1,"data-popover-panel":"",onPointerDownCapture:X,onFocusCapture:X,onKeyDown:e=>{const t=A.current,r=P.current;if("Tab"!==e.key||!t||!r||!t.contains(e.target))return;const n=p(t),a=document.activeElement;if(e.shiftKey){if(n.length>0&&a!==n[0]&&a!==t)return;return e.preventDefault(),void r.focus({preventScroll:!0})}if(n.length>0&&a!==n[n.length-1])return;e.preventDefault();const l=x(r,t);J(!!l),(l??r).focus({preventScroll:!0})},className:`fixed rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${k}`.trim(),style:Ol.test(k)?void 0:{zIndex:C.popup},children:/* @__PURE__ */ne("div",{ref:F,children:[r&&/* @__PURE__ */re("h2",{id:R,className:"text-sm font-semibold text-gray-900",children:r}),n&&/* @__PURE__ */re("p",{id:U,className:"mt-1 text-sm text-gray-500",children:n}),r||n?/* @__PURE__ */re("div",{className:"mt-3",children:ee}):ee]})}),document.body)]})}var Hl=6e4;function _l({currentVersion:e,versionUrl:t="/version.json",pollMs:r=6e4}){const[n,a]=Y(null);return q(()=>{if(!e||null!==n)return;let l=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const r=t.includes("?")?"&":"?",n=await fetch(`${t}${r}t=${Date.now()}`,{cache:"no-store"});if(!n.ok)return;const i=await n.json(),s=i&&"object"==typeof i&&"string"==typeof i.version?i.version:null;!l&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},r),o=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",o),()=>{l=!0,clearInterval(s),document.removeEventListener("visibilitychange",o)}},[e,t,r,n]),n}function ql({currentVersion:e,versionUrl:t,pollMs:r,message:n,onRefresh:a,className:l=""}){const i=_l({currentVersion:e,versionUrl:t,pollMs:r}),s=j();if(null===i)return null;const
|
|
468
|
-
return re("div",{"data-app-update-banner":"",className:`fixed left-1/2 top-3 z-[9999] w-max max-w-[calc(100vw-1.5rem)] -translate-x-1/2 ${l}`.trim(),children:/* @__PURE__ */ne(Sn,{tone:"warning",className:"shadow-lg",action:/* @__PURE__ */re(
|
|
466
|
+
/* @__PURE__ */re("button",{ref:P,id:I,type:"button","aria-haspopup":"dialog","aria-expanded":j,"aria-controls":j&&S?W:void 0,"aria-label":b,"aria-describedby":y,disabled:v,onClick:()=>j?J():G(!0),onKeyDown:e=>{if("Tab"!==e.key||e.shiftKey||!j)return;const t=(()=>{const e=A.current;return e?p(e)[0]??e:null})();t&&(e.preventDefault(),t.focus({preventScroll:!0}))},className:N??c({variant:"secondary"}),children:e}),j&&S&&le(
|
|
467
|
+
/* @__PURE__ */re("div",{ref:A,id:W,role:"dialog",...te,"aria-describedby":n?U:void 0,tabIndex:-1,"data-popover-panel":"",onPointerDownCapture:X,onFocusCapture:X,onKeyDown:e=>{const t=A.current,r=P.current;if("Tab"!==e.key||!t||!r||!t.contains(e.target))return;const n=p(t),a=document.activeElement;if(e.shiftKey){if(n.length>0&&a!==n[0]&&a!==t)return;return e.preventDefault(),void r.focus({preventScroll:!0})}if(n.length>0&&a!==n[n.length-1])return;e.preventDefault();const l=x(r,t);J(!!l),(l??r).focus({preventScroll:!0})},className:`fixed rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${k}`.trim(),style:Ol.test(k)?void 0:{zIndex:C.popup},children:/* @__PURE__ */ne("div",{ref:F,children:[r&&/* @__PURE__ */re("h2",{id:R,className:"text-sm font-semibold text-gray-900",children:r}),n&&/* @__PURE__ */re("p",{id:U,className:"mt-1 text-sm text-gray-500",children:n}),r||n?/* @__PURE__ */re("div",{className:"mt-3",children:ee}):ee]})}),document.body)]})}var Hl=6e4;function _l({currentVersion:e,versionUrl:t="/version.json",pollMs:r=6e4}){const[n,a]=Y(null);return q(()=>{if(!e||null!==n)return;let l=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const r=t.includes("?")?"&":"?",n=await fetch(`${t}${r}t=${Date.now()}`,{cache:"no-store"});if(!n.ok)return;const i=await n.json(),s=i&&"object"==typeof i&&"string"==typeof i.version?i.version:null;!l&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},r),o=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",o),()=>{l=!0,clearInterval(s),document.removeEventListener("visibilitychange",o)}},[e,t,r,n]),n}function ql({currentVersion:e,versionUrl:t,pollMs:r,message:n,onRefresh:a,className:l=""}){const i=_l({currentVersion:e,versionUrl:t,pollMs:r}),s=j();if(null===i)return null;const c=a??(()=>window.location.reload());/* @__PURE__ */
|
|
468
|
+
return re("div",{"data-app-update-banner":"",className:`fixed left-1/2 top-3 z-[9999] w-max max-w-[calc(100vw-1.5rem)] -translate-x-1/2 ${l}`.trim(),children:/* @__PURE__ */ne(Sn,{tone:"warning",className:"shadow-lg",action:/* @__PURE__ */re(o,{type:"button",variant:"primary",size:"md",onClick:c,children:s.update.refreshNow}),children:[
|
|
469
469
|
/* @__PURE__ */re("span",{className:"font-medium",children:n??s.update.available}),
|
|
470
470
|
/* @__PURE__ */ne("span",{className:"ml-2 whitespace-nowrap font-mono text-xs text-gray-500",children:[e," → ",i]})]})})}var Ul={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},Vl={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function Kl({onClose:e}){const t=j().dialog;/* @__PURE__ */
|
|
471
471
|
return re("button",{type:"button",onClick:e,"aria-label":t.close,className:"rounded-md 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__ */re("svg",{className:"h-5 w-5",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:/* @__PURE__ */re("path",{d:"M6 6l8 8M14 6l-8 8"})})})}function Zl({open:e,onClose:t,side:r="right",size:n="md",title:a,description:l,footer:i,children:s,blocking:o=!1,initialFocus:c,"aria-label":d,"aria-labelledby":u,"aria-describedby":h,className:m=""}){const p=H(null),x=_(),b=_(),y=_();if(L(e),g(p,e,c),f(e),q(()=>{if(e)return M(()=>(o||t(),!0))},[e,o,t]),!e)return null;const v="bottom"===r,w=v?{maxHeight:"85vh"}:void 0;/* @__PURE__ */
|
|
@@ -509,7 +509,7 @@ return ne(ae,{children:[i,d?`${d} — `:"",c?null!=n?s.allLoaded(o,a):s.count(o,
|
|
|
509
509
|
return ne("div",{className:`flex flex-col items-center justify-center text-center ${"card"===n?"rounded-md border border-gray-200 bg-white px-6 py-12":"none"===n?"px-6 py-12":"rounded-lg border-2 border-dashed border-red-200 px-6 py-12"}`,role:"alert",children:[
|
|
510
510
|
/* @__PURE__ */re("svg",{className:"h-10 w-10 text-red-300 mb-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,"aria-hidden":"true",children:/* @__PURE__ */re("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m0 3.75h.008M10.34 3.94l-8.4 14.55A1.5 1.5 0 003.24 21h17.52a1.5 1.5 0 001.3-2.51l-8.4-14.55a1.5 1.5 0 00-2.6 0z"})}),
|
|
511
511
|
/* @__PURE__ */re("h3",{className:"text-sm font-medium text-gray-900",children:e??a.loadError}),
|
|
512
|
-
/* @__PURE__ */re("p",{className:"text-sm text-gray-500 mt-2",children:t??a.loadErrorMessage}),r&&/* @__PURE__ */re("div",{className:"mt-4",children:/* @__PURE__ */re(
|
|
512
|
+
/* @__PURE__ */re("p",{className:"text-sm text-gray-500 mt-2",children:t??a.loadErrorMessage}),r&&/* @__PURE__ */re("div",{className:"mt-4",children:/* @__PURE__ */re(o,{variant:"secondary",size:"sm",onClick:r,children:a.retry})})]})}function ci({data:e,width:t=120,height:r=32,stroke:n="currentColor",fill:a,strokeWidth:l=1.5,showDots:i=!1,className:s,style:o}){if(0===e.length)return null;const c=Math.max(...e),d=Math.min(...e),u=c-d||1,h=l+(i?2:0),m=e=>r-h-(e-d)/u*(r-2*h),p=1===e.length?[[0,r/2],[t,r/2]]:e.map((r,n)=>[n*t/(e.length-1),m(r)]),g=p.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" "),f=`${g} L${t.toFixed(2)},${r} L0,${r} Z`;/* @__PURE__ */
|
|
513
513
|
return ne("svg",{className:s,style:o,width:t,height:r,viewBox:`0 0 ${t} ${r}`,preserveAspectRatio:"none",role:"img","aria-hidden":"true",children:[a&&/* @__PURE__ */re("path",{d:f,fill:a,stroke:"none"}),
|
|
514
514
|
/* @__PURE__ */re("path",{d:g,fill:"none",stroke:n,strokeWidth:l,strokeLinejoin:"round",strokeLinecap:"round"}),i&&p.map(([e,t],r)=>/* @__PURE__ */re("circle",{cx:e,cy:t,r:l+.5,fill:n},r))]})}function di({data:e,labels:t,height:r=120,color:n="currentColor",colors:a,max:l,gap:i=6,className:s,style:o}){const c=D();if(0===e.length)return null;const d=l??(Math.max(...e,0)||1);/* @__PURE__ */
|
|
515
515
|
return ne("div",{className:s,style:o,children:[
|
|
@@ -532,8 +532,8 @@ return re(qn,{groups:gi,children:/* @__PURE__ */re("div",{className:"h-full over
|
|
|
532
532
|
/* @__PURE__ */re("h1",{className:"text-xl font-semibold text-gray-900",children:"Dashboard"}),
|
|
533
533
|
/* @__PURE__ */re("p",{className:"text-sm text-gray-500",children:"Overview of your store this month"})]}),
|
|
534
534
|
/* @__PURE__ */ne("div",{className:"flex items-center gap-2",children:[
|
|
535
|
-
/* @__PURE__ */re(
|
|
536
|
-
/* @__PURE__ */re(
|
|
535
|
+
/* @__PURE__ */re(o,{variant:"secondary",size:"sm",children:"Export"}),
|
|
536
|
+
/* @__PURE__ */re(o,{size:"sm",children:"New report"})]})]}),
|
|
537
537
|
/* @__PURE__ */ne("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[
|
|
538
538
|
/* @__PURE__ */re(Yr,{label:"Revenue",value:"$38.2k",delta:{value:"12%",direction:"up"}}),
|
|
539
539
|
/* @__PURE__ */re(Yr,{label:"Orders",value:"1,204",delta:{value:"4%",direction:"up"}}),
|
|
@@ -570,12 +570,12 @@ return re("span",{className:"inline-block h-2.5 w-2.5 rounded-full",style:{backg
|
|
|
570
570
|
return re(qn,{groups:wi,children:/* @__PURE__ */re("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */ne("div",{className:"mx-auto max-w-5xl space-y-4",children:[
|
|
571
571
|
/* @__PURE__ */ne("div",{className:"flex items-center justify-between gap-4",children:[
|
|
572
572
|
/* @__PURE__ */re("h1",{className:"text-xl font-semibold text-gray-900",children:"Members"}),
|
|
573
|
-
/* @__PURE__ */re(
|
|
573
|
+
/* @__PURE__ */re(o,{size:"sm",children:"Invite member"})]}),
|
|
574
574
|
/* @__PURE__ */ne(Or,{padded:!1,children:[
|
|
575
575
|
/* @__PURE__ */ne("div",{className:"flex flex-wrap items-center gap-2 border-b border-gray-100 p-3",children:[
|
|
576
576
|
/* @__PURE__ */re("div",{className:"min-w-48 flex-1",children:/* @__PURE__ */re(me,{value:a,onChange:e=>l(e.target.value),placeholder:"Search members…",leftIcon:/* @__PURE__ */re(Mi,{})})}),
|
|
577
577
|
/* @__PURE__ */re("div",{className:"w-40",children:/* @__PURE__ */re(Ae,{value:r,onChange:n,placeholder:"All roles",options:[{value:"admin",label:"Admin"},{value:"editor",label:"Editor"},{value:"viewer",label:"Viewer"}]})}),
|
|
578
|
-
/* @__PURE__ */re(
|
|
578
|
+
/* @__PURE__ */re(o,{variant:"secondary",size:"sm",children:"Filter"})]}),
|
|
579
579
|
/* @__PURE__ */ne("table",{className:"w-full text-sm",children:[
|
|
580
580
|
/* @__PURE__ */re("thead",{children:/* @__PURE__ */ne("tr",{className:"border-b border-gray-100 text-left text-xs uppercase tracking-wide text-gray-400",children:[
|
|
581
581
|
/* @__PURE__ */re("th",{className:"px-4 py-2 font-medium",children:"Name"}),
|
|
@@ -588,7 +588,7 @@ return re(qn,{groups:wi,children:/* @__PURE__ */re("div",{className:"h-full over
|
|
|
588
588
|
/* @__PURE__ */re("div",{className:"text-xs text-gray-400",children:e.email})]}),
|
|
589
589
|
/* @__PURE__ */re("td",{className:"px-4 py-2.5",children:e.role}),
|
|
590
590
|
/* @__PURE__ */re("td",{className:"px-4 py-2.5",children:/* @__PURE__ */re(Un,{status:e.status})}),
|
|
591
|
-
/* @__PURE__ */re("td",{className:"px-4 py-2.5 text-right",children:/* @__PURE__ */re(
|
|
591
|
+
/* @__PURE__ */re("td",{className:"px-4 py-2.5 text-right",children:/* @__PURE__ */re(o,{variant:"ghost",size:"sm",children:"Edit"})})]},e.email))})]}),
|
|
592
592
|
/* @__PURE__ */ne("div",{className:"flex items-center justify-between border-t border-gray-100 p-3",children:[
|
|
593
593
|
/* @__PURE__ */re("span",{className:"text-xs text-gray-400",children:"Showing 1–6 of 48"}),
|
|
594
594
|
/* @__PURE__ */re(Xl,{page:e,pageCount:8,onPageChange:t,showEdges:!0})]})]})]})})})}function Mi(){/* @__PURE__ */
|
|
@@ -614,8 +614,8 @@ return re("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__
|
|
|
614
614
|
/* @__PURE__ */re(Ie,{name:"plan",checked:"team"===e,onChange:()=>t("team"),label:"Team"})]})})]}),
|
|
615
615
|
/* @__PURE__ */re(Be,{checked:r,onChange:n,label:"Email me product updates",description:"Occasional news — no more than once a month."})]})}),
|
|
616
616
|
/* @__PURE__ */ne("div",{className:"flex items-center justify-end gap-2",children:[
|
|
617
|
-
/* @__PURE__ */re(
|
|
618
|
-
/* @__PURE__ */re(
|
|
617
|
+
/* @__PURE__ */re(o,{variant:"secondary",children:"Cancel"}),
|
|
618
|
+
/* @__PURE__ */re(o,{type:"submit",children:"Save changes"})]})]})})}var Ci=[{name:"Mechanical keyboard",qty:1,price:129},{name:"USB-C cable (2m)",qty:2,price:12},{name:"Laptop stand",qty:1,price:48}];function Li(){const[e,t]=Y(!0),[r,n]=Y("us"),a=Ci.reduce((e,t)=>e+t.qty*t.price,0),l=a+9;/* @__PURE__ */
|
|
619
619
|
return re("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */ne("div",{className:"mx-auto max-w-5xl space-y-5",children:[
|
|
620
620
|
/* @__PURE__ */re("h1",{className:"text-xl font-semibold text-gray-900",children:"Checkout"}),
|
|
621
621
|
/* @__PURE__ */ne("div",{className:"grid grid-cols-1 gap-5 lg:grid-cols-3",children:[
|
|
@@ -652,10 +652,10 @@ return re("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__
|
|
|
652
652
|
/* @__PURE__ */ne("div",{className:"flex justify-between text-base font-semibold text-gray-900",children:[
|
|
653
653
|
/* @__PURE__ */re("span",{children:"Total"}),
|
|
654
654
|
/* @__PURE__ */ne("span",{children:["$",l]})]})]}),
|
|
655
|
-
/* @__PURE__ */ne(
|
|
655
|
+
/* @__PURE__ */ne(o,{block:!0,className:"mt-4",children:["Pay $",l]})]}),
|
|
656
656
|
/* @__PURE__ */re(Sn,{tone:"success",title:"Promo applied",children:"Free returns within 30 days."})]})]})]})})}var Di=[{id:"inbox",label:"Inbox",count:12},{id:"starred",label:"Starred",count:3},{id:"sent",label:"Sent"},{id:"drafts",label:"Drafts",count:1},{id:"archive",label:"Archive"},{id:"trash",label:"Trash"}],ji=[{id:1,from:"Marco Reyes",subject:"Q3 roadmap review",preview:"Sharing the deck ahead of Thursday — let me know…",time:"9:14",unread:!0},{id:2,from:"Priya Patel",subject:"Design handoff",preview:"The Figma file is ready for engineering. I exported…",time:"8:02",unread:!0},{id:3,from:"GitHub",subject:"[acme/web] PR #482 merged",preview:"Your pull request was merged into main by…",time:"Yest"},{id:4,from:"Sara Lind",subject:"Lunch Friday?",preview:"A few of us are heading to the new place on 5th…",time:"Yest"}];function Si(){const[e,r]=Y(1),n=ji.find(t=>t.id===e)??ji[0];/* @__PURE__ */
|
|
657
657
|
return re("div",{className:"h-full",children:/* @__PURE__ */re(t,{side:"left",defaultWidth:200,sidebar:/* @__PURE__ */ne("div",{className:"flex h-full flex-col p-2",children:[
|
|
658
|
-
/* @__PURE__ */re(
|
|
658
|
+
/* @__PURE__ */re(o,{block:!0,className:"mb-2",children:"Compose"}),Di.map((e,t)=>/* @__PURE__ */ne("button",{className:"flex items-center justify-between rounded-md px-3 py-2 text-left text-sm "+(0===t?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),children:[
|
|
659
659
|
/* @__PURE__ */re("span",{children:e.label}),null!=e.count&&/* @__PURE__ */re("span",{className:"text-xs text-gray-400",children:e.count})]},e.id))]}),children:/* @__PURE__ */ne("div",{className:"flex h-full",children:[
|
|
660
660
|
/* @__PURE__ */re("div",{className:"w-72 shrink-0 overflow-auto border-r border-gray-200",children:ji.map(t=>/* @__PURE__ */ne("button",{onClick:()=>r(t.id),className:"block w-full border-b border-gray-100 px-4 py-3 text-left hover:bg-gray-50 "+(t.id===e?"bg-blue-50/50":""),children:[
|
|
661
661
|
/* @__PURE__ */ne("div",{className:"flex items-center justify-between gap-2",children:[
|
|
@@ -667,8 +667,8 @@ return re("div",{className:"h-full",children:/* @__PURE__ */re(t,{side:"left",de
|
|
|
667
667
|
/* @__PURE__ */ne("div",{className:"flex items-center justify-between gap-3 border-b border-gray-200 p-4",children:[
|
|
668
668
|
/* @__PURE__ */re("h2",{className:"truncate text-base font-semibold text-gray-900",children:n.subject}),
|
|
669
669
|
/* @__PURE__ */ne("div",{className:"flex shrink-0 gap-1.5",children:[
|
|
670
|
-
/* @__PURE__ */re(
|
|
671
|
-
/* @__PURE__ */re(
|
|
670
|
+
/* @__PURE__ */re(o,{variant:"ghost",size:"sm",children:"Archive"}),
|
|
671
|
+
/* @__PURE__ */re(o,{variant:"secondary",size:"sm",children:"Reply"})]})]}),
|
|
672
672
|
/* @__PURE__ */ne("div",{className:"flex items-center gap-3 border-b border-gray-100 p-4",children:[
|
|
673
673
|
/* @__PURE__ */re($n,{name:n.from}),
|
|
674
674
|
/* @__PURE__ */ne("div",{className:"min-w-0",children:[
|
|
@@ -694,11 +694,11 @@ return re("div",{className:"h-full",children:/* @__PURE__ */re(t,{side:"left",de
|
|
|
694
694
|
/* @__PURE__ */re("div",{className:"flex flex-1 flex-col gap-2 overflow-auto bg-gray-50 p-4",children:Pi.map((e,t)=>/* @__PURE__ */re("div",{className:"flex "+(e.mine?"justify-end":"justify-start"),children:/* @__PURE__ */re("div",{style:{maxWidth:"75%"},className:"rounded-2xl px-3 py-2 text-sm "+(e.mine?"bg-blue-600 text-white":"bg-white text-gray-800 shadow-sm"),children:e.text})},t))}),
|
|
695
695
|
/* @__PURE__ */ne("form",{className:"flex items-center gap-2 border-t border-gray-200 p-3",onSubmit:e=>e.preventDefault(),children:[
|
|
696
696
|
/* @__PURE__ */re("div",{className:"flex-1",children:/* @__PURE__ */re(me,{placeholder:"Type a message…"})}),
|
|
697
|
-
/* @__PURE__ */re(
|
|
697
|
+
/* @__PURE__ */re(o,{type:"submit",children:"Send"})]})]})})})}var Fi={featured:"success",new:"active",draft:"draft"},Bi=["linear-gradient(135deg,#60a5fa,#a78bfa)","linear-gradient(135deg,#34d399,#10b981)","linear-gradient(135deg,#fbbf24,#f59e0b)","linear-gradient(135deg,#f472b6,#ec4899)","linear-gradient(135deg,#38bdf8,#6366f1)","linear-gradient(135deg,#fb7185,#ef4444)","linear-gradient(135deg,#4ade80,#22c55e)","linear-gradient(135deg,#c084fc,#8b5cf6)"].map((e,t)=>({id:t,title:["Sunrise","Forest","Desert","Bloom","Ocean","Ember","Meadow","Dusk"][t],tag:["featured","new","draft"][t%3],bg:e}));function Ti(){const[e,t]=Y("all"),r="all"===e?Bi:Bi.filter(t=>t.tag===e);/* @__PURE__ */
|
|
698
698
|
return re(qn,{groups:Fi,children:/* @__PURE__ */re("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */ne("div",{className:"mx-auto max-w-5xl space-y-4",children:[
|
|
699
699
|
/* @__PURE__ */ne("div",{className:"flex items-center justify-between gap-4",children:[
|
|
700
700
|
/* @__PURE__ */re("h1",{className:"text-xl font-semibold text-gray-900",children:"Gallery"}),
|
|
701
|
-
/* @__PURE__ */re(
|
|
701
|
+
/* @__PURE__ */re(o,{size:"sm",children:"Upload"})]}),
|
|
702
702
|
/* @__PURE__ */re(Bn,{value:e,onChange:t,variant:"pill",items:[{id:"all",label:"All"},{id:"featured",label:"Featured"},{id:"new",label:"New"},{id:"draft",label:"Drafts"}]}),
|
|
703
703
|
/* @__PURE__ */re("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4",children:r.map(e=>/* @__PURE__ */ne(Or,{padded:!1,className:"overflow-hidden",children:[
|
|
704
704
|
/* @__PURE__ */re("div",{className:"relative h-28",style:{background:e.bg},children:/* @__PURE__ */re("span",{className:"absolute right-2 top-2",children:/* @__PURE__ */re(Un,{status:e.tag})})}),
|
|
@@ -714,7 +714,7 @@ return re("div",{className:"flex h-full items-center justify-center overflow-aut
|
|
|
714
714
|
/* @__PURE__ */re(We,{label:"Email",htmlFor:"au-email",children:/* @__PURE__ */re(me,{id:"au-email",type:"email",placeholder:"you@example.com"})}),"forgot"!==e&&/* @__PURE__ */re(We,{label:"Password",htmlFor:"au-pass",hint:"register"===e?"At least 8 characters.":void 0,children:/* @__PURE__ */re(me,{id:"au-pass",type:"password",placeholder:"••••••••"})}),"login"===e&&/* @__PURE__ */ne("div",{className:"flex items-center justify-between",children:[
|
|
715
715
|
/* @__PURE__ */re(Be,{checked:t,onChange:r,label:"Remember me"}),
|
|
716
716
|
/* @__PURE__ */re("a",{href:"#",className:"text-sm text-blue-600 hover:underline",children:"Forgot?"})]}),
|
|
717
|
-
/* @__PURE__ */re(
|
|
717
|
+
/* @__PURE__ */re(o,{type:"submit",block:!0,children:n.cta})]})}),
|
|
718
718
|
/* @__PURE__ */re("p",{className:"mt-4 text-center text-sm text-gray-500",children:/* @__PURE__ */ne(ae,"register"===e?{children:["Already have an account? ",
|
|
719
719
|
/* @__PURE__ */re("a",{href:"#",className:"text-blue-600 hover:underline",children:"Sign in"})]}:{children:["New here? ",
|
|
720
720
|
/* @__PURE__ */re("a",{href:"#",className:"text-blue-600 hover:underline",children:"Create an account"})]})})]})})}var Ei={403:e=>({title:e.forbidden,body:e.forbiddenBody}),404:e=>({title:e.notFound,body:e.notFoundBody}),500:e=>({title:e.serverError,body:e.serverErrorBody})};function Ri({code:e=404,actions:t}){const r=Ei[e](j().errors);/* @__PURE__ */
|
|
@@ -725,7 +725,7 @@ return ne("div",{className:"flex h-full flex-col items-center justify-center bg-
|
|
|
725
725
|
return re(ae,{children:e(j().errors)})}var Yi=class extends Q{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t),this.props.onError?.(e,t)}componentDidUpdate(e){if(!this.state.error)return;const t=e.resetKeys??[],r=this.props.resetKeys??[];(t.length!==r.length||t.some((e,t)=>!Object.is(e,r[t])))&&this.reset()}reset=()=>this.setState({error:null});render(){const{error:e}=this.state;return e?this.props.fallback?this.props.fallback(e,this.reset):
|
|
726
726
|
/* @__PURE__ */ne("div",{className:"flex h-full flex-col",children:[
|
|
727
727
|
/* @__PURE__ */re("div",{role:"alert",className:"min-h-0 flex-1",children:/* @__PURE__ */re(Ri,{code:500,actions:/* @__PURE__ */ne(ae,{children:[
|
|
728
|
-
/* @__PURE__ */re(
|
|
728
|
+
/* @__PURE__ */re(o,{onClick:this.reset,children:/* @__PURE__ */re(Oi,{pick:e=>e.retry})}),this.props.actions]})})}),this.props.showDetails&&/* @__PURE__ */ne("details",{className:"mx-auto w-full max-w-2xl shrink-0 px-6 pb-6",children:[
|
|
729
729
|
/* @__PURE__ */re("summary",{className:"cursor-pointer text-sm font-medium text-gray-600",children:/* @__PURE__ */re(Oi,{pick:e=>e.details})}),
|
|
730
730
|
/* @__PURE__ */re("pre",{className:"mt-2 overflow-auto rounded-md bg-gray-100 p-3 text-xs text-gray-700",children:e.stack??e.message})]})]}):this.props.children}};function Hi(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null}function _i(e){const t=Hi();return t?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):()=>{}}function qi(){return Hi()?.matches??!1}function Ui(){return!1}function Vi(e){const t=parseInt(e.slice(1,3),16)/255,r=parseInt(e.slice(3,5),16)/255,n=parseInt(e.slice(5,7),16)/255,a=Math.max(t,r,n),l=Math.min(t,r,n);let i=0,s=0;const o=(a+l)/2;if(a!==l){const e=a-l;s=o>.5?e/(2-a-l):e/(a+l),i=a===t?((r-n)/e+(r<n?6:0))/6:a===r?((n-t)/e+2)/6:((t-r)/e+4)/6}return[360*i,100*s,100*o]}function Ki(e,t,r){r/=100;const n=(t/=100)*Math.min(r,1-r),a=t=>{const a=(t+e/30)%12;return r-n*Math.max(Math.min(a-3,9-a,1),-1)},l=e=>Math.round(255*e).toString(16).padStart(2,"0");return`#${l(a(0))}${l(a(8))}${l(a(4))}`}function Zi(e){const t=e||"system";return"system"===t?qi()?"dark":"light":t}function Gi(e){const t=document.documentElement;if(e&&/^#[0-9a-fA-F]{6}$/.test(e)){const[r,n,a]=Vi(e);t.setAttribute("data-custom-accent","true"),t.style.setProperty("--accent-600",e),t.style.setProperty("--accent-700",Ki(r,n,Math.max(a-10,5))),t.style.setProperty("--accent-500",Ki(r,n,Math.min(a+10,95))),t.style.setProperty("--accent-400",Ki(r,n,Math.min(a+20,95))),t.style.setProperty("--accent-300",Ki(r,Math.min(n+10,100),Math.min(a+30,92))),t.style.setProperty("--accent-200",Ki(r,Math.min(n+15,100),Math.min(a+38,94))),t.style.setProperty("--accent-100",Ki(r,Math.min(n+20,100),Math.min(a+42,96))),t.style.setProperty("--accent-50",Ki(r,Math.min(n+20,100),Math.min(a+46,98)))}else t.removeAttribute("data-custom-accent"),["--accent-600","--accent-700","--accent-500","--accent-400","--accent-300","--accent-200","--accent-100","--accent-50"].forEach(e=>t.style.removeProperty(e))}function Ji(e,t,r,n,a){const l=document.documentElement;if(e){const e=e=>`${parseInt(e.slice(1,3),16)} ${parseInt(e.slice(3,5),16)} ${parseInt(e.slice(5,7),16)}`;if(t&&l.style.setProperty("--custom-bg-color",t),r&&(l.style.setProperty("--window-header-rgb",e(r)),l.style.setProperty("--window-footer-rgb",e(r))),n&&l.style.setProperty("--window-content-rgb",e(n)),a){l.style.setProperty("--custom-button-color",a);const[e,t,r]=Vi(a);l.style.setProperty("--custom-button-hover",Ki(e,t,Math.max(r-10,5)))}}else["--custom-bg-color","--custom-button-color","--custom-button-hover"].forEach(e=>l.style.removeProperty(e))}function Xi(e){document.documentElement.setAttribute("data-theme",Zi(e.theme)),Gi(e.accent_color??null),Ji(e.accent_color??null,e.custom_bg_color??null,e.custom_title_color??null,e.custom_window_color??null,e.custom_button_color??null)}function Qi(){const{prefs:e}=i(),t=ee(_i,qi,Ui),r=e.theme||"system",n=e.accent_color||null,a=e.custom_bg_color||null,l=e.custom_title_color||null,s=e.custom_window_color||null,o=e.custom_button_color||null,c="system"===r?t?"dark":"light":r;return q(()=>(document.documentElement.setAttribute("data-theme",c),()=>document.documentElement.removeAttribute("data-theme")),[c]),q(()=>{Gi(n)},[n]),q(()=>{Ji(n,a,l,s,o)},[n,a,l,s,o]),{theme:r,resolved:c}}function es(e,t){q(()=>{const r=r=>{e.current&&!e.current.contains(r.target)&&t()};return document.addEventListener("mousedown",r),()=>document.removeEventListener("mousedown",r)},[e,t])}var ts=8,rs=["var(--viz-series-1)","var(--viz-series-2)","var(--viz-series-3)","var(--viz-series-4)","var(--viz-series-5)","var(--viz-series-6)","var(--viz-series-7)","var(--viz-series-8)"],ns={good:"var(--viz-good)",neutral:"var(--viz-neutral)",warning:"var(--viz-warning)",serious:"var(--viz-serious)",critical:"var(--viz-critical)"},as={grid:"var(--viz-grid)",axis:"var(--viz-axis)",label:"var(--viz-label)",muted:"var(--viz-muted)",surface:"var(--viz-surface)"};function ls(e){return rs[e]??as.muted}function is(e,t,r){return t||(r?ns[r]:ls(e))}function ss(e,t){const[r,n]=e,a=n-r,l=e=>0===a?t.from:t.from+(e-r)/a*(t.to-t.from);return l.domain=e,l.range=t,l.ticks=e=>e<2?[r]:Array.from({length:e},(t,n)=>r+a*n/(e-1)),l}function os(e,t,r=0){const n=e>0?(t.to-t.from)/e:0,a=n*r,l=e=>t.from+e*n+a/2;return l.bandwidth=Math.max(0,n-a),l.center=e=>t.from+e*n+n/2,l.end=e=>t.from+(e+1)*n-a/2,l.count=e,l}function cs(e,t){const r=[...e].sort((e,t)=>e-t),n=Math.max(0,r.length-1),a=e=>0===n?t.from:t.from+e/n*(t.to-t.from),l=e=>{const t=r.indexOf(e);if(t>=0)return a(t);const l=r.findIndex(t=>t>=e);return a(-1===l?n:l)};return l.levels=r,l.indexOf=e=>r.indexOf(e),l.range=t,l}function ds(e){if(!Number.isFinite(e)||e<=0)return 1;const t=10**Math.floor(Math.log10(e)),r=e/t;return(r<=1?1:r<=2?2:r<=2.5?2.5:r<=5?5:10)*t}function us(e,t){const r=Math.max(e[0],e[1]),n=Math.min(e[0],e[1]),a=r>0?r:0,l=n>0?n:a>0?10**(Math.ceil(Math.log10(a))-3):0,i=Math.log10(l),s=a>0&&l>0?Math.log10(a)-i:0,o=e=>{if(s<=0)return t.from;const r=Math.max(l,e);return t.from+(Math.log10(r)-i)/s*(t.to-t.from)};return o.domain=[l,a],o.range=t,o.ticks=e=>{if(e<2||s<=0)return[l];const t=Math.ceil(i),r=Math.floor(Math.log10(a)),n=[];for(let e=t;e<=r;e+=1)n.push(10**e);return 0===n.length?[l,a]:(Math.log10(n[0])-i>.15&&n.unshift(l),Math.log10(a)-Math.log10(n[n.length-1])>.15&&n.push(a),n)},o}function hs(e,t=0){const r=e>0?2*Math.PI/e:0,n=e=>-Math.PI/2+e*r+t/2;return n.step=Math.max(0,r-t),n.center=e=>-Math.PI/2+e*r+r/2,n.count=e,n}function ms(e,t){const[r,n]=e,a=Math.sqrt(Math.max(0,n))-Math.sqrt(Math.max(0,r));return e=>{if(0===a)return t.to;const n=(Math.sqrt(Math.max(0,e))-Math.sqrt(Math.max(0,r)))/a;return t.from+Math.min(1,Math.max(0,n))*(t.to-t.from)}}function ps(e,t=10){const r=e.filter(Number.isFinite);if(Array.isArray(t)){const e=[...t].filter(Number.isFinite).sort((e,t)=>e-t);if(e.length<2)return[];const n=Array.from({length:e.length-1},(t,r)=>({from:e[r],to:e[r+1],count:0})),a=e[e.length-1];for(const t of r){if(t<e[0]||t>a)continue;const r=t===a?n.length-1:n.findIndex(e=>t>=e.from&&t<e.to);r>=0&&(n[r].count+=1)}return n}const n=t;if(0===r.length||n<1)return[];const a=Math.min(...r),l=(Math.max(...r)-a)/n||1,i=Array.from({length:n},(e,t)=>({from:a+t*l,to:a+(t+1)*l,count:0}));for(const e of r){i[Math.min(n-1,Math.floor((e-a)/l))].count+=1}return i}var gs=e=>e.toFixed(2);function fs(e){return e.map(([e,t],r)=>`${0===r?"M":"L"}${gs(e)},${gs(t)}`).join(" ")}function xs(e){let t="";return e.forEach((e,r)=>{t+=`${0===r?"M":" L"}${gs(e.start)},${gs(e.y)}`,t+=` L${gs(e.end)},${gs(e.y)}`}),t}function bs(e){if(e.length<3)return fs(e);const t=e.length,r=[],n=[];for(let a=0;a<t-1;a+=1){const t=e[a+1][0]-e[a][0];r.push(t),n.push(0===t?0:(e[a+1][1]-e[a][1])/t)}const a=[n[0]];for(let e=1;e<t-1;e+=1)a.push(n[e-1]*n[e]<=0?0:(n[e-1]+n[e])/2);a.push(n[t-2]);for(let e=0;e<t-1;e+=1){if(0===n[e]){a[e]=0,a[e+1]=0;continue}const t=a[e]/n[e],r=a[e+1]/n[e],l=t*t+r*r;if(l>9){const i=3/Math.sqrt(l);a[e]=i*t*n[e],a[e+1]=i*r*n[e]}}let l=`M${gs(e[0][0])},${gs(e[0][1])}`;for(let n=0;n<t-1;n+=1){const t=r[n]/3;l+=` C${gs(e[n][0]+t)},${gs(e[n][1]+a[n]*t)} ${gs(e[n+1][0]-t)},${gs(e[n+1][1]-a[n+1]*t)} ${gs(e[n+1][0])},${gs(e[n+1][1])}`}return l}function ys(e,t=0){if(e.length<3)return fs(e);const r=e.map(e=>e[1]),n=Math.min(...r),a=Math.max(...r),l=e=>Math.min(a,Math.max(n,e)),i=(1-t)/6;let s=`M${gs(e[0][0])},${gs(e[0][1])}`;for(let t=0;t<e.length-1;t+=1){const r=e[t-1]??e[t],n=e[t],a=e[t+1],o=e[t+2]??a,c=n[0]+(a[0]-r[0])*i,d=l(n[1]+(a[1]-r[1])*i),u=a[0]-(o[0]-n[0])*i,h=l(a[1]-(o[1]-n[1])*i);s+=` C${gs(c)},${gs(d)} ${gs(u)},${gs(h)} ${gs(a[0])},${gs(a[1])}`}return s}function vs(e){if(e.length<2)return fs(e);let t=`M${gs(e[0][0])},${gs(e[0][1])}`;for(let r=1;r<e.length;r+=1){const[n,a]=e[r-1],[l,i]=e[r],s=(n+l)/2;t+=` C${gs(s)},${gs(a)} ${gs(s)},${gs(i)} ${gs(l)},${gs(i)}`}return t}function ws(e,t="linear",r=0){return 0===e.length?"":1===e.length?`M${gs(e[0][0])},${gs(e[0][1])}`:"monotone"===t?bs(e):"spline"===t?ys(e,r):"bump"===t?vs(e):fs(e)}function Ns(e,t,r){if(0===t.length)return"";const n=t[0],a=t[t.length-1];return`${e} L${gs(a[0])},${gs(r)} L${gs(n[0])},${gs(r)} Z`}function ks(e,t){if(0===t.length)return e;return`${e} L${[...t].reverse().map(([e,t])=>`${gs(e)},${gs(t)}`).join(" L")} Z`}function Ms(e,t,r,n,a=-Math.PI/2){return Array.from({length:n},(l,i)=>{const s=a+2*i*Math.PI/n;return[e+r*Math.cos(s),t+r*Math.sin(s)]})}function $s(e,t,r,n,a,l){const i=l-a;if(Math.abs(i)>=2*Math.PI){const l=a+Math.PI;return`${$s(e,t,r,n,a,l)} ${$s(e,t,r,n,l,a+2*Math.PI)}`}const s=Math.abs(i)>Math.PI?1:0,o=(r,n)=>[e+r*Math.cos(n),t+r*Math.sin(n)],[c,d]=o(n,a),[u,h]=o(n,l);if(r<=0)return`M${gs(e)},${gs(t)} L${gs(c)},${gs(d)} A${gs(n)},${gs(n)} 0 ${s} 1 ${gs(u)},${gs(h)} Z`;const[m,p]=o(r,l),[g,f]=o(r,a);return`M${gs(c)},${gs(d)} A${gs(n)},${gs(n)} 0 ${s} 1 ${gs(u)},${gs(h)} L${gs(m)},${gs(p)} A${gs(r)},${gs(r)} 0 ${s} 0 ${gs(g)},${gs(f)} Z`}function Cs(e,t,r){if(0===e.length||t<=0||r<=0)return 1/0;const n=Math.max(...e),a=Math.min(...e),l=t*t,i=r*r;return Math.max(i*n/l,l/(i*a))}function Ls(e,t,r,n){const a=n?r.height:r.width,l=a>0?t/a:0;let i=0;return{tiles:e.map(e=>{const s=t>0?e.value/t*a:0,o=n?{...e,x:r.x,y:r.y+i,width:l,height:s}:{...e,x:r.x+i,y:r.y,width:s,height:l};return i+=s,o}),rest:n?{x:r.x+l,y:r.y,width:r.width-l,height:r.height}:{x:r.x,y:r.y+l,width:r.width,height:r.height-l}}}function Ds(e,t,r){const n=e.filter(e=>e.value>0).sort((e,t)=>t.value-e.value);if(0===n.length||t<=0||r<=0)return[];const a=n.reduce((e,t)=>e+t.value,0),l=t*r,i=[];let s={x:0,y:0,width:t,height:r},o=[],c=0,d=[...n.map(e=>({...e,value:e.value/a*l}))];for(;d.length>0;){const e=d[0],t=Math.min(s.width,s.height),r=s.width>=s.height,n=Cs(o.map(e=>e.value),c,t),a=Cs([...o.map(e=>e.value),e.value],c+e.value,t);if(0===o.length||a<=n)o.push(e),c+=e.value,d=d.slice(1);else{const e=Ls(o,c,s,r);i.push(...e.tiles),s=e.rest,o=[],c=0}}o.length>0&&i.push(...Ls(o,c,s,s.width>=s.height).tiles);const u=new Map(e.map(e=>[e.key,e.value]));return i.map(e=>({...e,value:u.get(e.key)??e.value}))}var js=U({highlighted:null,setHighlighted:()=>{}});function Ss({children:e}){const[t,r]=Y(null),n=V(()=>({highlighted:t,setHighlighted:r}),[t]);/* @__PURE__ */
|
|
731
731
|
return re(js.Provider,{value:n,children:e})}function zs(){return J(js)}function Ps(e,t,r=.22){return null===t?null:t===e?1:r}function As(e,t="none"){if("none"===t||0===e.length)return null;if("last"===t){for(let t=e.length-1;t>=0;t-=1)if("number"==typeof e[t]&&Number.isFinite(e[t]))return t;return null}let r=null;return e.forEach((n,a)=>{if("number"!=typeof n||!Number.isFinite(n))return;if(null===r)return void(r=a);const l=e[r];("max"===t?n>l:n<l)&&(r=a)}),r}function Fs(e,t=720){const[r,n]=Y(t);return q(()=>{const t=e.current;if(!t||"undefined"==typeof ResizeObserver)return;const r=new ResizeObserver(e=>{const t=e[0]?.contentRect.width??0;t>0&&n(t)});return r.observe(t),()=>r.disconnect()},[e]),r}function Bs({rows:e,max:t,formatValue:r,emphasisKey:n,highlight:a="none",emphasisTone:l,barHeight:i=12,rowGap:s=30,animate:o=!0,className:c,emptyLabel:d}){const u=j().charts,h=D(),m=r??(e=>P(e,h)),p=d??u.nothingToRank;if(0===e.length)/* @__PURE__ */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="4.156.0",a=r;export{a as APP_VERSION,r as VERSION};
|