efficient-shell 8.39.0 → 8.41.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/README.md +9 -2
- package/dist/{Browser-BIGK2F75.js → Browser-4C26ZOKV.js} +14 -14
- package/dist/Calculator-MNTQSI6M.js +29 -0
- package/dist/{CurrencyConverter-IVJJCYZ7.js → CurrencyConverter-5XTNXV6T.js} +6 -6
- package/dist/{Documents-UHTD6M24.js → Documents-VVKKYYJS.js} +20 -20
- package/dist/{Files-PWYUTAQW.js → Files-BK7OAVOI.js} +35 -35
- package/dist/{Notepad-54N54RYN.js → Notepad-Z5XVWR2N.js} +11 -11
- package/dist/{PomodoroTimer-ZCJBTFV5.js → PomodoroTimer-ZVD3D357.js} +1 -1
- package/dist/{Preview-3LOY6L4G.js → Preview-K5AJQGE7.js} +32 -32
- package/dist/Sidebar-LYTGLTQJ.js +43 -0
- package/dist/{Spreadsheet-ANBJSAHB.js → Spreadsheet-CCTSMXEG.js} +8 -8
- package/dist/{Stock-PHY6Z26A.js → Stock-53UOMBQW.js} +7 -7
- package/dist/{Weather-YQA5CAFQ.js → Weather-S2ZIGNSU.js} +13 -13
- package/dist/{WorldClock-J6L7FWI2.js → WorldClock-A62SDKTE.js} +6 -6
- package/dist/ai/index.js +32 -32
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-ZSFUNXRD.js → chunk-26AYPJSK.js} +4 -4
- package/dist/chunk-2CGZX62Z.js +29 -0
- package/dist/{chunk-G63BCOQ6.js → chunk-3AKIKASU.js} +1 -1
- package/dist/{chunk-Y6IQYQYN.js → chunk-3BSPSRK4.js} +3 -3
- package/dist/{chunk-EEHK4IIK.js → chunk-3ZHFKOFX.js} +8 -8
- package/dist/{chunk-ZCHBOAPA.js → chunk-5E3WCKWB.js} +1 -1
- package/dist/{chunk-KJY57QPT.js → chunk-6NSCK3YX.js} +23 -23
- package/dist/{chunk-4OFD6ICH.js → chunk-C4YN2DNM.js} +10 -10
- package/dist/{chunk-WCKZHEFC.js → chunk-CWXKRYVY.js} +4 -4
- package/dist/{chunk-NGBT7AHL.js → chunk-DZ6B5XCG.js} +5 -5
- package/dist/{chunk-ZWAVSUWT.js → chunk-FORJ75AU.js} +2 -2
- package/dist/chunk-FORUFXAN.js +7 -0
- package/dist/chunk-HTYRV4WU.js +3 -0
- package/dist/{chunk-L7FDYGGF.js → chunk-IUMFKZY7.js} +3 -3
- package/dist/{chunk-BUGAWNOC.js → chunk-JVIOAZHW.js} +4 -4
- package/dist/{chunk-DXTKNHWG.js → chunk-L5ND7FNA.js} +7 -7
- package/dist/{chunk-7MSFHQAY.js → chunk-L73LI7FG.js} +7 -7
- package/dist/{chunk-ZEKM6HAA.js → chunk-M2AIC7IK.js} +2 -2
- package/dist/{chunk-QDLGU62M.js → chunk-MG7OPTLQ.js} +1 -1
- package/dist/{chunk-3CST4ZDP.js → chunk-N2SJNPFY.js} +3 -3
- package/dist/{chunk-CPK7JTN3.js → chunk-NL5G26Q7.js} +1 -1
- package/dist/chunk-NMKADD77.js +1 -0
- package/dist/{chunk-U4BMS5EV.js → chunk-QVR4LBBW.js} +1 -1
- package/dist/{chunk-LGAN7DNC.js → chunk-RGOUJFAO.js} +3 -3
- package/dist/{chunk-EIWTOEWV.js → chunk-VFCWCGO3.js} +3 -3
- package/dist/{chunk-7C56GLLI.js → chunk-W6TS6WGA.js} +17 -17
- package/dist/{chunk-NESJOC3R.js → chunk-Z35NWGMT.js} +1 -1
- package/dist/{chunk-45S6M77O.js → chunk-ZVEOWBXE.js} +6 -6
- package/dist/{chunk-GCGKPDPN.js → chunk-ZX2D25LG.js} +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.d.ts +4 -2
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.d.ts +3 -0
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +141 -141
- package/dist/map/index.d.ts +36 -2
- package/dist/map/index.js +11 -11
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-7O7HXEKH.js +0 -29
- package/dist/Sidebar-6I4FC5AK.js +0 -43
- package/dist/chunk-5JYBYMZT.js +0 -29
- package/dist/chunk-AAW27HJY.js +0 -3
- package/dist/chunk-UJOWORTR.js +0 -1
- package/dist/chunk-YALPQIBR.js +0 -7
package/dist/map/index.d.ts
CHANGED
|
@@ -70,7 +70,8 @@ declare const MAP_LOOKS: Record<MapLook, MapLookClasses>;
|
|
|
70
70
|
* whoson.today does: MapLibre over OpenFreeMap's vector tiles — free,
|
|
71
71
|
* keyless, OpenStreetMap data (the same data the backend geocodes against), a
|
|
72
72
|
* light and a dark style. The tiles load straight from tiles.openfreemap.org,
|
|
73
|
-
* so a host with a Content-Security-Policy must allow that origin
|
|
73
|
+
* so a host with a Content-Security-Policy must allow that origin: the
|
|
74
|
+
* sources it needs are `MAP_CSP_SOURCES` (`csp.ts`).
|
|
74
75
|
*
|
|
75
76
|
* MapLibre is fetched only once the map mounts (`loadMapLibre`, which also
|
|
76
77
|
* says how the host serves its worker), and the map is made once per mount;
|
|
@@ -614,6 +615,39 @@ declare function useMapPoints<T extends MapPoints>(queryKey: QueryKey, queryFn:
|
|
|
614
615
|
declare const COMPACT_SHOW = "maplibregl-compact-show";
|
|
615
616
|
declare function foldAttributionOnce(control: Element | null): () => void;
|
|
616
617
|
|
|
618
|
+
/**
|
|
619
|
+
* Every external origin the map reaches, by Content-Security-Policy directive
|
|
620
|
+
* — the one place they are written down.
|
|
621
|
+
*
|
|
622
|
+
* `EntityMap` fetches its style from OpenFreeMap, and the style sends MapLibre
|
|
623
|
+
* on to the vector tiles (`/planet`), the `ne2_shaded` raster, the sprites and
|
|
624
|
+
* the fonts on that same origin, all with `fetch`, so a strict CSP must list
|
|
625
|
+
* it in `connect-src`. MapLibre's worker is served from the host's own origin
|
|
626
|
+
* (`loadMapLibre`), which `script-src 'self'` already covers.
|
|
627
|
+
*
|
|
628
|
+
* A CSP is a header each host sends, so the shell cannot set it. Instead each
|
|
629
|
+
* host with a strict CSP (the dealer portal's Next and nginx configs,
|
|
630
|
+
* efficient-ops' `(storefront_site)`) has a test asserting its policy covers
|
|
631
|
+
* these sources: change the tile provider here and those tests turn red,
|
|
632
|
+
* rather than a production map going blank. efficient-ops has no npm
|
|
633
|
+
* dependency on the shell, so its test
|
|
634
|
+
* (`tests/test_caddy_storefront_map_csp.py`) keeps a pinned copy of `connect`:
|
|
635
|
+
* change it there too. Proxying the tiles through our own
|
|
636
|
+
* origin was rejected for the server load and latency (Victor Mau, 2026-10-23).
|
|
637
|
+
*
|
|
638
|
+
* No imports: a host's Node-side test reads it without React or MapLibre.
|
|
639
|
+
*/
|
|
640
|
+
/** OpenFreeMap: the styles, and the tiles, sprites and fonts they name. */
|
|
641
|
+
declare const MAP_TILE_ORIGIN = "https://tiles.openfreemap.org";
|
|
642
|
+
declare const MAP_CSP_SOURCES: {
|
|
643
|
+
readonly connect: readonly ["https://tiles.openfreemap.org"];
|
|
644
|
+
};
|
|
645
|
+
/** The light and the dark style `EntityMap` draws with. */
|
|
646
|
+
declare const MAP_STYLE_URLS: {
|
|
647
|
+
readonly light: "https://tiles.openfreemap.org/styles/positron";
|
|
648
|
+
readonly dark: "https://tiles.openfreemap.org/styles/dark";
|
|
649
|
+
};
|
|
650
|
+
|
|
617
651
|
/**
|
|
618
652
|
* MapLibre's worker, as a host serves it — the ONE place its file names and
|
|
619
653
|
* its address are written. The browser loader (`./maplibre`) points MapLibre at
|
|
@@ -633,4 +667,4 @@ type MapLibre = typeof maplibre_gl;
|
|
|
633
667
|
/** MapLibre, loaded once per page; a failed load is retried by the next map. */
|
|
634
668
|
declare function loadMapLibre(): Promise<MapLibre>;
|
|
635
669
|
|
|
636
|
-
export { CARD_MIN_MAP_WIDTH, COMPACT_SHOW, type CardAnchor, type CardPlace, EntityMap, LocationsMap, MAPLIBRE_WORKER_FILE, MAP_APART_PX, MAP_CATEGORIES, MAP_LOOKS, MAP_STOP_PX, MAP_TARGET_PX, type MapCategory, MapLegend, type MapLook, type MapLookClasses, type MapMark, type MapPin, type MapPlacement, type MapPoint, type MapPoints, type MapRoute, type MapSummary, PENDING_POLL_MS, type PinAt, type PinBox, type PinGroup, type PinLayout, SECONDARY_KINDS, SelectedCard, cardMaxHeight, categoryLabel, categoryTone, foldAttributionOnce, isOnMap, layoutPins, legendCategories, loadMapLibre, locationNumbers, mapLibreWorkerUrl, mapPointsRefetchInterval, offMapNotes, pinCategory, pinGlyph, pinTone, placeCard, placementNote, pointKey, stopsLabel, summarize, summaryText, useMapHighlight, useMapPoints, zoomApart };
|
|
670
|
+
export { CARD_MIN_MAP_WIDTH, COMPACT_SHOW, type CardAnchor, type CardPlace, EntityMap, LocationsMap, MAPLIBRE_WORKER_FILE, MAP_APART_PX, MAP_CATEGORIES, MAP_CSP_SOURCES, MAP_LOOKS, MAP_STOP_PX, MAP_STYLE_URLS, MAP_TARGET_PX, MAP_TILE_ORIGIN, type MapCategory, MapLegend, type MapLook, type MapLookClasses, type MapMark, type MapPin, type MapPlacement, type MapPoint, type MapPoints, type MapRoute, type MapSummary, PENDING_POLL_MS, type PinAt, type PinBox, type PinGroup, type PinLayout, SECONDARY_KINDS, SelectedCard, cardMaxHeight, categoryLabel, categoryTone, foldAttributionOnce, isOnMap, layoutPins, legendCategories, loadMapLibre, locationNumbers, mapLibreWorkerUrl, mapPointsRefetchInterval, offMapNotes, pinCategory, pinGlyph, pinTone, placeCard, placementNote, pointKey, stopsLabel, summarize, summaryText, useMapHighlight, useMapPoints, zoomApart };
|
package/dist/map/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{Button_default as e}from"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-VH6GB73Q.js";import{Icon as t}from"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import{SpinnerRing as n}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import{rootIsDark as r,ROOT_THEME_ATTRIBUTES as o}from"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as a}from"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.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,k=12,w=480,v={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-k-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-k,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<k?(i="-left",c=Math.max(0,k-e.x)):e.x+t.width/2>n.width-k&&(i="-right",c=-Math.max(0,e.x-(n.width-k))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var C="maplibre-gl-worker.mjs",L=e=>`/maplibre-gl/${e}/${C}`,j=null;function S(){return j??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(L(e.getVersion())),e)).catch(e=>{throw j=null,e}),j}var E=null;var $=24,B=28,z=29;function A(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function R(e){const t=Math.max(B,12+8*e.length);return t+t%2}var T=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function W(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var F=e=>T(e.x,e.y,e.width,e.height);function O(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(W(F(e[t]),F(e[n])))return[e[t],e[n]];return null}function K(e,t=[]){const n=[],r=e=>t.some(t=>W(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:B,height:B,under:0}));for(let e=O(o);e;e=O(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=R(A(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(F(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=T(t.x,t.y,$,$),l=o.find(t=>W(F(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>W(F(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:$,height:$,under:0})}return{groups:[...o,...a],hidden:n}}function q(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function _(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:o}),()=>t.disconnect()}var D=r;var H=(...e)=>e.filter(Boolean).join(" "),I=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function P(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 U="ring-2 ring-gray-900 ring-offset-2",G={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",!P(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":U),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",!P(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&&U),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",sheet:function(){return E??=import("efficient-shell/map-site.css").catch(e=>{throw E=null,e}),E}}},J="routes",V=["routes-road","routes-estimate"];function Z(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(),Q(n)}function Q(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var X={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},Y={center:[30,20],zoom:1};var ee="http://www.w3.org/2000/svg",te=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,ne=(...e)=>e.filter(Boolean).join(" ");function re(e){const t=document.createElementNS(ee,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(ee,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function oe(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function ae({pins:t,selectedKey:n,focus:r,onSelect:o,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:k,marks:w,groupCrowded:C=!1,noun:L,highlightKey:j=null,picking:E=!1,onPick:z,card:R,cardMinMapWidth:T=480,fullScreen:W,initialView:F=Y,cooperativeGestures:O=!1,look:H="portal",theme:I}){const P=a().map,U=l(null),ee=l(null),ae=l(null),ie=l(null),ce=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,ye]=s(!1),[be,xe]=s(!1),ke=d(_,D,()=>!1),we=I??(ke?"dark":"light"),ve=G[H],Ne=l({onSelect:o,onPick:z,picking:E,pins:t,selectedKey:n,highlightKey:j,groupCrowded:C,strings:P,noun:L,looks:ve});i(()=>{Ne.current={onSelect:o,onPick:z,picking:E,pins:t,selectedKey:n,highlightKey:j,groupCrowded:C,strings:P,noun:L,looks:ve}}),i(()=>{ve.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[ve]);const Me=c(()=>{const e=ae.current,{pins:t,selectedKey:n}=Ne.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:te()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=ae.current,r=ie.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>q(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:te()?0:600})},[]),je=c(()=>{const e=ae.current,t=ie.current;if(!e||!t||!U.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=[...U.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?A(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?B:$),height:t.button.offsetHeight||(null!=t.pin.stop?B:$)}:n?{at:n.mark,width:n.element.offsetWidth||B,height:n.element.offsetHeight||B}: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(je(),!U.current)return;const e=new ResizeObserver(()=>je());e.observe(U.current);for(const t of U.current.children)t.contains(ee.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await S();if(e||!ee.current)return;ie.current=o,t=new o.Map({container:ee.current,style:X[we],center:F.center,zoom:F.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===O?window.matchMedia("(pointer: coarse)").matches:O}),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",je),t.on("moveend",je),t.on("resize",je),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(ee.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(ee.current),ae.current=t,ye(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),ae.current=null}},[]);const Se=l(we);i(()=>{fe&&ae.current&&Se.current!==we&&(Se.current=we,ae.current.setStyle(X[we]))},[fe,we]),i(()=>{const e=ae.current,n=ie.current;if(!fe||!e||!n)return;ce.current.forEach(e=>e.remove()),ce.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=ve.pinButton(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const s=document.createElement("span");if(oe(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(re(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ve.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,oe(r,t.data),r.className=ve.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})}je()},[fe,t,w,C,je,H]),i(()=>{fe&&je()},[fe,n,j,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=ae.current,n=ie.current,r=x?[...t,...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=ae.current;if(!fe||!e)return;const t=(y??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),Q(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?Z(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(J);if(s&&(s.attribution||"")!==n){for(const t of V)e.getLayer(t)&&e.removeLayer(t);e.removeSource(J)}const i=e.getSource(J);i?i.setData(o):e.addSource(J,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:J,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:J,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=ae.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=C?q(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};te()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[Ee,$e]=s(!1);i(()=>{const e=U.current;if(!e)return;const t=()=>$e(e.clientWidth<T);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[T]);const Be=n?t.find(e=>e.key===n)??null:null,ze=Be?.key??null,Ae=Be?.lng??0,Re=Be?.lat??0,Te=fe&&!Ee&&null!=R&&!!Be,[We,Fe]=s(null);i(()=>{const e=ae.current,t=ie.current;if(!(Te&&e&&t&&ze))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:v,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Ae,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===G.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(),U.current)+8,s=`${N(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:te()?0:250}),je()},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(ze)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Te,ze,Ae,Re,je]);const Oe=W?.active??!1,Ke=l(W?.onChange);i(()=>{Ke.current=W?.onChange}),i(()=>{if(!W)return;const e=document.documentElement;Oe&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Oe&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Oe]);const qe=!!W;return i(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||Ke.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:U,className:ne(ve.frame(E),g),children:[
|
|
3
|
-
/* @__PURE__ */h("div",{className:ve.fill,children:/* @__PURE__ */h("div",{ref:
|
|
4
|
-
return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function
|
|
5
|
-
return h(t,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
|
|
6
|
-
/* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${
|
|
2
|
+
import{Button_default as e}from"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import{Icon as t}from"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import{SpinnerRing as n}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import{rootIsDark as r,ROOT_THEME_ATTRIBUTES as o}from"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as a}from"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.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="https://tiles.openfreemap.org",k={connect:[x]},w={light:`${x}/styles/positron`,dark:`${x}/styles/dark`},v=20,N=12,M=480,C={center:[0,0],left:[v,0],right:[-20,0],top:[0,v],"top-left":[0,v],"top-right":[0,v],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},L=(e,t=12)=>Math.max(0,Math.floor(e-t-N-v-10-16));function j(e,t,n,r=12){const o=e.y-v-r,a=n.height-e.y-v-N,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<N?(i="-left",c=Math.max(0,N-e.x)):e.x+t.width/2>n.width-N&&(i="-right",c=-Math.max(0,e.x-(n.width-N))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var S="maplibre-gl-worker.mjs",$=e=>`/maplibre-gl/${e}/${S}`,E=null;function B(){return E??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl($(e.getVersion())),e)).catch(e=>{throw E=null,e}),E}var z=null;var A=24,R=28,T=29;function W(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 F(e){const t=Math.max(R,12+8*e.length);return t+t%2}var O=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function K(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var q=e=>O(e.x,e.y,e.width,e.height);function _(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(K(q(e[t]),q(e[n])))return[e[t],e[n]];return null}function D(e,t=[]){const n=[],r=e=>t.some(t=>K(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:R,height:R,under:0}));for(let e=_(o);e;e=_(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=F(W(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(q(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=O(t.x,t.y,A,A),l=o.find(t=>K(q(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>K(q(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:A,height:A,under:0})}return{groups:[...o,...a],hidden:n}}function H(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 I(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:o}),()=>t.disconnect()}var P=r;var U=(...e)=>e.filter(Boolean).join(" "),G=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function J(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-")&&!G.test(r.slice(7))})}var V="ring-2 ring-gray-900 ring-offset-2",Z={portal:{frame:e=>U("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)=>U("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 U("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!J(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":V),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>U("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!J(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>U("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&&V),badge:e=>U("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=>U("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)=>U("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>U("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=>U("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>U("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon",sheet:function(){return z??=import("efficient-shell/map-site.css").catch(e=>{throw z=null,e}),z}}},Q="routes",X=["routes-road","routes-estimate"];function Y(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(),ee(n)}function ee(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 te={center:[30,20],zoom:1};var ne="http://www.w3.org/2000/svg",re=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,oe=(...e)=>e.filter(Boolean).join(" ");function ae(e){const t=document.createElementNS(ne,"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(ne,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function le(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function se({pins:t,selectedKey:n,focus:r,onSelect:o,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:k,marks:v,groupCrowded:N=!1,noun:M,highlightKey:S=null,picking:$=!1,onPick:E,card:z,cardMinMapWidth:T=480,fullScreen:F,initialView:O=te,cooperativeGestures:K=!1,look:q="portal",theme:_}){const U=a().map,G=l(null),J=l(null),V=l(null),ne=l(null),se=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),ke=d(I,P,()=>!1),we=_??(ke?"dark":"light"),ve=Z[q],Ne=l({onSelect:o,onPick:E,picking:$,pins:t,selectedKey:n,highlightKey:S,groupCrowded:N,strings:U,noun:M,looks:ve});i(()=>{Ne.current={onSelect:o,onPick:E,picking:$,pins:t,selectedKey:n,highlightKey:S,groupCrowded:N,strings:U,noun:M,looks:ve}}),i(()=>{ve.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[ve]);const Me=c(()=>{const e=V.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:re()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=V.current,r=ne.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)=>H(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:re()?0:600})},[]),je=c(()=>{const e=V.current,t=ne.current;if(!e||!t||!G.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...G.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=D([...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?W(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?R:A),height:t.button.offsetHeight||(null!=t.pin.stop?R:A)}:n?{at:n.mark,width:n.element.offsetWidth||R,height:n.element.offsetHeight||R}: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(je(),!G.current)return;const e=new ResizeObserver(()=>je());e.observe(G.current);for(const t of G.current.children)t.contains(J.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await B();if(e||!J.current)return;ne.current=o,t=new o.Map({container:J.current,style:w[we],center:O.center,zoom:O.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===K?window.matchMedia("(pointer: coarse)").matches:K}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(O.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",je),t.on("moveend",je),t.on("resize",je),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(J.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(J.current),V.current=t,ye(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),se.current.forEach(e=>e.remove()),se.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),V.current=null}},[]);const Se=l(we);i(()=>{fe&&V.current&&Se.current!==we&&(Se.current=we,V.current.setStyle(w[we]))},[fe,we]),i(()=>{const e=V.current,n=ne.current;if(!fe||!e||!n)return;se.current.forEach(e=>e.remove()),se.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=ve.pinButton(o,N);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(le(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(ae(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=ve.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),se.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of v??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,le(r,t.data),r.className=ve.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),se.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})}je()},[fe,t,v,N,je,q]),i(()=>{fe&&je()},[fe,n,S,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=V.current,n=ne.current,r=x?[...t,...v??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[fe,t,v,x]),i(()=>{const e=V.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(),ee(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?Y(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 X)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=V.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=N?H(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))};re()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[$e,Ee]=s(!1);i(()=>{const e=G.current;if(!e)return;const t=()=>Ee(e.clientWidth<T);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[T]);const Be=n?t.find(e=>e.key===n)??null:null,ze=Be?.key??null,Ae=Be?.lng??0,Re=Be?.lat??0,Te=fe&&!$e&&null!=z&&!!Be,[We,Fe]=s(null);i(()=>{const e=V.current,t=ne.current;if(!(Te&&e&&t&&ze))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:C,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Ae,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===Z.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(),G.current)+8,s=`${L(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=j(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:re()?0:250}),je()},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(ze)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Te,ze,Ae,Re,je]);const Oe=F?.active??!1,Ke=l(F?.onChange);i(()=>{Ke.current=F?.onChange}),i(()=>{if(!F)return;const e=document.documentElement;Oe&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Oe&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Oe]);const qe=!!F;return i(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||Ke.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:G,className:oe(ve.frame($),g),children:[
|
|
3
|
+
/* @__PURE__ */h("div",{className:ve.fill,children:/* @__PURE__ */h("div",{ref:J,className:ve.box,role:"region","aria-label":u})}),be&&/* @__PURE__ */h("p",{className:ve.failed,children:U.failed}),F&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>F.onChange(!F.active),leftIcon:/* @__PURE__ */h(ce,{leave:F.active}),children:F.active?U.leaveFullScreen:U.fullScreen}),f,null!=z&&!Te&&/* @__PURE__ */h("div",{"data-map-card":"",className:ve.cardInline,children:z}),Te&&We?p(z,We):null,fe&&/* @__PURE__ */h(ie,{pins:t,hosts:he.current,hostClass:ve.iconHost})]})}function ie({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
|
|
4
|
+
return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function ce({leave:e}){/* @__PURE__ */
|
|
5
|
+
return h(t,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 ue(){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 de=3e3,pe=e=>!!e?.pending&&3e3,me=e=>`${e.kind}:${e.id}`,he=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function ge(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 fe={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"}},ye=["importer","dealer","retail","supplier","delivery_location","warehouse"];function be(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var xe=(e,t=fe)=>t[e]?.tone??"bg-gray-700 text-white",ke=(e,t=fe)=>t[e]?.label??e,we=(e,t)=>xe(be(e),t);function ve(e,t,n=fe){return null!=t?String(t):(n[be(e)]?.label??"").charAt(0).toUpperCase()}var Ne=["delivery_location","warehouse"];function Me(e,t=Ne){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(me(o),++r);return n}function Ce(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)he(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Le(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 je(e){const t=[...new Set(e.filter(he).map(be))];return[...ye.filter(e=>t.includes(e)),...t.filter(e=>!ye.includes(e))]}function Se(e,t){return e.filter(e=>!he(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(me(e)),r=ge(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:me(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function $e({categories:e,palette:t=fe,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 ${xe(e,t)}`}),ke(e,t)]},e))})}function Ee({point:n,number:r,onOpen:o,onClose:l,palette:s=fe}){const i=ge(n.placement),c=be(n),u=a().map;/* @__PURE__ */
|
|
7
7
|
return m("section",{"aria-label":u.chosen(n.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!=r&&/* @__PURE__ */m("span",{className:"mr-1 text-gray-400",children:[r,"."]}),n.label,n.code&&/* @__PURE__ */h("span",{className:"ml-2 text-xs font-normal text-gray-400",children:n.code})]}),
|
|
11
|
-
/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s[c]?
|
|
11
|
+
/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s[c]?ke(c,s):n.category})]}),
|
|
12
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(t,{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:n.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),n.matched&&"approximate"===n.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",n.matched]}),o&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:o,children:u.openRecord})})]})}function
|
|
13
|
+
/* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:n.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),n.matched&&"approximate"===n.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",n.matched]}),o&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:o,children:u.openRecord})})]})}function Be(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>pe(e.state.data)})}function ze({queryKey:e,queryFn:t,refreshSignal:r,onOpen:o,ariaLabel:a,title:c="Locations",palette:d=fe,numbers:p,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:y,isError:b,refetch:x}=Be(e,t,{staleTime:0}),k=l(!1);i(()=>{k.current?x():k.current=!0},[r]);const[w,v]=s(null),N=u(()=>y?.points??[],[y]),M=u(()=>p??Me(N),[p,N]),C=u(()=>N.filter(he).map(e=>({key:me(e),label:e.label,lat:e.lat,lng:e.lng,glyph:ve(e,M.get(me(e))??null,d),tone:we(e,d),approximate:"approximate"===e.placement})),[N,M,d]),L=u(()=>Se(N,M),[N,M]),j=u(()=>je(N),[N]),S=y?.pending??0,$=N.find(e=>me(e)===w)??null,E=$&&o?o($):null;/* @__PURE__ */
|
|
14
14
|
return m("section",{"aria-label":c,className:`flex min-w-0 flex-col ${g}`,children:[
|
|
15
15
|
/* @__PURE__ */m("div",{className:"flex min-h-[30px] items-center justify-between mb-2",children:[
|
|
16
|
-
/* @__PURE__ */h("h3",{className:"text-sm font-semibold text-gray-900",children:c}),y&&/* @__PURE__ */h("span",{className:"text-xs text-gray-500",children:
|
|
17
|
-
/* @__PURE__ */m(
|
|
16
|
+
/* @__PURE__ */h("h3",{className:"text-sm font-semibold text-gray-900",children:c}),y&&/* @__PURE__ */h("span",{className:"text-xs text-gray-500",children:Le(Ce(N))})]}),
|
|
17
|
+
/* @__PURE__ */m(se,{pins:C,selectedKey:w,focus:null,onSelect:v,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
|
-
/* @__PURE__ */h(
|
|
19
|
+
/* @__PURE__ */h($e,{categories:j,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&&(S>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:[S>0&&/* @__PURE__ */m("p",{className:"flex items-center gap-2 text-gray-500",children:[
|
|
21
|
-
/* @__PURE__ */h(n,{}),"Locating ",S," address",1===S?"":"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"]})]})]})
|
|
21
|
+
/* @__PURE__ */h(n,{}),"Locating ",S," address",1===S?"":"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"]})]})]}),$&&/* @__PURE__ */h(Ee,{point:$,number:M.get(me($))??null,onOpen:E,onClose:()=>v(null),palette:d})]})]})}export{M as CARD_MIN_MAP_WIDTH,y as COMPACT_SHOW,se as EntityMap,ze as LocationsMap,S as MAPLIBRE_WORKER_FILE,T as MAP_APART_PX,fe as MAP_CATEGORIES,k as MAP_CSP_SOURCES,Z as MAP_LOOKS,R as MAP_STOP_PX,w as MAP_STYLE_URLS,A as MAP_TARGET_PX,x as MAP_TILE_ORIGIN,$e as MapLegend,de as PENDING_POLL_MS,Ne as SECONDARY_KINDS,Ee as SelectedCard,L as cardMaxHeight,ke as categoryLabel,xe as categoryTone,b as foldAttributionOnce,he as isOnMap,D as layoutPins,je as legendCategories,B as loadMapLibre,Me as locationNumbers,$ as mapLibreWorkerUrl,pe as mapPointsRefetchInterval,Se as offMapNotes,be as pinCategory,ve as pinGlyph,we as pinTone,j as placeCard,ge as placementNote,me as pointKey,W as stopsLabel,Ce as summarize,Le as summaryText,ue as useMapHighlight,Be as useMapPoints,H as zoomApart};
|
package/dist/page-tabs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{TabStrip as e}from"../chunk-
|
|
3
|
-
return b(K.Provider,{value:ce,children:e})}var D=c.Activity,
|
|
4
|
-
return b("div",{ref:y,role:l?"tabpanel":void 0,id:l,"aria-labelledby":s,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(j.Provider,{value:f,children:/* @__PURE__ */b(
|
|
5
|
-
return b("div",{className:t,children:e(r)},x);const{state:i,currentKey:c,locationFor:l,idFor:s}=n,a=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return c&&!a.includes(c)&&a.push(c),/* @__PURE__ */g(v,{children:[a.map(n=>{const i=n===c,a=i?r:l(n);return a?/* @__PURE__ */b(
|
|
6
|
-
return b(e,{tabs:s.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(
|
|
2
|
+
import{TabStrip as e}from"../chunk-W6TS6WGA.js";import{useShellLanguage as t}from"../chunk-QQCHLRKG.js";import"../chunk-6WWAQC5V.js";import{confirm as n}from"../chunk-EGDJEY4K.js";import"../chunk-GNPTNAZH.js";import"../chunk-4AJRHTTB.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-L5ND7FNA.js";import"../chunk-5QFPTDQF.js";import"../chunk-QR4RM7PO.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as i}from"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";import*as c from"react";import{createContext as l,memo as s,useRef as a,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as p,useState as f,useContext as k}from"react";import{useLocation as m,useNavigate as h}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as g}from"react/jsx-runtime";var K=l(null),j=l(null),T=12;var F=(e,t)=>e.filter(e=>e!==t);function N(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function A(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 c={...e,tabs:i,activeKey:t.key,mounted:(l=e.mounted,s=t.key,l.includes(s)?l:[...l,s]),clock:r};var l,s;return c.closing&&c.closing!==t.key?c=M(c,c.closing):c.closing===t.key&&(c={...c,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=M(n,e[0].key)}return n}(c,n)}function C(e){let t={...e,activeKey:null};return t.closing&&(t=M(t,t.closing)),t}function M(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:F(e.mounted,t),dirty:F(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function I(e,t){switch(t.type){case"visit":return A(e,t.entry,t.maxTabs);case"transient":return C(e);case"close":{let n=e;for(const e of t.keys)n=M(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]:F(e.dirty,t)}}(e,t.key,t.dirty)}}var w=e=>`${e.pathname}${e.search}`;function L(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 R({children:e,resolve:c,pinned:l=[],storageKey:s,maxTabs:k=12,enabled:v=!0,confirmDiscard:g}){const j=m(),T=h(),F=i().pageTabs,M=y(),R=a(c);R.current=c;const D=d(e=>{const t=R.current(e);return t?{key:t.key??e.pathname,path:w(e),title:t.title}:null},[]),{language:W}=t(),[J,O]=p(I,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 c=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),l=[];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||l.some(e=>e.key===i.key))continue;const s=!c&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;l.push({key:i.key,path:r,title:s||i.title,titleFrom:s?"page":"route",pinned:!1,lastActive:0})}return l}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(s),e=>D(L(e)),W);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:N(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},l.map(e=>D(L(e))).filter(e=>Boolean(e)));const n=v?D(j):null;return t=n?A(t,n,k):C(t),t}),x=a(J);x.current=J;const Q=a(/* @__PURE__ */new Map),E=v?D(j):null,G=E?.key??null;r(()=>{if(!v)return;const e=D(j);e?(Q.current.set(e.key,j),O({type:"visit",entry:e,maxTabs:k})):O({type:"transient"})},[j,v,k,D]),o(()=>{const e=new Set(J.tabs.map(e=>e.key));for(const t of Q.current.keys())e.has(t)||Q.current.delete(t)},[J.tabs]);const P=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)}(J,W),[J,W]);o(()=>{if(s)try{localStorage.setItem(s,P)}catch{}},[P,s]);const S=J.dirty.length>0;o(()=>{if(!S)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[S]);const $=a(/* @__PURE__ */new Map),B=d((e,t)=>{let n=$.current.get(e);return void 0===n&&(n=$.current.size,$.current.set(e,n)),`${M}-page-${t}-${n}`},[M]),H=d(e=>g?g(e):n({title:F.discardTitle,message:1===e.length?F.discardOne:F.discardCount?.(e.length)??`${e.length} ${F.discardMany}`,confirmLabel:F.discardConfirm,cancelLabel:F.keepEditing,variant:"warning"}),[g,F]),U=d(()=>{const e=x.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),V=d((e,t,n)=>{const r=x.current,i=r.activeKey;if(!i||!e.includes(i))return void O({type:"close",keys:e,closing:null});let c=t;if(!c){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},l=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;c=(l??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()}O({type:"close",keys:e.filter(e=>e!==i),closing:i}),T(c)},[T,U]),Z=d(async(e,t={})=>{const n=x.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&T(t.to),!1):!(!t.force&&x.current.dirty.includes(e)&&!await H([n]))&&(!!x.current.tabs.some(t=>t.key===e)&&(V([e],t.to),!0))},[H,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)}(x.current,e,t);const r=x.current.tabs.filter(e=>n.includes(e.key)&&x.current.dirty.includes(e.key));r.length&&!await H(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(x.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&V(n,void 0,"all"===e?null:t)},[H,V]),Y=d(e=>{const t=x.current.tabs.find(t=>t.key===e);t&&e!==x.current.activeKey&&T(t.path)},[T]),z=d((e,t)=>O({type:"title",key:e,title:t}),[]),q=d((e,t)=>O({type:"dirty",key:e,dirty:t}),[]),[_,ee]=f({}),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=>D(e)?.key??null,[D]),re=d(e=>Q.current.get(e),[]),ie=u(()=>v?J.tabs.filter(e=>e.key!==J.closing):[],[v,J.tabs,J.closing]),ce=u(()=>({enabled:v,state:J,currentKey:G,resolve:c,keyFor:ne,locationFor:re,idFor:B,activate:Y,close:Z,closeMany:X,setTitle:z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[v,J,G,c,ne,re,B,Y,Z,X,z,q,_,te,ie]);/* @__PURE__ */
|
|
3
|
+
return b(K.Provider,{value:ce,children:e})}var D=c.Activity,W=Boolean(D);function J({active:e,children:t}){return D?/* @__PURE__ */b(D,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var O=s(function({tabKey:e,active:t,location:n,render:i,className:c,panelId:l,tabId:s}){const y=a(null),d=a(t),p=a(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of p.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):p.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&&p.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const f=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
|
|
4
|
+
return b("div",{ref:y,role:l?"tabpanel":void 0,id:l,"aria-labelledby":s,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(j.Provider,{value:f,children:/* @__PURE__ */b(J,{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)),x="\0transient";function Q({children:e,frameClassName:t}){const n=k(K),r=m();if(!n||!n.enabled)/* @__PURE__ */
|
|
5
|
+
return b("div",{className:t,children:e(r)},x);const{state:i,currentKey:c,locationFor:l,idFor:s}=n,a=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return c&&!a.includes(c)&&a.push(c),/* @__PURE__ */g(v,{children:[a.map(n=>{const i=n===c,a=i?r:l(n);return a?/* @__PURE__ */b(O,{tabKey:n,active:i,location:a,render:e,className:t,panelId:s(n,"panel"),tabId:s(n,"tab")},n):null}),!c&&/* @__PURE__ */b(O,{tabKey:x,active:!0,location:r,render:e,className:t},x)]})}function E({className:t,activeClassName:n,end:r}){const c=k(K),l=i().pageTabs;if(!c||!c.enabled)return null;const{visibleTabs:s,state:a,idFor:o,activate:u,close:y,closeMany:d,resolve:p}=c;/* @__PURE__ */
|
|
6
|
+
return b(e,{tabs:s.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(L(e.path))?.icon})),activeKey:c.currentKey??null,idFor:o,panelMounted:e=>a.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:l.label,className:t,activeClassName:n,end:r})}var G={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function P(){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)}:G}function S(){const e=k(K),t=k(j),n=h();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 $(e){const t=k(K),n=k(j),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function B(e){const t=k(K),n=k(j),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function H(e){const t=k(K),n=k(j),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,W as PAGE_TABS_PAUSE_HIDDEN,E as PageTabBar,Q as PageTabsOutlet,R as PageTabsProvider,L as parseTabPath,S as usePageTab,B as usePageTabCopy,H as usePageTabDirty,$ as usePageTabTitle,P as usePageTabs};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-SR4XAYLC.js";import"../chunk-UZMZ2EDW.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-SR4XAYLC.js";import"../chunk-UZMZ2EDW.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ContextMenu,useContextMenu}from"../chunk-
|
|
2
|
+
export{ContextMenu,useContextMenu}from"../chunk-FORJ75AU.js";import"../chunk-3BSPSRK4.js";import"../chunk-L5ND7FNA.js";import"../chunk-5QFPTDQF.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DropdownMenu as default}from"../chunk-
|
|
2
|
+
export{DropdownMenu as default}from"../chunk-FORUFXAN.js";import"../chunk-3BSPSRK4.js";import"../chunk-CDAJKLGL.js";import"../chunk-L5ND7FNA.js";import"../chunk-5QFPTDQF.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
|
package/dist/shell/HelpCenter.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{HelpCenter as default}from"../chunk-NDO24PK6.js";import"../chunk-6BCFVOG7.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-PF3ANJFI.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{HelpCenter as default}from"../chunk-NDO24PK6.js";import"../chunk-6BCFVOG7.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-PF3ANJFI.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ImageLightbox as default,lightboxKind}from"../chunk-TIQKDAON.js";import"../chunk-CGUMJZUB.js";import"../chunk-4Y4PWKMM.js";import"../chunk-S7VSXUKS.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-D323R2FT.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{ImageLightbox as default,lightboxKind}from"../chunk-TIQKDAON.js";import"../chunk-CGUMJZUB.js";import"../chunk-4Y4PWKMM.js";import"../chunk-S7VSXUKS.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-D323R2FT.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-6KO5VTL7.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-DOCUM3K7.js";import"../chunk-QQCHLRKG.js";import"../chunk-5DFKPSJQ.js";import"../chunk-
|
|
2
|
+
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-DOCUM3K7.js";import"../chunk-QQCHLRKG.js";import"../chunk-5DFKPSJQ.js";import"../chunk-64ACCUNN.js";import"../chunk-TZSPJIP4.js";import"../chunk-NI5FXWK5.js";import"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-MVQBVPWP.js";import"../chunk-L65BESIE.js";import"../chunk-VQCKMT5F.js";import"../chunk-CGZBDI6C.js";import"../chunk-PF3ANJFI.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Markdown.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Markdown as default,plainCell,tableToCsv}from"../chunk-6BCFVOG7.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{Markdown as default,plainCell,tableToCsv}from"../chunk-6BCFVOG7.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/PopupMenu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{MenuCheckMark,MenuIcon,MenuSemanticsContext,PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,itemLook,menuTextRowStyle}from"../chunk-
|
|
2
|
+
export{MenuCheckMark,MenuIcon,MenuSemanticsContext,PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,itemLook,menuTextRowStyle}from"../chunk-L5ND7FNA.js";import"../chunk-5QFPTDQF.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SearchableSelect as default,fitChoice}from"../chunk-4SZDP3JF.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-PF3ANJFI.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{SearchableSelect as default,fitChoice}from"../chunk-4SZDP3JF.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-PF3ANJFI.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SettingReset as default}from"../chunk-BIJ7ADTZ.js";import"../chunk-4CANQ3B3.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{SettingReset as default}from"../chunk-BIJ7ADTZ.js";import"../chunk-4CANQ3B3.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/SettingRow.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SettingRow as default}from"../chunk-
|
|
2
|
+
export{SettingRow as default}from"../chunk-JVIOAZHW.js";import"../chunk-MAOJENIB.js";import"../chunk-L65BESIE.js";import"../chunk-HCP7WOAL.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/TopNav.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{TopNav as default}from"../chunk-
|
|
2
|
+
export{TopNav as default}from"../chunk-NL5G26Q7.js";import"../chunk-FORUFXAN.js";import"../chunk-3BSPSRK4.js";import"../chunk-CDAJKLGL.js";import"../chunk-L5ND7FNA.js";import"../chunk-5QFPTDQF.js";import"../chunk-QR4RM7PO.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{startClientTelemetry}from"../chunk-
|
|
1
|
+
export{startClientTelemetry}from"../chunk-ZX2D25LG.js";import"../chunk-KNUR2UEG.js";import"../chunk-NMKADD77.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ChatTemplate as default}from"../chunk-Q23EHOXW.js";import"../chunk-LGLZTJ2W.js";import"../chunk-QWK6DRSN.js";import"../chunk-KZHPX4FM.js";import"../chunk-MMFJBWJC.js";import"../chunk-GX2GSDJP.js";import"../chunk-PF3ANJFI.js";import"../chunk-UGTRSRIW.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{ChatTemplate as default}from"../chunk-Q23EHOXW.js";import"../chunk-LGLZTJ2W.js";import"../chunk-QWK6DRSN.js";import"../chunk-KZHPX4FM.js";import"../chunk-MMFJBWJC.js";import"../chunk-GX2GSDJP.js";import"../chunk-PF3ANJFI.js";import"../chunk-UGTRSRIW.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{CheckoutTemplate as default}from"../chunk-MEJK6PBN.js";import"../chunk-VU6VPKM3.js";import"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-
|
|
2
|
+
export{CheckoutTemplate as default}from"../chunk-MEJK6PBN.js";import"../chunk-VU6VPKM3.js";import"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-MVQBVPWP.js";import"../chunk-L65BESIE.js";import"../chunk-CGZBDI6C.js";import"../chunk-UZMZ2EDW.js";import"../chunk-GX2GSDJP.js";import"../chunk-PF3ANJFI.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DataTablePage as default}from"../chunk-I7HDD4IM.js";import"../chunk-VU6VPKM3.js";import"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-L65BESIE.js";import"../chunk-M5P6A7KS.js";import"../chunk-GX2GSDJP.js";import"../chunk-PF3ANJFI.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-D323R2FT.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{DataTablePage as default}from"../chunk-I7HDD4IM.js";import"../chunk-VU6VPKM3.js";import"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-L65BESIE.js";import"../chunk-M5P6A7KS.js";import"../chunk-GX2GSDJP.js";import"../chunk-PF3ANJFI.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-D323R2FT.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-6KO5VTL7.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{EmailTemplate as default}from"../chunk-XSPDPN5O.js";import"../chunk-LGLZTJ2W.js";import"../chunk-QWK6DRSN.js";import"../chunk-KZHPX4FM.js";import"../chunk-MMFJBWJC.js";import"../chunk-UGTRSRIW.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-
|
|
2
|
+
export{EmailTemplate as default}from"../chunk-XSPDPN5O.js";import"../chunk-LGLZTJ2W.js";import"../chunk-QWK6DRSN.js";import"../chunk-KZHPX4FM.js";import"../chunk-MMFJBWJC.js";import"../chunk-UGTRSRIW.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FormLayoutPage as default}from"../chunk-RWGSMZGS.js";import"../chunk-VU6VPKM3.js";import"../chunk-NI5FXWK5.js";import"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-
|
|
2
|
+
export{FormLayoutPage as default}from"../chunk-RWGSMZGS.js";import"../chunk-VU6VPKM3.js";import"../chunk-NI5FXWK5.js";import"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";import"../chunk-MVQBVPWP.js";import"../chunk-L65BESIE.js";import"../chunk-CGZBDI6C.js";import"../chunk-7PCI6AUU.js";import"../chunk-GX2GSDJP.js";import"../chunk-PF3ANJFI.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-KJRYEKQP.js";export{EmailTemplate}from"../chunk-XSPDPN5O.js";export{ErrorBoundary}from"../chunk-BSNWVZHW.js";export{ErrorPage}from"../chunk-IHQX4GYD.js";export{FormLayoutPage}from"../chunk-RWGSMZGS.js";export{GalleryTemplate}from"../chunk-TW7TA2AB.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-MVP6Q6KV.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-P42YNSKI.js";export{ChatTemplate}from"../chunk-Q23EHOXW.js";export{CheckoutTemplate}from"../chunk-MEJK6PBN.js";export{DashboardTemplate}from"../chunk-L3G3YHVN.js";export{DataTablePage}from"../chunk-I7HDD4IM.js";export{TopNav}from"../chunk-CPK7JTN3.js";export{Stepper}from"../chunk-Q7HN6T3H.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-SXSMIMFY.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-CZ25A5RS.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-LGLZTJ2W.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-ZK2SULCA.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-BT3XDH3L.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-D2AUUIKG.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-L7IKTEOC.js";export{ResizeHandle}from"../chunk-KZHPX4FM.js";export{SettingReset}from"../chunk-BIJ7ADTZ.js";export{SettingRow}from"../chunk-BUGAWNOC.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-DOCUM3K7.js";export{MetricBar}from"../chunk-BI6ZLD4X.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-RYBJ6MMM.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-BOBUSE33.js";import"../chunk-SURSVJA2.js";export{TimelineTrack}from"../chunk-DZNG34DC.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-CKZ6ZDU5.js";export{EmptyValue}from"../chunk-64WSMLXG.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-K7KQDPLW.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-NDO24PK6.js";export{IconRail,IconRailButton}from"../chunk-UVUBZL7K.js";import"../chunk-FQEALPZJ.js";export{Divider}from"../chunk-DFOFEBYX.js";export{EditableGrid}from"../chunk-2RBWQVDC.js";export{Avatar,AvatarGroup}from"../chunk-MMFJBWJC.js";export{BudgetBar,budgetState}from"../chunk-MEYYQC43.js";export{Card,StatCard}from"../chunk-VU6VPKM3.js";export{ContainerFillChart}from"../chunk-EZ3BQ6PK.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-QQCHLRKG.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-S2OIRC5H.js";export{CountBadge}from"../chunk-MAOJENIB.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-SR4XAYLC.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-5DFKPSJQ.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-7MSFHQAY.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-REVC6YPT.js";export{SplitButton_default as SplitButton}from"../chunk-AAW27HJY.js";export{Switch_default as Switch}from"../chunk-BWIX3YIH.js";export{TagInput}from"../chunk-4IVT244O.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-PCQPV6MS.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-5TFTSYOD.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-2UXAI77F.js";export{PositionInput}from"../chunk-G63BCOQ6.js";export{RadioGroup}from"../chunk-TZSPJIP4.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-NESJOC3R.js";export{Slider,SliderGroup}from"../chunk-WCKZHEFC.js";export{LinkPicker,TextLinkField}from"../chunk-5BZMSSOV.js";export{SearchableSelect}from"../chunk-4SZDP3JF.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-5JYBYMZT.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-EL2RLUT6.js";import"../chunk-3PGK3VFS.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-6GWZ5UPX.js";export{ImageLightbox,lightboxKind}from"../chunk-TIQKDAON.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-J47HXHSL.js";export{Breadcrumbs}from"../chunk-6SMQNPWS.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-SZIENHKR.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-DFDDRKIJ.js";import"../chunk-5PY4H4ZJ.js";export{DropdownMenu}from"../chunk-YALPQIBR.js";export{NativeSelect,Select_default as Select}from"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-EEHK4IIK.js";export{MediaUsedInList}from"../chunk-63EK6S3W.js";export{NumericKeypad}from"../chunk-SBHFEWR6.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ET32NQHX.js";export{FilePicker_default as FilePicker}from"../chunk-TVJRENCQ.js";export{FormErrorSummary}from"../chunk-4VLKDANH.js";export{IconPicker}from"../chunk-BVW5U7QQ.js";export{CornersInput}from"../chunk-3CST4ZDP.js";export{DatePicker_default as DatePicker}from"../chunk-XLD53X4P.js";export{DateRangePicker,toISODate}from"../chunk-SRKSGUGT.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-OFHCDTJM.js";export{DisplayChips}from"../chunk-ZSFUNXRD.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-7DKPJUGU.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-L7FDYGGF.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-4OFD6ICH.js";export{Popover}from"../chunk-RNBM5JZI.js";export{InputNumber_default as InputNumber}from"../chunk-ZCHBOAPA.js";export{useInSettingRow,useSettingAuto,useSettingRowName}from"../chunk-L65BESIE.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-45S6M77O.js";export{MediaUploadField}from"../chunk-LGAN7DNC.js";export{FormField}from"../chunk-MVQBVPWP.js";export{ImageFocusPoint}from"../chunk-GATKJSGL.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-N6DTTOB6.js";import"../chunk-4G5VLI7E.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-JPRJQ6B7.js";export{DataTable}from"../chunk-2NMT3Y5H.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-D7FT2PXG.js";export{ListFooter}from"../chunk-Q3OCGLW7.js";export{ListLoadError}from"../chunk-KWX6NAOR.js";export{Pagination}from"../chunk-M5P6A7KS.js";export{WaterfallChart}from"../chunk-2C6IG7LG.js";export{SankeyChart}from"../chunk-CRLSG5AY.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-ZNCU3UIW.js";export{StatTile}from"../chunk-Y5T257HX.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-JPP7UWQA.js";export{TreemapChart}from"../chunk-6NMDKOQA.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-H33Z4ZIY.js";export{HistogramChart}from"../chunk-IFDW5QW6.js";export{Meter}from"../chunk-E5ALJIXV.js";export{PieChart}from"../chunk-NID6MGGC.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-DITCVBR7.js";export{RadialBarChart}from"../chunk-4CFOKYVR.js";export{RangeChart}from"../chunk-ZNXBKFV7.js";export{RankedBars}from"../chunk-WYN5KVU4.js";export{ChordChart}from"../chunk-DODH46ZQ.js";import"../chunk-CDRXZBVR.js";export{FunnelChart}from"../chunk-X6PPP6NX.js";export{StepChain,StepChainItem}from"../chunk-EXWGPXOS.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-6BCFVOG7.js";export{Textarea_default as Textarea}from"../chunk-7PCI6AUU.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-ZWAVSUWT.js";export{Banner}from"../chunk-UZMZ2EDW.js";import"../chunk-Y6IQYQYN.js";export{Input_default as Input}from"../chunk-GX2GSDJP.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-NGBT7AHL.js";export{IconButton_default as IconButton}from"../chunk-4CANQ3B3.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-PF3ANJFI.js";export{mediaFileName}from"../chunk-4Y4PWKMM.js";export{TransferProgress}from"../chunk-S7VSXUKS.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-YDYDR72S.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-BKZGI76S.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-WSPO4N72.js";export{ChartBrush}from"../chunk-EYKUKN32.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-BRHIRE4D.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-ETF7LAYZ.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-Y4MI6NRI.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-BMPBVI7P.js";import"../chunk-5A7MWTXX.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-Y53KNQKL.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-EGDJEY4K.js";export{Dialog}from"../chunk-GNPTNAZH.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";import"../chunk-4AJRHTTB.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-4NXMMWL6.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-ET2EF5CI.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-UJOWORTR.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-DXTKNHWG.js";import"../chunk-QR4RM7PO.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-D323R2FT.js";export{Button_default as Button}from"../chunk-4IU5BSVE.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7U4RWXJ.js";import"../chunk-VH6GB73Q.js";export{Icon}from"../chunk-FSPFV4MI.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-6KO5VTL7.js";export{Tooltip}from"../chunk-22S6LG6D.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-37CCKGHU.js";export{CandlestickChart}from"../chunk-JUGPTBMS.js";export{ChartTooltip}from"../chunk-P5BOTIJU.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-I4VD5D43.js";import"../chunk-MG7A3R75.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
2
|
+
import"../chunk-KJRYEKQP.js";export{EmailTemplate}from"../chunk-XSPDPN5O.js";export{ErrorBoundary}from"../chunk-BSNWVZHW.js";export{ErrorPage}from"../chunk-IHQX4GYD.js";export{FormLayoutPage}from"../chunk-RWGSMZGS.js";export{GalleryTemplate}from"../chunk-TW7TA2AB.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-MVP6Q6KV.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-P42YNSKI.js";export{ChatTemplate}from"../chunk-Q23EHOXW.js";export{CheckoutTemplate}from"../chunk-MEJK6PBN.js";export{DashboardTemplate}from"../chunk-L3G3YHVN.js";export{DataTablePage}from"../chunk-I7HDD4IM.js";export{TopNav}from"../chunk-NL5G26Q7.js";export{Stepper}from"../chunk-Q7HN6T3H.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-SXSMIMFY.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-CZ25A5RS.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-LGLZTJ2W.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-ZK2SULCA.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-BT3XDH3L.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-D2AUUIKG.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-L7IKTEOC.js";export{ResizeHandle}from"../chunk-KZHPX4FM.js";export{SettingReset}from"../chunk-BIJ7ADTZ.js";export{SettingRow}from"../chunk-JVIOAZHW.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-DOCUM3K7.js";export{MetricBar}from"../chunk-BI6ZLD4X.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-RYBJ6MMM.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-BOBUSE33.js";import"../chunk-SURSVJA2.js";export{TimelineTrack}from"../chunk-DZNG34DC.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-CKZ6ZDU5.js";export{EmptyValue}from"../chunk-64WSMLXG.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-K7KQDPLW.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-NDO24PK6.js";export{IconRail,IconRailButton}from"../chunk-UVUBZL7K.js";import"../chunk-FQEALPZJ.js";export{Divider}from"../chunk-DFOFEBYX.js";export{EditableGrid}from"../chunk-2RBWQVDC.js";export{Avatar,AvatarGroup}from"../chunk-MMFJBWJC.js";export{BudgetBar,budgetState}from"../chunk-MEYYQC43.js";export{Card,StatCard}from"../chunk-VU6VPKM3.js";export{ContainerFillChart}from"../chunk-EZ3BQ6PK.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-QQCHLRKG.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-S2OIRC5H.js";export{CountBadge}from"../chunk-MAOJENIB.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-SR4XAYLC.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-5DFKPSJQ.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{TagInput}from"../chunk-4IVT244O.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-PCQPV6MS.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-5TFTSYOD.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-2UXAI77F.js";export{WidthsBar}from"../chunk-L73LI7FG.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-Z35NWGMT.js";export{Slider,SliderGroup}from"../chunk-CWXKRYVY.js";export{Snippet}from"../chunk-REVC6YPT.js";export{SplitButton_default as SplitButton}from"../chunk-HTYRV4WU.js";export{Switch_default as Switch}from"../chunk-BWIX3YIH.js";export{NumericKeypad}from"../chunk-SBHFEWR6.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ET32NQHX.js";export{PositionInput}from"../chunk-3AKIKASU.js";export{RadioGroup}from"../chunk-TZSPJIP4.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{IconPicker}from"../chunk-BVW5U7QQ.js";export{LinkPicker,TextLinkField}from"../chunk-5BZMSSOV.js";export{SearchableSelect}from"../chunk-4SZDP3JF.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-2CGZX62Z.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-EL2RLUT6.js";import"../chunk-3PGK3VFS.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-6GWZ5UPX.js";export{ImageLightbox,lightboxKind}from"../chunk-TIQKDAON.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-J47HXHSL.js";export{Breadcrumbs}from"../chunk-6SMQNPWS.js";export{mediaLibraryMenu}from"../chunk-SZIENHKR.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-DFDDRKIJ.js";import"../chunk-5PY4H4ZJ.js";export{DropdownMenu}from"../chunk-FORUFXAN.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-3ZHFKOFX.js";export{MediaUsedInList}from"../chunk-63EK6S3W.js";export{NativeSelect,Select_default as Select}from"../chunk-454DAGYG.js";import"../chunk-EO5RLFRX.js";import"../chunk-7OCNF4AI.js";export{CornersInput}from"../chunk-N2SJNPFY.js";export{DatePicker_default as DatePicker}from"../chunk-XLD53X4P.js";export{DateRangePicker,toISODate}from"../chunk-SRKSGUGT.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-OFHCDTJM.js";export{DisplayChips}from"../chunk-26AYPJSK.js";export{FilePicker_default as FilePicker}from"../chunk-TVJRENCQ.js";export{FormErrorSummary}from"../chunk-4VLKDANH.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-IUMFKZY7.js";export{BrandAssetEditor}from"../chunk-ZVEOWBXE.js";export{MediaUploadField}from"../chunk-RGOUJFAO.js";export{ImageFocusPoint}from"../chunk-GATKJSGL.js";export{FormField}from"../chunk-MVQBVPWP.js";export{Segmented}from"../chunk-N6DTTOB6.js";import"../chunk-4G5VLI7E.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-JPRJQ6B7.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-C4YN2DNM.js";export{Popover}from"../chunk-RNBM5JZI.js";export{InputNumber_default as InputNumber}from"../chunk-5E3WCKWB.js";export{useInSettingRow,useSettingAuto,useSettingRowName}from"../chunk-L65BESIE.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{AlignmentGrid}from"../chunk-7DKPJUGU.js";export{DataTable}from"../chunk-2NMT3Y5H.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-D7FT2PXG.js";export{ListFooter}from"../chunk-Q3OCGLW7.js";export{ListLoadError}from"../chunk-KWX6NAOR.js";export{Pagination}from"../chunk-M5P6A7KS.js";export{WaterfallChart}from"../chunk-2C6IG7LG.js";export{SankeyChart}from"../chunk-CRLSG5AY.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-ZNCU3UIW.js";export{StatTile}from"../chunk-Y5T257HX.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-JPP7UWQA.js";export{TreemapChart}from"../chunk-6NMDKOQA.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-H33Z4ZIY.js";export{HistogramChart}from"../chunk-IFDW5QW6.js";export{Meter}from"../chunk-E5ALJIXV.js";export{PieChart}from"../chunk-NID6MGGC.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-DITCVBR7.js";export{RadialBarChart}from"../chunk-4CFOKYVR.js";export{RangeChart}from"../chunk-ZNXBKFV7.js";export{RankedBars}from"../chunk-WYN5KVU4.js";export{ChordChart}from"../chunk-DODH46ZQ.js";import"../chunk-CDRXZBVR.js";export{FunnelChart}from"../chunk-X6PPP6NX.js";export{StepChain,StepChainItem}from"../chunk-EXWGPXOS.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-6BCFVOG7.js";export{Textarea_default as Textarea}from"../chunk-7PCI6AUU.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-FORJ75AU.js";export{Banner}from"../chunk-UZMZ2EDW.js";import"../chunk-3BSPSRK4.js";export{Input_default as Input}from"../chunk-GX2GSDJP.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-PF3ANJFI.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-DZ6B5XCG.js";export{mediaFileName}from"../chunk-4Y4PWKMM.js";export{TransferProgress}from"../chunk-S7VSXUKS.js";export{IconButton_default as IconButton}from"../chunk-4CANQ3B3.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-YDYDR72S.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-BKZGI76S.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-WSPO4N72.js";export{ChartBrush}from"../chunk-EYKUKN32.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-BRHIRE4D.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-ETF7LAYZ.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-Y4MI6NRI.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-BMPBVI7P.js";import"../chunk-5A7MWTXX.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-Y53KNQKL.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-EGDJEY4K.js";export{Dialog}from"../chunk-GNPTNAZH.js";import"../chunk-4AJRHTTB.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-4NXMMWL6.js";export{ColoredBadge}from"../chunk-ET2EF5CI.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{VERSION}from"../chunk-NMKADD77.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-L5ND7FNA.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";import"../chunk-QR4RM7PO.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-D323R2FT.js";export{Button_default as Button}from"../chunk-4IU5BSVE.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7U4RWXJ.js";export{Icon}from"../chunk-FSPFV4MI.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";export{LoadingSpinner,SpinnerRing}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-6KO5VTL7.js";export{Tooltip}from"../chunk-22S6LG6D.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-37CCKGHU.js";export{CandlestickChart}from"../chunk-JUGPTBMS.js";export{ChartTooltip}from"../chunk-P5BOTIJU.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-I4VD5D43.js";import"../chunk-MG7A3R75.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-NMKADD77.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.41.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",
|