efficient-shell 7.68.1 → 7.70.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-K6G6ZGQV.js → Browser-XDIOSJS4.js} +14 -14
- package/dist/Calculator-TTFPAPP7.js +29 -0
- package/dist/ConfirmDialog-JP35CDMP.js +1 -0
- package/dist/{CurrencyConverter-XGJI3D6B.js → CurrencyConverter-YEG2OFM7.js} +6 -6
- package/dist/{Documents-6W6ZCTXS.js → Documents-MRYWQZ6F.js} +14 -14
- package/dist/{Files-6RZPHMGE.js → Files-MJPDM7I3.js} +54 -54
- package/dist/{Notepad-TQQI2KQ4.js → Notepad-PWMJWNUE.js} +16 -16
- package/dist/PdfViewer-LALOZLBP.js +1 -0
- package/dist/{PomodoroTimer-GFFJUTH5.js → PomodoroTimer-7PWB2HLD.js} +11 -11
- package/dist/{Preview-K5ORQBUY.js → Preview-XMWD3UNB.js} +58 -58
- package/dist/{Sidebar-MTO5BBBT.js → Sidebar-NWSMRAIE.js} +9 -9
- package/dist/{Spreadsheet-ZG5LJQ6F.js → Spreadsheet-M2KRJ7BF.js} +14 -14
- package/dist/{Stock-JLHSJG4M.js → Stock-EO7DOEEF.js} +3 -3
- package/dist/{Weather-IYHZBAOX.js → Weather-Y6E3HASC.js} +12 -12
- package/dist/{WorldClock-FMQNCTFU.js → WorldClock-HXGPRRQZ.js} +6 -6
- package/dist/ai/index.js +16 -16
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-DYVTVLUE.js → chunk-2WZP2RMC.js} +1 -1
- package/dist/{chunk-6DPQAV2O.js → chunk-44BJ3XGZ.js} +9 -9
- package/dist/chunk-4EOL3HTG.js +22 -0
- package/dist/{chunk-DUCUZPU3.js → chunk-4ZBKHQVW.js} +8 -8
- package/dist/{chunk-YMIHGT3B.js → chunk-6MZFPE5S.js} +493 -493
- package/dist/chunk-7AQUUDJL.js +1 -0
- package/dist/{chunk-WQCUNSQL.js → chunk-AA5RO6ER.js} +17 -17
- package/dist/{chunk-3NYPZO4K.js → chunk-BIR6UUSP.js} +4 -4
- package/dist/{chunk-FJ4FO4FV.js → chunk-CCCVRRC7.js} +1 -1
- package/dist/{chunk-5MCD5KGU.js → chunk-I7OLF2FL.js} +8 -8
- package/dist/{chunk-CCWPP3YK.js → chunk-ITIXJFKF.js} +1 -1
- package/dist/{chunk-7B2YKMAZ.js → chunk-JVSFX53V.js} +7 -7
- package/dist/{chunk-OKFO3XYS.js → chunk-PZ53QKHH.js} +3 -3
- package/dist/{chunk-3X2EQ3UV.js → chunk-Q2A75VYD.js} +4 -4
- package/dist/chunk-WS3P7QXT.js +99 -0
- package/dist/{chunk-W64JQLDI.js → chunk-XA4APY3B.js} +1 -1
- package/dist/{chunk-L5X6V677.js → chunk-XMSL2GJP.js} +1 -1
- package/dist/{chunk-GN5J7DL6.js → chunk-YSJA274H.js} +2 -2
- package/dist/icons/efficient-looks.js +14 -12
- package/dist/icons/efficient.d.ts +3 -1
- package/dist/icons/efficient.js +122 -117
- package/dist/icons/iconoir.js +1 -1
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/lucide.js +7 -1
- package/dist/icons/phosphor.js +2 -1
- package/dist/icons/tabler.js +6 -1
- package/dist/{index-Dr5yL2I_.d.ts → index-BpCIWxCw.d.ts} +16 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +548 -548
- package/dist/map/index.d.ts +10 -19
- package/dist/map/index.js +7 -7
- package/dist/map-worker-route.d.ts +20 -0
- package/dist/map-worker-route.js +1 -0
- package/dist/page-tabs/index.js +4 -4
- package/dist/pdf/index.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +6 -1
- package/dist/Calculator-4QMTUBOI.js +0 -29
- package/dist/ConfirmDialog-YVFPLUQH.js +0 -1
- package/dist/PdfViewer-YELEO346.js +0 -1
- package/dist/chunk-2XU3X3MR.js +0 -99
- package/dist/chunk-MUYLPPQP.js +0 -1
- package/dist/chunk-XWW3SP5W.js +0 -22
package/dist/map/index.d.ts
CHANGED
|
@@ -609,30 +609,21 @@ declare const COMPACT_SHOW = "maplibregl-compact-show";
|
|
|
609
609
|
declare function foldAttributionOnce(control: Element | null): () => void;
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
|
-
* MapLibre,
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
*
|
|
616
|
-
* this dynamic import — `scripts/verify-dist.mjs` fails a build that reaches
|
|
617
|
-
* it statically.
|
|
612
|
+
* MapLibre's worker, as a host serves it — the ONE place its file names and
|
|
613
|
+
* its address are written. The browser loader (`./maplibre`) points MapLibre at
|
|
614
|
+
* `mapLibreWorkerUrl`; the Node route every host mounts
|
|
615
|
+
* (`efficient-shell/map/worker-route`) serves exactly these files there.
|
|
618
616
|
*
|
|
619
|
-
*
|
|
620
|
-
*
|
|
621
|
-
*
|
|
622
|
-
*
|
|
623
|
-
*
|
|
624
|
-
* /maplibre-gl/<version>/maplibre-gl-worker.mjs
|
|
625
|
-
* /maplibre-gl/<version>/maplibre-gl-shared.mjs
|
|
626
|
-
*
|
|
627
|
-
* The versioned path means an upgrade can never pair a cached old worker with
|
|
628
|
-
* a new main thread. In the Next.js portals that is a static route handler,
|
|
629
|
-
* `app/maplibre-gl/[version]/[file]/route.ts`, copying the two files verbatim
|
|
630
|
-
* from `node_modules/maplibre-gl/dist` at export time.
|
|
617
|
+
* MapLibre 6 starts a MODULE worker from the URL it is given, and that worker
|
|
618
|
+
* imports the shared file beside it, so both sit next to each other, unhashed,
|
|
619
|
+
* under the installed version: an upgrade changes the path, and no browser can
|
|
620
|
+
* pair a cached old worker with a new main thread. Imports nothing.
|
|
631
621
|
*/
|
|
632
|
-
type MapLibre = typeof maplibre_gl;
|
|
633
622
|
declare const MAPLIBRE_WORKER_FILE = "maplibre-gl-worker.mjs";
|
|
634
623
|
/** Where the host serves the worker for a given MapLibre version. */
|
|
635
624
|
declare const mapLibreWorkerUrl: (version: string) => string;
|
|
625
|
+
|
|
626
|
+
type MapLibre = typeof maplibre_gl;
|
|
636
627
|
/** MapLibre, loaded once per page; a failed load is retried by the next map. */
|
|
637
628
|
declare function loadMapLibre(): Promise<MapLibre>;
|
|
638
629
|
|
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{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,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:r,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=o().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||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=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])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};ee()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.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:[
|
|
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
3
|
/* @__PURE__ */h("div",{className:ke.fill,children:/* @__PURE__ */h("div",{ref:oe,className:ke.box,role:"region","aria-label":u})}),be&&/* @__PURE__ */h("p",{className:ke.failed,children:P.failed}),T&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>T.onChange(!T.active),leftIcon:/* @__PURE__ */h(le,{leave:T.active}),children:T.active?P.leaveFullScreen:P.fullScreen}),f,null!=R&&!Oe&&/* @__PURE__ */h("div",{"data-map-card":"",className:ke.cardInline,children:R}),Oe&&Te?p(R,Te):null,fe&&/* @__PURE__ */h(ae,{pins:t,hosts:he.current,hostClass:ke.iconHost})]})}function ae({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
|
|
4
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 le({leave:e}){/* @__PURE__ */
|
|
5
|
-
return h(
|
|
6
|
-
/* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${fe(e,t)}`}),ye(e,t)]},e))})}function Ee({point:t,number:n,onOpen:
|
|
5
|
+
return h(a,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 se(){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 ie=3e3,ce=e=>!!e?.pending&&3e3,ue=e=>`${e.kind}:${e.id}`,de=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function pe(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var me={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},he=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ge(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var fe=(e,t=me)=>t[e]?.tone??"bg-gray-700 text-white",ye=(e,t=me)=>t[e]?.label??e,be=(e,t)=>fe(ge(e),t);function xe(e,t,n=me){return null!=t?String(t):(n[ge(e)]?.label??"").charAt(0).toUpperCase()}var ve=["delivery_location","warehouse"];function we(e,t=ve){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(ue(o),++r);return n}function ke(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)de(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Ne(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 Me(e){const t=[...new Set(e.filter(de).map(ge))];return[...he.filter(e=>t.includes(e)),...t.filter(e=>!he.includes(e))]}function Ce(e,t){return e.filter(e=>!de(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(ue(e)),r=pe(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:ue(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function Le({categories:e,palette:t=me,floating:n=!0}){return e.length<2?null:/* @__PURE__ */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 ${fe(e,t)}`}),ye(e,t)]},e))})}function Ee({point:t,number:n,onOpen:o,onClose:l,palette:s=me}){const i=pe(t.placement),c=ge(t),u=r().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
11
|
/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s[c]?ye(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(
|
|
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]}),
|
|
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(a,{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]}),o&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:o,children:u.openRecord})})]})}function $e(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>ce(e.state.data)})}function Se({queryKey:e,queryFn:t,refreshSignal:n,onOpen:r,ariaLabel:a,title:c="Locations",palette:d=me,numbers:p,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:y,isError:b,refetch:x}=$e(e,t,{staleTime:0}),v=l(!1);i(()=>{v.current?x():v.current=!0},[n]);const[w,k]=s(null),N=u(()=>y?.points??[],[y]),M=u(()=>p??we(N),[p,N]),C=u(()=>N.filter(de).map(e=>({key:ue(e),label:e.label,lat:e.lat,lng:e.lng,glyph:xe(e,M.get(ue(e))??null,d),tone:be(e,d),approximate:"approximate"===e.placement})),[N,M,d]),L=u(()=>Ce(N,M),[N,M]),E=u(()=>Me(N),[N]),$=y?.pending??0,S=N.find(e=>ue(e)===w)??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
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(ke(N))})]}),
|
|
17
|
-
/* @__PURE__ */m(oe,{pins:C,selectedKey:w,focus:null,onSelect:k,ariaLabel:
|
|
17
|
+
/* @__PURE__ */m(oe,{pins:C,selectedKey:w,focus:null,onSelect:k,ariaLabel:a,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
19
|
/* @__PURE__ */h(Le,{categories:E,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
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||L.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(
|
|
21
|
+
/* @__PURE__ */h(o,{}),"Locating ",$," address",1===$?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),S&&/* @__PURE__ */h(Ee,{point:S,number:M.get(ue(S))??null,onOpen:j,onClose:()=>k(null),palette:d})]})]})}export{w as CARD_MIN_MAP_WIDTH,y as COMPACT_SHOW,oe as EntityMap,Se as LocationsMap,C as MAPLIBRE_WORKER_FILE,A as MAP_APART_PX,me as MAP_CATEGORIES,J as MAP_LOOKS,j as MAP_STOP_PX,S as MAP_TARGET_PX,Le as MapLegend,ie as PENDING_POLL_MS,ve as SECONDARY_KINDS,Ee as SelectedCard,N as cardMaxHeight,ye as categoryLabel,fe as categoryTone,b as foldAttributionOnce,de as isOnMap,K as layoutPins,Me as legendCategories,$ as loadMapLibre,we as locationNumbers,L as mapLibreWorkerUrl,ce as mapPointsRefetchInterval,Ce as offMapNotes,ge as pinCategory,xe as pinGlyph,be as pinTone,M as placeCard,pe as placementNote,ue as pointKey,B as stopsLabel,ke as summarize,Ne as summaryText,se as useMapHighlight,$e as useMapPoints,W as zoomApart};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** One route's params: the MapLibre version and the file asked for. */
|
|
2
|
+
type MapLibreWorkerParams = {
|
|
3
|
+
version: string;
|
|
4
|
+
file: string;
|
|
5
|
+
};
|
|
6
|
+
/** The route, reading the host installed under `root` (its working directory by default). */
|
|
7
|
+
declare function mapLibreWorkerRoute(root?: string | (() => string)): {
|
|
8
|
+
GET: (_request: Request, { params }: {
|
|
9
|
+
params: Promise<MapLibreWorkerParams>;
|
|
10
|
+
}) => Promise<Response>;
|
|
11
|
+
generateStaticParams: () => Promise<MapLibreWorkerParams[]>;
|
|
12
|
+
};
|
|
13
|
+
/** The host's route handler: one of the two worker files, else 404. */
|
|
14
|
+
declare const GET: (_request: Request, { params }: {
|
|
15
|
+
params: Promise<MapLibreWorkerParams>;
|
|
16
|
+
}) => Promise<Response>;
|
|
17
|
+
/** Every page the route has: the two worker files at the installed version. */
|
|
18
|
+
declare const generateStaticParams: () => Promise<MapLibreWorkerParams[]>;
|
|
19
|
+
|
|
20
|
+
export { GET, type MapLibreWorkerParams, generateStaticParams, mapLibreWorkerRoute };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{readFile as t}from"fs/promises";import{join as e}from"path";var a=["maplibre-gl-worker.mjs","maplibre-gl-shared.mjs"];function n(n=()=>process.cwd()){const r=()=>e("function"==typeof n?n():n,"node_modules","maplibre-gl");async function s(){return JSON.parse(await t(e(r(),"package.json"),"utf8")).version}return{GET:async function(n,{params:o}){const{version:i,file:c}=await o;if(!a.includes(c)||i!==await s())return new Response("Not found",{status:404});const p=await t(e(r(),"dist",c),"utf8");return new Response(p,{headers:{"Content-Type":"text/javascript; charset=utf-8"}})},generateStaticParams:async function(){const t=await s();return a.map(e=>({version:t,file:e}))}}}var r=n(),s=r.GET,o=r.generateStaticParams;export{s as GET,o as generateStaticParams,n as mapLibreWorkerRoute};
|
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
|
|
2
|
+
import{TabStrip as e}from"../chunk-4EOL3HTG.js";import{useShellLanguage as t}from"../chunk-SLEWYXMY.js";import"../chunk-PZ53QKHH.js";import"../chunk-YJIG2KT3.js";import{confirm as n}from"../chunk-BIR6UUSP.js";import"../chunk-UVBK6YSR.js";import"../chunk-7IQ3B77H.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import{useShellStrings as i}from"../chunk-2EJRVQ3Y.js";import"../chunk-C3QOHMR6.js";import"../chunk-76DRQSJM.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),T=12;var I=(e,t)=>e.filter(e=>e!==t);function j(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function M(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=w(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=w(n,e[0].key)}return n}(l,n)}function N(e){let t={...e,activeKey:null};return t.closing&&(t=w(t,t.closing)),t}function w(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:I(e.mounted,t),dirty:I(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function A(e,t){switch(t.type){case"visit":return M(e,t.entry,t.maxTabs);case"transient":return N(e);case"close":{let n=e;for(const e of t.keys)n=w(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]:I(e.dirty,t)}}(e,t.key,t.dirty)}}var C=e=>`${e.pathname}${e.search}`;function O(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function x({children:e,resolve:l,pinned:c=[],storageKey:a,maxTabs:k=12,enabled:h=!0,confirmDiscard:g}){const F=m(),T=b(),I=i().pageTabs,w=y(),x=s(l);x.current=l;const L=d(e=>{const t=x.current(e);return t?{key:t.key??e.pathname,path:C(e),title:t.title}:null},[]),{language:S}=t(),[E,R]=f(A,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=>L(O(e)),S);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:j(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},c.map(e=>L(O(e))).filter(e=>Boolean(e)));const n=h?L(F):null;return t=n?M(t,n,k):N(t),t}),B=s(E);B.current=E;const J=s(/* @__PURE__ */new Map),$=h?L(F):null,D=$?.key??null;r(()=>{if(!h)return;const e=L(F);e?(J.current.set(e.key,F),R({type:"visit",entry:e,maxTabs:k})):R({type:"transient"})},[F,h,k,L]),o(()=>{const e=new Set(E.tabs.map(e=>e.key));for(const t of J.current.keys())e.has(t)||J.current.delete(t)},[E.tabs]);const H=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)}(E,S),[E,S]);o(()=>{if(a)try{localStorage.setItem(a,H)}catch{}},[H,a]);const Q=E.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),Y=d((e,t)=>{let n=P.current.get(e);return void 0===n&&(n=P.current.size,P.current.set(e,n)),`${w}-page-${t}-${n}`},[w]),G=d(e=>g?g(e):n({title:I.discardTitle,message:1===e.length?I.discardOne:I.discardCount?.(e.length)??`${e.length} ${I.discardMany}`,confirmLabel:I.discardConfirm,cancelLabel:I.keepEditing,variant:"warning"}),[g,I]),U=d(()=>{const e=B.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),V=d((e,t,n)=>{const r=B.current,i=r.activeKey;if(!i||!e.includes(i))return void R({type:"close",keys:e,closing:null});let l=t;if(!l){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},c=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;l=(c??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??U()}R({type:"close",keys:e.filter(e=>e!==i),closing:i}),T(l)},[T,U]),W=d(async(e,t={})=>{const n=B.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&T(t.to),!1):!(!t.force&&B.current.dirty.includes(e)&&!await G([n]))&&(!!B.current.tabs.some(t=>t.key===e)&&(V([e],t.to),!0))},[G,V,T]),X=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 G(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&&V(n,void 0,"all"===e?null:t)},[G,V]),z=d(e=>{const t=B.current.tabs.find(t=>t.key===e);t&&e!==B.current.activeKey&&T(t.path)},[T]),Z=d((e,t)=>R({type:"title",key:e,title:t}),[]),q=d((e,t)=>R({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=>L(e)?.key??null,[L]),re=d(e=>J.current.get(e),[]),ie=u(()=>h?E.tabs.filter(e=>e.key!==E.closing):[],[h,E.tabs,E.closing]),le=u(()=>({enabled:h,state:E,currentKey:D,resolve:l,keyFor:ne,locationFor:re,idFor:Y,activate:z,close:W,closeMany:X,setTitle:Z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[h,E,D,l,ne,re,Y,z,W,X,Z,q,_,te,ie]);/* @__PURE__ */
|
|
3
|
+
return v(K.Provider,{value:le,children:e})}var L=l.Activity,S=Boolean(L);function E({active:e,children:t}){return L?/* @__PURE__ */v(L,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */v(h,{children:t})}var R=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
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(E,{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 J({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(R,{tabKey:n,active:i,location:s,render:e,className:t,panelId:a(n,"panel"),tabId:a(n,"tab")},n):null}),!l&&/* @__PURE__ */v(R,{tabKey:B,active:!0,location:r,render:e,className:t},B)]})}function
|
|
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(
|
|
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(R,{tabKey:n,active:i,location:s,render:e,className:t,panelId:a(n,"panel"),tabId:a(n,"tab")},n):null}),!l&&/* @__PURE__ */v(R,{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(O(e.path))?.icon})),activeKey:l.currentKey??null,idFor:o,panelMounted:e=>s.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:c.label,className:t,activeClassName:n,end:r})}var D={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function H(){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 Y(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 G(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{T as DEFAULT_MAX_TABS,S as PAGE_TABS_PAUSE_HIDDEN,$ as PageTabBar,J as PageTabsOutlet,x as PageTabsProvider,O as parseTabPath,Q as usePageTab,Y as usePageTabCopy,G as usePageTabDirty,P as usePageTabTitle,H 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-LALOZLBP.js"));export{e as PdfViewer};
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{startClientTelemetry}from"../chunk-
|
|
1
|
+
export{startClientTelemetry}from"../chunk-CCCVRRC7.js";import"../chunk-7AQUUDJL.js";import"../chunk-KNUR2UEG.js";
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 TreeDrop, i$ as TreeEmptySlot, j0 as TreeEmptySlotProps, j1 as TreeGroup, j2 as TreeGroupLabel, j3 as TreeGroupLabelProps, j4 as TreeGroupProps, j5 as TreeMove, j6 as TreeProps, j7 as TreeRow, j8 as TreeRowProps, j9 as TreeSeam, ja as TreeSeamProps, jb as TreemapChart, jc as TreemapChartProps, jd as TreemapItem, je as TreemapTile, jf as TypeStep, jg as UNDOABLE_MS, jh as UseAppUpdateOptions, ji as UseContextMenu, jj as UseProductionTimelineOpts, jk as VERSION, jl as VITE_PRELOAD_ERROR_EVENT, jm as WaterfallChart, jn as WaterfallChartProps, jo as WaterfallStep, jp as WidthsBar, jq as WidthsBarProps, jr as ZLayer, js as Z_LAYERS, jt as angleScale, ju as appendKey, jv as applyCorners, jw as applyIconSet, jx as applyThemePrefs, jy as arcPath, jz as areaBetween, jA as areaFrom, jB as assignSeriesSlots, jC as autoHighlightIndex, jD as backspace, jE as bandScale, jF as binValues, jG as borderSides, jH as borderStartEach, jI as budgetState, jJ as bumpPath, jK as buttonClasses, jL as calcOverall, jM as calcReportOverall, jN as colorFill, jO as colorSwatchClasses, jP as columnSharesWidths, jQ as confirm, jR as confirmDestructive, jS as cornersFor, jT as curvePath, jU as dashFor, jW as dismissPopups, jX as fillFor, jY as fillId, jZ as fmtSliderDate, j_ as fromDateKey, j$ as glassStyle, k0 as glowId, k1 as groundId, k2 as groupColors, k3 as hexToHsv, k4 as highlightOpacity, k5 as hsvToHex, k6 as iconButtonClasses, k7 as inputClasses, k8 as installStaleChunkReload, k9 as isMac, ka as isSeverityTone, kb as isShown, kc as isSpacingStep, kd as isStaleChunkError, kf as labelClasses, kg as ladderScale, kh as languageSelectWidth, ki as leavesContextMenuAlone, kj as linearPath, kk as linearScale, kl as logScale, km as maskId, kn as matchShellLanguage, ko as mediaFileName, kp as monotonePath, kq as niceAxis, kr as niceMax, ks as openGlobalSearch, kt as parseHexColor, ku as placeMenu, kv as polygonPoints, kw as popupBounds, kx as prompt, ky as pushRecentSearch, kz as radiusScale, kA as readSavedShellLanguage, kB as registerModalEscapeInterceptor, kC as resolveBrandMarkTreatment, kD as resolveColumnShares, kE as resolveColumnWidths, kF as resolveCorners, kG as resolvePortalBrandAsset, kH as resolveSeriesColor, kI as resolveSeriesColorWithin, kJ as resolveShellLanguage, kK as resolveTheme, kL as sanitizeRecentSearches, kM as saveShellLanguage, kN as seriesColor, kO as severityOf, kP as sidesStartEach, kQ as solidSurfaceStyle, kR as splinePath, kS as squarify, kT as stagger, kU as stepPath, kV as tabButtonId, kW as tabPanelId, kX as textToolbarRows, kY as textToolbarWindowColumns, kZ as toDateKey, k_ as toDayMs, k$ as toISODate, l0 as toast, l1 as toggleSeriesSlot, l2 as useAppUpdate, l3 as useClickOutside, l4 as useConfirm, l5 as useContextMenu, l6 as useDebouncedValue, l7 as useDropdownPosition, l8 as useFocusTrap, l9 as useHighlight, la as useInSettingRow, lb as useIsMobile, lc as useLocalStoragePrefs, ld as usePlotWidth, le as usePortalBranding, lf as useProductionTimeline, lg as useScrollLock, lh as useSettingAuto, li as useShellLanguage, lj as useShellPrefs, lk as useStatusLabel, ll as useTheme, lm as useTransferProgress } from '../index-Dr5yL2I_.js';
|
|
1
|
+
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as 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
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, g as TimeAgoOptions, h as currencyDecimals, i as currencySymbol, j as firstDayOfWeek, k as focalFromRect, l as formatBytes, m as formatDate, n as formatDateTime, o as formatFocal, p as formatMoney, q as formatTime, r as getUserDateFormat, s as getUserTimezone, t as nudgeFocal, u as parseFocal, v as setCurrencyFormats, w as setUserDateFormat, x as setUserTimezone, y as syncTimezoneFromProfile, z as timeAgo } from '../index-CHufemKB.js';
|
|
3
3
|
export { isSafeLinkHref } from '../markup/index.js';
|
|
4
4
|
export { FileIntakeAlert, FileIntakeLimits, FileIntakeOptions, FileRejection, FileRejectionReason, acceptsFile, useFileIntake } from '../file-intake/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,isShown,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-
|
|
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,isShown,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-6MZFPE5S.js";export{Breadcrumbs}from"../chunk-XMSL2GJP.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-2ZRX3NRH.js";export{EditableGrid}from"../chunk-44BJ3XGZ.js";import"../chunk-BR22X7E5.js";export{SidebarLayout}from"../chunk-JVSFX53V.js";export{ResizeHandle}from"../chunk-6I4ZV67D.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-SLEWYXMY.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-AP2QEJXQ.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{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-R57S7SWU.js";export{Banner,Markdown,Markdown as MarkdownLite,StepChain,StepChainItem,Textarea_default as Textarea}from"../chunk-AA5RO6ER.js";export{IconButton_default as IconButton}from"../chunk-EU4BCXGA.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-4ZBKHQVW.js";import"../chunk-5A7MWTXX.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-YJIG2KT3.js";export{VERSION}from"../chunk-7AQUUDJL.js";import"../chunk-KNUR2UEG.js";export{ConfirmProvider,Dialog,confirm,confirmDestructive,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-BIR6UUSP.js";import"../chunk-UVBK6YSR.js";export{Button_default as Button}from"../chunk-DELNCIUK.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,Tooltip,placeMenu,popupBounds,useDropdownPosition}from"../chunk-RDLWLATO.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-7IQ3B77H.js";import"../chunk-D65T4H6J.js";export{OVERLAY_OPEN_EVENT,Z_LAYERS,dismissPopups,registerModalEscapeInterceptor}from"../chunk-FIEA5CGB.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7PQXJO7.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-2EJRVQ3Y.js";import"../chunk-C3QOHMR6.js";export{LoadingSpinner,SpinnerRing}from"../chunk-2J6F4EE7.js";export{ICON_NAMES,ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,isIconName,loadIconSet}from"../chunk-ITIXJFKF.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-76DRQSJM.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.70.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",
|
|
@@ -59,6 +59,11 @@
|
|
|
59
59
|
"import": "./dist/map/index.js",
|
|
60
60
|
"default": "./dist/map/index.js"
|
|
61
61
|
},
|
|
62
|
+
"./map/worker-route": {
|
|
63
|
+
"types": "./dist/map-worker-route.d.ts",
|
|
64
|
+
"import": "./dist/map-worker-route.js",
|
|
65
|
+
"default": "./dist/map-worker-route.js"
|
|
66
|
+
},
|
|
62
67
|
"./ai": {
|
|
63
68
|
"types": "./dist/ai/index.d.ts",
|
|
64
69
|
"import": "./dist/ai/index.js",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-W64JQLDI.js";import{useWidgetSettings as n}from"./chunk-2XU3X3MR.js";import"./chunk-TPDOOCFS.js";import"./chunk-OKFO3XYS.js";import"./chunk-DUCUZPU3.js";import"./chunk-5A7MWTXX.js";import"./chunk-YJIG2KT3.js";import"./chunk-KNUR2UEG.js";import"./chunk-3NYPZO4K.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{Icon as r}from"./chunk-76DRQSJM.js";import"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";import"./chunk-2J6F4EE7.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),[O,D]=l(E),F=c(null);n(i(()=>{D({...E}),T(!0)},[E]));const U=i(e=>{f(""),m(t=>y||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[y]),J=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}},[]),W=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]),A=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]),I=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"?U(e.key):"."===e.key?U("."):"+"===e.key?W("+"):"-"===e.key?W("-"):"*"===e.key?W("×"):"/"===e.key?(e.preventDefault(),W("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&F.current?.contains(e.target)&&e.preventDefault(),A()):"Escape"===e.key?J():"Backspace"===e.key?m(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&I())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[U,W,A,J,I]);const L="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",X=`${L} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,B=`${L} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,Q=`${L} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,M=`${L} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return o(s,{children:[
|
|
3
|
-
/* @__PURE__ */o("div",{ref:F,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:J,className:Q,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:K,className:Q,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:I,className:Q,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>W("÷"),className:`${B} ${"÷"===p?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>U("7"),className:X,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>U("8"),className:X,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>U("9"),className:X,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>W("×"),className:`${B} ${"×"===p?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>U("4"),className:X,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>U("5"),className:X,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>U("6"),className:X,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>W("-"),className:`${B} ${"-"===p?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>U("1"),className:X,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>U("2"),className:X,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>U("3"),className:X,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>W("+"),className:`${B} ${"+"===p?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>U("0"),className:`${X} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>U("."),className:X,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:A,className:M,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:S,onClose:()=>T(!1),title:"Calculator Settings",appearance:O,onAppearanceChange:D,onSave:()=>{w(O),localStorage.setItem(h,JSON.stringify(O)),T(!1)}})]})}export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"./chunk-3NYPZO4K.js";import"./chunk-UVBK6YSR.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import"./chunk-76DRQSJM.js";import"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-5MCD5KGU.js";import"./chunk-DAMBAXPA.js";import"./chunk-K7PQXJO7.js";import"./chunk-76DRQSJM.js";import"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";import"./chunk-2J6F4EE7.js";
|