efficient-shell 7.32.0 → 7.33.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.
Files changed (58) hide show
  1. package/dist/{Browser-RRJRZVKD.js → Browser-3PR7HVTU.js} +13 -13
  2. package/dist/Calculator-6SCEML2T.js +29 -0
  3. package/dist/{CurrencyConverter-MU7GOOUX.js → CurrencyConverter-G3FC4H7V.js} +10 -10
  4. package/dist/{Documents-MR47XU4E.js → Documents-VR7AGRWL.js} +17 -17
  5. package/dist/{Files-STC2TIQ6.js → Files-XVXLZWQR.js} +80 -80
  6. package/dist/{Notepad-FQAZK5AT.js → Notepad-4X5PIHQW.js} +10 -10
  7. package/dist/PdfViewer-PJFETQHR.js +1 -0
  8. package/dist/{PomodoroTimer-LTN3OMBD.js → PomodoroTimer-DL365JYG.js} +18 -18
  9. package/dist/{Preview-N5NY5SGZ.js → Preview-SDEYK3LX.js} +177 -179
  10. package/dist/Sidebar-GBQVWSSS.js +44 -0
  11. package/dist/{Spreadsheet-UYMEM3Q3.js → Spreadsheet-2B4MXLMF.js} +12 -12
  12. package/dist/{Stock-NUJG2IAB.js → Stock-SLJJ5EO4.js} +7 -7
  13. package/dist/{Weather-DG7HC4TT.js → Weather-VOG7ST3F.js} +22 -22
  14. package/dist/{WorldClock-M4BQE7D6.js → WorldClock-AS6CZUEK.js} +4 -4
  15. package/dist/apps/index.js +1 -1
  16. package/dist/bin/ui-check.js +1 -1
  17. package/dist/brand.css +1 -1
  18. package/dist/chunk-2J6F4EE7.js +3 -0
  19. package/dist/chunk-3R4JBAS5.js +1032 -0
  20. package/dist/chunk-5LJVYLU6.js +1 -0
  21. package/dist/{chunk-LU7X6LLY.js → chunk-726ZUTV7.js} +7 -7
  22. package/dist/{chunk-7VJ3J7EH.js → chunk-CQYSEMCR.js} +16 -16
  23. package/dist/{chunk-IQW3EDEB.js → chunk-DF733WOR.js} +2 -2
  24. package/dist/chunk-KVX57LJZ.js +1 -0
  25. package/dist/chunk-LU2DSEAL.js +2 -0
  26. package/dist/chunk-QJYJB6OG.js +27 -0
  27. package/dist/{chunk-4TBSF4FM.js → chunk-SFZYFUG2.js} +1 -1
  28. package/dist/{chunk-HTHLFM24.js → chunk-TO3SXKDA.js} +107 -107
  29. package/dist/{chunk-LXUC3UJD.js → chunk-U5QVKITI.js} +1 -1
  30. package/dist/{chunk-EQI47WNM.js → chunk-W53EOFSH.js} +1 -1
  31. package/dist/{chunk-ZX5MQM4I.js → chunk-WR6YWZHJ.js} +1 -1
  32. package/dist/{chunk-RAFTWZF5.js → chunk-ZB6MIMTH.js} +1 -1
  33. package/dist/icons/efficient-looks.js +2 -4
  34. package/dist/icons/efficient.d.ts +3 -2
  35. package/dist/icons/efficient.js +346 -346
  36. package/dist/icons/index.js +1 -1
  37. package/dist/icons/lucide.js +1 -2
  38. package/dist/icons/phosphor.js +1 -2
  39. package/dist/icons/tabler.js +1 -2
  40. package/dist/{index-DplzeCZ2.d.ts → index-DxgxE97i.d.ts} +15 -2
  41. package/dist/index.d.ts +3 -3
  42. package/dist/index.js +227 -227
  43. package/dist/map/index.js +20 -22
  44. package/dist/pdf/index.js +1 -1
  45. package/dist/telemetry/index.js +1 -1
  46. package/dist/ui/index.d.ts +1 -1
  47. package/dist/ui/index.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/Calculator-DQZGGP2K.js +0 -29
  50. package/dist/PdfViewer-ATYZB7RS.js +0 -1
  51. package/dist/Sidebar-TAEAB6AF.js +0 -44
  52. package/dist/chunk-4BUAKOXN.js +0 -1035
  53. package/dist/chunk-6YNWFATP.js +0 -27
  54. package/dist/chunk-BTLM7W6P.js +0 -1
  55. package/dist/chunk-NVFKXL52.js +0 -2
  56. package/dist/chunk-UWTUZZ75.js +0 -1
  57. package/dist/chunk-XZXMVACA.js +0 -5
  58. /package/dist/{chunk-R3IVVMQP.js → chunk-KIFCFIIN.js} +0 -0
@@ -1,27 +0,0 @@
1
- import{navVisible as e,isReachable as t,visibleChildren as r,isSection as n}from"./chunk-5A7MWTXX.js";import{LoadingSpinner as a}from"./chunk-NVFKXL52.js";import{useDismissPopupsOnOpen as s}from"./chunk-UVBK6YSR.js";import{isAriaDisabled as l,swallowPress as o,describedByWith as i,OffWithReason as c}from"./chunk-WOZ36LPR.js";import{glassStyle as d}from"./chunk-7IQ3B77H.js";import{Z_LAYERS as u}from"./chunk-FIEA5CGB.js";import{iconButtonClasses as p}from"./chunk-K7PQXJO7.js";import{useShellStrings as y}from"./chunk-2PNYIWIN.js";import{forwardRef as f,useId as m,useState as h,useEffect as b,useRef as g,useMemo as k,useCallback as v}from"react";import{jsx as x,jsxs as w}from"react/jsx-runtime";import{createPortal as N}from"react-dom";var L=f(function({children:e,variant:t="ghost",size:r="md",type:n="button",className:a="",pressed:s,disabledReason:d,ink:u,disabled:y,onClick:f,"aria-disabled":h,"aria-describedby":b,...g},k){const v=m(),w=(Boolean(y)||l(h))&&null!=d&&""!==d,N=w||l(h),L=/* @__PURE__ */x("button",{ref:k,type:n,className:p({variant:t,size:r,pressed:s??(!0===g["aria-pressed"]||"true"===g["aria-pressed"]),ink:u,className:a}),...g,disabled:w?void 0:y,"aria-disabled":!!N||h,"aria-describedby":i(b,w?v:void 0),onClick:N?o:f,children:e});return w?/* @__PURE__ */x(c,{reason:d,id:v,children:L}):L}),_={favicon:"h-8 w-8",compact:"h-10 w-10",wordmark:"h-10 w-40"};function A(e){return e.trim().charAt(0).toLocaleUpperCase()||"·"}function C(e,t,r){return!1===e?"framed":null==e||null==t?"plate-light":t?"light"===r?"plate-dark":"bare":"dark"===r?"plate-light":"bare"}var I={"plate-light":"bg-white shadow-[0_2px_12px_var(--rosh-mark-plate-shadow)]","plate-dark":"bg-neutral-900 shadow-[0_2px_12px_var(--rosh-mark-plate-shadow-strong)]",framed:"border border-black/10 shadow-[0_2px_12px_var(--rosh-mark-plate-shadow)]",bare:""};function $(e,t,r){return"bare"===e?{}:"framed"===e?{borderRadius:t}:{borderRadius:t,padding:r}}function E({src:e,fallbackSrc:t,fallbackHasAlpha:r=null,fallbackIsLight:n=null,fallbackAdaptive:a,alt:s,slot:l="compact",surface:o="light",size:i,width:c,height:d,decorative:u=!1,fallbackMode:p="monogram",adaptive:y=!1,hasAlpha:f=null,isLight:m=null,treatmentPadding:g=4,treatmentRadius:k=8,className:v="",style:w}){const[N,L]=h(e||t||"");b(()=>{L(e||t||"")},[e,t]);const E=Boolean(t&&N===t&&N!==e),j=(E?a??y:y)?C(E?r:f,E?n:m,o):"bare",T=["inline-flex shrink-0 items-center justify-center overflow-hidden",null==i&&null==c&&null==d?_[l]:"","dark"===o?"text-white":"text-gray-700",I[j],v].filter(Boolean).join(" "),S={...$(j,k,g),...null==i?{width:c,height:d}:{width:i,height:i},...w};return N?/* @__PURE__ */x("span",{className:T,"data-brand-treatment":j,style:S,children:/* @__PURE__ */x("img",{src:N,alt:u?"":s,"data-brand-slot":l,className:"block max-h-full max-w-full",style:{objectFit:"contain"},onError:()=>L(e=>t&&e!==t?t:"")})}):"none"===p?null:/* @__PURE__ */x("span",{"data-brand-fallback":!0,"data-brand-slot":l,"aria-label":u?void 0:s,"aria-hidden":u||void 0,role:u?void 0:"img",className:`${T} rounded-md bg-gray-100 font-semibold`,style:S,children:u?null:A(s)})}function j(r,n){return e(r,n)?r.items.filter(r=>e(r,n)&&t(r,n)):[]}function T(e,n){return r(e,n).filter(e=>t(e,n))}function S(r,a,s){const l=new Set(a.erp),o=new Set(a.system),i=new Set(a.footer??[]),c=r.filter(n),d=e=>c.filter(t=>e.has(t.label)&&j(t,s).length>0);return{topItems:r.filter(e=>!n(e)).filter(r=>e(r,s)&&t(r,s)),erpSections:d(l),systemSections:d(o),virtualSections:(a.virtual??[]).filter(e=>e.items.length>0),footerSections:d(i),footerItems:(a.footerItems??[]).filter(r=>e(r,s)&&t(r,s))}}function M(e,t,r){return!!t&&e.some(e=>e.to===t||M(T(e,r),t,r))}var R="__page__";function K(e){const t=e.indexOf("?");if(t<0)return{path:e,search:""};const r=new URLSearchParams(e.slice(t+1));return{path:e.slice(0,t),search:r.get("search")??""}}function B(e,t,r){const n=function(e,t){const r=[],n=e=>{const a=T(e,t);0===a.length?r.push(e):a.forEach(n)};e.topItems.forEach(n);for(const r of[...e.erpSections,...e.systemSections,...e.footerSections])j(r,t).forEach(n);for(const t of e.virtualSections)t.items.forEach(n);return e.footerItems.forEach(n),r}(e,t);return Object.assign(async e=>{const t=e.trim().toLowerCase();if(!t)return[];const a=/* @__PURE__ */new Set,s=[];for(const e of n){const n=e.menuLabel??e.label;a.has(e.to)||!e.label.toLowerCase().includes(t)&&!n.toLowerCase().includes(t)||(a.add(e.to),s.push({type:r,label:e.label,entity_type:R,entity_id:e.to}))}return s.slice(0,8)},{destinations:n})}function P(e,t){if(!Array.isArray(e))return[];const r=[];for(const n of e){if(!n||"string"!=typeof n.entityType||"string"!=typeof n.entityId||"string"!=typeof n.label)continue;if("preview-file"===n.entityType)continue;const e="page"===n.entityType;r.push({type:e?t:"",label:n.label,entity_type:e?R:n.entityType,entity_id:n.entityId})}return r}var D="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z";function z(e){return e.typeKey??e.type}function F(e,t){return t?.[z(e)]??e.type}function H(e,t,r){return 0===r.length?null:{key:e,title:t,rows:r.map((e,t)=>({kind:"action",key:`action:${t}:${e.label}`,label:e.label,icon:e.icon,action:e})),count:r.length}}function U(e,t,r,n){return{type:e,label:t,entity_type:R,entity_id:`${r}?search=${encodeURIComponent(n.trim())}`}}function W(e,t,r,n,a){const s=function(e){const t=/* @__PURE__ */new Map;for(const r of e){const e=z(r),n=t.get(e);n?n.results.push(r):t.set(e,{type:r.type,results:[r]})}return Array.from(t,([e,t])=>({key:e,...t}))}(e).map(e=>{const t=e.results.map((t,r)=>({kind:"result",key:`result:${e.key}:${t.entity_type}:${t.entity_id}:${r}`,label:t.label,sub:t.sub,result:t})),n=!!a?.truncatedTypes?.includes(e.key),s=n?a?.listRoutes?.[e.key]:void 0,l=a?.typeLabels?.[e.key]??e.type;if(a&&s){const n=a.seeAllLabel(s.label);t.push({kind:"seeAll",key:`seeall:${e.key}`,label:n,result:U(l,n,s.path,r)})}return{key:`type:${e.key}`,title:l,rows:t,count:e.results.length,truncated:n}}),l=H("actions",n,function(e,t){const r=t.trim().toLowerCase();return e&&r?e.filter(e=>e.label.toLowerCase().includes(r)||(e.keywords??[]).some(e=>e.toLowerCase().includes(r))):[]}(t,r));return l?[...s,l]:s}function O(e,t,r){return 0===r?0:Math.min(Math.max(e+t,0),r-1)}var X=(e,t)=>e.entity_type===t.entity_type&&e.entity_id===t.entity_id;function V(e,t,r=8){return[t,...e.filter(e=>!X(e,t))].slice(0,r)}function G(e){if(!Array.isArray(e))return[];const t=[];for(const r of e){if(!r||"object"!=typeof r)continue;const e=r;if("string"!=typeof e.type||"string"!=typeof e.label||"string"!=typeof e.entity_type||"string"!=typeof e.entity_id)continue;const n={type:e.type,label:e.label,entity_type:e.entity_type,entity_id:e.entity_id};"string"==typeof e.sub&&(n.sub=e.sub),"string"==typeof e.typeKey&&(n.typeKey=e.typeKey),t.some(e=>X(e,n))||t.push(n)}return t.slice(0,8)}function Q(e){if(Array.isArray(e))return{results:e,truncatedTypes:[]};if(e&&"object"==typeof e&&Array.isArray(e.results)){const{results:t,truncatedTypes:r}=e;return{results:t,truncatedTypes:Array.isArray(r)?r:[]}}return{results:[],truncatedTypes:[]}}var Y=[];function q(e,t,r){const[n,a]=h([]),[s,l]=h(Y),[o,i]=h(!1),[c,d]=h("none"),u=g(function(){let e=0,t=null;const r=()=>{e+=1,t?.abort(),t=null};return{begin:()=>{r();const n=e,a=new AbortController;return t=a,{signal:a.signal,isCurrent:()=>n===e}},cancel:r}}());b(()=>{const n=u.current;if(e.length<r||!t||0===t.length)return n.cancel(),a(e=>0===e.length?e:[]),l(Y),d("none"),void i(!1);i(!0);const s=setTimeout(async()=>{const r=n.begin(),s=await async function(e,t,r){const n=await Promise.all(e.map(async e=>{try{return{failed:!1,...Q(await e(t,{signal:r}))}}catch(e){const t=r.aborted||function(e){if(!e||"object"!=typeof e)return!1;const{name:t,code:r}=e;return"AbortError"===t||"CanceledError"===t||"ERR_CANCELED"===r}(e);return{failed:!t,results:[],truncatedTypes:[]}}}));return{results:n.flatMap(e=>e.results),truncatedTypes:Array.from(new Set(n.flatMap(e=>e.truncatedTypes))),failed:n.filter(e=>e.failed).length}}(t,e,r.signal);r.isCurrent()&&(a(s.results),l(s.truncatedTypes),d(0===s.failed?"none":s.failed>=t.length?"all":"some"),i(!1))},250);return()=>{clearTimeout(s),n.cancel()}},[e,t,r]);return{results:n,truncatedTypes:s,loading:o,failure:c,reset:v(()=>{u.current.cancel(),a(e=>0===e.length?e:[]),l(Y),d("none"),i(!1)},[])}}var J=(e,t)=>`${e}-opt-${t}`;function Z(e,t){if("seeAll"===e.kind)return"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3";if("action"===e.kind)return e.icon??D;if(e.icon)return e.icon;const r=t?.[z(e.result)];return r||D}function ee({sections:e,activeIdx:t,listId:r,label:n,typeIcons:a,groupCount:s,groupLabel:l,onHover:o,onPick:i}){let c=0;/* @__PURE__ */
2
- return x("div",{id:r,role:"listbox","aria-label":n,className:"py-1",children:e.map(e=>/* @__PURE__ */w("div",{role:"group","aria-label":l(e.title,e.count,!!e.truncated),children:[
3
- /* @__PURE__ */w("div",{"aria-hidden":"true",className:"flex items-center justify-between px-4 pt-2 pb-1 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:[
4
- /* @__PURE__ */x("span",{children:e.title}),
5
- /* @__PURE__ */x("span",{className:"font-medium normal-case tracking-normal",children:s(e.count,!!e.truncated)})]}),e.rows.map(e=>{const n=c++,s=n===t,l="action"===e.kind||"seeAll"===e.kind?void 0:e.badge,d="action"===e.kind||"seeAll"===e.kind?void 0:e.sub,u="seeAll"===e.kind;/* @__PURE__ */
6
- return w("div",{id:J(r,n),role:"option","aria-selected":s,className:"flex items-center gap-3 w-full px-4 py-3 text-left cursor-pointer transition-colors "+(s?"bg-blue-50":"hover:bg-gray-50"),onMouseDown:e=>e.preventDefault(),onClick:()=>i(e),onMouseEnter:()=>o(n),children:[
7
- /* @__PURE__ */x("svg",{className:"h-4 w-4 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:Z(e,a)})}),
8
- /* @__PURE__ */w("div",{className:"flex-1 min-w-0",children:[
9
- /* @__PURE__ */x("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */x("p",{className:"text-xs text-gray-400 truncate",children:d})]}),l&&/* @__PURE__ */x("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-3xs font-medium text-gray-500",children:l})]},e.key)})]},e.key))})}var te="react-os-shell:open-global-search";function re(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(te))}function ne({providers:e,typeIcons:t,typeLabels:r,listRoutes:n,placeholder:l,quickActions:o,onSelect:i,recent:c,onRecord:p,favorites:f,hotkey:L=!0}={}){const _=y().search,A=l??_.placeholder,[C,I]=h(!1),[$,E]=h(""),[j,T]=h(0),S=g(null),{results:M,truncatedTypes:R,loading:K,failure:B,reset:P}=q($,e,2);b(()=>{const e=e=>{L&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),I(e=>!e)),"Escape"===e.key&&C&&I(!1)},t=()=>I(!0);return window.addEventListener("keydown",e),window.addEventListener(te,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(te,t)}},[C,L]),s(C);const[z,U]=h(!1);C!==z&&(U(C),C&&(E(""),T(0),P())),b(()=>{C?setTimeout(()=>S.current?.focus(),50):E("")},[C]),b(()=>{T(0)},[M]);const X=$.length>=2,V=k(()=>X?W(M,o,$,_.actions,{truncatedTypes:R,listRoutes:n,typeLabels:r,seeAllLabel:_.seeAll}):function(e,t){const r=[];e.recent?.length&&r.push({key:"recent",title:t.recent,rows:e.recent.map((t,r)=>({kind:"recent",key:`recent:${t.entity_type}:${t.entity_id}:${r}`,label:t.label,sub:t.sub,badge:F(t,e.typeLabels),result:t})),count:e.recent.length}),e.favorites?.length&&r.push({key:"favorites",title:t.favorites,rows:e.favorites.map((t,r)=>({kind:"favorite",key:`favorite:${t.entity_type}:${t.entity_id}:${r}`,label:t.label,sub:t.sub,badge:F(t,e.typeLabels)||void 0,icon:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z",result:t})),count:e.favorites.length});const n=H("actions",t.actions,e.actions??[]);return n&&r.push(n),r}({recent:c,favorites:f,actions:o,typeLabels:r},_),[X,M,R,n,r,o,$,c,f,_]),G=k(()=>function(e){return e.flatMap(e=>e.rows)}(V),[V]),Q=Math.min(j,Math.max(G.length-1,0)),Y=m(),Z=G.length>0;b(()=>{C&&0!==G.length&&document.getElementById(J(Y,Q))?.scrollIntoView?.({block:"nearest"})},[C,Q,G.length,Y]);const re=v(e=>{I(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||p?.(e.result),i?.(e.result)):e.action.onSelect()},[i,p]);return C?N(
10
- /* @__PURE__ */w("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:u.overlay},onClick:()=>I(!1),children:[
11
- /* @__PURE__ */x("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
12
- /* @__PURE__ */w("div",{className:"relative z-10 w-full max-w-xl rounded-(--radius-popup) overflow-hidden",onClick:e=>e.stopPropagation(),style:d(),children:[
13
- /* @__PURE__ */w("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-200",children:[
14
- /* @__PURE__ */x("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */x("path",{strokeLinecap:"round",strokeLinejoin:"round",d:D})}),
15
- /* @__PURE__ */x("input",{ref:S,type:"text",value:$,onChange:e=>{E(e.target.value),T(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),T(O(Q,1,G.length))):"ArrowUp"===e.key?(e.preventDefault(),T(O(Q,-1,G.length))):"Tab"===e.key&&G.length>0?(e.preventDefault(),T(function(e,t,r){const n=e.length;if(0===n)return 0;const a=[];let s=0;for(const t of e)a.push(s),s+=t;let l=0;for(let e=0;e<n;e++)t>=a[e]&&(l=e);return a[(l+r+n)%n]}(V.map(e=>e.rows.length),Q,e.shiftKey?-1:1))):"Enter"===e.key&&G[Q]&&re(G[Q])},placeholder:A,role:"combobox","aria-expanded":Z,"aria-controls":Z?Y:void 0,"aria-activedescendant":Z?J(Y,Q):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),K&&/* @__PURE__ */x("span",{"data-global-search-spinner":"",role:"status","aria-label":_.searching,className:"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-gray-300 border-t-gray-500"}),
16
- /* @__PURE__ */x("kbd",{className:"hidden sm:inline-flex items-center rounded border border-gray-300 px-2 py-0.5 text-2xs font-medium text-gray-400",children:_.escBadge})]}),
17
- /* @__PURE__ */w("div",{className:"max-h-[50vh] overflow-y-auto",children:[K&&0===G.length&&/* @__PURE__ */x(a,{size:"sm",padding:"py-6",label:_.searching}),!K&&"all"===B&&X&&/* @__PURE__ */x("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:_.searchFailed}),!K&&X&&0===G.length&&"all"!==B&&/* @__PURE__ */x("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:_.noResults}),Z&&/* @__PURE__ */x(ee,{sections:V,activeIdx:Q,listId:Y,label:_.listLabel,typeIcons:t,groupCount:_.groupCount,groupLabel:_.groupLabel,onHover:T,onPick:re}),!K&&"some"===B&&X&&/* @__PURE__ */x("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:_.partialFailure}),!K&&!X&&0===G.length&&/* @__PURE__ */x("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:_.minChars(2)})]}),
18
- /* @__PURE__ */w("div",{className:"flex items-center justify-between px-4 py-2 border-t border-gray-100 bg-gray-50 text-2xs text-gray-400",children:[
19
- /* @__PURE__ */w("div",{className:"flex items-center gap-3",children:[
20
- /* @__PURE__ */w("span",{className:"flex items-center gap-1",children:[
21
- /* @__PURE__ */x("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↑"}),
22
- /* @__PURE__ */x("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↓"}),` ${_.navigate}`]}),
23
- /* @__PURE__ */w("span",{className:"flex items-center gap-1",children:[
24
- /* @__PURE__ */x("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:_.enterKey}),` ${_.open}`]}),V.length>1&&/* @__PURE__ */w("span",{className:"flex items-center gap-1",children:[
25
- /* @__PURE__ */x("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:_.tabKey}),` ${_.nextGroup}`]})]}),
26
- /* @__PURE__ */w("span",{className:"flex items-center gap-1",children:[
27
- /* @__PURE__ */x("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:_.escKey}),` ${_.close}`]})]})]})]}),document.body):null}export{E as BrandMark,ne as GlobalSearch,L as IconButton_default,R as PAGE_RESULT_ENTITY,P as favoritesToResults,B as navPagesProvider,re as openGlobalSearch,K as parsePageResultTarget,S as partitionNav,V as pushRecent,C as resolveBrandMarkTreatment,M as rowsContainRoute,G as sanitizeRecent,T as visibleNavChildren,j as visibleSectionItems};
@@ -1 +0,0 @@
1
- import{buttonClasses as t}from"./chunk-K7PQXJO7.js";import{currentShellStrings as e}from"./chunk-2PNYIWIN.js";var n="http://www.w3.org/2000/svg",o={},s=/* @__PURE__ */new Map;function i(t,e){let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className=e,document.body.appendChild(n)),n}var r={success:"M5 13l4 4L19 7",error:"M6 18L18 6M6 6l12 12",warning:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",loading:"M12 3a9 9 0 019 9",bell:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"};function a(t,e){const o=document.createElementNS(n,"svg");o.setAttribute("class",e),o.setAttribute("fill","none"),o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("stroke","currentColor"),o.setAttribute("stroke-width","2");const s=document.createElementNS(n,"path");return s.setAttribute("stroke-linecap","round"),"loading"!==t&&s.setAttribute("stroke-linejoin","round"),s.setAttribute("d",r[t]),o.appendChild(s),o}function c(t,e){const n=document.createElement("div");return n.className=t,void 0!==e&&(n.textContent=e),n}function l(e,n,r){const l={...o,...r},d=l.placement??"top",u=l.sticky??!1,m=`${d}|${e}|${n}`;if(l.dedupe){const t=s.get(m);if(t)return t.restart(),{dismiss:t.dismiss}}"loading"!==e&&!1!==l.sound&&import("./sounds-FO772MN2.js").then(t=>{"success"===e?t.playSuccess():"error"===e?t.playError():t.playNotification()}).catch(()=>{});const p="bottom"===d?i("toast-container-bottom","fixed bottom-4 left-1/2 -translate-x-1/2 z-(--z-toast) flex flex-col-reverse gap-2 items-center pointer-events-none"):i("toast-container","fixed top-4 left-1/2 -translate-x-1/2 z-(--z-toast) flex flex-col gap-2 items-center pointer-events-none"),f="bottom"===d?"translateY(10px)":"translateY(-10px)",h=c("pointer-events-auto cursor-pointer rosh-toast");h.style.opacity="0",h.style.transform=`${f} scale(0.95)`,h.setAttribute("role","error"===e?"alert":"status"),h.setAttribute("aria-atomic","true"),h.appendChild(a(e,`h-4 w-4 rosh-tone-${e}${"loading"===e?" animate-spin":""}`));const y=document.createElement("span");if(y.textContent=n,h.appendChild(y),l.action){const{label:e,onClick:n}=l.action,o=document.createElement("button");o.type="button",o.className=t({variant:"link",size:"sm"}),o.textContent=e,o.addEventListener("click",t=>{t.stopPropagation(),b||(n(),g("action"))}),h.appendChild(o)}let v;p.appendChild(h),requestAnimationFrame(()=>{h.style.opacity="1",h.style.transform="translateY(0) scale(1)"});let b=!1;const g=t=>{b||(b=!0,v&&clearTimeout(v),s.delete(m),h.style.opacity="0",h.style.transform=`${f} scale(0.95)`,setTimeout(()=>h.remove(),300),l.onClose?.(t))},x=()=>g("dismissed"),w=l.duration??("info"===e?4500:3e3),C=()=>{v&&clearTimeout(v),u||(v=setTimeout(()=>g("timeout"),w))};return C(),h.addEventListener("mouseenter",()=>{v&&clearTimeout(v)}),h.addEventListener("mouseleave",()=>{b||C()}),h.addEventListener("click",x),s.set(m,{el:h,restart:C,dismiss:x}),{dismiss:x}}var d=8e3,u=/* @__PURE__ */new Map,m=!1;var p={success:(t,e)=>l("success",t,e),error:(t,e)=>l("error",t,e),warning:(t,e)=>l("warning",t,e),info:(t,e)=>l("info",t,e),notify:(t,n)=>function(t,n){!1!==(n?.sound??o.sound)&&import("./sounds-FO772MN2.js").then(t=>t.playNotification()).catch(()=>{});const s=i("notif-container","fixed top-4 right-4 z-(--z-toast) flex flex-col gap-3 items-end pointer-events-none"),r=c("pointer-events-auto cursor-pointer rosh-notif");r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)";const l=c("rosh-notif-badge");l.appendChild(a("bell","h-5 w-5"));const d=c("rosh-notif-body");d.append(c("rosh-notif-title",e().toast.notification),c("notif-msg rosh-notif-msg",t));const u=document.createElement("button");u.className="rosh-notif-close",u.textContent="×",r.append(l,d,u);const m=()=>{r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)",setTimeout(()=>r.remove(),300)};u.addEventListener("click",t=>{t.stopPropagation(),m()}),r.addEventListener("click",m),s.appendChild(r),requestAnimationFrame(()=>{r.style.opacity="1",r.style.transform="translateX(0) scale(1)"}),setTimeout(m,n?.duration??1e4)}(t,n),promise:(t,e,n)=>{const o=l("loading",e.loading,{...n,sticky:!0});return t.then(t=>{o.dismiss(),l("success","function"==typeof e.success?e.success(t):e.success,n)},t=>{o.dismiss(),l("error","function"==typeof e.error?e.error(t):e.error,n)}),t},configure:t=>{o={...t}},undoable:function(t,n){m||"undefined"==typeof window||(m=!0,window.addEventListener("pagehide",()=>{const t=[...u.values()];u.clear();for(const e of t)e.run({keepalive:!0})}));const o=/* @__PURE__ */Symbol("undoable");let s=!1,i=null;const r=async t=>{if(!s){s=!0,u.delete(o);try{await(t?n.commit(t):n.commit())}catch(t){n.onFail?.(t)}}},a=()=>!s&&(s=!0,u.delete(o),n.undo(),!0);return u.set(o,{run:r}),i=l("success",t,{sound:!1,placement:n.placement,duration:n.duration??8e3,action:{label:n.actionLabel??e().toast.undo,onClick:()=>{a()}},onClose:t=>{"action"!==t&&r()}}),{undo:()=>{const t=a();return t&&i?.dismiss(),t},commit:async()=>{if(s)return;const t=r();i?.dismiss(),await t}}}};export{d as UNDOABLE_MS,p as toast_default};
@@ -1,2 +0,0 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";function t({size:t="md",padding:s="py-12",label:n,className:l=""}){const a=r=>/* @__PURE__ */e("div",{className:`${r} shrink-0 animate-spin rounded-full border-2 border-(--line-strong) border-t-current text-blue-600`});return null==n?/* @__PURE__ */e("div",{className:`flex items-center justify-center ${s} ${l}`,children:a("sm"===t?"h-5 w-5":"lg"===t?"h-12 w-12":"h-8 w-8")}):/* @__PURE__ */r("div",{role:"status",className:`flex items-center justify-center gap-2 ${s} ${l}`,children:[a("h-4 w-4"),
2
- /* @__PURE__ */e("span",{className:"text-sm text-gray-500",children:n})]})}export{t as LoadingSpinner};
@@ -1 +0,0 @@
1
- var r="7.32.0",a=r;export{a as APP_VERSION,r as VERSION};
@@ -1,5 +0,0 @@
1
- import{isAriaDisabled as e,swallowPress as a,describedByWith as r,OffWithReason as i}from"./chunk-WOZ36LPR.js";import{buttonClasses as s}from"./chunk-K7PQXJO7.js";import{forwardRef as l,useId as t}from"react";import{jsxs as c,jsx as n}from"react/jsx-runtime";function o(){/* @__PURE__ */
2
- return c("svg",{className:"h-3.5 w-3.5 animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[
3
- /* @__PURE__ */n("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),
4
- /* @__PURE__ */n("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]})}var d=l(function({variant:l="primary",size:d="md",loading:m=!1,leftIcon:p,rightIcon:u,block:b=!1,disabled:f,type:h="button",children:x,className:k="",disabledReason:y,onClick:v,pressed:N,"aria-disabled":g,"aria-describedby":C,...j},w){const z=t(),I=f||m,O=null!=y&&""!==y,P=I&&O,R=!I&&e(g),W=R&&O,B=P||W?z:void 0,H=/* @__PURE__ */c("button",{ref:w,type:h,disabled:I,"aria-busy":m||void 0,"aria-disabled":!!R||g,"aria-describedby":r(C,B),onClick:R?a:v,className:s({variant:l,size:d,block:b,pressed:N??(!0===j["aria-pressed"]||"true"===j["aria-pressed"]),className:k}),...j,children:[m?/* @__PURE__ */n(o,{}):p,x,!m&&u]});return W?/* @__PURE__ */n(i,{reason:y,id:z,block:b,children:H}):P?/* @__PURE__ */c("span",{className:b?"flex w-full flex-col gap-1":"inline-flex flex-col items-start gap-1",children:[H,
5
- /* @__PURE__ */n("span",{id:B,className:"text-xs text-red-600",children:y})]}):H});export{d as Button_default};
File without changes