efficient-shell 7.70.0 → 7.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Browser-XDIOSJS4.js → Browser-5XJ3XNPZ.js} +14 -14
- package/dist/Calculator-GQGK6DO3.js +29 -0
- package/dist/ConfirmDialog-YVFPLUQH.js +1 -0
- package/dist/{CurrencyConverter-YEG2OFM7.js → CurrencyConverter-UPCIPOFS.js} +8 -8
- package/dist/{Documents-MRYWQZ6F.js → Documents-VNXTKUCK.js} +30 -30
- package/dist/Files-UROUCEP6.js +87 -0
- package/dist/{Notepad-PWMJWNUE.js → Notepad-NZNQ4LN5.js} +15 -15
- package/dist/PdfViewer-YELEO346.js +1 -0
- package/dist/{PomodoroTimer-7PWB2HLD.js → PomodoroTimer-JPWZ4DDT.js} +8 -8
- package/dist/{Preview-XMWD3UNB.js → Preview-Q46CQBXU.js} +56 -56
- package/dist/Sidebar-FS2PX6DU.js +43 -0
- package/dist/{Spreadsheet-M2KRJ7BF.js → Spreadsheet-2UFPQX3D.js} +14 -14
- package/dist/{Stock-EO7DOEEF.js → Stock-FRUP3BIN.js} +3 -3
- package/dist/{Weather-Y6E3HASC.js → Weather-MQOSCQQR.js} +16 -16
- package/dist/{WorldClock-HXGPRRQZ.js → WorldClock-7GQYAE4T.js} +6 -6
- package/dist/ai/index.js +18 -18
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-RDLWLATO.js → chunk-3E27HV76.js} +2 -2
- package/dist/{chunk-BIR6UUSP.js → chunk-3NYPZO4K.js} +4 -4
- package/dist/{chunk-Q2A75VYD.js → chunk-43TOBCP4.js} +5 -5
- package/dist/{chunk-YSJA274H.js → chunk-5G76CZPP.js} +2 -2
- package/dist/{chunk-I7OLF2FL.js → chunk-5MCD5KGU.js} +8 -8
- package/dist/chunk-7FA25555.js +466 -0
- package/dist/{chunk-JVSFX53V.js → chunk-A5UR5LGU.js} +7 -7
- package/dist/chunk-A7XLRGZQ.js +1040 -0
- package/dist/chunk-EJ4RMSQB.js +1 -0
- package/dist/chunk-F6FTF37T.js +46 -0
- package/dist/chunk-G5GERM76.js +2 -0
- package/dist/{chunk-4EOL3HTG.js → chunk-IF3ZX46R.js} +13 -13
- package/dist/{chunk-XMSL2GJP.js → chunk-L5X6V677.js} +1 -1
- package/dist/{chunk-XA4APY3B.js → chunk-MY4HINJT.js} +1 -1
- package/dist/{chunk-2WZP2RMC.js → chunk-MYUJDXQC.js} +1 -1
- package/dist/chunk-N55MVC2J.js +1 -0
- package/dist/{chunk-PZ53QKHH.js → chunk-OKFO3XYS.js} +3 -3
- package/dist/{chunk-EU4BCXGA.js → chunk-RWNNFCSA.js} +1 -1
- package/dist/{chunk-4ZBKHQVW.js → chunk-RZHHSQDO.js} +13 -13
- package/dist/{chunk-WS3P7QXT.js → chunk-SBA7JZ72.js} +65 -65
- package/dist/{chunk-44BJ3XGZ.js → chunk-USHLHGAH.js} +8 -8
- package/dist/chunk-UULKUZAG.js +1 -0
- package/dist/{chunk-6I4ZV67D.js → chunk-VB2Q65XD.js} +2 -2
- package/dist/{chunk-CCCVRRC7.js → chunk-WLGJ7OCM.js} +1 -1
- package/dist/{chunk-YJIG2KT3.js → chunk-YIC644QO.js} +3 -3
- package/dist/format/index.d.ts +1 -1
- package/dist/format/index.js +1 -1
- package/dist/icons/efficient-glyphs.d.ts +486 -0
- package/dist/icons/efficient-glyphs.js +1 -0
- package/dist/icons/efficient-looks.d.ts +1007 -6
- package/dist/icons/efficient-looks.js +915 -915
- package/dist/icons/efficient-meanings.d.ts +425 -0
- package/dist/icons/efficient-meanings.js +1 -0
- package/dist/icons/efficient.d.ts +5 -897
- package/dist/icons/efficient.js +1 -466
- package/dist/{index-BpCIWxCw.d.ts → index-CZGuHIbF.d.ts} +2 -86
- package/dist/{index-CHufemKB.d.ts → index-aXJMK0gn.d.ts} +85 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +274 -274
- package/dist/map/index.d.ts +9 -3
- package/dist/map/index.js +13 -13
- package/dist/map-site.css +4 -3
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +1 -1
- package/package.json +11 -1
- package/dist/Calculator-TTFPAPP7.js +0 -29
- package/dist/ConfirmDialog-JP35CDMP.js +0 -1
- package/dist/Files-MJPDM7I3.js +0 -87
- package/dist/PdfViewer-LALOZLBP.js +0 -1
- package/dist/Sidebar-NWSMRAIE.js +0 -43
- package/dist/chunk-6MZFPE5S.js +0 -1040
- package/dist/chunk-7AQUUDJL.js +0 -1
- package/dist/chunk-AA5RO6ER.js +0 -47
- package/dist/chunk-AP2QEJXQ.js +0 -1
- package/dist/chunk-DELNCIUK.js +0 -2
package/dist/map/index.d.ts
CHANGED
|
@@ -19,7 +19,9 @@ import * as maplibre_gl from 'maplibre-gl';
|
|
|
19
19
|
* only, styled by `efficient-shell/map-site.css` from CSS variables the host
|
|
20
20
|
* sets: `--rosh-map-pin`, `--rosh-map-pin-text`, `--rosh-map-pin-edge`,
|
|
21
21
|
* `--rosh-map-ring`, `--rosh-map-radius`, `--rosh-map-frame`, `--rosh-map-font`.
|
|
22
|
-
* There is no frame of its own: the section around it is the frame.
|
|
22
|
+
* There is no frame of its own: the section around it is the frame. The look
|
|
23
|
+
* fetches that sheet itself when a map mounts (`sheet`), so a host never
|
|
24
|
+
* imports it and a page without a map never pays for it.
|
|
23
25
|
*/
|
|
24
26
|
type MapLook = 'portal' | 'site';
|
|
25
27
|
interface MapLookClasses {
|
|
@@ -51,6 +53,9 @@ interface MapLookClasses {
|
|
|
51
53
|
badge: (tone: string | undefined) => string;
|
|
52
54
|
/** Where a pin's `iconNode` is rendered. */
|
|
53
55
|
iconHost: string;
|
|
56
|
+
/** The stylesheet this look's classes need, fetched when a map mounts.
|
|
57
|
+
* None for a look the kit's own stylesheet already dresses. */
|
|
58
|
+
sheet?: () => Promise<unknown>;
|
|
54
59
|
}
|
|
55
60
|
declare const MAP_LOOKS: Record<MapLook, MapLookClasses>;
|
|
56
61
|
|
|
@@ -224,8 +229,9 @@ declare function EntityMap({ pins, selectedKey, focus, onSelect, ariaLabel, clas
|
|
|
224
229
|
cooperativeGestures?: boolean | 'coarse';
|
|
225
230
|
/** How it is dressed (`looks.ts`): `'portal'`, the portals' map, or `'site'`,
|
|
226
231
|
* a public website's — plain classes from `efficient-shell/map-site.css`,
|
|
227
|
-
* coloured by the host's `--rosh-map-*` variables, with no frame of its own
|
|
228
|
-
* Read when the map mounts and whenever
|
|
232
|
+
* coloured by the host's `--rosh-map-*` variables, with no frame of its own;
|
|
233
|
+
* the map fetches that sheet itself. Read when the map mounts and whenever
|
|
234
|
+
* it draws. */
|
|
229
235
|
look?: MapLook;
|
|
230
236
|
/** The tiles' light or dark style; the shell's own theme when unset. A
|
|
231
237
|
* website passes its section's own choice. */
|
package/dist/map/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{Button_default as e}from"../chunk-DELNCIUK.js";import"../chunk-RDLWLATO.js";import{rootIsDark as t,ROOT_THEME_ATTRIBUTES as n}from"../chunk-7IQ3B77H.js";import"../chunk-D65T4H6J.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import{useShellStrings as r}from"../chunk-2EJRVQ3Y.js";import"../chunk-C3QOHMR6.js";import{SpinnerRing as o}from"../chunk-2J6F4EE7.js";import{Icon as a}from"../chunk-76DRQSJM.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var y="maplibregl-compact-show";function b(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(y)&&(e.classList.remove(y),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x=20,v=12,w=480,k={center:[0,0],left:[x,0],right:[-20,0],top:[0,x],"top-left":[0,x],"top-right":[0,x],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},N=(e,t=12)=>Math.max(0,Math.floor(e-t-v-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-v,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<v?(i="-left",c=Math.max(0,v-e.x)):e.x+t.width/2>n.width-v&&(i="-right",c=-Math.max(0,e.x-(n.width-v))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var C="maplibre-gl-worker.mjs",L=e=>`/maplibre-gl/${e}/${C}`,E=null;function $(){return E??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(L(e.getVersion())),e)).catch(e=>{throw E=null,e}),E}var S=24,j=28,A=29;function B(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(j,12+8*e.length);return t+t%2}var R=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function O(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var T=e=>R(e.x,e.y,e.width,e.height);function F(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(O(T(e[t]),T(e[n])))return[e[t],e[n]];return null}function K(e,t=[]){const n=[],r=e=>t.some(t=>O(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:j,height:j,under:0}));for(let e=F(o);e;e=F(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(B(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(T(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=R(t.x,t.y,S,S),l=o.find(t=>O(T(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>O(T(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:S,height:S,under:0})}return{groups:[...o,...a],hidden:n}}function W(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 q(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:n}),()=>t.disconnect()}var _=t;var H=(...e)=>e.filter(Boolean).join(" "),I=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function D(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-")&&!I.test(r.slice(7))})}var P="ring-2 ring-gray-900 ring-offset-2",J={portal:{frame:e=>H("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>H("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return H("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!D(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-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":P),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>H("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",!D(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>H("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&P),badge:e=>H("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-white text-gray-900"),iconHost:"contents"},site:{frame:e=>H("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>H("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>H("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>H("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>H("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon"}},Q="routes",Z=["routes-road","routes-estimate"];function G(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(),U(n)}function U(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 V={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},X={center:[30,20],zoom:1};var Y="http://www.w3.org/2000/svg",ee=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,te=(...e)=>e.filter(Boolean).join(" ");function ne(e){const t=document.createElementNS(Y,"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(Y,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function re(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function oe({pins:t,selectedKey:n,focus:o,onSelect:a,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:v,marks:w,groupCrowded:C=!1,noun:L,highlightKey:E=null,picking:A=!1,onPick:z,card:R,cardMinMapWidth:O=480,fullScreen:T,initialView:F=X,cooperativeGestures:H=!1,look:I="portal",theme:D}){const P=r().map,Y=l(null),oe=l(null),se=l(null),ie=l(null),ce=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,ye]=s(!1),[be,xe]=s(!1),ve=d(q,_,()=>!1),we=D??(ve?"dark":"light"),ke=J[I],Ne=l({onSelect:a,onPick:z,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:P,noun:L,looks:ke});i(()=>{Ne.current={onSelect:a,onPick:z,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:P,noun:L,looks:ke}});const Me=c(()=>{const e=se.current,{pins:t,selectedKey:n}=Ne.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:ee()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=se.current,r=ie.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.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 s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>W(e,s.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=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.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,i))),duration:ee()?0:600})},[]),Ee=c(()=>{const e=se.current,t=ie.current;if(!e||!t||!Y.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(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=[...Y.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=K([...ue.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 c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(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)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.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)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?B(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const y=m.button.firstElementChild;y.textContent=g;const b=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));y.className!==b&&(y.className=b),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?j:S),height:t.button.offsetHeight||(null!=t.pin.stop?j:S)}:n?{at:n.mark,width:n.element.offsetWidth||j,height:n.element.offsetHeight||j}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);i(()=>{if(Ee(),!Y.current)return;const e=new ResizeObserver(()=>Ee());e.observe(Y.current);for(const t of Y.current.children)t.contains(oe.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await $();if(e||!oe.current)return;ie.current=o,t=new o.Map({container:oe.current,style:V[we],center:F.center,zoom:F.zoom,attributionControl:v?{compact:!0,customAttribution:v}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===H?window.matchMedia("(pointer: coarse)").matches:H}),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=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(F.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",Ee),t.on("moveend",Ee),t.on("resize",Ee),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(oe.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(oe.current),se.current=t,ye(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),se.current=null}},[]);const $e=l(we);i(()=>{fe&&se.current&&$e.current!==we&&($e.current=we,se.current.setStyle(V[we]))},[fe,we]),i(()=>{const e=se.current,n=ie.current;if(!fe||!e||!n)return;ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=ke.pinButton(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 s=document.createElement("span");if(re(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(ne(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ke.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),ce.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,re(r,t.data),r.className=ke.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),ce.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}Ee()},[fe,t,w,C,Ee,I]),i(()=>{fe&&Ee()},[fe,n,E,Ee]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=se.current,n=ie.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.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})},[fe,t,w,x]),i(()=>{const e=se.current;if(!fe||!e)return;const t=(y??[]).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(),U(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?G(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(Q);if(s&&(s.attribution||"")!==n){for(const t of Z)e.getLayer(t)&&e.removeLayer(t);e.removeSource(Q)}const i=e.getSource(Q);i?i.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)}},[fe,y,we]),i(()=>{const e=se.current;if(!fe||!e||!o)return;const n=t.find(e=>e.key===o.key);if(!n)return;const r=e.getZoom(),a=C?W(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),r):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(r,13,a))};ee()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,o?.n]);const[Se,je]=s(!1);i(()=>{const e=Y.current;if(!e)return;const t=()=>je(e.clientWidth<O);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[O]);const Ae=n?t.find(e=>e.key===n)??null:null,Be=Ae?.key??null,ze=Ae?.lng??0,Re=Ae?.lat??0,Oe=fe&&!Se&&null!=R&&!!Ae,[Te,Fe]=s(null);i(()=>{const e=se.current,t=ie.current;if(!(Oe&&e&&t&&Be))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:k,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([ze,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"),s=Ne.current.looks===J.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Fe(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));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(),Y.current)+8,s=`${N(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(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:ee()?0:250}),Ee()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Fe(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Be)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Oe,Be,ze,Re,Ee]);const Ke=T?.active??!1,We=l(T?.onChange);i(()=>{We.current=T?.onChange}),i(()=>{if(!T)return;const e=document.documentElement;Ke&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Ke&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Ke]);const qe=!!T;return i(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||We.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:Y,className:te(ke.frame(A),g),children:[
|
|
3
|
-
/* @__PURE__ */h("div",{className:ke.fill,children:/* @__PURE__ */h("div",{ref:
|
|
4
|
-
return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function
|
|
5
|
-
return h(
|
|
6
|
-
/* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${
|
|
2
|
+
import{Button_default as e}from"../chunk-G5GERM76.js";import"../chunk-3E27HV76.js";import{rootIsDark as t,ROOT_THEME_ATTRIBUTES as n}from"../chunk-7IQ3B77H.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import"../chunk-D65T4H6J.js";import{Icon as r}from"../chunk-76DRQSJM.js";import{useShellStrings as o}from"../chunk-2EJRVQ3Y.js";import"../chunk-C3QOHMR6.js";import{SpinnerRing as a}from"../chunk-2J6F4EE7.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var y="maplibregl-compact-show";function b(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(y)&&(e.classList.remove(y),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x=20,w=12,v=480,k={center:[0,0],left:[x,0],right:[-20,0],top:[0,x],"top-left":[0,x],"top-right":[0,x],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},N=(e,t=12)=>Math.max(0,Math.floor(e-t-w-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-w,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<w?(i="-left",c=Math.max(0,w-e.x)):e.x+t.width/2>n.width-w&&(i="-right",c=-Math.max(0,e.x-(n.width-w))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var C="maplibre-gl-worker.mjs",E=e=>`/maplibre-gl/${e}/${C}`,L=null;function $(){return L??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(E(e.getVersion())),e)).catch(e=>{throw L=null,e}),L}var S=null;var j=24,A=28,B=29;function z(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 R(e){const t=Math.max(A,12+8*e.length);return t+t%2}var O=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function F(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var T=e=>O(e.x,e.y,e.width,e.height);function K(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(F(T(e[t]),T(e[n])))return[e[t],e[n]];return null}function W(e,t=[]){const n=[],r=e=>t.some(t=>F(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:A,height:A,under:0}));for(let e=K(o);e;e=K(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=R(z(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(T(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=O(t.x,t.y,j,j),l=o.find(t=>F(T(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>F(T(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:j,height:j,under:0})}return{groups:[...o,...a],hidden:n}}function q(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 _=t;var I=(...e)=>e.filter(Boolean).join(" "),P=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function D(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-")&&!P.test(r.slice(7))})}var G="ring-2 ring-gray-900 ring-offset-2",J={portal:{frame:e=>I("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>I("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return I("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!D(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-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":G),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>I("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",!D(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>I("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&G),badge:e=>I("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-white text-gray-900"),iconHost:"contents"},site:{frame:e=>I("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>I("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>I("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>I("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>I("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon",sheet:function(){return S??=import("efficient-shell/map-site.css").catch(e=>{throw S=null,e}),S}}},Q="routes",Z=["routes-road","routes-estimate"];function V(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(),U(n)}function U(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 X={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},Y={center:[30,20],zoom:1};var ee="http://www.w3.org/2000/svg",te=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,ne=(...e)=>e.filter(Boolean).join(" ");function re(e){const t=document.createElementNS(ee,"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(ee,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function oe(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function ae({pins:t,selectedKey:n,focus:r,onSelect:a,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:w,marks:v,groupCrowded:C=!1,noun:E,highlightKey:L=null,picking:S=!1,onPick:B,card:R,cardMinMapWidth:O=480,fullScreen:F,initialView:T=Y,cooperativeGestures:K=!1,look:I="portal",theme:P}){const D=o().map,G=l(null),ee=l(null),ae=l(null),ie=l(null),ce=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,ye]=s(!1),[be,xe]=s(!1),we=d(H,_,()=>!1),ve=P??(we?"dark":"light"),ke=J[I],Ne=l({onSelect:a,onPick:B,picking:S,pins:t,selectedKey:n,highlightKey:L,groupCrowded:C,strings:D,noun:E,looks:ke});i(()=>{Ne.current={onSelect:a,onPick:B,picking:S,pins:t,selectedKey:n,highlightKey:L,groupCrowded:C,strings:D,noun:E,looks:ke}}),i(()=>{ke.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[ke]);const Me=c(()=>{const e=ae.current,{pins:t,selectedKey:n}=Ne.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:te()?0:400})},[]),Ce=l(!1),Ee=c((e,t)=>{const n=ae.current,r=ie.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.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 s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>q(e,s.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=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.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,i))),duration:te()?0:600})},[]),Le=c(()=>{const e=ae.current,t=ie.current;if(!e||!t||!G.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(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=[...G.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=W([...ue.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 c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(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)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.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(),Ee(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?z(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const y=m.button.firstElementChild;y.textContent=g;const b=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));y.className!==b&&(y.className=b),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?A:j),height:t.button.offsetHeight||(null!=t.pin.stop?A:j)}:n?{at:n.mark,width:n.element.offsetWidth||A,height:n.element.offsetHeight||A}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Ee]);i(()=>{if(Le(),!G.current)return;const e=new ResizeObserver(()=>Le());e.observe(G.current);for(const t of G.current.children)t.contains(ee.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await $();if(e||!ee.current)return;ie.current=o,t=new o.Map({container:ee.current,style:X[ve],center:T.center,zoom:T.zoom,attributionControl:w?{compact:!0,customAttribution:w}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===K?window.matchMedia("(pointer: coarse)").matches:K}),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=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(T.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",Le),t.on("moveend",Le),t.on("resize",Le),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(ee.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(ee.current),ae.current=t,ye(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),ae.current=null}},[]);const $e=l(ve);i(()=>{fe&&ae.current&&$e.current!==ve&&($e.current=ve,ae.current.setStyle(X[ve]))},[fe,ve]),i(()=>{const e=ae.current,n=ie.current;if(!fe||!e||!n)return;ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=ke.pinButton(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 s=document.createElement("span");if(oe(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(re(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ke.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),ce.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of v??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,oe(r,t.data),r.className=ke.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),ce.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}Le()},[fe,t,v,C,Le,I]),i(()=>{fe&&Le()},[fe,n,L,Le]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=ae.current,n=ie.current,r=x?[...t,...v??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.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})},[fe,t,v,x]),i(()=>{const e=ae.current;if(!fe||!e)return;const t=(y??[]).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(),U(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?V(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(Q);if(s&&(s.attribution||"")!==n){for(const t of Z)e.getLayer(t)&&e.removeLayer(t);e.removeSource(Q)}const i=e.getSource(Q);i?i.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)}},[fe,y,ve]),i(()=>{const e=ae.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=C?q(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};te()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[Se,je]=s(!1);i(()=>{const e=G.current;if(!e)return;const t=()=>je(e.clientWidth<O);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[O]);const Ae=n?t.find(e=>e.key===n)??null:null,Be=Ae?.key??null,ze=Ae?.lng??0,Re=Ae?.lat??0,Oe=fe&&!Se&&null!=R&&!!Ae,[Fe,Te]=s(null);i(()=>{const e=ae.current,t=ie.current;if(!(Oe&&e&&t&&Be))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:k,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([ze,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"),s=Ne.current.looks===J.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Te(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));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(),G.current)+8,s=`${N(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(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:te()?0:250}),Le()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Te(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Be)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Oe,Be,ze,Re,Le]);const Ke=F?.active??!1,We=l(F?.onChange);i(()=>{We.current=F?.onChange}),i(()=>{if(!F)return;const e=document.documentElement;Ke&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Ke&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Ke]);const qe=!!F;return i(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||We.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:G,className:ne(ke.frame(S),g),children:[
|
|
3
|
+
/* @__PURE__ */h("div",{className:ke.fill,children:/* @__PURE__ */h("div",{ref:ee,className:ke.box,role:"region","aria-label":u})}),be&&/* @__PURE__ */h("p",{className:ke.failed,children:D.failed}),F&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>F.onChange(!F.active),leftIcon:/* @__PURE__ */h(se,{leave:F.active}),children:F.active?D.leaveFullScreen:D.fullScreen}),f,null!=R&&!Oe&&/* @__PURE__ */h("div",{"data-map-card":"",className:ke.cardInline,children:R}),Oe&&Fe?p(R,Fe):null,fe&&/* @__PURE__ */h(le,{pins:t,hosts:he.current,hostClass:ke.iconHost})]})}function le({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
|
|
4
|
+
return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function se({leave:e}){/* @__PURE__ */
|
|
5
|
+
return h(r,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function ie(){const[e,t]=s(null);return{highlightKey:e,pointAt:c(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var ce=3e3,ue=e=>!!e?.pending&&3e3,de=e=>`${e.kind}:${e.id}`,pe=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function me(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 he={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"}},ge=["importer","dealer","retail","supplier","delivery_location","warehouse"];function fe(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var ye=(e,t=he)=>t[e]?.tone??"bg-gray-700 text-white",be=(e,t=he)=>t[e]?.label??e,xe=(e,t)=>ye(fe(e),t);function we(e,t,n=he){return null!=t?String(t):(n[fe(e)]?.label??"").charAt(0).toUpperCase()}var ve=["delivery_location","warehouse"];function ke(e,t=ve){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(de(o),++r);return n}function Ne(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)pe(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 Ce(e){const t=[...new Set(e.filter(pe).map(fe))];return[...ge.filter(e=>t.includes(e)),...t.filter(e=>!ge.includes(e))]}function Ee(e,t){return e.filter(e=>!pe(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(de(e)),r=me(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:de(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function Le({categories:e,palette:t=he,floating:n=!0}){return e.length<2?null:/* @__PURE__ */h("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-3 py-2 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-2",children:[
|
|
6
|
+
/* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${ye(e,t)}`}),be(e,t)]},e))})}function $e({point:t,number:n,onOpen:a,onClose:l,palette:s=he}){const i=me(t.placement),c=fe(t),u=o().map;/* @__PURE__ */
|
|
7
7
|
return m("section",{"aria-label":u.chosen(t.label),className:"absolute bottom-3 left-3 right-3 z-10 max-w-md space-y-2 rounded-lg border border-gray-200 bg-white p-3 shadow-(--elevation-panel)",children:[
|
|
8
8
|
/* @__PURE__ */m("div",{className:"flex items-start justify-between gap-2",children:[
|
|
9
9
|
/* @__PURE__ */m("div",{className:"min-w-0",children:[
|
|
10
10
|
/* @__PURE__ */m("h3",{className:"text-sm font-semibold text-gray-900 [overflow-wrap:anywhere]",children:[null!=n&&/* @__PURE__ */m("span",{className:"mr-1 text-gray-400",children:[n,"."]}),t.label,t.code&&/* @__PURE__ */h("span",{className:"ml-2 text-xs font-normal text-gray-400",children:t.code})]}),
|
|
11
|
-
/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s[c]?
|
|
12
|
-
/* @__PURE__ */h("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */h(
|
|
13
|
-
/* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:t.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),t.matched&&"approximate"===t.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",t.matched]}),
|
|
11
|
+
/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s[c]?be(c,s):t.category})]}),
|
|
12
|
+
/* @__PURE__ */h("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */h(r,{name:"close","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2})})]}),
|
|
13
|
+
/* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:t.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),t.matched&&"approximate"===t.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",t.matched]}),a&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:a,children:u.openRecord})})]})}function Se(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>ue(e.state.data)})}function je({queryKey:e,queryFn:t,refreshSignal:n,onOpen:r,ariaLabel:o,title:c="Locations",palette:d=he,numbers:p,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:y,isError:b,refetch:x}=Se(e,t,{staleTime:0}),w=l(!1);i(()=>{w.current?x():w.current=!0},[n]);const[v,k]=s(null),N=u(()=>y?.points??[],[y]),M=u(()=>p??ke(N),[p,N]),C=u(()=>N.filter(pe).map(e=>({key:de(e),label:e.label,lat:e.lat,lng:e.lng,glyph:we(e,M.get(de(e))??null,d),tone:xe(e,d),approximate:"approximate"===e.placement})),[N,M,d]),E=u(()=>Ee(N,M),[N,M]),L=u(()=>Ce(N),[N]),$=y?.pending??0,S=N.find(e=>de(e)===v)??null,j=S&&r?r(S):null;/* @__PURE__ */
|
|
14
14
|
return m("section",{"aria-label":c,className:`flex min-w-0 flex-col ${g}`,children:[
|
|
15
15
|
/* @__PURE__ */m("div",{className:"flex min-h-[30px] items-center justify-between mb-2",children:[
|
|
16
|
-
/* @__PURE__ */h("h3",{className:"text-sm font-semibold text-gray-900",children:c}),y&&/* @__PURE__ */h("span",{className:"text-xs text-gray-500",children:Ne(
|
|
17
|
-
/* @__PURE__ */m(
|
|
16
|
+
/* @__PURE__ */h("h3",{className:"text-sm font-semibold text-gray-900",children:c}),y&&/* @__PURE__ */h("span",{className:"text-xs text-gray-500",children:Me(Ne(N))})]}),
|
|
17
|
+
/* @__PURE__ */m(ae,{pins:C,selectedKey:v,focus:null,onSelect:k,ariaLabel:o,className:f,children:[
|
|
18
18
|
/* @__PURE__ */m("div",{className:"absolute left-3 top-3 z-10 flex max-w-[70%] flex-col items-start gap-2",children:[
|
|
19
|
-
/* @__PURE__ */h(Le,{categories:
|
|
20
|
-
/* @__PURE__ */h("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!b&&($>0||
|
|
21
|
-
/* @__PURE__ */h(
|
|
19
|
+
/* @__PURE__ */h(Le,{categories:L,palette:d,floating:!1}),b&&/* @__PURE__ */m("div",{className:"flex items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 min-h-8 py-1 text-xs text-gray-600 shadow-sm",children:["Couldn’t load the locations.",
|
|
20
|
+
/* @__PURE__ */h("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!b&&($>0||E.length>0)&&/* @__PURE__ */m("div",{className:"max-w-full space-y-0.5 rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs shadow-sm","aria-live":"polite",children:[$>0&&/* @__PURE__ */m("p",{className:"flex items-center gap-2 text-gray-500",children:[
|
|
21
|
+
/* @__PURE__ */h(a,{}),"Locating ",$," address",1===$?"":"es"]}),E.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),E.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",E.length-3," more not on the map"]})]})]}),S&&/* @__PURE__ */h($e,{point:S,number:M.get(de(S))??null,onOpen:j,onClose:()=>k(null),palette:d})]})]})}export{v as CARD_MIN_MAP_WIDTH,y as COMPACT_SHOW,ae as EntityMap,je as LocationsMap,C as MAPLIBRE_WORKER_FILE,B as MAP_APART_PX,he as MAP_CATEGORIES,J as MAP_LOOKS,A as MAP_STOP_PX,j as MAP_TARGET_PX,Le as MapLegend,ce as PENDING_POLL_MS,ve as SECONDARY_KINDS,$e as SelectedCard,N as cardMaxHeight,be as categoryLabel,ye as categoryTone,b as foldAttributionOnce,pe as isOnMap,W as layoutPins,Ce as legendCategories,$ as loadMapLibre,ke as locationNumbers,E as mapLibreWorkerUrl,ue as mapPointsRefetchInterval,Ee as offMapNotes,fe as pinCategory,we as pinGlyph,xe as pinTone,M as placeCard,me as placementNote,de as pointKey,z as stopsLabel,Ne as summarize,Me as summaryText,ie as useMapHighlight,Se as useMapPoints,q as zoomApart};
|
package/dist/map-site.css
CHANGED
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
* --rosh-map-radius the frame's corners --rosh-map-frame the frame's ground
|
|
12
12
|
* --rosh-map-font the face of counts and glyphs
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
* mounts)
|
|
16
|
-
* written, by any host, with
|
|
14
|
+
* A host does not load it: EntityMap fetches it with MapLibre's own sheet when
|
|
15
|
+
* a site-look map mounts (`loadSiteLookSheet`), so only pages that draw a map
|
|
16
|
+
* pay for it. Plain CSS on purpose: it is read as written, by any host, with
|
|
17
|
+
* no build step.
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
.rosh-map-frame {
|
package/dist/page-tabs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{TabStrip as e}from"../chunk-
|
|
3
|
-
return v(K.Provider,{value:le,children:e})}var
|
|
4
|
-
return v("div",{ref:y,role:c?"tabpanel":void 0,id:c,"aria-labelledby":a,hidden:!t,style:t?void 0:{display:"none"},className:l,"data-page-tab":e,children:/* @__PURE__ */v(F.Provider,{value:p,children:/* @__PURE__ */v(
|
|
5
|
-
return v("div",{className:t,children:e(r)},B);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__ */g(h,{children:[s.map(n=>{const i=n===l,s=i?r:c(n);return s?/* @__PURE__ */v(
|
|
6
|
-
return v(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(
|
|
2
|
+
import{TabStrip as e}from"../chunk-IF3ZX46R.js";import{useShellLanguage as t}from"../chunk-SLEWYXMY.js";import"../chunk-OKFO3XYS.js";import{confirm as n}from"../chunk-3NYPZO4K.js";import"../chunk-YIC644QO.js";import"../chunk-UVBK6YSR.js";import"../chunk-7IQ3B77H.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-76DRQSJM.js";import{useShellStrings as i}from"../chunk-2EJRVQ3Y.js";import"../chunk-C3QOHMR6.js";import*as l from"react";import{createContext as c,memo as a,useRef as s,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as f,useState as p,useContext as k}from"react";import{useLocation as m,useNavigate as b}from"react-router-dom";import{jsx as v,Fragment as h,jsxs as g}from"react/jsx-runtime";var K=c(null),F=c(null),I=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 j(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=O(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=O(n,e[0].key)}return n}(l,n)}function M(e){let t={...e,activeKey:null};return t.closing&&(t=O(t,t.closing)),t}function O(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 w(e,t){switch(t.type){case"visit":return j(e,t.entry,t.maxTabs);case"transient":return M(e);case"close":{let n=e;for(const e of t.keys)n=O(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 A=e=>`${e.pathname}${e.search}`;function C(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 x({children:e,resolve:l,pinned:c=[],storageKey:a,maxTabs:k=12,enabled:h=!0,confirmDiscard:g}){const F=m(),I=b(),N=i().pageTabs,O=y(),x=s(l);x.current=l;const S=d(e=>{const t=x.current(e);return t?{key:t.key??e.pathname,path:A(e),title:t.title}:null},[]),{language:L}=t(),[R,E]=f(w,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const l=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),c=[];for(const e of i.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,i=t(r);if(!i||c.some(e=>e.key===i.key))continue;const a=!l&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;c.push({key:i.key,path:r,title:a||i.title,titleFrom:a?"page":"route",pinned:!1,lastActive:0})}return c}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(a),e=>S(C(e)),L);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},c.map(e=>S(C(e))).filter(e=>Boolean(e)));const n=h?S(F):null;return t=n?j(t,n,k):M(t),t}),B=s(R);B.current=R;const Y=s(/* @__PURE__ */new Map),$=h?S(F):null,D=$?.key??null;r(()=>{if(!h)return;const e=S(F);e?(Y.current.set(e.key,F),E({type:"visit",entry:e,maxTabs:k})):E({type:"transient"})},[F,h,k,S]),o(()=>{const e=new Set(R.tabs.map(e=>e.key));for(const t of Y.current.keys())e.has(t)||Y.current.delete(t)},[R.tabs]);const J=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},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(n)}(R,L),[R,L]);o(()=>{if(a)try{localStorage.setItem(a,J)}catch{}},[J,a]);const Q=R.dirty.length>0;o(()=>{if(!Q)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[Q]);const P=s(/* @__PURE__ */new Map),X=d((e,t)=>{let n=P.current.get(e);return void 0===n&&(n=P.current.size,P.current.set(e,n)),`${O}-page-${t}-${n}`},[O]),H=d(e=>g?g(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"}),[g,N]),V=d(()=>{const e=B.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),W=d((e,t,n)=>{const r=B.current,i=r.activeKey;if(!i||!e.includes(i))return void E({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()}E({type:"close",keys:e.filter(e=>e!==i),closing:i}),I(l)},[I,V]),Z=d(async(e,t={})=>{const n=B.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&I(t.to),!1):!(!t.force&&B.current.dirty.includes(e)&&!await H([n]))&&(!!B.current.tabs.some(t=>t.key===e)&&(W([e],t.to),!0))},[H,W,I]),z=d(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)}(B.current,e,t);const r=B.current.tabs.filter(e=>n.includes(e.key)&&B.current.dirty.includes(e.key));r.length&&!await H(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(B.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&W(n,void 0,"all"===e?null:t)},[H,W]),G=d(e=>{const t=B.current.tabs.find(t=>t.key===e);t&&e!==B.current.activeKey&&I(t.path)},[I]),U=d((e,t)=>E({type:"title",key:e,title:t}),[]),q=d((e,t)=>E({type:"dirty",key:e,dirty:t}),[]),[_,ee]=p({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>S(e)?.key??null,[S]),re=d(e=>Y.current.get(e),[]),ie=u(()=>h?R.tabs.filter(e=>e.key!==R.closing):[],[h,R.tabs,R.closing]),le=u(()=>({enabled:h,state:R,currentKey:D,resolve:l,keyFor:ne,locationFor:re,idFor:X,activate:G,close:Z,closeMany:z,setTitle:U,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[h,R,D,l,ne,re,X,G,Z,z,U,q,_,te,ie]);/* @__PURE__ */
|
|
3
|
+
return v(K.Provider,{value:le,children:e})}var S=l.Activity,L=Boolean(S);function R({active:e,children:t}){return S?/* @__PURE__ */v(S,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */v(h,{children:t})}var E=a(function({tabKey:e,active:t,location:n,render:i,className:l,panelId:c,tabId:a}){const y=s(null),d=s(t),f=s(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of f.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):f.current.delete(e)},[t]),o(()=>{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=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
|
|
4
|
+
return v("div",{ref:y,role:c?"tabpanel":void 0,id:c,"aria-labelledby":a,hidden:!t,style:t?void 0:{display:"none"},className:l,"data-page-tab":e,children:/* @__PURE__ */v(F.Provider,{value:p,children:/* @__PURE__ */v(R,{active:t,children:i(n)})})})},(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)),B="\0transient";function Y({children:e,frameClassName:t}){const n=k(K),r=m();if(!n||!n.enabled)/* @__PURE__ */
|
|
5
|
+
return v("div",{className:t,children:e(r)},B);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__ */g(h,{children:[s.map(n=>{const i=n===l,s=i?r:c(n);return s?/* @__PURE__ */v(E,{tabKey:n,active:i,location:s,render:e,className:t,panelId:a(n,"panel"),tabId:a(n,"tab")},n):null}),!l&&/* @__PURE__ */v(E,{tabKey:B,active:!0,location:r,render:e,className:t},B)]})}function $({className:t,activeClassName:n,end:r}){const l=k(K),c=i().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 v(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(C(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:r})}var D={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function J(){const e=k(K);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)}:D}function Q(){const e=k(K),t=k(F),n=b();return{key:e?.enabled&&t?t.key:null,close:d(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 P(e){const t=k(K),n=k(F),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function X(e){const t=k(K),n=k(F),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function H(e){const t=k(K),n=k(F),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{I as DEFAULT_MAX_TABS,L as PAGE_TABS_PAUSE_HIDDEN,$ as PageTabBar,Y as PageTabsOutlet,x as PageTabsProvider,C as parseTabPath,Q as usePageTab,X as usePageTabCopy,H as usePageTabDirty,P as usePageTabTitle,J 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-
|
|
2
|
+
import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-YELEO346.js"));export{e as PdfViewer};
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{startClientTelemetry}from"../chunk-
|
|
1
|
+
export{startClientTelemetry}from"../chunk-WLGJ7OCM.js";import"../chunk-N55MVC2J.js";import"../chunk-KNUR2UEG.js";
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 AccordionTier, j as Align, k as AlignmentGrid, l as AlignmentGridProps, m as AlignmentPoint, n as AngleScale, o as AppUpdateBanner, p as AppUpdateBannerProps, q as AttachButton, r as AttachButtonProps, s as AttachmentDropZone, t as AttachmentDropZoneProps, u as AttachmentList, v as AttachmentListProps, w as AuthScreen, x as AuthScreenProps, y as Avatar, z as AvatarGroup, B as AvatarGroupProps, D as AvatarProps, E as AvatarSize, F as AvatarStatus, G as BORDER_LINE_STYLES, H as BORDER_WIDTHS, I as BackgroundVariant, J as BandScale, K as Banner, L as BannerEmphasis, M as BannerProps, N as BannerTone, O as BorderInput, Q as BorderInputProps, R as BorderLineStyle, T as BorderRole, U as BorderValue, V as Bounds, W as BoxPlotBox, X as BoxPlotChart, Y as BoxPlotChartProps, Z as BrandAssetEditor, _ as BrandAssetEditorProps, $ as BrandAssetPreview, a0 as BrandMark, a1 as BrandMarkProps, a2 as BrandMarkSlot, a3 as BrandMarkSurface, a4 as BrandMarkTreatment, a5 as BreadcrumbItem, a6 as Breadcrumbs, a7 as BreadcrumbsProps, a8 as BudgetBar, a9 as BudgetBarProps, aa as BudgetState, ab as Button, ac as ButtonClassesOptions, ad as ButtonProps, ae as ButtonSize, af as ButtonVariant, ag as CHART_INK, ah as CMD_A, ai as CMD_DOT, aj as CMD_ENTER, ak as CMD_K, al as CMD_S, am as COLUMN_COUNT_MAX, an as COLUMN_COUNT_WIDTHS, ao as COLUMN_SHARES_EQUAL, ap as COLUMN_SHARE_MIN, aq as CONTROL_HEIGHTS, ar as CORNERS, as as CORNERS_FOR_THEME, at as Calendar, au as CalendarMode, av as CalendarProps, aw as Candle, ax as CandlestickChart, ay as CandlestickChartProps, az as Card, aA as CardPadding, aB as CardProps, aC as CardTone, aD as CartesianPlot, aE as CartesianPlotProps, aF as CellStyle, aG as ChartBackgroundVariant, aH as ChartBrush, aI as ChartBrushProps, aJ as ChartCurve, aK as ChartDefs, aL as ChartDefsProps, aM as ChartDot, aN as ChartDotProps, aO as ChartDotVariant, aP as ChartFillVariant, aQ as ChartFrame, aR as ChartFrameProps, aS as ChartHighlightProvider, aT as ChartLegendEntry, aU as ChartLegendSwatch, aV as ChartRange, aW as ChartReferenceLine, aX as ChartRevealDirection, aY as ChartSkeleton, aZ as ChartSkeletonProps, a_ as ChartStatusTone, a$ as ChartStrokeVariant, b0 as ChartTooltip, b1 as ChartTooltipProps, b2 as ChartTooltipRow, b3 as ChatTemplate, b4 as Checkbox, b5 as CheckboxProps, b6 as CheckoutTemplate, b7 as ChordChart, b8 as ChordChartProps, b9 as ColorPicker, ba as ColorPickerPanel, bb as ColorPickerPanelProps, bc as ColorPickerProps, bd as ColorPreset, be as ColorSwatch, bf as ColorSwatchProps, bg as ColorSwatchSize, bh as ColoredBadge, bi as ColoredBadgeProps, bj as ColumnChart, bk as ColumnChartProps, C as ColumnDef, bl as ColumnSeries, bm as ColumnShares, bn as ComposerAttachments, bo as ComposerAttachmentsProps, bp as ConfirmProvider, bq as ContainerFillChart, br as ContainerFillChartProps, bs as ContainerFillItem, bt as ContextMenu, bu as ContextMenuPoint, bv as ContextMenuProps, bw as ContextMenuState, bx as ControlSize, by as CornerOption, bz as Corners, bA as CornersInput, bB as CornersInputProps, bC as CountBadge, bD as CountBadgeProps, bE as CountBadgeTone, bF as Curve, bG as DAY_MS, bH as DashboardTemplate, bI as DataTable, bJ as DataTableColumn, bK as DataTableColumnGroup, bL as DataTableHeader, bM as DataTablePage, bN as DataTableProps, bO as DataTableRowLink, bP as DataTableRowProps, bQ as DatePicker, bR as DatePickerProps, bS as DateRangePicker, bT as DateRangePickerProps, bU as DateTimePicker, bV as DateTimePickerProps, bW as DescriptionColumns, bX as DescriptionItem, bY as DescriptionList, bZ as DescriptionListProps, b_ as Dialog, b$ as DialogProps, c0 as DialogSize, c1 as DisplayChipItem, c2 as DisplayChips, c3 as DisplayChipsProps, c4 as Divider, c5 as DividerProps, c6 as DividerSpacing, c7 as Drawer, c8 as DrawerProps, c9 as DrawerSide, ca as DrawerSize, cb as DropdownMenu, cc as DropdownMenuAlign, cd as DropdownMenuCheckboxItem, ce as DropdownMenuDividerItem, cf as DropdownMenuEntry, cg as DropdownMenuFooterApi, ch as DropdownMenuItem, ci as DropdownMenuLabelItem, cj as DropdownMenuLinkItem, ck as DropdownMenuProps, cl as DropdownMenuRadioItem, cm as DropdownMenuSide, cn as DropdownMenuStatusItem, co as DropdownPositionOptions, cp as ELEVATION_LEVELS, cq as ENGLISH, cr as ENTER, cs as EditableGrid, ct as EditableGridProps, cu as ElevationLevel, cv as EmailTemplate, cw as EmptyState, cx as EmptyStateProps, cy as EmptyValue, cz as EmptyValueProps, cA as ErrorBoundary, cB as ErrorBoundaryProps, cC as ErrorPage, cD as ErrorPageProps, cE as FONT_WEIGHTS, cF as FileIntake, cG as FilePicker, cH as FilePickerProps, cI as FillVariant, cJ as FloatingBar, cK as FloatingBarAlign, cL as FloatingBarProps, cM as FloatingBarSide, cN as FontWeightRole, cO as FormError, cP as FormErrorSummary, cQ as FormErrorSummaryProps, cR as FormField, cS as FormFieldProps, cT as FormLayoutPage, cU as FunnelChart, cV as FunnelChartProps, cW as FunnelStage, cX as GLASS_DIVIDER, cZ as GROUP_COLORS, c_ as GROUP_COLORS_SOLID, c$ as GalleryTemplate, d0 as Gap, d1 as GlassOptions, d2 as GlobalSearch, d3 as GlobalSearchProps, d4 as Grid, d5 as GridCols, d6 as GridColumn, d7 as GridProps, d8 as HeatmapChart, d9 as HeatmapChartProps, da as HelpCenter, db as HelpCenterDoc, dc as HelpCenterProps, dd as HexInput, de as HistogramBin, df as HistogramChart, dg as HistogramChartProps, dh as Hsv, di as INPUT_BASE, dj as INPUT_SIZES, dk as IconButton, dl as IconButtonClassesOptions, dm as IconButtonProps, dn as IconPicker, dp as IconPickerOption, dq as IconPickerProps, dr as IconRail, ds as IconRailButton, dt as IconRailButtonProps, du as IconRailLabels, dv as IconRailLabelsShown, dw as IconRailOrientation, dx as IconRailProps, dy as ImageFocusPoint, dz as ImageFocusPointProps, dA as Inline, dB as InlineProps, dC as Input, dD as InputNumber, dE as InputNumberProps, dF as InputProps, dG as InputSize, dH as Justify, dI as Kanban, dJ as KanbanColumn, dK as KanbanProps, dL as Kbd, dM as KbdProps, dN as KbdSize, dO as KbdTone, dP as Label, dQ as LabelClassesOptions, dR as LabelProps, dS as LadderScale, dT as LanguagePanel, dU as LanguagePanelProps, dV as LanguageSelect, dW as LanguageSelectProps, dX as LinearScale, dY as LinkFilter, dZ as LinkFilterField, d_ as LinkKindChoice, d$ as LinkOption, e0 as LinkOptionGroup, e1 as LinkPicker, e2 as LinkPickerFieldProps, e3 as LinkPickerProps, e4 as LinkPickerWindowProps, e5 as LinkRules, e6 as LinkTarget, e7 as ListDrop, e8 as ListFooter, e9 as ListLoadError, ea as ListLoadErrorProps, eb as ListMove, ec as ListRow, ed as ListRowProps, ee as LoadingSpinner, ef as LoadingSpinnerProps, eg as MAX_FRACTION_DIGITS, eh as MENU_MAX_HEIGHT, ei as MOD, ej as MOTION, ek as MOTION_DURATIONS, el as Markdown, el as MarkdownLite, em as MarkdownLiteProps, em as MarkdownProps, en as MediaUploadField, eo as MediaUploadFieldProps, ep as MediaUploadGrid, eq as MediaUploadGridItem, er as MediaUploadGridProps, es as MenuAlign, et as MenuPlacement, eu as MenuPos, ev as MenuSide, ew as Meter, ex as MeterProps, ey as MetricBar, ez as MetricBarProps, eA as Milestone, eB as MilestoneKind, eC as MilestoneTimeline, eD as MilestoneTimelineProps, eE as MotionSpeed, eG as NEXT_CHUNK_PATH_PREFIX, eH as NativeSelect, eI as NiceAxis, eJ as NumericKeypad, eK as NumericKeypadProps, eL as OVERLAY_OPEN_EVENT, eM as PLACEHOLDER_INK, eN as POPUP_MAX_WIDTH, eO as POST_PRODUCTION_STATUSES, eP as PageHeader, eQ as PageHeaderProps, P as PaginatedResponse, eR as Pagination, eS as PaginationProps, eT as PaperclipGlyph, eU as Paragraph, eV as ParagraphProps, eW as PictureTileOption, eX as PictureTiles, eY as PictureTilesProps, eZ as PieChart, e_ as PieChartProps, e$ as PieSegment, f0 as PlotGeometry, f1 as Point, f2 as Popover, f3 as PopoverAlign, f4 as PopoverProps, f5 as PopoverRenderProps, f6 as PopoverSide, f7 as PopupMenu, f8 as PopupMenuDivider, f9 as PopupMenuItem, fa as PopupMenuItemProps, fb as PopupMenuLabel, fc as PopupMenuProps, fd as PopupSubmenu, fe as PopupSubmenuProps, ff as PortalBrandingContextValue, fg as PortalBrandingProvider, fh as PortalBrandingProviderProps, fi as ProductionTimeline, fj as ProductionTimelineProps, fk as ProductionTimelineSnapshot, fl as ProgressItem, fm as PublicPortal, fn as PublicPortalBranding, fo as RADAR_SERIES_CAP, fp as RADIUS_ROLES, fq as ROW_HEIGHTS, fr as RadarAxis, fs as RadarChart, ft as RadarChartProps, fu as RadarSeries, fv as RadialBarChart, fw as RadialBarChartProps, fx as RadialBarRow, fy as Radio, fz as RadioGroup, fA as RadioGroupOption, fB as RadioGroupOrientation, fC as RadioGroupProps, fD as RadioProps, fE as RadiusRole, fF as Range, fG as RangeChart, fH as RangeChartProps, fI as RangeRow, fJ as RankedBars, fK as RankedBarsProps, fL as RankedBarsRow, fM as ResizeHandle, fN as ResizeHandleOrientation, fO as ResizeHandleProps, fP as ResizeHandleSide, fQ as ResizeHandleStackSide, fR as ResolvedPortalBrandAsset, fS as Result, fT as ResultProps, fU as ResultStatus, fV as RevealDirection, fW as SCATTER_SERIES_CAP, fX as SERIES_SLOT_COUNT, fY as SERIES_VARS, fZ as SHELL_LANGUAGE_STORAGE_KEY, f_ as SHIFT, f$ as SPACING_ROLES, g0 as SPACING_SCALE, g1 as STAGES, g2 as STALE_CHUNK_RELOAD_COOLDOWN_MS, g3 as STALE_CHUNK_RELOAD_KEY, g4 as STATUS_VARS, g5 as SankeyChart, g6 as SankeyChartProps, g7 as SankeyLink, g8 as SankeyNode, g9 as ScatterChart, ga as ScatterChartProps, gb as ScatterPoint, gc as ScatterSeries, S as SearchConfig, gd as SearchListRoute, ge as SearchProvider, gf as SearchQuickAction, gg as SearchResponse, gh as SearchResult, gi as SearchableItem, gj as SearchableOption, gk as SearchableOptionGroup, gl as SearchableSelect, gm as SearchableSelectBaseProps, gn as SearchableSelectMultipleProps, go as SearchableSelectProps, gp as Segmented, gq as SegmentedOption, gr as SegmentedProps, gs as SegmentedSize, gt as Select, gu as SelectBaseProps, gv as SelectFooterAction, gw as SelectItem, gx as SelectMultipleProps, gy as SelectOption, gz as SelectOptionGroup, gA as SelectProps, gB as SemanticGroup, gC as SeriesSlots, gD as SettingReset, gE as SettingResetProps, gF as SettingResetView, gG as SettingRow, gH as SettingRowProps, gI as SettingViewState, gJ as SeverityTone, gM as ShellLanguage, gN as ShellLanguageProvider, gO as ShellLanguageState, gP as ShellPrefsAdapter, gQ as ShellPrefsProvider, gR as ShowWhen, gS as ShowWhenCheck, gT as ShowWhenContext, gU as ShowWhenProps, gV as ShowWhenRule, gW as ShowWhenValue, gX as Side, gY as SidebarActionButton, gZ as SidebarActionButtonProps, g_ as SidebarGroupLabel, g$ as SidebarGroupLabelProps, h0 as SidebarLayout, h1 as SidebarLayoutProps, h2 as SidebarNavGroup, h3 as SidebarNavGroupProps, h4 as SidebarNavItem, h5 as SidebarNavItemProps, h6 as SidesEachToggle, h7 as SidesInput, h8 as SidesInputProps, h9 as SidesValue, ha as Skeleton, hb as SkeletonProps, hc as SkeletonVariant, hd as Slider, he as SliderGroup, hf as SliderProps, hg as SliderSize, hh as Snippet, hi as SnippetProps, hj as SnippetSize, hk as SnippetVariant, a as SortState, hl as SortableList, hm as SortableListProps, hn as SortableListSpacing, ho as SpacingRole, hp as SpacingStep, hq as Sparkline, hr as SparklineProps, hs as SpinnerRing, ht as SpinnerRingProps, hu as SplitButton, hv as SplitButtonProps, hw as SplitButtonVariant, hx as Stack, hy as StackProps, hz as StaleChunkReloadOptions, hA as StatCard, hB as StatCardProps, hC as StatTile, hD as StatTileProps, hE as Statistic, hF as StatisticProps, hG as StatisticSize, hH as StatisticTone, hI as StatusBadge, hJ as StatusBadgeProvider, hK as StatusEmphasis, hL as StepChain, hM as StepChainItem, hN as StepChainItemProps, hO as StepChainProps, hP as StepChainStatus, hQ as StepItem, hR as Stepper, hS as StepperProps, hT as StrokeVariant, hU as SunburstChart, hV as SunburstChartProps, hW as SunburstNode, hX as Switch, hY as SwitchProps, hZ as SwitchSize, h_ as TYPE_SCALE, h$ as TabItem, i0 as Tabs, i1 as TabsProps, i2 as TagInput, i3 as TagInputOption, i4 as TagInputProps, i5 as TagInputTone, i6 as Text, i7 as TextLinkField, i8 as TextLinkFieldProps, i9 as TextProps, ia as TextSize, ib as TextTone, ic as TextToolbar, id as TextToolbarAlign, ie as TextToolbarCase, ig as TextToolbarMark, ih as TextToolbarProps, ii as TextWeight, ij as Textarea, ik as TextareaProps, il as Theme, im as TileButton, io as TileButtonProps, ip as TileSize, iq as TimeAgo, ir as TimeAgoProps, is as TimePicker, it as TimePickerProps, iu as TimeSeriesChart, iv as TimeSeriesChartProps, iw as TimeSeriesSeries, ix as TimelineMarker, iy as TimelineMarkerKind, iz as TimelineReport, iA as TimelineScrubProgress, iB as TimelineTrack, iC as TimelineTrackItem, iD as TimelineTrackKind, iE as TimelineTrackPending, iF as TimelineTrackPhase, iG as TimelineTrackPlayback, iH as TimelineTrackProps, iI as TimelineTrackThumb, iJ as Title, iK as TitleLevel, iL as TitleProps, iM as ToastAction, iN as ToastCloseReason, iO as ToastOptions, iP as ToastPlacement, iQ as ToastUndoableOptions, iR as Tooltip, iS as TooltipProps, iT as TopNav, iU as TopNavItem, iV as TopNavProps, iW as TransferProgress, iX as TransferProgressProps, iY as TransferProgressState, iZ as Tree, i_ as TreeBadge, i$ as TreeDrop, j0 as TreeEmptySlot, j1 as TreeEmptySlotProps, j2 as TreeGroup, j3 as TreeGroupLabel, j4 as TreeGroupLabelProps, j5 as TreeGroupProps, j6 as TreeMove, j7 as TreeProps, j8 as TreeRow, j9 as TreeRowProps, ja as TreeSeam, jb as TreeSeamProps, jc as TreemapChart, jd as TreemapChartProps, je as TreemapItem, jf as TreemapTile, jg as TypeStep, jh as UNDOABLE_MS, ji as UseAppUpdateOptions, jj as UseContextMenu, jk as UseProductionTimelineOpts, jl as VERSION, jm as VITE_PRELOAD_ERROR_EVENT, jn as WaterfallChart, jo as WaterfallChartProps, jp as WaterfallStep, jq as WidthsBar, jr as WidthsBarProps, js as ZLayer, jt as Z_LAYERS, ju as angleScale, jv as appendKey, jw as applyCorners, jx as applyIconSet, jy as applyThemePrefs, jz as arcPath, jA as areaBetween, jB as areaFrom, jC as assignSeriesSlots, jD as autoHighlightIndex, jE as backspace, jF as bandScale, jG as binValues, jH as borderSides, jI as borderStartEach, jJ as budgetState, jK as bumpPath, jL as buttonClasses, jM as calcOverall, jN as calcReportOverall, jO as colorFill, jP as colorSwatchClasses, jQ as columnSharesWidths, jR as confirm, jS as confirmDestructive, jT as cornersFor, jU as curvePath, jV as dashFor, jX as dismissPopups, jY as fillFor, jZ as fillId, j_ as fmtSliderDate, j$ as fromDateKey, k0 as glassStyle, k1 as glowId, k2 as groundId, k3 as groupColors, k4 as hexToHsv, k5 as highlightOpacity, k6 as hsvToHex, k7 as iconButtonClasses, k8 as inputClasses, k9 as installStaleChunkReload, ka as isMac, kb as isSeverityTone, kc as isShown, kd as isSpacingStep, ke as isStaleChunkError, kg as labelClasses, kh as ladderScale, ki as languageSelectWidth, kj as leavesContextMenuAlone, kk as linearPath, kl as linearScale, km as logScale, kn as maskId, ko as matchShellLanguage, kp as mediaFileName, kq as monotonePath, kr as niceAxis, ks as niceMax, kt as openGlobalSearch, ku as parseHexColor, kv as placeMenu, kw as polygonPoints, kx as popupBounds, ky as prompt, kz as pushRecentSearch, kA as radiusScale, kB as readSavedShellLanguage, kC as registerModalEscapeInterceptor, kD as resolveBrandMarkTreatment, kE as resolveColumnShares, kF as resolveColumnWidths, kG as resolveCorners, kH as resolvePortalBrandAsset, kI as resolveSeriesColor, kJ as resolveSeriesColorWithin, kK as resolveShellLanguage, kL as resolveTheme, kM as sanitizeRecentSearches, kN as saveShellLanguage, kO as seriesColor, kP as severityOf, kQ as sidesStartEach, kR as solidSurfaceStyle, kS as splinePath, kT as squarify, kU as stagger, kV as stepPath, kW as tabButtonId, kX as tabPanelId, kY as textToolbarRows, kZ as textToolbarWindowColumns, k_ as toDateKey, k$ as toDayMs, l0 as toISODate, l1 as toast, l2 as toggleSeriesSlot, l3 as useAppUpdate, l4 as useClickOutside, l5 as useConfirm, l6 as useContextMenu, l7 as useDebouncedValue, l8 as useDropdownPosition, l9 as useFocusTrap, la as useHighlight, lb as useInSettingRow, lc as useIsMobile, ld as useLocalStoragePrefs, le as usePlotWidth, lf as usePortalBranding, lg as useProductionTimeline, lh as useScrollLock, li as useSettingAuto, lj as useShellLanguage, lk as useShellPrefs, ll as useStatusLabel, lm as useTheme, ln as useTransferProgress } from '../index-BpCIWxCw.js';
|
|
2
|
-
export { C as CurrencyFormat, D as DATE_FORMAT_OPTIONS, a as DateFormatKey, E as EMPTY_VALUE, F as FOCAL_DEFAULT, b as FOCAL_NUDGE_COARSE, c as FOCAL_NUDGE_STEP, d as FocalPoint, e as FormatDateOptions, f as FormatMoneyOptions, T as TZ_AUTO,
|
|
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 AccordionTier, j as Align, k as AlignmentGrid, l as AlignmentGridProps, m as AlignmentPoint, n as AngleScale, o as AppUpdateBanner, p as AppUpdateBannerProps, q as AttachButton, r as AttachButtonProps, s as AttachmentDropZone, t as AttachmentDropZoneProps, u as AttachmentList, v as AttachmentListProps, w as AuthScreen, x as AuthScreenProps, y as Avatar, z as AvatarGroup, B as AvatarGroupProps, D as AvatarProps, E as AvatarSize, F as AvatarStatus, G as BORDER_LINE_STYLES, H as BORDER_WIDTHS, I as BackgroundVariant, J as BandScale, K as Banner, L as BannerEmphasis, M as BannerProps, N as BannerTone, O as BorderInput, Q as BorderInputProps, R as BorderLineStyle, T as BorderRole, U as BorderValue, V as Bounds, W as BoxPlotBox, X as BoxPlotChart, Y as BoxPlotChartProps, Z as BrandAssetEditor, _ as BrandAssetEditorProps, $ as BrandAssetPreview, a0 as BrandMark, a1 as BrandMarkProps, a2 as BrandMarkSlot, a3 as BrandMarkSurface, a4 as BrandMarkTreatment, a5 as BreadcrumbItem, a6 as Breadcrumbs, a7 as BreadcrumbsProps, a8 as BudgetBar, a9 as BudgetBarProps, aa as BudgetState, ab as Button, ac as ButtonClassesOptions, ad as ButtonProps, ae as ButtonSize, af as ButtonVariant, ag as CHART_INK, ah as CMD_A, ai as CMD_DOT, aj as CMD_ENTER, ak as CMD_K, al as CMD_S, am as COLUMN_COUNT_MAX, an as COLUMN_COUNT_WIDTHS, ao as COLUMN_SHARES_EQUAL, ap as COLUMN_SHARE_MIN, aq as CONTROL_HEIGHTS, ar as CORNERS, as as CORNERS_FOR_THEME, at as Calendar, au as CalendarMode, av as CalendarProps, aw as Candle, ax as CandlestickChart, ay as CandlestickChartProps, az as Card, aA as CardPadding, aB as CardProps, aC as CardTone, aD as CartesianPlot, aE as CartesianPlotProps, aF as CellStyle, aG as ChartBackgroundVariant, aH as ChartBrush, aI as ChartBrushProps, aJ as ChartCurve, aK as ChartDefs, aL as ChartDefsProps, aM as ChartDot, aN as ChartDotProps, aO as ChartDotVariant, aP as ChartFillVariant, aQ as ChartFrame, aR as ChartFrameProps, aS as ChartHighlightProvider, aT as ChartLegendEntry, aU as ChartLegendSwatch, aV as ChartRange, aW as ChartReferenceLine, aX as ChartRevealDirection, aY as ChartSkeleton, aZ as ChartSkeletonProps, a_ as ChartStatusTone, a$ as ChartStrokeVariant, b0 as ChartTooltip, b1 as ChartTooltipProps, b2 as ChartTooltipRow, b3 as ChatTemplate, b4 as Checkbox, b5 as CheckboxProps, b6 as CheckoutTemplate, b7 as ChordChart, b8 as ChordChartProps, b9 as ColorPicker, ba as ColorPickerPanel, bb as ColorPickerPanelProps, bc as ColorPickerProps, bd as ColorPreset, be as ColorSwatch, bf as ColorSwatchProps, bg as ColorSwatchSize, bh as ColoredBadge, bi as ColoredBadgeProps, bj as ColumnChart, bk as ColumnChartProps, C as ColumnDef, bl as ColumnSeries, bm as ColumnShares, bn as ComposerAttachments, bo as ComposerAttachmentsProps, bp as ConfirmProvider, bq as ContainerFillChart, br as ContainerFillChartProps, bs as ContainerFillItem, bt as ContextMenu, bu as ContextMenuPoint, bv as ContextMenuProps, bw as ContextMenuState, bx as ControlSize, by as CornerOption, bz as Corners, bA as CornersInput, bB as CornersInputProps, bC as CountBadge, bD as CountBadgeProps, bE as CountBadgeTone, bF as Curve, bG as DAY_MS, bH as DashboardTemplate, bI as DataTable, bJ as DataTableColumn, bK as DataTableColumnGroup, bL as DataTableHeader, bM as DataTablePage, bN as DataTableProps, bO as DataTableRowLink, bP as DataTableRowProps, bQ as DatePicker, bR as DatePickerProps, bS as DateRangePicker, bT as DateRangePickerProps, bU as DateTimePicker, bV as DateTimePickerProps, bW as DescriptionColumns, bX as DescriptionItem, bY as DescriptionList, bZ as DescriptionListProps, b_ as Dialog, b$ as DialogProps, c0 as DialogSize, c1 as DisplayChipItem, c2 as DisplayChips, c3 as DisplayChipsProps, c4 as Divider, c5 as DividerProps, c6 as DividerSpacing, c7 as Drawer, c8 as DrawerProps, c9 as DrawerSide, ca as DrawerSize, cb as DropdownMenu, cc as DropdownMenuAlign, cd as DropdownMenuCheckboxItem, ce as DropdownMenuDividerItem, cf as DropdownMenuEntry, cg as DropdownMenuFooterApi, ch as DropdownMenuItem, ci as DropdownMenuLabelItem, cj as DropdownMenuLinkItem, ck as DropdownMenuProps, cl as DropdownMenuRadioItem, cm as DropdownMenuSide, cn as DropdownMenuStatusItem, co as DropdownPositionOptions, cp as ELEVATION_LEVELS, cq as ENGLISH, cr as ENTER, cs as EditableGrid, ct as EditableGridProps, cu as ElevationLevel, cv as EmailTemplate, cw as EmptyState, cx as EmptyStateProps, cy as EmptyValue, cz as EmptyValueProps, cA as ErrorBoundary, cB as ErrorBoundaryProps, cC as ErrorPage, cD as ErrorPageProps, cE as FONT_WEIGHTS, cF as FileIntake, cG as FilePicker, cH as FilePickerProps, cI as FillVariant, cJ as FloatingBar, cK as FloatingBarAlign, cL as FloatingBarProps, cM as FloatingBarSide, cN as FontWeightRole, cO as FormError, cP as FormErrorSummary, cQ as FormErrorSummaryProps, cR as FormField, cS as FormFieldProps, cT as FormLayoutPage, cU as FunnelChart, cV as FunnelChartProps, cW as FunnelStage, cX as GLASS_DIVIDER, cZ as GROUP_COLORS, c_ as GROUP_COLORS_SOLID, c$ as GalleryTemplate, d0 as Gap, d1 as GlassOptions, d2 as GlobalSearch, d3 as GlobalSearchProps, d4 as Grid, d5 as GridCols, d6 as GridColumn, d7 as GridProps, d8 as HeatmapChart, d9 as HeatmapChartProps, da as HelpCenter, db as HelpCenterDoc, dc as HelpCenterProps, dd as HexInput, de as HistogramBin, df as HistogramChart, dg as HistogramChartProps, dh as Hsv, di as INPUT_BASE, dj as INPUT_SIZES, dk as IconButton, dl as IconButtonClassesOptions, dm as IconButtonProps, dn as IconPicker, dp as IconPickerOption, dq as IconPickerProps, dr as IconRail, ds as IconRailButton, dt as IconRailButtonProps, du as IconRailLabels, dv as IconRailLabelsShown, dw as IconRailOrientation, dx as IconRailProps, dy as ImageFocusPoint, dz as ImageFocusPointProps, dA as Inline, dB as InlineProps, dC as Input, dD as InputNumber, dE as InputNumberProps, dF as InputProps, dG as InputSize, dH as Justify, dI as Kanban, dJ as KanbanColumn, dK as KanbanProps, dL as Kbd, dM as KbdProps, dN as KbdSize, dO as KbdTone, dP as Label, dQ as LabelClassesOptions, dR as LabelProps, dS as LadderScale, dT as LanguagePanel, dU as LanguagePanelProps, dV as LanguageSelect, dW as LanguageSelectProps, dX as LinearScale, dY as LinkFilter, dZ as LinkFilterField, d_ as LinkKindChoice, d$ as LinkOption, e0 as LinkOptionGroup, e1 as LinkPicker, e2 as LinkPickerFieldProps, e3 as LinkPickerProps, e4 as LinkPickerWindowProps, e5 as LinkRules, e6 as LinkTarget, e7 as ListDrop, e8 as ListFooter, e9 as ListLoadError, ea as ListLoadErrorProps, eb as ListMove, ec as ListRow, ed as ListRowProps, ee as LoadingSpinner, ef as LoadingSpinnerProps, eg as MAX_FRACTION_DIGITS, eh as MENU_MAX_HEIGHT, ei as MOD, ej as MOTION, ek as MOTION_DURATIONS, el as Markdown, el as MarkdownLite, em as MarkdownLiteProps, em as MarkdownProps, en as MediaUploadField, eo as MediaUploadFieldProps, ep as MediaUploadGrid, eq as MediaUploadGridItem, er as MediaUploadGridProps, es as MenuAlign, et as MenuPlacement, eu as MenuPos, ev as MenuSide, ew as Meter, ex as MeterProps, ey as MetricBar, ez as MetricBarProps, eA as Milestone, eB as MilestoneKind, eC as MilestoneTimeline, eD as MilestoneTimelineProps, eE as MotionSpeed, eG as NEXT_CHUNK_PATH_PREFIX, eH as NativeSelect, eI as NiceAxis, eJ as NumericKeypad, eK as NumericKeypadProps, eL as OVERLAY_OPEN_EVENT, eM as PLACEHOLDER_INK, eN as POPUP_MAX_WIDTH, eO as POST_PRODUCTION_STATUSES, eP as PageHeader, eQ as PageHeaderProps, P as PaginatedResponse, eR as Pagination, eS as PaginationProps, eT as PaperclipGlyph, eU as Paragraph, eV as ParagraphProps, eW as PictureTileOption, eX as PictureTiles, eY as PictureTilesProps, eZ as PieChart, e_ as PieChartProps, e$ as PieSegment, f0 as PlotGeometry, f1 as Point, f2 as Popover, f3 as PopoverAlign, f4 as PopoverProps, f5 as PopoverRenderProps, f6 as PopoverSide, f7 as PopupMenu, f8 as PopupMenuDivider, f9 as PopupMenuItem, fa as PopupMenuItemProps, fb as PopupMenuLabel, fc as PopupMenuProps, fd as PopupSubmenu, fe as PopupSubmenuProps, ff as PortalBrandingContextValue, fg as PortalBrandingProvider, fh as PortalBrandingProviderProps, fi as ProductionTimeline, fj as ProductionTimelineProps, fk as ProductionTimelineSnapshot, fl as ProgressItem, fm as PublicPortal, fn as PublicPortalBranding, fo as RADAR_SERIES_CAP, fp as RADIUS_ROLES, fq as ROW_HEIGHTS, fr as RadarAxis, fs as RadarChart, ft as RadarChartProps, fu as RadarSeries, fv as RadialBarChart, fw as RadialBarChartProps, fx as RadialBarRow, fy as Radio, fz as RadioGroup, fA as RadioGroupOption, fB as RadioGroupOrientation, fC as RadioGroupProps, fD as RadioProps, fE as RadiusRole, fF as Range, fG as RangeChart, fH as RangeChartProps, fI as RangeRow, fJ as RankedBars, fK as RankedBarsProps, fL as RankedBarsRow, fM as ResizeHandle, fN as ResizeHandleOrientation, fO as ResizeHandleProps, fP as ResizeHandleSide, fQ as ResizeHandleStackSide, fR as ResolvedPortalBrandAsset, fS as Result, fT as ResultProps, fU as ResultStatus, fV as RevealDirection, fW as SCATTER_SERIES_CAP, fX as SERIES_SLOT_COUNT, fY as SERIES_VARS, fZ as SHELL_LANGUAGE_STORAGE_KEY, f_ as SHIFT, f$ as SPACING_ROLES, g0 as SPACING_SCALE, g1 as STAGES, g2 as STALE_CHUNK_RELOAD_COOLDOWN_MS, g3 as STALE_CHUNK_RELOAD_KEY, g4 as STATUS_VARS, g5 as SankeyChart, g6 as SankeyChartProps, g7 as SankeyLink, g8 as SankeyNode, g9 as ScatterChart, ga as ScatterChartProps, gb as ScatterPoint, gc as ScatterSeries, S as SearchConfig, gd as SearchListRoute, ge as SearchProvider, gf as SearchQuickAction, gg as SearchResponse, gh as SearchResult, gi as SearchableItem, gj as SearchableOption, gk as SearchableOptionGroup, gl as SearchableSelect, gm as SearchableSelectBaseProps, gn as SearchableSelectMultipleProps, go as SearchableSelectProps, gp as Segmented, gq as SegmentedOption, gr as SegmentedProps, gs as SegmentedSize, gt as Select, gu as SelectBaseProps, gv as SelectFooterAction, gw as SelectItem, gx as SelectMultipleProps, gy as SelectOption, gz as SelectOptionGroup, gA as SelectProps, gB as SemanticGroup, gC as SeriesSlots, gD as SettingReset, gE as SettingResetProps, gF as SettingResetView, gG as SettingRow, gH as SettingRowProps, gI as SettingViewState, gJ as SeverityTone, gM as ShellLanguage, gN as ShellLanguageProvider, gO as ShellLanguageState, gP as ShellPrefsAdapter, gQ as ShellPrefsProvider, gR as ShowWhen, gS as ShowWhenProps, gT as Side, gU as SidebarActionButton, gV as SidebarActionButtonProps, gW as SidebarGroupLabel, gX as SidebarGroupLabelProps, gY as SidebarLayout, gZ as SidebarLayoutProps, g_ as SidebarNavGroup, g$ as SidebarNavGroupProps, h0 as SidebarNavItem, h1 as SidebarNavItemProps, h2 as SidesEachToggle, h3 as SidesInput, h4 as SidesInputProps, h5 as SidesValue, h6 as Skeleton, h7 as SkeletonProps, h8 as SkeletonVariant, h9 as Slider, ha as SliderGroup, hb as SliderProps, hc as SliderSize, hd as Snippet, he as SnippetProps, hf as SnippetSize, hg as SnippetVariant, a as SortState, hh as SortableList, hi as SortableListProps, hj as SortableListSpacing, hk as SpacingRole, hl as SpacingStep, hm as Sparkline, hn as SparklineProps, ho as SpinnerRing, hp as SpinnerRingProps, hq as SplitButton, hr as SplitButtonProps, hs as SplitButtonVariant, ht as Stack, hu as StackProps, hv as StaleChunkReloadOptions, hw as StatCard, hx as StatCardProps, hy as StatTile, hz as StatTileProps, hA as Statistic, hB as StatisticProps, hC as StatisticSize, hD as StatisticTone, hE as StatusBadge, hF as StatusBadgeProvider, hG as StatusEmphasis, hH as StepChain, hI as StepChainItem, hJ as StepChainItemProps, hK as StepChainProps, hL as StepChainStatus, hM as StepItem, hN as Stepper, hO as StepperProps, hP as StrokeVariant, hQ as SunburstChart, hR as SunburstChartProps, hS as SunburstNode, hT as Switch, hU as SwitchProps, hV as SwitchSize, hW as TYPE_SCALE, hX as TabItem, hY as Tabs, hZ as TabsProps, h_ as TagInput, h$ as TagInputOption, i0 as TagInputProps, i1 as TagInputTone, i2 as Text, i3 as TextLinkField, i4 as TextLinkFieldProps, i5 as TextProps, i6 as TextSize, i7 as TextTone, i8 as TextToolbar, i9 as TextToolbarAlign, ia as TextToolbarCase, ib as TextToolbarMark, ic as TextToolbarProps, id as TextWeight, ie as Textarea, ig as TextareaProps, ih as Theme, ii as TileButton, ij as TileButtonProps, ik as TileSize, il as TimeAgo, im as TimeAgoProps, io as TimePicker, ip as TimePickerProps, iq as TimeSeriesChart, ir as TimeSeriesChartProps, is as TimeSeriesSeries, it as TimelineMarker, iu as TimelineMarkerKind, iv as TimelineReport, iw as TimelineScrubProgress, ix as TimelineTrack, iy as TimelineTrackItem, iz as TimelineTrackKind, iA as TimelineTrackPending, iB as TimelineTrackPhase, iC as TimelineTrackPlayback, iD as TimelineTrackProps, iE as TimelineTrackThumb, iF as Title, iG as TitleLevel, iH as TitleProps, iI as ToastAction, iJ as ToastCloseReason, iK as ToastOptions, iL as ToastPlacement, iM as ToastUndoableOptions, iN as Tooltip, iO as TooltipProps, iP as TopNav, iQ as TopNavItem, iR as TopNavProps, iS as TransferProgress, iT as TransferProgressProps, iU as TransferProgressState, iV as Tree, iW as TreeBadge, iX as TreeDrop, iY as TreeEmptySlot, iZ as TreeEmptySlotProps, i_ as TreeGroup, i$ as TreeGroupLabel, j0 as TreeGroupLabelProps, j1 as TreeGroupProps, j2 as TreeMove, j3 as TreeProps, j4 as TreeRow, j5 as TreeRowProps, j6 as TreeSeam, j7 as TreeSeamProps, j8 as TreemapChart, j9 as TreemapChartProps, ja as TreemapItem, jb as TreemapTile, jc as TypeStep, jd as UNDOABLE_MS, je as UseAppUpdateOptions, jf as UseContextMenu, jg as UseProductionTimelineOpts, jh as VERSION, ji as VITE_PRELOAD_ERROR_EVENT, jj as WaterfallChart, jk as WaterfallChartProps, jl as WaterfallStep, jm as WidthsBar, jn as WidthsBarProps, jo as ZLayer, jp as Z_LAYERS, jq as angleScale, jr as appendKey, js as applyCorners, jt as applyIconSet, ju as applyThemePrefs, jv as arcPath, jw as areaBetween, jx as areaFrom, jy as assignSeriesSlots, jz as autoHighlightIndex, jA as backspace, jB as bandScale, jC as binValues, jD as borderSides, jE as borderStartEach, jF as budgetState, jG as bumpPath, jH as buttonClasses, jI as calcOverall, jJ as calcReportOverall, jK as colorFill, jL as colorSwatchClasses, jM as columnSharesWidths, jN as confirm, jO as confirmDestructive, jP as cornersFor, jQ as curvePath, jR as dashFor, jT as dismissPopups, jU as fillFor, jV as fillId, jW as fmtSliderDate, jX as fromDateKey, jY as glassStyle, jZ as glowId, j_ as groundId, j$ as groupColors, k0 as hexToHsv, k1 as highlightOpacity, k2 as hsvToHex, k3 as iconButtonClasses, k4 as inputClasses, k5 as installStaleChunkReload, k6 as isMac, k7 as isSeverityTone, k8 as isSpacingStep, k9 as isStaleChunkError, kb as labelClasses, kc as ladderScale, kd as languageSelectWidth, ke as leavesContextMenuAlone, kf as linearPath, kg as linearScale, kh as logScale, ki as maskId, kj as matchShellLanguage, kk as mediaFileName, kl as monotonePath, km as niceAxis, kn as niceMax, ko as openGlobalSearch, kp as parseHexColor, kq as placeMenu, kr as polygonPoints, ks as popupBounds, kt as prompt, ku as pushRecentSearch, kv as radiusScale, kw as readSavedShellLanguage, kx as registerModalEscapeInterceptor, ky as resolveBrandMarkTreatment, kz as resolveColumnShares, kA as resolveColumnWidths, kB as resolveCorners, kC as resolvePortalBrandAsset, kD as resolveSeriesColor, kE as resolveSeriesColorWithin, kF as resolveShellLanguage, kG as resolveTheme, kH as sanitizeRecentSearches, kI as saveShellLanguage, kJ as seriesColor, kK as severityOf, kL as sidesStartEach, kM as solidSurfaceStyle, kN as splinePath, kO as squarify, kP as stagger, kQ as stepPath, kR as tabButtonId, kS as tabPanelId, kT as textToolbarRows, kU as textToolbarWindowColumns, kV as toDateKey, kW as toDayMs, kX as toISODate, kY as toast, kZ as toggleSeriesSlot, k_ as useAppUpdate, k$ as useClickOutside, l0 as useConfirm, l1 as useContextMenu, l2 as useDebouncedValue, l3 as useDropdownPosition, l4 as useFocusTrap, l5 as useHighlight, l6 as useInSettingRow, l7 as useIsMobile, l8 as useLocalStoragePrefs, l9 as usePlotWidth, la as usePortalBranding, lb as useProductionTimeline, lc as useScrollLock, ld as useSettingAuto, le as useShellLanguage, lf as useShellPrefs, lg as useStatusLabel, lh as useTheme, li as useTransferProgress } from '../index-CZGuHIbF.js';
|
|
2
|
+
export { C as CurrencyFormat, D as DATE_FORMAT_OPTIONS, a as DateFormatKey, E as EMPTY_VALUE, F as FOCAL_DEFAULT, b as FOCAL_NUDGE_COARSE, c as FOCAL_NUDGE_STEP, d as FocalPoint, e as FormatDateOptions, f as FormatMoneyOptions, S as ShowWhenCheck, g as ShowWhenContext, h as ShowWhenRule, i as ShowWhenValue, T as TZ_AUTO, j as TimeAgoOptions, k as currencyDecimals, l as currencySymbol, m as firstDayOfWeek, n as focalFromRect, o as formatBytes, p as formatDate, q as formatDateTime, r as formatFocal, s as formatMoney, t as formatTime, u as getUserDateFormat, v as getUserTimezone, w as isShown, x as nudgeFocal, y as parseFocal, z as setCurrencyFormats, A as setUserDateFormat, B as setUserTimezone, G as syncTimezoneFromProfile, H as timeAgo } from '../index-aXJMK0gn.js';
|
|
3
3
|
export { isSafeLinkHref } from '../markup/index.js';
|
|
4
4
|
export { FileIntakeAlert, FileIntakeLimits, FileIntakeOptions, FileRejection, FileRejectionReason, acceptsFile, useFileIntake } from '../file-intake/index.js';
|
|
5
5
|
export { ICON_NAMES, ICON_SET_FOR_THEME, Icon, IconName, IconProps, IconTone, THEME_ICON_SETS, ThemeIconSet, iconSetFor, isIconName, loadIconSet } from '../icons/index.js';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{APP_UPDATE_POLL_MS,Accordion,AlignmentGrid,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,BORDER_LINE_STYLES,BORDER_WIDTHS,BorderInput,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,CONTROL_HEIGHTS,CORNERS,CORNERS_FOR_THEME,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CornersInput,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,DisplayChips,Divider,Drawer,DropdownMenu,ELEVATION_LEVELS,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FONT_WEIGHTS,FilePicker_default as FilePicker,FloatingBar,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,IconPicker,IconRail,IconRailButton,ImageFocusPoint,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LanguagePanel,LanguageSelect,LinkPicker,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,MOTION_DURATIONS,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PictureTiles,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RADIUS_ROLES,ROW_HEIGHTS,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,SPACING_ROLES,SPACING_SCALE,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingReset,SettingRow,ShowWhen,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidesEachToggle,SidesInput,Skeleton,Slider,SliderGroup,Snippet,SortableList,Sparkline,SplitButton_default as SplitButton,Stack,StatCard,StatTile,Statistic,Stepper,SunburstChart,Switch_default as Switch,TYPE_SCALE,Tabs,TagInput,Text,TextLinkField,TextToolbar,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,TransferProgress,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,WidthsBar,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,assignSeriesSlots,autoHighlightIndex,backspace,bandScale,binValues,borderSides,borderStartEach,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,columnSharesWidths,cornersFor,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,hexToHsv,highlightOpacity,hsvToHex,isSeverityTone,
|
|
2
|
+
export{APP_UPDATE_POLL_MS,Accordion,AlignmentGrid,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,BORDER_LINE_STYLES,BORDER_WIDTHS,BorderInput,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,CONTROL_HEIGHTS,CORNERS,CORNERS_FOR_THEME,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CornersInput,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,DisplayChips,Divider,Drawer,DropdownMenu,ELEVATION_LEVELS,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FONT_WEIGHTS,FilePicker_default as FilePicker,FloatingBar,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,IconPicker,IconRail,IconRailButton,ImageFocusPoint,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LanguagePanel,LanguageSelect,LinkPicker,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,MOTION_DURATIONS,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PictureTiles,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RADIUS_ROLES,ROW_HEIGHTS,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,SPACING_ROLES,SPACING_SCALE,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingReset,SettingRow,ShowWhen,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidesEachToggle,SidesInput,Skeleton,Slider,SliderGroup,Snippet,SortableList,Sparkline,SplitButton_default as SplitButton,Stack,StatCard,StatTile,Statistic,Stepper,SunburstChart,Switch_default as Switch,TYPE_SCALE,Tabs,TagInput,Text,TextLinkField,TextToolbar,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,TransferProgress,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,WidthsBar,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,assignSeriesSlots,autoHighlightIndex,backspace,bandScale,binValues,borderSides,borderStartEach,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,columnSharesWidths,cornersFor,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,hexToHsv,highlightOpacity,hsvToHex,isSeverityTone,isSpacingStep,labelClasses,ladderScale,languageSelectWidth,linearPath,linearScale,logScale,maskId,mediaFileName,monotonePath,niceAxis,niceMax,parseHexColor,polygonPoints,radiusScale,resolveColumnShares,resolveColumnWidths,resolveCorners,resolvePortalBrandAsset,resolveSeriesColor,resolveSeriesColorWithin,resolveTheme,seriesColor,severityOf,sidesStartEach,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,textToolbarRows,textToolbarWindowColumns,toKey as toDateKey,toDayMs,toISODate,toggleSeriesSlot,useAppUpdate,useClickOutside,useContextMenu,useDebouncedValue,useHighlight,useInSettingRow,usePlotWidth,usePortalBranding,useProductionTimeline,useSettingAuto,useTheme,useTransferProgress}from"../chunk-A7XLRGZQ.js";export{Breadcrumbs}from"../chunk-L5X6V677.js";export{SidebarLayout}from"../chunk-A5UR5LGU.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-2ZRX3NRH.js";export{ResizeHandle}from"../chunk-VB2Q65XD.js";export{EditableGrid}from"../chunk-USHLHGAH.js";import"../chunk-BR22X7E5.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-SLEWYXMY.js";export{ICON_NAMES,ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,isIconName,loadIconSet}from"../chunk-ITIXJFKF.js";export{Banner,Markdown,Markdown as MarkdownLite,StepChain,StepChainItem,Textarea_default as Textarea}from"../chunk-F6FTF37T.js";export{IconButton_default as IconButton}from"../chunk-RWNNFCSA.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-CU3GY5Y2.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-DAMBAXPA.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ColoredBadge,ENTER,GROUP_COLORS,GROUP_COLORS_SOLID,Kbd,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,StatusBadge,StatusBadgeProvider,VITE_PRELOAD_ERROR_EVENT,groupColors,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs,useStatusLabel}from"../chunk-RZHHSQDO.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,Dialog,confirm,confirmDestructive,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-3NYPZO4K.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-YIC644QO.js";import"../chunk-UVBK6YSR.js";export{VERSION}from"../chunk-N55MVC2J.js";import"../chunk-KNUR2UEG.js";export{Button_default as Button}from"../chunk-G5GERM76.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,Tooltip,placeMenu,popupBounds,useDropdownPosition}from"../chunk-3E27HV76.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-7IQ3B77H.js";export{OVERLAY_OPEN_EVENT,Z_LAYERS,dismissPopups,registerModalEscapeInterceptor}from"../chunk-FIEA5CGB.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7PQXJO7.js";import"../chunk-D65T4H6J.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-76DRQSJM.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-R57S7SWU.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-2EJRVQ3Y.js";import"../chunk-C3QOHMR6.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,isShown,nudgeFocal,parseFocal}from"../chunk-EJ4RMSQB.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{LoadingSpinner,SpinnerRing}from"../chunk-2J6F4EE7.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.73.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",
|
|
@@ -103,6 +103,16 @@
|
|
|
103
103
|
"import": "./dist/icons/efficient.js",
|
|
104
104
|
"default": "./dist/icons/efficient.js"
|
|
105
105
|
},
|
|
106
|
+
"./icons/efficient-glyphs": {
|
|
107
|
+
"types": "./dist/icons/efficient-glyphs.d.ts",
|
|
108
|
+
"import": "./dist/icons/efficient-glyphs.js",
|
|
109
|
+
"default": "./dist/icons/efficient-glyphs.js"
|
|
110
|
+
},
|
|
111
|
+
"./icons/efficient-meanings": {
|
|
112
|
+
"types": "./dist/icons/efficient-meanings.d.ts",
|
|
113
|
+
"import": "./dist/icons/efficient-meanings.js",
|
|
114
|
+
"default": "./dist/icons/efficient-meanings.js"
|
|
115
|
+
},
|
|
106
116
|
"./icons/efficient-looks": {
|
|
107
117
|
"types": "./dist/icons/efficient-looks.d.ts",
|
|
108
118
|
"import": "./dist/icons/efficient-looks.js",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-XA4APY3B.js";import{useWidgetSettings as n}from"./chunk-WS3P7QXT.js";import"./chunk-TPDOOCFS.js";import"./chunk-PZ53QKHH.js";import"./chunk-4ZBKHQVW.js";import"./chunk-5A7MWTXX.js";import"./chunk-YJIG2KT3.js";import"./chunk-KNUR2UEG.js";import"./chunk-BIR6UUSP.js";import"./chunk-UVBK6YSR.js";import"./chunk-DELNCIUK.js";import"./chunk-RDLWLATO.js";import"./chunk-7IQ3B77H.js";import"./chunk-D65T4H6J.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";import"./chunk-2J6F4EE7.js";import{Icon as r}from"./chunk-76DRQSJM.js";import{useState as l,useRef as c,useCallback as i,useEffect as a}from"react";import{jsxs as o,Fragment as s,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function d(){const[d,m]=l("0"),[k,b]=l(null),[p,g]=l(null),[y,N]=l(!1),[x,f]=l(""),[v,C]=l([]),[$,j]=l(!1),[E,w]=l(()=>e(h)),[S,T]=l(!1),[A,B]=l(E),W=c(null);n(i(()=>{B({...E}),T(!0)},[E]));const F=i(e=>{f(""),m(t=>y||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[y]),Q=i(()=>{m("0"),b(null),g(null),N(!1)},[]),R=i((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}},[]),D=i(e=>{const t=parseFloat(d);if(null!==k&&p&&!y){const e=R(k,t,p);m(String(e)),b(e),C(n=>[`${k} ${p} ${t} = ${e}`,...n].slice(0,20))}else b(t);g(e),N(!0)},[d,k,p,y,R]),I=i(()=>{if(null===k||!p)return;const e=parseFloat(d),t=R(k,e,p),n=`${k} ${p} ${e} =`;C(e=>[`${n} ${t}`,...e].slice(0,20)),f(n),m(String(t)),b(null),g(null),N(!0)},[d,k,p,R]),J=i(()=>{m(e=>String(parseFloat(e)/100))},[]),K=i(()=>{m(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);a(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?F(e.key):"."===e.key?F("."):"+"===e.key?D("+"):"-"===e.key?D("-"):"*"===e.key?D("×"):"/"===e.key?(e.preventDefault(),D("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&W.current?.contains(e.target)&&e.preventDefault(),I()):"Escape"===e.key?Q():"Backspace"===e.key?m(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&J())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[F,D,I,Q,J]);const O="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",P=`${O} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,U=`${O} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,H=`${O} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,L=`${O} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return o(s,{children:[
|
|
3
|
-
/* @__PURE__ */o("div",{ref:W,className:"flex flex-col h-full",style:{opacity:E.activeOpacity/100,backdropFilter:E.activeBlur>0?`blur(${E.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */o("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__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:v.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(x||p&&null!==k)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:x||`${k} ${p} ${y?"":d}`}),
|
|
6
|
-
/* @__PURE__ */o("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(d),j(!0),setTimeout(()=>j(!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__ */u(r,$?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
|
|
8
|
-
/* @__PURE__ */u("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__ */o("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */u("button",{onClick:Q,className:H,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:K,className:H,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:J,className:H,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>D("÷"),className:`${U} ${"÷"===p?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>F("7"),className:P,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>F("8"),className:P,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>F("9"),className:P,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>D("×"),className:`${U} ${"×"===p?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>F("4"),className:P,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>F("5"),className:P,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>F("6"),className:P,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>D("-"),className:`${U} ${"-"===p?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>F("1"),className:P,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>F("2"),className:P,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>F("3"),className:P,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>D("+"),className:`${U} ${"+"===p?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>F("0"),className:`${P} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>F("."),className:P,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:I,className:L,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:S,onClose:()=>T(!1),title:"Calculator Settings",appearance:A,onAppearanceChange:B,onSave:()=>{w(A),localStorage.setItem(h,JSON.stringify(A)),T(!1)}})]})}export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"./chunk-BIR6UUSP.js";import"./chunk-UVBK6YSR.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";import"./chunk-76DRQSJM.js";
|