efficient-shell 7.45.0 → 7.47.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 +65 -0
- package/dist/{Browser-7M22OFSW.js → Browser-5AN7EBVV.js} +14 -14
- package/dist/Calculator-YGJ7I5VT.js +29 -0
- package/dist/ConfirmDialog-OJLZG4QL.js +1 -0
- package/dist/{CurrencyConverter-4QTVWEFM.js → CurrencyConverter-PH75TBDL.js} +6 -6
- package/dist/{Documents-LELK7IBM.js → Documents-HZF3MZCH.js} +22 -22
- package/dist/Files-5H7LBVIF.js +87 -0
- package/dist/{Notepad-CLHKYQ34.js → Notepad-WTWGNCLT.js} +14 -14
- package/dist/PdfViewer-D4GRPG4G.js +1 -0
- package/dist/{PomodoroTimer-L45QS5OR.js → PomodoroTimer-BUKDNFPJ.js} +24 -24
- package/dist/{Preview-47BCBIP4.js → Preview-ZMDRH6GO.js} +65 -65
- package/dist/Sidebar-A3UG662D.js +44 -0
- package/dist/{Spreadsheet-6NX5WA4J.js → Spreadsheet-WOSOG5TR.js} +13 -13
- package/dist/{Stock-ZZ6AM43M.js → Stock-FB5VIBVY.js} +3 -3
- package/dist/{Weather-K3BZD2NX.js → Weather-2MOP5LTK.js} +17 -17
- package/dist/{WorldClock-5STYQA56.js → WorldClock-KMMKBE4B.js} +6 -6
- package/dist/ai/index.d.ts +271 -0
- package/dist/ai/index.js +37 -0
- package/dist/ai.css +2 -0
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-JJBFXVOY.js → chunk-3RKM5ZGV.js} +2 -2
- package/dist/{chunk-YRLOXHKG.js → chunk-3ZZ2UPNR.js} +1 -1
- package/dist/{chunk-DENNF2LM.js → chunk-4FQTMGCA.js} +2 -2
- package/dist/{chunk-M2AM6DAA.js → chunk-4QW4I2XQ.js} +1 -1
- package/dist/{chunk-GM2ASLIK.js → chunk-4TOFAEAW.js} +29 -29
- package/dist/{chunk-XDR3Y3WU.js → chunk-55NGVBTR.js} +5 -5
- package/dist/{chunk-G4UIEBPD.js → chunk-BFJRKFOH.js} +13 -13
- package/dist/{chunk-HPUHB47C.js → chunk-BMYURA2N.js} +1 -1
- package/dist/chunk-CLYMUTNF.js +27 -0
- package/dist/{chunk-PR7MCFEU.js → chunk-EZTEOTUD.js} +95 -95
- package/dist/{chunk-FQIZMZDX.js → chunk-FBXOKW33.js} +3 -3
- package/dist/{chunk-K6YIBHZN.js → chunk-FGPEAC7B.js} +16 -16
- package/dist/{chunk-XYG3CVL5.js → chunk-FY3H52BM.js} +1 -1
- package/dist/{chunk-UNLQRUWP.js → chunk-GFWRYNPX.js} +18 -18
- package/dist/{chunk-LK7BWXYY.js → chunk-JFZLYYAN.js} +1 -1
- package/dist/{chunk-JXMYF3JR.js → chunk-JGWOY2KV.js} +9 -9
- package/dist/{chunk-UNA3BQJI.js → chunk-MMLU5ZHI.js} +9 -9
- package/dist/{chunk-ABKFLSHY.js → chunk-NX5HJ6L5.js} +1 -1
- package/dist/chunk-OQBWV2RH.js +1020 -0
- package/dist/chunk-RWNNFCSA.js +1 -0
- package/dist/chunk-UBXRSOQ6.js +47 -0
- package/dist/chunk-USLPE6K3.js +1 -0
- package/dist/{chunk-CWCKDF37.js → chunk-VJ6KJYRS.js} +3 -3
- package/dist/{chunk-LTEM56OL.js → chunk-WSRZRWN7.js} +1 -1
- package/dist/{chunk-3G5TA3IF.js → chunk-YT4B3NSV.js} +4 -3
- package/dist/{chunk-HQ74L5MM.js → chunk-YWJD6RUT.js} +1 -1
- package/dist/{chunk-X6NYTLYX.js → chunk-ZELMENOO.js} +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/{index-BWDtKUcA.d.ts → index-BI54lOAz.d.ts} +30 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +682 -682
- package/dist/map/index.js +8 -8
- package/dist/markdown/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +21 -4
- package/dist/Calculator-LKWOOCNC.js +0 -29
- package/dist/ConfirmDialog-ZT3XT66V.js +0 -1
- package/dist/Files-LAWZGFQQ.js +0 -87
- package/dist/PdfViewer-VJ743BW7.js +0 -1
- package/dist/Sidebar-AYYJL3IJ.js +0 -44
- package/dist/chunk-NGWXT4QX.js +0 -1
- package/dist/chunk-NZBFQTOB.js +0 -27
- package/dist/chunk-WGSCC6QU.js +0 -1050
package/dist/map/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{Button_default as e}from"../chunk-G5GERM76.js";import"../chunk-3E27HV76.js";import{rootIsDark as t,ROOT_THEME_ATTRIBUTES as n}from"../chunk-7IQ3B77H.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import{SpinnerRing as r}from"../chunk-2J6F4EE7.js";import{useShellStrings as o}from"../chunk-LVCRH3K6.js";import"../chunk-C3QOHMR6.js";import"../chunk-D65T4H6J.js";import{Icon as a}from"../chunk-3G5TA3IF.js";import{useRef as l,useState as i,useEffect as s,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var y="maplibregl-compact-show";function b(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(y)&&(e.classList.remove(y),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x=20,v=12,w=480,k={center:[0,0],left:[x,0],right:[-20,0],top:[0,x],"top-left":[0,x],"top-right":[0,x],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},N=(e,t=12)=>Math.max(0,Math.floor(e-t-v-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-v,l=t.height<=o||t.height>a&&o>=a,i=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let s="",c=0;return e.x-t.width/2<v?(s="-left",c=Math.max(0,v-e.x)):e.x+t.width/2>n.width-v&&(s="-right",c=-Math.max(0,e.x-(n.width-v))),{anchor:`${l?"bottom":"top"}${s}`,move:{x:c,y:i}}}var C="maplibre-gl-worker.mjs",L=e=>`/maplibre-gl/${e}/${C}`,E=null;function $(){return E??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(L(e.getVersion())),e)).catch(e=>{throw E=null,e}),E}var S=24,j=28,A=29;function z(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function R(e){const t=Math.max(j,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 T(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var B=e=>O(e.x,e.y,e.width,e.height);function F(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(T(B(e[t]),B(e[n])))return[e[t],e[n]];return null}function K(e,t=[]){const n=[],r=e=>t.some(t=>T(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:j,height:j,under:0}));for(let e=F(o);e;e=F(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=R(z(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(B(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=O(t.x,t.y,S,S),l=o.find(t=>T(B(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const i=a.find(t=>T(B(t),e));i?i.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:S,height:S,under:0})}return{groups:[...o,...a],hidden:n}}function W(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function q(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:n}),()=>t.disconnect()}var _=t;var H="routes",P=["routes-road","routes-estimate"];function I(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(),G(n)}function G(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 D={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},Z={center:[30,20],zoom:1},V="ring-2 ring-gray-900 ring-offset-2";var J="var(--color-gray-600, #4b5563)",Q="http://www.w3.org/2000/svg",U=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,X=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function Y(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!X.test(r.slice(7))})}var ee=(...e)=>e.filter(Boolean).join(" ");function te(e){const t=document.createElementNS(Q,"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(Q,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function ne(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}var re=(e,t)=>ee("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6"));function oe(e,t,n,r){const o=t&&!r&&null==e.stop&&!e.dot;return ee("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!Y(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":V),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")}var ae=e=>ee("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",!Y(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white");function le({pins:t,selectedKey:n,focus:r,onSelect:a,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:v,marks:w,groupCrowded:C=!1,noun:L,highlightKey:E=null,picking:A=!1,onPick:R,card:O,cardMinMapWidth:T=480,fullScreen:B,initialView:F=Z,cooperativeGestures:Q=!1}){const X=o().map,Y=l(null),le=l(null),ce=l(null),ue=l(null),de=l([]),pe=l(/* @__PURE__ */new Map),me=l(/* @__PURE__ */new Map),he=l(/* @__PURE__ */new Map),ge=l(null),fe=l(/* @__PURE__ */new Map),ye=l(""),[be,xe]=i(!1),[ve,we]=i(!1),ke=d(q,_,()=>!1)?"dark":"light",Ne=l({onSelect:a,onPick:R,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:X,noun:L});s(()=>{Ne.current={onSelect:a,onPick:R,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:X,noun:L}});const Me=c(()=>{const e=ce.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:U()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=ce.current,r=ue.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>pe.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const i=a.map(e=>n.project([e.lng,e.lat])),s=Math.max(...i.map((e,t)=>W(e,i.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=pe.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...me.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,s))),duration:U()?0:600})},[]),Ee=c(()=>{const e=ce.current,t=ue.current;if(!e||!t||!Y.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l}=Ne.current;for(const[e,t]of pe.current){const a=oe(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...Y.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=K([...pe.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const s=e=>(l??a.places)(e),c=e.getZoom()<17.5?a.spread:a.cycle,u=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},d=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,s(r.under)):null,l=1===r.keys.length?pe.current.get(r.keys[0]):null;if(l){u(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)u(pe.current.get(e).button,!1);const i=r.keys.join(" ");let p=me.current.get(i);if(!p){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className="grid place-items-center rounded-full cursor-pointer",n.append(document.createElement("span"));const o=pe.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),p=a}p.keys=r.keys;const m=r.keys.map(e=>pe.current.get(e)),h=r.stops.length>0?z(r.stops):String(m.length),g=r.stops.length>0?a.stops(h):a.group(m.length,s(m.length));p.button.style.width=`${r.width}px`,p.button.style.height=`${r.height}px`,p.button.setAttribute("aria-label",`${g}: ${m.map(e=>e.pin.label).join("; ")}. ${c}${o?`; ${o}`:""}.`),p.button.title=[`${g}:`,...m.map(e=>e.title),...o?[o]:[],c].join("\n");const f=p.button.firstElementChild;f.textContent=h;const y=ee("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",r.stops.length>0?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":m.every(e=>e.pin.dot)?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",null!=n&&r.keys.includes(n)&&V);f.className!==y&&(f.className=y),d.set(i,p)}for(const e of i.hidden)u(pe.current.get(e).button,!1);for(const[e,t]of me.current)d.has(e)||t.marker.remove();me.current=d}if(ge.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?pe.current.get(r):void 0,n=r?he.current.get(r):void 0,o=e?{at:pe.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?j:S),height:t.button.offsetHeight||(null!=t.pin.stop?j:S)}:n?{at:n.mark,width:n.element.offsetWidth||j,height:n.element.offsetHeight||j}:null,a=ge.current.getElement();a.style.display=o?"":"none",o&&(ge.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);s(()=>{if(Ee(),!Y.current)return;const e=new ResizeObserver(()=>Ee());e.observe(Y.current);for(const t of Y.current.children)t.contains(le.current)||e.observe(t);return()=>e.disconnect()}),s(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await $();if(e||!le.current)return;ue.current=o,t=new o.Map({container:le.current,style:D[ke],center:F.center,zoom:F.zoom,attributionControl:v?{compact:!0,customAttribution:v}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===Q?window.matchMedia("(pointer: coarse)").matches:Q}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className="pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",a.style.display="none",ge.current=new o.Marker({element:a,anchor:"center"}).setLngLat(F.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",Ee),t.on("moveend",Ee),t.on("resize",Ee),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(le.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(le.current),ce.current=t,xe(!0)}catch(t){console.error("[map] could not start",t),e||we(!0)}})(),()=>{e=!0,n?.disconnect(),r(),de.current.forEach(e=>e.remove()),de.current=[],me.current.forEach(e=>e.marker.remove()),me.current.clear(),ge.current?.remove(),ge.current=null,t?.remove(),ce.current=null}},[]);const $e=l(ke);s(()=>{be&&ce.current&&$e.current!==ke&&($e.current=ke,ce.current.setStyle(D[ke]))},[be,ke]),s(()=>{const e=ce.current,n=ue.current;if(!be||!e||!n)return;de.current.forEach(e=>e.remove()),de.current=[],me.current.forEach(e=>e.marker.remove()),me.current.clear(),pe.current.clear(),he.current.clear();for(const e of fe.current.keys())t.some(t=>t.key===e)||fe.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=re(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const i=document.createElement("span");if(ne(i,o.data),o.dot);else if(null!=o.iconNode){const e=fe.current.get(o.key);e&&i.append(e)}else o.icon?.length?i.append(te(o.icon)):i.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(i),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ee("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",o.badgeTone??"bg-white text-gray-900"),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),de.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),pe.current.set(o.key,{pin:o,button:t,mark:i,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,ne(r,t.data),r.className=ae(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),de.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),he.current.set(t.key,{mark:t,element:r})}Ee()},[be,t,w,C,Ee]),s(()=>{be&&Ee()},[be,n,E,Ee]),s(()=>{if(!be||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[be,n,Me]),s(()=>{const e=ce.current,n=ue.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!be||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ye.current===o)return;const a=""===ye.current;if(ye.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[be,t,w,x]),s(()=>{const e=ce.current;if(!be||!e)return;const t=(y??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),G(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?I(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],i=e.getSource(H);if(i&&(i.attribution||"")!==n){for(const t of P)e.getLayer(t)&&e.removeLayer(t);e.removeSource(H)}const s=e.getSource(H);s?s.setData(o):e.addSource(H,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:H,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:H,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[be,y,ke]),s(()=>{const e=ce.current;if(!be||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=C?W(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};U()?e.jumpTo(l):e.flyTo({...l,duration:600})},[be,r?.n]);const[Se,je]=i(!1);s(()=>{const e=Y.current;if(!e)return;const t=()=>je(e.clientWidth<T);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[T]);const Ae=n?t.find(e=>e.key===n)??null:null,ze=Ae?.key??null,Re=Ae?.lng??0,Oe=Ae?.lat??0,Te=be&&!Se&&null!=O&&!!Ae,[Be,Fe]=i(null);s(()=>{const e=ce.current,t=ue.current;if(!(Te&&e&&t&&ze))return;const n=document.createElement("div");n.dataset.mapCard="",n.className="w-[26rem] overflow-y-auto overscroll-contain";const r=new t.Popup({anchor:"bottom",offset:k,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Re,Oe]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip");l&&Object.assign(l.style,{borderTopColor:J,borderBottomColor:J}),Fe(n);let i=!1,s=!1;const c=(t=!0)=>{if(s)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,c()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),Y.current)+8,u=`${N(a,l)}px`;n.style.maxHeight!==u&&(n.style.maxHeight=u);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:U()?0:250}),Ee()},u=new ResizeObserver(()=>c());u.observe(n);const d=()=>c(),p=()=>{i||c(!1)};e.on("resize",d),e.on("moveend",p);let m=!1;const h=pe.current,g=e=>{m=n.contains(e.target)};return document.addEventListener("focusin",g),()=>{if(s=!0,u.disconnect(),e.off("resize",d),e.off("moveend",p),document.removeEventListener("focusin",g),r.remove(),Fe(null),m&&(!document.activeElement||document.activeElement===document.body)){const e=h.get(ze)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Te,ze,Re,Oe,Ee]);const Ke=B?.active??!1,We=l(B?.onChange);s(()=>{We.current=B?.onChange}),s(()=>{if(!B)return;const e=document.documentElement;Ke&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Ke&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Ke]);const qe=!!B;return s(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||We.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:Y,className:ee("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",A&&"[&_canvas]:cursor-crosshair",g),children:[
|
|
3
|
-
/* @__PURE__ */h("div",{className:"absolute inset-0",children:/* @__PURE__ */h("div",{ref:le,className:"h-full w-full",role:"region","aria-label":u})}),ve&&/* @__PURE__ */h("p",{className:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",children:X.failed}),
|
|
2
|
+
import{Button_default as e}from"../chunk-G5GERM76.js";import"../chunk-3E27HV76.js";import{rootIsDark as t,ROOT_THEME_ATTRIBUTES as n}from"../chunk-7IQ3B77H.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import"../chunk-D65T4H6J.js";import{Icon as r}from"../chunk-YT4B3NSV.js";import{useShellStrings as o}from"../chunk-LVCRH3K6.js";import"../chunk-C3QOHMR6.js";import{SpinnerRing as a}from"../chunk-2J6F4EE7.js";import{useRef as l,useState as i,useEffect as s,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var y="maplibregl-compact-show";function b(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(y)&&(e.classList.remove(y),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x=20,v=12,w=480,k={center:[0,0],left:[x,0],right:[-20,0],top:[0,x],"top-left":[0,x],"top-right":[0,x],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},N=(e,t=12)=>Math.max(0,Math.floor(e-t-v-x-10-16));function M(e,t,n,r=12){const o=e.y-x-r,a=n.height-e.y-x-v,l=t.height<=o||t.height>a&&o>=a,i=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let s="",c=0;return e.x-t.width/2<v?(s="-left",c=Math.max(0,v-e.x)):e.x+t.width/2>n.width-v&&(s="-right",c=-Math.max(0,e.x-(n.width-v))),{anchor:`${l?"bottom":"top"}${s}`,move:{x:c,y:i}}}var C="maplibre-gl-worker.mjs",L=e=>`/maplibre-gl/${e}/${C}`,E=null;function $(){return E??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(L(e.getVersion())),e)).catch(e=>{throw E=null,e}),E}var S=24,j=28,A=29;function z(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function R(e){const t=Math.max(j,12+8*e.length);return t+t%2}var B=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function O(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var T=e=>B(e.x,e.y,e.width,e.height);function F(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(O(T(e[t]),T(e[n])))return[e[t],e[n]];return null}function K(e,t=[]){const n=[],r=e=>t.some(t=>O(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:j,height:j,under:0}));for(let e=F(o);e;e=F(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=R(z(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(T(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=B(t.x,t.y,S,S),l=o.find(t=>O(T(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const i=a.find(t=>O(T(t),e));i?i.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:S,height:S,under:0})}return{groups:[...o,...a],hidden:n}}function W(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function q(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:n}),()=>t.disconnect()}var _=t;var H="routes",P=["routes-road","routes-estimate"];function I(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(),D(n)}function D(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 G={light:"https://tiles.openfreemap.org/styles/positron",dark:"https://tiles.openfreemap.org/styles/dark"},V={center:[30,20],zoom:1},Z="ring-2 ring-gray-900 ring-offset-2";var J="var(--color-gray-600, #4b5563)",Q="http://www.w3.org/2000/svg",U=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,X=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function Y(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!X.test(r.slice(7))})}var ee=(...e)=>e.filter(Boolean).join(" ");function te(e){const t=document.createElementNS(Q,"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(Q,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function ne(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}var re=(e,t)=>ee("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6"));function oe(e,t,n,r){const o=t&&!r&&null==e.stop&&!e.dot;return ee("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!Y(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":Z),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")}var ae=e=>ee("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",!Y(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-white");function le({pins:t,selectedKey:n,focus:r,onSelect:a,ariaLabel:u,className:g="",children:f,routes:y,fitTo:x,attribution:v,marks:w,groupCrowded:C=!1,noun:L,highlightKey:E=null,picking:A=!1,onPick:R,card:B,cardMinMapWidth:O=480,fullScreen:T,initialView:F=V,cooperativeGestures:Q=!1}){const X=o().map,Y=l(null),le=l(null),ce=l(null),ue=l(null),de=l([]),pe=l(/* @__PURE__ */new Map),me=l(/* @__PURE__ */new Map),he=l(/* @__PURE__ */new Map),ge=l(null),fe=l(/* @__PURE__ */new Map),ye=l(""),[be,xe]=i(!1),[ve,we]=i(!1),ke=d(q,_,()=>!1)?"dark":"light",Ne=l({onSelect:a,onPick:R,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:X,noun:L});s(()=>{Ne.current={onSelect:a,onPick:R,picking:A,pins:t,selectedKey:n,highlightKey:E,groupCrowded:C,strings:X,noun:L}});const Me=c(()=>{const e=ce.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:U()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=ce.current,r=ue.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>pe.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const i=a.map(e=>n.project([e.lng,e.lat])),s=Math.max(...i.map((e,t)=>W(e,i.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=pe.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...me.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,s))),duration:U()?0:600})},[]),Ee=c(()=>{const e=ce.current,t=ue.current;if(!e||!t||!Y.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l}=Ne.current;for(const[e,t]of pe.current){const a=oe(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...Y.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=K([...pe.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const s=e=>(l??a.places)(e),c=e.getZoom()<17.5?a.spread:a.cycle,u=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},d=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,s(r.under)):null,l=1===r.keys.length?pe.current.get(r.keys[0]):null;if(l){u(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)u(pe.current.get(e).button,!1);const i=r.keys.join(" ");let p=me.current.get(i);if(!p){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className="grid place-items-center rounded-full cursor-pointer",n.append(document.createElement("span"));const o=pe.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),p=a}p.keys=r.keys;const m=r.keys.map(e=>pe.current.get(e)),h=r.stops.length>0?z(r.stops):String(m.length),g=r.stops.length>0?a.stops(h):a.group(m.length,s(m.length));p.button.style.width=`${r.width}px`,p.button.style.height=`${r.height}px`,p.button.setAttribute("aria-label",`${g}: ${m.map(e=>e.pin.label).join("; ")}. ${c}${o?`; ${o}`:""}.`),p.button.title=[`${g}:`,...m.map(e=>e.title),...o?[o]:[],c].join("\n");const f=p.button.firstElementChild;f.textContent=h;const y=ee("grid place-items-center rounded-full border-2 border-gray-700 bg-white font-semibold leading-none text-gray-900 shadow-sm",r.stops.length>0?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":m.every(e=>e.pin.dot)?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",null!=n&&r.keys.includes(n)&&Z);f.className!==y&&(f.className=y),d.set(i,p)}for(const e of i.hidden)u(pe.current.get(e).button,!1);for(const[e,t]of me.current)d.has(e)||t.marker.remove();me.current=d}if(ge.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?pe.current.get(r):void 0,n=r?he.current.get(r):void 0,o=e?{at:pe.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?j:S),height:t.button.offsetHeight||(null!=t.pin.stop?j:S)}:n?{at:n.mark,width:n.element.offsetWidth||j,height:n.element.offsetHeight||j}:null,a=ge.current.getElement();a.style.display=o?"":"none",o&&(ge.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);s(()=>{if(Ee(),!Y.current)return;const e=new ResizeObserver(()=>Ee());e.observe(Y.current);for(const t of Y.current.children)t.contains(le.current)||e.observe(t);return()=>e.disconnect()}),s(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await $();if(e||!le.current)return;ue.current=o,t=new o.Map({container:le.current,style:G[ke],center:F.center,zoom:F.zoom,attributionControl:v?{compact:!0,customAttribution:v}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===Q?window.matchMedia("(pointer: coarse)").matches:Q}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className="pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",a.style.display="none",ge.current=new o.Marker({element:a,anchor:"center"}).setLngLat(F.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",Ee),t.on("moveend",Ee),t.on("resize",Ee),t.on("error",e=>console.warn("[map]",e.error?.message)),r=b(le.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(le.current),ce.current=t,xe(!0)}catch(t){console.error("[map] could not start",t),e||we(!0)}})(),()=>{e=!0,n?.disconnect(),r(),de.current.forEach(e=>e.remove()),de.current=[],me.current.forEach(e=>e.marker.remove()),me.current.clear(),ge.current?.remove(),ge.current=null,t?.remove(),ce.current=null}},[]);const $e=l(ke);s(()=>{be&&ce.current&&$e.current!==ke&&($e.current=ke,ce.current.setStyle(G[ke]))},[be,ke]),s(()=>{const e=ce.current,n=ue.current;if(!be||!e||!n)return;de.current.forEach(e=>e.remove()),de.current=[],me.current.forEach(e=>e.marker.remove()),me.current.clear(),pe.current.clear(),he.current.clear();for(const e of fe.current.keys())t.some(t=>t.key===e)||fe.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=re(o,C);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const i=document.createElement("span");if(ne(i,o.data),o.dot);else if(null!=o.iconNode){const e=fe.current.get(o.key);e&&i.append(e)}else o.icon?.length?i.append(te(o.icon)):i.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(i),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=ee("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",o.badgeTone??"bg-white text-gray-900"),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),de.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),pe.current.set(o.key,{pin:o,button:t,mark:i,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,ne(r,t.data),r.className=ae(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),de.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),he.current.set(t.key,{mark:t,element:r})}Ee()},[be,t,w,C,Ee]),s(()=>{be&&Ee()},[be,n,E,Ee]),s(()=>{if(!be||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[be,n,Me]),s(()=>{const e=ce.current,n=ue.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!be||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ye.current===o)return;const a=""===ye.current;if(ye.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[be,t,w,x]),s(()=>{const e=ce.current;if(!be||!e)return;const t=(y??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),D(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?I(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],i=e.getSource(H);if(i&&(i.attribution||"")!==n){for(const t of P)e.getLayer(t)&&e.removeLayer(t);e.removeSource(H)}const s=e.getSource(H);s?s.setData(o):e.addSource(H,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:H,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:H,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[be,y,ke]),s(()=>{const e=ce.current;if(!be||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=C?W(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};U()?e.jumpTo(l):e.flyTo({...l,duration:600})},[be,r?.n]);const[Se,je]=i(!1);s(()=>{const e=Y.current;if(!e)return;const t=()=>je(e.clientWidth<O);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[O]);const Ae=n?t.find(e=>e.key===n)??null:null,ze=Ae?.key??null,Re=Ae?.lng??0,Be=Ae?.lat??0,Oe=be&&!Se&&null!=B&&!!Ae,[Te,Fe]=i(null);s(()=>{const e=ce.current,t=ue.current;if(!(Oe&&e&&t&&ze))return;const n=document.createElement("div");n.dataset.mapCard="",n.className="w-[26rem] overflow-y-auto overscroll-contain";const r=new t.Popup({anchor:"bottom",offset:k,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([Re,Be]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip");l&&Object.assign(l.style,{borderTopColor:J,borderBottomColor:J}),Fe(n);let i=!1,s=!1;const c=(t=!0)=>{if(s)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,c()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),Y.current)+8,u=`${N(a,l)}px`;n.style.maxHeight!==u&&(n.style.maxHeight=u);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=M(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:U()?0:250}),Ee()},u=new ResizeObserver(()=>c());u.observe(n);const d=()=>c(),p=()=>{i||c(!1)};e.on("resize",d),e.on("moveend",p);let m=!1;const h=pe.current,g=e=>{m=n.contains(e.target)};return document.addEventListener("focusin",g),()=>{if(s=!0,u.disconnect(),e.off("resize",d),e.off("moveend",p),document.removeEventListener("focusin",g),r.remove(),Fe(null),m&&(!document.activeElement||document.activeElement===document.body)){const e=h.get(ze)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Oe,ze,Re,Be,Ee]);const Ke=T?.active??!1,We=l(T?.onChange);s(()=>{We.current=T?.onChange}),s(()=>{if(!T)return;const e=document.documentElement;Ke&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Ke&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Ke]);const qe=!!T;return s(()=>{if(!qe)return;const e=()=>{document.fullscreenElement||We.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[qe]),/* @__PURE__ */m("div",{ref:Y,className:ee("relative min-h-72 overflow-hidden rounded-lg border border-gray-200 bg-gray-100",A&&"[&_canvas]:cursor-crosshair",g),children:[
|
|
3
|
+
/* @__PURE__ */h("div",{className:"absolute inset-0",children:/* @__PURE__ */h("div",{ref:le,className:"h-full w-full",role:"region","aria-label":u})}),ve&&/* @__PURE__ */h("p",{className:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-gray-500",children:X.failed}),T&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>T.onChange(!T.active),leftIcon:/* @__PURE__ */h(se,{leave:T.active}),children:T.active?X.leaveFullScreen:X.fullScreen}),f,null!=B&&!Oe&&/* @__PURE__ */h("div",{"data-map-card":"",className:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",children:B}),Oe&&Te?p(B,Te):null,be&&/* @__PURE__ */h(ie,{pins:t,hosts:fe.current})]})}function ie({pins:e,hosts:t}){/* @__PURE__ */
|
|
4
4
|
return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let n=t.get(e.key);return n||(n=document.createElement("span"),n.className="contents",t.set(e.key,n)),p(e.iconNode,n,e.key)})})}function se({leave:e}){/* @__PURE__ */
|
|
5
|
-
return h(
|
|
6
|
-
/* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${be(e,t)}`}),xe(e,t)]},e))})}function Se({point:t,number:n,onOpen:
|
|
5
|
+
return h(r,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function ce(){const[e,t]=i(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 ue=3e3,de=e=>!!e?.pending&&3e3,pe=e=>`${e.kind}:${e.id}`,me=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function he(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 ge={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"}},fe=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ye(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var be=(e,t=ge)=>t[e]?.tone??"bg-gray-700 text-white",xe=(e,t=ge)=>t[e]?.label??e,ve=(e,t)=>be(ye(e),t);function we(e,t,n=ge){return null!=t?String(t):(n[ye(e)]?.label??"").charAt(0).toUpperCase()}var ke=["delivery_location","warehouse"];function Ne(e,t=ke){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(pe(o),++r);return n}function Me(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)me(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Ce(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 Le(e){const t=[...new Set(e.filter(me).map(ye))];return[...fe.filter(e=>t.includes(e)),...t.filter(e=>!fe.includes(e))]}function Ee(e,t){return e.filter(e=>!me(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(pe(e)),r=he(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:pe(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function $e({categories:e,palette:t=ge,floating:n=!0}){return e.length<2?null:/* @__PURE__ */h("div",{className:(n?"absolute left-3 top-3 z-10 ":"")+"flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-2",children:[
|
|
6
|
+
/* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${be(e,t)}`}),xe(e,t)]},e))})}function Se({point:t,number:n,onOpen:a,onClose:l,palette:i=ge}){const s=he(t.placement),c=ye(t),u=o().map;/* @__PURE__ */
|
|
7
7
|
return m("section",{"aria-label":u.chosen(t.label),className:"absolute bottom-3 left-3 right-3 z-10 max-w-md space-y-2 rounded-lg border border-gray-200 bg-white p-3 shadow-(--elevation-panel)",children:[
|
|
8
8
|
/* @__PURE__ */m("div",{className:"flex items-start justify-between gap-2",children:[
|
|
9
9
|
/* @__PURE__ */m("div",{className:"min-w-0",children:[
|
|
10
10
|
/* @__PURE__ */m("h3",{className:"text-sm font-semibold text-gray-900 [overflow-wrap:anywhere]",children:[null!=n&&/* @__PURE__ */m("span",{className:"mr-1 text-gray-400",children:[n,"."]}),t.label,t.code&&/* @__PURE__ */h("span",{className:"ml-2 text-xs font-normal text-gray-400",children:t.code})]}),
|
|
11
11
|
/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i[c]?xe(c,i):t.category})]}),
|
|
12
|
-
/* @__PURE__ */h("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */h(
|
|
13
|
-
/* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:t.address||"—"}),s&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s}),t.matched&&"approximate"===t.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",t.matched]}),
|
|
12
|
+
/* @__PURE__ */h("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */h(r,{name:"close","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2})})]}),
|
|
13
|
+
/* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:t.address||"—"}),s&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s}),t.matched&&"approximate"===t.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",t.matched]}),a&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:a,children:u.openRecord})})]})}function je(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>de(e.state.data)})}function Ae({queryKey:e,queryFn:t,refreshSignal:n,onOpen:r,ariaLabel:o,title:c="Locations",palette:d=ge,numbers:p,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:y,isError:b,refetch:x}=je(e,t,{staleTime:0}),v=l(!1);s(()=>{v.current?x():v.current=!0},[n]);const[w,k]=i(null),N=u(()=>y?.points??[],[y]),M=u(()=>p??Ne(N),[p,N]),C=u(()=>N.filter(me).map(e=>({key:pe(e),label:e.label,lat:e.lat,lng:e.lng,glyph:we(e,M.get(pe(e))??null,d),tone:ve(e,d),approximate:"approximate"===e.placement})),[N,M,d]),L=u(()=>Ee(N,M),[N,M]),E=u(()=>Le(N),[N]),$=y?.pending??0,S=N.find(e=>pe(e)===w)??null,j=S&&r?r(S):null;/* @__PURE__ */
|
|
14
14
|
return m("section",{"aria-label":c,className:`flex min-w-0 flex-col ${g}`,children:[
|
|
15
15
|
/* @__PURE__ */m("div",{className:"flex min-h-[30px] items-center justify-between mb-2",children:[
|
|
16
16
|
/* @__PURE__ */h("h3",{className:"text-sm font-semibold text-gray-900",children:c}),y&&/* @__PURE__ */h("span",{className:"text-xs text-gray-500",children:Ce(Me(N))})]}),
|
|
17
|
-
/* @__PURE__ */m(le,{pins:C,selectedKey:w,focus:null,onSelect:k,ariaLabel:
|
|
17
|
+
/* @__PURE__ */m(le,{pins:C,selectedKey:w,focus:null,onSelect:k,ariaLabel:o,className:f,children:[
|
|
18
18
|
/* @__PURE__ */m("div",{className:"absolute left-3 top-3 z-10 flex max-w-[70%] flex-col items-start gap-2",children:[
|
|
19
19
|
/* @__PURE__ */h($e,{categories:E,palette:d,floating:!1}),b&&/* @__PURE__ */m("div",{className:"flex items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 min-h-8 py-1 text-xs text-gray-600 shadow-sm",children:["Couldn’t load the locations.",
|
|
20
20
|
/* @__PURE__ */h("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!b&&($>0||L.length>0)&&/* @__PURE__ */m("div",{className:"max-w-full space-y-0.5 rounded-lg border border-gray-200 bg-white px-3 py-2 text-xs shadow-sm","aria-live":"polite",children:[$>0&&/* @__PURE__ */m("p",{className:"flex items-center gap-2 text-gray-500",children:[
|
|
21
|
-
/* @__PURE__ */h(
|
|
21
|
+
/* @__PURE__ */h(a,{}),"Locating ",$," address",1===$?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),S&&/* @__PURE__ */h(Se,{point:S,number:M.get(pe(S))??null,onOpen:j,onClose:()=>k(null),palette:d})]})]})}export{w as CARD_MIN_MAP_WIDTH,y as COMPACT_SHOW,le as EntityMap,Ae as LocationsMap,C as MAPLIBRE_WORKER_FILE,A as MAP_APART_PX,ge as MAP_CATEGORIES,j as MAP_STOP_PX,S as MAP_TARGET_PX,$e as MapLegend,ue as PENDING_POLL_MS,ke as SECONDARY_KINDS,Se as SelectedCard,N as cardMaxHeight,xe as categoryLabel,be as categoryTone,b as foldAttributionOnce,me as isOnMap,K as layoutPins,Le as legendCategories,$ as loadMapLibre,Ne as locationNumbers,L as mapLibreWorkerUrl,de as mapPointsRefetchInterval,Ee as offMapNotes,ye as pinCategory,we as pinGlyph,ve as pinTone,M as placeCard,he as placementNote,pe as pointKey,z as stopsLabel,Me as summarize,Ce as summaryText,ce as useMapHighlight,je as useMapPoints,W as zoomApart};
|
package/dist/markdown/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{useBrowserLayoutEffect as e}from"../chunk-D65T4H6J.js";import{Icon as t}from"../chunk-
|
|
2
|
+
import{useBrowserLayoutEffect as e}from"../chunk-D65T4H6J.js";import{Icon as t}from"../chunk-YT4B3NSV.js";import{memo as r,useRef as a,useState as o,useMemo as s}from"react";import l from"react-markdown";import n from"remark-breaks";import m from"remark-gfm";import{jsx as d,jsxs as c}from"react/jsx-runtime";function i(){const e=this.data();(e.micromarkExtensions??=[]).push({disable:{null:["codeIndented","htmlFlow","htmlText","setextUnderline"]}})}var b={note:[m,n,i],article:[m,i]},x=({node:e,...t})=>/* @__PURE__ */d("a",{...t,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline break-all"}),g=({node:e,...t})=>/* @__PURE__ */d("code",{className:"rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.85em] text-gray-800",...t}),h=e=>({node:t,...r})=>/* @__PURE__ */d("pre",{className:`${e} overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 font-mono text-xs [&>code]:bg-transparent [&>code]:p-0 [&>code]:[font-size:inherit]`,...r}),y={th:({node:e,...t})=>/* @__PURE__ */d("th",{className:"border border-gray-200 bg-gray-50 px-2 py-1 text-left font-semibold text-gray-700",...t}),td:({node:e,...t})=>/* @__PURE__ */d("td",{className:"border border-gray-200 px-2 py-1 align-top",...t})},p={a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"text-base font-semibold text-gray-900",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"text-sm font-semibold text-gray-900",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"text-sm font-semibold text-gray-700",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"text-sm font-semibold text-gray-700",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"text-sm font-semibold text-gray-700",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"list-disc pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"list-decimal pl-5",...t}),code:g,pre:h("p-2"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"border-l-2 border-gray-300 pl-3 text-gray-600",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"overflow-x-auto",children:/* @__PURE__ */d("table",{className:"text-xs border-collapse",...t})}),...y,img:({node:e,alt:t,...r})=>/* @__PURE__ */d("img",{...r,alt:t??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})};function f(e){return e?{...p,img:({node:t,src:r,alt:a,...o})=>{const s="string"==typeof r?r:void 0;/* @__PURE__ */
|
|
3
3
|
return d("img",{...o,src:s?e(s):s,alt:a??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})}}:p}function u({src:e,alt:r}){const[a,s]=o(!1),l=(r??"").replace(/^screenshot:\s*/i,"");return!e||a?/* @__PURE__ */c("span",{className:"my-3 flex items-start gap-2 rounded-lg border border-dashed border-gray-300 bg-gray-50 px-3 py-3 text-gray-500",children:[
|
|
4
4
|
/* @__PURE__ */d(t,{name:"camera",look:"mini",className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),
|
|
5
5
|
/* @__PURE__ */d("span",{className:"text-xs",children:l||"Screenshot"})]}):/* @__PURE__ */d("img",{src:e,alt:r??"",loading:"lazy",onError:()=>s(!0),className:"my-3 block max-w-full rounded-lg border border-gray-200"})}function N(e){return{a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"mt-6 mb-3 text-xl font-semibold text-gray-900 first:mt-0",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"mt-6 mb-3 border-b border-gray-200 pb-2 text-lg font-semibold text-gray-900 first:mt-0",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"mt-5 mb-2 text-base font-semibold text-gray-900 first:mt-0",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"mt-4 mb-2 text-sm font-semibold text-gray-900 first:mt-0",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"mt-4 mb-2 text-sm font-semibold text-gray-700 first:mt-0",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"mt-4 mb-2 text-sm font-semibold text-gray-700 first:mt-0",...t}),p:({node:e,...t})=>/* @__PURE__ */d("p",{className:"my-3 leading-relaxed",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"my-3 list-disc space-y-1 pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"my-3 list-decimal space-y-1 pl-5",...t}),li:({node:e,...t})=>/* @__PURE__ */d("li",{className:"leading-relaxed [&>p]:my-1",...t}),code:g,pre:h("my-3 p-3"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"my-3 rounded-r-lg border-l-4 border-blue-400/60 bg-blue-50 px-3 py-2 text-gray-700 [&>p]:my-1",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"my-4 border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"my-3 overflow-x-auto",children:/* @__PURE__ */d("table",{className:"border-collapse text-sm",...t})}),...y,img:({node:t,src:r,alt:a})=>{const o="string"==typeof r?r:void 0;/* @__PURE__ */
|
package/dist/page-tabs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{TabStrip as e}from"../chunk-
|
|
3
|
-
return v(K.Provider,{value:le,children:e})}var
|
|
4
|
-
return v("div",{ref:y,role:c?"tabpanel":void 0,id:c,"aria-labelledby":a,hidden:!t,style:t?void 0:{display:"none"},className:l,"data-page-tab":e,children:/* @__PURE__ */v(F.Provider,{value:p,children:/* @__PURE__ */v(R,{active:t,children:
|
|
5
|
-
return v("div",{className:t,children:e(r)},
|
|
6
|
-
return v(e,{tabs:a.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:s.dirty.includes(e.key),copy:l.copies[e.key],icon:f(
|
|
2
|
+
import{TabStrip as e}from"../chunk-BFJRKFOH.js";import{useShellLanguage as t}from"../chunk-PBZ2VHS3.js";import"../chunk-VJ6KJYRS.js";import{confirm as n}from"../chunk-GFWRYNPX.js";import"../chunk-MMLU5ZHI.js";import"../chunk-UVBK6YSR.js";import"../chunk-7IQ3B77H.js";import"../chunk-FIEA5CGB.js";import"../chunk-K7PQXJO7.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import"../chunk-YT4B3NSV.js";import{useShellStrings as i}from"../chunk-LVCRH3K6.js";import"../chunk-C3QOHMR6.js";import*as l from"react";import{createContext as c,memo as a,useRef as s,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as f,useState as p,useContext as k}from"react";import{useLocation as m,useNavigate as b}from"react-router-dom";import{jsx as v,Fragment as h,jsxs as g}from"react/jsx-runtime";var K=c(null),F=c(null),N=12;var T=(e,t)=>e.filter(e=>e!==t);function I(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function j(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let l={...e,tabs:i,activeKey:t.key,mounted:(c=e.mounted,a=t.key,c.includes(a)?c:[...c,a]),clock:r};var c,a;return l.closing&&l.closing!==t.key?l=w(l,l.closing):l.closing===t.key&&(l={...l,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=w(n,e[0].key)}return n}(l,n)}function M(e){let t={...e,activeKey:null};return t.closing&&(t=w(t,t.closing)),t}function w(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:T(e.mounted,t),dirty:T(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function A(e,t){switch(t.type){case"visit":return j(e,t.entry,t.maxTabs);case"transient":return M(e);case"close":{let n=e;for(const e of t.keys)n=w(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:T(e.dirty,t)}}(e,t.key,t.dirty)}}var C=e=>`${e.pathname}${e.search}`;function O(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function x({children:e,resolve:l,pinned:c=[],storageKey:a,maxTabs:k=12,enabled:h=!0,confirmDiscard:g}){const F=m(),N=b(),T=i().pageTabs,w=y(),x=s(l);x.current=l;const B=d(e=>{const t=x.current(e);return t?{key:t.key??e.pathname,path:C(e),title:t.title}:null},[]),{language:L}=t(),[R,S]=f(A,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const l=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),c=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||c.some(e=>e.key===i.key))continue;const a=!l&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;c.push({key:i.key,path:r,title:a||i.title,titleFrom:a?"page":"route",pinned:!1,lastActive:0})}return c}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(a),e=>B(O(e)),L);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:I(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},c.map(e=>B(O(e))).filter(e=>Boolean(e)));const n=h?B(F):null;return t=n?j(t,n,k):M(t),t}),H=s(R);H.current=R;const J=s(/* @__PURE__ */new Map),$=h?B(F):null,E=$?.key??null;r(()=>{if(!h)return;const e=B(F);e?(J.current.set(e.key,F),S({type:"visit",entry:e,maxTabs:k})):S({type:"transient"})},[F,h,k,B]),o(()=>{const e=new Set(R.tabs.map(e=>e.key));for(const t of J.current.keys())e.has(t)||J.current.delete(t)},[R.tabs]);const V=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(R,L),[R,L]);o(()=>{if(a)try{localStorage.setItem(a,V)}catch{}},[V,a]);const D=R.dirty.length>0;o(()=>{if(!D)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[D]);const P=s(/* @__PURE__ */new Map),Y=d((e,t)=>{let n=P.current.get(e);return void 0===n&&(n=P.current.size,P.current.set(e,n)),`${w}-page-${t}-${n}`},[w]),Q=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]),W=d(()=>{const e=H.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),G=d((e,t,n)=>{const r=H.current,i=r.activeKey;if(!i||!e.includes(i))return void S({type:"close",keys:e,closing:null});let l=t;if(!l){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},c=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;l=(c??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??W()}S({type:"close",keys:e.filter(e=>e!==i),closing:i}),N(l)},[N,W]),U=d(async(e,t={})=>{const n=H.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&N(t.to),!1):!(!t.force&&H.current.dirty.includes(e)&&!await Q([n]))&&(!!H.current.tabs.some(t=>t.key===e)&&(G([e],t.to),!0))},[Q,G,N]),X=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(H.current,e,t);const r=H.current.tabs.filter(e=>n.includes(e.key)&&H.current.dirty.includes(e.key));r.length&&!await Q(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(H.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&G(n,void 0,"all"===e?null:t)},[Q,G]),Z=d(e=>{const t=H.current.tabs.find(t=>t.key===e);t&&e!==H.current.activeKey&&N(t.path)},[N]),z=d((e,t)=>S({type:"title",key:e,title:t}),[]),q=d((e,t)=>S({type:"dirty",key:e,dirty:t}),[]),[_,ee]=p({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>B(e)?.key??null,[B]),re=d(e=>J.current.get(e),[]),ie=u(()=>h?R.tabs.filter(e=>e.key!==R.closing):[],[h,R.tabs,R.closing]),le=u(()=>({enabled:h,state:R,currentKey:E,resolve:l,keyFor:ne,locationFor:re,idFor:Y,activate:Z,close:U,closeMany:X,setTitle:z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[h,R,E,l,ne,re,Y,Z,U,X,z,q,_,te,ie]);/* @__PURE__ */
|
|
3
|
+
return v(K.Provider,{value:le,children:e})}var B=l.Activity,L=Boolean(B);function R({active:e,children:t}){return B?/* @__PURE__ */v(B,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */v(h,{children:t})}var S=a(function({tabKey:e,active:t,location:n,render:i,className:l,panelId:c,tabId:a}){const y=s(null),d=s(t),f=s(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of f.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):f.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&f.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const p=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
|
|
4
|
+
return v("div",{ref:y,role:c?"tabpanel":void 0,id:c,"aria-labelledby":a,hidden:!t,style:t?void 0:{display:"none"},className:l,"data-page-tab":e,children:/* @__PURE__ */v(F.Provider,{value:p,children:/* @__PURE__ */v(R,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),H="\0transient";function J({children:e,frameClassName:t}){const n=k(K),r=m();if(!n||!n.enabled)/* @__PURE__ */
|
|
5
|
+
return v("div",{className:t,children:e(r)},H);const{state:i,currentKey:l,locationFor:c,idFor:a}=n,s=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return l&&!s.includes(l)&&s.push(l),/* @__PURE__ */g(h,{children:[s.map(n=>{const i=n===l,s=i?r:c(n);return s?/* @__PURE__ */v(S,{tabKey:n,active:i,location:s,render:e,className:t,panelId:a(n,"panel"),tabId:a(n,"tab")},n):null}),!l&&/* @__PURE__ */v(S,{tabKey:H,active:!0,location:r,render:e,className:t},H)]})}function $({className:t,activeClassName:n,end:r}){const l=k(K),c=i().pageTabs;if(!l||!l.enabled)return null;const{visibleTabs:a,state:s,idFor:o,activate:u,close:y,closeMany:d,resolve:f}=l;/* @__PURE__ */
|
|
6
|
+
return v(e,{tabs:a.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:s.dirty.includes(e.key),copy:l.copies[e.key],icon:f(O(e.path))?.icon})),activeKey:l.currentKey??null,idFor:o,panelMounted:e=>s.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:c.label,className:t,activeClassName:n,end:r})}var E={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function V(){const e=k(K);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:E}function D(){const e=k(K),t=k(F),n=b();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function P(e){const t=k(K),n=k(F),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function Y(e){const t=k(K),n=k(F),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function Q(e){const t=k(K),n=k(F),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{N as DEFAULT_MAX_TABS,L as PAGE_TABS_PAUSE_HIDDEN,$ as PageTabBar,J as PageTabsOutlet,x as PageTabsProvider,O as parseTabPath,D as usePageTab,Y as usePageTabCopy,Q as usePageTabDirty,P as usePageTabTitle,V as usePageTabs};
|
package/dist/pdf/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-
|
|
2
|
+
import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-D4GRPG4G.js"));export{e as PdfViewer};
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{startClientTelemetry}from"../chunk-
|
|
1
|
+
export{startClientTelemetry}from"../chunk-NX5HJ6L5.js";import"../chunk-USLPE6K3.js";import"../chunk-KNUR2UEG.js";
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AlignmentGrid, k as AlignmentGridProps, l as AlignmentPoint, m as AngleScale, n as AppUpdateBanner, o as AppUpdateBannerProps, p as AttachButton, q as AttachButtonProps, r as AttachmentDropZone, s as AttachmentDropZoneProps, t as AttachmentList, u as AttachmentListProps, v as AuthScreen, w as AuthScreenProps, x as Avatar, y as AvatarGroup, z as AvatarGroupProps, B as AvatarProps, D as AvatarSize, E as AvatarStatus, F as BORDER_LINE_STYLES, G as BORDER_WIDTHS, H as BackgroundVariant, I as BandScale, J as Banner, K as BannerEmphasis, L as BannerProps, M as BannerTone, N as BorderInput, O as BorderInputProps, Q as BorderLineStyle, R as BorderRole, T as BorderValue, U as BoxPlotBox, V as BoxPlotChart, W as BoxPlotChartProps, X as BrandAssetEditor, Y as BrandAssetEditorProps, Z as BrandAssetPreview, _ as BrandMark, $ as BrandMarkProps, a0 as BrandMarkSlot, a1 as BrandMarkSurface, a2 as BrandMarkTreatment, a3 as BreadcrumbItem, a4 as Breadcrumbs, a5 as BreadcrumbsProps, a6 as BudgetBar, a7 as BudgetBarProps, a8 as BudgetState, a9 as Button, aa as ButtonClassesOptions, ab as ButtonProps, ac as ButtonSize, ad as ButtonVariant, ae as CHART_INK, af as CMD_A, ag as CMD_DOT, ah as CMD_ENTER, ai as CMD_K, aj as CMD_S, ak as COLUMN_COUNT_MAX, al as COLUMN_COUNT_WIDTHS, am as COLUMN_SHARES_EQUAL, an as COLUMN_SHARE_MIN, ao as CONTROL_HEIGHTS, ap as CORNERS, aq as CORNERS_FOR_THEME, ar as Calendar, as as CalendarMode, at as CalendarProps, au as Candle, av as CandlestickChart, aw as CandlestickChartProps, ax as Card, ay as CardPadding, az as CardProps, aA as CardTone, aB as CartesianPlot, aC as CartesianPlotProps, aD as CellStyle, aE as ChartBackgroundVariant, aF as ChartBrush, aG as ChartBrushProps, aH as ChartCurve, aI as ChartDefs, aJ as ChartDefsProps, aK as ChartDot, aL as ChartDotProps, aM as ChartDotVariant, aN as ChartFillVariant, aO as ChartFrame, aP as ChartFrameProps, aQ as ChartHighlightProvider, aR as ChartLegendEntry, aS as ChartLegendSwatch, aT as ChartRange, aU as ChartReferenceLine, aV as ChartRevealDirection, aW as ChartSkeleton, aX as ChartSkeletonProps, aY as ChartStatusTone, aZ as ChartStrokeVariant, a_ as ChartTooltip, a$ as ChartTooltipProps, b0 as ChartTooltipRow, b1 as ChatTemplate, b2 as Checkbox, b3 as CheckboxProps, b4 as CheckoutTemplate, b5 as ChordChart, b6 as ChordChartProps, b7 as ColorPicker, b8 as ColorPickerPanel, b9 as ColorPickerPanelProps, ba as ColorPickerProps, bb as ColorPreset, bc as ColorSwatch, bd as ColorSwatchProps, be as ColorSwatchSize, bf as ColoredBadge, bg as ColoredBadgeProps, bh as ColumnChart, bi as ColumnChartProps, C as ColumnDef, bj as ColumnSeries, bk as ColumnShares, bl as ComposerAttachments, bm as ComposerAttachmentsProps, bn as ConfirmProvider, bo as ContainerFillChart, bp as ContainerFillChartProps, bq as ContainerFillItem, br as ContextMenu, bs as ContextMenuPoint, bt as ContextMenuProps, bu as ContextMenuState, bv as ControlSize, bw as CornerOption, bx as Corners, by as CornersInput, bz as CornersInputProps, bA as CountBadge, bB as CountBadgeProps, bC as CountBadgeTone, bD as Curve, bE as DAY_MS, bF as DashboardTemplate, bG as DataTable, bH as DataTableColumn, bI as DataTableColumnGroup, bJ as DataTableHeader, bK as DataTablePage, bL as DataTableProps, bM as DataTableRowLink, bN as DataTableRowProps, bO as DatePicker, bP as DatePickerProps, bQ as DateRangePicker, bR as DateRangePickerProps, bS as DateTimePicker, bT as DateTimePickerProps, bU as DescriptionColumns, bV as DescriptionItem, bW as DescriptionList, bX as DescriptionListProps, bY as Dialog, bZ as DialogProps, b_ as DialogSize, b$ as DisplayChipItem, c0 as DisplayChips, c1 as DisplayChipsProps, c2 as Divider, c3 as DividerProps, c4 as DividerSpacing, c5 as Drawer, c6 as DrawerProps, c7 as DrawerSide, c8 as DrawerSize, c9 as DropdownMenu, ca as DropdownMenuAlign, cb as DropdownMenuCheckboxItem, cc as DropdownMenuDividerItem, cd as DropdownMenuEntry, ce as DropdownMenuFooterApi, cf as DropdownMenuItem, cg as DropdownMenuLabelItem, ch as DropdownMenuLinkItem, ci as DropdownMenuProps, cj as DropdownMenuRadioItem, ck as DropdownMenuSide, cl as DropdownMenuStatusItem, cm as DropdownPositionOptions, cn as ELEVATION_LEVELS, co as ENGLISH, cp as ENTER, cq as EditableGrid, cr as EditableGridProps, cs as ElevationLevel, ct as EmailTemplate, cu as EmptyState, cv as EmptyStateProps, cw as EmptyValue, cx as EmptyValueProps, cy as ErrorBoundary, cz as ErrorBoundaryProps, cA as ErrorPage, cB as ErrorPageProps, cC as FONT_WEIGHTS, cD as FileIntake, cE as FilePicker, cF as FilePickerProps, cG as FillVariant, cH as FloatingBar, cI as FloatingBarAlign, cJ as FloatingBarProps, cK as FloatingBarSide, cL as FontWeightRole, cM as FormError, cN as FormErrorSummary, cO as FormErrorSummaryProps, cP as FormField, cQ as FormFieldProps, cR as FormLayoutPage, cS as FunnelChart, cT as FunnelChartProps, cU as FunnelStage, cV as GLASS_DIVIDER, cX as GROUP_COLORS, cY as GROUP_COLORS_SOLID, cZ as GalleryTemplate, c_ as Gap, c$ as GlassOptions, d0 as GlobalSearch, d1 as GlobalSearchProps, d2 as Grid, d3 as GridCols, d4 as GridColumn, d5 as GridProps, d6 as HeatmapChart, d7 as HeatmapChartProps, d8 as HelpCenter, d9 as HelpCenterDoc, da as HelpCenterProps, db as HexInput, dc as HistogramBin, dd as HistogramChart, de as HistogramChartProps, df as Hsv, dg as INPUT_BASE, dh as INPUT_SIZES, di as IconButton, dj as IconButtonClassesOptions, dk as IconButtonProps, dl as IconPicker, dm as IconPickerOption, dn as IconPickerProps, dp as IconRail, dq as IconRailButton, dr as IconRailButtonProps, ds as IconRailLabels, dt as IconRailLabelsShown, du as IconRailOrientation, dv as IconRailProps, dw as ImageFocusPoint, dx as ImageFocusPointProps, dy as Inline, dz as InlineProps, dA as Input, dB as InputNumber, dC as InputNumberProps, dD as InputProps, dE as InputSize, dF as Justify, dG as Kanban, dH as KanbanColumn, dI as KanbanProps, dJ as Kbd, dK as KbdProps, dL as KbdSize, dM as KbdTone, dN as Label, dO as LabelClassesOptions, dP as LabelProps, dQ as LadderScale, dR as LanguagePanel, dS as LanguagePanelProps, dT as LanguageSelect, dU as LanguageSelectProps, dV as LinearScale, dW as LinkFilter, dX as LinkFilterField, dY as LinkKindChoice, dZ as LinkOption, d_ as LinkOptionGroup, d$ as LinkPicker, e0 as LinkPickerFieldProps, e1 as LinkPickerProps, e2 as LinkPickerWindowProps, e3 as LinkRules, e4 as LinkTarget, e5 as ListDrop, e6 as ListFooter, e7 as ListLoadError, e8 as ListLoadErrorProps, e9 as ListMove, ea as ListRow, eb as ListRowProps, ec as LoadingSpinner, ed as LoadingSpinnerProps, ee as MAX_FRACTION_DIGITS, ef as MENU_MAX_HEIGHT, eg as MOD, eh as MOTION, ei as MOTION_DURATIONS, ej as Markdown, ej as MarkdownLite, ek as MarkdownLiteProps, ek as MarkdownProps, el as MediaUploadField, em as MediaUploadFieldProps, en as MediaUploadGrid, eo as MediaUploadGridItem, ep as MediaUploadGridProps, eq as MenuPos, er as Meter, es as MeterProps, et as MetricBar, eu as MetricBarProps, ev as Milestone, ew as MilestoneKind, ex as MilestoneTimeline, ey as MilestoneTimelineProps, ez as MotionSpeed, eB as NEXT_CHUNK_PATH_PREFIX, eC as NativeSelect, eD as NiceAxis, eE as NumericKeypad, eF as NumericKeypadProps, eG as OVERLAY_OPEN_EVENT, eH as PLACEHOLDER_INK, eI as POPUP_MAX_WIDTH, eJ as POST_PRODUCTION_STATUSES, eK as PageHeader, eL as PageHeaderProps, P as PaginatedResponse, eM as Pagination, eN as PaginationProps, eO as PaperclipGlyph, eP as Paragraph, eQ as ParagraphProps, eR as PieChart, eS as PieChartProps, eT as PieSegment, eU as PlotGeometry, eV as Point, eW as Popover, eX as PopoverAlign, eY as PopoverProps, eZ as PopoverRenderProps, e_ as PopoverSide, e$ as PopupMenu, f0 as PopupMenuDivider, f1 as PopupMenuItem, f2 as PopupMenuItemProps, f3 as PopupMenuLabel, f4 as PopupMenuProps, f5 as PopupSubmenu, f6 as PopupSubmenuProps, f7 as PortalBrandingContextValue, f8 as PortalBrandingProvider, f9 as PortalBrandingProviderProps, fa as ProductionTimeline, fb as ProductionTimelineProps, fc as ProductionTimelineSnapshot, fd as ProgressItem, fe as PublicPortal, ff as PublicPortalBranding, fg as RADAR_SERIES_CAP, fh as RADIUS_ROLES, fi as ROW_HEIGHTS, fj as RadarAxis, fk as RadarChart, fl as RadarChartProps, fm as RadarSeries, fn as RadialBarChart, fo as RadialBarChartProps, fp as RadialBarRow, fq as Radio, fr as RadioGroup, fs as RadioGroupOption, ft as RadioGroupOrientation, fu as RadioGroupProps, fv as RadioProps, fw as RadiusRole, fx as Range, fy as RangeChart, fz as RangeChartProps, fA as RangeRow, fB as RankedBars, fC as RankedBarsProps, fD as RankedBarsRow, fE as ResizeHandle, fF as ResizeHandleOrientation, fG as ResizeHandleProps, fH as ResizeHandleSide, fI as ResizeHandleStackSide, fJ as ResolvedPortalBrandAsset, fK as Result, fL as ResultProps, fM as ResultStatus, fN as RevealDirection, fO as SCATTER_SERIES_CAP, fP as SERIES_SLOT_COUNT, fQ as SERIES_VARS, fR as SHELL_LANGUAGE_STORAGE_KEY, fS as SHIFT, fT as SPACING_ROLES, fU as SPACING_SCALE, fV as STAGES, fW as STALE_CHUNK_RELOAD_COOLDOWN_MS, fX as STALE_CHUNK_RELOAD_KEY, fY as STATUS_VARS, fZ as SankeyChart, f_ as SankeyChartProps, f$ as SankeyLink, g0 as SankeyNode, g1 as ScatterChart, g2 as ScatterChartProps, g3 as ScatterPoint, g4 as ScatterSeries, S as SearchConfig, g5 as SearchListRoute, g6 as SearchProvider, g7 as SearchQuickAction, g8 as SearchResponse, g9 as SearchResult, ga as SearchableItem, gb as SearchableOption, gc as SearchableOptionGroup, gd as SearchableSelect, ge as SearchableSelectBaseProps, gf as SearchableSelectMultipleProps, gg as SearchableSelectProps, gh as Segmented, gi as SegmentedOption, gj as SegmentedProps, gk as SegmentedSize, gl as Select, gm as SelectBaseProps, gn as SelectFooterAction, go as SelectItem, gp as SelectMultipleProps, gq as SelectOption, gr as SelectOptionGroup, gs as SelectProps, gt as SemanticGroup, gu as SeriesSlots, gv as SettingRow, gw as SettingRowProps, gx as SeverityTone, gA as ShellLanguage, gB as ShellLanguageProvider, gC as ShellLanguageState, gD as ShellPrefsAdapter, gE as ShellPrefsProvider, gF as Side, gG as SidebarActionButton, gH as SidebarActionButtonProps, gI as SidebarGroupLabel, gJ as SidebarGroupLabelProps, gK as SidebarLayout, gL as SidebarLayoutProps, gM as SidebarNavGroup, gN as SidebarNavGroupProps, gO as SidebarNavItem, gP as SidebarNavItemProps, gQ as SidesEachToggle, gR as SidesInput, gS as SidesInputProps, gT as SidesValue, gU as Skeleton, gV as SkeletonProps, gW as SkeletonVariant, gX as Slider, gY as SliderGroup, gZ as SliderProps, g_ as SliderSize, g$ as Snippet, h0 as SnippetProps, h1 as SnippetSize, h2 as SnippetVariant, a as SortState, h3 as SortableList, h4 as SortableListProps, h5 as SortableListSpacing, h6 as SpacingRole, h7 as SpacingStep, h8 as Sparkline, h9 as SparklineProps, ha as SpinnerRing, hb as SpinnerRingProps, hc as SplitButton, hd as SplitButtonProps, he as SplitButtonVariant, hf as Stack, hg as StackProps, hh as StaleChunkReloadOptions, hi as StatCard, hj as StatCardProps, hk as StatTile, hl as StatTileProps, hm as Statistic, hn as StatisticProps, ho as StatisticSize, hp as StatisticTone, hq as StatusBadge, hr as StatusBadgeProvider, hs as StatusEmphasis, ht as StepItem, hu as Stepper, hv as StepperProps, hw as StrokeVariant, hx as SunburstChart, hy as SunburstChartProps, hz as SunburstNode, hA as Switch, hB as SwitchProps, hC as SwitchSize, hD as TYPE_SCALE, hE as TabItem, hF as Tabs, hG as TabsProps, hH as TagInput, hI as TagInputOption, hJ as TagInputProps, hK as TagInputTone, hL as Text, hM as TextLinkField, hN as TextLinkFieldProps, hO as TextProps, hP as TextSize, hQ as TextTone, hR as TextToolbar, hS as TextToolbarAlign, hT as TextToolbarCase, hU as TextToolbarMark, hV as TextToolbarProps, hW as TextWeight, hX as Textarea, hY as TextareaProps, hZ as Theme, h_ as TileButton, h$ as TileButtonProps, i0 as TileSize, i1 as TimeAgo, i2 as TimeAgoProps, i3 as TimePicker, i4 as TimePickerProps, i5 as TimeSeriesChart, i6 as TimeSeriesChartProps, i7 as TimeSeriesSeries, i8 as TimelineMarker, i9 as TimelineMarkerKind, ia as TimelineReport, ib as TimelineScrubProgress, ic as TimelineTrack, id as TimelineTrackItem, ie as TimelineTrackKind, ig as TimelineTrackPending, ih as TimelineTrackPhase, ii as TimelineTrackPlayback, ij as TimelineTrackProps, ik as TimelineTrackThumb, il as Title, im as TitleLevel, io as TitleProps, ip as ToastAction, iq as ToastCloseReason, ir as ToastOptions, is as ToastPlacement, it as ToastUndoableOptions, iu as Tooltip, iv as TooltipProps, iw as TopNav, ix as TopNavItem, iy as TopNavProps, iz as TransferProgress, iA as TransferProgressProps, iB as TransferProgressState, iC as Tree, iD as TreeDrop, iE as TreeEmptySlot, iF as TreeEmptySlotProps, iG as TreeGroup, iH as TreeGroupLabel, iI as TreeGroupLabelProps, iJ as TreeGroupProps, iK as TreeMove, iL as TreeProps, iM as TreeRow, iN as TreeRowProps, iO as TreeSeam, iP as TreeSeamProps, iQ as TreemapChart, iR as TreemapChartProps, iS as TreemapItem, iT as TreemapTile, iU as TypeStep, iV as UNDOABLE_MS, iW as UseAppUpdateOptions, iX as UseContextMenu, iY as UseProductionTimelineOpts, iZ as VERSION, i_ as VITE_PRELOAD_ERROR_EVENT, i$ as WaterfallChart, j0 as WaterfallChartProps, j1 as WaterfallStep, j2 as WidthsBar, j3 as WidthsBarProps, j4 as ZLayer, j5 as Z_LAYERS, j6 as angleScale, j7 as appendKey, j8 as applyCorners, j9 as applyIconSet, ja as applyThemePrefs, jb as arcPath, jc as areaBetween, jd as areaFrom, je as assignSeriesSlots, jf as autoHighlightIndex, jg as backspace, jh as bandScale, ji as binValues, jj as borderSides, jk as borderStartEach, jl as budgetState, jm as bumpPath, jn as buttonClasses, jo as calcOverall, jp as calcReportOverall, jq as colorFill, jr as colorSwatchClasses, js as columnSharesWidths, jt as confirm, ju as confirmDestructive, jv as cornersFor, jw as curvePath, jx as dashFor, jz as dismissPopups, jA as fillFor, jB as fillId, jC as fmtSliderDate, jD as fromDateKey, jE as glassStyle, jF as glowId, jG as groundId, jH as groupColors, jI as hexToHsv, jJ as highlightOpacity, jK as hsvToHex, jL as iconButtonClasses, jM as inputClasses, jN as installStaleChunkReload, jO as isMac, jP as isSeverityTone, jQ as isSpacingStep, jR as isStaleChunkError, jT as labelClasses, jU as ladderScale, jV as languageSelectWidth, jW as leavesContextMenuAlone, jX as linearPath, jY as linearScale, jZ as logScale, j_ as maskId, j$ as matchShellLanguage, k0 as mediaFileName, k1 as monotonePath, k2 as niceAxis, k3 as niceMax, k4 as openGlobalSearch, k5 as parseHexColor, k6 as polygonPoints, k7 as popupBounds, k8 as prompt, k9 as pushRecentSearch, ka as radiusScale, kb as readSavedShellLanguage, kc as registerModalEscapeInterceptor, kd as resolveBrandMarkTreatment, ke as resolveColumnShares, kf as resolveColumnWidths, kg as resolveCorners, kh as resolvePortalBrandAsset, ki as resolveSeriesColor, kj as resolveSeriesColorWithin, kk as resolveShellLanguage, kl as resolveTheme, km as sanitizeRecentSearches, kn as saveShellLanguage, ko as seriesColor, kp as severityOf, kq as sidesStartEach, kr as solidSurfaceStyle, ks as splinePath, kt as squarify, ku as stagger, kv as stepPath, kw as tabButtonId, kx as tabPanelId, ky as textToolbarRows, kz as textToolbarWindowColumns, kA as toDateKey, kB as toDayMs, kC as toISODate, kD as toast, kE as toggleSeriesSlot, kF as useAppUpdate, kG as useClickOutside, kH as useConfirm, kI as useContextMenu, kJ as useDebouncedValue, kK as useDropdownPosition, kL as useFocusTrap, kM as useHighlight, kN as useIsMobile, kO as useLocalStoragePrefs, kP as usePlotWidth, kQ as usePortalBranding, kR as useProductionTimeline, kS as useScrollLock, kT as useShellLanguage, kU as useShellPrefs, kV as useStatusLabel, kW as useTheme, kX as useTransferProgress } from '../index-BWDtKUcA.js';
|
|
1
|
+
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AlignmentGrid, k as AlignmentGridProps, l as AlignmentPoint, m as AngleScale, n as AppUpdateBanner, o as AppUpdateBannerProps, p as AttachButton, q as AttachButtonProps, r as AttachmentDropZone, s as AttachmentDropZoneProps, t as AttachmentList, u as AttachmentListProps, v as AuthScreen, w as AuthScreenProps, x as Avatar, y as AvatarGroup, z as AvatarGroupProps, B as AvatarProps, D as AvatarSize, E as AvatarStatus, F as BORDER_LINE_STYLES, G as BORDER_WIDTHS, H as BackgroundVariant, I as BandScale, J as Banner, K as BannerEmphasis, L as BannerProps, M as BannerTone, N as BorderInput, O as BorderInputProps, Q as BorderLineStyle, R as BorderRole, T as BorderValue, U as BoxPlotBox, V as BoxPlotChart, W as BoxPlotChartProps, X as BrandAssetEditor, Y as BrandAssetEditorProps, Z as BrandAssetPreview, _ as BrandMark, $ as BrandMarkProps, a0 as BrandMarkSlot, a1 as BrandMarkSurface, a2 as BrandMarkTreatment, a3 as BreadcrumbItem, a4 as Breadcrumbs, a5 as BreadcrumbsProps, a6 as BudgetBar, a7 as BudgetBarProps, a8 as BudgetState, a9 as Button, aa as ButtonClassesOptions, ab as ButtonProps, ac as ButtonSize, ad as ButtonVariant, ae as CHART_INK, af as CMD_A, ag as CMD_DOT, ah as CMD_ENTER, ai as CMD_K, aj as CMD_S, ak as COLUMN_COUNT_MAX, al as COLUMN_COUNT_WIDTHS, am as COLUMN_SHARES_EQUAL, an as COLUMN_SHARE_MIN, ao as CONTROL_HEIGHTS, ap as CORNERS, aq as CORNERS_FOR_THEME, ar as Calendar, as as CalendarMode, at as CalendarProps, au as Candle, av as CandlestickChart, aw as CandlestickChartProps, ax as Card, ay as CardPadding, az as CardProps, aA as CardTone, aB as CartesianPlot, aC as CartesianPlotProps, aD as CellStyle, aE as ChartBackgroundVariant, aF as ChartBrush, aG as ChartBrushProps, aH as ChartCurve, aI as ChartDefs, aJ as ChartDefsProps, aK as ChartDot, aL as ChartDotProps, aM as ChartDotVariant, aN as ChartFillVariant, aO as ChartFrame, aP as ChartFrameProps, aQ as ChartHighlightProvider, aR as ChartLegendEntry, aS as ChartLegendSwatch, aT as ChartRange, aU as ChartReferenceLine, aV as ChartRevealDirection, aW as ChartSkeleton, aX as ChartSkeletonProps, aY as ChartStatusTone, aZ as ChartStrokeVariant, a_ as ChartTooltip, a$ as ChartTooltipProps, b0 as ChartTooltipRow, b1 as ChatTemplate, b2 as Checkbox, b3 as CheckboxProps, b4 as CheckoutTemplate, b5 as ChordChart, b6 as ChordChartProps, b7 as ColorPicker, b8 as ColorPickerPanel, b9 as ColorPickerPanelProps, ba as ColorPickerProps, bb as ColorPreset, bc as ColorSwatch, bd as ColorSwatchProps, be as ColorSwatchSize, bf as ColoredBadge, bg as ColoredBadgeProps, bh as ColumnChart, bi as ColumnChartProps, C as ColumnDef, bj as ColumnSeries, bk as ColumnShares, bl as ComposerAttachments, bm as ComposerAttachmentsProps, bn as ConfirmProvider, bo as ContainerFillChart, bp as ContainerFillChartProps, bq as ContainerFillItem, br as ContextMenu, bs as ContextMenuPoint, bt as ContextMenuProps, bu as ContextMenuState, bv as ControlSize, bw as CornerOption, bx as Corners, by as CornersInput, bz as CornersInputProps, bA as CountBadge, bB as CountBadgeProps, bC as CountBadgeTone, bD as Curve, bE as DAY_MS, bF as DashboardTemplate, bG as DataTable, bH as DataTableColumn, bI as DataTableColumnGroup, bJ as DataTableHeader, bK as DataTablePage, bL as DataTableProps, bM as DataTableRowLink, bN as DataTableRowProps, bO as DatePicker, bP as DatePickerProps, bQ as DateRangePicker, bR as DateRangePickerProps, bS as DateTimePicker, bT as DateTimePickerProps, bU as DescriptionColumns, bV as DescriptionItem, bW as DescriptionList, bX as DescriptionListProps, bY as Dialog, bZ as DialogProps, b_ as DialogSize, b$ as DisplayChipItem, c0 as DisplayChips, c1 as DisplayChipsProps, c2 as Divider, c3 as DividerProps, c4 as DividerSpacing, c5 as Drawer, c6 as DrawerProps, c7 as DrawerSide, c8 as DrawerSize, c9 as DropdownMenu, ca as DropdownMenuAlign, cb as DropdownMenuCheckboxItem, cc as DropdownMenuDividerItem, cd as DropdownMenuEntry, ce as DropdownMenuFooterApi, cf as DropdownMenuItem, cg as DropdownMenuLabelItem, ch as DropdownMenuLinkItem, ci as DropdownMenuProps, cj as DropdownMenuRadioItem, ck as DropdownMenuSide, cl as DropdownMenuStatusItem, cm as DropdownPositionOptions, cn as ELEVATION_LEVELS, co as ENGLISH, cp as ENTER, cq as EditableGrid, cr as EditableGridProps, cs as ElevationLevel, ct as EmailTemplate, cu as EmptyState, cv as EmptyStateProps, cw as EmptyValue, cx as EmptyValueProps, cy as ErrorBoundary, cz as ErrorBoundaryProps, cA as ErrorPage, cB as ErrorPageProps, cC as FONT_WEIGHTS, cD as FileIntake, cE as FilePicker, cF as FilePickerProps, cG as FillVariant, cH as FloatingBar, cI as FloatingBarAlign, cJ as FloatingBarProps, cK as FloatingBarSide, cL as FontWeightRole, cM as FormError, cN as FormErrorSummary, cO as FormErrorSummaryProps, cP as FormField, cQ as FormFieldProps, cR as FormLayoutPage, cS as FunnelChart, cT as FunnelChartProps, cU as FunnelStage, cV as GLASS_DIVIDER, cX as GROUP_COLORS, cY as GROUP_COLORS_SOLID, cZ as GalleryTemplate, c_ as Gap, c$ as GlassOptions, d0 as GlobalSearch, d1 as GlobalSearchProps, d2 as Grid, d3 as GridCols, d4 as GridColumn, d5 as GridProps, d6 as HeatmapChart, d7 as HeatmapChartProps, d8 as HelpCenter, d9 as HelpCenterDoc, da as HelpCenterProps, db as HexInput, dc as HistogramBin, dd as HistogramChart, de as HistogramChartProps, df as Hsv, dg as INPUT_BASE, dh as INPUT_SIZES, di as IconButton, dj as IconButtonClassesOptions, dk as IconButtonProps, dl as IconPicker, dm as IconPickerOption, dn as IconPickerProps, dp as IconRail, dq as IconRailButton, dr as IconRailButtonProps, ds as IconRailLabels, dt as IconRailLabelsShown, du as IconRailOrientation, dv as IconRailProps, dw as ImageFocusPoint, dx as ImageFocusPointProps, dy as Inline, dz as InlineProps, dA as Input, dB as InputNumber, dC as InputNumberProps, dD as InputProps, dE as InputSize, dF as Justify, dG as Kanban, dH as KanbanColumn, dI as KanbanProps, dJ as Kbd, dK as KbdProps, dL as KbdSize, dM as KbdTone, dN as Label, dO as LabelClassesOptions, dP as LabelProps, dQ as LadderScale, dR as LanguagePanel, dS as LanguagePanelProps, dT as LanguageSelect, dU as LanguageSelectProps, dV as LinearScale, dW as LinkFilter, dX as LinkFilterField, dY as LinkKindChoice, dZ as LinkOption, d_ as LinkOptionGroup, d$ as LinkPicker, e0 as LinkPickerFieldProps, e1 as LinkPickerProps, e2 as LinkPickerWindowProps, e3 as LinkRules, e4 as LinkTarget, e5 as ListDrop, e6 as ListFooter, e7 as ListLoadError, e8 as ListLoadErrorProps, e9 as ListMove, ea as ListRow, eb as ListRowProps, ec as LoadingSpinner, ed as LoadingSpinnerProps, ee as MAX_FRACTION_DIGITS, ef as MENU_MAX_HEIGHT, eg as MOD, eh as MOTION, ei as MOTION_DURATIONS, ej as Markdown, ej as MarkdownLite, ek as MarkdownLiteProps, ek as MarkdownProps, el as MediaUploadField, em as MediaUploadFieldProps, en as MediaUploadGrid, eo as MediaUploadGridItem, ep as MediaUploadGridProps, eq as MenuPos, er as Meter, es as MeterProps, et as MetricBar, eu as MetricBarProps, ev as Milestone, ew as MilestoneKind, ex as MilestoneTimeline, ey as MilestoneTimelineProps, ez as MotionSpeed, eB as NEXT_CHUNK_PATH_PREFIX, eC as NativeSelect, eD as NiceAxis, eE as NumericKeypad, eF as NumericKeypadProps, eG as OVERLAY_OPEN_EVENT, eH as PLACEHOLDER_INK, eI as POPUP_MAX_WIDTH, eJ as POST_PRODUCTION_STATUSES, eK as PageHeader, eL as PageHeaderProps, P as PaginatedResponse, eM as Pagination, eN as PaginationProps, eO as PaperclipGlyph, eP as Paragraph, eQ as ParagraphProps, eR as PieChart, eS as PieChartProps, eT as PieSegment, eU as PlotGeometry, eV as Point, eW as Popover, eX as PopoverAlign, eY as PopoverProps, eZ as PopoverRenderProps, e_ as PopoverSide, e$ as PopupMenu, f0 as PopupMenuDivider, f1 as PopupMenuItem, f2 as PopupMenuItemProps, f3 as PopupMenuLabel, f4 as PopupMenuProps, f5 as PopupSubmenu, f6 as PopupSubmenuProps, f7 as PortalBrandingContextValue, f8 as PortalBrandingProvider, f9 as PortalBrandingProviderProps, fa as ProductionTimeline, fb as ProductionTimelineProps, fc as ProductionTimelineSnapshot, fd as ProgressItem, fe as PublicPortal, ff as PublicPortalBranding, fg as RADAR_SERIES_CAP, fh as RADIUS_ROLES, fi as ROW_HEIGHTS, fj as RadarAxis, fk as RadarChart, fl as RadarChartProps, fm as RadarSeries, fn as RadialBarChart, fo as RadialBarChartProps, fp as RadialBarRow, fq as Radio, fr as RadioGroup, fs as RadioGroupOption, ft as RadioGroupOrientation, fu as RadioGroupProps, fv as RadioProps, fw as RadiusRole, fx as Range, fy as RangeChart, fz as RangeChartProps, fA as RangeRow, fB as RankedBars, fC as RankedBarsProps, fD as RankedBarsRow, fE as ResizeHandle, fF as ResizeHandleOrientation, fG as ResizeHandleProps, fH as ResizeHandleSide, fI as ResizeHandleStackSide, fJ as ResolvedPortalBrandAsset, fK as Result, fL as ResultProps, fM as ResultStatus, fN as RevealDirection, fO as SCATTER_SERIES_CAP, fP as SERIES_SLOT_COUNT, fQ as SERIES_VARS, fR as SHELL_LANGUAGE_STORAGE_KEY, fS as SHIFT, fT as SPACING_ROLES, fU as SPACING_SCALE, fV as STAGES, fW as STALE_CHUNK_RELOAD_COOLDOWN_MS, fX as STALE_CHUNK_RELOAD_KEY, fY as STATUS_VARS, fZ as SankeyChart, f_ as SankeyChartProps, f$ as SankeyLink, g0 as SankeyNode, g1 as ScatterChart, g2 as ScatterChartProps, g3 as ScatterPoint, g4 as ScatterSeries, S as SearchConfig, g5 as SearchListRoute, g6 as SearchProvider, g7 as SearchQuickAction, g8 as SearchResponse, g9 as SearchResult, ga as SearchableItem, gb as SearchableOption, gc as SearchableOptionGroup, gd as SearchableSelect, ge as SearchableSelectBaseProps, gf as SearchableSelectMultipleProps, gg as SearchableSelectProps, gh as Segmented, gi as SegmentedOption, gj as SegmentedProps, gk as SegmentedSize, gl as Select, gm as SelectBaseProps, gn as SelectFooterAction, go as SelectItem, gp as SelectMultipleProps, gq as SelectOption, gr as SelectOptionGroup, gs as SelectProps, gt as SemanticGroup, gu as SeriesSlots, gv as SettingRow, gw as SettingRowProps, gx as SeverityTone, gA as ShellLanguage, gB as ShellLanguageProvider, gC as ShellLanguageState, gD as ShellPrefsAdapter, gE as ShellPrefsProvider, gF as Side, gG as SidebarActionButton, gH as SidebarActionButtonProps, gI as SidebarGroupLabel, gJ as SidebarGroupLabelProps, gK as SidebarLayout, gL as SidebarLayoutProps, gM as SidebarNavGroup, gN as SidebarNavGroupProps, gO as SidebarNavItem, gP as SidebarNavItemProps, gQ as SidesEachToggle, gR as SidesInput, gS as SidesInputProps, gT as SidesValue, gU as Skeleton, gV as SkeletonProps, gW as SkeletonVariant, gX as Slider, gY as SliderGroup, gZ as SliderProps, g_ as SliderSize, g$ as Snippet, h0 as SnippetProps, h1 as SnippetSize, h2 as SnippetVariant, a as SortState, h3 as SortableList, h4 as SortableListProps, h5 as SortableListSpacing, h6 as SpacingRole, h7 as SpacingStep, h8 as Sparkline, h9 as SparklineProps, ha as SpinnerRing, hb as SpinnerRingProps, hc as SplitButton, hd as SplitButtonProps, he as SplitButtonVariant, hf as Stack, hg as StackProps, hh as StaleChunkReloadOptions, hi as StatCard, hj as StatCardProps, hk as StatTile, hl as StatTileProps, hm as Statistic, hn as StatisticProps, ho as StatisticSize, hp as StatisticTone, hq as StatusBadge, hr as StatusBadgeProvider, hs as StatusEmphasis, ht as StepChain, hu as StepChainItem, hv as StepChainItemProps, hw as StepChainProps, hx as StepChainStatus, hy as StepItem, hz as Stepper, hA as StepperProps, hB as StrokeVariant, hC as SunburstChart, hD as SunburstChartProps, hE as SunburstNode, hF as Switch, hG as SwitchProps, hH as SwitchSize, hI as TYPE_SCALE, hJ as TabItem, hK as Tabs, hL as TabsProps, hM as TagInput, hN as TagInputOption, hO as TagInputProps, hP as TagInputTone, hQ as Text, hR as TextLinkField, hS as TextLinkFieldProps, hT as TextProps, hU as TextSize, hV as TextTone, hW as TextToolbar, hX as TextToolbarAlign, hY as TextToolbarCase, hZ as TextToolbarMark, h_ as TextToolbarProps, h$ as TextWeight, i0 as Textarea, i1 as TextareaProps, i2 as Theme, i3 as TileButton, i4 as TileButtonProps, i5 as TileSize, i6 as TimeAgo, i7 as TimeAgoProps, i8 as TimePicker, i9 as TimePickerProps, ia as TimeSeriesChart, ib as TimeSeriesChartProps, ic as TimeSeriesSeries, id as TimelineMarker, ie as TimelineMarkerKind, ig as TimelineReport, ih as TimelineScrubProgress, ii as TimelineTrack, ij as TimelineTrackItem, ik as TimelineTrackKind, il as TimelineTrackPending, im as TimelineTrackPhase, io as TimelineTrackPlayback, ip as TimelineTrackProps, iq as TimelineTrackThumb, ir as Title, is as TitleLevel, it as TitleProps, iu as ToastAction, iv as ToastCloseReason, iw as ToastOptions, ix as ToastPlacement, iy as ToastUndoableOptions, iz as Tooltip, iA as TooltipProps, iB as TopNav, iC as TopNavItem, iD as TopNavProps, iE as TransferProgress, iF as TransferProgressProps, iG as TransferProgressState, iH as Tree, iI as TreeDrop, iJ as TreeEmptySlot, iK as TreeEmptySlotProps, iL as TreeGroup, iM as TreeGroupLabel, iN as TreeGroupLabelProps, iO as TreeGroupProps, iP as TreeMove, iQ as TreeProps, iR as TreeRow, iS as TreeRowProps, iT as TreeSeam, iU as TreeSeamProps, iV as TreemapChart, iW as TreemapChartProps, iX as TreemapItem, iY as TreemapTile, iZ as TypeStep, i_ as UNDOABLE_MS, i$ as UseAppUpdateOptions, j0 as UseContextMenu, j1 as UseProductionTimelineOpts, j2 as VERSION, j3 as VITE_PRELOAD_ERROR_EVENT, j4 as WaterfallChart, j5 as WaterfallChartProps, j6 as WaterfallStep, j7 as WidthsBar, j8 as WidthsBarProps, j9 as ZLayer, ja as Z_LAYERS, jb as angleScale, jc as appendKey, jd as applyCorners, je as applyIconSet, jf as applyThemePrefs, jg as arcPath, jh as areaBetween, ji as areaFrom, jj as assignSeriesSlots, jk as autoHighlightIndex, jl as backspace, jm as bandScale, jn as binValues, jo as borderSides, jp as borderStartEach, jq as budgetState, jr as bumpPath, js as buttonClasses, jt as calcOverall, ju as calcReportOverall, jv as colorFill, jw as colorSwatchClasses, jx as columnSharesWidths, jy as confirm, jz as confirmDestructive, jA as cornersFor, jB as curvePath, jC as dashFor, jE as dismissPopups, jF as fillFor, jG as fillId, jH as fmtSliderDate, jI as fromDateKey, jJ as glassStyle, jK as glowId, jL as groundId, jM as groupColors, jN as hexToHsv, jO as highlightOpacity, jP as hsvToHex, jQ as iconButtonClasses, jR as inputClasses, jS as installStaleChunkReload, jT as isMac, jU as isSeverityTone, jV as isSpacingStep, jW as isStaleChunkError, jY as labelClasses, jZ as ladderScale, j_ as languageSelectWidth, j$ as leavesContextMenuAlone, k0 as linearPath, k1 as linearScale, k2 as logScale, k3 as maskId, k4 as matchShellLanguage, k5 as mediaFileName, k6 as monotonePath, k7 as niceAxis, k8 as niceMax, k9 as openGlobalSearch, ka as parseHexColor, kb as polygonPoints, kc as popupBounds, kd as prompt, ke as pushRecentSearch, kf as radiusScale, kg as readSavedShellLanguage, kh as registerModalEscapeInterceptor, ki as resolveBrandMarkTreatment, kj as resolveColumnShares, kk as resolveColumnWidths, kl as resolveCorners, km as resolvePortalBrandAsset, kn as resolveSeriesColor, ko as resolveSeriesColorWithin, kp as resolveShellLanguage, kq as resolveTheme, kr as sanitizeRecentSearches, ks as saveShellLanguage, kt as seriesColor, ku as severityOf, kv as sidesStartEach, kw as solidSurfaceStyle, kx as splinePath, ky as squarify, kz as stagger, kA as stepPath, kB as tabButtonId, kC as tabPanelId, kD as textToolbarRows, kE as textToolbarWindowColumns, kF as toDateKey, kG as toDayMs, kH as toISODate, kI as toast, kJ as toggleSeriesSlot, kK as useAppUpdate, kL as useClickOutside, kM as useConfirm, kN as useContextMenu, kO as useDebouncedValue, kP as useDropdownPosition, kQ as useFocusTrap, kR as useHighlight, kS as useIsMobile, kT as useLocalStoragePrefs, kU as usePlotWidth, kV as usePortalBranding, kW as useProductionTimeline, kX as useScrollLock, kY as useShellLanguage, kZ as useShellPrefs, k_ as useStatusLabel, k$ as useTheme, l0 as useTransferProgress } from '../index-BI54lOAz.js';
|
|
2
2
|
export { C as CurrencyFormat, D as DATE_FORMAT_OPTIONS, a as DateFormatKey, E as EMPTY_VALUE, F as FOCAL_DEFAULT, b as FOCAL_NUDGE_COARSE, c as FOCAL_NUDGE_STEP, d as FocalPoint, e as FormatDateOptions, f as FormatMoneyOptions, T as TZ_AUTO, g as TimeAgoOptions, h as currencyDecimals, i as currencySymbol, j as firstDayOfWeek, k as focalFromRect, l as formatBytes, m as formatDate, n as formatDateTime, o as formatFocal, p as formatMoney, q as formatTime, r as getUserDateFormat, s as getUserTimezone, t as nudgeFocal, u as parseFocal, v as setCurrencyFormats, w as setUserDateFormat, x as setUserTimezone, y as syncTimezoneFromProfile, z as timeAgo } from '../index-CHufemKB.js';
|
|
3
3
|
export { isSafeLinkHref } from '../markup/index.js';
|
|
4
4
|
export { FileIntakeAlert, FileIntakeLimits, FileIntakeOptions, FileRejection, FileRejectionReason, acceptsFile, useFileIntake } from '../file-intake/index.js';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{APP_UPDATE_POLL_MS,Accordion,AlignmentGrid,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,BORDER_LINE_STYLES,BORDER_WIDTHS,
|
|
2
|
+
export{APP_UPDATE_POLL_MS,Accordion,AlignmentGrid,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,BORDER_LINE_STYLES,BORDER_WIDTHS,BorderInput,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,CONTROL_HEIGHTS,CORNERS,CORNERS_FOR_THEME,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColoredBadge,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CornersInput,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,DisplayChips,Divider,Drawer,DropdownMenu,ELEVATION_LEVELS,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FONT_WEIGHTS,FilePicker_default as FilePicker,FloatingBar,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GROUP_COLORS,GROUP_COLORS_SOLID,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,IconPicker,IconRail,IconRailButton,ImageFocusPoint,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LanguagePanel,LanguageSelect,LinkPicker,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,MOTION_DURATIONS,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RADIUS_ROLES,ROW_HEIGHTS,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,SPACING_ROLES,SPACING_SCALE,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingRow,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidesEachToggle,SidesInput,Skeleton,Slider,SliderGroup,Snippet,SortableList,Sparkline,SplitButton_default as SplitButton,Stack,StatCard,StatTile,Statistic,StatusBadge,StatusBadgeProvider,Stepper,SunburstChart,Switch_default as Switch,TYPE_SCALE,Tabs,TagInput,Text,TextLinkField,TextToolbar,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,TransferProgress,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,WidthsBar,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,assignSeriesSlots,autoHighlightIndex,backspace,bandScale,binValues,borderSides,borderStartEach,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,columnSharesWidths,cornersFor,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,groupColors,hexToHsv,highlightOpacity,hsvToHex,isSeverityTone,isSpacingStep,labelClasses,ladderScale,languageSelectWidth,linearPath,linearScale,logScale,maskId,mediaFileName,monotonePath,niceAxis,niceMax,parseHexColor,polygonPoints,radiusScale,resolveColumnShares,resolveColumnWidths,resolveCorners,resolvePortalBrandAsset,resolveSeriesColor,resolveSeriesColorWithin,resolveTheme,seriesColor,severityOf,sidesStartEach,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,textToolbarRows,textToolbarWindowColumns,toKey as toDateKey,toDayMs,toISODate,toggleSeriesSlot,useAppUpdate,useClickOutside,useContextMenu,useDebouncedValue,useHighlight,usePlotWidth,usePortalBranding,useProductionTimeline,useStatusLabel,useTheme,useTransferProgress}from"../chunk-OQBWV2RH.js";export{Breadcrumbs}from"../chunk-YWJD6RUT.js";export{EditableGrid}from"../chunk-ZELMENOO.js";import"../chunk-BR22X7E5.js";import"../chunk-AHN2BTZR.js";export{ResizeHandle,SidebarLayout}from"../chunk-FBXOKW33.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-PBZ2VHS3.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-CLYMUTNF.js";export{ICON_NAMES,ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,isIconName,loadIconSet}from"../chunk-4QW4I2XQ.js";export{Banner,Markdown,Markdown as MarkdownLite,StepChain,StepChainItem,Textarea_default as Textarea}from"../chunk-UBXRSOQ6.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-HJQAE6SP.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{IconButton_default as IconButton}from"../chunk-RWNNFCSA.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-WSRZRWN7.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs}from"../chunk-JGWOY2KV.js";export{VERSION}from"../chunk-USLPE6K3.js";import"../chunk-KNUR2UEG.js";export{ConfirmProvider,Dialog,confirm,confirmDestructive,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-GFWRYNPX.js";import"../chunk-5A7MWTXX.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-MMLU5ZHI.js";import"../chunk-UVBK6YSR.js";export{Button_default as Button}from"../chunk-G5GERM76.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,Tooltip,popupBounds,useDropdownPosition}from"../chunk-3E27HV76.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-7IQ3B77H.js";export{OVERLAY_OPEN_EVENT,Z_LAYERS,dismissPopups,registerModalEscapeInterceptor}from"../chunk-FIEA5CGB.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7PQXJO7.js";import"../chunk-D65T4H6J.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-YT4B3NSV.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-UAG5IEAY.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-LVCRH3K6.js";import"../chunk-C3QOHMR6.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-AP2QEJXQ.js";export{DATE_FORMAT_OPTIONS,EMPTY_VALUE,TZ_AUTO,currencyDecimals,currencySymbol,firstDayOfWeek,formatBytes,formatDate,formatDateTime,formatMoney,formatTime,getUserDateFormat,getUserTimezone,setCurrencyFormats,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,timeAgo}from"../chunk-W32SKK3D.js";export{LoadingSpinner,SpinnerRing}from"../chunk-2J6F4EE7.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.47.0",
|
|
4
4
|
"description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
@@ -54,6 +54,11 @@
|
|
|
54
54
|
"import": "./dist/map/index.js",
|
|
55
55
|
"default": "./dist/map/index.js"
|
|
56
56
|
},
|
|
57
|
+
"./ai": {
|
|
58
|
+
"types": "./dist/ai/index.d.ts",
|
|
59
|
+
"import": "./dist/ai/index.js",
|
|
60
|
+
"default": "./dist/ai/index.js"
|
|
61
|
+
},
|
|
57
62
|
"./pdf": {
|
|
58
63
|
"types": "./dist/pdf/index.d.ts",
|
|
59
64
|
"import": "./dist/pdf/index.js",
|
|
@@ -121,7 +126,8 @@
|
|
|
121
126
|
"./styles.css": "./dist/styles.css",
|
|
122
127
|
"./ui.css": "./dist/ui.css",
|
|
123
128
|
"./themes.css": "./dist/themes.css",
|
|
124
|
-
"./brand.css": "./dist/brand.css"
|
|
129
|
+
"./brand.css": "./dist/brand.css",
|
|
130
|
+
"./ai.css": "./dist/ai.css"
|
|
125
131
|
},
|
|
126
132
|
"bin": {
|
|
127
133
|
"efficient-shell-ui-check": "./dist/bin/ui-check.js"
|
|
@@ -131,8 +137,10 @@
|
|
|
131
137
|
"THIRD_PARTY_NOTICES.md"
|
|
132
138
|
],
|
|
133
139
|
"peerDependencies": {
|
|
140
|
+
"@ai-sdk/react": ">=4",
|
|
134
141
|
"@headlessui/react": ">=2",
|
|
135
142
|
"@tanstack/react-query": ">=5",
|
|
143
|
+
"ai": ">=7",
|
|
136
144
|
"axios": ">=1.6",
|
|
137
145
|
"dxf-viewer": "*",
|
|
138
146
|
"i18next": ">=26",
|
|
@@ -153,6 +161,7 @@
|
|
|
153
161
|
"xlsx": "*"
|
|
154
162
|
},
|
|
155
163
|
"devDependencies": {
|
|
164
|
+
"@ai-sdk/react": "^4.0.143",
|
|
156
165
|
"@headlessui/react": "^2.2.10",
|
|
157
166
|
"@phosphor-icons/core": "2.1.1",
|
|
158
167
|
"@tabler/icons": "3.48.0",
|
|
@@ -162,6 +171,7 @@
|
|
|
162
171
|
"@types/node": "^22.0.0",
|
|
163
172
|
"@types/react": "^18.2.0",
|
|
164
173
|
"@types/react-dom": "^18.2.0",
|
|
174
|
+
"ai": "^7.0.140",
|
|
165
175
|
"axios": "^1.15.2",
|
|
166
176
|
"dxf-viewer": "^1.0.47",
|
|
167
177
|
"esbuild": "^0.27.0",
|
|
@@ -190,7 +200,7 @@
|
|
|
190
200
|
"xlsx": "^0.18.5"
|
|
191
201
|
},
|
|
192
202
|
"scripts": {
|
|
193
|
-
"build": "tsup && tsup --config tsup.bin.config.ts && cp src/*.css dist/ && npm run build:brand",
|
|
203
|
+
"build": "tsup && tsup --config tsup.bin.config.ts && cp src/*.css dist/ && npm run build:brand && npm run build:ai",
|
|
194
204
|
"dev": "tsup --watch",
|
|
195
205
|
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
196
206
|
"test": "node scripts/test.mjs",
|
|
@@ -198,7 +208,8 @@
|
|
|
198
208
|
"screenshot": "node scripts/screenshot.mjs",
|
|
199
209
|
"icons": "node scripts/icons/generate.mjs",
|
|
200
210
|
"clean": "rm -rf dist",
|
|
201
|
-
"build:brand": "tailwindcss -i src/brand.css -o dist/brand.css --minify"
|
|
211
|
+
"build:brand": "tailwindcss -i src/brand.css -o dist/brand.css --minify",
|
|
212
|
+
"build:ai": "tailwindcss -i src/ai.css -o dist/ai.css --minify"
|
|
202
213
|
},
|
|
203
214
|
"keywords": [
|
|
204
215
|
"react",
|
|
@@ -213,12 +224,18 @@
|
|
|
213
224
|
"node": ">=20"
|
|
214
225
|
},
|
|
215
226
|
"peerDependenciesMeta": {
|
|
227
|
+
"@ai-sdk/react": {
|
|
228
|
+
"optional": true
|
|
229
|
+
},
|
|
216
230
|
"@headlessui/react": {
|
|
217
231
|
"optional": true
|
|
218
232
|
},
|
|
219
233
|
"@tanstack/react-query": {
|
|
220
234
|
"optional": true
|
|
221
235
|
},
|
|
236
|
+
"ai": {
|
|
237
|
+
"optional": true
|
|
238
|
+
},
|
|
222
239
|
"axios": {
|
|
223
240
|
"optional": true
|
|
224
241
|
},
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-HPUHB47C.js";import{useWidgetSettings as n}from"./chunk-PR7MCFEU.js";import"./chunk-JXMYF3JR.js";import"./chunk-KNUR2UEG.js";import"./chunk-DSSLOQDW.js";import"./chunk-5A7MWTXX.js";import"./chunk-CWCKDF37.js";import"./chunk-UNLQRUWP.js";import"./chunk-UNA3BQJI.js";import"./chunk-UVBK6YSR.js";import"./chunk-G5GERM76.js";import"./chunk-3E27HV76.js";import"./chunk-7IQ3B77H.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import"./chunk-2J6F4EE7.js";import"./chunk-LVCRH3K6.js";import"./chunk-C3QOHMR6.js";import"./chunk-D65T4H6J.js";import{Icon as r}from"./chunk-3G5TA3IF.js";import{useState as l,useRef as c,useCallback as i,useEffect as a}from"react";import{jsxs as o,Fragment as s,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function d(){const[d,m]=l("0"),[k,b]=l(null),[p,g]=l(null),[y,N]=l(!1),[x,f]=l(""),[v,C]=l([]),[$,j]=l(!1),[E,w]=l(()=>e(h)),[F,S]=l(!1),[R,T]=l(E),U=c(null);n(i(()=>{T({...E}),S(!0)},[E]));const W=i(e=>{f(""),m(t=>y||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[y]),A=i(()=>{m("0"),b(null),g(null),N(!1)},[]),B=i((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),H=i(e=>{const t=parseFloat(d);if(null!==k&&p&&!y){const e=B(k,t,p);m(String(e)),b(e),C(n=>[`${k} ${p} ${t} = ${e}`,...n].slice(0,20))}else b(t);g(e),N(!0)},[d,k,p,y,B]),J=i(()=>{if(null===k||!p)return;const e=parseFloat(d),t=B(k,e,p),n=`${k} ${p} ${e} =`;C(e=>[`${n} ${t}`,...e].slice(0,20)),f(n),m(String(t)),b(null),g(null),N(!0)},[d,k,p,B]),D=i(()=>{m(e=>String(parseFloat(e)/100))},[]),I=i(()=>{m(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);a(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?W(e.key):"."===e.key?W("."):"+"===e.key?H("+"):"-"===e.key?H("-"):"*"===e.key?H("×"):"/"===e.key?(e.preventDefault(),H("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&U.current?.contains(e.target)&&e.preventDefault(),J()):"Escape"===e.key?A():"Backspace"===e.key?m(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&D())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[W,H,J,A,D]);const L="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",M=`${L} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,Q=`${L} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,G=`${L} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,K=`${L} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return o(s,{children:[
|
|
3
|
-
/* @__PURE__ */o("div",{ref:U,className:"flex flex-col h-full",style:{opacity:E.activeOpacity/100,backdropFilter:E.activeBlur>0?`blur(${E.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */o("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
|
|
5
|
-
/* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:v.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(x||p&&null!==k)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:x||`${k} ${p} ${y?"":d}`}),
|
|
6
|
-
/* @__PURE__ */o("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(d),j(!0),setTimeout(()=>j(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,$?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
|
|
8
|
-
/* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(d)})]})]}),
|
|
9
|
-
/* @__PURE__ */o("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */u("button",{onClick:A,className:G,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:I,className:G,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:D,className:G,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>H("÷"),className:`${Q} ${"÷"===p?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>W("7"),className:M,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>W("8"),className:M,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>W("9"),className:M,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>H("×"),className:`${Q} ${"×"===p?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>W("4"),className:M,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>W("5"),className:M,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>W("6"),className:M,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>H("-"),className:`${Q} ${"-"===p?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>W("1"),className:M,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>W("2"),className:M,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>W("3"),className:M,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>H("+"),className:`${Q} ${"+"===p?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>W("0"),className:`${M} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>W("."),className:M,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:J,className:K,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:F,onClose:()=>S(!1),title:"Calculator Settings",appearance:R,onAppearanceChange:T,onSave:()=>{w(R),localStorage.setItem(h,JSON.stringify(R)),S(!1)}})]})}export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"./chunk-UNLQRUWP.js";import"./chunk-UVBK6YSR.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import"./chunk-LVCRH3K6.js";import"./chunk-C3QOHMR6.js";import"./chunk-3G5TA3IF.js";
|