efficient-shell 4.171.0 → 4.173.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 (63) hide show
  1. package/README.md +255 -8
  2. package/dist/{Browser-BW3EZ7B2.js → Browser-X7UTQJOX.js} +14 -14
  3. package/dist/Calculator-IAJLLX67.js +29 -0
  4. package/dist/ConfirmDialog-EBZ5LHVS.js +1 -0
  5. package/dist/{CurrencyConverter-IW6F7HW4.js → CurrencyConverter-RODHLQMG.js} +6 -6
  6. package/dist/{Documents-VH3JXSSJ.js → Documents-BJFZHHBZ.js} +7 -7
  7. package/dist/{Files-R4ZA5MXU.js → Files-PL5NE4PQ.js} +28 -28
  8. package/dist/{Notepad-FOITSJJA.js → Notepad-52LDWEK2.js} +9 -9
  9. package/dist/PdfViewer-IIXXT7SF.js +1 -0
  10. package/dist/{PomodoroTimer-C4SVIFC6.js → PomodoroTimer-C3KCTCMB.js} +21 -21
  11. package/dist/{Preview-5K6LK6WZ.js → Preview-O3N26GG6.js} +20 -20
  12. package/dist/{Sidebar-FDFNRXJU.js → Sidebar-QNGQA6J5.js} +16 -16
  13. package/dist/{Spreadsheet-CZC3QU2G.js → Spreadsheet-HVKVNQN6.js} +14 -14
  14. package/dist/{Stock-B4WWEBZH.js → Stock-YOGVYL6F.js} +2 -2
  15. package/dist/{Weather-TDB5AY23.js → Weather-4OQOBM4C.js} +13 -13
  16. package/dist/{WorldClock-HYHDVPBV.js → WorldClock-K5KLOOD7.js} +6 -6
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/chunk-6TDPY7WG.js +3 -0
  20. package/dist/{chunk-5G4QMZGJ.js → chunk-A6ZY4XSQ.js} +6 -6
  21. package/dist/{chunk-4P3IWZUC.js → chunk-AYZ4LP2A.js} +9 -9
  22. package/dist/{chunk-CRI4UFBU.js → chunk-CQN5CFKA.js} +4 -4
  23. package/dist/{chunk-ECFMRDUP.js → chunk-FIGVDYJR.js} +16 -16
  24. package/dist/{chunk-Y3UKUB7V.js → chunk-MFR4GZSB.js} +15 -15
  25. package/dist/{chunk-2UIKLYAI.js → chunk-MVUYJAZT.js} +1 -1
  26. package/dist/{chunk-HA2WG27U.js → chunk-MYNLN25H.js} +2 -2
  27. package/dist/{chunk-KSSAVLO7.js → chunk-OZMDKNVR.js} +1 -1
  28. package/dist/{chunk-GKLJ2SYS.js → chunk-RN5V7MDO.js} +322 -322
  29. package/dist/chunk-S5QF4VFG.js +1 -0
  30. package/dist/{chunk-5J2TKKGH.js → chunk-SXRJYJ7M.js} +1 -1
  31. package/dist/{chunk-NTCAZ6Y3.js → chunk-TLYGAHZN.js} +1 -1
  32. package/dist/{chunk-HNXPIYRS.js → chunk-U2SEGSNG.js} +1 -1
  33. package/dist/{chunk-FZRQBHTK.js → chunk-U6IUYOYS.js} +1 -1
  34. package/dist/{chunk-3U47BTEV.js → chunk-UOZMVS4Y.js} +11 -11
  35. package/dist/{chunk-S2AZZGFF.js → chunk-W32SKK3D.js} +1 -1
  36. package/dist/chunk-W33ZFDRR.js +1 -0
  37. package/dist/{chunk-FWZUTHP5.js → chunk-X5LH3UOJ.js} +111 -111
  38. package/dist/{chunk-36QX6LOQ.js → chunk-XHWT4DH2.js} +1 -1
  39. package/dist/chunk-XJX3NA37.js +1 -0
  40. package/dist/{chunk-AUKURHBZ.js → chunk-Z3JO7MDE.js} +4 -4
  41. package/dist/{chunk-7YFAFXQG.js → chunk-ZDCOC4IH.js} +9 -9
  42. package/dist/file-intake/index.js +1 -1
  43. package/dist/format/index.d.ts +1 -1
  44. package/dist/format/index.js +1 -1
  45. package/dist/{index-Dq20bi8D.d.ts → index-Dod08dsC.d.ts} +178 -11
  46. package/dist/{index-DCUzlKPZ.d.ts → index-DpUDK9zG.d.ts} +5 -0
  47. package/dist/index.d.ts +14 -6
  48. package/dist/index.js +111 -111
  49. package/dist/map/index.js +2 -2
  50. package/dist/page-tabs/index.js +5 -5
  51. package/dist/pdf/index.js +1 -1
  52. package/dist/sounds-FO772MN2.js +1 -0
  53. package/dist/ui/index.d.ts +2 -2
  54. package/dist/ui/index.js +1 -1
  55. package/package.json +1 -1
  56. package/dist/Calculator-VBK5NSMU.js +0 -29
  57. package/dist/ConfirmDialog-YRCG3W2T.js +0 -1
  58. package/dist/PdfViewer-S2B2DZYB.js +0 -1
  59. package/dist/chunk-67ZUPDWG.js +0 -1
  60. package/dist/chunk-6KO2U66R.js +0 -3
  61. package/dist/chunk-BUTSU7FO.js +0 -1
  62. package/dist/chunk-NCQLGQYR.js +0 -1
  63. package/dist/sounds-OMHXVVQ4.js +0 -1
package/dist/map/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{Button_default as e}from"../chunk-EXXHI5DO.js";import{rootIsDark as t,ROOT_THEME_ATTRIBUTES as n}from"../chunk-HZZNJHRH.js";import"../chunk-D65T4H6J.js";import"../chunk-X4FJ54PP.js";import{useShellStrings as r}from"../chunk-NCQLGQYR.js";import{useRef as o,useState as a,useEffect as l,useCallback as i,useMemo as s,useSyncExternalStore as c}from"react";import{createPortal as u}from"react-dom";import{jsxs as d,jsx as p,Fragment as m}from"react/jsx-runtime";import{useQuery as h}from"@tanstack/react-query";var g="maplibregl-compact-show";function f(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(g)&&(e.classList.remove(g),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var y=20,b=12,x=480,v={center:[0,0],left:[y,0],right:[-20,0],top:[0,y],"top-left":[0,y],"top-right":[0,y],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},w=(e,t=12)=>Math.max(0,Math.floor(e-t-b-y-10-16));function k(e,t,n,r=12){const o=e.y-y-r,a=n.height-e.y-y-b,l=t.height<=o||t.height>a&&o>=a,i=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let s="",c=0;return e.x-t.width/2<b?(s="-left",c=Math.max(0,b-e.x)):e.x+t.width/2>n.width-b&&(s="-right",c=-Math.max(0,e.x-(n.width-b))),{anchor:`${l?"bottom":"top"}${s}`,move:{x:c,y:i}}}var M="maplibre-gl-worker.mjs",N=e=>`/maplibre-gl/${e}/${M}`,C=null;function L(){return C??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(N(e.getVersion())),e)).catch(e=>{throw C=null,e}),C}var $=24,E=28,S=29;function j(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function z(e){const t=Math.max(E,12+8*e.length);return t+t%2}var A=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function R(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var B=e=>A(e.x,e.y,e.width,e.height);function O(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(R(B(e[t]),B(e[n])))return[e[t],e[n]];return null}function T(e,t=[]){const n=[],r=e=>t.some(t=>R(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:E,height:E,under:0}));for(let e=O(o);e;e=O(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=z(j(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(B(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=A(t.x,t.y,$,$),l=o.find(t=>R(B(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const i=a.find(t=>R(B(t),e));i?i.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:$,height:$,under:0})}return{groups:[...o,...a],hidden:n}}function F(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function H(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:n}),()=>t.disconnect()}var W=t;var q="routes",K=["routes-road","routes-estimate"];function _(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),P(n)}function P(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var I={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},D={center:[30,20],zoom:1},Z="ring-2 ring-gray-900 ring-offset-2";var G="var(--color-gray-600, #4b5563)",V="http://www.w3.org/2000/svg",J=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,X=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function Q(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!X.test(r.slice(7))})}var U=(...e)=>e.filter(Boolean).join(" ");function Y(e){const t=document.createElementNS(V,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(V,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function ee(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}var te=(e,t)=>U("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6"));function ne(e,t,n,r){const o=t&&!r&&null==e.stop&&!e.dot;return U("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-md transition-transform motion-reduce:transition-none",!Q(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-[10px] [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":Z),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")}var re=e=>U("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!Q(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white");function oe({pins:t,selectedKey:n,focus:s,onSelect:m,ariaLabel:h,className:g="",children:y,routes:b,fitTo:x,attribution:M,marks:N,groupCrowded:C=!1,noun:S,highlightKey:z=null,picking:A=!1,onPick:R,card:B,cardMinMapWidth:O=480,fullScreen:V,initialView:X=D,cooperativeGestures:Q=!1}){const oe=r().map,ie=o(null),se=o(null),ce=o(null),ue=o(null),de=o([]),pe=o(/* @__PURE__ */new Map),me=o(/* @__PURE__ */new Map),he=o(/* @__PURE__ */new Map),ge=o(null),fe=o(/* @__PURE__ */new Map),ye=o(""),[be,xe]=a(!1),[ve,we]=a(!1),ke=c(H,W,()=>!1)?"dark":"light",Me=o({onSelect:m,onPick:R,picking:A,pins:t,selectedKey:n,highlightKey:z,groupCrowded:C,strings:oe,noun:S});l(()=>{Me.current={onSelect:m,onPick:R,picking:A,pins:t,selectedKey:n,highlightKey:z,groupCrowded:C,strings:oe,noun:S}});const Ne=i(()=>{const e=ce.current,{pins:t,selectedKey:n}=Me.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:J()?0:400})},[]),Ce=o(!1),Le=i((e,t)=>{const n=ce.current,r=ue.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Me.current.selectedKey??"");return void Me.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>pe.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const i=a.map(e=>n.project([e.lng,e.lat])),s=Math.max(...i.map((e,t)=>F(e,i.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=pe.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...me.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,s))),duration:J()?0:600})},[]),$e=i(()=>{const e=ce.current,t=ue.current;if(!e||!t||!ie.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l}=Me.current;for(const[e,t]of pe.current){const a=ne(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...ie.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=T([...pe.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const s=e=>(l??a.places)(e),c=e.getZoom()<17.5?a.spread:a.cycle,u=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},d=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,s(r.under)):null,l=1===r.keys.length?pe.current.get(r.keys[0]):null;if(l){u(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)u(pe.current.get(e).button,!1);const i=r.keys.join(" ");let p=me.current.get(i);if(!p){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className="grid place-items-center rounded-full cursor-pointer",n.append(document.createElement("span"));const o=pe.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),p=a}p.keys=r.keys;const m=r.keys.map(e=>pe.current.get(e)),h=r.stops.length>0?j(r.stops):String(m.length),g=r.stops.length>0?a.stops(h):a.group(m.length,s(m.length));p.button.style.width=`${r.width}px`,p.button.style.height=`${r.height}px`,p.button.setAttribute("aria-label",`${g}: ${m.map(e=>e.pin.label).join("; ")}. ${c}${o?`; ${o}`:""}.`),p.button.title=[`${g}:`,...m.map(e=>e.title),...o?[o]:[],c].join("\n");const f=p.button.firstElementChild;f.textContent=h;const y=U("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",r.stops.length>0?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":m.every(e=>e.pin.dot)?"h-5 w-5 text-[0.6rem]":"h-6 w-6 text-[0.7rem]",null!=n&&r.keys.includes(n)&&Z);f.className!==y&&(f.className=y),d.set(i,p)}for(const e of i.hidden)u(pe.current.get(e).button,!1);for(const[e,t]of me.current)d.has(e)||t.marker.remove();me.current=d}if(ge.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?pe.current.get(r):void 0,n=r?he.current.get(r):void 0,o=e?{at:pe.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?E:$),height:t.button.offsetHeight||(null!=t.pin.stop?E:$)}:n?{at:n.mark,width:n.element.offsetWidth||E,height:n.element.offsetHeight||E}:null,a=ge.current.getElement();a.style.display=o?"":"none",o&&(ge.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);l(()=>{if($e(),!ie.current)return;const e=new ResizeObserver(()=>$e());e.observe(ie.current);for(const t of ie.current.children)t.contains(se.current)||e.observe(t);return()=>e.disconnect()}),l(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await L();if(e||!se.current)return;ue.current=o,t=new o.Map({container:se.current,style:I[ke],center:X.center,zoom:X.zoom,attributionControl:M?{compact:!0,customAttribution:M}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===Q?window.matchMedia("(pointer: coarse)").matches:Q}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className="pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",a.style.display="none",ge.current=new o.Marker({element:a,anchor:"center"}).setLngLat(X.center).addTo(t),t.on("click",e=>{Me.current.picking&&Me.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",$e),t.on("moveend",$e),t.on("resize",$e),t.on("error",e=>console.warn("[map]",e.error?.message)),r=f(se.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Ne()}),n.observe(se.current),ce.current=t,xe(!0)}catch(t){console.error("[map] could not start",t),e||we(!0)}})(),()=>{e=!0,n?.disconnect(),r(),de.current.forEach(e=>e.remove()),de.current=[],me.current.forEach(e=>e.marker.remove()),me.current.clear(),ge.current?.remove(),ge.current=null,t?.remove(),ce.current=null}},[]);const Ee=o(ke);l(()=>{be&&ce.current&&Ee.current!==ke&&(Ee.current=ke,ce.current.setStyle(I[ke]))},[be,ke]),l(()=>{const e=ce.current,n=ue.current;if(!be||!e||!n)return;de.current.forEach(e=>e.remove()),de.current=[],me.current.forEach(e=>e.marker.remove()),me.current.clear(),pe.current.clear(),he.current.clear();for(const e of fe.current.keys())t.some(t=>t.key===e)||fe.current.delete(e);const r=Me.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=te(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const i=document.createElement("span");if(ee(i,o.data),o.dot);else if(null!=o.iconNode){const e=fe.current.get(o.key);e&&i.append(e)}else o.icon?.length?i.append(Y(o.icon)):i.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(i),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=U("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-[9px] font-semibold leading-none shadow",o.badgeTone??"bg-white text-gray-900"),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Me.current.onSelect(o.key)}),de.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),pe.current.set(o.key,{pin:o,button:t,mark:i,name:a,title:l})}for(const t of N??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,ee(r,t.data),r.className=re(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),de.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),he.current.set(t.key,{mark:t,element:r})}$e()},[be,t,N,C,$e]),l(()=>{be&&$e()},[be,n,z,$e]),l(()=>{if(!be||!n)return;const e=requestAnimationFrame(Ne);return()=>cancelAnimationFrame(e)},[be,n,Ne]),l(()=>{const e=ce.current,n=ue.current,r=x?[...t,...N??[]].filter(e=>x.includes(e.key)):t;if(!be||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ye.current===o)return;const a=""===ye.current;if(ye.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[be,t,N,x]),l(()=>{const e=ce.current;if(!be||!e)return;const t=(b??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),P(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?_(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],i=e.getSource(q);if(i&&(i.attribution||"")!==n){for(const t of K)e.getLayer(t)&&e.removeLayer(t);e.removeSource(q)}const s=e.getSource(q);s?s.setData(o):e.addSource(q,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:q,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:q,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[be,b,ke]),l(()=>{const e=ce.current;if(!be||!e||!s)return;const n=t.find(e=>e.key===s.key);if(!n)return;const r=e.getZoom(),o=C?F(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),r):-1/0,a={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(r,13,o))};J()?e.jumpTo(a):e.flyTo({...a,duration:600})},[be,s?.n]);const[Se,je]=a(!1);l(()=>{const e=ie.current;if(!e)return;const t=()=>je(e.clientWidth<O);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[O]);const ze=n?t.find(e=>e.key===n)??null:null,Ae=ze?.key??null,Re=ze?.lng??0,Be=ze?.lat??0,Oe=be&&!Se&&null!=B&&!!ze,[Te,Fe]=a(null);l(()=>{const e=ce.current,t=ue.current;if(!(Oe&&e&&t&&Ae))return;const n=document.createElement("div");n.dataset.mapCard="",n.className="w-[26rem] overflow-y-auto overscroll-contain";const r=new t.Popup({anchor:"bottom",offset:v,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Re,Be]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip");l&&Object.assign(l.style,{borderTopColor:G,borderBottomColor:G}),Fe(n);let i=!1,s=!1;const c=(t=!0)=>{if(s)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,c()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),ie.current)+8,u=`${w(a,l)}px`;n.style.maxHeight!==u&&(n.style.maxHeight=u);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=k(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:J()?0:250}),$e()},u=new ResizeObserver(()=>c());u.observe(n);const d=()=>c(),p=()=>{i||c(!1)};e.on("resize",d),e.on("moveend",p);let m=!1;const h=pe.current,g=e=>{m=n.contains(e.target)};return document.addEventListener("focusin",g),()=>{if(s=!0,u.disconnect(),e.off("resize",d),e.off("moveend",p),document.removeEventListener("focusin",g),r.remove(),Fe(null),m&&(!document.activeElement||document.activeElement===document.body)){const e=h.get(Ae)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Oe,Ae,Re,Be,$e]);const He=V?.active??!1,We=o(V?.onChange);l(()=>{We.current=V?.onChange}),l(()=>{if(!V)return;const e=document.documentElement;He&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!He&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[He]);const qe=!!V;return l(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||We.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */d("div",{ref:ie,className:U("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",A&&"[&_canvas]:cursor-crosshair",g),children:[
3
- /* @__PURE__ */p("div",{className:"absolute inset-0",children:/* @__PURE__ */p("div",{ref:se,className:"h-full w-full",role:"region","aria-label":h})}),ve&&/* @__PURE__ */p("p",{className:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",children:oe.failed}),V&&/* @__PURE__ */p(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>V.onChange(!V.active),leftIcon:/* @__PURE__ */p(le,{leave:V.active}),children:V.active?oe.leaveFullScreen:oe.fullScreen}),y,null!=B&&!Oe&&/* @__PURE__ */p("div",{"data-map-card":"",className:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",children:B}),Oe&&Te?u(B,Te):null,be&&/* @__PURE__ */p(ae,{pins:t,hosts:fe.current})]})}function ae({pins:e,hosts:t}){/* @__PURE__ */
2
+ import{Button_default as e}from"../chunk-EXXHI5DO.js";import{rootIsDark as t,ROOT_THEME_ATTRIBUTES as n}from"../chunk-HZZNJHRH.js";import"../chunk-D65T4H6J.js";import"../chunk-X4FJ54PP.js";import{useShellStrings as r}from"../chunk-S5QF4VFG.js";import{useRef as o,useState as a,useEffect as l,useCallback as i,useMemo as s,useSyncExternalStore as c}from"react";import{createPortal as u}from"react-dom";import{jsxs as d,jsx as p,Fragment as m}from"react/jsx-runtime";import{useQuery as h}from"@tanstack/react-query";var g="maplibregl-compact-show";function f(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(g)&&(e.classList.remove(g),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var y=20,b=12,x=480,v={center:[0,0],left:[y,0],right:[-20,0],top:[0,y],"top-left":[0,y],"top-right":[0,y],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},w=(e,t=12)=>Math.max(0,Math.floor(e-t-b-y-10-16));function k(e,t,n,r=12){const o=e.y-y-r,a=n.height-e.y-y-b,l=t.height<=o||t.height>a&&o>=a,i=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let s="",c=0;return e.x-t.width/2<b?(s="-left",c=Math.max(0,b-e.x)):e.x+t.width/2>n.width-b&&(s="-right",c=-Math.max(0,e.x-(n.width-b))),{anchor:`${l?"bottom":"top"}${s}`,move:{x:c,y:i}}}var M="maplibre-gl-worker.mjs",N=e=>`/maplibre-gl/${e}/${M}`,C=null;function L(){return C??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(N(e.getVersion())),e)).catch(e=>{throw C=null,e}),C}var $=24,E=28,S=29;function j(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function z(e){const t=Math.max(E,12+8*e.length);return t+t%2}var A=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function B(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var R=e=>A(e.x,e.y,e.width,e.height);function O(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(B(R(e[t]),R(e[n])))return[e[t],e[n]];return null}function T(e,t=[]){const n=[],r=e=>t.some(t=>B(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:E,height:E,under:0}));for(let e=O(o);e;e=O(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=z(j(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(R(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=A(t.x,t.y,$,$),l=o.find(t=>B(R(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const i=a.find(t=>B(R(t),e));i?i.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:$,height:$,under:0})}return{groups:[...o,...a],hidden:n}}function F(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function H(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:n}),()=>t.disconnect()}var W=t;var q="routes",K=["routes-road","routes-estimate"];function _(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),P(n)}function P(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var I={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},D={center:[30,20],zoom:1},Z="ring-2 ring-gray-900 ring-offset-2";var V="var(--color-gray-600, #4b5563)",G="http://www.w3.org/2000/svg",J=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,X=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function U(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!X.test(r.slice(7))})}var Q=(...e)=>e.filter(Boolean).join(" ");function Y(e){const t=document.createElementNS(G,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(G,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function ee(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}var te=(e,t)=>Q("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6"));function ne(e,t,n,r){const o=t&&!r&&null==e.stop&&!e.dot;return Q("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-md transition-transform motion-reduce:transition-none",!U(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-[10px] [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":Z),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")}var re=e=>Q("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!U(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white");function oe({pins:t,selectedKey:n,focus:s,onSelect:m,ariaLabel:h,className:g="",children:y,routes:b,fitTo:x,attribution:M,marks:N,groupCrowded:C=!1,noun:S,highlightKey:z=null,picking:A=!1,onPick:B,card:R,cardMinMapWidth:O=480,fullScreen:G,initialView:X=D,cooperativeGestures:U=!1}){const oe=r().map,ie=o(null),se=o(null),ce=o(null),ue=o(null),de=o([]),pe=o(/* @__PURE__ */new Map),me=o(/* @__PURE__ */new Map),he=o(/* @__PURE__ */new Map),ge=o(null),fe=o(/* @__PURE__ */new Map),ye=o(""),[be,xe]=a(!1),[ve,we]=a(!1),ke=c(H,W,()=>!1)?"dark":"light",Me=o({onSelect:m,onPick:B,picking:A,pins:t,selectedKey:n,highlightKey:z,groupCrowded:C,strings:oe,noun:S});l(()=>{Me.current={onSelect:m,onPick:B,picking:A,pins:t,selectedKey:n,highlightKey:z,groupCrowded:C,strings:oe,noun:S}});const Ne=i(()=>{const e=ce.current,{pins:t,selectedKey:n}=Me.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:J()?0:400})},[]),Ce=o(!1),Le=i((e,t)=>{const n=ce.current,r=ue.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Me.current.selectedKey??"");return void Me.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>pe.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const i=a.map(e=>n.project([e.lng,e.lat])),s=Math.max(...i.map((e,t)=>F(e,i.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=pe.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...me.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,s))),duration:J()?0:600})},[]),$e=i(()=>{const e=ce.current,t=ue.current;if(!e||!t||!ie.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l}=Me.current;for(const[e,t]of pe.current){const a=ne(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...ie.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=T([...pe.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const s=e=>(l??a.places)(e),c=e.getZoom()<17.5?a.spread:a.cycle,u=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},d=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,s(r.under)):null,l=1===r.keys.length?pe.current.get(r.keys[0]):null;if(l){u(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)u(pe.current.get(e).button,!1);const i=r.keys.join(" ");let p=me.current.get(i);if(!p){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className="grid place-items-center rounded-full cursor-pointer",n.append(document.createElement("span"));const o=pe.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),p=a}p.keys=r.keys;const m=r.keys.map(e=>pe.current.get(e)),h=r.stops.length>0?j(r.stops):String(m.length),g=r.stops.length>0?a.stops(h):a.group(m.length,s(m.length));p.button.style.width=`${r.width}px`,p.button.style.height=`${r.height}px`,p.button.setAttribute("aria-label",`${g}: ${m.map(e=>e.pin.label).join("; ")}. ${c}${o?`; ${o}`:""}.`),p.button.title=[`${g}:`,...m.map(e=>e.title),...o?[o]:[],c].join("\n");const f=p.button.firstElementChild;f.textContent=h;const y=Q("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",r.stops.length>0?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":m.every(e=>e.pin.dot)?"h-5 w-5 text-[0.6rem]":"h-6 w-6 text-[0.7rem]",null!=n&&r.keys.includes(n)&&Z);f.className!==y&&(f.className=y),d.set(i,p)}for(const e of i.hidden)u(pe.current.get(e).button,!1);for(const[e,t]of me.current)d.has(e)||t.marker.remove();me.current=d}if(ge.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?pe.current.get(r):void 0,n=r?he.current.get(r):void 0,o=e?{at:pe.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?E:$),height:t.button.offsetHeight||(null!=t.pin.stop?E:$)}:n?{at:n.mark,width:n.element.offsetWidth||E,height:n.element.offsetHeight||E}:null,a=ge.current.getElement();a.style.display=o?"":"none",o&&(ge.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);l(()=>{if($e(),!ie.current)return;const e=new ResizeObserver(()=>$e());e.observe(ie.current);for(const t of ie.current.children)t.contains(se.current)||e.observe(t);return()=>e.disconnect()}),l(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await L();if(e||!se.current)return;ue.current=o,t=new o.Map({container:se.current,style:I[ke],center:X.center,zoom:X.zoom,attributionControl:M?{compact:!0,customAttribution:M}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===U?window.matchMedia("(pointer: coarse)").matches:U}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className="pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",a.style.display="none",ge.current=new o.Marker({element:a,anchor:"center"}).setLngLat(X.center).addTo(t),t.on("click",e=>{Me.current.picking&&Me.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",$e),t.on("moveend",$e),t.on("resize",$e),t.on("error",e=>console.warn("[map]",e.error?.message)),r=f(se.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Ne()}),n.observe(se.current),ce.current=t,xe(!0)}catch(t){console.error("[map] could not start",t),e||we(!0)}})(),()=>{e=!0,n?.disconnect(),r(),de.current.forEach(e=>e.remove()),de.current=[],me.current.forEach(e=>e.marker.remove()),me.current.clear(),ge.current?.remove(),ge.current=null,t?.remove(),ce.current=null}},[]);const Ee=o(ke);l(()=>{be&&ce.current&&Ee.current!==ke&&(Ee.current=ke,ce.current.setStyle(I[ke]))},[be,ke]),l(()=>{const e=ce.current,n=ue.current;if(!be||!e||!n)return;de.current.forEach(e=>e.remove()),de.current=[],me.current.forEach(e=>e.marker.remove()),me.current.clear(),pe.current.clear(),he.current.clear();for(const e of fe.current.keys())t.some(t=>t.key===e)||fe.current.delete(e);const r=Me.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=te(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const i=document.createElement("span");if(ee(i,o.data),o.dot);else if(null!=o.iconNode){const e=fe.current.get(o.key);e&&i.append(e)}else o.icon?.length?i.append(Y(o.icon)):i.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(i),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=Q("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-[9px] font-semibold leading-none shadow",o.badgeTone??"bg-white text-gray-900"),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Me.current.onSelect(o.key)}),de.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),pe.current.set(o.key,{pin:o,button:t,mark:i,name:a,title:l})}for(const t of N??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,ee(r,t.data),r.className=re(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),de.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),he.current.set(t.key,{mark:t,element:r})}$e()},[be,t,N,C,$e]),l(()=>{be&&$e()},[be,n,z,$e]),l(()=>{if(!be||!n)return;const e=requestAnimationFrame(Ne);return()=>cancelAnimationFrame(e)},[be,n,Ne]),l(()=>{const e=ce.current,n=ue.current,r=x?[...t,...N??[]].filter(e=>x.includes(e.key)):t;if(!be||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ye.current===o)return;const a=""===ye.current;if(ye.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[be,t,N,x]),l(()=>{const e=ce.current;if(!be||!e)return;const t=(b??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),P(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?_(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],i=e.getSource(q);if(i&&(i.attribution||"")!==n){for(const t of K)e.getLayer(t)&&e.removeLayer(t);e.removeSource(q)}const s=e.getSource(q);s?s.setData(o):e.addSource(q,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:q,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:q,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[be,b,ke]),l(()=>{const e=ce.current;if(!be||!e||!s)return;const n=t.find(e=>e.key===s.key);if(!n)return;const r=e.getZoom(),o=C?F(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),r):-1/0,a={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(r,13,o))};J()?e.jumpTo(a):e.flyTo({...a,duration:600})},[be,s?.n]);const[Se,je]=a(!1);l(()=>{const e=ie.current;if(!e)return;const t=()=>je(e.clientWidth<O);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[O]);const ze=n?t.find(e=>e.key===n)??null:null,Ae=ze?.key??null,Be=ze?.lng??0,Re=ze?.lat??0,Oe=be&&!Se&&null!=R&&!!ze,[Te,Fe]=a(null);l(()=>{const e=ce.current,t=ue.current;if(!(Oe&&e&&t&&Ae))return;const n=document.createElement("div");n.dataset.mapCard="",n.className="w-[26rem] overflow-y-auto overscroll-contain";const r=new t.Popup({anchor:"bottom",offset:v,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Be,Re]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip");l&&Object.assign(l.style,{borderTopColor:V,borderBottomColor:V}),Fe(n);let i=!1,s=!1;const c=(t=!0)=>{if(s)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,c()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),ie.current)+8,u=`${w(a,l)}px`;n.style.maxHeight!==u&&(n.style.maxHeight=u);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=k(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:J()?0:250}),$e()},u=new ResizeObserver(()=>c());u.observe(n);const d=()=>c(),p=()=>{i||c(!1)};e.on("resize",d),e.on("moveend",p);let m=!1;const h=pe.current,g=e=>{m=n.contains(e.target)};return document.addEventListener("focusin",g),()=>{if(s=!0,u.disconnect(),e.off("resize",d),e.off("moveend",p),document.removeEventListener("focusin",g),r.remove(),Fe(null),m&&(!document.activeElement||document.activeElement===document.body)){const e=h.get(Ae)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Oe,Ae,Be,Re,$e]);const He=G?.active??!1,We=o(G?.onChange);l(()=>{We.current=G?.onChange}),l(()=>{if(!G)return;const e=document.documentElement;He&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!He&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[He]);const qe=!!G;return l(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||We.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */d("div",{ref:ie,className:Q("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",A&&"[&_canvas]:cursor-crosshair",g),children:[
3
+ /* @__PURE__ */p("div",{className:"absolute inset-0",children:/* @__PURE__ */p("div",{ref:se,className:"h-full w-full",role:"region","aria-label":h})}),ve&&/* @__PURE__ */p("p",{className:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",children:oe.failed}),G&&/* @__PURE__ */p(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>G.onChange(!G.active),leftIcon:/* @__PURE__ */p(le,{leave:G.active}),children:G.active?oe.leaveFullScreen:oe.fullScreen}),y,null!=R&&!Oe&&/* @__PURE__ */p("div",{"data-map-card":"",className:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",children:R}),Oe&&Te?u(R,Te):null,be&&/* @__PURE__ */p(ae,{pins:t,hosts:fe.current})]})}function ae({pins:e,hosts:t}){/* @__PURE__ */
4
4
  return p(m,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let n=t.get(e.key);return n||(n=document.createElement("span"),n.className="contents",t.set(e.key,n)),u(e.iconNode,n,e.key)})})}function le({leave:e}){/* @__PURE__ */
5
5
  return p("svg",{"aria-hidden":"true",className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */p("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e?"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25":"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})})}function ie(){const[e,t]=a(null);return{highlightKey:e,pointAt:i(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var se=3e3,ce=e=>!!e?.pending&&3e3,ue=e=>`${e.kind}:${e.id}`,de=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function pe(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating…";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var me={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},he=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ge(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var fe=(e,t=me)=>t[e]?.tone??"bg-gray-700 text-white",ye=(e,t=me)=>t[e]?.label??e,be=(e,t)=>fe(ge(e),t);function xe(e,t,n=me){return null!=t?String(t):(n[ge(e)]?.label??"").charAt(0).toUpperCase()}var ve=["delivery_location","warehouse"];function we(e,t=ve){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(ue(o),++r);return n}function ke(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)de(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Me(e){const t=[`${e.onMap} on the map`];return e.approximate&&t.push(`${e.approximate} approximate`),e.pending&&t.push(`${e.pending} locating`),e.off&&t.push(`${e.off} not on the map`),t.join(" · ")}function Ne(e){const t=[...new Set(e.filter(de).map(ge))];return[...he.filter(e=>t.includes(e)),...t.filter(e=>!he.includes(e))]}function Ce(e,t){return e.filter(e=>!de(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(ue(e)),r=pe(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:ue(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function Le({categories:e,palette:t=me,floating:n=!0}){return e.length<2?null:/* @__PURE__ */p("div",{className:(n?"absolute left-3 top-3 z-10 ":"")+"flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-gray-200 bg-white px-2.5 py-1.5 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */d("span",{className:"inline-flex items-center gap-1.5",children:[
6
6
  /* @__PURE__ */p("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${fe(e,t)}`}),ye(e,t)]},e))})}function $e({point:t,number:n,onOpen:o,onClose:a,palette:l=me}){const i=pe(t.placement),s=ge(t),c=r().map;/* @__PURE__ */
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import{TabStrip as e}from"../chunk-Y3UKUB7V.js";import"../chunk-6KO2U66R.js";import"../chunk-PGVUO7GB.js";import"../chunk-HZZNJHRH.js";import{useBrowserLayoutEffect as t}from"../chunk-D65T4H6J.js";import{confirm as n}from"../chunk-ECFMRDUP.js";import"../chunk-AFYQTVZO.js";import"../chunk-X4FJ54PP.js";import{useShellStrings as r}from"../chunk-NCQLGQYR.js";import*as i from"react";import{createContext as l,memo as c,useRef as a,useEffect as s,useMemo as o,useId as u,useCallback as y,useReducer as d,useState as f,useContext as p}from"react";import{useLocation as k,useNavigate as m}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as h}from"react/jsx-runtime";var g=l(null),K=l(null),F=12;var N=(e,t)=>e.filter(e=>e!==t);function T(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function w(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let l={...e,tabs:i,activeKey:t.key,mounted:(c=e.mounted,a=t.key,c.includes(a)?c:[...c,a]),clock:r};var c,a;return l.closing&&l.closing!==t.key?l=C(l,l.closing):l.closing===t.key&&(l={...l,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=C(n,e[0].key)}return n}(l,n)}function A(e){let t={...e,activeKey:null};return t.closing&&(t=C(t,t.closing)),t}function C(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:N(e.mounted,t),dirty:N(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function I(e,t){switch(t.type){case"visit":return w(e,t.entry,t.maxTabs);case"transient":return A(e);case"close":{let n=e;for(const e of t.keys)n=C(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:N(e.dirty,t)}}(e,t.key,t.dirty)}}var M=e=>`${e.pathname}${e.search}`;function O(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function j({children:e,resolve:i,pinned:l=[],storageKey:c,maxTabs:p=12,enabled:v=!0,confirmDiscard:h}){const K=k(),F=m(),N=r().pageTabs,C=u(),j=a(i);j.current=i;const x=y(e=>{const t=j.current(e);return t?{key:t.key??e.pathname,path:M(e),title:t.title}:null},[]),[L,R]=d(I,void 0,()=>{const e=function(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{return[]}const r=n;if(!r||1!==r.v||!Array.isArray(r.tabs))return[];const i=[];for(const e of r.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,l=t(r);if(!l||i.some(e=>e.key===l.key))continue;const c="page"===e.titleFrom&&"string"==typeof e.title&&e.title;i.push({key:l.key,path:r,title:c||l.title,titleFrom:c?"page":"route",pinned:!1,lastActive:0})}return i}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(c),e=>x(O(e)));let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:T(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},l.map(e=>x(O(e))).filter(e=>Boolean(e)));const n=v?x(K):null;return t=n?w(t,n,p):A(t),t}),$=a(L);$.current=L;const D=a(/* @__PURE__ */new Map),E=v?x(K):null,P=E?.key??null;t(()=>{if(!v)return;const e=x(K);e?(D.current.set(e.key,K),R({type:"visit",entry:e,maxTabs:p})):R({type:"transient"})},[K,v,p,x]),s(()=>{const e=new Set(L.tabs.map(e=>e.key));for(const t of D.current.keys())e.has(t)||D.current.delete(t)},[L.tabs]);const S=o(()=>function(e){const t={v:1,tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(t)}(L),[L]);s(()=>{if(c)try{localStorage.setItem(c,S)}catch{}},[S,c]);const B=L.dirty.length>0;s(()=>{if(!B)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[B]);const J=a(/* @__PURE__ */new Map),U=y((e,t)=>{let n=J.current.get(e);return void 0===n&&(n=J.current.size,J.current.set(e,n)),`${C}-page-${t}-${n}`},[C]),H=y(e=>h?h(e):n({title:N.discardTitle,message:1===e.length?N.discardOne:N.discardCount?.(e.length)??`${e.length} ${N.discardMany}`,confirmLabel:N.discardConfirm,cancelLabel:N.keepEditing,variant:"warning"}),[h,N]),V=y(()=>{const e=$.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),G=y((e,t,n)=>{const r=$.current,i=r.activeKey;if(!i||!e.includes(i))return void R({type:"close",keys:e,closing:null});let l=t;if(!l){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},c=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;l=(c??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??V()}R({type:"close",keys:e.filter(e=>e!==i),closing:i}),F(l)},[F,V]),Q=y(async(e,t={})=>{const n=$.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&F(t.to),!1):!(!t.force&&$.current.dirty.includes(e)&&!await H([n]))&&(!!$.current.tabs.some(t=>t.key===e)&&(G([e],t.to),!0))},[H,G,F]),Y=y(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}($.current,e,t);const r=$.current.tabs.filter(e=>n.includes(e.key)&&$.current.dirty.includes(e.key));r.length&&!await H(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set($.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&G(n,void 0,"all"===e?null:t)},[H,G]),Z=y(e=>{const t=$.current.tabs.find(t=>t.key===e);t&&e!==$.current.activeKey&&F(t.path)},[F]),W=y((e,t)=>R({type:"title",key:e,title:t}),[]),z=y((e,t)=>R({type:"dirty",key:e,dirty:t}),[]),[X,q]=f({}),_=y((e,t)=>{q(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ee=y(e=>x(e)?.key??null,[x]),te=y(e=>D.current.get(e),[]),ne=o(()=>v?L.tabs.filter(e=>e.key!==L.closing):[],[v,L.tabs,L.closing]),re=o(()=>({enabled:v,state:L,currentKey:P,resolve:i,keyFor:ee,locationFor:te,idFor:U,activate:Z,close:Q,closeMany:Y,setTitle:W,setDirty:z,copies:X,setCopy:_,visibleTabs:ne}),[v,L,P,i,ee,te,U,Z,Q,Y,W,z,X,_,ne]);/* @__PURE__ */
3
- return b(g.Provider,{value:re,children:e})}var x=i.Activity,L=Boolean(x);function R({active:e,children:t}){return x?/* @__PURE__ */b(x,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var $=c(function({tabKey:e,active:n,location:r,render:i,className:l,panelId:c,tabId:u}){const y=a(null),d=a(n),f=a(/* @__PURE__ */new Map);t(()=>{const e=d.current;if(d.current=n,n&&!e)for(const[e,[t,n]]of f.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):f.current.delete(e)},[n]),s(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&f.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const p=o(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
4
- return b("div",{ref:y,role:c?"tabpanel":void 0,id:c,"aria-labelledby":u,hidden:!n,style:n?void 0:{display:"none"},className:l,"data-page-tab":e,children:/* @__PURE__ */b(K.Provider,{value:p,children:/* @__PURE__ */b(R,{active:n,children:i(r)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),D="\0transient";function E({children:e,frameClassName:t}){const n=p(g),r=k();if(!n||!n.enabled)/* @__PURE__ */
5
- return b("div",{className:t,children:e(r)},D);const{state:i,currentKey:l,locationFor:c,idFor:a}=n,s=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return l&&!s.includes(l)&&s.push(l),/* @__PURE__ */h(v,{children:[s.map(n=>{const i=n===l,s=i?r:c(n);return s?/* @__PURE__ */b($,{tabKey:n,active:i,location:s,render:e,className:t,panelId:a(n,"panel"),tabId:a(n,"tab")},n):null}),!l&&/* @__PURE__ */b($,{tabKey:D,active:!0,location:r,render:e,className:t},D)]})}function P({className:t,activeClassName:n,end:i}){const l=p(g),c=r().pageTabs;if(!l||!l.enabled)return null;const{visibleTabs:a,state:s,idFor:o,activate:u,close:y,closeMany:d,resolve:f}=l;/* @__PURE__ */
6
- return b(e,{tabs:a.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:s.dirty.includes(e.key),copy:l.copies[e.key],icon:f(O(e.path))?.icon})),activeKey:l.currentKey??null,idFor:o,panelMounted:e=>s.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:c.label,className:t,activeClassName:n,end:i})}var S={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function B(){const e=p(g);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:S}function J(){const e=p(g),t=p(K),n=m();return{key:e?.enabled&&t?t.key:null,close:y(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function U(e){const t=p(g),n=p(K),r=t?.enabled?t.setTitle:void 0,i=n?.key;s(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function H(e){const t=p(g),n=p(K),r=t?.enabled?t.setCopy:void 0,i=n?.key;s(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function V(e){const t=p(g),n=p(K),r=t?.enabled?t.setDirty:void 0;s(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{F as DEFAULT_MAX_TABS,L as PAGE_TABS_PAUSE_HIDDEN,P as PageTabBar,E as PageTabsOutlet,j as PageTabsProvider,O as parseTabPath,J as usePageTab,H as usePageTabCopy,V as usePageTabDirty,U as usePageTabTitle,B as usePageTabs};
2
+ import{TabStrip as e}from"../chunk-MFR4GZSB.js";import"../chunk-6TDPY7WG.js";import"../chunk-PGVUO7GB.js";import"../chunk-HZZNJHRH.js";import{useBrowserLayoutEffect as t}from"../chunk-D65T4H6J.js";import{confirm as n}from"../chunk-FIGVDYJR.js";import"../chunk-AFYQTVZO.js";import"../chunk-X4FJ54PP.js";import{useShellStrings as r}from"../chunk-S5QF4VFG.js";import*as i from"react";import{createContext as l,memo as c,useRef as a,useEffect as s,useMemo as o,useId as u,useCallback as y,useReducer as d,useState as f,useContext as p}from"react";import{useLocation as k,useNavigate as m}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as h}from"react/jsx-runtime";var g=l(null),F=l(null),K=12;var T=(e,t)=>e.filter(e=>e!==t);function N(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function w(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let l={...e,tabs:i,activeKey:t.key,mounted:(c=e.mounted,a=t.key,c.includes(a)?c:[...c,a]),clock:r};var c,a;return l.closing&&l.closing!==t.key?l=I(l,l.closing):l.closing===t.key&&(l={...l,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=I(n,e[0].key)}return n}(l,n)}function A(e){let t={...e,activeKey:null};return t.closing&&(t=I(t,t.closing)),t}function I(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:T(e.mounted,t),dirty:T(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function M(e,t){switch(t.type){case"visit":return w(e,t.entry,t.maxTabs);case"transient":return A(e);case"close":{let n=e;for(const e of t.keys)n=I(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:T(e.dirty,t)}}(e,t.key,t.dirty)}}var j=e=>`${e.pathname}${e.search}`;function x(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function C({children:e,resolve:i,pinned:l=[],storageKey:c,maxTabs:p=12,enabled:v=!0,confirmDiscard:h}){const F=k(),K=m(),T=r().pageTabs,I=u(),C=a(i);C.current=i;const O=y(e=>{const t=C.current(e);return t?{key:t.key??e.pathname,path:j(e),title:t.title}:null},[]),[L,S]=d(M,void 0,()=>{const e=function(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{return[]}const r=n;if(!r||1!==r.v||!Array.isArray(r.tabs))return[];const i=[];for(const e of r.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,l=t(r);if(!l||i.some(e=>e.key===l.key))continue;const c="page"===e.titleFrom&&"string"==typeof e.title&&e.title;i.push({key:l.key,path:r,title:c||l.title,titleFrom:c?"page":"route",pinned:!1,lastActive:0})}return i}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(c),e=>O(x(e)));let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:N(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},l.map(e=>O(x(e))).filter(e=>Boolean(e)));const n=v?O(F):null;return t=n?w(t,n,p):A(t),t}),D=a(L);D.current=L;const R=a(/* @__PURE__ */new Map),$=v?O(F):null,G=$?.key??null;t(()=>{if(!v)return;const e=O(F);e?(R.current.set(e.key,F),S({type:"visit",entry:e,maxTabs:p})):S({type:"transient"})},[F,v,p,O]),s(()=>{const e=new Set(L.tabs.map(e=>e.key));for(const t of R.current.keys())e.has(t)||R.current.delete(t)},[L.tabs]);const J=o(()=>function(e){const t={v:1,tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(t)}(L),[L]);s(()=>{if(c)try{localStorage.setItem(c,J)}catch{}},[J,c]);const P=L.dirty.length>0;s(()=>{if(!P)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[P]);const B=a(/* @__PURE__ */new Map),E=y((e,t)=>{let n=B.current.get(e);return void 0===n&&(n=B.current.size,B.current.set(e,n)),`${I}-page-${t}-${n}`},[I]),V=y(e=>h?h(e):n({title:T.discardTitle,message:1===e.length?T.discardOne:T.discardCount?.(e.length)??`${e.length} ${T.discardMany}`,confirmLabel:T.discardConfirm,cancelLabel:T.keepEditing,variant:"warning"}),[h,T]),H=y(()=>{const e=D.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),Z=y((e,t,n)=>{const r=D.current,i=r.activeKey;if(!i||!e.includes(i))return void S({type:"close",keys:e,closing:null});let l=t;if(!l){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},c=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;l=(c??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??H()}S({type:"close",keys:e.filter(e=>e!==i),closing:i}),K(l)},[K,H]),W=y(async(e,t={})=>{const n=D.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&K(t.to),!1):!(!t.force&&D.current.dirty.includes(e)&&!await V([n]))&&(!!D.current.tabs.some(t=>t.key===e)&&(Z([e],t.to),!0))},[V,Z,K]),Y=y(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(D.current,e,t);const r=D.current.tabs.filter(e=>n.includes(e.key)&&D.current.dirty.includes(e.key));r.length&&!await V(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(D.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&Z(n,void 0,"all"===e?null:t)},[V,Z]),Q=y(e=>{const t=D.current.tabs.find(t=>t.key===e);t&&e!==D.current.activeKey&&K(t.path)},[K]),z=y((e,t)=>S({type:"title",key:e,title:t}),[]),U=y((e,t)=>S({type:"dirty",key:e,dirty:t}),[]),[X,q]=f({}),_=y((e,t)=>{q(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ee=y(e=>O(e)?.key??null,[O]),te=y(e=>R.current.get(e),[]),ne=o(()=>v?L.tabs.filter(e=>e.key!==L.closing):[],[v,L.tabs,L.closing]),re=o(()=>({enabled:v,state:L,currentKey:G,resolve:i,keyFor:ee,locationFor:te,idFor:E,activate:Q,close:W,closeMany:Y,setTitle:z,setDirty:U,copies:X,setCopy:_,visibleTabs:ne}),[v,L,G,i,ee,te,E,Q,W,Y,z,U,X,_,ne]);/* @__PURE__ */
3
+ return b(g.Provider,{value:re,children:e})}var O=i.Activity,L=Boolean(O);function S({active:e,children:t}){return O?/* @__PURE__ */b(O,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var D=c(function({tabKey:e,active:n,location:r,render:i,className:l,panelId:c,tabId:u}){const y=a(null),d=a(n),f=a(/* @__PURE__ */new Map);t(()=>{const e=d.current;if(d.current=n,n&&!e)for(const[e,[t,n]]of f.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):f.current.delete(e)},[n]),s(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&f.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const p=o(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
4
+ return b("div",{ref:y,role:c?"tabpanel":void 0,id:c,"aria-labelledby":u,hidden:!n,style:n?void 0:{display:"none"},className:l,"data-page-tab":e,children:/* @__PURE__ */b(F.Provider,{value:p,children:/* @__PURE__ */b(S,{active:n,children:i(r)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),R="\0transient";function $({children:e,frameClassName:t}){const n=p(g),r=k();if(!n||!n.enabled)/* @__PURE__ */
5
+ return b("div",{className:t,children:e(r)},R);const{state:i,currentKey:l,locationFor:c,idFor:a}=n,s=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return l&&!s.includes(l)&&s.push(l),/* @__PURE__ */h(v,{children:[s.map(n=>{const i=n===l,s=i?r:c(n);return s?/* @__PURE__ */b(D,{tabKey:n,active:i,location:s,render:e,className:t,panelId:a(n,"panel"),tabId:a(n,"tab")},n):null}),!l&&/* @__PURE__ */b(D,{tabKey:R,active:!0,location:r,render:e,className:t},R)]})}function G({className:t,activeClassName:n,end:i}){const l=p(g),c=r().pageTabs;if(!l||!l.enabled)return null;const{visibleTabs:a,state:s,idFor:o,activate:u,close:y,closeMany:d,resolve:f}=l;/* @__PURE__ */
6
+ return b(e,{tabs:a.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:s.dirty.includes(e.key),copy:l.copies[e.key],icon:f(x(e.path))?.icon})),activeKey:l.currentKey??null,idFor:o,panelMounted:e=>s.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:c.label,className:t,activeClassName:n,end:i})}var J={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function P(){const e=p(g);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:J}function B(){const e=p(g),t=p(F),n=m();return{key:e?.enabled&&t?t.key:null,close:y(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function E(e){const t=p(g),n=p(F),r=t?.enabled?t.setTitle:void 0,i=n?.key;s(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function V(e){const t=p(g),n=p(F),r=t?.enabled?t.setCopy:void 0,i=n?.key;s(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function H(e){const t=p(g),n=p(F),r=t?.enabled?t.setDirty:void 0;s(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{K as DEFAULT_MAX_TABS,L as PAGE_TABS_PAUSE_HIDDEN,G as PageTabBar,$ as PageTabsOutlet,C as PageTabsProvider,x as parseTabPath,B as usePageTab,V as usePageTabCopy,H as usePageTabDirty,E as usePageTabTitle,P as usePageTabs};
package/dist/pdf/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-S2B2DZYB.js"));export{e as PdfViewer};
2
+ import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-IIXXT7SF.js"));export{e as PdfViewer};
@@ -0,0 +1 @@
1
+ export{SOUND_PACKS,SOUND_PACK_KEYS,SOUND_TYPES,getSoundConfig,playClick,playError,playLogout,playNotification,playStartup,playSuccess,playTimerDone,previewSound,setAllSounds,setSoundForType,soundPackName,soundTypeName,soundsEnabled,toggleSounds}from"./chunk-W33ZFDRR.js";
@@ -1,7 +1,7 @@
1
- export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AngleScale, k as AppUpdateBanner, l as AppUpdateBannerProps, m as AttachButton, n as AttachButtonProps, o as AttachmentDropZone, p as AttachmentDropZoneProps, q as AttachmentList, r as AttachmentListProps, s as AuthScreen, t as AuthScreenProps, u as Avatar, v as AvatarGroup, w as AvatarGroupProps, x as AvatarProps, y as AvatarSize, z as AvatarStatus, B as BackgroundVariant, D as BandScale, E as Banner, F as BannerEmphasis, G as BannerProps, H as BannerTone, I as BarChart, J as BarChartProps, K as BoxPlotBox, L as BoxPlotChart, M as BoxPlotChartProps, N as BrandAssetEditor, O as BrandAssetEditorProps, Q as BrandAssetPreview, R as BrandMark, T as BrandMarkProps, U as BrandMarkSlot, V as BrandMarkSurface, W as BrandMarkTreatment, X as BreadcrumbItem, Y as Breadcrumbs, Z as BreadcrumbsProps, _ as BudgetBar, $ as BudgetBarProps, a0 as BudgetState, a1 as Button, a2 as ButtonClassesOptions, a3 as ButtonProps, a4 as ButtonSize, a5 as ButtonVariant, a6 as CHART_INK, a7 as CMD_A, a8 as CMD_DOT, a9 as CMD_ENTER, aa as CMD_K, ab as CMD_S, ac as CORNERS, ad as Calendar, ae as CalendarMode, af as CalendarProps, ag as Candle, ah as CandlestickChart, ai as CandlestickChartProps, aj as Card, ak as CardPadding, al as CardProps, am as CartesianPlot, an as CartesianPlotProps, ao as CellStyle, ap as ChartBackgroundVariant, aq as ChartBrush, ar as ChartBrushProps, as as ChartCurve, at as ChartDefs, au as ChartDefsProps, av as ChartDot, aw as ChartDotProps, ax as ChartDotVariant, ay as ChartFillVariant, az as ChartFrame, aA as ChartFrameProps, aB as ChartHighlightProvider, aC as ChartLegendEntry, aD as ChartLegendSwatch, aE as ChartRange, aF as ChartReferenceLine, aG as ChartRevealDirection, aH as ChartSkeleton, aI as ChartSkeletonProps, aJ as ChartStatusTone, aK as ChartStrokeVariant, aL as ChartTooltip, aM as ChartTooltipProps, aN as ChartTooltipRow, aO as ChatTemplate, aP as Checkbox, aQ as CheckboxProps, aR as CheckoutTemplate, aS as ChordChart, aT as ChordChartProps, aU as ColorPicker, aV as ColorPickerPanel, aW as ColorPickerPanelProps, aX as ColorPickerProps, aY as ColorPreset, aZ as ColorSwatch, a_ as ColorSwatchProps, a$ as ColorSwatchSize, b0 as ColoredBadge, b1 as ColoredBadgeProps, b2 as ColumnChart, b3 as ColumnChartProps, C as ColumnDef, b4 as ColumnSeries, b5 as ComposerAttachments, b6 as ComposerAttachmentsProps, b7 as ConfirmProvider, b8 as ContainerFillChart, b9 as ContainerFillChartProps, ba as ContainerFillItem, bb as ContextMenu, bc as ContextMenuPoint, bd as ContextMenuProps, be as ContextMenuState, bf as Corners, bg as CountBadge, bh as CountBadgeProps, bi as CountBadgeTone, bj as Curve, bk as DAY_MS, bl as DEFAULT_SHELL_STRINGS, bm as DashboardTemplate, bn as DataTable, bo as DataTableColumn, bp as DataTableColumnGroup, bq as DataTableHeader, br as DataTablePage, bs as DataTableProps, bt as DataTableRowLink, bu as DataTableRowProps, bv as DatePicker, bw as DatePickerProps, bx as DateRangePicker, by as DateRangePickerProps, bz as DateTimePicker, bA as DateTimePickerProps, bB as DescriptionColumns, bC as DescriptionItem, bD as DescriptionList, bE as DescriptionListProps, bF as Dialog, bG as DialogProps, bH as DialogSize, bI as Divider, bJ as DividerProps, bK as DividerSpacing, bL as DonutChart, bM as DonutChartProps, bN as DonutSegment, bO as Drawer, bP as DrawerProps, bQ as DrawerSide, bR as DrawerSize, bS as DropdownMenu, bT as DropdownMenuAlign, bU as DropdownMenuCheckboxItem, bV as DropdownMenuDividerItem, bW as DropdownMenuEntry, bX as DropdownMenuItem, bY as DropdownMenuLabelItem, bZ as DropdownMenuLinkItem, b_ as DropdownMenuProps, b$ as DropdownMenuRadioItem, c0 as DropdownMenuSide, c1 as DropdownPositionOptions, c2 as ENGLISH, c3 as ENTER, c4 as EditableGrid, c5 as EditableGridProps, c6 as EmailTemplate, c7 as EmptyState, c8 as EmptyStateProps, c9 as EmptyValue, ca as EmptyValueProps, cb as ErrorBoundary, cc as ErrorBoundaryProps, cd as ErrorPage, ce as ErrorPageProps, cf as FileIntake, cg as FilePicker, ch as FilePickerProps, ci as FillVariant, cj as FormError, ck as FormErrorSummary, cl as FormErrorSummaryProps, cm as FormField, cn as FormFieldProps, co as FormLayoutPage, cp as FunnelChart, cq as FunnelChartProps, cr as FunnelStage, cs as GLASS_DIVIDER, cu as GROUP_COLORS, cv as GROUP_COLORS_SOLID, cw as GalleryTemplate, cx as Gap, cy as GlassOptions, cz as GlobalSearch, cA as GlobalSearchProps, cB as Grid, cC as GridCols, cD as GridColumn, cE as GridProps, cF as HeatmapChart, cG as HeatmapChartProps, cH as HelpCenter, cI as HelpCenterDoc, cJ as HelpCenterProps, cK as HexInput, cL as HistogramBin, cM as HistogramChart, cN as HistogramChartProps, cO as Hsv, cP as INPUT_BASE, cQ as INPUT_SIZES, cR as IconButton, cS as IconButtonClassesOptions, cT as IconButtonProps, cU as IconRail, cV as IconRailButton, cW as IconRailButtonProps, cX as IconRailLabels, cY as IconRailLabelsShown, cZ as IconRailOrientation, c_ as IconRailProps, c$ as Inline, d0 as InlineProps, d1 as Input, d2 as InputNumber, d3 as InputNumberProps, d4 as InputProps, d5 as InputSize, d6 as Justify, d7 as Kanban, d8 as KanbanColumn, d9 as KanbanProps, da as Kbd, db as KbdProps, dc as KbdSize, dd as Label, de as LabelClassesOptions, df as LabelProps, dg as LadderScale, dh as LineChart, di as LineChartProps, dj as LineChartSeries, dk as LinearScale, dl as ListDrop, dm as ListFooter, dn as ListLoadError, dp as ListLoadErrorProps, dq as ListMove, dr as ListRow, ds as ListRowProps, dt as LoadingSpinner, du as LoadingSpinnerProps, dv as MAX_FRACTION_DIGITS, dw as MENU_MAX_HEIGHT, dx as MOD, dy as MOTION, dz as Markdown, dz as MarkdownLite, dA as MarkdownLiteProps, dA as MarkdownProps, dB as MediaUploadField, dC as MediaUploadFieldProps, dD as MediaUploadGrid, dE as MediaUploadGridItem, dF as MediaUploadGridProps, dG as MenuPos, dH as Meter, dI as MeterProps, dJ as MetricBar, dK as MetricBarProps, dL as Milestone, dM as MilestoneKind, dN as MilestoneTimeline, dO as MilestoneTimelineProps, dQ as NEXT_CHUNK_PATH_PREFIX, dR as NativeSelect, dS as NumericKeypad, dT as NumericKeypadProps, dU as OVERLAY_OPEN_EVENT, dV as POPUP_MAX_WIDTH, dW as POST_PRODUCTION_STATUSES, dX as PageHeader, dY as PageHeaderProps, P as PaginatedResponse, dZ as Pagination, d_ as PaginationProps, d$ as PaperclipGlyph, e0 as Paragraph, e1 as ParagraphProps, e2 as PieChart, e3 as PieChartProps, e4 as PieSegment, e5 as PlotGeometry, e6 as Point, e7 as Popover, e8 as PopoverAlign, e9 as PopoverProps, ea as PopoverRenderProps, eb as PopoverSide, ec as PopupMenu, ed as PopupMenuDivider, ee as PopupMenuItem, ef as PopupMenuItemProps, eg as PopupMenuLabel, eh as PopupMenuProps, ei as PopupSubmenu, ej as PopupSubmenuProps, ek as PortalBrandingContextValue, el as PortalBrandingProvider, em as PortalBrandingProviderProps, en as ProductionTimeline, eo as ProductionTimelineProps, ep as ProductionTimelineSnapshot, eq as ProgressItem, er as PublicPortal, es as PublicPortalBranding, et as RADAR_SERIES_CAP, eu as RadarAxis, ev as RadarChart, ew as RadarChartProps, ex as RadarSeries, ey as RadialBarChart, ez as RadialBarChartProps, eA as RadialBarRow, eB as Radio, eC as RadioGroup, eD as RadioGroupOption, eE as RadioGroupOrientation, eF as RadioGroupProps, eG as RadioProps, eH as Range, eI as RangeChart, eJ as RangeChartProps, eK as RangeRow, eL as RankedBars, eM as RankedBarsProps, eN as RankedBarsRow, eO as ResizeHandle, eP as ResizeHandleProps, eQ as ResizeHandleSide, eR as ResolvedPortalBrandAsset, eS as Result, eT as ResultProps, eU as ResultStatus, eV as RevealDirection, eW as SCATTER_SERIES_CAP, eX as SERIES_SLOT_COUNT, eY as SERIES_VARS, eZ as SHELL_LANGUAGE_STORAGE_KEY, e_ as SHIFT, e$ as STAGES, f0 as STALE_CHUNK_RELOAD_COOLDOWN_MS, f1 as STALE_CHUNK_RELOAD_KEY, f2 as STATUS_VARS, f3 as SankeyChart, f4 as SankeyChartProps, f5 as SankeyLink, f6 as SankeyNode, f7 as ScatterChart, f8 as ScatterChartProps, f9 as ScatterPoint, fa as ScatterSeries, S as SearchConfig, fb as SearchListRoute, fc as SearchProvider, fd as SearchQuickAction, fe as SearchResponse, ff as SearchResult, fg as SearchableItem, fh as SearchableOption, fi as SearchableOptionGroup, fj as SearchableSelect, fk as SearchableSelectBaseProps, fl as SearchableSelectMultipleProps, fm as SearchableSelectProps, fn as Segmented, fo as SegmentedOption, fp as SegmentedProps, fq as SegmentedSize, fr as Select, fs as SelectBaseProps, ft as SelectItem, fu as SelectMultipleProps, fv as SelectOption, fw as SelectOptionGroup, fx as SelectProps, fy as SemanticGroup, fz as SettingRow, fA as SettingRowProps, fB as SeverityTone, fE as ShellLanguage, fF as ShellLanguageProvider, fG as ShellLanguageState, fH as ShellPrefsAdapter, fI as ShellPrefsProvider, fJ as ShellStrings, fK as ShellStringsOverride, fL as ShellStringsProvider, fM as SidebarActionButton, fN as SidebarActionButtonProps, fO as SidebarGroupLabel, fP as SidebarGroupLabelProps, fQ as SidebarLayout, fR as SidebarLayoutProps, fS as SidebarNavGroup, fT as SidebarNavGroupProps, fU as SidebarNavItem, fV as SidebarNavItemProps, fW as Skeleton, fX as SkeletonProps, fY as SkeletonVariant, fZ as Slider, f_ as SliderProps, f$ as SliderSize, g0 as Snippet, g1 as SnippetProps, g2 as SnippetSize, g3 as SnippetVariant, a as SortState, g4 as SortableList, g5 as SortableListProps, g6 as SortableListSpacing, g7 as Sparkline, g8 as SparklineProps, g9 as Stack, ga as StackProps, gb as StaleChunkReloadOptions, gc as StatCard, gd as StatCardProps, ge as StatTile, gf as StatTileProps, gg as Statistic, gh as StatisticProps, gi as StatisticSize, gj as StatisticTone, gk as StatusBadge, gl as StatusBadgeProvider, gm as StatusEmphasis, gn as StepItem, go as Stepper, gp as StepperProps, gq as StrokeVariant, gr as SunburstChart, gs as SunburstChartProps, gt as SunburstNode, gu as Switch, gv as SwitchProps, gw as SwitchSize, gx as TabItem, gy as Tabs, gz as TabsProps, gA as TagInput, gB as TagInputOption, gC as TagInputProps, gD as Text, gE as TextProps, gF as TextSize, gG as TextTone, gH as TextWeight, gI as Textarea, gJ as TextareaProps, gK as Theme, gL as TileButton, gM as TileButtonProps, gN as TileSize, gO as TimeAgo, gP as TimeAgoProps, gQ as TimePicker, gR as TimePickerProps, gS as TimeSeriesChart, gT as TimeSeriesChartProps, gU as TimeSeriesSeries, gV as TimelineMarker, gW as TimelineMarkerKind, gX as TimelineReport, gY as TimelineScrubProgress, gZ as TimelineTrack, g_ as TimelineTrackItem, g$ as TimelineTrackKind, h0 as TimelineTrackPending, h1 as TimelineTrackPhase, h2 as TimelineTrackPlayback, h3 as TimelineTrackProps, h4 as TimelineTrackThumb, h5 as Title, h6 as TitleLevel, h7 as TitleProps, h8 as ToastOptions, h9 as ToastPlacement, ha as Tooltip, hb as TooltipProps, hc as TopNav, hd as TopNavItem, he as TopNavProps, hf as Tree, hg as TreeDrop, hh as TreeEmptySlot, hi as TreeEmptySlotProps, hj as TreeGroup, hk as TreeGroupLabel, hl as TreeGroupProps, hm as TreeMove, hn as TreeProps, ho as TreeRow, hp as TreeRowProps, hq as TreeSeam, hr as TreeSeamProps, hs as TreemapChart, ht as TreemapChartProps, hu as TreemapItem, hv as TreemapTile, hw as UseAppUpdateOptions, hx as UseContextMenu, hy as UseProductionTimelineOpts, hz as VERSION, hA as VITE_PRELOAD_ERROR_EVENT, hB as WaterfallChart, hC as WaterfallChartProps, hD as WaterfallStep, hE as ZLayer, hF as Z_LAYERS, hG as angleScale, hH as appendKey, hI as applyCorners, hJ as applyIconSet, hK as applyThemePrefs, hL as arcPath, hM as areaBetween, hN as areaFrom, hO as autoHighlightIndex, hP as backspace, hQ as bandScale, hR as binValues, hS as budgetState, hT as bumpPath, hU as buttonClasses, hV as calcOverall, hW as calcReportOverall, hX as colorFill, hY as colorSwatchClasses, hZ as confirm, h_ as confirmDestructive, h$ as curvePath, i0 as dashFor, i2 as dismissPopups, i3 as fillFor, i4 as fillId, i5 as fmtSliderDate, i6 as fromDateKey, i7 as glassStyle, i8 as glowId, i9 as groundId, ia as groupColors, ib as hexToHsv, ic as highlightOpacity, id as hsvToHex, ie as iconButtonClasses, ig as inputClasses, ih as installStaleChunkReload, ii as isMac, ij as isSeverityTone, ik as isStaleChunkError, im as labelClasses, io as ladderScale, ip as leavesContextMenuAlone, iq as linearPath, ir as linearScale, is as logScale, it as maskId, iu as matchShellLanguage, iv as mediaFileName, iw as monotonePath, ix as niceMax, iy as openGlobalSearch, iz as parseHexColor, iA as polygonPoints, iB as popupBounds, iC as prompt, iD as pushRecentSearch, iE as radiusScale, iF as readSavedShellLanguage, iG as registerModalEscapeInterceptor, iH as resolveBrandMarkTreatment, iI as resolveCorners, iJ as resolvePortalBrandAsset, iK as resolveSeriesColor, iL as resolveShellLanguage, iM as resolveTheme, iN as sanitizeRecentSearches, iO as saveShellLanguage, iP as seriesColor, iQ as severityOf, iR as splinePath, iS as squarify, iT as stagger, iU as stepPath, iV as tabButtonId, iW as tabPanelId, iX as toDateKey, iY as toDayMs, iZ as toISODate, i_ as toast, i$ as useAppUpdate, j0 as useClickOutside, j1 as useConfirm, j2 as useContextMenu, j3 as useDebouncedValue, j4 as useDropdownPosition, j5 as useFocusTrap, j6 as useHighlight, j7 as useIsMobile, j8 as useLocalStoragePrefs, j9 as usePlotWidth, ja as usePortalBranding, jb as useProductionTimeline, jc as useScrollLock, jd as useShellLanguage, je as useShellLocale, jf as useShellPrefs, jg as useShellStrings, jh as useTheme } from '../index-Dq20bi8D.js';
1
+ export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AngleScale, k as AppUpdateBanner, l as AppUpdateBannerProps, m as AttachButton, n as AttachButtonProps, o as AttachmentDropZone, p as AttachmentDropZoneProps, q as AttachmentList, r as AttachmentListProps, s as AuthScreen, t as AuthScreenProps, u as Avatar, v as AvatarGroup, w as AvatarGroupProps, x as AvatarProps, y as AvatarSize, z as AvatarStatus, B as BackgroundVariant, D as BandScale, E as Banner, F as BannerEmphasis, G as BannerProps, H as BannerTone, I as BarChart, J as BarChartProps, K as BoxPlotBox, L as BoxPlotChart, M as BoxPlotChartProps, N as BrandAssetEditor, O as BrandAssetEditorProps, Q as BrandAssetPreview, R as BrandMark, T as BrandMarkProps, U as BrandMarkSlot, V as BrandMarkSurface, W as BrandMarkTreatment, X as BreadcrumbItem, Y as Breadcrumbs, Z as BreadcrumbsProps, _ as BudgetBar, $ as BudgetBarProps, a0 as BudgetState, a1 as Button, a2 as ButtonClassesOptions, a3 as ButtonProps, a4 as ButtonSize, a5 as ButtonVariant, a6 as CHART_INK, a7 as CMD_A, a8 as CMD_DOT, a9 as CMD_ENTER, aa as CMD_K, ab as CMD_S, ac as CORNERS, ad as Calendar, ae as CalendarMode, af as CalendarProps, ag as Candle, ah as CandlestickChart, ai as CandlestickChartProps, aj as Card, ak as CardPadding, al as CardProps, am as CartesianPlot, an as CartesianPlotProps, ao as CellStyle, ap as ChartBackgroundVariant, aq as ChartBrush, ar as ChartBrushProps, as as ChartCurve, at as ChartDefs, au as ChartDefsProps, av as ChartDot, aw as ChartDotProps, ax as ChartDotVariant, ay as ChartFillVariant, az as ChartFrame, aA as ChartFrameProps, aB as ChartHighlightProvider, aC as ChartLegendEntry, aD as ChartLegendSwatch, aE as ChartRange, aF as ChartReferenceLine, aG as ChartRevealDirection, aH as ChartSkeleton, aI as ChartSkeletonProps, aJ as ChartStatusTone, aK as ChartStrokeVariant, aL as ChartTooltip, aM as ChartTooltipProps, aN as ChartTooltipRow, aO as ChatTemplate, aP as Checkbox, aQ as CheckboxProps, aR as CheckoutTemplate, aS as ChordChart, aT as ChordChartProps, aU as ColorPicker, aV as ColorPickerPanel, aW as ColorPickerPanelProps, aX as ColorPickerProps, aY as ColorPreset, aZ as ColorSwatch, a_ as ColorSwatchProps, a$ as ColorSwatchSize, b0 as ColoredBadge, b1 as ColoredBadgeProps, b2 as ColumnChart, b3 as ColumnChartProps, C as ColumnDef, b4 as ColumnSeries, b5 as ComposerAttachments, b6 as ComposerAttachmentsProps, b7 as ConfirmProvider, b8 as ContainerFillChart, b9 as ContainerFillChartProps, ba as ContainerFillItem, bb as ContextMenu, bc as ContextMenuPoint, bd as ContextMenuProps, be as ContextMenuState, bf as Corners, bg as CountBadge, bh as CountBadgeProps, bi as CountBadgeTone, bj as Curve, bk as DAY_MS, bl as DEFAULT_SHELL_STRINGS, bm as DashboardTemplate, bn as DataTable, bo as DataTableColumn, bp as DataTableColumnGroup, bq as DataTableHeader, br as DataTablePage, bs as DataTableProps, bt as DataTableRowLink, bu as DataTableRowProps, bv as DatePicker, bw as DatePickerProps, bx as DateRangePicker, by as DateRangePickerProps, bz as DateTimePicker, bA as DateTimePickerProps, bB as DescriptionColumns, bC as DescriptionItem, bD as DescriptionList, bE as DescriptionListProps, bF as Dialog, bG as DialogProps, bH as DialogSize, bI as Divider, bJ as DividerProps, bK as DividerSpacing, bL as DonutChart, bM as DonutChartProps, bN as DonutSegment, bO as Drawer, bP as DrawerProps, bQ as DrawerSide, bR as DrawerSize, bS as DropdownMenu, bT as DropdownMenuAlign, bU as DropdownMenuCheckboxItem, bV as DropdownMenuDividerItem, bW as DropdownMenuEntry, bX as DropdownMenuItem, bY as DropdownMenuLabelItem, bZ as DropdownMenuLinkItem, b_ as DropdownMenuProps, b$ as DropdownMenuRadioItem, c0 as DropdownMenuSide, c1 as DropdownPositionOptions, c2 as ENGLISH, c3 as ENTER, c4 as EditableGrid, c5 as EditableGridProps, c6 as EmailTemplate, c7 as EmptyState, c8 as EmptyStateProps, c9 as EmptyValue, ca as EmptyValueProps, cb as ErrorBoundary, cc as ErrorBoundaryProps, cd as ErrorPage, ce as ErrorPageProps, cf as FileIntake, cg as FilePicker, ch as FilePickerProps, ci as FillVariant, cj as FormError, ck as FormErrorSummary, cl as FormErrorSummaryProps, cm as FormField, cn as FormFieldProps, co as FormLayoutPage, cp as FunnelChart, cq as FunnelChartProps, cr as FunnelStage, cs as GLASS_DIVIDER, cu as GROUP_COLORS, cv as GROUP_COLORS_SOLID, cw as GalleryTemplate, cx as Gap, cy as GlassOptions, cz as GlobalSearch, cA as GlobalSearchProps, cB as Grid, cC as GridCols, cD as GridColumn, cE as GridProps, cF as HeatmapChart, cG as HeatmapChartProps, cH as HelpCenter, cI as HelpCenterDoc, cJ as HelpCenterProps, cK as HexInput, cL as HistogramBin, cM as HistogramChart, cN as HistogramChartProps, cO as Hsv, cP as INPUT_BASE, cQ as INPUT_SIZES, cR as IconButton, cS as IconButtonClassesOptions, cT as IconButtonProps, cU as IconRail, cV as IconRailButton, cW as IconRailButtonProps, cX as IconRailLabels, cY as IconRailLabelsShown, cZ as IconRailOrientation, c_ as IconRailProps, c$ as Inline, d0 as InlineProps, d1 as Input, d2 as InputNumber, d3 as InputNumberProps, d4 as InputProps, d5 as InputSize, d6 as Justify, d7 as Kanban, d8 as KanbanColumn, d9 as KanbanProps, da as Kbd, db as KbdProps, dc as KbdSize, dd as Label, de as LabelClassesOptions, df as LabelProps, dg as LadderScale, dh as LineChart, di as LineChartProps, dj as LineChartSeries, dk as LinearScale, dl as ListDrop, dm as ListFooter, dn as ListLoadError, dp as ListLoadErrorProps, dq as ListMove, dr as ListRow, ds as ListRowProps, dt as LoadingSpinner, du as LoadingSpinnerProps, dv as MAX_FRACTION_DIGITS, dw as MENU_MAX_HEIGHT, dx as MOD, dy as MOTION, dz as Markdown, dz as MarkdownLite, dA as MarkdownLiteProps, dA as MarkdownProps, dB as MediaUploadField, dC as MediaUploadFieldProps, dD as MediaUploadGrid, dE as MediaUploadGridItem, dF as MediaUploadGridProps, dG as MenuPos, dH as Meter, dI as MeterProps, dJ as MetricBar, dK as MetricBarProps, dL as Milestone, dM as MilestoneKind, dN as MilestoneTimeline, dO as MilestoneTimelineProps, dQ as NEXT_CHUNK_PATH_PREFIX, dR as NativeSelect, dS as NumericKeypad, dT as NumericKeypadProps, dU as OVERLAY_OPEN_EVENT, dV as POPUP_MAX_WIDTH, dW as POST_PRODUCTION_STATUSES, dX as PageHeader, dY as PageHeaderProps, P as PaginatedResponse, dZ as Pagination, d_ as PaginationProps, d$ as PaperclipGlyph, e0 as Paragraph, e1 as ParagraphProps, e2 as PieChart, e3 as PieChartProps, e4 as PieSegment, e5 as PlotGeometry, e6 as Point, e7 as Popover, e8 as PopoverAlign, e9 as PopoverProps, ea as PopoverRenderProps, eb as PopoverSide, ec as PopupMenu, ed as PopupMenuDivider, ee as PopupMenuItem, ef as PopupMenuItemProps, eg as PopupMenuLabel, eh as PopupMenuProps, ei as PopupSubmenu, ej as PopupSubmenuProps, ek as PortalBrandingContextValue, el as PortalBrandingProvider, em as PortalBrandingProviderProps, en as ProductionTimeline, eo as ProductionTimelineProps, ep as ProductionTimelineSnapshot, eq as ProgressItem, er as PublicPortal, es as PublicPortalBranding, et as RADAR_SERIES_CAP, eu as RadarAxis, ev as RadarChart, ew as RadarChartProps, ex as RadarSeries, ey as RadialBarChart, ez as RadialBarChartProps, eA as RadialBarRow, eB as Radio, eC as RadioGroup, eD as RadioGroupOption, eE as RadioGroupOrientation, eF as RadioGroupProps, eG as RadioProps, eH as Range, eI as RangeChart, eJ as RangeChartProps, eK as RangeRow, eL as RankedBars, eM as RankedBarsProps, eN as RankedBarsRow, eO as ResizeHandle, eP as ResizeHandleProps, eQ as ResizeHandleSide, eR as ResolvedPortalBrandAsset, eS as Result, eT as ResultProps, eU as ResultStatus, eV as RevealDirection, eW as SCATTER_SERIES_CAP, eX as SERIES_SLOT_COUNT, eY as SERIES_VARS, eZ as SHELL_LANGUAGE_STORAGE_KEY, e_ as SHIFT, e$ as STAGES, f0 as STALE_CHUNK_RELOAD_COOLDOWN_MS, f1 as STALE_CHUNK_RELOAD_KEY, f2 as STATUS_VARS, f3 as SankeyChart, f4 as SankeyChartProps, f5 as SankeyLink, f6 as SankeyNode, f7 as ScatterChart, f8 as ScatterChartProps, f9 as ScatterPoint, fa as ScatterSeries, S as SearchConfig, fb as SearchListRoute, fc as SearchProvider, fd as SearchQuickAction, fe as SearchResponse, ff as SearchResult, fg as SearchableItem, fh as SearchableOption, fi as SearchableOptionGroup, fj as SearchableSelect, fk as SearchableSelectBaseProps, fl as SearchableSelectMultipleProps, fm as SearchableSelectProps, fn as Segmented, fo as SegmentedOption, fp as SegmentedProps, fq as SegmentedSize, fr as Select, fs as SelectBaseProps, ft as SelectItem, fu as SelectMultipleProps, fv as SelectOption, fw as SelectOptionGroup, fx as SelectProps, fy as SemanticGroup, fz as SettingRow, fA as SettingRowProps, fB as SeverityTone, fE as ShellLanguage, fF as ShellLanguageProvider, fG as ShellLanguageState, fH as ShellPrefsAdapter, fI as ShellPrefsProvider, fJ as ShellStrings, fK as ShellStringsOverride, fL as ShellStringsProvider, fM as SidebarActionButton, fN as SidebarActionButtonProps, fO as SidebarGroupLabel, fP as SidebarGroupLabelProps, fQ as SidebarLayout, fR as SidebarLayoutProps, fS as SidebarNavGroup, fT as SidebarNavGroupProps, fU as SidebarNavItem, fV as SidebarNavItemProps, fW as Skeleton, fX as SkeletonProps, fY as SkeletonVariant, fZ as Slider, f_ as SliderProps, f$ as SliderSize, g0 as Snippet, g1 as SnippetProps, g2 as SnippetSize, g3 as SnippetVariant, a as SortState, g4 as SortableList, g5 as SortableListProps, g6 as SortableListSpacing, g7 as Sparkline, g8 as SparklineProps, g9 as Stack, ga as StackProps, gb as StaleChunkReloadOptions, gc as StatCard, gd as StatCardProps, ge as StatTile, gf as StatTileProps, gg as Statistic, gh as StatisticProps, gi as StatisticSize, gj as StatisticTone, gk as StatusBadge, gl as StatusBadgeProvider, gm as StatusEmphasis, gn as StepItem, go as Stepper, gp as StepperProps, gq as StrokeVariant, gr as SunburstChart, gs as SunburstChartProps, gt as SunburstNode, gu as Switch, gv as SwitchProps, gw as SwitchSize, gx as TabItem, gy as Tabs, gz as TabsProps, gA as TagInput, gB as TagInputOption, gC as TagInputProps, gD as Text, gE as TextProps, gF as TextSize, gG as TextTone, gH as TextWeight, gI as Textarea, gJ as TextareaProps, gK as Theme, gL as TileButton, gM as TileButtonProps, gN as TileSize, gO as TimeAgo, gP as TimeAgoProps, gQ as TimePicker, gR as TimePickerProps, gS as TimeSeriesChart, gT as TimeSeriesChartProps, gU as TimeSeriesSeries, gV as TimelineMarker, gW as TimelineMarkerKind, gX as TimelineReport, gY as TimelineScrubProgress, gZ as TimelineTrack, g_ as TimelineTrackItem, g$ as TimelineTrackKind, h0 as TimelineTrackPending, h1 as TimelineTrackPhase, h2 as TimelineTrackPlayback, h3 as TimelineTrackProps, h4 as TimelineTrackThumb, h5 as Title, h6 as TitleLevel, h7 as TitleProps, h8 as ToastOptions, h9 as ToastPlacement, ha as Tooltip, hb as TooltipProps, hc as TopNav, hd as TopNavItem, he as TopNavProps, hf as Tree, hg as TreeDrop, hh as TreeEmptySlot, hi as TreeEmptySlotProps, hj as TreeGroup, hk as TreeGroupLabel, hl as TreeGroupProps, hm as TreeMove, hn as TreeProps, ho as TreeRow, hp as TreeRowProps, hq as TreeSeam, hr as TreeSeamProps, hs as TreemapChart, ht as TreemapChartProps, hu as TreemapItem, hv as TreemapTile, hw as UseAppUpdateOptions, hx as UseContextMenu, hy as UseProductionTimelineOpts, hz as VERSION, hA as VITE_PRELOAD_ERROR_EVENT, hB as WaterfallChart, hC as WaterfallChartProps, hD as WaterfallStep, hE as ZLayer, hF as Z_LAYERS, hG as angleScale, hH as appendKey, hI as applyCorners, hJ as applyIconSet, hK as applyThemePrefs, hL as arcPath, hM as areaBetween, hN as areaFrom, hO as autoHighlightIndex, hP as backspace, hQ as bandScale, hR as binValues, hS as budgetState, hT as bumpPath, hU as buttonClasses, hV as calcOverall, hW as calcReportOverall, hX as colorFill, hY as colorSwatchClasses, hZ as confirm, h_ as confirmDestructive, h$ as curvePath, i0 as dashFor, i2 as dismissPopups, i3 as fillFor, i4 as fillId, i5 as fmtSliderDate, i6 as fromDateKey, i7 as glassStyle, i8 as glowId, i9 as groundId, ia as groupColors, ib as hexToHsv, ic as highlightOpacity, id as hsvToHex, ie as iconButtonClasses, ig as inputClasses, ih as installStaleChunkReload, ii as isMac, ij as isSeverityTone, ik as isStaleChunkError, im as labelClasses, io as ladderScale, ip as leavesContextMenuAlone, iq as linearPath, ir as linearScale, is as logScale, it as maskId, iu as matchShellLanguage, iv as mediaFileName, iw as monotonePath, ix as niceMax, iy as openGlobalSearch, iz as parseHexColor, iA as polygonPoints, iB as popupBounds, iC as prompt, iD as pushRecentSearch, iE as radiusScale, iF as readSavedShellLanguage, iG as registerModalEscapeInterceptor, iH as resolveBrandMarkTreatment, iI as resolveCorners, iJ as resolvePortalBrandAsset, iK as resolveSeriesColor, iL as resolveShellLanguage, iM as resolveTheme, iN as sanitizeRecentSearches, iO as saveShellLanguage, iP as seriesColor, iQ as severityOf, iR as splinePath, iS as squarify, iT as stagger, iU as stepPath, iV as tabButtonId, iW as tabPanelId, iX as toDateKey, iY as toDayMs, iZ as toISODate, i_ as toast, i$ as useAppUpdate, j0 as useClickOutside, j1 as useConfirm, j2 as useContextMenu, j3 as useDebouncedValue, j4 as useDropdownPosition, j5 as useFocusTrap, j6 as useHighlight, j7 as useIsMobile, j8 as useLocalStoragePrefs, j9 as usePlotWidth, ja as usePortalBranding, jb as useProductionTimeline, jc as useScrollLock, jd as useShellLanguage, je as useShellLocale, jf as useShellPrefs, jg as useShellStrings, jh as useStatusLabel, ji as useTheme } from '../index-Dod08dsC.js';
2
2
  export { FileIntakeAlert, FileIntakeLimits, FileIntakeOptions, FileRejection, FileRejectionReason, acceptsFile, useFileIntake } from '../file-intake/index.js';
3
3
  export { ICON_NAMES, Icon, IconName, IconProps, IconTone, isIconName } from '../icons/index.js';
4
4
  export { a as IconDrawing, I as IconSet, b as activeIconSet, i as iconSets, c as iconsVersion, r as registerIconSet, d as registerIcons, e as resolveIcon, s as setDefaultIconSet, f as setIconSet, g as subscribeIcons } from '../registry-FHdUeVww.js';
5
- export { C as CurrencyFormat, D as DATE_FORMAT_OPTIONS, a as DateFormatKey, E as EMPTY_VALUE, F as FormatDateOptions, b as FormatMoneyOptions, T as TZ_AUTO, c as TimeAgoOptions, d as currencyDecimals, e as currencySymbol, f as firstDayOfWeek, g as formatBytes, h as formatDate, i as formatDateTime, j as formatMoney, k as formatTime, l as getUserDateFormat, m as getUserTimezone, s as setCurrencyFormats, n as setUserDateFormat, o as setUserTimezone, p as syncTimezoneFromProfile, t as timeAgo } from '../index-DCUzlKPZ.js';
5
+ export { C as CurrencyFormat, D as DATE_FORMAT_OPTIONS, a as DateFormatKey, E as EMPTY_VALUE, F as FormatDateOptions, b as FormatMoneyOptions, T as TZ_AUTO, c as TimeAgoOptions, d as currencyDecimals, e as currencySymbol, f as firstDayOfWeek, g as formatBytes, h as formatDate, i as formatDateTime, j as formatMoney, k as formatTime, l as getUserDateFormat, m as getUserTimezone, s as setCurrencyFormats, n as setUserDateFormat, o as setUserTimezone, p as syncTimezoneFromProfile, t as timeAgo } from '../index-DpUDK9zG.js';
6
6
  import 'react';
7
7
  import 'react/jsx-runtime';
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{APP_UPDATE_POLL_MS,Accordion,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,Banner,BarChart,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,CORNERS,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColoredBadge,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,Divider,DonutChart,Drawer,DropdownMenu,ENGLISH,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FilePicker_default as FilePicker,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GROUP_COLORS,GROUP_COLORS_SOLID,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,INPUT_BASE,INPUT_SIZES,IconButton_default as IconButton,IconRail,IconRailButton,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LineChart,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,Markdown,Markdown as MarkdownLite,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,SHELL_LANGUAGE_STORAGE_KEY,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingRow,ShellLanguageProvider,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,Skeleton,Slider,Snippet,SortableList,Sparkline,Stack,StatCard,StatTile,Statistic,StatusBadge,StatusBadgeProvider,Stepper,SunburstChart,Switch_default as Switch,Tabs,TagInput,Text,Textarea_default as Textarea,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,autoHighlightIndex,backspace,bandScale,binValues,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,groupColors,hexToHsv,highlightOpacity,hsvToHex,inputClasses,isSeverityTone,labelClasses,ladderScale,linearPath,linearScale,logScale,maskId,matchShellLanguage,mediaFileName,monotonePath,niceMax,parseHexColor,polygonPoints,radiusScale,readSavedShellLanguage,resolveCorners,resolvePortalBrandAsset,resolveSeriesColor,resolveShellLanguage,resolveTheme,saveShellLanguage,seriesColor,severityOf,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,toKey as toDateKey,toDayMs,toISODate,useAppUpdate,useClickOutside,useContextMenu,useDebouncedValue,useHighlight,usePlotWidth,usePortalBranding,useProductionTimeline,useShellLanguage,useTheme}from"../chunk-GKLJ2SYS.js";export{Breadcrumbs}from"../chunk-FZRQBHTK.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-5G4QMZGJ.js";export{EditableGrid}from"../chunk-7YFAFXQG.js";import"../chunk-BR22X7E5.js";export{ResizeHandle,SidebarLayout}from"../chunk-AUKURHBZ.js";export{VERSION}from"../chunk-67ZUPDWG.js";export{toast_default as toast}from"../chunk-KSSAVLO7.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,LoadingSpinner,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs}from"../chunk-CRI4UFBU.js";import"../chunk-5A7MWTXX.js";export{Button_default as Button,MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,Tooltip,buttonClasses,iconButtonClasses,popupBounds,useDropdownPosition}from"../chunk-EXXHI5DO.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-PGVUO7GB.js";export{GLASS_DIVIDER,glassStyle}from"../chunk-HZZNJHRH.js";import"../chunk-D65T4H6J.js";export{ConfirmProvider,Dialog,confirm,confirmDestructive,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-ECFMRDUP.js";import"../chunk-AFYQTVZO.js";export{OVERLAY_OPEN_EVENT,Z_LAYERS,dismissPopups,registerModalEscapeInterceptor}from"../chunk-X4FJ54PP.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-5J2TKKGH.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-NCQLGQYR.js";export{DATE_FORMAT_OPTIONS,EMPTY_VALUE,TZ_AUTO,currencyDecimals,currencySymbol,firstDayOfWeek,formatBytes,formatDate,formatDateTime,formatMoney,formatTime,getUserDateFormat,getUserTimezone,setCurrencyFormats,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,timeAgo}from"../chunk-S2AZZGFF.js";export{ICON_NAMES,isIconName}from"../chunk-FWOPZB6I.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-YKZHOXI4.js";
2
+ export{APP_UPDATE_POLL_MS,Accordion,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,Banner,BarChart,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,CORNERS,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColoredBadge,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,Divider,DonutChart,Drawer,DropdownMenu,ENGLISH,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FilePicker_default as FilePicker,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GROUP_COLORS,GROUP_COLORS_SOLID,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,INPUT_BASE,INPUT_SIZES,IconButton_default as IconButton,IconRail,IconRailButton,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LineChart,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,Markdown,Markdown as MarkdownLite,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,SHELL_LANGUAGE_STORAGE_KEY,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingRow,ShellLanguageProvider,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,Skeleton,Slider,Snippet,SortableList,Sparkline,Stack,StatCard,StatTile,Statistic,StatusBadge,StatusBadgeProvider,Stepper,SunburstChart,Switch_default as Switch,Tabs,TagInput,Text,Textarea_default as Textarea,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,autoHighlightIndex,backspace,bandScale,binValues,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,groupColors,hexToHsv,highlightOpacity,hsvToHex,inputClasses,isSeverityTone,labelClasses,ladderScale,linearPath,linearScale,logScale,maskId,matchShellLanguage,mediaFileName,monotonePath,niceMax,parseHexColor,polygonPoints,radiusScale,readSavedShellLanguage,resolveCorners,resolvePortalBrandAsset,resolveSeriesColor,resolveShellLanguage,resolveTheme,saveShellLanguage,seriesColor,severityOf,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,toKey as toDateKey,toDayMs,toISODate,useAppUpdate,useClickOutside,useContextMenu,useDebouncedValue,useHighlight,usePlotWidth,usePortalBranding,useProductionTimeline,useShellLanguage,useStatusLabel,useTheme}from"../chunk-RN5V7MDO.js";export{Breadcrumbs}from"../chunk-U6IUYOYS.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-A6ZY4XSQ.js";export{EditableGrid}from"../chunk-ZDCOC4IH.js";import"../chunk-BR22X7E5.js";export{ResizeHandle,SidebarLayout}from"../chunk-Z3JO7MDE.js";export{VERSION}from"../chunk-XJX3NA37.js";export{toast_default as toast}from"../chunk-OZMDKNVR.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,LoadingSpinner,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs}from"../chunk-CQN5CFKA.js";import"../chunk-5A7MWTXX.js";export{Button_default as Button,MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,Tooltip,buttonClasses,iconButtonClasses,popupBounds,useDropdownPosition}from"../chunk-EXXHI5DO.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-PGVUO7GB.js";export{GLASS_DIVIDER,glassStyle}from"../chunk-HZZNJHRH.js";import"../chunk-D65T4H6J.js";export{ConfirmProvider,Dialog,confirm,confirmDestructive,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-FIGVDYJR.js";import"../chunk-AFYQTVZO.js";export{OVERLAY_OPEN_EVENT,Z_LAYERS,dismissPopups,registerModalEscapeInterceptor}from"../chunk-X4FJ54PP.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-SXRJYJ7M.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-S5QF4VFG.js";export{DATE_FORMAT_OPTIONS,EMPTY_VALUE,TZ_AUTO,currencyDecimals,currencySymbol,firstDayOfWeek,formatBytes,formatDate,formatDateTime,formatMoney,formatTime,getUserDateFormat,getUserTimezone,setCurrencyFormats,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,timeAgo}from"../chunk-W32SKK3D.js";export{ICON_NAMES,isIconName}from"../chunk-FWOPZB6I.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-YKZHOXI4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "4.171.0",
3
+ "version": "4.173.0",
4
4
  "description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-2UIKLYAI.js";import{useWidgetSettings as n}from"./chunk-FWZUTHP5.js";import"./chunk-DSSLOQDW.js";import"./chunk-6KO2U66R.js";import"./chunk-CRI4UFBU.js";import"./chunk-5A7MWTXX.js";import"./chunk-EXXHI5DO.js";import"./chunk-PGVUO7GB.js";import"./chunk-HZZNJHRH.js";import"./chunk-D65T4H6J.js";import"./chunk-ECFMRDUP.js";import"./chunk-AFYQTVZO.js";import"./chunk-X4FJ54PP.js";import"./chunk-NCQLGQYR.js";import"./chunk-YKZHOXI4.js";import{useState as r,useRef as l,useCallback as o,useEffect as i}from"react";import{jsxs as a,Fragment as c,jsx as s}from"react/jsx-runtime";var u="calc_appearance";function d(){const[d,h]=r("0"),[m,k]=r(null),[b,p]=r(null),[g,v]=r(!1),[x,y]=r(""),[N,f]=r([]),[C,$]=r(!1),[j,w]=r(()=>e(u)),[E,L]=r(!1),[F,S]=r(j),T=l(null);n(o(()=>{S({...j}),L(!0)},[j]));const H=o(e=>{y(""),h(t=>g||"0"===t?(v(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[g]),O=o(()=>{h("0"),k(null),p(null),v(!1)},[]),U=o((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),W=o(e=>{const t=parseFloat(d);if(null!==m&&b&&!g){const e=U(m,t,b);h(String(e)),k(e),f(n=>[`${m} ${b} ${t} = ${e}`,...n].slice(0,20))}else k(t);p(e),v(!0)},[d,m,b,g,U]),A=o(()=>{if(null===m||!b)return;const e=parseFloat(d),t=U(m,e,b),n=`${m} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),y(n),h(String(t)),k(null),p(null),v(!0)},[d,m,b,U]),B=o(()=>{h(e=>String(parseFloat(e)/100))},[]),D=o(()=>{h(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);i(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?H(e.key):"."===e.key?H("."):"+"===e.key?W("+"):"-"===e.key?W("-"):"*"===e.key?W("×"):"/"===e.key?(e.preventDefault(),W("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&T.current?.contains(e.target)&&e.preventDefault(),A()):"Escape"===e.key?O():"Backspace"===e.key?h(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&B())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[H,W,A,O,B]);const I="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",X=`${I} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,P=`${I} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,R=`${I} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,M=`${I} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return a(c,{children:[
3
- /* @__PURE__ */a("div",{ref:T,className:"flex flex-col h-full",style:{opacity:j.activeOpacity/100,backdropFilter:j.activeBlur>0?`blur(${j.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */a("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */s("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:N.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */s("div",{className:"text-[11px] text-slate-400 text-right font-mono truncate",children:e},t))}),(x||b&&null!==m)&&/* @__PURE__ */s("div",{className:"text-base text-slate-600 text-right font-mono",children:x||`${m} ${b} ${g?"":d}`}),
6
- /* @__PURE__ */a("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */s("button",{onClick:()=>{navigator.clipboard.writeText(d),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */s("svg",C?{className:"h-5 w-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}:{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),
8
- /* @__PURE__ */s("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(d)})]})]}),
9
- /* @__PURE__ */a("div",{className:"grid grid-cols-4 grid-rows-5 gap-1.5 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */s("button",{onClick:O,className:R,children:"AC"}),
11
- /* @__PURE__ */s("button",{onClick:D,className:R,children:"+/−"}),
12
- /* @__PURE__ */s("button",{onClick:B,className:R,children:"%"}),
13
- /* @__PURE__ */s("button",{onClick:()=>W("÷"),className:`${P} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */s("button",{onClick:()=>H("7"),className:X,children:"7"}),
15
- /* @__PURE__ */s("button",{onClick:()=>H("8"),className:X,children:"8"}),
16
- /* @__PURE__ */s("button",{onClick:()=>H("9"),className:X,children:"9"}),
17
- /* @__PURE__ */s("button",{onClick:()=>W("×"),className:`${P} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */s("button",{onClick:()=>H("4"),className:X,children:"4"}),
19
- /* @__PURE__ */s("button",{onClick:()=>H("5"),className:X,children:"5"}),
20
- /* @__PURE__ */s("button",{onClick:()=>H("6"),className:X,children:"6"}),
21
- /* @__PURE__ */s("button",{onClick:()=>W("-"),className:`${P} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */s("button",{onClick:()=>H("1"),className:X,children:"1"}),
23
- /* @__PURE__ */s("button",{onClick:()=>H("2"),className:X,children:"2"}),
24
- /* @__PURE__ */s("button",{onClick:()=>H("3"),className:X,children:"3"}),
25
- /* @__PURE__ */s("button",{onClick:()=>W("+"),className:`${P} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */s("button",{onClick:()=>H("0"),className:`${X} col-span-2`,children:"0"}),
27
- /* @__PURE__ */s("button",{onClick:()=>H("."),className:X,children:"."}),
28
- /* @__PURE__ */s("button",{onClick:A,className:M,children:"="})]})]}),
29
- /* @__PURE__ */s(t,{open:E,onClose:()=>L(!1),title:"Calculator Settings",appearance:F,onAppearanceChange:S,onSave:()=>{w(F),localStorage.setItem(u,JSON.stringify(F)),L(!1)}})]})}export{d as default};
@@ -1 +0,0 @@
1
- export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"./chunk-ECFMRDUP.js";import"./chunk-AFYQTVZO.js";import"./chunk-X4FJ54PP.js";import"./chunk-NCQLGQYR.js";
@@ -1 +0,0 @@
1
- export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-3U47BTEV.js";import"./chunk-KSSAVLO7.js";import"./chunk-NCQLGQYR.js";
@@ -1 +0,0 @@
1
- var r="4.171.0",a=r;export{a as APP_VERSION,r as VERSION};
@@ -1,3 +0,0 @@
1
- import{useState as e,useRef as r,useEffect as t,useCallback as o}from"react";import{jsx as n}from"react/jsx-runtime";function i(n){const[i,a]=e(!1),c=r(void 0);t(()=>()=>clearTimeout(c.current),[]);return{copied:i,copy:o(e=>{e?.stopPropagation(),navigator.clipboard?.writeText(n).then(()=>{a(!0),clearTimeout(c.current),c.current=setTimeout(()=>a(!1),1500)},()=>{})},[n])}}function a({copied:e,className:r="w-4 h-4"}){/* @__PURE__ */
2
- return n("svg",e?{className:`${r} text-green-600`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:/* @__PURE__ */n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}:{className:r,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:/* @__PURE__ */n("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}function c({text:e}){const{copied:r,copy:t}=i(e);/* @__PURE__ */
3
- return n("button",{onClick:t,title:r?"Copied!":`Copy ${e}`,className:"shrink-0 text-gray-400 hover:text-gray-600 transition-colors",children:/* @__PURE__ */n(a,{copied:r})})}export{c as CopyButton,a as CopyGlyph,i as useCopyText};
@@ -1 +0,0 @@
1
- var e=null;function t(t,s,i="sine",o=.15){try{const n=(e||(e=new AudioContext),e),c=n.createOscillator(),r=n.createGain();c.type=i,c.frequency.value=t,r.gain.value=o,r.gain.exponentialRampToValueAtTime(.001,n.currentTime+s),c.connect(r),r.connect(n.destination),c.start(),c.stop(n.currentTime+s)}catch{}}var s={label:"Classic",success:()=>{t(523,.1,"sine",.1),setTimeout(()=>t(659,.1,"sine",.1),100),setTimeout(()=>t(784,.15,"sine",.1),200)},error:()=>{t(200,.15,"sawtooth",.08),setTimeout(()=>t(180,.15,"sawtooth",.08),150)},notification:()=>{t(880,.08,"sine",.12),setTimeout(()=>t(1100,.12,"sine",.1),100)},startup:()=>{t(392,.15,"sine",.08),setTimeout(()=>t(523,.15,"sine",.08),150),setTimeout(()=>t(659,.15,"sine",.08),300),setTimeout(()=>t(784,.25,"sine",.1),450)},logout:()=>{t(784,.15,"sine",.08),setTimeout(()=>t(659,.15,"sine",.08),150),setTimeout(()=>t(523,.15,"sine",.08),300),setTimeout(()=>t(392,.25,"sine",.06),450)},click:()=>{t(800,.05,"square",.05)},timerDone:()=>{for(let e=0;e<3;e++)setTimeout(()=>t(1e3,.15,"sine",.12),300*e),setTimeout(()=>t(800,.15,"sine",.1),300*e+150)}},i={classic:s,minimal:{label:"Minimal",success:()=>{t(1200,.06,"sine",.08)},error:()=>{t(300,.1,"triangle",.06)},notification:()=>{t(900,.06,"sine",.08)},startup:()=>{t(600,.12,"sine",.06),setTimeout(()=>t(900,.15,"sine",.06),120)},click:()=>{t(1e3,.03,"sine",.03)},timerDone:()=>{t(1e3,.2,"sine",.1),setTimeout(()=>t(1e3,.2,"sine",.1),400)},logout:()=>{t(900,.1,"sine",.06),setTimeout(()=>t(600,.15,"sine",.05),120)}},retro:{label:"Retro",success:()=>{t(440,.08,"square",.08),setTimeout(()=>t(550,.08,"square",.08),80),setTimeout(()=>t(660,.08,"square",.08),160),setTimeout(()=>t(880,.12,"square",.1),240)},error:()=>{t(150,.2,"square",.06),setTimeout(()=>t(100,.3,"square",.06),200)},notification:()=>{t(660,.06,"square",.08),setTimeout(()=>t(880,.06,"square",.08),80),setTimeout(()=>t(660,.06,"square",.08),160)},startup:()=>{[262,330,392,523].forEach((e,s)=>setTimeout(()=>t(e,.1,"square",.07),100*s))},click:()=>{t(600,.03,"square",.06)},timerDone:()=>{for(let e=0;e<4;e++)setTimeout(()=>t(880,.1,"square",.1),200*e)},logout:()=>{[523,392,330,262].forEach((e,s)=>setTimeout(()=>t(e,.1,"square",.07),100*s))}},soft:{label:"Soft",success:()=>{t(700,.2,"sine",.06),setTimeout(()=>t(900,.25,"sine",.06),200)},error:()=>{t(250,.2,"sine",.05)},notification:()=>{t(600,.15,"triangle",.06),setTimeout(()=>t(800,.2,"triangle",.05),180)},startup:()=>{t(400,.3,"sine",.05),setTimeout(()=>t(500,.3,"sine",.05),300),setTimeout(()=>t(600,.4,"sine",.06),600)},click:()=>{t(500,.04,"triangle",.03)},timerDone:()=>{t(700,.3,"triangle",.08),setTimeout(()=>t(700,.3,"triangle",.08),500),setTimeout(()=>t(900,.4,"triangle",.08),1e3)},logout:()=>{t(600,.3,"sine",.05),setTimeout(()=>t(400,.4,"sine",.04),300)}},arcade:{label:"Arcade",success:()=>{[523,659,784,1047].forEach((e,s)=>setTimeout(()=>t(e,.06,"square",.07),60*s))},error:()=>{t(100,.3,"sawtooth",.06),setTimeout(()=>t(80,.4,"sawtooth",.05),200)},notification:()=>{t(1047,.05,"square",.08),setTimeout(()=>t(784,.05,"square",.08),60),setTimeout(()=>t(1047,.08,"square",.1),120)},startup:()=>{[262,330,392,523,659,784].forEach((e,s)=>setTimeout(()=>t(e,.08,"square",.06),80*s))},click:()=>{t(1200,.02,"square",.05)},timerDone:()=>{for(let e=0;e<5;e++)setTimeout(()=>t(1200,.05,"square",.1),120*e)},logout:()=>{[784,659,523,392,262].forEach((e,s)=>setTimeout(()=>t(e,.06,"square",.06),60*s))}},silent:{label:"Silent",success:()=>{},error:()=>{},notification:()=>{},startup:()=>{},click:()=>{},timerDone:()=>{},logout:()=>{}}},o=Object.keys(i),n=["click","success","error","notification","startup","timerDone","logout"],c={click:"Click",success:"Success",error:"Error",notification:"Notification",startup:"Startup",timerDone:"Timer",logout:"Logout"},r="erp_sound_config";function u(){return"false"!==localStorage.getItem("erp_sounds")}function a(){const e=!u();return localStorage.setItem("erp_sounds",String(e)),e}function l(){try{const e=JSON.parse(localStorage.getItem(r)||"");if(e&&"object"==typeof e)return{click:"classic",success:"classic",error:"classic",notification:"classic",startup:"classic",timerDone:"classic",logout:"classic",...e}}catch{}return{click:"classic",success:"classic",error:"classic",notification:"classic",startup:"classic",timerDone:"classic",logout:"classic"}}function m(e,t){const s=l();s[e]=t,localStorage.setItem(r,JSON.stringify(s))}function f(e){const t={};n.forEach(s=>{t[s]=e}),localStorage.setItem(r,JSON.stringify(t))}function T(e){const t=l();return i[t[e]]||s}function g(){u()&&T("click").click()}function p(){u()&&T("success").success()}function q(){u()&&T("error").error()}function k(){u()&&T("notification").notification()}function S(){u()&&T("startup").startup()}function h(){u()&&T("timerDone").timerDone()}function D(){u()&&T("logout").logout()}function y(e,t){const s=i[e];s&&"function"==typeof s[t]&&s[t]()}export{i as SOUND_PACKS,o as SOUND_PACK_KEYS,n as SOUND_TYPES,c as SOUND_TYPE_LABELS,l as getSoundConfig,g as playClick,q as playError,D as playLogout,k as playNotification,S as playStartup,p as playSuccess,h as playTimerDone,y as previewSound,f as setAllSounds,m as setSoundForType,u as soundsEnabled,a as toggleSounds};
@@ -1 +0,0 @@
1
- import{createContext as e,useContext as o,useMemo as t,useEffect as a}from"react";import{jsx as n}from"react/jsx-runtime";var i=/* @__PURE__ */new Map;function r(e,o){const t=`${e}|${JSON.stringify(o)}`;let a=i.get(t);return a||(a=new Intl.NumberFormat(e,o),i.set(t,a)),a}function s(e,o){return o?r(o,{maximumFractionDigits:20}).format(e):String(e)}function l(e,o,t){return t?r(t,{minimumFractionDigits:o,maximumFractionDigits:o}).format(e):e.toFixed(o)}function d(e,o,t){return t?r(t,{style:"percent",minimumFractionDigits:o,maximumFractionDigits:o}).format(e/100):`${e.toFixed(o)}%`}function c(e){const o=o=>s(o,e),t=o=>function(e,o){return o?r(o,{}).format(e):e.toLocaleString()}(o,e),a=(o,t)=>l(o,t,e),n=(o,t)=>d(o,t,e);return{window:{minimize:"Minimize",restore:"Restore",maximize:"Maximize",windowed:"Windowed",pinOnTop:"Pin on top",unpin:"Unpin from top",close:"Close",windowSuffix:"window",prev:"Prev",next:"Next",snapLayouts:"Snap layouts",snapLeft:"Snap left half",snapRight:"Snap right half",snapTopLeft:"Snap top-left quarter",snapTopRight:"Snap top-right quarter",snapBottomLeft:"Snap bottom-left quarter",snapBottomRight:"Snap bottom-right quarter"},taskbar:{closeWindow:"Close window",offscreenHint:"This window is off screen — click to bring it back",offscreenDot:"Off screen — click to bring this window back",expose:"Exposé — show all open windows as thumbnails",addToDesktop:"Add to desktop",removeFromDesktop:"Remove from desktop",minimizeAllWindows:"Minimize all",restoreAllWindows:"Restore all",closeAllWindows:"Close all"},logout:{goodbye:"Goodbye",seeYou:"See you next time"},about:{aboutPrefix:"About",thisApp:"this app",openSourceLicenses:"Open Source Licenses",whatsNew:"What's New",noChangelog:"No changelog available."},table:{empty:"Nothing to show",loading:"Loading",selectAll:"Select all rows",selectRow:"Select row"},select:{none:"— None —",noMatches:"No matches",allSelected:"All options selected",clear:"Clear selection",remove:"Remove"},notifications:{title:"Notifications",markAllRead:"Mark all read",dnd:"Do not disturb",dndOn:"Do not disturb is on",caughtUp:"All caught up",empty:"No notifications yet",viewAll:"View all notifications",cardLabel:"Notification",dismiss:"Dismiss notification"},form:{errorSummaryTitle:"There is a problem"},help:{title:"Help",searchPlaceholder:"Search help…",empty:"No help articles yet.",noResults:"No articles match your search.",loading:"Loading…",pickArticle:"Pick a help article from the left.",noBody:"This article has no body yet.",draft:"Draft",newArticle:"+ New",edit:"Edit"},update:{available:"A new version is available.",refreshNow:"Refresh now"},pageTabs:{label:"Open pages",close:"Close",closeOthers:"Close other tabs",closeRight:"Close tabs to the right",closeAll:"Close all tabs",unsaved:"Unsaved changes",copy:e=>`Copy ${e}`,copied:"Copied",tabMenu:"Window menu",discardTitle:"Discard unsaved changes?",discardOne:"This page has changes that have not been saved. Close it anyway?",discardMany:"pages have changes that have not been saved. Close them anyway?",discardConfirm:"Discard and close",keepEditing:"Keep editing"},dialog:{close:"Close",cancel:"Cancel",ok:"OK",confirmTitle:"Confirm",destructiveTitle:"Confirm Action",destructiveCancel:"Dismiss",destructiveConfirm:"Delete",typeToConfirm:e=>`Type ${e} to confirm:`,promptTitle:"Enter a value"},calendar:{previousMonth:"Previous month",nextMonth:"Next month",previousYear:"Previous year",nextYear:"Next year",previousYears:"Previous years",nextYears:"Next years",monthPanel:"Choose a month",yearPanel:"Choose a year",chooseMonth:e=>`Choose a month, currently ${e}`,chooseYear:e=>`Choose a year, currently ${e}`},datePicker:{placeholder:"Select a date",dialog:"Choose a date",clear:"Clear",today:"Today",required:"Required"},dateRange:{placeholder:"Date Range",clearRange:"Clear date range",dialog:"Date range",from:"From",to:"To",start:"Start",end:"End",fromOnly:e=>`From ${e}`,toOnly:e=>`To ${e}`,range:(e,o)=>`${e} to ${o}`,required:"Required",last2Weeks:"Last 2 Weeks",lastMonth:"Last Month",last3Months:"Last 3 Months",last6Months:"Last 6 Months",last12Months:"Last 12 Months",custom:"Custom",clear:"Clear",cancel:"Cancel",apply:"Apply"},pagination:{label:"Pagination",first:"First page",previous:"Previous page",next:"Next page",last:"Last page"},list:{selected:e=>`${o(e)} selected`,selectedNotShown:(e,t)=>`${o(e)} selected, ${o(t)} not shown`,allLoaded:(e,o)=>`All ${t(e)} ${o} loaded`,count:(e,o)=>`${t(e)} ${o}`,loadedOf:(e,o,a)=>`${t(e)} of ${t(o)} ${a}`,loadingMore:"Loading more...",loadError:"Couldn't load this list",loadErrorMessage:"Something went wrong fetching these records. Check your connection and try again.",retry:"Try again"},kanban:{loading:"Loading…",empty:"No items.",dropHere:"Drop here",addItem:"Add item"},files:{attach:"Attach files",drop:"Drop files to attach",remove:e=>`Remove ${e}`,chooseMany:"Choose files",chooseOne:"Choose a file",dragMany:"or drag them here",dragOne:"or drag it here",notAccepted:(e,o)=>`${e} is not an accepted file type${o?` (${o})`:""}`,tooLarge:(e,o,t)=>`${e} is ${o} — the limit is ${t}`,tooMany:(e,t)=>`${e} was not added — ${o(t)} ${1===t?"file":"files"} is the limit`,bytes:e=>`${o(e)} B`,kilobytes:e=>`${o(e)} KB`,megabytes:e=>`${a(e,1)} MB`},media:{uploadImage:"Upload an image",uploadVideo:"Upload a video",uploadFile:"Upload a file",upload:"Upload media",cta:"Choose from library or upload",replace:"Replace",remove:"Remove",uploading:"Uploading…",cover:"Cover",add:"Add",addMedia:"Add media",empty:"No media.",removeItem:e=>`Remove ${e}`,reorder:(e,t,a)=>`${e}, item ${o(t)} of ${o(a)}. Use arrow keys to reorder.`},brandAsset:{save:e=>`Save ${e}`,remove:e=>`Remove ${e}`,discard:"Discard change",saveFailed:e=>`Could not save ${e}.`,removeFailed:e=>`Could not remove ${e}.`,region:(e,o)=>`${e} for ${o}`,usedFor:e=>`Used for ${e}.`,previews:e=>`${e} previews`,preview:"Preview",alt:(e,o)=>`${e} ${o}`},copy:{copy:"Copy",copyLabel:e=>`Copy ${e}`,copied:"Copied",copiedLabel:e=>`${e} copied`,failed:"Could not copy to the clipboard"},keypad:{backspace:"Backspace",enter:"Enter"},banner:{dismiss:"Dismiss"},badge:{remove:"Remove",removeItem:e=>`Remove ${e}`},breadcrumbs:{label:"Breadcrumb",hidden:"Hidden crumbs"},emptyState:{message:"Nothing here yet."},errors:{notFound:"Page not found",notFoundBody:"The page you're looking for doesn't exist or was moved.",forbidden:"Access denied",forbiddenBody:"You don't have permission to view this page.",noAccess:"You don't have access to this",serverError:"Something went wrong",serverErrorBody:"An unexpected error occurred. Please try again.",retry:"Try again",details:"Error details"},search:{placeholder:"Search...",escBadge:"ESC",searching:"Searching...",noResults:"No results found.",minChars:e=>`Type at least ${o(e)} characters to search...`,navigate:"navigate",open:"open",close:"close",enterKey:"Enter",escKey:"Esc",recent:"Recent",favorites:"Favorites",actions:"Actions",listLabel:"Search results",groupCount:(e,t)=>`${o(e)}${t?"+":""}`,groupLabel:(e,t,a)=>`${e}, ${o(t)}${a?"+":""}`,seeAll:e=>`See all ${e}`,searchFailed:"Search failed — check your connection and try again.",partialFailure:"Some results could not be loaded.",tabKey:"Tab",nextGroup:"next group"},grid:{selectAll:"Select all",insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",deleteRow:e=>`Delete row ${e}`,insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteColumn:e=>`Delete column ${e}`,resize:"Drag to resize · double-click to auto-fit",fill:"Drag to fill"},sidebar:{resize:"Drag to resize · double-click to reset"},resizeHandle:{label:"Resize panel",hint:"Drag to resize · double-click to reset"},number:{increase:"Increase",decrease:"Decrease"},slider:{value:e=>`${e} value`},color:{swatch:(e,o)=>`${e}: ${o}`,none:"None",panel:e=>`${e} picker`,square:"Saturation and brightness",squareValue:(e,o)=>`Saturation ${n(e,0)}, brightness ${n(o,0)}`,hue:"Hue",hex:e=>`${e} hex code`,presets:"Presets",clear:"No color"},tree:{empty:"Nothing here yet",dropHere:"Drop here",dragHint:"Drag to move",moveHint:"Alt+Arrow Up or Alt+Arrow Down moves it",insertHere:"Insert here"},layout:{desktop:"Desktop",sidebar:"Sidebar",switchToDesktop:"Switch to Desktop",switchToSidebar:"Switch to Sidebar",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",search:"Search…",navLabel:"Main menu",openWindows:"Open windows",pageResult:"Page",accountMenu:e=>`Account menu for ${e}`,profile:"My Profile",notifications:"Notifications",reportIssue:"Suggestion or Bug",signOut:"Sign Out",signOutTitle:"Sign Out",signOutMessage:"Do you want to log out? All windows will reopen when you log back in."},markdown:{screenshot:"Screenshot"},severity:{success:"ok",warning:"warning",danger:"critical",unrecognised:e=>`unrecognised severity ${e}`},meter:{noData:"no data",warningAt:e=>`warning ≥ ${o(e)}`,criticalAt:e=>`critical ≥ ${o(e)}`,noReading:"no reading",noBudget:"no budget",ofBudget:e=>`${e} of budget`,budget:"budget",hoursMinutes:(e,t)=>`${o(e)}h ${o(t)}m`,minutesSeconds:(e,t)=>`${o(e)}m ${o(t)}s`,seconds:e=>`${o(e)}s`},charts:{showTable:"Show the data as a table",loading:"Loading chart data",noData:"No data in this window.",windowStart:"Window start",windowEnd:"Window end",window:(e,t,a)=>`Time window — showing ${e} to ${t} of ${o(a)} intervals`,overIntervals:(e,t)=>`${e.join(", ")} over ${o(t)} intervals`,acrossCategories:(e,t)=>`${e.join(", ")} across ${o(t)} categories`,acrossMeasures:(e,t)=>`${e.join(", ")} across ${o(t)} measures`,breakdown:(e,t)=>`Breakdown of ${e} across ${o(t)} segments`,funnel:(e,t,a)=>`Funnel of ${o(e)} stages, ${t} down to ${a}`,radialTrack:e=>`${o(e)} categories, as concentric proportions`,radialCycle:e=>`${o(e)} categories, around a cycle`,tableFrom:"From",tableTo:"To",tableItem:"Item",tableLevel:"Level",tableSeries:"Series",inBucket:e=>`${e} in this bucket`,inCategory:e=>`${e} in this category`,value:"Value",share:"Share",count:"Count",flow:"Flow",totalFlow:"Total flow",throughput:"Throughput",open:"Open",high:"High",low:"Low",close:"Close",maximum:"Maximum",q3:"Q3",median:"Median",q1:"Q1",minimum:"Minimum",distribution:"Distribution",fiveNumber:(e,t)=>`${e}: five-number summary for ${o(t)} categories`,outliers:e=>`${o(e)} outlier${e>1?"s":""} beyond the whiskers`,price:"Price",ohlc:(e,t)=>`${e}: open, high, low and close across ${o(t)} periods`,closedAbove:"Closed above its open",closedBelow:"Closed below its open",noFlows:"No flows to chart.",chord:e=>`Flows between ${o(e)} participants`,noStages:"No stages to chart.",ofFirstStage:"Of first stage",droppedHere:"Dropped here",intensity:"Intensity",noActivity:"No activity in this window.",heatmap:(e,t,a)=>`${e} across ${o(t)} rows and ${o(a)} columns`,countAxis:"count",histogram:(e,t,a)=>`${e}: ${o(t)} bins over ${o(a)} observations`,observations:"Observations",notEnough:"Not enough eligible requests to judge.",objectiveMet:e=>`objective ${e} met`,objectiveMissed:e=>`objective ${e} missed`,nothingToPlot:"Nothing to plot.",nothingToCompare:"Nothing to compare.",other:"Other",nothingToBreakDown:"Nothing to break down.",range:"Range",rangeLabel:(e,t)=>`${e}: low and high across ${o(t)} categories`,nothingToRank:"Nothing to rank in this window.",emphasised:"(emphasised)",sankey:(e,t)=>`Flow between ${o(e)} nodes over ${o(t)} links`,noObservations:"No observations in this window.",xAxis:"x",yAxis:"y",size:"Size",scatter:(e,o,t)=>`${e.join(", ")}: ${o} against ${t}`,outsideRange:e=>`${o(e)} ${1===e?"point":"points"} outside the shown range`,waterfall:(e,t,a)=>`Waterfall of ${o(e)} steps from ${t} to ${a}`,balance:"Balance",increase:"Increase",decrease:"Decrease",runningTotal:"Running total",sunburst:(e,t)=>`Hierarchy of ${e} across ${o(t)} levels`,treemap:e=>`Treemap of ${o(e)} items`,trendUp:"up",trendDown:"down",trendFlat:"flat"},timeline:{days:e=>`${t(e)} days`,daysToToday:e=>`${t(e)} days to today`,notReached:"Not yet reached",next:"Next",more:e=>`+${o(e)} more`,today:"Today",todayTitle:e=>`Today — ${e}`,open:e=>`Open ${e}`,openButton:"Open",scrub:"Scrub the timeline",alsoToCome:e=>`Also to come: ${e.join(", ")}`,start:e=>`Start · ${e}`,events:(e,t)=>`${o(e)} events · ${t.join(", ")}`,started:e=>`started ${e}`,duration:e=>`${t(e)} day${1===e?"":"s"}`,reached:(e,t)=>`${o(e)} of ${o(t)} milestones`,milestones:e=>`${e} milestones`},production:{heading:"Production progress",start:"Start",estimated:"Estimated",estimatedCompletion:"Estimated completion",estDone:"Est. done",play:"Play",pause:"Pause",playTitle:"Play the timeline, report by report",backTo:e=>`Back to ${e}`,showing:e=>`Showing ${e}`,overall:e=>`${n(e,0)} overall`,inStock:e=>`${t(e)} pc in stock`,noReport:"No production report filed yet",leadTime:e=>`${t(e)} day${1===e?"":"s"} lead time`,report:"Production report",shipment:"Shipment",inspection:"Inspection",invoice:"Invoice",scrub:"Scrub the production timeline",label:(e,o)=>`Production reports and events, ${e} to ${o}`},containers:{items:e=>`${o(e)} items`,pieces:e=>`${o(e)} pcs`,split:(e,t)=>`(${o(e)} instr / ${o(t)} loaded)`,added:(e,t)=>`${o(e)} new (${o(t)} pcs)`,fill:(e,t)=>`${a(e,1)} / ${o(t)} m³`,total:"Total:",instructed:e=>`${a(e,2)} m³ instruction`,loaded:e=>`${a(e,2)} m³ loaded`,volume:e=>`${a(e,2)} m³`,noVolume:"Volume: N/A (no volume data for these part numbers)"},toast:{notification:"Notification"},map:{failed:"The map could not be drawn here. The list has everything it shows.",approximate:e=>`${e}, approximate location`,approximateTitle:e=>`${e} (approximate)`,places:e=>1===e?"place":"places",group:(e,t)=>`${o(e)} ${t} here`,stops:e=>`Stops ${e}`,closeBy:(e,t)=>`${o(e)} more ${t} close by, drawn when the map is closer`,spread:"Press to see them apart",cycle:"They stand on one spot: press for the next of them",fullScreen:"Full screen",leaveFullScreen:"Leave full screen",chosen:e=>`${e}, chosen on the map`,closeCard:"Close",openRecord:"Open"},pdf:{previousPage:"Previous page",nextPage:"Next page",pageOf:(e,t)=>`${o(e)} / ${o(t)}`,zoomOut:"Zoom out",zoomIn:"Zoom in",zoom:"Zoom",fitWidth:"Fit width",fitPage:"Fit page",fit:"Fit",fitHint:"Fit to the pane: follows its size until you zoom by hand",print:"Print",download:"Download",email:"Email",loading:"Loading PDF…",loadFailed:"Failed to load PDF",allowPopups:"Allow popups to print"}}}var p=c(),u=/* @__PURE__ */new Map;var h=e(p),m=e(null),g=/* @__PURE__ */new Set;var $=p,f={};function w(){return $}function b({value:e=f,locale:i,children:r}){const s=o(m),l=t(()=>function(e){if(e)try{return Intl.getCanonicalLocales(e)[0]}catch{return void(g.has(e)||(g.add(e),console.error(`[efficient-shell] ShellStringsProvider: locale="${e}" is not a BCP 47 language tag, so it is ignored and numbers and dates keep their default formatting. Pass a tag such as "de-DE" or "ja".`)))}}(i),[i]),d=void 0===i?s?.locale:l,w=t(()=>{const o=function(e){if(!e)return p;let o=u.get(e);return o||(o=c(e),u.set(e,o)),o}(d),t={};for(const a of Object.keys(o))t[a]={...o[a],...e[a]??{}};return t},[e,d]),b=t(()=>({locale:d}),[d]),v=null!==s;return a(()=>{if(!v)return $=w,()=>{$===w&&($=p)}},[w,v]),/* @__PURE__ */n(m.Provider,{value:b,children:/* @__PURE__ */n(h.Provider,{value:w,children:r})})}function v(){return o(h)}function y(){return o(m)?.locale}function S(e){const[o="",...t]=e("\0").split("\0");return[o,t.join("")]}export{p as DEFAULT_SHELL_STRINGS,b as ShellStringsProvider,w as currentShellStrings,l as formatFixed,d as formatPercent,s as formatPlain,S as splitAround,y as useShellLocale,v as useShellStrings};
@@ -1 +0,0 @@
1
- export{SOUND_PACKS,SOUND_PACK_KEYS,SOUND_TYPES,SOUND_TYPE_LABELS,getSoundConfig,playClick,playError,playLogout,playNotification,playStartup,playSuccess,playTimerDone,previewSound,setAllSounds,setSoundForType,soundsEnabled,toggleSounds}from"./chunk-BUTSU7FO.js";