@twentyfirstmedia/elements 0.3.0 → 0.3.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.
- package/dist/elements.global.js +1 -1
- package/dist/elements.js +1 -1
- package/package.json +2 -2
package/dist/elements.global.js
CHANGED
|
@@ -27,7 +27,7 @@ ${Ba(i('[data-theme="system"]'),f," ")}}
|
|
|
27
27
|
`),a=String(e.after||"").split(`
|
|
28
28
|
`),l=[],i=0,s=0;for(;i<n.length||s<a.length;)n[i]===a[s]?(l.push([" ",n[i]]),i++,s++):s<a.length&&n.indexOf(a[s],i)<0?(l.push(["+",a[s]]),s++):i<n.length?(l.push(["-",n[i]]),i++):(l.push(["+",a[s]]),s++);return(0,T.jsxs)("div",{className:"tf-diff",children:[(0,T.jsxs)("div",{className:"tf-diff-head",children:[(0,T.jsxs)("div",{className:"tf-option-text",children:[(0,T.jsx)("b",{children:e.title}),(0,T.jsx)("small",{children:[e.versions,e.by].filter(Boolean).join(" \xB7 ")})]}),(0,T.jsxs)("span",{className:"tf-row",style:{flexWrap:"nowrap"},children:[e.onDiscard&&(0,T.jsx)(K,{size:"sm",variant:"ghost",onClick:e.onDiscard,children:e.discardLabel||t.discardOverride}),e.onPromote&&(0,T.jsx)(K,{size:"sm",variant:"soft",icon:"branch",onClick:e.onPromote,children:e.promoteLabel||t.moveToCode})]})]}),(0,T.jsx)("pre",{className:"tf-diff-body",children:l.map((c,r)=>(0,T.jsxs)("span",{className:c[0]==="+"?"add":c[0]==="-"?"del":"",children:[(0,T.jsx)("i",{children:c[0]}),c[1],`
|
|
29
29
|
`]},r))})]})}var Ax={schedule:"clock",event:"zap",webhook:"link",mail:"mail"};function Wg(e){let t=M(Ot);return(0,T.jsx)("div",{className:"tf-triggers",children:(e.items||[]).map(n=>(0,T.jsxs)("div",{className:p("tf-trigger",n.enabled===!1&&"off"),children:[(0,T.jsx)(ce,{icon:Ax[n.type]||"zap",tint:n.enabled===!1?"plain":"sky"}),(0,T.jsxs)("span",{className:"tf-option-text",children:[(0,T.jsx)("b",{children:n.rule}),(0,T.jsx)("small",{children:[n.agent,n.by].filter(Boolean).join(" \xB7 ")})]}),(0,T.jsx)("span",{className:"tf-trigger-next",children:n.next}),e.onToggle&&(0,T.jsx)("input",{type:"checkbox",role:"switch",className:"tf-switch",checked:n.enabled!==!1,"aria-label":typeof n.rule=="string"?n.rule:void 0,onChange:()=>{e.onToggle?.(n)}}),e.onRun&&(0,T.jsx)(et,{label:t.runNow,children:(0,T.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-soft tf-iconbtn-sm","aria-label":t.runNow,onClick:()=>{e.onRun?.(n)},children:(0,T.jsx)(x,{name:"play"})})})]},n.id))})}function ev(e){let{locale:t}=J(),n=e.from!=null?e.from:6,a=e.to!=null?e.to:22,l=[];for(let c=n;c<a;c++)l.push(c);let i=e.days||Hu(t),s=32;return(0,T.jsxs)("div",{className:"tf-sched",style:{"--rows":l.length,"--row-h":s+"px"},children:[(0,T.jsx)("span",{}),i.map((c,r)=>(0,T.jsx)("span",{className:"tf-sched-day",children:c},r)),(0,T.jsx)("div",{className:"tf-sched-times",children:l.map(c=>(0,T.jsx)("span",{children:(c<10?"0":"")+c+":00"},c))}),i.map((c,r)=>(0,T.jsx)("div",{className:"tf-sched-col",children:(e.events||[]).filter(u=>u.day===r).map((u,o)=>{let f=(u.start-n)*s,d=Math.max(s/2,(u.end-u.start)*s-4);return(0,T.jsxs)("button",{type:"button",className:p("tf-sched-ev","tf-bg-"+(u.tint||"sky"),u.self&&"self"),style:{top:f,height:d},title:u.label,onClick:()=>{e.onOpen&&e.onOpen(u)},children:[(0,T.jsx)("b",{children:u.label}),d>30&&u.sub&&(0,T.jsx)("small",{children:u.sub})]},o)})},r))]})}function tv(e){function t(n){return(0,T.jsxs)("li",{children:[(0,T.jsxs)("div",{className:p("tf-org-node",n.root&&"root"),children:[n.avatar?(0,T.jsx)(Ve,{name:n.name,size:32}):(0,T.jsx)(Xt,{tint:n.tint,size:32,live:n.status==="running"}),(0,T.jsxs)("span",{className:"tf-option-text",children:[(0,T.jsx)("b",{children:n.name}),(0,T.jsx)("small",{children:n.role})]}),n.status&&(0,T.jsx)(ze,{status:n.status})]}),n.children&&n.children.length>0&&(0,T.jsx)("ul",{children:n.children.map(t)})]},n.id||n.name)}return(0,T.jsx)("div",{className:"tf-org",children:(0,T.jsx)("ul",{children:t(Object.assign({root:!0},e.root))})})}function nv(e){let t=M(Ot),n=e.state||"listening",a=[];for(let l=0;l<24;l++)a.push(l);return(0,T.jsxs)("div",{className:p("tf-voice","is-"+n),children:[(0,T.jsx)(Xt,{tint:e.tint||"lilac",size:72,live:n!=="idle"}),(0,T.jsx)("b",{className:"tf-voice-name",children:e.name}),(0,T.jsx)("span",{className:"tf-voice-state",children:e.stateLabel||(n==="listening"?t.listening:n==="thinking"?t.thinking:n==="speaking"?t.speaking:t.paused)}),(0,T.jsx)("div",{className:"tf-voice-wave","aria-hidden":!0,children:a.map(l=>(0,T.jsx)("i",{style:{animationDelay:l*47%600+"ms",height:n==="idle"?4:void 0}},l))}),e.transcript&&(0,T.jsx)("p",{className:"tf-voice-transcript",children:e.transcript}),(0,T.jsxs)("div",{className:"tf-row",style:{justifyContent:"center"},children:[e.onMute&&(0,T.jsx)(W,{icon:e.muted?"x":"user",label:e.muted?t.unmute:t.mute,variant:"soft",size:"lg",onClick:e.onMute}),e.onEnd&&(0,T.jsx)("button",{type:"button",className:"tf-voice-end",onClick:e.onEnd,"aria-label":t.endConversation,children:(0,T.jsx)(x,{name:"x",size:20})})]})]})}var ie=G(ye(),1),fM=G(re(),1);function av(e){let t=M(bi);return(0,ie.jsx)("nav",{className:"tf-tabbar","aria-label":e.label||t.mainNavigation,children:(e.items||[]).map(n=>{let a=n.id===e.active;return(0,ie.jsxs)("button",{type:"button",className:p("tf-tabbar-item",a&&"on"),"aria-current":a?"page":void 0,onClick:()=>{e.onPick&&e.onPick(n.id)},children:[(0,ie.jsxs)("span",{className:"tf-tabbar-ico",children:[(0,ie.jsx)(x,{name:n.icon,size:20}),n.count?(0,ie.jsx)("span",{className:"tf-dotcount",children:n.count}):null]}),(0,ie.jsx)("span",{children:n.label})]},n.id)})})}function lv(e){return(0,ie.jsxs)("div",{className:"tf-push",children:[(0,ie.jsxs)("div",{className:"tf-push-top",children:[(0,ie.jsx)("span",{className:"tf-push-app",children:e.app}),(0,ie.jsx)("small",{children:e.time})]}),(0,ie.jsx)("b",{children:e.title}),(0,ie.jsx)("p",{children:e.text}),e.actions&&(0,ie.jsx)("div",{className:"tf-push-actions",children:e.actions.map(t=>(0,ie.jsx)("button",{type:"button",onClick:t.onClick,children:t.label},t.label))})]})}function iv(e){let t={project:"grid",team:"users",agent:"bot",tool:"zap",trigger:"clock",file:"file"};return(0,ie.jsxs)("div",{className:"tf-prsum",children:[(0,ie.jsxs)("div",{className:"tf-prsum-head",children:[(0,ie.jsx)(ce,{icon:"branch",tint:"lilac"}),(0,ie.jsxs)("span",{className:"tf-option-text",children:[(0,ie.jsx)("b",{children:e.title}),(0,ie.jsx)("small",{children:e.meta})]}),e.status&&(0,ie.jsx)(Be,{status:e.status,label:e.statusLabel})]}),e.summary&&(0,ie.jsx)("p",{className:"tf-card-desc",style:{margin:0,fontSize:14,lineHeight:"22px"},children:e.summary}),(0,ie.jsx)("ul",{className:"tf-prsum-list",children:(e.items||[]).map((n,a)=>(0,ie.jsxs)("li",{className:"op-"+(n.op||"add"),children:[(0,ie.jsx)("span",{className:"tf-prsum-op",children:n.op==="remove"?"\u2212":n.op==="change"?"~":"+"}),(0,ie.jsx)(x,{name:t[n.kind]||"file",size:14}),(0,ie.jsxs)("span",{className:"tf-option-text",children:[(0,ie.jsx)("b",{children:n.name}),n.detail&&(0,ie.jsx)("small",{children:n.detail})]})]},a))}),e.actions&&(0,ie.jsx)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:e.actions})]})}function sv(e){let t=M(bi);return(0,ie.jsx)("div",{className:"tf-modules",children:(e.items||[]).map(n=>(0,ie.jsxs)("div",{className:"tf-module",children:[(0,ie.jsx)(ce,{icon:n.icon||"grid",tint:n.core?"plain":n.enabled?"mint":"plain"}),(0,ie.jsxs)("span",{className:"tf-option-text",children:[(0,ie.jsxs)("b",{children:[n.name," ",(0,ie.jsx)("span",{className:"tf-mono tf-module-v",children:n.version})]}),(0,ie.jsx)("small",{children:n.text})]}),n.adds&&(0,ie.jsx)("span",{className:"tf-module-adds",children:n.adds.map(a=>(0,ie.jsx)(Oe,{tone:"neutral",dot:!1,children:a},a))}),n.core?(0,ie.jsx)(et,{label:e.coreLabel||t.coreModule,children:(0,ie.jsx)("span",{className:"tf-module-lock",tabIndex:0,children:(0,ie.jsx)(x,{name:"lock",size:14})})}):(0,ie.jsx)("input",{type:"checkbox",role:"switch",className:"tf-switch",checked:!!n.enabled,"aria-label":n.name,onChange:()=>{e.onToggle&&e.onToggle(n)}})]},n.id))})}var ne=G(ye(),1),Ys=G(re(),1);var cv={money:"card",infra:"server",comms:"mail",marketing:"trend",apps:"code",legal:"book"};function rv(e){let t=M(pi),n=e.options||[{key:"A",label:e.approveLabel||t.approveAsShown},{key:"B",label:t.approveWithChange,input:t.whatShouldChange},{key:"C",label:t.discard},{key:"D",label:t.differentInstruction,input:t.whatInstead}],a=Ys.useState(null),l=Ys.useState(""),i=Ys.useRef(null),s=e.decision||(e.state==="approved"?{key:"A"}:e.state==="denied"?{key:"C"}:null);function c(o){if(o.input&&a[0]!==o.key){a[1](o.key),l[1]("");return}o.input&&!l[0].trim()||(e.onDecide&&e.onDecide(o.key,o.input?l[0].trim():void 0),o.key==="A"&&e.onApprove&&e.onApprove(),o.key==="C"&&e.onDeny&&e.onDeny(),o.key==="B"&&e.onEdit&&e.onEdit(l[0]),a[1](null))}function r(o){let f=o.target.tagName;if(s||f==="TEXTAREA"||f==="INPUT")return;let d=n.find(m=>m.key===o.key.toUpperCase());d&&(o.preventDefault(),c(d))}let u=e.family?cv[e.family]:void 0;if(s){let o=n.find(f=>f.key===s.key)||{key:s.key,label:""};return(0,ne.jsxs)("div",{className:p("tf-approval tf-approval-done",s.key==="A"||s.key==="B"?"yes":"no",e.className),children:[(0,ne.jsx)(ze,{status:s.key==="A"||s.key==="B"?"ok":"idle"}),(0,ne.jsx)("b",{children:o.key+" \xB7 "+o.label}),e.title&&(0,ne.jsx)("span",{className:"tf-approval-done-what",children:e.title}),(0,ne.jsx)("span",{className:"tf-approval-done-by",children:[s.by,s.at].filter(Boolean).join(" \xB7 ")}),s.text&&(0,ne.jsx)("span",{className:"tf-approval-done-note",children:"\u201C"+s.text+"\u201D"})]})}return(0,ne.jsxs)("div",{ref:i,className:p("tf-approval",e.compact&&"compact",e.className),tabIndex:0,onKeyDown:r,role:"group","aria-label":typeof e.title=="string"?e.title:void 0,children:[(0,ne.jsxs)("div",{className:"tf-approval-top",children:[(0,ne.jsx)(ze,{status:"signal"}),(0,ne.jsx)("b",{children:e.heading||t.approvalNeeded}),(e.agent||e.project)&&(0,ne.jsx)("span",{className:"tf-approval-who",children:[e.agent,e.project].filter(Boolean).join(" \xB7 ")}),u&&(0,ne.jsxs)(Oe,{tone:"neutral",dot:!1,className:"tf-family",children:[(0,ne.jsx)(x,{name:u,size:12}),e.familyLabel||e.family&&t.riskFamily[e.family]]}),e.age&&(0,ne.jsx)("span",{className:"tf-approval-age",children:e.age})]}),(0,ne.jsxs)("div",{className:"tf-approval-main",children:[e.title&&(0,ne.jsx)("p",{className:"tf-approval-title",children:e.title}),e.text&&(0,ne.jsx)("p",{className:"tf-approval-reason",children:e.text}),e.children&&(0,ne.jsx)("div",{className:"tf-approval-body",children:e.children})]}),(0,ne.jsx)("div",{className:"tf-approval-opts",role:"list",children:n.map((o,f)=>(0,ne.jsxs)("div",{role:"listitem",children:[(0,ne.jsxs)("button",{type:"button",className:p("tf-approval-opt",f===0&&"primary",a[0]===o.key&&"open"),onClick:()=>{c(o)},"aria-keyshortcuts":o.key,children:[(0,ne.jsx)("kbd",{children:o.key}),(0,ne.jsx)("span",{children:o.label}),o.input&&a[0]!==o.key&&(0,ne.jsx)(x,{name:"chevronRight",size:14})]}),o.input&&a[0]===o.key&&(0,ne.jsxs)("div",{className:"tf-approval-input tf-in",children:[(0,ne.jsx)("textarea",{className:"tf-input",rows:2,autoFocus:!0,placeholder:o.placeholder||(typeof o.input=="string"?o.input:void 0),value:l[0],onChange:d=>{l[1](d.target.value)},onKeyDown:d=>{d.key==="Enter"&&(d.metaKey||d.ctrlKey)&&c(o),d.key==="Escape"&&a[1](null)}}),(0,ne.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:[(0,ne.jsx)(K,{size:"sm",variant:"ghost",onClick:()=>{a[1](null)},children:t.cancel}),(0,ne.jsx)(K,{size:"sm",disabled:!l[0].trim(),onClick:()=>{c(o)},children:o.key+" \xB7 "+t.send})]})]})]},o.key))}),(e.escalation||e.trace||e.note)&&(0,ne.jsxs)("div",{className:"tf-approval-foot",children:[e.escalation&&(0,ne.jsxs)("span",{children:[(0,ne.jsx)(x,{name:"clock",size:13}),e.escalation]}),e.note&&(0,ne.jsx)("span",{children:e.note}),e.trace&&(0,ne.jsx)("span",{className:"tf-approval-trace",children:e.trace})]})]})}function ov(e){let t=M(pi),n=(e.items||[]).slice().sort((a,l)=>(l.ageMin||0)-(a.ageMin||0));return(0,ne.jsx)("div",{className:"tf-inbox",role:"listbox","aria-label":e.label||t.approvals,onKeyDown:a=>{let l=n.findIndex(i=>i.id===e.selected);if(a.key==="j"||a.key==="ArrowDown"){a.preventDefault();let i=n[Math.min(n.length-1,l+1)];i&&e.onSelect&&e.onSelect(i.id)}if(a.key==="k"||a.key==="ArrowUp"){a.preventDefault();let i=n[Math.max(0,l-1)];i&&e.onSelect&&e.onSelect(i.id)}},children:n.length===0?(0,ne.jsx)(Ei,{icon:"check",tint:"mint",title:e.emptyTitle||t.nothingWaiting,text:e.emptyText}):n.map(a=>{let l=a.family?cv[a.family]:void 0;return(0,ne.jsxs)("button",{type:"button",role:"option","aria-selected":a.id===e.selected,className:p("tf-inbox-row",a.id===e.selected&&"on"),onClick:()=>{e.onSelect&&e.onSelect(a.id)},children:[(0,ne.jsx)(ze,{status:"signal"}),(0,ne.jsxs)("span",{className:"tf-inbox-text",children:[(0,ne.jsx)("b",{children:a.title}),(0,ne.jsx)("small",{children:[a.agent,a.project].filter(Boolean).join(" \xB7 ")})]}),l&&(0,ne.jsxs)(Oe,{tone:"neutral",dot:!1,className:"tf-family",children:[(0,ne.jsx)(x,{name:l,size:12}),a.familyLabel||a.family&&t.riskFamily[a.family]]}),(0,ne.jsxs)("span",{className:p("tf-inbox-age",a.urgent&&"warn"),children:[a.urgent&&(0,ne.jsx)(ze,{status:"warn"}),a.age]})]},a.id)})})}var Z=G(ye(),1),Za=G(re(),1);function uv(e){let t=M(kl),n=e.value||{},a=Object.keys(n).filter(s=>n[s]!=null&&n[s]!=="");function l(s,c){let r=Object.assign({},n);c==null?delete r[s]:r[s]=c,e.onChange?.(r)}let i=(e.filters||[]).filter(s=>a.indexOf(s.key)<0);return(0,Z.jsxs)("div",{className:"tf-filterbar",children:[e.search&&(0,Z.jsx)(On,{placeholder:e.search,value:e.query,onChange:s=>{e.onQuery?.(s.target.value)},style:{minWidth:0,flex:"1 1 220px",maxWidth:320}}),a.map(s=>{let c=(e.filters||[]).find(r=>r.key===s)||{key:s,label:s,options:[]};return(0,Z.jsx)(Ue,{width:220,flush:!0,trigger:r=>(0,Z.jsxs)("span",{className:"tf-filterchip",children:[(0,Z.jsxs)("button",{type:"button",onClick:r.toggle,children:[(0,Z.jsx)("span",{children:c.label+":"}),(0,Z.jsx)("b",{children:n[s]})]}),(0,Z.jsx)("button",{type:"button",className:"x","aria-label":t.removeFilter(c.label),onClick:()=>{l(s,null)},children:(0,Z.jsx)(x,{name:"x",size:12})})]}),children:r=>(0,Z.jsx)(At,{items:c.options.map(u=>({label:u,icon:u===n[s]?"check":void 0,onClick:()=>{l(s,u),r.close()}}))})},s)}),i.length>0&&(0,Z.jsx)(Ue,{width:240,flush:!0,trigger:s=>(0,Z.jsxs)("button",{type:"button",className:"tf-chip tf-chip-dashed",onClick:s.toggle,children:[(0,Z.jsx)(x,{name:"plus",size:14}),t.addFilter]}),children:s=>(0,Z.jsx)(_x,{avail:i,onPick:(c,r)=>{l(c,r),s.close()}})}),a.length>1&&(0,Z.jsx)("button",{type:"button",className:"tf-linkbtn",onClick:()=>{e.onChange?.({})},children:t.clearAll}),e.right&&(0,Z.jsx)("div",{className:"tf-filterbar-right",children:e.right})]})}function _x(e){let t=M(kl),n=Za.useState(null),a=n[0];return a?(0,Z.jsx)(At,{items:[{label:t.back,icon:"chevronLeft",onClick:()=>{n[1](null)}},"-",...a.options.map(l=>({label:l,onClick:()=>{e.onPick?.(a.key,l)}}))]}):(0,Z.jsx)(At,{items:e.avail.map(l=>({label:l.label,icon:l.icon||"filter",onClick:()=>{n[1](l)}}))})}function Qs(e){let t=M(kl),n=e.columns||[],a=e.rowKey||"id",l=Za.useState(e.defaultSort||null),i=Za.useState([]),s=Za.useState(n.filter(b=>b.hidden).map(b=>b.key)),c=Za.useState({}),r=l[0],u=(e.rows||[]).slice();if(r){let b=n.find(q=>q.key===r.key),y=r.dir==="desc"?-1:1,z=b&&b.sortValue||(q=>q[r.key]);u.sort((q,U)=>{let O=z(q),P=z(U);return(O>P?1:O<P?-1:0)*y})}let o=n.filter(b=>s[0].indexOf(b.key)<0),f=u.map(b=>b[a]),d=i[0].filter(b=>f.indexOf(b)>=0),m=f.length>0&&d.length===f.length,N=d.length>0&&!m;function S(b){i[1](d.indexOf(b)>=0?d.filter(y=>y!==b):d.concat([b]))}function k(b,y,z,q){return(0,Z.jsxs)("span",{className:"tf-checkbox",children:[(0,Z.jsx)("input",{type:"checkbox",checked:b,onChange:y,"aria-label":z,ref:U=>{U&&(U.indeterminate=!!q)}}),(0,Z.jsx)("span",{className:p("tf-checkbox-box",q&&"ind"),"aria-hidden":!0,children:(0,Z.jsx)("svg",{viewBox:"0 0 24 24",width:14,height:14,fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",children:(0,Z.jsx)("path",{d:q?"M6 12h12":"M5 12.5l4.5 4.5L19 7.5"})})})]})}let g=o.length+(e.selectable?1:0)+(e.renderExpanded?1:0),v=u.filter(b=>d.indexOf(b[a])>=0);return(0,Z.jsxs)("div",{className:p("tf-dt",e.className),children:[(e.toolbar||e.columnToggle!==!1)&&(0,Z.jsxs)("div",{className:"tf-dt-toolbar",children:[e.toolbar,e.columnToggle!==!1&&(0,Z.jsx)(Ue,{align:"end",width:220,flush:!0,trigger:b=>(0,Z.jsx)(et,{label:t.columns,children:(0,Z.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-soft","aria-label":t.chooseColumns,onClick:b.toggle,children:(0,Z.jsx)(x,{name:"grid"})})}),children:(0,Z.jsxs)("div",{className:"tf-menu tf-menu-static",children:[(0,Z.jsx)("div",{className:"tf-menu-label",children:t.columns}),n.filter(b=>b.hideable!==!1&&b.label).map(b=>{let y=s[0].indexOf(b.key)<0;return(0,Z.jsxs)("label",{className:"tf-menu-item",children:[k(y,()=>{s[1](y?s[0].concat([b.key]):s[0].filter(z=>z!==b.key))},typeof b.label=="string"?b.label:b.key),b.label]},b.key)})]})})]}),(0,Z.jsx)("div",{className:p("tf-dt-scroll",e.stickyHeader&&"sticky"),style:e.maxHeight?{maxHeight:e.maxHeight}:void 0,children:(0,Z.jsxs)("table",{className:"tf-table tf-dt-table",children:[(0,Z.jsx)("thead",{children:(0,Z.jsxs)("tr",{children:[e.selectable&&(0,Z.jsx)("th",{className:"tf-dt-sel",children:k(m,()=>{i[1](m?[]:f)},t.selectAllRows,N)}),e.renderExpanded&&(0,Z.jsx)("th",{className:"tf-dt-exp","aria-label":t.expand}),o.map(b=>{let y=l[0]&&l[0].key===b.key?l[0].dir:null;return(0,Z.jsx)("th",{className:p(b.align==="right"&&"tf-num"),style:b.width?{width:b.width}:void 0,"aria-sort":y?y==="asc"?"ascending":"descending":void 0,children:b.sortable?(0,Z.jsxs)("button",{type:"button",className:p("tf-dt-sort",y&&"on"),onClick:()=>{l[1](y==="asc"?{key:b.key,dir:"desc"}:y==="desc"?null:{key:b.key,dir:"asc"})},children:[b.label,(0,Z.jsx)(x,{name:"chevronDown",size:12,className:p("tf-dt-arrow",y==="asc"&&"up",!y&&"idle")})]}):b.label},b.key)})]})}),(0,Z.jsx)("tbody",{children:u.length===0?(0,Z.jsx)("tr",{children:(0,Z.jsx)("td",{colSpan:g,className:"tf-dt-empty",children:e.empty||t.nothingMatchesFilters})}):u.map(b=>{let y=b[a],z=d.indexOf(y)>=0,q=!!c[0][String(y)];return(0,Z.jsxs)(Za.Fragment,{children:[(0,Z.jsxs)("tr",{className:p(z&&"selected",q&&"expanded"),children:[e.selectable&&(0,Z.jsx)("td",{className:"tf-dt-sel",children:k(z,()=>{S(y)},t.selectRow)}),e.renderExpanded&&(0,Z.jsx)("td",{className:"tf-dt-exp",children:(0,Z.jsx)("button",{type:"button",className:p("tf-dt-toggle",q&&"open"),"aria-expanded":q,"aria-label":q?t.collapseRow:t.expandRow,onClick:()=>{let U=Object.assign({},c[0]);U[String(y)]=!q,c[1](U)},children:(0,Z.jsx)(x,{name:"chevronRight",size:14})})}),o.map(U=>(0,Z.jsx)("td",{className:U.align==="right"?"tf-num":void 0,children:U.render?U.render(b):b[U.key]},U.key))]}),q&&(0,Z.jsx)("tr",{className:"tf-dt-detail",children:(0,Z.jsx)("td",{colSpan:g,children:(0,Z.jsx)("div",{className:"tf-dt-detail-in tf-in",children:e.renderExpanded?.(b)})})})]},y)})})]})}),e.selectable&&d.length>0&&(0,Z.jsxs)("div",{className:"tf-bulkbar",role:"toolbar","aria-label":t.bulkActions,children:[(0,Z.jsx)("b",{children:t.selectedCount(d.length)}),(0,Z.jsx)("button",{type:"button",className:"tf-linkbtn on-frame",onClick:()=>{i[1]([])},children:t.clear}),(0,Z.jsx)("div",{className:"tf-bulkbar-actions",children:(e.bulkActions||[]).map(b=>(0,Z.jsxs)("button",{type:"button",className:p("tf-bulk-btn",b.danger&&"danger"),onClick:()=>{b.onClick(v,()=>{i[1]([])})},children:[b.icon&&(0,Z.jsx)(x,{name:b.icon,size:14}),b.label]},b.label))})]})]})}var qe=G(ye(),1),an=G(re(),1);var Dx=e=>typeof e=="string"?{value:e,label:e}:e;function fv(e){let t=M(_s),n=Se("sel"),a=e.id||n,l=ha(e.name),i=e.error||l,s=(e.options||[]).map(Dx),c=$(e.value,e.defaultValue??"",e.onChange),[r,u]=an.useState(!1),[o,f]=an.useState(-1),d=an.useRef(null),m=an.useRef(null),N=an.useRef(null),S=an.useRef({s:"",t:0}),k=s.find(O=>O.value===c[0]),g=s.map((O,P)=>O.disabled?-1:P).filter(O=>O>=0),v=O=>{f(O??Math.max(0,s.indexOf(k))),u(!0)},b=(O=!0)=>{u(!1),O&&d.current?.focus()},y=O=>{let P=s[O];!P||P.disabled||(c[1](P.value),b(),requestAnimationFrame(()=>N.current?.dispatchEvent(new Event("change",{bubbles:!0}))))},z=O=>{let P=g.indexOf(o),I=g[Math.min(g.length-1,Math.max(0,P+O))];I!=null&&f(I)},q=O=>{let P=Date.now();S.current={s:(P-S.current.t<600?S.current.s:"")+O,t:P};let I=S.current.s.toLowerCase();return s.findIndex(Fe=>!Fe.disabled&&Fe.label.toLowerCase().startsWith(I))};an.useEffect(()=>{r&&m.current?.focus()},[r]),an.useEffect(()=>{!r||o<0||m.current?.querySelector(`#${CSS.escape(`${n}-o${o}`)}`)?.scrollIntoView({block:"nearest"})},[r,o,n]);let U=[];return s.forEach((O,P)=>{let I=U[U.length-1];I&&I[0]===O.group?I[1].push(P):U.push([O.group,[P]])}),(0,qe.jsxs)("div",{className:p("tf-field",e.className),style:e.style,children:[e.label&&(0,qe.jsxs)("label",{className:"tf-field-label",htmlFor:a,id:`${a}-label`,children:[e.label,e.required&&(0,qe.jsx)("span",{className:"tf-req","aria-hidden":!0,children:" *"})]}),(0,qe.jsx)(Ue,{block:!0,open:r,onOpenChange:O=>O?v():b(!1),role:"presentation",flush:!0,trigger:()=>(0,qe.jsxs)("button",{ref:d,id:a,type:"button",className:p("tf-input","tf-selectmenu",!k&&"empty"),role:"combobox","aria-haspopup":"listbox","aria-expanded":r,"aria-controls":`${n}-list`,"aria-invalid":i?"true":void 0,"aria-describedby":i||e.hint?`${a}-msg`:void 0,disabled:e.disabled,onClick:()=>r?b():v(),onKeyDown:O=>{if(["ArrowDown","ArrowUp","Enter"," "].includes(O.key))O.preventDefault(),v();else if(O.key.length===1&&/\S/.test(O.key)){let P=q(O.key);P>=0&&c[1](s[P]?.value)}},children:[k?.icon&&(0,qe.jsx)(x,{name:k.icon,size:15}),(0,qe.jsx)("span",{className:"tf-selectmenu-value",children:k?k.label:e.placeholder||t.selectPlaceholder}),(0,qe.jsx)(x,{name:"chevronDown",size:16,className:"tf-selectmenu-chev"})]}),children:(0,qe.jsx)("div",{ref:m,id:`${n}-list`,className:"tf-selectmenu-list",role:"listbox",tabIndex:-1,"aria-labelledby":e.label?`${a}-label`:void 0,"aria-label":e.label?void 0:e.placeholder||t.options,"aria-activedescendant":o>=0?`${n}-o${o}`:void 0,onKeyDown:O=>{let I={ArrowDown:()=>z(1),ArrowUp:()=>z(-1),Home:()=>f(g[0]??-1),End:()=>f(g[g.length-1]??-1),Enter:()=>y(o)," ":()=>y(o),Escape:()=>b()}[O.key];if(I)O.preventDefault(),I();else if(O.key==="Tab")b(!1);else if(O.key.length===1&&/\S/.test(O.key)){let Fe=q(O.key);Fe>=0&&f(Fe)}},children:U.map(([O,P],I)=>{let Fe=P.map(ua=>{let Rn=s[ua],Kc=Rn.value===c[0];return(0,qe.jsxs)("div",{id:`${n}-o${ua}`,role:"option","aria-selected":Kc,"aria-disabled":Rn.disabled||void 0,className:p("tf-selectmenu-opt",ua===o&&"active"),onPointerMove:()=>!Rn.disabled&&f(ua),onClick:()=>y(ua),children:[Rn.icon&&(0,qe.jsx)(x,{name:Rn.icon,size:15}),(0,qe.jsxs)("span",{className:"tf-option-text",children:[(0,qe.jsx)("b",{children:Rn.label}),Rn.hint&&(0,qe.jsx)("small",{children:Rn.hint})]}),Kc&&(0,qe.jsx)(x,{name:"check",size:15,className:"tf-selectmenu-check"})]},Rn.value)});return O?(0,qe.jsxs)("div",{role:"group","aria-labelledby":`${n}-g${I}`,children:[(0,qe.jsx)("div",{id:`${n}-g${I}`,className:"tf-menu-label",role:"presentation",children:O}),Fe]},O+I):(0,qe.jsx)(an.Fragment,{children:Fe},"g"+I)})})}),(0,qe.jsx)("input",{ref:N,type:"hidden",name:e.name,value:c[0]}),i?(0,qe.jsxs)("span",{id:`${a}-msg`,className:"tf-field-error",role:"alert",children:[(0,qe.jsx)(x,{name:"x",size:12}),i]}):e.hint&&(0,qe.jsx)("span",{id:`${a}-msg`,className:"tf-field-hint",children:e.hint})]})}var X=G(ye(),1),Ju=G(re(),1);var C=G(ye(),1),va=G(re(),1);function mv(e){let t=M(Gt);return(0,C.jsxs)("nav",{className:"tf-subnav","aria-label":t.sectionPages(e.eyebrow),children:[(0,C.jsxs)("div",{className:"tf-subnav-head",children:[e.eyebrow&&(0,C.jsx)("span",{className:"tf-subnav-eyebrow",children:e.eyebrow}),e.action&&(0,C.jsxs)("button",{type:"button",className:"tf-subnav-action",onClick:e.action.onClick,children:[(0,C.jsx)(x,{name:e.action.icon||"plus",size:15}),(0,C.jsx)("span",{children:e.action.label})]})]}),(0,C.jsx)("div",{className:"tf-subnav-list",children:(e.items||[]).map(n=>{let a=n.id||n.label;return(0,C.jsxs)("button",{type:"button",className:"tf-subnav-item","aria-current":e.current===a?"page":void 0,title:n.label,onClick:()=>{e.onPick&&e.onPick(a)},children:[(0,C.jsx)(x,{name:n.icon,size:17}),(0,C.jsx)("span",{className:"tf-subnav-label",children:n.label}),n.count?(0,C.jsx)("span",{className:"tf-subnav-count",children:n.count}):null]},a)})}),e.children]})}function zr(e){let t=M(Gt),n=va.useRef(null),a=St(e.open??!0);return Ol(n,e.onClose),a.mounted?(0,C.jsx)("div",{...ft(a.closing),className:p("tf-drawer-wrap",e.inline&&"inline"),onMouseDown:l=>{l.target===l.currentTarget&&e.onClose&&e.onClose?.()},children:(0,C.jsxs)("aside",{ref:n,className:p("tf-drawer",e.side&&e.side!=="right"&&"side-"+e.side),role:"dialog","aria-modal":"true","aria-label":e.title,style:e.width?{width:e.width}:void 0,children:[(0,C.jsxs)("div",{className:"tf-header",style:{alignItems:"center"},children:[(0,C.jsxs)("div",{className:"tf-row",style:{flexWrap:"nowrap",minWidth:0},children:[e.avatar&&(0,C.jsx)(Ve,{name:e.avatar,size:44}),(0,C.jsxs)("div",{style:{minWidth:0},children:[(0,C.jsx)("div",{className:"tf-panel-title",children:e.title}),e.subtitle&&(0,C.jsx)("div",{className:"tf-panel-sub",children:e.subtitle})]})]}),(0,C.jsx)(W,{icon:"x",label:t.close,onClick:e.onClose})]}),e.children]})}):null}function hv(e){let t=M(Gt),n=va.useState(""),a=va.useState(0),l=va.useRef(null),i=St(e.open??!0);Ol(l,e.onClose);let s=n[0].toLowerCase().trim(),c=e.items||[],r=(s?c.filter(m=>s.split(/\s+/).every(N=>(m.label+" "+(m.hint||"")+" "+(m.group||"")).toLowerCase().indexOf(N)>-1)):c.filter(m=>!m.searchOnly)).slice(0,40),u=Math.min(a[0],Math.max(0,r.length-1));function o(m){e.onClose&&e.onClose?.(),m&&m.run&&m.run()}function f(m){m.key==="ArrowDown"?(m.preventDefault(),a[1](Math.min(r.length-1,u+1))):m.key==="ArrowUp"?(m.preventDefault(),a[1](Math.max(0,u-1))):m.key==="Enter"&&(m.preventDefault(),o(r[u]))}let d=[];return r.forEach((m,N)=>{let S=m.group||t.results;(!d.length||d[d.length-1].g!==S)&&d.push({g:S,items:[]}),d[d.length-1].items.push([m,N])}),i.mounted?(0,C.jsx)("div",{...ft(i.closing),className:p("tf-palette-wrap",e.inline&&"inline"),onMouseDown:m=>{m.target===m.currentTarget&&e.onClose&&e.onClose?.()},children:(0,C.jsxs)("div",{ref:l,className:"tf-palette",role:"dialog","aria-modal":"true","aria-label":t.commandPalette,children:[(0,C.jsxs)("div",{className:"tf-palette-input",children:[(0,C.jsx)(x,{name:"search",size:18}),(0,C.jsx)("input",{placeholder:e.placeholder||t.paletteSearchPlaceholder,"aria-label":t.search,value:n[0],onChange:m=>{n[1](m.target.value),a[1](0),e.onQueryChange?.(m.target.value)},onKeyDown:f}),(0,C.jsx)("kbd",{children:t.escKey})]}),(0,C.jsxs)("div",{className:"tf-palette-list",role:"listbox","aria-label":t.results,children:[e.loading&&(0,C.jsxs)("div",{className:"tf-palette-empty",role:"status",children:[(0,C.jsx)(Er,{})," ",t.searching]}),r.length?d.map(m=>(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"tf-palette-group",children:m.g}),m.items.map(N=>{let S=N[0],k=N[1];return(0,C.jsxs)("button",{type:"button",role:"option","aria-selected":k===u?"true":"false",className:"tf-palette-item",onMouseMove:()=>{k!==u&&a[1](k)},onClick:()=>{o(S)},children:[(0,C.jsx)(ce,{icon:S.icon||"search",tint:S.tint||"plain"}),(0,C.jsxs)("span",{className:"tf-palette-label",children:[(0,C.jsx)("b",{children:S.label}),S.hint&&(0,C.jsx)("span",{children:S.hint})]}),k===u&&(0,C.jsx)("kbd",{children:"\u21B5"})]},S.id||S.label)})]},m.g)):e.loading?null:(0,C.jsx)("div",{className:"tf-palette-empty",children:e.empty??t.nothingMatches(n[0])})]}),(0,C.jsxs)("div",{className:"tf-palette-foot",children:[(0,C.jsxs)("span",{children:[(0,C.jsx)("kbd",{children:"\u2191"}),(0,C.jsx)("kbd",{children:"\u2193"})," ",t.paletteMove]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("kbd",{children:"\u21B5"})," ",t.paletteOpen]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("kbd",{children:"\u2318"}),(0,C.jsx)("kbd",{children:"K"})," "+t.paletteAnywhere]})]})]})}):null}function gv(e){let t=M(Gt),n=va.useState("all"),a=(e.items||[]).filter(l=>n[0]==="all"||l.unread);return(0,C.jsxs)("div",{className:"tf-notes",role:"region","aria-label":t.notifications,children:[(0,C.jsxs)("div",{className:"tf-header",style:{alignItems:"center",padding:"6px 8px 0"},children:[(0,C.jsx)("b",{style:{fontSize:16},children:t.notifications}),(0,C.jsx)(K,{variant:"ghost",size:"sm",icon:"check",disabled:!(e.items||[]).some(l=>l.unread),onClick:e.onReadAll,children:t.markAllRead})]}),(0,C.jsx)("div",{style:{padding:"0 8px"},children:(0,C.jsx)(pr,{block:!0,items:[t.all,t.unread],value:n[0]==="all"?t.all:t.unread,onChange:l=>n[1](l===t.unread?"unread":"all")})}),(0,C.jsx)("div",{className:"tf-notes-list",children:a.length?a.map(l=>(0,C.jsxs)("button",{type:"button",className:p("tf-note",l.unread&&"unread"),onClick:()=>{e.onOpen&&e.onOpen(l)},children:[(0,C.jsx)(ce,{icon:l.icon,tint:l.tint}),(0,C.jsxs)("span",{className:"tf-note-text",children:[(0,C.jsx)("b",{children:l.title}),(0,C.jsx)("span",{children:l.text})]}),(0,C.jsxs)("span",{className:"tf-note-time",children:[l.time,l.unread&&(0,C.jsx)("span",{className:"tf-unread"})]})]},l.id)):(0,C.jsxs)("div",{className:"tf-notes-empty",children:[(0,C.jsx)(ce,{icon:"check",tint:"mint",size:40}),(0,C.jsx)("b",{children:t.allCaughtUp})]})})]})}var Ox=()=>({trigger:["zap","sky"],condition:["filter","blush"],agent:["bot","lilac"],approval:["user","butter"],action:["send","mint"]});function vv(e){let t=M(Gt);return(0,C.jsx)("ol",{className:"tf-flow tf-stagger",style:{"--base":"120ms"},children:(e.steps||[]).map((n,a)=>{let l=Ox(),i=l[n.kind]?n.kind:"action",s=l[i],c=a<(e.active==null?-1:e.active)?"done":a===e.active?e.waiting?"wait":"active":"";return(0,C.jsxs)("li",{className:p("tf-flow-node",c),children:[(0,C.jsx)("span",{className:"tf-flow-icon tf-t-"+s[1],children:(0,C.jsx)(x,{name:c==="done"?"check":s[0],size:16})}),(0,C.jsxs)("div",{className:"tf-flow-card",children:[(0,C.jsxs)("div",{className:"tf-flow-kind",children:[t.flowStep[i],c==="active"&&(0,C.jsx)("span",{className:"tf-flow-live",children:t.flowRunning}),c==="wait"&&(0,C.jsx)("span",{className:"tf-flow-live wait",children:t.waitingForYou})]}),(0,C.jsx)("div",{className:"tf-flow-text",children:n.text}),c==="wait"&&e.onApprove&&(0,C.jsxs)("div",{className:"tf-row",style:{marginTop:8},children:[(0,C.jsx)(K,{size:"sm",icon:"check",onClick:e.onApprove,children:t.approve}),e.onReject&&(0,C.jsx)(K,{size:"sm",variant:"ghost",onClick:e.onReject,children:t.reject})]})]}),e.tools&&c===""?(0,C.jsx)("div",{className:"tf-flow-tools",children:e.tools(n,a)}):null]},a)})})}var dv={pdf:["file","blush"],doc:["book","sky"],sheet:["chart","mint"],fig:["sparkle","lilac"],img:["eye","butter"],zip:["folder","butter"]};function Iu(e){let t=e.kind,n=e.big;return t==="sheet"?(0,C.jsx)("span",{className:"tf-t-sheet",children:Array.from({length:n?7:4},(a,l)=>(0,C.jsx)("span",{children:Array.from({length:4},(i,s)=>(0,C.jsx)("i",{style:{opacity:l===0?1:.55}},s))},l))}):t==="img"||t==="fig"?(0,C.jsxs)("span",{className:p("tf-t-art",t==="fig"&&"fig"),children:[(0,C.jsx)("i",{}),(0,C.jsx)("i",{}),(0,C.jsx)("i",{})]}):t==="zip"?(0,C.jsx)("span",{className:"tf-t-zip",children:(e.entries||["logo.svg","colors.json","fonts/"]).map(a=>(0,C.jsxs)("span",{children:[(0,C.jsx)(x,{name:"file",size:11}),a]},a))}):(0,C.jsxs)("span",{className:"tf-t-doc",children:[(0,C.jsx)("b",{children:(e.title||"").replace(/\.[^.]+$/,"")}),Array.from({length:n?9:4},(a,l)=>(0,C.jsx)("i",{style:{width:60+l*37%40+"%"}},l))]})}function bv(e){let t=M(Gt),n=dv[e.kind]||dv.doc;return(0,C.jsxs)("button",{type:"button",className:"tf-filecard",onClick:e.onClick,children:[(0,C.jsx)("span",{className:"tf-thumb tf-bg-"+n[1],children:(0,C.jsx)(Iu,{kind:e.kind,title:e.name})}),(0,C.jsx)("span",{className:"tf-filecard-name",children:e.name}),(0,C.jsxs)("span",{className:"tf-filecard-meta",children:[[e.size,e.meta].filter(Boolean).join(" \xB7 "),e.shared&&(0,C.jsx)(x,{name:"users",size:12,label:t.shared})]})]})}function pv(e){let t=M(Gt),n=e.steps||[],a=e.current||0,l=e.done||{};return(0,C.jsxs)("div",{className:"tf-wizard",role:"group","aria-label":e.label||t.setup,children:[(0,C.jsxs)("aside",{className:"tf-wizard-rail",children:[e.brand&&(0,C.jsxs)("span",{className:"tf-brand",style:{color:"var(--on-frame)"},children:[e.brand,(0,C.jsx)("span",{className:"tf-brand-dot"})]}),(0,C.jsx)("ol",{children:n.map((i,s)=>{let c=l[i.id||s];return(0,C.jsx)("li",{children:(0,C.jsxs)("button",{type:"button",className:p("tf-wizard-step",s===a&&"cur",c&&"ok"),"aria-current":s===a?"step":void 0,onClick:()=>{e.onPick&&e.onPick(s)},children:[(0,C.jsx)("span",{children:c?(0,C.jsx)(x,{name:"check",size:12}):s+1}),i.label]})},s)})})]}),(0,C.jsxs)("div",{className:"tf-wizard-main",children:[(0,C.jsx)("div",{className:"tf-card-desc",children:t.stepOf(a+1,n.length)}),(0,C.jsxs)("div",{className:"tf-wizard-body",children:[n[a]&&n[a].icon&&(0,C.jsx)(ce,{icon:n[a].icon,tint:"sky",size:44}),n[a]&&(0,C.jsx)("h2",{className:"tf-modal-title",children:n[a].label}),e.children]},a),e.footer&&(0,C.jsx)("div",{className:"tf-modal-foot",style:{justifyContent:"space-between"},children:e.footer})]})]})}function yv(e){let t=M(Gt),n=()=>t.permissionLevels,a=va.useRef(null);return ma(a),(0,C.jsx)("div",{ref:a,className:"tf-scroll",children:(0,C.jsxs)("table",{className:"tf-table tf-perm",children:[(0,C.jsx)("thead",{children:(0,C.jsxs)("tr",{children:[(0,C.jsx)("th",{children:t.role}),(e.areas||[]).map(l=>(0,C.jsx)("th",{children:l},l))]})}),(0,C.jsx)("tbody",{className:"tf-stagger",style:{"--base":"120ms"},children:(e.roles||[]).map((l,i)=>(0,C.jsxs)("tr",{children:[(0,C.jsxs)("td",{children:[(0,C.jsx)("div",{style:{fontWeight:700},children:l.name}),l.people!=null&&(0,C.jsx)("div",{className:"tf-card-desc",children:t.memberCount(l.people)})]}),l.levels.map((s,c)=>(0,C.jsx)("td",{children:(0,C.jsx)("button",{type:"button",className:"tf-perm-cell lv"+s,disabled:l.locked,"aria-label":l.name+" \xB7 "+e.areas[c]+": "+n()[s],onClick:()=>{e.onChange&&e.onChange(i,c,(s+1)%4)},children:n()[s]})},c))]},l.name))})]})})}function Nv(){let{formatMoney:e}=J();return t=>e(t,null,{minimumFractionDigits:2})}function Sv(e){let t=M(Gt),n=Nv(),{formatPercent:a}=J(),l=e.lines||[],i=0,s={};l.forEach(u=>{let o=u.q*u.u;i+=o,s[u.v]=(s[u.v]||0)+o*u.v/100});let c=0;Object.keys(s).forEach(u=>{c+=s[Number(u)]??0});let r=e.format||n;return(0,C.jsxs)("div",{className:"tf-paper",children:[(0,C.jsxs)("div",{className:"tf-paper-top",children:[(0,C.jsxs)("div",{children:[e.brand&&(0,C.jsxs)("div",{className:"tf-brand",style:{color:"var(--ink)",fontSize:18},children:[e.brand,(0,C.jsx)("span",{className:"tf-brand-dot"})]}),e.from&&(0,C.jsx)("div",{className:"tf-paper-small",children:e.from})]}),(0,C.jsxs)("div",{className:"tf-paper-id",children:[(0,C.jsx)("div",{className:"tf-paper-kind",children:e.kind||t.invoice}),(0,C.jsx)("div",{className:"tf-mono",children:"#"+e.number})]})]}),(0,C.jsxs)("div",{className:"tf-paper-meta",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.billTo}),(0,C.jsx)("b",{children:e.to})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.issued}),(0,C.jsx)("b",{children:e.issued})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.due}),(0,C.jsx)("b",{children:e.due})]})]}),(0,C.jsx)("div",{className:"tf-paper-lines",children:l.map((u,o)=>(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:(u.d||t.untitledLine)+(u.q!==1?" \xD7 "+u.q:"")}),(0,C.jsx)("b",{children:r(u.q*u.u)})]},o))}),(0,C.jsxs)("div",{className:"tf-paper-totals",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.net}),(0,C.jsx)("b",{children:r(i)})]}),Object.keys(s).filter(u=>+u>0).map(u=>(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.vatAt(a(Number(u),{maximumFractionDigits:2}))}),(0,C.jsx)("b",{children:r(s[Number(u)]??0)})]},u)),(0,C.jsxs)("div",{className:"grand",children:[(0,C.jsx)("span",{children:t.totalDue}),(0,C.jsx)("b",{children:r(i+c)})]})]}),e.note&&(0,C.jsx)("div",{className:"tf-paper-small",children:e.note})]})}function xv(e){let t=M(Gt),n=Nv(),a=va.useState(!1),l=e.amount>0;return(0,C.jsxs)("div",{className:p("tf-tx",!e.matched&&"unmatched"),children:[(0,C.jsxs)("div",{className:"tf-tx-row",children:[(0,C.jsx)(ce,{icon:l?"download":"send",tint:l?"mint":"plain"}),(0,C.jsxs)("div",{className:"tf-tx-text",children:[(0,C.jsx)("b",{className:"tf-mono",children:e.text}),(0,C.jsx)("span",{children:e.date+(e.matched&&e.matchRef?" \xB7 "+t.matchedTo(e.matchRef):"")})]}),(0,C.jsx)("b",{className:p("tf-tx-amt",l?"in":"out"),children:(l?"+":"\u2212")+n(Math.abs(e.amount))}),e.matched?(0,C.jsx)(Oe,{tone:"success",children:t.matched}):(0,C.jsx)(K,{size:"sm",variant:a[0]?"soft":"primary",onClick:()=>{a[1](!a[0])},children:a[0]?t.close:t.match})]}),a[0]&&!e.matched&&(0,C.jsxs)("div",{className:"tf-tx-suggest tf-in",children:[(0,C.jsx)(ce,{icon:"bot",tint:"butter"}),(0,C.jsx)("span",{style:{flex:1,minWidth:0},children:e.hint||t.noSuggestion}),(0,C.jsx)(K,{size:"sm",icon:"check",onClick:()=>{a[1](!1),e.onMatch&&e.onMatch()},children:t.accept})]})]})}function Cv(e){let t=M(Rl),n=Ju.useState(""),a=(e.accounts||[]).filter(i=>!n[0]||i.address.toLowerCase().indexOf(n[0].toLowerCase())>-1),l=(e.accounts||[]).find(i=>i.address===e.value);return(0,X.jsx)(Ue,{width:320,trigger:i=>(0,X.jsxs)("button",{type:"button",className:"tf-acct",onClick:i.toggle,"aria-haspopup":"dialog","aria-expanded":i.open,children:[(0,X.jsxs)("span",{className:"tf-option-text",children:[(0,X.jsx)("b",{className:l?"tf-mono":void 0,children:l?l.address:e.allLabel||t.allInboxes}),(0,X.jsx)("small",{children:l?l.domain:t.addressCount((e.accounts||[]).length)})]}),(0,X.jsx)(x,{name:"chevronDown",size:14})]}),children:i=>(0,X.jsxs)("div",{className:"tf-col",style:{gap:8},children:[(0,X.jsx)(On,{placeholder:t.findAddress,value:n[0],onChange:s=>{n[1](s.target.value)}}),(0,X.jsxs)("div",{className:"tf-acct-list",children:[(0,X.jsxs)("button",{type:"button",className:p("tf-option",!e.value&&"on"),onClick:()=>{e.onChange&&e.onChange(null),i.close()},children:[(0,X.jsx)(x,{name:"inbox",size:15}),(0,X.jsx)("span",{className:"tf-option-text",children:e.allLabel||t.allInboxes}),e.unread!=null&&(0,X.jsx)("span",{className:"tf-nav-count",children:e.unread})]}),a.map(s=>(0,X.jsxs)("button",{type:"button",className:p("tf-option",s.address===e.value&&"on"),onClick:()=>{e.onChange&&e.onChange(s.address),i.close()},children:[(0,X.jsxs)("span",{className:"tf-option-text",children:[(0,X.jsx)("span",{className:"tf-mono",children:s.address}),(0,X.jsx)("small",{children:s.domain})]}),s.unread?(0,X.jsx)("span",{className:"tf-nav-count",children:s.unread}):null]},s.address))]})]})})}function Tv(e){let t=M(Rl);return(0,X.jsx)("div",{className:"tf-inboxlist",role:"list",children:(e.items||[]).map(n=>(0,X.jsxs)("button",{type:"button",role:"listitem",className:p("tf-mailrow",n.unread&&"unread",n.id===e.selected&&"on"),onClick:()=>{e.onOpen&&e.onOpen(n)},children:[(0,X.jsx)("span",{className:"tf-mailrow-dot",role:n.unread?"img":void 0,"aria-label":n.unread?t.unread:void 0}),(0,X.jsxs)("span",{className:"tf-mailrow-main",children:[(0,X.jsxs)("span",{className:"tf-mailrow-top",children:[(0,X.jsx)("b",{children:n.from}),(0,X.jsx)("small",{className:"tf-mono",children:n.time})]}),(0,X.jsx)("span",{className:"tf-mailrow-subject",children:n.subject}),(0,X.jsx)("span",{className:"tf-mailrow-snippet",children:n.snippet}),(n.to||n.tags||n.agent)&&(0,X.jsxs)("span",{className:"tf-mailrow-tags",children:[n.to&&(0,X.jsx)("span",{className:"tf-mono",children:n.to}),n.agent&&(0,X.jsx)(Oe,{tone:n.agent.tone||"highlight",children:n.agent.label}),(n.tags||[]).map(a=>(0,X.jsx)(Oe,{tone:"neutral",dot:!1,children:a},a))]})]})]},n.id))})}function Ev(e){let t=Ju.useState((e.messages||[]).length?[e.messages[e.messages.length-1].id]:[]);return(0,X.jsxs)("div",{className:"tf-thread",children:[e.subject&&(0,X.jsx)("h3",{className:"tf-thread-subject",children:e.subject}),(e.messages||[]).map(n=>{let a=t[0].indexOf(n.id)>-1;return(0,X.jsxs)("div",{className:p("tf-threadmsg",a&&"open",n.agent&&"agent"),children:[(0,X.jsxs)("button",{type:"button",className:"tf-threadmsg-head","aria-expanded":a,onClick:()=>{t[1](a?t[0].filter(l=>l!==n.id):t[0].concat([n.id]))},children:[n.agent?(0,X.jsx)(Xt,{tint:n.tint,size:32}):(0,X.jsx)(Ve,{name:n.from,size:32}),(0,X.jsxs)("span",{className:"tf-option-text",children:[(0,X.jsxs)("b",{children:[n.from,n.agentNote&&(0,X.jsx)("span",{className:"tf-threadmsg-note",children:" \xB7 "+n.agentNote})]}),(0,X.jsx)("small",{children:a?n.to:n.snippet})]}),(0,X.jsx)("small",{className:"tf-mono",children:n.time})]}),a&&(0,X.jsxs)("div",{className:"tf-threadmsg-body",children:[n.body,n.attachments&&(0,X.jsx)("div",{className:"tf-msg-attach",children:n.attachments.map(l=>(0,X.jsxs)("span",{className:"tf-attach-chip",children:[(0,X.jsx)(x,{name:"paperclip",size:13}),l.name,l.size&&(0,X.jsx)("small",{children:l.size})]},l.name))})]})]},n.id)}),e.reply]})}function Mv(e){let t=M(Rl),n=$(e.value,e.defaultValue||{},e.onChange),a=e.fields||[{key:"name",label:t.colName},{key:"role",label:t.role},{key:"company",label:t.company},{key:"phone",label:t.phone},{key:"website",label:t.website}];function l(i,s){let c=Object.assign({},n[0]);c[i]=s,n[1](c)}return(0,X.jsxs)("div",{className:"tf-sig",children:[(0,X.jsxs)("div",{className:"tf-col",style:{gap:12},children:[a.map(i=>(0,X.jsx)(hr,{label:i.label,value:n[0][i.key]||"",onChange:s=>{l(i.key,s.target.value)}},i.key)),e.extra]}),(0,X.jsxs)("div",{className:"tf-sig-preview",children:[(0,X.jsx)("span",{className:"tf-menu-label",style:{padding:0},children:e.previewLabel||t.preview}),(0,X.jsxs)("div",{className:"tf-paper tf-sig-paper",children:[(0,X.jsx)("p",{children:"\u2014"}),(0,X.jsx)("b",{children:n[0].name}),n[0].role&&(0,X.jsx)("div",{children:n[0].role+(n[0].company?" \xB7 "+n[0].company:"")}),n[0].phone&&(0,X.jsx)("div",{children:n[0].phone}),n[0].website&&(0,X.jsx)("div",{children:n[0].website}),e.note&&(0,X.jsx)("small",{children:e.note})]})]})]})}function kv(e){return(0,X.jsx)(zr,{title:e.name,subtitle:e.meta,onClose:e.onClose,width:e.width||820,inline:e.inline,children:(0,X.jsxs)("div",{className:"tf-attprev",children:[(0,X.jsx)("div",{className:"tf-attprev-doc",children:e.children}),(0,X.jsxs)("div",{className:"tf-col",style:{gap:16},children:[e.facts&&(0,X.jsx)(Fn,{items:e.facts}),e.found,e.actions&&(0,X.jsx)("div",{className:"tf-col",style:{gap:8},children:e.actions})]})]})})}var ae=G(ye(),1),ba=G(re(),1);function Rv(e){let t=M(wl),n=$(e.selected,e.variants?.[0]?.id??"",e.onSelect),a=(e.variants||[]).find(l=>l.id===n[0])||{};return(0,ae.jsxs)("div",{className:"tf-imgvar",children:[(0,ae.jsxs)("div",{className:"tf-imgvar-stage",style:a.ratio?{aspectRatio:a.ratio}:void 0,children:[a.src?(0,ae.jsx)("img",{src:a.src,alt:e.alt||""}):(0,ae.jsx)("div",{className:p("tf-imgvar-ph","tf-t-"+(e.tint||"sky")),children:(0,ae.jsx)(x,{name:"image",size:32})}),a.label&&(0,ae.jsx)("span",{className:"tf-imgvar-tag",children:a.label})]}),(0,ae.jsx)("div",{className:"tf-imgvar-list",role:"listbox","aria-label":t.variants,children:(e.variants||[]).map(l=>(0,ae.jsxs)("button",{type:"button",role:"option","aria-selected":l.id===n[0],className:p("tf-imgvar-item",l.id===n[0]&&"on"),onClick:()=>{n[1](l.id)},children:[(0,ae.jsx)("span",{className:"tf-imgvar-thumb",style:l.ratio?{aspectRatio:l.ratio}:void 0,children:l.src?(0,ae.jsx)("img",{src:l.src,alt:""}):(0,ae.jsx)(x,{name:"image",size:14})}),(0,ae.jsxs)("span",{className:"tf-option-text",children:[(0,ae.jsx)("b",{children:l.label}),(0,ae.jsx)("small",{className:"tf-mono",children:[l.size,l.format,l.weight].filter(Boolean).join(" \xB7 ")})]}),l.status&&(0,ae.jsx)(ze,{status:l.status})]},l.id))}),e.actions&&(0,ae.jsx)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:e.actions})]})}function wv(e){let t=M(wl),n=e.items||[],a=ba.useState(e.start||0),l=ba.useState(!1),i=n.length,s=n[a[0]]||{};function c(o){a[1]((a[0]+o+i)%i)}ba.useEffect(()=>{if(!l[0])return;function o(f){f.key==="Escape"&&l[1](!1),f.key==="ArrowRight"&&c(1),f.key==="ArrowLeft"&&c(-1)}return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}});function r(o,f,d=e.loading||"lazy"){return o.src?(0,ae.jsx)("img",{className:f,src:o.src,alt:o.alt||"",loading:d,decoding:"async",referrerPolicy:e.referrerPolicy}):(0,ae.jsx)("div",{className:p(f,"tf-gallery-ph","tf-t-"+(o.tint||"sky")),children:o.art||(0,ae.jsx)(x,{name:"image",size:28})})}let u=(0,ae.jsxs)("div",{className:"tf-gallery-stage",style:{aspectRatio:e.ratio||"3 / 2"},children:[r(s,"tf-gallery-img"),i>1&&(0,ae.jsx)(W,{icon:"chevronLeft",label:t.previousImage,className:"tf-gallery-prev",onClick:()=>{c(-1)}}),i>1&&(0,ae.jsx)(W,{icon:"chevronRight",label:t.nextImage,className:"tf-gallery-next",onClick:()=>{c(1)}}),(0,ae.jsx)("span",{className:"tf-gallery-count",children:a[0]+1+" / "+i}),!l[0]&&e.fullscreen!==!1&&(0,ae.jsx)(W,{icon:"expand",label:t.fullScreen,className:"tf-gallery-full",onClick:()=>{l[1](!0)}}),e.badge&&(0,ae.jsx)("span",{className:"tf-gallery-badge",children:e.badge})]});return(0,ae.jsxs)("div",{className:"tf-gallery",children:[u,e.thumbs!==!1&&i>1&&(0,ae.jsx)("div",{className:"tf-gallery-thumbs",role:"tablist","aria-label":t.images,children:n.map((o,f)=>(0,ae.jsx)("button",{type:"button",role:"tab","aria-selected":f===a[0],className:p(f===a[0]&&"on"),onClick:()=>{a[1](f)},"aria-label":o.caption||o.alt||(o.src?t.imageN(f+1):void 0),children:r(o,"tf-gallery-thumb","lazy")},f))}),l[0]&&(0,ae.jsx)(_n,{children:(0,ae.jsxs)("div",{className:"tf-lightbox",role:"dialog","aria-modal":"true","aria-label":t.images,children:[(0,ae.jsx)(W,{icon:"x",label:t.close,className:"tf-lightbox-close",onClick:()=>{l[1](!1)}}),(0,ae.jsxs)("div",{className:"tf-lightbox-stage",children:[r(s,"tf-gallery-img","eager"),i>1&&(0,ae.jsx)(W,{icon:"chevronLeft",label:t.previousImage,className:"tf-gallery-prev",onClick:()=>{c(-1)}}),i>1&&(0,ae.jsx)(W,{icon:"chevronRight",label:t.nextImage,className:"tf-gallery-next",onClick:()=>{c(1)}})]}),(0,ae.jsx)("span",{className:"tf-lightbox-cap",children:(s.caption?s.caption+" \xB7 ":"")+(a[0]+1)+" / "+i})]})})]})}function zv(e){let t=M(wl),n=J(),a=ba.useState(e.start!=null?e.start:50),l=Math.round(a[0]),i=e.beforeLabel||t.before,s=e.afterLabel||t.after,c=ba.useRef(null),r=ba.useRef(!1);function u(f){if(!c.current)return;let d=c.current.getBoundingClientRect();a[1](Math.max(0,Math.min(100,(f.clientX-d.left)/d.width*100)))}function o(f,d){return f&&f.src?(0,ae.jsx)("img",{className:d,src:f.src,alt:f.alt||"",loading:e.loading||"lazy",decoding:"async",referrerPolicy:e.referrerPolicy}):(0,ae.jsx)("div",{className:p(d,"tf-ba-ph",f&&f.tint&&"tf-t-"+f.tint),children:f&&f.art})}return(0,ae.jsxs)("div",{ref:c,className:"tf-ba",style:{aspectRatio:e.ratio||"3 / 2"},onPointerDown:f=>{r.current=!0,f.currentTarget.setPointerCapture(f.pointerId),u(f)},onPointerMove:f=>{r.current&&u(f)},onPointerUp:()=>{r.current=!1},children:[o(e.after,"tf-ba-img"),(0,ae.jsx)("div",{className:"tf-ba-before",style:{clipPath:"inset(0 "+(100-a[0])+"% 0 0)"},children:o(e.before,"tf-ba-img")}),(0,ae.jsx)("span",{className:"tf-ba-tag left",children:i}),(0,ae.jsx)("span",{className:"tf-ba-tag right",children:s}),(0,ae.jsx)("div",{className:"tf-ba-line",style:{left:a[0]+"%"},children:(0,ae.jsxs)("span",{className:"tf-ba-knob",role:"slider",tabIndex:0,"aria-label":e.label||t.compareBeforeAfter,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l,"aria-valuetext":e.valueText?e.valueText(l):`${i} ${n.formatPercent(l)}, ${s} ${n.formatPercent(100-l)}`,onKeyDown:f=>{let d=f.key==="ArrowLeft"||f.key==="ArrowDown"?a[0]-5:f.key==="ArrowRight"||f.key==="ArrowUp"?a[0]+5:f.key==="PageDown"?a[0]-25:f.key==="PageUp"?a[0]+25:f.key==="Home"?0:f.key==="End"?100:null;d!=null&&(f.preventDefault(),a[1](Math.max(0,Math.min(100,d))))},children:[(0,ae.jsx)(x,{name:"chevronLeft",size:12}),(0,ae.jsx)(x,{name:"chevronRight",size:12})]})})]})}var A=G(ye(),1),$u=G(re(),1);function Av(e){let t={connected:"ok",expiring:"warn",error:"danger",missing:"idle"}[e.status]||"idle";return(0,A.jsxs)("div",{className:"tf-conn",children:[(0,A.jsx)("span",{className:"tf-conn-ico",children:e.logo||(0,A.jsx)(x,{name:e.icon||"link",size:18})}),(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{children:e.name}),(0,A.jsx)("small",{children:e.text})]}),(0,A.jsx)(Be,{status:t,label:e.statusLabel}),e.action&&(0,A.jsx)("span",{className:"tf-conn-act",children:e.action})]})}function _v(e){let t=M(tn);return!e.state||e.state==="online"?null:(0,A.jsxs)("div",{className:p("tf-connbanner",e.state),role:"status",children:[(0,A.jsx)(ze,{status:e.state==="offline"?"danger":"warn"}),(0,A.jsx)("span",{children:e.text||(e.state==="offline"?t.offline:t.connectionLost(e.seconds))}),e.onRetry&&(0,A.jsx)("button",{type:"button",className:"tf-linkbtn",onClick:e.onRetry,children:t.retryNow})]})}function Dv(e){let t=M(tn);return(0,A.jsxs)("div",{className:"tf-server",children:[(0,A.jsxs)("div",{className:"tf-server-top",children:[(0,A.jsx)("span",{className:"tf-conn-ico",children:e.logo||(0,A.jsx)(x,{name:"server",size:18})}),(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{children:e.name}),(0,A.jsx)("small",{className:"tf-mono",children:[e.provider,e.address].filter(Boolean).join(" \xB7 ")})]}),(0,A.jsx)(Be,{status:e.status||"idle",label:e.statusLabel})]}),(0,A.jsx)("div",{className:"tf-col",style:{gap:12},children:(e.meters||[]).map(n=>n.value==null?(0,A.jsxs)("div",{className:"tf-usage-top",children:[(0,A.jsx)("span",{children:n.label}),(0,A.jsx)("b",{children:n.unknown||t.unknown})]},n.label):(0,A.jsx)(Ka,{label:n.label,value:n.value,max:n.max,text:n.text},n.label))}),e.uptime&&(0,A.jsx)(Rr,{...e.uptime}),e.foot&&(0,A.jsx)("div",{className:"tf-server-foot",children:e.foot})]})}function Ov(e){let t=M(tn);return(0,A.jsx)("ol",{className:"tf-pipeline",tabIndex:0,"aria-label":t.deployPipeline,children:(e.stages||[]).map((n,a)=>(0,A.jsxs)("li",{className:p("tf-stage","st-"+(n.status||"idle")),children:[(0,A.jsx)(ze,{status:n.status==="done"?"ok":n.status||"idle"}),(0,A.jsx)("b",{children:n.name}),(0,A.jsx)("small",{className:"tf-mono",children:n.duration||"\u2014"}),n.action]},a))})}function jv(e){let t=M(tn);return(0,A.jsx)(Qs,{rows:e.records||[],rowKey:"id",columnToggle:!1,selectable:e.selectable,bulkActions:e.bulkActions,toolbar:e.toolbar,columns:[{key:"type",label:t.colType,sortable:!0,render:n=>(0,A.jsx)(Oe,{tone:"neutral",dot:!1,className:"tf-mono",children:n.type})},{key:"name",label:t.colName,sortable:!0,render:n=>(0,A.jsx)("span",{className:"tf-mono",children:n.name})},{key:"content",label:t.colContent,render:n=>(0,A.jsx)(et,{label:n.content,children:(0,A.jsx)("span",{className:"tf-mono tf-trunc",tabIndex:0,children:n.content})})},{key:"ttl",label:"TTL",align:"right",render:n=>(0,A.jsx)("span",{className:"tf-mono",children:n.ttl})},{key:"proxy",label:t.colProxy,render:n=>n.proxy==null?"\u2014":(0,A.jsx)(Be,{status:n.proxy?"ok":"idle",label:n.proxy?t.proxied:t.dnsOnly})},{key:"x",label:"",align:"right",hideable:!1,render:n=>e.rowMenu?(0,A.jsx)(Ue,{align:"end",flush:!0,width:200,trigger:a=>(0,A.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-ghost tf-iconbtn-sm","aria-label":t.actions,onClick:a.toggle,children:(0,A.jsx)(x,{name:"more"})}),children:a=>(0,A.jsx)(At,{items:(e.rowMenu?.(n)??[]).map(l=>l==="-"?l:Object.assign({},l,{onClick:()=>{a.close(),l.onClick&&l.onClick()}}))})}):null}]})}function Lv(e){let t=M(tn);return(0,A.jsx)("div",{className:"tf-domains",children:(e.items||[]).slice().sort((n,a)=>(n.days==null?9999:n.days)-(a.days==null?9999:a.days)).map(n=>{let a=n.days==null?"idle":n.days<7?"danger":n.days<30?"warn":"ok";return(0,A.jsxs)("button",{type:"button",className:"tf-domainrow",onClick:()=>{e.onOpen&&e.onOpen(n)},children:[(0,A.jsx)(ze,{status:a}),(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{className:"tf-mono",children:n.name}),(0,A.jsx)("small",{children:[n.registrar,n.dns].filter(Boolean).join(" \xB7 ")})]}),(0,A.jsxs)("span",{className:"tf-domainrow-cell",children:[(0,A.jsx)("small",{children:t.expires}),(0,A.jsx)("b",{className:"tf-mono",children:n.days==null?"\u2014":t.daysCount(n.days)})]}),(0,A.jsxs)("span",{className:"tf-domainrow-cell",children:[(0,A.jsx)("small",{children:"SSL"}),(0,A.jsx)(Be,{status:n.ssl||"idle",label:n.sslLabel})]})]},n.name)})})}function Hv(e){let t=M(tn),n=e.columns||["MX","SPF","DKIM","DMARC"],a=$u.useRef(null);return ma(a),(0,A.jsx)("div",{ref:a,className:"tf-scroll-x",children:(0,A.jsxs)("table",{className:"tf-table tf-mailauth",children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:t.domain}),n.map(l=>(0,A.jsx)("th",{children:l},l))]})}),(0,A.jsx)("tbody",{children:(e.rows||[]).map(l=>(0,A.jsxs)("tr",{children:[(0,A.jsx)("td",{className:"tf-mono",children:l.domain}),n.map(i=>{let s=l[i.toLowerCase()]||{status:"idle"};return(0,A.jsx)("td",{children:(0,A.jsx)("button",{type:"button",className:"tf-mailauth-cell",onClick:()=>{e.onOpen&&e.onOpen(l,i)},children:(0,A.jsx)(Be,{status:s.status,label:s.label})})},i)})]},l.domain))})]})})}function Uv(e){let t=M(tn),{formatMoney:n}=J(),a=e.currency;return(0,A.jsx)(Qs,{rows:e.rows||[],selectable:e.selectable,bulkActions:e.bulkActions,toolbar:e.toolbar,stickyHeader:!0,maxHeight:e.maxHeight,columnToggle:e.columnToggle,columns:[{key:"date",label:t.colDate,sortable:!0,render:l=>(0,A.jsx)("span",{className:"tf-mono",children:l.date})},{key:"ref",label:t.colRef,render:l=>(0,A.jsx)("span",{className:"tf-mono",children:l.ref})},{key:"text",label:t.colDescription,render:l=>(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{children:l.text}),l.suggested&&(0,A.jsxs)("small",{children:[(0,A.jsx)(ze,{status:"signal"})," ",t.suggestedBy(l.suggested)]})]})},{key:"category",label:t.colCategory,render:l=>e.categories?(0,A.jsx)(Mr,{value:l.category||"",options:e.categories,onSave:i=>{e.onEdit?.(l,{category:i})}}):l.category},{key:"project",label:t.colProject,render:l=>l.project&&(0,A.jsxs)("span",{className:"tf-row",style:{gap:8,flexWrap:"nowrap"},children:[(0,A.jsx)("i",{className:"tf-sw tf-sw-"+(l.projectTint||"ink")}),l.project]})},{key:"net",label:t.net,align:"right",sortable:!0,render:l=>n(l.net,a,{minimumFractionDigits:2})},{key:"vat",label:t.vat,align:"right",render:l=>n(l.vat||0,a,{minimumFractionDigits:2})},{key:"gross",label:t.grossLabel,align:"right",sortable:!0,render:l=>(0,A.jsx)("b",{className:l.gross<0?"tf-neg":void 0,children:n(l.gross,a,{minimumFractionDigits:2})})},{key:"status",label:t.status,render:l=>(0,A.jsx)(Be,{status:l.status||"ok",label:l.statusLabel})}]})}function Bv(e){let t=M(tn),{formatMoney:n}=J(),a=e.columns||[],l=$u.useRef(null);return ma(l),(0,A.jsx)("div",{ref:l,className:"tf-scroll-x",children:(0,A.jsxs)("table",{className:"tf-table tf-pnl",children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:e.label||""}),a.map(i=>(0,A.jsx)("th",{className:"tf-num",children:i},i)),e.total!==!1&&(0,A.jsx)("th",{className:"tf-num",children:t.total})]})}),(0,A.jsx)("tbody",{children:(e.rows||[]).map((i,s)=>{let c=(i.values||[]).reduce((r,u)=>r+(u||0),0);return(0,A.jsxs)("tr",{className:i.kind,children:[(0,A.jsx)("td",{children:i.label}),i.kind==="section"?(0,A.jsx)("td",{colSpan:a.length+(e.total!==!1?1:0)}):a.map((r,u)=>{let o=(i.values||[])[u];return(0,A.jsx)("td",{className:p("tf-num",o<0&&"tf-neg"),children:o==null?"\u2014":n(o,e.currency)},u)}),i.kind!=="section"&&e.total!==!1&&(0,A.jsx)("td",{className:p("tf-num",c<0&&"tf-neg"),children:(0,A.jsx)("b",{children:n(c,e.currency)})})]},s)})})]})})}function Vv(e){let t=M(tn),{formatPercent:n}=J();return(0,A.jsxs)("div",{className:"tf-receipt",children:[(0,A.jsxs)("div",{className:"tf-receipt-src",children:[(0,A.jsx)(ce,{icon:"paperclip",tint:"sky"}),(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{children:e.file}),(0,A.jsx)("small",{children:e.source})]})]}),(0,A.jsx)("div",{className:"tf-receipt-grid",children:(e.fields||[]).map(a=>(0,A.jsxs)("div",{className:"tf-receipt-field",children:[(0,A.jsx)("small",{children:a.label}),(0,A.jsx)("b",{className:a.mono?"tf-mono":void 0,children:a.value}),a.confidence!=null&&(0,A.jsx)("span",{className:p("tf-conf",a.confidence<.8&&"low"),children:n(a.confidence*100)})]},a.label))}),e.suggestion&&(0,A.jsxs)("div",{className:"tf-receipt-sugg",children:[(0,A.jsx)(ze,{status:"signal"}),(0,A.jsx)("span",{children:e.suggestion})]}),e.children,(0,A.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:[e.onDiscard&&(0,A.jsx)(K,{variant:"ghost",size:"sm",onClick:e.onDiscard,children:e.discardLabel||t.notAReceipt}),e.onConfirm&&(0,A.jsx)(K,{size:"sm",icon:"check",onClick:e.onConfirm,children:e.confirmLabel||t.bookIt})]})]})}var pe=G(ye(),1),jk=G(re(),1);function qv(e){let t=M(Si),n=$(e.device,"desktop",e.onDevice);return(0,pe.jsxs)("div",{className:"tf-mailprev",children:[(0,pe.jsxs)("div",{className:"tf-mailprev-head",children:[(0,pe.jsxs)("div",{className:"tf-mailprev-inbox",children:[(0,pe.jsx)(Ve,{name:e.fromName||e.from||"",size:36}),(0,pe.jsxs)("div",{className:"tf-option-text",children:[(0,pe.jsx)("b",{children:e.fromName||e.from}),(0,pe.jsxs)("span",{className:"tf-mailprev-subj",children:[(0,pe.jsx)("b",{children:e.subject||t.noSubject}),e.preheader&&(0,pe.jsx)("span",{children:" \u2014 "+e.preheader})]})]})]}),(0,pe.jsx)(Zn,{size:"sm",value:n[0],onChange:n[1],label:t.device,options:[{value:"desktop",label:t.desktop},{value:"mobile",label:t.mobile}]})]}),(0,pe.jsx)("div",{className:p("tf-mailprev-stage",n[0]),children:(0,pe.jsx)("div",{className:"tf-mailprev-frame",children:e.html!=null?(0,pe.jsx)("iframe",{title:t.emailPreview,sandbox:"",srcDoc:e.html}):(0,pe.jsx)("div",{className:"tf-mailprev-body",children:e.children})})}),e.checks&&(0,pe.jsx)("div",{className:"tf-mailprev-checks",children:e.checks.map((a,l)=>(0,pe.jsx)(Be,{status:a.status,label:a.label,size:"sm"},l))})]})}function Gv(e){let t=M(Si),n=$(e.device,"mobile",e.onDevice),a=(e.headlines||[]).filter(Boolean).slice(0,3),l=(e.descriptions||[]).filter(Boolean).slice(0,2),i=[["headlines",30],["descriptions",90],["paths",15]],s=[];i.forEach(r=>{(e[r[0]]||[]).forEach((u,o)=>{u&&u.length>r[1]&&s.push(t.adTooLong(r[0],o+1,u.length,r[1]))})});let c=(e.domain||"")+(e.paths||[]).filter(Boolean).map(r=>" \u203A "+r).join("");return(0,pe.jsxs)("div",{className:"tf-adprev",children:[(0,pe.jsxs)("div",{className:"tf-row",style:{justifyContent:"space-between"},children:[(0,pe.jsx)("span",{className:"tf-menu-label",style:{padding:0},children:t.preview}),(0,pe.jsx)(Zn,{size:"sm",value:n[0],onChange:n[1],label:t.device,options:[{value:"mobile",label:t.mobile},{value:"desktop",label:t.desktop}]})]}),(0,pe.jsxs)("div",{className:p("tf-adprev-card",n[0]),children:[(0,pe.jsxs)("div",{className:"tf-adprev-top",children:[(0,pe.jsx)("span",{className:"tf-adprev-fav","aria-hidden":!0,children:(e.name||e.domain||"?").charAt(0).toUpperCase()}),(0,pe.jsxs)("div",{className:"tf-option-text",children:[(0,pe.jsx)("b",{children:e.name||e.domain}),(0,pe.jsx)("small",{children:c})]}),(0,pe.jsx)("span",{className:"tf-adprev-tag",children:e.sponsoredLabel||t.sponsored})]}),(0,pe.jsx)("a",{className:"tf-adprev-hl",href:"#",onClick:r=>{r.preventDefault()},children:a.join(" | ")||t.yourHeadline}),(0,pe.jsx)("p",{className:"tf-adprev-desc",children:l.join(" ")||t.yourDescription}),e.sitelinks&&e.sitelinks.length>0&&(0,pe.jsx)("div",{className:"tf-adprev-links",children:e.sitelinks.map((r,u)=>(0,pe.jsx)("span",{children:r},u))})]}),s.length>0&&(0,pe.jsx)("div",{className:"tf-col",style:{gap:4},children:s.map((r,u)=>(0,pe.jsx)(Be,{status:"warn",label:r,size:"sm"},u))})]})}var he=G(ye(),1),Ln=G(re(),1);function Yv(e){let t=Se("acc"),n=e.items||[],a=n.map((c,r)=>c.id??String(r)),l=$(e.value,e.defaultValue||[],e.onChange),i=Ln.useRef(null),s=c=>{let r=l[0].includes(c);l[1](r?l[0].filter(u=>u!==c):e.multiple?l[0].concat(c):[c])};return(0,he.jsx)("div",{ref:i,className:p("tf-accordion",e.variant==="flush"&&"flush",e.className),style:e.style,onKeyDown:c=>{c.target.classList.contains("tf-accordion-head")&&Hl(c,i.current,".tf-accordion-head","vertical")},children:n.map((c,r)=>{let u=a[r],o=l[0].includes(u);return(0,he.jsxs)("div",{className:p("tf-accordion-item",o&&"open"),children:[(0,he.jsx)("h3",{className:"tf-accordion-h",children:(0,he.jsxs)("button",{type:"button",id:`${t}-h${r}`,className:"tf-accordion-head","aria-expanded":o,"aria-controls":`${t}-p${r}`,disabled:c.disabled,onClick:()=>s(u),children:[c.icon&&(0,he.jsx)(x,{name:c.icon}),(0,he.jsx)("span",{className:"tf-accordion-title",children:c.title}),c.meta&&(0,he.jsx)("span",{className:"tf-accordion-meta",children:c.meta}),(0,he.jsx)(x,{name:"chevronDown",size:16,className:"tf-accordion-chev"})]})}),(0,he.jsx)("div",{id:`${t}-p${r}`,role:"region","aria-labelledby":`${t}-h${r}`,className:"tf-accordion-panel",hidden:!o,children:(0,he.jsx)("div",{className:"tf-accordion-body",children:c.content})})]},u)})})}function Qv(e){let t=e.orientation==="vertical";return e.label&&!t?(0,he.jsx)("div",{className:p("tf-sep","labelled",e.className),style:e.style,role:"separator",children:(0,he.jsx)("span",{children:e.label})}):(0,he.jsx)("div",{className:p("tf-sep",t&&"vertical",e.className),style:e.style,role:"separator","aria-orientation":t?"vertical":void 0})}function Xv(e){return(0,he.jsx)("div",{className:p("tf-aspect",e.className),style:{aspectRatio:String(e.ratio||16/9),...e.style},children:e.children})}function Kv(e){return(0,he.jsxs)("label",{className:p("tf-field-label","tf-label",e.className),style:e.style,htmlFor:e.htmlFor,children:[e.children,e.required&&(0,he.jsx)("span",{className:"tf-label-req","aria-hidden":!0,children:"*"}),e.hint&&(0,he.jsx)("span",{className:"tf-label-hint",children:e.hint})]})}function Zv(e){let t=$(e.pressed,!!e.defaultPressed,e.onChange),n=!!e.icon&&!e.children;return(0,he.jsxs)("button",{type:"button",className:p("tf-toggle",e.size==="sm"&&"sm",n&&"icon",e.className),style:e.style,"aria-pressed":t[0],"aria-label":n?e.label:void 0,title:n?e.label:void 0,disabled:e.disabled,onClick:()=>t[1](!t[0]),children:[e.icon&&(0,he.jsx)(x,{name:e.icon}),e.children]})}var jx=e=>typeof e=="string"?{value:e,label:e}:e;function Fv(e){let t=$(e.value,e.defaultValue||[],e.onChange),n=Ln.useRef(null),a=(e.items||[]).map(jx);return(0,he.jsx)("div",{ref:n,className:p("tf-togglegroup",e.size==="sm"&&"sm",e.className),style:e.style,role:"group","aria-label":e.label,onKeyDown:l=>Hl(l,n.current,".tf-toggle","horizontal"),children:a.map(l=>{let i=t[0].includes(l.value),s=!!l.icon&&!l.label;return(0,he.jsxs)("button",{type:"button",className:p("tf-toggle",e.size==="sm"&&"sm",s&&"icon"),"aria-pressed":i,"aria-label":s?l.hint||l.value:void 0,title:l.hint,onClick:()=>t[1](e.type==="multiple"?i?t[0].filter(c=>c!==l.value):t[0].concat(l.value):i?[]:[l.value]),children:[l.icon&&(0,he.jsx)(x,{name:l.icon}),l.label]},l.value)})})}function Iv(e){return(0,he.jsx)("div",{className:p("tf-btngroup",e.orientation==="vertical"&&"vertical",e.className),style:e.style,role:"group","aria-label":e.label,children:e.children})}function Jv(e){let t=e.orientation||"vertical";return(0,he.jsx)("div",{className:p("tf-scrollarea",t,e.className),style:{height:e.height,maxHeight:e.maxHeight,...e.style},role:"region","aria-label":e.label,tabIndex:0,children:e.children})}function $v(e){let[t,n]=Ln.useState(!1),a=Ln.useRef(void 0),l=Ln.useRef(null),i=St(t);Ll(l,t);let s=(c,r)=>{clearTimeout(a.current),a.current=setTimeout(()=>n(c),r)};return Ln.useEffect(()=>()=>clearTimeout(a.current),[]),(0,he.jsxs)("span",{className:p("tf-hovercard-anchor",e.className),style:e.style,onPointerEnter:()=>s(!0,e.openDelay??500),onPointerLeave:()=>s(!1,e.closeDelay??200),onFocus:()=>s(!0,0),onBlur:c=>{c.currentTarget.contains(c.relatedTarget)||s(!1,0)},onKeyDown:c=>{c.key==="Escape"&&s(!1,0)},children:[e.trigger,i.mounted&&(0,he.jsx)("div",{...ft(i.closing),ref:l,className:p("tf-hovercard","tf-hc-"+(e.side||"bottom"),"tf-hc-"+(e.align||"center")),style:e.width?{width:e.width}:void 0,children:e.children})]})}function Pv(e){let t=M(zs),n=e.slides||[],a=n.length,l=$(e.index,e.defaultIndex||0,e.onChange),i=Ln.useRef(null),s=Math.max(1,e.perView||1),c=Math.max(0,a-s),r=u=>{let o=e.loop?u>c?0:u<0?c:u:Math.min(c,Math.max(0,u)),f=i.current?.children[o];f&&i.current&&i.current.scrollTo({left:f.offsetLeft-i.current.offsetLeft,behavior:"smooth"}),l[1](o)};return Ln.useEffect(()=>{let u=i.current;if(!u)return;let o=0,f=()=>{cancelAnimationFrame(o),o=requestAnimationFrame(()=>{let d=u.firstElementChild?.offsetWidth||1,m=parseFloat(getComputedStyle(u).columnGap)||0,N=Math.round(u.scrollLeft/(d+m));N!==l[0]&&l[1](Math.min(c,N))})};return u.addEventListener("scroll",f,{passive:!0}),()=>{u.removeEventListener("scroll",f),cancelAnimationFrame(o)}}),(0,he.jsxs)("section",{className:p("tf-carousel",e.className),style:{"--per":s,...e.style},"aria-roledescription":"carousel","aria-label":e.label,onKeyDown:u=>{u.key==="ArrowRight"?(u.preventDefault(),r(l[0]+1)):u.key==="ArrowLeft"&&(u.preventDefault(),r(l[0]-1))},children:[(0,he.jsx)("div",{ref:i,className:"tf-carousel-track",tabIndex:0,children:n.map((u,o)=>(0,he.jsx)("div",{className:"tf-carousel-slide",role:"group","aria-roledescription":t.slide,"aria-label":t.slideOf(o+1,a),children:u},o))}),(0,he.jsxs)("div",{className:"tf-carousel-bar",children:[(0,he.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-soft tf-iconbtn-sm","aria-label":t.previousSlide,disabled:!e.loop&&l[0]<=0,onClick:()=>r(l[0]-1),children:(0,he.jsx)(x,{name:"chevronLeft"})}),e.dots!==!1&&(0,he.jsx)("div",{className:"tf-carousel-dots",children:Array.from({length:c+1},(u,o)=>(0,he.jsx)("button",{type:"button",className:"tf-carousel-dot","aria-label":t.goToSlide(o+1),"aria-current":o===l[0]?"true":void 0,onClick:()=>r(o)},o))}),(0,he.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-soft tf-iconbtn-sm","aria-label":t.nextSlide,disabled:!e.loop&&l[0]>=c,onClick:()=>r(l[0]+1),children:(0,he.jsx)(x,{name:"chevronRight"})})]})]})}var V=G(ye(),1),$k=G(re(),1);function Lx(e,t,{formatNumber:n}){return[e.area!=null&&[(0,V.jsx)(x,{name:"ruler",size:14},"i"),`${n(e.area)} m\xB2`],e.rooms!=null&&[(0,V.jsx)(x,{name:"bed",size:14},"i"),t.rooms(n(e.rooms),e.rooms)],e.place&&[(0,V.jsx)(x,{name:"pin",size:14},"i"),e.place]].filter(Boolean).map((a,l)=>(0,V.jsx)("span",{children:a},l))}function Hx(e,t,{formatMoney:n}){return e.price==null?(0,V.jsx)("b",{className:"tf-listing-price",children:t.priceOnRequest}):(0,V.jsxs)("b",{className:"tf-listing-price",children:[n(e.price,e.currency),e.rent&&(0,V.jsxs)("small",{children:[" ",t.perMonth]})]})}function Wv(e){let t=M(fa),n=J(),{formatMoney:a,formatNumber:l}=n,i=e.listing||e;return(0,V.jsxs)("article",{className:p("tf-listing",e.layout==="row"&&"row",e.selected&&"selected",i.status==="unread"&&"unread"),onClick:e.onOpen&&(()=>{e.onOpen?.(i)}),children:[(0,V.jsxs)("div",{className:"tf-listing-media",children:[i.image?(0,V.jsx)("img",{src:i.image,alt:""}):(0,V.jsx)("div",{className:p("tf-listing-ph","tf-t-"+(i.tint||"sky")),children:(0,V.jsx)(x,{name:"image",size:24})}),i.isNew&&(0,V.jsx)("span",{className:"tf-listing-new",children:t.isNew}),(i.photos??0)>1&&(0,V.jsxs)("span",{className:"tf-listing-photos",children:[(0,V.jsx)(x,{name:"image",size:12}),l(i.photos??0)]}),e.onSelect&&(0,V.jsx)("label",{className:"tf-listing-sel",onClick:s=>{s.stopPropagation()},children:Us({checked:!!e.selected,onChange:()=>{e.onSelect?.(i)},label:t.select})})]}),(0,V.jsxs)("div",{className:"tf-listing-body",children:[(0,V.jsxs)("div",{className:"tf-listing-top",children:[Hx(i,t,n),i.pricePerSqm!=null&&(0,V.jsx)("span",{className:"tf-listing-ppsqm",children:a(i.pricePerSqm,i.currency)+" / m\xB2"}),e.onWish&&(0,V.jsx)(W,{icon:"heart",size:"sm",label:i.wished?t.removeFromSaved:t.save,className:p("tf-listing-wish",i.wished&&"on"),onClick:s=>{s.stopPropagation(),e.onWish?.(i)}})]}),(0,V.jsx)("b",{className:"tf-listing-title",children:i.title}),(0,V.jsx)("div",{className:"tf-listing-facts",children:Lx(i,t,n)}),(0,V.jsxs)("div",{className:"tf-listing-foot",children:[i.source&&(0,V.jsx)("span",{className:"tf-listing-src",children:i.source}),i.seller&&(0,V.jsx)(Oe,{tone:i.seller==="private"?"success":"neutral",dot:!1,children:i.sellerLabel||(i.seller==="private"?t.privateSeller:t.agent)}),i.phone&&(0,V.jsx)("span",{className:"tf-listing-flag",title:t.phoneAvailable,children:(0,V.jsx)(x,{name:"phone",size:13})}),(0,V.jsx)("span",{style:{flex:1}}),i.age&&(0,V.jsx)("span",{className:"tf-listing-age",children:i.age}),e.statusOptions&&(0,V.jsx)("span",{onClick:s=>{s.stopPropagation()},children:(0,V.jsx)(wr,{size:"sm",options:e.statusOptions,value:i.status,onChange:s=>{e.onStatus&&e.onStatus(i,s)},label:t.status})})]})]})]})}function eb(e){let t=M(fa),{formatNumber:n}=J(),a=e.total>0&&e.selected===e.total,l=(e.selected??0)>0&&!a;return(0,V.jsxs)("div",{className:"tf-results",children:[e.onSelectAll&&(0,V.jsx)("label",{className:"tf-check",children:Us({checked:a,indeterminate:l,onChange:()=>{e.onSelectAll?.(!a)},label:a?t.deselectAll:t.selectAll})}),(0,V.jsxs)("div",{className:"tf-option-text",style:{marginRight:"auto"},children:[(0,V.jsx)("b",{children:(e.selected??0)>0?t.selectedCount(e.selected??0,n(e.selected??0)):e.title||t.results}),(0,V.jsx)("small",{children:t.foundCount(e.total||0,n(e.total||0))+(e.meta?" \xB7 "+e.meta:"")})]}),(e.selected??0)>0&&(e.bulkActions||[]).map((i,s)=>(0,V.jsx)(K,{size:"sm",variant:i.variant||"secondary",icon:i.icon,disabled:i.busy,onClick:i.onClick,children:i.busy?i.busyLabel||t.workingEllipsis:i.label},s)),e.sortOptions&&(0,V.jsxs)("label",{className:"tf-results-sort",children:[(0,V.jsx)("span",{children:t.sort}),(0,V.jsx)("select",{className:"tf-input",value:e.sort,onChange:i=>{e.onSort&&e.onSort(i.target.value)},children:e.sortOptions.map(i=>(0,V.jsx)("option",{value:i.value,children:i.label},i.value))})]}),e.views&&(0,V.jsx)(Zn,{size:"sm",value:e.view,onChange:e.onView,label:t.view,options:e.views.map(i=>({value:i,icon:i==="grid"?"grid":i==="map"?"map":"list",label:i==="grid"?t.viewGrid:i==="map"?t.viewMap:t.viewList}))})]})}function tb(e){let t=M(fa),{formatNumber:n}=J();return(0,V.jsxs)("div",{className:p("tf-saved",e.enabled===!1&&"off"),children:[(0,V.jsxs)("div",{className:"tf-saved-head",children:[(0,V.jsx)(ce,{icon:e.icon||"search",tint:e.tint||"sky",size:36}),(0,V.jsxs)("div",{className:"tf-option-text",style:{flex:1,minWidth:0},children:[(0,V.jsx)("b",{children:e.name}),(0,V.jsx)("small",{children:[e.lastRun&&t.checkedAt(e.lastRun),e.frequency].filter(Boolean).join(" \xB7 ")})]}),(e.newCount??0)>0&&(0,V.jsx)("span",{className:"tf-nav-count",children:n(e.newCount??0)}),e.onToggle&&(0,V.jsx)(Xa,{checked:e.enabled!==!1,onChange:e.onToggle,label:t.enabled})]}),(0,V.jsx)("div",{className:"tf-saved-crit",children:(e.criteria||[]).map((a,l)=>(0,V.jsx)("span",{className:"tf-saved-chip",children:a},l))}),(e.onOpen||e.onEdit)&&(0,V.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:[e.onEdit&&(0,V.jsx)(K,{size:"sm",variant:"ghost",icon:"edit",onClick:e.onEdit,children:t.edit}),e.onOpen&&(0,V.jsx)(K,{size:"sm",variant:"soft",onClick:e.onOpen,children:e.openLabel||t.showResults})]})]})}function nb(e){let t=M(fa),{formatMoney:n,formatNumber:a}=J(),l=e.low,i=e.high,s=e.value,c=i-l||1,r=(s-l)/c*100,u=e.confidence,o=u==null?null:u>=.75?["ok",t.highConfidence]:u>=.5?["warn",t.mediumConfidence]:["danger",t.lowConfidence];return(0,V.jsxs)("div",{className:"tf-valuation",children:[(0,V.jsxs)("div",{className:"tf-valuation-head",children:[(0,V.jsx)("span",{className:"tf-menu-label",style:{padding:0},children:e.title||t.estimatedValue}),o&&(0,V.jsx)(Be,{status:o[0],label:e.confidenceLabel||o[1],size:"sm"})]}),(0,V.jsx)("div",{className:"tf-valuation-val",children:n(s,e.currency)}),e.perSqm!=null&&(0,V.jsx)("span",{className:"tf-valuation-sub",children:n(e.perSqm,e.currency)+" / m\xB2"+(e.compare?" \xB7 "+e.compare:"")}),(0,V.jsxs)("div",{className:"tf-valuation-range",role:"img","aria-label":t.range(n(l,e.currency),n(i,e.currency)),children:[(0,V.jsxs)("div",{className:"tf-valuation-bar",children:[e.asking!=null&&(0,V.jsx)("span",{className:"tf-valuation-ask",style:{left:Math.max(0,Math.min(100,(e.asking-l)/c*100))+"%"},title:t.askingPrice}),(0,V.jsx)("span",{className:"tf-valuation-mark",style:{left:r+"%"}})]}),(0,V.jsxs)("div",{className:"tf-valuation-ends",children:[(0,V.jsx)("span",{children:n(l,e.currency)}),(0,V.jsx)("span",{children:n(i,e.currency)})]})]}),e.asking!=null&&(0,V.jsx)("span",{className:p("tf-valuation-diff",e.asking>i?"bad":e.asking<l?"good":""),children:t.askingPrice+" "+n(e.asking,e.currency)+" \xB7 "+(e.asking>s?"+":"")+a((e.asking-s)/s,{style:"percent",maximumFractionDigits:1})}),e.facts&&(0,V.jsx)(Fn,{dense:!0,items:e.facts}),e.note&&(0,V.jsx)("p",{className:"tf-card-desc",style:{margin:0},children:e.note}),e.action]})}var Ux=["A+","A","B","C","D","E","F","G","H"];function ab(e){let t=M(fa),{formatNumber:n}=J(),a=e.scale||Ux,l=a.indexOf(e.value);return(0,V.jsxs)("div",{className:"tf-energy",role:"img","aria-label":t.energyClass(e.value)+(e.kwh!=null?", "+n(e.kwh)+" kWh/(m\xB2\xB7a)":""),children:[(0,V.jsx)("div",{className:"tf-energy-scale",style:{gridTemplateColumns:"repeat("+a.length+", 1fr)"},children:a.map((i,s)=>(0,V.jsx)("span",{className:p("tf-energy-c",s===l&&"on"),style:{"--e":s/(a.length-1)},children:i},i))}),(e.kwh!=null||e.kind)&&(0,V.jsx)("span",{className:"tf-energy-meta",children:[e.kwh!=null&&n(e.kwh)+" kWh/(m\xB2\xB7a)",e.kind].filter(Boolean).join(" \xB7 ")})]})}var Ge=G(ye(),1),Hn=G(re(),1);var Bx={P:1,H3:1,BLOCKQUOTE:1,UL:1,OL:1,LI:1,B:1,STRONG:1,I:1,EM:1,U:1,A:1,BR:1},Vx={P:1,H3:1,BLOCKQUOTE:1,UL:1,OL:1};function lb(e){let t=document.createElement("div");return t.innerHTML=e||"",(function n(a){Array.from(a.childNodes).forEach(l=>{let i=l;if(i.nodeType===3)return;if(i.nodeType!==1||!Bx[i.tagName]){if(i.nodeType===1&&!/^(SCRIPT|STYLE|IFRAME|OBJECT)$/.test(i.tagName))for(n(i);i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i);return}let s=i.tagName==="A"?i.getAttribute("href"):null;Array.from(i.attributes).forEach(c=>{i.removeAttribute(c.name)}),i.tagName==="A"&&s&&/^(https?:|mailto:|tel:|\/|#|\{)/i.test(s)&&(i.setAttribute("href",s),i.setAttribute("rel","noopener noreferrer")),n(i)})})(t),Array.from(t.childNodes).forEach(n=>{if(n.nodeType===3?(n.textContent||"").trim():!Vx[n.tagName]){let a=document.createElement("p");t.insertBefore(a,n),a.appendChild(n)}else n.nodeType===3&&t.removeChild(n)}),t.innerHTML}function ib(e){let t=M(As),n=Hn.useRef(null),a=Hn.useState(0),l=Hn.useState({}),i=Hn.useState(!1),s=Hn.useState(""),c=Hn.useRef(null),r=Hn.useRef({stack:[],i:-1,t:void 0});function u(){return n.current}function o(){let j=window.getSelection();if(!j||!j.rangeCount)return null;let H=j.getRangeAt(0);return n.current&&n.current.contains(H.commonAncestorContainer)?H:null}function f(j){let H=window.getSelection();H&&(H.removeAllRanges(),H.addRange(j))}function d(j,H){let B=j;for(;B&&B!==u();){if(B.nodeType===1&&H(B))return B;B=B.parentNode}return null}function m(j,H){let B=j;if(B===u()){let F=u().childNodes;return F[Math.max(0,Math.min(F.length-1,(H||0)-(H?1:0)))]||null}for(;B&&B.parentNode!==u();)B=B.parentNode;return B&&B!==u()?B:null}function N(j){let H=o(),B=H&&{sc:H.startContainer,so:H.startOffset,ec:H.endContainer,eo:H.endOffset};if(j(H),B&&u().contains(B.sc)&&u().contains(B.ec))try{let F=document.createRange();F.setStart(B.sc,B.so),F.setEnd(B.ec,B.eo),f(F)}catch{}g(!0)}function S(j){let H=r.current;clearTimeout(H.t);function B(){let F=u().innerHTML;H.stack[H.i]!==F&&(H.stack=H.stack.slice(0,H.i+1).concat([F]).slice(-100),H.i=H.stack.length-1)}j?B():H.t=setTimeout(B,400)}function k(){let j=u();j&&(a[1]((j.innerText??j.textContent??"").trim().length),e.onChange&&e.onChange(lb(j.innerHTML)))}function g(j){S(j),k(),v()}function v(){let j=o();if(!j)return l[1]({});let H=j.startContainer,B=m(H),F=d(H,oe=>oe.tagName==="UL"||oe.tagName==="OL");l[1]({bold:!!d(H,oe=>oe.tagName==="B"||oe.tagName==="STRONG"),italic:!!d(H,oe=>oe.tagName==="I"||oe.tagName==="EM"),underline:!!d(H,oe=>oe.tagName==="U"),link:!!d(H,oe=>oe.tagName==="A"),heading:!!B&&B.tagName==="H3",quote:!!B&&B.tagName==="BLOCKQUOTE",list:!!F&&F.tagName==="UL",olist:!!F&&F.tagName==="OL"})}Hn.useEffect(()=>(u().innerHTML=lb(e.defaultValue||e.value||"")||"<p><br></p>",a[1]((u().innerText??u().textContent??"").trim().length),S(!0),document.addEventListener("selectionchange",v),()=>{document.removeEventListener("selectionchange",v)}),[]);function b(j){let H=j.parentNode;for(;j.firstChild;)H.insertBefore(j.firstChild,j);H.removeChild(j)}function y(j,H){let B=o();if(!B)return;let F=d(B.startContainer,Wt=>Wt.tagName===j||Wt.tagName===H);if(F)return b(F),g(!0);if(B.collapsed)return;let oe=document.createElement(j);oe.appendChild(B.extractContents()),Array.prototype.slice.call(oe.querySelectorAll(j+(H?","+H:""))).forEach(b),B.insertNode(oe);let lt=document.createRange();lt.selectNodeContents(oe),f(lt),g(!0)}function z(j){let H=m(j.startContainer,j.startOffset),B=m(j.endContainer,j.endOffset),F=[],oe=H;for(;oe&&(F.push(oe),oe!==B);)oe=oe.nextSibling;return F}function q(j){o()&&N(H=>{if(!H)return;let B=z(H),F=B.every(oe=>oe.tagName===j);B.forEach(oe=>{(oe.tagName==="UL"||oe.tagName==="OL"?Array.from(oe.children):[oe]).forEach(Wt=>{let El=document.createElement(F?"P":j);for(;Wt.firstChild;)El.appendChild(Wt.firstChild);u().insertBefore(El,oe)}),u().removeChild(oe)})})}function U(j){o()&&N(H=>{if(!H)return;let B=z(H),F=B[0];if(!F)return;if(B.length===1&&F.tagName===j){Array.from(F.children).forEach(lt=>{let Wt=document.createElement("P");for(;lt.firstChild;)Wt.appendChild(lt.firstChild);u().insertBefore(Wt,F)}),u().removeChild(F);return}let oe=document.createElement(j);u().insertBefore(oe,F),B.forEach(lt=>{(lt.tagName==="UL"||lt.tagName==="OL"?Array.from(lt.children):[lt]).forEach(El=>{let fi=document.createElement("LI");for(;El.firstChild;)fi.appendChild(El.firstChild);oe.appendChild(fi)}),u().removeChild(lt)})})}function O(){let j=o();if(!j)return;c.current=j.cloneRange();let H=d(j.startContainer,B=>B.tagName==="A");s[1](H&&H.getAttribute("href")||""),i[1](!0)}function P(j){let H=c.current;if(i[1](!1),!H)return;u().focus(),f(H);let B=d(H.startContainer,lt=>lt.tagName==="A"),F=s[0].trim();if(F&&!/^(https?:|mailto:|tel:|\/|#|\{)/i.test(F)&&(F="https://"+F),j||!F)return B&&b(B),g(!0);if(B)return B.setAttribute("href",F),g(!0);let oe=document.createElement("A");oe.setAttribute("href",F),oe.setAttribute("rel","noopener noreferrer"),H.collapsed?oe.textContent=F:oe.appendChild(H.extractContents()),H.insertNode(oe),g(!0)}function I(j){let H=o();if(H||(u().focus(),H=o()),!H)return;H.deleteContents();let B=document.createTextNode(j);H.insertNode(B);let F=document.createRange();F.setStartAfter(B),F.collapse(!0),f(F),g(!0)}function Fe(j){let H=r.current;S(!0);let B=H.i+j;if(B<0||B>=H.stack.length)return;H.i=B,u().innerHTML=H.stack[B]??"";let F=document.createRange();F.selectNodeContents(u()),F.collapse(!1),f(F),k()}function ua(j){if(!(j.metaKey||j.ctrlKey))return;let B=j.key.toLowerCase();B==="b"?(j.preventDefault(),y("B","STRONG")):B==="i"?(j.preventDefault(),y("I","EM")):B==="u"?(j.preventDefault(),y("U")):B==="k"?(j.preventDefault(),O()):B==="z"?(j.preventDefault(),Fe(j.shiftKey?1:-1)):B==="y"&&(j.preventDefault(),Fe(1))}function Rn(j){j.preventDefault();let B=j.clipboardData.getData("text/plain").replace(/\r/g,"").split(`
|
|
30
|
-
`);if(I(B[0]??""),B.length>1){let F=o(),lt=F&&m(F.startContainer,F.startOffset);if(!lt)return g(!0);B.slice(1).forEach(El=>{let fi=document.createElement("P");fi.textContent=El;let ih=lt;ih.parentNode?.insertBefore(fi,ih.nextSibling),lt=fi});let Wt=document.createRange();Wt.selectNodeContents(lt),Wt.collapse(!1),f(Wt),g(!0)}}function Kc(){let j=u();(!j.firstChild||j.innerHTML==="<br>")&&(j.innerHTML="<p><br></p>"),Array.from(j.childNodes).forEach(H=>{if(H.nodeType===3&&(H.textContent||"").trim()){let B=document.createElement("P");j.insertBefore(B,H),B.appendChild(H);let F=document.createRange();F.selectNodeContents(B),F.collapse(!1),f(F)}}),g(!1)}let DS=[["bold",()=>{y("B","STRONG")},t.bold,"B"],["italic",()=>{y("I","EM")},t.italic,"I"],["underline",()=>{y("U")},t.underline,"U"],"-",["heading",()=>{q("H3")},t.heading],["quote",()=>{q("BLOCKQUOTE")},t.quote],["list",()=>{U("UL")},t.bulletedList],["olist",()=>{U("OL")},t.numberedList],"-",["link",O,t.link,"K"],"-",["undo",()=>{Fe(-1)},t.undo,"Z"],["redo",()=>{Fe(1)},t.redo]],lh=e.maxLength&&a[0]>e.maxLength,OS=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform||"")?"\u2318":"Ctrl+";return(0,Ge.jsx)(ht,{label:e.label,hint:e.hint,error:e.error,children:(0,Ge.jsxs)("div",{className:p("tf-rte",lh&&"invalid"),children:[(0,Ge.jsxs)("div",{className:"tf-rte-bar",role:"toolbar","aria-label":t.formatting,children:[DS.map((j,H)=>{if(j==="-")return(0,Ge.jsx)("span",{className:"tf-rte-sep","aria-hidden":!0},H);let B=(0,Ge.jsx)("button",{type:"button",className:p("tf-rte-btn",l[0][j[0]]&&"on"),title:j[2]+(j[3]?" ("+OS+j[3]+")":""),"aria-label":j[2],"aria-pressed":j[0]==="undo"||j[0]==="redo"?void 0:!!l[0][j[0]],disabled:e.disabled,onMouseDown:F=>{F.preventDefault()},onClick:j[1],children:(0,Ge.jsx)(x,{name:j[0],size:15})},H);return j[0]==="link"?(0,Ge.jsx)(Ue,{width:300,open:i[0],onOpenChange:i[1],trigger:B,children:(0,Ge.jsxs)("form",{className:"tf-col",style:{gap:8},onSubmit:F=>{F.preventDefault(),P(!1)},children:[(0,Ge.jsx)("input",{className:"tf-input",autoFocus:!0,value:s[0],onChange:F=>{s[1](F.target.value)},placeholder:t.linkAddress,"aria-label":t.linkAddress,inputMode:"url"}),(0,Ge.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end",gap:8},children:[l[0].link&&(0,Ge.jsx)(K,{size:"sm",variant:"ghost",onClick:()=>{P(!0)},children:t.removeLink}),(0,Ge.jsx)(K,{size:"sm",type:"submit",children:t.apply})]})]})},H):B}),e.variables&&e.variables.length>0&&(0,Ge.jsx)(Ue,{width:240,trigger:j=>(0,Ge.jsxs)("button",{type:"button",className:"tf-rte-var",onMouseDown:H=>{H.preventDefault()},onClick:j.toggle,"aria-expanded":j.open,children:["{ }",(0,Ge.jsx)("span",{children:t.insertField})]}),children:j=>(0,Ge.jsx)("div",{className:"tf-menu",children:(e.variables||[]).map(H=>(0,Ge.jsxs)("button",{type:"button",className:"tf-menu-item",onMouseDown:B=>{B.preventDefault()},onClick:()=>{I("{"+H.key+"}"),j.close&&j.close()},children:[(0,Ge.jsx)("span",{style:{flex:1},children:H.label}),(0,Ge.jsx)("code",{children:"{"+H.key+"}"})]},H.key))})})]}),(0,Ge.jsx)("div",{ref:n,className:"tf-rte-area",contentEditable:!e.disabled,role:"textbox","aria-multiline":"true","aria-label":typeof e.label=="string"?e.label:t.text,"data-placeholder":e.placeholder||"",suppressContentEditableWarning:!0,onInput:Kc,onKeyDown:ua,onPaste:Rn,onBlur:k,style:{minHeight:e.minHeight||160}}),(e.maxLength||e.footer)&&(0,Ge.jsxs)("div",{className:"tf-rte-foot",children:[e.footer,e.maxLength&&(0,Ge.jsx)("span",{className:p("tf-rte-count",lh&&"over"),children:vn(a[0])+" / "+vn(e.maxLength)})]})]})})}var se=G(ye(),1),Fa=G(re(),1);function Pu(e){let t=M(zl);return(0,se.jsxs)("nav",{className:"tf-topbar","aria-label":t.mainNavigation,children:[e.brand&&(0,se.jsxs)("span",{className:"tf-brand",children:[e.brand,(0,se.jsx)("span",{className:"tf-brand-dot","aria-hidden":!0}),e.tag&&(0,se.jsx)("span",{className:"tf-brand-tag",children:e.tag})]}),(0,se.jsx)("div",{className:"tf-nav",children:(e.items||[]).map(n=>{let a=n.label===e.active;return(0,se.jsxs)("button",{type:"button",className:"tf-nav-item","aria-current":a?"page":void 0,title:n.label,onClick:()=>{e.onNavigate&&e.onNavigate(n.label)},children:[(0,se.jsx)(x,{name:n.icon}),(0,se.jsx)("span",{className:"tf-nav-label",children:n.label}),n.count?(0,se.jsx)("span",{className:"tf-nav-count",children:n.count}):null]},n.label)})}),e.extra&&(0,se.jsx)("div",{className:"tf-topbar-extra",children:e.extra}),e.user&&(0,se.jsxs)("button",{type:"button",className:"tf-user","aria-haspopup":"menu","aria-expanded":e.userOpen?"true":"false",onClick:e.onUser,children:[(0,se.jsx)(Ve,{name:e.user.name,size:28}),(0,se.jsxs)("span",{className:"tf-user-text",children:[(0,se.jsx)("span",{className:"tf-user-name",children:e.user.name}),e.user.email&&(0,se.jsx)("span",{className:"tf-user-mail",children:e.user.email})]}),(0,se.jsx)(x,{name:"chevronDown",size:14})]})]})}function sb(e,t){return(0,se.jsxs)("button",{type:"button",className:"tf-rail-btn",style:{animationDelay:`calc(${200+t*50}ms * var(--motion-time, 1))`},"aria-label":e.count?`${e.label}, ${e.count}`:e.label,title:e.label,"aria-current":e.active?"page":void 0,onClick:e.onClick,children:[(0,se.jsx)(x,{name:e.icon}),e.count?(0,se.jsx)("span",{className:"tf-dotcount",children:e.count}):null]},e.label)}function Wu(e){let t=M(zl);return(0,se.jsxs)("aside",{className:"tf-rail","aria-label":t.tools,children:[(0,se.jsx)("div",{className:"tf-rail-group",children:(e.top||[]).map(sb)}),(0,se.jsx)("div",{className:"tf-rail-group",children:(e.bottom||[]).map((n,a)=>sb(n,a+3))})]})}function ef(e){let t=M(zl);return(0,se.jsx)("div",{className:p("tf-dock",e.surface&&"tf-"+e.surface,e.className),style:e.style,role:"toolbar","aria-label":e.label||t.quickActions,children:(e.items||[]).map(n=>(0,se.jsx)("button",{type:"button",className:p("tf-dock-btn","tf-t-"+(n.tint||"plain")),"aria-label":n.label,title:n.label,onClick:n.onClick,children:(0,se.jsx)(x,{name:n.icon})},n.label))})}function cb(e){let t=e.surface??"glass";return(0,se.jsxs)("div",{className:p("tf-floating",e.className),style:{minHeight:e.height??640,...e.style},role:"region","aria-label":e.label,"data-surface":t,children:[e.background!=null&&(0,se.jsx)("div",{className:"tf-floating-bg",children:e.background}),(0,se.jsxs)("div",{className:"tf-floating-ui",children:[e.top!=null&&(0,se.jsx)("div",{className:"tf-floating-top",children:e.top}),e.start!=null&&(0,se.jsx)("div",{className:"tf-floating-start",children:e.start}),e.end!=null&&(0,se.jsx)("div",{className:"tf-floating-end",children:e.end}),e.bottom!=null&&(0,se.jsx)("div",{className:"tf-floating-bottom",children:e.bottom})]}),e.children]})}function rb(e){let t=Fa.useRef(null),[n,a]=Fa.useState(!1),l=e.animate!==!1&&!e.src&&!e.children;Fa.useEffect(()=>{let r=t.current;if(!r||!l||typeof IntersectionObserver>"u")return;let u=new IntersectionObserver(o=>a(!o.some(f=>f.isIntersecting)));return u.observe(r),()=>u.disconnect()},[l]);let i=Fa.useRef(null);Fa.useEffect(()=>{let r=i.current;r&&wn(r)&&r.pause()},[e.src]);let s=e.colors?.length?e.colors:["var(--ambient-1)","var(--ambient-2)","var(--ambient-3)","var(--ambient-4)"],c=!!e.src&&!e.children;return(0,se.jsx)("div",{ref:t,"aria-hidden":!0,className:p("tf-ambient",e.fixed&&"fixed",c&&"media",!l&&"still",e.className),style:e.style,"data-paused":n?"":void 0,children:e.children??(c?e.video?(0,se.jsx)("video",{ref:i,className:"tf-ambient-media",src:e.src,muted:!0,loop:!0,autoPlay:!0,playsInline:!0}):(0,se.jsx)("img",{className:"tf-ambient-media",src:e.src,alt:""}):s.map((r,u)=>(0,se.jsx)("span",{className:"tf-ambient-field",style:{"--field":r}},u)))})}var tf=()=>[{label:"Home",icon:"home"},{label:"People",icon:"users"},{label:"Projects",icon:"grid"},{label:"Inbox",icon:"mail"},{label:"Calendar",icon:"calendar"},{label:"Billing",icon:"card"},{label:"Reports",icon:"chart"},{label:"Settings",icon:"settings"}],qx=()=>[{label:"Share",icon:"share",active:!0},{label:"List view",icon:"menu"},{label:"Grid view",icon:"grid"}],Gx=()=>[{label:"Notifications",icon:"bell",count:3},{label:"Zoom in",icon:"plus"},{label:"Zoom out",icon:"minus"}],Yx=()=>[{label:"Invite",icon:"users",tint:"sky"},{label:"New page",icon:"file",tint:"lilac"},{label:"New invoice",icon:"card",tint:"blush"},{label:"Announce",icon:"send",tint:"butter"},{label:"Export",icon:"download",tint:"mint"},{label:"More",icon:"plus"}];function ob(e){return(0,se.jsxs)("div",{className:p("tf-shell",e.className),style:e.style,children:[(0,se.jsx)(Pu,{brand:e.brand,tag:e.tag,active:e.active,items:e.nav||tf(),onNavigate:e.onNavigate,user:e.user,extra:e.topExtra}),(0,se.jsxs)("div",{className:p("tf-sheet",!e.side&&"tf-sheet-2"),style:e.sheetStyle,children:[(0,se.jsx)(Wu,{top:e.railTop||qx(),bottom:e.railBottom||Gx()}),(0,se.jsx)("main",{className:p("tf-main",e.dock!==!1&&"tf-main-dock"),children:e.children},e.contentKey),e.side||null,e.dock!==!1&&(0,se.jsx)("div",{className:"tf-dock-float",children:(0,se.jsx)(ef,{items:e.dockItems||Yx()})})]})]})}var de=G(ye(),1),Ai=G(re(),1);function ub(e){let t=M(Al),n=$(e.open,!1,e.onOpenChange);return(0,de.jsxs)("div",{className:p("tf-launch",n[0]&&"open",e.inline&&"inline"),children:[n[0]&&(0,de.jsxs)("div",{className:"tf-launch-panel",role:"dialog","aria-label":e.title||t.assistant,children:[(0,de.jsxs)("div",{className:"tf-launch-head",children:[(0,de.jsx)(Xt,{tint:e.tint||"lilac",size:32}),(0,de.jsxs)("div",{className:"tf-option-text",style:{flex:1},children:[(0,de.jsx)("b",{children:e.title||t.assistant}),e.context&&(0,de.jsx)("small",{children:e.context})]}),e.headerAction,(0,de.jsx)(W,{icon:"x",size:"sm",label:t.close,onClick:()=>{n[1](!1)}})]}),(0,de.jsx)("div",{className:"tf-launch-body",children:e.children}),e.composer&&(0,de.jsx)("div",{className:"tf-launch-foot",children:e.composer})]}),(0,de.jsxs)("button",{type:"button",className:"tf-launch-btn","aria-label":n[0]?t.closeAssistant:e.title||t.openAssistant,"aria-expanded":n[0],onClick:()=>{n[1](!n[0])},children:[(0,de.jsx)(x,{name:n[0]?"x":"sparkle",size:22}),!n[0]&&(e.unread??0)>0&&(0,de.jsx)("span",{className:"tf-nav-count",children:e.unread})]})]})}function fb(e){let t=M(Al),n=Ai.useState(!1),a=Ai.useState((e.categories||[]).reduce((i,s)=>(i[s.id]=!!(s.required||s.default),i),{}));if(e.open===!1)return null;function l(i){let s=Object.assign({},a[0]);(e.categories||[]).forEach(c=>{i===!0&&(s[c.id]=!0),i===!1&&(s[c.id]=!!c.required)}),e.onSave&&e.onSave(s)}return(0,de.jsxs)("div",{className:p("tf-cookie",e.inline&&"inline"),role:"dialog","aria-label":e.title||t.privacySettings,children:[(0,de.jsxs)("div",{className:"tf-row",style:{gap:12,alignItems:"flex-start",flexWrap:"nowrap"},children:[(0,de.jsx)(ce,{icon:"cookie",tint:"butter",size:36}),(0,de.jsxs)("div",{className:"tf-col",style:{gap:4},children:[(0,de.jsx)("b",{children:e.title||t.privacySettings}),(0,de.jsxs)("p",{className:"tf-card-desc",style:{margin:0},children:[e.text||t.cookieText,e.policy&&(0,de.jsxs)(Ai.Fragment,{children:[" ",e.policy]})]})]})]}),n[0]&&(0,de.jsx)("div",{className:"tf-cookie-cats",children:(e.categories||[]).map(i=>(0,de.jsxs)("div",{className:"tf-cookie-cat",children:[(0,de.jsxs)("div",{className:"tf-option-text",style:{flex:1},children:[(0,de.jsx)("b",{children:i.label}),i.text&&(0,de.jsx)("small",{children:i.text})]}),i.required?(0,de.jsx)("span",{className:"tf-card-desc",children:t.alwaysOn}):(0,de.jsx)(Xa,{checked:!!a[0][i.id],onChange:()=>{let s=Object.assign({},a[0]);s[i.id]=!s[i.id],a[1](s)}})]},i.id))}),(0,de.jsxs)("div",{className:"tf-cookie-actions",children:[n[0]?(0,de.jsx)(K,{variant:"secondary",onClick:()=>{l(void 0)},children:t.saveChoice}):(0,de.jsx)(K,{variant:"ghost",onClick:()=>{n[1](!0)},children:t.settings}),(0,de.jsx)(K,{variant:"secondary",onClick:()=>{l(!1)},children:t.onlyNecessary}),(0,de.jsx)(K,{onClick:()=>{l(!0)},children:t.acceptAll})]})]})}function db(e){let t=M(Al),n=Ai.useState(!1);return n[0]?null:(0,de.jsxs)("div",{className:p("tf-announce","tf-t-"+(e.tint||"butter")),role:"status",children:[e.icon!==!1&&(0,de.jsx)(x,{name:e.icon||"sparkle",size:15}),(0,de.jsx)("span",{children:e.children}),e.action,e.onDismiss!==!1&&(0,de.jsx)("button",{type:"button",className:"tf-announce-x","aria-label":t.dismiss,onClick:()=>{n[1](!0),e.onDismiss&&e.onDismiss()},children:(0,de.jsx)(x,{name:"x",size:14})})]})}var Pe=G(ye(),1),DR=G(re(),1);function mb(e){let t=e.code||"404",n={404:["Page not found","The link may be old, or the page moved. Nothing is broken on your side.","search","sky"],500:["Something broke on our side","We\u2019ve been notified and are on it. Your data is safe; try again in a minute.","x","blush"],maintenance:["Back in a few minutes","We\u2019re upgrading the database. Everything you saved is safe.","settings","butter"],offline:["You\u2019re offline","Changes are kept on this device and sync when you\u2019re back.","globe","lilac"],403:["You don\u2019t have access","Ask a workspace owner to invite you to this area.","lock","lilac"]}[t]||[e.title,e.text,"sparkle","sky"];return(0,Pe.jsxs)("div",{className:"tf-status-screen",children:[(0,Pe.jsxs)("div",{className:"tf-status-art","aria-hidden":!0,children:[/^\d+$/.test(t)&&(0,Pe.jsx)("span",{className:"tf-status-code",children:t}),(0,Pe.jsx)(ce,{icon:e.icon||n[2],tint:e.tint||n[3],size:56})]}),(0,Pe.jsx)("h1",{children:e.title||n[0]}),(0,Pe.jsx)("p",{children:e.text||n[1]}),e.extra,(0,Pe.jsx)("div",{className:"tf-row",style:{justifyContent:"center"},children:e.actions||[(0,Pe.jsx)(K,{icon:"home",onClick:e.onHome,children:"Back to overview"},"h"),(0,Pe.jsx)(K,{variant:"secondary",icon:"mail",onClick:e.onContact,children:"Contact support"},"s")]}),e.reference&&(0,Pe.jsx)("span",{className:"tf-status-ref",children:`Reference ${e.reference}`})]})}function hb(e){return(0,Pe.jsxs)("div",{className:"tf-auth",children:[e.brand&&(0,Pe.jsxs)("div",{className:"tf-auth-brand",children:[(0,Pe.jsx)("span",{className:"tf-brand-word",children:e.brand}),(0,Pe.jsx)("span",{className:"tf-brand-dot"})]}),e.icon&&(0,Pe.jsx)(ce,{icon:e.icon,tint:e.tint||"sky",size:48}),(0,Pe.jsxs)("div",{className:"tf-col",style:{gap:8},children:[(0,Pe.jsx)("h1",{className:"tf-auth-title",children:e.title}),e.text&&(0,Pe.jsx)("p",{className:"tf-auth-text",children:e.text})]}),e.children,e.foot&&(0,Pe.jsx)("div",{className:"tf-auth-foot",children:e.foot})]})}var Xe=G(re(),1),pu=G(ir(),1),MS=G(gS(),1);var bS=/^\d{4}-\d{2}-\d{2}(?:[T ][\d:.]+(?:Z|[+-]\d{2}:?\d{2})?)?$/,vS=/^\s*-?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?\s*$/i;function eh(e){let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t}function Z5(e,t){return typeof t=="string"&&bS.test(t)?eh(t)??t:t}function pS(e,t){if(t===null)return;if(e.flags.includes("?")&&t==="null")return null;switch(e.kind){case"b":return t!=="false";case"n":return vS.test(t)?Number(t):void 0;case"x":return vS.test(t)?Number(t):t;case"s":return e.flags.includes("!")&&t==="false"?!1:t;case"d":return eh(t);case"r":return t;case"R":case"K":case"j":{let a=t.trim();try{return JSON.parse(a,e.flags.includes("t")?Z5:void 0)}catch{return e.kind==="R"?[t]:e.flags.includes("t")&&bS.test(a)?eh(a):e.flags.includes("l")?a.split(",").map(l=>l.trim()).filter(Boolean):t}}default:return}}function yS(e){if(!e||!e.trim())return;let t={};for(let n of e.split(/;(?![^(]*\))/)){let a=n.indexOf(":");if(a<0)continue;let l=n.slice(0,a).trim(),i=n.slice(a+1).trim();!l||!i||(t[l.startsWith("--")?l:l.replace(/-([a-z])/g,(s,c)=>c.toUpperCase())]=i)}return t}function NS(e){if(!e||typeof e!="object"||!("nativeEvent"in e)||!("target"in e))return e;let t=e.target;return t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")?t.checked:t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?t.value:null}function SS(e){return!!e&&typeof e=="object"&&"nativeEvent"in e&&"target"in e}function xS(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase()}function CS(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var vu=e=>e?e.split(" ").filter(Boolean):[];function TS(e){let t=vu(e.p).map(l=>{let[i="",s="j"]=l.split(":");return{name:i,attr:xS(i),kind:s.charAt(0),flags:s.slice(1)}}),n=vu(e.e).map(l=>{let[i="",s="0"]=l.split(":");return{prop:i,type:i.slice(2).toLowerCase(),arity:parseInt(s,10)||0,conditional:s.endsWith("?")}}),a=vu(e.s).map(l=>{let[i="",s="",c="detail"]=l.split(":");return{event:i,prop:s,from:c==="false"?"false":"detail"}});return{tag:e.t,component:e.c,props:t,byAttr:new Map(t.map(l=>[l.attr,l])),byName:new Map(t.map(l=>[l.name,l])),events:n,byType:new Map(n.map(l=>[l.type,l])),sync:a,dismiss:new Set(vu(e.x)),dialog:!!e.dialog,closeChildren:!!e.close}}var th=new WeakSet,F5=new Set(["title","role","lang"]),I5=e=>F5.has(e)||e.startsWith("aria-"),kS=new Set(["id","slot","hidden","children","className","style","dir","inert","autofocus","tabIndex","accessKey","draggable","translate","spellcheck","contentEditable","nonce","part","popover","innerHTML","textContent"]),ES="tf-root",nh=0;function bu(e){for(let t=e.parentNode;t;t=t.parentNode)if(t instanceof Oa)return t;return null}function J5(e,t){for(let n=e.parentNode;n&&n!==t;n=n.parentNode){if(n===t._stash)return"stash";let a=n.__tfSlot;if(a)return a.owner===t?a:null}return null}var $5=e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&!/^\s*\n\s*$/.test(e.nodeValue??"")&&e.nodeValue!=="";function RS({el:e}){return(0,Xe.useSyncExternalStore)(e._subscribe,e._snapshot,e._snapshot),(0,Xe.useLayoutEffect)(()=>{e._sweep()}),e._view()}function ah({owner:e,nodes:t}){let n=(0,Xe.useRef)(null),[a,l]=(0,Xe.useState)([]),i=(0,Xe.useMemo)(()=>{let s=[],c={owner:e,rescan(){let r=n.current;if(!r||!r.isConnected)return;let u=[];for(let o of r.querySelectorAll("*"))o instanceof Oa&&bu(o)===e&&o.isConnected&&u.push(o);for(let o of u)o._slot!==c&&o._enterPortal(c);for(let o of s)!u.includes(o)&&o._slot===c&&o._leave();(u.length!==s.length||u.some((o,f)=>o!==s[f]))&&(s=u,l(u))},release(r){s.includes(r)&&(s=s.filter(u=>u!==r),l(s))}};return c},[e]);return(0,Xe.useLayoutEffect)(()=>{let s=n.current;if(!s)return;if(s.__tfSlot=i,!(s.childNodes.length===t.length&&t.every((f,d)=>s.childNodes[d]===f)))for(let f of t)s.appendChild(f);let r=!1,u=()=>{r||(r=!0,queueMicrotask(()=>{r=!1,i.rescan()}))};u();let o=new MutationObserver(f=>{for(let d of f)for(let m of[d.addedNodes,d.removedNodes])for(let N of m)if(N instanceof Element&&(N instanceof Oa||N.querySelector(Oa.selector)))return u()});return o.observe(s,{childList:!0,subtree:!0}),()=>{o.disconnect(),queueMicrotask(()=>e._sweep())}},[t,i,e]),(0,Xe.createElement)("span",{ref:n,"data-tf-slot":"",style:{display:"contents"}},a.map(s=>s._mount?(0,pu.createPortal)((0,Xe.createElement)(RS,{el:s}),s._mount,s._mountKey):null))}function P5({onClose:e,children:t}){let n=(0,Xe.useRef)(null);return Ol(n,e),(0,Xe.useEffect)(()=>{let a=setTimeout(()=>{let l=n.current,i=l?.querySelector('[autofocus], input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select'),s=document.activeElement,c=s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement;l&&i&&!(c&&l.contains(s))&&i.focus()},30);return()=>clearTimeout(a)},[]),(0,Xe.createElement)("div",{ref:n,"data-tf-dialog":"",style:{position:"fixed",inset:0,zIndex:85,overflowY:"auto"},onClick:a=>{a.target instanceof Element&&a.target.classList.contains("tf-backdrop")&&e?.()}},t)}var Oa=class e extends HTMLElement{static def;static component;static selector="tf-provider";_key=`tf${(++nh).toString(36)}`;_values=new Map;_fns=new Map;_slots=null;_views=new Map;_root=null;_mount=null;_mountKey="";_slot=null;_stash=null;_rendered=!1;_version=0;_subs=new Set;_listeners=new Map;_callbacks=new Map;_closeFn;_stripping=new Set;_waiting=!1;_observer=null;constructor(){super();let t=this._def;for(let a of t.events)a.type!=="click"&&HTMLElement.prototype.addEventListener.call(this,a.type,l=>{!th.has(l)&&l.target!==this&&this._isOwnDom(l.target)&&l.stopImmediatePropagation()});if(t.closeChildren){let a=l=>{l.target!==this&&th.has(l)&&this._closeFn?.()};HTMLElement.prototype.addEventListener.call(this,"close",a),this._listeners.set("close",new Set([a]))}let n=this;for(let a of[...t.props.map(l=>l.name),...t.events.map(l=>l.prop)])if(!kS.has(a)&&Object.prototype.hasOwnProperty.call(this,a)){let l=n[a];delete n[a],n[a]=l}}get _def(){return this.constructor.def}connectedCallback(){this._waiting||(document.readyState==="loading"?(this._waiting=!0,document.addEventListener("DOMContentLoaded",()=>{this._waiting=!1,this._attach()},{once:!0})):queueMicrotask(()=>this._attach()))}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||this._leave()})}attributeChangedCallback(t,n,a){if(a===null&&this._stripping.delete(t))return;let i=this._def.byAttr.get(t);if(i){let s=pS(i,a);s===void 0?this._values.delete(i.name):this._values.set(i.name,s),I5(t)&&a!==null&&(this._stripping.add(t),this.removeAttribute(t))}this._bump()}_attach(){if(!this.isConnected)return;let t=bu(this);if(t){let l=J5(this,t);if(l==="stash")return;if(l){this._slot!==l&&l.rescan();return}if(!t._rendered)return}if(this._root)return;this._leave(),this._prepare();let n=this._newMount(),a=(0,MS.createRoot)(n,{identifierPrefix:`${this._key}-`});this._root=a,(0,pu.flushSync)(()=>a.render((0,Xe.createElement)(RS,{el:this})))}_leave(){let t=this._root,n=this._slot;this._root=null,this._slot=null,this._mount?.remove(),this._mount=null,t&&t.unmount(),n?.release(this)}_enterPortal(t){this._leave(),this._prepare(),this._newMount(),this._slot=t}_newMount(){let t=document.createElement(ES);return t.style.display="contents",this._mount=t,this._mountKey=`${this._key}-${(++nh).toString(36)}`,this.appendChild(t),t}_prepare(){if(!this._slots){this._slots=new Map;for(let t of[...this.childNodes])this._take(t);this._observer=new MutationObserver(t=>{if(this._mount&&this._mount.parentNode!==this){this._slots=null,this._views.clear(),this._observer?.disconnect(),this._leave(),this._attach();return}let n=!1;for(let a of t)for(let l of a.addedNodes)l.parentNode===this&&(n=this._take(l)||n);n&&(this._views.clear(),this._bump())}),this._observer.observe(this,{childList:!0})}}_take(t){if(t===this._mount||t===this._stash||t instanceof Element&&t.localName===ES||!$5(t))return!1;let n=t instanceof Element?t.getAttribute("slot"):null,a="children";if(n){let l=n.indexOf(":"),i=CS(l<0?n:n.slice(0,l));a=l<0?i:`${i}:${n.slice(l+1)}`}return this._slots?.set(a,[...this._slots.get(a)??[],t]),!0}_sweep(){if(this._rendered=!0,!!this._slots){for(let t of this._slots.values())for(let n of t)if(n.parentNode===this||!this.contains(n)){if(!this._stash){let a=document.createElement("div");a.hidden=!0,a.dataset.tfStash="",this._stash=a}this._stash.parentNode!==this&&this.appendChild(this._stash),this._stash.appendChild(n)}}}_isOwnDom(t){for(let n=t;n&&n!==this;n=n.parentNode)if(n.__tfSlot?.owner===this)return!1;return!0}_subscribe=t=>(this._subs.add(t),()=>this._subs.delete(t));_snapshot=()=>this._version;_bump(){this._version++;for(let t of this._subs)t()}addEventListener(t,n,a){if(!n)return;super.addEventListener(t,n,a);let l=this._listeners.get(t);l||this._listeners.set(t,l=new Set);let i=l.size===0;l.add(n),i&&this._bumpTree(t)}removeEventListener(t,n,a){if(!n)return;super.removeEventListener(t,n,a);let l=this._listeners.get(t);l?.delete(n)&&l.size===0&&this._bumpTree(t)}_listens(t){let n=a=>{let l=a;return!!a._listeners.get(t)?.size||a.hasAttribute(`on${t}`)||typeof l[`on${t}`]=="function"||typeof l[`__${t}`]=="function"};if(n(this))return!0;for(let a=bu(this);a;a=bu(a))if(n(a))return!0;return!1}_bumpTree(t){this._def.byType.get(t)?.conditional&&this._bump();for(let n of this.querySelectorAll(e.selector))n instanceof e&&n._def.byType.get(t)?.conditional&&n._bump()}_slotView(t,n){let a=`${t}|${n?1:0}`;if(this._views.has(a))return this._views.get(a);let l=this._slots?.get(t),i;return l?.length&&(i=l.length===1&&!n?(0,Xe.createElement)(ah,{owner:this,nodes:l}):l.map((s,c)=>(0,Xe.createElement)(ah,{key:c,owner:this,nodes:[s]}))),this._views.set(a,i),i}_nodeView(t){if(t instanceof Node){let n=this._views.get(`node|${t.__tfKey??""}`);if(!n){let a=t.__tfKey??=`n${(++nh).toString(36)}`;n=(0,Xe.createElement)(ah,{key:a,owner:this,nodes:[t]}),this._views.set(`node|${a}`,n)}return n}return Array.isArray(t)?t.map(n=>this._nodeView(n)):t}_propValue(t){if(t.kind==="r"||t.kind==="R"){let a=this._slotView(t.name,t.kind==="R");if(a!==void 0)return a}if(t.kind==="K"&&this._slots){let a;for(let l of this._slots.keys())l.startsWith(`${t.name}:`)&&((a??={})[l.slice(t.name.length+1)]=this._slotView(l,!1));if(a)return{...this._values.get(t.name),...a}}if(t.kind==="f")return this._fns.get(t.name);let n=this._values.get(t.name);if(n!==void 0)return t.kind==="r"||t.kind==="R"?this._nodeView(n):n}_callback(t){let n=this._callbacks.get(t.prop);return n||(n=(...a)=>this._fire(t,a),this._callbacks.set(t.prop,n)),n}_fire(t,n){let a=this._fns.get(t.prop),l=a?a.apply(this,n):void 0,i=n[0];if(t.type==="click"&&SS(i)&&i.nativeEvent.type==="click")return l;let s=n.map(NS),c=t.arity>1?Array.from({length:Math.max(t.arity,s.length)},(u,o)=>s[o]):s.length?s[0]:null,r=new CustomEvent(t.type,{detail:c,bubbles:!0,composed:!0,cancelable:!0});return th.add(r),this.dispatchEvent(r)&&this._after(t,s[0]),l}_after(t,n){let a=this._def,l=!1;for(let i of a.sync)i.event===t.prop&&this._values.get(i.prop)!==void 0&&(this._values.set(i.prop,i.from==="false"?!1:n),l=!0);l?this._bump():a.dismiss.has(t.prop)&&(this.hidden=!0)}_passes(t){return!t.conditional||this._fns.has(t.prop)||this._def.sync.some(n=>n.event===t.prop&&this._values.get(n.prop)!==void 0)?!0:this._listens(t.type)}_props(){let t=this._def,n={};for(let s of t.props){let c=this._propValue(s);c!==void 0&&(n[s.name]=c)}let a=this._slotView("children",!1);t.closeChildren?n.children=s=>(this._closeFn=s.close,a??null):a!==void 0&&(n.children=a);let l=this.getAttribute("class");l&&(n.className=l);let i=yS(this.getAttribute("style"));i&&(n.style=i);for(let s of t.events)this._passes(s)&&(n[s.prop]=this._callback(s));return n}_view(){if(this.hidden)return null;let t=this.constructor.component,n=this._props(),a=(0,Xe.createElement)(t,n);return this._def.dialog?(0,Xe.createElement)(P5,{onClose:n.onClose},a):a}};function wS(e,t){let n=[...e.props.filter(s=>s.kind!=="f").map(s=>s.attr),...e.events.map(s=>`on${s.type}`),"class","style","hidden"];class a extends Oa{static def=e;static component=t;static observedAttributes=[...new Set(n)]}let l=a.prototype,i=(s,c,r)=>{kS.has(s)||Object.defineProperty(l,s,{configurable:!0,enumerable:!0,get:c,set:r})};for(let s of e.props)i(s.name,function(){return s.kind==="f"?this._fns.get(s.name):this._values.get(s.name)},function(c){s.kind==="f"?typeof c=="function"?this._fns.set(s.name,c):this._fns.delete(s.name):c===void 0?this._values.delete(s.name):this._values.set(s.name,c),this._views.clear(),this._bump()});for(let s of e.events)i(s.prop,function(){return this._fns.get(s.prop)},function(c){typeof c=="function"?this._fns.set(s.prop,c):this._fns.delete(s.prop),this._bump()});return a}var yu=[{t:"tf-provider",c:"UIProvider",p:"kit:s theme:s density:s scope:s tokens:j surface:s motion:s locale:s messages:j"},{t:"tf-icon",c:"Icon",p:"name:s size:n label:s"},{t:"tf-range-slider",c:"RangeSlider",p:"label:r min:n max:n step:n value:j defaultValue:j unit:s inputs:b openEnd:b format:f hint:r",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-bar-list",c:"BarList",p:"items:j format:f label:s",e:"onPick:1?"},{t:"tf-status-select",c:"StatusSelect",p:"options:j value:s defaultValue:s size:s label:s width:n",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-tile-picker",c:"TilePicker",p:"options:j value:j defaultValue:j multiple:b min:n label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-live-feed",c:"LiveFeed",p:"items:j types:j paused:b maxHeight:n emptyText:s",e:"onPause:1"},{t:"tf-map-view",c:"MapView",p:"points:j bounds:j background:r bubbles:b selected:x? renderPopup:f legend:r controls:r height:x label:s surface:s",e:"onSelect:1"},{t:"tf-balance-card",c:"BalanceCard",p:"name:s sub:r logo:r icon:s tint:s balance:n currency:s perDay:n low:n spark:j status:s statusLabel:s topUpLabel:s action:r",e:"onTopUp:0?"},{t:"tf-service-monitor",c:"ServiceMonitor",p:"items:j label:s"},{t:"tf-run-history",c:"RunHistory",p:"items:j label:s"},{t:"tf-webhook-endpoint",c:"WebhookEndpoint",p:"url:s events:jl status:s statusLabel:s successRate:n enabled:b secret:r deliveries:j menu:jl defaultOpen:b",e:"onToggle:0? onRetry:1?"},{t:"tf-backup-list",c:"BackupList",p:"items:j footer:r label:s",e:"onDownload:1? onRestore:1?"},{t:"tf-block-list",c:"BlockList",p:"items:j addLabel:s removeLabel:s searchPlaceholder:s emptyText:s",e:"onAdd:0? onRemove:1?"},{t:"tf-review-card",c:"ReviewCard",p:"author:s verified:b product:s date:s rating:n title:s text:s state:s stateLabel:s highlight:jl reply:s replyLabel:s",e:"onPublish:0? onHide:0? onReply:1?"},{t:"tf-coupon-card",c:"CouponCard",p:"code:s kind:s value:n currency:s used:n limit:n until:s min:n revenue:n text:r status:s statusLabel:s menu:jl",e:"onCopy:0"},{t:"tf-locale-field",c:"LocaleField",p:"label:r locales:j value:j defaultValue:j source:s active:s multiline:b rows:n placeholder:s hint:r error:r",e:"onChange:1 onTranslate:2?",s:"onChange:value:detail"},{t:"tf-locale-switcher",c:"LocaleSwitcher",p:"languages:j language:s currencies:jl currency:s variant:s",e:"onLanguage:1 onCurrency:1"},{t:"tf-workspace-switcher",c:"WorkspaceSwitcher",p:"items:j value:s label:s footer:r variant:s width:n",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-export-dialog",c:"ExportDialog",p:"open:b inline:b title:s text:r count:n formats:jl format:s columns:j ranges:b range:jt note:r download:r doneText:s",e:"onClose:0 onExport:2 onDownload:0",s:"onClose:open:false",x:"onClose"},{t:"tf-two-factor-setup",c:"TwoFactorSetup",p:"qr:r secret:s codes:jl step:n scanText:s codesText:s",e:"onVerify:1? onDownload:0? onDone:0"},{t:"tf-color-field",c:"ColorField",p:"label:r value:s defaultValue:s against:s! hint:r",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-agent-card",c:"AgentCard",p:"name:s role:s tint:s status:s statusLabel:s model:s cost:s last:r",e:"onClick:0? onChat:0?"},{t:"tf-agent-details",c:"AgentDetails",p:"name:s role:s tint:s status:s statusLabel:s sections:j actions:R"},{t:"tf-chat-list",c:"ChatList",p:"groups:j selected:s filters:r searchPlaceholder:s",e:"onSelect:1 onSearch:1"},{t:"tf-chat-workspace",c:"ChatWorkspace",p:"list:r thread:r details:r"},{t:"tf-search-hits",c:"SearchHits",p:"items:j query:s emptyText:s",e:"onOpen:1"},{t:"tf-thinking-line",c:"ThinkingLine",p:"text:s"},{t:"tf-feedback-rating",c:"FeedbackRating",p:"value:s? label:s placeholder:s thanks:s askOnUp:b",e:"onRate:1 onSubmit:2"},{t:"tf-activity-feed",c:"ActivityFeed",p:"groups:j items:j"},{t:"tf-daily-briefing",c:"DailyBriefing",p:"title:s time:s tint:s summary:r attention:j suggestions:R attentionTitle:s suggestionsTitle:s"},{t:"tf-budget-stop",c:"BudgetStop",p:"spent:n budget:n title:s text:r paused:r running:r actionLabel:s",e:"onRaise:0?"},{t:"tf-memory-viewer",c:"MemoryViewer",p:"items:j",e:"onEdit:1? onDelete:1?"},{t:"tf-override-diff",c:"OverrideDiff",p:"title:s versions:r by:r before:s after:s discardLabel:s promoteLabel:s",e:"onDiscard:0? onPromote:0?"},{t:"tf-trigger-list",c:"TriggerList",p:"items:j",e:"onToggle:1? onRun:1?"},{t:"tf-schedule-calendar",c:"ScheduleCalendar",p:"events:j from:n to:n days:jl",e:"onOpen:1"},{t:"tf-org-chart",c:"OrgChart",p:"root:j"},{t:"tf-voice-mode",c:"VoiceMode",p:"name:s tint:s state:s stateLabel:s transcript:r muted:b",e:"onMute:0? onEnd:0?"},{t:"tf-mobile-tab-bar",c:"MobileTabBar",p:"items:j active:s label:s",e:"onPick:1"},{t:"tf-push-notification",c:"PushNotification",p:"app:s time:s title:s text:r actions:j"},{t:"tf-config-pr-summary",c:"ConfigPRSummary",p:"title:s meta:r status:s statusLabel:s summary:r items:j actions:R"},{t:"tf-module-registry",c:"ModuleRegistry",p:"items:j coreLabel:s",e:"onToggle:1"},{t:"tf-approval-card",c:"ApprovalCard",p:"title:r text:r agent:s project:s family:s familyLabel:s age:s escalation:r trace:r note:r heading:s options:j approveLabel:s decision:j compact:b state:s",e:"onDecide:2 onApprove:0 onDeny:0 onEdit:1"},{t:"tf-approval-inbox",c:"ApprovalInbox",p:"items:j selected:x emptyTitle:s emptyText:s label:s",e:"onSelect:1?"},{t:"tf-kbd",c:"Kbd",p:"keys:jl"},{t:"tf-key-value",c:"KeyValue",p:"items:j dense:b"},{t:"tf-spinner",c:"Spinner",p:"size:s label:s"},{t:"tf-collapsible",c:"Collapsible",p:"title:r meta:r defaultOpen:b open:b",e:"onOpenChange:1",s:"onOpenChange:open:detail"},{t:"tf-context-menu",c:"ContextMenu",p:"items:jl"},{t:"tf-split-pane",c:"SplitPane",p:"left:r right:r defaultSize:n min:n max:n storageKey:s"},{t:"tf-resizable-panels",c:"ResizablePanels",p:"panels:R defaultSizes:j min:n orientation:s storageKey:s labels:jl"},{t:"tf-tree-view",c:"TreeView",p:"items:j defaultOpen:jl selected:s label:s",e:"onSelect:1"},{t:"tf-inline-edit",c:"InlineEdit",p:"value:s options:jl mono:b type:s display:f align:s label:s",e:"onSave:1"},{t:"tf-bar-chart",c:"BarChart",p:"data:j tint:s height:n width:n barWidth:n format:f label:s"},{t:"tf-line-chart",c:"LineChart",p:"labels:jl series:j height:n width:n format:f label:s"},{t:"tf-sparkline",c:"Sparkline",p:"values:j tint:s width:n height:n label:s"},{t:"tf-donut",c:"Donut",p:"data:j center:s caption:s size:n stroke:n legend:b label:s"},{t:"tf-legend",c:"Legend",p:"items:j"},{t:"tf-stacked-bar-chart",c:"StackedBarChart",p:"labels:jl series:j height:n width:n barWidth:n format:f legend:b label:s"},{t:"tf-area-chart",c:"AreaChart",p:"labels:jl series:j stacked:b height:n width:n format:f legend:b label:s"},{t:"tf-heatmap",c:"Heatmap",p:"rows:jl cols:jl values:j colEvery:n caption:s format:f label:s"},{t:"tf-funnel",c:"Funnel",p:"steps:j tint:s format:f"},{t:"tf-gauge",c:"Gauge",p:"value:n max:n caption:s format:f tint:s thresholds:j size:n stroke:n showRange:b label:s"},{t:"tf-rich-text",c:"RichText",p:"text:s streaming:b"},{t:"tf-code-block",c:"CodeBlock",p:"code:s lang:s open:b"},{t:"tf-typing-dots",c:"TypingDots",p:"label:s"},{t:"tf-agent-mark",c:"AgentMark",p:"tint:s icon:s size:n live:b"},{t:"tf-chat-message",c:"ChatMessage",p:"role:s name:s time:s model:s text:s streaming:b tint:s sources:j attachments:j usage:s actions:b before:r after:r feedback:s?",e:"onRetry:0? onFeedback:1"},{t:"tf-tool-call",c:"ToolCall",p:"name:s icon:s status:s summary:r duration:s input:j output:j defaultOpen:b"},{t:"tf-reasoning",c:"Reasoning",p:"steps:jl text:r duration:s streaming:b defaultOpen:b"},{t:"tf-prompt-starters",c:"PromptStarters",p:"items:j",e:"onPick:1"},{t:"tf-model-picker",c:"ModelPicker",p:"models:j value:s side:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-composer",c:"Composer",p:"value:s busy:b placeholder:s label:s models:j model:s commands:j attachments:j hint:s left:r disabled:b",e:"onChange:1 onSend:2 onStop:0 onModel:1 onCommand:1? onAttach:1? onRemoveAttachment:1?",s:"onChange:value:detail"},{t:"tf-agent-status",c:"AgentStatus",p:"status:s step:s"},{t:"tf-run-trace",c:"RunTrace",p:"steps:j defaultOpen:n? footer:r"},{t:"tf-usage-meter",c:"UsageMeter",p:"used:n limit:n label:s caption:s format:f"},{t:"tf-product-art",c:"ProductArt",p:"kind:s tint:s size:n label:s"},{t:"tf-price",c:"Price",p:"value:n compareAt:n currency:s size:s showSave:b"},{t:"tf-rating",c:"Rating",p:"value:n count:n size:n"},{t:"tf-stock-badge",c:"StockBadge",p:"stock:n low:n compact:b"},{t:"tf-product-card",c:"ProductCard",p:"name:s meta:s art:s tint:s price:n compareAt:n rating:n reviews:n badge:s badgeTone:s stock:n wished:b added:b",e:"onWish:0? onAdd:0? onClick:0"},{t:"tf-variant-picker",c:"VariantPicker",p:"label:s type:s options:jl value:s defaultValue:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-cart-line",c:"CartLine",p:"name:s variant:s note:s art:s tint:s price:n qty:n",e:"onQty:1? onRemove:0"},{t:"tf-order-summary",c:"OrderSummary",p:"lines:j showLines:b discount:j shipping:n? freeShippingFrom:n vat:n title:s! action:r",e:"onCoupon:1?"},{t:"tf-checkout-steps",c:"CheckoutSteps",p:"steps:jl current:n",e:"onPick:1?"},{t:"tf-order-timeline",c:"OrderTimeline",p:"status:s times:j"},{t:"tf-plan-card",c:"PlanCard",p:"name:s text:s price:n? was:n per:s features:jl featured:b flag:s current:b cta:s disabled:b",e:"onPick:0"},{t:"tf-count-up",c:"CountUp",p:"value:x duration:n delay:n"},{t:"tf-stat-tile",c:"StatTile",p:"value:r label:s tint:s delta:s delay:n"},{t:"tf-card",c:"Card",p:"title:s description:s meta:jl corner:r status:r actions:R tint:s eyebrow:r surface:s",e:"onClick:0?"},{t:"tf-event-card",c:"EventCard",p:"kind:s label:s date:s time:s tint:s icon:s actions:b"},{t:"tf-panel",c:"Panel",p:"side:b title:s subtitle:s action:r surface:s"},{t:"tf-page-header",c:"PageHeader",p:"crumbs:jl title:s subtitle:s actions:R"},{t:"tf-stagger",c:"Stagger",p:"as:s delay:n reveal:b"},{t:"tf-table",c:"Table",p:"columns:j rows:j animate:b"},{t:"tf-list-row",c:"ListRow",p:"avatar:s icon:s tint:s leading:r title:r subtitle:r meta:r trailing:r unread:b active:b",e:"onClick:0"},{t:"tf-timeline",c:"Timeline",p:"items:j delay:n"},{t:"tf-file-row",c:"FileRow",p:"name:s meta:s kind:s"},{t:"tf-kanban-column",c:"KanbanColumn",p:"title:s dot:s delay:n",e:"onAdd:0"},{t:"tf-progress",c:"Progress",p:"value:n tint:s label:s"},{t:"tf-progress-ring",c:"ProgressRing",p:"value:n tint:s size:n stroke:n caption:s label:s"},{t:"tf-filter-bar",c:"FilterBar",p:"filters:j value:j search:s query:s right:r",e:"onChange:1 onQuery:1",s:"onChange:value:detail"},{t:"tf-data-table",c:"DataTable",p:"columns:j rows:j rowKey:s selectable:b bulkActions:j renderExpanded:f stickyHeader:b maxHeight:x defaultSort:j toolbar:r columnToggle:b empty:r"},{t:"tf-log-view",c:"LogView",p:"lines:jl title:r right:r numbers:b follow:b maxHeight:n"},{t:"tf-code-viewer",c:"CodeViewer",p:"value:j lang:s"},{t:"tf-secret-field",c:"SecretField",p:"prefix:s last4:s value:s meta:r",e:"onReveal:0? onCopy:0? onRotate:0?"},{t:"tf-money-input",c:"MoneyInput",p:"label:s value:n? currency:s vat:s vatOptions:j showGross:b hint:r error:r defaultValue:n? required:b",e:"onChange:1 onVat:1",s:"onChange:value:detail"},{t:"tf-settings-layout",c:"SettingsLayout",p:"sections:j footer:r"},{t:"tf-shortcuts-overlay",c:"ShortcutsOverlay",p:"open:b title:s groups:j",e:"onClose:0",s:"onClose:open:false",x:"onClose"},{t:"tf-stat-cell",c:"StatCell",p:"label:r value:r delta:n deltaText:s compare:s invert:b spark:j icon:s iconTint:s tint:s"},{t:"tf-uptime-bar",c:"UptimeBar",p:"days:jl uptime:n caption:r"},{t:"tf-meter",c:"Meter",p:"label:r value:n? max:n text:r warn:n danger:n tone:s"},{t:"tf-skeleton",c:"Skeleton",p:"variant:s width:x height:x"},{t:"tf-menu",c:"Menu",p:"items:jl label:s autoFocus:b",e:"onClose:0?"},{t:"tf-modal",c:"Modal",p:"title:s text:s icon:s tint:s actions:R open:b",e:"onClose:0",s:"onClose:open:false",x:"onClose",dialog:1},{t:"tf-toast",c:"Toast",p:"icon:s tint:s action:s",e:"onAction:0"},{t:"tf-empty-state",c:"EmptyState",p:"title:s text:s icon:s tint:s action:r"},{t:"tf-alert",c:"Alert",p:"tone:s title:r icon:s action:r",e:"onDismiss:0?",x:"onDismiss"},{t:"tf-confirm-dialog",c:"ConfirmDialog",p:"open:b title:s text:s danger:b icon:s confirmLabel:s cancelLabel:s confirmText:s",e:"onConfirm:0 onCancel:0",s:"onCancel:open:false onConfirm:open:false"},{t:"tf-toaster",c:"Toaster",p:"position:s"},{t:"tf-form-field",c:"FormField",p:"name:s label:r required:b optional:b hint:r error:r success:r"},{t:"tf-text-field",c:"TextField",p:"type:s icon:s suffix:r value:s defaultValue:s placeholder:s disabled:b readOnly:b autoComplete:s autoFocus:b min:x max:x step:x minLength:n maxLength:n pattern:s inputMode:s name:s label:r required:b optional:b hint:r error:r success:r",e:"onChange:1 onBlur:1",s:"onChange:value:detail"},{t:"tf-radio-group",c:"RadioGroup",p:"label:s options:jl value:s defaultValue:s cards:b hint:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-segmented",c:"Segmented",p:"options:jl value:s defaultValue:s size:s block:b label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-combobox",c:"Combobox",p:"label:s options:jl value:j defaultValue:j multiple:b creatable:b placeholder:s hint:s error:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-tag-input",c:"TagInput",p:"label:s value:jl defaultValue:jl placeholder:s hint:s error:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-calendar",c:"Calendar",p:"range:b value:jt today:d min:d max:d month:d",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-date-picker",c:"DatePicker",p:"label:s range:b value:jt defaultValue:jt presets:b min:d max:d today:d placeholder:s hint:s error:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-number-input",c:"NumberInput",p:"label:s value:n defaultValue:n min:n max:n step:n unit:s hint:s error:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-slider",c:"Slider",p:"label:s min:n max:n step:n value:n defaultValue:n format:f marks:b hint:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-otp-input",c:"OtpInput",p:"length:n error:b label:s",e:"onComplete:1"},{t:"tf-file-drop",c:"FileDrop",p:"files:j simulateProgress:b title:s hint:s accept:s multiple:b",e:"onChange:1 onFiles:1? onReject:1 onRemove:1"},{t:"tf-button",c:"Button",p:"variant:s size:s icon:s iconRight:s disabled:b type:s asChild:b name:s value:s form:s title:s tabIndex:n autoFocus:b aria-label:s aria-labelledby:s aria-describedby:s aria-expanded:j aria-controls:s aria-haspopup:j aria-pressed:j aria-current:j",e:"onClick:1"},{t:"tf-icon-button",c:"IconButton",p:"icon:s label:s variant:s size:s type:s disabled:b asChild:b name:s value:s form:s title:s tabIndex:n autoFocus:b aria-label:s aria-labelledby:s aria-describedby:s aria-expanded:j aria-controls:s aria-haspopup:j aria-pressed:j aria-current:j",e:"onClick:1"},{t:"tf-chip",c:"Chip",p:"selected:b icon:s count:n",e:"onClick:1"},{t:"tf-badge",c:"Badge",p:"tone:s dot:b live:b"},{t:"tf-tint-icon",c:"TintIcon",p:"icon:s tint:s label:s size:n"},{t:"tf-avatar",c:"Avatar",p:"name:s src:s size:n tint:s"},{t:"tf-avatar-stack",c:"AvatarStack",p:"names:jl max:n size:n"},{t:"tf-input",c:"Input",p:"type:s placeholder:s value:s defaultValue:s disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-select",c:"Select",p:"options:jl value:s defaultValue:s label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-textarea",c:"Textarea",p:"placeholder:s value:s defaultValue:s rows:n disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-search-field",c:"SearchField",p:"placeholder:s label:s shortcut:s value:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-checkbox",c:"Checkbox",p:"name:s value:s required:b checked:b defaultChecked:b disabled:b label:s",e:"onChange:1",s:"onChange:checked:detail"},{t:"tf-switch",c:"Switch",p:"name:s checked:b defaultChecked:b spread:b disabled:b label:s",e:"onChange:1",s:"onChange:checked:detail"},{t:"tf-form",c:"Form",p:"rules:j errors:j",e:"onSubmit:1 onInvalid:1"},{t:"tf-select-menu",c:"SelectMenu",p:"options:jl value:s defaultValue:s placeholder:s disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-account-switcher",c:"AccountSwitcher",p:"accounts:j value:s? unread:n allLabel:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-inbox-list",c:"InboxList",p:"items:j selected:x",e:"onOpen:1"},{t:"tf-mail-thread",c:"MailThread",p:"subject:s messages:j reply:r"},{t:"tf-signature-editor",c:"SignatureEditor",p:"value:j fields:j note:r extra:r defaultValue:j previewLabel:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-attachment-preview",c:"AttachmentPreview",p:"name:s meta:r facts:j found:r actions:r width:x inline:b",e:"onClose:0",x:"onClose"},{t:"tf-image-variants",c:"ImageVariants",p:"variants:j selected:x alt:s tint:s actions:r",e:"onSelect:1"},{t:"tf-gallery",c:"Gallery",p:"items:j loading:s referrerPolicy:s start:n ratio:s thumbs:b fullscreen:b badge:r"},{t:"tf-before-after",c:"BeforeAfter",p:"before:j after:j start:n ratio:s beforeLabel:s afterLabel:s label:s valueText:f loading:s referrerPolicy:s"},{t:"tf-tabs",c:"Tabs",p:"items:jl value:s defaultValue:s block:b panels:K label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-breadcrumb",c:"Breadcrumb",p:"items:jl"},{t:"tf-pagination",c:"Pagination",p:"total:n page:n defaultPage:n",e:"onChange:1?",s:"onChange:page:detail"},{t:"tf-menubar",c:"Menubar",p:"menus:j label:s"},{t:"tf-navigation-menu",c:"NavigationMenu",p:"items:j label:s"},{t:"tf-sidebar",c:"Sidebar",p:"groups:j current:s collapsed:b defaultCollapsed:b header:r footer:r label:s",e:"onPick:1 onCollapsedChange:1",s:"onCollapsedChange:collapsed:detail"},{t:"tf-connection-card",c:"ConnectionCard",p:"name:s icon:s logo:r text:r status:s statusLabel:s action:r"},{t:"tf-connection-banner",c:"ConnectionBanner",p:"state:s seconds:n text:r",e:"onRetry:0?"},{t:"tf-server-card",c:"ServerCard",p:"name:s provider:s address:s logo:r status:s statusLabel:s meters:j uptime:j foot:r"},{t:"tf-deploy-pipeline",c:"DeployPipeline",p:"stages:j"},{t:"tf-dns-record-table",c:"DnsRecordTable",p:"records:j rowMenu:f selectable:b bulkActions:j toolbar:r"},{t:"tf-domain-list",c:"DomainList",p:"items:j",e:"onOpen:1"},{t:"tf-mail-auth-status",c:"MailAuthStatus",p:"rows:j columns:jl",e:"onOpen:2"},{t:"tf-ledger-table",c:"LedgerTable",p:"rows:j categories:jl currency:s selectable:b bulkActions:j toolbar:r maxHeight:n columnToggle:b",e:"onEdit:2"},{t:"tf-pnl-statement",c:"PnLStatement",p:"columns:jl rows:j currency:s total:b label:s"},{t:"tf-receipt-suggestion",c:"ReceiptSuggestion",p:"file:s source:r fields:j suggestion:r confirmLabel:s discardLabel:s",e:"onConfirm:0? onDiscard:0?"},{t:"tf-popover",c:"Popover",p:"trigger:r open:b align:s side:s width:n flush:b block:b role:s",e:"onOpenChange:1",s:"onOpenChange:open:detail",close:1},{t:"tf-tooltip",c:"Tooltip",p:"label:r shortcut:s side:s defaultOpen:b"},{t:"tf-email-preview",c:"EmailPreview",p:"from:s fromName:s subject:s preheader:s html:s device:s checks:j",e:"onDevice:1"},{t:"tf-search-ad-preview",c:"SearchAdPreview",p:"name:s domain:s paths:jl headlines:jl descriptions:jl sitelinks:jl device:s sponsoredLabel:s",e:"onDevice:1"},{t:"tf-accordion",c:"Accordion",p:"items:j multiple:b value:jl defaultValue:jl variant:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-separator",c:"Separator",p:"orientation:s label:s"},{t:"tf-aspect-ratio",c:"AspectRatio",p:"ratio:n"},{t:"tf-label",c:"Label",p:"htmlFor:s required:b hint:r"},{t:"tf-toggle",c:"Toggle",p:"pressed:b defaultPressed:b icon:s label:s size:s disabled:b",e:"onChange:1",s:"onChange:pressed:detail"},{t:"tf-toggle-group",c:"ToggleGroup",p:"items:jl type:s value:jl defaultValue:jl label:s size:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-button-group",c:"ButtonGroup",p:"label:s orientation:s"},{t:"tf-scroll-area",c:"ScrollArea",p:"height:x maxHeight:x orientation:s label:s"},{t:"tf-hover-card",c:"HoverCard",p:"trigger:r side:s align:s openDelay:n closeDelay:n width:n"},{t:"tf-carousel",c:"Carousel",p:"slides:R label:s perView:n loop:b dots:b index:n defaultIndex:n",e:"onChange:1",s:"onChange:index:detail"},{t:"tf-listing-card",c:"ListingCard",p:"listing:j layout:s selected:b statusOptions:j",e:"onSelect:1? onWish:1? onStatus:2 onOpen:1?"},{t:"tf-results-toolbar",c:"ResultsToolbar",p:"title:s total:n meta:s selected:n bulkActions:j sortOptions:j sort:s views:jl view:s",e:"onSelectAll:1? onSort:1 onView:1"},{t:"tf-saved-search",c:"SavedSearch",p:"name:s criteria:R lastRun:s frequency:s newCount:n enabled:b openLabel:s icon:s tint:s",e:"onToggle:0? onEdit:0? onOpen:0?"},{t:"tf-valuation-card",c:"ValuationCard",p:"value:n low:n high:n asking:n perSqm:n compare:s currency:s confidence:n confidenceLabel:s facts:j note:r title:s action:r"},{t:"tf-energy-class",c:"EnergyClass",p:"value:s kwh:n kind:s scale:jl"},{t:"tf-rich-text-editor",c:"RichTextEditor",p:"label:r defaultValue:s value:s placeholder:s variables:j maxLength:n minHeight:n footer:r hint:r error:r disabled:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-top-bar",c:"TopBar",p:"brand:s tag:s items:j active:s user:j extra:r userOpen:b",e:"onNavigate:1 onUser:0"},{t:"tf-side-rail",c:"SideRail",p:"top:j bottom:j"},{t:"tf-dock",c:"Dock",p:"items:j label:s surface:s"},{t:"tf-floating-layout",c:"FloatingLayout",p:"background:r top:r start:r end:r bottom:r height:x surface:s label:s"},{t:"tf-ambient",c:"Ambient",p:"colors:jl src:s video:b animate:b fixed:b"},{t:"tf-app-shell",c:"AppShell",p:"active:s brand:s tag:s nav:j user:j topExtra:r sheetStyle:j contentKey:x side:r dock:b dockItems:j railTop:j railBottom:j",e:"onNavigate:1"},{t:"tf-chat-launcher",c:"ChatLauncher",p:"title:s context:r tint:s open:b unread:n headerAction:r composer:r inline:b",e:"onOpenChange:1",s:"onOpenChange:open:detail"},{t:"tf-cookie-consent",c:"CookieConsent",p:"title:s text:r policy:r categories:j open:b inline:b",e:"onSave:1"},{t:"tf-announcement-bar",c:"AnnouncementBar",p:"tint:s icon:s! action:r",e:"onDismiss:0?",x:"onDismiss"},{t:"tf-status-shape",c:"StatusShape",p:"status:s"},{t:"tf-status-indicator",c:"StatusIndicator",p:"status:s label:r size:s"},{t:"tf-status-screen",c:"StatusScreen",p:"code:s title:s text:s icon:s tint:s extra:r actions:R reference:s",e:"onHome:0 onContact:0"},{t:"tf-auth-card",c:"AuthCard",p:"title:s text:s icon:s tint:s brand:s foot:r"},{t:"tf-sub-nav",c:"SubNav",p:"eyebrow:s action:j items:j current:s",e:"onPick:1"},{t:"tf-drawer",c:"Drawer",p:"title:s subtitle:r avatar:s width:x inline:b open:b side:s",e:"onClose:0",s:"onClose:open:false",x:"onClose"},{t:"tf-command-palette",c:"CommandPalette",p:"items:j placeholder:s inline:b loading:b empty:r open:b",e:"onClose:0 onQueryChange:1",s:"onClose:open:false",x:"onClose"},{t:"tf-notification-list",c:"NotificationList",p:"items:j",e:"onOpen:1 onReadAll:0"},{t:"tf-flow",c:"Flow",p:"steps:j active:n? waiting:b tools:f",e:"onApprove:0? onReject:0?"},{t:"tf-file-thumb",c:"FileThumb",p:"kind:s title:s big:b entries:jl"},{t:"tf-file-card",c:"FileCard",p:"name:s kind:s size:s meta:s shared:b",e:"onClick:0"},{t:"tf-wizard",c:"Wizard",p:"steps:j current:n done:j footer:r brand:s label:s",e:"onPick:1"},{t:"tf-permission-matrix",c:"PermissionMatrix",p:"roles:j areas:jl",e:"onChange:3"},{t:"tf-invoice-preview",c:"InvoicePreview",p:"number:x from:s to:s issued:s due:s lines:j note:s kind:s brand:s format:f"},{t:"tf-transaction-row",c:"TransactionRow",p:"text:s date:s amount:n matched:b matchRef:s hint:s",e:"onMatch:0"}];var W5="0.3.0",eT=Object.freeze(Object.fromEntries(yu.map(e=>[e.t,e.c]))),AS=yu.map(e=>e.t),zS=!1;function tT(){if(zS)return;zS=!0;let e=AS.join(","),t=`:where(${e},tf-root){display:contents}:where(${e})[hidden]{display:none}`;try{let n=new CSSStyleSheet;n.replaceSync(t),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n]}catch{let n=document.createElement("style");n.dataset.tfElements="",n.textContent=t,document.head.prepend(n)}}function _S(){if(typeof window>"u"||typeof customElements>"u")return;Oa.selector=AS.join(","),tT();let e=nf;for(let t of yu){if(customElements.get(t.t))continue;let n=e[t.c];typeof n=="function"&&customElements.define(t.t,wS(TS(t),n))}}_S();return VS(nT);})();
|
|
30
|
+
`);if(I(B[0]??""),B.length>1){let F=o(),lt=F&&m(F.startContainer,F.startOffset);if(!lt)return g(!0);B.slice(1).forEach(El=>{let fi=document.createElement("P");fi.textContent=El;let ih=lt;ih.parentNode?.insertBefore(fi,ih.nextSibling),lt=fi});let Wt=document.createRange();Wt.selectNodeContents(lt),Wt.collapse(!1),f(Wt),g(!0)}}function Kc(){let j=u();(!j.firstChild||j.innerHTML==="<br>")&&(j.innerHTML="<p><br></p>"),Array.from(j.childNodes).forEach(H=>{if(H.nodeType===3&&(H.textContent||"").trim()){let B=document.createElement("P");j.insertBefore(B,H),B.appendChild(H);let F=document.createRange();F.selectNodeContents(B),F.collapse(!1),f(F)}}),g(!1)}let DS=[["bold",()=>{y("B","STRONG")},t.bold,"B"],["italic",()=>{y("I","EM")},t.italic,"I"],["underline",()=>{y("U")},t.underline,"U"],"-",["heading",()=>{q("H3")},t.heading],["quote",()=>{q("BLOCKQUOTE")},t.quote],["list",()=>{U("UL")},t.bulletedList],["olist",()=>{U("OL")},t.numberedList],"-",["link",O,t.link,"K"],"-",["undo",()=>{Fe(-1)},t.undo,"Z"],["redo",()=>{Fe(1)},t.redo]],lh=e.maxLength&&a[0]>e.maxLength,OS=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform||"")?"\u2318":"Ctrl+";return(0,Ge.jsx)(ht,{label:e.label,hint:e.hint,error:e.error,children:(0,Ge.jsxs)("div",{className:p("tf-rte",lh&&"invalid"),children:[(0,Ge.jsxs)("div",{className:"tf-rte-bar",role:"toolbar","aria-label":t.formatting,children:[DS.map((j,H)=>{if(j==="-")return(0,Ge.jsx)("span",{className:"tf-rte-sep","aria-hidden":!0},H);let B=(0,Ge.jsx)("button",{type:"button",className:p("tf-rte-btn",l[0][j[0]]&&"on"),title:j[2]+(j[3]?" ("+OS+j[3]+")":""),"aria-label":j[2],"aria-pressed":j[0]==="undo"||j[0]==="redo"?void 0:!!l[0][j[0]],disabled:e.disabled,onMouseDown:F=>{F.preventDefault()},onClick:j[1],children:(0,Ge.jsx)(x,{name:j[0],size:15})},H);return j[0]==="link"?(0,Ge.jsx)(Ue,{width:300,open:i[0],onOpenChange:i[1],trigger:B,children:(0,Ge.jsxs)("form",{className:"tf-col",style:{gap:8},onSubmit:F=>{F.preventDefault(),P(!1)},children:[(0,Ge.jsx)("input",{className:"tf-input",autoFocus:!0,value:s[0],onChange:F=>{s[1](F.target.value)},placeholder:t.linkAddress,"aria-label":t.linkAddress,inputMode:"url"}),(0,Ge.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end",gap:8},children:[l[0].link&&(0,Ge.jsx)(K,{size:"sm",variant:"ghost",onClick:()=>{P(!0)},children:t.removeLink}),(0,Ge.jsx)(K,{size:"sm",type:"submit",children:t.apply})]})]})},H):B}),e.variables&&e.variables.length>0&&(0,Ge.jsx)(Ue,{width:240,trigger:j=>(0,Ge.jsxs)("button",{type:"button",className:"tf-rte-var",onMouseDown:H=>{H.preventDefault()},onClick:j.toggle,"aria-expanded":j.open,children:["{ }",(0,Ge.jsx)("span",{children:t.insertField})]}),children:j=>(0,Ge.jsx)("div",{className:"tf-menu",children:(e.variables||[]).map(H=>(0,Ge.jsxs)("button",{type:"button",className:"tf-menu-item",onMouseDown:B=>{B.preventDefault()},onClick:()=>{I("{"+H.key+"}"),j.close&&j.close()},children:[(0,Ge.jsx)("span",{style:{flex:1},children:H.label}),(0,Ge.jsx)("code",{children:"{"+H.key+"}"})]},H.key))})})]}),(0,Ge.jsx)("div",{ref:n,className:"tf-rte-area",contentEditable:!e.disabled,role:"textbox","aria-multiline":"true","aria-label":typeof e.label=="string"?e.label:t.text,"data-placeholder":e.placeholder||"",suppressContentEditableWarning:!0,onInput:Kc,onKeyDown:ua,onPaste:Rn,onBlur:k,style:{minHeight:e.minHeight||160}}),(e.maxLength||e.footer)&&(0,Ge.jsxs)("div",{className:"tf-rte-foot",children:[e.footer,e.maxLength&&(0,Ge.jsx)("span",{className:p("tf-rte-count",lh&&"over"),children:vn(a[0])+" / "+vn(e.maxLength)})]})]})})}var se=G(ye(),1),Fa=G(re(),1);function Pu(e){let t=M(zl);return(0,se.jsxs)("nav",{className:"tf-topbar","aria-label":t.mainNavigation,children:[e.brand&&(0,se.jsxs)("span",{className:"tf-brand",children:[e.brand,(0,se.jsx)("span",{className:"tf-brand-dot","aria-hidden":!0}),e.tag&&(0,se.jsx)("span",{className:"tf-brand-tag",children:e.tag})]}),(0,se.jsx)("div",{className:"tf-nav",children:(e.items||[]).map(n=>{let a=n.label===e.active;return(0,se.jsxs)("button",{type:"button",className:"tf-nav-item","aria-current":a?"page":void 0,title:n.label,onClick:()=>{e.onNavigate&&e.onNavigate(n.label)},children:[(0,se.jsx)(x,{name:n.icon}),(0,se.jsx)("span",{className:"tf-nav-label",children:n.label}),n.count?(0,se.jsx)("span",{className:"tf-nav-count",children:n.count}):null]},n.label)})}),e.extra&&(0,se.jsx)("div",{className:"tf-topbar-extra",children:e.extra}),e.user&&(0,se.jsxs)("button",{type:"button",className:"tf-user","aria-haspopup":"menu","aria-expanded":e.userOpen?"true":"false",onClick:e.onUser,children:[(0,se.jsx)(Ve,{name:e.user.name,size:28}),(0,se.jsxs)("span",{className:"tf-user-text",children:[(0,se.jsx)("span",{className:"tf-user-name",children:e.user.name}),e.user.email&&(0,se.jsx)("span",{className:"tf-user-mail",children:e.user.email})]}),(0,se.jsx)(x,{name:"chevronDown",size:14})]})]})}function sb(e,t){return(0,se.jsxs)("button",{type:"button",className:"tf-rail-btn",style:{animationDelay:`calc(${200+t*50}ms * var(--motion-time, 1))`},"aria-label":e.count?`${e.label}, ${e.count}`:e.label,title:e.label,"aria-current":e.active?"page":void 0,onClick:e.onClick,children:[(0,se.jsx)(x,{name:e.icon}),e.count?(0,se.jsx)("span",{className:"tf-dotcount",children:e.count}):null]},e.label)}function Wu(e){let t=M(zl);return(0,se.jsxs)("aside",{className:"tf-rail","aria-label":t.tools,children:[(0,se.jsx)("div",{className:"tf-rail-group",children:(e.top||[]).map(sb)}),(0,se.jsx)("div",{className:"tf-rail-group",children:(e.bottom||[]).map((n,a)=>sb(n,a+3))})]})}function ef(e){let t=M(zl);return(0,se.jsx)("div",{className:p("tf-dock",e.surface&&"tf-"+e.surface,e.className),style:e.style,role:"toolbar","aria-label":e.label||t.quickActions,children:(e.items||[]).map(n=>(0,se.jsx)("button",{type:"button",className:p("tf-dock-btn","tf-t-"+(n.tint||"plain")),"aria-label":n.label,title:n.label,onClick:n.onClick,children:(0,se.jsx)(x,{name:n.icon})},n.label))})}function cb(e){let t=e.surface??"glass";return(0,se.jsxs)("div",{className:p("tf-floating",e.className),style:{minHeight:e.height??640,...e.style},role:"region","aria-label":e.label,"data-surface":t,children:[e.background!=null&&(0,se.jsx)("div",{className:"tf-floating-bg",children:e.background}),(0,se.jsxs)("div",{className:"tf-floating-ui",children:[e.top!=null&&(0,se.jsx)("div",{className:"tf-floating-top",children:e.top}),e.start!=null&&(0,se.jsx)("div",{className:"tf-floating-start",children:e.start}),e.end!=null&&(0,se.jsx)("div",{className:"tf-floating-end",children:e.end}),e.bottom!=null&&(0,se.jsx)("div",{className:"tf-floating-bottom",children:e.bottom})]}),e.children]})}function rb(e){let t=Fa.useRef(null),[n,a]=Fa.useState(!1),l=e.animate!==!1&&!e.src&&!e.children;Fa.useEffect(()=>{let r=t.current;if(!r||!l||typeof IntersectionObserver>"u")return;let u=new IntersectionObserver(o=>a(!o.some(f=>f.isIntersecting)));return u.observe(r),()=>u.disconnect()},[l]);let i=Fa.useRef(null);Fa.useEffect(()=>{let r=i.current;r&&wn(r)&&r.pause()},[e.src]);let s=e.colors?.length?e.colors:["var(--ambient-1)","var(--ambient-2)","var(--ambient-3)","var(--ambient-4)"],c=!!e.src&&!e.children;return(0,se.jsx)("div",{ref:t,"aria-hidden":!0,className:p("tf-ambient",e.fixed&&"fixed",c&&"media",!l&&"still",e.className),style:e.style,"data-paused":n?"":void 0,children:e.children??(c?e.video?(0,se.jsx)("video",{ref:i,className:"tf-ambient-media",src:e.src,muted:!0,loop:!0,autoPlay:!0,playsInline:!0}):(0,se.jsx)("img",{className:"tf-ambient-media",src:e.src,alt:""}):s.map((r,u)=>(0,se.jsx)("span",{className:"tf-ambient-field",style:{"--field":r}},u)))})}var tf=()=>[{label:"Home",icon:"home"},{label:"People",icon:"users"},{label:"Projects",icon:"grid"},{label:"Inbox",icon:"mail"},{label:"Calendar",icon:"calendar"},{label:"Billing",icon:"card"},{label:"Reports",icon:"chart"},{label:"Settings",icon:"settings"}],qx=()=>[{label:"Share",icon:"share",active:!0},{label:"List view",icon:"menu"},{label:"Grid view",icon:"grid"}],Gx=()=>[{label:"Notifications",icon:"bell",count:3},{label:"Zoom in",icon:"plus"},{label:"Zoom out",icon:"minus"}],Yx=()=>[{label:"Invite",icon:"users",tint:"sky"},{label:"New page",icon:"file",tint:"lilac"},{label:"New invoice",icon:"card",tint:"blush"},{label:"Announce",icon:"send",tint:"butter"},{label:"Export",icon:"download",tint:"mint"},{label:"More",icon:"plus"}];function ob(e){return(0,se.jsxs)("div",{className:p("tf-shell",e.className),style:e.style,children:[(0,se.jsx)(Pu,{brand:e.brand,tag:e.tag,active:e.active,items:e.nav||tf(),onNavigate:e.onNavigate,user:e.user,extra:e.topExtra}),(0,se.jsxs)("div",{className:p("tf-sheet",!e.side&&"tf-sheet-2"),style:e.sheetStyle,children:[(0,se.jsx)(Wu,{top:e.railTop||qx(),bottom:e.railBottom||Gx()}),(0,se.jsx)("main",{className:p("tf-main",e.dock!==!1&&"tf-main-dock"),children:e.children},e.contentKey),e.side||null,e.dock!==!1&&(0,se.jsx)("div",{className:"tf-dock-float",children:(0,se.jsx)(ef,{items:e.dockItems||Yx()})})]})]})}var de=G(ye(),1),Ai=G(re(),1);function ub(e){let t=M(Al),n=$(e.open,!1,e.onOpenChange);return(0,de.jsxs)("div",{className:p("tf-launch",n[0]&&"open",e.inline&&"inline"),children:[n[0]&&(0,de.jsxs)("div",{className:"tf-launch-panel",role:"dialog","aria-label":e.title||t.assistant,children:[(0,de.jsxs)("div",{className:"tf-launch-head",children:[(0,de.jsx)(Xt,{tint:e.tint||"lilac",size:32}),(0,de.jsxs)("div",{className:"tf-option-text",style:{flex:1},children:[(0,de.jsx)("b",{children:e.title||t.assistant}),e.context&&(0,de.jsx)("small",{children:e.context})]}),e.headerAction,(0,de.jsx)(W,{icon:"x",size:"sm",label:t.close,onClick:()=>{n[1](!1)}})]}),(0,de.jsx)("div",{className:"tf-launch-body",children:e.children}),e.composer&&(0,de.jsx)("div",{className:"tf-launch-foot",children:e.composer})]}),(0,de.jsxs)("button",{type:"button",className:"tf-launch-btn","aria-label":n[0]?t.closeAssistant:e.title||t.openAssistant,"aria-expanded":n[0],onClick:()=>{n[1](!n[0])},children:[(0,de.jsx)(x,{name:n[0]?"x":"sparkle",size:22}),!n[0]&&(e.unread??0)>0&&(0,de.jsx)("span",{className:"tf-nav-count",children:e.unread})]})]})}function fb(e){let t=M(Al),n=Ai.useState(!1),a=Ai.useState((e.categories||[]).reduce((i,s)=>(i[s.id]=!!(s.required||s.default),i),{}));if(e.open===!1)return null;function l(i){let s=Object.assign({},a[0]);(e.categories||[]).forEach(c=>{i===!0&&(s[c.id]=!0),i===!1&&(s[c.id]=!!c.required)}),e.onSave&&e.onSave(s)}return(0,de.jsxs)("div",{className:p("tf-cookie",e.inline&&"inline"),role:"dialog","aria-label":e.title||t.privacySettings,children:[(0,de.jsxs)("div",{className:"tf-row",style:{gap:12,alignItems:"flex-start",flexWrap:"nowrap"},children:[(0,de.jsx)(ce,{icon:"cookie",tint:"butter",size:36}),(0,de.jsxs)("div",{className:"tf-col",style:{gap:4},children:[(0,de.jsx)("b",{children:e.title||t.privacySettings}),(0,de.jsxs)("p",{className:"tf-card-desc",style:{margin:0},children:[e.text||t.cookieText,e.policy&&(0,de.jsxs)(Ai.Fragment,{children:[" ",e.policy]})]})]})]}),n[0]&&(0,de.jsx)("div",{className:"tf-cookie-cats",children:(e.categories||[]).map(i=>(0,de.jsxs)("div",{className:"tf-cookie-cat",children:[(0,de.jsxs)("div",{className:"tf-option-text",style:{flex:1},children:[(0,de.jsx)("b",{children:i.label}),i.text&&(0,de.jsx)("small",{children:i.text})]}),i.required?(0,de.jsx)("span",{className:"tf-card-desc",children:t.alwaysOn}):(0,de.jsx)(Xa,{checked:!!a[0][i.id],onChange:()=>{let s=Object.assign({},a[0]);s[i.id]=!s[i.id],a[1](s)}})]},i.id))}),(0,de.jsxs)("div",{className:"tf-cookie-actions",children:[n[0]?(0,de.jsx)(K,{variant:"secondary",onClick:()=>{l(void 0)},children:t.saveChoice}):(0,de.jsx)(K,{variant:"ghost",onClick:()=>{n[1](!0)},children:t.settings}),(0,de.jsx)(K,{variant:"secondary",onClick:()=>{l(!1)},children:t.onlyNecessary}),(0,de.jsx)(K,{onClick:()=>{l(!0)},children:t.acceptAll})]})]})}function db(e){let t=M(Al),n=Ai.useState(!1);return n[0]?null:(0,de.jsxs)("div",{className:p("tf-announce","tf-t-"+(e.tint||"butter")),role:"status",children:[e.icon!==!1&&(0,de.jsx)(x,{name:e.icon||"sparkle",size:15}),(0,de.jsx)("span",{children:e.children}),e.action,e.onDismiss!==!1&&(0,de.jsx)("button",{type:"button",className:"tf-announce-x","aria-label":t.dismiss,onClick:()=>{n[1](!0),e.onDismiss&&e.onDismiss()},children:(0,de.jsx)(x,{name:"x",size:14})})]})}var Pe=G(ye(),1),DR=G(re(),1);function mb(e){let t=e.code||"404",n={404:["Page not found","The link may be old, or the page moved. Nothing is broken on your side.","search","sky"],500:["Something broke on our side","We\u2019ve been notified and are on it. Your data is safe; try again in a minute.","x","blush"],maintenance:["Back in a few minutes","We\u2019re upgrading the database. Everything you saved is safe.","settings","butter"],offline:["You\u2019re offline","Changes are kept on this device and sync when you\u2019re back.","globe","lilac"],403:["You don\u2019t have access","Ask a workspace owner to invite you to this area.","lock","lilac"]}[t]||[e.title,e.text,"sparkle","sky"];return(0,Pe.jsxs)("div",{className:"tf-status-screen",children:[(0,Pe.jsxs)("div",{className:"tf-status-art","aria-hidden":!0,children:[/^\d+$/.test(t)&&(0,Pe.jsx)("span",{className:"tf-status-code",children:t}),(0,Pe.jsx)(ce,{icon:e.icon||n[2],tint:e.tint||n[3],size:56})]}),(0,Pe.jsx)("h1",{children:e.title||n[0]}),(0,Pe.jsx)("p",{children:e.text||n[1]}),e.extra,(0,Pe.jsx)("div",{className:"tf-row",style:{justifyContent:"center"},children:e.actions||[(0,Pe.jsx)(K,{icon:"home",onClick:e.onHome,children:"Back to overview"},"h"),(0,Pe.jsx)(K,{variant:"secondary",icon:"mail",onClick:e.onContact,children:"Contact support"},"s")]}),e.reference&&(0,Pe.jsx)("span",{className:"tf-status-ref",children:`Reference ${e.reference}`})]})}function hb(e){return(0,Pe.jsxs)("div",{className:"tf-auth",children:[e.brand&&(0,Pe.jsxs)("div",{className:"tf-auth-brand",children:[(0,Pe.jsx)("span",{className:"tf-brand-word",children:e.brand}),(0,Pe.jsx)("span",{className:"tf-brand-dot"})]}),e.icon&&(0,Pe.jsx)(ce,{icon:e.icon,tint:e.tint||"sky",size:48}),(0,Pe.jsxs)("div",{className:"tf-col",style:{gap:8},children:[(0,Pe.jsx)("h1",{className:"tf-auth-title",children:e.title}),e.text&&(0,Pe.jsx)("p",{className:"tf-auth-text",children:e.text})]}),e.children,e.foot&&(0,Pe.jsx)("div",{className:"tf-auth-foot",children:e.foot})]})}var Xe=G(re(),1),pu=G(ir(),1),MS=G(gS(),1);var bS=/^\d{4}-\d{2}-\d{2}(?:[T ][\d:.]+(?:Z|[+-]\d{2}:?\d{2})?)?$/,vS=/^\s*-?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?\s*$/i;function eh(e){let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t}function Z5(e,t){return typeof t=="string"&&bS.test(t)?eh(t)??t:t}function pS(e,t){if(t===null)return;if(e.flags.includes("?")&&t==="null")return null;switch(e.kind){case"b":return t!=="false";case"n":return vS.test(t)?Number(t):void 0;case"x":return vS.test(t)?Number(t):t;case"s":return e.flags.includes("!")&&t==="false"?!1:t;case"d":return eh(t);case"r":return t;case"R":case"K":case"j":{let a=t.trim();try{return JSON.parse(a,e.flags.includes("t")?Z5:void 0)}catch{return e.kind==="R"?[t]:e.flags.includes("t")&&bS.test(a)?eh(a):e.flags.includes("l")?a.split(",").map(l=>l.trim()).filter(Boolean):t}}default:return}}function yS(e){if(!e||!e.trim())return;let t={};for(let n of e.split(/;(?![^(]*\))/)){let a=n.indexOf(":");if(a<0)continue;let l=n.slice(0,a).trim(),i=n.slice(a+1).trim();!l||!i||(t[l.startsWith("--")?l:l.replace(/-([a-z])/g,(s,c)=>c.toUpperCase())]=i)}return t}function NS(e){if(!e||typeof e!="object"||!("nativeEvent"in e)||!("target"in e))return e;let t=e.target;return t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")?t.checked:t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?t.value:null}function SS(e){return!!e&&typeof e=="object"&&"nativeEvent"in e&&"target"in e}function xS(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase()}function CS(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var vu=e=>e?e.split(" ").filter(Boolean):[];function TS(e){let t=vu(e.p).map(l=>{let[i="",s="j"]=l.split(":");return{name:i,attr:xS(i),kind:s.charAt(0),flags:s.slice(1)}}),n=vu(e.e).map(l=>{let[i="",s="0"]=l.split(":");return{prop:i,type:i.slice(2).toLowerCase(),arity:parseInt(s,10)||0,conditional:s.endsWith("?")}}),a=vu(e.s).map(l=>{let[i="",s="",c="detail"]=l.split(":");return{event:i,prop:s,from:c==="false"?"false":"detail"}});return{tag:e.t,component:e.c,props:t,byAttr:new Map(t.map(l=>[l.attr,l])),byName:new Map(t.map(l=>[l.name,l])),events:n,byType:new Map(n.map(l=>[l.type,l])),sync:a,dismiss:new Set(vu(e.x)),dialog:!!e.dialog,closeChildren:!!e.close}}var th=new WeakSet,F5=new Set(["title","role","lang"]),I5=e=>F5.has(e)||e.startsWith("aria-"),kS=new Set(["id","slot","hidden","children","className","style","dir","inert","autofocus","tabIndex","accessKey","draggable","translate","spellcheck","contentEditable","nonce","part","popover","innerHTML","textContent"]),ES="tf-root",nh=0;function bu(e){for(let t=e.parentNode;t;t=t.parentNode)if(t instanceof Oa)return t;return null}function J5(e,t){for(let n=e.parentNode;n&&n!==t;n=n.parentNode){if(n===t._stash)return"stash";let a=n.__tfSlot;if(a)return a.owner===t?a:null}return null}var $5=e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&!/^\s*\n\s*$/.test(e.nodeValue??"")&&e.nodeValue!=="";function RS({el:e}){return(0,Xe.useSyncExternalStore)(e._subscribe,e._snapshot,e._snapshot),(0,Xe.useLayoutEffect)(()=>{e._sweep()}),e._view()}function ah({owner:e,nodes:t}){let n=(0,Xe.useRef)(null),[a,l]=(0,Xe.useState)([]),i=(0,Xe.useMemo)(()=>{let s=[],c={owner:e,rescan(){let r=n.current;if(!r||!r.isConnected)return;let u=[];for(let o of r.querySelectorAll("*"))o instanceof Oa&&bu(o)===e&&o.isConnected&&u.push(o);for(let o of u)o._slot!==c&&o._enterPortal(c);for(let o of s)!u.includes(o)&&o._slot===c&&o._leave();(u.length!==s.length||u.some((o,f)=>o!==s[f]))&&(s=u,l(u))},release(r){s.includes(r)&&(s=s.filter(u=>u!==r),l(s))}};return c},[e]);return(0,Xe.useLayoutEffect)(()=>{let s=n.current;if(!s)return;if(s.__tfSlot=i,!(s.childNodes.length===t.length&&t.every((f,d)=>s.childNodes[d]===f)))for(let f of t)s.appendChild(f);let r=!1,u=()=>{r||(r=!0,queueMicrotask(()=>{r=!1,i.rescan()}))};u();let o=new MutationObserver(f=>{for(let d of f)for(let m of[d.addedNodes,d.removedNodes])for(let N of m)if(N instanceof Element&&(N instanceof Oa||N.querySelector(Oa.selector)))return u()});return o.observe(s,{childList:!0,subtree:!0}),()=>{o.disconnect(),queueMicrotask(()=>e._sweep())}},[t,i,e]),(0,Xe.createElement)("span",{ref:n,"data-tf-slot":"",style:{display:"contents"}},a.map(s=>s._mount?(0,pu.createPortal)((0,Xe.createElement)(RS,{el:s}),s._mount,s._mountKey):null))}function P5({onClose:e,children:t}){let n=(0,Xe.useRef)(null);return Ol(n,e),(0,Xe.useEffect)(()=>{let a=setTimeout(()=>{let l=n.current,i=l?.querySelector('[autofocus], input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select'),s=document.activeElement,c=s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement;l&&i&&!(c&&l.contains(s))&&i.focus()},30);return()=>clearTimeout(a)},[]),(0,Xe.createElement)("div",{ref:n,"data-tf-dialog":"",style:{position:"fixed",inset:0,zIndex:85,overflowY:"auto"},onClick:a=>{a.target instanceof Element&&a.target.classList.contains("tf-backdrop")&&e?.()}},t)}var Oa=class e extends HTMLElement{static def;static component;static selector="tf-provider";_key=`tf${(++nh).toString(36)}`;_values=new Map;_fns=new Map;_slots=null;_views=new Map;_root=null;_mount=null;_mountKey="";_slot=null;_stash=null;_rendered=!1;_version=0;_subs=new Set;_listeners=new Map;_callbacks=new Map;_closeFn;_stripping=new Set;_waiting=!1;_observer=null;constructor(){super();let t=this._def;for(let a of t.events)a.type!=="click"&&HTMLElement.prototype.addEventListener.call(this,a.type,l=>{!th.has(l)&&l.target!==this&&this._isOwnDom(l.target)&&l.stopImmediatePropagation()});if(t.closeChildren){let a=l=>{l.target!==this&&th.has(l)&&this._closeFn?.()};HTMLElement.prototype.addEventListener.call(this,"close",a),this._listeners.set("close",new Set([a]))}let n=this;for(let a of[...t.props.map(l=>l.name),...t.events.map(l=>l.prop)])if(!kS.has(a)&&Object.prototype.hasOwnProperty.call(this,a)){let l=n[a];delete n[a],n[a]=l}}get _def(){return this.constructor.def}connectedCallback(){this._waiting||(document.readyState==="loading"?(this._waiting=!0,document.addEventListener("DOMContentLoaded",()=>{this._waiting=!1,this._attach()},{once:!0})):queueMicrotask(()=>this._attach()))}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||this._leave()})}attributeChangedCallback(t,n,a){if(a===null&&this._stripping.delete(t))return;let i=this._def.byAttr.get(t);if(i){let s=pS(i,a);s===void 0?this._values.delete(i.name):this._values.set(i.name,s),I5(t)&&a!==null&&(this._stripping.add(t),this.removeAttribute(t))}this._bump()}_attach(){if(!this.isConnected)return;let t=bu(this);if(t){let l=J5(this,t);if(l==="stash")return;if(l){this._slot!==l&&l.rescan();return}if(!t._rendered)return}if(this._root)return;this._leave(),this._prepare();let n=this._newMount(),a=(0,MS.createRoot)(n,{identifierPrefix:`${this._key}-`});this._root=a,(0,pu.flushSync)(()=>a.render((0,Xe.createElement)(RS,{el:this})))}_leave(){let t=this._root,n=this._slot;this._root=null,this._slot=null,this._mount?.remove(),this._mount=null,t&&t.unmount(),n?.release(this)}_enterPortal(t){this._leave(),this._prepare(),this._newMount(),this._slot=t}_newMount(){let t=document.createElement(ES);return t.style.display="contents",this._mount=t,this._mountKey=`${this._key}-${(++nh).toString(36)}`,this.appendChild(t),t}_prepare(){if(!this._slots){this._slots=new Map;for(let t of[...this.childNodes])this._take(t);this._observer=new MutationObserver(t=>{if(this._mount&&this._mount.parentNode!==this){this._slots=null,this._views.clear(),this._observer?.disconnect(),this._leave(),this._attach();return}let n=!1;for(let a of t)for(let l of a.addedNodes)l.parentNode===this&&(n=this._take(l)||n);n&&(this._views.clear(),this._bump())}),this._observer.observe(this,{childList:!0})}}_take(t){if(t===this._mount||t===this._stash||t instanceof Element&&t.localName===ES||!$5(t))return!1;let n=t instanceof Element?t.getAttribute("slot"):null,a="children";if(n){let l=n.indexOf(":"),i=CS(l<0?n:n.slice(0,l));a=l<0?i:`${i}:${n.slice(l+1)}`}return this._slots?.set(a,[...this._slots.get(a)??[],t]),!0}_sweep(){if(this._rendered=!0,!!this._slots){for(let t of this._slots.values())for(let n of t)if(n.parentNode===this||!this.contains(n)){if(!this._stash){let a=document.createElement("div");a.hidden=!0,a.dataset.tfStash="",this._stash=a}this._stash.parentNode!==this&&this.appendChild(this._stash),this._stash.appendChild(n)}}}_isOwnDom(t){for(let n=t;n&&n!==this;n=n.parentNode)if(n.__tfSlot?.owner===this)return!1;return!0}_subscribe=t=>(this._subs.add(t),()=>this._subs.delete(t));_snapshot=()=>this._version;_bump(){this._version++;for(let t of this._subs)t()}addEventListener(t,n,a){if(!n)return;super.addEventListener(t,n,a);let l=this._listeners.get(t);l||this._listeners.set(t,l=new Set);let i=l.size===0;l.add(n),i&&this._bumpTree(t)}removeEventListener(t,n,a){if(!n)return;super.removeEventListener(t,n,a);let l=this._listeners.get(t);l?.delete(n)&&l.size===0&&this._bumpTree(t)}_listens(t){let n=a=>{let l=a;return!!a._listeners.get(t)?.size||a.hasAttribute(`on${t}`)||typeof l[`on${t}`]=="function"||typeof l[`__${t}`]=="function"};if(n(this))return!0;for(let a=bu(this);a;a=bu(a))if(n(a))return!0;return!1}_bumpTree(t){this._def.byType.get(t)?.conditional&&this._bump();for(let n of this.querySelectorAll(e.selector))n instanceof e&&n._def.byType.get(t)?.conditional&&n._bump()}_slotView(t,n){let a=`${t}|${n?1:0}`;if(this._views.has(a))return this._views.get(a);let l=this._slots?.get(t),i;return l?.length&&(i=l.length===1&&!n?(0,Xe.createElement)(ah,{owner:this,nodes:l}):l.map((s,c)=>(0,Xe.createElement)(ah,{key:c,owner:this,nodes:[s]}))),this._views.set(a,i),i}_nodeView(t){if(t instanceof Node){let n=this._views.get(`node|${t.__tfKey??""}`);if(!n){let a=t.__tfKey??=`n${(++nh).toString(36)}`;n=(0,Xe.createElement)(ah,{key:a,owner:this,nodes:[t]}),this._views.set(`node|${a}`,n)}return n}return Array.isArray(t)?t.map(n=>this._nodeView(n)):t}_propValue(t){if(t.kind==="r"||t.kind==="R"){let a=this._slotView(t.name,t.kind==="R");if(a!==void 0)return a}if(t.kind==="K"&&this._slots){let a;for(let l of this._slots.keys())l.startsWith(`${t.name}:`)&&((a??={})[l.slice(t.name.length+1)]=this._slotView(l,!1));if(a)return{...this._values.get(t.name),...a}}if(t.kind==="f")return this._fns.get(t.name);let n=this._values.get(t.name);if(n!==void 0)return t.kind==="r"||t.kind==="R"?this._nodeView(n):n}_callback(t){let n=this._callbacks.get(t.prop);return n||(n=(...a)=>this._fire(t,a),this._callbacks.set(t.prop,n)),n}_fire(t,n){let a=this._fns.get(t.prop),l=a?a.apply(this,n):void 0,i=n[0];if(t.type==="click"&&SS(i)&&i.nativeEvent.type==="click")return l;let s=n.map(NS),c=t.arity>1?Array.from({length:Math.max(t.arity,s.length)},(u,o)=>s[o]):s.length?s[0]:null,r=new CustomEvent(t.type,{detail:c,bubbles:!0,composed:!0,cancelable:!0});return th.add(r),this.dispatchEvent(r)&&this._after(t,s[0]),l}_after(t,n){let a=this._def,l=!1;for(let i of a.sync)i.event===t.prop&&this._values.get(i.prop)!==void 0&&(this._values.set(i.prop,i.from==="false"?!1:n),l=!0);l?this._bump():a.dismiss.has(t.prop)&&(this.hidden=!0)}_passes(t){return!t.conditional||this._fns.has(t.prop)||this._def.sync.some(n=>n.event===t.prop&&this._values.get(n.prop)!==void 0)?!0:this._listens(t.type)}_props(){let t=this._def,n={};for(let s of t.props){let c=this._propValue(s);c!==void 0&&(n[s.name]=c)}let a=this._slotView("children",!1);t.closeChildren?n.children=s=>(this._closeFn=s.close,a??null):a!==void 0&&(n.children=a);let l=this.getAttribute("class");l&&(n.className=l);let i=yS(this.getAttribute("style"));i&&(n.style=i);for(let s of t.events)this._passes(s)&&(n[s.prop]=this._callback(s));return n}_view(){if(this.hidden)return null;let t=this.constructor.component,n=this._props(),a=(0,Xe.createElement)(t,n);return this._def.dialog?(0,Xe.createElement)(P5,{onClose:n.onClose},a):a}};function wS(e,t){let n=[...e.props.filter(s=>s.kind!=="f").map(s=>s.attr),...e.events.map(s=>`on${s.type}`),"class","style","hidden"];class a extends Oa{static def=e;static component=t;static observedAttributes=[...new Set(n)]}let l=a.prototype,i=(s,c,r)=>{kS.has(s)||Object.defineProperty(l,s,{configurable:!0,enumerable:!0,get:c,set:r})};for(let s of e.props)i(s.name,function(){return s.kind==="f"?this._fns.get(s.name):this._values.get(s.name)},function(c){s.kind==="f"?typeof c=="function"?this._fns.set(s.name,c):this._fns.delete(s.name):c===void 0?this._values.delete(s.name):this._values.set(s.name,c),this._views.clear(),this._bump()});for(let s of e.events)i(s.prop,function(){return this._fns.get(s.prop)},function(c){typeof c=="function"?this._fns.set(s.prop,c):this._fns.delete(s.prop),this._bump()});return a}var yu=[{t:"tf-provider",c:"UIProvider",p:"kit:s theme:s density:s scope:s tokens:j surface:s motion:s locale:s messages:j"},{t:"tf-icon",c:"Icon",p:"name:s size:n label:s"},{t:"tf-range-slider",c:"RangeSlider",p:"label:r min:n max:n step:n value:j defaultValue:j unit:s inputs:b openEnd:b format:f hint:r",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-bar-list",c:"BarList",p:"items:j format:f label:s",e:"onPick:1?"},{t:"tf-status-select",c:"StatusSelect",p:"options:j value:s defaultValue:s size:s label:s width:n",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-tile-picker",c:"TilePicker",p:"options:j value:j defaultValue:j multiple:b min:n label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-live-feed",c:"LiveFeed",p:"items:j types:j paused:b maxHeight:n emptyText:s",e:"onPause:1"},{t:"tf-map-view",c:"MapView",p:"points:j bounds:j background:r bubbles:b selected:x? renderPopup:f legend:r controls:r height:x label:s surface:s",e:"onSelect:1"},{t:"tf-balance-card",c:"BalanceCard",p:"name:s sub:r logo:r icon:s tint:s balance:n currency:s perDay:n low:n spark:j status:s statusLabel:s topUpLabel:s action:r",e:"onTopUp:0?"},{t:"tf-service-monitor",c:"ServiceMonitor",p:"items:j label:s"},{t:"tf-run-history",c:"RunHistory",p:"items:j label:s"},{t:"tf-webhook-endpoint",c:"WebhookEndpoint",p:"url:s events:jl status:s statusLabel:s successRate:n enabled:b secret:r deliveries:j menu:jl defaultOpen:b",e:"onToggle:0? onRetry:1?"},{t:"tf-backup-list",c:"BackupList",p:"items:j footer:r label:s",e:"onDownload:1? onRestore:1?"},{t:"tf-block-list",c:"BlockList",p:"items:j addLabel:s removeLabel:s searchPlaceholder:s emptyText:s",e:"onAdd:0? onRemove:1?"},{t:"tf-review-card",c:"ReviewCard",p:"author:s verified:b product:s date:s rating:n title:s text:s state:s stateLabel:s highlight:jl reply:s replyLabel:s",e:"onPublish:0? onHide:0? onReply:1?"},{t:"tf-coupon-card",c:"CouponCard",p:"code:s kind:s value:n currency:s used:n limit:n until:s min:n revenue:n text:r status:s statusLabel:s menu:jl",e:"onCopy:0"},{t:"tf-locale-field",c:"LocaleField",p:"label:r locales:j value:j defaultValue:j source:s active:s multiline:b rows:n placeholder:s hint:r error:r",e:"onChange:1 onTranslate:2?",s:"onChange:value:detail"},{t:"tf-locale-switcher",c:"LocaleSwitcher",p:"languages:j language:s currencies:jl currency:s variant:s",e:"onLanguage:1 onCurrency:1"},{t:"tf-workspace-switcher",c:"WorkspaceSwitcher",p:"items:j value:s label:s footer:r variant:s width:n",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-export-dialog",c:"ExportDialog",p:"open:b inline:b title:s text:r count:n formats:jl format:s columns:j ranges:b range:jt note:r download:r doneText:s",e:"onClose:0 onExport:2 onDownload:0",s:"onClose:open:false",x:"onClose"},{t:"tf-two-factor-setup",c:"TwoFactorSetup",p:"qr:r secret:s codes:jl step:n scanText:s codesText:s",e:"onVerify:1? onDownload:0? onDone:0"},{t:"tf-color-field",c:"ColorField",p:"label:r value:s defaultValue:s against:s! hint:r",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-agent-card",c:"AgentCard",p:"name:s role:s tint:s status:s statusLabel:s model:s cost:s last:r",e:"onClick:0? onChat:0?"},{t:"tf-agent-details",c:"AgentDetails",p:"name:s role:s tint:s status:s statusLabel:s sections:j actions:R"},{t:"tf-chat-list",c:"ChatList",p:"groups:j selected:s filters:r searchPlaceholder:s",e:"onSelect:1 onSearch:1"},{t:"tf-chat-workspace",c:"ChatWorkspace",p:"list:r thread:r details:r"},{t:"tf-search-hits",c:"SearchHits",p:"items:j query:s emptyText:s",e:"onOpen:1"},{t:"tf-thinking-line",c:"ThinkingLine",p:"text:s"},{t:"tf-feedback-rating",c:"FeedbackRating",p:"value:s? label:s placeholder:s thanks:s askOnUp:b",e:"onRate:1 onSubmit:2"},{t:"tf-activity-feed",c:"ActivityFeed",p:"groups:j items:j"},{t:"tf-daily-briefing",c:"DailyBriefing",p:"title:s time:s tint:s summary:r attention:j suggestions:R attentionTitle:s suggestionsTitle:s"},{t:"tf-budget-stop",c:"BudgetStop",p:"spent:n budget:n title:s text:r paused:r running:r actionLabel:s",e:"onRaise:0?"},{t:"tf-memory-viewer",c:"MemoryViewer",p:"items:j",e:"onEdit:1? onDelete:1?"},{t:"tf-override-diff",c:"OverrideDiff",p:"title:s versions:r by:r before:s after:s discardLabel:s promoteLabel:s",e:"onDiscard:0? onPromote:0?"},{t:"tf-trigger-list",c:"TriggerList",p:"items:j",e:"onToggle:1? onRun:1?"},{t:"tf-schedule-calendar",c:"ScheduleCalendar",p:"events:j from:n to:n days:jl",e:"onOpen:1"},{t:"tf-org-chart",c:"OrgChart",p:"root:j"},{t:"tf-voice-mode",c:"VoiceMode",p:"name:s tint:s state:s stateLabel:s transcript:r muted:b",e:"onMute:0? onEnd:0?"},{t:"tf-mobile-tab-bar",c:"MobileTabBar",p:"items:j active:s label:s",e:"onPick:1"},{t:"tf-push-notification",c:"PushNotification",p:"app:s time:s title:s text:r actions:j"},{t:"tf-config-pr-summary",c:"ConfigPRSummary",p:"title:s meta:r status:s statusLabel:s summary:r items:j actions:R"},{t:"tf-module-registry",c:"ModuleRegistry",p:"items:j coreLabel:s",e:"onToggle:1"},{t:"tf-approval-card",c:"ApprovalCard",p:"title:r text:r agent:s project:s family:s familyLabel:s age:s escalation:r trace:r note:r heading:s options:j approveLabel:s decision:j compact:b state:s",e:"onDecide:2 onApprove:0 onDeny:0 onEdit:1"},{t:"tf-approval-inbox",c:"ApprovalInbox",p:"items:j selected:x emptyTitle:s emptyText:s label:s",e:"onSelect:1?"},{t:"tf-kbd",c:"Kbd",p:"keys:jl"},{t:"tf-key-value",c:"KeyValue",p:"items:j dense:b"},{t:"tf-spinner",c:"Spinner",p:"size:s label:s"},{t:"tf-collapsible",c:"Collapsible",p:"title:r meta:r defaultOpen:b open:b",e:"onOpenChange:1",s:"onOpenChange:open:detail"},{t:"tf-context-menu",c:"ContextMenu",p:"items:jl"},{t:"tf-split-pane",c:"SplitPane",p:"left:r right:r defaultSize:n min:n max:n storageKey:s"},{t:"tf-resizable-panels",c:"ResizablePanels",p:"panels:R defaultSizes:j min:n orientation:s storageKey:s labels:jl"},{t:"tf-tree-view",c:"TreeView",p:"items:j defaultOpen:jl selected:s label:s",e:"onSelect:1"},{t:"tf-inline-edit",c:"InlineEdit",p:"value:s options:jl mono:b type:s display:f align:s label:s",e:"onSave:1"},{t:"tf-bar-chart",c:"BarChart",p:"data:j tint:s height:n width:n barWidth:n format:f label:s"},{t:"tf-line-chart",c:"LineChart",p:"labels:jl series:j height:n width:n format:f label:s"},{t:"tf-sparkline",c:"Sparkline",p:"values:j tint:s width:n height:n label:s"},{t:"tf-donut",c:"Donut",p:"data:j center:s caption:s size:n stroke:n legend:b label:s"},{t:"tf-legend",c:"Legend",p:"items:j"},{t:"tf-stacked-bar-chart",c:"StackedBarChart",p:"labels:jl series:j height:n width:n barWidth:n format:f legend:b label:s"},{t:"tf-area-chart",c:"AreaChart",p:"labels:jl series:j stacked:b height:n width:n format:f legend:b label:s"},{t:"tf-heatmap",c:"Heatmap",p:"rows:jl cols:jl values:j colEvery:n caption:s format:f label:s"},{t:"tf-funnel",c:"Funnel",p:"steps:j tint:s format:f"},{t:"tf-gauge",c:"Gauge",p:"value:n max:n caption:s format:f tint:s thresholds:j size:n stroke:n showRange:b label:s"},{t:"tf-rich-text",c:"RichText",p:"text:s streaming:b"},{t:"tf-code-block",c:"CodeBlock",p:"code:s lang:s open:b"},{t:"tf-typing-dots",c:"TypingDots",p:"label:s"},{t:"tf-agent-mark",c:"AgentMark",p:"tint:s icon:s size:n live:b"},{t:"tf-chat-message",c:"ChatMessage",p:"role:s name:s time:s model:s text:s streaming:b tint:s sources:j attachments:j usage:s actions:b before:r after:r feedback:s?",e:"onRetry:0? onFeedback:1"},{t:"tf-tool-call",c:"ToolCall",p:"name:s icon:s status:s summary:r duration:s input:j output:j defaultOpen:b"},{t:"tf-reasoning",c:"Reasoning",p:"steps:jl text:r duration:s streaming:b defaultOpen:b"},{t:"tf-prompt-starters",c:"PromptStarters",p:"items:j",e:"onPick:1"},{t:"tf-model-picker",c:"ModelPicker",p:"models:j value:s side:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-composer",c:"Composer",p:"value:s busy:b placeholder:s label:s models:j model:s commands:j attachments:j hint:s left:r disabled:b",e:"onChange:1 onSend:2 onStop:0 onModel:1 onCommand:1? onAttach:1? onRemoveAttachment:1?",s:"onChange:value:detail"},{t:"tf-agent-status",c:"AgentStatus",p:"status:s step:s"},{t:"tf-run-trace",c:"RunTrace",p:"steps:j defaultOpen:n? footer:r"},{t:"tf-usage-meter",c:"UsageMeter",p:"used:n limit:n label:s caption:s format:f"},{t:"tf-product-art",c:"ProductArt",p:"kind:s tint:s size:n label:s"},{t:"tf-price",c:"Price",p:"value:n compareAt:n currency:s size:s showSave:b"},{t:"tf-rating",c:"Rating",p:"value:n count:n size:n"},{t:"tf-stock-badge",c:"StockBadge",p:"stock:n low:n compact:b"},{t:"tf-product-card",c:"ProductCard",p:"name:s meta:s art:s tint:s price:n compareAt:n rating:n reviews:n badge:s badgeTone:s stock:n wished:b added:b",e:"onWish:0? onAdd:0? onClick:0"},{t:"tf-variant-picker",c:"VariantPicker",p:"label:s type:s options:jl value:s defaultValue:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-cart-line",c:"CartLine",p:"name:s variant:s note:s art:s tint:s price:n qty:n",e:"onQty:1? onRemove:0"},{t:"tf-order-summary",c:"OrderSummary",p:"lines:j showLines:b discount:j shipping:n? freeShippingFrom:n vat:n title:s! action:r",e:"onCoupon:1?"},{t:"tf-checkout-steps",c:"CheckoutSteps",p:"steps:jl current:n",e:"onPick:1?"},{t:"tf-order-timeline",c:"OrderTimeline",p:"status:s times:j"},{t:"tf-plan-card",c:"PlanCard",p:"name:s text:s price:n? was:n per:s features:jl featured:b flag:s current:b cta:s disabled:b",e:"onPick:0"},{t:"tf-count-up",c:"CountUp",p:"value:x duration:n delay:n"},{t:"tf-stat-tile",c:"StatTile",p:"value:r label:s tint:s delta:s delay:n"},{t:"tf-card",c:"Card",p:"title:s description:s meta:jl corner:r status:r actions:R tint:s eyebrow:r surface:s",e:"onClick:0?"},{t:"tf-event-card",c:"EventCard",p:"kind:s label:s date:s time:s tint:s icon:s actions:b"},{t:"tf-panel",c:"Panel",p:"side:b title:s subtitle:s action:r surface:s"},{t:"tf-page-header",c:"PageHeader",p:"crumbs:jl title:s subtitle:s actions:R"},{t:"tf-stagger",c:"Stagger",p:"as:s delay:n reveal:b"},{t:"tf-table",c:"Table",p:"columns:j rows:j animate:b"},{t:"tf-list-row",c:"ListRow",p:"avatar:s icon:s tint:s leading:r title:r subtitle:r meta:r trailing:r unread:b active:b",e:"onClick:0"},{t:"tf-timeline",c:"Timeline",p:"items:j delay:n"},{t:"tf-file-row",c:"FileRow",p:"name:s meta:s kind:s"},{t:"tf-kanban-column",c:"KanbanColumn",p:"title:s dot:s delay:n",e:"onAdd:0"},{t:"tf-progress",c:"Progress",p:"value:n tint:s label:s"},{t:"tf-progress-ring",c:"ProgressRing",p:"value:n tint:s size:n stroke:n caption:s label:s"},{t:"tf-filter-bar",c:"FilterBar",p:"filters:j value:j search:s query:s right:r",e:"onChange:1 onQuery:1",s:"onChange:value:detail"},{t:"tf-data-table",c:"DataTable",p:"columns:j rows:j rowKey:s selectable:b bulkActions:j renderExpanded:f stickyHeader:b maxHeight:x defaultSort:j toolbar:r columnToggle:b empty:r"},{t:"tf-log-view",c:"LogView",p:"lines:jl title:r right:r numbers:b follow:b maxHeight:n"},{t:"tf-code-viewer",c:"CodeViewer",p:"value:j lang:s"},{t:"tf-secret-field",c:"SecretField",p:"prefix:s last4:s value:s meta:r",e:"onReveal:0? onCopy:0? onRotate:0?"},{t:"tf-money-input",c:"MoneyInput",p:"label:s value:n? currency:s vat:s vatOptions:j showGross:b hint:r error:r defaultValue:n? required:b",e:"onChange:1 onVat:1",s:"onChange:value:detail"},{t:"tf-settings-layout",c:"SettingsLayout",p:"sections:j footer:r"},{t:"tf-shortcuts-overlay",c:"ShortcutsOverlay",p:"open:b title:s groups:j",e:"onClose:0",s:"onClose:open:false",x:"onClose"},{t:"tf-stat-cell",c:"StatCell",p:"label:r value:r delta:n deltaText:s compare:s invert:b spark:j icon:s iconTint:s tint:s"},{t:"tf-uptime-bar",c:"UptimeBar",p:"days:jl uptime:n caption:r"},{t:"tf-meter",c:"Meter",p:"label:r value:n? max:n text:r warn:n danger:n tone:s"},{t:"tf-skeleton",c:"Skeleton",p:"variant:s width:x height:x"},{t:"tf-menu",c:"Menu",p:"items:jl label:s autoFocus:b",e:"onClose:0?"},{t:"tf-modal",c:"Modal",p:"title:s text:s icon:s tint:s actions:R open:b",e:"onClose:0",s:"onClose:open:false",x:"onClose",dialog:1},{t:"tf-toast",c:"Toast",p:"icon:s tint:s action:s",e:"onAction:0"},{t:"tf-empty-state",c:"EmptyState",p:"title:s text:s icon:s tint:s action:r"},{t:"tf-alert",c:"Alert",p:"tone:s title:r icon:s action:r",e:"onDismiss:0?",x:"onDismiss"},{t:"tf-confirm-dialog",c:"ConfirmDialog",p:"open:b title:s text:s danger:b icon:s confirmLabel:s cancelLabel:s confirmText:s",e:"onConfirm:0 onCancel:0",s:"onCancel:open:false onConfirm:open:false"},{t:"tf-toaster",c:"Toaster",p:"position:s"},{t:"tf-form-field",c:"FormField",p:"name:s label:r required:b optional:b hint:r error:r success:r"},{t:"tf-text-field",c:"TextField",p:"type:s icon:s suffix:r value:s defaultValue:s placeholder:s disabled:b readOnly:b autoComplete:s autoFocus:b min:x max:x step:x minLength:n maxLength:n pattern:s inputMode:s name:s label:r required:b optional:b hint:r error:r success:r",e:"onChange:1 onBlur:1",s:"onChange:value:detail"},{t:"tf-radio-group",c:"RadioGroup",p:"label:s options:jl value:s defaultValue:s cards:b hint:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-segmented",c:"Segmented",p:"options:jl value:s defaultValue:s size:s block:b label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-combobox",c:"Combobox",p:"label:s options:jl value:j defaultValue:j multiple:b creatable:b placeholder:s hint:s error:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-tag-input",c:"TagInput",p:"label:s value:jl defaultValue:jl placeholder:s hint:s error:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-calendar",c:"Calendar",p:"range:b value:jt today:d min:d max:d month:d",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-date-picker",c:"DatePicker",p:"label:s range:b value:jt defaultValue:jt presets:b min:d max:d today:d placeholder:s hint:s error:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-number-input",c:"NumberInput",p:"label:s value:n defaultValue:n min:n max:n step:n unit:s hint:s error:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-slider",c:"Slider",p:"label:s min:n max:n step:n value:n defaultValue:n format:f marks:b hint:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-otp-input",c:"OtpInput",p:"length:n error:b label:s",e:"onComplete:1"},{t:"tf-file-drop",c:"FileDrop",p:"files:j simulateProgress:b title:s hint:s accept:s multiple:b",e:"onChange:1 onFiles:1? onReject:1 onRemove:1"},{t:"tf-button",c:"Button",p:"variant:s size:s icon:s iconRight:s disabled:b type:s asChild:b name:s value:s form:s title:s tabIndex:n autoFocus:b aria-label:s aria-labelledby:s aria-describedby:s aria-expanded:j aria-controls:s aria-haspopup:j aria-pressed:j aria-current:j",e:"onClick:1"},{t:"tf-icon-button",c:"IconButton",p:"icon:s label:s variant:s size:s type:s disabled:b asChild:b name:s value:s form:s title:s tabIndex:n autoFocus:b aria-label:s aria-labelledby:s aria-describedby:s aria-expanded:j aria-controls:s aria-haspopup:j aria-pressed:j aria-current:j",e:"onClick:1"},{t:"tf-chip",c:"Chip",p:"selected:b icon:s count:n",e:"onClick:1"},{t:"tf-badge",c:"Badge",p:"tone:s dot:b live:b"},{t:"tf-tint-icon",c:"TintIcon",p:"icon:s tint:s label:s size:n"},{t:"tf-avatar",c:"Avatar",p:"name:s src:s size:n tint:s"},{t:"tf-avatar-stack",c:"AvatarStack",p:"names:jl max:n size:n"},{t:"tf-input",c:"Input",p:"type:s placeholder:s value:s defaultValue:s disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-select",c:"Select",p:"options:jl value:s defaultValue:s label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-textarea",c:"Textarea",p:"placeholder:s value:s defaultValue:s rows:n disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-search-field",c:"SearchField",p:"placeholder:s label:s shortcut:s value:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-checkbox",c:"Checkbox",p:"name:s value:s required:b checked:b defaultChecked:b disabled:b label:s",e:"onChange:1",s:"onChange:checked:detail"},{t:"tf-switch",c:"Switch",p:"name:s checked:b defaultChecked:b spread:b disabled:b label:s",e:"onChange:1",s:"onChange:checked:detail"},{t:"tf-form",c:"Form",p:"rules:j errors:j",e:"onSubmit:1 onInvalid:1"},{t:"tf-select-menu",c:"SelectMenu",p:"options:jl value:s defaultValue:s placeholder:s disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-account-switcher",c:"AccountSwitcher",p:"accounts:j value:s? unread:n allLabel:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-inbox-list",c:"InboxList",p:"items:j selected:x",e:"onOpen:1"},{t:"tf-mail-thread",c:"MailThread",p:"subject:s messages:j reply:r"},{t:"tf-signature-editor",c:"SignatureEditor",p:"value:j fields:j note:r extra:r defaultValue:j previewLabel:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-attachment-preview",c:"AttachmentPreview",p:"name:s meta:r facts:j found:r actions:r width:x inline:b",e:"onClose:0",x:"onClose"},{t:"tf-image-variants",c:"ImageVariants",p:"variants:j selected:x alt:s tint:s actions:r",e:"onSelect:1"},{t:"tf-gallery",c:"Gallery",p:"items:j loading:s referrerPolicy:s start:n ratio:s thumbs:b fullscreen:b badge:r"},{t:"tf-before-after",c:"BeforeAfter",p:"before:j after:j start:n ratio:s beforeLabel:s afterLabel:s label:s valueText:f loading:s referrerPolicy:s"},{t:"tf-tabs",c:"Tabs",p:"items:jl value:s defaultValue:s block:b panels:K label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-breadcrumb",c:"Breadcrumb",p:"items:jl"},{t:"tf-pagination",c:"Pagination",p:"total:n page:n defaultPage:n",e:"onChange:1?",s:"onChange:page:detail"},{t:"tf-menubar",c:"Menubar",p:"menus:j label:s"},{t:"tf-navigation-menu",c:"NavigationMenu",p:"items:j label:s"},{t:"tf-sidebar",c:"Sidebar",p:"groups:j current:s collapsed:b defaultCollapsed:b header:r footer:r label:s",e:"onPick:1 onCollapsedChange:1",s:"onCollapsedChange:collapsed:detail"},{t:"tf-connection-card",c:"ConnectionCard",p:"name:s icon:s logo:r text:r status:s statusLabel:s action:r"},{t:"tf-connection-banner",c:"ConnectionBanner",p:"state:s seconds:n text:r",e:"onRetry:0?"},{t:"tf-server-card",c:"ServerCard",p:"name:s provider:s address:s logo:r status:s statusLabel:s meters:j uptime:j foot:r"},{t:"tf-deploy-pipeline",c:"DeployPipeline",p:"stages:j"},{t:"tf-dns-record-table",c:"DnsRecordTable",p:"records:j rowMenu:f selectable:b bulkActions:j toolbar:r"},{t:"tf-domain-list",c:"DomainList",p:"items:j",e:"onOpen:1"},{t:"tf-mail-auth-status",c:"MailAuthStatus",p:"rows:j columns:jl",e:"onOpen:2"},{t:"tf-ledger-table",c:"LedgerTable",p:"rows:j categories:jl currency:s selectable:b bulkActions:j toolbar:r maxHeight:n columnToggle:b",e:"onEdit:2"},{t:"tf-pnl-statement",c:"PnLStatement",p:"columns:jl rows:j currency:s total:b label:s"},{t:"tf-receipt-suggestion",c:"ReceiptSuggestion",p:"file:s source:r fields:j suggestion:r confirmLabel:s discardLabel:s",e:"onConfirm:0? onDiscard:0?"},{t:"tf-popover",c:"Popover",p:"trigger:r open:b align:s side:s width:n flush:b block:b role:s",e:"onOpenChange:1",s:"onOpenChange:open:detail",close:1},{t:"tf-tooltip",c:"Tooltip",p:"label:r shortcut:s side:s defaultOpen:b"},{t:"tf-email-preview",c:"EmailPreview",p:"from:s fromName:s subject:s preheader:s html:s device:s checks:j",e:"onDevice:1"},{t:"tf-search-ad-preview",c:"SearchAdPreview",p:"name:s domain:s paths:jl headlines:jl descriptions:jl sitelinks:jl device:s sponsoredLabel:s",e:"onDevice:1"},{t:"tf-accordion",c:"Accordion",p:"items:j multiple:b value:jl defaultValue:jl variant:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-separator",c:"Separator",p:"orientation:s label:s"},{t:"tf-aspect-ratio",c:"AspectRatio",p:"ratio:n"},{t:"tf-label",c:"Label",p:"htmlFor:s required:b hint:r"},{t:"tf-toggle",c:"Toggle",p:"pressed:b defaultPressed:b icon:s label:s size:s disabled:b",e:"onChange:1",s:"onChange:pressed:detail"},{t:"tf-toggle-group",c:"ToggleGroup",p:"items:jl type:s value:jl defaultValue:jl label:s size:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-button-group",c:"ButtonGroup",p:"label:s orientation:s"},{t:"tf-scroll-area",c:"ScrollArea",p:"height:x maxHeight:x orientation:s label:s"},{t:"tf-hover-card",c:"HoverCard",p:"trigger:r side:s align:s openDelay:n closeDelay:n width:n"},{t:"tf-carousel",c:"Carousel",p:"slides:R label:s perView:n loop:b dots:b index:n defaultIndex:n",e:"onChange:1",s:"onChange:index:detail"},{t:"tf-listing-card",c:"ListingCard",p:"listing:j layout:s selected:b statusOptions:j",e:"onSelect:1? onWish:1? onStatus:2 onOpen:1?"},{t:"tf-results-toolbar",c:"ResultsToolbar",p:"title:s total:n meta:s selected:n bulkActions:j sortOptions:j sort:s views:jl view:s",e:"onSelectAll:1? onSort:1 onView:1"},{t:"tf-saved-search",c:"SavedSearch",p:"name:s criteria:R lastRun:s frequency:s newCount:n enabled:b openLabel:s icon:s tint:s",e:"onToggle:0? onEdit:0? onOpen:0?"},{t:"tf-valuation-card",c:"ValuationCard",p:"value:n low:n high:n asking:n perSqm:n compare:s currency:s confidence:n confidenceLabel:s facts:j note:r title:s action:r"},{t:"tf-energy-class",c:"EnergyClass",p:"value:s kwh:n kind:s scale:jl"},{t:"tf-rich-text-editor",c:"RichTextEditor",p:"label:r defaultValue:s value:s placeholder:s variables:j maxLength:n minHeight:n footer:r hint:r error:r disabled:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-top-bar",c:"TopBar",p:"brand:s tag:s items:j active:s user:j extra:r userOpen:b",e:"onNavigate:1 onUser:0"},{t:"tf-side-rail",c:"SideRail",p:"top:j bottom:j"},{t:"tf-dock",c:"Dock",p:"items:j label:s surface:s"},{t:"tf-floating-layout",c:"FloatingLayout",p:"background:r top:r start:r end:r bottom:r height:x surface:s label:s"},{t:"tf-ambient",c:"Ambient",p:"colors:jl src:s video:b animate:b fixed:b"},{t:"tf-app-shell",c:"AppShell",p:"active:s brand:s tag:s nav:j user:j topExtra:r sheetStyle:j contentKey:x side:r dock:b dockItems:j railTop:j railBottom:j",e:"onNavigate:1"},{t:"tf-chat-launcher",c:"ChatLauncher",p:"title:s context:r tint:s open:b unread:n headerAction:r composer:r inline:b",e:"onOpenChange:1",s:"onOpenChange:open:detail"},{t:"tf-cookie-consent",c:"CookieConsent",p:"title:s text:r policy:r categories:j open:b inline:b",e:"onSave:1"},{t:"tf-announcement-bar",c:"AnnouncementBar",p:"tint:s icon:s! action:r",e:"onDismiss:0?",x:"onDismiss"},{t:"tf-status-shape",c:"StatusShape",p:"status:s"},{t:"tf-status-indicator",c:"StatusIndicator",p:"status:s label:r size:s"},{t:"tf-status-screen",c:"StatusScreen",p:"code:s title:s text:s icon:s tint:s extra:r actions:R reference:s",e:"onHome:0 onContact:0"},{t:"tf-auth-card",c:"AuthCard",p:"title:s text:s icon:s tint:s brand:s foot:r"},{t:"tf-sub-nav",c:"SubNav",p:"eyebrow:s action:j items:j current:s",e:"onPick:1"},{t:"tf-drawer",c:"Drawer",p:"title:s subtitle:r avatar:s width:x inline:b open:b side:s",e:"onClose:0",s:"onClose:open:false",x:"onClose"},{t:"tf-command-palette",c:"CommandPalette",p:"items:j placeholder:s inline:b loading:b empty:r open:b",e:"onClose:0 onQueryChange:1",s:"onClose:open:false",x:"onClose"},{t:"tf-notification-list",c:"NotificationList",p:"items:j",e:"onOpen:1 onReadAll:0"},{t:"tf-flow",c:"Flow",p:"steps:j active:n? waiting:b tools:f",e:"onApprove:0? onReject:0?"},{t:"tf-file-thumb",c:"FileThumb",p:"kind:s title:s big:b entries:jl"},{t:"tf-file-card",c:"FileCard",p:"name:s kind:s size:s meta:s shared:b",e:"onClick:0"},{t:"tf-wizard",c:"Wizard",p:"steps:j current:n done:j footer:r brand:s label:s",e:"onPick:1"},{t:"tf-permission-matrix",c:"PermissionMatrix",p:"roles:j areas:jl",e:"onChange:3"},{t:"tf-invoice-preview",c:"InvoicePreview",p:"number:x from:s to:s issued:s due:s lines:j note:s kind:s brand:s format:f"},{t:"tf-transaction-row",c:"TransactionRow",p:"text:s date:s amount:n matched:b matchRef:s hint:s",e:"onMatch:0"}];var W5="0.3.1",eT=Object.freeze(Object.fromEntries(yu.map(e=>[e.t,e.c]))),AS=yu.map(e=>e.t),zS=!1;function tT(){if(zS)return;zS=!0;let e=AS.join(","),t=`:where(${e},tf-root){display:contents}:where(${e})[hidden]{display:none}`;try{let n=new CSSStyleSheet;n.replaceSync(t),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n]}catch{let n=document.createElement("style");n.dataset.tfElements="",n.textContent=t,document.head.prepend(n)}}function _S(){if(typeof window>"u"||typeof customElements>"u")return;Oa.selector=AS.join(","),tT();let e=nf;for(let t of yu){if(customElements.get(t.t))continue;let n=e[t.c];typeof n=="function"&&customElements.define(t.t,wS(TS(t),n))}}_S();return VS(nT);})();
|
|
31
31
|
/*! Bundled license information:
|
|
32
32
|
|
|
33
33
|
react/cjs/react.production.js:
|
package/dist/elements.js
CHANGED
|
@@ -27,7 +27,7 @@ ${Ua(i('[data-theme="system"]'),f," ")}}
|
|
|
27
27
|
`),a=String(e.after||"").split(`
|
|
28
28
|
`),l=[],i=0,s=0;for(;i<n.length||s<a.length;)n[i]===a[s]?(l.push([" ",n[i]]),i++,s++):s<a.length&&n.indexOf(a[s],i)<0?(l.push(["+",a[s]]),s++):i<n.length?(l.push(["-",n[i]]),i++):(l.push(["+",a[s]]),s++);return(0,T.jsxs)("div",{className:"tf-diff",children:[(0,T.jsxs)("div",{className:"tf-diff-head",children:[(0,T.jsxs)("div",{className:"tf-option-text",children:[(0,T.jsx)("b",{children:e.title}),(0,T.jsx)("small",{children:[e.versions,e.by].filter(Boolean).join(" \xB7 ")})]}),(0,T.jsxs)("span",{className:"tf-row",style:{flexWrap:"nowrap"},children:[e.onDiscard&&(0,T.jsx)(K,{size:"sm",variant:"ghost",onClick:e.onDiscard,children:e.discardLabel||t.discardOverride}),e.onPromote&&(0,T.jsx)(K,{size:"sm",variant:"soft",icon:"branch",onClick:e.onPromote,children:e.promoteLabel||t.moveToCode})]})]}),(0,T.jsx)("pre",{className:"tf-diff-body",children:l.map((c,r)=>(0,T.jsxs)("span",{className:c[0]==="+"?"add":c[0]==="-"?"del":"",children:[(0,T.jsx)("i",{children:c[0]}),c[1],`
|
|
29
29
|
`]},r))})]})}var wx={schedule:"clock",event:"zap",webhook:"link",mail:"mail"};function $g(e){let t=M(Ot);return(0,T.jsx)("div",{className:"tf-triggers",children:(e.items||[]).map(n=>(0,T.jsxs)("div",{className:p("tf-trigger",n.enabled===!1&&"off"),children:[(0,T.jsx)(ce,{icon:wx[n.type]||"zap",tint:n.enabled===!1?"plain":"sky"}),(0,T.jsxs)("span",{className:"tf-option-text",children:[(0,T.jsx)("b",{children:n.rule}),(0,T.jsx)("small",{children:[n.agent,n.by].filter(Boolean).join(" \xB7 ")})]}),(0,T.jsx)("span",{className:"tf-trigger-next",children:n.next}),e.onToggle&&(0,T.jsx)("input",{type:"checkbox",role:"switch",className:"tf-switch",checked:n.enabled!==!1,"aria-label":typeof n.rule=="string"?n.rule:void 0,onChange:()=>{e.onToggle?.(n)}}),e.onRun&&(0,T.jsx)(et,{label:t.runNow,children:(0,T.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-soft tf-iconbtn-sm","aria-label":t.runNow,onClick:()=>{e.onRun?.(n)},children:(0,T.jsx)(x,{name:"play"})})})]},n.id))})}function Pg(e){let{locale:t}=J(),n=e.from!=null?e.from:6,a=e.to!=null?e.to:22,l=[];for(let c=n;c<a;c++)l.push(c);let i=e.days||Hu(t),s=32;return(0,T.jsxs)("div",{className:"tf-sched",style:{"--rows":l.length,"--row-h":s+"px"},children:[(0,T.jsx)("span",{}),i.map((c,r)=>(0,T.jsx)("span",{className:"tf-sched-day",children:c},r)),(0,T.jsx)("div",{className:"tf-sched-times",children:l.map(c=>(0,T.jsx)("span",{children:(c<10?"0":"")+c+":00"},c))}),i.map((c,r)=>(0,T.jsx)("div",{className:"tf-sched-col",children:(e.events||[]).filter(u=>u.day===r).map((u,o)=>{let f=(u.start-n)*s,d=Math.max(s/2,(u.end-u.start)*s-4);return(0,T.jsxs)("button",{type:"button",className:p("tf-sched-ev","tf-bg-"+(u.tint||"sky"),u.self&&"self"),style:{top:f,height:d},title:u.label,onClick:()=>{e.onOpen&&e.onOpen(u)},children:[(0,T.jsx)("b",{children:u.label}),d>30&&u.sub&&(0,T.jsx)("small",{children:u.sub})]},o)})},r))]})}function Wg(e){function t(n){return(0,T.jsxs)("li",{children:[(0,T.jsxs)("div",{className:p("tf-org-node",n.root&&"root"),children:[n.avatar?(0,T.jsx)(Ve,{name:n.name,size:32}):(0,T.jsx)(Xt,{tint:n.tint,size:32,live:n.status==="running"}),(0,T.jsxs)("span",{className:"tf-option-text",children:[(0,T.jsx)("b",{children:n.name}),(0,T.jsx)("small",{children:n.role})]}),n.status&&(0,T.jsx)(ze,{status:n.status})]}),n.children&&n.children.length>0&&(0,T.jsx)("ul",{children:n.children.map(t)})]},n.id||n.name)}return(0,T.jsx)("div",{className:"tf-org",children:(0,T.jsx)("ul",{children:t(Object.assign({root:!0},e.root))})})}function ev(e){let t=M(Ot),n=e.state||"listening",a=[];for(let l=0;l<24;l++)a.push(l);return(0,T.jsxs)("div",{className:p("tf-voice","is-"+n),children:[(0,T.jsx)(Xt,{tint:e.tint||"lilac",size:72,live:n!=="idle"}),(0,T.jsx)("b",{className:"tf-voice-name",children:e.name}),(0,T.jsx)("span",{className:"tf-voice-state",children:e.stateLabel||(n==="listening"?t.listening:n==="thinking"?t.thinking:n==="speaking"?t.speaking:t.paused)}),(0,T.jsx)("div",{className:"tf-voice-wave","aria-hidden":!0,children:a.map(l=>(0,T.jsx)("i",{style:{animationDelay:l*47%600+"ms",height:n==="idle"?4:void 0}},l))}),e.transcript&&(0,T.jsx)("p",{className:"tf-voice-transcript",children:e.transcript}),(0,T.jsxs)("div",{className:"tf-row",style:{justifyContent:"center"},children:[e.onMute&&(0,T.jsx)(W,{icon:e.muted?"x":"user",label:e.muted?t.unmute:t.mute,variant:"soft",size:"lg",onClick:e.onMute}),e.onEnd&&(0,T.jsx)("button",{type:"button",className:"tf-voice-end",onClick:e.onEnd,"aria-label":t.endConversation,children:(0,T.jsx)(x,{name:"x",size:20})})]})]})}var ie=G(ye(),1),cM=G(re(),1);function tv(e){let t=M(vi);return(0,ie.jsx)("nav",{className:"tf-tabbar","aria-label":e.label||t.mainNavigation,children:(e.items||[]).map(n=>{let a=n.id===e.active;return(0,ie.jsxs)("button",{type:"button",className:p("tf-tabbar-item",a&&"on"),"aria-current":a?"page":void 0,onClick:()=>{e.onPick&&e.onPick(n.id)},children:[(0,ie.jsxs)("span",{className:"tf-tabbar-ico",children:[(0,ie.jsx)(x,{name:n.icon,size:20}),n.count?(0,ie.jsx)("span",{className:"tf-dotcount",children:n.count}):null]}),(0,ie.jsx)("span",{children:n.label})]},n.id)})})}function nv(e){return(0,ie.jsxs)("div",{className:"tf-push",children:[(0,ie.jsxs)("div",{className:"tf-push-top",children:[(0,ie.jsx)("span",{className:"tf-push-app",children:e.app}),(0,ie.jsx)("small",{children:e.time})]}),(0,ie.jsx)("b",{children:e.title}),(0,ie.jsx)("p",{children:e.text}),e.actions&&(0,ie.jsx)("div",{className:"tf-push-actions",children:e.actions.map(t=>(0,ie.jsx)("button",{type:"button",onClick:t.onClick,children:t.label},t.label))})]})}function av(e){let t={project:"grid",team:"users",agent:"bot",tool:"zap",trigger:"clock",file:"file"};return(0,ie.jsxs)("div",{className:"tf-prsum",children:[(0,ie.jsxs)("div",{className:"tf-prsum-head",children:[(0,ie.jsx)(ce,{icon:"branch",tint:"lilac"}),(0,ie.jsxs)("span",{className:"tf-option-text",children:[(0,ie.jsx)("b",{children:e.title}),(0,ie.jsx)("small",{children:e.meta})]}),e.status&&(0,ie.jsx)(Be,{status:e.status,label:e.statusLabel})]}),e.summary&&(0,ie.jsx)("p",{className:"tf-card-desc",style:{margin:0,fontSize:14,lineHeight:"22px"},children:e.summary}),(0,ie.jsx)("ul",{className:"tf-prsum-list",children:(e.items||[]).map((n,a)=>(0,ie.jsxs)("li",{className:"op-"+(n.op||"add"),children:[(0,ie.jsx)("span",{className:"tf-prsum-op",children:n.op==="remove"?"\u2212":n.op==="change"?"~":"+"}),(0,ie.jsx)(x,{name:t[n.kind]||"file",size:14}),(0,ie.jsxs)("span",{className:"tf-option-text",children:[(0,ie.jsx)("b",{children:n.name}),n.detail&&(0,ie.jsx)("small",{children:n.detail})]})]},a))}),e.actions&&(0,ie.jsx)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:e.actions})]})}function lv(e){let t=M(vi);return(0,ie.jsx)("div",{className:"tf-modules",children:(e.items||[]).map(n=>(0,ie.jsxs)("div",{className:"tf-module",children:[(0,ie.jsx)(ce,{icon:n.icon||"grid",tint:n.core?"plain":n.enabled?"mint":"plain"}),(0,ie.jsxs)("span",{className:"tf-option-text",children:[(0,ie.jsxs)("b",{children:[n.name," ",(0,ie.jsx)("span",{className:"tf-mono tf-module-v",children:n.version})]}),(0,ie.jsx)("small",{children:n.text})]}),n.adds&&(0,ie.jsx)("span",{className:"tf-module-adds",children:n.adds.map(a=>(0,ie.jsx)(Oe,{tone:"neutral",dot:!1,children:a},a))}),n.core?(0,ie.jsx)(et,{label:e.coreLabel||t.coreModule,children:(0,ie.jsx)("span",{className:"tf-module-lock",tabIndex:0,children:(0,ie.jsx)(x,{name:"lock",size:14})})}):(0,ie.jsx)("input",{type:"checkbox",role:"switch",className:"tf-switch",checked:!!n.enabled,"aria-label":n.name,onChange:()=>{e.onToggle&&e.onToggle(n)}})]},n.id))})}var ne=G(ye(),1),Ys=G(re(),1);var iv={money:"card",infra:"server",comms:"mail",marketing:"trend",apps:"code",legal:"book"};function sv(e){let t=M(bi),n=e.options||[{key:"A",label:e.approveLabel||t.approveAsShown},{key:"B",label:t.approveWithChange,input:t.whatShouldChange},{key:"C",label:t.discard},{key:"D",label:t.differentInstruction,input:t.whatInstead}],a=Ys.useState(null),l=Ys.useState(""),i=Ys.useRef(null),s=e.decision||(e.state==="approved"?{key:"A"}:e.state==="denied"?{key:"C"}:null);function c(o){if(o.input&&a[0]!==o.key){a[1](o.key),l[1]("");return}o.input&&!l[0].trim()||(e.onDecide&&e.onDecide(o.key,o.input?l[0].trim():void 0),o.key==="A"&&e.onApprove&&e.onApprove(),o.key==="C"&&e.onDeny&&e.onDeny(),o.key==="B"&&e.onEdit&&e.onEdit(l[0]),a[1](null))}function r(o){let f=o.target.tagName;if(s||f==="TEXTAREA"||f==="INPUT")return;let d=n.find(m=>m.key===o.key.toUpperCase());d&&(o.preventDefault(),c(d))}let u=e.family?iv[e.family]:void 0;if(s){let o=n.find(f=>f.key===s.key)||{key:s.key,label:""};return(0,ne.jsxs)("div",{className:p("tf-approval tf-approval-done",s.key==="A"||s.key==="B"?"yes":"no",e.className),children:[(0,ne.jsx)(ze,{status:s.key==="A"||s.key==="B"?"ok":"idle"}),(0,ne.jsx)("b",{children:o.key+" \xB7 "+o.label}),e.title&&(0,ne.jsx)("span",{className:"tf-approval-done-what",children:e.title}),(0,ne.jsx)("span",{className:"tf-approval-done-by",children:[s.by,s.at].filter(Boolean).join(" \xB7 ")}),s.text&&(0,ne.jsx)("span",{className:"tf-approval-done-note",children:"\u201C"+s.text+"\u201D"})]})}return(0,ne.jsxs)("div",{ref:i,className:p("tf-approval",e.compact&&"compact",e.className),tabIndex:0,onKeyDown:r,role:"group","aria-label":typeof e.title=="string"?e.title:void 0,children:[(0,ne.jsxs)("div",{className:"tf-approval-top",children:[(0,ne.jsx)(ze,{status:"signal"}),(0,ne.jsx)("b",{children:e.heading||t.approvalNeeded}),(e.agent||e.project)&&(0,ne.jsx)("span",{className:"tf-approval-who",children:[e.agent,e.project].filter(Boolean).join(" \xB7 ")}),u&&(0,ne.jsxs)(Oe,{tone:"neutral",dot:!1,className:"tf-family",children:[(0,ne.jsx)(x,{name:u,size:12}),e.familyLabel||e.family&&t.riskFamily[e.family]]}),e.age&&(0,ne.jsx)("span",{className:"tf-approval-age",children:e.age})]}),(0,ne.jsxs)("div",{className:"tf-approval-main",children:[e.title&&(0,ne.jsx)("p",{className:"tf-approval-title",children:e.title}),e.text&&(0,ne.jsx)("p",{className:"tf-approval-reason",children:e.text}),e.children&&(0,ne.jsx)("div",{className:"tf-approval-body",children:e.children})]}),(0,ne.jsx)("div",{className:"tf-approval-opts",role:"list",children:n.map((o,f)=>(0,ne.jsxs)("div",{role:"listitem",children:[(0,ne.jsxs)("button",{type:"button",className:p("tf-approval-opt",f===0&&"primary",a[0]===o.key&&"open"),onClick:()=>{c(o)},"aria-keyshortcuts":o.key,children:[(0,ne.jsx)("kbd",{children:o.key}),(0,ne.jsx)("span",{children:o.label}),o.input&&a[0]!==o.key&&(0,ne.jsx)(x,{name:"chevronRight",size:14})]}),o.input&&a[0]===o.key&&(0,ne.jsxs)("div",{className:"tf-approval-input tf-in",children:[(0,ne.jsx)("textarea",{className:"tf-input",rows:2,autoFocus:!0,placeholder:o.placeholder||(typeof o.input=="string"?o.input:void 0),value:l[0],onChange:d=>{l[1](d.target.value)},onKeyDown:d=>{d.key==="Enter"&&(d.metaKey||d.ctrlKey)&&c(o),d.key==="Escape"&&a[1](null)}}),(0,ne.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:[(0,ne.jsx)(K,{size:"sm",variant:"ghost",onClick:()=>{a[1](null)},children:t.cancel}),(0,ne.jsx)(K,{size:"sm",disabled:!l[0].trim(),onClick:()=>{c(o)},children:o.key+" \xB7 "+t.send})]})]})]},o.key))}),(e.escalation||e.trace||e.note)&&(0,ne.jsxs)("div",{className:"tf-approval-foot",children:[e.escalation&&(0,ne.jsxs)("span",{children:[(0,ne.jsx)(x,{name:"clock",size:13}),e.escalation]}),e.note&&(0,ne.jsx)("span",{children:e.note}),e.trace&&(0,ne.jsx)("span",{className:"tf-approval-trace",children:e.trace})]})]})}function cv(e){let t=M(bi),n=(e.items||[]).slice().sort((a,l)=>(l.ageMin||0)-(a.ageMin||0));return(0,ne.jsx)("div",{className:"tf-inbox",role:"listbox","aria-label":e.label||t.approvals,onKeyDown:a=>{let l=n.findIndex(i=>i.id===e.selected);if(a.key==="j"||a.key==="ArrowDown"){a.preventDefault();let i=n[Math.min(n.length-1,l+1)];i&&e.onSelect&&e.onSelect(i.id)}if(a.key==="k"||a.key==="ArrowUp"){a.preventDefault();let i=n[Math.max(0,l-1)];i&&e.onSelect&&e.onSelect(i.id)}},children:n.length===0?(0,ne.jsx)(Ti,{icon:"check",tint:"mint",title:e.emptyTitle||t.nothingWaiting,text:e.emptyText}):n.map(a=>{let l=a.family?iv[a.family]:void 0;return(0,ne.jsxs)("button",{type:"button",role:"option","aria-selected":a.id===e.selected,className:p("tf-inbox-row",a.id===e.selected&&"on"),onClick:()=>{e.onSelect&&e.onSelect(a.id)},children:[(0,ne.jsx)(ze,{status:"signal"}),(0,ne.jsxs)("span",{className:"tf-inbox-text",children:[(0,ne.jsx)("b",{children:a.title}),(0,ne.jsx)("small",{children:[a.agent,a.project].filter(Boolean).join(" \xB7 ")})]}),l&&(0,ne.jsxs)(Oe,{tone:"neutral",dot:!1,className:"tf-family",children:[(0,ne.jsx)(x,{name:l,size:12}),a.familyLabel||a.family&&t.riskFamily[a.family]]}),(0,ne.jsxs)("span",{className:p("tf-inbox-age",a.urgent&&"warn"),children:[a.urgent&&(0,ne.jsx)(ze,{status:"warn"}),a.age]})]},a.id)})})}var Z=G(ye(),1),Ka=G(re(),1);function rv(e){let t=M(kl),n=e.value||{},a=Object.keys(n).filter(s=>n[s]!=null&&n[s]!=="");function l(s,c){let r=Object.assign({},n);c==null?delete r[s]:r[s]=c,e.onChange?.(r)}let i=(e.filters||[]).filter(s=>a.indexOf(s.key)<0);return(0,Z.jsxs)("div",{className:"tf-filterbar",children:[e.search&&(0,Z.jsx)(Dn,{placeholder:e.search,value:e.query,onChange:s=>{e.onQuery?.(s.target.value)},style:{minWidth:0,flex:"1 1 220px",maxWidth:320}}),a.map(s=>{let c=(e.filters||[]).find(r=>r.key===s)||{key:s,label:s,options:[]};return(0,Z.jsx)(Ue,{width:220,flush:!0,trigger:r=>(0,Z.jsxs)("span",{className:"tf-filterchip",children:[(0,Z.jsxs)("button",{type:"button",onClick:r.toggle,children:[(0,Z.jsx)("span",{children:c.label+":"}),(0,Z.jsx)("b",{children:n[s]})]}),(0,Z.jsx)("button",{type:"button",className:"x","aria-label":t.removeFilter(c.label),onClick:()=>{l(s,null)},children:(0,Z.jsx)(x,{name:"x",size:12})})]}),children:r=>(0,Z.jsx)(At,{items:c.options.map(u=>({label:u,icon:u===n[s]?"check":void 0,onClick:()=>{l(s,u),r.close()}}))})},s)}),i.length>0&&(0,Z.jsx)(Ue,{width:240,flush:!0,trigger:s=>(0,Z.jsxs)("button",{type:"button",className:"tf-chip tf-chip-dashed",onClick:s.toggle,children:[(0,Z.jsx)(x,{name:"plus",size:14}),t.addFilter]}),children:s=>(0,Z.jsx)(zx,{avail:i,onPick:(c,r)=>{l(c,r),s.close()}})}),a.length>1&&(0,Z.jsx)("button",{type:"button",className:"tf-linkbtn",onClick:()=>{e.onChange?.({})},children:t.clearAll}),e.right&&(0,Z.jsx)("div",{className:"tf-filterbar-right",children:e.right})]})}function zx(e){let t=M(kl),n=Ka.useState(null),a=n[0];return a?(0,Z.jsx)(At,{items:[{label:t.back,icon:"chevronLeft",onClick:()=>{n[1](null)}},"-",...a.options.map(l=>({label:l,onClick:()=>{e.onPick?.(a.key,l)}}))]}):(0,Z.jsx)(At,{items:e.avail.map(l=>({label:l.label,icon:l.icon||"filter",onClick:()=>{n[1](l)}}))})}function Qs(e){let t=M(kl),n=e.columns||[],a=e.rowKey||"id",l=Ka.useState(e.defaultSort||null),i=Ka.useState([]),s=Ka.useState(n.filter(b=>b.hidden).map(b=>b.key)),c=Ka.useState({}),r=l[0],u=(e.rows||[]).slice();if(r){let b=n.find(q=>q.key===r.key),y=r.dir==="desc"?-1:1,z=b&&b.sortValue||(q=>q[r.key]);u.sort((q,U)=>{let O=z(q),P=z(U);return(O>P?1:O<P?-1:0)*y})}let o=n.filter(b=>s[0].indexOf(b.key)<0),f=u.map(b=>b[a]),d=i[0].filter(b=>f.indexOf(b)>=0),m=f.length>0&&d.length===f.length,N=d.length>0&&!m;function S(b){i[1](d.indexOf(b)>=0?d.filter(y=>y!==b):d.concat([b]))}function k(b,y,z,q){return(0,Z.jsxs)("span",{className:"tf-checkbox",children:[(0,Z.jsx)("input",{type:"checkbox",checked:b,onChange:y,"aria-label":z,ref:U=>{U&&(U.indeterminate=!!q)}}),(0,Z.jsx)("span",{className:p("tf-checkbox-box",q&&"ind"),"aria-hidden":!0,children:(0,Z.jsx)("svg",{viewBox:"0 0 24 24",width:14,height:14,fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",children:(0,Z.jsx)("path",{d:q?"M6 12h12":"M5 12.5l4.5 4.5L19 7.5"})})})]})}let g=o.length+(e.selectable?1:0)+(e.renderExpanded?1:0),v=u.filter(b=>d.indexOf(b[a])>=0);return(0,Z.jsxs)("div",{className:p("tf-dt",e.className),children:[(e.toolbar||e.columnToggle!==!1)&&(0,Z.jsxs)("div",{className:"tf-dt-toolbar",children:[e.toolbar,e.columnToggle!==!1&&(0,Z.jsx)(Ue,{align:"end",width:220,flush:!0,trigger:b=>(0,Z.jsx)(et,{label:t.columns,children:(0,Z.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-soft","aria-label":t.chooseColumns,onClick:b.toggle,children:(0,Z.jsx)(x,{name:"grid"})})}),children:(0,Z.jsxs)("div",{className:"tf-menu tf-menu-static",children:[(0,Z.jsx)("div",{className:"tf-menu-label",children:t.columns}),n.filter(b=>b.hideable!==!1&&b.label).map(b=>{let y=s[0].indexOf(b.key)<0;return(0,Z.jsxs)("label",{className:"tf-menu-item",children:[k(y,()=>{s[1](y?s[0].concat([b.key]):s[0].filter(z=>z!==b.key))},typeof b.label=="string"?b.label:b.key),b.label]},b.key)})]})})]}),(0,Z.jsx)("div",{className:p("tf-dt-scroll",e.stickyHeader&&"sticky"),style:e.maxHeight?{maxHeight:e.maxHeight}:void 0,children:(0,Z.jsxs)("table",{className:"tf-table tf-dt-table",children:[(0,Z.jsx)("thead",{children:(0,Z.jsxs)("tr",{children:[e.selectable&&(0,Z.jsx)("th",{className:"tf-dt-sel",children:k(m,()=>{i[1](m?[]:f)},t.selectAllRows,N)}),e.renderExpanded&&(0,Z.jsx)("th",{className:"tf-dt-exp","aria-label":t.expand}),o.map(b=>{let y=l[0]&&l[0].key===b.key?l[0].dir:null;return(0,Z.jsx)("th",{className:p(b.align==="right"&&"tf-num"),style:b.width?{width:b.width}:void 0,"aria-sort":y?y==="asc"?"ascending":"descending":void 0,children:b.sortable?(0,Z.jsxs)("button",{type:"button",className:p("tf-dt-sort",y&&"on"),onClick:()=>{l[1](y==="asc"?{key:b.key,dir:"desc"}:y==="desc"?null:{key:b.key,dir:"asc"})},children:[b.label,(0,Z.jsx)(x,{name:"chevronDown",size:12,className:p("tf-dt-arrow",y==="asc"&&"up",!y&&"idle")})]}):b.label},b.key)})]})}),(0,Z.jsx)("tbody",{children:u.length===0?(0,Z.jsx)("tr",{children:(0,Z.jsx)("td",{colSpan:g,className:"tf-dt-empty",children:e.empty||t.nothingMatchesFilters})}):u.map(b=>{let y=b[a],z=d.indexOf(y)>=0,q=!!c[0][String(y)];return(0,Z.jsxs)(Ka.Fragment,{children:[(0,Z.jsxs)("tr",{className:p(z&&"selected",q&&"expanded"),children:[e.selectable&&(0,Z.jsx)("td",{className:"tf-dt-sel",children:k(z,()=>{S(y)},t.selectRow)}),e.renderExpanded&&(0,Z.jsx)("td",{className:"tf-dt-exp",children:(0,Z.jsx)("button",{type:"button",className:p("tf-dt-toggle",q&&"open"),"aria-expanded":q,"aria-label":q?t.collapseRow:t.expandRow,onClick:()=>{let U=Object.assign({},c[0]);U[String(y)]=!q,c[1](U)},children:(0,Z.jsx)(x,{name:"chevronRight",size:14})})}),o.map(U=>(0,Z.jsx)("td",{className:U.align==="right"?"tf-num":void 0,children:U.render?U.render(b):b[U.key]},U.key))]}),q&&(0,Z.jsx)("tr",{className:"tf-dt-detail",children:(0,Z.jsx)("td",{colSpan:g,children:(0,Z.jsx)("div",{className:"tf-dt-detail-in tf-in",children:e.renderExpanded?.(b)})})})]},y)})})]})}),e.selectable&&d.length>0&&(0,Z.jsxs)("div",{className:"tf-bulkbar",role:"toolbar","aria-label":t.bulkActions,children:[(0,Z.jsx)("b",{children:t.selectedCount(d.length)}),(0,Z.jsx)("button",{type:"button",className:"tf-linkbtn on-frame",onClick:()=>{i[1]([])},children:t.clear}),(0,Z.jsx)("div",{className:"tf-bulkbar-actions",children:(e.bulkActions||[]).map(b=>(0,Z.jsxs)("button",{type:"button",className:p("tf-bulk-btn",b.danger&&"danger"),onClick:()=>{b.onClick(v,()=>{i[1]([])})},children:[b.icon&&(0,Z.jsx)(x,{name:b.icon,size:14}),b.label]},b.label))})]})]})}var qe=G(ye(),1),an=G(re(),1);var Ax=e=>typeof e=="string"?{value:e,label:e}:e;function ov(e){let t=M(_s),n=Se("sel"),a=e.id||n,l=ha(e.name),i=e.error||l,s=(e.options||[]).map(Ax),c=$(e.value,e.defaultValue??"",e.onChange),[r,u]=an.useState(!1),[o,f]=an.useState(-1),d=an.useRef(null),m=an.useRef(null),N=an.useRef(null),S=an.useRef({s:"",t:0}),k=s.find(O=>O.value===c[0]),g=s.map((O,P)=>O.disabled?-1:P).filter(O=>O>=0),v=O=>{f(O??Math.max(0,s.indexOf(k))),u(!0)},b=(O=!0)=>{u(!1),O&&d.current?.focus()},y=O=>{let P=s[O];!P||P.disabled||(c[1](P.value),b(),requestAnimationFrame(()=>N.current?.dispatchEvent(new Event("change",{bubbles:!0}))))},z=O=>{let P=g.indexOf(o),I=g[Math.min(g.length-1,Math.max(0,P+O))];I!=null&&f(I)},q=O=>{let P=Date.now();S.current={s:(P-S.current.t<600?S.current.s:"")+O,t:P};let I=S.current.s.toLowerCase();return s.findIndex(Fe=>!Fe.disabled&&Fe.label.toLowerCase().startsWith(I))};an.useEffect(()=>{r&&m.current?.focus()},[r]),an.useEffect(()=>{!r||o<0||m.current?.querySelector(`#${CSS.escape(`${n}-o${o}`)}`)?.scrollIntoView({block:"nearest"})},[r,o,n]);let U=[];return s.forEach((O,P)=>{let I=U[U.length-1];I&&I[0]===O.group?I[1].push(P):U.push([O.group,[P]])}),(0,qe.jsxs)("div",{className:p("tf-field",e.className),style:e.style,children:[e.label&&(0,qe.jsxs)("label",{className:"tf-field-label",htmlFor:a,id:`${a}-label`,children:[e.label,e.required&&(0,qe.jsx)("span",{className:"tf-req","aria-hidden":!0,children:" *"})]}),(0,qe.jsx)(Ue,{block:!0,open:r,onOpenChange:O=>O?v():b(!1),role:"presentation",flush:!0,trigger:()=>(0,qe.jsxs)("button",{ref:d,id:a,type:"button",className:p("tf-input","tf-selectmenu",!k&&"empty"),role:"combobox","aria-haspopup":"listbox","aria-expanded":r,"aria-controls":`${n}-list`,"aria-invalid":i?"true":void 0,"aria-describedby":i||e.hint?`${a}-msg`:void 0,disabled:e.disabled,onClick:()=>r?b():v(),onKeyDown:O=>{if(["ArrowDown","ArrowUp","Enter"," "].includes(O.key))O.preventDefault(),v();else if(O.key.length===1&&/\S/.test(O.key)){let P=q(O.key);P>=0&&c[1](s[P]?.value)}},children:[k?.icon&&(0,qe.jsx)(x,{name:k.icon,size:15}),(0,qe.jsx)("span",{className:"tf-selectmenu-value",children:k?k.label:e.placeholder||t.selectPlaceholder}),(0,qe.jsx)(x,{name:"chevronDown",size:16,className:"tf-selectmenu-chev"})]}),children:(0,qe.jsx)("div",{ref:m,id:`${n}-list`,className:"tf-selectmenu-list",role:"listbox",tabIndex:-1,"aria-labelledby":e.label?`${a}-label`:void 0,"aria-label":e.label?void 0:e.placeholder||t.options,"aria-activedescendant":o>=0?`${n}-o${o}`:void 0,onKeyDown:O=>{let I={ArrowDown:()=>z(1),ArrowUp:()=>z(-1),Home:()=>f(g[0]??-1),End:()=>f(g[g.length-1]??-1),Enter:()=>y(o)," ":()=>y(o),Escape:()=>b()}[O.key];if(I)O.preventDefault(),I();else if(O.key==="Tab")b(!1);else if(O.key.length===1&&/\S/.test(O.key)){let Fe=q(O.key);Fe>=0&&f(Fe)}},children:U.map(([O,P],I)=>{let Fe=P.map(ua=>{let kn=s[ua],Kc=kn.value===c[0];return(0,qe.jsxs)("div",{id:`${n}-o${ua}`,role:"option","aria-selected":Kc,"aria-disabled":kn.disabled||void 0,className:p("tf-selectmenu-opt",ua===o&&"active"),onPointerMove:()=>!kn.disabled&&f(ua),onClick:()=>y(ua),children:[kn.icon&&(0,qe.jsx)(x,{name:kn.icon,size:15}),(0,qe.jsxs)("span",{className:"tf-option-text",children:[(0,qe.jsx)("b",{children:kn.label}),kn.hint&&(0,qe.jsx)("small",{children:kn.hint})]}),Kc&&(0,qe.jsx)(x,{name:"check",size:15,className:"tf-selectmenu-check"})]},kn.value)});return O?(0,qe.jsxs)("div",{role:"group","aria-labelledby":`${n}-g${I}`,children:[(0,qe.jsx)("div",{id:`${n}-g${I}`,className:"tf-menu-label",role:"presentation",children:O}),Fe]},O+I):(0,qe.jsx)(an.Fragment,{children:Fe},"g"+I)})})}),(0,qe.jsx)("input",{ref:N,type:"hidden",name:e.name,value:c[0]}),i?(0,qe.jsxs)("span",{id:`${a}-msg`,className:"tf-field-error",role:"alert",children:[(0,qe.jsx)(x,{name:"x",size:12}),i]}):e.hint&&(0,qe.jsx)("span",{id:`${a}-msg`,className:"tf-field-hint",children:e.hint})]})}var X=G(ye(),1),Ju=G(re(),1);var C=G(ye(),1),va=G(re(),1);function fv(e){let t=M(Gt);return(0,C.jsxs)("nav",{className:"tf-subnav","aria-label":t.sectionPages(e.eyebrow),children:[(0,C.jsxs)("div",{className:"tf-subnav-head",children:[e.eyebrow&&(0,C.jsx)("span",{className:"tf-subnav-eyebrow",children:e.eyebrow}),e.action&&(0,C.jsxs)("button",{type:"button",className:"tf-subnav-action",onClick:e.action.onClick,children:[(0,C.jsx)(x,{name:e.action.icon||"plus",size:15}),(0,C.jsx)("span",{children:e.action.label})]})]}),(0,C.jsx)("div",{className:"tf-subnav-list",children:(e.items||[]).map(n=>{let a=n.id||n.label;return(0,C.jsxs)("button",{type:"button",className:"tf-subnav-item","aria-current":e.current===a?"page":void 0,title:n.label,onClick:()=>{e.onPick&&e.onPick(a)},children:[(0,C.jsx)(x,{name:n.icon,size:17}),(0,C.jsx)("span",{className:"tf-subnav-label",children:n.label}),n.count?(0,C.jsx)("span",{className:"tf-subnav-count",children:n.count}):null]},a)})}),e.children]})}function wr(e){let t=M(Gt),n=va.useRef(null),a=Nt(e.open??!0);return Ol(n,e.onClose),a.mounted?(0,C.jsx)("div",{...ft(a.closing),className:p("tf-drawer-wrap",e.inline&&"inline"),onMouseDown:l=>{l.target===l.currentTarget&&e.onClose&&e.onClose?.()},children:(0,C.jsxs)("aside",{ref:n,className:p("tf-drawer",e.side&&e.side!=="right"&&"side-"+e.side),role:"dialog","aria-modal":"true","aria-label":e.title,style:e.width?{width:e.width}:void 0,children:[(0,C.jsxs)("div",{className:"tf-header",style:{alignItems:"center"},children:[(0,C.jsxs)("div",{className:"tf-row",style:{flexWrap:"nowrap",minWidth:0},children:[e.avatar&&(0,C.jsx)(Ve,{name:e.avatar,size:44}),(0,C.jsxs)("div",{style:{minWidth:0},children:[(0,C.jsx)("div",{className:"tf-panel-title",children:e.title}),e.subtitle&&(0,C.jsx)("div",{className:"tf-panel-sub",children:e.subtitle})]})]}),(0,C.jsx)(W,{icon:"x",label:t.close,onClick:e.onClose})]}),e.children]})}):null}function dv(e){let t=M(Gt),n=va.useState(""),a=va.useState(0),l=va.useRef(null),i=Nt(e.open??!0);Ol(l,e.onClose);let s=n[0].toLowerCase().trim(),c=e.items||[],r=(s?c.filter(m=>s.split(/\s+/).every(N=>(m.label+" "+(m.hint||"")+" "+(m.group||"")).toLowerCase().indexOf(N)>-1)):c.filter(m=>!m.searchOnly)).slice(0,40),u=Math.min(a[0],Math.max(0,r.length-1));function o(m){e.onClose&&e.onClose?.(),m&&m.run&&m.run()}function f(m){m.key==="ArrowDown"?(m.preventDefault(),a[1](Math.min(r.length-1,u+1))):m.key==="ArrowUp"?(m.preventDefault(),a[1](Math.max(0,u-1))):m.key==="Enter"&&(m.preventDefault(),o(r[u]))}let d=[];return r.forEach((m,N)=>{let S=m.group||t.results;(!d.length||d[d.length-1].g!==S)&&d.push({g:S,items:[]}),d[d.length-1].items.push([m,N])}),i.mounted?(0,C.jsx)("div",{...ft(i.closing),className:p("tf-palette-wrap",e.inline&&"inline"),onMouseDown:m=>{m.target===m.currentTarget&&e.onClose&&e.onClose?.()},children:(0,C.jsxs)("div",{ref:l,className:"tf-palette",role:"dialog","aria-modal":"true","aria-label":t.commandPalette,children:[(0,C.jsxs)("div",{className:"tf-palette-input",children:[(0,C.jsx)(x,{name:"search",size:18}),(0,C.jsx)("input",{placeholder:e.placeholder||t.paletteSearchPlaceholder,"aria-label":t.search,value:n[0],onChange:m=>{n[1](m.target.value),a[1](0),e.onQueryChange?.(m.target.value)},onKeyDown:f}),(0,C.jsx)("kbd",{children:t.escKey})]}),(0,C.jsxs)("div",{className:"tf-palette-list",role:"listbox","aria-label":t.results,children:[e.loading&&(0,C.jsxs)("div",{className:"tf-palette-empty",role:"status",children:[(0,C.jsx)(Tr,{})," ",t.searching]}),r.length?d.map(m=>(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"tf-palette-group",children:m.g}),m.items.map(N=>{let S=N[0],k=N[1];return(0,C.jsxs)("button",{type:"button",role:"option","aria-selected":k===u?"true":"false",className:"tf-palette-item",onMouseMove:()=>{k!==u&&a[1](k)},onClick:()=>{o(S)},children:[(0,C.jsx)(ce,{icon:S.icon||"search",tint:S.tint||"plain"}),(0,C.jsxs)("span",{className:"tf-palette-label",children:[(0,C.jsx)("b",{children:S.label}),S.hint&&(0,C.jsx)("span",{children:S.hint})]}),k===u&&(0,C.jsx)("kbd",{children:"\u21B5"})]},S.id||S.label)})]},m.g)):e.loading?null:(0,C.jsx)("div",{className:"tf-palette-empty",children:e.empty??t.nothingMatches(n[0])})]}),(0,C.jsxs)("div",{className:"tf-palette-foot",children:[(0,C.jsxs)("span",{children:[(0,C.jsx)("kbd",{children:"\u2191"}),(0,C.jsx)("kbd",{children:"\u2193"})," ",t.paletteMove]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("kbd",{children:"\u21B5"})," ",t.paletteOpen]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("kbd",{children:"\u2318"}),(0,C.jsx)("kbd",{children:"K"})," "+t.paletteAnywhere]})]})]})}):null}function mv(e){let t=M(Gt),n=va.useState("all"),a=(e.items||[]).filter(l=>n[0]==="all"||l.unread);return(0,C.jsxs)("div",{className:"tf-notes",role:"region","aria-label":t.notifications,children:[(0,C.jsxs)("div",{className:"tf-header",style:{alignItems:"center",padding:"6px 8px 0"},children:[(0,C.jsx)("b",{style:{fontSize:16},children:t.notifications}),(0,C.jsx)(K,{variant:"ghost",size:"sm",icon:"check",disabled:!(e.items||[]).some(l=>l.unread),onClick:e.onReadAll,children:t.markAllRead})]}),(0,C.jsx)("div",{style:{padding:"0 8px"},children:(0,C.jsx)(br,{block:!0,items:[t.all,t.unread],value:n[0]==="all"?t.all:t.unread,onChange:l=>n[1](l===t.unread?"unread":"all")})}),(0,C.jsx)("div",{className:"tf-notes-list",children:a.length?a.map(l=>(0,C.jsxs)("button",{type:"button",className:p("tf-note",l.unread&&"unread"),onClick:()=>{e.onOpen&&e.onOpen(l)},children:[(0,C.jsx)(ce,{icon:l.icon,tint:l.tint}),(0,C.jsxs)("span",{className:"tf-note-text",children:[(0,C.jsx)("b",{children:l.title}),(0,C.jsx)("span",{children:l.text})]}),(0,C.jsxs)("span",{className:"tf-note-time",children:[l.time,l.unread&&(0,C.jsx)("span",{className:"tf-unread"})]})]},l.id)):(0,C.jsxs)("div",{className:"tf-notes-empty",children:[(0,C.jsx)(ce,{icon:"check",tint:"mint",size:40}),(0,C.jsx)("b",{children:t.allCaughtUp})]})})]})}var _x=()=>({trigger:["zap","sky"],condition:["filter","blush"],agent:["bot","lilac"],approval:["user","butter"],action:["send","mint"]});function hv(e){let t=M(Gt);return(0,C.jsx)("ol",{className:"tf-flow tf-stagger",style:{"--base":"120ms"},children:(e.steps||[]).map((n,a)=>{let l=_x(),i=l[n.kind]?n.kind:"action",s=l[i],c=a<(e.active==null?-1:e.active)?"done":a===e.active?e.waiting?"wait":"active":"";return(0,C.jsxs)("li",{className:p("tf-flow-node",c),children:[(0,C.jsx)("span",{className:"tf-flow-icon tf-t-"+s[1],children:(0,C.jsx)(x,{name:c==="done"?"check":s[0],size:16})}),(0,C.jsxs)("div",{className:"tf-flow-card",children:[(0,C.jsxs)("div",{className:"tf-flow-kind",children:[t.flowStep[i],c==="active"&&(0,C.jsx)("span",{className:"tf-flow-live",children:t.flowRunning}),c==="wait"&&(0,C.jsx)("span",{className:"tf-flow-live wait",children:t.waitingForYou})]}),(0,C.jsx)("div",{className:"tf-flow-text",children:n.text}),c==="wait"&&e.onApprove&&(0,C.jsxs)("div",{className:"tf-row",style:{marginTop:8},children:[(0,C.jsx)(K,{size:"sm",icon:"check",onClick:e.onApprove,children:t.approve}),e.onReject&&(0,C.jsx)(K,{size:"sm",variant:"ghost",onClick:e.onReject,children:t.reject})]})]}),e.tools&&c===""?(0,C.jsx)("div",{className:"tf-flow-tools",children:e.tools(n,a)}):null]},a)})})}var uv={pdf:["file","blush"],doc:["book","sky"],sheet:["chart","mint"],fig:["sparkle","lilac"],img:["eye","butter"],zip:["folder","butter"]};function Iu(e){let t=e.kind,n=e.big;return t==="sheet"?(0,C.jsx)("span",{className:"tf-t-sheet",children:Array.from({length:n?7:4},(a,l)=>(0,C.jsx)("span",{children:Array.from({length:4},(i,s)=>(0,C.jsx)("i",{style:{opacity:l===0?1:.55}},s))},l))}):t==="img"||t==="fig"?(0,C.jsxs)("span",{className:p("tf-t-art",t==="fig"&&"fig"),children:[(0,C.jsx)("i",{}),(0,C.jsx)("i",{}),(0,C.jsx)("i",{})]}):t==="zip"?(0,C.jsx)("span",{className:"tf-t-zip",children:(e.entries||["logo.svg","colors.json","fonts/"]).map(a=>(0,C.jsxs)("span",{children:[(0,C.jsx)(x,{name:"file",size:11}),a]},a))}):(0,C.jsxs)("span",{className:"tf-t-doc",children:[(0,C.jsx)("b",{children:(e.title||"").replace(/\.[^.]+$/,"")}),Array.from({length:n?9:4},(a,l)=>(0,C.jsx)("i",{style:{width:60+l*37%40+"%"}},l))]})}function gv(e){let t=M(Gt),n=uv[e.kind]||uv.doc;return(0,C.jsxs)("button",{type:"button",className:"tf-filecard",onClick:e.onClick,children:[(0,C.jsx)("span",{className:"tf-thumb tf-bg-"+n[1],children:(0,C.jsx)(Iu,{kind:e.kind,title:e.name})}),(0,C.jsx)("span",{className:"tf-filecard-name",children:e.name}),(0,C.jsxs)("span",{className:"tf-filecard-meta",children:[[e.size,e.meta].filter(Boolean).join(" \xB7 "),e.shared&&(0,C.jsx)(x,{name:"users",size:12,label:t.shared})]})]})}function vv(e){let t=M(Gt),n=e.steps||[],a=e.current||0,l=e.done||{};return(0,C.jsxs)("div",{className:"tf-wizard",role:"group","aria-label":e.label||t.setup,children:[(0,C.jsxs)("aside",{className:"tf-wizard-rail",children:[e.brand&&(0,C.jsxs)("span",{className:"tf-brand",style:{color:"var(--on-frame)"},children:[e.brand,(0,C.jsx)("span",{className:"tf-brand-dot"})]}),(0,C.jsx)("ol",{children:n.map((i,s)=>{let c=l[i.id||s];return(0,C.jsx)("li",{children:(0,C.jsxs)("button",{type:"button",className:p("tf-wizard-step",s===a&&"cur",c&&"ok"),"aria-current":s===a?"step":void 0,onClick:()=>{e.onPick&&e.onPick(s)},children:[(0,C.jsx)("span",{children:c?(0,C.jsx)(x,{name:"check",size:12}):s+1}),i.label]})},s)})})]}),(0,C.jsxs)("div",{className:"tf-wizard-main",children:[(0,C.jsx)("div",{className:"tf-card-desc",children:t.stepOf(a+1,n.length)}),(0,C.jsxs)("div",{className:"tf-wizard-body",children:[n[a]&&n[a].icon&&(0,C.jsx)(ce,{icon:n[a].icon,tint:"sky",size:44}),n[a]&&(0,C.jsx)("h2",{className:"tf-modal-title",children:n[a].label}),e.children]},a),e.footer&&(0,C.jsx)("div",{className:"tf-modal-foot",style:{justifyContent:"space-between"},children:e.footer})]})]})}function bv(e){let t=M(Gt),n=()=>t.permissionLevels,a=va.useRef(null);return ma(a),(0,C.jsx)("div",{ref:a,className:"tf-scroll",children:(0,C.jsxs)("table",{className:"tf-table tf-perm",children:[(0,C.jsx)("thead",{children:(0,C.jsxs)("tr",{children:[(0,C.jsx)("th",{children:t.role}),(e.areas||[]).map(l=>(0,C.jsx)("th",{children:l},l))]})}),(0,C.jsx)("tbody",{className:"tf-stagger",style:{"--base":"120ms"},children:(e.roles||[]).map((l,i)=>(0,C.jsxs)("tr",{children:[(0,C.jsxs)("td",{children:[(0,C.jsx)("div",{style:{fontWeight:700},children:l.name}),l.people!=null&&(0,C.jsx)("div",{className:"tf-card-desc",children:t.memberCount(l.people)})]}),l.levels.map((s,c)=>(0,C.jsx)("td",{children:(0,C.jsx)("button",{type:"button",className:"tf-perm-cell lv"+s,disabled:l.locked,"aria-label":l.name+" \xB7 "+e.areas[c]+": "+n()[s],onClick:()=>{e.onChange&&e.onChange(i,c,(s+1)%4)},children:n()[s]})},c))]},l.name))})]})})}function pv(){let{formatMoney:e}=J();return t=>e(t,null,{minimumFractionDigits:2})}function yv(e){let t=M(Gt),n=pv(),{formatPercent:a}=J(),l=e.lines||[],i=0,s={};l.forEach(u=>{let o=u.q*u.u;i+=o,s[u.v]=(s[u.v]||0)+o*u.v/100});let c=0;Object.keys(s).forEach(u=>{c+=s[Number(u)]??0});let r=e.format||n;return(0,C.jsxs)("div",{className:"tf-paper",children:[(0,C.jsxs)("div",{className:"tf-paper-top",children:[(0,C.jsxs)("div",{children:[e.brand&&(0,C.jsxs)("div",{className:"tf-brand",style:{color:"var(--ink)",fontSize:18},children:[e.brand,(0,C.jsx)("span",{className:"tf-brand-dot"})]}),e.from&&(0,C.jsx)("div",{className:"tf-paper-small",children:e.from})]}),(0,C.jsxs)("div",{className:"tf-paper-id",children:[(0,C.jsx)("div",{className:"tf-paper-kind",children:e.kind||t.invoice}),(0,C.jsx)("div",{className:"tf-mono",children:"#"+e.number})]})]}),(0,C.jsxs)("div",{className:"tf-paper-meta",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.billTo}),(0,C.jsx)("b",{children:e.to})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.issued}),(0,C.jsx)("b",{children:e.issued})]}),(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.due}),(0,C.jsx)("b",{children:e.due})]})]}),(0,C.jsx)("div",{className:"tf-paper-lines",children:l.map((u,o)=>(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:(u.d||t.untitledLine)+(u.q!==1?" \xD7 "+u.q:"")}),(0,C.jsx)("b",{children:r(u.q*u.u)})]},o))}),(0,C.jsxs)("div",{className:"tf-paper-totals",children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.net}),(0,C.jsx)("b",{children:r(i)})]}),Object.keys(s).filter(u=>+u>0).map(u=>(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{children:t.vatAt(a(Number(u),{maximumFractionDigits:2}))}),(0,C.jsx)("b",{children:r(s[Number(u)]??0)})]},u)),(0,C.jsxs)("div",{className:"grand",children:[(0,C.jsx)("span",{children:t.totalDue}),(0,C.jsx)("b",{children:r(i+c)})]})]}),e.note&&(0,C.jsx)("div",{className:"tf-paper-small",children:e.note})]})}function Nv(e){let t=M(Gt),n=pv(),a=va.useState(!1),l=e.amount>0;return(0,C.jsxs)("div",{className:p("tf-tx",!e.matched&&"unmatched"),children:[(0,C.jsxs)("div",{className:"tf-tx-row",children:[(0,C.jsx)(ce,{icon:l?"download":"send",tint:l?"mint":"plain"}),(0,C.jsxs)("div",{className:"tf-tx-text",children:[(0,C.jsx)("b",{className:"tf-mono",children:e.text}),(0,C.jsx)("span",{children:e.date+(e.matched&&e.matchRef?" \xB7 "+t.matchedTo(e.matchRef):"")})]}),(0,C.jsx)("b",{className:p("tf-tx-amt",l?"in":"out"),children:(l?"+":"\u2212")+n(Math.abs(e.amount))}),e.matched?(0,C.jsx)(Oe,{tone:"success",children:t.matched}):(0,C.jsx)(K,{size:"sm",variant:a[0]?"soft":"primary",onClick:()=>{a[1](!a[0])},children:a[0]?t.close:t.match})]}),a[0]&&!e.matched&&(0,C.jsxs)("div",{className:"tf-tx-suggest tf-in",children:[(0,C.jsx)(ce,{icon:"bot",tint:"butter"}),(0,C.jsx)("span",{style:{flex:1,minWidth:0},children:e.hint||t.noSuggestion}),(0,C.jsx)(K,{size:"sm",icon:"check",onClick:()=>{a[1](!1),e.onMatch&&e.onMatch()},children:t.accept})]})]})}function Sv(e){let t=M(Rl),n=Ju.useState(""),a=(e.accounts||[]).filter(i=>!n[0]||i.address.toLowerCase().indexOf(n[0].toLowerCase())>-1),l=(e.accounts||[]).find(i=>i.address===e.value);return(0,X.jsx)(Ue,{width:320,trigger:i=>(0,X.jsxs)("button",{type:"button",className:"tf-acct",onClick:i.toggle,"aria-haspopup":"dialog","aria-expanded":i.open,children:[(0,X.jsxs)("span",{className:"tf-option-text",children:[(0,X.jsx)("b",{className:l?"tf-mono":void 0,children:l?l.address:e.allLabel||t.allInboxes}),(0,X.jsx)("small",{children:l?l.domain:t.addressCount((e.accounts||[]).length)})]}),(0,X.jsx)(x,{name:"chevronDown",size:14})]}),children:i=>(0,X.jsxs)("div",{className:"tf-col",style:{gap:8},children:[(0,X.jsx)(Dn,{placeholder:t.findAddress,value:n[0],onChange:s=>{n[1](s.target.value)}}),(0,X.jsxs)("div",{className:"tf-acct-list",children:[(0,X.jsxs)("button",{type:"button",className:p("tf-option",!e.value&&"on"),onClick:()=>{e.onChange&&e.onChange(null),i.close()},children:[(0,X.jsx)(x,{name:"inbox",size:15}),(0,X.jsx)("span",{className:"tf-option-text",children:e.allLabel||t.allInboxes}),e.unread!=null&&(0,X.jsx)("span",{className:"tf-nav-count",children:e.unread})]}),a.map(s=>(0,X.jsxs)("button",{type:"button",className:p("tf-option",s.address===e.value&&"on"),onClick:()=>{e.onChange&&e.onChange(s.address),i.close()},children:[(0,X.jsxs)("span",{className:"tf-option-text",children:[(0,X.jsx)("span",{className:"tf-mono",children:s.address}),(0,X.jsx)("small",{children:s.domain})]}),s.unread?(0,X.jsx)("span",{className:"tf-nav-count",children:s.unread}):null]},s.address))]})]})})}function xv(e){let t=M(Rl);return(0,X.jsx)("div",{className:"tf-inboxlist",role:"list",children:(e.items||[]).map(n=>(0,X.jsxs)("button",{type:"button",role:"listitem",className:p("tf-mailrow",n.unread&&"unread",n.id===e.selected&&"on"),onClick:()=>{e.onOpen&&e.onOpen(n)},children:[(0,X.jsx)("span",{className:"tf-mailrow-dot",role:n.unread?"img":void 0,"aria-label":n.unread?t.unread:void 0}),(0,X.jsxs)("span",{className:"tf-mailrow-main",children:[(0,X.jsxs)("span",{className:"tf-mailrow-top",children:[(0,X.jsx)("b",{children:n.from}),(0,X.jsx)("small",{className:"tf-mono",children:n.time})]}),(0,X.jsx)("span",{className:"tf-mailrow-subject",children:n.subject}),(0,X.jsx)("span",{className:"tf-mailrow-snippet",children:n.snippet}),(n.to||n.tags||n.agent)&&(0,X.jsxs)("span",{className:"tf-mailrow-tags",children:[n.to&&(0,X.jsx)("span",{className:"tf-mono",children:n.to}),n.agent&&(0,X.jsx)(Oe,{tone:n.agent.tone||"highlight",children:n.agent.label}),(n.tags||[]).map(a=>(0,X.jsx)(Oe,{tone:"neutral",dot:!1,children:a},a))]})]})]},n.id))})}function Cv(e){let t=Ju.useState((e.messages||[]).length?[e.messages[e.messages.length-1].id]:[]);return(0,X.jsxs)("div",{className:"tf-thread",children:[e.subject&&(0,X.jsx)("h3",{className:"tf-thread-subject",children:e.subject}),(e.messages||[]).map(n=>{let a=t[0].indexOf(n.id)>-1;return(0,X.jsxs)("div",{className:p("tf-threadmsg",a&&"open",n.agent&&"agent"),children:[(0,X.jsxs)("button",{type:"button",className:"tf-threadmsg-head","aria-expanded":a,onClick:()=>{t[1](a?t[0].filter(l=>l!==n.id):t[0].concat([n.id]))},children:[n.agent?(0,X.jsx)(Xt,{tint:n.tint,size:32}):(0,X.jsx)(Ve,{name:n.from,size:32}),(0,X.jsxs)("span",{className:"tf-option-text",children:[(0,X.jsxs)("b",{children:[n.from,n.agentNote&&(0,X.jsx)("span",{className:"tf-threadmsg-note",children:" \xB7 "+n.agentNote})]}),(0,X.jsx)("small",{children:a?n.to:n.snippet})]}),(0,X.jsx)("small",{className:"tf-mono",children:n.time})]}),a&&(0,X.jsxs)("div",{className:"tf-threadmsg-body",children:[n.body,n.attachments&&(0,X.jsx)("div",{className:"tf-msg-attach",children:n.attachments.map(l=>(0,X.jsxs)("span",{className:"tf-attach-chip",children:[(0,X.jsx)(x,{name:"paperclip",size:13}),l.name,l.size&&(0,X.jsx)("small",{children:l.size})]},l.name))})]})]},n.id)}),e.reply]})}function Tv(e){let t=M(Rl),n=$(e.value,e.defaultValue||{},e.onChange),a=e.fields||[{key:"name",label:t.colName},{key:"role",label:t.role},{key:"company",label:t.company},{key:"phone",label:t.phone},{key:"website",label:t.website}];function l(i,s){let c=Object.assign({},n[0]);c[i]=s,n[1](c)}return(0,X.jsxs)("div",{className:"tf-sig",children:[(0,X.jsxs)("div",{className:"tf-col",style:{gap:12},children:[a.map(i=>(0,X.jsx)(mr,{label:i.label,value:n[0][i.key]||"",onChange:s=>{l(i.key,s.target.value)}},i.key)),e.extra]}),(0,X.jsxs)("div",{className:"tf-sig-preview",children:[(0,X.jsx)("span",{className:"tf-menu-label",style:{padding:0},children:e.previewLabel||t.preview}),(0,X.jsxs)("div",{className:"tf-paper tf-sig-paper",children:[(0,X.jsx)("p",{children:"\u2014"}),(0,X.jsx)("b",{children:n[0].name}),n[0].role&&(0,X.jsx)("div",{children:n[0].role+(n[0].company?" \xB7 "+n[0].company:"")}),n[0].phone&&(0,X.jsx)("div",{children:n[0].phone}),n[0].website&&(0,X.jsx)("div",{children:n[0].website}),e.note&&(0,X.jsx)("small",{children:e.note})]})]})]})}function Ev(e){return(0,X.jsx)(wr,{title:e.name,subtitle:e.meta,onClose:e.onClose,width:e.width||820,inline:e.inline,children:(0,X.jsxs)("div",{className:"tf-attprev",children:[(0,X.jsx)("div",{className:"tf-attprev-doc",children:e.children}),(0,X.jsxs)("div",{className:"tf-col",style:{gap:16},children:[e.facts&&(0,X.jsx)(Fn,{items:e.facts}),e.found,e.actions&&(0,X.jsx)("div",{className:"tf-col",style:{gap:8},children:e.actions})]})]})})}var ae=G(ye(),1),ba=G(re(),1);function Mv(e){let t=M(wl),n=$(e.selected,e.variants?.[0]?.id??"",e.onSelect),a=(e.variants||[]).find(l=>l.id===n[0])||{};return(0,ae.jsxs)("div",{className:"tf-imgvar",children:[(0,ae.jsxs)("div",{className:"tf-imgvar-stage",style:a.ratio?{aspectRatio:a.ratio}:void 0,children:[a.src?(0,ae.jsx)("img",{src:a.src,alt:e.alt||""}):(0,ae.jsx)("div",{className:p("tf-imgvar-ph","tf-t-"+(e.tint||"sky")),children:(0,ae.jsx)(x,{name:"image",size:32})}),a.label&&(0,ae.jsx)("span",{className:"tf-imgvar-tag",children:a.label})]}),(0,ae.jsx)("div",{className:"tf-imgvar-list",role:"listbox","aria-label":t.variants,children:(e.variants||[]).map(l=>(0,ae.jsxs)("button",{type:"button",role:"option","aria-selected":l.id===n[0],className:p("tf-imgvar-item",l.id===n[0]&&"on"),onClick:()=>{n[1](l.id)},children:[(0,ae.jsx)("span",{className:"tf-imgvar-thumb",style:l.ratio?{aspectRatio:l.ratio}:void 0,children:l.src?(0,ae.jsx)("img",{src:l.src,alt:""}):(0,ae.jsx)(x,{name:"image",size:14})}),(0,ae.jsxs)("span",{className:"tf-option-text",children:[(0,ae.jsx)("b",{children:l.label}),(0,ae.jsx)("small",{className:"tf-mono",children:[l.size,l.format,l.weight].filter(Boolean).join(" \xB7 ")})]}),l.status&&(0,ae.jsx)(ze,{status:l.status})]},l.id))}),e.actions&&(0,ae.jsx)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:e.actions})]})}function kv(e){let t=M(wl),n=e.items||[],a=ba.useState(e.start||0),l=ba.useState(!1),i=n.length,s=n[a[0]]||{};function c(o){a[1]((a[0]+o+i)%i)}ba.useEffect(()=>{if(!l[0])return;function o(f){f.key==="Escape"&&l[1](!1),f.key==="ArrowRight"&&c(1),f.key==="ArrowLeft"&&c(-1)}return document.addEventListener("keydown",o),()=>{document.removeEventListener("keydown",o)}});function r(o,f,d=e.loading||"lazy"){return o.src?(0,ae.jsx)("img",{className:f,src:o.src,alt:o.alt||"",loading:d,decoding:"async",referrerPolicy:e.referrerPolicy}):(0,ae.jsx)("div",{className:p(f,"tf-gallery-ph","tf-t-"+(o.tint||"sky")),children:o.art||(0,ae.jsx)(x,{name:"image",size:28})})}let u=(0,ae.jsxs)("div",{className:"tf-gallery-stage",style:{aspectRatio:e.ratio||"3 / 2"},children:[r(s,"tf-gallery-img"),i>1&&(0,ae.jsx)(W,{icon:"chevronLeft",label:t.previousImage,className:"tf-gallery-prev",onClick:()=>{c(-1)}}),i>1&&(0,ae.jsx)(W,{icon:"chevronRight",label:t.nextImage,className:"tf-gallery-next",onClick:()=>{c(1)}}),(0,ae.jsx)("span",{className:"tf-gallery-count",children:a[0]+1+" / "+i}),!l[0]&&e.fullscreen!==!1&&(0,ae.jsx)(W,{icon:"expand",label:t.fullScreen,className:"tf-gallery-full",onClick:()=>{l[1](!0)}}),e.badge&&(0,ae.jsx)("span",{className:"tf-gallery-badge",children:e.badge})]});return(0,ae.jsxs)("div",{className:"tf-gallery",children:[u,e.thumbs!==!1&&i>1&&(0,ae.jsx)("div",{className:"tf-gallery-thumbs",role:"tablist","aria-label":t.images,children:n.map((o,f)=>(0,ae.jsx)("button",{type:"button",role:"tab","aria-selected":f===a[0],className:p(f===a[0]&&"on"),onClick:()=>{a[1](f)},"aria-label":o.caption||o.alt||(o.src?t.imageN(f+1):void 0),children:r(o,"tf-gallery-thumb","lazy")},f))}),l[0]&&(0,ae.jsx)(An,{children:(0,ae.jsxs)("div",{className:"tf-lightbox",role:"dialog","aria-modal":"true","aria-label":t.images,children:[(0,ae.jsx)(W,{icon:"x",label:t.close,className:"tf-lightbox-close",onClick:()=>{l[1](!1)}}),(0,ae.jsxs)("div",{className:"tf-lightbox-stage",children:[r(s,"tf-gallery-img","eager"),i>1&&(0,ae.jsx)(W,{icon:"chevronLeft",label:t.previousImage,className:"tf-gallery-prev",onClick:()=>{c(-1)}}),i>1&&(0,ae.jsx)(W,{icon:"chevronRight",label:t.nextImage,className:"tf-gallery-next",onClick:()=>{c(1)}})]}),(0,ae.jsx)("span",{className:"tf-lightbox-cap",children:(s.caption?s.caption+" \xB7 ":"")+(a[0]+1)+" / "+i})]})})]})}function Rv(e){let t=M(wl),n=J(),a=ba.useState(e.start!=null?e.start:50),l=Math.round(a[0]),i=e.beforeLabel||t.before,s=e.afterLabel||t.after,c=ba.useRef(null),r=ba.useRef(!1);function u(f){if(!c.current)return;let d=c.current.getBoundingClientRect();a[1](Math.max(0,Math.min(100,(f.clientX-d.left)/d.width*100)))}function o(f,d){return f&&f.src?(0,ae.jsx)("img",{className:d,src:f.src,alt:f.alt||"",loading:e.loading||"lazy",decoding:"async",referrerPolicy:e.referrerPolicy}):(0,ae.jsx)("div",{className:p(d,"tf-ba-ph",f&&f.tint&&"tf-t-"+f.tint),children:f&&f.art})}return(0,ae.jsxs)("div",{ref:c,className:"tf-ba",style:{aspectRatio:e.ratio||"3 / 2"},onPointerDown:f=>{r.current=!0,f.currentTarget.setPointerCapture(f.pointerId),u(f)},onPointerMove:f=>{r.current&&u(f)},onPointerUp:()=>{r.current=!1},children:[o(e.after,"tf-ba-img"),(0,ae.jsx)("div",{className:"tf-ba-before",style:{clipPath:"inset(0 "+(100-a[0])+"% 0 0)"},children:o(e.before,"tf-ba-img")}),(0,ae.jsx)("span",{className:"tf-ba-tag left",children:i}),(0,ae.jsx)("span",{className:"tf-ba-tag right",children:s}),(0,ae.jsx)("div",{className:"tf-ba-line",style:{left:a[0]+"%"},children:(0,ae.jsxs)("span",{className:"tf-ba-knob",role:"slider",tabIndex:0,"aria-label":e.label||t.compareBeforeAfter,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l,"aria-valuetext":e.valueText?e.valueText(l):`${i} ${n.formatPercent(l)}, ${s} ${n.formatPercent(100-l)}`,onKeyDown:f=>{let d=f.key==="ArrowLeft"||f.key==="ArrowDown"?a[0]-5:f.key==="ArrowRight"||f.key==="ArrowUp"?a[0]+5:f.key==="PageDown"?a[0]-25:f.key==="PageUp"?a[0]+25:f.key==="Home"?0:f.key==="End"?100:null;d!=null&&(f.preventDefault(),a[1](Math.max(0,Math.min(100,d))))},children:[(0,ae.jsx)(x,{name:"chevronLeft",size:12}),(0,ae.jsx)(x,{name:"chevronRight",size:12})]})})]})}var A=G(ye(),1),$u=G(re(),1);function wv(e){let t={connected:"ok",expiring:"warn",error:"danger",missing:"idle"}[e.status]||"idle";return(0,A.jsxs)("div",{className:"tf-conn",children:[(0,A.jsx)("span",{className:"tf-conn-ico",children:e.logo||(0,A.jsx)(x,{name:e.icon||"link",size:18})}),(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{children:e.name}),(0,A.jsx)("small",{children:e.text})]}),(0,A.jsx)(Be,{status:t,label:e.statusLabel}),e.action&&(0,A.jsx)("span",{className:"tf-conn-act",children:e.action})]})}function zv(e){let t=M(tn);return!e.state||e.state==="online"?null:(0,A.jsxs)("div",{className:p("tf-connbanner",e.state),role:"status",children:[(0,A.jsx)(ze,{status:e.state==="offline"?"danger":"warn"}),(0,A.jsx)("span",{children:e.text||(e.state==="offline"?t.offline:t.connectionLost(e.seconds))}),e.onRetry&&(0,A.jsx)("button",{type:"button",className:"tf-linkbtn",onClick:e.onRetry,children:t.retryNow})]})}function Av(e){let t=M(tn);return(0,A.jsxs)("div",{className:"tf-server",children:[(0,A.jsxs)("div",{className:"tf-server-top",children:[(0,A.jsx)("span",{className:"tf-conn-ico",children:e.logo||(0,A.jsx)(x,{name:"server",size:18})}),(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{children:e.name}),(0,A.jsx)("small",{className:"tf-mono",children:[e.provider,e.address].filter(Boolean).join(" \xB7 ")})]}),(0,A.jsx)(Be,{status:e.status||"idle",label:e.statusLabel})]}),(0,A.jsx)("div",{className:"tf-col",style:{gap:12},children:(e.meters||[]).map(n=>n.value==null?(0,A.jsxs)("div",{className:"tf-usage-top",children:[(0,A.jsx)("span",{children:n.label}),(0,A.jsx)("b",{children:n.unknown||t.unknown})]},n.label):(0,A.jsx)(Xa,{label:n.label,value:n.value,max:n.max,text:n.text},n.label))}),e.uptime&&(0,A.jsx)(kr,{...e.uptime}),e.foot&&(0,A.jsx)("div",{className:"tf-server-foot",children:e.foot})]})}function _v(e){let t=M(tn);return(0,A.jsx)("ol",{className:"tf-pipeline",tabIndex:0,"aria-label":t.deployPipeline,children:(e.stages||[]).map((n,a)=>(0,A.jsxs)("li",{className:p("tf-stage","st-"+(n.status||"idle")),children:[(0,A.jsx)(ze,{status:n.status==="done"?"ok":n.status||"idle"}),(0,A.jsx)("b",{children:n.name}),(0,A.jsx)("small",{className:"tf-mono",children:n.duration||"\u2014"}),n.action]},a))})}function Dv(e){let t=M(tn);return(0,A.jsx)(Qs,{rows:e.records||[],rowKey:"id",columnToggle:!1,selectable:e.selectable,bulkActions:e.bulkActions,toolbar:e.toolbar,columns:[{key:"type",label:t.colType,sortable:!0,render:n=>(0,A.jsx)(Oe,{tone:"neutral",dot:!1,className:"tf-mono",children:n.type})},{key:"name",label:t.colName,sortable:!0,render:n=>(0,A.jsx)("span",{className:"tf-mono",children:n.name})},{key:"content",label:t.colContent,render:n=>(0,A.jsx)(et,{label:n.content,children:(0,A.jsx)("span",{className:"tf-mono tf-trunc",tabIndex:0,children:n.content})})},{key:"ttl",label:"TTL",align:"right",render:n=>(0,A.jsx)("span",{className:"tf-mono",children:n.ttl})},{key:"proxy",label:t.colProxy,render:n=>n.proxy==null?"\u2014":(0,A.jsx)(Be,{status:n.proxy?"ok":"idle",label:n.proxy?t.proxied:t.dnsOnly})},{key:"x",label:"",align:"right",hideable:!1,render:n=>e.rowMenu?(0,A.jsx)(Ue,{align:"end",flush:!0,width:200,trigger:a=>(0,A.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-ghost tf-iconbtn-sm","aria-label":t.actions,onClick:a.toggle,children:(0,A.jsx)(x,{name:"more"})}),children:a=>(0,A.jsx)(At,{items:(e.rowMenu?.(n)??[]).map(l=>l==="-"?l:Object.assign({},l,{onClick:()=>{a.close(),l.onClick&&l.onClick()}}))})}):null}]})}function Ov(e){let t=M(tn);return(0,A.jsx)("div",{className:"tf-domains",children:(e.items||[]).slice().sort((n,a)=>(n.days==null?9999:n.days)-(a.days==null?9999:a.days)).map(n=>{let a=n.days==null?"idle":n.days<7?"danger":n.days<30?"warn":"ok";return(0,A.jsxs)("button",{type:"button",className:"tf-domainrow",onClick:()=>{e.onOpen&&e.onOpen(n)},children:[(0,A.jsx)(ze,{status:a}),(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{className:"tf-mono",children:n.name}),(0,A.jsx)("small",{children:[n.registrar,n.dns].filter(Boolean).join(" \xB7 ")})]}),(0,A.jsxs)("span",{className:"tf-domainrow-cell",children:[(0,A.jsx)("small",{children:t.expires}),(0,A.jsx)("b",{className:"tf-mono",children:n.days==null?"\u2014":t.daysCount(n.days)})]}),(0,A.jsxs)("span",{className:"tf-domainrow-cell",children:[(0,A.jsx)("small",{children:"SSL"}),(0,A.jsx)(Be,{status:n.ssl||"idle",label:n.sslLabel})]})]},n.name)})})}function jv(e){let t=M(tn),n=e.columns||["MX","SPF","DKIM","DMARC"],a=$u.useRef(null);return ma(a),(0,A.jsx)("div",{ref:a,className:"tf-scroll-x",children:(0,A.jsxs)("table",{className:"tf-table tf-mailauth",children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:t.domain}),n.map(l=>(0,A.jsx)("th",{children:l},l))]})}),(0,A.jsx)("tbody",{children:(e.rows||[]).map(l=>(0,A.jsxs)("tr",{children:[(0,A.jsx)("td",{className:"tf-mono",children:l.domain}),n.map(i=>{let s=l[i.toLowerCase()]||{status:"idle"};return(0,A.jsx)("td",{children:(0,A.jsx)("button",{type:"button",className:"tf-mailauth-cell",onClick:()=>{e.onOpen&&e.onOpen(l,i)},children:(0,A.jsx)(Be,{status:s.status,label:s.label})})},i)})]},l.domain))})]})})}function Lv(e){let t=M(tn),{formatMoney:n}=J(),a=e.currency;return(0,A.jsx)(Qs,{rows:e.rows||[],selectable:e.selectable,bulkActions:e.bulkActions,toolbar:e.toolbar,stickyHeader:!0,maxHeight:e.maxHeight,columnToggle:e.columnToggle,columns:[{key:"date",label:t.colDate,sortable:!0,render:l=>(0,A.jsx)("span",{className:"tf-mono",children:l.date})},{key:"ref",label:t.colRef,render:l=>(0,A.jsx)("span",{className:"tf-mono",children:l.ref})},{key:"text",label:t.colDescription,render:l=>(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{children:l.text}),l.suggested&&(0,A.jsxs)("small",{children:[(0,A.jsx)(ze,{status:"signal"})," ",t.suggestedBy(l.suggested)]})]})},{key:"category",label:t.colCategory,render:l=>e.categories?(0,A.jsx)(Er,{value:l.category||"",options:e.categories,onSave:i=>{e.onEdit?.(l,{category:i})}}):l.category},{key:"project",label:t.colProject,render:l=>l.project&&(0,A.jsxs)("span",{className:"tf-row",style:{gap:8,flexWrap:"nowrap"},children:[(0,A.jsx)("i",{className:"tf-sw tf-sw-"+(l.projectTint||"ink")}),l.project]})},{key:"net",label:t.net,align:"right",sortable:!0,render:l=>n(l.net,a,{minimumFractionDigits:2})},{key:"vat",label:t.vat,align:"right",render:l=>n(l.vat||0,a,{minimumFractionDigits:2})},{key:"gross",label:t.grossLabel,align:"right",sortable:!0,render:l=>(0,A.jsx)("b",{className:l.gross<0?"tf-neg":void 0,children:n(l.gross,a,{minimumFractionDigits:2})})},{key:"status",label:t.status,render:l=>(0,A.jsx)(Be,{status:l.status||"ok",label:l.statusLabel})}]})}function Hv(e){let t=M(tn),{formatMoney:n}=J(),a=e.columns||[],l=$u.useRef(null);return ma(l),(0,A.jsx)("div",{ref:l,className:"tf-scroll-x",children:(0,A.jsxs)("table",{className:"tf-table tf-pnl",children:[(0,A.jsx)("thead",{children:(0,A.jsxs)("tr",{children:[(0,A.jsx)("th",{children:e.label||""}),a.map(i=>(0,A.jsx)("th",{className:"tf-num",children:i},i)),e.total!==!1&&(0,A.jsx)("th",{className:"tf-num",children:t.total})]})}),(0,A.jsx)("tbody",{children:(e.rows||[]).map((i,s)=>{let c=(i.values||[]).reduce((r,u)=>r+(u||0),0);return(0,A.jsxs)("tr",{className:i.kind,children:[(0,A.jsx)("td",{children:i.label}),i.kind==="section"?(0,A.jsx)("td",{colSpan:a.length+(e.total!==!1?1:0)}):a.map((r,u)=>{let o=(i.values||[])[u];return(0,A.jsx)("td",{className:p("tf-num",o<0&&"tf-neg"),children:o==null?"\u2014":n(o,e.currency)},u)}),i.kind!=="section"&&e.total!==!1&&(0,A.jsx)("td",{className:p("tf-num",c<0&&"tf-neg"),children:(0,A.jsx)("b",{children:n(c,e.currency)})})]},s)})})]})})}function Uv(e){let t=M(tn),{formatPercent:n}=J();return(0,A.jsxs)("div",{className:"tf-receipt",children:[(0,A.jsxs)("div",{className:"tf-receipt-src",children:[(0,A.jsx)(ce,{icon:"paperclip",tint:"sky"}),(0,A.jsxs)("span",{className:"tf-option-text",children:[(0,A.jsx)("b",{children:e.file}),(0,A.jsx)("small",{children:e.source})]})]}),(0,A.jsx)("div",{className:"tf-receipt-grid",children:(e.fields||[]).map(a=>(0,A.jsxs)("div",{className:"tf-receipt-field",children:[(0,A.jsx)("small",{children:a.label}),(0,A.jsx)("b",{className:a.mono?"tf-mono":void 0,children:a.value}),a.confidence!=null&&(0,A.jsx)("span",{className:p("tf-conf",a.confidence<.8&&"low"),children:n(a.confidence*100)})]},a.label))}),e.suggestion&&(0,A.jsxs)("div",{className:"tf-receipt-sugg",children:[(0,A.jsx)(ze,{status:"signal"}),(0,A.jsx)("span",{children:e.suggestion})]}),e.children,(0,A.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:[e.onDiscard&&(0,A.jsx)(K,{variant:"ghost",size:"sm",onClick:e.onDiscard,children:e.discardLabel||t.notAReceipt}),e.onConfirm&&(0,A.jsx)(K,{size:"sm",icon:"check",onClick:e.onConfirm,children:e.confirmLabel||t.bookIt})]})]})}var pe=G(ye(),1),Ak=G(re(),1);function Bv(e){let t=M(Ni),n=$(e.device,"desktop",e.onDevice);return(0,pe.jsxs)("div",{className:"tf-mailprev",children:[(0,pe.jsxs)("div",{className:"tf-mailprev-head",children:[(0,pe.jsxs)("div",{className:"tf-mailprev-inbox",children:[(0,pe.jsx)(Ve,{name:e.fromName||e.from||"",size:36}),(0,pe.jsxs)("div",{className:"tf-option-text",children:[(0,pe.jsx)("b",{children:e.fromName||e.from}),(0,pe.jsxs)("span",{className:"tf-mailprev-subj",children:[(0,pe.jsx)("b",{children:e.subject||t.noSubject}),e.preheader&&(0,pe.jsx)("span",{children:" \u2014 "+e.preheader})]})]})]}),(0,pe.jsx)(Zn,{size:"sm",value:n[0],onChange:n[1],label:t.device,options:[{value:"desktop",label:t.desktop},{value:"mobile",label:t.mobile}]})]}),(0,pe.jsx)("div",{className:p("tf-mailprev-stage",n[0]),children:(0,pe.jsx)("div",{className:"tf-mailprev-frame",children:e.html!=null?(0,pe.jsx)("iframe",{title:t.emailPreview,sandbox:"",srcDoc:e.html}):(0,pe.jsx)("div",{className:"tf-mailprev-body",children:e.children})})}),e.checks&&(0,pe.jsx)("div",{className:"tf-mailprev-checks",children:e.checks.map((a,l)=>(0,pe.jsx)(Be,{status:a.status,label:a.label,size:"sm"},l))})]})}function Vv(e){let t=M(Ni),n=$(e.device,"mobile",e.onDevice),a=(e.headlines||[]).filter(Boolean).slice(0,3),l=(e.descriptions||[]).filter(Boolean).slice(0,2),i=[["headlines",30],["descriptions",90],["paths",15]],s=[];i.forEach(r=>{(e[r[0]]||[]).forEach((u,o)=>{u&&u.length>r[1]&&s.push(t.adTooLong(r[0],o+1,u.length,r[1]))})});let c=(e.domain||"")+(e.paths||[]).filter(Boolean).map(r=>" \u203A "+r).join("");return(0,pe.jsxs)("div",{className:"tf-adprev",children:[(0,pe.jsxs)("div",{className:"tf-row",style:{justifyContent:"space-between"},children:[(0,pe.jsx)("span",{className:"tf-menu-label",style:{padding:0},children:t.preview}),(0,pe.jsx)(Zn,{size:"sm",value:n[0],onChange:n[1],label:t.device,options:[{value:"mobile",label:t.mobile},{value:"desktop",label:t.desktop}]})]}),(0,pe.jsxs)("div",{className:p("tf-adprev-card",n[0]),children:[(0,pe.jsxs)("div",{className:"tf-adprev-top",children:[(0,pe.jsx)("span",{className:"tf-adprev-fav","aria-hidden":!0,children:(e.name||e.domain||"?").charAt(0).toUpperCase()}),(0,pe.jsxs)("div",{className:"tf-option-text",children:[(0,pe.jsx)("b",{children:e.name||e.domain}),(0,pe.jsx)("small",{children:c})]}),(0,pe.jsx)("span",{className:"tf-adprev-tag",children:e.sponsoredLabel||t.sponsored})]}),(0,pe.jsx)("a",{className:"tf-adprev-hl",href:"#",onClick:r=>{r.preventDefault()},children:a.join(" | ")||t.yourHeadline}),(0,pe.jsx)("p",{className:"tf-adprev-desc",children:l.join(" ")||t.yourDescription}),e.sitelinks&&e.sitelinks.length>0&&(0,pe.jsx)("div",{className:"tf-adprev-links",children:e.sitelinks.map((r,u)=>(0,pe.jsx)("span",{children:r},u))})]}),s.length>0&&(0,pe.jsx)("div",{className:"tf-col",style:{gap:4},children:s.map((r,u)=>(0,pe.jsx)(Be,{status:"warn",label:r,size:"sm"},u))})]})}var he=G(ye(),1),jn=G(re(),1);function qv(e){let t=Se("acc"),n=e.items||[],a=n.map((c,r)=>c.id??String(r)),l=$(e.value,e.defaultValue||[],e.onChange),i=jn.useRef(null),s=c=>{let r=l[0].includes(c);l[1](r?l[0].filter(u=>u!==c):e.multiple?l[0].concat(c):[c])};return(0,he.jsx)("div",{ref:i,className:p("tf-accordion",e.variant==="flush"&&"flush",e.className),style:e.style,onKeyDown:c=>{c.target.classList.contains("tf-accordion-head")&&Hl(c,i.current,".tf-accordion-head","vertical")},children:n.map((c,r)=>{let u=a[r],o=l[0].includes(u);return(0,he.jsxs)("div",{className:p("tf-accordion-item",o&&"open"),children:[(0,he.jsx)("h3",{className:"tf-accordion-h",children:(0,he.jsxs)("button",{type:"button",id:`${t}-h${r}`,className:"tf-accordion-head","aria-expanded":o,"aria-controls":`${t}-p${r}`,disabled:c.disabled,onClick:()=>s(u),children:[c.icon&&(0,he.jsx)(x,{name:c.icon}),(0,he.jsx)("span",{className:"tf-accordion-title",children:c.title}),c.meta&&(0,he.jsx)("span",{className:"tf-accordion-meta",children:c.meta}),(0,he.jsx)(x,{name:"chevronDown",size:16,className:"tf-accordion-chev"})]})}),(0,he.jsx)("div",{id:`${t}-p${r}`,role:"region","aria-labelledby":`${t}-h${r}`,className:"tf-accordion-panel",hidden:!o,children:(0,he.jsx)("div",{className:"tf-accordion-body",children:c.content})})]},u)})})}function Gv(e){let t=e.orientation==="vertical";return e.label&&!t?(0,he.jsx)("div",{className:p("tf-sep","labelled",e.className),style:e.style,role:"separator",children:(0,he.jsx)("span",{children:e.label})}):(0,he.jsx)("div",{className:p("tf-sep",t&&"vertical",e.className),style:e.style,role:"separator","aria-orientation":t?"vertical":void 0})}function Yv(e){return(0,he.jsx)("div",{className:p("tf-aspect",e.className),style:{aspectRatio:String(e.ratio||16/9),...e.style},children:e.children})}function Qv(e){return(0,he.jsxs)("label",{className:p("tf-field-label","tf-label",e.className),style:e.style,htmlFor:e.htmlFor,children:[e.children,e.required&&(0,he.jsx)("span",{className:"tf-label-req","aria-hidden":!0,children:"*"}),e.hint&&(0,he.jsx)("span",{className:"tf-label-hint",children:e.hint})]})}function Xv(e){let t=$(e.pressed,!!e.defaultPressed,e.onChange),n=!!e.icon&&!e.children;return(0,he.jsxs)("button",{type:"button",className:p("tf-toggle",e.size==="sm"&&"sm",n&&"icon",e.className),style:e.style,"aria-pressed":t[0],"aria-label":n?e.label:void 0,title:n?e.label:void 0,disabled:e.disabled,onClick:()=>t[1](!t[0]),children:[e.icon&&(0,he.jsx)(x,{name:e.icon}),e.children]})}var Dx=e=>typeof e=="string"?{value:e,label:e}:e;function Kv(e){let t=$(e.value,e.defaultValue||[],e.onChange),n=jn.useRef(null),a=(e.items||[]).map(Dx);return(0,he.jsx)("div",{ref:n,className:p("tf-togglegroup",e.size==="sm"&&"sm",e.className),style:e.style,role:"group","aria-label":e.label,onKeyDown:l=>Hl(l,n.current,".tf-toggle","horizontal"),children:a.map(l=>{let i=t[0].includes(l.value),s=!!l.icon&&!l.label;return(0,he.jsxs)("button",{type:"button",className:p("tf-toggle",e.size==="sm"&&"sm",s&&"icon"),"aria-pressed":i,"aria-label":s?l.hint||l.value:void 0,title:l.hint,onClick:()=>t[1](e.type==="multiple"?i?t[0].filter(c=>c!==l.value):t[0].concat(l.value):i?[]:[l.value]),children:[l.icon&&(0,he.jsx)(x,{name:l.icon}),l.label]},l.value)})})}function Zv(e){return(0,he.jsx)("div",{className:p("tf-btngroup",e.orientation==="vertical"&&"vertical",e.className),style:e.style,role:"group","aria-label":e.label,children:e.children})}function Fv(e){let t=e.orientation||"vertical";return(0,he.jsx)("div",{className:p("tf-scrollarea",t,e.className),style:{height:e.height,maxHeight:e.maxHeight,...e.style},role:"region","aria-label":e.label,tabIndex:0,children:e.children})}function Iv(e){let[t,n]=jn.useState(!1),a=jn.useRef(void 0),l=jn.useRef(null),i=Nt(t);Ll(l,t);let s=(c,r)=>{clearTimeout(a.current),a.current=setTimeout(()=>n(c),r)};return jn.useEffect(()=>()=>clearTimeout(a.current),[]),(0,he.jsxs)("span",{className:p("tf-hovercard-anchor",e.className),style:e.style,onPointerEnter:()=>s(!0,e.openDelay??500),onPointerLeave:()=>s(!1,e.closeDelay??200),onFocus:()=>s(!0,0),onBlur:c=>{c.currentTarget.contains(c.relatedTarget)||s(!1,0)},onKeyDown:c=>{c.key==="Escape"&&s(!1,0)},children:[e.trigger,i.mounted&&(0,he.jsx)("div",{...ft(i.closing),ref:l,className:p("tf-hovercard","tf-hc-"+(e.side||"bottom"),"tf-hc-"+(e.align||"center")),style:e.width?{width:e.width}:void 0,children:e.children})]})}function Jv(e){let t=M(zs),n=e.slides||[],a=n.length,l=$(e.index,e.defaultIndex||0,e.onChange),i=jn.useRef(null),s=Math.max(1,e.perView||1),c=Math.max(0,a-s),r=u=>{let o=e.loop?u>c?0:u<0?c:u:Math.min(c,Math.max(0,u)),f=i.current?.children[o];f&&i.current&&i.current.scrollTo({left:f.offsetLeft-i.current.offsetLeft,behavior:"smooth"}),l[1](o)};return jn.useEffect(()=>{let u=i.current;if(!u)return;let o=0,f=()=>{cancelAnimationFrame(o),o=requestAnimationFrame(()=>{let d=u.firstElementChild?.offsetWidth||1,m=parseFloat(getComputedStyle(u).columnGap)||0,N=Math.round(u.scrollLeft/(d+m));N!==l[0]&&l[1](Math.min(c,N))})};return u.addEventListener("scroll",f,{passive:!0}),()=>{u.removeEventListener("scroll",f),cancelAnimationFrame(o)}}),(0,he.jsxs)("section",{className:p("tf-carousel",e.className),style:{"--per":s,...e.style},"aria-roledescription":"carousel","aria-label":e.label,onKeyDown:u=>{u.key==="ArrowRight"?(u.preventDefault(),r(l[0]+1)):u.key==="ArrowLeft"&&(u.preventDefault(),r(l[0]-1))},children:[(0,he.jsx)("div",{ref:i,className:"tf-carousel-track",tabIndex:0,children:n.map((u,o)=>(0,he.jsx)("div",{className:"tf-carousel-slide",role:"group","aria-roledescription":t.slide,"aria-label":t.slideOf(o+1,a),children:u},o))}),(0,he.jsxs)("div",{className:"tf-carousel-bar",children:[(0,he.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-soft tf-iconbtn-sm","aria-label":t.previousSlide,disabled:!e.loop&&l[0]<=0,onClick:()=>r(l[0]-1),children:(0,he.jsx)(x,{name:"chevronLeft"})}),e.dots!==!1&&(0,he.jsx)("div",{className:"tf-carousel-dots",children:Array.from({length:c+1},(u,o)=>(0,he.jsx)("button",{type:"button",className:"tf-carousel-dot","aria-label":t.goToSlide(o+1),"aria-current":o===l[0]?"true":void 0,onClick:()=>r(o)},o))}),(0,he.jsx)("button",{type:"button",className:"tf-iconbtn tf-iconbtn-soft tf-iconbtn-sm","aria-label":t.nextSlide,disabled:!e.loop&&l[0]>=c,onClick:()=>r(l[0]+1),children:(0,he.jsx)(x,{name:"chevronRight"})})]})]})}var V=G(ye(),1),Zk=G(re(),1);function Ox(e,t,{formatNumber:n}){return[e.area!=null&&[(0,V.jsx)(x,{name:"ruler",size:14},"i"),`${n(e.area)} m\xB2`],e.rooms!=null&&[(0,V.jsx)(x,{name:"bed",size:14},"i"),t.rooms(n(e.rooms),e.rooms)],e.place&&[(0,V.jsx)(x,{name:"pin",size:14},"i"),e.place]].filter(Boolean).map((a,l)=>(0,V.jsx)("span",{children:a},l))}function jx(e,t,{formatMoney:n}){return e.price==null?(0,V.jsx)("b",{className:"tf-listing-price",children:t.priceOnRequest}):(0,V.jsxs)("b",{className:"tf-listing-price",children:[n(e.price,e.currency),e.rent&&(0,V.jsxs)("small",{children:[" ",t.perMonth]})]})}function $v(e){let t=M(fa),n=J(),{formatMoney:a,formatNumber:l}=n,i=e.listing||e;return(0,V.jsxs)("article",{className:p("tf-listing",e.layout==="row"&&"row",e.selected&&"selected",i.status==="unread"&&"unread"),onClick:e.onOpen&&(()=>{e.onOpen?.(i)}),children:[(0,V.jsxs)("div",{className:"tf-listing-media",children:[i.image?(0,V.jsx)("img",{src:i.image,alt:""}):(0,V.jsx)("div",{className:p("tf-listing-ph","tf-t-"+(i.tint||"sky")),children:(0,V.jsx)(x,{name:"image",size:24})}),i.isNew&&(0,V.jsx)("span",{className:"tf-listing-new",children:t.isNew}),(i.photos??0)>1&&(0,V.jsxs)("span",{className:"tf-listing-photos",children:[(0,V.jsx)(x,{name:"image",size:12}),l(i.photos??0)]}),e.onSelect&&(0,V.jsx)("label",{className:"tf-listing-sel",onClick:s=>{s.stopPropagation()},children:Us({checked:!!e.selected,onChange:()=>{e.onSelect?.(i)},label:t.select})})]}),(0,V.jsxs)("div",{className:"tf-listing-body",children:[(0,V.jsxs)("div",{className:"tf-listing-top",children:[jx(i,t,n),i.pricePerSqm!=null&&(0,V.jsx)("span",{className:"tf-listing-ppsqm",children:a(i.pricePerSqm,i.currency)+" / m\xB2"}),e.onWish&&(0,V.jsx)(W,{icon:"heart",size:"sm",label:i.wished?t.removeFromSaved:t.save,className:p("tf-listing-wish",i.wished&&"on"),onClick:s=>{s.stopPropagation(),e.onWish?.(i)}})]}),(0,V.jsx)("b",{className:"tf-listing-title",children:i.title}),(0,V.jsx)("div",{className:"tf-listing-facts",children:Ox(i,t,n)}),(0,V.jsxs)("div",{className:"tf-listing-foot",children:[i.source&&(0,V.jsx)("span",{className:"tf-listing-src",children:i.source}),i.seller&&(0,V.jsx)(Oe,{tone:i.seller==="private"?"success":"neutral",dot:!1,children:i.sellerLabel||(i.seller==="private"?t.privateSeller:t.agent)}),i.phone&&(0,V.jsx)("span",{className:"tf-listing-flag",title:t.phoneAvailable,children:(0,V.jsx)(x,{name:"phone",size:13})}),(0,V.jsx)("span",{style:{flex:1}}),i.age&&(0,V.jsx)("span",{className:"tf-listing-age",children:i.age}),e.statusOptions&&(0,V.jsx)("span",{onClick:s=>{s.stopPropagation()},children:(0,V.jsx)(Rr,{size:"sm",options:e.statusOptions,value:i.status,onChange:s=>{e.onStatus&&e.onStatus(i,s)},label:t.status})})]})]})]})}function Pv(e){let t=M(fa),{formatNumber:n}=J(),a=e.total>0&&e.selected===e.total,l=(e.selected??0)>0&&!a;return(0,V.jsxs)("div",{className:"tf-results",children:[e.onSelectAll&&(0,V.jsx)("label",{className:"tf-check",children:Us({checked:a,indeterminate:l,onChange:()=>{e.onSelectAll?.(!a)},label:a?t.deselectAll:t.selectAll})}),(0,V.jsxs)("div",{className:"tf-option-text",style:{marginRight:"auto"},children:[(0,V.jsx)("b",{children:(e.selected??0)>0?t.selectedCount(e.selected??0,n(e.selected??0)):e.title||t.results}),(0,V.jsx)("small",{children:t.foundCount(e.total||0,n(e.total||0))+(e.meta?" \xB7 "+e.meta:"")})]}),(e.selected??0)>0&&(e.bulkActions||[]).map((i,s)=>(0,V.jsx)(K,{size:"sm",variant:i.variant||"secondary",icon:i.icon,disabled:i.busy,onClick:i.onClick,children:i.busy?i.busyLabel||t.workingEllipsis:i.label},s)),e.sortOptions&&(0,V.jsxs)("label",{className:"tf-results-sort",children:[(0,V.jsx)("span",{children:t.sort}),(0,V.jsx)("select",{className:"tf-input",value:e.sort,onChange:i=>{e.onSort&&e.onSort(i.target.value)},children:e.sortOptions.map(i=>(0,V.jsx)("option",{value:i.value,children:i.label},i.value))})]}),e.views&&(0,V.jsx)(Zn,{size:"sm",value:e.view,onChange:e.onView,label:t.view,options:e.views.map(i=>({value:i,icon:i==="grid"?"grid":i==="map"?"map":"list",label:i==="grid"?t.viewGrid:i==="map"?t.viewMap:t.viewList}))})]})}function Wv(e){let t=M(fa),{formatNumber:n}=J();return(0,V.jsxs)("div",{className:p("tf-saved",e.enabled===!1&&"off"),children:[(0,V.jsxs)("div",{className:"tf-saved-head",children:[(0,V.jsx)(ce,{icon:e.icon||"search",tint:e.tint||"sky",size:36}),(0,V.jsxs)("div",{className:"tf-option-text",style:{flex:1,minWidth:0},children:[(0,V.jsx)("b",{children:e.name}),(0,V.jsx)("small",{children:[e.lastRun&&t.checkedAt(e.lastRun),e.frequency].filter(Boolean).join(" \xB7 ")})]}),(e.newCount??0)>0&&(0,V.jsx)("span",{className:"tf-nav-count",children:n(e.newCount??0)}),e.onToggle&&(0,V.jsx)(Qa,{checked:e.enabled!==!1,onChange:e.onToggle,label:t.enabled})]}),(0,V.jsx)("div",{className:"tf-saved-crit",children:(e.criteria||[]).map((a,l)=>(0,V.jsx)("span",{className:"tf-saved-chip",children:a},l))}),(e.onOpen||e.onEdit)&&(0,V.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end"},children:[e.onEdit&&(0,V.jsx)(K,{size:"sm",variant:"ghost",icon:"edit",onClick:e.onEdit,children:t.edit}),e.onOpen&&(0,V.jsx)(K,{size:"sm",variant:"soft",onClick:e.onOpen,children:e.openLabel||t.showResults})]})]})}function eb(e){let t=M(fa),{formatMoney:n,formatNumber:a}=J(),l=e.low,i=e.high,s=e.value,c=i-l||1,r=(s-l)/c*100,u=e.confidence,o=u==null?null:u>=.75?["ok",t.highConfidence]:u>=.5?["warn",t.mediumConfidence]:["danger",t.lowConfidence];return(0,V.jsxs)("div",{className:"tf-valuation",children:[(0,V.jsxs)("div",{className:"tf-valuation-head",children:[(0,V.jsx)("span",{className:"tf-menu-label",style:{padding:0},children:e.title||t.estimatedValue}),o&&(0,V.jsx)(Be,{status:o[0],label:e.confidenceLabel||o[1],size:"sm"})]}),(0,V.jsx)("div",{className:"tf-valuation-val",children:n(s,e.currency)}),e.perSqm!=null&&(0,V.jsx)("span",{className:"tf-valuation-sub",children:n(e.perSqm,e.currency)+" / m\xB2"+(e.compare?" \xB7 "+e.compare:"")}),(0,V.jsxs)("div",{className:"tf-valuation-range",role:"img","aria-label":t.range(n(l,e.currency),n(i,e.currency)),children:[(0,V.jsxs)("div",{className:"tf-valuation-bar",children:[e.asking!=null&&(0,V.jsx)("span",{className:"tf-valuation-ask",style:{left:Math.max(0,Math.min(100,(e.asking-l)/c*100))+"%"},title:t.askingPrice}),(0,V.jsx)("span",{className:"tf-valuation-mark",style:{left:r+"%"}})]}),(0,V.jsxs)("div",{className:"tf-valuation-ends",children:[(0,V.jsx)("span",{children:n(l,e.currency)}),(0,V.jsx)("span",{children:n(i,e.currency)})]})]}),e.asking!=null&&(0,V.jsx)("span",{className:p("tf-valuation-diff",e.asking>i?"bad":e.asking<l?"good":""),children:t.askingPrice+" "+n(e.asking,e.currency)+" \xB7 "+(e.asking>s?"+":"")+a((e.asking-s)/s,{style:"percent",maximumFractionDigits:1})}),e.facts&&(0,V.jsx)(Fn,{dense:!0,items:e.facts}),e.note&&(0,V.jsx)("p",{className:"tf-card-desc",style:{margin:0},children:e.note}),e.action]})}var Lx=["A+","A","B","C","D","E","F","G","H"];function tb(e){let t=M(fa),{formatNumber:n}=J(),a=e.scale||Lx,l=a.indexOf(e.value);return(0,V.jsxs)("div",{className:"tf-energy",role:"img","aria-label":t.energyClass(e.value)+(e.kwh!=null?", "+n(e.kwh)+" kWh/(m\xB2\xB7a)":""),children:[(0,V.jsx)("div",{className:"tf-energy-scale",style:{gridTemplateColumns:"repeat("+a.length+", 1fr)"},children:a.map((i,s)=>(0,V.jsx)("span",{className:p("tf-energy-c",s===l&&"on"),style:{"--e":s/(a.length-1)},children:i},i))}),(e.kwh!=null||e.kind)&&(0,V.jsx)("span",{className:"tf-energy-meta",children:[e.kwh!=null&&n(e.kwh)+" kWh/(m\xB2\xB7a)",e.kind].filter(Boolean).join(" \xB7 ")})]})}var Ge=G(ye(),1),Ln=G(re(),1);var Hx={P:1,H3:1,BLOCKQUOTE:1,UL:1,OL:1,LI:1,B:1,STRONG:1,I:1,EM:1,U:1,A:1,BR:1},Ux={P:1,H3:1,BLOCKQUOTE:1,UL:1,OL:1};function nb(e){let t=document.createElement("div");return t.innerHTML=e||"",(function n(a){Array.from(a.childNodes).forEach(l=>{let i=l;if(i.nodeType===3)return;if(i.nodeType!==1||!Hx[i.tagName]){if(i.nodeType===1&&!/^(SCRIPT|STYLE|IFRAME|OBJECT)$/.test(i.tagName))for(n(i);i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i);return}let s=i.tagName==="A"?i.getAttribute("href"):null;Array.from(i.attributes).forEach(c=>{i.removeAttribute(c.name)}),i.tagName==="A"&&s&&/^(https?:|mailto:|tel:|\/|#|\{)/i.test(s)&&(i.setAttribute("href",s),i.setAttribute("rel","noopener noreferrer")),n(i)})})(t),Array.from(t.childNodes).forEach(n=>{if(n.nodeType===3?(n.textContent||"").trim():!Ux[n.tagName]){let a=document.createElement("p");t.insertBefore(a,n),a.appendChild(n)}else n.nodeType===3&&t.removeChild(n)}),t.innerHTML}function ab(e){let t=M(As),n=Ln.useRef(null),a=Ln.useState(0),l=Ln.useState({}),i=Ln.useState(!1),s=Ln.useState(""),c=Ln.useRef(null),r=Ln.useRef({stack:[],i:-1,t:void 0});function u(){return n.current}function o(){let j=window.getSelection();if(!j||!j.rangeCount)return null;let H=j.getRangeAt(0);return n.current&&n.current.contains(H.commonAncestorContainer)?H:null}function f(j){let H=window.getSelection();H&&(H.removeAllRanges(),H.addRange(j))}function d(j,H){let B=j;for(;B&&B!==u();){if(B.nodeType===1&&H(B))return B;B=B.parentNode}return null}function m(j,H){let B=j;if(B===u()){let F=u().childNodes;return F[Math.max(0,Math.min(F.length-1,(H||0)-(H?1:0)))]||null}for(;B&&B.parentNode!==u();)B=B.parentNode;return B&&B!==u()?B:null}function N(j){let H=o(),B=H&&{sc:H.startContainer,so:H.startOffset,ec:H.endContainer,eo:H.endOffset};if(j(H),B&&u().contains(B.sc)&&u().contains(B.ec))try{let F=document.createRange();F.setStart(B.sc,B.so),F.setEnd(B.ec,B.eo),f(F)}catch{}g(!0)}function S(j){let H=r.current;clearTimeout(H.t);function B(){let F=u().innerHTML;H.stack[H.i]!==F&&(H.stack=H.stack.slice(0,H.i+1).concat([F]).slice(-100),H.i=H.stack.length-1)}j?B():H.t=setTimeout(B,400)}function k(){let j=u();j&&(a[1]((j.innerText??j.textContent??"").trim().length),e.onChange&&e.onChange(nb(j.innerHTML)))}function g(j){S(j),k(),v()}function v(){let j=o();if(!j)return l[1]({});let H=j.startContainer,B=m(H),F=d(H,oe=>oe.tagName==="UL"||oe.tagName==="OL");l[1]({bold:!!d(H,oe=>oe.tagName==="B"||oe.tagName==="STRONG"),italic:!!d(H,oe=>oe.tagName==="I"||oe.tagName==="EM"),underline:!!d(H,oe=>oe.tagName==="U"),link:!!d(H,oe=>oe.tagName==="A"),heading:!!B&&B.tagName==="H3",quote:!!B&&B.tagName==="BLOCKQUOTE",list:!!F&&F.tagName==="UL",olist:!!F&&F.tagName==="OL"})}Ln.useEffect(()=>(u().innerHTML=nb(e.defaultValue||e.value||"")||"<p><br></p>",a[1]((u().innerText??u().textContent??"").trim().length),S(!0),document.addEventListener("selectionchange",v),()=>{document.removeEventListener("selectionchange",v)}),[]);function b(j){let H=j.parentNode;for(;j.firstChild;)H.insertBefore(j.firstChild,j);H.removeChild(j)}function y(j,H){let B=o();if(!B)return;let F=d(B.startContainer,Wt=>Wt.tagName===j||Wt.tagName===H);if(F)return b(F),g(!0);if(B.collapsed)return;let oe=document.createElement(j);oe.appendChild(B.extractContents()),Array.prototype.slice.call(oe.querySelectorAll(j+(H?","+H:""))).forEach(b),B.insertNode(oe);let lt=document.createRange();lt.selectNodeContents(oe),f(lt),g(!0)}function z(j){let H=m(j.startContainer,j.startOffset),B=m(j.endContainer,j.endOffset),F=[],oe=H;for(;oe&&(F.push(oe),oe!==B);)oe=oe.nextSibling;return F}function q(j){o()&&N(H=>{if(!H)return;let B=z(H),F=B.every(oe=>oe.tagName===j);B.forEach(oe=>{(oe.tagName==="UL"||oe.tagName==="OL"?Array.from(oe.children):[oe]).forEach(Wt=>{let Tl=document.createElement(F?"P":j);for(;Wt.firstChild;)Tl.appendChild(Wt.firstChild);u().insertBefore(Tl,oe)}),u().removeChild(oe)})})}function U(j){o()&&N(H=>{if(!H)return;let B=z(H),F=B[0];if(!F)return;if(B.length===1&&F.tagName===j){Array.from(F.children).forEach(lt=>{let Wt=document.createElement("P");for(;lt.firstChild;)Wt.appendChild(lt.firstChild);u().insertBefore(Wt,F)}),u().removeChild(F);return}let oe=document.createElement(j);u().insertBefore(oe,F),B.forEach(lt=>{(lt.tagName==="UL"||lt.tagName==="OL"?Array.from(lt.children):[lt]).forEach(Tl=>{let fi=document.createElement("LI");for(;Tl.firstChild;)fi.appendChild(Tl.firstChild);oe.appendChild(fi)}),u().removeChild(lt)})})}function O(){let j=o();if(!j)return;c.current=j.cloneRange();let H=d(j.startContainer,B=>B.tagName==="A");s[1](H&&H.getAttribute("href")||""),i[1](!0)}function P(j){let H=c.current;if(i[1](!1),!H)return;u().focus(),f(H);let B=d(H.startContainer,lt=>lt.tagName==="A"),F=s[0].trim();if(F&&!/^(https?:|mailto:|tel:|\/|#|\{)/i.test(F)&&(F="https://"+F),j||!F)return B&&b(B),g(!0);if(B)return B.setAttribute("href",F),g(!0);let oe=document.createElement("A");oe.setAttribute("href",F),oe.setAttribute("rel","noopener noreferrer"),H.collapsed?oe.textContent=F:oe.appendChild(H.extractContents()),H.insertNode(oe),g(!0)}function I(j){let H=o();if(H||(u().focus(),H=o()),!H)return;H.deleteContents();let B=document.createTextNode(j);H.insertNode(B);let F=document.createRange();F.setStartAfter(B),F.collapse(!0),f(F),g(!0)}function Fe(j){let H=r.current;S(!0);let B=H.i+j;if(B<0||B>=H.stack.length)return;H.i=B,u().innerHTML=H.stack[B]??"";let F=document.createRange();F.selectNodeContents(u()),F.collapse(!1),f(F),k()}function ua(j){if(!(j.metaKey||j.ctrlKey))return;let B=j.key.toLowerCase();B==="b"?(j.preventDefault(),y("B","STRONG")):B==="i"?(j.preventDefault(),y("I","EM")):B==="u"?(j.preventDefault(),y("U")):B==="k"?(j.preventDefault(),O()):B==="z"?(j.preventDefault(),Fe(j.shiftKey?1:-1)):B==="y"&&(j.preventDefault(),Fe(1))}function kn(j){j.preventDefault();let B=j.clipboardData.getData("text/plain").replace(/\r/g,"").split(`
|
|
30
|
-
`);if(I(B[0]??""),B.length>1){let F=o(),lt=F&&m(F.startContainer,F.startOffset);if(!lt)return g(!0);B.slice(1).forEach(Tl=>{let fi=document.createElement("P");fi.textContent=Tl;let ih=lt;ih.parentNode?.insertBefore(fi,ih.nextSibling),lt=fi});let Wt=document.createRange();Wt.selectNodeContents(lt),Wt.collapse(!1),f(Wt),g(!0)}}function Kc(){let j=u();(!j.firstChild||j.innerHTML==="<br>")&&(j.innerHTML="<p><br></p>"),Array.from(j.childNodes).forEach(H=>{if(H.nodeType===3&&(H.textContent||"").trim()){let B=document.createElement("P");j.insertBefore(B,H),B.appendChild(H);let F=document.createRange();F.selectNodeContents(B),F.collapse(!1),f(F)}}),g(!1)}let zS=[["bold",()=>{y("B","STRONG")},t.bold,"B"],["italic",()=>{y("I","EM")},t.italic,"I"],["underline",()=>{y("U")},t.underline,"U"],"-",["heading",()=>{q("H3")},t.heading],["quote",()=>{q("BLOCKQUOTE")},t.quote],["list",()=>{U("UL")},t.bulletedList],["olist",()=>{U("OL")},t.numberedList],"-",["link",O,t.link,"K"],"-",["undo",()=>{Fe(-1)},t.undo,"Z"],["redo",()=>{Fe(1)},t.redo]],lh=e.maxLength&&a[0]>e.maxLength,AS=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform||"")?"\u2318":"Ctrl+";return(0,Ge.jsx)(mt,{label:e.label,hint:e.hint,error:e.error,children:(0,Ge.jsxs)("div",{className:p("tf-rte",lh&&"invalid"),children:[(0,Ge.jsxs)("div",{className:"tf-rte-bar",role:"toolbar","aria-label":t.formatting,children:[zS.map((j,H)=>{if(j==="-")return(0,Ge.jsx)("span",{className:"tf-rte-sep","aria-hidden":!0},H);let B=(0,Ge.jsx)("button",{type:"button",className:p("tf-rte-btn",l[0][j[0]]&&"on"),title:j[2]+(j[3]?" ("+AS+j[3]+")":""),"aria-label":j[2],"aria-pressed":j[0]==="undo"||j[0]==="redo"?void 0:!!l[0][j[0]],disabled:e.disabled,onMouseDown:F=>{F.preventDefault()},onClick:j[1],children:(0,Ge.jsx)(x,{name:j[0],size:15})},H);return j[0]==="link"?(0,Ge.jsx)(Ue,{width:300,open:i[0],onOpenChange:i[1],trigger:B,children:(0,Ge.jsxs)("form",{className:"tf-col",style:{gap:8},onSubmit:F=>{F.preventDefault(),P(!1)},children:[(0,Ge.jsx)("input",{className:"tf-input",autoFocus:!0,value:s[0],onChange:F=>{s[1](F.target.value)},placeholder:t.linkAddress,"aria-label":t.linkAddress,inputMode:"url"}),(0,Ge.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end",gap:8},children:[l[0].link&&(0,Ge.jsx)(K,{size:"sm",variant:"ghost",onClick:()=>{P(!0)},children:t.removeLink}),(0,Ge.jsx)(K,{size:"sm",type:"submit",children:t.apply})]})]})},H):B}),e.variables&&e.variables.length>0&&(0,Ge.jsx)(Ue,{width:240,trigger:j=>(0,Ge.jsxs)("button",{type:"button",className:"tf-rte-var",onMouseDown:H=>{H.preventDefault()},onClick:j.toggle,"aria-expanded":j.open,children:["{ }",(0,Ge.jsx)("span",{children:t.insertField})]}),children:j=>(0,Ge.jsx)("div",{className:"tf-menu",children:(e.variables||[]).map(H=>(0,Ge.jsxs)("button",{type:"button",className:"tf-menu-item",onMouseDown:B=>{B.preventDefault()},onClick:()=>{I("{"+H.key+"}"),j.close&&j.close()},children:[(0,Ge.jsx)("span",{style:{flex:1},children:H.label}),(0,Ge.jsx)("code",{children:"{"+H.key+"}"})]},H.key))})})]}),(0,Ge.jsx)("div",{ref:n,className:"tf-rte-area",contentEditable:!e.disabled,role:"textbox","aria-multiline":"true","aria-label":typeof e.label=="string"?e.label:t.text,"data-placeholder":e.placeholder||"",suppressContentEditableWarning:!0,onInput:Kc,onKeyDown:ua,onPaste:kn,onBlur:k,style:{minHeight:e.minHeight||160}}),(e.maxLength||e.footer)&&(0,Ge.jsxs)("div",{className:"tf-rte-foot",children:[e.footer,e.maxLength&&(0,Ge.jsx)("span",{className:p("tf-rte-count",lh&&"over"),children:wn(a[0])+" / "+wn(e.maxLength)})]})]})})}var se=G(ye(),1),Za=G(re(),1);function Pu(e){let t=M(zl);return(0,se.jsxs)("nav",{className:"tf-topbar","aria-label":t.mainNavigation,children:[e.brand&&(0,se.jsxs)("span",{className:"tf-brand",children:[e.brand,(0,se.jsx)("span",{className:"tf-brand-dot","aria-hidden":!0}),e.tag&&(0,se.jsx)("span",{className:"tf-brand-tag",children:e.tag})]}),(0,se.jsx)("div",{className:"tf-nav",children:(e.items||[]).map(n=>{let a=n.label===e.active;return(0,se.jsxs)("button",{type:"button",className:"tf-nav-item","aria-current":a?"page":void 0,title:n.label,onClick:()=>{e.onNavigate&&e.onNavigate(n.label)},children:[(0,se.jsx)(x,{name:n.icon}),(0,se.jsx)("span",{className:"tf-nav-label",children:n.label}),n.count?(0,se.jsx)("span",{className:"tf-nav-count",children:n.count}):null]},n.label)})}),e.extra&&(0,se.jsx)("div",{className:"tf-topbar-extra",children:e.extra}),e.user&&(0,se.jsxs)("button",{type:"button",className:"tf-user","aria-haspopup":"menu","aria-expanded":e.userOpen?"true":"false",onClick:e.onUser,children:[(0,se.jsx)(Ve,{name:e.user.name,size:28}),(0,se.jsxs)("span",{className:"tf-user-text",children:[(0,se.jsx)("span",{className:"tf-user-name",children:e.user.name}),e.user.email&&(0,se.jsx)("span",{className:"tf-user-mail",children:e.user.email})]}),(0,se.jsx)(x,{name:"chevronDown",size:14})]})]})}function lb(e,t){return(0,se.jsxs)("button",{type:"button",className:"tf-rail-btn",style:{animationDelay:`calc(${200+t*50}ms * var(--motion-time, 1))`},"aria-label":e.count?`${e.label}, ${e.count}`:e.label,title:e.label,"aria-current":e.active?"page":void 0,onClick:e.onClick,children:[(0,se.jsx)(x,{name:e.icon}),e.count?(0,se.jsx)("span",{className:"tf-dotcount",children:e.count}):null]},e.label)}function Wu(e){let t=M(zl);return(0,se.jsxs)("aside",{className:"tf-rail","aria-label":t.tools,children:[(0,se.jsx)("div",{className:"tf-rail-group",children:(e.top||[]).map(lb)}),(0,se.jsx)("div",{className:"tf-rail-group",children:(e.bottom||[]).map((n,a)=>lb(n,a+3))})]})}function ef(e){let t=M(zl);return(0,se.jsx)("div",{className:p("tf-dock",e.surface&&"tf-"+e.surface,e.className),style:e.style,role:"toolbar","aria-label":e.label||t.quickActions,children:(e.items||[]).map(n=>(0,se.jsx)("button",{type:"button",className:p("tf-dock-btn","tf-t-"+(n.tint||"plain")),"aria-label":n.label,title:n.label,onClick:n.onClick,children:(0,se.jsx)(x,{name:n.icon})},n.label))})}function ib(e){let t=e.surface??"glass";return(0,se.jsxs)("div",{className:p("tf-floating",e.className),style:{minHeight:e.height??640,...e.style},role:"region","aria-label":e.label,"data-surface":t,children:[e.background!=null&&(0,se.jsx)("div",{className:"tf-floating-bg",children:e.background}),(0,se.jsxs)("div",{className:"tf-floating-ui",children:[e.top!=null&&(0,se.jsx)("div",{className:"tf-floating-top",children:e.top}),e.start!=null&&(0,se.jsx)("div",{className:"tf-floating-start",children:e.start}),e.end!=null&&(0,se.jsx)("div",{className:"tf-floating-end",children:e.end}),e.bottom!=null&&(0,se.jsx)("div",{className:"tf-floating-bottom",children:e.bottom})]}),e.children]})}function sb(e){let t=Za.useRef(null),[n,a]=Za.useState(!1),l=e.animate!==!1&&!e.src&&!e.children;Za.useEffect(()=>{let r=t.current;if(!r||!l||typeof IntersectionObserver>"u")return;let u=new IntersectionObserver(o=>a(!o.some(f=>f.isIntersecting)));return u.observe(r),()=>u.disconnect()},[l]);let i=Za.useRef(null);Za.useEffect(()=>{let r=i.current;r&&Rn(r)&&r.pause()},[e.src]);let s=e.colors?.length?e.colors:["var(--ambient-1)","var(--ambient-2)","var(--ambient-3)","var(--ambient-4)"],c=!!e.src&&!e.children;return(0,se.jsx)("div",{ref:t,"aria-hidden":!0,className:p("tf-ambient",e.fixed&&"fixed",c&&"media",!l&&"still",e.className),style:e.style,"data-paused":n?"":void 0,children:e.children??(c?e.video?(0,se.jsx)("video",{ref:i,className:"tf-ambient-media",src:e.src,muted:!0,loop:!0,autoPlay:!0,playsInline:!0}):(0,se.jsx)("img",{className:"tf-ambient-media",src:e.src,alt:""}):s.map((r,u)=>(0,se.jsx)("span",{className:"tf-ambient-field",style:{"--field":r}},u)))})}var tf=()=>[{label:"Home",icon:"home"},{label:"People",icon:"users"},{label:"Projects",icon:"grid"},{label:"Inbox",icon:"mail"},{label:"Calendar",icon:"calendar"},{label:"Billing",icon:"card"},{label:"Reports",icon:"chart"},{label:"Settings",icon:"settings"}],Bx=()=>[{label:"Share",icon:"share",active:!0},{label:"List view",icon:"menu"},{label:"Grid view",icon:"grid"}],Vx=()=>[{label:"Notifications",icon:"bell",count:3},{label:"Zoom in",icon:"plus"},{label:"Zoom out",icon:"minus"}],qx=()=>[{label:"Invite",icon:"users",tint:"sky"},{label:"New page",icon:"file",tint:"lilac"},{label:"New invoice",icon:"card",tint:"blush"},{label:"Announce",icon:"send",tint:"butter"},{label:"Export",icon:"download",tint:"mint"},{label:"More",icon:"plus"}];function cb(e){return(0,se.jsxs)("div",{className:p("tf-shell",e.className),style:e.style,children:[(0,se.jsx)(Pu,{brand:e.brand,tag:e.tag,active:e.active,items:e.nav||tf(),onNavigate:e.onNavigate,user:e.user,extra:e.topExtra}),(0,se.jsxs)("div",{className:p("tf-sheet",!e.side&&"tf-sheet-2"),style:e.sheetStyle,children:[(0,se.jsx)(Wu,{top:e.railTop||Bx(),bottom:e.railBottom||Vx()}),(0,se.jsx)("main",{className:p("tf-main",e.dock!==!1&&"tf-main-dock"),children:e.children},e.contentKey),e.side||null,e.dock!==!1&&(0,se.jsx)("div",{className:"tf-dock-float",children:(0,se.jsx)(ef,{items:e.dockItems||qx()})})]})]})}var de=G(ye(),1),zi=G(re(),1);function rb(e){let t=M(Al),n=$(e.open,!1,e.onOpenChange);return(0,de.jsxs)("div",{className:p("tf-launch",n[0]&&"open",e.inline&&"inline"),children:[n[0]&&(0,de.jsxs)("div",{className:"tf-launch-panel",role:"dialog","aria-label":e.title||t.assistant,children:[(0,de.jsxs)("div",{className:"tf-launch-head",children:[(0,de.jsx)(Xt,{tint:e.tint||"lilac",size:32}),(0,de.jsxs)("div",{className:"tf-option-text",style:{flex:1},children:[(0,de.jsx)("b",{children:e.title||t.assistant}),e.context&&(0,de.jsx)("small",{children:e.context})]}),e.headerAction,(0,de.jsx)(W,{icon:"x",size:"sm",label:t.close,onClick:()=>{n[1](!1)}})]}),(0,de.jsx)("div",{className:"tf-launch-body",children:e.children}),e.composer&&(0,de.jsx)("div",{className:"tf-launch-foot",children:e.composer})]}),(0,de.jsxs)("button",{type:"button",className:"tf-launch-btn","aria-label":n[0]?t.closeAssistant:e.title||t.openAssistant,"aria-expanded":n[0],onClick:()=>{n[1](!n[0])},children:[(0,de.jsx)(x,{name:n[0]?"x":"sparkle",size:22}),!n[0]&&(e.unread??0)>0&&(0,de.jsx)("span",{className:"tf-nav-count",children:e.unread})]})]})}function ob(e){let t=M(Al),n=zi.useState(!1),a=zi.useState((e.categories||[]).reduce((i,s)=>(i[s.id]=!!(s.required||s.default),i),{}));if(e.open===!1)return null;function l(i){let s=Object.assign({},a[0]);(e.categories||[]).forEach(c=>{i===!0&&(s[c.id]=!0),i===!1&&(s[c.id]=!!c.required)}),e.onSave&&e.onSave(s)}return(0,de.jsxs)("div",{className:p("tf-cookie",e.inline&&"inline"),role:"dialog","aria-label":e.title||t.privacySettings,children:[(0,de.jsxs)("div",{className:"tf-row",style:{gap:12,alignItems:"flex-start",flexWrap:"nowrap"},children:[(0,de.jsx)(ce,{icon:"cookie",tint:"butter",size:36}),(0,de.jsxs)("div",{className:"tf-col",style:{gap:4},children:[(0,de.jsx)("b",{children:e.title||t.privacySettings}),(0,de.jsxs)("p",{className:"tf-card-desc",style:{margin:0},children:[e.text||t.cookieText,e.policy&&(0,de.jsxs)(zi.Fragment,{children:[" ",e.policy]})]})]})]}),n[0]&&(0,de.jsx)("div",{className:"tf-cookie-cats",children:(e.categories||[]).map(i=>(0,de.jsxs)("div",{className:"tf-cookie-cat",children:[(0,de.jsxs)("div",{className:"tf-option-text",style:{flex:1},children:[(0,de.jsx)("b",{children:i.label}),i.text&&(0,de.jsx)("small",{children:i.text})]}),i.required?(0,de.jsx)("span",{className:"tf-card-desc",children:t.alwaysOn}):(0,de.jsx)(Qa,{checked:!!a[0][i.id],onChange:()=>{let s=Object.assign({},a[0]);s[i.id]=!s[i.id],a[1](s)}})]},i.id))}),(0,de.jsxs)("div",{className:"tf-cookie-actions",children:[n[0]?(0,de.jsx)(K,{variant:"secondary",onClick:()=>{l(void 0)},children:t.saveChoice}):(0,de.jsx)(K,{variant:"ghost",onClick:()=>{n[1](!0)},children:t.settings}),(0,de.jsx)(K,{variant:"secondary",onClick:()=>{l(!1)},children:t.onlyNecessary}),(0,de.jsx)(K,{onClick:()=>{l(!0)},children:t.acceptAll})]})]})}function ub(e){let t=M(Al),n=zi.useState(!1);return n[0]?null:(0,de.jsxs)("div",{className:p("tf-announce","tf-t-"+(e.tint||"butter")),role:"status",children:[e.icon!==!1&&(0,de.jsx)(x,{name:e.icon||"sparkle",size:15}),(0,de.jsx)("span",{children:e.children}),e.action,e.onDismiss!==!1&&(0,de.jsx)("button",{type:"button",className:"tf-announce-x","aria-label":t.dismiss,onClick:()=>{n[1](!0),e.onDismiss&&e.onDismiss()},children:(0,de.jsx)(x,{name:"x",size:14})})]})}var Pe=G(ye(),1),wR=G(re(),1);function fb(e){let t=e.code||"404",n={404:["Page not found","The link may be old, or the page moved. Nothing is broken on your side.","search","sky"],500:["Something broke on our side","We\u2019ve been notified and are on it. Your data is safe; try again in a minute.","x","blush"],maintenance:["Back in a few minutes","We\u2019re upgrading the database. Everything you saved is safe.","settings","butter"],offline:["You\u2019re offline","Changes are kept on this device and sync when you\u2019re back.","globe","lilac"],403:["You don\u2019t have access","Ask a workspace owner to invite you to this area.","lock","lilac"]}[t]||[e.title,e.text,"sparkle","sky"];return(0,Pe.jsxs)("div",{className:"tf-status-screen",children:[(0,Pe.jsxs)("div",{className:"tf-status-art","aria-hidden":!0,children:[/^\d+$/.test(t)&&(0,Pe.jsx)("span",{className:"tf-status-code",children:t}),(0,Pe.jsx)(ce,{icon:e.icon||n[2],tint:e.tint||n[3],size:56})]}),(0,Pe.jsx)("h1",{children:e.title||n[0]}),(0,Pe.jsx)("p",{children:e.text||n[1]}),e.extra,(0,Pe.jsx)("div",{className:"tf-row",style:{justifyContent:"center"},children:e.actions||[(0,Pe.jsx)(K,{icon:"home",onClick:e.onHome,children:"Back to overview"},"h"),(0,Pe.jsx)(K,{variant:"secondary",icon:"mail",onClick:e.onContact,children:"Contact support"},"s")]}),e.reference&&(0,Pe.jsx)("span",{className:"tf-status-ref",children:`Reference ${e.reference}`})]})}function db(e){return(0,Pe.jsxs)("div",{className:"tf-auth",children:[e.brand&&(0,Pe.jsxs)("div",{className:"tf-auth-brand",children:[(0,Pe.jsx)("span",{className:"tf-brand-word",children:e.brand}),(0,Pe.jsx)("span",{className:"tf-brand-dot"})]}),e.icon&&(0,Pe.jsx)(ce,{icon:e.icon,tint:e.tint||"sky",size:48}),(0,Pe.jsxs)("div",{className:"tf-col",style:{gap:8},children:[(0,Pe.jsx)("h1",{className:"tf-auth-title",children:e.title}),e.text&&(0,Pe.jsx)("p",{className:"tf-auth-text",children:e.text})]}),e.children,e.foot&&(0,Pe.jsx)("div",{className:"tf-auth-foot",children:e.foot})]})}var Xe=G(re(),1),bu=G(lr(),1),TS=G(mS(),1);var gS=/^\d{4}-\d{2}-\d{2}(?:[T ][\d:.]+(?:Z|[+-]\d{2}:?\d{2})?)?$/,hS=/^\s*-?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?\s*$/i;function eh(e){let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t}function X5(e,t){return typeof t=="string"&&gS.test(t)?eh(t)??t:t}function vS(e,t){if(t===null)return;if(e.flags.includes("?")&&t==="null")return null;switch(e.kind){case"b":return t!=="false";case"n":return hS.test(t)?Number(t):void 0;case"x":return hS.test(t)?Number(t):t;case"s":return e.flags.includes("!")&&t==="false"?!1:t;case"d":return eh(t);case"r":return t;case"R":case"K":case"j":{let a=t.trim();try{return JSON.parse(a,e.flags.includes("t")?X5:void 0)}catch{return e.kind==="R"?[t]:e.flags.includes("t")&&gS.test(a)?eh(a):e.flags.includes("l")?a.split(",").map(l=>l.trim()).filter(Boolean):t}}default:return}}function bS(e){if(!e||!e.trim())return;let t={};for(let n of e.split(/;(?![^(]*\))/)){let a=n.indexOf(":");if(a<0)continue;let l=n.slice(0,a).trim(),i=n.slice(a+1).trim();!l||!i||(t[l.startsWith("--")?l:l.replace(/-([a-z])/g,(s,c)=>c.toUpperCase())]=i)}return t}function pS(e){if(!e||typeof e!="object"||!("nativeEvent"in e)||!("target"in e))return e;let t=e.target;return t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")?t.checked:t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?t.value:null}function yS(e){return!!e&&typeof e=="object"&&"nativeEvent"in e&&"target"in e}function NS(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase()}function SS(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var gu=e=>e?e.split(" ").filter(Boolean):[];function xS(e){let t=gu(e.p).map(l=>{let[i="",s="j"]=l.split(":");return{name:i,attr:NS(i),kind:s.charAt(0),flags:s.slice(1)}}),n=gu(e.e).map(l=>{let[i="",s="0"]=l.split(":");return{prop:i,type:i.slice(2).toLowerCase(),arity:parseInt(s,10)||0,conditional:s.endsWith("?")}}),a=gu(e.s).map(l=>{let[i="",s="",c="detail"]=l.split(":");return{event:i,prop:s,from:c==="false"?"false":"detail"}});return{tag:e.t,component:e.c,props:t,byAttr:new Map(t.map(l=>[l.attr,l])),byName:new Map(t.map(l=>[l.name,l])),events:n,byType:new Map(n.map(l=>[l.type,l])),sync:a,dismiss:new Set(gu(e.x)),dialog:!!e.dialog,closeChildren:!!e.close}}var th=new WeakSet,K5=new Set(["title","role","lang"]),Z5=e=>K5.has(e)||e.startsWith("aria-"),ES=new Set(["id","slot","hidden","children","className","style","dir","inert","autofocus","tabIndex","accessKey","draggable","translate","spellcheck","contentEditable","nonce","part","popover","innerHTML","textContent"]),CS="tf-root",nh=0;function vu(e){for(let t=e.parentNode;t;t=t.parentNode)if(t instanceof Oa)return t;return null}function F5(e,t){for(let n=e.parentNode;n&&n!==t;n=n.parentNode){if(n===t._stash)return"stash";let a=n.__tfSlot;if(a)return a.owner===t?a:null}return null}var I5=e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&!/^\s*\n\s*$/.test(e.nodeValue??"")&&e.nodeValue!=="";function MS({el:e}){return(0,Xe.useSyncExternalStore)(e._subscribe,e._snapshot,e._snapshot),(0,Xe.useLayoutEffect)(()=>{e._sweep()}),e._view()}function ah({owner:e,nodes:t}){let n=(0,Xe.useRef)(null),[a,l]=(0,Xe.useState)([]),i=(0,Xe.useMemo)(()=>{let s=[],c={owner:e,rescan(){let r=n.current;if(!r||!r.isConnected)return;let u=[];for(let o of r.querySelectorAll("*"))o instanceof Oa&&vu(o)===e&&o.isConnected&&u.push(o);for(let o of u)o._slot!==c&&o._enterPortal(c);for(let o of s)!u.includes(o)&&o._slot===c&&o._leave();(u.length!==s.length||u.some((o,f)=>o!==s[f]))&&(s=u,l(u))},release(r){s.includes(r)&&(s=s.filter(u=>u!==r),l(s))}};return c},[e]);return(0,Xe.useLayoutEffect)(()=>{let s=n.current;if(!s)return;if(s.__tfSlot=i,!(s.childNodes.length===t.length&&t.every((f,d)=>s.childNodes[d]===f)))for(let f of t)s.appendChild(f);let r=!1,u=()=>{r||(r=!0,queueMicrotask(()=>{r=!1,i.rescan()}))};u();let o=new MutationObserver(f=>{for(let d of f)for(let m of[d.addedNodes,d.removedNodes])for(let N of m)if(N instanceof Element&&(N instanceof Oa||N.querySelector(Oa.selector)))return u()});return o.observe(s,{childList:!0,subtree:!0}),()=>{o.disconnect(),queueMicrotask(()=>e._sweep())}},[t,i,e]),(0,Xe.createElement)("span",{ref:n,"data-tf-slot":"",style:{display:"contents"}},a.map(s=>s._mount?(0,bu.createPortal)((0,Xe.createElement)(MS,{el:s}),s._mount,s._mountKey):null))}function J5({onClose:e,children:t}){let n=(0,Xe.useRef)(null);return Ol(n,e),(0,Xe.useEffect)(()=>{let a=setTimeout(()=>{let l=n.current,i=l?.querySelector('[autofocus], input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select'),s=document.activeElement,c=s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement;l&&i&&!(c&&l.contains(s))&&i.focus()},30);return()=>clearTimeout(a)},[]),(0,Xe.createElement)("div",{ref:n,"data-tf-dialog":"",style:{position:"fixed",inset:0,zIndex:85,overflowY:"auto"},onClick:a=>{a.target instanceof Element&&a.target.classList.contains("tf-backdrop")&&e?.()}},t)}var Oa=class e extends HTMLElement{static def;static component;static selector="tf-provider";_key=`tf${(++nh).toString(36)}`;_values=new Map;_fns=new Map;_slots=null;_views=new Map;_root=null;_mount=null;_mountKey="";_slot=null;_stash=null;_rendered=!1;_version=0;_subs=new Set;_listeners=new Map;_callbacks=new Map;_closeFn;_stripping=new Set;_waiting=!1;_observer=null;constructor(){super();let t=this._def;for(let a of t.events)a.type!=="click"&&HTMLElement.prototype.addEventListener.call(this,a.type,l=>{!th.has(l)&&l.target!==this&&this._isOwnDom(l.target)&&l.stopImmediatePropagation()});if(t.closeChildren){let a=l=>{l.target!==this&&th.has(l)&&this._closeFn?.()};HTMLElement.prototype.addEventListener.call(this,"close",a),this._listeners.set("close",new Set([a]))}let n=this;for(let a of[...t.props.map(l=>l.name),...t.events.map(l=>l.prop)])if(!ES.has(a)&&Object.prototype.hasOwnProperty.call(this,a)){let l=n[a];delete n[a],n[a]=l}}get _def(){return this.constructor.def}connectedCallback(){this._waiting||(document.readyState==="loading"?(this._waiting=!0,document.addEventListener("DOMContentLoaded",()=>{this._waiting=!1,this._attach()},{once:!0})):queueMicrotask(()=>this._attach()))}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||this._leave()})}attributeChangedCallback(t,n,a){if(a===null&&this._stripping.delete(t))return;let i=this._def.byAttr.get(t);if(i){let s=vS(i,a);s===void 0?this._values.delete(i.name):this._values.set(i.name,s),Z5(t)&&a!==null&&(this._stripping.add(t),this.removeAttribute(t))}this._bump()}_attach(){if(!this.isConnected)return;let t=vu(this);if(t){let l=F5(this,t);if(l==="stash")return;if(l){this._slot!==l&&l.rescan();return}if(!t._rendered)return}if(this._root)return;this._leave(),this._prepare();let n=this._newMount(),a=(0,TS.createRoot)(n,{identifierPrefix:`${this._key}-`});this._root=a,(0,bu.flushSync)(()=>a.render((0,Xe.createElement)(MS,{el:this})))}_leave(){let t=this._root,n=this._slot;this._root=null,this._slot=null,this._mount?.remove(),this._mount=null,t&&t.unmount(),n?.release(this)}_enterPortal(t){this._leave(),this._prepare(),this._newMount(),this._slot=t}_newMount(){let t=document.createElement(CS);return t.style.display="contents",this._mount=t,this._mountKey=`${this._key}-${(++nh).toString(36)}`,this.appendChild(t),t}_prepare(){if(!this._slots){this._slots=new Map;for(let t of[...this.childNodes])this._take(t);this._observer=new MutationObserver(t=>{if(this._mount&&this._mount.parentNode!==this){this._slots=null,this._views.clear(),this._observer?.disconnect(),this._leave(),this._attach();return}let n=!1;for(let a of t)for(let l of a.addedNodes)l.parentNode===this&&(n=this._take(l)||n);n&&(this._views.clear(),this._bump())}),this._observer.observe(this,{childList:!0})}}_take(t){if(t===this._mount||t===this._stash||t instanceof Element&&t.localName===CS||!I5(t))return!1;let n=t instanceof Element?t.getAttribute("slot"):null,a="children";if(n){let l=n.indexOf(":"),i=SS(l<0?n:n.slice(0,l));a=l<0?i:`${i}:${n.slice(l+1)}`}return this._slots?.set(a,[...this._slots.get(a)??[],t]),!0}_sweep(){if(this._rendered=!0,!!this._slots){for(let t of this._slots.values())for(let n of t)if(n.parentNode===this||!this.contains(n)){if(!this._stash){let a=document.createElement("div");a.hidden=!0,a.dataset.tfStash="",this._stash=a}this._stash.parentNode!==this&&this.appendChild(this._stash),this._stash.appendChild(n)}}}_isOwnDom(t){for(let n=t;n&&n!==this;n=n.parentNode)if(n.__tfSlot?.owner===this)return!1;return!0}_subscribe=t=>(this._subs.add(t),()=>this._subs.delete(t));_snapshot=()=>this._version;_bump(){this._version++;for(let t of this._subs)t()}addEventListener(t,n,a){if(!n)return;super.addEventListener(t,n,a);let l=this._listeners.get(t);l||this._listeners.set(t,l=new Set);let i=l.size===0;l.add(n),i&&this._bumpTree(t)}removeEventListener(t,n,a){if(!n)return;super.removeEventListener(t,n,a);let l=this._listeners.get(t);l?.delete(n)&&l.size===0&&this._bumpTree(t)}_listens(t){let n=a=>{let l=a;return!!a._listeners.get(t)?.size||a.hasAttribute(`on${t}`)||typeof l[`on${t}`]=="function"||typeof l[`__${t}`]=="function"};if(n(this))return!0;for(let a=vu(this);a;a=vu(a))if(n(a))return!0;return!1}_bumpTree(t){this._def.byType.get(t)?.conditional&&this._bump();for(let n of this.querySelectorAll(e.selector))n instanceof e&&n._def.byType.get(t)?.conditional&&n._bump()}_slotView(t,n){let a=`${t}|${n?1:0}`;if(this._views.has(a))return this._views.get(a);let l=this._slots?.get(t),i;return l?.length&&(i=l.length===1&&!n?(0,Xe.createElement)(ah,{owner:this,nodes:l}):l.map((s,c)=>(0,Xe.createElement)(ah,{key:c,owner:this,nodes:[s]}))),this._views.set(a,i),i}_nodeView(t){if(t instanceof Node){let n=this._views.get(`node|${t.__tfKey??""}`);if(!n){let a=t.__tfKey??=`n${(++nh).toString(36)}`;n=(0,Xe.createElement)(ah,{key:a,owner:this,nodes:[t]}),this._views.set(`node|${a}`,n)}return n}return Array.isArray(t)?t.map(n=>this._nodeView(n)):t}_propValue(t){if(t.kind==="r"||t.kind==="R"){let a=this._slotView(t.name,t.kind==="R");if(a!==void 0)return a}if(t.kind==="K"&&this._slots){let a;for(let l of this._slots.keys())l.startsWith(`${t.name}:`)&&((a??={})[l.slice(t.name.length+1)]=this._slotView(l,!1));if(a)return{...this._values.get(t.name),...a}}if(t.kind==="f")return this._fns.get(t.name);let n=this._values.get(t.name);if(n!==void 0)return t.kind==="r"||t.kind==="R"?this._nodeView(n):n}_callback(t){let n=this._callbacks.get(t.prop);return n||(n=(...a)=>this._fire(t,a),this._callbacks.set(t.prop,n)),n}_fire(t,n){let a=this._fns.get(t.prop),l=a?a.apply(this,n):void 0,i=n[0];if(t.type==="click"&&yS(i)&&i.nativeEvent.type==="click")return l;let s=n.map(pS),c=t.arity>1?Array.from({length:Math.max(t.arity,s.length)},(u,o)=>s[o]):s.length?s[0]:null,r=new CustomEvent(t.type,{detail:c,bubbles:!0,composed:!0,cancelable:!0});return th.add(r),this.dispatchEvent(r)&&this._after(t,s[0]),l}_after(t,n){let a=this._def,l=!1;for(let i of a.sync)i.event===t.prop&&this._values.get(i.prop)!==void 0&&(this._values.set(i.prop,i.from==="false"?!1:n),l=!0);l?this._bump():a.dismiss.has(t.prop)&&(this.hidden=!0)}_passes(t){return!t.conditional||this._fns.has(t.prop)||this._def.sync.some(n=>n.event===t.prop&&this._values.get(n.prop)!==void 0)?!0:this._listens(t.type)}_props(){let t=this._def,n={};for(let s of t.props){let c=this._propValue(s);c!==void 0&&(n[s.name]=c)}let a=this._slotView("children",!1);t.closeChildren?n.children=s=>(this._closeFn=s.close,a??null):a!==void 0&&(n.children=a);let l=this.getAttribute("class");l&&(n.className=l);let i=bS(this.getAttribute("style"));i&&(n.style=i);for(let s of t.events)this._passes(s)&&(n[s.prop]=this._callback(s));return n}_view(){if(this.hidden)return null;let t=this.constructor.component,n=this._props(),a=(0,Xe.createElement)(t,n);return this._def.dialog?(0,Xe.createElement)(J5,{onClose:n.onClose},a):a}};function kS(e,t){let n=[...e.props.filter(s=>s.kind!=="f").map(s=>s.attr),...e.events.map(s=>`on${s.type}`),"class","style","hidden"];class a extends Oa{static def=e;static component=t;static observedAttributes=[...new Set(n)]}let l=a.prototype,i=(s,c,r)=>{ES.has(s)||Object.defineProperty(l,s,{configurable:!0,enumerable:!0,get:c,set:r})};for(let s of e.props)i(s.name,function(){return s.kind==="f"?this._fns.get(s.name):this._values.get(s.name)},function(c){s.kind==="f"?typeof c=="function"?this._fns.set(s.name,c):this._fns.delete(s.name):c===void 0?this._values.delete(s.name):this._values.set(s.name,c),this._views.clear(),this._bump()});for(let s of e.events)i(s.prop,function(){return this._fns.get(s.prop)},function(c){typeof c=="function"?this._fns.set(s.prop,c):this._fns.delete(s.prop),this._bump()});return a}var pu=[{t:"tf-provider",c:"UIProvider",p:"kit:s theme:s density:s scope:s tokens:j surface:s motion:s locale:s messages:j"},{t:"tf-icon",c:"Icon",p:"name:s size:n label:s"},{t:"tf-range-slider",c:"RangeSlider",p:"label:r min:n max:n step:n value:j defaultValue:j unit:s inputs:b openEnd:b format:f hint:r",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-bar-list",c:"BarList",p:"items:j format:f label:s",e:"onPick:1?"},{t:"tf-status-select",c:"StatusSelect",p:"options:j value:s defaultValue:s size:s label:s width:n",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-tile-picker",c:"TilePicker",p:"options:j value:j defaultValue:j multiple:b min:n label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-live-feed",c:"LiveFeed",p:"items:j types:j paused:b maxHeight:n emptyText:s",e:"onPause:1"},{t:"tf-map-view",c:"MapView",p:"points:j bounds:j background:r bubbles:b selected:x? renderPopup:f legend:r controls:r height:x label:s surface:s",e:"onSelect:1"},{t:"tf-balance-card",c:"BalanceCard",p:"name:s sub:r logo:r icon:s tint:s balance:n currency:s perDay:n low:n spark:j status:s statusLabel:s topUpLabel:s action:r",e:"onTopUp:0?"},{t:"tf-service-monitor",c:"ServiceMonitor",p:"items:j label:s"},{t:"tf-run-history",c:"RunHistory",p:"items:j label:s"},{t:"tf-webhook-endpoint",c:"WebhookEndpoint",p:"url:s events:jl status:s statusLabel:s successRate:n enabled:b secret:r deliveries:j menu:jl defaultOpen:b",e:"onToggle:0? onRetry:1?"},{t:"tf-backup-list",c:"BackupList",p:"items:j footer:r label:s",e:"onDownload:1? onRestore:1?"},{t:"tf-block-list",c:"BlockList",p:"items:j addLabel:s removeLabel:s searchPlaceholder:s emptyText:s",e:"onAdd:0? onRemove:1?"},{t:"tf-review-card",c:"ReviewCard",p:"author:s verified:b product:s date:s rating:n title:s text:s state:s stateLabel:s highlight:jl reply:s replyLabel:s",e:"onPublish:0? onHide:0? onReply:1?"},{t:"tf-coupon-card",c:"CouponCard",p:"code:s kind:s value:n currency:s used:n limit:n until:s min:n revenue:n text:r status:s statusLabel:s menu:jl",e:"onCopy:0"},{t:"tf-locale-field",c:"LocaleField",p:"label:r locales:j value:j defaultValue:j source:s active:s multiline:b rows:n placeholder:s hint:r error:r",e:"onChange:1 onTranslate:2?",s:"onChange:value:detail"},{t:"tf-locale-switcher",c:"LocaleSwitcher",p:"languages:j language:s currencies:jl currency:s variant:s",e:"onLanguage:1 onCurrency:1"},{t:"tf-workspace-switcher",c:"WorkspaceSwitcher",p:"items:j value:s label:s footer:r variant:s width:n",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-export-dialog",c:"ExportDialog",p:"open:b inline:b title:s text:r count:n formats:jl format:s columns:j ranges:b range:jt note:r download:r doneText:s",e:"onClose:0 onExport:2 onDownload:0",s:"onClose:open:false",x:"onClose"},{t:"tf-two-factor-setup",c:"TwoFactorSetup",p:"qr:r secret:s codes:jl step:n scanText:s codesText:s",e:"onVerify:1? onDownload:0? onDone:0"},{t:"tf-color-field",c:"ColorField",p:"label:r value:s defaultValue:s against:s! hint:r",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-agent-card",c:"AgentCard",p:"name:s role:s tint:s status:s statusLabel:s model:s cost:s last:r",e:"onClick:0? onChat:0?"},{t:"tf-agent-details",c:"AgentDetails",p:"name:s role:s tint:s status:s statusLabel:s sections:j actions:R"},{t:"tf-chat-list",c:"ChatList",p:"groups:j selected:s filters:r searchPlaceholder:s",e:"onSelect:1 onSearch:1"},{t:"tf-chat-workspace",c:"ChatWorkspace",p:"list:r thread:r details:r"},{t:"tf-search-hits",c:"SearchHits",p:"items:j query:s emptyText:s",e:"onOpen:1"},{t:"tf-thinking-line",c:"ThinkingLine",p:"text:s"},{t:"tf-feedback-rating",c:"FeedbackRating",p:"value:s? label:s placeholder:s thanks:s askOnUp:b",e:"onRate:1 onSubmit:2"},{t:"tf-activity-feed",c:"ActivityFeed",p:"groups:j items:j"},{t:"tf-daily-briefing",c:"DailyBriefing",p:"title:s time:s tint:s summary:r attention:j suggestions:R attentionTitle:s suggestionsTitle:s"},{t:"tf-budget-stop",c:"BudgetStop",p:"spent:n budget:n title:s text:r paused:r running:r actionLabel:s",e:"onRaise:0?"},{t:"tf-memory-viewer",c:"MemoryViewer",p:"items:j",e:"onEdit:1? onDelete:1?"},{t:"tf-override-diff",c:"OverrideDiff",p:"title:s versions:r by:r before:s after:s discardLabel:s promoteLabel:s",e:"onDiscard:0? onPromote:0?"},{t:"tf-trigger-list",c:"TriggerList",p:"items:j",e:"onToggle:1? onRun:1?"},{t:"tf-schedule-calendar",c:"ScheduleCalendar",p:"events:j from:n to:n days:jl",e:"onOpen:1"},{t:"tf-org-chart",c:"OrgChart",p:"root:j"},{t:"tf-voice-mode",c:"VoiceMode",p:"name:s tint:s state:s stateLabel:s transcript:r muted:b",e:"onMute:0? onEnd:0?"},{t:"tf-mobile-tab-bar",c:"MobileTabBar",p:"items:j active:s label:s",e:"onPick:1"},{t:"tf-push-notification",c:"PushNotification",p:"app:s time:s title:s text:r actions:j"},{t:"tf-config-pr-summary",c:"ConfigPRSummary",p:"title:s meta:r status:s statusLabel:s summary:r items:j actions:R"},{t:"tf-module-registry",c:"ModuleRegistry",p:"items:j coreLabel:s",e:"onToggle:1"},{t:"tf-approval-card",c:"ApprovalCard",p:"title:r text:r agent:s project:s family:s familyLabel:s age:s escalation:r trace:r note:r heading:s options:j approveLabel:s decision:j compact:b state:s",e:"onDecide:2 onApprove:0 onDeny:0 onEdit:1"},{t:"tf-approval-inbox",c:"ApprovalInbox",p:"items:j selected:x emptyTitle:s emptyText:s label:s",e:"onSelect:1?"},{t:"tf-kbd",c:"Kbd",p:"keys:jl"},{t:"tf-key-value",c:"KeyValue",p:"items:j dense:b"},{t:"tf-spinner",c:"Spinner",p:"size:s label:s"},{t:"tf-collapsible",c:"Collapsible",p:"title:r meta:r defaultOpen:b open:b",e:"onOpenChange:1",s:"onOpenChange:open:detail"},{t:"tf-context-menu",c:"ContextMenu",p:"items:jl"},{t:"tf-split-pane",c:"SplitPane",p:"left:r right:r defaultSize:n min:n max:n storageKey:s"},{t:"tf-resizable-panels",c:"ResizablePanels",p:"panels:R defaultSizes:j min:n orientation:s storageKey:s labels:jl"},{t:"tf-tree-view",c:"TreeView",p:"items:j defaultOpen:jl selected:s label:s",e:"onSelect:1"},{t:"tf-inline-edit",c:"InlineEdit",p:"value:s options:jl mono:b type:s display:f align:s label:s",e:"onSave:1"},{t:"tf-bar-chart",c:"BarChart",p:"data:j tint:s height:n width:n barWidth:n format:f label:s"},{t:"tf-line-chart",c:"LineChart",p:"labels:jl series:j height:n width:n format:f label:s"},{t:"tf-sparkline",c:"Sparkline",p:"values:j tint:s width:n height:n label:s"},{t:"tf-donut",c:"Donut",p:"data:j center:s caption:s size:n stroke:n legend:b label:s"},{t:"tf-legend",c:"Legend",p:"items:j"},{t:"tf-stacked-bar-chart",c:"StackedBarChart",p:"labels:jl series:j height:n width:n barWidth:n format:f legend:b label:s"},{t:"tf-area-chart",c:"AreaChart",p:"labels:jl series:j stacked:b height:n width:n format:f legend:b label:s"},{t:"tf-heatmap",c:"Heatmap",p:"rows:jl cols:jl values:j colEvery:n caption:s format:f label:s"},{t:"tf-funnel",c:"Funnel",p:"steps:j tint:s format:f"},{t:"tf-gauge",c:"Gauge",p:"value:n max:n caption:s format:f tint:s thresholds:j size:n stroke:n showRange:b label:s"},{t:"tf-rich-text",c:"RichText",p:"text:s streaming:b"},{t:"tf-code-block",c:"CodeBlock",p:"code:s lang:s open:b"},{t:"tf-typing-dots",c:"TypingDots",p:"label:s"},{t:"tf-agent-mark",c:"AgentMark",p:"tint:s icon:s size:n live:b"},{t:"tf-chat-message",c:"ChatMessage",p:"role:s name:s time:s model:s text:s streaming:b tint:s sources:j attachments:j usage:s actions:b before:r after:r feedback:s?",e:"onRetry:0? onFeedback:1"},{t:"tf-tool-call",c:"ToolCall",p:"name:s icon:s status:s summary:r duration:s input:j output:j defaultOpen:b"},{t:"tf-reasoning",c:"Reasoning",p:"steps:jl text:r duration:s streaming:b defaultOpen:b"},{t:"tf-prompt-starters",c:"PromptStarters",p:"items:j",e:"onPick:1"},{t:"tf-model-picker",c:"ModelPicker",p:"models:j value:s side:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-composer",c:"Composer",p:"value:s busy:b placeholder:s label:s models:j model:s commands:j attachments:j hint:s left:r disabled:b",e:"onChange:1 onSend:2 onStop:0 onModel:1 onCommand:1? onAttach:1? onRemoveAttachment:1?",s:"onChange:value:detail"},{t:"tf-agent-status",c:"AgentStatus",p:"status:s step:s"},{t:"tf-run-trace",c:"RunTrace",p:"steps:j defaultOpen:n? footer:r"},{t:"tf-usage-meter",c:"UsageMeter",p:"used:n limit:n label:s caption:s format:f"},{t:"tf-product-art",c:"ProductArt",p:"kind:s tint:s size:n label:s"},{t:"tf-price",c:"Price",p:"value:n compareAt:n currency:s size:s showSave:b"},{t:"tf-rating",c:"Rating",p:"value:n count:n size:n"},{t:"tf-stock-badge",c:"StockBadge",p:"stock:n low:n compact:b"},{t:"tf-product-card",c:"ProductCard",p:"name:s meta:s art:s tint:s price:n compareAt:n rating:n reviews:n badge:s badgeTone:s stock:n wished:b added:b",e:"onWish:0? onAdd:0? onClick:0"},{t:"tf-variant-picker",c:"VariantPicker",p:"label:s type:s options:jl value:s defaultValue:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-cart-line",c:"CartLine",p:"name:s variant:s note:s art:s tint:s price:n qty:n",e:"onQty:1? onRemove:0"},{t:"tf-order-summary",c:"OrderSummary",p:"lines:j showLines:b discount:j shipping:n? freeShippingFrom:n vat:n title:s! action:r",e:"onCoupon:1?"},{t:"tf-checkout-steps",c:"CheckoutSteps",p:"steps:jl current:n",e:"onPick:1?"},{t:"tf-order-timeline",c:"OrderTimeline",p:"status:s times:j"},{t:"tf-plan-card",c:"PlanCard",p:"name:s text:s price:n? was:n per:s features:jl featured:b flag:s current:b cta:s disabled:b",e:"onPick:0"},{t:"tf-count-up",c:"CountUp",p:"value:x duration:n delay:n"},{t:"tf-stat-tile",c:"StatTile",p:"value:r label:s tint:s delta:s delay:n"},{t:"tf-card",c:"Card",p:"title:s description:s meta:jl corner:r status:r actions:R tint:s eyebrow:r surface:s",e:"onClick:0?"},{t:"tf-event-card",c:"EventCard",p:"kind:s label:s date:s time:s tint:s icon:s actions:b"},{t:"tf-panel",c:"Panel",p:"side:b title:s subtitle:s action:r surface:s"},{t:"tf-page-header",c:"PageHeader",p:"crumbs:jl title:s subtitle:s actions:R"},{t:"tf-stagger",c:"Stagger",p:"as:s delay:n reveal:b"},{t:"tf-table",c:"Table",p:"columns:j rows:j animate:b"},{t:"tf-list-row",c:"ListRow",p:"avatar:s icon:s tint:s leading:r title:r subtitle:r meta:r trailing:r unread:b active:b",e:"onClick:0"},{t:"tf-timeline",c:"Timeline",p:"items:j delay:n"},{t:"tf-file-row",c:"FileRow",p:"name:s meta:s kind:s"},{t:"tf-kanban-column",c:"KanbanColumn",p:"title:s dot:s delay:n",e:"onAdd:0"},{t:"tf-progress",c:"Progress",p:"value:n tint:s label:s"},{t:"tf-progress-ring",c:"ProgressRing",p:"value:n tint:s size:n stroke:n caption:s label:s"},{t:"tf-filter-bar",c:"FilterBar",p:"filters:j value:j search:s query:s right:r",e:"onChange:1 onQuery:1",s:"onChange:value:detail"},{t:"tf-data-table",c:"DataTable",p:"columns:j rows:j rowKey:s selectable:b bulkActions:j renderExpanded:f stickyHeader:b maxHeight:x defaultSort:j toolbar:r columnToggle:b empty:r"},{t:"tf-log-view",c:"LogView",p:"lines:jl title:r right:r numbers:b follow:b maxHeight:n"},{t:"tf-code-viewer",c:"CodeViewer",p:"value:j lang:s"},{t:"tf-secret-field",c:"SecretField",p:"prefix:s last4:s value:s meta:r",e:"onReveal:0? onCopy:0? onRotate:0?"},{t:"tf-money-input",c:"MoneyInput",p:"label:s value:n? currency:s vat:s vatOptions:j showGross:b hint:r error:r defaultValue:n? required:b",e:"onChange:1 onVat:1",s:"onChange:value:detail"},{t:"tf-settings-layout",c:"SettingsLayout",p:"sections:j footer:r"},{t:"tf-shortcuts-overlay",c:"ShortcutsOverlay",p:"open:b title:s groups:j",e:"onClose:0",s:"onClose:open:false",x:"onClose"},{t:"tf-stat-cell",c:"StatCell",p:"label:r value:r delta:n deltaText:s compare:s invert:b spark:j icon:s iconTint:s tint:s"},{t:"tf-uptime-bar",c:"UptimeBar",p:"days:jl uptime:n caption:r"},{t:"tf-meter",c:"Meter",p:"label:r value:n? max:n text:r warn:n danger:n tone:s"},{t:"tf-skeleton",c:"Skeleton",p:"variant:s width:x height:x"},{t:"tf-menu",c:"Menu",p:"items:jl label:s autoFocus:b",e:"onClose:0?"},{t:"tf-modal",c:"Modal",p:"title:s text:s icon:s tint:s actions:R open:b",e:"onClose:0",s:"onClose:open:false",x:"onClose",dialog:1},{t:"tf-toast",c:"Toast",p:"icon:s tint:s action:s",e:"onAction:0"},{t:"tf-empty-state",c:"EmptyState",p:"title:s text:s icon:s tint:s action:r"},{t:"tf-alert",c:"Alert",p:"tone:s title:r icon:s action:r",e:"onDismiss:0?",x:"onDismiss"},{t:"tf-confirm-dialog",c:"ConfirmDialog",p:"open:b title:s text:s danger:b icon:s confirmLabel:s cancelLabel:s confirmText:s",e:"onConfirm:0 onCancel:0",s:"onCancel:open:false onConfirm:open:false"},{t:"tf-toaster",c:"Toaster",p:"position:s"},{t:"tf-form-field",c:"FormField",p:"name:s label:r required:b optional:b hint:r error:r success:r"},{t:"tf-text-field",c:"TextField",p:"type:s icon:s suffix:r value:s defaultValue:s placeholder:s disabled:b readOnly:b autoComplete:s autoFocus:b min:x max:x step:x minLength:n maxLength:n pattern:s inputMode:s name:s label:r required:b optional:b hint:r error:r success:r",e:"onChange:1 onBlur:1",s:"onChange:value:detail"},{t:"tf-radio-group",c:"RadioGroup",p:"label:s options:jl value:s defaultValue:s cards:b hint:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-segmented",c:"Segmented",p:"options:jl value:s defaultValue:s size:s block:b label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-combobox",c:"Combobox",p:"label:s options:jl value:j defaultValue:j multiple:b creatable:b placeholder:s hint:s error:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-tag-input",c:"TagInput",p:"label:s value:jl defaultValue:jl placeholder:s hint:s error:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-calendar",c:"Calendar",p:"range:b value:jt today:d min:d max:d month:d",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-date-picker",c:"DatePicker",p:"label:s range:b value:jt defaultValue:jt presets:b min:d max:d today:d placeholder:s hint:s error:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-number-input",c:"NumberInput",p:"label:s value:n defaultValue:n min:n max:n step:n unit:s hint:s error:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-slider",c:"Slider",p:"label:s min:n max:n step:n value:n defaultValue:n format:f marks:b hint:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-otp-input",c:"OtpInput",p:"length:n error:b label:s",e:"onComplete:1"},{t:"tf-file-drop",c:"FileDrop",p:"files:j simulateProgress:b title:s hint:s accept:s multiple:b",e:"onChange:1 onFiles:1? onReject:1 onRemove:1"},{t:"tf-button",c:"Button",p:"variant:s size:s icon:s iconRight:s disabled:b type:s asChild:b name:s value:s form:s title:s tabIndex:n autoFocus:b aria-label:s aria-labelledby:s aria-describedby:s aria-expanded:j aria-controls:s aria-haspopup:j aria-pressed:j aria-current:j",e:"onClick:1"},{t:"tf-icon-button",c:"IconButton",p:"icon:s label:s variant:s size:s type:s disabled:b asChild:b name:s value:s form:s title:s tabIndex:n autoFocus:b aria-label:s aria-labelledby:s aria-describedby:s aria-expanded:j aria-controls:s aria-haspopup:j aria-pressed:j aria-current:j",e:"onClick:1"},{t:"tf-chip",c:"Chip",p:"selected:b icon:s count:n",e:"onClick:1"},{t:"tf-badge",c:"Badge",p:"tone:s dot:b live:b"},{t:"tf-tint-icon",c:"TintIcon",p:"icon:s tint:s label:s size:n"},{t:"tf-avatar",c:"Avatar",p:"name:s src:s size:n tint:s"},{t:"tf-avatar-stack",c:"AvatarStack",p:"names:jl max:n size:n"},{t:"tf-input",c:"Input",p:"type:s placeholder:s value:s defaultValue:s disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-select",c:"Select",p:"options:jl value:s defaultValue:s label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-textarea",c:"Textarea",p:"placeholder:s value:s defaultValue:s rows:n disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-search-field",c:"SearchField",p:"placeholder:s label:s shortcut:s value:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-checkbox",c:"Checkbox",p:"name:s value:s required:b checked:b defaultChecked:b disabled:b label:s",e:"onChange:1",s:"onChange:checked:detail"},{t:"tf-switch",c:"Switch",p:"name:s checked:b defaultChecked:b spread:b disabled:b label:s",e:"onChange:1",s:"onChange:checked:detail"},{t:"tf-form",c:"Form",p:"rules:j errors:j",e:"onSubmit:1 onInvalid:1"},{t:"tf-select-menu",c:"SelectMenu",p:"options:jl value:s defaultValue:s placeholder:s disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-account-switcher",c:"AccountSwitcher",p:"accounts:j value:s? unread:n allLabel:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-inbox-list",c:"InboxList",p:"items:j selected:x",e:"onOpen:1"},{t:"tf-mail-thread",c:"MailThread",p:"subject:s messages:j reply:r"},{t:"tf-signature-editor",c:"SignatureEditor",p:"value:j fields:j note:r extra:r defaultValue:j previewLabel:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-attachment-preview",c:"AttachmentPreview",p:"name:s meta:r facts:j found:r actions:r width:x inline:b",e:"onClose:0",x:"onClose"},{t:"tf-image-variants",c:"ImageVariants",p:"variants:j selected:x alt:s tint:s actions:r",e:"onSelect:1"},{t:"tf-gallery",c:"Gallery",p:"items:j loading:s referrerPolicy:s start:n ratio:s thumbs:b fullscreen:b badge:r"},{t:"tf-before-after",c:"BeforeAfter",p:"before:j after:j start:n ratio:s beforeLabel:s afterLabel:s label:s valueText:f loading:s referrerPolicy:s"},{t:"tf-tabs",c:"Tabs",p:"items:jl value:s defaultValue:s block:b panels:K label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-breadcrumb",c:"Breadcrumb",p:"items:jl"},{t:"tf-pagination",c:"Pagination",p:"total:n page:n defaultPage:n",e:"onChange:1?",s:"onChange:page:detail"},{t:"tf-menubar",c:"Menubar",p:"menus:j label:s"},{t:"tf-navigation-menu",c:"NavigationMenu",p:"items:j label:s"},{t:"tf-sidebar",c:"Sidebar",p:"groups:j current:s collapsed:b defaultCollapsed:b header:r footer:r label:s",e:"onPick:1 onCollapsedChange:1",s:"onCollapsedChange:collapsed:detail"},{t:"tf-connection-card",c:"ConnectionCard",p:"name:s icon:s logo:r text:r status:s statusLabel:s action:r"},{t:"tf-connection-banner",c:"ConnectionBanner",p:"state:s seconds:n text:r",e:"onRetry:0?"},{t:"tf-server-card",c:"ServerCard",p:"name:s provider:s address:s logo:r status:s statusLabel:s meters:j uptime:j foot:r"},{t:"tf-deploy-pipeline",c:"DeployPipeline",p:"stages:j"},{t:"tf-dns-record-table",c:"DnsRecordTable",p:"records:j rowMenu:f selectable:b bulkActions:j toolbar:r"},{t:"tf-domain-list",c:"DomainList",p:"items:j",e:"onOpen:1"},{t:"tf-mail-auth-status",c:"MailAuthStatus",p:"rows:j columns:jl",e:"onOpen:2"},{t:"tf-ledger-table",c:"LedgerTable",p:"rows:j categories:jl currency:s selectable:b bulkActions:j toolbar:r maxHeight:n columnToggle:b",e:"onEdit:2"},{t:"tf-pnl-statement",c:"PnLStatement",p:"columns:jl rows:j currency:s total:b label:s"},{t:"tf-receipt-suggestion",c:"ReceiptSuggestion",p:"file:s source:r fields:j suggestion:r confirmLabel:s discardLabel:s",e:"onConfirm:0? onDiscard:0?"},{t:"tf-popover",c:"Popover",p:"trigger:r open:b align:s side:s width:n flush:b block:b role:s",e:"onOpenChange:1",s:"onOpenChange:open:detail",close:1},{t:"tf-tooltip",c:"Tooltip",p:"label:r shortcut:s side:s defaultOpen:b"},{t:"tf-email-preview",c:"EmailPreview",p:"from:s fromName:s subject:s preheader:s html:s device:s checks:j",e:"onDevice:1"},{t:"tf-search-ad-preview",c:"SearchAdPreview",p:"name:s domain:s paths:jl headlines:jl descriptions:jl sitelinks:jl device:s sponsoredLabel:s",e:"onDevice:1"},{t:"tf-accordion",c:"Accordion",p:"items:j multiple:b value:jl defaultValue:jl variant:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-separator",c:"Separator",p:"orientation:s label:s"},{t:"tf-aspect-ratio",c:"AspectRatio",p:"ratio:n"},{t:"tf-label",c:"Label",p:"htmlFor:s required:b hint:r"},{t:"tf-toggle",c:"Toggle",p:"pressed:b defaultPressed:b icon:s label:s size:s disabled:b",e:"onChange:1",s:"onChange:pressed:detail"},{t:"tf-toggle-group",c:"ToggleGroup",p:"items:jl type:s value:jl defaultValue:jl label:s size:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-button-group",c:"ButtonGroup",p:"label:s orientation:s"},{t:"tf-scroll-area",c:"ScrollArea",p:"height:x maxHeight:x orientation:s label:s"},{t:"tf-hover-card",c:"HoverCard",p:"trigger:r side:s align:s openDelay:n closeDelay:n width:n"},{t:"tf-carousel",c:"Carousel",p:"slides:R label:s perView:n loop:b dots:b index:n defaultIndex:n",e:"onChange:1",s:"onChange:index:detail"},{t:"tf-listing-card",c:"ListingCard",p:"listing:j layout:s selected:b statusOptions:j",e:"onSelect:1? onWish:1? onStatus:2 onOpen:1?"},{t:"tf-results-toolbar",c:"ResultsToolbar",p:"title:s total:n meta:s selected:n bulkActions:j sortOptions:j sort:s views:jl view:s",e:"onSelectAll:1? onSort:1 onView:1"},{t:"tf-saved-search",c:"SavedSearch",p:"name:s criteria:R lastRun:s frequency:s newCount:n enabled:b openLabel:s icon:s tint:s",e:"onToggle:0? onEdit:0? onOpen:0?"},{t:"tf-valuation-card",c:"ValuationCard",p:"value:n low:n high:n asking:n perSqm:n compare:s currency:s confidence:n confidenceLabel:s facts:j note:r title:s action:r"},{t:"tf-energy-class",c:"EnergyClass",p:"value:s kwh:n kind:s scale:jl"},{t:"tf-rich-text-editor",c:"RichTextEditor",p:"label:r defaultValue:s value:s placeholder:s variables:j maxLength:n minHeight:n footer:r hint:r error:r disabled:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-top-bar",c:"TopBar",p:"brand:s tag:s items:j active:s user:j extra:r userOpen:b",e:"onNavigate:1 onUser:0"},{t:"tf-side-rail",c:"SideRail",p:"top:j bottom:j"},{t:"tf-dock",c:"Dock",p:"items:j label:s surface:s"},{t:"tf-floating-layout",c:"FloatingLayout",p:"background:r top:r start:r end:r bottom:r height:x surface:s label:s"},{t:"tf-ambient",c:"Ambient",p:"colors:jl src:s video:b animate:b fixed:b"},{t:"tf-app-shell",c:"AppShell",p:"active:s brand:s tag:s nav:j user:j topExtra:r sheetStyle:j contentKey:x side:r dock:b dockItems:j railTop:j railBottom:j",e:"onNavigate:1"},{t:"tf-chat-launcher",c:"ChatLauncher",p:"title:s context:r tint:s open:b unread:n headerAction:r composer:r inline:b",e:"onOpenChange:1",s:"onOpenChange:open:detail"},{t:"tf-cookie-consent",c:"CookieConsent",p:"title:s text:r policy:r categories:j open:b inline:b",e:"onSave:1"},{t:"tf-announcement-bar",c:"AnnouncementBar",p:"tint:s icon:s! action:r",e:"onDismiss:0?",x:"onDismiss"},{t:"tf-status-shape",c:"StatusShape",p:"status:s"},{t:"tf-status-indicator",c:"StatusIndicator",p:"status:s label:r size:s"},{t:"tf-status-screen",c:"StatusScreen",p:"code:s title:s text:s icon:s tint:s extra:r actions:R reference:s",e:"onHome:0 onContact:0"},{t:"tf-auth-card",c:"AuthCard",p:"title:s text:s icon:s tint:s brand:s foot:r"},{t:"tf-sub-nav",c:"SubNav",p:"eyebrow:s action:j items:j current:s",e:"onPick:1"},{t:"tf-drawer",c:"Drawer",p:"title:s subtitle:r avatar:s width:x inline:b open:b side:s",e:"onClose:0",s:"onClose:open:false",x:"onClose"},{t:"tf-command-palette",c:"CommandPalette",p:"items:j placeholder:s inline:b loading:b empty:r open:b",e:"onClose:0 onQueryChange:1",s:"onClose:open:false",x:"onClose"},{t:"tf-notification-list",c:"NotificationList",p:"items:j",e:"onOpen:1 onReadAll:0"},{t:"tf-flow",c:"Flow",p:"steps:j active:n? waiting:b tools:f",e:"onApprove:0? onReject:0?"},{t:"tf-file-thumb",c:"FileThumb",p:"kind:s title:s big:b entries:jl"},{t:"tf-file-card",c:"FileCard",p:"name:s kind:s size:s meta:s shared:b",e:"onClick:0"},{t:"tf-wizard",c:"Wizard",p:"steps:j current:n done:j footer:r brand:s label:s",e:"onPick:1"},{t:"tf-permission-matrix",c:"PermissionMatrix",p:"roles:j areas:jl",e:"onChange:3"},{t:"tf-invoice-preview",c:"InvoicePreview",p:"number:x from:s to:s issued:s due:s lines:j note:s kind:s brand:s format:f"},{t:"tf-transaction-row",c:"TransactionRow",p:"text:s date:s amount:n matched:b matchRef:s hint:s",e:"onMatch:0"}];var H4="0.3.0",U4=Object.freeze(Object.fromEntries(pu.map(e=>[e.t,e.c]))),wS=pu.map(e=>e.t),RS=!1;function $5(){if(RS)return;RS=!0;let e=wS.join(","),t=`:where(${e},tf-root){display:contents}:where(${e})[hidden]{display:none}`;try{let n=new CSSStyleSheet;n.replaceSync(t),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n]}catch{let n=document.createElement("style");n.dataset.tfElements="",n.textContent=t,document.head.prepend(n)}}function P5(){if(typeof window>"u"||typeof customElements>"u")return;Oa.selector=wS.join(","),$5();let e=nf;for(let t of pu){if(customElements.get(t.t))continue;let n=e[t.c];typeof n=="function"&&customElements.define(t.t,kS(xS(t),n))}}P5();export{U4 as ELEMENTS,H4 as VERSION,P5 as defineElements,Qn as formatDate,Ml as formatMoney,wn as formatNumber,Rs as formatPercent,St as toast};
|
|
30
|
+
`);if(I(B[0]??""),B.length>1){let F=o(),lt=F&&m(F.startContainer,F.startOffset);if(!lt)return g(!0);B.slice(1).forEach(Tl=>{let fi=document.createElement("P");fi.textContent=Tl;let ih=lt;ih.parentNode?.insertBefore(fi,ih.nextSibling),lt=fi});let Wt=document.createRange();Wt.selectNodeContents(lt),Wt.collapse(!1),f(Wt),g(!0)}}function Kc(){let j=u();(!j.firstChild||j.innerHTML==="<br>")&&(j.innerHTML="<p><br></p>"),Array.from(j.childNodes).forEach(H=>{if(H.nodeType===3&&(H.textContent||"").trim()){let B=document.createElement("P");j.insertBefore(B,H),B.appendChild(H);let F=document.createRange();F.selectNodeContents(B),F.collapse(!1),f(F)}}),g(!1)}let zS=[["bold",()=>{y("B","STRONG")},t.bold,"B"],["italic",()=>{y("I","EM")},t.italic,"I"],["underline",()=>{y("U")},t.underline,"U"],"-",["heading",()=>{q("H3")},t.heading],["quote",()=>{q("BLOCKQUOTE")},t.quote],["list",()=>{U("UL")},t.bulletedList],["olist",()=>{U("OL")},t.numberedList],"-",["link",O,t.link,"K"],"-",["undo",()=>{Fe(-1)},t.undo,"Z"],["redo",()=>{Fe(1)},t.redo]],lh=e.maxLength&&a[0]>e.maxLength,AS=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform||"")?"\u2318":"Ctrl+";return(0,Ge.jsx)(mt,{label:e.label,hint:e.hint,error:e.error,children:(0,Ge.jsxs)("div",{className:p("tf-rte",lh&&"invalid"),children:[(0,Ge.jsxs)("div",{className:"tf-rte-bar",role:"toolbar","aria-label":t.formatting,children:[zS.map((j,H)=>{if(j==="-")return(0,Ge.jsx)("span",{className:"tf-rte-sep","aria-hidden":!0},H);let B=(0,Ge.jsx)("button",{type:"button",className:p("tf-rte-btn",l[0][j[0]]&&"on"),title:j[2]+(j[3]?" ("+AS+j[3]+")":""),"aria-label":j[2],"aria-pressed":j[0]==="undo"||j[0]==="redo"?void 0:!!l[0][j[0]],disabled:e.disabled,onMouseDown:F=>{F.preventDefault()},onClick:j[1],children:(0,Ge.jsx)(x,{name:j[0],size:15})},H);return j[0]==="link"?(0,Ge.jsx)(Ue,{width:300,open:i[0],onOpenChange:i[1],trigger:B,children:(0,Ge.jsxs)("form",{className:"tf-col",style:{gap:8},onSubmit:F=>{F.preventDefault(),P(!1)},children:[(0,Ge.jsx)("input",{className:"tf-input",autoFocus:!0,value:s[0],onChange:F=>{s[1](F.target.value)},placeholder:t.linkAddress,"aria-label":t.linkAddress,inputMode:"url"}),(0,Ge.jsxs)("div",{className:"tf-row",style:{justifyContent:"flex-end",gap:8},children:[l[0].link&&(0,Ge.jsx)(K,{size:"sm",variant:"ghost",onClick:()=>{P(!0)},children:t.removeLink}),(0,Ge.jsx)(K,{size:"sm",type:"submit",children:t.apply})]})]})},H):B}),e.variables&&e.variables.length>0&&(0,Ge.jsx)(Ue,{width:240,trigger:j=>(0,Ge.jsxs)("button",{type:"button",className:"tf-rte-var",onMouseDown:H=>{H.preventDefault()},onClick:j.toggle,"aria-expanded":j.open,children:["{ }",(0,Ge.jsx)("span",{children:t.insertField})]}),children:j=>(0,Ge.jsx)("div",{className:"tf-menu",children:(e.variables||[]).map(H=>(0,Ge.jsxs)("button",{type:"button",className:"tf-menu-item",onMouseDown:B=>{B.preventDefault()},onClick:()=>{I("{"+H.key+"}"),j.close&&j.close()},children:[(0,Ge.jsx)("span",{style:{flex:1},children:H.label}),(0,Ge.jsx)("code",{children:"{"+H.key+"}"})]},H.key))})})]}),(0,Ge.jsx)("div",{ref:n,className:"tf-rte-area",contentEditable:!e.disabled,role:"textbox","aria-multiline":"true","aria-label":typeof e.label=="string"?e.label:t.text,"data-placeholder":e.placeholder||"",suppressContentEditableWarning:!0,onInput:Kc,onKeyDown:ua,onPaste:kn,onBlur:k,style:{minHeight:e.minHeight||160}}),(e.maxLength||e.footer)&&(0,Ge.jsxs)("div",{className:"tf-rte-foot",children:[e.footer,e.maxLength&&(0,Ge.jsx)("span",{className:p("tf-rte-count",lh&&"over"),children:wn(a[0])+" / "+wn(e.maxLength)})]})]})})}var se=G(ye(),1),Za=G(re(),1);function Pu(e){let t=M(zl);return(0,se.jsxs)("nav",{className:"tf-topbar","aria-label":t.mainNavigation,children:[e.brand&&(0,se.jsxs)("span",{className:"tf-brand",children:[e.brand,(0,se.jsx)("span",{className:"tf-brand-dot","aria-hidden":!0}),e.tag&&(0,se.jsx)("span",{className:"tf-brand-tag",children:e.tag})]}),(0,se.jsx)("div",{className:"tf-nav",children:(e.items||[]).map(n=>{let a=n.label===e.active;return(0,se.jsxs)("button",{type:"button",className:"tf-nav-item","aria-current":a?"page":void 0,title:n.label,onClick:()=>{e.onNavigate&&e.onNavigate(n.label)},children:[(0,se.jsx)(x,{name:n.icon}),(0,se.jsx)("span",{className:"tf-nav-label",children:n.label}),n.count?(0,se.jsx)("span",{className:"tf-nav-count",children:n.count}):null]},n.label)})}),e.extra&&(0,se.jsx)("div",{className:"tf-topbar-extra",children:e.extra}),e.user&&(0,se.jsxs)("button",{type:"button",className:"tf-user","aria-haspopup":"menu","aria-expanded":e.userOpen?"true":"false",onClick:e.onUser,children:[(0,se.jsx)(Ve,{name:e.user.name,size:28}),(0,se.jsxs)("span",{className:"tf-user-text",children:[(0,se.jsx)("span",{className:"tf-user-name",children:e.user.name}),e.user.email&&(0,se.jsx)("span",{className:"tf-user-mail",children:e.user.email})]}),(0,se.jsx)(x,{name:"chevronDown",size:14})]})]})}function lb(e,t){return(0,se.jsxs)("button",{type:"button",className:"tf-rail-btn",style:{animationDelay:`calc(${200+t*50}ms * var(--motion-time, 1))`},"aria-label":e.count?`${e.label}, ${e.count}`:e.label,title:e.label,"aria-current":e.active?"page":void 0,onClick:e.onClick,children:[(0,se.jsx)(x,{name:e.icon}),e.count?(0,se.jsx)("span",{className:"tf-dotcount",children:e.count}):null]},e.label)}function Wu(e){let t=M(zl);return(0,se.jsxs)("aside",{className:"tf-rail","aria-label":t.tools,children:[(0,se.jsx)("div",{className:"tf-rail-group",children:(e.top||[]).map(lb)}),(0,se.jsx)("div",{className:"tf-rail-group",children:(e.bottom||[]).map((n,a)=>lb(n,a+3))})]})}function ef(e){let t=M(zl);return(0,se.jsx)("div",{className:p("tf-dock",e.surface&&"tf-"+e.surface,e.className),style:e.style,role:"toolbar","aria-label":e.label||t.quickActions,children:(e.items||[]).map(n=>(0,se.jsx)("button",{type:"button",className:p("tf-dock-btn","tf-t-"+(n.tint||"plain")),"aria-label":n.label,title:n.label,onClick:n.onClick,children:(0,se.jsx)(x,{name:n.icon})},n.label))})}function ib(e){let t=e.surface??"glass";return(0,se.jsxs)("div",{className:p("tf-floating",e.className),style:{minHeight:e.height??640,...e.style},role:"region","aria-label":e.label,"data-surface":t,children:[e.background!=null&&(0,se.jsx)("div",{className:"tf-floating-bg",children:e.background}),(0,se.jsxs)("div",{className:"tf-floating-ui",children:[e.top!=null&&(0,se.jsx)("div",{className:"tf-floating-top",children:e.top}),e.start!=null&&(0,se.jsx)("div",{className:"tf-floating-start",children:e.start}),e.end!=null&&(0,se.jsx)("div",{className:"tf-floating-end",children:e.end}),e.bottom!=null&&(0,se.jsx)("div",{className:"tf-floating-bottom",children:e.bottom})]}),e.children]})}function sb(e){let t=Za.useRef(null),[n,a]=Za.useState(!1),l=e.animate!==!1&&!e.src&&!e.children;Za.useEffect(()=>{let r=t.current;if(!r||!l||typeof IntersectionObserver>"u")return;let u=new IntersectionObserver(o=>a(!o.some(f=>f.isIntersecting)));return u.observe(r),()=>u.disconnect()},[l]);let i=Za.useRef(null);Za.useEffect(()=>{let r=i.current;r&&Rn(r)&&r.pause()},[e.src]);let s=e.colors?.length?e.colors:["var(--ambient-1)","var(--ambient-2)","var(--ambient-3)","var(--ambient-4)"],c=!!e.src&&!e.children;return(0,se.jsx)("div",{ref:t,"aria-hidden":!0,className:p("tf-ambient",e.fixed&&"fixed",c&&"media",!l&&"still",e.className),style:e.style,"data-paused":n?"":void 0,children:e.children??(c?e.video?(0,se.jsx)("video",{ref:i,className:"tf-ambient-media",src:e.src,muted:!0,loop:!0,autoPlay:!0,playsInline:!0}):(0,se.jsx)("img",{className:"tf-ambient-media",src:e.src,alt:""}):s.map((r,u)=>(0,se.jsx)("span",{className:"tf-ambient-field",style:{"--field":r}},u)))})}var tf=()=>[{label:"Home",icon:"home"},{label:"People",icon:"users"},{label:"Projects",icon:"grid"},{label:"Inbox",icon:"mail"},{label:"Calendar",icon:"calendar"},{label:"Billing",icon:"card"},{label:"Reports",icon:"chart"},{label:"Settings",icon:"settings"}],Bx=()=>[{label:"Share",icon:"share",active:!0},{label:"List view",icon:"menu"},{label:"Grid view",icon:"grid"}],Vx=()=>[{label:"Notifications",icon:"bell",count:3},{label:"Zoom in",icon:"plus"},{label:"Zoom out",icon:"minus"}],qx=()=>[{label:"Invite",icon:"users",tint:"sky"},{label:"New page",icon:"file",tint:"lilac"},{label:"New invoice",icon:"card",tint:"blush"},{label:"Announce",icon:"send",tint:"butter"},{label:"Export",icon:"download",tint:"mint"},{label:"More",icon:"plus"}];function cb(e){return(0,se.jsxs)("div",{className:p("tf-shell",e.className),style:e.style,children:[(0,se.jsx)(Pu,{brand:e.brand,tag:e.tag,active:e.active,items:e.nav||tf(),onNavigate:e.onNavigate,user:e.user,extra:e.topExtra}),(0,se.jsxs)("div",{className:p("tf-sheet",!e.side&&"tf-sheet-2"),style:e.sheetStyle,children:[(0,se.jsx)(Wu,{top:e.railTop||Bx(),bottom:e.railBottom||Vx()}),(0,se.jsx)("main",{className:p("tf-main",e.dock!==!1&&"tf-main-dock"),children:e.children},e.contentKey),e.side||null,e.dock!==!1&&(0,se.jsx)("div",{className:"tf-dock-float",children:(0,se.jsx)(ef,{items:e.dockItems||qx()})})]})]})}var de=G(ye(),1),zi=G(re(),1);function rb(e){let t=M(Al),n=$(e.open,!1,e.onOpenChange);return(0,de.jsxs)("div",{className:p("tf-launch",n[0]&&"open",e.inline&&"inline"),children:[n[0]&&(0,de.jsxs)("div",{className:"tf-launch-panel",role:"dialog","aria-label":e.title||t.assistant,children:[(0,de.jsxs)("div",{className:"tf-launch-head",children:[(0,de.jsx)(Xt,{tint:e.tint||"lilac",size:32}),(0,de.jsxs)("div",{className:"tf-option-text",style:{flex:1},children:[(0,de.jsx)("b",{children:e.title||t.assistant}),e.context&&(0,de.jsx)("small",{children:e.context})]}),e.headerAction,(0,de.jsx)(W,{icon:"x",size:"sm",label:t.close,onClick:()=>{n[1](!1)}})]}),(0,de.jsx)("div",{className:"tf-launch-body",children:e.children}),e.composer&&(0,de.jsx)("div",{className:"tf-launch-foot",children:e.composer})]}),(0,de.jsxs)("button",{type:"button",className:"tf-launch-btn","aria-label":n[0]?t.closeAssistant:e.title||t.openAssistant,"aria-expanded":n[0],onClick:()=>{n[1](!n[0])},children:[(0,de.jsx)(x,{name:n[0]?"x":"sparkle",size:22}),!n[0]&&(e.unread??0)>0&&(0,de.jsx)("span",{className:"tf-nav-count",children:e.unread})]})]})}function ob(e){let t=M(Al),n=zi.useState(!1),a=zi.useState((e.categories||[]).reduce((i,s)=>(i[s.id]=!!(s.required||s.default),i),{}));if(e.open===!1)return null;function l(i){let s=Object.assign({},a[0]);(e.categories||[]).forEach(c=>{i===!0&&(s[c.id]=!0),i===!1&&(s[c.id]=!!c.required)}),e.onSave&&e.onSave(s)}return(0,de.jsxs)("div",{className:p("tf-cookie",e.inline&&"inline"),role:"dialog","aria-label":e.title||t.privacySettings,children:[(0,de.jsxs)("div",{className:"tf-row",style:{gap:12,alignItems:"flex-start",flexWrap:"nowrap"},children:[(0,de.jsx)(ce,{icon:"cookie",tint:"butter",size:36}),(0,de.jsxs)("div",{className:"tf-col",style:{gap:4},children:[(0,de.jsx)("b",{children:e.title||t.privacySettings}),(0,de.jsxs)("p",{className:"tf-card-desc",style:{margin:0},children:[e.text||t.cookieText,e.policy&&(0,de.jsxs)(zi.Fragment,{children:[" ",e.policy]})]})]})]}),n[0]&&(0,de.jsx)("div",{className:"tf-cookie-cats",children:(e.categories||[]).map(i=>(0,de.jsxs)("div",{className:"tf-cookie-cat",children:[(0,de.jsxs)("div",{className:"tf-option-text",style:{flex:1},children:[(0,de.jsx)("b",{children:i.label}),i.text&&(0,de.jsx)("small",{children:i.text})]}),i.required?(0,de.jsx)("span",{className:"tf-card-desc",children:t.alwaysOn}):(0,de.jsx)(Qa,{checked:!!a[0][i.id],onChange:()=>{let s=Object.assign({},a[0]);s[i.id]=!s[i.id],a[1](s)}})]},i.id))}),(0,de.jsxs)("div",{className:"tf-cookie-actions",children:[n[0]?(0,de.jsx)(K,{variant:"secondary",onClick:()=>{l(void 0)},children:t.saveChoice}):(0,de.jsx)(K,{variant:"ghost",onClick:()=>{n[1](!0)},children:t.settings}),(0,de.jsx)(K,{variant:"secondary",onClick:()=>{l(!1)},children:t.onlyNecessary}),(0,de.jsx)(K,{onClick:()=>{l(!0)},children:t.acceptAll})]})]})}function ub(e){let t=M(Al),n=zi.useState(!1);return n[0]?null:(0,de.jsxs)("div",{className:p("tf-announce","tf-t-"+(e.tint||"butter")),role:"status",children:[e.icon!==!1&&(0,de.jsx)(x,{name:e.icon||"sparkle",size:15}),(0,de.jsx)("span",{children:e.children}),e.action,e.onDismiss!==!1&&(0,de.jsx)("button",{type:"button",className:"tf-announce-x","aria-label":t.dismiss,onClick:()=>{n[1](!0),e.onDismiss&&e.onDismiss()},children:(0,de.jsx)(x,{name:"x",size:14})})]})}var Pe=G(ye(),1),wR=G(re(),1);function fb(e){let t=e.code||"404",n={404:["Page not found","The link may be old, or the page moved. Nothing is broken on your side.","search","sky"],500:["Something broke on our side","We\u2019ve been notified and are on it. Your data is safe; try again in a minute.","x","blush"],maintenance:["Back in a few minutes","We\u2019re upgrading the database. Everything you saved is safe.","settings","butter"],offline:["You\u2019re offline","Changes are kept on this device and sync when you\u2019re back.","globe","lilac"],403:["You don\u2019t have access","Ask a workspace owner to invite you to this area.","lock","lilac"]}[t]||[e.title,e.text,"sparkle","sky"];return(0,Pe.jsxs)("div",{className:"tf-status-screen",children:[(0,Pe.jsxs)("div",{className:"tf-status-art","aria-hidden":!0,children:[/^\d+$/.test(t)&&(0,Pe.jsx)("span",{className:"tf-status-code",children:t}),(0,Pe.jsx)(ce,{icon:e.icon||n[2],tint:e.tint||n[3],size:56})]}),(0,Pe.jsx)("h1",{children:e.title||n[0]}),(0,Pe.jsx)("p",{children:e.text||n[1]}),e.extra,(0,Pe.jsx)("div",{className:"tf-row",style:{justifyContent:"center"},children:e.actions||[(0,Pe.jsx)(K,{icon:"home",onClick:e.onHome,children:"Back to overview"},"h"),(0,Pe.jsx)(K,{variant:"secondary",icon:"mail",onClick:e.onContact,children:"Contact support"},"s")]}),e.reference&&(0,Pe.jsx)("span",{className:"tf-status-ref",children:`Reference ${e.reference}`})]})}function db(e){return(0,Pe.jsxs)("div",{className:"tf-auth",children:[e.brand&&(0,Pe.jsxs)("div",{className:"tf-auth-brand",children:[(0,Pe.jsx)("span",{className:"tf-brand-word",children:e.brand}),(0,Pe.jsx)("span",{className:"tf-brand-dot"})]}),e.icon&&(0,Pe.jsx)(ce,{icon:e.icon,tint:e.tint||"sky",size:48}),(0,Pe.jsxs)("div",{className:"tf-col",style:{gap:8},children:[(0,Pe.jsx)("h1",{className:"tf-auth-title",children:e.title}),e.text&&(0,Pe.jsx)("p",{className:"tf-auth-text",children:e.text})]}),e.children,e.foot&&(0,Pe.jsx)("div",{className:"tf-auth-foot",children:e.foot})]})}var Xe=G(re(),1),bu=G(lr(),1),TS=G(mS(),1);var gS=/^\d{4}-\d{2}-\d{2}(?:[T ][\d:.]+(?:Z|[+-]\d{2}:?\d{2})?)?$/,hS=/^\s*-?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?\s*$/i;function eh(e){let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t}function X5(e,t){return typeof t=="string"&&gS.test(t)?eh(t)??t:t}function vS(e,t){if(t===null)return;if(e.flags.includes("?")&&t==="null")return null;switch(e.kind){case"b":return t!=="false";case"n":return hS.test(t)?Number(t):void 0;case"x":return hS.test(t)?Number(t):t;case"s":return e.flags.includes("!")&&t==="false"?!1:t;case"d":return eh(t);case"r":return t;case"R":case"K":case"j":{let a=t.trim();try{return JSON.parse(a,e.flags.includes("t")?X5:void 0)}catch{return e.kind==="R"?[t]:e.flags.includes("t")&&gS.test(a)?eh(a):e.flags.includes("l")?a.split(",").map(l=>l.trim()).filter(Boolean):t}}default:return}}function bS(e){if(!e||!e.trim())return;let t={};for(let n of e.split(/;(?![^(]*\))/)){let a=n.indexOf(":");if(a<0)continue;let l=n.slice(0,a).trim(),i=n.slice(a+1).trim();!l||!i||(t[l.startsWith("--")?l:l.replace(/-([a-z])/g,(s,c)=>c.toUpperCase())]=i)}return t}function pS(e){if(!e||typeof e!="object"||!("nativeEvent"in e)||!("target"in e))return e;let t=e.target;return t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")?t.checked:t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement?t.value:null}function yS(e){return!!e&&typeof e=="object"&&"nativeEvent"in e&&"target"in e}function NS(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").toLowerCase()}function SS(e){return e.replace(/-([a-z0-9])/g,(t,n)=>n.toUpperCase())}var gu=e=>e?e.split(" ").filter(Boolean):[];function xS(e){let t=gu(e.p).map(l=>{let[i="",s="j"]=l.split(":");return{name:i,attr:NS(i),kind:s.charAt(0),flags:s.slice(1)}}),n=gu(e.e).map(l=>{let[i="",s="0"]=l.split(":");return{prop:i,type:i.slice(2).toLowerCase(),arity:parseInt(s,10)||0,conditional:s.endsWith("?")}}),a=gu(e.s).map(l=>{let[i="",s="",c="detail"]=l.split(":");return{event:i,prop:s,from:c==="false"?"false":"detail"}});return{tag:e.t,component:e.c,props:t,byAttr:new Map(t.map(l=>[l.attr,l])),byName:new Map(t.map(l=>[l.name,l])),events:n,byType:new Map(n.map(l=>[l.type,l])),sync:a,dismiss:new Set(gu(e.x)),dialog:!!e.dialog,closeChildren:!!e.close}}var th=new WeakSet,K5=new Set(["title","role","lang"]),Z5=e=>K5.has(e)||e.startsWith("aria-"),ES=new Set(["id","slot","hidden","children","className","style","dir","inert","autofocus","tabIndex","accessKey","draggable","translate","spellcheck","contentEditable","nonce","part","popover","innerHTML","textContent"]),CS="tf-root",nh=0;function vu(e){for(let t=e.parentNode;t;t=t.parentNode)if(t instanceof Oa)return t;return null}function F5(e,t){for(let n=e.parentNode;n&&n!==t;n=n.parentNode){if(n===t._stash)return"stash";let a=n.__tfSlot;if(a)return a.owner===t?a:null}return null}var I5=e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&!/^\s*\n\s*$/.test(e.nodeValue??"")&&e.nodeValue!=="";function MS({el:e}){return(0,Xe.useSyncExternalStore)(e._subscribe,e._snapshot,e._snapshot),(0,Xe.useLayoutEffect)(()=>{e._sweep()}),e._view()}function ah({owner:e,nodes:t}){let n=(0,Xe.useRef)(null),[a,l]=(0,Xe.useState)([]),i=(0,Xe.useMemo)(()=>{let s=[],c={owner:e,rescan(){let r=n.current;if(!r||!r.isConnected)return;let u=[];for(let o of r.querySelectorAll("*"))o instanceof Oa&&vu(o)===e&&o.isConnected&&u.push(o);for(let o of u)o._slot!==c&&o._enterPortal(c);for(let o of s)!u.includes(o)&&o._slot===c&&o._leave();(u.length!==s.length||u.some((o,f)=>o!==s[f]))&&(s=u,l(u))},release(r){s.includes(r)&&(s=s.filter(u=>u!==r),l(s))}};return c},[e]);return(0,Xe.useLayoutEffect)(()=>{let s=n.current;if(!s)return;if(s.__tfSlot=i,!(s.childNodes.length===t.length&&t.every((f,d)=>s.childNodes[d]===f)))for(let f of t)s.appendChild(f);let r=!1,u=()=>{r||(r=!0,queueMicrotask(()=>{r=!1,i.rescan()}))};u();let o=new MutationObserver(f=>{for(let d of f)for(let m of[d.addedNodes,d.removedNodes])for(let N of m)if(N instanceof Element&&(N instanceof Oa||N.querySelector(Oa.selector)))return u()});return o.observe(s,{childList:!0,subtree:!0}),()=>{o.disconnect(),queueMicrotask(()=>e._sweep())}},[t,i,e]),(0,Xe.createElement)("span",{ref:n,"data-tf-slot":"",style:{display:"contents"}},a.map(s=>s._mount?(0,bu.createPortal)((0,Xe.createElement)(MS,{el:s}),s._mount,s._mountKey):null))}function J5({onClose:e,children:t}){let n=(0,Xe.useRef)(null);return Ol(n,e),(0,Xe.useEffect)(()=>{let a=setTimeout(()=>{let l=n.current,i=l?.querySelector('[autofocus], input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select'),s=document.activeElement,c=s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement;l&&i&&!(c&&l.contains(s))&&i.focus()},30);return()=>clearTimeout(a)},[]),(0,Xe.createElement)("div",{ref:n,"data-tf-dialog":"",style:{position:"fixed",inset:0,zIndex:85,overflowY:"auto"},onClick:a=>{a.target instanceof Element&&a.target.classList.contains("tf-backdrop")&&e?.()}},t)}var Oa=class e extends HTMLElement{static def;static component;static selector="tf-provider";_key=`tf${(++nh).toString(36)}`;_values=new Map;_fns=new Map;_slots=null;_views=new Map;_root=null;_mount=null;_mountKey="";_slot=null;_stash=null;_rendered=!1;_version=0;_subs=new Set;_listeners=new Map;_callbacks=new Map;_closeFn;_stripping=new Set;_waiting=!1;_observer=null;constructor(){super();let t=this._def;for(let a of t.events)a.type!=="click"&&HTMLElement.prototype.addEventListener.call(this,a.type,l=>{!th.has(l)&&l.target!==this&&this._isOwnDom(l.target)&&l.stopImmediatePropagation()});if(t.closeChildren){let a=l=>{l.target!==this&&th.has(l)&&this._closeFn?.()};HTMLElement.prototype.addEventListener.call(this,"close",a),this._listeners.set("close",new Set([a]))}let n=this;for(let a of[...t.props.map(l=>l.name),...t.events.map(l=>l.prop)])if(!ES.has(a)&&Object.prototype.hasOwnProperty.call(this,a)){let l=n[a];delete n[a],n[a]=l}}get _def(){return this.constructor.def}connectedCallback(){this._waiting||(document.readyState==="loading"?(this._waiting=!0,document.addEventListener("DOMContentLoaded",()=>{this._waiting=!1,this._attach()},{once:!0})):queueMicrotask(()=>this._attach()))}disconnectedCallback(){queueMicrotask(()=>{this.isConnected||this._leave()})}attributeChangedCallback(t,n,a){if(a===null&&this._stripping.delete(t))return;let i=this._def.byAttr.get(t);if(i){let s=vS(i,a);s===void 0?this._values.delete(i.name):this._values.set(i.name,s),Z5(t)&&a!==null&&(this._stripping.add(t),this.removeAttribute(t))}this._bump()}_attach(){if(!this.isConnected)return;let t=vu(this);if(t){let l=F5(this,t);if(l==="stash")return;if(l){this._slot!==l&&l.rescan();return}if(!t._rendered)return}if(this._root)return;this._leave(),this._prepare();let n=this._newMount(),a=(0,TS.createRoot)(n,{identifierPrefix:`${this._key}-`});this._root=a,(0,bu.flushSync)(()=>a.render((0,Xe.createElement)(MS,{el:this})))}_leave(){let t=this._root,n=this._slot;this._root=null,this._slot=null,this._mount?.remove(),this._mount=null,t&&t.unmount(),n?.release(this)}_enterPortal(t){this._leave(),this._prepare(),this._newMount(),this._slot=t}_newMount(){let t=document.createElement(CS);return t.style.display="contents",this._mount=t,this._mountKey=`${this._key}-${(++nh).toString(36)}`,this.appendChild(t),t}_prepare(){if(!this._slots){this._slots=new Map;for(let t of[...this.childNodes])this._take(t);this._observer=new MutationObserver(t=>{if(this._mount&&this._mount.parentNode!==this){this._slots=null,this._views.clear(),this._observer?.disconnect(),this._leave(),this._attach();return}let n=!1;for(let a of t)for(let l of a.addedNodes)l.parentNode===this&&(n=this._take(l)||n);n&&(this._views.clear(),this._bump())}),this._observer.observe(this,{childList:!0})}}_take(t){if(t===this._mount||t===this._stash||t instanceof Element&&t.localName===CS||!I5(t))return!1;let n=t instanceof Element?t.getAttribute("slot"):null,a="children";if(n){let l=n.indexOf(":"),i=SS(l<0?n:n.slice(0,l));a=l<0?i:`${i}:${n.slice(l+1)}`}return this._slots?.set(a,[...this._slots.get(a)??[],t]),!0}_sweep(){if(this._rendered=!0,!!this._slots){for(let t of this._slots.values())for(let n of t)if(n.parentNode===this||!this.contains(n)){if(!this._stash){let a=document.createElement("div");a.hidden=!0,a.dataset.tfStash="",this._stash=a}this._stash.parentNode!==this&&this.appendChild(this._stash),this._stash.appendChild(n)}}}_isOwnDom(t){for(let n=t;n&&n!==this;n=n.parentNode)if(n.__tfSlot?.owner===this)return!1;return!0}_subscribe=t=>(this._subs.add(t),()=>this._subs.delete(t));_snapshot=()=>this._version;_bump(){this._version++;for(let t of this._subs)t()}addEventListener(t,n,a){if(!n)return;super.addEventListener(t,n,a);let l=this._listeners.get(t);l||this._listeners.set(t,l=new Set);let i=l.size===0;l.add(n),i&&this._bumpTree(t)}removeEventListener(t,n,a){if(!n)return;super.removeEventListener(t,n,a);let l=this._listeners.get(t);l?.delete(n)&&l.size===0&&this._bumpTree(t)}_listens(t){let n=a=>{let l=a;return!!a._listeners.get(t)?.size||a.hasAttribute(`on${t}`)||typeof l[`on${t}`]=="function"||typeof l[`__${t}`]=="function"};if(n(this))return!0;for(let a=vu(this);a;a=vu(a))if(n(a))return!0;return!1}_bumpTree(t){this._def.byType.get(t)?.conditional&&this._bump();for(let n of this.querySelectorAll(e.selector))n instanceof e&&n._def.byType.get(t)?.conditional&&n._bump()}_slotView(t,n){let a=`${t}|${n?1:0}`;if(this._views.has(a))return this._views.get(a);let l=this._slots?.get(t),i;return l?.length&&(i=l.length===1&&!n?(0,Xe.createElement)(ah,{owner:this,nodes:l}):l.map((s,c)=>(0,Xe.createElement)(ah,{key:c,owner:this,nodes:[s]}))),this._views.set(a,i),i}_nodeView(t){if(t instanceof Node){let n=this._views.get(`node|${t.__tfKey??""}`);if(!n){let a=t.__tfKey??=`n${(++nh).toString(36)}`;n=(0,Xe.createElement)(ah,{key:a,owner:this,nodes:[t]}),this._views.set(`node|${a}`,n)}return n}return Array.isArray(t)?t.map(n=>this._nodeView(n)):t}_propValue(t){if(t.kind==="r"||t.kind==="R"){let a=this._slotView(t.name,t.kind==="R");if(a!==void 0)return a}if(t.kind==="K"&&this._slots){let a;for(let l of this._slots.keys())l.startsWith(`${t.name}:`)&&((a??={})[l.slice(t.name.length+1)]=this._slotView(l,!1));if(a)return{...this._values.get(t.name),...a}}if(t.kind==="f")return this._fns.get(t.name);let n=this._values.get(t.name);if(n!==void 0)return t.kind==="r"||t.kind==="R"?this._nodeView(n):n}_callback(t){let n=this._callbacks.get(t.prop);return n||(n=(...a)=>this._fire(t,a),this._callbacks.set(t.prop,n)),n}_fire(t,n){let a=this._fns.get(t.prop),l=a?a.apply(this,n):void 0,i=n[0];if(t.type==="click"&&yS(i)&&i.nativeEvent.type==="click")return l;let s=n.map(pS),c=t.arity>1?Array.from({length:Math.max(t.arity,s.length)},(u,o)=>s[o]):s.length?s[0]:null,r=new CustomEvent(t.type,{detail:c,bubbles:!0,composed:!0,cancelable:!0});return th.add(r),this.dispatchEvent(r)&&this._after(t,s[0]),l}_after(t,n){let a=this._def,l=!1;for(let i of a.sync)i.event===t.prop&&this._values.get(i.prop)!==void 0&&(this._values.set(i.prop,i.from==="false"?!1:n),l=!0);l?this._bump():a.dismiss.has(t.prop)&&(this.hidden=!0)}_passes(t){return!t.conditional||this._fns.has(t.prop)||this._def.sync.some(n=>n.event===t.prop&&this._values.get(n.prop)!==void 0)?!0:this._listens(t.type)}_props(){let t=this._def,n={};for(let s of t.props){let c=this._propValue(s);c!==void 0&&(n[s.name]=c)}let a=this._slotView("children",!1);t.closeChildren?n.children=s=>(this._closeFn=s.close,a??null):a!==void 0&&(n.children=a);let l=this.getAttribute("class");l&&(n.className=l);let i=bS(this.getAttribute("style"));i&&(n.style=i);for(let s of t.events)this._passes(s)&&(n[s.prop]=this._callback(s));return n}_view(){if(this.hidden)return null;let t=this.constructor.component,n=this._props(),a=(0,Xe.createElement)(t,n);return this._def.dialog?(0,Xe.createElement)(J5,{onClose:n.onClose},a):a}};function kS(e,t){let n=[...e.props.filter(s=>s.kind!=="f").map(s=>s.attr),...e.events.map(s=>`on${s.type}`),"class","style","hidden"];class a extends Oa{static def=e;static component=t;static observedAttributes=[...new Set(n)]}let l=a.prototype,i=(s,c,r)=>{ES.has(s)||Object.defineProperty(l,s,{configurable:!0,enumerable:!0,get:c,set:r})};for(let s of e.props)i(s.name,function(){return s.kind==="f"?this._fns.get(s.name):this._values.get(s.name)},function(c){s.kind==="f"?typeof c=="function"?this._fns.set(s.name,c):this._fns.delete(s.name):c===void 0?this._values.delete(s.name):this._values.set(s.name,c),this._views.clear(),this._bump()});for(let s of e.events)i(s.prop,function(){return this._fns.get(s.prop)},function(c){typeof c=="function"?this._fns.set(s.prop,c):this._fns.delete(s.prop),this._bump()});return a}var pu=[{t:"tf-provider",c:"UIProvider",p:"kit:s theme:s density:s scope:s tokens:j surface:s motion:s locale:s messages:j"},{t:"tf-icon",c:"Icon",p:"name:s size:n label:s"},{t:"tf-range-slider",c:"RangeSlider",p:"label:r min:n max:n step:n value:j defaultValue:j unit:s inputs:b openEnd:b format:f hint:r",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-bar-list",c:"BarList",p:"items:j format:f label:s",e:"onPick:1?"},{t:"tf-status-select",c:"StatusSelect",p:"options:j value:s defaultValue:s size:s label:s width:n",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-tile-picker",c:"TilePicker",p:"options:j value:j defaultValue:j multiple:b min:n label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-live-feed",c:"LiveFeed",p:"items:j types:j paused:b maxHeight:n emptyText:s",e:"onPause:1"},{t:"tf-map-view",c:"MapView",p:"points:j bounds:j background:r bubbles:b selected:x? renderPopup:f legend:r controls:r height:x label:s surface:s",e:"onSelect:1"},{t:"tf-balance-card",c:"BalanceCard",p:"name:s sub:r logo:r icon:s tint:s balance:n currency:s perDay:n low:n spark:j status:s statusLabel:s topUpLabel:s action:r",e:"onTopUp:0?"},{t:"tf-service-monitor",c:"ServiceMonitor",p:"items:j label:s"},{t:"tf-run-history",c:"RunHistory",p:"items:j label:s"},{t:"tf-webhook-endpoint",c:"WebhookEndpoint",p:"url:s events:jl status:s statusLabel:s successRate:n enabled:b secret:r deliveries:j menu:jl defaultOpen:b",e:"onToggle:0? onRetry:1?"},{t:"tf-backup-list",c:"BackupList",p:"items:j footer:r label:s",e:"onDownload:1? onRestore:1?"},{t:"tf-block-list",c:"BlockList",p:"items:j addLabel:s removeLabel:s searchPlaceholder:s emptyText:s",e:"onAdd:0? onRemove:1?"},{t:"tf-review-card",c:"ReviewCard",p:"author:s verified:b product:s date:s rating:n title:s text:s state:s stateLabel:s highlight:jl reply:s replyLabel:s",e:"onPublish:0? onHide:0? onReply:1?"},{t:"tf-coupon-card",c:"CouponCard",p:"code:s kind:s value:n currency:s used:n limit:n until:s min:n revenue:n text:r status:s statusLabel:s menu:jl",e:"onCopy:0"},{t:"tf-locale-field",c:"LocaleField",p:"label:r locales:j value:j defaultValue:j source:s active:s multiline:b rows:n placeholder:s hint:r error:r",e:"onChange:1 onTranslate:2?",s:"onChange:value:detail"},{t:"tf-locale-switcher",c:"LocaleSwitcher",p:"languages:j language:s currencies:jl currency:s variant:s",e:"onLanguage:1 onCurrency:1"},{t:"tf-workspace-switcher",c:"WorkspaceSwitcher",p:"items:j value:s label:s footer:r variant:s width:n",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-export-dialog",c:"ExportDialog",p:"open:b inline:b title:s text:r count:n formats:jl format:s columns:j ranges:b range:jt note:r download:r doneText:s",e:"onClose:0 onExport:2 onDownload:0",s:"onClose:open:false",x:"onClose"},{t:"tf-two-factor-setup",c:"TwoFactorSetup",p:"qr:r secret:s codes:jl step:n scanText:s codesText:s",e:"onVerify:1? onDownload:0? onDone:0"},{t:"tf-color-field",c:"ColorField",p:"label:r value:s defaultValue:s against:s! hint:r",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-agent-card",c:"AgentCard",p:"name:s role:s tint:s status:s statusLabel:s model:s cost:s last:r",e:"onClick:0? onChat:0?"},{t:"tf-agent-details",c:"AgentDetails",p:"name:s role:s tint:s status:s statusLabel:s sections:j actions:R"},{t:"tf-chat-list",c:"ChatList",p:"groups:j selected:s filters:r searchPlaceholder:s",e:"onSelect:1 onSearch:1"},{t:"tf-chat-workspace",c:"ChatWorkspace",p:"list:r thread:r details:r"},{t:"tf-search-hits",c:"SearchHits",p:"items:j query:s emptyText:s",e:"onOpen:1"},{t:"tf-thinking-line",c:"ThinkingLine",p:"text:s"},{t:"tf-feedback-rating",c:"FeedbackRating",p:"value:s? label:s placeholder:s thanks:s askOnUp:b",e:"onRate:1 onSubmit:2"},{t:"tf-activity-feed",c:"ActivityFeed",p:"groups:j items:j"},{t:"tf-daily-briefing",c:"DailyBriefing",p:"title:s time:s tint:s summary:r attention:j suggestions:R attentionTitle:s suggestionsTitle:s"},{t:"tf-budget-stop",c:"BudgetStop",p:"spent:n budget:n title:s text:r paused:r running:r actionLabel:s",e:"onRaise:0?"},{t:"tf-memory-viewer",c:"MemoryViewer",p:"items:j",e:"onEdit:1? onDelete:1?"},{t:"tf-override-diff",c:"OverrideDiff",p:"title:s versions:r by:r before:s after:s discardLabel:s promoteLabel:s",e:"onDiscard:0? onPromote:0?"},{t:"tf-trigger-list",c:"TriggerList",p:"items:j",e:"onToggle:1? onRun:1?"},{t:"tf-schedule-calendar",c:"ScheduleCalendar",p:"events:j from:n to:n days:jl",e:"onOpen:1"},{t:"tf-org-chart",c:"OrgChart",p:"root:j"},{t:"tf-voice-mode",c:"VoiceMode",p:"name:s tint:s state:s stateLabel:s transcript:r muted:b",e:"onMute:0? onEnd:0?"},{t:"tf-mobile-tab-bar",c:"MobileTabBar",p:"items:j active:s label:s",e:"onPick:1"},{t:"tf-push-notification",c:"PushNotification",p:"app:s time:s title:s text:r actions:j"},{t:"tf-config-pr-summary",c:"ConfigPRSummary",p:"title:s meta:r status:s statusLabel:s summary:r items:j actions:R"},{t:"tf-module-registry",c:"ModuleRegistry",p:"items:j coreLabel:s",e:"onToggle:1"},{t:"tf-approval-card",c:"ApprovalCard",p:"title:r text:r agent:s project:s family:s familyLabel:s age:s escalation:r trace:r note:r heading:s options:j approveLabel:s decision:j compact:b state:s",e:"onDecide:2 onApprove:0 onDeny:0 onEdit:1"},{t:"tf-approval-inbox",c:"ApprovalInbox",p:"items:j selected:x emptyTitle:s emptyText:s label:s",e:"onSelect:1?"},{t:"tf-kbd",c:"Kbd",p:"keys:jl"},{t:"tf-key-value",c:"KeyValue",p:"items:j dense:b"},{t:"tf-spinner",c:"Spinner",p:"size:s label:s"},{t:"tf-collapsible",c:"Collapsible",p:"title:r meta:r defaultOpen:b open:b",e:"onOpenChange:1",s:"onOpenChange:open:detail"},{t:"tf-context-menu",c:"ContextMenu",p:"items:jl"},{t:"tf-split-pane",c:"SplitPane",p:"left:r right:r defaultSize:n min:n max:n storageKey:s"},{t:"tf-resizable-panels",c:"ResizablePanels",p:"panels:R defaultSizes:j min:n orientation:s storageKey:s labels:jl"},{t:"tf-tree-view",c:"TreeView",p:"items:j defaultOpen:jl selected:s label:s",e:"onSelect:1"},{t:"tf-inline-edit",c:"InlineEdit",p:"value:s options:jl mono:b type:s display:f align:s label:s",e:"onSave:1"},{t:"tf-bar-chart",c:"BarChart",p:"data:j tint:s height:n width:n barWidth:n format:f label:s"},{t:"tf-line-chart",c:"LineChart",p:"labels:jl series:j height:n width:n format:f label:s"},{t:"tf-sparkline",c:"Sparkline",p:"values:j tint:s width:n height:n label:s"},{t:"tf-donut",c:"Donut",p:"data:j center:s caption:s size:n stroke:n legend:b label:s"},{t:"tf-legend",c:"Legend",p:"items:j"},{t:"tf-stacked-bar-chart",c:"StackedBarChart",p:"labels:jl series:j height:n width:n barWidth:n format:f legend:b label:s"},{t:"tf-area-chart",c:"AreaChart",p:"labels:jl series:j stacked:b height:n width:n format:f legend:b label:s"},{t:"tf-heatmap",c:"Heatmap",p:"rows:jl cols:jl values:j colEvery:n caption:s format:f label:s"},{t:"tf-funnel",c:"Funnel",p:"steps:j tint:s format:f"},{t:"tf-gauge",c:"Gauge",p:"value:n max:n caption:s format:f tint:s thresholds:j size:n stroke:n showRange:b label:s"},{t:"tf-rich-text",c:"RichText",p:"text:s streaming:b"},{t:"tf-code-block",c:"CodeBlock",p:"code:s lang:s open:b"},{t:"tf-typing-dots",c:"TypingDots",p:"label:s"},{t:"tf-agent-mark",c:"AgentMark",p:"tint:s icon:s size:n live:b"},{t:"tf-chat-message",c:"ChatMessage",p:"role:s name:s time:s model:s text:s streaming:b tint:s sources:j attachments:j usage:s actions:b before:r after:r feedback:s?",e:"onRetry:0? onFeedback:1"},{t:"tf-tool-call",c:"ToolCall",p:"name:s icon:s status:s summary:r duration:s input:j output:j defaultOpen:b"},{t:"tf-reasoning",c:"Reasoning",p:"steps:jl text:r duration:s streaming:b defaultOpen:b"},{t:"tf-prompt-starters",c:"PromptStarters",p:"items:j",e:"onPick:1"},{t:"tf-model-picker",c:"ModelPicker",p:"models:j value:s side:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-composer",c:"Composer",p:"value:s busy:b placeholder:s label:s models:j model:s commands:j attachments:j hint:s left:r disabled:b",e:"onChange:1 onSend:2 onStop:0 onModel:1 onCommand:1? onAttach:1? onRemoveAttachment:1?",s:"onChange:value:detail"},{t:"tf-agent-status",c:"AgentStatus",p:"status:s step:s"},{t:"tf-run-trace",c:"RunTrace",p:"steps:j defaultOpen:n? footer:r"},{t:"tf-usage-meter",c:"UsageMeter",p:"used:n limit:n label:s caption:s format:f"},{t:"tf-product-art",c:"ProductArt",p:"kind:s tint:s size:n label:s"},{t:"tf-price",c:"Price",p:"value:n compareAt:n currency:s size:s showSave:b"},{t:"tf-rating",c:"Rating",p:"value:n count:n size:n"},{t:"tf-stock-badge",c:"StockBadge",p:"stock:n low:n compact:b"},{t:"tf-product-card",c:"ProductCard",p:"name:s meta:s art:s tint:s price:n compareAt:n rating:n reviews:n badge:s badgeTone:s stock:n wished:b added:b",e:"onWish:0? onAdd:0? onClick:0"},{t:"tf-variant-picker",c:"VariantPicker",p:"label:s type:s options:jl value:s defaultValue:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-cart-line",c:"CartLine",p:"name:s variant:s note:s art:s tint:s price:n qty:n",e:"onQty:1? onRemove:0"},{t:"tf-order-summary",c:"OrderSummary",p:"lines:j showLines:b discount:j shipping:n? freeShippingFrom:n vat:n title:s! action:r",e:"onCoupon:1?"},{t:"tf-checkout-steps",c:"CheckoutSteps",p:"steps:jl current:n",e:"onPick:1?"},{t:"tf-order-timeline",c:"OrderTimeline",p:"status:s times:j"},{t:"tf-plan-card",c:"PlanCard",p:"name:s text:s price:n? was:n per:s features:jl featured:b flag:s current:b cta:s disabled:b",e:"onPick:0"},{t:"tf-count-up",c:"CountUp",p:"value:x duration:n delay:n"},{t:"tf-stat-tile",c:"StatTile",p:"value:r label:s tint:s delta:s delay:n"},{t:"tf-card",c:"Card",p:"title:s description:s meta:jl corner:r status:r actions:R tint:s eyebrow:r surface:s",e:"onClick:0?"},{t:"tf-event-card",c:"EventCard",p:"kind:s label:s date:s time:s tint:s icon:s actions:b"},{t:"tf-panel",c:"Panel",p:"side:b title:s subtitle:s action:r surface:s"},{t:"tf-page-header",c:"PageHeader",p:"crumbs:jl title:s subtitle:s actions:R"},{t:"tf-stagger",c:"Stagger",p:"as:s delay:n reveal:b"},{t:"tf-table",c:"Table",p:"columns:j rows:j animate:b"},{t:"tf-list-row",c:"ListRow",p:"avatar:s icon:s tint:s leading:r title:r subtitle:r meta:r trailing:r unread:b active:b",e:"onClick:0"},{t:"tf-timeline",c:"Timeline",p:"items:j delay:n"},{t:"tf-file-row",c:"FileRow",p:"name:s meta:s kind:s"},{t:"tf-kanban-column",c:"KanbanColumn",p:"title:s dot:s delay:n",e:"onAdd:0"},{t:"tf-progress",c:"Progress",p:"value:n tint:s label:s"},{t:"tf-progress-ring",c:"ProgressRing",p:"value:n tint:s size:n stroke:n caption:s label:s"},{t:"tf-filter-bar",c:"FilterBar",p:"filters:j value:j search:s query:s right:r",e:"onChange:1 onQuery:1",s:"onChange:value:detail"},{t:"tf-data-table",c:"DataTable",p:"columns:j rows:j rowKey:s selectable:b bulkActions:j renderExpanded:f stickyHeader:b maxHeight:x defaultSort:j toolbar:r columnToggle:b empty:r"},{t:"tf-log-view",c:"LogView",p:"lines:jl title:r right:r numbers:b follow:b maxHeight:n"},{t:"tf-code-viewer",c:"CodeViewer",p:"value:j lang:s"},{t:"tf-secret-field",c:"SecretField",p:"prefix:s last4:s value:s meta:r",e:"onReveal:0? onCopy:0? onRotate:0?"},{t:"tf-money-input",c:"MoneyInput",p:"label:s value:n? currency:s vat:s vatOptions:j showGross:b hint:r error:r defaultValue:n? required:b",e:"onChange:1 onVat:1",s:"onChange:value:detail"},{t:"tf-settings-layout",c:"SettingsLayout",p:"sections:j footer:r"},{t:"tf-shortcuts-overlay",c:"ShortcutsOverlay",p:"open:b title:s groups:j",e:"onClose:0",s:"onClose:open:false",x:"onClose"},{t:"tf-stat-cell",c:"StatCell",p:"label:r value:r delta:n deltaText:s compare:s invert:b spark:j icon:s iconTint:s tint:s"},{t:"tf-uptime-bar",c:"UptimeBar",p:"days:jl uptime:n caption:r"},{t:"tf-meter",c:"Meter",p:"label:r value:n? max:n text:r warn:n danger:n tone:s"},{t:"tf-skeleton",c:"Skeleton",p:"variant:s width:x height:x"},{t:"tf-menu",c:"Menu",p:"items:jl label:s autoFocus:b",e:"onClose:0?"},{t:"tf-modal",c:"Modal",p:"title:s text:s icon:s tint:s actions:R open:b",e:"onClose:0",s:"onClose:open:false",x:"onClose",dialog:1},{t:"tf-toast",c:"Toast",p:"icon:s tint:s action:s",e:"onAction:0"},{t:"tf-empty-state",c:"EmptyState",p:"title:s text:s icon:s tint:s action:r"},{t:"tf-alert",c:"Alert",p:"tone:s title:r icon:s action:r",e:"onDismiss:0?",x:"onDismiss"},{t:"tf-confirm-dialog",c:"ConfirmDialog",p:"open:b title:s text:s danger:b icon:s confirmLabel:s cancelLabel:s confirmText:s",e:"onConfirm:0 onCancel:0",s:"onCancel:open:false onConfirm:open:false"},{t:"tf-toaster",c:"Toaster",p:"position:s"},{t:"tf-form-field",c:"FormField",p:"name:s label:r required:b optional:b hint:r error:r success:r"},{t:"tf-text-field",c:"TextField",p:"type:s icon:s suffix:r value:s defaultValue:s placeholder:s disabled:b readOnly:b autoComplete:s autoFocus:b min:x max:x step:x minLength:n maxLength:n pattern:s inputMode:s name:s label:r required:b optional:b hint:r error:r success:r",e:"onChange:1 onBlur:1",s:"onChange:value:detail"},{t:"tf-radio-group",c:"RadioGroup",p:"label:s options:jl value:s defaultValue:s cards:b hint:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-segmented",c:"Segmented",p:"options:jl value:s defaultValue:s size:s block:b label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-combobox",c:"Combobox",p:"label:s options:jl value:j defaultValue:j multiple:b creatable:b placeholder:s hint:s error:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-tag-input",c:"TagInput",p:"label:s value:jl defaultValue:jl placeholder:s hint:s error:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-calendar",c:"Calendar",p:"range:b value:jt today:d min:d max:d month:d",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-date-picker",c:"DatePicker",p:"label:s range:b value:jt defaultValue:jt presets:b min:d max:d today:d placeholder:s hint:s error:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-number-input",c:"NumberInput",p:"label:s value:n defaultValue:n min:n max:n step:n unit:s hint:s error:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-slider",c:"Slider",p:"label:s min:n max:n step:n value:n defaultValue:n format:f marks:b hint:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-otp-input",c:"OtpInput",p:"length:n error:b label:s",e:"onComplete:1"},{t:"tf-file-drop",c:"FileDrop",p:"files:j simulateProgress:b title:s hint:s accept:s multiple:b",e:"onChange:1 onFiles:1? onReject:1 onRemove:1"},{t:"tf-button",c:"Button",p:"variant:s size:s icon:s iconRight:s disabled:b type:s asChild:b name:s value:s form:s title:s tabIndex:n autoFocus:b aria-label:s aria-labelledby:s aria-describedby:s aria-expanded:j aria-controls:s aria-haspopup:j aria-pressed:j aria-current:j",e:"onClick:1"},{t:"tf-icon-button",c:"IconButton",p:"icon:s label:s variant:s size:s type:s disabled:b asChild:b name:s value:s form:s title:s tabIndex:n autoFocus:b aria-label:s aria-labelledby:s aria-describedby:s aria-expanded:j aria-controls:s aria-haspopup:j aria-pressed:j aria-current:j",e:"onClick:1"},{t:"tf-chip",c:"Chip",p:"selected:b icon:s count:n",e:"onClick:1"},{t:"tf-badge",c:"Badge",p:"tone:s dot:b live:b"},{t:"tf-tint-icon",c:"TintIcon",p:"icon:s tint:s label:s size:n"},{t:"tf-avatar",c:"Avatar",p:"name:s src:s size:n tint:s"},{t:"tf-avatar-stack",c:"AvatarStack",p:"names:jl max:n size:n"},{t:"tf-input",c:"Input",p:"type:s placeholder:s value:s defaultValue:s disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-select",c:"Select",p:"options:jl value:s defaultValue:s label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-textarea",c:"Textarea",p:"placeholder:s value:s defaultValue:s rows:n disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-search-field",c:"SearchField",p:"placeholder:s label:s shortcut:s value:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-checkbox",c:"Checkbox",p:"name:s value:s required:b checked:b defaultChecked:b disabled:b label:s",e:"onChange:1",s:"onChange:checked:detail"},{t:"tf-switch",c:"Switch",p:"name:s checked:b defaultChecked:b spread:b disabled:b label:s",e:"onChange:1",s:"onChange:checked:detail"},{t:"tf-form",c:"Form",p:"rules:j errors:j",e:"onSubmit:1 onInvalid:1"},{t:"tf-select-menu",c:"SelectMenu",p:"options:jl value:s defaultValue:s placeholder:s disabled:b label:s hint:s error:s name:s required:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-account-switcher",c:"AccountSwitcher",p:"accounts:j value:s? unread:n allLabel:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-inbox-list",c:"InboxList",p:"items:j selected:x",e:"onOpen:1"},{t:"tf-mail-thread",c:"MailThread",p:"subject:s messages:j reply:r"},{t:"tf-signature-editor",c:"SignatureEditor",p:"value:j fields:j note:r extra:r defaultValue:j previewLabel:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-attachment-preview",c:"AttachmentPreview",p:"name:s meta:r facts:j found:r actions:r width:x inline:b",e:"onClose:0",x:"onClose"},{t:"tf-image-variants",c:"ImageVariants",p:"variants:j selected:x alt:s tint:s actions:r",e:"onSelect:1"},{t:"tf-gallery",c:"Gallery",p:"items:j loading:s referrerPolicy:s start:n ratio:s thumbs:b fullscreen:b badge:r"},{t:"tf-before-after",c:"BeforeAfter",p:"before:j after:j start:n ratio:s beforeLabel:s afterLabel:s label:s valueText:f loading:s referrerPolicy:s"},{t:"tf-tabs",c:"Tabs",p:"items:jl value:s defaultValue:s block:b panels:K label:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-breadcrumb",c:"Breadcrumb",p:"items:jl"},{t:"tf-pagination",c:"Pagination",p:"total:n page:n defaultPage:n",e:"onChange:1?",s:"onChange:page:detail"},{t:"tf-menubar",c:"Menubar",p:"menus:j label:s"},{t:"tf-navigation-menu",c:"NavigationMenu",p:"items:j label:s"},{t:"tf-sidebar",c:"Sidebar",p:"groups:j current:s collapsed:b defaultCollapsed:b header:r footer:r label:s",e:"onPick:1 onCollapsedChange:1",s:"onCollapsedChange:collapsed:detail"},{t:"tf-connection-card",c:"ConnectionCard",p:"name:s icon:s logo:r text:r status:s statusLabel:s action:r"},{t:"tf-connection-banner",c:"ConnectionBanner",p:"state:s seconds:n text:r",e:"onRetry:0?"},{t:"tf-server-card",c:"ServerCard",p:"name:s provider:s address:s logo:r status:s statusLabel:s meters:j uptime:j foot:r"},{t:"tf-deploy-pipeline",c:"DeployPipeline",p:"stages:j"},{t:"tf-dns-record-table",c:"DnsRecordTable",p:"records:j rowMenu:f selectable:b bulkActions:j toolbar:r"},{t:"tf-domain-list",c:"DomainList",p:"items:j",e:"onOpen:1"},{t:"tf-mail-auth-status",c:"MailAuthStatus",p:"rows:j columns:jl",e:"onOpen:2"},{t:"tf-ledger-table",c:"LedgerTable",p:"rows:j categories:jl currency:s selectable:b bulkActions:j toolbar:r maxHeight:n columnToggle:b",e:"onEdit:2"},{t:"tf-pnl-statement",c:"PnLStatement",p:"columns:jl rows:j currency:s total:b label:s"},{t:"tf-receipt-suggestion",c:"ReceiptSuggestion",p:"file:s source:r fields:j suggestion:r confirmLabel:s discardLabel:s",e:"onConfirm:0? onDiscard:0?"},{t:"tf-popover",c:"Popover",p:"trigger:r open:b align:s side:s width:n flush:b block:b role:s",e:"onOpenChange:1",s:"onOpenChange:open:detail",close:1},{t:"tf-tooltip",c:"Tooltip",p:"label:r shortcut:s side:s defaultOpen:b"},{t:"tf-email-preview",c:"EmailPreview",p:"from:s fromName:s subject:s preheader:s html:s device:s checks:j",e:"onDevice:1"},{t:"tf-search-ad-preview",c:"SearchAdPreview",p:"name:s domain:s paths:jl headlines:jl descriptions:jl sitelinks:jl device:s sponsoredLabel:s",e:"onDevice:1"},{t:"tf-accordion",c:"Accordion",p:"items:j multiple:b value:jl defaultValue:jl variant:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-separator",c:"Separator",p:"orientation:s label:s"},{t:"tf-aspect-ratio",c:"AspectRatio",p:"ratio:n"},{t:"tf-label",c:"Label",p:"htmlFor:s required:b hint:r"},{t:"tf-toggle",c:"Toggle",p:"pressed:b defaultPressed:b icon:s label:s size:s disabled:b",e:"onChange:1",s:"onChange:pressed:detail"},{t:"tf-toggle-group",c:"ToggleGroup",p:"items:jl type:s value:jl defaultValue:jl label:s size:s",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-button-group",c:"ButtonGroup",p:"label:s orientation:s"},{t:"tf-scroll-area",c:"ScrollArea",p:"height:x maxHeight:x orientation:s label:s"},{t:"tf-hover-card",c:"HoverCard",p:"trigger:r side:s align:s openDelay:n closeDelay:n width:n"},{t:"tf-carousel",c:"Carousel",p:"slides:R label:s perView:n loop:b dots:b index:n defaultIndex:n",e:"onChange:1",s:"onChange:index:detail"},{t:"tf-listing-card",c:"ListingCard",p:"listing:j layout:s selected:b statusOptions:j",e:"onSelect:1? onWish:1? onStatus:2 onOpen:1?"},{t:"tf-results-toolbar",c:"ResultsToolbar",p:"title:s total:n meta:s selected:n bulkActions:j sortOptions:j sort:s views:jl view:s",e:"onSelectAll:1? onSort:1 onView:1"},{t:"tf-saved-search",c:"SavedSearch",p:"name:s criteria:R lastRun:s frequency:s newCount:n enabled:b openLabel:s icon:s tint:s",e:"onToggle:0? onEdit:0? onOpen:0?"},{t:"tf-valuation-card",c:"ValuationCard",p:"value:n low:n high:n asking:n perSqm:n compare:s currency:s confidence:n confidenceLabel:s facts:j note:r title:s action:r"},{t:"tf-energy-class",c:"EnergyClass",p:"value:s kwh:n kind:s scale:jl"},{t:"tf-rich-text-editor",c:"RichTextEditor",p:"label:r defaultValue:s value:s placeholder:s variables:j maxLength:n minHeight:n footer:r hint:r error:r disabled:b",e:"onChange:1",s:"onChange:value:detail"},{t:"tf-top-bar",c:"TopBar",p:"brand:s tag:s items:j active:s user:j extra:r userOpen:b",e:"onNavigate:1 onUser:0"},{t:"tf-side-rail",c:"SideRail",p:"top:j bottom:j"},{t:"tf-dock",c:"Dock",p:"items:j label:s surface:s"},{t:"tf-floating-layout",c:"FloatingLayout",p:"background:r top:r start:r end:r bottom:r height:x surface:s label:s"},{t:"tf-ambient",c:"Ambient",p:"colors:jl src:s video:b animate:b fixed:b"},{t:"tf-app-shell",c:"AppShell",p:"active:s brand:s tag:s nav:j user:j topExtra:r sheetStyle:j contentKey:x side:r dock:b dockItems:j railTop:j railBottom:j",e:"onNavigate:1"},{t:"tf-chat-launcher",c:"ChatLauncher",p:"title:s context:r tint:s open:b unread:n headerAction:r composer:r inline:b",e:"onOpenChange:1",s:"onOpenChange:open:detail"},{t:"tf-cookie-consent",c:"CookieConsent",p:"title:s text:r policy:r categories:j open:b inline:b",e:"onSave:1"},{t:"tf-announcement-bar",c:"AnnouncementBar",p:"tint:s icon:s! action:r",e:"onDismiss:0?",x:"onDismiss"},{t:"tf-status-shape",c:"StatusShape",p:"status:s"},{t:"tf-status-indicator",c:"StatusIndicator",p:"status:s label:r size:s"},{t:"tf-status-screen",c:"StatusScreen",p:"code:s title:s text:s icon:s tint:s extra:r actions:R reference:s",e:"onHome:0 onContact:0"},{t:"tf-auth-card",c:"AuthCard",p:"title:s text:s icon:s tint:s brand:s foot:r"},{t:"tf-sub-nav",c:"SubNav",p:"eyebrow:s action:j items:j current:s",e:"onPick:1"},{t:"tf-drawer",c:"Drawer",p:"title:s subtitle:r avatar:s width:x inline:b open:b side:s",e:"onClose:0",s:"onClose:open:false",x:"onClose"},{t:"tf-command-palette",c:"CommandPalette",p:"items:j placeholder:s inline:b loading:b empty:r open:b",e:"onClose:0 onQueryChange:1",s:"onClose:open:false",x:"onClose"},{t:"tf-notification-list",c:"NotificationList",p:"items:j",e:"onOpen:1 onReadAll:0"},{t:"tf-flow",c:"Flow",p:"steps:j active:n? waiting:b tools:f",e:"onApprove:0? onReject:0?"},{t:"tf-file-thumb",c:"FileThumb",p:"kind:s title:s big:b entries:jl"},{t:"tf-file-card",c:"FileCard",p:"name:s kind:s size:s meta:s shared:b",e:"onClick:0"},{t:"tf-wizard",c:"Wizard",p:"steps:j current:n done:j footer:r brand:s label:s",e:"onPick:1"},{t:"tf-permission-matrix",c:"PermissionMatrix",p:"roles:j areas:jl",e:"onChange:3"},{t:"tf-invoice-preview",c:"InvoicePreview",p:"number:x from:s to:s issued:s due:s lines:j note:s kind:s brand:s format:f"},{t:"tf-transaction-row",c:"TransactionRow",p:"text:s date:s amount:n matched:b matchRef:s hint:s",e:"onMatch:0"}];var H4="0.3.1",U4=Object.freeze(Object.fromEntries(pu.map(e=>[e.t,e.c]))),wS=pu.map(e=>e.t),RS=!1;function $5(){if(RS)return;RS=!0;let e=wS.join(","),t=`:where(${e},tf-root){display:contents}:where(${e})[hidden]{display:none}`;try{let n=new CSSStyleSheet;n.replaceSync(t),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n]}catch{let n=document.createElement("style");n.dataset.tfElements="",n.textContent=t,document.head.prepend(n)}}function P5(){if(typeof window>"u"||typeof customElements>"u")return;Oa.selector=wS.join(","),$5();let e=nf;for(let t of pu){if(customElements.get(t.t))continue;let n=e[t.c];typeof n=="function"&&customElements.define(t.t,kS(xS(t),n))}}P5();export{U4 as ELEMENTS,H4 as VERSION,P5 as defineElements,Qn as formatDate,Ml as formatMoney,wn as formatNumber,Rs as formatPercent,St as toast};
|
|
31
31
|
/*! Bundled license information:
|
|
32
32
|
|
|
33
33
|
react/cjs/react.production.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twentyfirstmedia/elements",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Every Twentyfirst UI component as a custom element: <tf-button>, <tf-data-table> … for plain HTML, Vue, Svelte, Angular, Astro and server templates.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Twentyfirst Media (https://twentyfirst.media)",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dist"
|
|
55
55
|
],
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@twentyfirstmedia/ui-core": "0.3.
|
|
57
|
+
"@twentyfirstmedia/ui-core": "0.3.1",
|
|
58
58
|
"@types/node": "26.6.6",
|
|
59
59
|
"@types/react": "19.3.0",
|
|
60
60
|
"@types/react-dom": "19.3.0",
|