@texturehq/edges 2.6.0 → 2.6.1

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.
@@ -3116,60 +3116,6 @@ declare const ENTITY_CONFIG: {
3116
3116
  readonly plural: "Meters";
3117
3117
  };
3118
3118
  readonly description: "Revenue meter at the point of consumption";
3119
- readonly fusedMetricId: "power";
3120
- readonly fields: {
3121
- readonly headlineMetrics: [{
3122
- readonly id: "power";
3123
- readonly label: "device.meter.fields.power";
3124
- readonly source: {
3125
- readonly kind: "state";
3126
- readonly path: "state.phaseARealPower";
3127
- };
3128
- readonly format: {
3129
- readonly type: "power";
3130
- readonly unit: "kW";
3131
- readonly decimals: 2;
3132
- };
3133
- readonly icon: "Pulse";
3134
- }, {
3135
- readonly id: "consumption";
3136
- readonly label: "device.meter.fields.consumption";
3137
- readonly source: {
3138
- readonly kind: "state";
3139
- readonly path: "state.latestKwhUsage";
3140
- };
3141
- readonly format: {
3142
- readonly type: "energy";
3143
- readonly sourceUnit: "kWh";
3144
- readonly decimals: 2;
3145
- };
3146
- readonly icon: "Lightning";
3147
- }, {
3148
- readonly id: "voltage";
3149
- readonly label: "device.meter.fields.voltage";
3150
- readonly source: {
3151
- readonly kind: "state";
3152
- readonly path: "state.phaseAVoltage";
3153
- };
3154
- readonly format: {
3155
- readonly type: "voltage";
3156
- readonly decimals: 1;
3157
- };
3158
- readonly icon: "Lightning";
3159
- }, {
3160
- readonly id: "current";
3161
- readonly label: "device.meter.fields.current";
3162
- readonly source: {
3163
- readonly kind: "state";
3164
- readonly path: "state.phaseACurrent";
3165
- };
3166
- readonly format: {
3167
- readonly type: "current";
3168
- readonly decimals: 2;
3169
- };
3170
- readonly icon: "Lightning";
3171
- }];
3172
- };
3173
3119
  };
3174
3120
  readonly consumer: {
3175
3121
  readonly icon: "Gauge";
@@ -3116,60 +3116,6 @@ declare const ENTITY_CONFIG: {
3116
3116
  readonly plural: "Meters";
3117
3117
  };
3118
3118
  readonly description: "Revenue meter at the point of consumption";
3119
- readonly fusedMetricId: "power";
3120
- readonly fields: {
3121
- readonly headlineMetrics: [{
3122
- readonly id: "power";
3123
- readonly label: "device.meter.fields.power";
3124
- readonly source: {
3125
- readonly kind: "state";
3126
- readonly path: "state.phaseARealPower";
3127
- };
3128
- readonly format: {
3129
- readonly type: "power";
3130
- readonly unit: "kW";
3131
- readonly decimals: 2;
3132
- };
3133
- readonly icon: "Pulse";
3134
- }, {
3135
- readonly id: "consumption";
3136
- readonly label: "device.meter.fields.consumption";
3137
- readonly source: {
3138
- readonly kind: "state";
3139
- readonly path: "state.latestKwhUsage";
3140
- };
3141
- readonly format: {
3142
- readonly type: "energy";
3143
- readonly sourceUnit: "kWh";
3144
- readonly decimals: 2;
3145
- };
3146
- readonly icon: "Lightning";
3147
- }, {
3148
- readonly id: "voltage";
3149
- readonly label: "device.meter.fields.voltage";
3150
- readonly source: {
3151
- readonly kind: "state";
3152
- readonly path: "state.phaseAVoltage";
3153
- };
3154
- readonly format: {
3155
- readonly type: "voltage";
3156
- readonly decimals: 1;
3157
- };
3158
- readonly icon: "Lightning";
3159
- }, {
3160
- readonly id: "current";
3161
- readonly label: "device.meter.fields.current";
3162
- readonly source: {
3163
- readonly kind: "state";
3164
- readonly path: "state.phaseACurrent";
3165
- };
3166
- readonly format: {
3167
- readonly type: "current";
3168
- readonly decimals: 2;
3169
- };
3170
- readonly icon: "Lightning";
3171
- }];
3172
- };
3173
3119
  };
3174
3120
  readonly consumer: {
3175
3121
  readonly icon: "Gauge";
package/dist/index.cjs CHANGED
@@ -44,5 +44,5 @@
44
44
  `;return}else Y.tagName;}for(let Y=0;Y<L.childNodes.length;Y++)O(L.childNodes[Y]);};return O(j),Q},[]),R=Oe.useCallback((j,Q)=>{let O=document.createTreeWalker(j,NodeFilter.SHOW_TEXT,{acceptNode:I=>{let F=I.parentElement;return F&&F.closest("[data-chip-id]")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),L=O.nextNode(),Y=Math.max(0,Q);for(;L;){let I=L.nodeValue||"";if(I.length>=Y){let F=document.createRange();F.setStart(L,Y),F.collapse(true);let U=window.getSelection();U?.removeAllRanges(),U?.addRange(F);return}Y-=I.length,L=O.nextNode();}let P=window.getSelection(),C=document.createRange();C.selectNodeContents(j),C.collapse(false),P?.removeAllRanges(),P?.addRange(C);},[]);Oe.useEffect(()=>{N.current&&!m&&N.current.textContent!==""&&(N.current.textContent="");},[m]),Oe.useLayoutEffect(()=>{if(N.current){if(m===""){if(M)try{N.current.focus({preventScroll:!0}),R(N.current,0);}catch{}return}if(E.current!=null)try{R(N.current,E.current);}finally{E.current=null;}}},[m,R,M]);let H=Oe.useCallback((j,Q)=>{if(p?.(j),j===""){x?.();return}if(h&&b&&Q!==void 0){let O=j.slice(0,Q),L=typeof h=="string"?new RegExp(`\\${h}([^\\s]*)$`):h,Y=O.match(L);if(Y){let P=Y[1]||"",C=Q-Y[0].length;b({query:P,position:Q,startIndex:C});}else x?.();}},[p,h,b,x]),G=Oe.useCallback(j=>{if(!f||!p)return;let Q=g.filter(L=>L.id!==j);f(Q);let O=m.replace(new RegExp(`\\{\\{${j}\\}\\}`,"g"),"");p(O);},[g,f,m,p]),K=Oe.useCallback(j=>y?y(j,()=>G(j.id)):jsxRuntime.jsx(eo,{variant:v,size:A,onRemove:c?void 0:()=>G(j.id),isDisabled:c,className:"py-0.5 px-1.5 gap-1 text-xs leading-none rounded-md",children:j.label},j.id),[y,v,A,G,c]),W=()=>{let j=zt({isInvalid:s,isDisabled:c,isFocused:M,transparent:i,size:o}),Q=`min-h-[100px] py-2 px-3 ${c?"resize-none":l?"resize-y":"resize-none"}`,O=tailwindMerge.twMerge("focus:outline-none overflow-auto","[&_[data-chip-id]::selection]:bg-action-primary/20","[&:empty]:before:content-[attr(data-placeholder)] [&:empty]:before:text-text-disabled [&:empty]:before:pointer-events-none");return tailwindMerge.twMerge(j,Q,O,d)},q=()=>m?m.split(/(\{\{[^}]+\}\})/g).map((Q,O)=>{let L=Q.match(/\{\{([^}]+)\}\}/);if(L){let Y=L[1],P=g.find(C=>C.id===Y);if(P)return jsxRuntime.jsx("span",{className:"inline-block align-baseline cursor-pointer",contentEditable:false,suppressContentEditableWarning:true,"data-chip-id":Y,style:{userSelect:"none",verticalAlign:"baseline",lineHeight:"1"},onClick:C=>{C.preventDefault();let I=window.getSelection(),F=document.createRange();F.selectNode(C.currentTarget),I?.removeAllRanges(),I?.addRange(F);},children:K(P)},`chip-${Y}-${O}`)}return Q.includes(`
45
45
  `)?Q.split(`
46
46
  `).map((Y,P)=>jsxRuntime.jsxs(Oe__namespace.default.Fragment,{children:[Y,P<Q.split(`
47
- `).length-1&&jsxRuntime.jsx("br",{})]},`line-${O}-${P}`)):Q}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsx("div",{ref:N,contentEditable:!c,suppressContentEditableWarning:true,onInput:j=>{if(c)return;let Q=j.target,O=Q.querySelector("[data-chip-id]")!==null,L;if(O?(L=D(Q),L=L.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):L=Q.textContent||"",L===""){try{let C=document.createRange();C.selectNodeContents(Q),C.collapse(!0);let I=window.getSelection();I?.removeAllRanges(),I?.addRange(C),E.current=0;}catch{}H("",0);return}if(L===m)return;let Y=window.getSelection(),P=0;if(Y&&Y.rangeCount>0)try{let C=Y.getRangeAt(0);if(O){let I=0,F=!1,U=$=>{if(F)return !0;if($===C.startContainer)return I+=C.startOffset,F=!0,!0;if($.nodeType===Node.TEXT_NODE){if(!$.parentElement?.closest("[data-chip-id]")){if($.contains(C.startContainer))return I+=C.startOffset,F=!0,!0;I+=($.textContent||"").length;}}else if($.nodeType===Node.ELEMENT_NODE){let ae=$;if(ae.hasAttribute("data-chip-id")){if(ae.contains(C.startContainer)||ae===C.startContainer){let ie=ae.getAttribute("data-chip-id");return I+=`{{${ie}}}`.length,F=!0,!0}let Z=ae.getAttribute("data-chip-id");return I+=`{{${Z}}}`.length,!1}else if(ae.tagName==="BR")return ae===C.startContainer?(F=!0,!0):(I+=1,!1)}for(let ae=0;ae<$.childNodes.length;ae++)if(U($.childNodes[ae]))return !0;return !1};U(Q),P=I;}else {let I=document.createRange();I.setStart(Q,0),I.setEnd(C.startContainer,C.startOffset),P=I.toString().length;}}catch{P=L.length;}E.current=P,H(L,P);},onKeyDown:j=>{if(c)return;let Q=window.getSelection();if(!(!Q||Q.rangeCount===0))try{let O=Q.getRangeAt(0),L=O.commonAncestorContainer;if(j.key==="ArrowLeft"||j.key==="ArrowRight"){let Y=L.nodeType===Node.TEXT_NODE?L.parentElement?.closest("[data-chip-id]"):L.closest("[data-chip-id]");if(Y){j.preventDefault();try{let P=document.createRange(),C=window.getSelection();j.key==="ArrowLeft"?P.setStartBefore(Y):P.setStartAfter(Y),P.collapse(!0),C?.removeAllRanges(),C?.addRange(P);}catch{}}}if(j.key==="Backspace"){let Y=null;if(Y=(L.nodeType===Node.TEXT_NODE?L.parentElement?.closest("[data-chip-id]"):L.closest("[data-chip-id]"))||null,!Y)if(L.nodeType===Node.TEXT_NODE){let P=L;if(O.startOffset===0&&P.parentElement){let C=P.previousSibling;if(C&&C.nodeType===Node.ELEMENT_NODE){let I=C.closest("[data-chip-id]");I&&(Y=I);}}}else {let P=L;if(O.startOffset>0){let C=P.childNodes[O.startOffset-1];if(C&&C.nodeType===Node.ELEMENT_NODE){let I=C.closest("[data-chip-id]");I&&(Y=I);}}}if(Y){j.preventDefault(),j.stopPropagation();let P=Y.getAttribute("data-chip-id");if(!P)return;let C=`{{${P}}}`,I=m.indexOf(C);if(I!==-1){let F=m.slice(0,I)+m.slice(I+C.length),U=g.filter($=>$.id!==P);E.current=I;try{window.getSelection()?.removeAllRanges();}catch{}f?.(U),p?.(F);}}}}catch{}},onFocus:j=>{c||(w.onFocus&&w.onFocus(j),k(j));},onBlur:j=>{c||(w.onBlur&&w.onBlur(j),T(j));},className:W(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:q()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)})]})})}function pD({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Jy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(zo({isInvalid:s,isDisabled:i}),"px-3 py-2 flex items-center gap-0.5 w-full"),children:p=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:p,className:pD({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function Xy({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function jy({children:e,variant:t="default",icon:r,label:o,isLast:n=false,className:a=""}){let s={default:{dot:"bg-border-default border-border-default",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},active:{dot:"bg-text-primary border-text-primary",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-secondary",content:"text-text-secondary"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"}}[t];return jsxRuntime.jsxs("div",{className:`flex gap-3 ${a}`.trim(),role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",style:{width:"20px"},children:[jsxRuntime.jsx("div",{className:`flex items-center justify-center rounded-full border-2 ${s.dot}`,style:{width:"20px",height:"20px",flexShrink:0},children:r&&jsxRuntime.jsx(B,{name:r,size:12,className:"text-background-body"})}),!n&&jsxRuntime.jsx("div",{className:`w-0.5 flex-1 ${s.line}`,style:{minHeight:"24px"}})]}),jsxRuntime.jsxs("div",{className:"flex-1 pb-6",children:[o&&jsxRuntime.jsx("div",{className:`text-xs mb-1 ${s.label}`,children:o}),jsxRuntime.jsx("div",{className:`text-sm ${s.content}`,children:e})]})]})}function xD(e){return "primary"}var hD="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",qy={primary:{selected:"bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-primary border-2 border-border-muted hover:bg-text-primary/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},yD="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",vD="opacity-100 cursor-pointer",CD={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},SD={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function wD(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=xD(),l=`${hD} ${n?qy[c].selected:qy[c].unselected}`;return l+=` ${Ge[r].text} ${Ge[r].height} ${Ge[r].padding} ${Ge[r].gap}`,l+=` ${o?yD:vD}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Je()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function Zy(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(B,{name:n,size:d,weight:i}):null,h=()=>{let x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(B,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:x}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):x},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(wD(e),t),"aria-busy":s,children:h()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${CD[p]} flex h-5 w-5 items-center justify-center rounded-full ${SD[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var kD={open:{className:"text-feedback-success-border",token:"--color-feedback-success-border",label:"Open"},closed:{className:"text-feedback-error-border",token:"--color-feedback-error-border",label:"Closed"}},TD={platform:{label:"Platform",description:"Core product objects that structure the Texture workspace.",icon:"Stack",order:0},grid:{label:"Grid Elements",description:"Physical utility-grid infrastructure imported from a customer's GIS export.",icon:"TreeStructure",order:1},device:{label:"Devices",description:"Behind-the-meter connected energy devices.",icon:"Lightning",order:2}},PD=["energized","customerName","gs_max_continuous_current"],st={TRANSFORMER:[{key:"capacityKva",label:"kVA Rating",format:{type:"power",unit:"kVA",decimals:0}},{key:"primaryRatedVoltage",label:"Primary Voltage",format:{type:"voltage",unit:"V",decimals:0}}],CONSUMER:[{key:"meterNumber",label:"Meter Number",format:{type:"text"}}],SOURCE:[{key:"busVoltage",label:"Bus Voltage",format:{type:"voltage",unit:"V",decimals:0}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}},{key:"substationNumber",label:"Substation Number",format:{type:"text"}}],SWITCH:[{key:"switchId",label:"Switch ID",format:{type:"text"}},{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"normalState",label:"Normal State",format:{type:"text"}}],CAPACITOR:[{key:"unitSizeKvar",label:"Capacity",format:{type:"power",unit:"kVar",decimals:1}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],OVERCURRENT_DEVICE:[{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"deviceType",label:"Device Type",format:{type:"text"}}],REGULATOR:[{key:"outputVoltagePhA",label:"Output Voltage Phase A",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhB",label:"Output Voltage Phase B",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhC",label:"Output Voltage Phase C",format:{type:"voltage",unit:"V",decimals:0}},{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kVA",decimals:1}}],OVERHEAD_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],UNDERGROUND_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],NODE:[{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],GENERATOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"outputVoltage",label:"Output Voltage",format:{type:"voltage",unit:"V",decimals:0}}],MOTOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"voltage",label:"Voltage",format:{type:"voltage",unit:"V",decimals:0}}]},oa={app:{icon:"AppWindow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"App",plural:"Apps"},description:"Workspace tools and third-party integrations"},site:{icon:"MapPin",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Site",plural:"Sites"},description:"Physical location housing energy systems"},device:{icon:"ShareNetwork",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Device",plural:"Devices"},description:"Connected, controllable energy device"},customer:{icon:"Users",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Customer",plural:"Customers"},description:"End customer or owner of one or more sites"},contact:{icon:"Users",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Contact",plural:"Contacts"},description:"Person associated with a customer or site"},program:{icon:"ClipboardText",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Program",plural:"Programs"},description:"Demand-response or virtual power plant program"},workflow:{icon:"FlowArrow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Workflow",plural:"Workflows"},description:"Automated rule that runs in response to events"},collection:{icon:"Stack",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Collection",plural:"Collections"},description:"Named group of related entities or records"},board:{icon:"SquaresFour",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Board",plural:"Boards"},description:"Dashboard for monitoring metrics and devices"},report:{icon:"ChartLine",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Report",plural:"Reports"},description:"Saved analytics view or generated report"},event:{icon:"ClockCounterClockwise",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Event",plural:"Events"},description:"Recorded system event or logged activity"},alert:{icon:"Warning",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Alert",plural:"Alerts"},description:"Notification raised when attention is needed"},monitor:{icon:"Pulse",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Monitor",plural:"Monitors"},description:"Rule that watches a metric against a threshold"},command:{icon:"Play",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Command",plural:"Commands"},description:"Control action issued to a connected device"},source:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SOURCE},label:{singular:"Source",plural:"Sources"},description:"Upstream feed where the network originates"},substation:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SOURCE},label:{singular:"Substation",plural:"Substations"},description:"Facility that steps down transmission voltage"},capacitor:{icon:"TextureCapacitor",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CAPACITOR},label:{singular:"Capacitor",plural:"Capacitors"},description:"Capacitor bank for power-factor and voltage support"},switch:{icon:"TextureSwitchClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SWITCH},label:{singular:"Switch",plural:"Switches"},description:"Sectionalizing or disconnect switch on the line",states:{open:{icon:"TextureSwitch",color:"open"},closed:{icon:"TextureSwitchClosed",color:"closed"}}},sectionalizer:{icon:"TextureSectionalizerClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SWITCH},label:{singular:"Sectionalizer",plural:"Sectionalizers"},description:"Counts upstream recloser trips and opens to isolate a faulted section",states:{open:{icon:"TextureSectionalizerOpen",color:"open"},closed:{icon:"TextureSectionalizerClosed",color:"closed"}}},relay:{icon:"Cpu",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.NODE},label:{singular:"Relay",plural:"Relays"},description:"Microprocessor relay that senses faults and trips devices"},transformer:{icon:"TextureTransformer",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.TRANSFORMER},label:{singular:"Transformer",plural:"Transformers"},description:"Transformer that steps voltage up or down"},meter:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CONSUMER},label:{singular:"Meter",plural:"Meters"},description:"Revenue meter at the point of consumption",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.meter.fields.power",source:{kind:"state",path:"state.phaseARealPower"},format:{type:"power",unit:"kW",decimals:2},icon:"Pulse"},{id:"consumption",label:"device.meter.fields.consumption",source:{kind:"state",path:"state.latestKwhUsage"},format:{type:"energy",sourceUnit:"kWh",decimals:2},icon:"Lightning"},{id:"voltage",label:"device.meter.fields.voltage",source:{kind:"state",path:"state.phaseAVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.meter.fields.current",source:{kind:"state",path:"state.phaseACurrent"},format:{type:"current",decimals:2},icon:"Lightning"}]}},consumer:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CONSUMER},label:{singular:"Consumer",plural:"Consumers"},description:"Service point or customer premise on the grid"},singlePhaseOverheadLine:{icon:"TextureSinglePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Single-Phase Overhead Line",plural:"Single-Phase Overhead Lines"},description:"Overhead line carrying one phase conductor"},twoPhaseOverheadLine:{icon:"TextureTwoPhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Two-Phase Overhead Line",plural:"Two-Phase Overhead Lines"},description:"Overhead line carrying two phase conductors"},threePhaseOverheadLine:{icon:"TextureThreePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Three-Phase Overhead Line",plural:"Three-Phase Overhead Lines"},description:"Overhead line carrying three phase conductors"},singlePhaseUndergroundLine:{icon:"TextureSinglePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Single-Phase Underground Line",plural:"Single-Phase Underground Lines"},description:"Buried line carrying one phase conductor"},twoPhaseUndergroundLine:{icon:"TextureTwoPhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Two-Phase Underground Line",plural:"Two-Phase Underground Lines"},description:"Buried line carrying two phase conductors"},threePhaseUndergroundLine:{icon:"TextureThreePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Three-Phase Underground Line",plural:"Three-Phase Underground Lines"},description:"Buried line carrying three phase conductors"},motorSwitch:{icon:"Diamond",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.MOTOR},label:{singular:"Motor Switch",plural:"Motor Switches"},description:"Motor-operated switch or motor load element"},recloser:{icon:"TextureRecloser",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Recloser",plural:"Reclosers"},description:"Auto-reclosing device that clears transient faults",states:{open:{color:"open"},closed:{color:"closed"}}},fuse:{icon:"TextureFuse",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Fuse",plural:"Fuses"},description:"Fusible element providing overcurrent protection"},breaker:{icon:"TextureBreaker",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Breaker",plural:"Breakers"},description:"Circuit breaker that interrupts fault current",states:{open:{color:"open"},closed:{color:"closed"}}},generator:{icon:"Wind",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.GENERATOR},label:{singular:"Generator",plural:"Generators"},description:"Distributed generation unit feeding the grid"},regulator:{icon:"TextureRegulator",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.REGULATOR},label:{singular:"Regulator",plural:"Regulators"},description:"Voltage regulator that holds line voltage in range"},supportStructure:{icon:"TextureSupportStructure",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.NODE},label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},battery:{icon:"BatteryHigh",category:"device",archetype:"device",detailPage:true,label:{singular:"Battery",plural:"Batteries"},description:"Behind-the-meter battery or storage system",fusedMetricId:"soc",fields:{headlineMetrics:[{id:"power",label:"device.battery.fields.power",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"soc",label:"device.battery.fields.soc",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"backupReserve",label:"device.battery.fields.backupReserve",source:{kind:"state",path:"state.backupReserve"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"loadPower",label:"device.battery.fields.loadPower",source:{kind:"state",path:"state.loadPower"},format:{type:"power",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.battery.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"},secondaryState:{label:"device.battery.fields.gridState",fieldPath:"state.gridStatus",mapping:{importing:"importing",exporting:"exporting",idle:"importing",unknown:"importing"},fallback:"importing"}}},evCharger:{icon:"ChargingStation",category:"device",archetype:"device",detailPage:true,label:{singular:"EV Charger",plural:"EV Chargers"},description:"Electric-vehicle charging station or port",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.evCharger.fields.power",source:{kind:"state",path:"state.chargerWattage"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"isPluggedIn",label:"device.evCharger.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"},{id:"voltage",label:"device.evCharger.fields.voltage",source:{kind:"state",path:"state.chargerVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.evCharger.fields.current",source:{kind:"state",path:"state.chargerCurrent"},format:{type:"current",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.evCharger.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},inverter:{icon:"Sun",category:"device",archetype:"device",detailPage:true,label:{singular:"Solar / Inverter",plural:"Solar / Inverters"},description:"Solar PV inverter and its connected array",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.inverter.fields.power",source:{kind:"state",path:"state.power"},format:{type:"power",decimals:0},icon:"Lightning"},{id:"gridPower",label:"device.inverter.fields.gridPower",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:0},icon:"GridFour"},{id:"generatedEnergy",label:"device.inverter.fields.generatedEnergy",source:{kind:"state",path:"state.generatedEnergy"},format:{type:"energy",decimals:1},icon:"Lightning"},{id:"lifetimeEnergyGenerated",label:"device.inverter.fields.lifetimeEnergyGenerated",source:{kind:"state",path:"state.lifetimeEnergyGenerated"},format:{type:"energy",decimals:0},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.inverter.fields.gridStatus",fieldPath:"state.gridStatus",mapping:{exporting:"exporting",importing:"importing",idle:"idle"},fallback:"unknown"}}},thermostat:{icon:"Thermometer",category:"device",archetype:"device",detailPage:true,label:{singular:"Thermostat",plural:"Thermostats"},description:"Smart thermostat or connected HVAC control",fusedMetricId:"ambientTemperature",fields:{headlineMetrics:[{id:"ambientTemperature",label:"device.thermostat.fields.ambientTemperature",source:{kind:"state",path:"state.ambientTemperature"},format:{type:"temperature",decimals:0},icon:"Thermometer"},{id:"heatTarget",label:"device.thermostat.fields.heatTarget",source:{kind:"state",path:"state.heatTarget"},format:{type:"temperature",decimals:0},icon:"Flame"},{id:"coolTarget",label:"device.thermostat.fields.coolTarget",source:{kind:"state",path:"state.coolTarget"},format:{type:"temperature",decimals:0},icon:"Snowflake"},{id:"fanMode",label:"device.thermostat.fields.fanMode",source:{kind:"state",path:"state.fanMode"},format:{type:"text"}}]},stateRules:{primaryState:{label:"device.thermostat.fields.operatingMode",fieldPath:"state.operatingMode",mapping:{heat:"heat",cool:"cool",auto:"auto",off:"off",eco:"eco",unknown:"unknown"},fallback:"unknown"}}},vehicle:{icon:"Car",category:"device",archetype:"device",detailPage:true,label:{singular:"EV",plural:"EVs"},description:"Electric vehicle managed as a flexible load",fusedMetricId:"chargePercentage",fields:{headlineMetrics:[{id:"chargePercentage",label:"device.vehicle.fields.chargePercentage",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"range",label:"device.vehicle.fields.range",source:{kind:"state",path:"state.range"},format:{type:"distance",unit:"mi",decimals:0},icon:"GasPump"},{id:"chargeLimit",label:"device.vehicle.fields.chargeLimit",source:{kind:"state",path:"state.chargeLimit"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"isPluggedIn",label:"device.vehicle.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"}]},stateRules:{primaryState:{label:"device.vehicle.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},waterHeater:{icon:"Drop",category:"device",archetype:"device",detailPage:true,label:{singular:"Water Heater",plural:"Water Heaters"},description:"Connected or smart electric water heater"}},RD={source:"SOURCE",substation:"SOURCE",capacitor:"CAPACITOR",switch:"SWITCH",sectionalizer:"SWITCH",relay:"NODE",transformer:"TRANSFORMER",meter:"CONSUMER",consumer:"CONSUMER",singlePhaseOverheadLine:"OVERHEAD_LINE",twoPhaseOverheadLine:"OVERHEAD_LINE",threePhaseOverheadLine:"OVERHEAD_LINE",singlePhaseUndergroundLine:"UNDERGROUND_LINE",twoPhaseUndergroundLine:"UNDERGROUND_LINE",threePhaseUndergroundLine:"UNDERGROUND_LINE",motorSwitch:"MOTOR",recloser:"OVERCURRENT_DEVICE",fuse:"OVERCURRENT_DEVICE",breaker:"OVERCURRENT_DEVICE",generator:"GENERATOR",regulator:"REGULATOR",supportStructure:"NODE"};function bc(e){return oa[e]}function MD(e){return oa[e].icon}function ED(e,t=false){return t?oa[e].label.plural:oa[e].label.singular}function DD(e){return oa[e].category}var LD={min:2,max:4};function AD(e){let t=oa[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function ID(e){return bc(e).detailPage}function FD(e){return (bc(e).fields?.headlineMetrics.length??0)>0}function _y(e){return bc(e).properties?.statList??[]}function BD(e){return _y(e).length>0}function VD({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(kr,{title:c,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(Ia,{id:e,onSubmit:t,children:s})})}function zD({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx(Ei,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(Ia,{id:e,onSubmit:t,className:"mt-2",children:s})})}function HD({align:e="end",className:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex gap-2",e==="start"?"justify-start":e==="between"?"justify-between":"justify-end",t)})}var UD={sm:"gap-2",md:"gap-4",lg:"gap-6"};function KD(e){if(!e)return "";let t=e.base?`grid-cols-${e.base}`:"",r=e.md?`md:grid-cols-${e.md}`:"",o=e.lg?`lg:grid-cols-${e.lg}`:"";return [t,r,o].filter(Boolean).join(" ")}function YD({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",KD(e),UD[t],r)})}function jD({title:e,description:t,showDivider:r,className:o,children:n,...a}){return jsxRuntime.jsxs("section",{...a,className:tailwindMerge.twMerge("flex flex-col",o),children:[(e||t)&&jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 mb-6",children:[typeof e=="string"?jsxRuntime.jsx(Qt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Te,{size:"lg",children:t}):null]}),jsxRuntime.jsx("div",{className:"flex flex-col gap-6",children:n}),r&&jsxRuntime.jsx("hr",{className:"mt-2 border-border-muted"})]})}function qD(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function QD({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(B,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function _D({formId:e,show:t,isSubmitting:r,onCancel:o,primaryLabel:n="Save changes",secondaryLabel:a="Cancel",className:i}){return t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("fixed inset-x-0 bottom-0 z-40 border-t border-border-muted bg-background-surface/95 backdrop-blur supports-[backdrop-filter]:bg-background-surface/70",i),children:jsxRuntime.jsxs("div",{className:"mx-auto flex max-w-screen-lg items-center justify-between gap-3 p-3",children:[jsxRuntime.jsx("div",{className:"text-sm text-text-secondary",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(_,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function $D({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Oe__namespace.useEffect(()=>{if(!e)return;let r=o=>(o.preventDefault(),o.returnValue=t,t);return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[e,t]),null}function eL({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Oe__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,c=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function _i(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function rL(e,t){let r=_i(e,t.field),o=t.value;switch(t.operator){case "eq":return r===o;case "neq":return r!==o;case "in":return Array.isArray(o)?Array.isArray(r)?r.some(n=>o.includes(n)):o.includes(r):false;case "nin":return Array.isArray(o)?Array.isArray(r)?!r.some(n=>o.includes(n)):!o.includes(r):false;case "gt":return r instanceof Date&&typeof o=="string"?r>new Date(o):r>o;case "gte":return r instanceof Date&&typeof o=="string"?r>=new Date(o):r>=o;case "lt":return r instanceof Date&&typeof o=="string"?r<new Date(o):r<o;case "lte":return r instanceof Date&&typeof o=="string"?r<=new Date(o):r<=o;case "contains":return typeof r!="string"?false:r.toLowerCase().includes(String(o).toLowerCase());case "startsWith":return typeof r!="string"?false:r.toLowerCase().startsWith(String(o).toLowerCase());case "endsWith":return typeof r!="string"?false:r.toLowerCase().endsWith(String(o).toLowerCase());default:return false}}function iv(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?iv(e,o):rL(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function oL(e,t){return !t||t.conditions.length===0?e:e.filter(r=>iv(r,t))}function nL(e,t,r){if(e==null&&t==null)return 0;if(e==null)return r==="asc"?1:-1;if(t==null)return r==="asc"?-1:1;if(e instanceof Date&&t instanceof Date){let o=e.getTime()-t.getTime();return r==="asc"?o:-o}if(typeof e=="string"&&typeof t=="string"){let o=e.toLowerCase().localeCompare(t.toLowerCase());return r==="asc"?o:-o}return e<t?r==="asc"?-1:1:e>t?r==="asc"?1:-1:0}function aL(e,t){return t?[...e].sort((r,o)=>{let n=_i(r,t.field),a=_i(o,t.field);return nL(n,a,t.direction)}):e}function iL(e,t){if(!t||!t.query.trim())return e;let{query:r,fields:o,fuzzy:n=true,threshold:a=.3}=t;if(n)return new tL__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=_i(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function sL(e,t){let r={};for(let o of t){if(r[o.field]={},o.values)for(let n of o.values)r[o.field][String(n.value)]=0;for(let n of e){let a=_i(n,o.field);if(a!=null)if(Array.isArray(a))for(let i of a){let s=String(i);r[o.field][s]=(r[o.field][s]||0)+1;}else {let i=String(a);r[o.field][i]=(r[o.field][i]||0)+1;}}}return r}function Dp({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=iL(e,o||null);a=oL(a,t||null);let i=sL(a,n);return a=aL(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function hc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Oe.useMemo(()=>Dp({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function yc({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Vo(r,n),i=Oe.useRef(true);Oe.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function sv(e){return e.mode==="client"?hc({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(yc({filters:e.filters,sort:e.sort,search:e.search,onStateChange:e.onStateChange,searchDebounce:e.searchDebounce}),{data:e.data,facetCounts:e.facetCounts||{},resultCount:e.resultCount??e.data.length})}var lv=Op(su());function pL(e,t,r=true){let o=e;if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}function mL(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function cv(e,t){let r=mL(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Lp(e){return e.filter(t=>t.exportable!==false)}function dv(e){let t=e.map(n=>n.exportLabel||n.label),r=new Set,o=[];for(let n of t)r.has(n)?o.includes(n)||o.push(n):r.add(n);if(o.length>0)throw new Error(`Duplicate export headers found: ${o.join(", ")}. Use exportLabel to provide unique headers.`)}async function Ap(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Lp(t);if(n.length===0)throw new Error("No exportable columns found");dv(n);let a=r.map(l=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=cv(u,l);}return d}),i=dk__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=pL(o.filename||"table-data","csv",o.timestamp!==!1);(0,lv.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function fL(e){let{columns:t,data:r}=e,o=Lp(t);return dv(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=cv(i,n);}return a})}function gL(e){return Lp(e).map(t=>t.exportLabel||t.label)}function uv({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Oe.useCallback(async()=>{try{await Ap({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function Doe(e){switch(e){case "charging":case "on":return "success";case "discharging":return "warning";case "heat":case "cool":return "info";case "off":case "idle":case "eco":case "auto":return "neutral";default:return "neutral"}}Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ABSENT_GRID_FIELDS=PD;exports.ActionCell=Jb;exports.ActionMenu=fa;exports.ActivityFeed=Cd;exports.ActivityFeedGroup=xs;exports.ActivityItem=hs;exports.Alert=cf;exports.AppShell=bf;exports.AreaSeries=Jo;exports.AutoMobileRenderer=wl;exports.Autocomplete=Ps;exports.Avatar=xo;exports.BREAKPOINTS=ln;exports.Badge=nt;exports.BadgeCell=jb;exports.Banner=Ms;exports.BarSeries=Hs;exports.BooleanCell=qb;exports.BrandProvider=Qp;exports.BreadcrumbItem=Ds;exports.Breadcrumbs=Es;exports.Button=_;exports.CUSTOM_ICON_REGISTRY=ia;exports.Calendar=ha;exports.Card=Ue;exports.CardContent=md;exports.CardFooter=fd;exports.CardHeader=ud;exports.CardMedia=pd;exports.CardMobileRenderer=Nl;exports.CarouselAutoplayTrigger=Yf;exports.CarouselControl=Wf;exports.CarouselIndicator=Ud;exports.CarouselIndicatorGroup=Kf;exports.CarouselItem=Hf;exports.CarouselItemGroup=Of;exports.CarouselNextTrigger=Uf;exports.CarouselPrevTrigger=Gf;exports.CarouselProgressText=Jf;exports.CarouselRoot=zf;exports.CategoryBarChart=wg;exports.ChartAxis=Mr;exports.ChartBottomBar=Ta;exports.ChartContainer=Gg;exports.ChartContext=Rr;exports.ChartEventMarkers=Js;exports.ChartEventSpans=Xs;exports.ChartTooltip=Xo;exports.Checkbox=Sn;exports.CheckboxGroup=Kd;exports.Chip=eo;exports.ChipInputField=$f;exports.ClearButton=ni;exports.CodeEditor=rg;exports.Collapse=ya;exports.CollapseContent=Ko;exports.CollapseHeader=Uo;exports.CollapseItem=Go;exports.ColorField=fN;exports.ColorModeProvider=sm;exports.CommandPalette=zx;exports.Confirm=lg;exports.ConnectionStatusBadge=cg;exports.ContactCard=dg;exports.ContactMetaCell=Zb;exports.ContactMetaDisplay=Bs;exports.ContainerQueryProvider=mg;exports.CopyToClipboard=Oo;exports.CustomCell=_b;exports.DEFAULT_MAP_TYPE=$l;exports.DataControls=Bb;exports.DataTable=Tx;exports.DateCell=$b;exports.DateField=Ob;exports.DateRangePicker=sl;exports.Description=Te;exports.DeviceHealthBadge=Rx;exports.DeviceMetaCell=tx;exports.DeviceMetaDisplay=ml;exports.DeviceStateBadge=zn;exports.DeviceStateCell=nx;exports.DeviceStateWithMetric=bl;exports.DeviceTypeIcon=Ex;exports.Dialog=kr;exports.DialogForm=VD;exports.DialogHeader=Ht;exports.Drawer=Ei;exports.DrawerForm=zD;exports.ENTITY_CATEGORY_CONFIG=TD;exports.ENTITY_CONFIG=oa;exports.EmptyState=_s;exports.EnrollmentStatusBadge=Lx;exports.ErrorBoundary=zr;exports.FieldError=be;exports.FieldGroup=yf;exports.FileUpload=Ix;exports.FilterChips=Vb;exports.FilterDialog=Ub;exports.FirmwareVersionBadge=Bx;exports.Form=Ia;exports.FormActions=HD;exports.FormDivider=qD;exports.FormGrid=YD;exports.FormSection=jD;exports.FormStepper=QD;exports.FormatRegistry=oe;exports.FormattedCell=ix;exports.FunnelSeries=Jg;exports.GRID_ELEMENT_TYPE_BY_ENTITY=RD;exports.GRID_STATE_COLORS=kD;exports.GRID_STAT_LIST=st;exports.GlobalSearch=Wx;exports.Grid=qu;exports.GridStateBadge=gl;exports.HEADLINE_METRIC_BOUNDS=LD;exports.Heading=Qt;exports.HierarchyExplorer=gh;exports.HorizontalBarCell=Vu;exports.HoverCard=vR;exports.Icon=B;exports.InfiniteScrollIndicator=Nr;exports.Input=Ns;exports.InputWrapper=yt;exports.InteractiveMap=Gi;exports.Kpi=Ch;exports.KpiGroup=op;exports.Label=ze;exports.LineSeries=Pn;exports.List=Ph;exports.ListBox=HR;exports.ListBoxItem=_t;exports.ListItem=Mh;exports.ListPane=Eh;exports.Loader=go;exports.Logo=ba;exports.MAP_TYPES=ny;exports.Meter=cy;exports.MiniBarCell=zu;exports.ModalBackdrop=cr;exports.Notice=nc;exports.NoticeContainer=ac;exports.NoticeProvider=uy;exports.NumberCell=ux;exports.NumberField=ki;exports.PageBanner=Ef;exports.PageLayout=Qn;exports.PercentBarCell=Ou;exports.PlaceSearch=yy;exports.Popover=lt;exports.ProgressBar=Cy;exports.Prose=Sy;exports.Radio=Py;exports.RadioCard=wy;exports.RadioCardGroup=Ny;exports.RadioGroup=Ty;exports.RangeCalendar=Ma;exports.ResultsCount=Ci;exports.RichTextEditor=Ey;exports.SKELETON_SIZES=_o;exports.SOURCE_UNIT_TO_WH=Xc;exports.SaveBar=_D;exports.SearchControl=In;exports.SearchEmptyState=Gx;exports.SearchLoadingState=Kx;exports.SearchResultGroup=Jx;exports.SearchResultItem=Xx;exports.SearchResultsList=jx;exports.SearchTrigger=Qx;exports.Section=Ua;exports.SectionNav=lc;exports.SegmentedControl=tl;exports.Select=bo;exports.SelectCell=mx;exports.SideNav=vs;exports.SiteCard=Dy;exports.SiteContactCard=Ay;exports.SiteMetaCell=gx;exports.SiteMetaDisplay=yl;exports.Skeleton=J;exports.Slider=Iy;exports.SortControl=Si;exports.SparklineCell=Hu;exports.SplitPane=gc;exports.StackNav=Cs;exports.StatList=Ll;exports.StaticMap=Ga;exports.Switch=ll;exports.Tab=mc;exports.TabList=pc;exports.TabPanel=by;exports.Tabs=uc;exports.TextArea=Hy;exports.TextAreaWithChips=Ky;exports.TextCell=yx;exports.TextField=Lr;exports.TextLink=Ze;exports.TiledTimeSeriesChart=Qs;exports.TiledTimeSeriesExplorer=Db;exports.TimeControls=rl;exports.TimeField=Jy;exports.Timeline=Xy;exports.TimelineItem=jy;exports.ToggleButton=Zy;exports.Tooltip=Zt;exports.TopNav=oi;exports.Tray=ct;exports.UnsavedChangesPrompt=$D;exports.activeDeviceStates=_1;exports.addFilterCondition=Zo;exports.applyDataOperations=Dp;exports.archetypeFor=AD;exports.assembleSeries=db;exports.autoScaleCurrent=IC;exports.autoScaleDistance=bm;exports.autoScaleEnergy=vm;exports.autoScalePower=GC;exports.autoScaleResistance=UC;exports.autoScaleVoltage=QC;exports.baselineFromPoint=KN;exports.camelCaseToWords=Bm;exports.capitalize=Im;exports.celsiusToFahrenheit=KC;exports.celsiusToKelvin=u5;exports.centimetersToInches=JA;exports.clearColorCache=rs;exports.createCategoryColorMap=bC;exports.createEmptyFilter=wi;exports.createFilter=g1;exports.createFilters=b1;exports.createFormat=z5;exports.createTextureIcon=rt;exports.createTiledCameraSyncGroup=Xg;exports.createXScale=ru;exports.createYScale=di;exports.csvUnitFor=ad;exports.csvValueFor=Om;exports.defaultMargin=Ie;exports.deviceStateLabels=$1;exports.deviceStateMetricFormats=xU;exports.emptyStore=ub;exports.entityHasDetailPage=ID;exports.entityHasStatList=BD;exports.entityShowsNow=FD;exports.enumToSentenceCase=jC;exports.exportChart=cu;exports.exportTableAsCSV=Ap;exports.fahrenheitToCelsius=YC;exports.fahrenheitToKelvin=p5;exports.feetToMeters=VA;exports.feetToMiles=HA;exports.filterToChips=x1;exports.formatBoolean=lm;exports.formatCapacity=gA;exports.formatComponentValue=jr;exports.formatCurrency=mm;exports.formatCurrent=zc;exports.formatDate=fm;exports.formatDistance=xm;exports.formatEmptyValue=ul;exports.formatEnergy=jc;exports.formatFieldValue=Vr;exports.formatInternationalPhone=qc;exports.formatNumber=pm;exports.formatPercent=dm;exports.formatPhone=Cm;exports.formatPhoneNumber=ca;exports.formatPower=$c;exports.formatPowerRating=bA;exports.formatResistance=td;exports.formatTemperature=Mm;exports.formatText=zm;exports.formatUSPhone=is;exports.formatVoltage=nd;exports.getBadgeClasses=Kb;exports.getBooleanBadgeVariant=Yb;exports.getCellAlignmentClasses=Lu;exports.getCellContainerClasses=Me;exports.getCellTextClasses=Ar;exports.getContrastingTextColor=xC;exports.getDateParts=DA;exports.getDefaultChartColor=qa;exports.getDefaultColors=_p;exports.getDeviceStateDisplayLabel=Fu;exports.getDeviceStateLabel=Fu;exports.getEntityCategory=DD;exports.getEntityConfig=bc;exports.getEntityIcon=MD;exports.getEntityLabel=ED;exports.getEntityStatList=_y;exports.getEventColor=yo;exports.getExportFormatName=gk;exports.getExportHeaders=gL;exports.getFieldGroupStyles=bS;exports.getFilterFields=Bn;exports.getGridStateLabel=ox;exports.getInputBackgroundStyles=hf;exports.getInputBaseStyles=zt;exports.getInputStateStyles=zo;exports.getLinkClasses=Au;exports.getNumericColorClasses=pl;exports.getResolvedColor=Pt;exports.getSkeletonSize=nr;exports.getStateTone=Doe;exports.getThemeCategoricalColors=cn;exports.getYFormatSettings=Hr;exports.gridStateLabels=tP;exports.inchesToCentimeters=YA;exports.isActiveDeviceState=Iu;exports.isActiveState=Iu;exports.isCustomPinsLayer=pp;exports.isExportSupported=fk;exports.isFilterEmpty=il;exports.isGeoJsonLayer=up;exports.isLightColor=$p;exports.isNil=me;exports.isRasterLayer=mp;exports.isVectorLayer=dp;exports.kelvinToCelsius=JC;exports.kelvinToFahrenheit=m5;exports.kilometersToMiles=OA;exports.layer=cp;exports.mapValuesToCategoricalColors=Mc;exports.metersToFeet=BA;exports.metersToMiles=WA;exports.metersToYards=KA;exports.milesToFeet=gm;exports.milesToKilometers=zA;exports.milesToMeters=GA;exports.parseBoolean=Lo;exports.pickEnergyUnit=Jc;exports.prepareTableDataForExport=fL;exports.registerPhosphorIcon=sy;exports.removeFilterCondition=Fn;exports.resolveValue=Se;exports.snakeCaseToWords=Vm;exports.telemetryPresetRanges=$s;exports.temperatureStringToSymbol=Nm;exports.tierForViewport=Zs;exports.tileIndexAt=hT;exports.tileKey=rr;exports.tileReducer=pb;exports.tilesForViewport=jo;exports.toA=TA;exports.toActiveInactive=kC;exports.toAmps=ns;exports.toBoolean=Do;exports.toCelsius=Tm;exports.toCentimeters=OC;exports.toCheckmark=PC;exports.toCompactNumber=DC;exports.toCurrency=um;exports.toCustomDateFormat=zC;exports.toDateString=FC;exports.toEnabledDisabled=wC;exports.toFahrenheit=km;exports.toFeet=Wc;exports.toFloat=MC;exports.toFormattedNumber=EC;exports.toFullDateTime=BC;exports.toGW=n5;exports.toGWh=ym;exports.toGigawatts=_c;exports.toISOString=VC;exports.toInches=WC;exports.toInteger=RC;exports.toKA=PA;exports.toKV=C5;exports.toKW=r5;exports.toKelvin=Pm;exports.toKiloamps=Vc;exports.toKilohms=Sm;exports.toKilometers=Hc;exports.toKilovolts=od;exports.toKilowatts=Qc;exports.toLowerCase=Dm;exports.toMA=kA;exports.toMV=y5;exports.toMW=o5;exports.toMWh=hm;exports.toMegawatts=Zc;exports.toMegohms=wm;exports.toMeters=Oc;exports.toMiles=Gc;exports.toMilliamps=Bc;exports.toMillimeters=HC;exports.toMilliohms=ed;exports.toMillivolts=rd;exports.toNauticalMiles=FA;exports.toOhms=ls;exports.toOnOff=NC;exports.toPercentage=cm;exports.toRelativeTime=as;exports.toScientificNotation=LC;exports.toSecret=qC;exports.toSentenceCase=Lm;exports.toTemperature=Rm;exports.toTitleCase=Am;exports.toTrueFalse=TC;exports.toUpperCase=Em;exports.toV=v5;exports.toVolts=us;exports.toW=t5;exports.toWatts=ss;exports.toWh=Kc;exports.toYards=Uc;exports.tokWh=Yc;exports.truncateEnd=ds;exports.truncateMiddle=da;exports.truncateStart=cs;exports.typeRole=gt;exports.typographyRole=qr;exports.ucFirst=Fm;exports.useBreakpoint=Xt;exports.useChartContext=Tn;exports.useClientDataControls=hc;exports.useColorMode=Vt;exports.useComponentFormatter=vA;exports.useContainerBreakpoint=ug;exports.useDataControls=sv;exports.useDebounce=Vo;exports.useElementSize=xa;exports.useInfiniteScroll=Fo;exports.useInputFocus=Pr;exports.useLocalStorage=Ul;exports.useMediaQuery=Jt;exports.useNotice=my;exports.useServerDataControls=yc;exports.useTableExport=uv;exports.useTileWindow=yb;exports.useTiledTimeSeries=vu;exports.useWizard=eL;exports.wrapWithLink=ao;exports.yardsToMeters=UA;//# sourceMappingURL=index.cjs.map
47
+ `).length-1&&jsxRuntime.jsx("br",{})]},`line-${O}-${P}`)):Q}):null;return jsxRuntime.jsx("div",{className:"group flex flex-col",children:jsxRuntime.jsxs("div",{className:"flex flex-col",children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsx("div",{ref:N,contentEditable:!c,suppressContentEditableWarning:true,onInput:j=>{if(c)return;let Q=j.target,O=Q.querySelector("[data-chip-id]")!==null,L;if(O?(L=D(Q),L=L.replace(/(\{\{[^}]+\}\})\s{2,}/g,"$1 ").replace(/\s{2,}(\{\{[^}]+\}\})/g," $1")):L=Q.textContent||"",L===""){try{let C=document.createRange();C.selectNodeContents(Q),C.collapse(!0);let I=window.getSelection();I?.removeAllRanges(),I?.addRange(C),E.current=0;}catch{}H("",0);return}if(L===m)return;let Y=window.getSelection(),P=0;if(Y&&Y.rangeCount>0)try{let C=Y.getRangeAt(0);if(O){let I=0,F=!1,U=$=>{if(F)return !0;if($===C.startContainer)return I+=C.startOffset,F=!0,!0;if($.nodeType===Node.TEXT_NODE){if(!$.parentElement?.closest("[data-chip-id]")){if($.contains(C.startContainer))return I+=C.startOffset,F=!0,!0;I+=($.textContent||"").length;}}else if($.nodeType===Node.ELEMENT_NODE){let ae=$;if(ae.hasAttribute("data-chip-id")){if(ae.contains(C.startContainer)||ae===C.startContainer){let ie=ae.getAttribute("data-chip-id");return I+=`{{${ie}}}`.length,F=!0,!0}let Z=ae.getAttribute("data-chip-id");return I+=`{{${Z}}}`.length,!1}else if(ae.tagName==="BR")return ae===C.startContainer?(F=!0,!0):(I+=1,!1)}for(let ae=0;ae<$.childNodes.length;ae++)if(U($.childNodes[ae]))return !0;return !1};U(Q),P=I;}else {let I=document.createRange();I.setStart(Q,0),I.setEnd(C.startContainer,C.startOffset),P=I.toString().length;}}catch{P=L.length;}E.current=P,H(L,P);},onKeyDown:j=>{if(c)return;let Q=window.getSelection();if(!(!Q||Q.rangeCount===0))try{let O=Q.getRangeAt(0),L=O.commonAncestorContainer;if(j.key==="ArrowLeft"||j.key==="ArrowRight"){let Y=L.nodeType===Node.TEXT_NODE?L.parentElement?.closest("[data-chip-id]"):L.closest("[data-chip-id]");if(Y){j.preventDefault();try{let P=document.createRange(),C=window.getSelection();j.key==="ArrowLeft"?P.setStartBefore(Y):P.setStartAfter(Y),P.collapse(!0),C?.removeAllRanges(),C?.addRange(P);}catch{}}}if(j.key==="Backspace"){let Y=null;if(Y=(L.nodeType===Node.TEXT_NODE?L.parentElement?.closest("[data-chip-id]"):L.closest("[data-chip-id]"))||null,!Y)if(L.nodeType===Node.TEXT_NODE){let P=L;if(O.startOffset===0&&P.parentElement){let C=P.previousSibling;if(C&&C.nodeType===Node.ELEMENT_NODE){let I=C.closest("[data-chip-id]");I&&(Y=I);}}}else {let P=L;if(O.startOffset>0){let C=P.childNodes[O.startOffset-1];if(C&&C.nodeType===Node.ELEMENT_NODE){let I=C.closest("[data-chip-id]");I&&(Y=I);}}}if(Y){j.preventDefault(),j.stopPropagation();let P=Y.getAttribute("data-chip-id");if(!P)return;let C=`{{${P}}}`,I=m.indexOf(C);if(I!==-1){let F=m.slice(0,I)+m.slice(I+C.length),U=g.filter($=>$.id!==P);E.current=I;try{window.getSelection()?.removeAllRanges();}catch{}f?.(U),p?.(F);}}}}catch{}},onFocus:j=>{c||(w.onFocus&&w.onFocus(j),k(j));},onBlur:j=>{c||(w.onBlur&&w.onBlur(j),T(j));},className:W(),style:{whiteSpace:"pre-wrap",wordBreak:"break-word",...w.style},"data-placeholder":w.placeholder,children:q()},m===""?"empty":"content")}),t&&jsxRuntime.jsx(Te,{size:o,className:"mt-3",children:t}),typeof r=="string"&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}),typeof r=="function"&&u&&jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(u)})]})})}function pD({isPlaceholder:e,isDisabled:t,size:r="md"}){return tailwindMerge.twMerge("inline-block box-content px-0.5 rounded outline-none tabular-nums text-center transition-colors",{sm:"text-base md:text-xs",md:"text-base md:text-sm",lg:"text-base",xl:"text-lg"}[r],e?"text-text-disabled italic":"text-text-primary",t?"text-text-disabled cursor-not-allowed":"cursor-text",!t&&"hover:bg-background-hover","data-[focused]:bg-background-selected data-[focused]:text-text-primary")}function Jy({label:e,description:t,errorMessage:r,size:o="md",tooltip:n,isRequired:a,isDisabled:i,isInvalid:s,reserveErrorSpace:c=true,validationResult:l,className:d,descriptionPlacement:u="below",...m}){return jsxRuntime.jsxs(reactAriaComponents.TimeField,{...m,isDisabled:i,isRequired:a,isInvalid:s,className:ke(d,"flex flex-col gap-1"),children:[e&&jsxRuntime.jsx(ze,{size:o,tooltip:n,description:u==="tooltip"||u==="inline"?t:void 0,descriptionPlacement:u,isRequired:a,children:e}),jsxRuntime.jsx(yt,{children:jsxRuntime.jsx(reactAriaComponents.DateInput,{className:tailwindMerge.twMerge(zo({isInvalid:s,isDisabled:i}),"px-3 py-2 flex items-center gap-0.5 w-full"),children:p=>jsxRuntime.jsx(reactAriaComponents.DateSegment,{segment:p,className:pD({isPlaceholder:p.isPlaceholder,isDisabled:!p.isEditable||i,size:o})})})}),c?jsxRuntime.jsx("div",{className:"mt-1 min-h-[20px]",children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,children:t}):null}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:typeof r=="string"?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r}):typeof r=="function"&&l?jsxRuntime.jsx(be,{size:o,className:"mt-1",children:r(l)}):t&&u==="below"?jsxRuntime.jsx(Te,{size:o,className:"mt-1",children:t}):null})]})}function Xy({children:e,className:t=""}){return jsxRuntime.jsx("div",{className:`flex flex-col ${t}`.trim(),role:"list",children:e})}function jy({children:e,variant:t="default",icon:r,label:o,isLast:n=false,className:a=""}){let s={default:{dot:"bg-border-default border-border-default",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},active:{dot:"bg-text-primary border-text-primary",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary font-medium"},muted:{dot:"bg-border-muted border-border-muted",line:"bg-border-muted",label:"text-text-secondary",content:"text-text-secondary"},success:{dot:"bg-feedback-success-border border-feedback-success-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},error:{dot:"bg-feedback-error-border border-feedback-error-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},warning:{dot:"bg-feedback-warning-border border-feedback-warning-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"},info:{dot:"bg-feedback-info-border border-feedback-info-border",line:"bg-border-default",label:"text-text-secondary",content:"text-text-primary"}}[t];return jsxRuntime.jsxs("div",{className:`flex gap-3 ${a}`.trim(),role:"listitem",children:[jsxRuntime.jsxs("div",{className:"flex flex-col items-center",style:{width:"20px"},children:[jsxRuntime.jsx("div",{className:`flex items-center justify-center rounded-full border-2 ${s.dot}`,style:{width:"20px",height:"20px",flexShrink:0},children:r&&jsxRuntime.jsx(B,{name:r,size:12,className:"text-background-body"})}),!n&&jsxRuntime.jsx("div",{className:`w-0.5 flex-1 ${s.line}`,style:{minHeight:"24px"}})]}),jsxRuntime.jsxs("div",{className:"flex-1 pb-6",children:[o&&jsxRuntime.jsx("div",{className:`text-xs mb-1 ${s.label}`,children:o}),jsxRuntime.jsx("div",{className:`text-sm ${s.content}`,children:e})]})]})}function xD(e){return "primary"}var hD="flex font-medium justify-center items-center gap-2 text-center transition whitespace-nowrap box-border",qy={primary:{selected:"bg-action-primary text-[color:var(--color-action-primary-text)] hover:bg-action-primary-hover forced-colors:bg-[ButtonText] forced-colors:text-[ButtonFace] border-2 border-transparent",unselected:"bg-transparent text-action-primary border-2 border-border-muted hover:bg-text-primary/[0.05] forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]"}},yD="opacity-[--control-hover-opacity] cursor-not-allowed pointer-events-none grayscale",vD="opacity-100 cursor-pointer",CD={"top-right":"-right-2 -top-2","top-left":"-left-2 -top-2","bottom-right":"-right-2 -bottom-2","bottom-left":"-left-2 -bottom-2"},SD={primary:"bg-action-primary text-[color:var(--color-action-primary-text)]",destructive:"bg-feedback-error-border text-text-inverse"};function wD(e){let{variant:t="primary",size:r="md",isDisabled:o,isSelected:n,borderRadius:a,borderRight:i,borderLeft:s}=e,c=xD(),l=`${hD} ${n?qy[c].selected:qy[c].unselected}`;return l+=` ${Ge[r].text} ${Ge[r].height} ${Ge[r].padding} ${Ge[r].gap}`,l+=` ${o?yD:vD}`,a==="left"&&(l+=" rounded-l-sm"),a==="right"&&(l+=" rounded-r-sm"),i&&(l+=" border-r"),s&&(l+=" border-l"),l+=` ${Je()}`,(l+=" focus-visible:outline-action-primary"),tailwindMerge.twMerge(l)}function Zy(e){let{className:t,children:r,onPress:o,icon:n,iconPosition:a="left",iconWeight:i,isLoading:s=false,loadingText:c,loadingIndicator:l,size:d="md",badgeNumber:u,badgeVariant:m="primary",badgePosition:p="top-right",...g}=e,f=n?jsxRuntime.jsx(B,{name:n,size:d,weight:i}):null,h=()=>{let x=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="left"&&f,r,a==="right"&&f]});return s?jsxRuntime.jsxs("div",{className:"relative inline-flex items-center justify-center",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l||jsxRuntime.jsx(B,{name:"CircleNotch",size:d,className:"animate-spin","aria-hidden":"true"})}),jsxRuntime.jsx("div",{className:"invisible","aria-hidden":"true",children:x}),c&&jsxRuntime.jsx("span",{className:"sr-only",role:"status","aria-live":"polite",children:c})]}):x},b=jsxRuntime.jsx(reactAriaComponents.ToggleButton,{onPress:o,...g,className:tailwindMerge.twMerge(wD(e),t),"aria-busy":s,children:h()});return u&&u>0?jsxRuntime.jsxs("div",{className:"relative",children:[b,jsxRuntime.jsx("span",{className:`absolute ${CD[p]} flex h-5 w-5 items-center justify-center rounded-full ${SD[m]} text-xs`,"aria-label":`${u} items`,children:u})]}):b}var kD={open:{className:"text-feedback-success-border",token:"--color-feedback-success-border",label:"Open"},closed:{className:"text-feedback-error-border",token:"--color-feedback-error-border",label:"Closed"}},TD={platform:{label:"Platform",description:"Core product objects that structure the Texture workspace.",icon:"Stack",order:0},grid:{label:"Grid Elements",description:"Physical utility-grid infrastructure imported from a customer's GIS export.",icon:"TreeStructure",order:1},device:{label:"Devices",description:"Behind-the-meter connected energy devices.",icon:"Lightning",order:2}},PD=["energized","customerName","gs_max_continuous_current"],st={TRANSFORMER:[{key:"capacityKva",label:"kVA Rating",format:{type:"power",unit:"kVA",decimals:0}},{key:"primaryRatedVoltage",label:"Primary Voltage",format:{type:"voltage",unit:"V",decimals:0}}],CONSUMER:[{key:"meterNumber",label:"Meter Number",format:{type:"text"}}],SOURCE:[{key:"busVoltage",label:"Bus Voltage",format:{type:"voltage",unit:"V",decimals:0}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}},{key:"substationNumber",label:"Substation Number",format:{type:"text"}}],SWITCH:[{key:"switchId",label:"Switch ID",format:{type:"text"}},{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"normalState",label:"Normal State",format:{type:"text"}}],CAPACITOR:[{key:"unitSizeKvar",label:"Capacity",format:{type:"power",unit:"kVar",decimals:1}},{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],OVERCURRENT_DEVICE:[{key:"ratedCurrent",label:"Rated Current",format:{type:"number",unit:"A",decimals:0}},{key:"deviceType",label:"Device Type",format:{type:"text"}}],REGULATOR:[{key:"outputVoltagePhA",label:"Output Voltage Phase A",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhB",label:"Output Voltage Phase B",format:{type:"voltage",unit:"V",decimals:0}},{key:"outputVoltagePhC",label:"Output Voltage Phase C",format:{type:"voltage",unit:"V",decimals:0}},{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kVA",decimals:1}}],OVERHEAD_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],UNDERGROUND_LINE:[{key:"impedanceLength",label:"Length",format:{type:"distance",unit:"ft",decimals:0}},{key:"conductorDescPhA",label:"Conductor Phase A",format:{type:"text"}},{key:"conductorDescPhB",label:"Conductor Phase B",format:{type:"text"}},{key:"conductorDescPhC",label:"Conductor Phase C",format:{type:"text"}}],NODE:[{key:"nominalVoltage",label:"Nominal Voltage",format:{type:"voltage",unit:"V",decimals:0}}],GENERATOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"outputVoltage",label:"Output Voltage",format:{type:"voltage",unit:"V",decimals:0}}],MOTOR:[{key:"ratedPower",label:"Rated Power",format:{type:"power",unit:"kW",decimals:1}},{key:"voltage",label:"Voltage",format:{type:"voltage",unit:"V",decimals:0}}]},oa={app:{icon:"AppWindow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"App",plural:"Apps"},description:"Workspace tools and third-party integrations"},site:{icon:"MapPin",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Site",plural:"Sites"},description:"Physical location housing energy systems"},device:{icon:"ShareNetwork",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Device",plural:"Devices"},description:"Connected, controllable energy device"},customer:{icon:"Users",category:"platform",archetype:"platform",detailPage:true,label:{singular:"Customer",plural:"Customers"},description:"End customer or owner of one or more sites"},contact:{icon:"Users",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Contact",plural:"Contacts"},description:"Person associated with a customer or site"},program:{icon:"ClipboardText",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Program",plural:"Programs"},description:"Demand-response or virtual power plant program"},workflow:{icon:"FlowArrow",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Workflow",plural:"Workflows"},description:"Automated rule that runs in response to events"},collection:{icon:"Stack",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Collection",plural:"Collections"},description:"Named group of related entities or records"},board:{icon:"SquaresFour",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Board",plural:"Boards"},description:"Dashboard for monitoring metrics and devices"},report:{icon:"ChartLine",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Report",plural:"Reports"},description:"Saved analytics view or generated report"},event:{icon:"ClockCounterClockwise",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Event",plural:"Events"},description:"Recorded system event or logged activity"},alert:{icon:"Warning",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Alert",plural:"Alerts"},description:"Notification raised when attention is needed"},monitor:{icon:"Pulse",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Monitor",plural:"Monitors"},description:"Rule that watches a metric against a threshold"},command:{icon:"Play",category:"platform",archetype:"platform",detailPage:false,label:{singular:"Command",plural:"Commands"},description:"Control action issued to a connected device"},source:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SOURCE},label:{singular:"Source",plural:"Sources"},description:"Upstream feed where the network originates"},substation:{icon:"TextureSource",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SOURCE},label:{singular:"Substation",plural:"Substations"},description:"Facility that steps down transmission voltage"},capacitor:{icon:"TextureCapacitor",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CAPACITOR},label:{singular:"Capacitor",plural:"Capacitors"},description:"Capacitor bank for power-factor and voltage support"},switch:{icon:"TextureSwitchClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SWITCH},label:{singular:"Switch",plural:"Switches"},description:"Sectionalizing or disconnect switch on the line",states:{open:{icon:"TextureSwitch",color:"open"},closed:{icon:"TextureSwitchClosed",color:"closed"}}},sectionalizer:{icon:"TextureSectionalizerClosed",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.SWITCH},label:{singular:"Sectionalizer",plural:"Sectionalizers"},description:"Counts upstream recloser trips and opens to isolate a faulted section",states:{open:{icon:"TextureSectionalizerOpen",color:"open"},closed:{icon:"TextureSectionalizerClosed",color:"closed"}}},relay:{icon:"Cpu",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.NODE},label:{singular:"Relay",plural:"Relays"},description:"Microprocessor relay that senses faults and trips devices"},transformer:{icon:"TextureTransformer",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.TRANSFORMER},label:{singular:"Transformer",plural:"Transformers"},description:"Transformer that steps voltage up or down"},meter:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CONSUMER},label:{singular:"Meter",plural:"Meters"},description:"Revenue meter at the point of consumption"},consumer:{icon:"Gauge",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.CONSUMER},label:{singular:"Consumer",plural:"Consumers"},description:"Service point or customer premise on the grid"},singlePhaseOverheadLine:{icon:"TextureSinglePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Single-Phase Overhead Line",plural:"Single-Phase Overhead Lines"},description:"Overhead line carrying one phase conductor"},twoPhaseOverheadLine:{icon:"TextureTwoPhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Two-Phase Overhead Line",plural:"Two-Phase Overhead Lines"},description:"Overhead line carrying two phase conductors"},threePhaseOverheadLine:{icon:"TextureThreePhaseOverheadLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.OVERHEAD_LINE},label:{singular:"Three-Phase Overhead Line",plural:"Three-Phase Overhead Lines"},description:"Overhead line carrying three phase conductors"},singlePhaseUndergroundLine:{icon:"TextureSinglePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Single-Phase Underground Line",plural:"Single-Phase Underground Lines"},description:"Buried line carrying one phase conductor"},twoPhaseUndergroundLine:{icon:"TextureTwoPhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Two-Phase Underground Line",plural:"Two-Phase Underground Lines"},description:"Buried line carrying two phase conductors"},threePhaseUndergroundLine:{icon:"TextureThreePhaseUndergroundLine",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.UNDERGROUND_LINE},label:{singular:"Three-Phase Underground Line",plural:"Three-Phase Underground Lines"},description:"Buried line carrying three phase conductors"},motorSwitch:{icon:"Diamond",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.MOTOR},label:{singular:"Motor Switch",plural:"Motor Switches"},description:"Motor-operated switch or motor load element"},recloser:{icon:"TextureRecloser",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Recloser",plural:"Reclosers"},description:"Auto-reclosing device that clears transient faults",states:{open:{color:"open"},closed:{color:"closed"}}},fuse:{icon:"TextureFuse",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Fuse",plural:"Fuses"},description:"Fusible element providing overcurrent protection"},breaker:{icon:"TextureBreaker",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.OVERCURRENT_DEVICE},label:{singular:"Breaker",plural:"Breakers"},description:"Circuit breaker that interrupts fault current",states:{open:{color:"open"},closed:{color:"closed"}}},generator:{icon:"Wind",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.GENERATOR},label:{singular:"Generator",plural:"Generators"},description:"Distributed generation unit feeding the grid"},regulator:{icon:"TextureRegulator",category:"grid",archetype:"grid-energized",detailPage:true,properties:{statList:st.REGULATOR},label:{singular:"Regulator",plural:"Regulators"},description:"Voltage regulator that holds line voltage in range"},supportStructure:{icon:"TextureSupportStructure",category:"grid",archetype:"grid-line",detailPage:true,properties:{statList:st.NODE},label:{singular:"Support Structure",plural:"Support Structures"},description:"Structure carrying overhead line equipment"},battery:{icon:"BatteryHigh",category:"device",archetype:"device",detailPage:true,label:{singular:"Battery",plural:"Batteries"},description:"Behind-the-meter battery or storage system",fusedMetricId:"soc",fields:{headlineMetrics:[{id:"power",label:"device.battery.fields.power",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"soc",label:"device.battery.fields.soc",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"backupReserve",label:"device.battery.fields.backupReserve",source:{kind:"state",path:"state.backupReserve"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"loadPower",label:"device.battery.fields.loadPower",source:{kind:"state",path:"state.loadPower"},format:{type:"power",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.battery.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"},secondaryState:{label:"device.battery.fields.gridState",fieldPath:"state.gridStatus",mapping:{importing:"importing",exporting:"exporting",idle:"importing",unknown:"importing"},fallback:"importing"}}},evCharger:{icon:"ChargingStation",category:"device",archetype:"device",detailPage:true,label:{singular:"EV Charger",plural:"EV Chargers"},description:"Electric-vehicle charging station or port",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.evCharger.fields.power",source:{kind:"state",path:"state.chargerWattage"},format:{type:"power",decimals:1},icon:"Lightning"},{id:"isPluggedIn",label:"device.evCharger.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"},{id:"voltage",label:"device.evCharger.fields.voltage",source:{kind:"state",path:"state.chargerVoltage"},format:{type:"voltage",decimals:1},icon:"Lightning"},{id:"current",label:"device.evCharger.fields.current",source:{kind:"state",path:"state.chargerCurrent"},format:{type:"current",decimals:1},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.evCharger.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},inverter:{icon:"Sun",category:"device",archetype:"device",detailPage:true,label:{singular:"Solar / Inverter",plural:"Solar / Inverters"},description:"Solar PV inverter and its connected array",fusedMetricId:"power",fields:{headlineMetrics:[{id:"power",label:"device.inverter.fields.power",source:{kind:"state",path:"state.power"},format:{type:"power",decimals:0},icon:"Lightning"},{id:"gridPower",label:"device.inverter.fields.gridPower",source:{kind:"state",path:"state.gridPower"},format:{type:"power",decimals:0},icon:"GridFour"},{id:"generatedEnergy",label:"device.inverter.fields.generatedEnergy",source:{kind:"state",path:"state.generatedEnergy"},format:{type:"energy",decimals:1},icon:"Lightning"},{id:"lifetimeEnergyGenerated",label:"device.inverter.fields.lifetimeEnergyGenerated",source:{kind:"state",path:"state.lifetimeEnergyGenerated"},format:{type:"energy",decimals:0},icon:"Lightning"}]},stateRules:{primaryState:{label:"device.inverter.fields.gridStatus",fieldPath:"state.gridStatus",mapping:{exporting:"exporting",importing:"importing",idle:"idle"},fallback:"unknown"}}},thermostat:{icon:"Thermometer",category:"device",archetype:"device",detailPage:true,label:{singular:"Thermostat",plural:"Thermostats"},description:"Smart thermostat or connected HVAC control",fusedMetricId:"ambientTemperature",fields:{headlineMetrics:[{id:"ambientTemperature",label:"device.thermostat.fields.ambientTemperature",source:{kind:"state",path:"state.ambientTemperature"},format:{type:"temperature",decimals:0},icon:"Thermometer"},{id:"heatTarget",label:"device.thermostat.fields.heatTarget",source:{kind:"state",path:"state.heatTarget"},format:{type:"temperature",decimals:0},icon:"Flame"},{id:"coolTarget",label:"device.thermostat.fields.coolTarget",source:{kind:"state",path:"state.coolTarget"},format:{type:"temperature",decimals:0},icon:"Snowflake"},{id:"fanMode",label:"device.thermostat.fields.fanMode",source:{kind:"state",path:"state.fanMode"},format:{type:"text"}}]},stateRules:{primaryState:{label:"device.thermostat.fields.operatingMode",fieldPath:"state.operatingMode",mapping:{heat:"heat",cool:"cool",auto:"auto",off:"off",eco:"eco",unknown:"unknown"},fallback:"unknown"}}},vehicle:{icon:"Car",category:"device",archetype:"device",detailPage:true,label:{singular:"EV",plural:"EVs"},description:"Electric vehicle managed as a flexible load",fusedMetricId:"chargePercentage",fields:{headlineMetrics:[{id:"chargePercentage",label:"device.vehicle.fields.chargePercentage",source:{kind:"state",path:"state.chargePercentage"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"range",label:"device.vehicle.fields.range",source:{kind:"state",path:"state.range"},format:{type:"distance",unit:"mi",decimals:0},icon:"GasPump"},{id:"chargeLimit",label:"device.vehicle.fields.chargeLimit",source:{kind:"state",path:"state.chargeLimit"},format:{type:"percentage",decimals:0},icon:"BatteryCharging"},{id:"isPluggedIn",label:"device.vehicle.fields.isPluggedIn",source:{kind:"state",path:"state.isPluggedIn"},format:{type:"boolean",trueText:"Yes",falseText:"No"},icon:"Plug"}]},stateRules:{primaryState:{label:"device.vehicle.fields.status",fieldPath:"state.chargingState",mapping:{charging:"charging",discharging:"discharging",idle:"idle",unknown:"unknown"},fallback:"unknown"}}},waterHeater:{icon:"Drop",category:"device",archetype:"device",detailPage:true,label:{singular:"Water Heater",plural:"Water Heaters"},description:"Connected or smart electric water heater"}},RD={source:"SOURCE",substation:"SOURCE",capacitor:"CAPACITOR",switch:"SWITCH",sectionalizer:"SWITCH",relay:"NODE",transformer:"TRANSFORMER",meter:"CONSUMER",consumer:"CONSUMER",singlePhaseOverheadLine:"OVERHEAD_LINE",twoPhaseOverheadLine:"OVERHEAD_LINE",threePhaseOverheadLine:"OVERHEAD_LINE",singlePhaseUndergroundLine:"UNDERGROUND_LINE",twoPhaseUndergroundLine:"UNDERGROUND_LINE",threePhaseUndergroundLine:"UNDERGROUND_LINE",motorSwitch:"MOTOR",recloser:"OVERCURRENT_DEVICE",fuse:"OVERCURRENT_DEVICE",breaker:"OVERCURRENT_DEVICE",generator:"GENERATOR",regulator:"REGULATOR",supportStructure:"NODE"};function bc(e){return oa[e]}function MD(e){return oa[e].icon}function ED(e,t=false){return t?oa[e].label.plural:oa[e].label.singular}function DD(e){return oa[e].category}var LD={min:2,max:4};function AD(e){let t=oa[e];if(!t)throw new Error(`archetypeFor: unknown entity type "${String(e)}"`);return t.archetype}function ID(e){return bc(e).detailPage}function FD(e){return (bc(e).fields?.headlineMetrics.length??0)>0}function _y(e){return bc(e).properties?.statList??[]}function BD(e){return _y(e).length>0}function VD({formId:e="dialog-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,title:c,...l}){return jsxRuntime.jsx(kr,{title:c,primaryAction:{label:r,onPress:()=>{let u=document.getElementById(e);u&&u.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...l,children:jsxRuntime.jsx(Ia,{id:e,onSubmit:t,children:s})})}function zD({formId:e="drawer-form",onSubmit:t,primaryLabel:r="Save",secondaryLabel:o="Cancel",onCancel:n,primaryVariant:a,secondaryVariant:i="secondary",children:s,...c}){return jsxRuntime.jsx(Ei,{primaryAction:{label:r,onPress:()=>{let d=document.getElementById(e);d&&d.requestSubmit();},variant:a},secondaryAction:n?{label:o,onPress:n,variant:i}:void 0,...c,children:jsxRuntime.jsx(Ia,{id:e,onSubmit:t,className:"mt-2",children:s})})}function HD({align:e="end",className:t,...r}){return jsxRuntime.jsx("div",{...r,className:tailwindMerge.twMerge("flex gap-2",e==="start"?"justify-start":e==="between"?"justify-between":"justify-end",t)})}var UD={sm:"gap-2",md:"gap-4",lg:"gap-6"};function KD(e){if(!e)return "";let t=e.base?`grid-cols-${e.base}`:"",r=e.md?`md:grid-cols-${e.md}`:"",o=e.lg?`lg:grid-cols-${e.lg}`:"";return [t,r,o].filter(Boolean).join(" ")}function YD({cols:e={base:1},gap:t="lg",className:r,...o}){return jsxRuntime.jsx("div",{...o,className:tailwindMerge.twMerge("grid",KD(e),UD[t],r)})}function jD({title:e,description:t,showDivider:r,className:o,children:n,...a}){return jsxRuntime.jsxs("section",{...a,className:tailwindMerge.twMerge("flex flex-col",o),children:[(e||t)&&jsxRuntime.jsxs("div",{className:"flex flex-col gap-1 mb-6",children:[typeof e=="string"?jsxRuntime.jsx(Qt,{tag:"h3",size:"sm",children:e}):e,t?jsxRuntime.jsx(Te,{size:"lg",children:t}):null]}),jsxRuntime.jsx("div",{className:"flex flex-col gap-6",children:n}),r&&jsxRuntime.jsx("hr",{className:"mt-2 border-border-muted"})]})}function qD(){return jsxRuntime.jsx("hr",{className:"border-border-muted"})}function QD({steps:e,currentStepId:t,onStepClick:r,className:o}){let n=e.findIndex(a=>a.id===t);return jsxRuntime.jsx("nav",{"aria-label":"Progress",className:tailwindMerge.twMerge("w-full",o),children:jsxRuntime.jsx("div",{className:"relative mb-12",children:jsxRuntime.jsx("ol",{className:"relative flex items-start justify-between",children:e.map((a,i)=>{let s=a.id===t,c=i<n,l=r&&(c||s);return jsxRuntime.jsxs("li",{className:"relative flex flex-col items-center",style:{flex:`1 1 ${100/e.length}%`},children:[jsxRuntime.jsx("button",{type:"button",disabled:!l,onClick:()=>l&&r?.(a.id),className:tailwindMerge.twMerge("relative z-10 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors bg-background-body",c&&"border-action-primary bg-action-primary text-text-inverse hover:bg-action-primary/90",s&&"border-action-primary bg-background-body text-action-primary",!c&&!s&&"border-border-default bg-background-body text-text-secondary",l&&"cursor-pointer",!l&&"cursor-default"),"aria-current":s?"step":void 0,children:c?jsxRuntime.jsx(B,{name:"Check",size:20,weight:"bold"}):jsxRuntime.jsx("span",{className:"text-sm font-semibold",children:i+1})}),i<e.length-1&&jsxRuntime.jsx("div",{className:"absolute top-5 h-0.5 transition-colors",style:{left:"50%",width:"100%",marginLeft:"20px",backgroundColor:i<n?"var(--color-action-primary)":"var(--color-border-default)"}}),jsxRuntime.jsxs("div",{className:"mt-3 flex flex-col items-center text-center w-32",children:[jsxRuntime.jsx("span",{className:tailwindMerge.twMerge("text-sm font-medium",s&&"text-text-default",c&&"text-text-primary",!s&&!c&&"text-text-secondary"),children:a.title}),a.description&&jsxRuntime.jsx("span",{className:"mt-1 text-xs text-text-secondary",children:a.description})]})]},a.id)})})})})}function _D({formId:e,show:t,isSubmitting:r,onCancel:o,primaryLabel:n="Save changes",secondaryLabel:a="Cancel",className:i}){return t?jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("fixed inset-x-0 bottom-0 z-40 border-t border-border-muted bg-background-surface/95 backdrop-blur supports-[backdrop-filter]:bg-background-surface/70",i),children:jsxRuntime.jsxs("div",{className:"mx-auto flex max-w-screen-lg items-center justify-between gap-3 p-3",children:[jsxRuntime.jsx("div",{className:"text-sm text-text-secondary",children:"You have unsaved changes"}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx(_,{variant:"secondary",onPress:o,children:a}),jsxRuntime.jsx(_,{type:"submit",form:e,isDisabled:!!r,children:r?"Saving...":n})]})]})}):null}function $D({when:e,message:t="You have unsaved changes. Leave anyway?"}){return Oe__namespace.useEffect(()=>{if(!e)return;let r=o=>(o.preventDefault(),o.returnValue=t,t);return window.addEventListener("beforeunload",r),()=>window.removeEventListener("beforeunload",r)},[e,t]),null}function eL({steps:e,initialStepId:t,canNavigate:r}){if(e.length===0)throw new Error("useWizard: steps array cannot be empty");let[o,n]=Oe__namespace.useState(t||e[0].id),a=e.findIndex(u=>u.id===o),i=a>0,s=a<e.length-1,c=async u=>u===o?true:r&&!await r(o,u)?false:(n(u),true);return {steps:e,currentStepId:o,setCurrentStepId:c,next:async()=>!s||a===-1?false:c(e[a+1].id),prev:async()=>!i||a===-1?false:c(e[a-1].id),hasNext:s,hasPrev:i,stepIndex:a}}function _i(e,t){return t.split(".").reduce((r,o)=>r?.[o],e)}function rL(e,t){let r=_i(e,t.field),o=t.value;switch(t.operator){case "eq":return r===o;case "neq":return r!==o;case "in":return Array.isArray(o)?Array.isArray(r)?r.some(n=>o.includes(n)):o.includes(r):false;case "nin":return Array.isArray(o)?Array.isArray(r)?!r.some(n=>o.includes(n)):!o.includes(r):false;case "gt":return r instanceof Date&&typeof o=="string"?r>new Date(o):r>o;case "gte":return r instanceof Date&&typeof o=="string"?r>=new Date(o):r>=o;case "lt":return r instanceof Date&&typeof o=="string"?r<new Date(o):r<o;case "lte":return r instanceof Date&&typeof o=="string"?r<=new Date(o):r<=o;case "contains":return typeof r!="string"?false:r.toLowerCase().includes(String(o).toLowerCase());case "startsWith":return typeof r!="string"?false:r.toLowerCase().startsWith(String(o).toLowerCase());case "endsWith":return typeof r!="string"?false:r.toLowerCase().endsWith(String(o).toLowerCase());default:return false}}function iv(e,t){if(t.conditions.length===0)return true;let r=t.conditions.map(o=>"conditions"in o?iv(e,o):rL(e,o));return t.logic==="AND"?r.every(Boolean):r.some(Boolean)}function oL(e,t){return !t||t.conditions.length===0?e:e.filter(r=>iv(r,t))}function nL(e,t,r){if(e==null&&t==null)return 0;if(e==null)return r==="asc"?1:-1;if(t==null)return r==="asc"?-1:1;if(e instanceof Date&&t instanceof Date){let o=e.getTime()-t.getTime();return r==="asc"?o:-o}if(typeof e=="string"&&typeof t=="string"){let o=e.toLowerCase().localeCompare(t.toLowerCase());return r==="asc"?o:-o}return e<t?r==="asc"?-1:1:e>t?r==="asc"?1:-1:0}function aL(e,t){return t?[...e].sort((r,o)=>{let n=_i(r,t.field),a=_i(o,t.field);return nL(n,a,t.direction)}):e}function iL(e,t){if(!t||!t.query.trim())return e;let{query:r,fields:o,fuzzy:n=true,threshold:a=.3}=t;if(n)return new tL__default.default(e,{keys:o,threshold:a,ignoreLocation:true,includeScore:true}).search(r).map(l=>l.item);let i=r.toLowerCase();return e.filter(s=>o.some(c=>{let l=_i(s,c);return l==null?false:String(l).toLowerCase().includes(i)}))}function sL(e,t){let r={};for(let o of t){if(r[o.field]={},o.values)for(let n of o.values)r[o.field][String(n.value)]=0;for(let n of e){let a=_i(n,o.field);if(a!=null)if(Array.isArray(a))for(let i of a){let s=String(i);r[o.field][s]=(r[o.field][s]||0)+1;}else {let i=String(a);r[o.field][i]=(r[o.field][i]||0)+1;}}}return r}function Dp({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){let a=iL(e,o||null);a=oL(a,t||null);let i=sL(a,n);return a=aL(a,r||null),{data:a,facetCounts:i,resultCount:a.length}}function hc({data:e,filters:t,sort:r,search:o,facetConfigs:n=[]}){return Oe.useMemo(()=>Dp({data:e,filters:t,sort:r,search:o,facetConfigs:n}),[e,t,r,o,n])}function yc({filters:e,sort:t,search:r,onStateChange:o,searchDebounce:n=300}){let a=Vo(r,n),i=Oe.useRef(true);Oe.useEffect(()=>{if(i.current){i.current=false;return}o({filters:e,sort:t,search:a});},[e,t,a,o]);}function sv(e){return e.mode==="client"?hc({data:e.data,filters:e.filters,sort:e.sort,search:e.search,facetConfigs:e.facetConfigs}):(yc({filters:e.filters,sort:e.sort,search:e.search,onStateChange:e.onStateChange,searchDebounce:e.searchDebounce}),{data:e.data,facetCounts:e.facetCounts||{},resultCount:e.resultCount??e.data.length})}var lv=Op(su());function pL(e,t,r=true){let o=e;if(r){let n=new Date().toISOString().replace(/[:.]/g,"-").slice(0,-5);return `${o}-${n}.${t}`}return `${o}.${t}`}function mL(e,t){return t.accessor?typeof t.accessor=="function"?t.accessor(e):e[t.accessor]:null}function cv(e,t){let r=mL(t,e);return e.exportValue?e.exportValue(r,t)??"":r==null?"":r instanceof Date?r.toISOString():typeof r=="object"?JSON.stringify(r):r}function Lp(e){return e.filter(t=>t.exportable!==false)}function dv(e){let t=e.map(n=>n.exportLabel||n.label),r=new Set,o=[];for(let n of t)r.has(n)?o.includes(n)||o.push(n):r.add(n);if(o.length>0)throw new Error(`Duplicate export headers found: ${o.join(", ")}. Use exportLabel to provide unique headers.`)}async function Ap(e){let{columns:t,data:r,metadata:o={}}=e;try{let n=Lp(t);if(n.length===0)throw new Error("No exportable columns found");dv(n);let a=r.map(l=>{let d={};for(let u of n){let m=u.exportLabel||u.label;d[m]=cv(u,l);}return d}),i=dk__default.default.unparse(a,{header:!0,skipEmptyLines:!0}),s=new Blob([i],{type:"text/csv;charset=utf-8;"}),c=pL(o.filename||"table-data","csv",o.timestamp!==!1);(0,lv.saveAs)(s,c);}catch(n){throw new Error(`CSV export failed: ${n instanceof Error?n.message:"Unknown error"}`)}}function fL(e){let{columns:t,data:r}=e,o=Lp(t);return dv(o),r.map(n=>{let a={};for(let i of o){let s=i.exportLabel||i.label;a[s]=cv(i,n);}return a})}function gL(e){return Lp(e).map(t=>t.exportLabel||t.label)}function uv({columns:e,data:t,metadata:r}){let n=e.filter(i=>i.exportable!==false).length>0&&t.length>0;return {exportCSV:Oe.useCallback(async()=>{try{await Ap({columns:e,data:t,metadata:r});}catch(i){throw console.error("Table export failed:",i),i}},[e,t,r]),canExport:n}}function Doe(e){switch(e){case "charging":case "on":return "success";case "discharging":return "warning";case "heat":case "cool":return "info";case "off":case "idle":case "eco":case "auto":return "neutral";default:return "neutral"}}Object.defineProperty(exports,"DialogTrigger",{enumerable:true,get:function(){return reactAriaComponents.DialogTrigger}});exports.ABSENT_GRID_FIELDS=PD;exports.ActionCell=Jb;exports.ActionMenu=fa;exports.ActivityFeed=Cd;exports.ActivityFeedGroup=xs;exports.ActivityItem=hs;exports.Alert=cf;exports.AppShell=bf;exports.AreaSeries=Jo;exports.AutoMobileRenderer=wl;exports.Autocomplete=Ps;exports.Avatar=xo;exports.BREAKPOINTS=ln;exports.Badge=nt;exports.BadgeCell=jb;exports.Banner=Ms;exports.BarSeries=Hs;exports.BooleanCell=qb;exports.BrandProvider=Qp;exports.BreadcrumbItem=Ds;exports.Breadcrumbs=Es;exports.Button=_;exports.CUSTOM_ICON_REGISTRY=ia;exports.Calendar=ha;exports.Card=Ue;exports.CardContent=md;exports.CardFooter=fd;exports.CardHeader=ud;exports.CardMedia=pd;exports.CardMobileRenderer=Nl;exports.CarouselAutoplayTrigger=Yf;exports.CarouselControl=Wf;exports.CarouselIndicator=Ud;exports.CarouselIndicatorGroup=Kf;exports.CarouselItem=Hf;exports.CarouselItemGroup=Of;exports.CarouselNextTrigger=Uf;exports.CarouselPrevTrigger=Gf;exports.CarouselProgressText=Jf;exports.CarouselRoot=zf;exports.CategoryBarChart=wg;exports.ChartAxis=Mr;exports.ChartBottomBar=Ta;exports.ChartContainer=Gg;exports.ChartContext=Rr;exports.ChartEventMarkers=Js;exports.ChartEventSpans=Xs;exports.ChartTooltip=Xo;exports.Checkbox=Sn;exports.CheckboxGroup=Kd;exports.Chip=eo;exports.ChipInputField=$f;exports.ClearButton=ni;exports.CodeEditor=rg;exports.Collapse=ya;exports.CollapseContent=Ko;exports.CollapseHeader=Uo;exports.CollapseItem=Go;exports.ColorField=fN;exports.ColorModeProvider=sm;exports.CommandPalette=zx;exports.Confirm=lg;exports.ConnectionStatusBadge=cg;exports.ContactCard=dg;exports.ContactMetaCell=Zb;exports.ContactMetaDisplay=Bs;exports.ContainerQueryProvider=mg;exports.CopyToClipboard=Oo;exports.CustomCell=_b;exports.DEFAULT_MAP_TYPE=$l;exports.DataControls=Bb;exports.DataTable=Tx;exports.DateCell=$b;exports.DateField=Ob;exports.DateRangePicker=sl;exports.Description=Te;exports.DeviceHealthBadge=Rx;exports.DeviceMetaCell=tx;exports.DeviceMetaDisplay=ml;exports.DeviceStateBadge=zn;exports.DeviceStateCell=nx;exports.DeviceStateWithMetric=bl;exports.DeviceTypeIcon=Ex;exports.Dialog=kr;exports.DialogForm=VD;exports.DialogHeader=Ht;exports.Drawer=Ei;exports.DrawerForm=zD;exports.ENTITY_CATEGORY_CONFIG=TD;exports.ENTITY_CONFIG=oa;exports.EmptyState=_s;exports.EnrollmentStatusBadge=Lx;exports.ErrorBoundary=zr;exports.FieldError=be;exports.FieldGroup=yf;exports.FileUpload=Ix;exports.FilterChips=Vb;exports.FilterDialog=Ub;exports.FirmwareVersionBadge=Bx;exports.Form=Ia;exports.FormActions=HD;exports.FormDivider=qD;exports.FormGrid=YD;exports.FormSection=jD;exports.FormStepper=QD;exports.FormatRegistry=oe;exports.FormattedCell=ix;exports.FunnelSeries=Jg;exports.GRID_ELEMENT_TYPE_BY_ENTITY=RD;exports.GRID_STATE_COLORS=kD;exports.GRID_STAT_LIST=st;exports.GlobalSearch=Wx;exports.Grid=qu;exports.GridStateBadge=gl;exports.HEADLINE_METRIC_BOUNDS=LD;exports.Heading=Qt;exports.HierarchyExplorer=gh;exports.HorizontalBarCell=Vu;exports.HoverCard=vR;exports.Icon=B;exports.InfiniteScrollIndicator=Nr;exports.Input=Ns;exports.InputWrapper=yt;exports.InteractiveMap=Gi;exports.Kpi=Ch;exports.KpiGroup=op;exports.Label=ze;exports.LineSeries=Pn;exports.List=Ph;exports.ListBox=HR;exports.ListBoxItem=_t;exports.ListItem=Mh;exports.ListPane=Eh;exports.Loader=go;exports.Logo=ba;exports.MAP_TYPES=ny;exports.Meter=cy;exports.MiniBarCell=zu;exports.ModalBackdrop=cr;exports.Notice=nc;exports.NoticeContainer=ac;exports.NoticeProvider=uy;exports.NumberCell=ux;exports.NumberField=ki;exports.PageBanner=Ef;exports.PageLayout=Qn;exports.PercentBarCell=Ou;exports.PlaceSearch=yy;exports.Popover=lt;exports.ProgressBar=Cy;exports.Prose=Sy;exports.Radio=Py;exports.RadioCard=wy;exports.RadioCardGroup=Ny;exports.RadioGroup=Ty;exports.RangeCalendar=Ma;exports.ResultsCount=Ci;exports.RichTextEditor=Ey;exports.SKELETON_SIZES=_o;exports.SOURCE_UNIT_TO_WH=Xc;exports.SaveBar=_D;exports.SearchControl=In;exports.SearchEmptyState=Gx;exports.SearchLoadingState=Kx;exports.SearchResultGroup=Jx;exports.SearchResultItem=Xx;exports.SearchResultsList=jx;exports.SearchTrigger=Qx;exports.Section=Ua;exports.SectionNav=lc;exports.SegmentedControl=tl;exports.Select=bo;exports.SelectCell=mx;exports.SideNav=vs;exports.SiteCard=Dy;exports.SiteContactCard=Ay;exports.SiteMetaCell=gx;exports.SiteMetaDisplay=yl;exports.Skeleton=J;exports.Slider=Iy;exports.SortControl=Si;exports.SparklineCell=Hu;exports.SplitPane=gc;exports.StackNav=Cs;exports.StatList=Ll;exports.StaticMap=Ga;exports.Switch=ll;exports.Tab=mc;exports.TabList=pc;exports.TabPanel=by;exports.Tabs=uc;exports.TextArea=Hy;exports.TextAreaWithChips=Ky;exports.TextCell=yx;exports.TextField=Lr;exports.TextLink=Ze;exports.TiledTimeSeriesChart=Qs;exports.TiledTimeSeriesExplorer=Db;exports.TimeControls=rl;exports.TimeField=Jy;exports.Timeline=Xy;exports.TimelineItem=jy;exports.ToggleButton=Zy;exports.Tooltip=Zt;exports.TopNav=oi;exports.Tray=ct;exports.UnsavedChangesPrompt=$D;exports.activeDeviceStates=_1;exports.addFilterCondition=Zo;exports.applyDataOperations=Dp;exports.archetypeFor=AD;exports.assembleSeries=db;exports.autoScaleCurrent=IC;exports.autoScaleDistance=bm;exports.autoScaleEnergy=vm;exports.autoScalePower=GC;exports.autoScaleResistance=UC;exports.autoScaleVoltage=QC;exports.baselineFromPoint=KN;exports.camelCaseToWords=Bm;exports.capitalize=Im;exports.celsiusToFahrenheit=KC;exports.celsiusToKelvin=u5;exports.centimetersToInches=JA;exports.clearColorCache=rs;exports.createCategoryColorMap=bC;exports.createEmptyFilter=wi;exports.createFilter=g1;exports.createFilters=b1;exports.createFormat=z5;exports.createTextureIcon=rt;exports.createTiledCameraSyncGroup=Xg;exports.createXScale=ru;exports.createYScale=di;exports.csvUnitFor=ad;exports.csvValueFor=Om;exports.defaultMargin=Ie;exports.deviceStateLabels=$1;exports.deviceStateMetricFormats=xU;exports.emptyStore=ub;exports.entityHasDetailPage=ID;exports.entityHasStatList=BD;exports.entityShowsNow=FD;exports.enumToSentenceCase=jC;exports.exportChart=cu;exports.exportTableAsCSV=Ap;exports.fahrenheitToCelsius=YC;exports.fahrenheitToKelvin=p5;exports.feetToMeters=VA;exports.feetToMiles=HA;exports.filterToChips=x1;exports.formatBoolean=lm;exports.formatCapacity=gA;exports.formatComponentValue=jr;exports.formatCurrency=mm;exports.formatCurrent=zc;exports.formatDate=fm;exports.formatDistance=xm;exports.formatEmptyValue=ul;exports.formatEnergy=jc;exports.formatFieldValue=Vr;exports.formatInternationalPhone=qc;exports.formatNumber=pm;exports.formatPercent=dm;exports.formatPhone=Cm;exports.formatPhoneNumber=ca;exports.formatPower=$c;exports.formatPowerRating=bA;exports.formatResistance=td;exports.formatTemperature=Mm;exports.formatText=zm;exports.formatUSPhone=is;exports.formatVoltage=nd;exports.getBadgeClasses=Kb;exports.getBooleanBadgeVariant=Yb;exports.getCellAlignmentClasses=Lu;exports.getCellContainerClasses=Me;exports.getCellTextClasses=Ar;exports.getContrastingTextColor=xC;exports.getDateParts=DA;exports.getDefaultChartColor=qa;exports.getDefaultColors=_p;exports.getDeviceStateDisplayLabel=Fu;exports.getDeviceStateLabel=Fu;exports.getEntityCategory=DD;exports.getEntityConfig=bc;exports.getEntityIcon=MD;exports.getEntityLabel=ED;exports.getEntityStatList=_y;exports.getEventColor=yo;exports.getExportFormatName=gk;exports.getExportHeaders=gL;exports.getFieldGroupStyles=bS;exports.getFilterFields=Bn;exports.getGridStateLabel=ox;exports.getInputBackgroundStyles=hf;exports.getInputBaseStyles=zt;exports.getInputStateStyles=zo;exports.getLinkClasses=Au;exports.getNumericColorClasses=pl;exports.getResolvedColor=Pt;exports.getSkeletonSize=nr;exports.getStateTone=Doe;exports.getThemeCategoricalColors=cn;exports.getYFormatSettings=Hr;exports.gridStateLabels=tP;exports.inchesToCentimeters=YA;exports.isActiveDeviceState=Iu;exports.isActiveState=Iu;exports.isCustomPinsLayer=pp;exports.isExportSupported=fk;exports.isFilterEmpty=il;exports.isGeoJsonLayer=up;exports.isLightColor=$p;exports.isNil=me;exports.isRasterLayer=mp;exports.isVectorLayer=dp;exports.kelvinToCelsius=JC;exports.kelvinToFahrenheit=m5;exports.kilometersToMiles=OA;exports.layer=cp;exports.mapValuesToCategoricalColors=Mc;exports.metersToFeet=BA;exports.metersToMiles=WA;exports.metersToYards=KA;exports.milesToFeet=gm;exports.milesToKilometers=zA;exports.milesToMeters=GA;exports.parseBoolean=Lo;exports.pickEnergyUnit=Jc;exports.prepareTableDataForExport=fL;exports.registerPhosphorIcon=sy;exports.removeFilterCondition=Fn;exports.resolveValue=Se;exports.snakeCaseToWords=Vm;exports.telemetryPresetRanges=$s;exports.temperatureStringToSymbol=Nm;exports.tierForViewport=Zs;exports.tileIndexAt=hT;exports.tileKey=rr;exports.tileReducer=pb;exports.tilesForViewport=jo;exports.toA=TA;exports.toActiveInactive=kC;exports.toAmps=ns;exports.toBoolean=Do;exports.toCelsius=Tm;exports.toCentimeters=OC;exports.toCheckmark=PC;exports.toCompactNumber=DC;exports.toCurrency=um;exports.toCustomDateFormat=zC;exports.toDateString=FC;exports.toEnabledDisabled=wC;exports.toFahrenheit=km;exports.toFeet=Wc;exports.toFloat=MC;exports.toFormattedNumber=EC;exports.toFullDateTime=BC;exports.toGW=n5;exports.toGWh=ym;exports.toGigawatts=_c;exports.toISOString=VC;exports.toInches=WC;exports.toInteger=RC;exports.toKA=PA;exports.toKV=C5;exports.toKW=r5;exports.toKelvin=Pm;exports.toKiloamps=Vc;exports.toKilohms=Sm;exports.toKilometers=Hc;exports.toKilovolts=od;exports.toKilowatts=Qc;exports.toLowerCase=Dm;exports.toMA=kA;exports.toMV=y5;exports.toMW=o5;exports.toMWh=hm;exports.toMegawatts=Zc;exports.toMegohms=wm;exports.toMeters=Oc;exports.toMiles=Gc;exports.toMilliamps=Bc;exports.toMillimeters=HC;exports.toMilliohms=ed;exports.toMillivolts=rd;exports.toNauticalMiles=FA;exports.toOhms=ls;exports.toOnOff=NC;exports.toPercentage=cm;exports.toRelativeTime=as;exports.toScientificNotation=LC;exports.toSecret=qC;exports.toSentenceCase=Lm;exports.toTemperature=Rm;exports.toTitleCase=Am;exports.toTrueFalse=TC;exports.toUpperCase=Em;exports.toV=v5;exports.toVolts=us;exports.toW=t5;exports.toWatts=ss;exports.toWh=Kc;exports.toYards=Uc;exports.tokWh=Yc;exports.truncateEnd=ds;exports.truncateMiddle=da;exports.truncateStart=cs;exports.typeRole=gt;exports.typographyRole=qr;exports.ucFirst=Fm;exports.useBreakpoint=Xt;exports.useChartContext=Tn;exports.useClientDataControls=hc;exports.useColorMode=Vt;exports.useComponentFormatter=vA;exports.useContainerBreakpoint=ug;exports.useDataControls=sv;exports.useDebounce=Vo;exports.useElementSize=xa;exports.useInfiniteScroll=Fo;exports.useInputFocus=Pr;exports.useLocalStorage=Ul;exports.useMediaQuery=Jt;exports.useNotice=my;exports.useServerDataControls=yc;exports.useTableExport=uv;exports.useTileWindow=yb;exports.useTiledTimeSeries=vu;exports.useWizard=eL;exports.wrapWithLink=ao;exports.yardsToMeters=UA;//# sourceMappingURL=index.cjs.map
48
48
  //# sourceMappingURL=index.cjs.map