efficient-shell 9.14.0 → 10.0.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 +15 -19
- package/dist/{Browser-42NYVAPR.js → Browser-RFLTFP7Y.js} +13 -13
- package/dist/Calculator-DV2R65OS.js +29 -0
- package/dist/{CurrencyConverter-OIXAMDP7.js → CurrencyConverter-ELSCNMUT.js} +6 -6
- package/dist/{Documents-V2OKP6JZ.js → Documents-HKTTXLSR.js} +3 -3
- package/dist/{Files-OAMTKHYK.js → Files-ZSYGKZOV.js} +88 -88
- package/dist/{Notepad-3LG227K2.js → Notepad-63Q3JSCV.js} +9 -9
- package/dist/{PomodoroTimer-AYGPGA6Q.js → PomodoroTimer-XHNZGBDR.js} +2 -2
- package/dist/{Preview-BBQWQ4DG.js → Preview-PLCASIZA.js} +41 -41
- package/dist/Sidebar-QFT5WPK4.js +44 -0
- package/dist/{Spreadsheet-MS5FU7ET.js → Spreadsheet-Y7TJIBI5.js} +14 -14
- package/dist/{Stock-GSQNTV7E.js → Stock-KLYWTMMD.js} +2 -2
- package/dist/{Weather-5XLO2GLO.js → Weather-CT2IZHEW.js} +14 -14
- package/dist/{WorldClock-CG3NF4GA.js → WorldClock-EJCUVIUW.js} +4 -4
- package/dist/ai/index.js +35 -35
- 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/brand.css +1 -1
- package/dist/chunk-2NMW66P5.js +1 -0
- package/dist/{chunk-EXJZUNNW.js → chunk-5CH2RGL6.js} +21 -21
- package/dist/{chunk-UX5L3MOB.js → chunk-6I6VSUKY.js} +4 -4
- package/dist/chunk-7YU27U3Y.js +19 -0
- package/dist/{chunk-MRUJRFIX.js → chunk-AJ3R5QPD.js} +5 -5
- package/dist/{chunk-KTKMM2XW.js → chunk-B7KD3DGY.js} +1 -1
- package/dist/{chunk-GXGBBMGV.js → chunk-BFVL2VTS.js} +1 -1
- package/dist/{chunk-QO35WRYA.js → chunk-BXEKX4TB.js} +17 -17
- package/dist/{chunk-VXP5L6DI.js → chunk-D2WGDTWN.js} +1 -1
- package/dist/{chunk-B4DR72FR.js → chunk-DVOQCAC2.js} +1 -1
- package/dist/{chunk-M33225G6.js → chunk-ED3QFXBC.js} +1 -1
- package/dist/{chunk-O25B75XX.js → chunk-EGAV5LSX.js} +1 -1
- package/dist/{chunk-HAFB45DT.js → chunk-FPGRKHUW.js} +7 -7
- package/dist/{chunk-A4HA7EXR.js → chunk-FRINAJU7.js} +1 -1
- package/dist/chunk-GBLMVFDW.js +5 -0
- package/dist/{chunk-VVVWVOG7.js → chunk-GQMS5657.js} +1 -1
- package/dist/chunk-GY67Y5SN.js +10 -0
- package/dist/{chunk-PKHZTFBK.js → chunk-HKAQXFUR.js} +1 -1
- package/dist/chunk-IEAFSVXC.js +1 -0
- package/dist/{chunk-NU2YQSOP.js → chunk-IQWIYZB5.js} +2 -2
- package/dist/{chunk-2TQ6BLSN.js → chunk-IU5KBQEQ.js} +6 -6
- package/dist/{chunk-PF5CKD4C.js → chunk-JHZV4TN6.js} +2 -2
- package/dist/chunk-LR77AS3N.js +15 -0
- package/dist/{chunk-BWIX3YIH.js → chunk-M3R4C3A6.js} +2 -2
- package/dist/chunk-MKEYXKZA.js +4 -0
- package/dist/{chunk-SVQJZF66.js → chunk-O33CUGOI.js} +5 -5
- package/dist/chunk-PA37I5ZX.js +3 -0
- package/dist/chunk-POCQ7ZL4.js +3 -0
- package/dist/chunk-PVR4KU7H.js +7 -0
- package/dist/{chunk-IKQVK3I3.js → chunk-QTQQKQGQ.js} +3 -3
- package/dist/{chunk-TIUFFVP5.js → chunk-RBXSU25O.js} +3 -3
- package/dist/{chunk-76IDLFXI.js → chunk-SGTZJMZ6.js} +1 -1
- package/dist/{chunk-D46AP6U5.js → chunk-T5V2GJ4D.js} +4 -4
- package/dist/{chunk-M5YG57UP.js → chunk-UFXE363L.js} +1 -1
- package/dist/chunk-UTQG344L.js +15 -0
- package/dist/{chunk-C45OKLRM.js → chunk-UZ43AT4O.js} +4 -4
- package/dist/{chunk-JWX7QRGE.js → chunk-XS4HFUTW.js} +1 -1
- package/dist/{chunk-M7H3OCIL.js → chunk-ZBTDMQUI.js} +11 -11
- 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.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Select.d.ts +0 -6
- package/dist/forms/Select.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/Switch.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/settingRowContext.d.ts +1 -3
- package/dist/forms/settingRowContext.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +136 -136
- package/dist/map/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/Accordion.d.ts +22 -12
- package/dist/shell/Accordion.js +1 -1
- 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.d.ts +23 -5
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.d.ts +9 -14
- 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.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +247 -32
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-PCTFUS5O.js +0 -29
- package/dist/Sidebar-RHGWTAPS.js +0 -44
- package/dist/chunk-6TCJOVFX.js +0 -3
- package/dist/chunk-A7CCSRPB.js +0 -12
- package/dist/chunk-AVAYZK3Z.js +0 -3
- package/dist/chunk-BGNJQMAZ.js +0 -1
- package/dist/chunk-KJXF5WAJ.js +0 -5
- package/dist/chunk-L65BESIE.js +0 -1
- package/dist/chunk-ME4VRJMK.js +0 -16
- package/dist/chunk-MNIULUQY.js +0 -14
- package/dist/chunk-NFJDLIRM.js +0 -5
- package/dist/chunk-UXPZQID4.js +0 -20
- package/dist/chunk-VVZE27M4.js +0 -7
package/dist/map/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{Button_default as e}from"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import{Icon as t}from"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-HL6JSDN3.js";import{SpinnerRing as n}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.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 b="maplibregl-compact-show";function y(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(b)&&(e.classList.remove(b),!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]},v={light:`${x}/styles/positron`,dark:`${x}/styles/dark`},w=20,N=12,M=480,C={center:[0,0],left:[w,0],right:[-20,0],top:[0,w],"top-left":[0,w],"top-right":[0,w],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},L=(e,t=12)=>Math.max(0,Math.floor(e-t-N-w-10-16));function j(e,t,n,r=12){const o=e.y-w-r,a=n.height-e.y-w-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 $="maplibre-gl-worker.mjs",S=e=>`/maplibre-gl/${e}/${$}`,E=null;function B(){return E??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(S(e.getVersion())),e)).catch(e=>{throw E=null,e}),E}var z=null;var A=24,R=28,F=29;function T(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 W(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 H(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var K=e=>O(e.x,e.y,e.width,e.height);function P(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(H(K(e[t]),K(e[n])))return[e[t],e[n]];return null}function q(e,t=[]){const n=[],r=e=>t.some(t=>H(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=P(o);e;e=P(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=W(T(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(K(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=>H(K(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>H(K(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 D(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 I=r;var Z=(...e)=>e.filter(Boolean).join(" "),J=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function U(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!J.test(r.slice(7))})}var G="ring-2 ring-gray-900 ring-offset-2",V={portal:{frame:e=>Z("relative min-h-72 overflow-hidden rounded-lg border border-line 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-ink-faint",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)=>Z("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 Z("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!U(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":G),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>Z("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!U(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-on-accent"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>Z("grid place-items-center rounded-full border-2 border-gray-700 bg-surface font-semibold leading-none text-ink-strongest shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&G),badge:e=>Z("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-surface text-ink-strongest"),iconHost:"contents"},site:{frame:e=>Z("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)=>Z("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>Z("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=>Z("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>Z("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:b,fitTo:x,attribution:k,marks:w,groupCrowded:N=!1,noun:M,highlightKey:$=null,picking:S=!1,onPick:E,card:z,cardMinMapWidth:F=480,fullScreen:W,initialView:O=te,cooperativeGestures:H=!1,look:K="portal",theme:P}){const Z=a().map,J=l(null),U=l(null),G=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,be]=s(!1),[ye,xe]=s(!1),ke=d(_,I,()=>!1),ve=P??(ke?"dark":"light"),we=V[K],Ne=l({onSelect:o,onPick:E,picking:S,pins:t,selectedKey:n,highlightKey:$,groupCrowded:N,strings:Z,noun:M,looks:we});i(()=>{Ne.current={onSelect:o,onPick:E,picking:S,pins:t,selectedKey:n,highlightKey:$,groupCrowded:N,strings:Z,noun:M,looks:we}}),i(()=>{we.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[we]);const Me=c(()=>{const e=G.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=G.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)=>D(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=G.current,t=ne.current;if(!e||!t||!J.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=[...J.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=q([...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?T(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 b=m.button.firstElementChild;b.textContent=g;const y=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));b.className!==y&&(b.className=y),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(),!J.current)return;const e=new ResizeObserver(()=>je());e.observe(J.current);for(const t of J.current.children)t.contains(U.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||!U.current)return;ne.current=o,t=new o.Map({container:U.current,style:v[ve],center:O.center,zoom:O.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===H?window.matchMedia("(pointer: coarse)").matches:H}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(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=y(U.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(U.current),G.current=t,be(!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(),G.current=null}},[]);const $e=l(ve);i(()=>{fe&&G.current&&$e.current!==ve&&($e.current=ve,G.current.setStyle(v[ve]))},[fe,ve]),i(()=>{const e=G.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=we.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=we.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 w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,le(r,t.data),r.className=we.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,w,N,je,K]),i(()=>{fe&&je()},[fe,n,$,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=G.current,n=ne.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=G.current;if(!fe||!e)return;const t=(b??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),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,b,ve]),i(()=>{const e=G.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=N?D(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[Se,Ee]=s(!1);i(()=>{const e=J.current;if(!e)return;const t=()=>Ee(e.clientWidth<F);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[F]);const Be=n?t.find(e=>e.key===n)??null:null,ze=Be?.key??null,Ae=Be?.lng??0,Re=Be?.lat??0,Fe=fe&&!Se&&null!=z&&!!Be,[Te,We]=s(null);i(()=>{const e=G.current,t=ne.current;if(!(Fe&&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===V.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),We(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(),J.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(),We(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(ze)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Fe,ze,Ae,Re,je]);const Oe=W?.active??!1,He=l(W?.onChange);i(()=>{He.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 Ke=!!W;return i(()=>{if(!Ke)return;const e=()=>{document.fullscreenElement||He.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[Ke]),/* @__PURE__ */m("div",{ref:J,className:oe(we.frame(S),g),children:[
|
|
2
|
+
import{Button_default as e}from"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import{Icon as t}from"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import{SpinnerRing as n}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.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 b="maplibregl-compact-show";function y(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(b)&&(e.classList.remove(b),!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]},v={light:`${x}/styles/positron`,dark:`${x}/styles/dark`},w=20,N=12,M=480,C={center:[0,0],left:[w,0],right:[-20,0],top:[0,w],"top-left":[0,w],"top-right":[0,w],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},L=(e,t=12)=>Math.max(0,Math.floor(e-t-N-w-10-16));function j(e,t,n,r=12){const o=e.y-w-r,a=n.height-e.y-w-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 $="maplibre-gl-worker.mjs",S=e=>`/maplibre-gl/${e}/${$}`,E=null;function B(){return E??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(S(e.getVersion())),e)).catch(e=>{throw E=null,e}),E}var z=null;var A=24,R=28,F=29;function T(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 W(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 H(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var K=e=>O(e.x,e.y,e.width,e.height);function P(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(H(K(e[t]),K(e[n])))return[e[t],e[n]];return null}function q(e,t=[]){const n=[],r=e=>t.some(t=>H(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=P(o);e;e=P(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=W(T(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(K(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=>H(K(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>H(K(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 D(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 I=r;var Z=(...e)=>e.filter(Boolean).join(" "),J=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function U(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!J.test(r.slice(7))})}var G="ring-2 ring-gray-900 ring-offset-2",V={portal:{frame:e=>Z("relative min-h-72 overflow-hidden rounded-lg border border-line 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-ink-faint",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)=>Z("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 Z("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!U(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":G),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>Z("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!U(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-on-accent"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>Z("grid place-items-center rounded-full border-2 border-gray-700 bg-surface font-semibold leading-none text-ink-strongest shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&G),badge:e=>Z("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-surface text-ink-strongest"),iconHost:"contents"},site:{frame:e=>Z("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)=>Z("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>Z("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=>Z("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>Z("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:b,fitTo:x,attribution:k,marks:w,groupCrowded:N=!1,noun:M,highlightKey:$=null,picking:S=!1,onPick:E,card:z,cardMinMapWidth:F=480,fullScreen:W,initialView:O=te,cooperativeGestures:H=!1,look:K="portal",theme:P}){const Z=a().map,J=l(null),U=l(null),G=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,be]=s(!1),[ye,xe]=s(!1),ke=d(_,I,()=>!1),ve=P??(ke?"dark":"light"),we=V[K],Ne=l({onSelect:o,onPick:E,picking:S,pins:t,selectedKey:n,highlightKey:$,groupCrowded:N,strings:Z,noun:M,looks:we});i(()=>{Ne.current={onSelect:o,onPick:E,picking:S,pins:t,selectedKey:n,highlightKey:$,groupCrowded:N,strings:Z,noun:M,looks:we}}),i(()=>{we.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[we]);const Me=c(()=>{const e=G.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=G.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)=>D(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=G.current,t=ne.current;if(!e||!t||!J.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=[...J.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=q([...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?T(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 b=m.button.firstElementChild;b.textContent=g;const y=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));b.className!==y&&(b.className=y),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(),!J.current)return;const e=new ResizeObserver(()=>je());e.observe(J.current);for(const t of J.current.children)t.contains(U.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||!U.current)return;ne.current=o,t=new o.Map({container:U.current,style:v[ve],center:O.center,zoom:O.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===H?window.matchMedia("(pointer: coarse)").matches:H}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(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=y(U.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(U.current),G.current=t,be(!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(),G.current=null}},[]);const $e=l(ve);i(()=>{fe&&G.current&&$e.current!==ve&&($e.current=ve,G.current.setStyle(v[ve]))},[fe,ve]),i(()=>{const e=G.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=we.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=we.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 w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,le(r,t.data),r.className=we.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,w,N,je,K]),i(()=>{fe&&je()},[fe,n,$,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=G.current,n=ne.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=G.current;if(!fe||!e)return;const t=(b??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),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,b,ve]),i(()=>{const e=G.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=N?D(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[Se,Ee]=s(!1);i(()=>{const e=J.current;if(!e)return;const t=()=>Ee(e.clientWidth<F);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[F]);const Be=n?t.find(e=>e.key===n)??null:null,ze=Be?.key??null,Ae=Be?.lng??0,Re=Be?.lat??0,Fe=fe&&!Se&&null!=z&&!!Be,[Te,We]=s(null);i(()=>{const e=G.current,t=ne.current;if(!(Fe&&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===V.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),We(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(),J.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(),We(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(ze)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Fe,ze,Ae,Re,je]);const Oe=W?.active??!1,He=l(W?.onChange);i(()=>{He.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 Ke=!!W;return i(()=>{if(!Ke)return;const e=()=>{document.fullscreenElement||He.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[Ke]),/* @__PURE__ */m("div",{ref:J,className:oe(we.frame(S),g),children:[
|
|
3
3
|
/* @__PURE__ */h("div",{className:we.fill,children:/* @__PURE__ */h("div",{ref:U,className:we.box,role:"region","aria-label":u})}),ye&&/* @__PURE__ */h("p",{className:we.failed,children:Z.failed}),W&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>W.onChange(!W.active),leftIcon:/* @__PURE__ */h(ce,{leave:W.active}),children:W.active?Z.leaveFullScreen:Z.fullScreen}),f,null!=z&&!Fe&&/* @__PURE__ */h("div",{"data-map-card":"",className:we.cardInline,children:z}),Fe&&Te?p(z,Te):null,fe&&/* @__PURE__ */h(ie,{pins:t,hosts:he.current,hostClass:we.iconHost})]})}function ie({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
|
|
4
4
|
return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function ce({leave:e}){/* @__PURE__ */
|
|
5
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"}},be=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ye(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,ve=(e,t)=>xe(ye(e),t);function we(e,t,n=fe){return null!=t?String(t):(n[ye(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(ye))];return[...be.filter(e=>t.includes(e)),...t.filter(e=>!be.includes(e))]}function $e(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 Se({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-line bg-surface 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:[
|
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(j.Provider,{value:ce,children:e})}var R=c.Activity,
|
|
4
|
-
return b("div",{ref:y,role:s?"tabpanel":void 0,id:s,"aria-labelledby":l,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(
|
|
5
|
-
return b("div",{className:t,children:e(r)},
|
|
6
|
-
return b(e,{tabs:l.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:s.label,className:t,activeClassName:n,end:r})}var
|
|
2
|
+
import{TabStrip as e}from"../chunk-BXEKX4TB.js";import{useShellLanguage as t}from"../chunk-MVQMAIZM.js";import"../chunk-NDEIZUMG.js";import{confirm as n}from"../chunk-4E4GWE4L.js";import"../chunk-R2QDO7NY.js";import"../chunk-GMRZX2ET.js";import"../chunk-4AJRHTTB.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-FPGRKHUW.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-UQYNPYF4.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-BCDG4N6L.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as i}from"../chunk-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";import*as c from"react";import{createContext as s,memo as l,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 j=s(null),K=s(null),F=12;var T=(e,t)=>e.filter(e=>e!==t);function N(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function M(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let c={...e,tabs:i,activeKey:t.key,mounted:(s=e.mounted,l=t.key,s.includes(l)?s:[...s,l]),clock:r};var s,l;return c.closing&&c.closing!==t.key?c=I(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=I(n,e[0].key)}return n}(c,n)}function A(e){let t={...e,activeKey:null};return t.closing&&(t=I(t,t.closing)),t}function I(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:T(e.mounted,t),dirty:T(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function D(e,t){switch(t.type){case"visit":return M(e,t.entry,t.maxTabs);case"transient":return A(e);case"close":{let n=e;for(const e of t.keys)n=I(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:T(e.dirty,t)}}(e,t.key,t.dirty)}}var C=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 w({children:e,resolve:c,pinned:s=[],storageKey:l,maxTabs:k=12,enabled:v=!0,confirmDiscard:g}){const K=m(),F=h(),T=i().pageTabs,I=y(),w=a(c);w.current=c;const R=d(e=>{const t=w.current(e);return t?{key:t.key??e.pathname,path:C(e),title:t.title}:null},[]),{language:E}=t(),[x,B]=p(D,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),s=[];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||s.some(e=>e.key===i.key))continue;const l=!c&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;s.push({key:i.key,path:r,title:l||i.title,titleFrom:l?"page":"route",pinned:!1,lastActive:0})}return s}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(l),e=>R(L(e)),E);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:N(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},s.map(e=>R(L(e))).filter(e=>Boolean(e)));const n=v?R(K):null;return t=n?M(t,n,k):A(t),t}),G=a(x);G.current=x;const J=a(/* @__PURE__ */new Map),O=v?R(K):null,P=O?.key??null;r(()=>{if(!v)return;const e=R(K);e?(J.current.set(e.key,K),B({type:"visit",entry:e,maxTabs:k})):B({type:"transient"})},[K,v,k,R]),o(()=>{const e=new Set(x.tabs.map(e=>e.key));for(const t of J.current.keys())e.has(t)||J.current.delete(t)},[x.tabs]);const Q=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)}(x,E),[x,E]);o(()=>{if(l)try{localStorage.setItem(l,Q)}catch{}},[Q,l]);const W=x.dirty.length>0;o(()=>{if(!W)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[W]);const S=a(/* @__PURE__ */new Map),U=d((e,t)=>{let n=S.current.get(e);return void 0===n&&(n=S.current.size,S.current.set(e,n)),`${I}-page-${t}-${n}`},[I]),X=d(e=>g?g(e):n({title:T.discardTitle,message:1===e.length?T.discardOne:T.discardCount?.(e.length)??`${e.length} ${T.discardMany}`,confirmLabel:T.discardConfirm,cancelLabel:T.keepEditing,variant:"warning"}),[g,T]),$=d(()=>{const e=G.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),H=d((e,t,n)=>{const r=G.current,i=r.activeKey;if(!i||!e.includes(i))return void B({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))},s=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;c=(s??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??$()}B({type:"close",keys:e.filter(e=>e!==i),closing:i}),F(c)},[F,$]),Z=d(async(e,t={})=>{const n=G.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&F(t.to),!1):!(!t.force&&G.current.dirty.includes(e)&&!await X([n]))&&(!!G.current.tabs.some(t=>t.key===e)&&(H([e],t.to),!0))},[X,H,F]),V=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)}(G.current,e,t);const r=G.current.tabs.filter(e=>n.includes(e.key)&&G.current.dirty.includes(e.key));r.length&&!await X(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(G.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&H(n,void 0,"all"===e?null:t)},[X,H]),Y=d(e=>{const t=G.current.tabs.find(t=>t.key===e);t&&e!==G.current.activeKey&&F(t.path)},[F]),z=d((e,t)=>B({type:"title",key:e,title:t}),[]),q=d((e,t)=>B({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=>R(e)?.key??null,[R]),re=d(e=>J.current.get(e),[]),ie=u(()=>v?x.tabs.filter(e=>e.key!==x.closing):[],[v,x.tabs,x.closing]),ce=u(()=>({enabled:v,state:x,currentKey:P,resolve:c,keyFor:ne,locationFor:re,idFor:U,activate:Y,close:Z,closeMany:V,setTitle:z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[v,x,P,c,ne,re,U,Y,Z,V,z,q,_,te,ie]);/* @__PURE__ */
|
|
3
|
+
return b(j.Provider,{value:ce,children:e})}var R=c.Activity,E=Boolean(R);function x({active:e,children:t}){return R?/* @__PURE__ */b(R,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var B=l(function({tabKey:e,active:t,location:n,render:i,className:c,panelId:s,tabId:l}){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:s?"tabpanel":void 0,id:s,"aria-labelledby":l,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(K.Provider,{value:f,children:/* @__PURE__ */b(x,{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)),G="\0transient";function J({children:e,frameClassName:t}){const n=k(j),r=m();if(!n||!n.enabled)/* @__PURE__ */
|
|
5
|
+
return b("div",{className:t,children:e(r)},G);const{state:i,currentKey:c,locationFor:s,idFor:l}=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:s(n);return a?/* @__PURE__ */b(B,{tabKey:n,active:i,location:a,render:e,className:t,panelId:l(n,"panel"),tabId:l(n,"tab")},n):null}),!c&&/* @__PURE__ */b(B,{tabKey:G,active:!0,location:r,render:e,className:t},G)]})}function O({className:t,activeClassName:n,end:r}){const c=k(j),s=i().pageTabs;if(!c||!c.enabled)return null;const{visibleTabs:l,state:a,idFor:o,activate:u,close:y,closeMany:d,resolve:p}=c;/* @__PURE__ */
|
|
6
|
+
return b(e,{tabs:l.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:s.label,className:t,activeClassName:n,end:r})}var P={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function Q(){const e=k(j);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)}:P}function W(){const e=k(j),t=k(K),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 S(e){const t=k(j),n=k(K),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function U(e){const t=k(j),n=k(K),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 X(e){const t=k(j),n=k(K),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{F as DEFAULT_MAX_TABS,E as PAGE_TABS_PAUSE_HIDDEN,O as PageTabBar,J as PageTabsOutlet,w as PageTabsProvider,L as parseTabPath,W as usePageTab,U as usePageTabCopy,X as usePageTabDirty,S as usePageTabTitle,Q as usePageTabs};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
/** Which tier an item draws at: a group band, or
|
|
4
|
+
/** Which tier an item draws at: a group band, or the quiet tier under one. */
|
|
5
5
|
type AccordionTier = 'band' | 'row';
|
|
6
6
|
interface AccordionItem {
|
|
7
7
|
id: string;
|
|
8
8
|
title: ReactNode;
|
|
9
9
|
content: ReactNode;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
-
/**
|
|
11
|
+
/** A 16px glyph before the title. */
|
|
12
12
|
icon?: ReactNode;
|
|
13
13
|
/** How many settings in it are changed; shown while it is more than 0. */
|
|
14
14
|
count?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The title button's id, when a host already names it (easel's
|
|
17
|
+
* `SettingsGroup` `id`); the body is then `<headId>-body`. Left out, both
|
|
18
|
+
* are generated.
|
|
19
|
+
*/
|
|
20
|
+
headId?: string;
|
|
21
|
+
/** Classes on the item's own box (`es-group`). */
|
|
22
|
+
className?: string;
|
|
15
23
|
}
|
|
16
24
|
interface AccordionProps {
|
|
17
25
|
items: AccordionItem[];
|
|
@@ -22,8 +30,10 @@ interface AccordionProps {
|
|
|
22
30
|
allowMultiple?: boolean;
|
|
23
31
|
/** The heading level each title draws at, under the host's own heading. Default 3. */
|
|
24
32
|
level?: 2 | 3 | 4 | 5 | 6;
|
|
25
|
-
/** `band` for a group (default), `row` for
|
|
33
|
+
/** `band` for a group (default), `row` for the quiet tier. */
|
|
26
34
|
tier?: AccordionTier;
|
|
35
|
+
/** Keep a folded item's body mounted (and `hidden`) instead of dropping it. */
|
|
36
|
+
keepMounted?: boolean;
|
|
27
37
|
className?: string;
|
|
28
38
|
}
|
|
29
39
|
/**
|
|
@@ -33,12 +43,12 @@ interface AccordionProps {
|
|
|
33
43
|
* differ still differ.
|
|
34
44
|
*/
|
|
35
45
|
declare const accordionIdOf: (key: string) => string;
|
|
36
|
-
declare function Accordion({ items, defaultOpenIds, openIds, onOpenChange, allowMultiple, level, tier, className, }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
46
|
+
declare function Accordion({ items, defaultOpenIds, openIds, onOpenChange, allowMultiple, level, tier, keepMounted, className, }: AccordionProps): react_jsx_runtime.JSX.Element;
|
|
37
47
|
interface AccordionHeadingProps {
|
|
38
48
|
title: ReactNode;
|
|
39
49
|
/** The 16px glyph before the title (owner rule: every heading carries one). */
|
|
40
50
|
icon?: ReactNode;
|
|
41
|
-
/** `band` (default), the grey group band; `row`, the quiet
|
|
51
|
+
/** `band` (default), the grey group band; `row`, the quiet tier. */
|
|
42
52
|
tier?: AccordionTier;
|
|
43
53
|
/** The heading level; the host's, since only it knows the outline. Default 3. */
|
|
44
54
|
level?: 2 | 3 | 4 | 5 | 6;
|
|
@@ -46,14 +56,14 @@ interface AccordionHeadingProps {
|
|
|
46
56
|
className?: string;
|
|
47
57
|
}
|
|
48
58
|
/**
|
|
49
|
-
* A title in a tier's look that FOLDS NOTHING: the band (or the
|
|
50
|
-
* `Accordion` item, as a real heading with no button, no
|
|
59
|
+
* A title in a tier's look that FOLDS NOTHING: the band (or the quiet tier) of
|
|
60
|
+
* an `Accordion` item, as a real heading with no button, no sign and no
|
|
51
61
|
* `aria-expanded`. For a run of settings that is titled but never folded, the
|
|
52
|
-
* job easel's `SettingsGroupHead` (band) and `SettingsGroupSub` (
|
|
53
|
-
* `Accordion` item used title-only would
|
|
54
|
-
* does nothing, and tells a screen reader
|
|
55
|
-
*
|
|
56
|
-
*
|
|
62
|
+
* job easel's `SettingsGroupHead` (band) and `SettingsGroupSub` (quiet tier)
|
|
63
|
+
* did, and now do by calling this: an `Accordion` item used title-only would
|
|
64
|
+
* draw a button that claims to fold, does nothing, and tells a screen reader
|
|
65
|
+
* the same lie. It is the heading element itself, with no box round it, so a
|
|
66
|
+
* host's flat list of headings and rows keeps one run of siblings.
|
|
57
67
|
*/
|
|
58
68
|
declare function AccordionHeading({ title, icon, tier, level, id, className }: AccordionHeadingProps): react_jsx_runtime.JSX.Element;
|
|
59
69
|
interface AccordionBodyProps {
|
package/dist/shell/Accordion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{AccordionBody,AccordionHeading,accordionIdOf,Accordion as default}from"../chunk-
|
|
2
|
+
export{AccordionBody,AccordionHeading,accordionIdOf,Accordion as default}from"../chunk-GY67Y5SN.js";import"../chunk-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-GRBBQ3VF.js";import"../chunk-66JYKX4T.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-
|
|
2
|
+
export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-GRBBQ3VF.js";import"../chunk-66JYKX4T.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.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-IQWIYZB5.js";import"../chunk-XS4HFUTW.js";import"../chunk-FPGRKHUW.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.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-PVR4KU7H.js";import"../chunk-XS4HFUTW.js";import"../chunk-CDAJKLGL.js";import"../chunk-FPGRKHUW.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.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-QRJRGP2K.js";import"../chunk-DPDRFLBY.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-AYZY3YNC.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-
|
|
2
|
+
export{HelpCenter as default}from"../chunk-QRJRGP2K.js";import"../chunk-DPDRFLBY.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-AYZY3YNC.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ImageLightbox as default,lightboxKind}from"../chunk-XSJJPACH.js";import"../chunk-CGUMJZUB.js";import"../chunk-7BDZZANS.js";import"../chunk-EQN65XOO.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-LNARMEEZ.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-
|
|
2
|
+
export{ImageLightbox as default,lightboxKind}from"../chunk-XSJJPACH.js";import"../chunk-CGUMJZUB.js";import"../chunk-7BDZZANS.js";import"../chunk-EQN65XOO.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";import"../chunk-CDAJKLGL.js";import"../chunk-LNARMEEZ.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-OZAAIE4E.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-
|
|
2
|
+
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-D2WGDTWN.js";import"../chunk-MVQMAIZM.js";import"../chunk-QTV3Y3UT.js";import"../chunk-VQCKMT5F.js";import"../chunk-64ACCUNN.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-7YU27U3Y.js";import"../chunk-EO5RLFRX.js";import"../chunk-5F7HMNCX.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.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-X2PZMXDP.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-DPDRFLBY.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-
|
|
2
|
+
export{Markdown as default,plainCell,tableToCsv}from"../chunk-DPDRFLBY.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.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-FPGRKHUW.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.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-RYS3URDC.js";import"../chunk-EO5RLFRX.js";import"../chunk-5F7HMNCX.js";import"../chunk-AYZY3YNC.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-
|
|
2
|
+
export{SearchableSelect as default,fitChoice}from"../chunk-RYS3URDC.js";import"../chunk-EO5RLFRX.js";import"../chunk-5F7HMNCX.js";import"../chunk-AYZY3YNC.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,23 +1,41 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
/** The view on screen. Desktop resets to the site default; Tablet and Phone
|
|
4
5
|
* inherit the parent layout (auto). */
|
|
5
6
|
type SettingResetView = 'desktop' | 'tablet' | 'phone';
|
|
7
|
+
/** The press a row offers while its value is the default (see the docblock). */
|
|
8
|
+
interface SettingResetDefaultAction {
|
|
9
|
+
/** Its name and its tooltip. */
|
|
10
|
+
title: string;
|
|
11
|
+
/** The 15px glyph it draws. */
|
|
12
|
+
icon: ReactNode;
|
|
13
|
+
onPress: () => void;
|
|
14
|
+
}
|
|
6
15
|
interface SettingResetProps {
|
|
7
16
|
/** The setting's name, as the row shows it: the ↺ is named after it. */
|
|
8
17
|
label: string;
|
|
9
|
-
/** Clear
|
|
18
|
+
/** Clear the value. */
|
|
10
19
|
onReset: () => void;
|
|
20
|
+
/** Whether there is something to reset. Default `true`; `false` draws the
|
|
21
|
+
* empty slot (or `defaultAction`). */
|
|
22
|
+
changed?: boolean;
|
|
11
23
|
/** Which view the panel is showing. Default `desktop`. */
|
|
12
24
|
view?: SettingResetView;
|
|
13
25
|
/**
|
|
14
26
|
* What it goes back to, when the host knows: "auto, 40px" on Phone,
|
|
15
|
-
* "24px from Site styles" on Desktop. Read as "back to …"
|
|
16
|
-
* and
|
|
27
|
+
* "24px from Site styles" on Desktop. Read as "back to …" in the tooltip,
|
|
28
|
+
* and the button's description; the name stays short.
|
|
17
29
|
*/
|
|
18
30
|
detail?: string;
|
|
31
|
+
/** The button's name in the host's own words; wins over the kit's. */
|
|
32
|
+
name?: string;
|
|
33
|
+
/** The tooltip in the host's own words; wins over the kit's. */
|
|
34
|
+
tip?: string;
|
|
35
|
+
defaultAction?: SettingResetDefaultAction;
|
|
19
36
|
disabled?: boolean;
|
|
37
|
+
className?: string;
|
|
20
38
|
}
|
|
21
|
-
declare function SettingReset({ label, onReset, view, detail, disabled }: SettingResetProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare function SettingReset({ label, onReset, changed, view, detail, name: nameProp, tip: tipProp, defaultAction, disabled, className, }: SettingResetProps): react_jsx_runtime.JSX.Element;
|
|
22
40
|
|
|
23
|
-
export { type SettingResetProps, type SettingResetView, SettingReset as default };
|
|
41
|
+
export { type SettingResetDefaultAction, type SettingResetProps, type SettingResetView, SettingReset as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SettingReset as default}from"../chunk-
|
|
2
|
+
export{SettingReset as default}from"../chunk-GBLMVFDW.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -11,10 +11,9 @@ interface SettingRowProps {
|
|
|
11
11
|
/** The glyph before the name, 16px — `<Icon name="padding-all" />`. */
|
|
12
12
|
icon?: ReactNode;
|
|
13
13
|
/**
|
|
14
|
-
* The
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* control itself (a switch included) goes in `value`.
|
|
14
|
+
* The end of the name line: `SettingReset` (the ↺) in a compact row, or a
|
|
15
|
+
* switch there (a one-line row); a portal card's own action. The compact
|
|
16
|
+
* row's control goes in `value`.
|
|
18
17
|
*/
|
|
19
18
|
action?: ReactNode;
|
|
20
19
|
/**
|
|
@@ -28,13 +27,11 @@ interface SettingRowProps {
|
|
|
28
27
|
value?: ReactNode;
|
|
29
28
|
/**
|
|
30
29
|
* The word that says the setting's value ("1600px", "Default", "Full
|
|
31
|
-
* width")
|
|
32
|
-
* name line, at the right, before the reset slot. Where the name and the
|
|
33
|
-
* readout do not both fit, the readout drops under the name, at the right,
|
|
34
|
-
* like a control: the name never takes two lines (R9, owner 2026-10-17).
|
|
35
|
-
* With a readout the hint goes under the name line, across the row.
|
|
30
|
+
* width"). It sits on the name line, at the right, before `action`.
|
|
36
31
|
*/
|
|
37
32
|
readout?: ReactNode;
|
|
33
|
+
/** The value is not the default (compact): the name takes the accent's words. */
|
|
34
|
+
changed?: boolean;
|
|
38
35
|
/** What the setting does, under the name, in a smaller voice. */
|
|
39
36
|
description?: ReactNode;
|
|
40
37
|
/**
|
|
@@ -53,10 +50,8 @@ interface SettingRowProps {
|
|
|
53
50
|
controlId?: string;
|
|
54
51
|
/**
|
|
55
52
|
* The id of the name. A control that is named elsewhere (`aria-labelledby`
|
|
56
|
-
* on a select's list) points at it
|
|
57
|
-
*
|
|
58
|
-
* that name (`aria-labelledby`), so a merchant and a screen reader get the
|
|
59
|
-
* same words with nothing said by the host.
|
|
53
|
+
* on a select's list) points at it, and a switch in a compact row's value or
|
|
54
|
+
* action with no name of its own takes that name (`aria-labelledby`).
|
|
60
55
|
*/
|
|
61
56
|
labelId?: string;
|
|
62
57
|
/** Shown in place of a value that is `null`, `undefined` or `''`. */
|
|
@@ -100,6 +95,6 @@ interface SettingRowProps {
|
|
|
100
95
|
context?: ShowWhenContext;
|
|
101
96
|
className?: string;
|
|
102
97
|
}
|
|
103
|
-
declare function SettingRow({ label, icon, action, value, readout, description, children, controlId, labelId, unknownText, quiet, size, viewState, divider, showWhen, values, context, className, }: SettingRowProps): react_jsx_runtime.JSX.Element | null;
|
|
98
|
+
declare function SettingRow({ label, icon, action, value, readout, changed, description, children, controlId, labelId, unknownText, quiet, size, viewState, divider, showWhen, values, context, className, }: SettingRowProps): react_jsx_runtime.JSX.Element | null;
|
|
104
99
|
|
|
105
100
|
export { type SettingRowProps, type SettingRowSize, type SettingViewState, SettingRow as default };
|
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-LR77AS3N.js";import"../chunk-MZ26SYFY.js";import"../chunk-HCP7WOAL.js";import"../chunk-2NMW66P5.js";import"../chunk-X2PZMXDP.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-EGAV5LSX.js";import"../chunk-PVR4KU7H.js";import"../chunk-XS4HFUTW.js";import"../chunk-CDAJKLGL.js";import"../chunk-FPGRKHUW.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.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-B7KD3DGY.js";import"../chunk-KNUR2UEG.js";import"../chunk-IEAFSVXC.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ChatTemplate as default}from"../chunk-E7WY4GZ3.js";import"../chunk-PUIQFTCO.js";import"../chunk-QWK6DRSN.js";import"../chunk-RBIGSJ2J.js";import"../chunk-5VTRKWKO.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-
|
|
2
|
+
export{ChatTemplate as default}from"../chunk-E7WY4GZ3.js";import"../chunk-PUIQFTCO.js";import"../chunk-QWK6DRSN.js";import"../chunk-RBIGSJ2J.js";import"../chunk-5VTRKWKO.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{CheckoutTemplate as default}from"../chunk-
|
|
2
|
+
export{CheckoutTemplate as default}from"../chunk-GQMS5657.js";import"../chunk-CBGKLHPB.js";import"../chunk-7YU27U3Y.js";import"../chunk-EO5RLFRX.js";import"../chunk-5F7HMNCX.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-66JYKX4T.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DataTablePage as default}from"../chunk-
|
|
2
|
+
export{DataTablePage as default}from"../chunk-SGTZJMZ6.js";import"../chunk-CBGKLHPB.js";import"../chunk-7YU27U3Y.js";import"../chunk-EO5RLFRX.js";import"../chunk-5F7HMNCX.js";import"../chunk-2NMW66P5.js";import"../chunk-IWJRSC7M.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-LNARMEEZ.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-OZAAIE4E.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{EmailTemplate as default}from"../chunk-3AZBI76O.js";import"../chunk-PUIQFTCO.js";import"../chunk-QWK6DRSN.js";import"../chunk-RBIGSJ2J.js";import"../chunk-5VTRKWKO.js";import"../chunk-GMRZX2ET.js";import"../chunk-UGTRSRIW.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-
|
|
2
|
+
export{EmailTemplate as default}from"../chunk-3AZBI76O.js";import"../chunk-PUIQFTCO.js";import"../chunk-QWK6DRSN.js";import"../chunk-RBIGSJ2J.js";import"../chunk-5VTRKWKO.js";import"../chunk-GMRZX2ET.js";import"../chunk-UGTRSRIW.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FormLayoutPage as default}from"../chunk-
|
|
2
|
+
export{FormLayoutPage as default}from"../chunk-FRINAJU7.js";import"../chunk-CBGKLHPB.js";import"../chunk-NI5FXWK5.js";import"../chunk-7YU27U3Y.js";import"../chunk-EO5RLFRX.js";import"../chunk-5F7HMNCX.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-PB7G6CJ7.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-NHH2MXFU.js";import"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";import"../chunk-FSPFV4MI.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-BCDG4N6L.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-X2PZMXDP.js";import"../chunk-C3QOHMR6.js";
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export { default as Skeleton, SkeletonProps, SkeletonVariant } from '../shell/Sk
|
|
|
76
76
|
export { DescriptionColumns, DescriptionItem, default as DescriptionList, DescriptionListProps } from '../shell/DescriptionList.js';
|
|
77
77
|
export { default as SettingRow, SettingRowProps, SettingViewState } from '../shell/SettingRow.js';
|
|
78
78
|
export { default as SettingReset, SettingResetProps, SettingResetView } from '../shell/SettingReset.js';
|
|
79
|
-
export {
|
|
79
|
+
export { useSettingAuto, useSettingRowName } from '../forms/settingRowContext.js';
|
|
80
80
|
export { RowRule, ShowWhenCheck, ShowWhenContext, ShowWhenFactData, ShowWhenFacts, ShowWhenRule, ShowWhenValue, WithShowWhen, WithShowWhenFacts, addShowWhenFacts, isShown, lazyShowWhenContext, showWhenFactReaders, showWhenFactsContext, showWhenOf, shownForOption, truthy, withRowRules, withRowsShownWhen, withShowWhen, withShowWhenFacts } from '../forms/showWhenRule.js';
|
|
81
81
|
export { default as ShowWhen, ShowWhenProps } from '../forms/ShowWhen.js';
|
|
82
82
|
export { default as Result, ResultProps, ResultStatus } from '../shell/Result.js';
|