@webority/ui-react 0.178.1 → 0.178.2
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/canvas-kit/kit.js
CHANGED
|
@@ -600,4 +600,4 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
|
|
|
600
600
|
`):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(EPt,this.editor.getAttributes(I5)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=k0({find:L5,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=k0({find:L5,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(I5),editor:this.editor})),[e]}}),DPt=(e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let e=i.depth;e>0;--e)if(i.node(e).type.name===t){a=e;break}if(a<0)return null;let o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;let c=o.child(s+1);if(!n.includes(c.type.name))return null;let l=e.schema.nodes[t],u=!1;if(c.forEach(e=>{e.type===l&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let f=[];return d.forEach(e=>{f.push(e)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},OPt=(e,t,n,r)=>{let i=DPt(e,n,r);if(!i)return!1;let{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:c,items:l}=i,u=e.tr;u.delete(s,s+o.nodeSize);let d=u.mapping.map(c);return u.insert(d,c2.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},kPt=(e,t,n)=>OPt(e.state,e.view.dispatch,t,n),z5=(e,t)=>f6.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>kPt(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),B5=[[1e3,`m`],[900,`cm`],[500,`d`],[400,`cd`],[100,`c`],[90,`xc`],[50,`l`],[40,`xl`],[10,`x`],[9,`ix`],[5,`v`],[4,`iv`],[1,`i`]],V5=`abcdefghijklmnopqrstuvwxyz`,H5=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`,U5=m6.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,f0(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0){if(Pkt(e))return{type:`listItem`,content:[{type:`paragraph`,content:Fkt(e.text||``,t)}]};if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>JDt(e,t,e=>{if(e.parentType===`bulletList`)return`- `;if(e.parentType===`orderedList`){var t,n;let r=((t=e.meta)==null||(t=t.parentAttrs)==null?void 0:t.start)||1;return Nkt((n=e.meta)==null||(n=n.parentAttrs)==null?void 0:n.type,r-1+(e.index||0),`. `)}return`- `},n,{alignNestedToPrefix:n?.parentType===`orderedList`}),addExtensions(){return[z5(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),W5=(e,t)=>{let{$from:n}=t.selection,r=K1(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},G5=(e,t)=>{let n=W5(e,t);if(!n)return!1;let[,r]=$jt(t,e,n.$pos.pos+4);return r},APt=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},K5=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!n0(e.state,t)&&APt(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!n0(e.state,t)||!rMt(e.state))return!1;let{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},jPt=(e,t)=>{let n=G5(e,t),r=W5(e,t);return!r||!n?!1:n>r.depth},MPt=(e,t)=>{let n=G5(e,t),r=W5(e,t);return!r||!n?!1:n<r.depth},q5=(e,t)=>{if(!n0(e.state,t)||!nMt(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:jPt(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():MPt(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},NPt=(e,t,n)=>{let{state:r}=e,{selection:i}=r;if(!i.empty)return!1;let{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||n0(r,t))return!1;let o=eMt(a);if(!o||!n.includes(o.type.name))return!1;let s=o.lastChild;if(!s||s.type.name!==t)return!1;let c=a.parent;if(!s.canReplace(s.childCount,s.childCount,c2.from(c)))return!1;let l=a.before(),u=a.after(),d=l-2;return e.commands.command(({tr:e,dispatch:t})=>(t&&(e.delete(l,u).insert(d,c2.from(c)),e.setSelection(e4.create(e.doc,d+1)),e.scrollIntoView()),!0))},J5=f6.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&q5(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&q5(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&K5(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&K5(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(let{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&NPt(e,t,n))return!0;return!1}}}}),Y5=RegExp(`^(\\s*)(${H5})([.)])\\s+(.*)$`),PPt=/^\s/,X5={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/},FPt=RegExp(`^(${H5})([.)])\\s+(.+)$`),IPt=64,LPt=`listItem`,Z5=`textStyle`,Q5=/^(\d+)\.\s$/,$5=m6.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute(`type`);if(t)return t;let n=e.getAttribute(`style`);if(n){let e=Kkt(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=Kkt(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=f0(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!==`1`&&(i.type=n),[`ol`,i,0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?Ukt(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:`orderedList`,attrs:a,content:i}:{type:`orderedList`,content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
601
601
|
`):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:()=>-1,tokenize:(e,t,n)=>{let[r,i,a]=Gkt(e);if(r.length===0)return;let o=Hkt(r,r[0].indent,n);if(o.length!==0)return{type:`list`,ordered:!0,start:r[0]?.number||1,typeMarker:r[0]?.type,items:o,raw:a.slice(0,i).join(`
|
|
602
602
|
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(LPt,this.editor.getAttributes(Z5)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new u4({props:{handlePaste:(e,t)=>{if((t.clipboardData?.getData(`text/html`))?.trim())return!1;let n=t.clipboardData?.getData(`text/plain`);if(!n)return!1;let r=Vkt(n);if(!r)return!1;try{let t=e.state.schema.nodeFromJSON(r),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})]},addInputRules(){let e=(e,t)=>(!t.attrs.type||t.attrs.type===`1`)&&t.childCount+t.attrs.start===+e[1],t=k0({find:Q5,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=k0({find:Q5,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Z5)}),joinPredicate:e,editor:this.editor})),[t]}}),RPt=/^\s*(\[([( |x])?\])\s$/,zPt=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,BPt=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)==null?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||`empty task item`}`},VPt=m6.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>e.querySelector(`div`)??e}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,f0(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>JDt(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[z5(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`);o.style.cssText=zPt;let l=e=>{let t=BPt(e,e.attrs.checked,this.options.a11y);s.setAttribute(`aria-label`,t),o.textContent=t};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=p0(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[k0({find:RPt,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),HPt=m6.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,f0(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
|
|
603
|
-
`):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=KDt(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=KDt(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),f6.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(R5.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(U5.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(J5.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push($5.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(VPt.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(HPt.configure(this.options.taskList)),e}}),e7=` `,t7=`\xA0`,UPt=m6.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,f0(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===e7||n[0].text===e7||n[0].raw===t7||n[0].text===t7)&&r.length===1&&r[0].type===`text`&&(r[0].text===e7||r[0].text===t7)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?e7:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),WPt=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,GPt=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,KPt=c6.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,f0(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[D0({find:WPt,type:this.type})]},addPasteRules(){return[A0({find:GPt,type:this.type})]}}),qPt=m6.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),JPt=c6.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,f0(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),YPt=f6.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(qNt.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(HNt.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(R5.configure(this.options.bulletList)),this.options.code!==!1&&e.push(XNt.configure(this.options.code)),this.options.codeBlock!==!1&&e.push($Nt.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(ePt.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(XMt.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(ZMt.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(tPt.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(nPt.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(eNt.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(rPt.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(cPt.configure(this.options.italic)),this.options.listItem!==!1&&e.push(U5.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(J5.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(TPt.configure(this.options?.link)),this.options.orderedList!==!1&&e.push($5.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(UPt.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(KPt.configure(this.options.strike)),this.options.text!==!1&&e.push(qPt.configure(this.options.text)),this.options.underline!==!1&&e.push(JPt.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push($Mt.configure(this.options?.trailingNode)),e}}),XPt=[2,3],n7=[`http`,`https`,`mailto`,`tel`],r7=/^[a-z][a-z0-9+.-]*:/i,i7={bold:e=>e.toggleBold(),italic:e=>e.toggleItalic(),code:e=>e.toggleCode(),heading2:e=>e.toggleHeading({level:2}),heading3:e=>e.toggleHeading({level:3}),bulletList:e=>e.toggleBulletList(),orderedList:e=>e.toggleOrderedList(),blockquote:e=>e.toggleBlockquote(),codeBlock:e=>e.toggleCodeBlock(),undo:e=>e.undo(),redo:e=>e.redo()},Object.keys(i7),a7=`http://www.w3.org/2000/svg`,o7=e=>Xkt({viewBox:`0 0 24 24`,width:18,height:18,fill:`none`,stroke:`currentColor`,"stroke-width":1.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`,focusable:`false`},e),s7=(e,t=``)=>E$(`span`,{class:`wui-rich-text-glyph${t?` wui-rich-text-glyph-${t}`:``}`,"aria-hidden":`true`},e),ZPt={bold:()=>s7(`B`,`bold`),italic:()=>s7(`I`,`italic`),heading2:()=>s7(`H2`),heading3:()=>s7(`H3`),code:()=>o7([[`path`,{d:`m8 8-4 4 4 4M16 8l4 4-4 4`}]]),codeBlock:()=>s7(`{ }`),link:()=>o7([[`path`,{d:`M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1`}]]),bulletList:()=>o7([[`path`,{d:`M9 6h11M9 12h11M9 18h11`}],[`circle`,{cx:`4.5`,cy:`6`,r:`.8`,fill:`currentColor`}],[`circle`,{cx:`4.5`,cy:`12`,r:`.8`,fill:`currentColor`}],[`circle`,{cx:`4.5`,cy:`18`,r:`.8`,fill:`currentColor`}]]),orderedList:()=>o7([[`path`,{d:`M10 6h10M10 12h10M10 18h10M4 5l1.5-1v4M4 14.5c0-1.4 2.5-1.4 2.5 0S4 16.5 4 17.5h2.5M4 20h2.5l-1.2 1.3c.8 0 1.2.5 1.2 1s-.6 1-1.5 1`}]]),blockquote:()=>o7([[`path`,{d:`M6 17c-1.5-1-2-2.5-2-4.5C4 9.5 5.5 8 8 7M14 17c-1.5-1-2-2.5-2-4.5 0-3 1.5-4.5 4-5.5`}]]),undo:()=>o7([[`path`,{d:`M9 14 4 9l5-5`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 0 11H11`}]]),redo:()=>o7([[`path`,{d:`m15 14 5-5-5-5`}],[`path`,{d:`M20 9H9.5a5.5 5.5 0 0 0 0 11H13`}]])},QPt=/\{([A-Za-z0-9_]+)\}/g,c7=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,$Pt=new Map,l7=0,u7=new Map,eFt={requiredFieldMessage:`Please fill in this field.`},tFt={applyLabel:`Apply`,ariaLabel:`Rich text`,boldLabel:`Bold`,bulletedListLabel:`Bulleted list`,cancelLabel:`Cancel`,closeLinkBoxLabel:`Close link box`,codeBlockLabel:`Code block`,heading2Label:`Heading 2`,heading3Label:`Heading 3`,helpLabel:`More information`,inlineCodeLabel:`Inline code`,italicLabel:`Italic`,linkAddressLabel:`Link address`,linkErrorMessage:`Use a web address, an email address or a phone number.`,linkLabel:`Link`,loadFailedText:`The editor couldn't load. Reload the page and try again.`,numberedListLabel:`Numbered list`,quoteLabel:`Quote`,redoLabel:`Redo`,removeLinkLabel:`Remove link`,textFormattingLabel:`Text formatting`,undoLabel:`Undo`},nFt=[`html`,`markdown`],d7=()=>tAt(`richText`,tFt),rFt=[[[`bold`,`boldLabel`,`Control+B Meta+B`],[`italic`,`italicLabel`,`Control+I Meta+I`],[`code`,`inlineCodeLabel`,`Control+E Meta+E`],[`link`,`linkLabel`,`Control+K Meta+K`]],[[`heading2`,`heading2Label`,`Control+Alt+2 Meta+Alt+2`],[`heading3`,`heading3Label`,`Control+Alt+3 Meta+Alt+3`]],[[`bulletList`,`bulletedListLabel`,`Control+Shift+8 Meta+Shift+8`],[`orderedList`,`numberedListLabel`,`Control+Shift+7 Meta+Shift+7`],[`blockquote`,`quoteLabel`,`Control+Shift+B Meta+Shift+B`],[`codeBlock`,`codeBlockLabel`,`Control+Alt+C Meta+Alt+C`]],[[`undo`,`undoLabel`,`Control+Z Meta+Z`],[`redo`,`redoLabel`,`Control+Shift+Z Meta+Shift+Z`]]],iFt={bold:!0,italic:!0,code:!0,heading2:!0,heading3:!0,bulletList:!0,orderedList:!0,blockquote:!0,codeBlock:!0,link:!0,undo:!0,redo:!0},aFt=new Map([[`ArrowRight`,1],[`ArrowLeft`,-1],[`Home`,`first`],[`End`,`last`]]),oFt=e=>o2(iFt,e),f7=!1,p7=class extends oAt{static formAssociated=!0;_value;_lastSet;_committed;_editor;_internals;_initial;_seeded;_abort;get _toolbar(){return r2(this,`.wui-rich-text-toolbar`,HTMLElement)}get _linkbar(){return r2(this,`[data-linkbar]`,HTMLElement)}get _linkInput(){return r2(this,`[data-link-input]`,HTMLInputElement)}get _linkError(){return r2(this,`[data-link-error]`,HTMLElement)}get _mounted(){if(!this._editor)throw Error(`<wui-rich-text> has no editor mounted.`);return this._editor}static get observedAttributes(){return[`placeholder`,`disabled`,`readonly`,`loading`,`required`,`aria-label`,`aria-invalid`,`aria-describedby`]}constructor(){super(),this._value=``,this._lastSet=null,this._committed=``,this._editor=null;try{this._internals=this.attachInternals()}catch{this._internals=null}}get value(){return this._editor?this._editor.getValue():this._value}set value(e){let t=e==null?``:String(e);t!==this._lastSet&&t!==this.value&&(this._lastSet=t,this._value=t,this._editor&&(this._editor.setValue(t),this._committed=this.value,this._afterValueChange()))}get format(){let e=this.getAttribute(`format`);return e!=null&&!nFt.includes(e)&&!f7&&(f7=!0,fSt(`[wui-rich-text] received format="${e}", which is not one of "html" | "markdown". The field uses "html" instead.`)),e===`markdown`?`markdown`:`html`}set format(e){e==null||e===``?this.removeAttribute(`format`):this.setAttribute(`format`,String(e))}connectedCallback(){if(o2(this,`value`)){let e=this.value;Reflect.deleteProperty(this,`value`),this._value=e==null?``:String(e),this._lastSet=this._value,this._initial=this._value,this._seeded=!0}else if(!this._seeded){this._seeded=!0;let e=this.querySelector(`:scope > textarea[data-wui-fallback]`);this._value=e instanceof HTMLTextAreaElement?e.value:this.getAttribute(`value`)??``,this._initial=this._value}this.hasAttribute(`role`)||this.setAttribute(`role`,`group`),this._build()}disconnectedCallback(){this._teardown()}attributeChangedCallback(e){this._editor&&(e===`placeholder`?this._editor.refreshPlaceholder():e===`disabled`||e===`readonly`||e===`loading`?this._syncEditable():(e===`required`&&this._syncValidity(),this._editor.setAttributes(this._surfaceAttributes())))}formResetCallback(){this.value=this._initial??``,this._committed=this.value}focus(e){this._editor?this._editor.focus():super.focus(e)}_surfaceAttributes(){let e={role:`textbox`,"aria-multiline":`true`,"aria-label":this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||d7().ariaLabel,class:`wui-rich-text-prose`},t=this.getAttribute(`aria-describedby`);return t&&(e[`aria-describedby`]=t),this.hasAttribute(`aria-invalid`)&&(e[`aria-invalid`]=`true`),this.hasAttribute(`required`)&&(e[`aria-required`]=`true`),this.hasAttribute(`readonly`)&&(e[`aria-readonly`]=`true`),this.hasAttribute(`disabled`)&&(e[`aria-disabled`]=`true`),e}_build(){this._teardown();let e=d7(),t=rFt.map(t=>E$(`div`,{class:`wui-rich-text-group`,role:`group`},...t.map(([t,n,r])=>{let i=e[n];return E$(`button`,{type:`button`,class:`wui-rich-text-button`,"data-action":t,title:i,"aria-label":i,"aria-keyshortcuts":r,"aria-pressed":t!==`link`&&t!==`undo`&&t!==`redo`?`false`:void 0,tabindex:`-1`},ZPt[t]())})));this.replaceChildren(E$(`div`,{class:`wui-rich-text-shell`},E$(`div`,{class:`wui-rich-text-toolbar`,role:`toolbar`,"aria-label":e.textFormattingLabel},...t),E$(`div`,{class:`wui-rich-text-linkbar`,"data-linkbar":!0,hidden:!0},E$(`input`,{type:`text`,class:`wui-rich-text-link-input`,"data-link-input":!0,"aria-label":e.linkAddressLabel,placeholder:`https://`,autocomplete:`off`}),E$(`button`,{type:`button`,class:`wui-rich-text-link-apply`,"data-link-apply":!0},e.applyLabel),E$(`button`,{type:`button`,class:`wui-rich-text-link-remove`,"data-link-remove":!0},e.removeLinkLabel),E$(`button`,{type:`button`,class:`wui-rich-text-link-cancel`,"data-link-cancel":!0,"aria-label":e.closeLinkBoxLabel},e.cancelLabel),E$(`div`,{class:`wui-rich-text-link-error`,"data-link-error":!0,role:`alert`,hidden:!0},e.linkErrorMessage)),E$(`div`,{class:`wui-rich-text-content`,"data-editor":!0}))),this._editor=Jkt({element:r2(this,`[data-editor]`,HTMLElement),content:this._value,format:this.format,placeholder:()=>this.getAttribute(`placeholder`)||``,editable:this._isEditable(),attributes:this._surfaceAttributes(),onChange:()=>this._onEdit(),onSelection:()=>this._syncToolbar(),onBlur:()=>this._onBlur()}),this._committed=this.value,this._wire(),this._syncEditable(),this._afterValueChange()}_teardown(){this._editor&&=(this._value=this.value,this._abort?.abort(),this._editor.destroy(),null)}_isEditable(){return!lAt(this)}_syncEditable(){this._mounted.setEditable(this._isEditable()),this._mounted.setAttributes(this._surfaceAttributes()),pSt(this,r2(this,`.wui-rich-text-shell`,HTMLElement)),this._syncToolbar(),this._syncMirror()}_syncMirror(){gSt(this,this.value)}_syncValidity(){let e=this._internals;typeof e?.setValidity==`function`&&(this.hasAttribute(`required`)&&this._mounted.isEmpty()?e.setValidity({valueMissing:!0},tAt(`field`,eFt).requiredFieldMessage,r2(this,`[data-editor] [contenteditable]`,HTMLElement)):e.setValidity({}))}_afterValueChange(){this._syncMirror(),this._syncValidity(),this._syncToolbar()}_onEdit(){this._lastSet=null,this._afterValueChange(),this.dispatchEvent(new Event(`input`,{bubbles:!0}))}_onBlur(){let e=this.value;e!==this._committed&&(this._committed=e,this.dispatchEvent(new Event(`change`,{bubbles:!0})))}_buttons(){return[...this._toolbar.querySelectorAll(`button`)]}_syncToolbar(){if(!this._editor)return;let e=this._editor.state(),t=!this._isEditable();for(let n of this._buttons()){let r=n.dataset.action??``,i=oFt(r)&&e[r];(n.hasAttribute(`aria-pressed`)||r===`link`)&&n.setAttribute(`aria-pressed`,String(i)),n.disabled=t||(r===`undo`||r===`redo`)&&!i}let n=this._buttons(),r=n.find(e=>e.tabIndex===0&&!e.disabled)??n.find(e=>!e.disabled);for(let e of n)e.tabIndex=e===r?0:-1}_wire(){this._abort=new AbortController;let{signal:e}=this._abort;this._toolbar.addEventListener(`mousedown`,e=>e.preventDefault(),{signal:e}),this._toolbar.addEventListener(`click`,e=>{let t=i2(e.target,`button[data-action]`);if(!t||t.disabled)return;let n=t.dataset.action??``;n===`link`?this._openLinkBar():this._mounted.run(n)},{signal:e}),this._toolbar.addEventListener(`keydown`,e=>this._toolbarKey(e),{signal:e}),this._toolbar.addEventListener(`focusin`,e=>{let t=i2(e.target,`button`);if(t)for(let e of this._buttons())e.tabIndex=e===t?0:-1},{signal:e}),r2(this,`[data-editor]`,HTMLElement).addEventListener(`keydown`,e=>{e.key.toLowerCase()===`k`&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&this._isEditable()&&(e.preventDefault(),this._openLinkBar())},{signal:e}),this._linkbar.addEventListener(`keydown`,e=>{vSt(e)?(e.preventDefault(),this._applyLink()):e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),this._closeLinkBar())},{signal:e}),this._linkbar.addEventListener(`click`,e=>{let t=e.target instanceof Element?e.target:null;t?.closest(`[data-link-apply]`)?this._applyLink():t?.closest(`[data-link-remove]`)?(this._mounted.removeLink(),this._closeLinkBar()):t?.closest(`[data-link-cancel]`)&&this._closeLinkBar()},{signal:e}),this._linkInput.addEventListener(`input`,()=>{this._linkError.hidden=!0,this._linkInput.removeAttribute(`aria-invalid`)},{signal:e})}_toolbarKey(e){let t=aFt.get(eAt(e.key,$kt(this)));if(t===void 0)return;let n=this._buttons().filter(e=>!e.disabled);if(!n.length)return;e.preventDefault();let r=i2(e.target,`button`),i=r===null?-1:n.indexOf(r);n[t===`first`?0:t===`last`?n.length-1:(i+t+n.length)%n.length]?.focus()}_openLinkBar(){this._linkInput.value=this._mounted.linkHref(),this._linkError.hidden=!0,this._linkInput.removeAttribute(`aria-invalid`),r2(this._linkbar,`[data-link-remove]`,HTMLButtonElement).hidden=!this._mounted.state().link,this._linkbar.hidden=!1,this._linkInput.focus(),this._linkInput.select()}_closeLinkBar(){this._linkbar.hidden=!0,this._mounted.focus()}_applyLink(){this._mounted.setLink(this._linkInput.value)?this._closeLinkBar():(this._linkError.hidden=!1,this._linkInput.setAttribute(`aria-invalid`,`true`),this._linkInput.focus())}},dSt(`wui-rich-text`,p7)})),cFt=[`html`,`markdown`],lFt=[`input`,`change`];function uFt({ref:e,...t}){let{marker:n,props:r}=U(`AppRichText`,t),i=Vs(`richText`,bme),{value:a,onChange:o,format:s,placeholder:c,name:l,label:u,error:d,helperText:m,required:h=!1,disabled:g=!1,readOnly:_=!1,loading:y=!1,defaultValue:b,id:C,ariaLabel:w,className:T=``,fieldClassName:E=``,help:D,helpLabel:O=i.helpLabel,...k}=r,A=Oc(l),j=d??A;G(`AppRichText`,k),W(`AppRichText`,`format`,s,cFt);let M=p(),N=C||M,[P,F]=v(!1),[I,L]=v(()=>Eo(`wui-rich-text`)),{setRef:R}=pV({ready:I,ref:e,value:a,defaultValue:b,onChange:o,events:lFt});return f(()=>{if(I)return;let e=!0;return Promise.resolve().then(()=>(sFt(),uSt)).then(()=>fde(`wui-rich-text`)).then(()=>{e&&L(!0)},t=>{ce(`[AppRichText] the editor failed to load:`,typeof t==`object`&&t&&`message`in t?t.message:void 0),e&&F(!0)}),()=>{e=!1}},[I]),S(`div`,{...n,className:`field${E?` ${E}`:``}`,children:[u&&S(`label`,{className:`label`,htmlFor:N,children:[u,h&&x(Uc,{}),D&&x(Hc,{label:O,children:D})]}),P?x(`div`,{className:`field-error`,role:`status`,children:i.loadFailedText}):x(`wui-rich-text`,{ref:R,id:N,role:`group`,name:l,format:s||void 0,placeholder:c,"aria-label":w||(typeof u==`string`?u:void 0),"aria-describedby":j?`${N}-error`:m?`${N}-hint`:void 0,"aria-invalid":j?`true`:void 0,required:h?``:void 0,disabled:g?``:void 0,readonly:_?``:void 0,loading:y?``:void 0,className:T||void 0,...k},s||`html`),x(Ac,{error:j,hint:m,errorId:`${N}-error`,hintId:`${N}-hint`})]})}var dFt,m7,fFt,h7,g7,_7,pFt=M((()=>{Lz(),Rc(),AB(),RB(),xn(),cpe(),dFt=`wui-saved-views:`,m7=20,fFt=0,h7=()=>pn(`savedViews`,spe),g7=e=>typeof e==`object`&&!!e&&`name`in e&&typeof e.name==`string`&&`query`in e&&typeof e.query==`string`,_7=class extends Lc{static get observedAttributes(){return[`key`,`mode`,`action`,`can-share`]}_doc=null;_dom=null;_views;_open;_busy;_error;_trigger;_onTriggerClick;_onKeyDown;_onPointerDown;_onSubmit;constructor(){super(),this._views=[],this._open=!1,this._busy=!1,this._error=null,this._onTriggerClick=()=>this._setOpen(!this._open),this._onKeyDown=e=>{this._open&&e.target instanceof Node&&this.contains(e.target)&&(e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),this._setOpen(!1),this._trigger?.focus()):(e.key===`ArrowDown`||e.key===`ArrowUp`)&&this._ui.menu.contains(e.target)&&!(e.target instanceof Element&&/input|textarea/i.test(e.target.tagName))&&(e.preventDefault(),e.stopPropagation()))},this._onPointerDown=e=>{this._open&&!e.composedPath().includes(this)&&this._setOpen(!1)},this._onSubmit=async e=>{e.preventDefault();let t=this._ui.input.value.trim();if(!t)return;if(this._server()){if(this._busy)return;let e={name:t,query:this._ownerDoc.location.search};this._canShare()&&(e.shared=String(this._ui.share.checked)),await this._request(`save`,e)&&(this._ui.input.value=``,this._ui.share.checked=!1);return}let n=this._ownerDoc.location.search;this._commit([{name:t,query:n},...this._views.filter(e=>e.name!==t)].slice(0,m7)),this._ui.input.value=``}}get _ownerDoc(){if(!this._doc)throw Error(`wui-saved-views is not connected`);return this._doc}get _ui(){if(!this._dom)throw Error(`wui-saved-views is not built`);return this._dom}connectedCallback(){this._doc=this.ownerDocument,this._trigger||this._build(),window.addEventListener(`keydown`,this._onKeyDown,!0),this._reload()}disconnectedCallback(){this._setOpen(!1),window.removeEventListener(`keydown`,this._onKeyDown,!0),this._doc=null}attributeChangedCallback(){this._doc&&this._trigger&&this._reload()}_reload(){this._server()?(this._views=[],this._render(),this._request(`list`)):(this._views=this._load(),this._render())}_server(){return this.getAttribute(`mode`)===`server`&&!!this.getAttribute(`action`)&&!!this.getAttribute(`key`)}_canShare(){return this._server()&&this.getAttribute(`can-share`)===`true`}async _request(e,t={}){let n=this.getAttribute(`action`)??``,r=this.getAttribute(`key`)??``,i=n,a;e===`list`?i+=(n.includes(`?`)?`&`:`?`)+new URLSearchParams({intent:`list`,key:r}):a={method:`POST`,body:new URLSearchParams({intent:e,key:r,...t})},this._busy=!0,this._render();let o=await MB(i,a);if(this._busy=!1,this._doc===null)return!1;if(o.ok){let e=kB(o.html);return this._views=[...e.querySelectorAll(`[data-wui-saved-views-items] > li`)].filter(e=>e instanceof HTMLLIElement).map(e=>({name:e.dataset.name,query:e.dataset.query,shared:e.dataset.shared===`true`})).filter(g7),this._error=null,this._render(),!0}return this._error=o.message||h7().viewsNotUpdatedMessage,this._render(),!1}_build(){let e=this._ownerDoc;this.classList.add(`dropdown`),this._trigger=e.createElement(`button`),this._trigger.type=`button`,this._trigger.className=Pz(`neutral`,`outline`,`sm`),this._trigger.dataset.wui=Fz,this._trigger.textContent=h7().viewsLabel,this._trigger.setAttribute(`aria-haspopup`,`true`),this._trigger.setAttribute(`aria-expanded`,`false`),this._trigger.addEventListener(`click`,this._onTriggerClick);let t=e.createElement(`div`);t.className=`dropdown-menu`;let n=e.createElement(`div`);n.className=`dropdown-divider`;let r=e.createElement(`input`);r.type=`text`,r.className=`form-control wui-input-sm`,r.setAttribute(`aria-label`,h7().viewNameLabel),r.placeholder=h7().nameViewPlaceholder;let i=e.createElement(`button`);i.type=`submit`,i.className=Pz(`primary`,`solid`,`sm`),i.dataset.wui=Fz,i.textContent=h7().saveViewLabel;let a=e.createElement(`form`);a.className=`d-flex gap-2 px-3 py-2`,a.append(r,i),a.addEventListener(`submit`,this._onSubmit);let o=e.createElement(`input`);o.type=`checkbox`,o.className=`form-check-input`,o.setAttribute(`role`,`switch`),o.id=`wui-saved-views-share-${fFt++}`;let s=e.createElement(`label`);s.className=`form-check-label`,s.htmlFor=o.id,s.textContent=h7().shareTeamLabel;let c=e.createElement(`div`);c.className=`form-check form-switch mb-0`,c.append(o,s);let l=e.createElement(`div`);l.className=`px-3 pb-2`,l.hidden=!0,l.append(c),this._dom={menu:t,divider:n,form:a,input:r,save:i,shareRow:l,share:o},this.append(this._trigger,t)}_render(){let e=this._ownerDoc,t=this._ui,n=[];for(let t of this._views){let r=e.createElement(`a`);if(r.className=`dropdown-item`,r.setAttribute(`href`,e.location.pathname+t.query),r.textContent=t.name,t.shared){let t=e.createElement(`span`);t.className=`badge text-bg-secondary ms-2`,t.textContent=h7().sharedLabel,r.append(t)}let i=e.createElement(`button`);i.type=`button`,i.className=`btn btn-link btn-sm`,i.textContent=h7().deleteLabel,i.setAttribute(`aria-label`,K(h7().deleteText,{name:t.name})),i.disabled=this._busy,i.addEventListener(`click`,()=>this._server()?this._request(`delete`,{name:t.name}):this._commit(this._views.filter(e=>e.name!==t.name))),n.push(r,i)}if(this._error){let t=e.createElement(`div`);t.className=`dropdown-item-text text-danger small`,t.setAttribute(`role`,`alert`),t.textContent=this._error,n.push(t)}t.save.disabled=this._busy,t.share.disabled=this._busy,t.shareRow.hidden=!this._canShare(),t.menu.replaceChildren(...n,t.divider,t.form,t.shareRow)}_commit(e){this._views=e,this._write(e),this._render()}_setOpen(e){e!==this._open&&(this._open=e,this._ui.menu.classList.toggle(`show`,e),this._trigger?.setAttribute(`aria-expanded`,String(e)),e?this._ownerDoc.addEventListener(`pointerdown`,this._onPointerDown,!0):this._ownerDoc.removeEventListener(`pointerdown`,this._onPointerDown,!0))}_storage(){let e=this.getAttribute(`key`);if(!e)return null;try{let t=this._ownerDoc.defaultView;return t?{store:t.localStorage,key:dFt+e}:null}catch{return null}}_load(){let e=this._storage();if(!e)return[];try{let t=JSON.parse(e.store.getItem(e.key)??`[]`);return Array.isArray(t)?t.filter(g7).slice(0,m7):[]}catch{return[]}}_write(e){let t=this._storage();if(t)try{t.store.setItem(t.key,JSON.stringify(e))}catch(e){if(!(e instanceof DOMException))throw e}}}})),mFt=P({WuiSavedViews:()=>_7}),hFt=M((()=>{Rc(),pFt(),Ic(`wui-saved-views`,_7)})),gFt=()=>Promise.resolve().then(()=>(hFt(),mFt));function _Ft(e){Fc(`wui-saved-views`,gFt);let{marker:t,props:n}=U(`AppSavedViews`,e),{storageKey:r,className:i=``,...a}=n;G(`AppSavedViews`,a);let o=_(null);if(h(()=>{o.current?.setAttribute(`key`,r)},[r]),r.trim()===``)throw Error(`AppSavedViews needs a storageKey, the name its views are stored under.`);return x(`wui-saved-views`,{ref:o,class:i||void 0,...t,...a})}function vFt(e){let t=Vs(`scoreScale`,Cme),{value:n=null,onChange:r,min:i=0,max:a=10,label:o,lowLabel:s,highLabel:c,name:l,disabled:u=!1,error:d,helperText:f,id:m,className:h=``,fieldClassName:g=``,scoreLabel:_=t.scoreLabel}=e,v=Oc(l),y=d??v,b=p(),C=m||b,w=l||C,T=`${C}-error`,E=`${C}-hint`,D=Array.from({length:Math.max(0,a-i+1)},(e,t)=>i+t),O=s!=null||c!=null;return S(`div`,{...se(`AppScoreScale`,e),className:`field${g?` ${g}`:``}`,children:[o!=null&&x(`span`,{className:`label`,id:`${C}-label`,children:o}),S(`div`,{className:`wui-score-scale${h?` ${h}`:``}`,id:C,role:`radiogroup`,"aria-labelledby":o==null?void 0:`${C}-label`,"aria-label":o==null?_:void 0,"aria-invalid":y?`true`:void 0,"aria-describedby":y?T:f?E:void 0,children:[D.map(e=>S(`label`,{className:`wui-score-scale__item${n===e?` wui-score-scale__item--selected`:``}`,children:[x(`input`,{type:`radio`,className:`visually-hidden`,name:w,value:e,checked:n===e,disabled:u,onChange:()=>r?.(e)}),e]},e)),O&&S(`span`,{className:`wui-score-scale__ends`,children:[x(`span`,{children:s}),x(`span`,{children:c})]})]}),x(Ac,{error:y,hint:f,errorId:T,hintId:E})]})}function yFt(e){let{marker:t,props:n}=U(`AppScrollbar`,e),{children:r,className:i=``,maxHeight:a,style:o,...s}=n;G(`AppScrollbar`,s);let c=i?`wui-scroll ${i}`:`wui-scroll`;return x(`div`,{className:c,style:a==null?o:{maxHeight:a,...o},...t,...s,children:r})}var v7=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],y7=[`start`,`center`],b7=[`default`,`muted`],bFt=[`display`,`body`];function xFt(e){return v7.some(t=>t===e)}function x7(e,t){return xFt(e)?e:t}function SFt(e){return v7[Math.min(v7.indexOf(e)+1,5)]??`h6`}function S7({className:e,src:t,alt:n,width:r,height:i}){return x(`img`,{className:e,src:t,alt:n,width:r,height:i,loading:`lazy`,decoding:`async`})}function C7({component:e,kind:t,title:n,as:r,eyebrow:i,subtitle:a,align:o,variant:s,eyebrowTone:c,titleFont:l,inset:u,actions:d,extraClass:f,className:p,rest:m,children:h}){if(n==null||n===``)throw Error(`${e} needs a title: every section opens with its heading.`);let g=r,_=m.id?`${m.id}-title`:void 0,v=Hs.includes(c??``),{style:y,...b}=m,C=u==null&&y===void 0?void 0:{"--wui-section-inset":u==null?void 0:`${u}px`,...y},w=[`wui-section`,`wui-section-${t}`,o===`center`?`wui-section-center`:``,s===`muted`?`wui-section-muted`:``,f,p].filter(Boolean).join(` `);return x(`section`,{className:w,style:C,"aria-labelledby":_,...b,children:S(`div`,{className:`wui-section-inner`,children:[S(`div`,{className:`wui-section-head`,children:[i!=null&&i!==``&&x(`div`,{className:v?`wui-section-eyebrow wui-section-eyebrow-pill wui-section-eyebrow-${c}`:`wui-section-eyebrow`,children:i}),x(g,{className:l===`body`?`wui-section-title wui-section-title-body`:`wui-section-title`,id:_,children:n}),a!=null&&a!==``&&x(`p`,{className:`wui-section-subtitle`,children:a}),d!=null&&d!==!1&&x(`div`,{className:`wui-section-actions`,children:d})]}),h]})})}var CFt=[...b7,`band`];function wFt(e){let{marker:t,props:n}=U(`AppSectionCallToAction`,e),{title:r,actions:i,as:a=`h2`,eyebrow:o,subtitle:s,align:c=`center`,variant:l=`default`,className:u=``,...d}=n;G(`AppSectionCallToAction`,d),W(`AppSectionCallToAction`,`as`,a,v7),W(`AppSectionCallToAction`,`align`,c,y7),W(`AppSectionCallToAction`,`variant`,l,CFt);let f=[l===`band`?`wui-section-call-to-action--band`:``,u].filter(Boolean).join(` `);return x(C7,{component:`AppSectionCallToAction`,kind:`call-to-action`,title:r,as:x7(a,`h2`),eyebrow:o,subtitle:s,align:c,variant:l,actions:i,className:f,rest:{...t,...d}})}var TFt=[...b7,`split`];function EFt(e,t,r){return!Array.isArray(t)&&r==null?e:n.map(e,e=>{if(!c(e)||e.type!==Pfe)return e;let n={};return Array.isArray(t)&&(n.openItems=t.map(t=>e.props.items?.[t]?.key??String(t))),r!=null&&(n.closeLabel=r),a(e,n)})}function DFt(e){let{marker:t,props:n}=U(`AppSectionFaq`,e),{title:r,as:i=`h2`,eyebrow:a,subtitle:o,align:s,variant:c=`default`,children:l,openItems:u,closeLabel:d,className:f=``,...p}=n;G(`AppSectionFaq`,p),W(`AppSectionFaq`,`as`,i,v7),W(`AppSectionFaq`,`align`,s,y7),W(`AppSectionFaq`,`variant`,c,TFt);let m=s??(c===`split`?`start`:`center`),h=[c===`split`?`wui-section-faq--split`:``,f].filter(Boolean).join(` `);return x(C7,{component:`AppSectionFaq`,kind:`faq`,title:r,as:x7(i,`h2`),eyebrow:a,subtitle:o,align:m,variant:c,className:h,rest:{...t,...p},children:l!=null&&l!==!1&&x(`div`,{className:`wui-section-faq-body`,children:EFt(l,u,d)})})}var OFt=[`grid`,`rows`];function kFt(e){let{marker:t,props:n}=U(`AppSectionFeatures`,e),{title:r,items:i=[],layout:a=`grid`,as:o=`h2`,eyebrow:s,subtitle:c,align:l=`center`,variant:u=`default`,titleFont:d=`display`,inset:f,className:p=``,...m}=n;G(`AppSectionFeatures`,m),W(`AppSectionFeatures`,`layout`,a,OFt),W(`AppSectionFeatures`,`as`,o,v7),W(`AppSectionFeatures`,`align`,l,y7),W(`AppSectionFeatures`,`variant`,u,b7),W(`AppSectionFeatures`,`titleFont`,d,bFt);for(let e of i)if(e.imageSrc!==void 0){if(e.icon)throw Error(`AppSectionFeatures item "${e.title}" sets both icon and imageSrc: pick one.`);if(!e.imageAlt?.trim()||(e.imageWidth??0)<=0||(e.imageHeight??0)<=0)throw Error(`AppSectionFeatures item "${e.title}" needs imageAlt, imageWidth and imageHeight with imageSrc: an image without a size moves the page when it loads.`)}let h=x7(o,`h2`),g=SFt(h);return x(C7,{component:`AppSectionFeatures`,kind:`features`,title:r,as:h,eyebrow:s,subtitle:c,align:l,variant:u,titleFont:d,inset:f,extraClass:a===`rows`?`wui-section-features-rows`:``,className:p,rest:{...t,...m},children:i.length>0&&x(`ul`,{className:`wui-section-features-list`,children:i.map(e=>S(`li`,{className:`wui-section-feature`,children:[e.media!=null&&x(`div`,{className:`wui-section-media`,children:e.media}),S(`div`,{className:`wui-section-feature-body`,children:[e.imageSrc!==void 0&&x(`span`,{className:`wui-section-feature-icon wui-section-feature-icon-image`,children:x(S7,{className:`wui-section-feature-img`,src:e.imageSrc,alt:e.imageAlt??``,width:e.imageWidth??0,height:e.imageHeight??0})}),e.icon&&x(`span`,{className:`wui-section-feature-icon`,children:x(J,{name:e.icon,size:24})}),x(g,{className:`wui-section-feature-title`,children:e.title}),e.description!=null&&e.description!==``&&x(`div`,{className:`wui-section-feature-text`,children:e.description})]})]},e.key??e.title))})})}function AFt(e){let{marker:t,props:n}=U(`AppSectionHero`,e),{title:r,as:i=`h1`,eyebrow:a,subtitle:o,align:s=`start`,variant:c=`default`,eyebrowTone:l,actions:u,media:d,className:f=``,...p}=n;return G(`AppSectionHero`,p),W(`AppSectionHero`,`as`,i,v7),W(`AppSectionHero`,`align`,s,y7),W(`AppSectionHero`,`variant`,c,b7),l!==void 0&&W(`AppSectionHero`,`eyebrowTone`,l,Hs),x(C7,{component:`AppSectionHero`,kind:`hero`,title:r,as:x7(i,`h1`),eyebrow:a,subtitle:o,align:s,variant:c,eyebrowTone:l,actions:u,className:f,rest:{...t,...p},children:d!=null&&d!==!1&&x(`div`,{className:`wui-section-media`,children:d})})}var jFt=e=>e!=null&&e!==``&&e!==!1;function MFt({ref:e,...t}){let{marker:n,props:r}=U(`AppTextarea`,t),i=Vs(`textarea`,Lme),{label:a,required:o=!1,optional:s=!1,optionalLabel:c=i.optionalLabel,error:l,helperText:d,help:m,helpLabel:g=i.helpLabel,id:y,name:b,rows:C=4,autoGrow:w=!1,monospace:T=!1,showCount:E=!1,maxLength:D,disabled:O=!1,readOnly:k=!1,loading:A=!1,size:j=`md`,className:M=``,fieldClassName:N=``,controlOnly:P=!1,value:F,...I}=r,L=Oc(b),R=l??L,{onChange:z,...B}=I;if(P){let e=[[`label`,a],[`error`,R],[`helperText`,d],[`fieldClassName`,N],[`showCount`,E],[`help`,m],[`optional`,s]];for(let[t,n]of e)if(jFt(n))throw Error(`<AppTextarea> controlOnly draws no field, so it takes no ${t}; draw the label or message on the page.`)}G(`AppTextarea`,I),W(`AppTextarea`,`size`,j,jc),f(()=>{},[s,o]);let V=p(),H=y||V,ee=[w?`autosize`:``,T?`wui-mono`:``,R?`error`:``,j===`sm`?`wui-input-sm`:``,j===`lg`?`wui-input-lg`:``,j===`xl`?`wui-input-xl`:``,A?Nc:``,M].filter(Boolean).join(` `),te=R&&H?`${H}-error`:void 0,ne=d&&H?`${H}-hint`:void 0,re=te||ne,ie=_(null),ae=t=>{ie.current=t,typeof e==`function`?e(t):e&&(e.current=t)},oe=_(void 0),se=u(()=>{let e=ie.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`,oe.current=`${e.value}|${e.clientWidth}`)},[]);h(()=>{let e=ie.current;!w||!e?oe.current=void 0:`${String(F??e.value)}|${e.clientWidth}`!==oe.current&&se()});let[ce,le]=v(()=>String(F??I.defaultValue??``).length);f(()=>{E&&F!==void 0&&le(String(F??``).length)},[F,E]);let ue=e=>{w&&se(),E&&le(e.currentTarget.value.length),I.onInput?.(e)},de=x(wc.Control,{as:`textarea`,id:H,name:b,rows:C,className:ee,"aria-invalid":R?`true`:`false`,"aria-describedby":re,"aria-busy":A||void 0,required:o,maxLength:D,disabled:O,readOnly:k||A,...P?n:null,...F===void 0?null:{value:F},...B,...z?{onChange:z}:null,ref:ae,onInput:ue});return P?de:S(wc.Group,{...n,className:`field${N?` ${N}`:``}`,children:[a&&S(wc.Label,{className:`label`,htmlFor:H,children:[a,s&&!o&&x(`span`,{className:`label-optional`,children:` ${c}`}),o&&x(Uc,{}),m&&x(Hc,{label:g,children:m})]}),de,x(Ac,{error:R,hint:d,errorId:te,hintId:ne}),E&&S(`div`,{className:`field-count${D&&ce>=D?` at-limit`:``}`,children:[ce,D?` / ${D}`:``]})]})}var NFt=[`name`,`email`,`phone`,`company`,`message`],PFt={name:`name`,email:`email`,company:`organization`},FFt=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function IFt(e,t,n){let r={};for(let{name:i,required:a=!1}of e){let e=(t[i]??``).trim();a&&e===``?r[i]=n.required:i===`email`&&e!==``&&!FFt.test(e)&&(r[i]=n.invalidEmail)}return r}function LFt(e){let{marker:t,props:n}=U(`AppSectionLeadCapture`,e),r=Vs(`sectionLeadCapture`,wme),{title:i,description:a,fields:o,onSubmit:s,submitLabel:c=r.submitLabel,nameLabel:l=r.nameLabel,emailLabel:u=r.emailLabel,phoneLabel:d=r.phoneLabel,companyLabel:f=r.companyLabel,messageLabel:m=r.messageLabel,requiredText:h=r.requiredText,invalidEmailText:g=r.invalidEmailText,submitErrorText:_=r.submitErrorText,successTitle:y,successText:b,consent:C,as:w=`h2`,eyebrow:T,subtitle:E,align:D=`center`,variant:O=`default`,className:k=``,...A}=n;G(`AppSectionLeadCapture`,A),W(`AppSectionLeadCapture`,`as`,w,v7),W(`AppSectionLeadCapture`,`align`,D,y7),W(`AppSectionLeadCapture`,`variant`,O,b7);for(let e of o)W(`AppSectionLeadCapture`,`fields.name`,e.name,NFt);let j=p(),[M,N]=v(()=>Object.fromEntries(o.map(e=>[e.name,``]))),[P,F]=v({}),[I,L]=v(null),[R,z]=v(!1),[B,V]=v(!1),H=(e,t)=>N(n=>({...n,[e]:t})),ee={name:l,email:u,phone:d,company:f,message:m},te={required:h,invalidEmail:g};async function ne(){if(R)return!1;let e=IFt(o,M,te);if(F(e),L(null),Object.keys(e).length>0)return!1;let t=Object.fromEntries(Object.entries(M).map(([e,t])=>[e,(t??``).trim()]));z(!0);try{return await s(t),V(!0),!0}catch(e){let t=typeof e==`object`&&e&&`message`in e?e.message:void 0;return L(typeof t==`string`&&t!==``?t:_),!1}finally{z(!1)}}function re({name:e,label:t=ee[e],required:n=!1}){let r=`${j}-${e}`,i=P[e];return e===`phone`?x(cbt,{id:r,name:e,label:t,required:n,value:M[e],onChange:t=>H(e,t),error:i},e):e===`message`?x(MFt,{id:r,name:e,label:t,required:n,value:M[e],onChange:t=>H(e,t.target.value),error:i},e):x(Gc,{id:r,name:e,type:e===`email`?`email`:`text`,autoComplete:PFt[e],label:t,required:n,value:M[e],onChange:t=>H(e,t.target.value),error:i},e)}return S(C7,{component:`AppSectionLeadCapture`,kind:`lead-capture`,title:i,as:x7(w,`h2`),eyebrow:T,subtitle:E,align:D,variant:O,className:k,rest:{...t,...A},children:[a!=null&&a!==``&&x(`p`,{className:`wui-section-lead-text`,children:a}),B?x(`div`,{className:`wui-section-lead-success`,children:x(Tc,{tone:`success`,title:y,children:b})}):S(ave,{className:`wui-section-lead-form`,noValidate:!0,onSubmit:ne,children:[x(`div`,{className:`wui-section-lead-fields`,children:o.map(re)}),I!=null&&x(Tc,{tone:`danger`,children:I}),x(nl,{type:`submit`,loading:R,children:c}),C!=null&&C!==``&&x(`p`,{className:`wui-section-lead-consent`,children:C})]})]})}var w7=e=>typeof e==`string`&&e.trim()!==``?e:void 0;function RFt(e,t){let n=w7(e.alt)??w7(e.name)??w7(e.label);if(n===void 0||e.width===void 0||e.height===void 0)throw Error(`AppSectionLogos item "${t}" needs alt, width and height.`);return x(S7,{className:`wui-section-logo-img`,src:t,alt:n,width:e.width,height:e.height})}function zFt(e){let{marker:t,props:n}=U(`AppSectionLogos`,e),{title:r,items:i=[],as:a=`h2`,eyebrow:o,subtitle:s,align:c=`center`,variant:l=`default`,className:u=``,linkComponent:d,...f}=n;G(`AppSectionLogos`,f),W(`AppSectionLogos`,`as`,a,v7),W(`AppSectionLogos`,`align`,c,y7),W(`AppSectionLogos`,`variant`,l,b7);for(let e of i){let t=w7(e.src),n=w7(e.name)??w7(e.label),r=(e.width??0)>0&&(e.height??0)>0;if(!(t?(w7(e.alt)??n)!==void 0&&r:n!==void 0))throw Error(`AppSectionLogos item "${e.src??``}" needs src, alt (the company's name), width and height: a logo without a size moves the page when it loads.`)}return x(C7,{component:`AppSectionLogos`,kind:`logos`,title:r,as:x7(a,`h2`),eyebrow:o,subtitle:s,align:c,variant:l,className:u,rest:{...t,...f},children:i.length>0&&x(`ul`,{className:`wui-section-logos-list`,children:i.map(e=>{let t=w7(e.src),n=w7(e.name)??w7(e.label),r=t?RFt(e,t):x(`span`,{className:`wui-section-logo-text`,children:n}),i=w7(e.caption),a=i?S(`span`,{className:`wui-section-logo-stack`,children:[r,x(`span`,{className:`wui-section-logo-caption`,children:i})]}):r,o=gs(d,{href:e.href});return x(`li`,{className:`wui-section-logo`,children:e.href?x(_s,{link:o,children:a}):a},e.key??t??n)})})})}function BFt(e){let{marker:t,props:n}=U(`AppSectionPricing`,e),{title:r,as:i=`h2`,eyebrow:a,subtitle:o,align:s=`center`,variant:c=`default`,children:l,className:u=``,...d}=n;return G(`AppSectionPricing`,d),W(`AppSectionPricing`,`as`,i,v7),W(`AppSectionPricing`,`align`,s,y7),W(`AppSectionPricing`,`variant`,c,b7),x(C7,{component:`AppSectionPricing`,kind:`pricing`,title:r,as:x7(i,`h2`),eyebrow:a,subtitle:o,align:s,variant:c,className:u,rest:{...t,...d},children:l!=null&&l!==!1&&x(`div`,{className:`plan-grid`,children:l})})}function VFt(e){let{marker:t,props:n}=U(`AppSectionTestimonials`,e),{title:r,items:i=[],as:a=`h2`,eyebrow:o,subtitle:s,align:c=`center`,variant:l=`default`,className:u=``,...d}=n;return G(`AppSectionTestimonials`,d),W(`AppSectionTestimonials`,`as`,a,v7),W(`AppSectionTestimonials`,`align`,c,y7),W(`AppSectionTestimonials`,`variant`,l,b7),x(C7,{component:`AppSectionTestimonials`,kind:`testimonials`,title:r,as:x7(a,`h2`),eyebrow:o,subtitle:s,align:c,variant:l,className:u,rest:{...t,...d},children:i.length>0&&x(`ul`,{className:`wui-section-testimonials-list`,children:i.map(e=>x(`li`,{children:S(`figure`,{className:`wui-section-testimonial`,children:[x(`blockquote`,{className:`wui-section-testimonial-quote`,children:e.quote}),S(`figcaption`,{className:`wui-section-testimonial-author`,children:[e.avatar&&x(S7,{className:`wui-section-testimonial-avatar`,src:e.avatar,alt:``,width:48,height:48}),S(`span`,{className:`wui-section-testimonial-who`,children:[e.name&&x(`span`,{className:`wui-section-testimonial-name`,children:e.name}),e.role&&x(`span`,{className:`wui-section-testimonial-role`,children:e.role})]})]})]})},e.key??e.name))})})}var HFt=[`website`,`article`],UFt=[`summary`,`summary_large_image`];function WFt(e){let{title:t,description:n,canonicalUrl:r,siteName:i,robots:a,image:o,imageAlt:s,jsonLd:c}=e;W(`AppSeoHead`,`type`,e.type,HFt),W(`AppSeoHead`,`twitterCard`,e.twitterCard,UFt);let l=HFt.includes(e.type??``)?e.type:`website`,u=UFt.includes(e.twitterCard??``)?e.twitterCard:`summary`,d=c?JSON.stringify(c).replace(/</g,`\\u003c`):null;return S(b,{children:[x(`title`,{children:t}),x(`meta`,{name:`description`,content:n}),x(`link`,{rel:`canonical`,href:r}),x(`meta`,{name:`robots`,content:a}),x(`meta`,{property:`og:type`,content:l}),x(`meta`,{property:`og:site_name`,content:i}),x(`meta`,{property:`og:title`,content:t}),x(`meta`,{property:`og:description`,content:n}),x(`meta`,{property:`og:url`,content:r}),o?x(`meta`,{property:`og:image`,content:o}):null,o&&s?x(`meta`,{property:`og:image:alt`,content:s}):null,x(`meta`,{name:`twitter:card`,content:u}),x(`meta`,{name:`twitter:title`,content:t}),x(`meta`,{name:`twitter:description`,content:n}),o?x(`meta`,{name:`twitter:image`,content:o}):null,o&&s?x(`meta`,{name:`twitter:image:alt`,content:s}):null,d?x(`script`,{type:`application/ld+json`,children:d}):null]})}var GFt=/^[a-z][a-z0-9+.-]*:/i;function T7(e){if(typeof e!=`string`||e.trim()===``)return null;let t=e.trim(),n=t.search(/[?#]/);if(n>=0&&(t=t.slice(0,n)),t.startsWith(`~/`)&&(t=t.slice(1)),t===``||t.startsWith(`//`)||GFt.test(t))return null;for(t[0]!==`/`&&(t=`/${t}`);t.length>1&&t.endsWith(`/`);)t=t.slice(0,-1);return t}function KFt(e,t,n){return e.toLowerCase()===t.toLowerCase()?!0:n||t===`/`?!1:e.toLowerCase().startsWith(`${t.toLowerCase()}/`)}function qFt(e,t){return e==null||t==null?e:e.toLowerCase()===t.toLowerCase()?`/`:e.toLowerCase().startsWith(`${t.toLowerCase()}/`)?e.slice(t.length):e}function JFt(e,t,{exact:n=!1,also:r,pathBase:i}={}){let a=T7(e);if(a==null)return-1;let o=T7(i);o===`/`&&(o=null);let s=-1,c=(e,t)=>{e!=null&&KFt(a,e,t)&&(s=Math.max(s,e.length))};c(qFt(T7(t),o),n);for(let e of r??[])c(qFt(T7(e),o),!1);return s}var YFt=`wui-shell-collapsed`,XFt=31536e3,E7=e=>e instanceof DOMException&&e.name===`SecurityError`;function ZFt(e=YFt,t=document){let n;try{n=t.cookie}catch(e){if(E7(e))return null;throw e}for(let t of n.split(`;`)){let n=t.indexOf(`=`);if(n<0||t.slice(0,n).trim()!==e)continue;let r=t.slice(n+1).trim();return r===`1`||r!==`0`&&null}return null}function QFt(e,t=YFt,n=document){try{n.cookie=`${t}=${e?`1`:`0`}; Path=/; Max-Age=${XFt}; SameSite=Lax`}catch(e){if(!E7(e))throw e}}var D7=`wui-nav-folded`;function $Ft(e=D7,t=document){let n;try{n=t.cookie}catch(e){if(E7(e))return new Set;throw e}for(let t of n.split(`;`)){let n=t.indexOf(`=`);if(!(n<0||t.slice(0,n).trim()!==e))return new Set(t.slice(n+1).trim().split(`.`).filter(Boolean))}return new Set}function eIt(e,t=D7,n=document){try{n.cookie=`${t}=${[...e].join(`.`)}; Path=/; Max-Age=${XFt}; SameSite=Lax`}catch(e){if(!E7(e))throw e}}var tIt=()=>Promise.resolve().then(()=>(Nz(),Mz)),nIt=()=>Promise.resolve().then(()=>(ml(),pl)),O7=99,rIt=4,iIt=5,aIt=/^[a-z0-9-]+$/,k7=`wui-sidebar-footer`,oIt=[],sIt=[`prefix`,`exact`],cIt=[`comfortable`,`compact`],lIt=[`neutral`,`primary`],uIt=[`default`,`brand`],dIt=[`side`,`top`],fIt=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],pIt=new Set([`key`,`label`,`icon`,`iconVariant`,`iconSize`,`href`,`badge`,`badgeTone`,`badgeTitle`,`newUntil`,`trailingIcon`,`active`,`match`,`matchAlso`,`tab`,`tabLabel`,`children`,`header`,`description`]),A7=e=>e>O7?`${O7}+`:String(e),mIt=new Intl.DateTimeFormat(`en-CA`,{timeZone:kn}),hIt=e=>{if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}$/.test(e))return!1;let t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())||t.toISOString().slice(0,10)!==e?!1:mIt.format(new Date)<=e},gIt=({logoLight:e,logoDark:t,markLight:n,markDark:r})=>{let i=!!(n||r);return[`app-sidebar-brand`,i&&`wui-brand-has-mark`,i&&!e&&!t&&`wui-brand-mark-only`,(t||r)&&`wui-brand-themed`].filter(Boolean).join(` `)},_It=({logoLight:e,logoDark:t,markLight:n,markDark:r,brandName:i,logoLightWidth:a,logoLightHeight:o,logoDarkWidth:s,logoDarkHeight:c,markLightWidth:l,markLightHeight:u,markDarkWidth:d,markDarkHeight:f})=>{let p=i??``,m=[e&&x(`img`,{className:`wui-brand-logo wui-brand-light`,src:e,alt:p,width:a,height:o},`logo-light`),t&&x(`img`,{className:`wui-brand-logo wui-brand-dark`,src:t,alt:``,"aria-hidden":`true`,width:s,height:c},`logo-dark`)],h=[n&&[`mark-light`,`wui-brand-mark wui-brand-light`,n,l,u],r&&[`mark-dark`,`wui-brand-mark wui-brand-dark`,r,d,f]].filter(e=>!!e).map(([t,n,r,i,a],o)=>o===0&&!e?x(`img`,{className:n,src:r,alt:p,width:i,height:a},t):x(`img`,{className:n,src:r,alt:``,"aria-hidden":`true`,width:i,height:a},t));return[...m,...h].filter(Boolean)};function vIt(e){let{marker:t,props:n}=U(`AppShell`,e),r=Vs(`shell`,Bs),{groups:i=[],brand:a,logoLight:o,logoDark:s,markLight:c,markDark:l,logoLightWidth:u,logoLightHeight:d,logoDarkWidth:p,logoDarkHeight:m,markLightWidth:h,markLightHeight:y,markDarkWidth:C,markDarkHeight:w,brandName:T,brandHref:E,brandLabel:D,sidebarStart:O,sidebarStartCompact:k,sidebarFooter:A,sidebarFooterItems:j=oIt,topbarStart:M,topbarEnd:N,footer:P,launcher:F,children:I,collapsed:L,onCollapsedChange:R,noSidebar:z=!1,nav:B=`side`,topNavDetail:V=!1,capBadges:H=!1,density:ee=`comfortable`,itemHeight:te,iconVariant:ne=`twotone`,topbarTone:re=`neutral`,tone:ie=`default`,navLabel:ae=r.navLabel,linkComponent:oe,currentPath:se,rememberCollapsed:ce=!1,collapsedCookie:le=`wui-shell-collapsed`,foldedCookie:ue=D7,tabBarLabel:de=r.tabBarLabel,moreLabel:fe=r.moreLabel,skipLabel:pe=r.skipLabel,openNavLabel:me=r.openNavLabel,expandNavLabel:he=r.expandNavLabel,collapseNavLabel:ge=r.collapseNavLabel,newLabel:_e=r.newLabel,togglePagesLabel:ve=r.togglePagesLabel,accountMenuLabel:ye=r.accountMenuLabel,roleLabel:be=r.roleLabel,rolesLabel:xe=r.rolesLabel,unreadLabel:Se=r.unreadLabel,markAllReadLabel:Ce=r.markAllReadLabel,viewAllLabel:we=r.viewAllLabel,loadingNotificationsText:Te=r.loadingNotificationsText,noUnreadText:Ee=r.noUnreadText,unreadNotificationsText:De=r.unreadNotificationsText,unreadBellLabel:Oe=r.unreadBellLabel,searchResultsLabel:ke=r.searchResultsLabel,noResultsText:Ae=r.noResultsText,noResultsForText:je=r.noResultsForText,resultsCountText:Me=r.resultsCountText,resultCountText:Ne=r.resultCountText,userMenu:Pe,notifications:Fe,search:Ie,className:Le=``,style:Re,...ze}=n;if(G(`AppShell`,ze),W(`AppShell`,`density`,ee,cIt),W(`AppShell`,`topbarTone`,re,lIt),W(`AppShell`,`tone`,ie,uIt),W(`AppShell`,`nav`,B,dIt),W(`AppShell`,`iconVariant`,ne,fIt),D!==void 0&&!E)throw Error(`<AppShell> brandLabel names the brand link, so it needs brandHref.`);if(E){if(!D&&!T)throw Error(`<AppShell> brandHref needs brandLabel or brandName: the collapsed rail hides the logo, so the link would have no accessible name.`);if(!(a||o||s||c||l))throw Error(`<AppShell> brandHref has no brand, logo or mark to link.`)}let Be=(te??0)>0?{...Re,"--wui-nav-item-height":`${te}px`}:Re,[Ve,He]=v(()=>ce&&L===void 0&&typeof document<`u`?ZFt(le)??!1:!1),[Ue,We]=v(!1),Ge=_(null),[Ke,qe]=v(!1),[Je,Ye]=v(!1),Xe=_(null),Ze=L??Ve,Qe=e=>E?x(DIt,{href:E,label:D||T,linkComponent:oe,onNavigate:()=>We(!1),children:e}):e,$e=()=>{let e=!Ze;L===void 0&&He(e),ce&&QFt(e,le),R?.(e)},et=i.some(e=>e.collapsible),[tt,nt]=v(()=>et&&typeof document<`u`?$Ft(ue):new Set),rt=e=>{let t=new Set(tt);t.has(e)?t.delete(e):t.add(e),nt(t),eIt(t,ue)},it=g(()=>yIt(i,j,se),[i,j,se]),at=it.groups,ot=it.footer,st=z?null:wIt(at,ot.some(e=>e.active));f(()=>{let e=()=>qe(window.scrollY>4);return e(),window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),f(()=>{Zde()},[]),f(()=>{Vde(Xe.current)},[]),f(()=>{let e=Xe.current;if(!e)return;let t=()=>Ye(at.length>0&&e.scrollHeight>e.clientHeight);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[at]),f(()=>{let e=Ge.current;if(!e)return;let t=window.matchMedia(`(max-width: 991.98px)`),n=()=>{t.matches?e.setAttribute(`popover`,`auto`):(e.removeAttribute(`popover`),We(!1))},r=e=>We(`newState`in e&&e.newState===`open`);return n(),t.addEventListener(`change`,n),e.addEventListener(`toggle`,r),()=>{t.removeEventListener(`change`,n),e.removeEventListener(`toggle`,r)}},[]),f(()=>{let e=Ge.current;e?.hasAttribute(`popover`)&&va(e,Ue)},[Ue]);let ct=[`app-shell`,Ze?`collapsed`:``,z?`no-sidebar`:``,B===`top`?`wui-shell-top`:``,Ue?`mobile-open`:``,Le].filter(Boolean).join(` `);return S(`div`,{className:ct,"data-density":ee===`compact`?`compact`:void 0,"data-shell-tone":ie===`brand`?`brand`:void 0,"data-wui-folded-cookie":et?ue:void 0,style:Be,...t,...ze,children:[x(`a`,{className:`wui-skip-link`,href:`#main-content`,children:pe}),S(`aside`,{className:`app-sidebar`,ref:Ge,children:[(a||o||s||c||l)&&x(`div`,{className:gIt({logoLight:o,logoDark:s,markLight:c,markDark:l}),children:Qe(S(b,{children:[_It({logoLight:o,logoDark:s,markLight:c,markDark:l,brandName:T,logoLightWidth:u,logoLightHeight:d,logoDarkWidth:p,logoDarkHeight:m,markLightWidth:h,markLightHeight:y,markDarkWidth:C,markDarkHeight:w}),a]}))}),O&&x(`div`,{className:`app-sidebar-start`,children:O}),k&&x(`div`,{className:`app-sidebar-start-compact`,children:k}),x(`nav`,{className:`app-sidebar-scroll`,"aria-label":ae,ref:Xe,tabIndex:Je?0:void 0,children:at.map((e,t)=>{let n=e.items.map(e=>e.header==null?x(N7,{item:e,linkComponent:oe,onNavigate:()=>We(!1),iconVariant:ne,newLabel:_e,togglePagesLabel:ve,capBadges:H},e.key??e.href??e.label):x(`div`,{className:`wui-nav-header`,children:e.header},e.key??e.header));if(!e.collapsible)return S(`div`,{className:`app-nav-group`,children:[e.label&&x(`div`,{className:`app-nav-group-label`,children:e.label}),n,e.after&&x(`div`,{className:`wui-nav-group-after`,children:e.after})]},e.key??e.label??`group-${t}`);let r=!tt.has(e.key??``)||!!M7(e.items),i=`wui-nav-group-${e.key}`;return S(`div`,{className:`app-nav-group wui-nav-group-collapsible${r?``:` wui-nav-group-folded`}`,"data-wui-nav-group":e.key,children:[S(`button`,{type:`button`,className:`app-nav-group-label wui-nav-group-toggle`,"aria-expanded":r,"aria-controls":i,onClick:()=>rt(e.key??``),children:[x(`span`,{className:`wui-nav-group-text`,children:e.label}),x(`span`,{className:`wui-nav-group-caret`,children:x(J,{name:`chevron-down`,size:16})})]}),S(`div`,{className:`wui-nav-group-body`,id:i,children:[n,e.after&&x(`div`,{className:`wui-nav-group-after`,children:e.after})]})]},e.key??`group-${t}`)})}),(A||ot.length>0)&&S(`div`,{className:`app-sidebar-foot`,children:[ot.length>0&&x(`div`,{className:`wui-sidebar-foot-links`,children:ot.map(e=>x(N7,{item:e,linkComponent:oe,onNavigate:()=>We(!1),iconVariant:ne,newLabel:_e,togglePagesLabel:ve,capBadges:H},e.key??e.href??e.label))}),A]}),!z&&x(`button`,{type:`button`,className:`app-sidebar-toggle`,onClick:$e,"aria-label":Ze?he:ge,"aria-expanded":!Ze,children:x(J,{name:`chevrons-left`,size:20})})]}),S(`div`,{className:`app-main`,children:[S(`header`,{className:`app-topbar${Ke?` wui-scrolled`:``}`,"data-tone":re===`primary`?`primary`:void 0,children:[S(`div`,{className:`app-topbar-start`,children:[x(`button`,{type:`button`,className:`app-topbar-menu`,onClick:()=>We(!0),"aria-label":me,"aria-expanded":Ue,children:x(J,{name:`menu`,size:18})}),B===`top`&&a&&x(`div`,{className:`wui-shell-top-brand`,children:Qe(a)}),B===`top`&&x(`div`,{className:`wui-shell-top-nav`,children:x(Udt,{items:TIt(at,V),ariaLabel:ae,linkComponent:oe})}),M,Ie&&x(NIt,{config:Ie,searchResultsLabel:ke,noResultsText:Ae,noResultsForText:je,resultsCountText:Me,resultCountText:Ne,moreLabel:fe})]}),S(`div`,{className:`app-topbar-end`,children:[N,Fe&&x(jIt,{config:Fe,unreadLabel:Se,markAllReadLabel:Ce,viewAllLabel:we,loadingNotificationsText:Te,noUnreadText:Ee,unreadNotificationsText:De,unreadBellLabel:Oe}),Pe&&x(AIt,{config:Pe,linkComponent:oe,accountMenuLabel:ye,roleLabel:be,rolesLabel:xe})]})]}),x(`main`,{className:`app-content`,id:`main-content`,children:I}),P&&x(`footer`,{className:`app-footer`,children:P})]}),F&&x(`div`,{className:`wui-shell-launcher`,children:F}),st&&S(`nav`,{className:`wui-tabbar`,"aria-label":de,"data-wui-cap-badges":H||void 0,children:[st.tabs.map(e=>x(OIt,{tab:e,linkComponent:oe,iconVariant:ne,capBadges:H},e.key??e.href)),st.hasMore&&S(`button`,{type:`button`,className:`wui-tabbar-item${st.moreActive?` active`:``}`,onClick:()=>We(!0),children:[x(`span`,{className:`wui-tabbar-icon`,children:x(J,{name:`more`,size:24})}),x(`span`,{className:`wui-tabbar-label`,children:fe})]})]})]})}function yIt(e,t,n){let r=t;for(let e of r){if(e.children?.length)throw Error(`<AppShell> sidebarFooterItems cannot hold children; keep footer links flat.`);if(e.tab)throw Error(`<AppShell> sidebarFooterItems cannot carry tab: true; the phone tab bar is built from groups.`);if(e.header!=null)throw Error(`<AppShell> sidebarFooterItems cannot hold a header row.`)}for(let t of e)t.collapsible&&CIt(t);let i=(e,t=!1)=>(e??[]).map(e=>Array.isArray(e.children)?{...e,children:i(e.children)}:{...e}).filter(e=>j7(e)?t:(e.children?.length??0)>0||!!e.href),a=[...e,{key:k7,items:t}].map(e=>({...e,items:xIt(i(e.items,!0))})).filter(e=>e.items.some(e=>!j7(e))),o=[],s=e=>{for(let t of e)j7(t)||(o.push(t),t.children&&s(t.children))};for(let e of a)s(e.items);for(let e of o)G(`AppShell items`,bIt(e)),W(`AppShell`,`match`,e.match,sIt),W(`AppShell`,`iconVariant`,e.iconVariant,fIt),W(`AppShell`,`badgeTone`,e.badgeTone,Hs);let c=null;if(n!=null&&!o.some(e=>e.active===!0)){let e=-1;for(let t of o){if(t.active!=null||t.children?.length&&!t.href)continue;let r=JFt(n,t.href,{exact:t.match===`exact`,also:t.matchAlso});if(r<0)continue;let i=t.match===`exact`&&JFt(n,t.href,{exact:!0})>=0?1/0:r;i>e&&(e=i,c=t)}}for(let e of o)e.active=e.active??e===c;return{groups:a.filter(e=>e.key!==k7),footer:a.find(e=>e.key===k7)?.items??[]}}function bIt(e){return Object.fromEntries(Object.entries(e).filter(([e])=>!pIt.has(e)))}var j7=e=>e.header!=null;function xIt(e){return e.filter((t,n)=>{if(!j7(t))return!0;let r=e.findIndex((e,t)=>t>n&&j7(e));return e.slice(n+1,r<0?void 0:r).length>0})}var SIt=new Set;function CIt(e){if(e.key!=null&&aIt.test(e.key))return;let t=e.key==null?`<AppShell> a collapsible group needs a key so its folded state can be remembered.`:`<AppShell> collapsible group key "${e.key}" must use lower-case letters, digits and hyphens.`;typeof process<`u`||SIt.has(t)||(SIt.add(t),ce(t))}function wIt(e,t){let n=[],r=e=>{for(let t of e)j7(t)||(t.children?.length?r(t.children):n.push(t))};for(let t of e)r(t.items);let i=n.filter(e=>e.tab);if(i.length===0)return null;let a=i.length<n.length,o=a?rIt:iIt;if(i.length>o)throw Error(`<AppShell>: ${i.length} items carry tab: true, but the phone tab bar holds ${o} (${a?`4 plus More, because other items exist`:`5 when every item is a tab`}). Flag fewer items.`);return{tabs:i,hasMore:a,moreActive:t||n.some(e=>!e.tab&&e.active)}}function TIt(e,t){let n=e=>{if(e.label===void 0)throw Error(`<AppShell> a navigation row has no label; every row but a header needs one.`);return e.label},r=e=>e.key??e.href??n(e),i=(e,i)=>({key:r(e),label:n(e),to:i,current:!!e.active,...t&&e.description?{description:e.description}:{}}),a=e=>e.flatMap(e=>j7(e)?[]:[...e.href?[{...i(e,e.href),icon:e.icon}]:[],...a(e.children??[])]),o=[];for(let s of e)for(let e of s.items){if(j7(e))continue;let c=t&&s.label?{group:s.label}:{},l=a(e.children??[]);if(l.length>0){let a=e.href?[{...i(e,e.href),icon:e.icon}]:[],s=t&&(!!e.active||!!M7(e.children??[]));o.push({key:r(e),label:n(e),links:[...a,...l],...c,...t?{current:s}:{}})}else e.href&&o.push({...i(e,e.href),...c})}return o}function EIt(e,t){return t&&typeof e==`number`&&e>O7?`${O7}+`:e}function DIt({href:e,label:t,linkComponent:n,onNavigate:r,children:i}){return x(_s,{link:gs(n,{to:e}),className:`wui-brand-link`,"aria-label":t,onClick:r,children:i})}function OIt({tab:e,linkComponent:t,iconVariant:n,capBadges:r}){let i=`wui-tabbar-item${e.active?` active`:``}`,a=S(b,{children:[e.icon&&x(`span`,{className:`wui-tabbar-icon`,children:typeof e.icon==`string`?x(J,{name:e.icon,size:24,variant:e.iconVariant??n}):e.icon}),x(`span`,{className:`wui-tabbar-label`,children:e.tabLabel??e.label}),e.badge!=null&&x(`span`,{className:`wui-tabbar-badge${e.badgeTone?` tone-${e.badgeTone}`:``}`,title:e.badgeTitle||void 0,children:EIt(e.badge,r)}),e.badge!=null&&e.badgeTitle&&x(`span`,{className:`visually-hidden`,children:e.badgeTitle})]}),o=e.active?`page`:void 0;return x(_s,{link:gs(t,{to:e.href}),className:i,"aria-current":o,children:a})}function M7(e){for(let t of e){if(t.active)return t;let e=t.children?.length?M7(t.children):void 0;if(e)return e}}function N7({item:e,linkComponent:t,onNavigate:n,depth:r=0,iconVariant:i,newLabel:a,togglePagesLabel:o,capBadges:s}){let c=r>0,l=r>1?` wui-nav-depth-${Math.min(r,6)}`:``,u=Array.isArray(e.children)&&e.children.length>0,d=u?M7(e.children??[]):void 0,p=!!d,m=d?d.key??d.href??d.label:null,[h,g]=v(p);f(()=>{m!=null&&g(!0)},[m]);let _=typeof e.label==`string`?e.label:void 0,y=!c&&e.icon&&x(`span`,{className:`app-nav-icon`,children:typeof e.icon==`string`?x(J,{name:e.icon,size:e.iconSize??22,variant:e.iconVariant??i}):e.icon}),C=e.badge!=null&&x(`span`,{className:`app-nav-badge${e.badgeTone?` tone-${e.badgeTone}`:``}`,title:e.badgeTitle||void 0,children:EIt(e.badge,s)}),w=hIt(e.newUntil)&&x(`span`,{className:`wui-nav-new`,children:a}),T=S(b,{children:[y,x(`span`,{className:`app-nav-text`,children:e.label}),w,C,e.trailingIcon&&x(`span`,{className:`app-nav-trailing`,children:typeof e.trailingIcon==`string`?x(J,{name:e.trailingIcon,size:16}):e.trailingIcon})]}),E=e.active?`page`:void 0;if(u){let u=x(`div`,{className:`app-nav-sub${h?` expanded`:``}`,inert:!h,"aria-hidden":!h||void 0,children:x(`div`,{className:`app-nav-sub-inner`,children:(e.children??[]).map(e=>x(N7,{item:e,linkComponent:t,onNavigate:n,depth:r+1,iconVariant:i,newLabel:a,togglePagesLabel:o,capBadges:s},e.key??e.href))})});if(e.href){let r=x(_s,{link:gs(t,{to:e.href}),className:`wui-nav-split-link`,"aria-current":E,onClick:n,children:T});return S(b,{children:[S(`div`,{className:`app-nav-item has-children wui-nav-split${c?` app-nav-subitem`:``}${p||e.active?` active`:``}${l}`,"data-label":_,children:[r,x(`button`,{type:`button`,className:`app-nav-caret wui-nav-split-toggle`,"aria-expanded":h,"aria-label":K(o,{name:_??``}),onClick:()=>g(e=>!e),children:x(J,{name:`chevron-right`,size:16})})]}),u]})}return S(b,{children:[S(`button`,{type:`button`,className:`app-nav-item${c?` app-nav-subitem`:``} has-children${p?` active`:``}${l}`,"aria-expanded":h,"data-label":_,onClick:()=>g(e=>!e),children:[y,x(`span`,{className:`app-nav-text`,children:e.label}),w,C,x(`span`,{className:`app-nav-caret`,children:x(J,{name:`chevron-right`,size:16})})]}),u]})}let D=`app-nav-item${c?` app-nav-subitem`:``}${e.active?` active`:``}${l}`;return x(_s,{link:gs(t,{to:e.href}),className:D,"aria-current":E,"data-label":_,onClick:n,children:T})}function kIt(e){Fc(`wui-dropdown`,nIt);let[t,n]=v(!1),r=_(null);return f(()=>{r.current?.toggleAttribute(`open`,t)},[t]),f(()=>{let t=r.current;if(!t)return;let i=r=>{if(r.target!==t||!(`detail`in r)||!r.detail||typeof r.detail!=`object`)return;let i=`open`in r.detail&&r.detail.open===!0;n(i),i&&e?.()};return t.addEventListener(`wui-dropdown-toggle`,i),()=>t.removeEventListener(`wui-dropdown-toggle`,i)},[e]),{open:t,setOpen:n,ref:r}}function AIt({config:e,linkComponent:t,accountMenuLabel:n,roleLabel:r,rolesLabel:i}){let a=Vs(`shell`,Bs),o=p(),{open:s,setOpen:c,ref:l}=kIt(),{name:u,role:d,roles:f=[],noTriggerRole:m=!1,outlined:h=!1,photo:g,profileHref:_,profileLabel:v=a.profileLabel,onLogout:y,logoutAction:C,logoutLabel:w=a.logoutLabel,head:T,section:E,logoutVariant:D=`item`,items:O=[]}=e;if(W(`AppShell`,`userMenu.logoutVariant`,D,[`item`,`button`]),!u)throw Error(`<AppShell> userMenu.name is required; the trigger and the avatar are named from it.`);let k=f.map(e=>(e??``).trim()).filter(Boolean),A=()=>c(!1),j=(e,n,r,i)=>x(_s,{link:gs(t,{to:e}),className:`dropdown-item`,onClick:i,children:n},r),M=x(J,{name:`log-out`,size:18}),N=S(b,{children:[M,w]});return S(`wui-dropdown`,{class:`dropdown wui-usermenu`,align:`end`,ref:l,children:[S(`button`,{type:`button`,id:o,className:h?`wui-usermenu-trigger wui-usermenu-trigger-outlined`:`wui-usermenu-trigger`,"data-wui-dropdown-trigger":!0,"aria-expanded":s,"aria-label":K(n,{name:u}),children:[x(Gs,{name:u,src:g,tone:`auto`}),S(`span`,{className:`wui-usermenu-text`,children:[x(`span`,{className:`wui-usermenu-name`,children:u}),d&&!m&&x(`span`,{className:`wui-usermenu-role`,children:d})]}),x(J,{name:`chevron-down`,size:14,className:`wui-usermenu-caret`})]}),S(`div`,{"data-wui-dropdown-menu":!0,popover:`auto`,className:`dropdown-menu dropdown-menu-end wui-usermenu-menu${s?` show`:``}`,"aria-labelledby":o,children:[S(`div`,{className:`wui-usermenu-head`,children:[x(Gs,{name:u,src:g,size:`lg`,tone:`auto`}),S(`div`,{className:`wui-usermenu-who`,children:[x(`div`,{className:`wui-usermenu-name`,children:u}),d&&x(`div`,{className:`wui-usermenu-role`,children:d}),k.length>0&&S(`div`,{className:`wui-usermenu-roles`,children:[x(`span`,{className:`wui-usermenu-roles-label`,children:k.length===1?r:i}),` ${k.join(`, `)}`]}),T?x(`div`,{className:`wui-usermenu-extra`,children:T}):null]})]}),E?x(`div`,{className:`wui-usermenu-section`,children:E}):null,_&&j(_,S(b,{children:[x(J,{name:`user`,size:18}),v]}),void 0,A),O.map(e=>{if(e.divider)return x(`hr`,{className:`dropdown-divider`},e.key);let t=S(b,{children:[e.icon&&x(J,{name:e.icon,size:18}),e.label]}),n=()=>{e.onClick?.(),A()};return e.href?j(e.href,t,e.key,n):x(`button`,{type:`button`,className:`dropdown-item`,onClick:n,children:t},e.key)}),D===`button`?(C||y)&&x(`div`,{className:`wui-usermenu-foot`,children:C?x(`form`,{method:`post`,action:C,className:`wui-usermenu-logout`,children:S(nl,{type:`submit`,tone:`danger`,variant:`soft`,block:!0,children:[x(`span`,{className:`d-inline-flex me-2`,children:M}),w]})}):S(nl,{type:`button`,tone:`danger`,variant:`soft`,block:!0,onClick:()=>{A(),y?.()},children:[x(`span`,{className:`d-inline-flex me-2`,children:M}),w]})}):C?x(`form`,{method:`post`,action:C,className:`wui-usermenu-logout`,children:x(`button`,{type:`submit`,className:`dropdown-item danger`,children:N})}):y&&x(`button`,{type:`button`,className:`dropdown-item danger`,onClick:()=>{A(),y()},children:N})]})]})}function jIt({config:e,unreadLabel:t,markAllReadLabel:n,viewAllLabel:r,loadingNotificationsText:i,noUnreadText:a,unreadNotificationsText:o,unreadBellLabel:s}){let c=Vs(`shell`,Bs),l=p(),{open:u,ref:d}=kIt(e.onOpen),{unread:m=0,items:h,loading:g=!1,onMarkAllRead:y,viewAllHref:C,label:w=c.label,emptyText:T=c.emptyText}=e,[E,D]=v(``),O=_(m);f(()=>{O.current!==m&&(O.current=m,D(m===0?a:K(o,{count:A7(m)})))},[m,a,o]);let k=null;return h?.length?k=x(`div`,{className:`wui-bell-items`,children:h.map((e,n)=>{let r=`wui-bell-item${e.read?` wui-bell-item-read`:``}`,i=S(b,{children:[x(`span`,{className:`wui-bell-dot`,"aria-hidden":`true`}),e.icon&&x(`span`,{className:`wui-bell-icon`,children:x(J,{name:e.icon,size:18})}),S(`span`,{className:`wui-bell-body`,children:[!e.read&&S(`span`,{className:`visually-hidden`,children:[t,`: `]}),x(`span`,{className:`wui-bell-item-title`,children:e.title}),e.time&&x(`span`,{className:`wui-bell-when`,children:e.time})]})]});return e.href?x(`a`,{className:r,href:e.href,"data-id":e.id,children:i},e.id??n):x(`div`,{className:r,"data-id":e.id,children:i},e.id??n)})}):g?k=x(`div`,{className:`wui-bell-state`,children:i}):h&&(k=x(`div`,{className:`wui-bell-state`,children:T})),S(`wui-dropdown`,{class:`dropdown wui-bell`,align:`end`,ref:d,children:[S(`button`,{type:`button`,id:l,className:`topbar-icon-btn wui-bell-trigger`,"data-wui-dropdown-trigger":!0,"aria-expanded":u,"aria-label":m===0?w:K(s,{label:w,count:A7(m)}),children:[x(J,{name:`notification`,size:20}),x(`span`,{className:`wui-bell-count`,"aria-hidden":`true`,hidden:m===0,children:A7(m)})]}),x(`span`,{className:`visually-hidden`,"aria-live":`polite`,children:E}),S(`div`,{"data-wui-dropdown-menu":!0,popover:`auto`,className:`dropdown-menu dropdown-menu-end wui-bell-menu${u?` show`:``}`,"aria-labelledby":l,children:[S(`div`,{className:`wui-bell-head`,children:[x(`span`,{className:`wui-bell-title`,children:w}),y&&x(`button`,{type:`button`,className:`wui-bell-markall`,onClick:y,children:n})]}),x(`div`,{className:`wui-bell-list`,"aria-busy":g||void 0,children:k}),C&&x(`a`,{className:`wui-bell-foot`,href:C,children:r})]})]})}var MIt=e=>!!e&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function NIt({config:e,searchResultsLabel:t,noResultsText:n,noResultsForText:r,resultsCountText:i,resultCountText:a,moreLabel:o}){Fc(`wui-overflow`,tIt);let s=Vs(`shell`,Bs),c=p(),{value:l=``,onChange:u,results:d=null,loading:m=!1,onSelect:h,onSubmit:y,onFocus:b,placeholder:C=s.placeholder,shortcutKey:w}=e;if(w!==void 0&&!/^[a-z]$/.test(w))throw Error(`<AppShell>: search shortcutKey must be one letter, a to z; got "${w}".`);let T=w?.toUpperCase(),E=T===void 0?``:` (${ude()?`⌘${T}`:`Ctrl+${T}`})`;f(()=>{if(w===void 0)return;let e=e=>{dde(e,w)&&(e.preventDefault(),O(!0),I.current?.focus(),I.current?.select())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[w]);let[D,O]=v(!1),[k,A]=v(!1),[j,M]=v({results:null,index:-1}),N=j.results===d?j.index:-1,P=e=>M({results:d,index:e}),F=_(null),I=_(null),L=_([]),R=g(()=>(d??[]).flatMap(e=>e.hits??[]),[d]),z=d!=null&&!k,B=R.length;f(()=>{let e=e=>{e.key!==`/`||e.ctrlKey||e.metaKey||e.altKey||MIt(e.target instanceof HTMLElement?e.target:null)||(e.preventDefault(),O(!0),I.current?.focus())},t=e=>{F.current?.contains(e.target instanceof Node?e.target:null)||(A(!0),O(!1))};return document.addEventListener(`keydown`,e),document.addEventListener(`pointerdown`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`pointerdown`,t)}},[]);let V=e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(!z||B===0)return;e.preventDefault(),P((N+(e.key===`ArrowDown`?1:-1)+B)%B)}else ni(e.nativeEvent)?z&&N>=0&&L.current[N]?(e.preventDefault(),L.current[N].click()):y&&l.trim()!==``&&(e.preventDefault(),y(l.trim())):e.key===`Escape`&&(z?(e.preventDefault(),A(!0)):D&&(e.preventDefault(),O(!1)))},H=-1;return L.current=[],x(`wui-overflow`,{class:`wui-topsearch-host`,label:o,children:x(`div`,{"data-wui-overflow-list":!0,className:`wui-topsearch-row`,children:S(`div`,{className:`wui-topsearch${D?` is-open`:``}${m?` is-loading`:``}`,ref:F,"data-overflow-label":C,children:[x(`button`,{type:`button`,className:`topbar-icon-btn wui-topsearch-open`,"aria-label":C,"aria-expanded":D,"aria-controls":`${c}-panel`,onClick:()=>{let e=!D;O(e),e&&I.current?.focus()},children:x(J,{name:`search`,size:20})}),S(`div`,{className:`wui-topsearch-panel`,id:`${c}-panel`,children:[S(`div`,{className:`search-wrap`,children:[x(J,{name:`search`,size:18,className:`search-icon`}),x(`input`,{ref:I,type:`search`,className:`form-control input search-input`,id:`${c}-input`,placeholder:C+E,"aria-label":C,"aria-keyshortcuts":T===void 0?void 0:`Control+${T} Meta+${T}`,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":z,"aria-controls":`${c}-list`,"aria-activedescendant":z&&N>=0?`${c}-opt-${N}`:void 0,autoComplete:`off`,value:l,onChange:e=>{A(!1),u?.(e.target.value)},onKeyDown:V,onFocus:b})]}),x(`div`,{className:`wui-topsearch-results`,id:`${c}-list`,role:`listbox`,"aria-label":t,hidden:!z,children:z&&S(`div`,{className:`wui-topsearch-groups`,role:`presentation`,children:[B===0&&x(`div`,{className:`wui-topsearch-empty`,role:`option`,"aria-disabled":`true`,"aria-selected":`false`,children:K(r,{value:l})}),d.filter(e=>e.hits?.length).map((e,t)=>S(`div`,{className:`wui-topsearch-group`,role:`group`,"aria-label":e.label??``,children:[e.label&&x(`div`,{className:`wui-topsearch-group-label`,role:`presentation`,children:e.label}),e.hits.map(e=>{H+=1;let t=H;return S(`a`,{className:`wui-topsearch-hit${t===N?` is-active`:``}`,role:`option`,"aria-selected":t===N,id:`${c}-opt-${t}`,href:e.href,ref:e=>{L.current[t]=e},onClick:t=>h?.(e,t),children:[e.icon&&x(`span`,{className:`wui-topsearch-hit-icon`,children:x(J,{name:e.icon,size:18})}),S(`span`,{className:`wui-topsearch-hit-text`,children:[x(`span`,{className:`wui-topsearch-hit-title`,children:e.title}),e.subtitle&&x(`span`,{className:`wui-topsearch-hit-sub`,children:e.subtitle})]})]},`${e.href}-${t}`)})]},e.label??t))]})})]}),x(`span`,{className:`visually-hidden`,"aria-live":`polite`,children:z?B===0?n:K(B===1?a:i,{count:B}):``})]})})})}function P7(e,t){let n=e.querySelector(t);return n instanceof HTMLElement?n:null}function PIt(e,t){return[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement)}var FIt,F7,IIt=M((()=>{En(),Rc(),Ma(),bo(),FIt=`wui-shortcuts-open-change`,F7=class extends Lc{_doc;_onKeyDown;_onClick;_onDocClick;_onPointerDown;_onPressEnd;_pressedOpen;_pinned;_mirroring;static get observedAttributes(){return[`open`,`no-trigger`]}constructor(){super(),this._doc=null,this._pressedOpen=!1,this._pinned=!1,this._mirroring=!1,this._onKeyDown=e=>this._keydown(e),this._onClick=e=>this._click(e),this._onDocClick=e=>{let t=Tn(e.target,`[data-wui-shortcuts-open]`)?.getAttribute(`data-wui-shortcuts-open`);t&&this.matches(t)&&this.setOpen(!0)},this._onPointerDown=e=>{Tn(e.target,`.wui-shortcut-toggle`)&&(this._pressedOpen=this.open)},this._onPressEnd=e=>{e.type===`pointerup`&&Tn(e.target,`.wui-shortcut-toggle`)||(this._pressedOpen=!1)}}connectedCallback(){this._doc=this.ownerDocument,this._doc.addEventListener(`keydown`,this._onKeyDown),this._doc.addEventListener(`click`,this._onDocClick),this._doc.addEventListener(`pointerup`,this._onPressEnd,!0),this._doc.addEventListener(`pointercancel`,this._onPressEnd,!0),this.addEventListener(`click`,this._onClick),this.addEventListener(`pointerdown`,this._onPointerDown,!0),this.hasAttribute(`open`)&&!this.open&&(this._pinned=!0,this.setOpen(!0,{focus:!1})),this._syncTrigger()}attributeChangedCallback(e,t,n){e===`no-trigger`?this._syncTrigger():(this._mirroring||(this._pinned=n!==null),this._sheet()&&n!==null!==this.open&&this.setOpen(n!==null))}disconnectedCallback(){let e=this._sheet();e&&ga(e),this._doc?.removeEventListener(`keydown`,this._onKeyDown),this._doc?.removeEventListener(`click`,this._onDocClick),this._doc?.removeEventListener(`pointerup`,this._onPressEnd,!0),this._doc?.removeEventListener(`pointercancel`,this._onPressEnd,!0),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`pointerdown`,this._onPointerDown,!0),this._doc=null}get open(){let e=this._sheet();return!!(e&&_a(e))}set open(e){let t=e===!0||e===``||e===`true`;this._pinned=t,this._sheet()?t!==this.open&&this.setOpen(t):this.toggleAttribute(`open`,t)}setOpen(e,{focus:t=!0}={}){let n=this._sheet();if(!n)return;let r=P7(this,`.wui-shortcut-toggle`);e||(this._pinned=!1),e?(n.removeAttribute(`hidden`),ha(this.hasAttribute(`no-trigger`)?r??this:wn(r,`<wui-shortcuts> needs its toggle to anchor the sheet.`),n,{mode:`auto`,side:`top`,align:`end`,flipAlign:!0,gap:8,keepOffscreen:this._pinned,onClosed:()=>{this._pinned=!1,this._mirror(!1)}})):ga(n),this._mirror(e),t&&(e?queueMicrotask(()=>{_a(n)&&P7(n,`.wui-shortcut-close`)?.focus()}):r?.focus())}_mirror(e){let t=this._sheet();t&&(t.hidden=!e),P7(this,`.wui-shortcut-toggle`)?.setAttribute(`aria-expanded`,String(e)),this.hasAttribute(`open`)!==e&&(this._mirroring=!0,this.toggleAttribute(`open`,e),this._mirroring=!1,this.dispatchEvent(new CustomEvent(FIt,{bubbles:!0,detail:{open:e}})))}_sheet(){return P7(this,`.wui-shortcut-sheet`)}_syncTrigger(){let e=P7(this,`.wui-shortcut-toggle`);e&&(e.hidden=this.hasAttribute(`no-trigger`))}_scope(){let e=this.closest(`[${Mue}]`);return e instanceof HTMLElement?e:null}_items(){let e=this.getAttribute(`items`);return e?PIt(wn(this._scope()??this._doc,`WuiShortcuts used before it was connected`),e):[]}_click(e){let t=e.target;if(t instanceof Element){if(t.closest(`.wui-shortcut-toggle`)){let e=this._pressedOpen;this._pressedOpen=!1,this.setOpen(!e&&!this.open)}else t.closest(`.wui-shortcut-close`)&&this.setOpen(!1)}}_tickFocused(){let e=this._items(),t=wn(this._doc,`WuiShortcuts used before it was connected`).activeElement,n=t?.closest?.(`li, tr`),r=e.find(e=>e===t||e.contains(t)||n?.contains(e)),i=(r?.closest(`li, tr`)??r)?.querySelector(`input[type="checkbox"]`);i instanceof HTMLInputElement&&i.click()}_focusSearch(){let e=this.getAttribute(`search`);if(!e)return;let t=wn(this._doc,`WuiShortcuts used before it was connected`);(P7(this._scope()??t,e)??P7(t,e))?.focus()}_keydown(e){if(e.defaultPrevented)return;let t=Tue(e);if(!t)return;if(t===`esc`&&this.open){e.preventDefault(),this.setOpen(!1);return}let n=this._scope(),r={help:()=>this.setOpen(!this.open)};if(this.getAttribute(`items`)&&(r.j=()=>Aue(this._items(),1),r.k=()=>Aue(this._items(),-1),r.x=()=>this._tickFocused()),this.getAttribute(`search`)&&(r.slash=()=>this._focusSearch()),r[t]){ho(e,r,n);return}if(t===`enter`)return;let i=wn(this._doc,`WuiShortcuts used before it was connected`),a=e.target instanceof Node?e.target:null;if(Oue(i)||!kue(a,n)||mo(a))return;let o=po(t),s=PIt(this,`.wui-shortcut-keys [data-shortcut]`).find(e=>e.dataset.shortcut===o);if(!s)return;let c=(n??i).querySelector(`[aria-current="true"]`)?.closest(`[data-key]`),l=c instanceof HTMLElement?c.dataset.key??null:null;if(!this.dispatchEvent(new CustomEvent(`wui:shortcut`,{bubbles:!0,cancelable:!0,detail:{key:o,itemKey:l}}))){e.preventDefault();return}let u=s.dataset.target,d=u?P7(i,u):null;d&&(e.preventDefault(),d.click())}}})),LIt=P({WuiShortcuts:()=>F7}),RIt=M((()=>{Rc(),IIt(),Ic(`wui-shortcuts`,F7)})),zIt=`wui-shortcuts-open-change`,BIt=()=>Promise.resolve().then(()=>(RIt(),LIt));function VIt(e){let t=[],n=new Map;for(let r of e){let e=r.group?.trim(),i=e?n.get(e):void 0;e?i?i.rows.push(r):n.set(e,{title:e,rows:[r]}):t.push(r)}return[{title:null,rows:t},...n.values()].filter(e=>e.rows.length>0)}function HIt(e){return x(`dl`,{className:`wui-shortcut-keys`,children:e.map(e=>S(`div`,{"data-shortcut":po(e.key),children:[x(`dt`,{children:x(`kbd`,{className:`wui-kbd`,children:po(e.key)})}),x(`dd`,{children:e.label})]},po(e.key)))})}function UIt(e){Fc(`wui-shortcuts`,BIt);let{marker:t,props:n}=U(`AppShortcutLegend`,{...e}),r=Vs(`shortcutKeys`,fo),{shortcuts:i=[],items:a,search:o,open:s,onOpenChange:c,trigger:l=!0,className:u=``,...d}=n;G(`AppShortcutLegend`,d);let m=p(),h=_(null),g=i.filter(e=>po(e.key)!==`?`),v=VIt(g),y={key:`?`,label:r.helpLabel},b=v.at(-1);b?b.rows.push(y):v.push({title:null,rows:[y]});let C=v.find(e=>!e.title),w=v.filter(e=>e.title),T=_(g);T.current=g,f(()=>{let e=h.current;if(!e)return;let t=e=>{if(!(e instanceof CustomEvent))throw Error(`wui:shortcut arrived without a detail`);let t=e.detail,n=T.current.find(e=>po(e.key)===t.key&&typeof e.onPress==`function`);n?.onPress&&(e.preventDefault(),n.onPress(t.itemKey))};return e.addEventListener(_o,t),()=>e.removeEventListener(_o,t)},[]);let E=_(c);return E.current=c,f(()=>{let e=h.current;if(!e)return;let t=t=>{if(!(t instanceof CustomEvent)||t.target!==e)return;let n=t.detail;E.current?.(n.open)};return e.addEventListener(zIt,t),()=>e.removeEventListener(zIt,t)},[]),S(`wui-shortcuts`,{ref:h,class:[`wui-shortcut-legend`,u].filter(Boolean).join(` `),items:a||void 0,search:o||void 0,open:s,"no-trigger":l?void 0:``,...t,...d,children:[l&&S(`button`,{type:`button`,className:`wui-shortcut-toggle`,"aria-haspopup":`dialog`,"aria-expanded":`false`,"aria-controls":m,"aria-keyshortcuts":`?`,children:[Qo(`?`),` ${r.sheetTitle}`]}),S(`div`,{className:`wui-shortcut-sheet`,id:m,role:`dialog`,"aria-label":r.sheetTitle,hidden:!0,children:[S(`div`,{className:`wui-shortcut-sheet-head`,children:[x(`span`,{className:`wui-shortcut-sheet-title`,children:r.sheetTitle}),x(`button`,{type:`button`,className:`wui-shortcut-close`,"aria-label":r.closeLabel,children:x(J,{name:`x`,size:16})})]}),C&&HIt(C.rows),w.map(e=>S(`section`,{className:`wui-shortcut-group`,children:[x(`h3`,{className:`wui-shortcut-group-title`,children:e.title}),HIt(e.rows)]},e.title))]})]})}var WIt,I7,L7,GIt=M((()=>{En(),Rc(),xn(),upe(),WIt=3,I7=()=>pn(`showMore`,Ps),L7=class extends Lc{_width;_observer;_toggle;_onClick;constructor(){super(),this._width=-1,this._observer=null,this._toggle=null,this._onClick=()=>this.toggle()}connectedCallback(){let e=this.querySelector(`.wui-show-more-toggle`);if(this._toggle=e instanceof HTMLButtonElement?e:null,!this._toggle)return;let t=Number.parseInt(this.getAttribute(`lines`)??``,10);this.style.setProperty(`--wui-show-more-lines`,String(t>=1?t:WIt)),this._toggle.addEventListener(`click`,this._onClick),this._sync(),this._check(),typeof ResizeObserver<`u`&&(this._observer=new ResizeObserver(()=>{this.clientWidth!==this._width&&this._check()}),this._observer.observe(this))}disconnectedCallback(){this._observer?.disconnect(),this._observer=null,this._toggle?.removeEventListener(`click`,this._onClick),this._toggle=null}get expanded(){return this.hasAttribute(`expanded`)}toggle(e=!this.expanded){this.toggleAttribute(`expanded`,!!e),this._sync(),this.dispatchEvent(new CustomEvent(`wui:show-more:toggle`,{bubbles:!0,detail:{expanded:this.expanded}}))}_sync(){let e=wn(this._toggle,`WuiShowMore used before it was connected`),t=this.expanded;e.setAttribute(`aria-expanded`,String(t)),e.textContent=t?this.getAttribute(`less-label`)||I7().lessLabel:this.getAttribute(`more-label`)||I7().moreLabel}_check(){let e=this.querySelector(`.wui-show-more-body`);if(!(e instanceof HTMLElement))return;this._width=this.clientWidth;let t=this.expanded;t&&this.removeAttribute(`expanded`);let n=e.scrollHeight>e.clientHeight+1;t&&this.setAttribute(`expanded`,``);let r=wn(this._toggle,`WuiShowMore used before it was connected`);r.hidden=!n}}})),KIt=P({WuiShowMore:()=>L7}),qIt=M((()=>{Rc(),GIt(),Ic(`wui-show-more`,L7)})),JIt=()=>Promise.resolve().then(()=>(qIt(),KIt));function YIt(e){Fc(`wui-show-more`,JIt);let{marker:t,props:n}=U(`AppShowMore`,{...e}),r=Vs(`showMore`,Ps),{children:i,lines:a=3,moreLabel:o=r.moreLabel,lessLabel:s=r.lessLabel,defaultExpanded:c=!1,id:l,className:u=``,...d}=n;G(`AppShowMore`,d);let f=p(),m=l||`show-more-${f.replace(/:/g,``)}`,g=`${m}-body`,v=_(null),y=_(c);return h(()=>{if(y.current){if(!v.current)throw Error(`<AppShowMore> element was not mounted before layout`);Eo(`wui-show-more`)?v.current.toggle(!0):v.current.setAttribute(`expanded`,``)}},[]),S(`wui-show-more`,{ref:v,class:[`wui-show-more`,u].filter(Boolean).join(` `),id:m,lines:a===3?void 0:String(a),"more-label":o===r.moreLabel?void 0:o,"less-label":s===r.lessLabel?void 0:s,...t,...d,children:[x(`div`,{className:`wui-show-more-body`,id:g,children:i}),x(`button`,{type:`button`,className:`btn btn-link btn-sm wui-show-more-toggle`,"aria-expanded":y.current?`true`:`false`,"aria-controls":g,hidden:!0,children:y.current?s:o})]})}var R7=Array.from({length:12},(e,t)=>t+1),XIt=R7.map(e=>`line-placeholder-${e}`),ZIt=3;function QIt(e){let{marker:t,props:n}=U(`AppSkeletonLines`,{...e}),{lines:r=ZIt,lastLineWidth:i=`60%`,className:a=``,style:o,...s}=n;G(`AppSkeletonLines`,s),W(`AppSkeletonLines`,`lines`,r,R7);let c=R7.includes(r)?r:ZIt;return x(`div`,{className:[`wui-skeleton-lines`,a].filter(Boolean).join(` `),"aria-hidden":`true`,style:o,...t,...s,children:XIt.slice(0,c).map((e,t)=>x(`span`,{className:`skeleton`,style:t===c-1?{width:i}:void 0},e))})}var z7,B7,V7,H7,$It,U7,eLt=M((()=>{Ci(),En(),Rc(),HB(),rH(),xn(),dpe(),z7=()=>pn(`slider`,Fs),B7=class extends Lc{static formAssociated=!0;_internals;_value;_start;_end;_isDragging;_dragThumb;_pointerDownListener;_pointerMoveListener;_pointerUpListener;_thumbKeyListener;_trackClickListener;_rendered;_defaultsCaptured;_defaultValue;_defaultStart;_defaultEnd;static get observedAttributes(){return[`min`,`max`,`step`,`value`,`start`,`end`,`name`,`start-name`,`end-name`,`disabled`,`readonly`,`loading`,`size`,`show-value`,`unit`,`grouping`,`aria-label`]}constructor(){super();try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=50,this._start=25,this._end=75,this._isDragging=!1,this._dragThumb=null,this._pointerDownListener=null,this._pointerMoveListener=null,this._pointerUpListener=null,this._thumbKeyListener=null,this._trackClickListener=null}connectedCallback(){this._rendered?this._wire():this.render()}get value(){return this._value}set value(e){this._value=this._snapToStep(this._clamp(V7(e,this._value))),this._syncValue(),this._syncMirrors()}get start(){return this._start}set start(e){this._start=Math.min(this._snapToStep(this._clamp(V7(e,this._start))),this._end),this._syncValue(),this._syncMirrors()}get end(){return this._end}set end(e){this._end=Math.max(this._snapToStep(this._clamp(V7(e,this._end))),this._start),this._syncValue(),this._syncMirrors()}attributeChangedCallback(e,t,n){e===`value`||e===`start`||e===`end`||e===`min`||e===`max`||e===`step`?(this._updateFromAttribute(e),this._rendered&&(this._syncValue(),this._syncMirrors())):this._rendered&&this.render()}formResetCallback(){this._isRange()?this._resetRange():this._resetSingle()}_updateFromAttribute(e){e===`value`?this._value=this._snapToStep(this._clamp(V7(this.getAttribute(`value`),this._value))):e===`start`?this._start=this._snapToStep(this._clamp(V7(this.getAttribute(`start`),this._start))):e===`end`&&(this._end=this._snapToStep(this._clamp(V7(this.getAttribute(`end`),this._end))))}_isRange(){return this.hasAttribute(`range`)}_min(){return V7(this.getAttribute(`min`),0)}_max(){return V7(this.getAttribute(`max`),100)}_step(){return V7(this.getAttribute(`step`),1)}_clamp(e){return Math.max(this._min(),Math.min(e,this._max()))}_snapToStep(e){let t=this._step();if(t<=0)return e;let n=this._min();return this._clamp(n+Math.round((e-n)/t)*t)}_captureDefaults(){this._defaultsCaptured||=(this._isRange()?(this._defaultStart=this._start,this._defaultEnd=this._end):this._defaultValue=this._value,!0)}_resetSingle(){this._value=this._defaultValue??50,this._syncValue(),this._syncMirrors()}_resetRange(){this._start=this._defaultStart??25,this._end=this._defaultEnd??75,this._syncValue(),this._syncMirrors()}render(){this._captureDefaults();let e=this._min(),t=this._max(),n=this._isRange(),r=this.getAttribute(`size`),i=r===`sm`?` slider-sm`:r===`lg`?` slider-lg`:``,a=this.hasAttribute(`disabled`),o=this.hasAttribute(`readonly`);n?(this._start=this._clamp(this._start),this._end=this._clamp(this._end),this._start>this._end&&([this._start,this._end]=[this._end,this._start])):this._value=this._clamp(this._value);let s=n?[q(`button`,{type:`button`,role:`slider`,class:`slider-thumb`,"data-thumb":`start`,"aria-label":z7().minimumLabel,"aria-valuemin":e,"aria-valuemax":t,"aria-valuenow":this._start,"aria-valuetext":this._formatValue(this._start),"aria-readonly":o?`true`:void 0,disabled:a}),q(`button`,{type:`button`,role:`slider`,class:`slider-thumb`,"data-thumb":`end`,"aria-label":z7().maximumLabel,"aria-valuemin":e,"aria-valuemax":t,"aria-valuenow":this._end,"aria-valuetext":this._formatValue(this._end),"aria-readonly":o?`true`:void 0,disabled:a})]:[q(`button`,{type:`button`,role:`slider`,class:`slider-thumb`,"data-thumb":`single`,"aria-valuemin":e,"aria-valuemax":t,"aria-valuenow":this._value,"aria-valuetext":this._formatValue(this._value),"aria-readonly":o?`true`:void 0,disabled:a,"aria-label":this.getAttribute(`aria-label`)||z7().ariaLabel})],c=q(`div`,{class:`wui-slider-rail`},q(`div`,{class:`slider-track`,role:`presentation`}),q(`div`,{class:`slider-fill`,role:`presentation`}),...s),l=this.hasAttribute(`show-value`)?q(`span`,{class:`slider-value`},n?K(z7().rangeText,{start:this._formatValue(this._start),end:this._formatValue(this._end)}):this._formatValue(this._value)):!1;this.replaceChildren(q(`div`,{class:`slider${i}`},c,l)),this._rendered=!0,this._placeParts(),this._syncMirrors(),zB(this,this.querySelector(`.slider`)),this._wire()}_formatValue(e){let t=this.getAttribute(`unit`)||``;return`${this._grouping()===`indian`?yi(String(e)):String(e)}${t}`}_grouping(){let e=this.getAttribute(`grouping`)??`none`;if(!xi(e))throw Error(Si(e));return e}_placeParts(){let e=this._min(),t=this._max(),n=n=>t===e?0:(n-e)/(t-e),r=this._isRange(),i=r?n(this._start):0,a=n(r?this._end:this._value),o=H7(this,`.slider-fill`);o&&(o.style.left=`${i*100}%`,o.style.right=`${100-a*100}%`,r&&o.style.setProperty(`--wui-fill-start`,String(i)),o.style.setProperty(`--wui-fill-end`,String(a)));let s=(e,t)=>{e&&(e.style.left=`${t*100}%`,e.style.setProperty(`--wui-t`,String(t)))};r?(s(H7(this,`[data-thumb="start"]`),i),s(H7(this,`[data-thumb="end"]`),a)):s(H7(this,`.slider-thumb`),a)}_syncValue(){if(this._rendered){if(this._placeParts(),this._isRange()){let e=H7(this,`[data-thumb="start"]`),t=H7(this,`[data-thumb="end"]`);e&&(e.setAttribute(`aria-valuenow`,String(this._start)),e.setAttribute(`aria-valuetext`,this._formatValue(this._start))),t&&(t.setAttribute(`aria-valuenow`,String(this._end)),t.setAttribute(`aria-valuetext`,this._formatValue(this._end)));let n=H7(this,`.slider-value`);n&&(n.textContent=K(z7().rangeText,{start:this._formatValue(this._start),end:this._formatValue(this._end)}))}else{let e=H7(this,`.slider-thumb`);e&&(e.setAttribute(`aria-valuenow`,String(this._value)),e.setAttribute(`aria-valuetext`,this._formatValue(this._value)));let t=H7(this,`.slider-value`);t&&(t.textContent=this._formatValue(this._value))}}}_syncMirrors(){this._isRange()?this._syncRangeMirrors():this._syncSingleMirror()}_syncSingleMirror(){this.getAttribute(`name`)&&eH(this,String(this._value))}_syncRangeMirrors(){let e=this.getAttribute(`start-name`),t=this.getAttribute(`end-name`);this._mirrorRange(`start`,e,this._start),this._mirrorRange(`end`,t,this._end)}_mirrorRange(e,t,n){if(!t)return;let r=$It(this,`input[type="hidden"][data-slider-mirror="${e}"]`);r||(r=document.createElement(`input`),r.type=`hidden`,r.setAttribute(`data-slider-mirror`,e),this.appendChild(r)),r.name=t,r.value=String(n),r.disabled=this.hasAttribute(`disabled`)}_valueAtPosition(e){let t=H7(this,`.slider-track`);if(!t)return this._min();let n=t.getBoundingClientRect(),r=H7(this,`.slider-thumb`),i=r?r.offsetWidth/2:0,a=n.width-i*2,o=a>0?Math.max(0,Math.min(1,(e-n.left-i)/a)):0,s=this._min()+o*(this._max()-this._min());return this._snapToStep(s)}_nearestThumb(e){return Math.abs(e-this._start)<=Math.abs(e-this._end)?`start`:`end`}_wire(){if(this._teardown(),VB(this))return;let e=U7(this,`.slider-thumb`),t=H7(this,`.slider-track`),n=this._isRange(),r=e=>{if(VB(this))return;let t=e.target;if(!(t instanceof Element))throw Error(`Pointer event target is not an element`);let n=t.closest(`.slider-thumb`);n&&(e.preventDefault(),this._isDragging=!0,this._dragThumb=n.getAttribute(`data-thumb`),document.addEventListener(`pointermove`,i),document.addEventListener(`pointerup`,a),document.addEventListener(`pointercancel`,a))},i=e=>{if(!this._isDragging)return;e.preventDefault();let t=this._valueAtPosition(e.clientX);if(this._dragThumb===`single`)this._value=this._clamp(t),this._syncValue(),this.dispatchEvent(new CustomEvent(`slide`,{detail:{value:this._value}}));else if(this._dragThumb===`start`){let e=Math.min(t,this._end);this._start=this._clamp(e),this._syncValue(),this.dispatchEvent(new CustomEvent(`slide`,{detail:{start:this._start,end:this._end}}))}else if(this._dragThumb===`end`){let e=Math.max(t,this._start);this._end=this._clamp(e),this._syncValue(),this.dispatchEvent(new CustomEvent(`slide`,{detail:{start:this._start,end:this._end}}))}},a=()=>{this._isDragging&&(this._isDragging=!1,this._dragThumb=null,document.removeEventListener(`pointermove`,i),document.removeEventListener(`pointerup`,a),document.removeEventListener(`pointercancel`,a),this._syncMirrors(),this.dispatchEvent(new Event(`change`,{bubbles:!0})))},o=e=>{if(!(e.currentTarget instanceof HTMLElement))throw Error(`Keyboard event target is not an element`);let t=e.currentTarget;if(VB(this))return;let n=this._step(),r=n*10,i=null,a=t.getAttribute(`data-thumb`),o=a===`end`?this._end:a===`start`?this._start:this._value;e.key===`ArrowLeft`||e.key===`ArrowDown`?(e.preventDefault(),i=o-n):e.key===`ArrowRight`||e.key===`ArrowUp`?(e.preventDefault(),i=o+n):e.key===`PageDown`?(e.preventDefault(),i=o-r):e.key===`PageUp`?(e.preventDefault(),i=o+r):e.key===`Home`?(e.preventDefault(),i=this._min()):e.key===`End`&&(e.preventDefault(),i=this._max()),i!=null&&(i=this._clamp(i),a===`single`?this._value=i:a===`start`?this._start=Math.min(i,this._end):a===`end`&&(this._end=Math.max(i,this._start)),this._syncValue(),this._syncMirrors(),this.dispatchEvent(new Event(`change`,{bubbles:!0})))},s=e=>{if(VB(this))return;let t=this._valueAtPosition(e.clientX);n?this._nearestThumb(t)===`start`?this._start=Math.min(this._clamp(t),this._end):this._end=Math.max(this._clamp(t),this._start):this._value=this._clamp(t),this._syncValue(),this._syncMirrors(),this.dispatchEvent(new Event(`change`,{bubbles:!0}))};this._pointerDownListener=r,this._pointerMoveListener=i,this._pointerUpListener=a,this._thumbKeyListener=o,this._trackClickListener=s,e.forEach(e=>{e.addEventListener(`pointerdown`,r),e.addEventListener(`keydown`,o)}),t?.addEventListener(`click`,s)}_teardown(){for(let e of U7(this,`.slider-thumb`))this._pointerDownListener&&e.removeEventListener(`pointerdown`,this._pointerDownListener),this._thumbKeyListener&&e.removeEventListener(`keydown`,this._thumbKeyListener);this._pointerMoveListener&&document.removeEventListener(`pointermove`,this._pointerMoveListener),this._pointerUpListener&&(document.removeEventListener(`pointerup`,this._pointerUpListener),document.removeEventListener(`pointercancel`,this._pointerUpListener)),this._isDragging=!1,this._dragThumb=null;let e=H7(this,`.slider-track`);e&&this._trackClickListener&&e.removeEventListener(`click`,this._trackClickListener)}disconnectedCallback(){this._teardown()}},V7=(e,t)=>{let n=Number.parseFloat(String(e));return Number.isFinite(n)?n:t},H7=(e,t)=>{let n=e.querySelector(t);return n instanceof HTMLElement?n:null},$It=(e,t)=>{let n=e.querySelector(t);return n instanceof HTMLInputElement?n:null},U7=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement)})),tLt=P({WuiSlider:()=>B7}),nLt=M((()=>{Rc(),eLt(),Ic(`wui-slider`,B7)})),rLt=[`sm`,`md`,`lg`],iLt=[`none`,`indian`],aLt=()=>Promise.resolve().then(()=>(nLt(),tLt)),oLt=(e,t)=>P8e(e,typeof t==`number`||typeof t==`string`?t:void 0);function sLt(e){let{marker:t,props:n}=U(`AppSlider`,e),r=Vs(`slider`,Fs),{ref:i,value:a,start:o,end:s,range:c=!1,onChange:l,label:u,required:d=!1,optional:m=!1,helperText:h,error:g,name:v,startName:y,endName:b,min:C=0,max:w=100,step:T=1,disabled:E,readOnly:D=!1,loading:O=!1,defaultValue:k,defaultStart:A,defaultEnd:j,size:M,showValue:N,unit:P,grouping:F=`none`,id:I,ariaLabel:L,className:R=``,fieldClassName:z=``,help:B,helpLabel:V=r.helpLabel,optionalLabel:H=r.optionalLabel,...ee}=n,te=Oc(v),ne=Oc(y),re=Oc(b),ie=g??te??ne??re;G(`AppSlider`,ee),W(`AppSlider`,`size`,M,rLt),W(`AppSlider`,`grouping`,F,iLt);let ae=Fc(`wui-slider`,aLt),oe=p(),se=I||oe,ce=c,{setRef:le,innerRef:ue}=pV({ready:ae,ref:e=>{typeof i==`function`?i(e):i&&(i.current=e)},value:ce?void 0:a,onChange:ce?t=>{e.range&&e.onChange?.(t)}:t=>{e.range||e.onChange?.(t)},readValue:ce?N8e:void 0,writeValue:ce?void 0:oLt}),de=_(!1);f(()=>{if(!ce)return;let e=ue.current;if(!e)return;let t=o===void 0?de.current?void 0:A:o,n=s===void 0?de.current?void 0:j:s;de.current=!0,t!==void 0&&t>e.end?(n!==void 0&&e.end!==n&&(e.end=n),t!==void 0&&e.start!==t&&(e.start=t)):(t!==void 0&&e.start!==t&&(e.start=t),n!==void 0&&e.end!==n&&(e.end=n))},[o,s,A,j,ce,ue]);let fe=!u&&!ie&&!h,pe=ie?`${se}-error`:void 0,me=h?`${se}-hint`:void 0,he=x(`wui-slider`,{ref:le,id:se,name:v||void 0,"start-name":y||void 0,"end-name":b||void 0,min:C,max:w,step:T,size:M||void 0,value:(a??k)!=null&&!ce?String(a??k):void 0,"aria-label":L||(typeof u==`string`?u:void 0),"aria-describedby":pe||me,"aria-invalid":ie?`true`:void 0,disabled:E?``:void 0,readonly:D?``:void 0,loading:O?``:void 0,required:d?``:void 0,range:ce?``:void 0,"show-value":N?``:void 0,unit:P||void 0,grouping:F===`indian`?F:void 0,className:R||void 0,...fe?t:null,...ee});return fe?he:S(`div`,{...t,className:`field${z?` ${z}`:``}`,children:[u&&S(`label`,{className:`label`,htmlFor:se,children:[u,m&&!d&&x(`span`,{className:`label-optional`,children:` ${H}`}),d&&x(Uc,{}),B&&x(Hc,{label:V,children:B})]}),he,x(Ac,{error:ie,hint:h,errorId:pe,hintId:me})]})}function cLt(e,t,n){return e<t+q7?-Math.ceil(J7*Math.min(1,(t+q7-e)/q7)):e>n-q7?Math.ceil(J7*Math.min(1,(e-(n-q7))/q7)):0}function lLt(e){for(let t=e.parentElement;t&&t!==document.body&&t!==document.documentElement;t=t.parentElement){let e=getComputedStyle(t),n=/(auto|scroll)/.test(e.overflowY)&&t.scrollHeight>t.clientHeight,r=/(auto|scroll)/.test(e.overflowX)&&t.scrollWidth>t.clientWidth;if(n||r)return t}return null}var W7,G7,K7,uLt,dLt,fLt,pLt,q7,J7,Y7,mLt=M((()=>{Rc(),rH(),$i(),xn(),ppe(),W7=()=>pn(`sortable`,fpe),G7=new Set,K7=`.wui-sortable-handle`,uLt=`a[href],button,input,select,textarea,label,summary,[contenteditable='true'],[role='button'],[role='link']`,dLt=4,fLt=8,pLt=250,q7=48,J7=18,Y7=class extends Lc{_drag;_kb;_moving;controlled;_observer;_onDragStart;_onDocTouchMove;_onSelectStart;static get observedAttributes(){return[`name`,`disabled`]}constructor(){super(),this._drag=null,this._kb=null,this._moving=!1,this.controlled=!1,this._observer=null,this._onPointerDown=this._onPointerDown.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onFocusOut=this._onFocusOut.bind(this),this._onDragStart=e=>e.preventDefault(),this._onDocMove=this._onDocMove.bind(this),this._onDocUp=this._onDocUp.bind(this),this._onDocCancel=this._onDocCancel.bind(this),this._onDocKey=this._onDocKey.bind(this),this._onDocTouchMove=e=>{this._drag?.started&&e.preventDefault()},this._onSelectStart=e=>e.preventDefault(),this._scrollTick=this._scrollTick.bind(this)}connectedCallback(){G7.add(this),this.addEventListener(`pointerdown`,this._onPointerDown),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`dragstart`,this._onDragStart),this._observer=new MutationObserver(()=>this._syncMirrors()),this._observer.observe(this,{childList:!0}),this._syncMirrors()}disconnectedCallback(){G7.delete(this),this.removeEventListener(`pointerdown`,this._onPointerDown),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`dragstart`,this._onDragStart),this._observer?.disconnect(),this._observer=null,this._abort()}attributeChangedCallback(e){e===`disabled`&&this._abort(),this.isConnected&&this._syncMirrors()}get order(){return this._items().map(e=>e.getAttribute(`data-id`))}set order(e){if(this._drag?.started||this._kb)return;let t=this._items(),n=new Map(t.map(e=>[e.getAttribute(`data-id`),e])),r=[];for(let t of e??[]){let e=n.get(String(t));e&&!r.includes(e)&&r.push(e)}[...r,...t.filter(e=>!r.includes(e))].forEach((e,t)=>{let n=this._items()[t]??null;n!==e&&this.insertBefore(e,n)}),this._syncMirrors()}_items(){return[...this.querySelectorAll(`:scope > [data-id]`)].filter(e=>e instanceof HTMLElement)}_itemFrom(e){let t=e;for(;t&&t.parentElement!==this;)t=t.parentElement;return t instanceof HTMLElement&&t.hasAttribute(`data-id`)?t:null}_itemDisabled(e){return e.hasAttribute(`data-disabled`)}_horizontal(){return this.getAttribute(`orientation`)===`horizontal`}_syncMirrors(){tH(this,this.order.map(e=>e??``))}_insertAt(e,t){let n=this._items();if(n.indexOf(e)===t)return;let r=n.filter(t=>t!==e),i=r[t]??null;i?this.insertBefore(e,i):r.length>0?r[r.length-1]?.after(e):this.appendChild(e)}_indexFor(e,t,n){let r=this._items().filter(t=>t!==e),i=this._horizontal(),a=Zi(this);for(let[e,o]of r.entries()){let r=o.getBoundingClientRect(),s=n<=r.bottom&&(a?t>r.left+r.width/2:t<r.left+r.width/2);if(i?n<r.top||s:n<r.top+r.height/2)return e}return r.length}_peers(){let e=this.getAttribute(`group`);return[...G7].filter(t=>t===this||e&&t.getAttribute(`group`)===e&&!t.hasAttribute(`disabled`))}_labelOf(e){return e.getAttribute(`data-label`)||(e.textContent??``).replace(/\s+/g,` `).trim()||e.getAttribute(`data-id`)}_announce(e){let t=this.querySelector(`:scope > .wui-sortable-live`);t||(t=document.createElement(`div`),t.className=`wui-sortable-live`,t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-atomic`,`true`),this.appendChild(t)),t.textContent=e}_position(e){let t=this._items();return K(W7().positionText,{position:t.indexOf(e)+1,total:t.length})}_onPointerDown(e){if(this._drag||this._kb||this.hasAttribute(`disabled`)||e.pointerType===`mouse`&&e.button!==0)return;let t=e.target;if(!(t instanceof Element))return;let n=this._itemFrom(t);if(!n||this._itemDisabled(n))return;let r=n.querySelector(`:scope > ${K7}`),i=!!r&&r.contains(t);if(this.hasAttribute(`handle`)&&!i)return;if(!i){let e=t.closest?.(uLt);if(e&&e!==n&&n.contains(e))return}let a=e.pointerType===`touch`&&!i,o={item:n,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,x:e.clientX,y:e.clientY,slop:e.pointerType===`touch`?fLt:dLt,ready:!a,started:!1,timer:null,raf:0,list:this,ghost:null,offsetX:0,offsetY:0,fromIndex:0};this._drag=o,a&&(o.timer=setTimeout(()=>{o.timer=null,o.ready=!0,this._begin()},pLt)),document.addEventListener(`pointermove`,this._onDocMove),document.addEventListener(`pointerup`,this._onDocUp),document.addEventListener(`pointercancel`,this._onDocCancel),document.addEventListener(`keydown`,this._onDocKey,!0),document.addEventListener(`touchmove`,this._onDocTouchMove,{passive:!1})}_onDocMove(e){let t=this._drag;if(t&&e.pointerId===t.pointerId){if(t.x=e.clientX,t.y=e.clientY,!t.started){let e=Math.hypot(t.x-t.startX,t.y-t.startY);if(!t.ready){e>t.slop&&this._finish(!0);return}if(e<t.slop||(this._begin(),!this._drag?.started))return}e.preventDefault?.(),this._moveGhost(),this._update()}}_onDocUp(e){this._drag&&e.pointerId===this._drag.pointerId&&this._finish(!1)}_onDocCancel(e){this._drag&&e.pointerId===this._drag.pointerId&&this._finish(!0)}_onDocKey(e){e.key===`Escape`&&this._drag&&(e.preventDefault(),e.stopPropagation(),this._finish(!0))}_begin(){let e=this._drag;if(!e||e.started)return;e.started=!0;let t=e.item.getBoundingClientRect();e.offsetX=e.startX-t.left,e.offsetY=e.startY-t.top,e.fromIndex=this._items().indexOf(e.item);let n=e.item.cloneNode(!0);if(!(n instanceof HTMLElement))throw Error(`drag ghost is not an HTML element`);for(let e of[n,...n.querySelectorAll(`[id],[data-id]`)])e.removeAttribute(`id`),e.removeAttribute(`data-id`);n.classList.add(`wui-sortable-ghost`),n.setAttribute(`aria-hidden`,`true`),n.inert=!0,n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,e.ghost=n,e.item.classList.add(`wui-sortable-dragging`),document.body.appendChild(n),document.documentElement.classList.add(`wui-sortable-active`),document.addEventListener(`selectstart`,this._onSelectStart),this._moveGhost(),e.raf=requestAnimationFrame(this._scrollTick),this._emit(this,`wui-sortable:start`,{id:e.item.getAttribute(`data-id`)})}_moveGhost(){let e=this._drag;e?.ghost&&(e.ghost.style.transform=`translate(${e.x-e.offsetX}px, ${e.y-e.offsetY}px)`)}_update(){let e=this._drag;if(!e?.started)return;let t=e.list;for(let n of this._peers()){let r=n.getBoundingClientRect();if(e.x>=r.left&&e.x<=r.right&&e.y>=r.top&&e.y<=r.bottom){t=n;break}}let n=t._indexFor(e.item,e.x,e.y);(t!==e.list||n!==t._items().indexOf(e.item))&&t._insertAt(e.item,n),e.list=t}_scrollTick(){let e=this._drag;if(!e?.started)return;let t=lLt(e.list),n=t?t.getBoundingClientRect():null,r=Math.max(n?.top??0,0),i=Math.min(n?.bottom??window.innerHeight,window.innerHeight),a=Math.max(n?.left??0,0),o=Math.min(n?.right??window.innerWidth,window.innerWidth),s=cLt(e.y,r,i),c=cLt(e.x,a,o);(c||s)&&(t?(t.scrollTop+=s,t.scrollLeft+=c):window.scrollBy(c,s),this._update()),e.raf=requestAnimationFrame(this._scrollTick)}_finish(e){let t=this._drag;if(!t||(this._drag=null,clearTimeout(t.timer??void 0),cancelAnimationFrame(t.raf),document.removeEventListener(`pointermove`,this._onDocMove),document.removeEventListener(`pointerup`,this._onDocUp),document.removeEventListener(`pointercancel`,this._onDocCancel),document.removeEventListener(`keydown`,this._onDocKey,!0),document.removeEventListener(`touchmove`,this._onDocTouchMove),document.removeEventListener(`selectstart`,this._onSelectStart),!t.started))return;t.ghost?.remove(),document.documentElement.classList.remove(`wui-sortable-active`),t.item.classList.remove(`wui-sortable-dragging`);let n=t.item.getAttribute(`data-id`);e?(this._insertAt(t.item,t.fromIndex),this._syncMirrors(),t.list!==this&&t.list._syncMirrors()):this._settle(t.item,this,t.fromIndex,t.list),this._emit(this,`wui-sortable:end`,{id:n,cancelled:e})}_settle(e,t,n,r){let i=r._items().indexOf(e);if(r===t&&i===n)return;let a=e.getAttribute(`data-id`),o=r.order,s=r!==t,c=t.order;s&&(t.controlled||r.controlled)&&t._insertAt(e,n),t._syncMirrors(),r._syncMirrors();let l=r._labelOf(e),u=s&&r.getAttribute(`aria-label`)?K(W7().destinationText,{destination:String(r.getAttribute(`aria-label`))}):``,d={id:a,fromIndex:n,toIndex:i,from:t,to:r};s&&this._emit(t,`wui-sortable:change`,{...d,ids:c}),this._emit(r,`wui-sortable:change`,{...d,ids:o}),r._announce(K(W7().movedPositionText,{label:String(l),destination:u,position:i+1,total:o.length}))}_emit(e,t,n){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))}_abort(){this._drag&&this._finish(!0),this._kb&&this._dropKeyboard(!0)}_onKeyDown(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(K7),r=n instanceof HTMLElement?n:null,i=r&&r.parentElement?.parentElement===this?r.parentElement:null;if(!r||!i||this._itemDisabled(i)||this._drag)return;let a=Qi(e.key,Zi(this));if(!this._kb){if(a!==` `&&a!==`Enter`)return;e.preventDefault(),this._liftKeyboard(i,r)}else if(this._kb.item===i){if(a===` `||a===`Enter`)e.preventDefault(),this._dropKeyboard(!1);else if(a===`Escape`)e.preventDefault(),e.stopPropagation(),this._dropKeyboard(!0);else if([`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`,`Home`,`End`].includes(a)){e.preventDefault();let t=this._items(),n=t.indexOf(i),o=t.length-1,s=a===`Home`?0:a===`End`?o:Math.max(0,Math.min(o,n+(a===`ArrowUp`||a===`ArrowLeft`?-1:1)));if(s===n){let e=W7();this._announce(K(n===0?e.alreadyFirstText:e.alreadyLastText,{label:String(this._labelOf(i)),position:this._position(i)}));return}this._moveFocused(()=>this._insertAt(i,s),r),this._announce(K(W7().movedText,{label:String(this._labelOf(i)),position:this._position(i)}))}}}_onFocusOut(e){if(!this._kb||this._moving)return;let t=e.relatedTarget;if(t&&!(t instanceof Node))throw Error(`focus moved to a non-node target`);t&&this._kb.handle.contains(t)||this._dropKeyboard(!1)}_liftKeyboard(e,t){this._kb={item:e,handle:t,fromIndex:this._items().indexOf(e)},t.setAttribute(`aria-pressed`,`true`),this._announce(K(W7().liftedText,{label:String(this._labelOf(e)),position:this._position(e)}))}_dropKeyboard(e){let t=this._kb;t&&(this._kb=null,t.handle.removeAttribute(`aria-pressed`),e?(this._moveFocused(()=>this._insertAt(t.item,t.fromIndex),t.handle),this._announce(K(W7().reorderCancelledText,{label:String(this._labelOf(t.item)),position:this._position(t.item)}))):this._items().indexOf(t.item)===t.fromIndex?this._announce(K(W7().droppedText,{label:String(this._labelOf(t.item)),position:this._position(t.item)})):this._settle(t.item,this,t.fromIndex,this))}_moveFocused(e,t){this._moving=!0;let n=this.contains(document.activeElement);e(),n&&document.activeElement!==t&&t.focus(),this._moving=!1}}})),hLt=P({WuiSortable:()=>Y7}),gLt=M((()=>{Rc(),mLt(),Ic(`wui-sortable`,Y7)})),_Lt=[`vertical`,`horizontal`],vLt=[`always`,`hover`],yLt=()=>Promise.resolve().then(()=>(gLt(),hLt)),bLt=e=>`order`in e,xLt=(e,t)=>{if(!bLt(e))throw TypeError(`<AppSortableList> wrote its order before <wui-sortable> upgraded.`);e.controlled=!0;let n=e.order;(n.length!==t.length||t.some((e,t)=>e!==n[t]))&&(e.order=t)};function SLt({ref:e,...t}){let n=Fc(`wui-sortable`,yLt),{marker:r,props:i}=U(`AppSortableList`,t),a=Vs(`sortableList`,Eme),{items:o=[],onReorder:s,ariaLabel:c,handle:l=!1,group:u,name:d,disabled:p=!1,orientation:m=`vertical`,handleDisplay:h=`always`,bordered:g=!0,className:v=``,reorderLabel:y=a.reorderLabel,...b}=i;G(`AppSortableList`,b),W(`AppSortableList`,`orientation`,m,_Lt),W(`AppSortableList`,`handleDisplay`,h,vLt);let C=h===`hover`,w=o.map(e=>e.id),T=_(w);f(()=>{T.current=w});let{setRef:E,innerRef:D}=pV({ready:n,ref:e,value:w,writeValue:xLt,on:{"wui-sortable:change":e=>{if(e.target!==e.currentTarget)return;let t=e.detail;s?.(t.ids,t),requestAnimationFrame(()=>{let e=D.current;e&&xLt(e,T.current)})}}});return x(`wui-sortable`,{ref:E,role:`list`,"aria-label":c,name:d||void 0,group:u||void 0,orientation:m===`horizontal`?`horizontal`:void 0,"handle-display":C?`hover`:void 0,handle:l||C?``:void 0,disabled:p?``:void 0,borderless:g?void 0:``,className:`wui-sortable${v?` ${v}`:``}`,...r,...b,children:o.map(e=>S(`div`,{role:`listitem`,className:`wui-sortable-item`,"data-id":e.id,"data-label":e.label,"data-disabled":e.disabled?``:void 0,children:[x(`button`,{type:`button`,className:`wui-sortable-handle`,"aria-label":K(y,{name:e.label}),disabled:p||e.disabled?!0:void 0,children:x(J,{name:`menu`,size:18})}),x(`div`,{className:`wui-sortable-body`,children:e.content??e.label})]},e.id))})}var CLt=[`bar`,`ring`,`dots`],X7={sm:44,md:56,lg:72};function wLt(e){let{marker:t,props:n}=U(`AppSplash`,e),r=Vs(`splash`,kme),{logo:i,initials:a,description:o,subtext:s,variant:c=`bar`,size:l=`md`,label:u=r.label,className:d=``,...f}=n;G(`AppSplash`,f),W(`AppSplash`,`variant`,c,CLt),W(`AppSplash`,`size`,typeof l==`string`?l:null,Object.keys(X7));let{style:p,...m}=f,h={"--wui-splash-size":`${typeof l==`number`?l:X7[l]??X7.md}px`},g=c===`ring`?x(`span`,{className:`splash-ring`,"aria-hidden":`true`}):c===`dots`?S(`span`,{className:`splash-dots`,"aria-hidden":`true`,children:[x(`i`,{}),x(`i`,{}),x(`i`,{})]}):x(`span`,{className:`splash-bar`,"aria-hidden":`true`});return x(`div`,{className:`splash${d?` ${d}`:``}`,role:`status`,"aria-live":`polite`,"aria-label":u,style:{...h,...p},...t,...m,children:S(`div`,{className:`splash-inner`,children:[i||a&&x(`span`,{className:`splash-mark`,children:a}),g,o&&x(`span`,{className:`splash-text`,children:o}),s&&x(`span`,{className:`splash-subtext`,children:s})]})})}var TLt=[`sm`,`md`,`lg`],ELt=[`button`,`submit`,`reset`],DLt={sm:14,md:16,lg:20},OLt={sm:`btn-sm`,md:``,lg:`btn-lg`};function kLt(e){let{marker:t,props:n}=U(`AppSplitButton`,e),r=Vs(`splitButton`,Ame),{label:i,items:a=[],onClick:o,href:s,type:c=`button`,tone:l=`primary`,variant:u=`solid`,size:d=`md`,disabled:f=!1,loading:p=!1,leftIcon:m,shortcut:h,menuLabel:g=r.menuLabel,align:_=`end`,linkComponent:v,className:y=``,...b}=n;G(`AppSplitButton`,b),W(`AppSplitButton`,`size`,d,TLt),W(`AppSplitButton`,`tone`,l,Hs),W(`AppSplitButton`,`variant`,u,Us),W(`AppSplitButton`,`type`,c,ELt);let C=[`btn`,Ec(l,u),OLt[d]??``,`wui-split-toggle`].filter(Boolean).join(` `),w=x(J,{name:`chevron-down`,size:DLt[d]??DLt.md}),T=f||p;return S(`div`,{role:`group`,"aria-label":i,className:[`wui-split-button`,y].filter(Boolean).join(` `),...t,...b,children:[x(nl,{tone:l,variant:u,size:d,type:c,href:s,onClick:o,disabled:f,loading:p,leftIcon:m,shortcut:h,children:i}),T?x(`div`,{className:`wui-split-menu`,children:x(`button`,{type:`button`,className:C,disabled:!0,"aria-label":g,children:w})}):x(gl,{className:`wui-split-menu`,trigger:w,toggleClassName:C,label:g,ariaLabel:g,align:_,items:a,linkComponent:v})]})}var Z7={sm:576,md:768,lg:992,xl:1200,xxl:1400},ALt=Object.keys(Z7),jLt=[3,4,5,6,7,8],MLt=Array.from({length:6},(e,t)=>`skeleton-placeholder-${t}`),NLt=`.wui-split-items > .wui-split-item > .wui-split-link`,PLt=(e,t)=>e!=null&&String(e)===String(t),FLt=e=>{let t=window.matchMedia?.(`(min-width: ${Z7[e]}px)`);return!t||t.matches},ILt=(e,t)=>typeof e==`string`||typeof e==`number`?String(e):t;function LLt(e){let{marker:t,props:n}=U(`AppSplitView`,e),r=Vs(`splitView`,jme),i=Vs(`kbd`,ime),{items:a=[],currentKey:o,onSelect:s,selectable:c=!1,selectedKeys:l,onToggle:u,onToggleAll:d,bulkActions:p,header:m,chips:h,pane:v,paneHeader:y,pager:C=!0,shortcuts:w,shortcutsEnabled:T=!0,empty:E=r.empty,loading:D=!1,listWidth:O=5,stackBelow:k=`xl`,linkComponent:A,loadingLabel:j=r.loadingLabel,itemsLabel:M=r.itemsLabel,selectItemLabel:N=r.selectItemLabel,selectAllLabel:P=r.selectAllLabel,readingPaneLabel:F=r.readingPaneLabel,previousItemLabel:I=r.previousItemLabel,nextItemLabel:L=r.nextItemLabel,openLabel:R=r.openLabel,moveLabel:z=r.moveLabel,selectedLabel:B=r.selectedLabel,untitledItemLabel:V=r.untitledItemLabel,className:H=``,...ee}=n,te=g(()=>new Set(l),[l]);G(`AppSplitView`,ee),W(`AppSplitView`,`stackBelow`,k,ALt),W(`AppSplitView`,`listWidth`,O,jLt);let ne=Z7[k]?k:`xl`,re=jLt.includes(O)?O:5,ie=_(null),ae=o!=null,oe=c?te?.size??0:0,se=oe>0,ce=c&&a.length>0&&a.every(e=>te?.has(e.key)),le=c&&!ce&&a.some(e=>te?.has(e.key)),ue=e=>{e&&(e.indeterminate=le)},de=_(o);f(()=>{de.current!==o&&(de.current=o,o!=null&&ie.current?.querySelector(`.wui-split-link[aria-current="true"]`)?.scrollIntoView?.({block:`nearest`}))},[o]);let fe=(e,t)=>{t.button>0||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey||s&&(!e.href||FLt(ne))&&(t.preventDefault(),s(e.key))},pe=e=>{let t=[...ie.current?.querySelectorAll(NLt)??[]];t[t.findIndex(e=>e.getAttribute(`aria-current`)===`true`)+e]?.click()},me=[`wui-split-view`,ae?`wui-split-reading`:``,H].filter(Boolean).join(` `),he=c?[...vo(),Nue()]:vo(),ge=new Set([`J`,`K`,`Enter`,`?`,...c?[`X`]:[]]),_e=[...he,...(w??[]).filter(e=>!ge.has(po(e.key))).map(e=>({key:e.key,label:e.label,onPress:()=>e.onPress?.(o)}))],ve=a.findIndex(e=>PLt(o,e.key)),ye=C&&!D&&a.length>0?x(Qxt,{"data-split-pager":``,index:ve>=0?ve+1:void 0,total:a.length,onPrev:()=>pe(-1),onNext:()=>pe(1),prevLabel:I,nextLabel:L}):null,be=e=>{let t=PLt(o,e.key),n=c&&!!te?.has(e.key),r=e.badge!==void 0&&e.badge!==null&&e.badge!==``,i=gs(A,{href:e.href}),a=S(b,{children:[S(`span`,{className:`wui-split-item-main`,children:[x(`span`,{className:`wui-split-item-title`,children:e.title}),e.meta!==void 0&&e.meta!==null&&x(`span`,{className:`wui-split-item-meta`,children:e.meta})]}),(e.trailing||r)&&S(`span`,{className:`wui-split-item-end`,children:[e.trailing,r&&x(`span`,{className:`wui-split-badge`,children:e.badge})]})]});return S(`li`,{className:[`wui-split-item`,t?`is-active`:``,n?`is-selected`:``].filter(Boolean).join(` `),"data-key":e.key,children:[c&&x(`input`,{type:`checkbox`,className:`form-check-input wui-split-check`,checked:n,onChange:()=>u?.(e.key),"aria-label":K(N,{title:ILt(e.title,V)})}),e.href?x(_s,{link:i,className:`wui-split-link`,"aria-current":t?`true`:void 0,onClick:t=>fe(e,t),children:a}):x(`button`,{type:`button`,className:`wui-split-link`,"aria-current":t?`true`:void 0,onClick:t=>fe(e,t),children:a})]},e.key)},xe;return xe=D?S(`div`,{className:`wui-split-items`,"aria-busy":`true`,tabIndex:0,children:[x(`span`,{className:`visually-hidden`,children:j}),MLt.map(e=>S(`div`,{className:`wui-split-skeleton`,"aria-hidden":`true`,children:[x(`span`,{className:`skeleton wui-split-skeleton-title`}),x(`span`,{className:`skeleton wui-split-skeleton-meta`})]},e))]}):a.length?x(`ul`,{className:`wui-split-items`,"aria-label":M,children:a.map(be)}):x(`div`,{className:`wui-split-empty`,children:E}),S(`div`,{ref:ie,className:me,"data-stack-below":ne,"data-list-width":re,"data-shortcut-scope":T?``:void 0,...t,...ee,children:[S(`div`,{className:`wui-split-list`,children:[(m||c)&&S(`div`,{className:`wui-split-head`,children:[c&&x(`input`,{ref:ue,type:`checkbox`,className:`form-check-input wui-split-all`,checked:ce,onChange:e=>d?.(e.target.checked),"aria-label":P}),x(`div`,{className:`wui-split-head-main`,hidden:se,children:m}),c&&S(`div`,{className:`wui-split-head-bulk`,hidden:!se,children:[x(`span`,{className:`wui-split-count`,"aria-live":`polite`,children:K(B,{count:oe})}),p]})]}),h&&x(`div`,{className:`wui-split-chips`,children:h}),xe,T&&S(`div`,{className:`wui-split-legend`,children:[S(`span`,{children:[x(`kbd`,{className:`wui-kbd`,children:`J`}),` `,x(`kbd`,{className:`wui-kbd`,children:`K`}),` ${z}`]}),S(`span`,{children:[x(`kbd`,{className:`wui-kbd`,children:i.enterLabel}),` ${R}`]}),x(UIt,{items:NLt,shortcuts:_e})]})]}),S(`div`,{className:`wui-split-pane`,children:[(y||ye)&&S(`div`,{className:`wui-split-pane-head`,children:[y,ye]}),x(`section`,{className:`wui-split-pane-body`,"aria-label":F,tabIndex:0,children:v})]})]})}function RLt(e){let{marker:t,props:n}=U(`AppStatusBadge`,e),{label:r,tone:i=`neutral`,bordered:a=!1,className:o=``,tooltip:s,tooltipPlacement:c,...l}=n;return G(`AppStatusBadge`,l),W(`AppStatusBadge`,`tone`,i,Hs),r==null||r===``?dh():ts(x(`span`,{className:`status-label ${i}${a?` wui-bordered`:``}${o?` ${o}`:``}`,...t,...l,children:r}),s,c)}var zLt=[`steps`,`journey`],BLt=[`horizontal`,`vertical`],VLt=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],HLt=[`sm`,`md`,`lg`],ULt=Hs.filter(e=>e===`primary`||e===`info`),WLt={sm:12,md:14,lg:18},GLt=[`done`,`active`,`pending`,`error`];function KLt(e){let{marker:t,props:n}=U(`AppStepper`,e),r=Vs(`stepper`,Mme),{steps:i=[],variant:a=`steps`,orientation:o=`horizontal`,iconVariant:s,size:c=`md`,iconSize:l,active:u,onStepClick:d,label:f=r.label,stepLabel:p=r.stepLabel,tone:m=`primary`,linkComponent:h,className:g=``,..._}=n;G(`AppStepper`,_),W(`AppStepper`,`variant`,a,zLt),W(`AppStepper`,`orientation`,o,BLt),W(`AppStepper`,`iconVariant`,s,VLt),W(`AppStepper`,`size`,c,HLt),W(`AppStepper`,`tone`,m,ULt);let v=l!==void 0&&l>0?l:WLt[c];for(let e of i)W(`AppStepper`,`steps[].status`,e.status,GLt);let y=a===`journey`,C=[`stepper`,y&&`stepper-journey`,o===`vertical`&&`stepper-vertical`,c!==`md`&&HLt.includes(c)&&`wui-step-size-${c}`,m!==`primary`&&ULt.includes(m)&&`wui-step-tone-${m}`,g].filter(Boolean).join(` `),w=Bue(i,{statusOf:e=>{let t=i[e];if(!t)throw Error(`AppStepper: no step at index ${e}`);return t.status||zue(e,u)},journey:y,connectors:!0});return x(`nav`,{className:C,"aria-label":f,...t,..._,children:w.map(e=>{let t=e.index,n=i[t];if(!n)throw Error(`AppStepper: no step at index ${t}`);let r=e.className,a=e.glyph.number;e.glyph.icon&&(a=x(J,{name:e.glyph.icon,size:v,variant:s}));let o=S(b,{children:[x(`span`,{className:`step-circle`,children:a}),y?S(`span`,{className:`step-text`,children:[x(`span`,{className:`step-index`,children:K(p,{number:t+1})}),x(`span`,{className:`step-label`,children:n.label}),n.description?x(`span`,{className:`step-desc`,children:n.description}):null]}):S(b,{children:[x(`span`,{className:`step-label`,children:n.label}),n.description?x(`span`,{className:`step-desc`,children:n.description}):null]})]}),c=e.current?`step`:void 0,l=n.key??`${n.label}-${t}`,u;if(d)u=x(`button`,{type:`button`,className:r,"aria-current":c,onClick:()=>d(n,t),children:o},l);else if(n.href){let e=gs(h,{href:n.href});u=x(_s,{link:e,className:r,"aria-current":c,children:o},l)}else u=x(`div`,{className:r,"aria-current":c,children:o},l);return e.line?[u,x(`span`,{className:`step-line${e.line.done?` done`:``}`,"aria-hidden":`true`},`${l}-line`)]:u})})}function qLt(e){let{marker:t,props:n}=U(`AppTableToolbar`,e),r=Vs(`tableToolbar`,Fme),{filters:i,actions:a,selectedCount:o=0,bulkActions:s,onClearSelection:c,totalCount:l,pageCount:u,onSelectAllMatching:d,allMatchingSelected:f=!1,selectAllMatchingLabel:p=r.selectAllMatchingLabel,selectedLabel:m=r.selectedLabel,allSelectedLabel:h=r.allSelectedLabel,clearLabel:g=r.clearLabel,clearSelectionLabel:_=r.clearSelectionLabel,className:v=``,...y}=n;G(`AppTableToolbar`,y);let b=o>0,C=typeof d==`function`&&typeof l==`number`,w=C&&f,T=e=>Nn(e,{decimals:0}),E=C&&!w&&b&&o>=(u??1)&&l>(u??o);return S(`div`,{className:`wui-table-toolbar${v?` ${v}`:``}`,...t,...y,children:[S(`div`,{className:`wui-table-toolbar-main`,hidden:b,children:[x(`div`,{className:`wui-table-toolbar-filters`,children:i}),x(`div`,{className:`wui-table-toolbar-actions`,children:a})]}),S(`div`,{className:`wui-table-toolbar-bulk`,hidden:!b,children:[x(`span`,{className:`wui-table-toolbar-count`,"aria-live":`polite`,children:K(w?h:m,{count:T(w?l:o)})}),C&&x(`button`,{type:`button`,className:`btn btn-link btn-sm wui-table-toolbar-all`,hidden:!E,onClick:d,children:K(p,{count:T(l)})}),s,c&&x(nl,{variant:`ghost`,size:`sm`,className:`wui-table-toolbar-clear`,onClick:c,children:w?_:g})]})]})}function Q7(e){return rue.some(t=>t===e)}var $7={light:`sun`,dark:`moon`,auto:`monitor`},JLt=[`icon`,`segmented`],e9={sm:16,md:20,lg:24,xl:28};function YLt(e){let{marker:t,props:n}=U(`AppThemeToggle`,e),r=Vs(`themeToggle`,Rme),{variant:i=`icon`,effect:a=aue,includeAuto:o=!0,storageKey:s=ao,duration:c,label:l=r.label,lightLabel:d=r.lightLabel,darkLabel:m=r.darkLabel,autoLabel:h=r.autoLabel,name:g,size:y=`md`,tooltipPlacement:b=`auto`,onChange:S,className:C=``,...w}=n,E={light:r.lightModeLabel,dark:r.darkModeLabel,auto:r.autoModeLabel};G(`AppThemeToggle`,w),W(`AppThemeToggle`,`variant`,i,JLt),W(`AppThemeToggle`,`effect`,a,iue),W(`AppThemeToggle`,`size`,y,Object.keys(e9));let D=u(e=>e===`auto`&&!o?so(e):e,[o]),[O,k]=v(()=>D(typeof window>`u`?`auto`:due(s))),A=p(),j=g||A,M=_({shown:D,storageKey:s});f(()=>{let e=document.documentElement.getAttribute(`data-theme`);Q7(e)?k(M.current.shown(e)):co(due(M.current.storageKey))},[]),f(()=>{let e=e=>{if(!(e instanceof CustomEvent))throw Error(`wui:theme:change arrived without a CustomEvent`);let t=`detail`in e?e.detail:void 0,n=typeof t==`object`&&t&&`preference`in t?t.preference:void 0;Q7(n)&&k(D(n))};return document.addEventListener(oo,e),()=>document.removeEventListener(oo,e)},[D]),f(()=>mue(()=>{document.documentElement.getAttribute(`data-theme`)===`auto`&&co(`auto`)}),[]);let N=u((e,t)=>{let n=t?.getBoundingClientRect?.()??{left:0,top:0,width:0,height:0},r={x:n.left+n.width/2,y:n.top+n.height/2};Cue(()=>{co(e),fue(e,s),T(()=>k(e))},{effect:a,to:so(e),origin:r,...c===void 0?null:{duration:c}}).then(()=>S?.(e))},[s,a,c,S]);if(i===`segmented`){let e=[{value:`light`,label:d,icon:$7.light},{value:`dark`,label:m,icon:$7.dark}];return o&&e.push({value:`auto`,label:h,icon:$7.auto}),x(xz,{...t,options:e,value:O,name:j,label:l,size:y===`xl`?`lg`:y,className:[`wui-theme-toggle`,`wui-theme-toggle-segmented`,C].filter(Boolean).join(` `),onChange:e=>{if(!Q7(e)||e===O)return;let t=document.querySelector(`.segmented-input[name="${CSS.escape(j)}"][value="${e}"]`);N(e,t?.closest(`.segmented-option`)??t)}})}return x(Ks,{...t,icon:$7[O],label:`${l}: ${E[O]}`,size:e9[y]??e9.md,tooltipPlacement:b,onClick:e=>N(pue(O,{includeAuto:o}),e.currentTarget),className:[`wui-theme-toggle`,C].filter(Boolean).join(` `)})}var XLt=[`feed`,`progress`,`steps`],ZLt=[`vertical`,`horizontal`],QLt=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],$Lt=Hs.filter(e=>e!==`primary`),eRt=[`sm`,`md`,`lg`],tRt={done:`check`,current:`clock`,"on-hold":`lock`,rejected:`x`,cancelled:`minus`,skipped:`arrow-right`,upcoming:null},nRt=e=>(/^https?:[/][/]/i.test(e)||e.startsWith(`/`)&&e[1]!==`/`&&e[1]!==`\\`)&&![...e].some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)===127);function rRt(e){if(e.byHref!=null&&e.byHref!==``){if(!nRt(e.byHref))throw Error(`<AppTimeline> items[].byHref must be a path starting with one '/', or an http:// or https:// address, with no spaces.`);if(!e.by)throw Error(`<AppTimeline> items[].byHref links the by name, so the item needs by.`)}}var iRt=(e,t)=>{if(!e.byHref)return e.by;let n=gs(t,{href:e.byHref});return x(_s,{link:n,className:`timeline-by-link`,children:e.by})},aRt=(e,t)=>{if(typeof e!=`string`)throw TypeError(`<AppTimeline> items[].${t} must be a string when markdown is set, because it is Markdown source.`);return e},oRt=(e,t)=>t?x(EB,{value:aRt(e.description,`description`),headings:`text`}):e.description,sRt=(e,t)=>t?x(`div`,{className:`timeline-note wui-timeline-note--markdown`,children:x(EB,{value:aRt(e.note,`note`),headings:`text`})}):x(`p`,{className:`timeline-note`,children:e.note});function cRt(e){let{marker:t,props:n}=U(`AppTimeline`,e),r=Vs(`timeline`,zme),{items:i=[],variant:a=`feed`,orientation:o,iconVariant:s,size:c,linkComponent:l,className:u=``,style:d,stepLabel:f=r.stepLabel,markdown:p=!1,...m}=n;G(`AppTimeline`,m),W(`AppTimeline`,`variant`,a,XLt),W(`AppTimeline`,`orientation`,o,ZLt),W(`AppTimeline`,`iconVariant`,s,QLt),W(`AppTimeline`,`size`,typeof c==`string`?c:null,eRt);for(let e of i){if(p)for(let t of[`description`,`note`]){let n=e[t];if(n!=null&&typeof n!=`string`)throw TypeError(`<AppTimeline> items[].${t} must be a string when markdown is set, because it is Markdown source.`)}W(`AppTimeline`,`items[].tone`,e.tone,$Lt),rRt(e),a===`progress`&&W(`AppTimeline`,`items[].status`,e.status,Object.keys(tRt))}let h=a===`progress`,g=a===`steps`,_=o===`horizontal`,v=s??(g?`bulk`:void 0),y=typeof c==`string`&&eRt.includes(c)?c:`md`,b=typeof c==`number`&&c>0?c:void 0,C=!b&&y!==`md`?` wui-timeline--${y}`:``,w=`${g?`timeline wui-timeline--steps${o===`vertical`?` wui-timeline--steps-vertical`:``}`:`timeline${h?` timeline--progress`:``}${_?` timeline--horizontal`:``}`}${C}${u?` ${u}`:``}`,T=g?b?Math.round(b*.43):{sm:19,md:24,lg:31}[y]:b?Math.round(b*.54):h?{sm:10,md:13,lg:17}[y]:{sm:10,md:12,lg:17}[y],E={"--wui-timeline-dot":`${b}px`},D=b?{...d,...E}:d;return x(`ol`,{className:w,style:D,...t,...m,children:i.map((e,t)=>{let n=e.tone&&e.tone!==`neutral`?` ${e.tone}`:``;if(g){let r=e.eyebrow??K(f,{number:t+1});return S(`li`,{className:`timeline-item${n}`,children:[x(`span`,{className:`timeline-dot`,children:e.icon?x(J,{name:e.icon,size:T,variant:v}):null}),S(`div`,{className:`timeline-body`,children:[r!==``&&x(`div`,{className:`wui-timeline-eyebrow`,children:r}),x(`div`,{className:`timeline-title`,children:e.title}),e.description&&x(`div`,{className:`timeline-desc`,children:oRt(e,p)})]})]},e.key??`${typeof e.at==`string`?e.at:``}-${t}`)}let r=h?e.status:void 0,i=r?` is-${r}`:``,a=h?e.icon??(r?tRt[r]:void 0):e.icon||`circle`;return S(`li`,{className:`timeline-item${i}${n}`,children:[x(`span`,{className:`timeline-dot`,children:a?x(J,{name:a,size:T,variant:v}):null}),S(`div`,{className:`timeline-body`,children:[h?S(`div`,{className:`timeline-head`,children:[x(`div`,{className:`timeline-title`,children:e.title}),(e.at||e.time)&&S(`span`,{className:`timeline-when`,children:[e.at&&x(`span`,{className:`timeline-at`,title:e.atTitle||void 0,children:e.at}),e.time&&x(`span`,{className:`timeline-time`,children:e.time})]})]}):x(`div`,{className:`timeline-title`,children:e.title}),e.description&&x(`div`,{className:`timeline-desc`,children:oRt(e,p)}),!h&&(e.at||e.time||e.by)&&S(`div`,{className:`timeline-meta`,children:[(e.at||e.time)&&S(`span`,{className:`timeline-when`,children:[e.at&&x(`span`,{className:`timeline-at`,title:e.atTitle||void 0,children:e.at}),e.time&&x(`span`,{className:`timeline-time`,children:e.time})]}),e.by&&x(`span`,{className:`timeline-by`,children:iRt(e,l)})]}),h&&e.by&&x(`div`,{className:`timeline-meta`,children:x(`span`,{className:`timeline-by`,children:iRt(e,l)})}),e.note&&sRt(e,p)]})]},e.key??`${typeof e.at==`string`?e.at:``}-${t}`)})})}var lRt=[`sm`,`md`,`lg`,`xl`],uRt=[`12`,`24`],dRt=()=>Promise.resolve().then(()=>(Fet(),Pet));function fRt(e){let t=Fc(`wui-timepicker`,dRt),{marker:n,props:r}=U(`AppTimePicker`,e),i=Vs(`timePicker`,Is),{value:o,defaultValue:s,onChange:c,label:l,required:u=!1,optional:d=!1,optionalLabel:f=i.optionalLabel,helperText:m,error:h,help:g,helpLabel:_=i.helpLabel,name:v,min:y,max:b,step:C,format:w=24,placeholder:T=i.placeholder,disabled:E,readOnly:D=!1,loading:O=!1,size:k,id:A,ariaLabel:j,className:M=``,fieldClassName:N=``,ref:P,...F}=r,I=Oc(v),L=h??I;G(`AppTimePicker`,F),W(`AppTimePicker`,`size`,k,lRt);let R=String(w);W(`AppTimePicker`,`format`,R,uRt);let z=p(),B=A||v||z,{setRef:V}=pV({ready:t,ref:P,value:o??(s===void 0?``:void 0),onChange:c}),H=!l&&!L&&!m,ee=L?`${B}-error`:void 0,te=m?`${B}-hint`:void 0,ne=ee||te,re=x(`wui-timepicker`,{ref:V,value:(o??s)||void 0,id:B,name:v,min:y,max:b,step:C==null?void 0:String(C),format:R,placeholder:T,size:k||void 0,"aria-label":j||ZV(l)||void 0,"aria-describedby":ne,"aria-invalid":L?`true`:void 0,disabled:E?``:void 0,readonly:D?``:void 0,loading:O?``:void 0,required:u?``:void 0,className:M||void 0,...F});return H?a(re,n):S(`div`,{...n,className:`field${N?` ${N}`:``}`,children:[l&&S(`label`,{className:`label`,htmlFor:B,children:[l,d&&!u&&x(`span`,{className:`label-optional`,children:` ${f}`}),u&&x(Uc,{}),g&&x(Hc,{label:_,children:g})]}),re,x(Ac,{error:L,hint:m,errorId:ee,hintId:te})]})}var pRt={success:{icon:`check-circle`,assertive:!1},info:{icon:`info`,assertive:!1},warning:{icon:`alert-triangle`,assertive:!0},danger:{icon:`alert-circle`,assertive:!0}},mRt=e=>Object.keys(pRt).includes(e),t9={"top-start":`top-0 start-0`,"top-center":`top-0 start-50 translate-middle-x`,"top-end":`top-0 end-0`,"middle-center":`top-50 start-50 translate-middle`,"bottom-start":`bottom-0 start-0`,"bottom-center":`bottom-0 start-50 translate-middle-x`,"bottom-end":`bottom-0 end-0`},hRt=64;function gRt(e){let{marker:t,props:n}=U(`AppToast`,e),r=Vs(`toast`,zs),{position:i=`bottom-end`,maxVisible:a=4,animation:o=`rise`,shape:s=`rounded`,surface:c=`auto`,offset:l,closeLabel:u=r.closeLabel,className:d=``,...p}=n;G(`AppToast`,p),W(`AppToast`,`position`,i,Object.keys(t9)),W(`AppToast`,`animation`,o,Rlt),W(`AppToast`,`shape`,s,zlt),W(`AppToast`,`surface`,c,Blt);let[m,h]=v([]);f(()=>Klt(h),[]);let g=_fe(),y=_(null);f(()=>{let e=y.current;g&&e&&m.length!==0&&e.isConnected&&ya(e)},[m,g]);let b=typeof l==`number`&&Number.isFinite(l)&&l>=0;f(()=>{l==null||b||ce(`[@webority/ui-react] <AppToast> received offset="${String(l)}", which must be a number of pixels, 0 or more. The default offset is used instead.`)},[l,b]);let{style:C,...T}=p,E={"--wui-toast-offset":`${l}px`},D=b?{...E,...C}:C,O=Math.max(0,m.length-a),k=O?m.slice(O):m,A=t9[i]??t9[`bottom-end`];return g?w(S(`div`,{...t,...T,ref:y,popover:`manual`,style:D,className:`wui-toast-container toast-container position-fixed ${A} p-3 ${d}`.trim(),children:[O>0&&S(`div`,{className:`wui-toast-more`,"aria-hidden":`true`,children:[`+`,O,` `,r.moreText]}),k.map(e=>x(_Rt,{toast:e,defaultAnimation:o,defaultShape:s,defaultSurface:c,closeLabel:u},e.id))]}),g):null}function _Rt(e){let t=Vs(`toast`,zs),{toast:n,defaultAnimation:r=`rise`,defaultShape:i=`rounded`,defaultSurface:a=`auto`,closeLabel:o=t.closeLabel}=e;if(!mRt(n.variant))throw Error(`<AppToast> has no tone for the variant "${n.variant}".`);let s=pRt[n.variant],c=n.animation??r,l=n.shape??i,u=n.surface??a,d=(c===`rise`?``:` wui-toast--anim-${c}`)+(l===`rounded`?``:` wui-toast--shape-${l}`)+(u===`inverse`?` wui-toast--surface-inverse`:``),p=n.duration===0,[m,h]=v(0),[g,y]=v(!1),b=_(null),C=()=>lY(n.id),w=_(null);f(()=>{if(n.duration===0)return;qlt(n.id);let e=w.current,t=e==null?``:getComputedStyle(e).animationName;if(e!=null&&(typeof e.getAnimations==`function`?e.getAnimations().length>0:t!==``&&t!==`none`))return;let r=setTimeout(()=>lY(n.id),n.duration);return()=>clearTimeout(r)},[n.id,n.duration]);let T=e=>{if(e.button===0){if(!(e.target instanceof Element))throw Error(`<AppToast> received a pointer event whose target is not an element.`);e.target.closest(`button`)||(b.current=e.clientX,y(!0),e.currentTarget.setPointerCapture?.(e.pointerId))}},E=e=>{b.current!==null&&h(e.clientX-b.current)},D=()=>{b.current=null,y(!1),h(0)},O=e=>{if(b.current===null)return;let t=e.clientX-b.current;Math.abs(t)>hRt?C():D()},k=m?{transform:`translateX(${m}px)`,opacity:Math.max(0,1-Math.abs(m)/200)}:void 0,A=n.message;return S(`div`,{className:`toast show wui-toast wui-toast--${n.variant}${d}${g?` wui-toast--dragging`:``}`,role:s.assertive?`alert`:`status`,"aria-live":s.assertive?`assertive`:`polite`,"aria-atomic":`true`,style:k,onPointerDown:T,onPointerMove:E,onPointerUp:O,onPointerCancel:D,children:[x(`span`,{className:`wui-toast-icon`,"aria-hidden":`true`,children:x(J,{name:s.icon,size:20})}),S(`div`,{className:`wui-toast-content`,children:[n.title&&x(`div`,{className:`wui-toast-title`,children:n.title}),x(`div`,{className:`wui-toast-message`,children:A}),typeof n.progress==`number`&&S(`div`,{className:`wui-toast-task`,children:[x(`div`,{className:`wui-toast-track`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(n.progress),children:x(`div`,{className:`wui-toast-track-fill`,style:{width:`${n.progress}%`}})}),S(`span`,{className:`wui-toast-track-pct`,"aria-hidden":`true`,children:[Math.round(n.progress),`%`]})]}),n.action&&x(`button`,{type:`button`,className:`wui-toast-action`,onClick:()=>{n.action?.onClick?.(),C()},children:n.action.label})]}),x(`button`,{type:`button`,className:`btn-close wui-toast-close`,"aria-label":o,onClick:C}),!p&&x(`div`,{ref:w,className:`wui-toast-progress`,style:{animationDuration:`${n.duration}ms`},onAnimationEnd:C})]})}function vRt(e){let{marker:t,props:n}=U(`AppToolbar`,e),{items:r=[],actions:i=[],value:a,defaultValue:o,onChange:s,label:c,name:l,disabled:u=!1,className:d=``,...f}=n;G(`AppToolbar`,f);let m=p(),h=l||m,[g,_]=v(o),y=a===void 0?g:a,b=[`toolbar`,u?`is-disabled`:``,d].filter(Boolean).join(` `);return S(`div`,{className:b,role:`toolbar`,"aria-label":c,"aria-disabled":u||void 0,...t,...f,children:[r.map(e=>S(`label`,{className:`toolbar-item`,children:[x(`input`,{type:`radio`,className:`toolbar-input`,name:h,value:e.value,checked:e.value===y,disabled:u||e.disabled,onChange:()=>{a===void 0&&_(e.value),s?.(e.value)}}),x(`span`,{className:`toolbar-item-icon`,children:Ws(e.icon,{size:16})}),x(`span`,{className:`toolbar-item-label`,children:e.title})]},e.value)),i.length>0&&x(`span`,{className:`toolbar-sep`,"aria-hidden":`true`}),i.map((e,t)=>x(`button`,{type:`button`,className:`toolbar-action`,"aria-label":e.title,disabled:u||e.disabled,onClick:e.onClick,children:x(`span`,{className:`toolbar-item-icon`,children:Ws(e.icon,{size:16})})},e.key??`${e.title}-${t}`))]})}function yRt(e){let t=e.ownerDocument,n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean),r=e instanceof HTMLInputElement&&/^(button|submit|reset)$/.test(e.type)?e.value:``,i=[n.map(e=>t.getElementById(e)?.textContent??``).join(` `),e.getAttribute(`aria-label`),Array.from(tzt(e)??[],e=>e.textContent).join(` `),e.getAttribute(`alt`),r,e.textContent,e.getAttribute(`title`)];for(let e of i){let t=c9(e);if(t)return t}return``}function bRt(e){for(let t of[e,...e.querySelectorAll($Rt)])if((t instanceof HTMLElement||t instanceof SVGElement)&&t.tabIndex>=0&&!nzt(t))return t;return null}function xRt(e,t,n){let r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(e=>e&&e!==t);n&&r.push(t),r.length>0?e.setAttribute(`aria-describedby`,r.join(` `)):e.removeAttribute(`aria-describedby`)}function SRt(e,t){let n=e.querySelector(`.${a9}`),r=e.querySelector(`.wui-tour-text`)?.id,i=r?`${r.replace(/-text$/,``)}-hint`:``;if(!t)n?.remove(),i&&xRt(e,i,!1);else{if(!n){n=e.ownerDocument.createElement(`p`),n.className=a9,i&&(n.id=i);let t=e.querySelector(`.wui-tour-actions`);if(!t)throw Error(`Tour card has no actions row.`);t.before(n)}n.textContent=t,i&&xRt(e,i,!0)}}function CRt(e,t){let n=e.querySelector(`.${o9}`);if(!t){n?.remove();return}if(n)return;let r=e.ownerDocument.createElement(`span`);r.className=o9,r.setAttribute(`aria-hidden`,`true`),e.append(r)}function wRt(e,{layer:t,spot:n,card:r},i,a){let o=s9(i,a);t.toggleAttribute(i9,o&&!(t.getRootNode()instanceof ShadowRoot)),n.hasAttribute(i9)&&(n.removeAttribute(i9),o&&rzt(n)),o&&n.setAttribute(i9,``),CRt(n,o);let s=r.querySelector(`.wui-tour-next`);if(!(s instanceof HTMLElement))throw Error(`Tour card has no next button.`);s.classList.toggle(`btn-primary`,!o),s.classList.toggle(`btn-link`,o);let c=o?c9(i?.actionLabel)||yRt(a):``,l=e.getAttribute(`advance-label`)||ezt().advanceLabel,u=c?l.replace(/\{actionName\}/g,()=>c):``;return SRt(r,u),u}function TRt(e,t,n){if(!s9(e,t))return()=>{};let r,i=()=>{r??=setTimeout(n,0)};return t.addEventListener(`click`,i),()=>{t.removeEventListener(`click`,i),clearTimeout(r)}}function ERt(e,t,n,r){return e.contains(r)||s9(t,n)&&n.contains(r)}function DRt(e,{card:t,active:n,step:r,target:i}){let a=Array.from(t.querySelectorAll(`button`)).filter(e=>!e.hidden),o=s9(r,i)?bRt(i):null;o&&a.push(o);let s=a.findIndex(e=>e===n||e===o&&i?.contains(n));e.preventDefault();let c=a[s===-1?e.shiftKey?a.length-1:0:(s+(e.shiftKey?-1:1)+a.length)%a.length];if(!c)throw Error(`Tour card has no focus stop.`);c.focus()}function ORt(e){return e.length===0?null:new Promise(t=>{let n=setTimeout(t,azt);Promise.allSettled(e.map(e=>e.finished)).then(()=>{clearTimeout(n),t()})})}function kRt(e){let t=e.parentElement?.querySelector(`:scope > .wui-tour-spot`),n=0;for(let e of t?u9(t,szt):[]){let t=e.effect?.getComputedTiming?.();if(typeof t?.duration!=`number`)continue;let r=typeof e.currentTime==`number`?e.currentTime:0;n=Math.max(n,(t.delay??0)+t.duration*izt-r)}return n}function ARt(e){let t=kRt(e);t>0?e.style.setProperty(`--wui-tour-card-delay`,`${Math.round(t)}ms`):e.style.removeProperty(`--wui-tour-card-delay`),e.dataset.state=`entering`;let n={};l9.set(e,n);let r=()=>{l9.get(e)===n&&e.dataset.state===`entering`&&(e.dataset.state=`shown`)},i=u9(e,czt);i.length===0?r():Promise.allSettled(i.map(e=>e.finished)).then(r)}function jRt(e){return e.dataset.state=`leaving`,ORt(u9(e,d9))}function MRt(e){let t=e.shadowRoot?.querySelector(`.wui-tour-layer`),n=e.classList.contains(`wui-tour-layer`)?e:t instanceof HTMLElement?t:null;n&&(n.dataset.state=`leaving`);let r=n?ORt(u9(n,d9)):null;r?(e.setAttribute(`inert`,``),r.then(()=>e.remove())):e.remove()}function NRt(e,t){if(!t?.scrollIntoView)return;e.style.maxHeight=``;let n=zRt(e),r=e.offsetHeight+f9;if(t.getBoundingClientRect().height+4+r*2<=n.bottom-n.top){t.scrollIntoView({block:`center`,inline:`nearest`});return}let i=t.style.scrollMarginTop;t.style.scrollMarginTop=`${n.top+r+lzt}px`,t.scrollIntoView({block:`start`,inline:`nearest`}),t.style.scrollMarginTop=i}function PRt(e,t,n){let r=e.style,i=t.style,a=BRt(t);if(!n){r.top=`50%`,r.left=`50%`,r.width=`0px`,r.height=`0px`,r.boxShadow=`0 0 0 100vmax var(--color-scrim-strong)`;for(let e of g9)r.removeProperty(`border-${e}-radius`),r.removeProperty(`corner-${e}-shape`);t.dataset.placement=`center`,a.hidden=!0,i.position=`fixed`,i.top=`50%`,i.left=`50%`,i.transform=`translate(-50%, -50%)`,i.maxHeight=`calc(100vh - 16px)`;return}r.boxShadow=``,i.transform=``,i.position=`fixed`;let o=n.getBoundingClientRect();r.top=`${o.top}px`,r.left=`${o.left}px`,r.width=`${o.width}px`,r.height=`${o.height}px`,FRt(r,n);let s=t.scrollTop;i.maxHeight=``;let c={width:t.offsetWidth,height:t.offsetHeight},l=zRt(t),u=l.bottom-l.top,d={bottom:l.bottom-o.bottom-f9,top:o.top-f9-l.top,right:l.right-o.right-f9,left:o.left-f9-l.left},f=window.matchMedia(uzt).matches,p=(Zi(n)?fzt:dzt).find(e=>e===`top`||e===`bottom`?c.height<=d[e]+1:!f&&c.width<=d[e]+1&&c.height<=u+1),m=Math.min(o.bottom,l.bottom+p9)-Math.max(o.top,l.top-p9);p?IRt(t,a,p,o,l,c):m>=Math.min(c.height,u)+8?LRt(t,a,o,l,c):RRt(t,a,d.bottom>=d.top?`bottom`:`top`,o,l,c,d),t.scrollTop=s}function FRt(e,t){pzt??=CSS.supports(`corner-top-left-shape`,`squircle`);let n=getComputedStyle(t);for(let t of g9)e.setProperty(`border-${t}-radius`,n.getPropertyValue(`border-${t}-radius`)),pzt&&e.setProperty(`corner-${t}-shape`,n.getPropertyValue(`corner-${t}-shape`))}function IRt(e,t,n,r,i,a){let o=n===`top`||n===`bottom`,s,c,l;if(o){let e=v9(r.left,r.right,i.left,i.right);s=_9(e-a.width/2,i.left,i.right-a.width),c=n===`bottom`?r.bottom+f9:r.top-f9-a.height,l=_9(e-s,h9,a.width-h9)}else{let e=v9(r.top,r.bottom,i.top,i.bottom);c=_9(e-a.height/2,i.top,i.bottom-a.height),s=n===`right`?r.right+f9:r.left-f9-a.width,l=_9(e-c,h9,a.height-h9)}e.dataset.placement=n,e.style.top=`${c}px`,e.style.left=`${s}px`,t.hidden=!1,t.style.left=o?`${l-e.clientLeft-t.offsetWidth/2}px`:``,t.style.top=o?``:`${l-e.clientTop-t.offsetHeight/2}px`}function LRt(e,t,n,r,i){let a=r.bottom-r.top;e.dataset.placement=`overlap`,t.hidden=!0,e.style.maxHeight=i.height>a?`${Math.max(a,0)}px`:``;let o=Math.min(n.bottom,r.bottom)-m9;e.style.top=`${Math.max(r.top,o-Math.min(i.height,a))}px`,e.style.left=`${_9(n.left+m9,r.left,r.right-i.width)}px`}function RRt(e,t,n,r,i,a,o){let s=Math.max(o[n],0),c=Math.min(a.height,s);e.dataset.placement=n,t.hidden=!0,e.style.maxHeight=a.height>s?`${s}px`:``,e.style.top=`${n===`bottom`?r.bottom+f9:r.top-f9-c}px`;let l=v9(r.left,r.right,i.left,i.right);e.style.left=`${_9(l-a.width/2,i.left,i.right-a.width)}px`}function zRt(e){let t=e.parentElement,n=t?getComputedStyle(t):null,r=e=>Number.parseFloat(n?.[e]??``)||0;return{top:r(`paddingTop`)+p9,bottom:window.innerHeight-r(`paddingBottom`)-p9,left:r(`paddingLeft`)+p9,right:window.innerWidth-r(`paddingRight`)-p9}}function BRt(e){let t=e.querySelector(`:scope > .wui-tour-arrow`);if(t instanceof HTMLElement)return t;let n=document.createElement(`span`);return n.className=`wui-tour-arrow`,n.setAttribute(`aria-hidden`,`true`),n.hidden=!0,e.append(n),n}function n9(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`Expected "${t}" to match a ${n.name}.`);return r}function VRt(e,t){let n=`wui-tour-end-${++mzt}`,{nextLabel:r,nextHref:i}=e,a=r&&i?q(`a`,{class:`${Pz(`primary`,`solid`,`sm`)} wui-tour-end-next`,"data-wui":Fz,href:i},r):null,o=a!==null,s=q(`button`,{type:`button`,class:`${o?hzt:Pz(`primary`,`solid`,`sm`)} wui-tour-end-button`,"data-wui":Fz},e.button);return q(t?`dialog`:`div`,{class:`wui-tour-card wui-tour-end`,"data-layout":`center`,"data-next":o||void 0,role:`dialog`,tabindex:-1,"aria-labelledby":`${n}-title`,"aria-describedby":`${n}-message`},q(`div`,{class:`wui-tour-end-mark`,"aria-hidden":`true`},Jr({viewBox:`0 0 24 24`,focusable:`false`},[[`path`,{d:`M5 12.5l4.5 4.5L19 7.5`}]])),q(`h2`,{class:`wui-tour-title wui-tour-end-title`,id:`${n}-title`},e.title),q(`p`,{class:`wui-tour-text wui-tour-end-message`,id:`${n}-message`},e.message),q(`div`,{class:`wui-tour-actions`},a,s))}function HRt(e,t,n){let r=e.ownerDocument,i=VRt(t,e.getRootNode()===r),a=n9(i,`.wui-tour-end-button`,HTMLButtonElement),o=i.querySelector(`.wui-tour-end-next`);if(o!==null&&!(o instanceof HTMLAnchorElement))throw Error(`The end dialog's next link is not a link.`);let s=o,c=s??a,l=new AbortController,u=i instanceof HTMLDialogElement?i:null,d=null;return new Promise(o=>{let f=e=>{if(l.abort(),d&&u){let e=d;d=null,ma(u).then(e)}o(e)};if(n?.aborted){f(`done`);return}let p=n9(e,`.wui-tour-card:not(.wui-tour-end)`,HTMLElement),m=n9(e,`.wui-tour-spot`,HTMLElement),h=n9(e,`[role=status]`,HTMLElement),g={signal:l.signal};n?.addEventListener(`abort`,()=>f(`done`),g),a.addEventListener(`click`,()=>f(`done`),g),s&&s.addEventListener(`click`,e=>{gzt(e)&&(e.preventDefault(),f(`next`))},g),r.addEventListener(`keydown`,e=>{if(!(e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`){if(d)return;e.preventDefault(),e.stopPropagation(),f(`done`)}else ni(e)&&s&&!e.shiftKey&&(e.composedPath?.()[0]??e.target)===s&&(e.preventDefault(),f(`next`))}},{capture:!0,signal:l.signal});let _=()=>{l.signal.aborted||(p.hidden=!0,PRt(m,p,null),e.append(i),ARt(i),u&&(d=pa(u,{escape:!0,backdrop:!1,focus:`first-control`,onRequestClose:()=>f(`done`)})),h.textContent=[t.title,t.message].filter(Boolean).join(`. `),c.focus())},v=jRt(p);v===null?_():v.then(_)})}function URt(e){let t=document.createElementNS(x9,`svg`);t.setAttribute(`viewBox`,`0 0 24 24`),t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`focusable`,`false`);let n=document.createElementNS(x9,`path`);return n.setAttribute(`d`,e),t.appendChild(n),t}function WRt(e){let t=document.createElement(`img`);return t.setAttribute(`alt`,e.mediaAlt??``),t.setAttribute(`width`,`1280`),t.setAttribute(`height`,`720`),t.setAttribute(`loading`,`lazy`),t.setAttribute(`decoding`,`async`),t.setAttribute(`src`,e.media??``),t}function GRt(e,t){let n=document.createElement(`video`);return n.muted=!0,n.setAttribute(`muted`,``),n.loop=!0,n.setAttribute(`playsinline`,``),t&&n.setAttribute(`autoplay`,``),n.setAttribute(`preload`,t?`auto`:`metadata`),e.mediaAlt&&n.setAttribute(`aria-label`,e.mediaAlt),e.mediaPoster&&n.setAttribute(`poster`,e.mediaPoster),n.setAttribute(`src`,e.media??``),n}function KRt(e,t){let n=document.createElement(`button`);n.type=`button`,n.className=vzt;let r=(r=!e.paused)=>{n.setAttribute(`aria-label`,r?t.pause:t.play),n.replaceChildren(URt(r?yzt:bzt))};return e.addEventListener(`play`,()=>r()),e.addEventListener(`pause`,()=>r()),n.addEventListener(`click`,()=>{e.paused?e.play()?.catch(()=>r()):e.pause()}),r(e.hasAttribute(`autoplay`)),n}function qRt(e){let t=e.querySelector(`:scope > .${b9}`);if(!t)return;let n=t.querySelector(`video`);n&&(n.pause(),n.removeAttribute(`src`),n.load()),t.remove()}function JRt(e,t,n=xzt()){if(qRt(e),!t.media){e.removeAttribute(`data-media`);return}let r=document.createElement(`div`);if(r.className=b9,t.mediaType===`video`){let e=GRt(t,!Szt());r.append(e,KRt(e,n))}else r.appendChild(WRt(t));e.prepend(r),e.setAttribute(`data-media`,t.target?`step`:`welcome`)}function YRt(e){let t=new Set;return{drop:e=>{t.add(e)},position:e=>{t.delete(e);let n=0;for(let r of t)r<e&&n++;return e+1-n},total:()=>e-t.size}}function XRt(e,t,n){return(e.getAttribute(`progress-label`)||Czt().progressLabel).replace(/\{(current|total)\}/g,(e,r)=>String(r===`current`?t:n))}function ZRt(e,{text:t,position:n,total:r}){let i=e.querySelector(`.wui-tour-position`);if(!(i instanceof HTMLElement))throw Error(`tour position label missing`);i.textContent=t;let a=e.querySelector(`.wui-tour-progress-bar`);if(!a){let t=e.ownerDocument,n=t.createElement(`div`);n.className=`wui-tour-progress`,n.setAttribute(`aria-hidden`,`true`),a=t.createElement(`div`),a.className=`wui-tour-progress-bar`,n.append(a),i.before(n)}let o=a.children;for(;o.length<r;){let t=e.ownerDocument.createElement(`span`);t.className=`wui-tour-progress-segment`,a.append(t)}for(;o.length>r;){let e=a.lastElementChild;if(!e)throw Error(`progress bar segment missing`);e.remove()}for(let e=0;e<o.length;e++){let t=o[e];if(!t)throw Error(`progress bar segment missing`);t.toggleAttribute(`data-filled`,e<n)}}function r9(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`<wui-tour> layer has no ${t}`);return r}function QRt(e){D9||(D9=new CSSStyleSheet,D9.replaceSync(_zt)),e.adoptedStyleSheets=[D9]}var i9,a9,o9,$Rt,ezt,s9,c9,tzt,nzt,rzt,izt,azt,ozt,l9,u9,d9,szt,czt,lzt,f9,p9,m9,h9,uzt,dzt,fzt,g9,pzt,_9,v9,mzt,hzt,gzt,_zt,y9,b9,vzt,x9,yzt,bzt,xzt,Szt,Czt,wzt,Tzt,S9,C9,Ezt,Dzt,Ozt,w9,kzt,T9,E9,Azt,D9,O9,jzt=M((()=>{ca(),Lz(),En(),Rc(),Ma(),$i(),xn(),gpe(),ri(),Xr(),J8e(),ade(),i9=`data-advance`,a9=`wui-tour-hint`,o9=`wui-tour-pointer`,$Rt=`a[href], button, input, select, textarea, summary, [tabindex], [contenteditable]`,ezt=()=>pn(`tourAdvance`,hpe),s9=(e,t)=>e?.advanceOn===`click`&&!!t,c9=e=>(e??``).replace(/\s+/g,` `).trim(),tzt=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLMeterElement||e instanceof HTMLOutputElement||e instanceof HTMLProgressElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.labels:null,nzt=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement?e.disabled:!1,rzt=e=>getComputedStyle(e).animationName,izt=2/3,azt=1e3,ozt=new Set([`top`,`left`,`width`,`height`]),l9=new WeakMap,u9=(e,t)=>typeof e.getAnimations==`function`?e.getAnimations().filter(t):[],d9=e=>`transitionProperty`in e&&e.transitionProperty===`opacity`,szt=e=>`transitionProperty`in e&&typeof e.transitionProperty==`string`&&ozt.has(e.transitionProperty),czt=e=>`animationName`in e&&typeof e.animationName==`string`&&e.animationName.startsWith(`wui-tour-`),lzt=2,f9=12,p9=8,m9=4,h9=20,uzt=`(max-width: 575.98px)`,dzt=[`bottom`,`top`,`right`,`left`],fzt=[`bottom`,`top`,`left`,`right`],g9=[`top-left`,`top-right`,`bottom-right`,`bottom-left`],_9=(e,t,n)=>Math.max(t,Math.min(e,n)),v9=(e,t,n,r)=>(Math.max(e,n)+Math.min(t,r))/2,mzt=0,hzt=`btn btn-sm btn-link`,gzt=e=>e.button===0&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey,_zt=` :host { all: initial; display: revert-layer; position: fixed; inset: 0; ${Object.entries({"--wui-z-tour":`1550`,"--wui-radius-sm":`8px`,"--wui-radius-2xl":`18px`,"--wui-shadow-popover":`0px 8px 28px -6px rgba(7, 20, 55, 0.14)`,"--wui-ease-out":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-ease-linear":`cubic-bezier(0, 0, 1, 1)`,"--wui-duration-fast":`150ms`,"--wui-duration-default":`250ms`,"--wui-duration-slow":`400ms`,"--wui-space-xs":`4px`,"--wui-tour-motion-duration":`200ms`,"--wui-tour-motion-ease":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-tour-spot-duration":`240ms`,"--wui-tour-spot-ease":`cubic-bezier(0.32, 0.72, 0, 1)`,"--color-primary":`#4F46E5`,"--color-primary-hover":`#4338CA`,"--color-primary-text":`#4F46E5`,"--color-focus-ring":`#4F46E5`,"--wui-focus-ring-width":`2px`,"--wui-focus-ring-offset":`2px`,"--color-on-primary":`#FFFFFF`,"--color-success-soft":`#E8FAEE`,"--color-success-text":`#0e7531`,"--color-on-scrim":`#FFFFFF`,"--color-scrim-strong":`color-mix(in srgb, #071437 62%, transparent)`,"--color-surface":`#FFFFFF`,"--color-text":`#071437`,"--color-text-muted":`#4B5675`,"--color-border":`#EBEDF3`,"--color-bg-muted":`#F5F6FA`}).map(([e,t])=>` ${e}: ${t};`).join(` `)} } *, *::before, *::after { box-sizing: border-box; } [hidden] { display: none !important; } .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; } .btn { display: inline-block; margin: 0; padding: 0.25rem 0.5rem; border: 1px solid transparent; border-radius: 0.375rem; background: transparent; font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; } .btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } .btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); } .btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); } .btn-outline-neutral { border-color: var(--color-text-muted); color: var(--color-text-muted); } .btn-outline-neutral:hover { background: var(--color-bg-muted); color: var(--color-text); } .btn-link { font-weight: 400; color: var(--color-primary-text); text-decoration: underline; } .btn-link:hover { color: var(--color-primary-hover); } .wui-tour-layer { pointer-events: none; font-family: "Webority Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-text); text-align: start; } .wui-tour-card { pointer-events: auto; } .wui-tour-layer { position: fixed; inset: 0; z-index: var(--wui-z-tour); width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; background: none; } .wui-tour-spot { position: fixed; box-shadow: 0 0 0 2px var(--color-primary), 0 0 4px 2px color-mix(in srgb, var(--color-primary) 30%, transparent), 0 0 0 100vmax var(--color-scrim-strong); pointer-events: none; } .wui-tour-card { display: flex; flex-direction: column; gap: 8px; width: min(360px, 100vw - 16px); padding: 16px; overflow-y: auto; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--wui-radius-2xl); corner-shape: squircle; box-shadow: var(--wui-shadow-popover); } .wui-tour-card:focus { outline: none; } .wui-tour-card:focus-visible { outline: var(--wui-focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-title { margin: 0; font-size: 16px; font-weight: 600; } .wui-tour-text { margin: 0; font-size: 14px; color: var(--color-text-muted); } .wui-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; } .wui-tour-nav { display: flex; gap: 8px; } .wui-tour-skip { color: var(--color-text-muted); } .wui-tour-back, .wui-tour-next { min-width: 64px; } @keyframes wui-tour-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes wui-tour-card-enter { from { opacity: 0; scale: 0.96; translate: var(--wui-tour-card-lift, 0 6px); } to { opacity: 1; scale: 1; translate: 0 0; } } .wui-tour-layer[data-state=leaving], .wui-tour-card[data-state=leaving] { opacity: 0; } .wui-tour-layer[data-state=leaving], .wui-tour-layer[data-state=leaving] * { pointer-events: none; } @media (prefers-reduced-motion: no-preference) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-spot { transition: top var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), left var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), width var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), height var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), border-radius var(--wui-tour-spot-duration) var(--wui-tour-spot-ease); } .wui-tour-spot[data-tracking] { transition: none; } .wui-tour-card { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=top] { --wui-tour-card-lift: 0 -6px; transform-origin: bottom center; } .wui-tour-card[data-placement=bottom] { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=left] { --wui-tour-card-lift: -6px 0; transform-origin: right center; } .wui-tour-card[data-placement=right] { --wui-tour-card-lift: 6px 0; transform-origin: left center; } .wui-tour-card[data-placement=overlap], .wui-tour-card[data-placement=center] { --wui-tour-card-lift: 0 0; transform-origin: center; } .wui-tour-card[data-state=entering] { animation: wui-tour-card-enter var(--wui-tour-motion-duration) var(--wui-tour-motion-ease) var(--wui-tour-card-delay, 0ms) both; } .wui-tour-card[data-state=leaving] { transition: opacity calc(var(--wui-tour-motion-duration) / 2) var(--wui-tour-motion-ease); } } @media (prefers-reduced-motion: reduce) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-card[data-state=entering] { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear) both; } } .wui-tour-progress-bar { display: flex; gap: 4px; } .wui-tour-progress-segment { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--color-border); } .wui-tour-progress-segment[data-filled] { background: var(--color-primary); } .wui-tour-position { margin: 0; font-size: 12px; color: var(--color-text-muted); } .wui-tour-layer { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); } .wui-tour-card:has(.wui-tour-arrow:not([hidden])) { overflow: visible; } .wui-tour-arrow { position: absolute; width: 8px; height: 8px; background: var(--color-surface); border: 1px solid var(--color-border); rotate: 45deg; pointer-events: none; } .wui-tour-card[data-placement=bottom] .wui-tour-arrow { top: -5px; border-right-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=top] .wui-tour-arrow { bottom: -5px; border-top-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=right] .wui-tour-arrow { left: -5px; border-top-color: rgba(0, 0, 0, 0); border-right-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=left] .wui-tour-arrow { right: -5px; border-bottom-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } @media (max-width: 575.98px) { .wui-tour-card { width: calc(100vw - 16px); } .wui-tour-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; } } .wui-tour-media { position: relative; order: -1; flex: none; aspect-ratio: 16/9; margin: -16px -16px 4px; overflow: hidden; background: var(--color-border); } .wui-tour-media>img, .wui-tour-media>video { display: block; width: 100%; height: 100%; object-fit: cover; } .wui-tour-card[data-welcome] { width: min(420px, 100vw - 16px); } .wui-tour-media-toggle { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--color-scrim-strong); color: var(--color-on-scrim); cursor: pointer; } .wui-tour-media-toggle>svg { width: 20px; height: 20px; fill: currentColor; } .wui-tour-media-toggle:focus-visible { outline: 2px solid var(--color-on-scrim); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-layer[data-advance] { pointer-events: none; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-card { pointer-events: auto; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-spot::before { content: ""; position: absolute; inset: -100vmax; pointer-events: auto; clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 100vmax 100vmax, calc(100% - 100vmax) 100vmax, calc(100% - 100vmax) calc(100% - 100vmax), 100vmax calc(100% - 100vmax), 100vmax 100vmax); } .wui-tour-hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-text); } .wui-tour-pointer { position: absolute; top: 50%; left: 50%; width: 18px; height: 24px; pointer-events: none; } .wui-tour-pointer::before { content: ""; position: absolute; inset: 0; background: var(--color-primary); clip-path: polygon(0 0, 0 75%, 28% 58%, 46% 100%, 62% 92%, 45% 52%, 85% 52%); filter: drop-shadow(1px 0 0 var(--color-surface)) drop-shadow(-1px 0 0 var(--color-surface)) drop-shadow(0 1px 0 var(--color-surface)) drop-shadow(0 -1px 0 var(--color-surface)); } .wui-tour-pointer::after { content: ""; position: absolute; top: -16px; left: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); opacity: 0; display: none; } @media (max-width: 575.98px) { .wui-tour-pointer { width: 24px; height: 24px; translate: -50% -50%; } .wui-tour-pointer::before { clip-path: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-surface); filter: none; } .wui-tour-pointer::after { top: -4px; left: -4px; } } @keyframes wui-tour-tap { 0% { opacity: 0; transform: translate(56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-tap-rtl { 0% { opacity: 0; transform: translate(-56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(-56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-ripple { 0%, 50% { opacity: 0; transform: scale(0.2); } 52% { opacity: 0.35; transform: scale(0.2); } 80%, 100% { opacity: 0; transform: scale(1); } } @media (prefers-reduced-motion: no-preference) { .wui-tour-pointer { opacity: 0; animation: wui-tour-tap calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } .wui-tour-pointer:dir(rtl) { animation-name: wui-tour-tap-rtl; } .wui-tour-pointer::after { display: block; animation: wui-tour-ripple calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } } @keyframes wui-tour-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } } .wui-tour-end[data-layout=center] { --wui-tour-card-lift: 0 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); transform-origin: center; align-items: center; gap: 8px; width: min(420px, 100vw - 16px); max-height: calc(100vh - 16px); padding: 24px; text-align: center; } .wui-tour-end[data-layout=center] .wui-tour-actions { justify-content: center; margin-top: 8px; } .wui-tour-end[data-layout=center][data-next] .wui-tour-actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--wui-space-xs); } .wui-tour-end-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-success-soft); color: var(--color-success-text); } .wui-tour-end-mark>svg { width: 26px; height: 26px; } .wui-tour-end-mark path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; } .wui-tour-end-title { font-size: 18px; } .wui-tour-end-message { text-wrap: balance; } .wui-tour-end-next { text-wrap: balance; } .wui-tour-end-button { min-width: 120px; } @media (prefers-reduced-motion: no-preference) { .wui-tour-end-mark path { animation: wui-tour-check var(--wui-duration-default) var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + var(--wui-duration-fast)) both; } } `,y9=()=>pn(`tour`,Ls),b9=`wui-tour-media`,vzt=`wui-tour-media-toggle`,x9=`http://www.w3.org/2000/svg`,yzt=`M6 5h4v14H6zM14 5h4v14h-4z`,bzt=`M8 5v14l11-7z`,xzt=()=>({pause:y9().mediaPauseLabel,play:y9().mediaPlayLabel}),Szt=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches===!0,Czt=()=>pn(`tour`,Ls),wzt=`wui-tour-step`,Tzt=`wui-tour-host`,S9=`data-tracking`,C9=()=>pn(`tour`,Ls),Ezt=()=>({back:C9().backLabel,next:C9().nextLabel,skip:C9().skipLabel,done:C9().doneLabel,mediaPause:C9().mediaPauseLabel,mediaPlay:C9().mediaPlayLabel,endTitle:C9().endTitle,endMessage:C9().endMessage,endButton:C9().doneLabel}),Dzt={back:`back-label`,next:`next-label`,skip:`skip-label`,done:`done-label`,mediaPause:`media-pause-label`,mediaPlay:`media-play-label`,endTitle:`end-title`,endMessage:`end-message`,endButton:`end-button`},Ozt=[[`media`,`media`],[`mediaAlt`,`media-alt`],[`mediaPoster`,`media-poster`],[`mediaType`,`media-type`],[`advanceOn`,`advance-on`],[`actionLabel`,`action-label`]],w9={index:null,position:null,total:null},kzt=0,T9=e=>!e?.isConnected||getComputedStyle(e).visibility===`hidden`?!1:e.getClientRects().length>0,E9=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),Azt=()=>{let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e},D9=null,O9=class extends Lc{seenStore;onBeforeStep;_run;_running;_layer;_outer;_shadow;_unbindAdvance;_ending;_seenMark;_steps=[];_progress=YRt(0);_firstIndex=0;_returnFocus=null;_current=null;_moving=!1;_card=null;_spot=null;_live=null;_onKey=null;_onFocusIn=null;static get observedAttributes(){return[`open`]}constructor(){super(),this.seenStore=null,this.onBeforeStep=null,this._run=0,this._running=!1,this._layer=null,this._outer=null,this._shadow=null,this._unbindAdvance=null,this._ending=null,this._seenMark=null}connectedCallback(){this.hasAttribute(`open`)&&this.start()}disconnectedCallback(){this.stop()}attributeChangedCallback(e,t,n){e===`open`&&this.isConnected&&(n===null?this.stop():this.start())}get tourId(){return this.getAttribute(`tour-id`)||``}set tourId(e){e==null||e===``?this.removeAttribute(`tour-id`):this.setAttribute(`tour-id`,String(e))}get isolated(){return this.hasAttribute(`isolated`)}set isolated(e){this.toggleAttribute(`isolated`,e===!0||e===``||e===`true`)}_stepList(){return Array.from(this.querySelectorAll(`:scope > ${wzt}`),e=>{let t={target:e.getAttribute(`target`)||``,title:e.getAttribute(`title`)||void 0,description:(e.textContent??``).trim()};for(let[n,r]of Ozt)e.hasAttribute(r)&&(t[n]=e.getAttribute(r)??``);return t})}_stepAt(e){let t=this._steps[e];if(!t)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);return t}_store(){return this.seenStore?this.seenStore:this.getAttribute(`seen-store`)===`local`?ide():null}_label(e){return this.getAttribute(Dzt[e])||Ezt()[e]}_endDialogText(){if(this.getAttribute(`end-dialog`)===`false`)return null;let e=(this.getAttribute(`end-next-label`)??``).trim(),t=(this.getAttribute(`end-next-href`)??``).trim();return{title:this._label(`endTitle`),message:this._label(`endMessage`),button:this._label(`endButton`),nextLabel:e,nextHref:t}}_markSeen(e){let t=this._store();return t?t.markSeen(this.tourId,e):null}async start(){if(this._running)return;this._running=!0;let e=++this._run;this.hasAttribute(`open`)||this.setAttribute(`open`,``);try{await this._start(e)}catch(t){throw e===this._run&&(this._running=!1),t}}async _start(e){this._steps=this._stepList(),this._progress=YRt(this._steps.length);let t=this._store();if(t&&!this.tourId)throw Error(`<wui-tour> needs a tour-id to use a seen store.`);if(t&&await t.isSeen(this.tourId)){e===this._run&&this._finish(`alreadySeen`);return}for(let[e,t]of this._steps.entries())t.target&&!T9(document.querySelector(t.target))&&this._progress.drop(e);this._returnFocus=document.activeElement;let n=await this._locate(0,1,e);e===this._run&&(n?(this._firstIndex=n.index,this.dispatchEvent(new CustomEvent(`wui-tour:start`,{bubbles:!0,detail:{total:this._progress.total()}})),e===this._run&&(this._build(),this._show(n))):this._finish(`noTargets`))}next(){return this._move(1)}back(){return!this._current||this._current.index<=this._firstIndex?Promise.resolve():this._move(-1)}async goTo(e){if(this._current){if(!Number.isInteger(e)||e<0||e>=this._steps.length)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);await this._go(e,1)}}stop(){this._running&&(this._run++,this._teardown(),this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`))}async _locate(e,t,n){let r=this._steps;for(let i=e;i>=0&&i<r.length;i+=t){let e=r[i];if(!e)break;if(await this._beforeStep(e,i),n!==this._run)return null;if(!e.target)return{index:i,target:null};let t=document.querySelector(e.target),a=t instanceof HTMLElement||t instanceof SVGElement?t:null;if(T9(a))return this._progress.position(i),{index:i,target:a};this._progress.drop(i)}return null}async _beforeStep(e,t){let n=[];this.dispatchEvent(new CustomEvent(`wui-tour:beforestep`,{bubbles:!0,detail:{step:e,index:t,wait:e=>n.push(e)}})),await Promise.all(n),typeof this.onBeforeStep==`function`&&await this.onBeforeStep(e,t)}_build(){let e=`wui-tour-${++kzt}`,t=document.createElement(`div`);t.className=`wui-tour-layer`,t.replaceChildren(q(`div`,{class:`wui-tour-spot`,"aria-hidden":`true`}),q(`div`,{class:`wui-tour-card`,role:`dialog`,tabindex:`-1`,"aria-labelledby":`${e}-title`,"aria-describedby":`${e}-text`},q(`p`,{class:`wui-tour-position`}),q(`h2`,{class:`wui-tour-title`,id:`${e}-title`}),q(`p`,{class:`wui-tour-text`,id:`${e}-text`}),q(`div`,{class:`wui-tour-actions`},q(`button`,{type:`button`,class:`btn btn-sm btn-link wui-tour-skip`}),q(`div`,{class:`wui-tour-nav`},q(`button`,{type:`button`,class:`${Pz(`neutral`,`outline`,`sm`)} wui-tour-back`,"data-wui":Fz}),q(`button`,{type:`button`,class:`${Pz(`primary`,`solid`,`sm`)} wui-tour-next`,"data-wui":Fz})))),q(`div`,{class:`visually-hidden`,role:`status`,"aria-live":`polite`}));let n=t;this._shadow=null,this.isolated&&(n=document.createElement(Tzt),this._shadow=n.attachShadow({mode:`open`}),QRt(this._shadow),this._shadow.appendChild(t)),n.setAttribute(`popover`,`manual`),ba(document).appendChild(n),document.documentElement.setAttribute(vV,``),this._outer=n,this._layer=t;let r=r9(t,`.wui-tour-spot`,HTMLDivElement),i=r9(t,`.wui-tour-card`,HTMLDivElement),a=r9(t,`[role=status]`,HTMLElement);this._spot=r,this._card=i,this._live=a,r9(i,`.wui-tour-skip`,HTMLElement).addEventListener(`click`,()=>this._close(`skipped`,`button`)),r9(i,`.wui-tour-back`,HTMLElement).addEventListener(`click`,()=>this._move(-1)),r9(i,`.wui-tour-next`,HTMLElement).addEventListener(`click`,()=>this._move(1));let o=e=>this._key(e);this._onKey=o;let s=e=>{let t=this._layer;if(!t||this._ending)return;let n=this._current,r=n?this._stepAt(n.index):null;if(!(e.target instanceof Node))throw Error(`<wui-tour> saw a focus change from a non-node target`);ERt(t,r,n?.target??null,e.target)||i.focus()};this._onFocusIn=s,document.addEventListener(`keydown`,o,!0),this._shadow||document.addEventListener(`focusin`,s),na(n,()=>this._follow())}_active(){return this._shadow?this._shadow.activeElement:document.activeElement}_raise(){let e=this._outer;if(!e)throw Error(`<wui-tour> raises a step before its host is built`);let t=ba(this.ownerDocument);e.parentElement!==t&&t.appendChild(e),ya(e)}_show(e){this._current=e;let{index:t,target:n}=e,r=this._stepAt(t),i=this._layer,a=this._spot,o=this._card,s=this._live;if(!i||!a||!o||!s)throw Error(`<wui-tour> shows a step before its layer is built`);this._raise();let c=this._progress.position(t),l=this._progress.total(),u=c===l&&!this._endDialogText(),d=XRt(this,c,l);ZRt(o,{text:d,position:c,total:l}),JRt(o,r,{pause:this._label(`mediaPause`),play:this._label(`mediaPlay`)}),o.toggleAttribute(`data-welcome`,!n);let f=wRt(this,{layer:i,spot:a,card:o},r,n),p=r9(o,`.wui-tour-title`,HTMLElement);p.textContent=r.title||``,p.hidden=!r.title,r9(o,`.wui-tour-text`,HTMLElement).textContent=r.description||``,r9(o,`.wui-tour-skip`,HTMLElement).textContent=this._label(`skip`);let m=r9(o,`.wui-tour-back`,HTMLElement);m.textContent=this._label(`back`),m.hidden=t<=this._firstIndex,r9(o,`.wui-tour-next`,HTMLElement).textContent=this._label(u?`done`:`next`);let h=[d,r.title,r.description].filter(Boolean).join(`. `);s.textContent=f?[h,f].join(/[.!?]$/.test(h)?` `:`. `):h,NRt(o,n),a.removeAttribute(S9),this._place(),ARt(o),this._unbindAdvance?.(),this._unbindAdvance=TRt(r,n,()=>void this._move(1));let g=this._active();(g!==null&&o.contains(g)?!(g instanceof HTMLElement&&g.hidden):this._shadow!==null&&E9(Azt()))||o.focus(),this.dispatchEvent(new CustomEvent(`wui-tour:step`,{bubbles:!0,detail:{step:r,index:t,position:c,total:l}}))}_place(){if(!this._current||!this._layer)return;let e=this._spot,t=this._card;if(!e||!t)throw Error(`<wui-tour> places a step before its layer is built`);PRt(e,t,this._current.target)}_follow(){if(!this._current||!this._layer||this._ending)return;let e=this._spot;if(!e)throw Error(`<wui-tour> follows a step before its spot is built`);let t=e.style.cssText;this._place(),e.style.cssText!==t&&e.setAttribute(S9,``)}async _move(e){this._current&&await this._go(this._current.index+e,e)}async _go(e,t){if(!this._current||this._moving)return;this._moving=!0;let n=this._run;try{let r=await this._locate(e,t,n);if(n!==this._run)return;if(r){let e=this._card;if(!e)throw Error(`<wui-tour> moved with no card showing`);let t=jRt(e);if(t!==null&&await t,n!==this._run)return;this._show(r)}else if(t>0){let e=this._endDialogText(),t=e?await this._showEnd(e):`done`;if(n!==this._run)return;let r=await this._close(t===`next`?`next`:`finished`);if(t===`next`&&r&&e){let t=this.ownerDocument.defaultView;if(!t)throw Error(`<wui-tour> has no window to follow its next link in`);t.location.assign(e.nextHref)}}}finally{this._moving=!1}}_showEnd(e){this._unbindAdvance?.(),this._unbindAdvance=null;let t=this._layer,n=this._spot,r=this._card;if(!t||!n||!r)throw Error(`<wui-tour> ends a tour before its layer is built`);return wRt(this,{layer:t,spot:n,card:r},null,null),n.removeAttribute(S9),this._ending=new AbortController,this._seenMark=this._markSeen(`finished`),HRt(t,e,this._ending.signal)}_key(e){if(!this._layer||this._ending||e.altKey||e.ctrlKey||e.metaKey)return;let t=Qi(e.key,Zi(this));if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),this._close(`skipped`,`escape`);else if(t===`ArrowRight`||t===`ArrowLeft`){if(E9(e.composedPath?.()[0]??e.target))return;if(e.preventDefault(),t===`ArrowRight`)this._move(1);else{let e=this._current;if(!e)throw Error(`<wui-tour> moved back with no step showing`);e.index>this._firstIndex&&this._move(-1)}}else if(e.key===`Tab`&&!this._shadow){let t=this._current,n=this._card;if(!t||!n)throw Error(`<wui-tour> cycled focus with no step showing`);DRt(e,{card:n,active:this._active(),step:this._stepAt(t.index),target:t.target})}}_teardown(){if(!this._layer)return;this._onKey&&document.removeEventListener(`keydown`,this._onKey,!0),this._onFocusIn&&document.removeEventListener(`focusin`,this._onFocusIn);let e=!this._shadow||this._shadow.activeElement!==null||!document.activeElement||document.activeElement===document.body;this._unbindAdvance?.(),this._unbindAdvance=null,this._ending?.abort(),this._ending=null,this._seenMark=null;let t=this._outer;if(ra(t),!t)throw Error(`<wui-tour> has a layer with no host to remove`);MRt(t),document.documentElement.removeAttribute(vV),this._outer=null,this._shadow=null,this._layer=null,this._current=null;let n=this._returnFocus;this._returnFocus=null,e&&n?.isConnected&&(n instanceof HTMLElement||n instanceof SVGElement)&&n.focus()}async _close(e,t=null){let n=this._run,r=this._current,i=r?{index:r.index,position:this._progress.position(r.index),total:this._progress.total()}:w9,a=this._seenMark;this._teardown();let o=e===`next`?`finished`:e,s=!1;try{n===this._run&&await(a??this._markSeen(o)),s=n===this._run}finally{this._finish(e,i,t)}return s}_finish(e,t=w9,n=null){this._run++,this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`),this.dispatchEvent(new CustomEvent(`wui-tour:close`,{bubbles:!0,detail:{reason:e,...t,via:n}}))}}})),Mzt=P({WuiTour:()=>O9}),Nzt=M((()=>{Rc(),jzt(),Ic(`wui-tour`,O9)})),Pzt=[`image`,`video`],Fzt=[`click`],Izt=()=>Promise.resolve().then(()=>(Nzt(),Mzt));function Lzt({ref:e,...t}){let n=Fc(`wui-tour`,Izt),{marker:r,props:i}=U(`AppTour`,t),{open:a,onClose:o,tourId:s,steps:c,seenStore:l,onBeforeStep:u,labels:d,endDialog:p=!0,endNextHref:m,className:g,...v}=i;G(`AppTour`,v);for(let e of c)W(`AppTour`,`steps[].mediaType`,e.mediaType,Pzt),W(`AppTour`,`steps[].advanceOn`,e.advanceOn,Fzt);let y=_(null),b=t=>{y.current=t,typeof e==`function`?e(t):e&&(e.current=t)};h(()=>{let e=y.current;e&&n&&(e.seenStore=l??null,e.onBeforeStep=u??null)},[l,u,n]),h(()=>{let e=y.current;e&&n&&(a?e.setAttribute(`open`,``):e.removeAttribute(`open`))},[a,n]);let S=_(o);return S.current=o,f(()=>{let e=y.current;if(!e)return;let t=e=>{if(!(e instanceof CustomEvent))throw Error(`AppTour: wui-tour:close must be a CustomEvent carrying its detail.`);let{reason:t,index:n,position:r,total:i}=e.detail;S.current?.(t,{index:n,position:r,total:i})};return e.addEventListener(`wui-tour:close`,t),()=>e.removeEventListener(`wui-tour:close`,t)},[]),x(`wui-tour`,{ref:b,"tour-id":s,"back-label":d?.back,"next-label":d?.next,"skip-label":d?.skip,"done-label":d?.done,"progress-label":d?.progress,"advance-label":d?.advance,"media-pause-label":d?.mediaPause,"media-play-label":d?.mediaPlay,"end-title":d?.endTitle,"end-message":d?.endMessage,"end-button":d?.endButton,"end-next-label":d?.endNextLabel,"end-next-href":m,"end-dialog":p===!1?`false`:void 0,class:g||void 0,...r,...v,children:c.map(e=>x(`wui-tour-step`,{target:e.target,title:e.title,media:e.media,"media-alt":e.mediaAlt,"media-poster":e.mediaPoster,"media-type":e.mediaType,"advance-on":e.advanceOn,"action-label":e.actionLabel,children:e.description},`${e.target??``}|${e.description}`))})}var k9={type:`none`},Rzt=(e,t)=>{switch(e){case`ArrowUp`:return t.side===`chosen`&&t.reorderable?{type:`nudge`,delta:-1}:k9;case`ArrowDown`:return t.side===`chosen`&&t.reorderable?{type:`nudge`,delta:1}:k9;case`Home`:return t.side===`chosen`&&t.reorderable?{type:`nudge`,delta:`first`}:k9;case`End`:return t.side===`chosen`&&t.reorderable?{type:`nudge`,delta:`last`}:k9;case`ArrowLeft`:return t.side===`chosen`?{type:`crossList`,to:`available`}:k9;case`ArrowRight`:return t.side===`available`?{type:`crossList`,to:`chosen`}:k9;case` `:case`Enter`:return{type:`drop`};case`Escape`:return{type:`cancelPickUp`};default:return k9}},zzt=e=>{switch(e){case`ArrowDown`:return{type:`move`,to:`next`};case`ArrowUp`:return{type:`move`,to:`prev`};case`Home`:return{type:`move`,to:`first`};case`End`:return{type:`move`,to:`last`};default:return null}},Bzt=(e,t)=>e.key===` `?t.rowDisabled?k9:{type:`tick`}:e.altKey===!0&&e.key===`ArrowRight`?t.side===`available`&&!t.rowDisabled?{type:`transfer`,direction:`toChosen`}:k9:e.altKey===!0&&e.key===`ArrowLeft`&&t.side===`chosen`&&!t.rowDisabled?{type:`transfer`,direction:`toAvailable`}:k9,Vzt=(e,t)=>ni(e)?t.rowDisabled?k9:{type:`transfer`,direction:t.side===`available`?`toChosen`:`toAvailable`}:e.key===` `?t.rowDisabled?k9:{type:`pickUp`}:k9;function Hzt(e,t){return e.key===`Enter`&&!ni(e)||(e.ctrlKey===!0||e.metaKey===!0)&&/^[a-z]$/i.test(e.key)?k9:t.pickedUp?Rzt(e.key,t):zzt(e.key)||(t.layout===`arrows`?Bzt(e,t):Vzt(e,t))}var A9=e=>[...new Set(e)],Uzt=(e,t,n)=>Math.min(Math.max(e,t),n),Wzt=e=>new Map(e.map(e=>[e.id,e]));function Gzt(e,t){let n=Wzt(e),r=new Set,i=[];for(let e of t){let t=n.get(e);t&&!r.has(e)&&(r.add(e),i.push(t))}return{available:e.filter(e=>!r.has(e.id)),chosen:i}}function Kzt(e,t,n,r){let i=Wzt(n),a=A9(e),o=new Set(a),s=[];for(let e of t){let t=i.get(e);t&&t.disabled!==!0&&!o.has(e)&&(o.add(e),s.push(e))}let c=r===void 0?a.length:Uzt(r,0,a.length);return[...a.slice(0,c),...s,...a.slice(c)]}function qzt(e,t){let n=new Set(t);return A9(e).filter(e=>!n.has(e))}function Jzt(e,t,n){let r=A9(e);if(!r.includes(t))return r;let i=r.filter(e=>e!==t);return i.splice(Uzt(n,0,i.length),0,t),i}function Yzt(e,t){let n=t.trim().toLowerCase();return n===``?[...e]:e.filter(e=>e.label.toLowerCase().includes(n)||(e.secondary??``).toLowerCase().includes(n))}function Xzt(e,t,n,r){return t===`chosen`?`${e} added to Chosen, position ${n} of ${r}.`:`${e} removed from Chosen.`}function Zzt({item:e,side:t,action:n,disabled:r}){return S(`span`,{className:`d-flex align-items-center justify-content-between w-100 gap-2`,children:[S(`span`,{children:[e.label,e.secondary?x(`span`,{className:`small text-secondary ms-1`,children:e.secondary}):null]}),x(Ks,{icon:t===`available`?`plus`:`x`,label:n.label(e),disabled:r||e.disabled,onClick:()=>n.onAct(e.id),"data-transfer-row-action":e.id})]})}function Qzt(e){let{side:t,title:n,items:r,totalCount:i,query:a,searchable:o,rowAction:s,reorder:c,disabled:l}=e,u=a.trim()!==``;return S(`div`,{className:`border rounded-3 bg-body d-flex flex-column`,style:{minWidth:0},children:[S(`div`,{className:`d-flex align-items-center justify-content-between px-3 py-2 border-bottom`,children:[S(`span`,{className:`fw-semibold`,children:[n,` `,x(cl,{tone:`neutral`,children:u?r.length:i})]}),x(nl,{variant:`ghost`,tone:`neutral`,size:`sm`,disabled:e.bulkDisabled||l,onClick:e.onBulk,children:e.bulkLabel})]}),o?x(`div`,{className:`p-2`,children:x(eJ,{ariaLabel:e.searchLabel,placeholder:e.searchPlaceholder,value:a,onChange:e.onQueryChange,disabled:l})}):null,S(`div`,{className:`px-2 pb-2`,style:{minHeight:230},children:[c?x(SLt,{ref:e.listRef,ariaLabel:e.listLabel,handle:!0,bordered:!1,disabled:l,items:r.map(e=>({id:e.id,label:e.label,disabled:e.disabled,content:x(Zzt,{item:e,side:t,action:s,disabled:l})})),onReorder:c.onReorder}):x(`section`,{ref:e.listRef,role:`list`,"aria-label":e.listLabel,className:`d-flex flex-column`,children:r.map(e=>x(`div`,{role:`listitem`,"data-id":e.id,"data-disabled":e.disabled?``:void 0,className:`d-flex align-items-center px-1 py-2 border-bottom`,children:x(Zzt,{item:e,side:t,action:s,disabled:l})},e.id))}),r.length===0?u?x(`div`,{className:`small text-secondary p-3 text-center`,children:e.noMatchText}):x(il,{size:`sm`,title:e.emptyTitle,description:e.emptyText}):null]}),e.hint===null?null:x(`div`,{className:`small text-secondary px-3 pb-2`,children:e.hint})]})}var $zt=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]);function eBt({ref:e,...t}){let{marker:n,props:r}=U(`AppTransferList`,t),i=Vs(`transferList`,Bme),{items:a,value:o,defaultValue:s=[],onChange:c,name:l,label:u,helperText:d,error:m,disabled:h=!1,searchable:g=!0,reorderable:y=!0,availableTitle:b=i.availableTitle,chosenTitle:C=i.chosenTitle,addAllLabel:w=i.addAllLabel,removeAllLabel:T=i.removeAllLabel,addLabel:E=i.addLabel,removeLabel:D=i.removeLabel,searchLabel:O=i.searchLabel,searchPlaceholder:k=i.searchPlaceholder,noMatchText:A=i.noMatchText,emptyAvailableTitle:j=i.emptyAvailableTitle,emptyAvailableText:M=i.emptyAvailableText,emptyChosenTitle:N=i.emptyChosenTitle,emptyChosenText:P=i.emptyChosenText,dragHintText:F=i.dragHintText,orderHintText:I=i.orderHintText,id:L,className:R=``,ariaLabel:z,...B}=r;G(`AppTransferList`,B);let V=p(),H=`${V}-label`,ee=m?`${V}-error`:void 0,te=d?`${V}-hint`:void 0,ne=[ee,te].filter(Boolean).join(` `)||void 0,re=o!==void 0,[ie,ae]=v(s),oe=Gzt(a,o??ie),se=oe.chosen.map(e=>e.id),[ce,le]=v(``),[ue,de]=v(``),[W,fe]=v(``),pe=_(!1),me=_(null),he=_(null),ge=_(null);f(()=>{let e=me.current;if(!e)return;me.current=null;let t=(e.side===`chosen`?ge.current:he.current)?.querySelectorAll(`[data-transfer-row-action]`)??[];Array.from(t).find(t=>t.dataset.transferRowAction===e.id)?.focus()});let _e=e=>!$zt(e,se)&&(re||ae(e),c?.(e),!0),ve=(e,t,n)=>{let r=t.filter(e=>a.some(t=>t.id===e&&t.disabled!==!0));if(r.length===0)return;let i=e===`chosen`?Kzt(se,r,a,n):qzt(se,r);if(!_e(i))return;let o=a.find(e=>e.id===r[r.length-1]);o&&fe(Xzt(o.label,e,i.indexOf(o.id)+1,i.length))},ye=(e,t)=>{if(t.to!==ge.current)return;let n=Jzt(se,t.id,t.toIndex),r=a.find(e=>e.id===t.id);_e(n)&&r&&fe(Xzt(r.label,`chosen`,n.indexOf(r.id)+1,n.length))},be=e=>e.nativeEvent.isComposing||e.keyCode===229,xe=(e,t)=>{if(h||!(t.target instanceof HTMLElement))return null;let n=t.target.closest(`[data-id]`)?.dataset.id;if(!n)return null;let r=getComputedStyle(t.currentTarget).direction===`rtl`;return{rowId:n,action:Hzt({key:r&&t.key===`ArrowLeft`?`ArrowRight`:r&&t.key===`ArrowRight`?`ArrowLeft`:t.key,shiftKey:t.shiftKey,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,isComposing:be(t)},{side:e,layout:`rows`,pickedUp:pe.current,reorderable:y,rowDisabled:a.some(e=>e.id===n&&e.disabled===!0)})}},Se=e=>t=>{let n=xe(e,t);if(!n)return;let{rowId:r,action:i}=n;i.type===`drop`||i.type===`cancelPickUp`?(pe.current=!1,i.type===`drop`&&t.preventDefault()):i.type===`crossList`&&(t.preventDefault(),t.stopPropagation(),pe.current=!1,t.target instanceof HTMLElement&&t.target.blur(),me.current={id:r,side:i.to},ve(i.to,[r]))},Ce=e=>t=>{let n=xe(e,t);if(!n)return;let{rowId:r,action:i}=n;if(i.type===`transfer`){t.preventDefault();let e=i.direction===`toChosen`?`chosen`:`available`;me.current={id:r,side:e},ve(e,[r])}else i.type===`pickUp`&&(t.preventDefault(),pe.current=!0)},we=e=>{let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||(pe.current=!1)},Te=e=>{let t=e===`chosen`,n=t?ue:ce,r=Yzt(t?oe.chosen:oe.available,n),i=r.filter(e=>e.disabled!==!0).map(e=>e.id),a=t?C:b,o=t?`available`:`chosen`;return{side:e,title:a,items:r,totalCount:t?oe.chosen.length:oe.available.length,query:n,onQueryChange:t?de:le,searchable:g,searchLabel:K(O,{title:a}),searchPlaceholder:k,noMatchText:K(A,{query:n}),bulkLabel:t?T:w,onBulk:()=>ve(o,i),bulkDisabled:h||i.length===0,emptyTitle:t?N:j,emptyText:t?P:M,hint:y?t?I:F:null,rowAction:{label:e=>K(t?D:E,{name:e.label}),onAct:e=>{me.current={id:e,side:o},ve(o,[e])}},reorder:t&&y?{onReorder:ye}:null,listRef:t?ge:he,listLabel:a,disabled:h}};return S(`div`,{id:L,ref:e,className:`wui-transfer-list d-flex flex-column gap-2${R?` ${R}`:``}`,role:`group`,"aria-labelledby":u?H:void 0,"aria-label":u?void 0:z,"aria-describedby":ne,"aria-disabled":h||void 0,...n,...B,children:[u?x(`div`,{id:H,className:`form-label mb-0`,children:u}):null,S(`div`,{className:`wui-transfer-list-panels`,children:[x(`div`,{onKeyDownCapture:Se(`available`),onKeyDown:Ce(`available`),onBlur:we,children:x(Qzt,{...Te(`available`)})}),x(`div`,{onKeyDownCapture:Se(`chosen`),onKeyDown:Ce(`chosen`),onBlur:we,children:x(Qzt,{...Te(`chosen`)})})]}),l?se.map(e=>x(`input`,{type:`hidden`,name:l,value:e},e)):null,x(Ac,{error:m,hint:d,errorId:ee,hintId:te}),x(`div`,{className:`small text-secondary mt-2`,role:`status`,children:W})]})}function tBt(e,t){switch(e.key){case`ArrowDown`:case`ArrowUp`:case`Enter`:case` `:return CBt;case`Backspace`:return t.searchEmpty&&t.mode===`multiple`?{type:`removeLastChip`}:P9;default:return P9}}function nBt(e,t){let n=t.row,r=n!==null&&!n.hasChildren,i=n!==null&&!n.disabled;switch(e.key){case`ArrowDown`:return{type:`move`,to:`next`};case`ArrowUp`:return{type:`move`,to:`prev`};case`Home`:return{type:`move`,to:`first`};case`End`:return{type:`move`,to:`last`};case`ArrowRight`:return n===null||!n.hasChildren?P9:t.expanded?{type:`focusFirstChild`}:{type:`expand`};case`ArrowLeft`:return n?.hasChildren===!0&&t.expanded?{type:`collapse`}:t.hasParent?{type:`focusParent`}:P9;case` `:return i?t.mode===`multiple`?{type:`toggle`}:r?{type:`choose`}:P9:P9;case`Enter`:return i?t.mode===`multiple`?{type:`toggle`}:r?{type:`choose`}:P9:P9;case`Escape`:return{type:`close`};default:{let t=e.ctrlKey!==!0&&e.metaKey!==!0&&e.altKey!==!0;return e.key.length===1&&t?{type:`typeahead`,char:e.key}:P9}}}function rBt(e,t){return ti(e)?P9:t.open?nBt(e,t):tBt(e,t)}function iBt(e){e.replaceChildren(),e.classList.add(`wui-tree-picker`);let t=q(`div`,{class:`search-wrap`},Zr(`search`,{size:18,className:`search-icon`})),n=q(`input`,{class:`input search-input wui-tree-picker-search`,type:`search`,"data-wui-action":`search`,autocomplete:`off`});t.append(n);let r=q(`ul`,{class:`wui-tree-picker-tree`,role:`tree`}),i=q(`p`,{class:`wui-tree-picker-nomatch`,role:`presentation`});i.hidden=!0;let a=q(`div`,{class:`wui-tree-picker-pane`});a.append(t,r,i);let o=q(`span`,{class:`wui-tree-picker-title`}),s=q(`span`,{class:`badge`}),c=q(`button`,{class:Pz(`neutral`,`ghost`,`sm`),type:`button`,"data-wui-action":`clear`}),l=q(`div`,{class:`wui-tree-picker-rail-head`}),u=q(`span`,{class:`d-inline-flex align-items-center gap-2`});u.append(o,s),l.append(u,c);let d=q(`div`,{class:`wui-tree-picker-rail-body`}),f=q(`div`,{class:`visually-hidden`,role:`status`,"aria-live":`polite`}),p=q(`div`,{class:`wui-tree-picker-rail`});p.append(l,d,f);let m=q(`div`,{class:`wui-tree-picker-surface`});return m.append(a,p),e.append(m),{surface:m,search:n,tree:r,noMatch:i,title:o,count:s,clear:c,body:d,status:f}}function aBt(e,t){let n=t.selection===`multiple`,r=new Map,i=[];for(let e of t.rows){let a=t.checkOf(e),o=q(`li`,{class:`wui-tree-picker-item`,role:`treeitem`,tabindex:e.id===t.focusId?0:-1,"aria-level":e.level+1,"aria-labelledby":`${t.uid}-${e.index}`,"data-id":e.id}),s=t.expanded.has(e.id);e.hasChildren&&o.setAttribute(`aria-expanded`,String(s)),(e.disabled||t.disabled)&&o.setAttribute(`aria-disabled`,`true`),n?o.setAttribute(`aria-checked`,a===`mixed`?`mixed`:String(a===`checked`)):o.setAttribute(`aria-selected`,String(!e.hasChildren&&a===`checked`));let c=q(`div`,{class:`wui-tree-picker-row`,role:`presentation`});if(c.style.setProperty(`--wui-tree-picker-level`,String(e.level)),e.hasChildren){let t=q(`button`,{class:`wui-tree-picker-toggle`,type:`button`,tabindex:-1,"aria-hidden":`true`,"data-wui-action":`expand`,"data-id":e.id},Zr(`chevron-right`,{size:16}));c.append(t)}else c.append(q(`span`,{class:`wui-tree-picker-toggle`,"aria-hidden":`true`}));if(n){let n=q(`input`,{class:`form-check-input wui-tree-picker-check`,type:`checkbox`,tabindex:-1,"aria-hidden":`true`,"data-wui-action":`pick`,"data-id":e.id});n.checked=a===`checked`,n.indeterminate=a===`mixed`,n.disabled=e.disabled||t.disabled,c.append(n)}if(e.icon){let t=q(`span`,{class:`wui-tree-icon`,"aria-hidden":`true`},Zr(e.icon,{size:16}));c.append(t)}let l=q(`span`,{class:`wui-tree-picker-label`,id:`${t.uid}-${e.index}`,"data-wui-action":`pick`,"data-id":e.id});if(l.textContent=e.label,c.append(l),o.append(c),e.hasChildren&&s){let t=q(`ul`,{class:`wui-tree-picker-group`,role:`group`});o.append(t),r.set(e.id,t)}let u=e.parentId===null?void 0:r.get(e.parentId);u?u.append(o):i.push(o)}e.tree.replaceChildren(...i),n?e.tree.setAttribute(`aria-multiselectable`,`true`):e.tree.removeAttribute(`aria-multiselectable`)}function oBt(e,t){let n=q(`li`,{class:`wui-tree-picker-chosen-row`}),r=q(`span`,{class:`wui-tree-picker-chosen-label`});r.textContent=t.label;let i=q(`button`,{class:`btn btn-link btn-sm wui-tree-picker-remove`,type:`button`,"aria-label":K(e.text.removeLabel,{name:t.label}),"data-wui-action":`remove`,"data-id":t.id},Zr(`x`,{size:14}));return i.disabled=e.disabled,n.append(r,i),n}function sBt(e,t){let{text:n}=t;if(e.title.textContent=n.chosenTitle,e.count.textContent=String(t.chosen.length),e.clear.textContent=n.clearAllLabel,e.clear.disabled=t.disabled||t.chosen.length===0,t.chosen.length===0){let t=q(`div`,{class:`wui-tree-picker-empty`}),r=q(`div`,{class:`fw-semibold`});r.textContent=n.emptyTitle;let i=q(`div`,{class:`small text-body-secondary`});i.textContent=n.emptyText,t.append(r,i),e.body.replaceChildren(t);return}let r=new Map;for(let e of t.chosen){let t=e.group??``,n=r.get(t)??{label:e.group,items:[]};n.items.push(e),r.set(t,n)}let i=[];for(let e of r.values()){let n=q(`div`,{class:`wui-tree-picker-chosen-group`});if(e.label!==null){let t=q(`div`,{class:`small text-body-secondary`});t.textContent=e.label,n.append(t)}let r=q(`ul`,{class:`list-unstyled m-0`});r.append(...e.items.map(e=>oBt(t,e))),n.append(r),i.push(n)}e.body.replaceChildren(...i)}function cBt(e){let t=document.activeElement;if(t===e.clear)return`clear`;if(!(t instanceof HTMLButtonElement))return null;let n=[...e.body.querySelectorAll(`[data-wui-action='remove']`)].indexOf(t);return n===-1?null:n}function lBt(e,t){if(t===null)return;let n=e.body.querySelectorAll(`[data-wui-action='remove']`),r=typeof t==`number`?n[Math.min(t,n.length-1)]:void 0;r?r.focus():e.search.focus()}function uBt(e,t){let n=F9.get(e)??iBt(e);F9.set(e,n);let{text:r}=t;n.surface.classList.toggle(`wui-tree-picker-invalid`,t.invalid),n.search.setAttribute(`aria-label`,r.searchLabel),n.search.placeholder=r.searchPlaceholder,n.search.disabled=t.disabled,n.search.value!==t.query&&(n.search.value=t.query),aBt(n,t);let i=t.query.trim()!==``;n.noMatch.hidden=!(i&&t.rows.length===0),n.noMatch.textContent=n.noMatch.hidden?``:K(r.noMatchText,{query:t.query.trim()});let a=cBt(n);sBt(n,t),lBt(n,a),n.status.textContent=t.status}function dBt(e,t,n){let r=[];for(let i of e){if(t.has(i.id))throw Error(`Duplicate tree node id "${i.id}".`);t.add(i.id);let e=wBt(i)?i.disabled===!0?[]:[i.id]:dBt(i.children??[],t,n);n.set(i.id,e),r.push(...e)}return r}function fBt(e,t,n){let r=[],i=(e,a,o)=>{for(let s of e)r.push({id:s.id,label:s.label,icon:s.icon||null,parentId:a,level:o,index:r.length,hasChildren:I9(s)||s.hasChildren===!0,disabled:s.disabled===!0,leafIds:t.get(s.id)??[]}),I9(s)&&n(s.id)&&i(s.children??[],s.id,o+1)};return i(e,null,0),{rows:r,byId:new Map(r.map(e=>[e.id,e]))}}function pBt(e){let t=new Map;return dBt(e,new Set,t),{leavesById:t}}function mBt(e,t){let{leavesById:n}=pBt(e);return fBt(e,n,e=>t.has(e))}function j9(e){let{leavesById:t}=pBt(e);return fBt(e,t,()=>!0)}function hBt(e,t){if(e.leafIds.length===0)return`unchecked`;let n=0;for(let r of e.leafIds)t.has(r)&&(n+=1);return n===0?`unchecked`:n===e.leafIds.length?`checked`:`mixed`}function gBt(e,t){let n=e.byId.get(t);if(n===void 0)throw Error(`Unknown tree node id "${t}".`);return n}function _Bt(e,t,n,r){let i=gBt(j9(e),r),a=[...n];if(t===`single`)return i.hasChildren||i.disabled?a:[r];if(!i.hasChildren)return i.disabled?a:a.includes(r)?a.filter(e=>e!==r):[...a,r];if(i.leafIds.length===0)return a;if(hBt(i,new Set(a))===`checked`){let e=new Set(i.leafIds);return a.filter(t=>!e.has(t))}let o=new Set(a);return[...a,...i.leafIds.filter(e=>!o.has(e))]}function vBt(e,t){let n=[],r=new Set;for(let i of t){let t=e.byId.get(i);t===void 0||t.hasChildren||r.has(i)||(r.add(i),n.push(t))}return n}function yBt(e,t){return vBt(j9(e),t).map(e=>e.id)}function bBt(){return[]}function M9(e,t){return e.filter(e=>e!==t)}function xBt(e,t){return e===`single`?t[0]??``:[...t]}function N9(e,t){let n=t.trim().toLowerCase();if(n===``)return{nodes:[...e],expanded:new Set};let r=new Set,i=e=>{if(I9(e)){r.add(e.id);for(let t of e.children??[])i(t)}},a=e=>{if(e.label.toLowerCase().includes(n))return i(e),e;let t=(e.children??[]).flatMap(e=>{let t=a(e);return t===null?[]:[t]});return t.length===0?null:(r.add(e.id),{...e,children:t})};return{nodes:e.flatMap(e=>{let t=a(e);return t===null?[]:[t]}),expanded:r}}function SBt(e){return Array.isArray(e)}var P9,CBt,F9,I9,wBt,TBt,L9,EBt,DBt,R9,OBt=M((()=>{Za(),Rc(),rH(),qr(),ri(),$i(),xn(),bpe(),Lz(),En(),ei(),P9={type:`none`},CBt={type:`open`},F9=new WeakMap,I9=e=>(e.children?.length??0)>0,wBt=e=>!I9(e)&&e.hasChildren!==!0,TBt=[`nodes`,`values`,`selection`,`name`],L9={chosenTitle:`chosen-title`,clearAllLabel:`clear-all-label`,emptyTitle:`empty-title`,emptyText:`empty-text`,noMatchText:`no-match-text`,removeLabel:`remove-label`,searchLabel:`search-label`,searchPlaceholder:`search-placeholder`,selectedText:`selected-text`},EBt=600,DBt=0,R9=class extends Lc{_uid;_nodes;_hasNodes;_valuesSet;_pending;_values;_expanded;_query;_focusId;_rows;_ready;_typed;_unsubscribe;_onClick;_onInput;_onKeyDown;_onFocusIn;static get observedAttributes(){return[`selection`,`name`,`disabled`,`invalid`,`aria-label`,`aria-labelledby`,...Object.values(L9)]}constructor(){super(),this._uid=`wui-tree-picker-${++DBt}`,this._nodes=[],this._hasNodes=!1,this._valuesSet=!1,this._pending=null,this._values=[],this._expanded=new Set,this._query=``,this._focusId=null,this._rows=[],this._ready=!1,this._typed={text:``,at:0},this._unsubscribe=null,this._onClick=e=>this._handleClick(e),this._onInput=e=>this._handleInput(e),this._onKeyDown=e=>this._handleKeyDown(e),this._onFocusIn=e=>{let t=this._rowIdFrom(e.target);t!==null&&t!==this._focusId&&this._setRoving(t)}}connectedCallback(){let e=new Map;for(let t of TBt)Kr(this,t)&&(e.set(t,Reflect.get(this,t)),Reflect.deleteProperty(this,t));if(!this._ready){this._ready=!0;let e=this._readScript();e&&this._adopt(e)}for(let[t,n]of e)Reflect.set(this,t,n);!this._valuesSet&&this._pending===null&&this.hasAttribute(`values`)&&(this._pending=this._readValuesAttribute(),this._hasNodes&&this._adopt(this._nodes)),this.addEventListener(`click`,this._onClick),this.addEventListener(`input`,this._onInput),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focusin`,this._onFocusIn),this._unsubscribe=mn(()=>this._render()),this._render(),this._syncForm()}disconnectedCallback(){this.removeEventListener(`click`,this._onClick),this.removeEventListener(`input`,this._onInput),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focusin`,this._onFocusIn),this._unsubscribe?.(),this._unsubscribe=null}attributeChangedCallback(e){e===`selection`&&this._normalise(),this._ready&&this.isConnected&&(this._render(),(e===`selection`||e===`name`)&&this._syncForm())}get nodes(){return[...this._nodes]}set nodes(e){this._adopt(e??[]),this._ready&&this.isConnected&&(this._render(),this._syncForm())}get values(){return[...this._values]}set values(e){this._valuesSet=!0,this._pending=null,this._values=(e??[]).map(String),this._normalise(),this._ready&&this.isConnected&&(this._render(),this._syncForm())}get selection(){return this.getAttribute(`selection`)===`single`?`single`:`multiple`}set selection(e){this.setAttribute(`selection`,String(e))}get name(){return this.getAttribute(`name`)}set name(e){e==null?this.removeAttribute(`name`):this.setAttribute(`name`,String(e))}_readScript(){let e=this.querySelector(`:scope > script[type='application/json']`);if(!e)return null;try{let t=JSON.parse(e.textContent??``);return SBt(t)?t:(Xa(`[@webority/ui-elements] <wui-tree-picker> JSON nodes must be an array.`),null)}catch(e){return Xa(`[@webority/ui-elements] <wui-tree-picker> could not read its JSON nodes:`,e instanceof Error?e.message:void 0),null}}_adopt(e){if(!SBt(e))throw Error(`<wui-tree-picker> nodes must be an array.`);let t=j9(e),n=this._pending!==null&&!this._valuesSet?this._checkInitial(t.byId,this._pending):null;this._nodes=e,this._hasNodes=!0,n!==null&&(this._values=n,this._pending=null),this._normalise();let r=new Set(j9(e).rows.map(e=>e.id));for(let e of[...this._expanded])r.has(e)||this._expanded.delete(e);this._focusId!==null&&!r.has(this._focusId)&&(this._focusId=null)}_readValuesAttribute(){let e=this.getAttribute(`values`)??``,t;try{t=JSON.parse(e)}catch(t){throw Error(`<wui-tree-picker> values must be a JSON array of leaf ids, got ${e}.`,{cause:t})}if(!Array.isArray(t)||!t.every(e=>typeof e==`string`))throw Error(`<wui-tree-picker> values must be a JSON array of leaf ids, got ${e}.`);if(this.selection===`single`&&t.length>1)throw Error(`<wui-tree-picker> single selection takes one value, got ${t.length}.`);return t}_checkInitial(e,t){for(let n of t){let t=e.get(n);if(t===void 0||t.hasChildren)throw Error(`<wui-tree-picker> values id "${n}" is not a leaf of the tree.`)}return[...new Set(t)]}_normalise(){if(!this._hasNodes)return;let e=yBt(this._nodes,this._values);this._values=this.selection===`single`?e.slice(0,1):e}_text(){let e=pn(`treePicker`,ype),t=t=>this.getAttribute(L9[t])??e[t];return{chosenTitle:t(`chosenTitle`),clearAllLabel:t(`clearAllLabel`),emptyTitle:t(`emptyTitle`),emptyText:t(`emptyText`),noMatchText:t(`noMatchText`),removeLabel:t(`removeLabel`),searchLabel:t(`searchLabel`),searchPlaceholder:t(`searchPlaceholder`),selectedText:t(`selectedText`)}}_visible(){let e=N9(this._nodes,this._query),t=new Set(this._expanded);for(let n of e.expanded)t.add(n);return mBt(e.nodes,t).rows}_isOpen(e){return this._expanded.has(e)?!0:this._query.trim()!==``&&N9(this._nodes,this._query).expanded.has(e)}_render(){if(!this._ready)return;let e=document.activeElement,t=e instanceof HTMLElement&&this.contains(e)&&e.getAttribute(`role`)===`treeitem`,n=N9(this._nodes,this._query),r=new Set(this._expanded);for(let e of n.expanded)r.add(e);let i=mBt(n.nodes,r).rows;this._rows=i,i.some(e=>e.id===this._focusId)||(this._focusId=i[0]?.id??null);let a=new Set(this._values),o=new Map(j9(this._nodes).rows.map(e=>[e.id,e])),s=this._values.flatMap(e=>{let t=o.get(e);if(t===void 0)return[];let n=t.parentId===null?void 0:o.get(t.parentId);return[{id:e,label:t.label,group:n?.label??null}]}),c=this._text();uBt(this,{rows:i,checkOf:e=>hBt(o.get(e.id)??e,a),focusId:this._focusId,expanded:r,query:this._query,chosen:s,selection:this.selection,disabled:this.hasAttribute(`disabled`),invalid:this.hasAttribute(`invalid`),status:K(c.selectedText,{n:s.length}),text:c,uid:this._uid});let l=this.querySelector(`[role='tree']`),u=this.getAttribute(`aria-label`),d=u?null:this.getAttribute(`aria-labelledby`);u?l?.setAttribute(`aria-label`,u):l?.removeAttribute(`aria-label`),d?l?.setAttribute(`aria-labelledby`,d):l?.removeAttribute(`aria-labelledby`),t&&this._focusRow(this._focusId)}_syncForm(){tH(this,this._values)}_emit(){this.dispatchEvent(new CustomEvent(`wui-tree-picker:change`,{detail:{values:[...this._values],value:xBt(this.selection,this._values)},bubbles:!0,composed:!0}))}_commit(e){let t=yBt(this._nodes,e);t.length===this._values.length&&t.every((e,t)=>e===this._values[t])||(this._values=t,this._render(),this._syncForm(),this._emit())}_rowItems(){return[...this.querySelectorAll(`[role='treeitem']`)]}_rowEl(e){return e===null?void 0:this._rowItems().find(t=>t.dataset.id===e)}_rowIdFrom(e){return!(e instanceof HTMLElement)||e.getAttribute(`role`)!==`treeitem`?null:e.dataset.id??null}_setRoving(e){let t=this._rowEl(this._focusId);t&&(t.tabIndex=-1),this._focusId=e;let n=this._rowEl(e);n&&(n.tabIndex=0)}_focusRow(e){e!==null&&(this._setRoving(e),this._rowEl(e)?.focus())}_pick(e){let t=this._rows.find(t=>t.id===e);t!==void 0&&(this._setRoving(e),this.selection===`single`&&t.hasChildren?this._toggleOpen(e):(this._commit(_Bt(this._nodes,this.selection,this._values,e)),this._focusRow(e)))}_toggleOpen(e){this._expanded.has(e)?this._expanded.delete(e):this._expanded.add(e),this._render()}_handleClick(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`[data-wui-action]`);if(!n||!this.contains(n))return;let r=n.dataset.id??``;switch(n.dataset.wuiAction){case`expand`:this._setRoving(r),this._toggleOpen(r),this._focusRow(r);break;case`pick`:this._pick(r);break;case`remove`:n.focus(),this._commit(M9(this._values,r));break;case`clear`:n.focus(),this._commit(bBt())}}_handleInput(e){if(this.hasAttribute(`disabled`))return;let t=e.target;t instanceof HTMLInputElement&&t.dataset.wuiAction===`search`&&(this._query=t.value,this._render())}_handleKeyDown(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof HTMLElement))return;let n={key:Qi(e.key,Zi(this)),shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,isComposing:ti(e)};if(t instanceof HTMLInputElement&&t.dataset.wuiAction===`search`){this._searchKey(e,n);return}let r=this._rowIdFrom(t);if(r===null)return;let i=this._rows.find(e=>e.id===r);if(i===void 0)return;let a=rBt(n,{mode:this.selection,open:!0,searchEmpty:this._query===``,row:i,expanded:i.hasChildren&&this._isOpen(r),hasParent:i.parentId!==null});if(a.type!==`none`&&a.type!==`open`&&a.type!==`close`)switch(e.preventDefault(),a.type){case`move`:this._move(i,a.to);break;case`expand`:this._expanded.add(r),this._render();break;case`collapse`:this._expanded.delete(r),this._render();break;case`focusParent`:this._focusRow(i.parentId);break;case`focusFirstChild`:{let e=this._rows[i.index+1];e?.parentId===r&&this._focusRow(e.id);break}case`toggle`:case`choose`:this._pick(r);break;case`removeLastChip`:{let e=this._values[this._values.length-1];e!==void 0&&this._commit(M9(this._values,e));break}case`typeahead`:this._typeahead(i,a.char)}}_searchKey(e,t){let n=rBt(t,{mode:this.selection,open:!1,searchEmpty:this._query===``,row:null,expanded:!1,hasParent:!1});if(n.type===`removeLastChip`){let t=this._values[this._values.length-1];if(t===void 0)return;e.preventDefault(),this._commit(M9(this._values,t))}else n.type===`open`&&(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),this._focusRow(this._focusId??this._rows[0]?.id??null))}_move(e,t){let n=this._rows,r=t===`first`?n[0]:t===`last`?n[n.length-1]:n[e.index+(t===`next`?1:-1)];r&&this._focusRow(r.id)}_typeahead(e,t){let n=Date.now(),r=n-this._typed.at>EBt?t:this._typed.text+t;this._typed={text:r,at:n};let i=r.toLowerCase(),a=this._rows,o=r.length===1?e.index+1:e.index;for(let e=0;e<a.length;e++){let t=a[(o+e)%a.length];if(t?.label.toLowerCase().startsWith(i)){this._focusRow(t.id);return}}}}})),kBt=P({WuiTreePicker:()=>R9}),ABt=M((()=>{Rc(),OBt(),Ic(`wui-tree-picker`,R9)})),jBt=[`single`,`multiple`],MBt=()=>Promise.resolve().then(()=>(ABt(),kBt));function NBt(e){return e instanceof HTMLElement&&`values`in e&&`nodes`in e}function PBt(e,t){e.values=Array.isArray(t)?t:t===``?[]:[t]}function FBt({ref:e,...t}){let n=Fc(`wui-tree-picker`,MBt),{marker:r,props:i}=U(`AppTreePicker`,t),{nodes:a,selection:o=`multiple`,value:s,defaultValue:c,onChange:l,name:u,label:d,helperText:m,error:h,required:g,disabled:_,id:v,ariaLabel:y,className:b,chosenTitle:C,clearAllLabel:w,emptyTitle:T,emptyText:E,noMatchText:D,removeLabel:O,searchLabel:k,searchPlaceholder:A,selectedText:j,...M}=i;G(`AppTreePicker`,M),W(`AppTreePicker`,`selection`,o,jBt);let N=p(),P=v||N,F=d?`${P}-label`:void 0,I=h?`${P}-error`:void 0,L=m?`${P}-hint`:void 0,{setRef:R,innerRef:z}=pV({ready:n,ref:e,value:s,defaultValue:c,writeValue:PBt,on:{"wui-tree-picker:change":e=>l?.(e.detail.value,{ids:e.detail.values})}});f(()=>{let e=z.current;n&&NBt(e)&&a!==void 0&&(e.nodes=a)},[a,z,n]);let B=x(`wui-tree-picker`,{ref:R,id:P,selection:o,name:u||void 0,"aria-label":y||void 0,"aria-labelledby":y?void 0:F,"aria-describedby":I||L||void 0,invalid:h?``:void 0,disabled:_?``:void 0,"chosen-title":C||void 0,"clear-all-label":w||void 0,"empty-title":T||void 0,"empty-text":E||void 0,"no-match-text":D||void 0,"remove-label":O||void 0,"search-label":k||void 0,"search-placeholder":A||void 0,"selected-text":j||void 0,className:b||void 0,...M});return S(`div`,{...r,className:`field`,children:[d&&S(`label`,{className:`label`,id:F,htmlFor:P,children:[d,g&&x(Uc,{})]}),B,x(Ac,{error:h,hint:m,errorId:I,hintId:L})]})}function IBt(e){for(let t=e;t&&t!==document.body&&t!==document.documentElement;t=t.parentElement)if(/^(auto|scroll|overlay)$/.test(getComputedStyle(t).overflowY))return t;return null}var z9,LBt,RBt,zBt,BBt,VBt,HBt,UBt,WBt,GBt,B9,KBt=M((()=>{Za(),En(),Rc(),rH(),qr(),ei(),GB(),$i(),a7e(),RB(),xn(),vpe(),z9=()=>pn(`tree`,_pe),LBt=[`none`,`single`,`multiple`],RBt=e=>LBt.some(t=>t===e),zBt=300,BBt=8,VBt=300,HBt=`parentId`,UBt=`:scope > input[data-wui-mirror]`,WBt=[`nodes`,`selection`,`selected`,`values`,`loadChildren`,`loadUrl`,`name`],GBt=0,B9=class extends Lc{_uid;_seq;_roots;_byId;_prev;_staged;_els;_checked;_selected;_focusId;_loader;_list;_live;_ready;_flat;_win;_rowH;_rowMeasured;_box;_unbind;_frame;_nav;_onKeyDown;_onClick;_onFocusIn;static get observedAttributes(){return[`selection`,`selected`,`name`,`aria-label`,`loading-text`,`error-text`]}constructor(){super(),this._uid=`wui-tree-${++GBt}`,this._seq=0,this._roots=[],this._byId=new Map,this._prev=null,this._staged=null,this._els=new Map,this._checked=new Set,this._selected=null,this._focusId=null,this._loader=null,this._list=null,this._live=null,this._ready=!1,this._flat=null,this._win=null,this._rowH=36,this._rowMeasured=!1,this._box=null,this._unbind=null,this._frame=0,this._nav=G6e({getVisibleOptions:()=>[...this._els.values()].map(e=>e.row),getActive:()=>this._visible().findIndex(e=>e.id===this._focusId),setActive:e=>this._focusNode(this._visible()[e]),getCount:()=>this._visible().length,getOptionAt:e=>this._els.get(this._visible()[e]?.id??``)?.row,findByPrefix:e=>this._visible().findIndex(t=>t.label.toLowerCase().startsWith(e)),onEnter:()=>{let e=this._focusId===null?void 0:this._byId.get(this._focusId);e&&this._activate(e)}}),this._onKeyDown=e=>this._handleKeyDown(e),this._onClick=e=>this._handleClick(e),this._onFocusIn=e=>{if(e.target===this._list){this._focusNode(this._focusId===null?void 0:this._byId.get(this._focusId));return}let t=this._nodeFrom(e.target);t&&t.id!==this._focusId&&this._setRoving(t)}}connectedCallback(){let e=new Map;for(let t of WBt)Kr(this,t)&&(e.set(t,Reflect.get(this,t)),Reflect.deleteProperty(this,t));if(!this._ready){this._ready=!0;let e=this._readScript();this.replaceChildren(),this._list=q(`ul`,{class:`wui-tree`}),this._list.setAttribute(`role`,`tree`),this._live=q(`div`,{class:`visually-hidden`,role:`status`,"aria-live":`polite`}),this.append(this._list,this._live),e&&this._adoptAll(e)}for(let[t,n]of e)Reflect.set(this,t,n);this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`click`,this._onClick),this.addEventListener(`focusin`,this._onFocusIn),this._render(),this._loadOpenNodes()}disconnectedCallback(){this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`focusin`,this._onFocusIn),this._unbindWindow(),this._nav.clearTypeahead()}attributeChangedCallback(e,t,n){e===`selected`&&(this._selected=n),this._ready&&this.isConnected&&this._render()}get nodes(){return this._roots.map(e=>e.raw)}set nodes(e){this._adoptAll(e??[]),this._render(),this._loadOpenNodes()}get selection(){let e=this.getAttribute(`selection`);return RBt(e)?e:`none`}set selection(e){this.setAttribute(`selection`,String(e))}get selected(){return this._selected}set selected(e){this._selected=e==null?null:String(e),this._render()}get values(){let e=[],t=n=>{for(let r of n)this._state(r)===`checked`&&e.push(r.id),r.children&&t(r.children)};return t(this._roots),[...e,...[...this._checked].filter(e=>!this._byId.has(e))]}set values(e){this._checked.clear();for(let t of e??[]){let e=this._byId.get(String(t));e?this._setChecked(e,!0):this._checked.add(String(t))}this._render()}get loadChildren(){return this._loader}set loadChildren(e){this._loader=typeof e==`function`?e:null}get loadUrl(){return this.getAttribute(`load-url`)}set loadUrl(e){e==null?this.removeAttribute(`load-url`):this.setAttribute(`load-url`,String(e))}get name(){return this.getAttribute(`name`)}set name(e){e==null?this.removeAttribute(`name`):this.setAttribute(`name`,String(e))}get loadingText(){return this.getAttribute(`loading-text`)??z9().loadingText}set loadingText(e){this.setAttribute(`loading-text`,String(e??``))}get errorText(){return this.getAttribute(`error-text`)??z9().errorText}set errorText(e){this.setAttribute(`error-text`,String(e??``))}_readScript(){let e=this.querySelector(`:scope > script[type='application/json']`);if(!e)return null;try{return JSON.parse(e.textContent??``)}catch(e){return Xa(`[@webority/ui-elements] <wui-tree> could not read its JSON nodes:`,e instanceof Error?e.message:void 0),null}}_adoptAll(e){this._flat=null;let t=this._byId;this._prev=t,this._byId=new Map;let n;try{n=this._adoptStaged(e,null,1)}catch(e){throw this._byId=t,e}finally{this._prev=null}this._roots=n;for(let e of t.keys())this._byId.has(e)||this._checked.delete(e);for(let e of this._roots)this._passChecksDown(e);this._focusId&&!this._byId.has(this._focusId)&&(this._focusId=null)}_adoptStaged(e,t,n){let r=[],i=[];this._staged={ids:r,checks:i};try{let r=this._adopt(e,t,n);for(let e of i)this._checked.add(e);return r}catch(e){for(let e of r)this._byId.delete(e);throw e}finally{this._staged=null}}_adopt(e,t,n){if(!Array.isArray(e))throw Error(`<wui-tree> nodes must be an array.`);return e.map((e,r)=>{let i=e?.id==null?``:String(e.id);if(!i)throw Error(`<wui-tree> every node needs an id.`);if(this._byId.has(i))throw Error(`<wui-tree> node id "${i}" is used twice.`);let a=this._prev?.get(i),o={id:i,raw:e,parent:t,level:n,seq:++this._seq,pos:r,label:e.label==null?i:String(e.label),icon:e.icon||null,badge:e.badge==null||e.badge===``?null:String(e.badge),badgeTone:e.badgeTone||null,disabled:!!e.disabled,hasChildren:!!e.hasChildren,children:null,expanded:a?a.expanded:!!e.expanded,loading:!1,failed:!1};this._byId.set(i,o),this._staged?.ids.push(i);let s=e.children??(e.hasChildren?a?.children?.map(e=>e.raw):void 0);return Array.isArray(s)&&(o.children=this._adopt(s,o,n+1)),o.loading=!!a?.loading&&o.children===null&&o.hasChildren,e.checked&&!a&&this._staged?.checks.push(i),o})}_passChecksDown(e){e.children?.length&&this._checked.has(e.id)&&(this._checked.delete(e.id),this._setChecked(e,!0));for(let t of e.children??[])this._passChecksDown(t)}_loadOpenNodes(){queueMicrotask(()=>{if(this.isConnected)for(let e of[...this._byId.values()])e.expanded&&e.children===null&&e.hasChildren&&!e.loading&&this._load(e)})}_isBranch(e){return e.children?e.children.length>0:e.hasChildren}_visible(){if(this._flat)return this._flat;let e=[],t=n=>{for(let r of n)e.push(r),r.expanded&&r.children&&t(r.children)};return t(this._roots),this._flat=e,e}_state(e){if(e.children?.length){let t=0,n=0;for(let r of e.children){let e=this._state(r);e===`checked`?t++:e===`unchecked`&&n++}return t===e.children.length?`checked`:n===e.children.length?`unchecked`:`mixed`}return this._checked.has(e.id)?`checked`:`unchecked`}_setChecked(e,t){if(e.children?.length)for(let n of e.children)n.disabled||this._setChecked(n,t);else t?this._checked.add(e.id):this._checked.delete(e.id)}_nodeFrom(e){if(!(e instanceof Element))return null;let t=e.closest(`li.wui-tree-item`);if(!t)return null;for(let[e,n]of this._els)if(n.li===t)return this._byId.get(e)??null;return null}_emit(e,t){this.dispatchEvent(new CustomEvent(`wui-tree:${e}`,{detail:t,bubbles:!0,composed:!0}))}_announce(e){this._live&&(this._live.textContent=e)}_setRoving(e){let t=this._focusId===null?void 0:this._els.get(this._focusId);t&&(t.li.tabIndex=-1),this._focusId=e.id;let n=this._els.get(e.id);n&&(n.li.tabIndex=0),this._syncTab()}_syncTab(){this._list&&(this._focusId!==null&&!this._els.has(this._focusId)?this._list.tabIndex=0:this._list.removeAttribute(`tabindex`))}_focusNode(e){e&&(this._win&&!this._els.has(e.id)&&this._reveal(e),this._setRoving(e),this._els.get(e.id)?.li.focus())}_activate(e){e.disabled||(this.selection===`single`&&(this._selected=e.id,this._render(),this._syncForm()),this._emit(`select`,{id:e.id,node:e.raw}))}_enabledLeaves(e){return e.disabled?[]:e.children?.length?e.children.flatMap(e=>this._enabledLeaves(e)):[e]}_toggleCheck(e){let t=this._enabledLeaves(e);if(!t.length)return;let n=!t.every(e=>this._checked.has(e.id));this._setChecked(e,n),this._render(),this._syncForm(),this._emit(`check`,{id:e.id,checked:n,values:this.values})}_toggleExpand(e){!e.disabled&&this._isBranch(e)&&(e.expanded?(e.expanded=!1,this._render()):this._expand(e))}_expand(e){e.expanded=!0,e.children===null?this._load(e):this._render()}async _load(e){if(e.loading)return;e.loading=!0,e.failed=!1,this._announce(this.loadingText),this._render();let t=[],n=null;try{t=await this._fetchChildren(e)}catch(e){n=e}let r=this._byId.get(e.id);if(!r)this._announce(``);else if(r.loading){if(r.loading=!1,!n)try{r.children=this._adoptStaged(t,r,r.level+1),this._passChecksDown(r),this._announce(``)}catch(e){n=e}n&&(r.failed=!0,r.expanded=!1,this._announce(this.errorText),this._emit(`error`,{id:r.id,message:n instanceof Error?n.message:String(n)})),this._render(),this._syncForm()}}async _fetchChildren(e){if(this._loader)return this._loader(e.raw);let t=this.getAttribute(`load-url`);if(!t)throw Error(`<wui-tree> has a node with children to load but no loadChildren or load-url.`);let n=new URL(t,window.location.href);n.searchParams.set(HBt,e.id);let r=await MB(n.href,{headers:{Accept:`application/json`}});if(!r.ok)throw Error(`Loading children answered ${r.kind}.`);return JSON.parse(r.html)}_handleClick(e){let t=e.target;if(!(t instanceof Element))return;let n=this._nodeFrom(t);n&&!n.disabled&&(this._focusNode(n),t.closest(`.wui-tree-toggle`)?this._toggleExpand(n):t.closest(`.wui-tree-check`)?(e.preventDefault(),this._toggleCheck(n)):this._activate(n))}_handleKeyDown(e){if(e.ctrlKey||e.metaKey||e.altKey)return;let t=this._nodeFrom(e.target);if(!t||e.target!==this._els.get(t.id)?.li)return;let n=Qi(e.key,Zi(this));if(n===`ArrowRight`){if(e.preventDefault(),!this._isBranch(t)||t.disabled)return;t.expanded?t.children?.length&&this._focusNode(t.children[0]):this._expand(t)}else n===`ArrowLeft`?(e.preventDefault(),t.expanded&&this._isBranch(t)&&!t.disabled?this._toggleExpand(t):t.parent&&this._focusNode(t.parent)):e.key===` `?(e.preventDefault(),this.selection===`multiple`?this._toggleCheck(t):this.selection===`single`&&this._activate(t)):this._nav.handler(e)}_syncForm(){let e=this.selection;if(e===`multiple`)tH(this,this.values);else if(e===`single`)eH(this,this._selected??``);else for(let e of this.querySelectorAll(UBt))e.remove()}_render(){if(!this._list)return;this._flat=null;let e=document.activeElement,t=!!e&&this._list.contains(e),n=this._visible();n.some(e=>e.id===this._focusId)||(this._focusId=(n.find(e=>e.id===this._selected)??n[0])?.id??null);let r=this.getAttribute(`aria-label`);if(r?this._list.setAttribute(`aria-label`,r):this._list.removeAttribute(`aria-label`),n.length>zBt){this._bindWindow();let e={heights:n7e(n.length,this._rowH),start:0,end:0};this._win=e,this._paint(n,e)}else this._unbindWindow(),this._win=null,this._list.style.paddingTop=``,this._list.style.paddingBottom=``,this._drawRows(n);t&&this._focusId&&this._els.get(this._focusId)?.li.focus(),this._syncForm()}_drawRows(e){this._list&&(this._els=new Map,this._list.replaceChildren(...e.map(e=>this._buildItem(e))),this._syncTab())}_metrics(){let e=this._box,t=this._list?.getBoundingClientRect().top??0,n=e?e.getBoundingClientRect().top:0,r=(e?e.clientHeight:window.innerHeight)||VBt;return{scrollTop:Math.max(0,n-t),viewport:r}}_rangeOf(e){return r7e(e.heights,{...this._metrics(),overscan:BBt})}_draw(e,t){let{start:n,end:r}=this._rangeOf(t);t.start=n,t.end=r,this._drawRows(e.slice(n,r));let i=this._list?.style;i&&(i.paddingTop=`${t.heights.offsetOf(n)}px`,i.paddingBottom=`${t.heights.total()-t.heights.offsetOf(r)}px`)}_measure(e,t){let{heights:n}=t,r=n.indexAt(this._metrics().scrollTop),i=n.offsetOf(r),a=!1;for(let r=t.start;r<t.end;r++){let t=e[r]?.id,i=t===void 0?void 0:this._els.get(t)?.li,o=i?i.getBoundingClientRect().height:0;if(o>0){if(!this._rowMeasured){this._rowMeasured=!0,this._rowH=o;let e=n.estimate;n.setEstimate(o),n.estimate!==e&&(a=!0)}n.set(r,o)&&(a=!0)}}return a?{changed:a,delta:n.offsetOf(r)-i}:{changed:!1,delta:0}}_scrollBy(e){this._box?this._box.scrollTop+=e:window.scrollBy(0,e)}_paint(e,t){this._draw(e,t);for(let n=0;n<2;n++){let{changed:n,delta:r}=this._measure(e,t);if(!n)return;r&&this._scrollBy(r),this._draw(e,t)}}_repaintWindow(){let e=this._win;if(!e||!this._list)return;let{start:t,end:n}=this._rangeOf(e);if(t===e.start&&n===e.end)return;let r=document.activeElement,i=!!r&&this._list.contains(r);this._paint(this._visible(),e),i&&this._focusId&&this._els.get(this._focusId)?.li.focus({preventScroll:!0})}_schedule(){this._frame||=requestAnimationFrame(()=>{this._frame=0,this._repaintWindow()})}_reveal(e){let t=this._win;if(!t)return;let n=this._visible(),r=n.indexOf(e);if(!(r<0))for(let i=0;i<2;i++){let i=this._metrics(),a=i7e(t.heights,r,i);if(Math.abs(a-i.scrollTop)>.5)this._scrollBy(a-i.scrollTop);else if(this._els.has(e.id))break;this._paint(n,t)}}_bindWindow(){if(this._unbind||!this.isConnected)return;let e=IBt(this),t=e??window,n=()=>this._schedule();t.addEventListener(`scroll`,n,{passive:!0});let r=null;e?(r=new ResizeObserver(n),r.observe(e)):window.addEventListener(`resize`,n),this._box=e,this._unbind=()=>{t.removeEventListener(`scroll`,n),r?r.disconnect():window.removeEventListener(`resize`,n)}}_unbindWindow(){this._unbind?.(),this._unbind=null,this._box=null,this._frame&&cancelAnimationFrame(this._frame),this._frame=0}_buildItem(e){let t=e.parent?e.parent.children?.length??0:this._roots.length,n=this.selection,r=this._isBranch(e),i=this._state(e),a=q(`li`,{class:`wui-tree-item`,role:`treeitem`,tabindex:e.id===this._focusId?0:-1,"aria-level":e.level,"aria-setsize":t,"aria-posinset":e.pos+1,"aria-labelledby":`${this._uid}-${e.seq}`,"aria-describedby":e.badge?`${this._uid}-${e.seq}-badge`:null});r&&a.setAttribute(`aria-expanded`,String(e.expanded)),e.disabled&&a.setAttribute(`aria-disabled`,`true`),e.loading&&a.setAttribute(`aria-busy`,`true`),n===`single`&&a.setAttribute(`aria-selected`,String(e.id===this._selected)),n===`multiple`&&a.setAttribute(`aria-checked`,i===`mixed`?`mixed`:String(i===`checked`));let o=q(`div`,{class:`wui-tree-row`,role:`presentation`});o.style.setProperty(`--wui-tree-level`,String(e.level-1)),n===`single`&&e.id===this._selected&&o.classList.add(`wui-tree-row-selected`),e.failed&&o.classList.add(`wui-tree-row-error`);let s=q(`span`,{class:r?`wui-tree-toggle`:`wui-tree-toggle wui-tree-toggle-leaf`,"aria-hidden":`true`});if(r){let e=Zr(`chevron-right`,{size:16});s.replaceChildren(...e?[e]:[])}if(o.append(s),n===`multiple`){let t=q(`input`,{class:`form-check-input wui-tree-check`,type:`checkbox`,tabindex:-1,"aria-hidden":`true`});t.checked=i===`checked`,t.indeterminate=i===`mixed`,t.disabled=e.disabled,t.addEventListener(`mousedown`,e=>e.preventDefault()),o.append(t)}if(e.icon){let t=q(`span`,{class:`wui-tree-icon`,"aria-hidden":`true`}),n=Zr(e.icon,{size:16});t.replaceChildren(...n?[n]:[]),o.append(t)}let c=q(`span`,{class:`wui-tree-label`,id:`${this._uid}-${e.seq}`});if(c.textContent=e.label,o.append(c),e.badge){let t=q(`span`,{class:`badge wui-tree-badge${e.badgeTone&&e.badgeTone!==`neutral`?` badge-${e.badgeTone}`:``}`,id:`${this._uid}-${e.seq}-badge`});t.textContent=e.badge,o.append(t)}return e.loading&&o.append(q(`span`,{class:`wui-tree-spinner`,"aria-hidden":`true`})),a.append(o),this._els.set(e.id,{li:a,row:o}),a}}})),qBt=P({WuiTree:()=>B9}),JBt=M((()=>{Rc(),KBt(),Ic(`wui-tree`,B9)})),YBt=[`none`,`single`,`multiple`],XBt=()=>Promise.resolve().then(()=>(JBt(),qBt));function V9(e){return e instanceof HTMLElement&&`nodes`in e&&`loadChildren`in e&&`selected`in e}function ZBt({ref:e,...t}){let n=Fc(`wui-tree`,XBt),{marker:r,props:i}=U(`AppTreeView`,t),{nodes:a,selection:o,selected:s,onSelect:c,checked:l,onCheck:u,loadChildren:d,loadUrl:p,onLoadError:m,name:h,loadingText:g,errorText:v,ariaLabel:y,id:b,className:S=``,...C}=i;G(`AppTreeView`,C),W(`AppTreeView`,`selection`,o,YBt);let{setRef:w,innerRef:T}=pV({ready:n,ref:e,value:l,readValue:j8e,writeValue:M8e,on:{"wui-tree:check":e=>u?.(e.detail.values,{id:e.detail.id,checked:e.detail.checked}),"wui-tree:select":e=>{c?.(e.detail.id,e.detail.node);let t=e.currentTarget;V9(t)&&s!==void 0&&t.selected!==s&&(t.selected=s)},"wui-tree:error":e=>m?.(e.detail.id,e.detail.message)}});f(()=>{let e=T.current;n&&V9(e)&&a!==void 0&&(e.nodes=a)},[a,T,n]),f(()=>{let e=T.current;n&&V9(e)&&(e.loadChildren=d)},[d,T,n]);let E=_(!1);return f(()=>{let e=T.current;n&&V9(e)&&(s===void 0?(E.current&&(e.selected=null),E.current=!1):(E.current=!0,e.selected!==s&&(e.selected=s)))},[s,T,n]),x(`wui-tree`,{ref:w,id:b||void 0,selection:o||void 0,name:h||void 0,"load-url":p||void 0,"loading-text":g||void 0,"error-text":v||void 0,"aria-label":y||void 0,className:S||void 0,...r,...C})}var H9,QBt=M((()=>{Rc(),H9=class extends Lc{_measure;_resize;_mutation;_ownTabindex;constructor(){super(),this._measure=()=>this.measure(),this._resize=null,this._mutation=null,this._ownTabindex=!1}connectedCallback(){this.measure(),this.addEventListener(`mouseover`,this._measure),typeof ResizeObserver<`u`&&(this._resize=new ResizeObserver(this._measure),this._resize.observe(this)),this._mutation=new MutationObserver(this._measure),this._mutation.observe(this,{childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){this.removeEventListener(`mouseover`,this._measure),this._resize?.disconnect(),this._mutation?.disconnect(),this._resize=null,this._mutation=null}measure(){let e=this.querySelector(`.wui-truncate-text`);e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight?(this.setAttribute(`data-wui-tooltip`,(e.textContent??``).replace(/\s+/g,` `).trim()),this.hasAttribute(`tabindex`)||(this.setAttribute(`tabindex`,`0`),this._ownTabindex=!0)):(this.removeAttribute(`data-wui-tooltip`),this._ownTabindex&&=(this.removeAttribute(`tabindex`),!1)))}}})),$Bt=P({WuiTruncate:()=>H9}),eVt=M((()=>{Rc(),QBt(),Ic(`wui-truncate`,H9)})),tVt=()=>Promise.resolve().then(()=>(eVt(),$Bt));function nVt(e){Fc(`wui-truncate`,tVt);let{marker:t,props:n}=U(`AppTruncate`,e),{children:r,lines:i=1,width:a,style:o,className:s=``,...c}=n;G(`AppTruncate`,c);let l=Number.isInteger(i)&&i>1,u={...l?{"--wui-truncate-lines":i}:null,...a?{"--wui-truncate-width":a}:null,...o};return x(`wui-truncate`,{class:[`wui-truncate`,l&&`wui-truncate-multi`,s].filter(Boolean).join(` `),style:Object.keys(u).length?u:void 0,...t,...c,children:x(`span`,{className:`wui-truncate-text`,children:r})})}var rVt=()=>window.location.reload();function iVt(e){let{marker:t,props:n}=U(`AppUpdateBar`,e),r=Vs(`updateBar`,Vme),{onReload:i=rVt,dismissible:a=!1,onClose:o,className:s=``,description:c=r.description,reloadLabel:l=r.reloadLabel,dismissLabel:u=r.dismissLabel,...d}=n;return G(`AppUpdateBar`,d),S(jve,{tone:`info`,icon:`refresh-cw`,dismissible:a,onClose:o,dismissLabel:u,className:s,...t,...d,children:[x(`span`,{className:`me-3`,children:c}),x(nl,{size:`sm`,onClick:i,children:l})]})}var aVt,oVt,U9,sVt,W9,G9,K9,q9,cVt=M((()=>{En(),Rc(),Ma(),aVt=`wui-whats-new-read`,oVt=`wui-whats-new:`,U9=`data-wui-unread`,sVt=0,W9=e=>{let t=Date.parse(e);return Number.isNaN(t)?-1/0:t},G9=(e,t)=>W9(t)>W9(e)?t:e,K9=(e,t)=>{let n=e.querySelector(t);return n instanceof HTMLElement?n:null},q9=class extends Lc{_doc;_stored;_observer;_onTriggerClick;_closeFocus;static get observedAttributes(){return[`storage-key`,`read-through`,`indicator`]}constructor(){super(),this._doc=null,this._stored=``,this._closeFocus=null,this._observer=null,this._onTriggerClick=()=>this.isOpen?this.close(!0):this.open()}get isOpen(){let e=this._panel;return e!==null&&_a(e)}get _trigger(){return K9(this,`.wui-whats-new-trigger`)}get _panel(){return K9(this,`.wui-whats-new-panel`)}get _dot(){return K9(this,`.wui-whats-new-dot`)}connectedCallback(){this._doc=this.ownerDocument;let e=this._panel,t=this._trigger;e&&t&&(e.id||=`wui-whats-new-${++sVt}`,t.setAttribute(`aria-controls`,e.id),t.setAttribute(`aria-expanded`,`false`),t.addEventListener(`click`,this._onTriggerClick),this._stored=this._load(),this._refresh(),typeof MutationObserver<`u`&&(this._observer=new MutationObserver(()=>this._refresh()),this._observer.observe(e,{childList:!0,subtree:!0})))}disconnectedCallback(){let e=this._panel;e&&(this._closeFocus=!1,ga(e),this._closeFocus=null),this._observer?.disconnect(),this._observer=null,this._trigger?.removeEventListener(`click`,this._onTriggerClick),this._doc=null}attributeChangedCallback(e,t,n){t!==n&&this._doc&&(e===`storage-key`&&(this._stored=this._load()),this._refresh())}open(){let e=wn(this._trigger,`<wui-whats-new> needs its trigger to open.`),t=wn(this._panel,`<wui-whats-new> needs its panel to open.`);this.isOpen||(ha(e,t,{mode:`auto`,clampHeight:!0,onClosed:()=>this._closed()}),e.setAttribute(`aria-expanded`,`true`),t.focus({preventScroll:!0}),this._markRead())}close(e){let t=this._panel;t&&this.isOpen&&(this._closeFocus=e,ga(t))}_closed(){let e=this._closeFocus??this._panel?.contains(this.ownerDocument.activeElement)??!1;this._closeFocus=null,this._settle(e)}_settle(e){this._trigger?.setAttribute(`aria-expanded`,`false`),this._refresh(),e&&this._trigger?.focus()}_entries(){let e=[];for(let t of this.querySelectorAll(`.wui-whats-new-entry`))t instanceof HTMLElement&&e.push({entry:t,date:t.querySelector(`time[datetime]`)?.getAttribute(`datetime`)??``});return e}_newest(){return this._entries().reduce((e,{date:t})=>G9(e,t),``)}_seenPoint(){return G9(this._stored,this.getAttribute(`read-through`)??``)}_refresh(){let e=this._seenPoint(),t=this._entries(),n=0;for(let{entry:r,date:i}of t){let t=W9(i)>W9(e);t&&n++,this.isOpen&&r.hasAttribute(U9)||r.toggleAttribute(U9,t)}this.toggleAttribute(U9,n>0);let r=this._dot;r&&(r.textContent=this.getAttribute(`indicator`)===`count`&&n>0?String(n):``)}_markRead(){let e=this._newest();!e||W9(e)<=W9(this._seenPoint())||(this._stored=G9(this._stored,e),this._save(this._stored),this._refresh(),this.dispatchEvent(new CustomEvent(`wui-whats-new-read`,{bubbles:!0,detail:{through:e}})))}_storage(){let e=this.getAttribute(`storage-key`);if(!e)return null;try{let t=this.ownerDocument.defaultView;return t?{store:t.localStorage,key:oVt+e}:null}catch{return null}}_load(){let e=this._storage();return e?e.store.getItem(e.key)??``:this._stored}_save(e){let t=this._storage();t&&t.store.setItem(t.key,e)}}})),lVt=P({WHATS_NEW_READ_EVENT:()=>aVt,WuiWhatsNew:()=>q9}),uVt=M((()=>{Rc(),cVt(),Ic(`wui-whats-new`,q9)})),dVt=[`dot`,`count`],fVt=()=>Promise.resolve().then(()=>(uVt(),lVt)),pVt=e=>typeof e==`object`&&!!e&&`through`in e&&typeof e.through==`string`;function mVt(e){Fc(`wui-whats-new`,fVt);let{marker:t,props:n}=U(`AppWhatsNew`,e),r=Vs(`whatsNew`,Hme),{entries:i=[],storageKey:a,readThrough:o,indicator:s=`dot`,label:c=r.label,unreadLabel:l=r.unreadLabel,emptyText:u=r.emptyText,onRead:d,linkComponent:p,className:m=``,...h}=n;G(`AppWhatsNew`,h),W(`AppWhatsNew`,`indicator`,s,dVt);let g=_(null),v=_(d);return v.current=d,f(()=>{let e=g.current;if(!e)return;let t=e=>{let t=e instanceof CustomEvent?e.detail:void 0;if(!pVt(t))throw Error(`wui-whats-new-read carried no read-through date`);v.current?.(t.through)};return e.addEventListener(`wui-whats-new-read`,t),()=>e.removeEventListener(`wui-whats-new-read`,t)},[]),S(`wui-whats-new`,{ref:g,class:[`wui-whats-new`,m].filter(Boolean).join(` `),"storage-key":a||void 0,"read-through":o||void 0,indicator:s,...t,...h,children:[S(`button`,{type:`button`,className:`u-action wui-whats-new-trigger`,"aria-haspopup":`dialog`,children:[x(J,{name:`gift`,size:20}),x(`span`,{className:`wui-whats-new-name`,children:c}),x(`span`,{className:`wui-whats-new-unread`,children:` ${l}`}),x(`span`,{className:`wui-whats-new-dot`,"aria-hidden":`true`})]}),S(`div`,{className:`wui-whats-new-panel`,popover:`auto`,role:`dialog`,"aria-label":c,tabIndex:-1,children:[x(`h2`,{className:`wui-whats-new-title`,children:c}),i.length>0?x(`ol`,{className:`wui-whats-new-list`,children:i.map((e,t)=>S(`li`,{className:`wui-whats-new-entry`,children:[x(`time`,{className:`wui-whats-new-date`,dateTime:e.date,children:Fn(e.date)}),x(`h3`,{className:`wui-whats-new-entry-title`,children:e.title}),e.body&&x(`p`,{className:`wui-whats-new-body`,children:e.body}),e.imageSrc&&x(`img`,{className:`wui-whats-new-image`,src:e.imageSrc,alt:e.imageAlt??``,width:e.imageWidth,height:e.imageHeight,loading:`lazy`}),e.href&&x(hVt,{entry:e,linkComponent:p})]},e.id??`${e.date}-${t}`))}):x(`p`,{className:`wui-whats-new-empty`,children:u})]})]})}function hVt({entry:e,linkComponent:t}){let n=Vs(`whatsNew`,Hme),r=gs(t,{href:e.href});return x(_s,{link:r,className:`wui-whats-new-link`,children:e.linkLabel||n.linkLabel})}var J9,gVt,Y9,_Vt,vVt,X9,Z9,yVt,Q9,$9,bVt=M((()=>{Rc(),En(),xn(),Za(),Lz(),ei(),Vue(),xpe(),J9=()=>pn(`wizard`,Rs),gVt=`wui-wizard-step`,Y9=`:scope > [data-wui-glyphs]`,_Vt=()=>({done:J9().doneLabel,active:J9().activeLabel,pending:J9().pendingLabel,error:J9().errorLabel,skipped:J9().skippedLabel}),vVt=[`data-nav`,`data-step`,`data-close`],X9=new WeakSet,Z9=class extends Lc{_active;_skipped;_invalid;_finished;_rendered;_reflecting;_beforeNext;_header;_footer;_chromeInserted;_topBar;_onTopBarClick;_onHeaderClick;_onFooterClick;_known;_observer;_glyphs;_glyphObserver;static get observedAttributes(){return[`active`,`variant`,`orientation`,`align`,`icon-size`,`non-linear`,`hide-stepper`,`hide-connectors`,`disabled`,`skippable`,`label`,`back-label`,`next-label`,`skip-label`,`finish-label`,`top-bar`,`bar-title`,`close-label`]}constructor(){super(),this._active=0,this._skipped=new Set,this._invalid=new Set,this._finished=!1,this._rendered=!1,this._reflecting=!1,this._beforeNext=null,this._header=document.createElement(`nav`),this._header.className=`stepper wizard-stepper`,this._footer=document.createElement(`div`),this._footer.className=`form-actions wizard-footer form-actions-between`,this._chromeInserted=!1,this._topBar=null,this._onTopBarClick=e=>{let t=e.target;t instanceof Element&&t.closest(`[data-close]`)&&this.dispatchEvent(new CustomEvent(`wui-wizard:close`,{detail:{index:this._active},bubbles:!0}))},this._known=[],this._observer=null,this._glyphs=null,this._glyphObserver=null}get active(){return this._active}set active(e){let t=Number.parseInt(String(e),10);Number.isFinite(t)&&this._go(t,`set`)}get beforeNext(){return this._beforeNext}set beforeNext(e){this._beforeNext=typeof e==`function`?e:null}get _steps(){return[...this.querySelectorAll(`:scope > ${gVt}`)].filter(e=>e instanceof HTMLElement)}refresh(){this._rendered&&this._renderChrome()}connectedCallback(){if(this._rendered)this._wire(),this._onStepsMutated();else{let e=Number.parseInt(this.getAttribute(`active`)??``,10);this._active=Number.isFinite(e)&&e>=0?e:0,this.render()}}disconnectedCallback(){this._teardown()}attributeChangedCallback(e,t,n){if(this._rendered&&!this._reflecting){if(e===`active`){let e=Number.parseInt(n??``,10);Number.isFinite(e)&&this._go(e,`set`)}else this._renderChrome()}}render(){let e=this._steps;if(!this._chromeInserted){let t=e[0],n=e[e.length-1];t&&n?(this.insertBefore(this._header,t),n.after(this._footer)):(this.prepend(this._header),this.append(this._footer)),this._chromeInserted=!0}this._known=e,this._renderChrome(),this._rendered=!0,this._wire()}_renderChrome(){let e=this._reconcileSteps();this._placeChrome(e),this._clampActive(e),this._syncPanels(e);let t=this._focusedControl();this._syncTopBar(e),this._header.replaceChildren(...this._headerNodes(e)),this._footer.replaceChildren(...this._footerNodes(e)),this._header.hidden=this.hasAttribute(`hide-stepper`),this._restoreFocus(t)}_focusedControl(){let e=document.activeElement;if(!e||![this._topBar,this._header,this._footer].some(t=>t?.contains(e)))return null;let t=vVt.find(t=>e.hasAttribute(t));return t?{attr:t,value:e.getAttribute(t)}:null}_restoreFocus(e){if(e)for(let t of[this._topBar,this._header,this._footer]){let n=t&&[...t.querySelectorAll(`[${e.attr}]`)].find(t=>t.getAttribute(e.attr)===e.value);if(n){n instanceof HTMLElement&&!(n instanceof HTMLButtonElement&&n.disabled)&&n.focus({preventScroll:!0});return}}}_syncTopBar(e){if(!this.hasAttribute(`top-bar`)){this._topBar?.removeEventListener(`click`,this._onTopBarClick),this._topBar?.remove(),this._topBar=null;return}this._topBar||(this._topBar=document.createElement(`div`),this._topBar.className=`wui-wizard-topbar`,this._rendered&&this._topBar.addEventListener(`click`,this._onTopBarClick)),this._header.previousElementSibling!==this._topBar&&this.insertBefore(this._topBar,this._header);let t=this.getAttribute(`bar-title`)||``,n=this.getAttribute(`close-label`)||J9().closeLabel,r=e.length?[q(`span`,{class:`wui-wizard-topbar-count`},K(J9().stepOfText,{position:this._active+1,total:e.length}))]:[];this._topBar.replaceChildren(q(`span`,{class:`wui-wizard-topbar-title`},t||null),...r,q(`button`,{type:`button`,class:`wui-wizard-topbar-close`,"data-close":!0,"aria-label":n},this._glyph(`x`)))}_clampActive(e){let t=Math.max(0,e.length-1);this._active>t&&(this._active=t),this._active<0&&(this._active=0)}_reconcileSteps(){let e=this._steps,t=this._known;if(this._known=e,Q9(e,t))return e;let n=n=>new Set([...n].map(n=>{let r=t[n];return r?e.indexOf(r):-1}).filter(e=>e>=0));this._skipped=n(this._skipped),this._invalid=n(this._invalid);let r=t[this._active];if(!r)return e;let i=e.indexOf(r);if(i<0){let n=t=>e.includes(t),r=t.slice(this._active+1).find(n)??t.slice(0,this._active).reverse().find(n);i=r?e.indexOf(r):this._active}return i=Math.min(i,Math.max(0,e.length-1)),i!==this._active&&(this._active=i,this._reflectActive(i)),e}_placeChrome(e){let t=e[0],n=e[e.length-1];t&&n&&(this._header.nextElementSibling!==t&&this.insertBefore(this._header,t),this._footer.previousElementSibling!==n&&n.after(this._footer))}_onStepsMutated(){if(!this._rendered)return;let e=this._steps,t=!e.length||this._header.nextElementSibling===e[0]&&this._footer.previousElementSibling===e[e.length-1];this.querySelector(Y9)!==this._glyphs&&(this._watchGlyphs(),this._renderHeader()),t&&Q9(e,this._known)||(this._renderChrome(),this._observer?.takeRecords())}_syncPanels(e){e.forEach((e,t)=>{let n=t===this._active;e.classList.add(`wizard-panel`),e.hidden=!n,e.setAttribute(`role`,`tabpanel`),e.setAttribute(`aria-hidden`,n?`false`:`true`)})}_stepStatus(e,t){let n=e?.getAttribute(`status`);if(n){if(!yVt(n))throw Error(`wui-wizard: status "${n}" is not one of pending, active, done, error, skipped.`);return n}return this._invalid.has(t)?`error`:this._finished?`done`:t===this._active?`active`:t<this._active?this._skipped.has(t)?`skipped`:`done`:`pending`}_headerNodes(e){let t=this.getAttribute(`variant`)===`journey`,n=this.getAttribute(`variant`)===`icons`,r=this.getAttribute(`variant`)===`tiles`,i=this.getAttribute(`orientation`)===`vertical`,a=!this.hasAttribute(`hide-connectors`),o=this.getAttribute(`align`)===`start`;this._header.className=[`stepper`,`wizard-stepper`,t&&`stepper-journey`,n&&`stepper-icons`,r&&`wui-step-tiles`,i&&`stepper-vertical`,!a&&`wui-stepper-no-connectors`,o&&`wui-stepper-start`].filter(Boolean).join(` `),this._header.setAttribute(`aria-label`,this.getAttribute(`label`)||J9().label);let s=this.hasAttribute(`non-linear`);for(let t of e)t.getAttribute(`label`)||X9.has(t)||(X9.add(t),Ya(`wui-wizard: a <wui-wizard-step> needs a label attribute; its header segment is empty.`));let c=Bue(e.map(e=>({label:e.getAttribute(`label`)||``,icon:e.getAttribute(`icon`)||void 0})),{statusOf:t=>this._stepStatus(e[t],t),journey:t,connectors:a}),l=_Vt(),u=c.flatMap(i=>{let a=i.index,o=e[a];if(!o)return[];let c=i.status,u=o.getAttribute(`label`)||null,d=o.getAttribute(`description`)||``,f=a+1,p=`icon`in i.glyph?this._glyph(i.glyph.icon):i.glyph.number,m=i.className,h=i.current?`step`:void 0,g=s||a<this._active;if(r){let e=[q(`span`,{class:`step-circle`},p),q(`span`,{class:`step-text`},q(`span`,{class:`step-label`},u),q(`span`,{class:`wui-step-tile-state`},l[c]??null))],t=g?q(`button`,{type:`button`,class:`wui-step-tile-body`,"data-step":a,"aria-current":h},...e):q(`div`,{class:`wui-step-tile-body`,"aria-current":h},...e);return[q(`li`,{class:c===`pending`?`wui-step-tile`:`wui-step-tile ${c}`},t)]}let _=d?[q(`span`,{class:`step-desc`},d)]:[],v;v=t?[q(`span`,{class:`step-circle`},p),q(`span`,{class:`step-text`},q(`span`,{class:`step-index`},K(J9().stepText,{position:f})),q(`span`,{class:`step-label`},u),..._)]:n?[q(`span`,{class:`step-circle`},p),q(`span`,{class:`step-index`},K(J9().stepText,{position:f})),q(`span`,{class:`step-label`},u),..._]:[q(`span`,{class:`step-circle`},p),q(`span`,{class:`step-label`},u),..._];let y=g?q(`button`,{type:`button`,class:m,"data-step":a,"aria-current":h},...v):q(`div`,{class:m,"aria-current":h},...v);return i.line?[y,q(`span`,{class:`step-line${i.line.done?` done`:``}`,"aria-hidden":`true`})]:[y]});return r?[q(`ol`,null,...u)]:u}_footerNodes(e){let t=this._active,n=e.length-1,r=this.hasAttribute(`disabled`),i=e[t]?.hasAttribute(`optional`)||this.hasAttribute(`skippable`),a=this.getAttribute(`back-label`)||J9().backLabel,o=this.getAttribute(`next-label`)||J9().nextLabel,s=this.getAttribute(`skip-label`)||J9().skipLabel,c=this.getAttribute(`finish-label`)||J9().finishLabel;return[t>0?q(`button`,{type:`button`,class:Pz(`primary`,`soft`,`md`),"data-nav":`back`,disabled:r,"data-wui":Fz},Zr(`arrow-left`,{className:`me-2`}),a):q(`span`),q(`span`,{class:`wizard-footer-actions`},i&&t<n?q(`button`,{type:`button`,class:Pz(`neutral`,`soft`,`md`),"data-nav":`skip`,disabled:r,"data-wui":Fz},s):null,t<n?q(`button`,{type:`button`,class:Pz(`primary`,`solid`,`md`),"data-nav":`next`,disabled:r,"data-wui":Fz},o,Zr(`arrow-right`,{className:`ms-2`})):q(`button`,{type:`button`,class:Pz(`primary`,`solid`,`md`),"data-nav":`finish`,disabled:r,"data-wui":Fz},c))]}_wire(){this._teardown(),this._onHeaderClick=e=>{let t=e.target instanceof Element?e.target.closest(`[data-step]`):null;t instanceof HTMLElement&&this.contains(t)&&this._stepTo(Number.parseInt(t.dataset.step??``,10))},this._onFooterClick=e=>{let t=e.target instanceof Element?e.target.closest(`[data-nav]`):null;if(!(t instanceof HTMLElement)||!this.contains(t)||this.hasAttribute(`disabled`))return;let n=t.dataset.nav;n===`back`?this._back():n===`skip`?this._skip():(n===`next`||n===`finish`)&&this._next()},this._header.addEventListener(`click`,this._onHeaderClick),this._footer.addEventListener(`click`,this._onFooterClick),this._topBar?.addEventListener(`click`,this._onTopBarClick),this._observer=new MutationObserver(()=>this._onStepsMutated()),this._observer.observe(this,{childList:!0}),this._watchGlyphs()}_glyph(e){let t=this.querySelector(Y9),n=t&&[...t.children].find(t=>t.getAttribute(`data-icon`)===e);if(n)return n.cloneNode(!0);let r=Number.parseInt(this.getAttribute(`icon-size`)??``,10);return Zr(e,r>0?{size:r}:void 0)}_watchGlyphs(){this._glyphObserver?.disconnect(),this._glyphObserver=null,this._glyphs=this.querySelector(Y9),this._glyphs&&(this._glyphObserver=new MutationObserver(()=>this._renderHeader()),this._glyphObserver.observe(this._glyphs,{childList:!0,subtree:!0,attributes:!0,characterData:!0}))}_renderHeader(){if(!this._rendered)return;let e=this._focusedControl();this._header.replaceChildren(...this._headerNodes(this._steps)),this._restoreFocus(e)}_teardown(){this._header&&this._onHeaderClick&&this._header.removeEventListener(`click`,this._onHeaderClick),this._footer&&this._onFooterClick&&this._footer.removeEventListener(`click`,this._onFooterClick),this._topBar?.removeEventListener(`click`,this._onTopBarClick),this._observer?.disconnect(),this._observer=null,this._glyphObserver?.disconnect(),this._glyphObserver=null}_stepTo(e){this.hasAttribute(`disabled`)||!this.hasAttribute(`non-linear`)&&e>=this._active||this._go(e,`step`)}_back(){this._active>0&&this._go(this._active-1,`back`)}async _next(){this._reconcileSteps();let e=this._active,t=this._steps,n=e>=t.length-1,r=t[e];if(!this.dispatchEvent(new CustomEvent(`wui-wizard:beforechange`,{detail:n?{index:e,next:e,reason:`finish`}:{index:e,next:e+1,reason:`next`},cancelable:!0})))return this._flagInvalid(e);if(this._beforeNext){let i;try{i=await this._beforeNext(e)}catch{i=!1}if(this._reconcileSteps(),t=this._steps,e=r?t.indexOf(r):-1,e<0)return;if(n=e>=t.length-1,i===!1)return this._flagInvalid(e)}if(this._invalid.delete(e),this._skipped.delete(e),n)return this._finish();this._go(e+1,`next`)}_skip(){let e=this._active,t=this._steps;(t[e]?.hasAttribute(`optional`)||this.hasAttribute(`skippable`))&&(this._invalid.delete(e),this._skipped.add(e),this.dispatchEvent(new CustomEvent(`wui-wizard:skip`,{detail:{index:e}})),e>=t.length-1?this._finish():this._go(e+1,`skip`))}_flagInvalid(e){this._invalid.add(e),this._renderChrome(),this.dispatchEvent(new CustomEvent(`wui-wizard:invalid`,{detail:{index:e}}))}_finish(){this._invalid.delete(this._active),this._finished=!0,this._renderChrome(),this.dispatchEvent(new CustomEvent(`wui-wizard:finish`,{detail:{index:this._active}}))}_go(e,t){let n=this._reconcileSteps(),r=Math.max(0,n.length-1),i=Math.min(Math.max(e,0),r),a=this._active;this._finished=!1,this._invalid.delete(a),this._active=i,this._reflectActive(i),this._renderChrome(),t!==`silent`&&i!==a&&this.dispatchEvent(new CustomEvent(`wui-wizard:change`,{detail:{index:i,previous:a,reason:t}}))}_reflectActive(e){this._reflecting=!0,this.setAttribute(`active`,String(e)),this._reflecting=!1}},yVt=e=>e===`pending`||e===`active`||e===`done`||e===`error`||e===`skipped`,Q9=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),$9=class extends Lc{static get observedAttributes(){return[`label`,`description`,`optional`,`icon`,`status`]}attributeChangedCallback(){let e=this.closest(`wui-wizard`);e&&`refresh`in e&&typeof e.refresh==`function`&&e.refresh()}}})),xVt=P({WuiWizard:()=>Z9,WuiWizardStep:()=>$9}),SVt=M((()=>{Rc(),bVt(),Ic(`wui-wizard-step`,$9),Ic(`wui-wizard`,Z9)})),CVt=[`steps`,`journey`,`icons`,`tiles`],wVt=Hs.filter(e=>e!==`neutral`),TVt=[`horizontal`,`vertical`],EVt=[`center`,`start`],DVt=[`done`,`active`,`pending`,`error`],OVt=[`key`,`label`,`description`,`optional`,`icon`,`status`],kVt=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],AVt=[`check`,`alert-triangle`,`minus`],jVt=[`sm`,`md`,`lg`],MVt={sm:14,md:16,lg:20},NVt=()=>Promise.resolve().then(()=>(SVt(),xVt)),PVt=new Set,FVt=()=>{try{return!1}catch{return!0}};function IVt(e){if(!Array.isArray(e))throw Error(`AppWizard: steps must be an array of { label, description?, optional?, icon?, status?, key? } objects.`);e.forEach((e,t)=>{if(typeof e!=`object`||!e)throw Error(`AppWizard: steps[${t}] needs a text label.`);let n=`label`in e?e.label:void 0;if(typeof n!=`string`||n.trim()===``)throw Error(`AppWizard: steps[${t}] needs a text label.`);if(FVt())for(let n of Object.keys(e)){if(OVt.includes(n))continue;let e=`AppWizard: steps[${t}] has an unknown field ${n}; the fields are ${OVt.join(`, `)}.`;PVt.has(e)||(PVt.add(e),ce(e))}})}function LVt({ref:e,...t}){let r=Fc(`wui-wizard`,NVt),{marker:i,props:a}=U(`AppWizard`,t),o=Vs(`wizard`,Rs),{steps:s=[],children:c,active:l,defaultActive:u=0,onStepChange:d,onFinish:p,onSkip:m,beforeNext:h,onInvalid:g,onClose:v,variant:y=`steps`,tone:b,doneTone:C,orientation:w=`horizontal`,align:T=`center`,iconVariant:E,size:D=`md`,iconSize:O,skippable:k=!1,nonLinear:A=!1,hideStepper:j=!1,hideConnectors:M=!1,disabled:N=!1,label:P=o.label,backLabel:F=o.backLabel,nextLabel:I=o.nextLabel,skipLabel:L=o.skipLabel,finishLabel:R=o.finishLabel,topBar:z=!1,barTitle:B,closeLabel:V=o.closeLabel,className:H=``,...ee}=a;G(`AppWizard`,ee),W(`AppWizard`,`variant`,y,CVt),W(`AppWizard`,`tone`,b,wVt),W(`AppWizard`,`doneTone`,C,wVt),W(`AppWizard`,`orientation`,w,TVt),W(`AppWizard`,`align`,T,EVt),W(`AppWizard`,`iconVariant`,E,kVt),W(`AppWizard`,`size`,D,jVt),IVt(s);let te=O!==void 0&&O>0?O:MVt[D]??MVt.md;for(let e of s)W(`AppWizard`,`steps[].status`,e.status,DVt);let ne=_(null),re=t=>{ne.current=t,typeof e==`function`?e(t):e&&(e.current=t)},ie=n.toArray(c),ae=E&&E!==`linear`?[...new Set([...AVt,...s.map(e=>e.icon).filter(e=>!!e)])]:[],oe=[b&&`wui-step-tone-${b}`,C&&`wui-step-done-tone-${C}`,D!==`md`&&jVt.includes(D)&&`wui-step-size-${D}`,H].filter(Boolean).join(` `),se=_(l===void 0?u:l);return f(()=>{let e=ne.current;e&&r&&se.current&&(e.active=se.current)},[r]),f(()=>{let e=ne.current;e&&r&&l!==void 0&&Number(e.active)!==l&&(e.active=l)},[l,r]),f(()=>{let e=ne.current;e&&r&&(e.beforeNext=h??null)},[h,r]),f(()=>{let e=ne.current;if(!e)return;let t=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:change must be a CustomEvent carrying its detail.`);let t=e.detail;d?.(t.index,t)},n=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:finish must be a CustomEvent carrying its detail.`);let t=e.detail;p?.(t)},r=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:skip must be a CustomEvent carrying its detail.`);let t=e.detail;m?.(t.index)},i=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:invalid must be a CustomEvent carrying its detail.`);let t=e.detail;g?.(t.index)},a=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:close must be a CustomEvent carrying its detail.`);let t=e.detail;v?.(t)};return e.addEventListener(`wui-wizard:change`,t),e.addEventListener(`wui-wizard:finish`,n),e.addEventListener(`wui-wizard:skip`,r),e.addEventListener(`wui-wizard:invalid`,i),e.addEventListener(`wui-wizard:close`,a),()=>{e.removeEventListener(`wui-wizard:change`,t),e.removeEventListener(`wui-wizard:finish`,n),e.removeEventListener(`wui-wizard:skip`,r),e.removeEventListener(`wui-wizard:invalid`,i),e.removeEventListener(`wui-wizard:close`,a)}},[d,p,m,g,v]),S(`wui-wizard`,{ref:re,variant:y,orientation:w,align:T===`start`?`start`:void 0,"icon-size":te===16?void 0:te,skippable:k?``:void 0,"non-linear":A?``:void 0,"hide-stepper":j?``:void 0,"hide-connectors":M?``:void 0,disabled:N?``:void 0,label:P,"back-label":F,"next-label":I,"skip-label":L,"finish-label":R,"top-bar":z?``:void 0,"bar-title":B||void 0,"close-label":V,className:oe||void 0,...i,...ee,children:[s.map((e,t)=>x(`wui-wizard-step`,{label:e.label,description:e.description||void 0,optional:e.optional?``:void 0,icon:e.icon||void 0,status:e.status||void 0,children:ie[t]},e.key??`${e.label}-${t}`)),ae.length>0&&x(`span`,{hidden:!0,"data-wui-glyphs":``,children:ae.map(e=>x(J,{name:e,size:te,variant:E},e))})]})}var RVt=[`sm`,`md`,`lg`],zVt=()=>Promise.resolve().then(()=>(ml(),pl)),BVt=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]);function VVt(e){let{marker:t,props:n}=U(`AppWorkspaceSwitcher`,e),r=Vs(`workspaceSwitcher`,Ume),{tenants:i=[],currentId:a,onSelect:o,menuLabel:s,footerAction:c,linkComponent:l,searchable:d=!1,onCreate:p,canCreate:m=!1,createLabel:h=r.createLabel,compact:y=!1,size:b=`md`,ariaLabel:C,searchPlaceholder:w=r.searchPlaceholder,searchLabel:T=r.searchPlaceholder,noMatchText:E=r.noMatchText,...D}=n,{onToggle:O,...k}=D;G(`AppWorkspaceSwitcher`,k),W(`AppWorkspaceSwitcher`,`size`,b,RVt),Fc(`wui-dropdown`,zVt);let[A,j]=v(``),[M,N]=v(!1),P=_(null),F=_(null),I=u((e,t)=>{N(e),O?.(e,t)},[O]),L=i.find(e=>e.id===a)??i[0],R=g(()=>{let e=A.trim().toLowerCase();return!d||!e?i:i.filter(t=>String(t.name??``).toLowerCase().includes(e))},[i,A,d]);f(()=>{M&&d&&P.current?.focus()},[M,d]),f(()=>{let e=F.current;if(!e)return;let t=t=>{if(t.target===e){if(!(t instanceof CustomEvent))throw TypeError(`<wui-dropdown> toggle arrived without its detail.`);I(t.detail.open,{source:t.detail.source})}};return e.addEventListener(`wui-dropdown-toggle`,t),()=>e.removeEventListener(`wui-dropdown-toggle`,t)},[I]),f(()=>{if(!d)return;let e=P.current;if(!e)return;let t=e=>{BVt.has(e.key)&&e.stopPropagation()};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[d]);let z=L?.name??``,B=C??K(r.ariaLabel,{currentName:z});return S(`wui-dropdown`,{ref:F,class:`dropdown workspace-switcher${b===`sm`?` workspace-switcher-sm`:``}${b===`lg`?` workspace-switcher-lg`:``}`,...t,...k,children:[x(WVt,{compact:y,tenant:L,ariaLabel:B,size:b}),S(`div`,{"data-wui-dropdown-menu":``,popover:`auto`,className:`dropdown-menu workspace-switcher-menu`,children:[s?x(`div`,{className:`workspace-switcher-menu-label`,children:s}):null,d?S(`div`,{className:`workspace-switcher-search`,children:[x(J,{name:`search`,size:14}),x(`input`,{ref:P,type:`search`,className:`workspace-switcher-search-input`,placeholder:w,"aria-label":T,value:A,onChange:e=>j(e.target.value)})]}):null,S(`div`,{className:`workspace-switcher-list`,children:[R.map(e=>S(`button`,{type:`button`,className:`dropdown-item workspace-switcher-option${e.id===L?.id?` is-active`:``}`,onClick:()=>o?.(e),children:[x(HVt,{tenant:e,size:b,inMenu:!0}),x(`span`,{className:`workspace-switcher-option-name`,children:e.name}),e.badge?x(`span`,{className:`workspace-switcher-badge`,children:e.badge}):null,e.id===L?.id?x(J,{name:`check`,size:16,className:`workspace-switcher-tick`}):null]},e.id)),R.length===0?x(`div`,{className:`workspace-switcher-empty`,children:E}):null]}),m?S(`button`,{type:`button`,className:`dropdown-item workspace-switcher-create`,onClick:()=>p?.(),children:[x(J,{name:`plus`,size:16}),h]}):null,c?x(`div`,{className:`workspace-switcher-footer`,children:UVt(c,l)}):null]})]})}function HVt({tenant:e,size:t,inMenu:n=!1}){if(e?.logoUrl){let r=n?{sm:24,md:28,lg:34}[t]:{sm:24,md:30,lg:32}[t];return x(`img`,{className:`workspace-switcher-mark`,src:e.logoUrl,alt:``,loading:`lazy`,width:r,height:r})}return x(`span`,{className:`workspace-switcher-mark`,children:Dr(e?.name,1)})}function UVt(e,t){if(typeof e!=`object`||!e||!(`label`in e))return e;let{label:n,icon:r,href:i}=e,a=S(b,{children:[r?x(J,{name:r,size:16}):null,n]});return i?x(_s,{link:gs(t,{href:i}),className:`workspace-switcher-footer-action`,children:a}):x(`button`,{className:`workspace-switcher-footer-action`,type:`button`,children:a})}function WVt({compact:e,tenant:t,ariaLabel:n,size:r}){return S(`button`,{type:`button`,"data-wui-dropdown-trigger":``,className:`workspace-switcher-trigger${e?` is-compact`:``}`,"aria-haspopup":`true`,"aria-expanded":`false`,"aria-label":n,children:[x(HVt,{tenant:t,size:r}),e?null:S(b,{children:[x(`span`,{className:`workspace-switcher-trigger-name`,children:t?.name}),x(J,{name:`chevrons-up-down`,size:16,className:`workspace-switcher-chevron`})]})]})}var GVt=[`sm`,`md`,`lg`,`xl`],KVt=()=>Promise.resolve().then(()=>(pU(),fU));function qVt({ref:e,...t}){let n=Fc(`wui-datepicker`,KVt),r=Vs(`datePicker`,ws),{marker:i,props:o}=U(`AppYearPicker`,t),{value:s,onChange:c,label:l,required:u=!1,optional:d=!1,optionalLabel:f=r.optionalLabel,helperText:m,error:h,name:g,min:_,max:v,placeholder:y=r.yearPlaceholder,disabled:b,readOnly:C=!1,loading:w=!1,defaultValue:T,help:E,helpLabel:D=r.helpLabel,size:O,displayFormat:k,id:A,ariaLabel:j,"aria-invalid":M,className:N=``,fieldClassName:P=``,...F}=o,I=Oc(g),L=h??I;G(`AppYearPicker`,F),W(`AppYearPicker`,`size`,O,GVt),typeof k==`string`&&k!==``&&/DD|YYYY|YY/.test(k)&&ce(`[@webority/ui-react] <AppYearPicker> displayFormat "${k}" uses uppercase year or day tokens, which print as written; the year token is yyyy.`);let R=p(),z=A||R,{setRef:B}=pV({ready:n,ref:e,value:s??(T===void 0?``:void 0),defaultValue:T,onChange:c}),V=!l&&!L&&!m,H=L?`${z}-error`:void 0,ee=m?`${z}-hint`:void 0,te=H||ee,ne=x(`wui-datepicker`,{ref:B,id:z,name:g,value:(s??T)||void 0,min:_,max:v,placeholder:y,size:O||void 0,"display-format":k||void 0,"aria-label":j||ZV(l)||void 0,"aria-describedby":te,"aria-invalid":M??(L?`true`:void 0),disabled:b?``:void 0,readonly:C?``:void 0,loading:w?``:void 0,required:u?``:void 0,className:N||void 0,...F,mode:`year`});return V?a(ne,i):S(`div`,{...i,className:`field${P?` ${P}`:``}`,children:[l&&S(`label`,{className:`label`,htmlFor:z,children:[l,d&&!u&&x(`span`,{className:`label-optional`,children:` ${f}`}),u&&x(Uc,{}),E&&x(Hc,{label:D,children:E})]}),ne,x(Ac,{error:L,hint:m,errorId:H,hintId:ee})]})}var JVt=R({components:{AppAccordion:Pfe,AppAccountSwitcher:$me,AppActionIcon:Ks,AppAlert:Tc,AppAsyncBlock:Cve,AppAuthLayout:Tve,AppAvatar:Gs,AppAvatarGroup:kve,AppBadge:cl,AppBanner:jve,AppBreadcrumbs:Gve,AppButton:nl,AppButtonGroup:qve,AppCalendar:DOe,AppCard:POe,AppCarousel:BOe,AppCell:WOe,AppChart:E2e,AppChartCard:F2e,AppCheckbox:R2e,AppChip:Tz,AppChipGroup:Q2e,AppChoiceCard:r4e,AppChoiceChip:o4e,AppCodeBlock:O4e,AppColorField:A4e,AppColumnMenu:j4e,AppCommandPalette:V4e,AppCommentThread:f8e,AppCompareTable:E8e,AppConfirmDialog:Qc,AppConsentBanner:u5e,AppContextMenu:C5e,AppCopyButton:D5e,AppCountryFlag:k5e,AppDashboardCell:M5e,AppDashboardGrid:N5e,AppDataTable:uet,AppDatePicker:met,AppDateRangePicker:jet,AppDateTimePicker:Ket,AppDescriptions:Qet,AppDetailPane:$et,AppDrawer:htt,AppDropZone:gtt,AppDropdown:gl,AppDueDate:Ctt,AppEmptyState:il,AppEntryGrid:Itt,AppErrorBoundary:Utt,AppErrorSummary:Wtt,AppFileAttachment:Xtt,AppFilePicker:xot,AppFileTiles:wot,AppFileViewer:kot,AppFilterBar:_st,AppFloatingButton:Est,AppFloatingDock:jst,AppForm:ave,AppFormActions:Nst,AppFormRow:Fst,AppFormSection:Hst,AppFormulaSteps:Gst,AppGantt:xct,AppHoverCard:Mct,AppIcon:J,AppIdleTimeoutDialog:Pct,AppImagePicker:ylt,AppInfoTip:Hc,AppInlineEdit:Plt,AppInput:Gc,AppInputGroup:Llt,AppKanban:gut,AppKbd:BU,AppKpiTile:Nut,AppLeadPopup:adt,AppLightbox:bdt,AppLink:lB,AppLoadMore:xdt,AppMarkdown:EB,AppMentionInput:wdt,AppMeter:Adt,AppMetricStrip:Fdt,AppModal:Jc,AppMonthPicker:Rdt,AppNavList:Wdt,AppNavigationMenu:Udt,AppNotificationCenter:vft,AppNumberInput:kft,AppOnboardingChecklist:Hft,AppOrgTree:upt,AppOtpInput:vpt,AppPageHeader:jpt,AppPhoneNumberInput:cbt,AppPopover:Vc,AppPricingCard:lbt,AppProgress:al,AppQrCode:Nbt,AppQueryBuilder:Mxt,AppRadio:Nxt,AppRadioGroup:Fxt,AppRating:Gxt,AppRecordPager:Qxt,AppRelativeTime:oSt,AppRepeater:cSt,AppRequiredMark:Uc,AppResourceCard:lSt,AppResult:KU,AppRichText:uFt,AppRouteError:ztt,AppRowActions:H5e,AppSavedViews:_Ft,AppScoreScale:vFt,AppScrollbar:yFt,AppSearch:eJ,AppSectionCallToAction:wFt,AppSectionFaq:DFt,AppSectionFeatures:kFt,AppSectionHero:AFt,AppSectionLeadCapture:LFt,AppSectionLogos:zFt,AppSectionPricing:BFt,AppSectionTestimonials:VFt,AppSegmented:xz,AppSelect:XH,AppSeoHead:WFt,AppShell:vIt,AppShortcutLegend:UIt,AppShowMore:YIt,AppSkeleton:YV,AppSkeletonLines:QIt,AppSkeletonRows:U5e,AppSlider:sLt,AppSortableList:SLt,AppSparkline:Cut,AppSpinner:Jz,AppSplash:wLt,AppSplitButton:kLt,AppSplitView:LLt,AppStatusBadge:RLt,AppStepper:KLt,AppSwitch:Not,AppTablePagination:ZH,AppTableToolbar:qLt,AppTabs:rft,AppTextarea:MFt,AppThemeToggle:YLt,AppTimePicker:fRt,AppTimeline:cRt,AppToast:gRt,AppToolbar:vRt,AppTooltip:es,AppTour:Lzt,AppTransferList:eBt,AppTreePicker:FBt,AppTreeView:ZBt,AppTruncate:nVt,AppUpdateBar:iVt,AppWhatsNew:mVt,AppWizard:LVt,AppWorkspaceSwitcher:VVt,AppYearPicker:qVt},markers:{AppAccordion:`AppAccordion`,AppAccountSwitcher:`AppAccountSwitcher`,AppActionIcon:`AppActionIcon`,AppAlert:`AppAlert`,AppAsyncBlock:`AppAsyncBlock`,AppAuthLayout:`AppAuthLayout`,AppAvatar:`AppAvatar`,AppAvatarGroup:`AppAvatarGroup`,AppBadge:`AppBadge`,AppBanner:`AppBanner`,AppBreadcrumbs:`AppBreadcrumbs`,AppButton:`AppButton`,AppButtonGroup:`AppButtonGroup`,AppCalendar:`AppCalendar`,AppCard:`AppCard`,AppCarousel:`AppCarousel`,AppCell:`AppCell`,AppChart:`AppChart`,AppChartCard:`AppChartCard`,AppCheckbox:`AppCheckbox`,AppChip:`AppChip`,AppChipGroup:`AppChipGroup`,AppChoiceCard:`AppChoiceCard`,AppChoiceChip:`AppChoiceChip`,AppCodeBlock:`AppCodeBlock`,AppColorField:`AppColorField`,AppColumnMenu:`AppColumnMenu`,AppCommandPalette:`AppCommandPalette`,AppCommentThread:`AppCommentThread`,AppCompareTable:`AppCompareTable`,AppConfirmDialog:`AppConfirmDialog`,AppConsentBanner:`AppConsentBanner`,AppContextMenu:`AppContextMenu`,AppCopyButton:`AppCopyButton`,AppCountryFlag:`AppCountryFlag`,AppDashboardCell:`AppDashboardCell`,AppDashboardGrid:`AppDashboardGrid`,AppDataTable:`AppDataTable`,AppDatePicker:`AppDatePicker`,AppDateRangePicker:`AppDateRangePicker`,AppDateTimePicker:`AppDateTimePicker`,AppDescriptions:`AppDescriptions`,AppDetailPane:`AppDetailPane`,AppDrawer:`AppDrawer`,AppDropZone:`AppDropZone`,AppDropdown:`AppDropdown`,AppDueDate:`AppDueDate`,AppEmptyState:`AppEmptyState`,AppEntryGrid:`AppEntryGrid`,AppErrorSummary:`AppErrorSummary`,AppFileAttachment:`AppFileAttachment`,AppFilePicker:`AppFilePicker`,AppFileTiles:`AppFileTiles`,AppFileViewer:`AppFileViewer`,AppFilterBar:`AppFilterBar`,AppFloatingButton:`AppFloatingButton`,AppFloatingDock:`AppFloatingDock`,AppForm:`AppForm`,AppFormActions:`AppFormActions`,AppFormRow:`AppFormRow`,AppFormSection:`AppFormSection`,AppFormulaSteps:`AppFormulaSteps`,AppGantt:`AppGantt`,AppHoverCard:`AppHoverCard`,AppIcon:`AppIcon`,AppIdleTimeoutDialog:`AppIdleTimeoutDialog`,AppImagePicker:`AppImagePicker`,AppInfoTip:`AppInfoTip`,AppInlineEdit:`AppInlineEdit`,AppInput:`AppInput`,AppInputGroup:`AppInputGroup`,AppKanban:`AppKanban`,AppKbd:`AppKbd`,AppKpiTile:`AppKpiTile`,AppLeadPopup:`AppLeadPopup`,AppLightbox:`AppLightbox`,AppLink:`AppLink`,AppLoadMore:`AppLoadMore`,AppMarkdown:`AppMarkdown`,AppMentionInput:`AppMentionInput`,AppMeter:`AppMeter`,AppMetricStrip:`AppMetricStrip`,AppModal:`AppModal`,AppMonthPicker:`AppMonthPicker`,AppNavList:`AppNavList`,AppNavigationMenu:`AppNavigationMenu`,AppNotificationCenter:`AppNotificationCenter`,AppNumberInput:`AppNumberInput`,AppOnboardingChecklist:`AppOnboardingChecklist`,AppOrgTree:`AppOrgTree`,AppOtpInput:`AppOtpInput`,AppPageHeader:`AppPageHeader`,AppPhoneNumberInput:`AppPhoneNumberInput`,AppPopover:`AppPopover`,AppPricingCard:`AppPricingCard`,AppProgress:`AppProgress`,AppQrCode:`AppQrCode`,AppQueryBuilder:`AppQueryBuilder`,AppRadio:`AppRadio`,AppRadioGroup:`AppRadioGroup`,AppRating:`AppRating`,AppRecordPager:`AppRecordPager`,AppRelativeTime:`AppRelativeTime`,AppRepeater:`AppRepeater`,AppRequiredMark:`AppRequiredMark`,AppResourceCard:`AppResourceCard`,AppResult:`AppResult`,AppRichText:`AppRichText`,AppRouteError:`AppRouteError`,AppRowActions:`AppRowActions`,AppSavedViews:`AppSavedViews`,AppScoreScale:`AppScoreScale`,AppScrollbar:`AppScrollbar`,AppSearch:`AppSearch`,AppSectionCallToAction:`AppSectionCallToAction`,AppSectionFaq:`AppSectionFaq`,AppSectionFeatures:`AppSectionFeatures`,AppSectionHero:`AppSectionHero`,AppSectionLeadCapture:`AppSectionLeadCapture`,AppSectionLogos:`AppSectionLogos`,AppSectionPricing:`AppSectionPricing`,AppSectionTestimonials:`AppSectionTestimonials`,AppSegmented:`AppSegmented`,AppSelect:`AppSelect`,AppShell:`AppShell`,AppShortcutLegend:`AppShortcutLegend`,AppShowMore:`AppShowMore`,AppSkeleton:`AppSkeleton`,AppSkeletonLines:`AppSkeletonLines`,AppSlider:`AppSlider`,AppSortableList:`AppSortableList`,AppSparkline:`AppSparkline`,AppSpinner:`AppSpinner`,AppSplash:`AppSplash`,AppSplitButton:`AppSplitButton`,AppSplitView:`AppSplitView`,AppStatusBadge:`AppStatusBadge`,AppStepper:`AppStepper`,AppSwitch:`AppSwitch`,AppTablePagination:`AppTablePagination`,AppTableToolbar:`AppTableToolbar`,AppTabs:`AppTabs`,AppTextarea:`AppTextarea`,AppThemeToggle:`AppThemeToggle`,AppTimePicker:`AppTimePicker`,AppTimeline:`AppTimeline`,AppToast:`AppToast`,AppToolbar:`AppToolbar`,AppTooltip:`AppTooltip`,AppTour:`AppTour`,AppTransferList:`AppTransferList`,AppTreePicker:`AppTreePicker`,AppTreeView:`AppTreeView`,AppTruncate:`AppTruncate`,AppUpdateBar:`AppUpdateBar`,AppWhatsNew:`AppWhatsNew`,AppWizard:`AppWizard`,AppWorkspaceSwitcher:`AppWorkspaceSwitcher`,AppYearPicker:`AppYearPicker`},tokenValues:{color:{bg:{light:`#f4f6f8`,dark:`#0f1117`},"bg-muted":{light:`#f5f6fa`,dark:`#232733`},"bg-subtle":{light:`#f9fbfc`,dark:`#0d0f15`},border:{light:`#ebedf3`,dark:`#3d4554`},"border-strong":{light:`#c4cada`,dark:`#515b6e`},"border-subtle":{light:`#f4f6f8`,dark:`#3d455480`},"chart-1":{light:`#4f46e5`,dark:`#aeaaf5`},"chart-2":{light:`#0a7979`,dark:`#0a7979`},"chart-3":{light:`#7c3aed`,dark:`#a78bfa`},"chart-4":{light:`#2462eb`,dark:`#3987e5`},"chart-5":{light:`#e87ba4`,dark:`#d55181`},"chart-6":{light:`#4b5675`,dark:`#8a90a0`},"chart-7":{light:`#818cf8`,dark:`#7a90ef`},"chart-8":{light:`#a78bfa`,dark:`#8dc2ff`},"chart-axis":{light:`#c4cada`,dark:`#515b6e`},"chart-diverging-high":{light:`#2a78d6`,dark:`#3987e5`},"chart-diverging-low":{light:`#e34948`,dark:`#e66767`},"chart-diverging-mid":{light:`#c4cada`,dark:`#3a414f`},"chart-grid":{light:`#ebedf3`,dark:`#3d4554`},"chart-label":{light:`#626a82`,dark:`#8a90a0`},"chart-neutral":{light:`#99a1b7`,dark:`#5d6475`},"chart-seq-0":{light:`#f5f6fa`,dark:`#20242f`},"chart-seq-1":{light:`#e0e7ff`,dark:`#262c45`},"chart-seq-2":{light:`#c7d2fe`,dark:`#2f3a70`},"chart-seq-3":{light:`#a5b4fc`,dark:`#3b4ba0`},"chart-seq-4":{light:`#818cf8`,dark:`#5168d2`},"chart-seq-5":{light:`#6366f1`,dark:`#7a90ef`},"chart-seq-6":{light:`#4338ca`,dark:`#b3c1f7`},danger:{light:`#e82646`,dark:`#f87171`},"danger-border":{light:`#fdbfce`,dark:`#f8717166`},"danger-pressed":{light:`#e82646`,dark:`#f98686`},"danger-soft":{light:`#ffeaef`,dark:`#e826462e`},"danger-strong":{light:`#c81340`,dark:`#ee5c74`},"danger-strong-hover":{light:`#ab1036`,dark:`#f17489`},"danger-text":{light:`#cf1735`,dark:`#ee5c74`},"danger-text-on-soft":{light:`#cf1735`,dark:`#f07287`},"field-bg":{light:`#f9fbfc`,dark:`#232733`},"field-border":{light:`#dfe2ea`,dark:`#3d4554`},"field-border-focus":{light:`#a5b4fc`,dark:`#aeaaf5`},"field-border-hover":{light:`#c4cada`,dark:`#515b6e`},"focus-ring":{light:`#4f46e5`,dark:`#aeaaf5`},"focus-ring-soft":{light:`#4f46e540`,dark:`#aeaaf540`},info:{light:`#056ee9`,dark:`#60a5fa`},"info-border":{light:`#bbdbff`,dark:`#60a5fa66`},"info-pressed":{light:`#056ee9`,dark:`#78b3fb`},"info-soft":{light:`#e9f3ff`,dark:`#056ee92e`},"info-strong":{light:`#056ee9`,dark:`#4492ef`},"info-text":{light:`#1460ba`,dark:`#4492ef`},"info-text-on-soft":{light:`#1460ba`,dark:`#5da1f1`},link:{light:`#4f46e5`,dark:`#aeaaf5`},"link-hover":{light:`#4338ca`,dark:`#c3c0f8`},neutral:{light:`#07143714`,dark:`#e6e8ee14`},"neutral-hover":{light:`#0714371f`,dark:`#e6e8ee1f`},"neutral-pressed":{light:`#07143729`,dark:`#e6e8ee29`},"neutral-soft":{light:`#626a8229`,dark:`#8a90a029`},"neutral-text":{light:`#4b5675`,dark:`#b4b9c6`},"offline-fill":{light:`#e82646`,dark:`#e82646`},"on-danger":{light:`#ffffff`,dark:`#0f0f1a`},"on-danger-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-info":{light:`#ffffff`,dark:`#0f0f1a`},"on-info-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-neutral":{light:`#071437`,dark:`#e6e8ee`},"on-primary":{light:`#ffffff`,dark:`#0f0f0f`},"on-scrim":{light:`#ffffff`,dark:`#ffffff`},"on-success":{light:`#ffffff`,dark:`#0f0f1a`},"on-success-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-surface-dark":{light:`#ffffff`,dark:`#ffffff`},"on-surface-dark-muted":{light:`#babdc7`,dark:`#babdc7`},"on-warning":{light:`#ffffff`,dark:`#0f0f1a`},"on-warning-strong":{light:`#ffffff`,dark:`#0f0f0f`},"online-fill":{light:`#04b440`,dark:`#04b440`},primary:{light:`#4f46e5`,dark:`#aeaaf5`},"primary-hover":{light:`#4338ca`,dark:`#c3c0f8`},"primary-soft":{light:`#e0e7ff`,dark:`#4f46e533`},"primary-text":{light:`#4f46e5`,dark:`#aeaaf5`},"primary-wash":{light:`#4f46e514`,dark:`#aeaaf514`},"primary-wash-strong":{light:`#4f46e533`,dark:`#aeaaf533`},"progress-label":{light:`#ffffff`,dark:`#0f0f0f`},"progress-track":{light:`#e1e5ee`,dark:`#323845`},scrim:{light:`#07143773`,dark:`#00000073`},"scrim-strong":{light:`#0714379e`,dark:`#0000009e`},scrollbar:{light:`#919eab73`,dark:`#ffffff2e`},"scrollbar-active":{light:`#919eabd9`,dark:`#ffffff66`},"scrollbar-hover":{light:`#919eaba6`,dark:`#ffffff47`},"shell-accent":{light:`#f4a261`,dark:`#f4a261`},"shell-accent-ring":{light:`#f4a26140`,dark:`#f4a26140`},"shell-active":{light:`#ffffff1f`,dark:`#ffffff1f`},"shell-bg":{light:`#1f2d5c`,dark:`#1f2d5c`},"shell-bg-deep":{light:`#141e42`,dark:`#141e42`},"shell-bg-raised":{light:`#2c3f7a`,dark:`#2c3f7a`},"shell-border":{light:`#ffffff38`,dark:`#ffffff38`},"shell-border-strong":{light:`#ffffff66`,dark:`#ffffff66`},"shell-fill":{light:`#ffffff1f`,dark:`#ffffff1f`},"shell-fill-strong":{light:`#ffffff2e`,dark:`#ffffff2e`},"shell-fill-subtle":{light:`#ffffff14`,dark:`#ffffff14`},"shell-hover":{light:`#ffffff12`,dark:`#ffffff12`},"shell-rule":{light:`#ffffff1a`,dark:`#ffffff1a`},"shell-text":{light:`#c9d1e6`,dark:`#c9d1e6`},"shell-text-muted":{light:`#8792b4`,dark:`#8792b4`},"shell-text-strong":{light:`#ffffff`,dark:`#ffffff`},success:{light:`#04b440`,dark:`#30c780`},"success-border":{light:`#baeecc`,dark:`#30c78066`},"success-pressed":{light:`#04b440`,dark:`#4fcf93`},"success-soft":{light:`#e8faee`,dark:`#04b4402e`},"success-strong":{light:`#0e7531`,dark:`#43c770`},"success-text":{light:`#0e7531`,dark:`#43c770`},"success-text-on-soft":{light:`#0e7531`,dark:`#5cce83`},surface:{light:`#ffffff`,dark:`#181b23`},"surface-dark":{light:`#071437`,dark:`#071437`},"surface-dark-border":{light:`#2a3553`,dark:`#2a3553`},"surface-ink":{light:`#0b0e16`,dark:`#0b0e16`},"surface-inverse":{light:`#071437`,dark:`#e6e8ee`},"surface-inverse-elevated":{light:`#1d2949`,dark:`#d2d5de`},"surface-inverse-raised":{light:`#132041`,dark:`#dbdde5`},"surface-inverse-wash-12":{light:`#ffffff1f`,dark:`#0714371f`},"surface-inverse-wash-24":{light:`#ffffff3d`,dark:`#0714373d`},"surface-inverse-wash-4":{light:`#ffffff0a`,dark:`#0714370a`},"surface-inverse-wash-8":{light:`#ffffff14`,dark:`#07143714`},text:{light:`#071437`,dark:`#e6e8ee`},"text-body":{light:`#252f4a`,dark:`#e6e8ee`},"text-inverse":{light:`#ffffff`,dark:`#071437`},"text-muted":{light:`#4b5675`,dark:`#b4b9c6`},"text-subtle":{light:`#626a82`,dark:`#8a90a0`},thumb:{light:`#ffffff`,dark:`#3a3e49`},warning:{light:`#dfa000`,dark:`#fbbf24`},"warning-border":{light:`#fde8b3`,dark:`#fbbf2466`},"warning-pressed":{light:`#dfa000`,dark:`#fcc945`},"warning-soft":{light:`#fff8e6`,dark:`#dfa0002e`},"warning-strong":{light:`#9a6b00`,dark:`#e7b840`},"warning-strong-hover":{light:`#855c00`,dark:`#ebc35d`},"warning-text":{light:`#876100`,dark:`#e7b840`},"warning-text-on-soft":{light:`#876100`,dark:`#eac159`}},space:{"2xl":32,"3xl":48,"4xl":64,lg:16,md:12,none:0,sm:8,xl:24,xs:4,xxs:2},radius:{"2xl":18,"3xl":20,lg:14,md:10,none:0,pill:9999,sm:8,xl:16},shadow:{card:null,drawer:{x:0,y:24,blur:60,spread:-16,color:`rgba(7, 20, 55, 0.28)`,elevation:12},elevated:{x:0,y:2,blur:8,spread:-2,color:`rgba(7, 20, 55, 0.10)`,elevation:4},modal:{x:0,y:24,blur:60,spread:-16,color:`rgba(7, 20, 55, 0.28)`,elevation:12},popover:{x:0,y:8,blur:28,spread:-6,color:`rgba(7, 20, 55, 0.14)`,elevation:8}},font:{display:{family:`Webority Serif`,fallback:`Cambria, Georgia, Times New Roman, Noto Serif, serif`},mono:{family:`JetBrains Mono`,fallback:`SFMono-Regular, Menlo, Monaco, Consolas, monospace`},ui:{family:`Webority Sans`,fallback:`Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif`}},text:{"2xl":{size:32,weight:null},"3xl":{size:44,weight:null},"4xl":{size:56,weight:null},"5xl":{size:72,weight:null},"6xl":{size:96,weight:null},"7xl":{size:119.95,weight:null},"8xl":{size:144,weight:null},base:{size:16.8,weight:null},lg:{size:20,weight:null},sm:{size:14,weight:null},xl:{size:24,weight:null},xs:{size:13,weight:null}},leading:{body:1.55,display:1.05,heading:1.2,lead:1.6,prose:1.7}},manifest:{kind:`WeborityWeb`,library:{name:`@webority/ui-react`,version:`0.178.1`},rendererProtocolVersion:14,platform:`Web`,kitModuleVersion:2,productKit:null,components:[{name:`AppAccordion`,marker:`AppAccordion`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the list.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The label every trigger carries as data-close-label, for a stylesheet to show while the pane is open. Omitted when unset.`},{name:`id`,type:`string`,required:!1,description:`Prefix for the generated pane ids. Set it when a pane needs a stable anchor to link to.`},{name:`items`,type:`array`,itemFields:[{name:`content`,type:`node`,required:!0,description:`The body that opens and closes.`},{name:`count`,type:`number`,required:!1,description:`A count chip after the title. Null shows none; 0 shows 0.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the pane, used by openItems. It defaults to the pane's position.`},{name:`open`,type:`boolean`,required:!1,description:`Starts the pane expanded.`},{name:`title`,type:`node`,required:!0,description:`The row that is always visible.`}],required:!1,description:`The panes, each with a title row and a content body.`,default:[]},{name:`multiple`,type:`boolean`,required:!1,description:`Allows more than one pane open at a time. Leave it off for a list the reader scans.`,default:!1},{name:`openItems`,type:`array`,required:!1,description:`The keys of the panes that start open. It replaces each item's own open flag and is read again when its content changes. Without multiple only the first key opens.`},{name:`variant`,type:`enum`,enum:[`bordered`,`flat`],required:!1,description:`bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions.`,default:`bordered`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A page has several self-contained blocks and a reader wants one of them.`,`The content is secondary: reference detail, an FAQ answer, an advanced setting.`,`Collapsing keeps a long page scannable rather than hiding something essential.`],whenNot:[{text:`The sections are alternative views of the same thing.`,instead:`AppTabs`},{text:`The content needs the user's full attention before they continue.`,instead:`AppModal`},{text:`Every pane will be read anyway, so collapsing just adds clicks.`,instead:`plain sections with headings`},{text:`It is a short helper text attached to a field label.`,instead:`AppInfoTip`}],do:[{title:`Titles that name what is inside`,note:`Write the title as the question or the thing the reader is looking for. They are scanning titles, not content.`,example:[{component:`AppAccordion`,props:{items:[{key:`g`,title:`Can I revise a report after it is issued?`,content:`Yes.`}]}}]}],dont:[{title:`Titles that name what is inside`,note:`"More information" says nothing about what is inside, so the reader has to open every pane to find what they want.`,example:[{component:`AppAccordion`,props:{items:[{key:`b`,title:`More information`,content:`Yes.`}]}}]}],a11y:[`Each title is a native button with aria-expanded and aria-controls pointing at its pane, so Enter and Space toggle it.`,`Each pane is a section labelled by its title button.`,`A closed pane stays in the page but is inert and hidden from assistive technology until it opens.`]}},{name:`AppAccountSwitcher`,marker:`AppAccountSwitcher`,acceptsChildren:!1,props:[{name:`accounts`,type:`array`,itemFields:[{name:`badge`,type:`string`,required:!1,description:`A short label at the end of the row, such as the plan.`},{name:`description`,type:`string`,required:!1,description:`A second line under the name, such as the role or the company.`},{name:`href`,type:`url`,required:!1,description:`Where the row goes. Without it the row is a button.`},{name:`id`,type:`string`,required:!0,description:`The account's id. currentId is matched against it.`},{name:`name`,type:`string`,required:!0,description:`The account's name, shown in its row.`},{name:`photo`,type:`url`,required:!1,description:`The account's photo. Without it the avatar shows the name's initials.`}],required:!1,description:`The accounts a person can switch to. A row with an href navigates; a row without one calls onSelect(account) on React and does no navigation. The current account is marked with a tick and aria-current.`,default:[]},{name:`currentId`,type:`string`,required:!1,description:`The id of the current account. It sets the tick and aria-current, and falls back to the first account when it matches none.`},{name:`label`,type:`string`,required:!1,description:`The heading above the list. It is also the group's accessible name.`,default:`Switch account`}],itemsTakeAction:[`accounts`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person signed in to more than one account, company or organisation, and needs to see which one is current.`,`The switcher sits in the user menu's section slot of AppShell.`],whenNot:[{text:`You are switching the workspace or tenant in the chrome.`,instead:`AppWorkspaceSwitcher`},{text:`You need a flat list of actions behind a trigger.`,instead:`AppDropdown`},{text:`You are picking a value into a form field.`,instead:`AppSelect`}],do:[{title:`Offer switching only with several accounts`,note:`The current account is ticked, and each other account is one row to switch to.`,example:[{component:`AppAccountSwitcher`,props:{accounts:[{id:`acme`,name:`Acme Corp`,description:`Owner`},{id:`globex`,name:`Globex Ltd`,badge:`Trial`}],currentId:`acme`}}]}],dont:[{title:`Offer switching only with several accounts`,note:`A list of one account. There is nothing to switch to, so the section does not earn its place.`,example:[{component:`AppAccountSwitcher`,props:{accounts:[{id:`acme`,name:`Acme Corp`}],currentId:`acme`}}]}],a11y:[`The list is a group named by label.`,`The current account carries aria-current and a tick, so the state is not shown by colour alone.`,`A row with an href is a link; a row without one is a button.`]}},{name:`AppActionIcon`,marker:`AppActionIcon`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`The file types the chooser offers. File mode only.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the control.`,default:``},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`],required:!1,description:`How much room surrounds the glyph: comfortable keeps an 8px ring, compact 4px (a 16px glyph in a 24px disc).`,default:`comfortable`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the action off.`,default:!1},{name:`href`,type:`url`,required:!1,description:`Makes the action a link to this address.`},{name:`icon`,type:`icon`,required:!0,description:`The glyph, given as a semantic icon name.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named icon.`},{name:`label`,type:`string`,required:!0,description:`The accessible name of the control. It also shows as a tooltip on hover and focus.`},{name:`multiple`,type:`boolean`,required:!1,description:`Allows several files. File mode only.`,default:!1},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs this action, such as J or E. It is drawn as a key chip in the tooltip.`},{name:`size`,type:`number`,required:!1,description:`The glyph size in px. The disc around it scales with it.`,default:20},{name:`tone`,type:`enum`,enum:[`danger`,`neutral`],required:!1,description:`danger draws a destructive tint. neutral mutes the ink and the hover surface, for an action on a card or a quiet surface.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The side the tooltip prefers. Auto picks the side with the most room.`,default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A row or toolbar needs a compact action and the icon is unambiguous: edit, delete, view, more.`,`Space is tight and a labelled button would crowd the layout.`,`The action recurs on every row, so users learn the icon once.`],whenNot:[{text:`The action is the primary thing on the screen.`,instead:`AppButton`},{text:`You need several actions behind one trigger.`,instead:`AppDropdown`},{text:`The meaning is not obvious from an icon alone.`,instead:`a button with a visible label`},{text:`It toggles a single on/off setting.`,instead:`AppSwitch`}],do:[{title:`Collapse the extra actions`,note:`When a row has more than two or three actions, collapse the extras behind a single "more" trigger.`,example:[{component:`AppActionIcon`,props:{icon:`more-horizontal`,label:`More actions`}}]},{title:`Use a conventional glyph`,note:`A recognisable, conventional glyph. A trash can reads as "delete" with no thinking.`,example:[{component:`AppActionIcon`,props:{icon:`trash-2`,label:`Delete`}}]}],dont:[{title:`Collapse the extra actions`,note:`Five icons crammed in a row is a guessing game, with too many targets to scan at a glance.`,example:[{component:`AppActionIcon`,props:{icon:`eye`,label:`View`}},{component:`AppActionIcon`,props:{icon:`pencil`,label:`Edit`}},{component:`AppActionIcon`,props:{icon:`copy`,label:`Duplicate`}},{component:`AppActionIcon`,props:{icon:`share-2`,label:`Share`}},{component:`AppActionIcon`,props:{icon:`trash-2`,label:`Delete`,tone:`danger`}}]},{title:`Use a conventional glyph`,note:`An obscure glyph for a common action makes the user hover and hope. Stick to the conventional icon.`,example:[{component:`AppActionIcon`,props:{icon:`triangle`,label:`Delete`}}]}],a11y:[`The label is the accessible name of the control and also shows as a tooltip on hover and focus.`,`A shortcut is announced through aria-keyshortcuts; the page binds the key itself.`,`A disabled link keeps role link with aria-disabled and leaves the tab order; a disabled button uses the native disabled state.`,`In file mode the control is a button and the hidden file input is aria-hidden and outside the tab order.`]}},{name:`AppAlert`,marker:`AppAlert`,acceptsChildren:!0,props:[{name:`accent`,type:`boolean`,required:!1,description:`A thick left edge in the tone colour, marking the alert as an aside.`,default:!1},{name:`action`,type:`node`,required:!1,description:`A trailing action pinned to the right, usually a button.`},{name:`bordered`,type:`boolean`,required:!1,description:`Draws the soft border of the tone. False keeps only the tint fill.`,default:!0},{name:`className`,type:`string`,required:!1,description:`Extra classes on the alert.`,default:``},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows the close button. It is on by default when a close handler is set.`},{name:`icon`,type:`icon`,required:!1,description:`A leading glyph, given as a semantic icon name. It defaults to the glyph of the tone; pass null for no badge.`},{name:`iconSize`,type:`number`,required:!1,description:`The badge glyph's width and height in px. Unset, it follows size.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named icon. It does not change an image.`},{name:`image`,type:`string`,required:!1,description:`A custom image URL shown in the badge instead of the icon glyph.`},{name:`imageAlt`,type:`string`,required:!1,description:`Alt text for the custom image.`,default:``},{name:`imageSize`,type:`number`,required:!1,description:`Width and height of the image badge in px. Unset, it follows size.`},{name:`role`,type:`enum`,enum:[`alert`,`none`,`status`],required:!1,description:`Status is for notices that must not interrupt a screen reader. None is for explanatory page content.`,default:`alert`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Sm is a compact single line. Lg is roomier, with a larger heading, body and badge.`,default:`md`},{name:`title`,type:`node`,required:!1,description:`A bold heading line above the body.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`The status tone. Neutral is a plain notice in ink on a grey surface, with no semantic colour.`,default:`info`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A message needs to persist on the page while its cause is true: a form error, a trial warning.`,`You are stating status inline, in context, next to the thing it concerns.`,`The user should be able to re-read it. It is not a fleeting confirmation.`,`You are explaining how something works, as page content (accent with role "none").`],whenNot:[{text:`The feedback is brief and self-dismissing, such as "Saved" or "Copied".`,instead:`toast`},{text:`It is a small count or a one-word label.`,instead:`AppBadge`},{text:`It maps a status enum to a coloured pill.`,instead:`AppStatusBadge`},{text:`It is a help hint tied to a single field label.`,instead:`AppInfoTip`}],do:[{title:`Match the tone to the message`,note:`Match the tone to intent and say what to do next. A danger alert names the problem and the recovery.`,example:[{component:`AppAlert`,props:{tone:`danger`},children:`We couldn't save your changes: check the highlighted fields and try again.`}]},{title:`Use info for a neutral notice`,note:`A neutral, informational notice uses the info tone: calm, not alarming.`,example:[{component:`AppAlert`,props:{tone:`info`},children:`Reports use the latest IEC 62305-2 methodology.`}]}],dont:[{title:`Match the tone to the message`,note:`A success (green) tone on an error message contradicts the words. The colour lies about what happened.`,example:[{component:`AppAlert`,props:{tone:`success`},children:`Something went wrong while saving.`}]},{title:`Use info for a neutral notice`,note:`A warning (amber) tone on a purely informational message implies a problem that is not there.`,example:[{component:`AppAlert`,props:{tone:`warning`},children:`Reports use the latest IEC 62305-2 methodology.`}]}],a11y:[`The alert role is set by default, so assistive technology announces the alert as it appears; pass status for a notice that must not interrupt.`,`Role none removes the role, so an explanatory note reads as ordinary page content.`,`A custom image takes its alt text from imageAlt, which is empty by default.`]}},{name:`AppAsyncBlock`,marker:`AppAsyncBlock`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the wrapper.`,default:``},{name:`empty`,type:`node`,required:!1,description:`Content of the empty state. Without it, an empty state with the emptyTitle text shows.`},{name:`emptyTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Nothing here yet`},{name:`errorTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`That didn't load`},{name:`loadingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Loading`},{name:`retryLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Try again`},{name:`skeleton`,type:`node`,required:!1,description:`A loading placeholder shaped like the content. Without it a thin indeterminate progress line shows.`},{name:`state`,type:`object`,required:!0,description:`What the screen is showing: one DataState from useDataState, with status idle, loading, error, empty or data. Idle is a skipped query and draws nothing.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A screen fetches data and must show loading, error and empty states consistently.`,`You want one place that switches between those states from one status value, instead of nested ternaries.`],whenNot:[{text:`Only one state ever applies, such as a button submit.`,instead:`a button's loading prop`},{text:`The empty body of a data table specifically.`,instead:`AppEmptyState variant="table"`},{text:`The whole app is booting, not one screen.`,instead:`AppSplash`}],do:[{title:`Shape the skeleton like the content`,note:`A skeleton shaped like the content that is coming. The layout does not jump on arrival.`,example:[{component:`AppAsyncBlock`,props:{state:{status:`loading`},skeleton:{component:`div`,children:[{component:`AppSkeleton`,props:{width:`70%`,height:16}},{component:`AppSkeleton`,props:{width:`100%`,height:12}}]}}}]},{title:`Use the shared loading state`,note:`The shared loading state owns the loading, error and empty handling, so each screen does not hand-roll its own.`,example:[{component:`AppAsyncBlock`,props:{state:{status:`loading`}}}]}],dont:[{title:`Shape the skeleton like the content`,note:`A single tall block that matches no part of the content makes the layout jump when the data arrives.`,example:[{component:`AppAsyncBlock`,props:{state:{status:`loading`},skeleton:{component:`AppSkeleton`,props:{width:`100%`,height:300}}}}]},{title:`Use the shared loading state`,note:`A bare "loading…" string hand-rolled per screen is inconsistent, and it skips the shared empty and error handling entirely.`,example:[{component:`div`,children:`loading…`}]}],a11y:[`Each drawn state is marked with a data-state attribute on the wrapper: loading, error, empty or data. Idle draws no wrapper.`,`With no skeleton, the loading state is an indeterminate progress bar labelled Loading.`,`The error state is an empty state with a Try again button that calls the state's retry.`,`The component sets no aria attributes of its own.`]}},{name:`AppAuthLayout`,marker:`AppAuthLayout`,acceptsChildren:!0,props:[{name:`aside`,type:`node`,required:!1,description:`The panel beside the form. It is drawn only for variant split, and only from the lg breakpoint up.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`footer`,type:`node`,required:!1,description:`Small print or a link under the form.`},{name:`logo`,type:`node`,required:!1,description:`The brand mark above the form, usually an img with width and height.`},{name:`maxWidth`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`],required:!1,description:`The widest size of the form column: a preset or an exact width in px. The presets are 360, 420 and 520 px.`,default:`md`},{name:`variant`,type:`enum`,enum:[`centred`,`split`],required:!1,description:`The form alone in the middle, or the form beside an aside panel.`,default:`centred`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A sign-in, sign-up, forgot-password or verification page.`,`Any signed-out page that is one form on its own.`],whenNot:[{text:`A short outcome after an action (confirmed, not found, no access).`,instead:`AppResult`},{text:`The boot screen while the session loads.`,instead:`AppSplash`},{text:`A form inside a signed-in page.`,instead:`AppCard`}],do:[],dont:[],a11y:[`The layout draws no heading: put the one h1 of the page in the children.`,`The aside is an aside landmark and is hidden below the lg breakpoint, so nothing in it may be the only way to do something.`,`The logo is an image the caller labels with alt text; use an empty alt if the heading already names the product.`]}},{name:`AppAvatar`,marker:`AppAvatar`,acceptsChildren:!1,props:[{name:`badge`,type:`node`,required:!1,description:`A small count or marker in the top-right corner.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the avatar.`,default:``},{name:`href`,type:`url`,required:!1,description:`Makes the avatar a link.`},{name:`icon`,type:`icon`,required:!1,description:`The face shown instead of initials when there is no photo: a library icon name or any node.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The icon style of a named icon. A node icon is drawn as given.`,default:`linear`},{name:`label`,type:`string`,required:!1,description:`Text shown as a tooltip above the avatar on hover or focus. It is also the accessible name of a link or button avatar.`},{name:`name`,type:`string`,required:!1,description:`The person's name. Used for the initials fallback and the image alt text.`},{name:`photoLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Profile photo`},{name:`ring`,type:`boolean`,required:!1,description:`A ring around the avatar.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`,`square`],required:!1,description:`The disc shape.`,default:`circle`},{name:`size`,type:`stringOrNumber`,required:!1,description:`A preset from xs to 2xl, or a custom pixel size as a number or any CSS length.`,default:`md`},{name:`src`,type:`string`,required:!1,description:`The profile photo URL, usually a data or object URL. When set, the photo shows over the initials.`},{name:`status`,type:`enum`,enum:[`away`,`busy`,`none`,`offline`,`online`],required:!1,description:`A presence dot at the lower right.`,default:`none`},{name:`tone`,type:`enum`,enum:[`auto`,`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the initials face. auto gives each name a stable colour.`,default:`primary`},{name:`tooltip`,type:`string`,required:!1,description:`A tooltip on hover or focus that flips to stay on screen. Distinct from label, which is a fixed bubble.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The preferred tooltip side. auto picks the side with the most room.`,default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are showing who a person is, such as a topbar account, a comment author or a team-list row.`,`A list of people needs a compact, recognisable identity marker.`,`A photo may be missing and you still want a stable, on-brand placeholder.`],whenNot:[{text:`You need a status marker, not a person.`,instead:`AppStatusBadge`},{text:`It is a decorative or brand image, not a person.`,instead:`a plain <img>`},{text:`You are showing a company logo.`,instead:`AppImagePicker`}],do:[{title:`Always pass a name`,note:`A name is always supplied, so the avatar shows meaningful initials and correct alt text.`,example:[{component:`AppAvatar`,props:{name:`Jane Doe`}}]},{title:`Beside the name it shows`,note:`The avatar sits next to the name it represents, so identity reads as one unit.`,example:[{component:`div`,props:{className:`d-flex align-items-center gap-2`},children:[{component:`AppAvatar`,props:{name:`Ravi Kumar`,src:`data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect width="80" height="80" fill="%234f46e5"/><circle cx="40" cy="32" r="14" fill="%23c7d2fe"/><rect x="16" y="52" width="48" height="28" rx="14" fill="%23c7d2fe"/></svg>`}},{component:`span`,props:{className:`fw-semibold`},children:`Ravi Kumar`}]}]},{title:`Use AppAvatar, not a plain image`,note:`AppAvatar keeps the shared shape and falls back to initials when the photo is missing.`,example:[{component:`AppAvatar`,props:{name:`Ravi Kumar`,tone:`auto`}}]}],dont:[{title:`Always pass a name`,note:`With no name and no photo the avatar can only render a bare question mark, which is useless to the eye and to a screen reader.`,example:[{component:`AppAvatar`}]},{title:`Beside the name it shows`,note:`On its own the avatar names no one, so the reader cannot tell whose row it is.`,example:[{component:`AppAvatar`,props:{name:`Ravi Kumar`}}]},{title:`Use AppAvatar, not a plain image`,note:`A hand-rolled round <img> drifts from the shared avatar shape and skips the initials fallback.`,example:[{component:`img`,props:{src:`data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect width="80" height="80" fill="%234f46e5"/><circle cx="40" cy="32" r="14" fill="%23c7d2fe"/><rect x="16" y="52" width="48" height="28" rx="14" fill="%23c7d2fe"/></svg>`,alt:`Ravi`,width:40,height:40,className:`rounded-circle`}}]}],a11y:[`A plain initials avatar is announced as an image named by label, else name; with a photo, the photo's alt text is the name, or 'Profile photo' when there is no name.`,`With href or onClick the whole avatar is one link or button named by label, else name, and the photo's alt text is empty.`,`With no name or label the avatar is hidden from assistive technology; the initials face, presence dot, badge and label bubble are always hidden from it.`]}},{name:`AppAvatarGroup`,marker:`AppAvatarGroup`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the group.`,default:``},{name:`moreLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The {count} token is the hidden count.`,default:`{count} more`},{name:`overflow`,type:`stringOrNumber`,required:!1,description:`The hidden count, shown as a +N chip after the avatars. Zero or unset shows no chip.`},{name:`size`,type:`stringOrNumber`,required:!1,description:`Sizes the whole row at once. Each avatar and the +N chip inherit it; an avatar with its own size still wins.`},{name:`spacing`,type:`enum`,enum:[`loose`,`normal`,`tight`],required:!1,description:`How far the avatars overlap.`,default:`normal`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Several people belong to one row or card, such as assignees, reviewers or attendees.`,`You want a compact identity cluster instead of a long list of names.`,`A list is longer than you want to show and a +N summary will do.`],whenNot:[{text:`You are showing a single person.`,instead:`AppAvatar`},{text:`You need a full, scannable list of people.`,instead:`AppDataTable`},{text:`The items are not people.`,instead:`AppBadge`}],do:[],dont:[],a11y:[`The group is a plain container with no role of its own; each avatar inside carries its own accessible name.`,`The +N chip is announced as an image named 'N more'.`]}},{name:`AppBadge`,marker:`AppBadge`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the badge.`,default:``},{name:`dot`,type:`boolean`,required:!1,description:`Shows the badge in its compact dot style.`,default:!1},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The badge colour.`},{name:`tooltip`,type:`string`,required:!1,description:`A tooltip on hover or focus that flips to stay on screen.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The preferred tooltip side. auto picks the side with the most room.`,default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A count sits beside a label, such as an unread inbox or a pending queue.`,`A short static tag marks something: New, Beta, Pro.`,`You need a tiny inline emphasis that fits on the same line as its text.`],whenNot:[{text:`You are showing a status mapped from an enum.`,instead:`AppStatusBadge`},{text:`The token should be removable (a filter or tag).`,instead:`AppChip`},{text:`It performs an action when clicked.`,instead:`AppButton`},{text:`It is a persistent inline message.`,instead:`AppAlert`}],do:[{title:`Keep badge text to a word or a number`,note:`A short count attached to its label. The badge reads instantly.`,example:[{component:`span`,props:{className:`d-inline-flex align-items-center gap-2`},children:[`Notifications `,{component:`AppBadge`,props:{tone:`danger`},children:`12`}]}]},{title:`Use one tone for one tag`,note:`A neutral New tag in one intentional tone.`,example:[{component:`AppBadge`,props:{tone:`primary`},children:`New`}]}],dont:[{title:`Keep badge text to a word or a number`,note:`A sentence in a badge is the wrong tool. Badges hold a word or a number, not prose.`,example:[{component:`AppBadge`,props:{tone:`primary`},children:`This item was updated 3 minutes ago by an editor`}]},{title:`Use one tone for one tag`,note:`The same label in three tones invents meaning that is not there. One tag, one tone.`,example:[{component:`AppBadge`,props:{tone:`success`},children:`New`},{component:`AppBadge`,props:{tone:`warning`},children:`New`},{component:`AppBadge`,props:{tone:`danger`},children:`New`}]}],a11y:[`The badge is a plain inline element with no role of its own, so the text inside it carries the meaning.`,`A tooltip opens on hover and on keyboard focus.`]}},{name:`AppBanner`,marker:`AppBanner`,acceptsChildren:!0,props:[{name:`action`,type:`node`,required:!1,description:`A button or link at the banner's right edge; it wraps below the message on a phone.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the banner.`,default:``},{name:`dismissLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Dismiss`},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows a close button that removes the banner.`,default:!1},{name:`icon`,type:`icon`,required:!1,description:`A leading icon: a library icon name or any node.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`The colour and intent of the banner.`,default:`info`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The message applies to the whole screen or app, not one section of it.`,`It should stay visible until the user dismisses it or the condition it reports ends.`,`It is the kind of thing every user of the page needs to see: maintenance, a trial ending, a new version.`],whenNot:[{text:`The message is about one section or form on the page.`,instead:`AppAlert`},{text:`The feedback is brief and self-dismissing, such as Saved or Copied.`,instead:`toast`},{text:`You are explaining how something works, not reporting a state.`,instead:`AppAlert`}],do:[{title:`Banner only for page-wide notices`,note:`A page-wide, time-bound notice every visitor needs to see, with a tone that matches its urgency.`,example:[{component:`AppBanner`,props:{tone:`warning`,icon:`alert-triangle`},children:`Scheduled maintenance begins at 11:00 PM IST tonight.`}]}],dont:[{title:`Banner only for page-wide notices`,note:`A field-level validation message belongs next to the field, not full-bleed across the page. That is AppAlert's job.`,example:[{component:`AppBanner`,props:{tone:`danger`},children:`Enter a valid email address in the field below.`}]}],a11y:[`The banner has role status, so a screen reader announces it politely when it appears.`,`The close button, shown with dismissible, is named Dismiss.`]}},{name:`AppBreadcrumbs`,marker:`AppBreadcrumbs`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the trail.`,default:``},{name:`items`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!1,description:`Where the crumb links. Ignored on the current page.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name, or a node drawn before the label.`},{name:`key`,type:`string`,required:!1,description:`A stable React key for the crumb. Defaults to the label and its position when omitted.`},{name:`label`,type:`node`,required:!0,description:`The crumb text.`},{name:`to`,type:`string`,required:!1,description:`A router path. It goes through the link component when one is given, otherwise it becomes a plain link.`}],required:!0,description:"The trail, root first, current page last. An item links when it has `href` or `to`, unless it is the current page."},{name:`maxItems`,type:`number`,required:!1,description:`Below md, show only the last this many crumbs, with an ellipsis menu holding the rest. A whole number of 1 or more. Unset shows the whole trail.`},{name:`moreLabel`,type:`string`,required:!1,description:`The accessible name of the ellipsis button.`,default:`Show hidden levels`},{name:`wrap`,type:`boolean`,required:!1,description:`false keeps the trail on one line; items do not wrap.`,default:!0}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The page sits several levels deep in a hierarchy the user might want to step back through.`,`You want to state, unambiguously, where the current page is in that hierarchy.`,`The trail is short: a handful of levels, not a full site map.`],whenNot:[{text:`The user is switching between peer views of the same record.`,instead:`AppTabs`},{text:`You need the app's persistent primary navigation.`,instead:`AppShell`},{text:`The flow is a sequence of steps to complete, not a place in a hierarchy.`,instead:`AppStepper`}],do:[{title:`Current page as plain text`,note:`Short labels, a real link on every ancestor, and the current page as plain text.`,example:[{component:`AppBreadcrumbs`,props:{items:[{icon:`house`,label:`Home`,href:`/`},{label:`Projects`,href:`/projects`},{label:`Acme Corp`}]}}]}],dont:[{title:`Current page as plain text`,note:`The current page still looks like the others. AppBreadcrumbs already prevents this by ignoring href on the last item, so this shape only happens if you fight the component.`,example:[{component:`AppBreadcrumbs`,props:{items:[{label:`Home`,href:`/`},{label:`Projects`,href:`/projects`},{label:`Acme Corp`,href:`/projects/acme`}]}}]}],a11y:[`The last item is the current page: it is text with aria-current page, never a link, unless the trail sits in a bar page header, where every crumb is a parent link.`,`An item with no target renders as a plain span, so it is never announced as a button with no link.`,`With maxItems, the hidden crumbs sit in an ellipsis menu below md, reachable by keyboard like any dropdown.`]}},{name:`AppButton`,marker:`AppButton`,acceptsChildren:!0,props:[{name:`animation`,type:`enum`,enum:[`expand`,`fill`,`glow`,`none`,`roll`,`sheen`],required:!1,description:`Hover animation; omit for the default sheen. roll rolls the label up and slides a trailing rightIcon through a round well.`},{name:`block`,type:`boolean`,required:!1,description:`Full width of its container.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the button.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the button.`,default:!1},{name:`href`,type:`url`,required:!1,description:`Render as a button-styled link (an <a href>) instead of a <button>; matches Razor <app-button href>.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named leftIcon / rightIcon.`,default:`linear`},{name:`leftIcon`,type:`icon`,required:!1,description:`An icon name, drawn in the icon set.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and disables the button while work runs; hides both icons.`,default:!1},{name:`pinRightIcon`,type:`boolean`,required:!1,description:`Pin the rightIcon (or the roll animation's icon well) to the button's end edge and centre the label; for a wide or full-width button.`,default:!1},{name:`rightIcon`,type:`icon`,required:!1,description:`An icon name, drawn in the icon set.`},{name:`shape`,type:`enum`,enum:[`pill`,`rounded`,`sharp`],required:!1,description:`Corner shape: the default rounded squircle, a fully rounded pill, or sharp square corners.`,default:`rounded`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs this action ("A", "E", "/"), drawn as a key chip: in the tooltip when the button has one, otherwise after the label. Sets aria-keyshortcuts; the page binds the key itself. Ignored on a static button.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size. xl is a marketing call to action: 55px tall with larger text, and 45px below 992px.`,default:`md`},{name:`static`,type:`boolean`,required:!1,description:`Render as a non-interactive element (a span) that keeps the button's chrome but does not click, focus or hover: a resolved or confirmation label (for example Verified) sized to sit where its action button was. Ignores loading, disabled, type and href.`,default:!1},{name:`to`,type:`string`,required:!1,description:`The router link the button navigates to, drawn as a link through the component's router link component.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic colour.`,default:`primary`},{name:`tooltip`,type:`string`,required:!1,description:`A collision-aware hover and focus tooltip (through AppTooltip and Popper) that flips to stay on screen. For a labelled button use it sparingly, since the label already says what it does; it is most useful on a terse or icon-led action.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Preferred tooltip side; auto picks the side with the most room.`,default:`auto`},{name:`type`,type:`enum`,enum:[`button`,`reset`,`submit`],required:!1,description:`The native button type; not emitted on a link-shaped button.`,default:`button`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Emphasis level: solid fill, soft tint, outline, ghost, link text, or glass.`,default:`solid`},{name:`vibrate`,type:`any`,required:!1,description:`Phones only: true buzzes 10 ms on a tap, or a whole number of milliseconds from 1 to 100. Not applied while disabled or loading; ignored where the browser has no vibration.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user performs an action: submit, save, open a dialog, confirm.`,`You need to mark the single most important action on a screen (one primary).`,`A destructive action needs to stand out (danger): pair it with a confirm dialog.`,`A form's submit button takes loading from the mutation state; that also blocks a second press.`],whenNot:[{text:`It navigates to another page or URL.`,instead:`a link`},{text:`It toggles a single on/off setting.`,instead:`AppSwitch`},{text:`It is an icon-only action in a row or toolbar.`,instead:`AppActionIcon`},{text:`It is a selectable filter or tag.`,instead:`AppChoiceChip`}],do:[{title:`One primary action per group`,note:`One clear primary action, supported by a secondary. The eye knows where to go.`,example:[{component:`AppButton`,props:{tone:`primary`},children:`Publish`},{component:`AppButton`,props:{variant:`soft`},children:`Save draft`}]},{title:`Name destructive actions specifically`,note:`Destructive actions use danger and name the object: "Delete project", not "OK".`,example:[{component:`AppButton`,props:{tone:`danger`},children:`Delete project`}]},{title:`Start labels with an action verb`,note:`Action-first verb + optional reinforcing icon. The label says exactly what happens.`,example:[{component:`AppButton`,props:{leftIcon:`plus`},children:`Add member`}]}],dont:[{title:`One primary action per group`,note:`Two primaries compete for attention, so neither reads as the main action.`,example:[{component:`AppButton`,props:{tone:`primary`},children:`Publish`},{component:`AppButton`,props:{tone:`primary`},children:`Save draft`}]},{title:`Name destructive actions specifically`,note:`A vague "Submit" in the default variant hides that this deletes data.`,example:[{component:`AppButton`,props:{tone:`primary`},children:`Submit`}]},{title:`Start labels with an action verb`,note:`A noun-only label leaves the user guessing what the button does.`,example:[{component:`AppButton`,children:`Member`}]}],a11y:[`While loading, the button shows a spinner hidden from assistive technology, sets aria-busy and is disabled.`,`A shortcut sets aria-keyshortcuts; the page binds the key itself.`,`A static button renders as a plain span, never a button, so assistive technology reads it as text.`,`The roll animation's copy of the label is aria-hidden, so the label is read once.`],keyboard:[{key:`Tab`,does:`Moves focus onto the button.`,notes:`In page order. A disabled or loading button is skipped.`},{key:`Shift + Tab`,does:`Moves focus to the previous control.`,notes:`Reverse of Tab; the order never changes.`},{key:`Enter`,does:`Activates the button.`,notes:`On a link button (href) it follows the link.`},{key:`Space`,does:`Activates the button.`,notes:`Runs on key up, like a native button. A link button ignores it.`},{key:`The shortcut key, for example N`,does:`Runs the action.`,notes:`Only when the page binds the key. The button exposes it as aria-keyshortcuts.`}],contrast:[{pair:`primary-text on primary`,light:`6.29:1 AA`,dark:`6.29:1 AA`},{pair:`primary as text on bg-light`,light:`6.29:1 AA`,dark:`6.23:1 AA`},{pair:`primary-hover as text on bg-light`,light:`4.47:1 Large only`,dark:`7.36:1 AAA`},{pair:`danger-text on danger-10`,light:`4.77:1 AA`,dark:`4.77:1 AA`},{pair:`success-text on the soft success tint (the success variant)`,light:`5.02:1 AA`,dark:`Set by the dark theme`},{pair:`white on success-strong (solid green surfaces)`,light:`5.82:1 AA`,dark:`5.82:1 AA`},{pair:`white on danger-strong (the danger variant)`,light:`5.80:1 AA`,dark:`5.80:1 AA`}]}},{name:`AppButtonGroup`,marker:`AppButtonGroup`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the group.`,default:``},{name:`fullWidth`,type:`boolean`,required:!1,description:`Fill the container, the buttons sharing the row equally.`,default:!1},{name:`label`,type:`string`,required:!0,description:`Accessible name for the group ("Text style").`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`One size for every button in the group.`,default:`md`},{name:`vertical`,type:`boolean`,required:!1,description:`Stack the buttons top to bottom.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to five related actions: text styles, bulk actions, a view switch.`,`A toolbar section that should read as one control.`],whenNot:[{text:`Choosing one of a few options.`,instead:`AppSegmented`},{text:`A main action with a few alternatives.`,instead:`AppSplitButton`}],do:[],dont:[],a11y:[`The group has role group and is announced by its label.`,`Each button is still its own tab stop: a button group is a set of actions, not a single-choice control.`]}},{name:`AppCalendar`,marker:`AppCalendar`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`date`,type:`string`,required:!1,description:"The day (`YYYY-MM-DD`, in the time zone of the calendar) to show; today when omitted. Changing it moves the calendar."},{name:`emptyText`,type:`string`,required:!1,description:`What a list with no events says.`},{name:`errorText`,type:`string`,required:!1,description:"What is said when `eventsUrl` could not be loaded, and when the calendar's code could not."},{name:`events`,type:`array`,itemFields:[{name:`allDay`,type:`boolean`,required:!1,description:`Shows the event as an all-day event.`},{name:`end`,type:`string`,required:!1,description:`The first moment after the event, so an all-day event on the 4th ends on the 5th.`},{name:`id`,type:`stringOrNumber`,required:!1,description:`Identifies the event.`},{name:`stack`,type:`object`,fields:[{name:`count`,type:`number`,required:!0,description:`How many more events the card stands for; a whole number above 0.`},{name:`label`,type:`string`,required:!0,description:`The link's tooltip and screen-reader name.`},{name:`url`,type:`url`,required:!0,description:"Where the `+count` link goes."}],required:!1,description:"Draws a `+count` link of its own inside the card, for a card that stands for several events."},{name:`start`,type:`string`,required:!0,description:`A YYYY-MM-DD day or an ISO date-time.`},{name:`title`,type:`string`,required:!0,description:`The event name.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Colours the event from the theme.`},{name:`url`,type:`url`,required:!1,description:`Makes the event a link.`}],required:!1,description:"The events, instead of `eventsUrl`. Extra keys are kept and come back in `onEventClick`."},{name:`eventsUrl`,type:`url`,required:!1,description:"Called with `start`, `end` and `view` (month, week, day or list; IST days) whenever the visible period changes; answers a JSON list of events."},{name:`firstDay`,type:`enum`,enum:[0,1,2,3,4,5,6],required:!1,description:"First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's `--wui-first-day` token, which is 1 (Monday) unless the product sets it."},{name:`label`,type:`string`,required:!1,description:`The name a screen reader hears for the calendar.`,default:`Calendar`},{name:`style`,type:`object`,required:!1,description:`Inline style on the element.`},{name:`timeZone`,type:`string`,required:!1,description:`IANA time zone the calendar shows, for example Asia/Kolkata or America/New_York. Events with an offset or a Z are moved into it; events with no offset are read as already in it. Unset, it is India Standard Time (Asia/Kolkata).`},{name:`view`,type:`enum`,enum:[`day`,`list`,`month`,`week`],required:!1,description:`The view to show. Without it a calendar opens on the month, or on the list when it is narrower than a phone.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Meetings, leave, releases, deadlines or bookings that people read by the day, week or month.`,`A schedule fed by an endpoint, where each period is fetched as the person moves to it.`,`One place to click a day to start something, or an event to open it.`],whenNot:[{text:`Picking a date in a form.`,instead:`AppDatePicker`},{text:`A history of what happened, newest first.`,instead:`AppTimeline`},{text:`A number per day, shaded by size.`,instead:`AppChart`}],do:[],dont:[],a11y:[`Every day can be reached by keyboard: one tab stop among the days, the arrow keys move between them, Home and End go to the first and last day of the week, Page Up and Page Down to the previous and next month, and Enter opens the day.`,`Events are buttons of their own: Tab to one and press Enter.`,`The label is the name a screen reader hears for the calendar.`]}},{name:`AppCard`,marker:`AppCard`,acceptsChildren:!0,props:[{name:`body`,type:`boolean`,required:!1,description:"Wrap children in `.card-body`. False when the content brings its own padding.",default:!0},{name:`bodyClassName`,type:`string`,required:!1,description:`Extra classes on the card body.`,default:``},{name:`className`,type:`string`,required:!1,description:"Extra classes on the `.card` root. The padding hook: a class here can set `--wui-card-pad` to retune the inset (the Razor counterpart is a plain `class`).",default:``},{name:`closeLabel`,type:`string`,required:!1,description:`Accessible name of the close button.`,default:`Close`},{name:`dismissible`,type:`boolean`,required:!1,description:`Show a close button at the end of the header (defaults to true when onClose is set).`},{name:`divided`,type:`boolean`,required:!1,description:`Draws a thin rule under the header. Needs a header (title, subtitle, headerIcon, headerActions or header). The rule colour is the --wui-card-divider-color token.`,default:!1},{name:`flush`,type:`boolean`,required:!1,description:`Clips the content to the card's rounded corners and removes the body padding, for a table or image that runs edge to edge. The header and footer keep their padding. Anything that pokes outside the card, such as an inline menu, is clipped.`,default:!1},{name:`footer`,type:`node`,required:!1,description:`Footer row (actions or meta), below the body.`},{name:`header`,type:`node`,required:!1,description:`Fully custom header: overrides title, subtitle, icon, extra and actions.`},{name:`headerActions`,type:`node`,required:!1,description:`Right-aligned header controls.`},{name:`headerClassName`,type:`string`,required:!1,description:`Extra classes on the card header.`,default:``},{name:`headerExtra`,type:`node`,required:!1,description:`Extra content in the header, after the title.`},{name:`headerIcon`,type:`node`,required:!1,description:`Leading header glyph: an icon name (or a node).`},{name:`href`,type:`url`,required:!1,description:`Makes the whole card a link.`},{name:`lifted`,type:`boolean`,required:!1,description:"1px hover translate (`.card-lifted`), not a drop shadow.",default:!1},{name:`maxWidth`,type:`stringOrNumber`,required:!1,description:`Cap and centre a standalone card. A preset (xs, sm, md, lg), a number of pixels or a CSS length.`},{name:`media`,type:`node`,required:!1,description:`Top media band (image or video), above the header.`},{name:`padding`,type:`enum`,enum:[`lg`,`md`,`none`,`sm`],required:!1,description:"Header, body and footer padding preset. The default (md) is a uniform 20px; `none` clears only the body, for a table or list that runs edge to edge, and keeps the header and footer inset. For an arbitrary inset, add a class (see `className`) that sets the `--wui-card-pad` token instead of using this preset scale.",default:`md`},{name:`subtitle`,type:`node`,required:!1,description:`Muted line under the title.`},{name:`title`,type:`node`,required:!1,description:`The heading shown in the card header.`},{name:`titleClassName`,type:`string`,required:!1,description:`Extra classes on the title.`,default:``},{name:`titleFont`,type:`enum`,enum:[`sans`,`serif`],required:!1,description:"Face of the title. `serif` draws it in the display typeface.",default:`sans`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:"Colours the `accent` stripe.",default:`primary`},{name:`variant`,type:`enum`,enum:[`accent`,`elevated`,`filled`,`flat`,`outline`],required:!1,description:`The visual treatment of the card.`,default:`flat`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A page section needs to be visually grouped and set apart from the rest.`,`You are laying out a dashboard of summaries, each on its own surface.`,`A form or list should read as one self-contained block.`],whenNot:[{text:`You need a masthead with a page title and actions.`,instead:`AppPageHeader`},{text:`The content is a transient message, not a lasting section.`,instead:`AppAlert`},{text:`You are showing an empty section with a call to action.`,instead:`AppEmptyState`},{text:`Everything on the page is already one surface: nesting adds noise.`,instead:`plain layout`}],do:[{title:`One titled subject per card`,note:`One titled card, one coherent subject: the header tells the user what this block is.`,example:[{component:`AppCard`,props:{title:`Billing`},children:[{component:`p`,props:{className:`mb-0`},children:`Your plan renews on 12 Aug 2026.`}]}]},{title:`Use body={false} for a table`,note:`A table uses body={false} so its rows sit flush to the card edges.`,example:[{component:`AppCard`,props:{body:!1},children:[{component:`table`,props:{className:`table mb-0`},children:[{component:`tbody`,children:[{component:`tr`,children:[{component:`td`,children:`Corporate Office`},{component:`td`,children:`Draft`}]}]}]}]}]}],dont:[{title:`One titled subject per card`,note:`Three unrelated facts crammed into one untitled card, so none of them stands out.`,example:[{component:`AppCard`,children:[{component:`p`,props:{className:`mb-1`},children:`Your plan renews on 12 Aug 2026.`},{component:`p`,props:{className:`mb-1`},children:`3 new members joined this week.`},{component:`p`,props:{className:`mb-0`},children:`Server Room assessment is overdue.`}]}]},{title:`Use body={false} for a table`,note:`The default body padding leaves an awkward inset gap around a full-width table.`,example:[{component:`AppCard`,children:[{component:`table`,props:{className:`table mb-0`},children:[{component:`tbody`,children:[{component:`tr`,children:[{component:`td`,children:`Corporate Office`},{component:`td`,children:`Draft`}]}]}]}]}]}],a11y:[`A card given an onClick has role button and one tab stop, and Enter or Space runs the action; a card given an href is a link.`,`The close button has an accessible name from closeLabel, and pressing it never runs the card's own action.`]}},{name:`AppCarousel`,marker:`AppCarousel`,acceptsChildren:!0,props:[{name:`arrows`,type:`boolean`,required:!1,description:`Show the previous and next buttons.`,default:!0},{name:`autoplay`,type:`number`,required:!1,description:`Milliseconds between automatic steps (5000 is typical). Omit for none.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`dotLabel`,type:`string`,required:!1,description:`The words before the slide number in each dot's name.`,default:`Go to slide`},{name:`dots`,type:`boolean`,required:!1,description:`Show the page dots.`,default:!0},{name:`label`,type:`string`,required:!0,description:`What the slides are ("Customer stories"): the carousel's accessible name.`},{name:`loop`,type:`boolean`,required:!1,description:`The previous and next buttons wrap around at the ends.`,default:!1},{name:`nextLabel`,type:`string`,required:!1,description:`The next button's name.`,default:`Next slide`},{name:`pauseLabel`,type:`string`,required:!1,description:`The pause button's text and name while playing.`,default:`Pause`},{name:`perView`,type:`number`,required:!1,description:`Slides in view on a phone.`,default:1},{name:`perViewLg`,type:`number`,required:!1,description:"Slides in view from the lg breakpoint. Defaults to `perViewMd`."},{name:`perViewMd`,type:`number`,required:!1,description:"Slides in view from the md breakpoint. Defaults to `perView`."},{name:`playLabel`,type:`string`,required:!1,description:`The pause button's text and name while paused.`,default:`Play`},{name:`previousLabel`,type:`string`,required:!1,description:`The previous button's name.`,default:`Previous slide`},{name:`style`,type:`object`,required:!1,description:`Merged after the per-view custom properties.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A handful of equal slides: testimonials, featured items.`,`Content that is fine to read a slide at a time.`],whenNot:[{text:`Steps a person must complete in order.`,instead:`AppWizard`},{text:`A long list people scan and filter.`,instead:`AppDataTable`}],do:[],dont:[],a11y:[`The carousel is a named region with the role description carousel; the label names it.`,`Each slide is a group described as a slide; the slide row takes keyboard focus and moves with the arrow, Home and End keys; the previous and next buttons are named by previousLabel and nextLabel.`,`The pause button is named by pauseLabel while playing and by playLabel while paused; each page dot is named by dotLabel and its slide number.`]}},{name:`AppCell`,marker:`AppCell`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the cell root.`,default:``},{name:`href`,type:`string`,required:!1,description:`Makes the primary a link to this address.`},{name:`mono`,type:`boolean`,required:!1,description:`Sets the primary line in monospace.`,default:!1},{name:`numeric`,type:`boolean`,required:!1,description:`Right-aligns both lines with tabular digits.`,default:!1},{name:`primary`,type:`node`,required:!1,description:`The main value on the first line. Empty draws the placeholder -; 0 draws 0.`},{name:`secondary`,type:`node`,required:!1,description:`The quieter detail line under the primary. Omitted when empty.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table cell with a main value and a quieter detail line under it.`,`A figure column that should right-align with tabular digits.`],whenNot:[{text:`A cell that is only one value.`,instead:`Plain cell text`},{text:`An amount in rupees from paise.`,instead:`formatINR, or app-money in Razor`}],do:[],dont:[],a11y:[`The link is a real anchor named by the primary text.`,`Both lines are plain text and read in order.`]}},{name:`AppChart`,marker:`AppChart`,acceptsChildren:!1,props:[{name:`bands`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The stretch's name.`},{name:`upTo`,type:`number`,required:!0,description:`The value the stretch runs up to.`}],required:!1,description:`A gauge's named stretches of its scale, each up to a value.`},{name:`centerLabel`,type:`string`,required:!1,description:`Caption under the total in the centre of a donut. Default Total. Donut only.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`data`,type:`array`,required:!0,description:`One row per x position, slice, cell, stage, flow or point: what a row is depends on the type.`},{name:`description`,type:`string`,required:!1,description:`One sentence a screen reader hears before the automatic summary.`},{name:`emptyText`,type:`string`,required:!1,description:`Replaces the default empty message.`},{name:`error`,type:`string`,required:!1,description:"The curated message to show when the chart failed: the same as state `error` with this text. Wins over `loading` and `state`, and replaces `errorText`."},{name:`errorText`,type:`string`,required:!1,description:`Replaces the default error message. Say what the person can do.`},{name:`group`,type:`object`,fields:[{name:`key`,type:`string`,required:!0,description:`The data column holding the second dimension.`},{name:`label`,type:`string`,required:!1,description:`The name shown for the second dimension.`}],required:!1,description:`The second dimension: a heatmap's rows, a treemap's parents, a scatter or bubble's colour groups (at most 3). Required for a heatmap and a treemap.`},{name:`height`,type:`number`,required:!1,description:`In px, the axis labels included. A value that is not above 0 draws at the default.`,default:320},{name:`loading`,type:`boolean`,required:!1,description:"The chart is loading: the same as state `loading`. Wins over `state`.",default:!1},{name:`loadingText`,type:`string`,required:!1,description:`Replaces the default loading message, the text read aloud while the chart loads.`,default:`Loading chart`},{name:`renderer`,type:`enum`,enum:[`auto`,`canvas`,`svg`],required:!1,description:"`auto` draws SVG, and canvas above 5,000 points.",default:`auto`},{name:`series`,type:`array`,itemFields:[{name:`colour`,type:`enum`,enum:[`chart-1`,`chart-2`,`chart-3`,`chart-4`,`chart-5`,`chart-6`,`chart-7`,`chart-8`],required:!1,description:`Which theme chart colour this series draws in (chart-1 to chart-8). Omit it to take the next colour in order.`},{name:`format`,type:`object`,fields:[{name:`currency`,type:`string`,required:!1,description:`For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. Required when style is currency.`},{name:`decimals`,type:`number`,required:!1,description:`Fraction digits: fixed for currency (0 when left out), a cap for other styles.`},{name:`pattern`,type:`enum`,enum:[`datetime`,`day`,`month`,`time`,`year`],required:!1,description:`For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).`,default:`day`},{name:`style`,type:`enum`,enum:[`compact`,`currency`,`date`,`duration`,`number`,`percent`],required:!1,description:`How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).`,default:`number`},{name:`unit`,type:`enum`,enum:[`h`,`min`,`ms`,`paise`,`rupees`,`s`],required:!1,description:`What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration.`}],required:!1,description:`How this series' values print: a style, with currency, unit, decimals or pattern where the style takes them.`},{name:`key`,type:`string`,required:!0,description:`The data column holding this series' values.`},{name:`label`,type:`string`,required:!0,description:`The series name shown in the legend and tooltips.`}],required:!0,description:`The value columns, in the order they take colours: at most 8. Every type but line, area, column, bar and multiples takes one.`},{name:`size`,type:`object`,fields:[{name:`format`,type:`object`,fields:[{name:`currency`,type:`string`,required:!1,description:`For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. Required when style is currency.`},{name:`decimals`,type:`number`,required:!1,description:`Fraction digits: fixed for currency (0 when left out), a cap for other styles.`},{name:`pattern`,type:`enum`,enum:[`datetime`,`day`,`month`,`time`,`year`],required:!1,description:`For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).`,default:`day`},{name:`style`,type:`enum`,enum:[`compact`,`currency`,`date`,`duration`,`number`,`percent`],required:!1,description:`How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).`,default:`number`},{name:`unit`,type:`enum`,enum:[`h`,`min`,`ms`,`paise`,`rupees`,`s`],required:!1,description:`What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration.`}],required:!1,description:`How bubble areas print: a style, with currency, unit, decimals or pattern where the style takes them.`},{name:`key`,type:`string`,required:!0,description:`The data column holding each bubble's area.`},{name:`label`,type:`string`,required:!1,description:`The name shown for the bubble area.`}],required:!1,description:`A bubble's area. Required for a bubble.`},{name:`sliceValues`,type:`boolean`,required:!1,description:`Print each slice's value and share on the donut, at any width. Donut only.`,default:!0},{name:`stack`,type:`enum`,enum:[`none`,`percent`,`stacked`],required:!1,description:`For area, column and bar.`,default:`none`},{name:`state`,type:`enum`,enum:[`empty`,`error`,`loading`,`ready`],required:!1,description:"`loading` after a first draw keeps that picture on screen, dimmed.",default:`ready`},{name:`style`,type:`object`,required:!1,description:`Inline style on the element.`},{name:`target`,type:`object`,fields:[{name:`label`,type:`string`,required:!0,description:`The line's name.`},{name:`value`,type:`number`,required:!0,description:`Where the line sits on the value axis.`}],required:!1,description:`A dashed reference line.`},{name:`timeZone`,type:`string`,required:!1,description:`IANA time zone dates are read and shown in, for example America/New_York. Unset, it is India Standard Time (Asia/Kolkata).`},{name:`title`,type:`string`,required:!0,description:`Required. Names the chart for assistive tech and names exported files. An empty string counts as not given.`},{name:`to`,type:`object`,fields:[{name:`key`,type:`string`,required:!0,description:`The data column holding where each flow ends.`},{name:`label`,type:`string`,required:!1,description:`The name shown for where the flows end.`}],required:!1,description:"Where each sankey flow ends; `x` is where it starts. Required for a sankey."},{name:`trend`,type:`boolean`,required:!1,description:`A scatter or bubble's straight trend line through the visible points.`},{name:`type`,type:`enum`,enum:[`area`,`bar`,`bubble`,`calendar`,`column`,`donut`,`funnel`,`gauge`,`heatmap`,`line`,`multiples`,`sankey`,`scatter`,`treemap`,`waterfall`],required:!0,description:"`column` is vertical bars, `bar` horizontal. `multiples` draws each series as its own small chart under one shared x axis."},{name:`valueLabels`,type:`boolean`,required:!1,description:`Print each value on its bar or point. Line, column and bar only. A line shows them by default.`,default:!1},{name:`view`,type:`enum`,enum:[`chart`,`table`],required:!1,description:"`table` shows the data table in the chart's place.",default:`chart`},{name:`x`,type:`object`,fields:[{name:`format`,type:`object`,fields:[{name:`currency`,type:`string`,required:!1,description:`For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. Required when style is currency.`},{name:`decimals`,type:`number`,required:!1,description:`Fraction digits: fixed for currency (0 when left out), a cap for other styles.`},{name:`pattern`,type:`enum`,enum:[`datetime`,`day`,`month`,`time`,`year`],required:!1,description:`For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).`,default:`day`},{name:`style`,type:`enum`,enum:[`compact`,`currency`,`date`,`duration`,`number`,`percent`],required:!1,description:`How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).`,default:`number`},{name:`unit`,type:`enum`,enum:[`h`,`min`,`ms`,`paise`,`rupees`,`s`],required:!1,description:`What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration.`}],required:!1,description:`How x values print: a style, with currency, unit, decimals or pattern where the style takes them.`},{name:`key`,type:`string`,required:!0,description:`The data column holding the x value.`},{name:`kind`,type:`enum`,enum:[`category`,`time`,`value`],required:!1,description:`How x values are read: as category labels, as times, or as numbers.`},{name:`label`,type:`string`,required:!1,description:`The title of the x axis.`},{name:`labelFit`,type:`enum`,enum:[`all`,`auto`,`ellipsis`,`rotate`],required:!1,description:`How a column chart fits its category names. auto hides those that overlap; all shows every name; rotate turns them; ellipsis cuts each to its slot, with the full text in the axis tooltip and the table. Column only: a bar chart has the room already.`,default:`auto`}],required:!0,description:'The column holding the x value. `time` takes epoch ms, an ISO instant or a "YYYY-MM-DD" day; `value` (scatter and bubble) is a number. A calendar is always `time`, a scatter and a bubble always `value`.'},{name:`y`,type:`object`,fields:[{name:`format`,type:`object`,fields:[{name:`currency`,type:`string`,required:!1,description:`For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. Required when style is currency.`},{name:`decimals`,type:`number`,required:!1,description:`Fraction digits: fixed for currency (0 when left out), a cap for other styles.`},{name:`pattern`,type:`enum`,enum:[`datetime`,`day`,`month`,`time`,`year`],required:!1,description:`For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).`,default:`day`},{name:`style`,type:`enum`,enum:[`compact`,`currency`,`date`,`duration`,`number`,`percent`],required:!1,description:`How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).`,default:`number`},{name:`unit`,type:`enum`,enum:[`h`,`min`,`ms`,`paise`,`rupees`,`s`],required:!1,description:`What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration.`}],required:!1,description:`How axis values print: a style, with currency, unit, decimals or pattern where the style takes them.`},{name:`label`,type:`string`,required:!1,description:`The title of the value axis.`},{name:`max`,type:`number`,required:!1,description:`The highest value on the axis.`},{name:`min`,type:`number`,required:!1,description:`The lowest value on the axis.`},{name:`wholeNumbers`,type:`boolean`,required:!1,description:`Ticks the axis only at whole numbers, for a chart of counts.`}],required:!1,description:`The one value axis. There is no second axis: show another measure as its own chart.`},{name:`zoom`,type:`boolean`,required:!1,description:`A zoom slider under a line or area. On by default above 5,000 rows.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A trend, a comparison or a share that people need to read at a glance, with the exact values one hover away.`,`Money, counts, percentages or durations that should print the way the rest of the product prints them.`,`A dashboard where every chart should look, behave and read aloud the same way.`],whenNot:[{text:`One headline number with a small trend.`,instead:`AppKpiTile`},{text:`A trend that fits in a table cell.`,instead:`AppSparkline`},{text:`One reading against a known range.`,instead:`AppMeter`}],do:[],dont:[],a11y:[`The chart is a figure named by its title, with a screen-reader summary linked to it and a real data table behind the picture.`,`The drawing is read with the arrow keys, one value at a time, and each legend button reports whether its series is shown with aria-pressed.`,`The loading, empty and error messages are announced as status, and a chart that is loading is marked busy.`]}},{name:`AppChartCard`,marker:`AppChartCard`,acceptsChildren:!0,props:[{name:`chartViewLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Chart`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the card.`,default:``},{name:`downloadCsvLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Download CSV`},{name:`downloadPngLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Download PNG`},{name:`footer`,type:`node`,required:!1,description:`A row under the chart: a source, an updated-at time, a link.`},{name:`legendLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Show legend`},{name:`legendTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Show or hide the legend`},{name:`moreActionsForLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {title} is filled with the card's title.`,default:`More actions for {title}`},{name:`moreActionsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`More actions`},{name:`retryLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Try again`},{name:`subtitle`,type:`string`,required:!1,description:`A muted line under the title: the unit or the period.`},{name:`tableViewLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Table`},{name:`title`,type:`string`,required:!0,description:`The card's heading. Also names the menu button for assistive tech.`},{name:`toolbar`,type:`boolean`,required:!1,description:`Show the view controls.`,default:!0},{name:`viewLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`View`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A chart that sits on a dashboard or a report page and needs a title and the standard view controls.`,`People should be able to see the numbers as a table, or take them away as a PNG or a CSV.`],whenNot:[{text:`A chart inside prose or inside another card.`,instead:`AppChart`},{text:`A single figure.`,instead:`AppKpiTile`}],do:[],dont:[],a11y:[`The legend toggle is a button that reports its state with aria-pressed and is named Show legend.`,`The Try again button is an ordinary button that appears only when onRetry is given and the chart is in its error state.`]}},{name:`AppCheckbox`,marker:`AppCheckbox`,acceptsChildren:!1,props:[{name:`checked`,type:`boolean`,required:!1,description:"Controlled ticked state; pair with `onChange`."},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultChecked`,type:`boolean`,required:!1,description:`Starting state when the checkbox is uncontrolled.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the checkbox and dims it.`},{name:`error`,type:`node`,required:!1,description:`Error message, rendered below the control. Replaces the helper text.`},{name:`help`,type:`node`,required:!1,description:`Content for the info-tip after the label. Shown only when a label is set.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text below the control. Hidden while an error is shown.`},{name:`id`,type:`string`,required:!1,description:`The input's id. A unique id is generated when none is given.`},{name:`label`,type:`node`,required:!1,description:`The text beside the box. Clicking it ticks the box.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The form field name, sent with the value on submit.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`],required:!1,description:`circle draws a round box with the tick inside, for a task that is completed. Omit it for the square box.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control size: sm, md or lg.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You need one or more independent true/false settings, where any combination is valid.`,`The user opts in on a form that is saved later (terms, notification preferences).`,`Several options apply at once and are not mutually exclusive.`],whenNot:[{text:`One on/off setting that takes effect immediately.`,instead:`AppSwitch`},{text:`The user must pick exactly one of 2 to 5 options.`,instead:`AppRadio`},{text:`The user picks many values from a long list.`,instead:`AppSelect mode="multiple"`},{text:`It is a selectable filter or tag pill.`,instead:`AppChoiceChip`}],do:[{title:`Independent options each get a checkbox`,note:`Independent settings: each checkbox toggles on its own, any combination allowed.`,example:[{component:`div`,props:{className:`d-flex flex-column gap-2`},children:[{component:`AppCheckbox`,props:{label:`Weekly digest`,defaultChecked:!0}},{component:`AppCheckbox`,props:{label:`Product updates`}},{component:`AppCheckbox`,props:{label:`Security alerts`,defaultChecked:!0}}]}]},{title:`Checkboxes, not switches, for saved forms`,note:`A clear, specific label states exactly what opting in means.`,example:[{component:`AppCheckbox`,props:{label:`Send weekly digest`}}]}],dont:[{title:`Independent options each get a checkbox`,note:`Radios force a single choice, so independent yes/no options each need their own checkbox.`,example:[{component:`div`,props:{className:`wui-control-group`},children:[{component:`AppRadio`,props:{label:`Weekly digest`,name:`prefs-bad`,value:`digest`,defaultChecked:!0}},{component:`AppRadio`,props:{label:`Security alerts`,name:`prefs-bad`,value:`security`}}]}]},{title:`Checkboxes, not switches, for saved forms`,note:`Switches imply an instant, saved effect; on a form that submits on Save, checkboxes set the right expectation.`,example:[{component:`div`,props:{className:`d-flex flex-column gap-2`},children:[{component:`AppSwitch`,props:{label:`Weekly digest`,defaultChecked:!0}},{component:`AppSwitch`,props:{label:`Product updates`}},{component:`AppSwitch`,props:{label:`Security alerts`,defaultChecked:!0}}]}]}],a11y:[`The label is linked to the input by id, so a click on the label text ticks the box.`,`The error or the helper text is linked to the input with aria-describedby, and an error sets aria-invalid to true.`,`An id is generated when none is given, so the label link always works.`]}},{name:`AppChip`,marker:`AppChip`,acceptsChildren:!0,props:[{name:`avatar`,type:`node`,required:!1,description:`Leading avatar: an image URL or a node.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`count`,type:`node`,required:!1,description:`A count shown after the label, such as a filter's result count.`},{name:`disabled`,type:`boolean`,required:!1,description:`Dims the chip and stops it from being pressed.`,default:!1},{name:`label`,type:`node`,required:!1,description:"Chip text (or use `children`)."},{name:`leadingIcon`,type:`string`,required:!1,description:`Semantic icon name for a leading glyph.`},{name:`removeLabel`,type:`string`,required:!1,description:`aria-label for the dismiss button.`},{name:`selected`,type:`boolean`,required:!1,nullable:!0,description:`With onClick, true marks the chip as the chosen filter (its button carries aria-pressed). Needs onClick; a chip that is not clickable refuses it.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`sm for a denser chip; md by default.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour meaning: neutral by default, or a state or category.`,default:`neutral`},{name:`variant`,type:`enum`,enum:[`outline`,`soft`,`solid`],required:!1,description:`Colour treatment: a tinted surface (soft, the default), a tinted surface with a coloured border (outline), or a filled pill with contrasting text (solid).`,default:`soft`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A multi-select needs to show each chosen value as a removable token.`,`A filter bar shows the active facets, each dismissible.`,`You are labelling something with a small tag: a category, a state, a version.`],whenNot:[{text:`The user is picking one option from a set (a form control).`,instead:`AppChoiceChip`},{text:`You are showing a small count or a bare label.`,instead:`AppBadge`},{text:`You are showing a status mapped from an enum.`,instead:`AppStatusBadge`},{text:`It is really a button that performs an action.`,instead:`AppButton`}],do:[{title:`Show applied filters as removable chips`,note:`Removable chips for applied filters: the user sees exactly what is active and can clear each one.`,example:[{component:`AppChip`,props:{label:`Lightning`}},{component:`AppChip`,props:{label:`Zone 1`}},{component:`AppChip`,props:{label:`Rev B`}}]},{title:`One clear tone and a glyph`,note:`One clear tone and a reinforcing glyph: the chip reads at a glance.`,example:[{component:`AppChip`,props:{label:`Verified`,tone:`success`,leadingIcon:`check-circle`}}]},{title:`Keep chip text short`,note:`A short label reads as a token at a glance.`,example:[{component:`AppChip`,props:{label:`Draft`}}]}],dont:[{title:`Show applied filters as removable chips`,note:`A disabled chip cannot be cleared, so the user has no way to remove the filter from the chip.`,example:[{component:`AppChip`,props:{label:`Lightning`,disabled:!0}}]},{title:`One clear tone and a glyph`,note:`Three tones on three peer filters invent meaning that isn’t there: keep peers one tone.`,example:[{component:`AppChip`,props:{label:`Lightning`,tone:`primary`}},{component:`AppChip`,props:{label:`Zone 1`,tone:`success`}},{component:`AppChip`,props:{label:`Rev B`,tone:`danger`}}]},{title:`Keep chip text short`,note:`A sentence in a chip defeats the point: a chip is a token, not a paragraph.`,example:[{component:`AppChip`,props:{label:`Verified, submitted, and awaiting final sign-off from the reviewer`,tone:`success`}}]}],a11y:[`A removable chip's dismiss button is named by removeLabel, or by Remove followed by the chip text when no label is given.`,`A clickable chip is a button; its aria-* and data-* attributes go to that button, so the button carries the name.`,`disabled disables the chip button and the dismiss button.`]}},{name:`AppChipGroup`,marker:`AppChipGroup`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the group.`,default:``},{name:`label`,type:`string`,required:!1,description:`Accessible name for the group.`},{name:`moreLabel`,type:`string`,required:!1,description:`The More button text when overflow is menu.`,default:`More`},{name:`overflow`,type:`enum`,enum:[`menu`,`wrap`],required:!1,description:"`wrap` lets the chips wrap; `menu` moves the extras into a More menu.",default:`wrap`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A filter or tag row that must stay on one line on a phone.`,`A row of chips of unknown length.`],whenNot:[{text:`Two to four exclusive options.`,instead:`AppSegmented`},{text:`Tabs that switch panels.`,instead:`AppTabs`}],do:[],dont:[],a11y:[`The group has role group and takes its accessible name from label.`,`With overflow menu, the chips that do not fit move into a More menu whose button text is moreLabel.`,`Choosing a chip in the menu clicks that chip's own control; a chip with no control is listed greyed out.`]}},{name:`AppChoiceCard`,marker:`AppChoiceCard`,acceptsChildren:!0,props:[{name:`checkIcon`,type:`string`,required:!1,description:`Icon name for the selected tick.`,default:`check`},{name:`checkSize`,type:`number`,required:!1,description:`Tick icon size in px.`,default:18},{name:`checked`,type:`boolean`,required:!0,description:`Whether the card is selected.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the card.`,default:``},{name:`description`,type:`node`,required:!1,description:`Secondary text under the title.`},{name:`disabled`,type:`boolean`,required:!1,description:`The card cannot change: no pointer, no hover, announced as disabled. A disabled parent fieldset does the same.`,default:!1},{name:`help`,type:`node`,required:!1,description:`Content for an info-tip drawn after the card text.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`hideCheck`,type:`boolean`,required:!1,description:`Render no selected tick. Selection then reads from the card's border and fill alone, and the card sheds the top and bottom room the tick needed.`,default:!1},{name:`icon`,type:`string`,required:!1,description:`Icon name. Renders linear, and switches to the solid (bold) style while the card is checked so the selected card reads at a glance.`},{name:`iconNode`,type:`node`,required:!1,description:`Custom icon content, used in place of icon.`},{name:`iconSize`,type:`number`,required:!1,description:`Icon glyph size in px. Defaults to the card size: 16 (sm), 18 (md), 22 (lg).`},{name:`image`,type:`string`,required:!1,description:`Image URL. Renders an image-forward card (overrides icon).`},{name:`imageAlt`,type:`string`,required:!1,description:`Alternative text for the image.`,default:``},{name:`imageHeight`,type:`number`,required:!1,description:`The image's intrinsic height in px.`},{name:`imageWidth`,type:`number`,required:!1,description:`The image's intrinsic width in px. Set it with imageHeight so the card keeps its size while the image loads.`},{name:`layout`,type:`enum`,enum:[`inline`,`stacked`],required:!1,description:"`inline` puts the icon beside the text; `stacked` puts the icon on its own line with the title and description below it.",default:`inline`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`multiple`,type:`boolean`,required:!1,description:`Render as a checkbox (multi-select) rather than a radio.`,default:!1},{name:`name`,type:`string`,required:!0,description:`Shared form name. Cards with the same name form one group.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`selectedStyle`,type:`enum`,enum:[`filled`],required:!1,description:"`filled` fills the checked card's icon disc with the primary colour and draws the glyph in the on-primary colour. Unset keeps the soft selected look."},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Card size: padding, gap, icon disc, type and the tick offset step together.`,default:`md`},{name:`title`,type:`node`,required:!1,description:`The card title.`},{name:`value`,type:`string`,required:!0,description:`The value this card submits when selected.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Picking one of a small set (2 to 5) of exclusive options, each worth an icon and a line of description.`,`A structure, plan, or type picker where seeing all options side by side helps the decision.`,`An onboarding or setup choice that benefits from richer visuals than a plain radio list.`],whenNot:[{text:`There are many options (6+).`,instead:`AppSelect`},{text:`The options are plain and need no icon or description.`,instead:`AppRadio`},{text:`It is a compact filter or tag toggle.`,instead:`AppChoiceChip`},{text:`It just displays a chosen value.`,instead:`AppChip`}],do:[{title:`A short title and one line`,note:`A short title and a one-line description. The card reads instantly.`,example:[{component:`div`,props:{className:`wui-grid wui-grid-md-2 gap-3`},children:[{component:`AppChoiceCard`,props:{name:`dd-good`,value:`flat`,checked:!0,icon:`building-2`,title:`Flat roof`,description:`Single-level rooftop`},handlers:[`onChange`]},{component:`AppChoiceCard`,props:{name:`dd-good`,value:`tower`,checked:!1,icon:`factory`,title:`Tower`,description:`Tall vertical structure`},handlers:[`onChange`]}]}]},{title:`One visual style per group`,note:`One visual style across the group: all icon cards, or all image cards.`,example:[{component:`div`,props:{className:`wui-grid wui-grid-md-2 gap-3`},children:[{component:`AppChoiceCard`,props:{name:`dd-consistent`,value:`a`,checked:!0,icon:`building-2`,title:`Flat roof`,description:`Single-level`},handlers:[`onChange`]},{component:`AppChoiceCard`,props:{name:`dd-consistent`,value:`b`,checked:!1,icon:`house`,title:`Pitched roof`,description:`Sloped`},handlers:[`onChange`]}]}]}],dont:[{title:`A short title and one line`,note:`A paragraph stuffed into a card. If it needs this much text, it needs a different control.`,example:[{component:`AppChoiceCard`,props:{name:`dd-bad`,value:`x`,checked:!1,icon:`house`,title:`Pitched / gabled / hip roof with an eave overhang`,description:`Any roof whose primary planes are inclined more than ten degrees from the horizontal, including combinations.`},handlers:[`onChange`]}]},{title:`One visual style per group`,note:`Mixing an icon card with an image card in one group makes the set feel broken.`,example:[{component:`div`,props:{className:`wui-grid wui-grid-md-2 gap-3`},children:[{component:`AppChoiceCard`,props:{name:`dd-mixed`,value:`a`,checked:!0,icon:`building-2`,title:`Flat roof`,description:`Single-level`},handlers:[`onChange`]},{component:`AppChoiceCard`,props:{name:`dd-mixed`,value:`b`,checked:!1,image:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='180'%3E%3Crect width='100%25' height='100%25' fill='%2304B440'/%3E%3C/svg%3E`,title:`Green`,description:`Tone`},handlers:[`onChange`]}]}]}],a11y:[`The card is a label around a native radio input, or a checkbox input when multiple is set, so keyboard and screen reader behaviour is the browser's.`,`Cards with the same name form one radio group; disabled sets the input disabled and marks the card aria-disabled.`,`The image uses imageAlt as its alternative text, empty when it is not set.`]}},{name:`AppChoiceChip`,marker:`AppChoiceChip`,acceptsChildren:!0,props:[{name:`checked`,type:`boolean`,required:!0,description:`Whether the chip is selected.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the chip.`,default:``},{name:`count`,type:`node`,required:!1,description:`A matching-row count, such as Active 12. Shown as a small badge that inverts when the chip is selected.`},{name:`disabled`,type:`boolean`,required:!1,description:`The chip dims and cannot be picked.`,default:!1},{name:`help`,type:`node`,required:!1,description:`Content for an info-tip drawn beside the chip, as its sibling.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`label`,type:`node`,required:!1,description:`Chip text. Children work in its place.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`multiple`,type:`boolean`,required:!1,description:`Checkbox (multi-select) when true, radio when false.`,default:!0},{name:`name`,type:`string`,required:!1,description:`Shared form name. Chips with the same name form one group.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Pill size: padding, gap and font step together.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The value this chip submits when selected.`},{name:`variant`,type:`enum`,enum:[`soft`,`solid`],required:!1,description:`Checked look: a soft primary tint (soft) or a primary fill with a translucent count (solid).`,default:`soft`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A filter the user turns on and off, to narrow a list by tag, status or type.`,`Picking among a small set of options shown as pills, all visible at once.`,`Multi-select tags where several choices can be active together.`],whenNot:[{text:`It triggers an action rather than holding a selection.`,instead:`AppButton`},{text:`It only displays or removes a chosen value (a token).`,instead:`AppChip`},{text:`You are picking one of many (6+) options.`,instead:`AppSelect`},{text:`Each option needs an icon, title, and description.`,instead:`AppChoiceCard`}],do:[{title:`A few short pills`,note:`A few short, scannable pills; the user sees every option and toggles at a glance.`,example:[{component:`AppChoiceChip`,props:{checked:!0},children:`Telecom`,handlers:[`onChange`]},{component:`AppChoiceChip`,props:{checked:!1},children:`Power line`,handlers:[`onChange`]}]},{title:`Drive checked from state`,note:`checked reflects real selection state that your onChange updates; a proper control.`,example:[{component:`AppChoiceChip`,props:{checked:!0},children:`Active`,handlers:[`onChange`]}]}],dont:[{title:`A few short pills`,note:`A sentence crammed into a chip. Long labels belong in a select or a checkbox list.`,example:[{component:`AppChoiceChip`,props:{checked:!1},children:`Structures fed by overhead high-voltage lines within 50 m`,handlers:[`onChange`]}]},{title:`Drive checked from state`,note:`A chip used to fire an action. Actions are buttons; a chip should hold a choice.`,example:[{component:`AppChoiceChip`,props:{checked:!1},children:`Export`,handlers:[`onChange`]}]}],a11y:[`The chip is a label around a native checkbox input, or a radio input when multiple is false, so keyboard and screen reader behaviour is the browser's.`,`Chips with the same name form one radio group when multiple is false.`,`The visible text comes from label, or from the children when label is not set; disabled sets the input disabled.`]}},{name:`AppCodeBlock`,marker:`AppCodeBlock`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the root.`,default:``},{name:`code`,type:`string`,required:!1,description:`The source text. A single trailing newline is dropped.`},{name:`copiedLabel`,type:`string`,required:!1,description:`The copy button's label for two seconds after a copy. It reads Copied when left out.`},{name:`copyLabel`,type:`string`,required:!1,description:`The copy button's label. It reads Copy when left out.`},{name:`label`,type:`string`,required:!1,description:`The header title, such as webhook.json, and the code region's accessible name. Without it the header names the language.`},{name:`language`,type:`enum`,enum:[`bash`,`cs`,`css`,`html`,`http`,`js`,`json`,`razor`,`sql`,`text`],required:!1,description:"What to colour; `text` shows it as written.",default:`text`},{name:`lineNumbers`,type:`boolean`,required:!1,description:`Number the lines. The numbers are not copied or selected.`,default:!1},{name:`wrap`,type:`boolean`,required:!1,description:`Wrap long lines instead of scrolling sideways.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A code sample, request, response or payload people read and copy.`,`An API key or command to paste.`],whenNot:[{text:`A short value in a sentence.`,instead:`the code element`},{text:`Copying a single value with no code around it.`,instead:`AppCopyButton`},{text:`Editing code.`,instead:`a code editor`}],do:[],dont:[],a11y:[`The label is the code region's accessible name; without it the header names the language.`,`The copy button reads copyLabel, and for two seconds after a copy it reads copiedLabel.`,`Line numbers are not copied or selected.`]}},{name:`AppColorField`,marker:`AppColorField`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Applied to the hex text input, the control.`,default:``},{name:`colourLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Colour`},{name:`colourPickerLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {label} is the field label.`,default:`{label}, colour picker`},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`The field cannot change.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Error message shown under the field.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Applied to the field wrapper.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the field.`},{name:`id`,type:`string`,required:!1,description:`Element id of the hex text box. Defaults to a generated id, not name.`},{name:`label`,type:`node`,required:!1,description:`The field label.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Form field name on the text box, the control that posts.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size. sm, lg and xl resize the swatch and the hex box together.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`Hex colour, for example #4F46E5.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user genuinely needs an arbitrary colour, such as a brand accent or a tag colour.`,`A hex from a brand guide will be pasted in.`,`The field sits in a settings or theming form.`],whenNot:[{text:`There is a fixed palette to choose from (AppChoiceChip or AppChoiceCard).`,instead:`AppChoiceChip`},{text:`The colour carries meaning (status, severity). Meaning belongs to a token, not a user-picked hex.`,instead:`AppStatusBadge`},{text:`It is any other single-line value.`,instead:`AppInput`}],do:[{title:`Say what the colour affects`,note:`Says what the colour affects. A user picking blind cannot tell whether they are about to change one button or the whole portal.`,example:[{component:`AppColorField`,props:{label:`Accent colour`,value:`#4F46E5`,helperText:`Used for buttons and links.`}}]}],dont:[{title:`Say what the colour affects`,note:`“Colour” of what? And with no helper text, the user has to save and go looking to find out what changed.`,example:[{component:`AppColorField`,props:{label:`Colour`,value:`#4F46E5`}}]}],a11y:[`The hex text box is the labelled control and the field that posts; the label points at it and the required mark follows the label.`,`The swatch has its own accessible name, the label followed by colour picker (or Colour when there is no label), and is skipped by the tab key.`,`An error sets the text box invalid and describes it with the error text; without an error, the helper text describes it.`]}},{name:`AppColumnMenu`,marker:`AppColumnMenu`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the menu panel.`,default:``},{name:`columns`,type:`array`,itemFields:[{name:`hideable`,type:`boolean`,required:!1,description:`Gives the column a checkbox in the menu. Without it the column always shows.`},{name:`key`,type:`string`,required:!0,description:`The column's key, used in hiddenColumns and onToggle.`},{name:`label`,type:`node`,required:!0,description:`The column's heading.`}],required:!0,description:`The table's columns.`},{name:`hiddenColumns`,type:`array`,required:!1,description:`Keys of the columns currently hidden.`,default:[]},{name:`label`,type:`string`,required:!1,description:`Accessible name and tooltip of the button, and the menu heading.`,default:`Columns`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table has columns that only some people need, such as an owner, a created date or an internal code.`,`People return to the same table and expect it the way they left it.`,`The columns that identify a row must stay visible while the rest are optional.`],whenNot:[{text:`The table has only a few columns that all matter.`,instead:`no menu`},{text:`You want to narrow which rows show.`,instead:`AppTableToolbar`},{text:`You want the table in a different order.`,instead:`AppDataTable`}],do:[{title:`One Columns button in the toolbar`,note:`One Columns button in the toolbar actions, beside search and export.`,example:[{component:`div`,props:{className:`w-100`},children:[{component:`AppTableToolbar`,props:{actions:{component:`AppColumnMenu`,props:{columns:[{key:`name`,label:`Building`},{key:`owner`,label:`Owner`,hideable:!0},{key:`floors`,label:`Floors`,hideable:!0},{key:`status`,label:`Status`}],hiddenColumns:[]},handlers:[`onToggle`]}}},{component:`AppDataTable`,props:{id:`wui-column-menu-usage`,ariaLabel:`Buildings`,density:`compact`,columns:[{key:`name`,label:`Building`},{key:`owner`,label:`Owner`,hideable:!0},{key:`floors`,label:`Floors`,hideable:!0},{key:`status`,label:`Status`}],rows:[{id:1,name:`Corporate Office`,owner:`Asha Rao`,floors:12,status:`Draft`},{id:2,name:`Warehouse Annexe`,owner:`Vikram Shah`,floors:3,status:`Compliant`},{id:3,name:`Server Room`,owner:`Asha Rao`,floors:1,status:`Draft`}]}}]}]}],dont:[{title:`One Columns button in the toolbar`,note:`A permanent row of checkboxes takes space above the table and pushes the data down.`,example:[{component:`div`,props:{className:`d-flex gap-3`},children:[{component:`AppCheckbox`,props:{label:`Owner`,defaultChecked:!0}},{component:`AppCheckbox`,props:{label:`Floors`,defaultChecked:!0}}]}]}],a11y:[`The button's accessible name and tooltip is the label prop.`,`Each hideable column is a native checkbox inside a label, so its name is the column heading and Space toggles it.`]}},{name:`AppCommandPalette`,marker:`AppCommandPalette`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the dialog and its input.`,default:`Search`},{name:`backLabel`,type:`string`,required:!1,description:`Accessible name of the Back button.`,default:`Back`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the dialog card.`,default:``},{name:`emptyText`,type:`node`,required:!1,description:`Shown when the query is not blank, nothing is loading, and no group has items.`,default:`No results`},{name:`footer`,type:`node`,required:!1,description:`Content under the list, such as key hints.`},{name:`groupFilter`,type:`boolean`,required:!1,description:`Shows a pill per group under the query, All first with the total. Only the picked group's results are drawn. Tab and Shift+Tab in the search move to the next and previous pill; a changed query picks All again.`,default:!1},{name:`groups`,type:`array`,itemFields:[{name:`items`,type:`array`,itemFields:[{name:`ariaLabel`,type:`string`,required:!1,description:`The option's accessible name; give it when the label is a node.`},{name:`description`,type:`node`,required:!1,description:`Secondary text under the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Lists the item but cannot be chosen; the arrow keys skip it.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name or a node drawn before the label.`},{name:`key`,type:`string`,required:!0,description:`The item's key, unique within its group; keep it stable.`},{name:`keywords`,type:`array`,required:!1,description:`Other words the item answers to, such as synonyms. The search matches them the way it matches the label; the palette does not filter, so the caller's search reads them.`},{name:`label`,type:`node`,required:!0,description:`The item's text; a string label gets the search emphasis.`},{name:`meta`,type:`node`,required:!1,description:`Short trailing text or a node.`},{name:`page`,type:`object`,fields:[{name:`key`,type:`string`,required:!0,description:`The page's key.`},{name:`label`,type:`string`,required:!0,description:`The page's name, shown in the breadcrumb.`}],required:!1,description:`Makes the item open a nested page instead of acting.`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the item elsewhere, drawn as a key chip; a hint, the page binds the key.`}],required:!1,description:`The results in the group, in order.`},{name:`key`,type:`string`,required:!0,description:`The group's key, unique among the groups.`},{name:`label`,type:`node`,required:!0,description:`The group heading.`}],required:!1,description:`Results, rendered in order under their group headings; groups with no items are left out.`,default:[]},{name:`highlight`,type:`boolean`,required:!1,description:`Bold the query inside each string label, case-insensitively. A label given as a node renders as it is.`,default:!0},{name:`id`,type:`string`,required:!1,description:`Seeds the result and heading ids; defaults to a generated id.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the library spinner in the input.`,default:!1},{name:`open`,type:`boolean`,required:!0,description:`Shows the palette while true.`},{name:`path`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!0,description:`The page's key.`},{name:`label`,type:`string`,required:!0,description:`The page's name, shown in the breadcrumb.`}],required:!1,description:`The open nested pages, outermost first (controlled); empty shows the first page.`,default:[]},{name:`placeholder`,type:`string`,required:!1,description:`The text the search field shows while it is empty.`,default:`Search…`},{name:`query`,type:`string`,required:!1,description:`The search text (controlled).`,default:``},{name:`recentsKey`,type:`string`,required:!1,description:`localStorage key to remember chosen items under; omit for no recents. Make it per user, for example from the user's public id.`},{name:`recentsLabel`,type:`string`,required:!1,description:`Heading of the recent items.`,default:`Recent`},{name:`recentsLimit`,type:`number`,required:!1,description:`How many recent items to keep (at most 20).`,default:5},{name:`resultsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Results`},{name:`rootLabel`,type:`string`,required:!1,description:`Breadcrumb text for the first page.`,default:`All`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`An app has more pages and actions than its navigation can show at once.`,`Regular users want to jump straight to a record or run an action from the keyboard.`,`The same search should reach pages, actions and records in one place.`],whenNot:[{text:`You are picking a value for a form field.`,instead:`AppSelect mode="search"`},{text:`You are filtering the list on the current page.`,instead:`AppSearch`},{text:`The palette would be the only way to reach a page.`,instead:`AppShell`}],do:[],dont:[],a11y:[`The search field is a combobox that names the listbox it controls, and the dialog and the field take the ariaLabel prop as their accessible name.`,`Results sit in a listbox in groups named by their headings; each option's accessible name is its ariaLabel or its string label, and a disabled item is marked aria-disabled.`,`Escape and a click on the dimmed page close the palette, and focus returns to where it was before it opened, because the dialog is AppModal.`]}},{name:`AppCommentThread`,marker:`AppCommentThread`,acceptsChildren:!1,props:[{name:`addReactionLabel`,type:`string`,required:!1,description:`Name of the add-reaction button. Replaces the built-in English text, for other languages.`,default:`Add a reaction`},{name:`allowReactions`,type:`boolean`,required:!1,description:`False leaves out the reaction panel and the reaction chips.`,default:!0},{name:`allowReplies`,type:`boolean`,required:!1,description:`False leaves out the Reply action and the reply box; existing replies still show.`,default:!0},{name:`attachmentsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Attachments`},{name:`author`,type:`string`,required:!1,description:`The name for the inline composer's avatar. Ignored when stacked.`},{name:`cancelLabel`,type:`string`,required:!1,description:`Cancels a delete. Replaces the built-in English text, for other languages.`,default:`Cancel`},{name:`chooseReactionLabel`,type:`string`,required:!1,description:`Name of the reaction panel. Replaces the built-in English text, for other languages.`,default:`Choose a reaction`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`comments`,type:`array`,itemFields:[{name:`at`,type:`stringOrNumber`,required:!0,description:`When it was written: an ISO instant with its zone, epoch ms or a Date. Shown in IST.`},{name:`attachments`,type:`array`,itemFields:[{name:`href`,type:`string`,required:!1,description:`The download URL.`},{name:`name`,type:`string`,required:!0,description:`The file name shown.`},{name:`sizeBytes`,type:`number`,required:!1,description:`The size, shown beside the name when given.`},{name:`to`,type:`string`,required:!1,description:`An in-app route for the file viewer page. It goes through the link component when one is given, otherwise it becomes a plain link. Without it the file downloads from href.`}],required:!1,description:`Files attached to the comment, listed as download links under the body.`},{name:`author`,type:`object`,fields:[{name:`name`,type:`string`,required:!0,description:`The author's name.`},{name:`src`,type:`string`,required:!1,description:`A photo URL for the author.`}],required:!0,description:`Who wrote it; src is a photo URL.`},{name:`canDelete`,type:`boolean`,required:!1,description:`This person may delete it.`},{name:`canEdit`,type:`boolean`,required:!1,description:`This person may edit it.`},{name:`deleted`,type:`boolean`,required:!1,description:`Shows "This comment was deleted." in place of the body; replies stay.`},{name:`edited`,type:`boolean`,required:!1,description:`Shows "Edited" beside the time.`},{name:`id`,type:`string`,required:!0,description:`The comment's public id.`},{name:`internal`,type:`boolean`,required:!1,description:`A staff-only note: tinted, with an "Internal note" badge.`},{name:`mine`,type:`boolean`,required:!1,description:`This person wrote it; the conversation variant puts it on the right.`},{name:`reactions`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!0,description:`How many people reacted this way.`},{name:`emoji`,type:`string`,required:!0,description:`The reaction character.`},{name:`mine`,type:`boolean`,required:!1,description:`True when this person reacted this way.`}],required:!1,description:`The reactions on the comment.`},{name:`replies`,type:`array`,itemFields:[{name:`at`,type:`stringOrNumber`,required:!0,description:`When it was written: an ISO instant with its zone, epoch ms or a Date. Shown in IST.`},{name:`attachments`,type:`array`,itemFields:[{name:`href`,type:`string`,required:!1,description:`The download URL.`},{name:`name`,type:`string`,required:!0,description:`The file name shown.`},{name:`sizeBytes`,type:`number`,required:!1,description:`The size, shown beside the name when given.`},{name:`to`,type:`string`,required:!1,description:`An in-app route for the file viewer page. It goes through the link component when one is given, otherwise it becomes a plain link. Without it the file downloads from href.`}],required:!1,description:`Files attached to the comment, listed as download links under the body.`},{name:`author`,type:`object`,fields:[{name:`name`,type:`string`,required:!0,description:`The author's name.`},{name:`src`,type:`string`,required:!1,description:`A photo URL for the author.`}],required:!0,description:`Who wrote it; src is a photo URL.`},{name:`canDelete`,type:`boolean`,required:!1,description:`This person may delete it.`},{name:`canEdit`,type:`boolean`,required:!1,description:`This person may edit it.`},{name:`deleted`,type:`boolean`,required:!1,description:`Shows "This comment was deleted." in place of the body; replies stay.`},{name:`edited`,type:`boolean`,required:!1,description:`Shows "Edited" beside the time.`},{name:`id`,type:`string`,required:!0,description:`The comment's public id.`},{name:`internal`,type:`boolean`,required:!1,description:`A staff-only note: tinted, with an "Internal note" badge.`},{name:`mine`,type:`boolean`,required:!1,description:`This person wrote it; the conversation variant puts it on the right.`},{name:`reactions`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!0,description:`How many people reacted this way.`},{name:`emoji`,type:`string`,required:!0,description:`The reaction character.`},{name:`mine`,type:`boolean`,required:!1,description:`True when this person reacted this way.`}],required:!1,description:`The reactions on the comment.`},{name:`replies`,type:`array`,required:!1,description:`Replies to a reply are not nested.`},{name:`value`,type:`string`,required:!1,description:`The stored body, with mentions as @[Label](id). Markdown source when markdown is set.`}],required:!1,description:`Replies, oldest first, with the same fields. Replies to a reply are not nested.`},{name:`value`,type:`string`,required:!1,description:`The stored body, with mentions as @[Label](id). Markdown source when markdown is set.`}],required:!1,description:`Top-level comments, oldest first.`,default:[]},{name:`composer`,type:`enum`,enum:[`inline`,`stacked`],required:!1,description:`stacked: the box under the list. inline: one row with the author's avatar, the box and the post button.`,default:`stacked`},{name:`composerLabel`,type:`string`,required:!1,description:`Name of the new-comment box. Replaces the built-in English text, for other languages.`,default:`Add a comment`},{name:`composerPlaceholder`,type:`string`,required:!1,description:`The composer box's placeholder. Without it the standard placeholder asks for a comment and names @ mentions.`},{name:`composerRows`,type:`number`,required:!1,description:`The composer box's rows. Without it, 3 stacked and 1 inline.`},{name:`deleteConfirmText`,type:`string`,required:!1,description:`The question before a delete. Replaces the built-in English text, for other languages.`,default:`Delete this comment?`},{name:`deleteLabel`,type:`string`,required:!1,description:`The Delete action and its confirm button. Replaces the built-in English text, for other languages.`,default:`Delete`},{name:`deletedText`,type:`string`,required:!1,description:`Shown in place of a deleted comment. Replaces the built-in English text, for other languages.`,default:`This comment was deleted.`},{name:`editLabel`,type:`string`,required:!1,description:`The Edit action. Replaces the built-in English text, for other languages.`,default:`Edit`},{name:`editedLabel`,type:`string`,required:!1,description:`Marks an edited comment. Replaces the built-in English text, for other languages.`,default:`Edited`},{name:`id`,type:`string`,required:!1,description:`The root's id. Generated when omitted.`},{name:`internalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Internal note`},{name:`label`,type:`string`,required:!1,description:`The list's accessible name.`,default:`Comments`},{name:`markdown`,type:`boolean`,required:!1,description:`Draws each comment body as Markdown (bold, italics, lists, links, code); raw HTML shows as text and a mention reads as plain @Name. Unset, bodies show as plain text.`,default:!1},{name:`noCommentsText`,type:`string`,required:!1,description:`Shown when there are no comments. Replaces the built-in English text, for other languages.`,default:`No comments yet.`},{name:`people`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A short line under the name, such as a team.`},{name:`label`,type:`string`,required:!0,description:`The name shown for the person.`},{name:`src`,type:`string`,required:!1,description:`A photo URL for the person.`},{name:`value`,type:`string`,required:!0,description:`The id stored in the mention.`}],required:!1,description:`The people the boxes offer after @.`},{name:`peopleLabel`,type:`string`,required:!1,description:`Name of the mention menu in the composer. Replaces the built-in English text, for other languages.`,default:`People`},{name:`postLabel`,type:`string`,required:!1,description:`The post button's text.`,default:`Comment`},{name:`postVariant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`The post button's emphasis. Without it, soft, or outline when composer is inline.`},{name:`reactionChoices`,type:`array`,required:!1,description:`The reactions the panel offers. Without it the panel offers a thumbs up, heart, party, smile, eyes and folded hands.`},{name:`reactionsLabel`,type:`string`,required:!1,description:`Name of a comment's reaction group. Replaces the built-in English text, for other languages.`,default:`Reactions`},{name:`readOnly`,type:`boolean`,required:!1,description:`Show the thread without the box, actions or reacting.`,default:!1},{name:`repliesToLabel`,type:`string`,required:!1,description:`Name of a reply list; {name} is the author. Replaces the built-in English text, for other languages.`,default:`Replies to {name}`},{name:`replyLabel`,type:`string`,required:!1,description:`The Reply action. Replaces the built-in English text, for other languages.`,default:`Reply`},{name:`variant`,type:`enum`,enum:[`conversation`,`list`],required:!1,description:`list: every comment down one column. conversation: chat bubbles, this person's own on the right.`,default:`list`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Discussion on a work item, ticket or approval.`,`Any record people talk about and mention each other on.`],whenNot:[{text:`A log of what changed and who changed it.`,instead:`AppTimeline`},{text:`A live conversation with an assistant.`,instead:`a chat thread in the chat package`}],do:[],dont:[],a11y:[`Changes to the thread are announced to screen readers.`,`Ctrl or Cmd+Enter sends a box and Escape closes it and returns focus.`,`The label prop is the list's accessible name.`]}},{name:`AppCompareTable`,marker:`AppCompareTable`,acceptsChildren:!1,props:[{name:`caption`,type:`string`,required:!1,description:`Accessible description of what is being compared.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`columns`,type:`array`,itemFields:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`start or center: center suits a column of ticks and short answers.`,default:`start`},{name:`highlight`,type:`boolean`,required:!1,description:`Tints the column as the recommended one.`},{name:`label`,type:`string`,required:!0,description:`The column heading; empty for the capability-name column.`},{name:`nowrap`,type:`boolean`,required:!1,description:`Keeps the column's cells on one line.`}],required:!0,description:`The columns, including the leading capability-name column, whose label is normally empty.`},{name:`density`,type:`enum`,enum:[`comfortable`,`relaxed`],required:!1,description:`relaxed sets a 16px body and 32px side padding for marketing tables.`,default:`comfortable`},{name:`mobile`,type:`enum`,enum:[`scroll`,`stack`],required:!1,description:`Under 576px of table width: stack (default) turns each row into a card; scroll keeps the columns and scrolls sideways.`,default:`stack`},{name:`noLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No`},{name:`partialLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Partial`},{name:`rows`,type:`array`,itemFields:[{name:`group`,type:`string`,required:!1,description:`A heading drawn above the first row of each run of rows that share it.`},{name:`key`,type:`string`,required:!1,description:`An optional stable key for the row.`},{name:`label`,type:`string`,required:!0,description:`The capability the row names.`},{name:`values`,type:`array`,required:!0,description:`One cell per column after the first: true shows a tick, false a dash, { state, text } shows a state icon beside its text (yes, no, warn or partial), { code } shows a reference code, anything else shows as written.`}],required:!0,description:`One row per capability.`},{name:`stickyFirstColumn`,type:`boolean`,required:!1,description:`With mobile scroll: the first column stays in place while the rest scrolls.`,default:!1},{name:`stickyHeader`,type:`boolean`,required:!1,description:`The header row stays on screen while a long table scrolls past it.`,default:!1},{name:`variant`,type:`enum`,enum:[`boxed`,`plain`],required:!1,description:`plain draws a figure table: ruled rows with no outer border, rounded corners or shaded first column, and body-size text.`,default:`boxed`},{name:`warningLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Warning`},{name:`yesLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Yes`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A reader is choosing between two to four options on the same criteria.`,`A page shows figures in ruled rows with no frame, such as rates and charges (variant plain).`,`The rows are authored capabilities, not records from a query.`,`Seeing the options side by side is what makes the choice obvious.`],whenNot:[{text:`The rows are records to sort, filter or page through.`,instead:`AppDataTable`},{text:`You are showing the tiers themselves with prices and CTAs.`,instead:`AppPricingCard`},{text:`It is a list of facts about one thing.`,instead:`AppDescriptions`}],do:[{title:`Booleans as ticks, plain row labels`,note:`Every row appears for every column, so the reader can read across. The row label names the capability in the customer’s words.`,example:[{component:`AppCompareTable`,props:{caption:`Good example`,columns:[{label:``},{label:`Free`},{label:`Pro`,highlight:!0}],rows:[{key:`g`,label:`Single sign-on`,values:[!1,!0]}]}}]}],dont:[{title:`Booleans as ticks, plain row labels`,note:`Two highlighted columns both tint, so no option reads as the recommendation; internal jargon in the row label; and hand-typed dashes and Y instead of booleans lose the tick's shape cue.`,example:[{component:`AppCompareTable`,props:{caption:`Bad example`,columns:[{label:``},{label:`Free`,highlight:!0},{label:`Pro`,highlight:!0}],rows:[{key:`b`,label:`SSO / SAML2 IdP federation`,values:[`-`,`Y`]}]}}]}],a11y:[`The caption prop is a visually hidden table caption, read by a screen reader before the table.`,`Column headings are th elements with scope col.`,`Each row label is a th element with scope row.`,`Each cell repeats its column name in data-label, so a stacked phone card reads the same as the table.`,`A state's icon is hidden from screen readers; its state is spoken as a hidden prefix such as Yes or Warning.`,`With mobile scroll, the scrolling region is focusable and named by the caption.`]}},{name:`AppConfirmDialog`,marker:`AppConfirmDialog`,acceptsChildren:!0,props:[{name:`cancelAction`,type:`object`,fields:[],required:!1},{name:`cancelLabel`,type:`string`,required:!1,description:`The cancel button's text.`,default:`Cancel`},{name:`className`,type:`string`,required:!1,description:`Merged with the dialog's own wui-confirm class.`,default:``},{name:`confirmAction`,type:`object`,fields:[],required:!1},{name:`confirmLabel`,type:`string`,required:!1,description:`The confirm button's text.`,default:`Confirm`},{name:`confirmPhrase`,type:`string`,required:!1,description:`Exact text the user must type before Confirm unlocks, such as a workspace name.`},{name:`description`,type:`node`,required:!1,description:`The text that explains what the user is confirming.`},{name:`icon`,type:`node`,required:!1,description:`Replaces the tone's glyph. A string is an icon name; a node is drawn as given. An image still wins over it.`},{name:`iconSize`,type:`number`,required:!1,description:`Width and height of the illustration in px, for the tone artwork and a custom image alike. Unset, it is 120px with a message and 84px without.`},{name:`idempotent`,type:`boolean`,required:!1,description:`Passes one Idempotency-Key to onConfirm for the action. A retry while the dialog stays open reuses it, and reopening the dialog makes a new one. Set it on a money action so the server applies a repeated send once.`,default:!1},{name:`image`,type:`string`,required:!1,description:`URL of a custom illustration that replaces the tone artwork. Any source size is fine: the theme boxes it to the same footprint. It is decorative, so the title and message carry the meaning.`},{name:`imageHeight`,type:`number`,required:!1,description:`Height in px of the custom image, written as the img height. Unset, no height is written.`},{name:`imageWidth`,type:`number`,required:!1,description:`Width in px of the custom image, written as the img width. Unset, no width is written.`},{name:`loading`,type:`boolean`,required:!1,description:`Busy state: shows a spinner and disables Confirm, Cancel and the confirm-phrase field, and blocks dismissal while the async action is in flight.`,default:!1},{name:`open`,type:`boolean`,required:!0,description:`Shows the dialog while true.`},{name:`placement`,type:`enum`,enum:[`center`,`top`],required:!1,description:`Vertical placement of the card: centred, or pinned near the top.`,default:`center`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Card width: a preset, or an exact max-width in px for a custom size.`,default:`md`},{name:`staticBackdrop`,type:`boolean`,required:!1,description:`The dialog closes only through its own Cancel or Confirm by default. false lets Escape and an outside click close it.`,default:!0},{name:`title`,type:`node`,required:!0,description:`The dialog heading.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:`The status icon, and the confirm button's colour when danger: the danger tone styles Confirm as destructive and draws the delete icon. Unset, the icon is info.`},{name:`typePhraseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {phrase} is filled with the confirm phrase.`,default:`Type {phrase} to confirm`},{name:`variant`,type:`enum`,enum:[`default`,`plain`],required:!1,description:`default keeps the status illustration and equal-width actions. plain drops the illustration, starts the text at the edge and sizes the actions small, right-aligned.`,default:`default`}],itemsTakeAction:[],takesAction:[`cancelAction`,`confirmAction`],source:`@webority/ui-react`,usage:{when:[`A destructive action needs a deliberate second step: delete, remove, cancel.`,`An action is irreversible and you want the user to pause before it runs.`,`The stakes are high enough to warrant typing an exact phrase to unlock (confirmPhrase).`],whenNot:[{text:`The dialog holds a form or details, not a yes/no question.`,instead:`AppModal`},{text:`The action is trivial and easily undone.`,instead:`an inline action + undo toast`},{text:`You're confirming across a slide-in panel of options.`,instead:`AppDrawer`}],do:[{title:`Name the verb and use danger`,note:`The danger tone + a verb-labelled button ("Delete") makes the weight and the outcome of the action clear.`,example:[{component:`AppButton`,props:{tone:`danger`},children:`Delete project`}]},{title:`Typed name only for irreversible actions`,note:`For an account-wide wipe, confirmPhrase forces the user to type the name, so there are no accidental clicks.`,example:[{component:`AppButton`,props:{tone:`danger`},children:`Delete workspace`}]}],dont:[{title:`Name the verb and use danger`,note:`A neutral "OK" on a destructive confirm hides what pressing it actually does.`,example:[{component:`AppButton`,children:`OK`}]},{title:`Typed name only for irreversible actions`,note:`Gating a reversible archive behind a typed phrase is friction with no payoff, so save it for the irreversible.`,example:[{component:`AppButton`,children:`Archive report`}]}],a11y:[`The dialog is built on AppModal, so it traps focus, closes on Escape only when staticBackdrop is false, and restores focus.`,`The title is an h3 that takes focus when the dialog opens.`,`A custom image is hidden from assistive technology with an empty alt, so the title and message carry the meaning.`,`The confirm-phrase field is named "Type <phrase> to confirm", and Confirm stays disabled until the phrase matches.`,`While loading, Cancel is disabled and the backdrop and Escape no longer close the dialog.`,`Children draw left-aligned between the description and the confirm-phrase field, so a field placed there keeps its own label.`]}},{name:`AppConsentBanner`,marker:`AppConsentBanner`,acceptsChildren:!1,props:[{name:`analyticsDescription`,type:`string`,required:!1,description:`What the analytics category covers.`},{name:`categories`,type:`array`,required:!1,description:`The optional categories to show; essential always shows. A category left out has no row, saves as off and is never granted by Accept all.`,default:[`analytics`,`functional`,`marketing`]},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`description`,type:`string`,required:!1,description:`The explanation above the buttons.`},{name:`functionalDescription`,type:`string`,required:!1,description:`What the functional category covers.`},{name:`marketingDescription`,type:`string`,required:!1,description:`What the marketing category covers.`},{name:`policyHref`,type:`url`,required:!1,description:`Link to the cookie policy; no link when omitted.`},{name:`policyLabel`,type:`string`,required:!1,description:`The policy link's text.`,default:`Cookie policy`},{name:`position`,type:`enum`,enum:[`bar`,`bottom-left`,`bottom-right`],required:!1,description:`The corner it pins to, or the full-width bar. bar is a slim full-width bar along the bottom at every width.`,default:`bottom-left`},{name:`preview`,type:`boolean`,required:!1,description:`Draw the banner open without reading or saving consent, for a design surface that never ran initConsent. Nothing is stored.`,default:!1},{name:`standalone`,type:`boolean`,required:!1,description:"Render sealed in a shadow root with bundled styles, for a page that does not load `@webority/theme`.",default:!1},{name:`title`,type:`string`,required:!1,description:`Title, and the dialog's accessible name.`,default:`Cookies on this site`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Any product surface that sets non-essential cookies (analytics, ads, feature personalization).`,`You want one shared consent record across the website and its subdomains.`],whenNot:[{text:`You need to announce something to every visitor, not ask a compliance question.`,instead:`AppBanner`},{text:`You are building the Razor head include that loads the tags and the consent record (the app-analytics-head tag).`},{text:`You are starting analytics or tags by hand beside the banner. The choice saved through initConsent decides which analytics start: the analytics category turns PostHog capture and Clarity on, and Consent Mode holds Tag Manager's tags until analytics consent, or marketing consent when adStorage is on.`}],do:[],dont:[],a11y:[`The panel is a dialog named by its title.`,`There is no close button by design, so the only way out is a choice: Accept all, Reject all, or Save preferences in settings mode.`,`Escape does not dismiss it, for the same reason as the missing close button.`]}},{name:`AppContextMenu`,marker:`AppContextMenu`,acceptsChildren:!0,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the menu.`,default:`Context menu`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the menu off; the browser's own menu shows instead.`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`checked`,type:`boolean`,required:!1,description:`Shows a check mark beside the label, for a selection.`},{name:`disabled`,type:`boolean`,required:!1,description:`The row is listed but skipped by the arrow keys and cannot be chosen.`},{name:`divider`,type:`boolean`,required:!1,description:`Draws a separator; the row then needs only its key.`},{name:`hint`,type:`string`,required:!1,description:`Muted text after the label, such as a keyboard shortcut.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name or a node shown before the label.`},{name:`image`,type:`string`,required:!1,description:`A picture URL shown instead of the icon.`},{name:`imageHeight`,type:`number`,required:!1,description:`Picture height in pixels.`},{name:`imageWidth`,type:`number`,required:!1,description:`Picture width in pixels; reserves its box before it loads.`},{name:`items`,type:`array`,itemFields:[{name:`checked`,type:`boolean`,required:!1,description:`Shows a check mark beside the label, for a selection.`},{name:`disabled`,type:`boolean`,required:!1,description:`The row is listed but skipped by the arrow keys and cannot be chosen.`},{name:`divider`,type:`boolean`,required:!1,description:`Draws a separator; the row then needs only its key.`},{name:`hint`,type:`string`,required:!1,description:`Muted text after the label, such as a keyboard shortcut.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name or a node shown before the label.`},{name:`image`,type:`string`,required:!1,description:`A picture URL shown instead of the icon.`},{name:`imageHeight`,type:`number`,required:!1,description:`Picture height in pixels.`},{name:`imageWidth`,type:`number`,required:!1,description:`Picture width in pixels; reserves its box before it loads.`},{name:`items`,type:`array`,required:!1,description:`Makes the row open a further side menu, in the same item model.`},{name:`key`,type:`string`,required:!0,description:`A unique id for the row.`},{name:`label`,type:`string`,required:!1,description:`The row's text.`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`The placeholder of the filter field on a searchable side menu.`,default:`Search`},{name:`searchable`,type:`boolean`,required:!1,description:`On a row with items, puts a filter field at the top of its side menu.`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the row, drawn as a key chip at the end of the row.`},{name:`to`,type:`string`,required:!1,description:`Makes the row a link to this address.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" styles the row as a destructive action.`}],required:!1,description:`Makes the row open a side menu of these rows, in the same item model.`},{name:`key`,type:`string`,required:!0,description:`A unique id for the row.`},{name:`label`,type:`string`,required:!1,description:`The row's text.`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`The placeholder of the filter field on a searchable side menu.`,default:`Search`},{name:`searchable`,type:`boolean`,required:!1,description:`On a row with items, puts a filter field at the top of its side menu.`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the row, such as E, drawn as a key chip at the end of the row. The page binds the key itself.`},{name:`to`,type:`string`,required:!1,description:`Makes the row a link to this address.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" styles the row as a destructive action.`}],required:!1,description:`The AppDropdown item model: one entry per row, or a separator when divider is true.`,default:[]},{name:`menuClassName`,type:`string`,required:!1,description:`Extra classes on the menu panel.`,default:``},{name:`open`,type:`boolean`,required:!1,description:`Shows the panel open, for a design preview or a controlled caller.`},{name:`target`,type:`string`,required:!1,description:"CSS selector of the elements the menu serves. Without it, the menu serves `children`."},{name:`trigger`,type:`string`,required:!1,description:`A CSS selector inside the region: a click or Enter on a match opens the menu under it.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table row, file or card has several actions and a visible button on each would clutter it.`,`Power users expect right-click on a list of records, as in a file manager or a mail client.`,`The same actions are also reachable some visible way.`],whenNot:[{text:`The actions hang off a visible button or icon.`,instead:`AppDropdown`},{text:`You are choosing a value for a form field.`,instead:`AppSelect`},{text:`The panel holds a form or rich content.`,instead:`AppPopover`}],do:[],dont:[],a11y:[`The menu panel has role menu named by ariaLabel, each row has role menuitem, and a disabled row sets aria-disabled.`,`Arrow keys, Home and End move between rows, typing the start of a label jumps to it, Enter or Space chooses, and Escape closes the menu and returns focus to where it was.`,`Shift+F10 or the ContextMenu key opens the menu under the focused element, and a long press opens it on touch.`]}},{name:`AppCopyButton`,marker:`AppCopyButton`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Custom className.`,default:``},{name:`copiedLabel`,type:`string`,required:!1,description:`Label shown after a successful copy.`,default:`Copied`},{name:`iconOnly`,type:`boolean`,required:!1,description:`Render as an icon-only button (like AppActionIcon); label becomes aria-label.`,default:!1},{name:`label`,type:`string`,required:!1,description:`Button label.`,default:`Copy`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Button size.`,default:`md`},{name:`text`,type:`string`,required:!0,description:`The text to copy.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic colour.`,default:`primary`},{name:`tooltip`,type:`string`,required:!1,description:`A collision-aware hover and focus tooltip (via AppTooltip) that flips to stay on screen.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:"Preferred tooltip side; `auto` picks the side with the most room.",default:`auto`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Button variant.`,default:`ghost`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A user needs to copy an API key, token, ID, link, or other reference to the clipboard.`,`You want visual feedback: the icon and label swap for 2 seconds to confirm the copy.`,`The copied text is sensitive (token, key) and you want a compact, accessible button.`],whenNot:[{text:`You are copying large amounts of data or structured content.`,instead:`A download link or a manual selection + native copy.`},{text:`The text to copy changes dynamically and you cannot react to it.`,instead:`A static link or a form with a dedicated copy action.`}],do:[],dont:[],a11y:[`In the button form the label swaps from the Copy label to the Copied label, and the button has aria-live polite so the change is announced.`,`In the icon-only form the current label is the accessible name of the action icon.`,`A clipboard that denies the copy changes nothing and raises no error.`]}},{name:`AppCountryFlag`,marker:`AppCountryFlag`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the flag.`,default:``},{name:`country`,type:`string`,required:!0,description:`ISO 3166-1 alpha-2 code of the country, such as IN. The flag follows the size of the text around it.`},{name:`label`,type:`string`,required:!1,description:`Names the flag for assistive tech. Without it the flag is decorative and hidden, so put the country name in the text beside it.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A country beside its name in a list, a table cell or a profile.`,`A country column in a table.`],whenNot:[{text:`Picking a country.`,instead:`AppSelect mode="country"`},{text:`A phone number with its country.`,instead:`AppPhoneNumberInput`}],do:[],dont:[],a11y:[`Decorative by default: the country name in the text beside it carries the meaning.`,`Give label when the flag stands alone, so assistive tech reads the country.`]}},{name:`AppDashboardCell`,marker:`AppDashboardCell`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the cell.`,default:``},{name:`span`,type:`enum`,enum:[`Fifth`,`Full`,`Half`,`Quarter`,`Third`,`TwoThirds`],required:!1,description:`The share of the row the cell takes, by name: Quarter, Third, Half or TwoThirds of the twelve columns, Full (the default), or Fifth for five to a row on wide screens.`,default:`Full`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Inside an AppDashboardGrid, to say how many of its twelve columns a card or tile takes.`,`A card or tile inside should fill the cell's height.`],whenNot:[{text:`A layout that needs other widths than Quarter, Third, Half, TwoThirds or Full.`,instead:`Bootstrap's Row and Col`}],do:[],dont:[],a11y:[`The cell is a plain div with no role or aria attributes; the card or tile inside carries its own semantics.`,`Under 576px the cell takes the full width.`]}},{name:`AppDashboardGrid`,marker:`AppDashboardGrid`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the grid.`,default:``}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A page of KPI tiles and chart cards that should line up and stack on a phone.`,`A layout the page decides, with no drag and drop or saved layouts.`],whenNot:[{text:`A form or a content page.`,instead:`AppFormSection`},{text:`A layout that needs other widths than a quarter, a third, a half, two thirds, a fifth or the full row.`,instead:`Bootstrap's Row and Col`}],do:[],dont:[],a11y:[`The grid is a plain div with no role or aria attributes; each cell's content carries its own semantics.`,`Under 576px every cell takes the full width, one above another.`]}},{name:`AppDataTable`,marker:`AppDataTable`,acceptsChildren:!1,props:[{name:`activeRowKey`,type:`stringOrNumber`,required:!1,description:`The key, as rowKey returns it, of the row whose record is open, for example in a detail pane beside the table. That row gets aria-current and a subtle primary background, apart from the row status bar and selected rows.`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name for the table.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the table element.`,default:``},{name:`columns`,type:`array`,itemFields:[{name:`align`,type:`enum`,enum:[`center`,`end`,`num`],required:!1,description:`Aligns the cells: num right-aligns figures in tabular digits.`},{name:`cellClassName`,type:`string`,required:!1,description:`A class added to every cell in the column.`},{name:`cellStyle`,type:`object`,required:!1,description:`Inline styles added to every cell in the column.`},{name:`columnClassName`,type:`string`,required:!1,description:`added to the header cell and every body cell of the column; use it to target one column from CSS, for example to hide it in a container query`},{name:`grow`,type:`boolean`,required:!1,description:`Gives this column the spare width.`},{name:`help`,type:`node`,required:!1,description:`Help shown in an info tip beside the header label.`},{name:`hideable`,type:`boolean`,required:!1,description:`Lets the person hide this column from the column menu.`},{name:`key`,type:`string`,required:!0,description:`The row field this column reads.`},{name:`label`,type:`node`,required:!0,description:`The column heading.`},{name:`minWidth`,type:`stringOrNumber`,required:!1,description:`The narrowest the column may shrink, in px or a CSS length.`},{name:`nowrap`,type:`boolean`,required:!1,description:`Keeps each cell on one line.`},{name:`pin`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Keeps the column in view at the start or end while the table scrolls sideways.`},{name:`rowHeader`,type:`boolean`,required:!1,description:`The cell names the row: it draws as a th with scope row. Default off.`},{name:`sortable`,type:`boolean`,required:!1,description:`Lets the heading sort the rows by this column.`},{name:`width`,type:`stringOrNumber`,required:!1,description:`The column's width, in px or a CSS length.`}],required:!0,description:`The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align, grow and rowHeader.`},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`,`cozy`],required:!1,description:`Row height: cozy 48 px (the default), comfortable 72 px for reading-heavy pages, compact 40 px. Compact is one line per row and hides the identity subline.`,default:`cozy`},{name:`densitySwitch`,type:`boolean`,required:!1,description:`Shows a Comfortable and Compact switch above the table that changes the row height on the spot.`,default:!1},{name:`empty`,type:`node`,required:!1,description:`Shown when there are no rows and the source is empty (sourceCount 0), or no emptyFiltered is given.`,default:`No records found.`},{name:`emptyFiltered`,type:`node`,required:!1,description:`Shown when there are no rows and sourceCount is unset or above 0.`},{name:`emptyHeader`,type:`enum`,enum:[`hide`,`show`],required:!1,description:`Column headers over an empty table: hide removes them while the empty state shows; show keeps them above it.`,default:`hide`},{name:`equalActions`,type:`boolean`,required:!1,description:`Gives every labelled button in the row actions column the same width, so the column lines up from row to row. Icon-only actions are not widened.`,default:!1},{name:`error`,type:`object`,fields:[{name:`message`,type:`string`,required:!0,description:`The sentence the error state shows.`}],required:!1,nullable:!0,description:`A failed fetch, with a message the error state shows. With no rows it replaces the empty state, with a retry button when onRetry is set. Rows present are replaced by it too. Ignored while loading. An ApiError from the web-core helpers fits.`},{name:`exportName`,type:`string`,required:!1,description:`The file name, without its extension, for an export.`,default:`table`},{name:`exportable`,type:`boolean`,required:!1,description:`Shows Download CSV and Download Excel above the table. React exports all rows; Razor exports the rows in the DOM at the click.`,default:!1},{name:`flush`,type:`boolean`,required:!1,description:`No wrapper padding above the column header row.`,default:!1},{name:`groupBy`,type:`string`,required:!1,description:`A column key: rows gather under a header row per value of it, in the order each value first appears, each header collapsing its rows and showing their count. On a server-paged list each page's rows gather the same way, and the count is the rows on that page.`},{name:`headerTone`,type:`string`,required:!1,description:`The column header band's colour, a CSS colour or a $color token the Canvas renderer resolves.`},{name:`hiddenColumns`,type:`array`,required:!1,description:`Keys of hideable columns to leave out, from useTableView. A column that is not hideable always shows.`},{name:`hoverRowKey`,type:`stringOrNumber`,required:!1,description:`The key, as rowKey returns it, of a row drawn in its hover look without a pointer, for previews and design tools. The row carries the theme class wui-force-hover and otherwise looks and behaves as any other row.`},{name:`id`,type:`string`,required:!1,description:`DOM id on the table's outer box; a column menu's for names it.`},{name:`linkFirstColumn`,type:`boolean`,required:!1,description:`Draws the first column's name as a link. Needs rowHref or onRowClick.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows skeleton rows in place of the rows.`,default:!1},{name:`maxHeight`,type:`stringOrNumber`,required:!1,description:`Caps the table's height; the body scrolls inside it with the header pinned. Without it there is no scroll box for the header to stick to.`},{name:`nameLines`,type:`number`,required:!1,description:`Lines a ledger name wraps to before it is cut, 1 to 4; the default is 2. A compact or virtual table shows one line.`},{name:`pad`,type:`number`,required:!1,description:`The inset around the table, in px; the wrapper's 20px is the default and flush wins over it.`},{name:`pagination`,type:`object`,fields:[{name:`mode`,type:`enum`,enum:[`numbered`,`prev-next`],required:!1,description:`numbered shows page buttons; prev-next shows only the previous and next buttons.`},{name:`page`,type:`number`,required:!0,description:`The current page, counted from 1.`},{name:`pageSize`,type:`number`,required:!0,description:`The rows shown on one page.`},{name:`pageSizes`,type:`array`,required:!1,description:`The page sizes the size menu offers.`},{name:`summary`,type:`boolean`,required:!1,description:`Draws "Showing x to y of z" at the start of the footer.`},{name:`summaryText`,type:`string`,required:!1,description:`Replaces the built-in "Showing {first} to {last} of {total}" text of the footer, for other languages. The tokens are {first}, {last} and {total}.`},{name:`total`,type:`number`,required:!0,description:`The number of rows across every page.`},{name:`totalPages`,type:`number`,required:!1,description:`The number of pages; wins over the count worked out from total.`}],required:!1,description:`The footer's state, usually straight from usePagination. The footer shows once total is above the smallest page size and stays in place while loading.`},{name:`refreshing`,type:`boolean`,required:!1,description:`Keeps the current rows on screen, dimmed and marked busy, while new rows load. Has no effect with no rows; loading shows skeleton rows instead.`,default:!1},{name:`resizableColumns`,type:`boolean`,required:!1,description:`Each column but the last gets a handle on its end edge: drag it, or focus it and press the arrow keys. The table then keeps fixed widths measured from its rows, and the last column takes the rest.`,default:!1},{name:`rowActionsLabel`,type:`string`,required:!1,description:`The heading text of the trailing actions column.`},{name:`rowActionsMode`,type:`enum`,enum:[`column`,`hover`,`hover-menu`],required:!1,description:`Where the row actions show: hover fades them in on row hover and focus, and the menu shows on touch; hover-menu keeps the menu visible; column keeps the icons always visible.`,default:`hover`},{name:`rowDrag`,type:`boolean`,required:!1,description:`Rows drag onto page elements marked data-wui-drop-target; a ticked row drags the whole selection. Fires wui:row-drop with keys and target on the wrapper.`,default:!1},{name:`rows`,type:`array`,required:!1,description:`The row objects shown in the table, one per row, read through each column's key.`},{name:`selectable`,type:`boolean`,required:!1,description:`Renders a leading checkbox column. Fires a bubbling selectionchange with selected, total and keys when the ticked count changes.`,default:!1},{name:`selectedIds`,type:`array`,required:!1,description:`Currently selected row keys, as a Set.`},{name:`singleExpand`,type:`boolean`,required:!1,description:`With renderExpanded, opening a row closes the one that was open, so at most one row is expanded.`,default:!1},{name:`skeletonRows`,type:`number`,required:!1,description:`How many skeleton rows to draw while loading.`,default:5},{name:`sort`,type:`object`,fields:[{name:`dir`,type:`enum`,enum:[`asc`,`desc`],required:!0,description:`The sort direction.`},{name:`key`,type:`string`,required:!0,nullable:!0,description:`The key of the sorted column.`}],required:!1,description:`The column the rows are sorted by and the direction, as the caller holds them.`},{name:`sortIcons`,type:`enum`,enum:[`always`,`hover`],required:!1,description:`Sort arrows on sortable headers: hover shows them on hover only; always keeps a faint arrow on every sortable header.`,default:`hover`},{name:`sourceCount`,type:`number`,required:!1,description:`The number of rows before filtering. 0 means the source is empty and empty shows; unset means the table was filtered.`},{name:`stackOnMobile`,type:`boolean`,required:!1,description:`Stacks on phones by default: below 768px each row is a card, the first column on top, then label and value lines from the column labels, actions at the bottom. A virtual table defaults to false. Set false to keep the scrolling table.`,default:!0},{name:`stickyActions`,type:`boolean`,required:!1,description:`Pins the last column, where the rowActions list renders, to the end edge while a wide table scrolls sideways, so a row's actions stay in view in a narrow box.`,default:!1},{name:`stickyFirstColumn`,type:`boolean`,required:!1,description:`Pins the first column, and the select or expand column before it, while a wide table scrolls sideways.`,default:!1},{name:`striped`,type:`boolean`,required:!1,description:`Alternate-row shading in place of divider lines.`,default:!1},{name:`tableLayout`,type:`enum`,enum:[`auto`,`fixed`],required:!1,description:`fixed holds every column to its width or minWidth and clips overflowing text; auto sizes columns to their content.`,default:`auto`},{name:`viewKey`,type:`string`,required:!1,description:`Remembers resized widths in this browser under this name, the same name useTableView takes.`},{name:`virtual`,type:`boolean`,required:!1,description:`Renders only the rows in view, plus a margin, for a long client-side list. Needs maxHeight; rows are taken to share one height, so it is not for renderExpanded or stackOnMobile.`,default:!1},{name:`wrapperClassName`,type:`string`,required:!1,description:`Extra classes on the outer table-wrap div, the padding hook. Manage the table's inset from here, for example a class that sets --wui-table-pad.`,default:``}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are listing records in rows and columns: projects, assessments, members.`,`The list needs sortable headers, a loading skeleton, or an empty state.`,`Rows need per-row actions (edit, delete) in a trailing column.`],whenNot:[{text:`You are laying out non-tabular content on a surface.`,instead:`AppCard`},{text:`You only need to page through a list, not tabulate it.`,instead:`AppTablePagination alone`},{text:`The empty list deserves a rich call to action.`,instead:`AppEmptyState variant="table" (as empty)`}],do:[{title:`Say when a table is empty`,note:`An explicit empty message tells the user the list is genuinely empty, not broken.`,example:[{component:`AppDataTable`,props:{columns:[{key:`name`,label:`Building`},{key:`status`,label:`Status`},{key:`created`,label:`Created`,hideable:!0,cellClassName:`text-body-secondary wui-text-sm`}],rows:[],empty:`No buildings yet.`}}]}],dont:[{title:`Say when a table is empty`,note:`A blank table with no message reads as a bug, because the user cannot tell empty from failed.`,example:[{component:`AppDataTable`,props:{columns:[{key:`name`,label:`Building`},{key:`status`,label:`Status`},{key:`created`,label:`Created`,hideable:!0,cellClassName:`text-body-secondary wui-text-sm`}],rows:[],empty:``}}]}],a11y:[`Sortable headers carry aria-sort and sort on Enter or Space.`,`Row checkboxes are labelled Select row, the header one Select all rows, and the expand toggle Expand row or Collapse row with aria-expanded.`,`The open row carries aria-current, and a saved or failed row change is announced through a polite status region.`],keyboard:[{key:`Tab`,does:`Moves focus through the table's stops: the scroll region, each sortable heading, each row that opens, each checkbox and each column resize handle, in page order.`,notes:`Arrow keys do nothing in the table.`},{key:`Enter`,does:`Sorts by a focused sortable column heading.`,notes:`Space does the same. Only sortable headings respond.`},{key:`Space`,does:`Sorts by a focused sortable column heading, or ticks a focused row checkbox.`,notes:`The checkbox is a native input; its state follows the browser.`},{key:`Enter`,does:`Opens a focused row.`,notes:`Only on a table with rowHref or onRowClick, and only when the row itself has focus.`},{key:`Shift + click`,does:`Selects or clears every row from the last ticked row to the clicked one.`,notes:`Mouse; set on a row checkbox, only when selection is on.`}]}},{name:`AppDatePicker`,marker:`AppDatePicker`,acceptsChildren:!1,props:[{name:`aria-invalid`,type:`any`,required:!1,description:`Marks the control invalid (aria-invalid) without an error message. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form.`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when there is no visible label.`},{name:`className`,type:`string`,required:!1,description:`Classes for the wui-datepicker control itself.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`displayFormat`,type:`string`,required:!1,description:`How the chosen date reads in the field, from the tokens yyyy, MMMM, MMM, MM, dd and d (for example dd/MM/yyyy). The onChange value stays ISO.`,default:`dd-MMM-yyyy`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Classes for the field wrapper that holds the label, helper text and error.`,default:``},{name:`firstDay`,type:`enum`,enum:[0,1,2,3,4,5,6],required:!1,description:`First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it.`},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the control.`},{name:`id`,type:`string`,required:!1,description:`The id of the control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control and used as its accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest selectable date, as an ISO date string.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable date, as an ISO date string.`},{name:`name`,type:`string`,required:!1,description:`The form field name the ISO date posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the field while no date is chosen.`,default:`Choose a date`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control height tier, matching AppInput.`},{name:`valid`,type:`boolean`,required:!1,description:`Shows a green tick on a filled field with no error. Default off.`,default:!1},{name:`value`,type:`string`,required:!1,description:`ISO date string.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a single calendar date: assessment date, due date, date of birth.`,`You need one consistent calendar across every browser and both surfaces.`,`Restricting selection to a valid window with min / max.`],whenNot:[{text:`You need a date and a time of day.`,instead:`AppDateTimePicker`},{text:`You are capturing a start-and-end range.`,instead:`AppDateRangePicker`},{text:`The value is free text, not a date.`,instead:`AppInput`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[{title:`Give the date a visible label`,note:`A visible label above the field. The user knows what the date is for before opening it.`,example:[{component:`AppDatePicker`,props:{id:`bp-good-date`,label:`Assessment date`,value:`2026-07-10`}}]},{title:`Set min and max bounds`,note:`min / max stop invalid dates at the source, so the user can only pick a real one.`,example:[{component:`AppDatePicker`,props:{value:`2026-07-15`,min:`2026-07-01`,max:`2026-07-31`}}]}],dont:[{title:`Give the date a visible label`,note:`Only a placeholder as the label, which vanishes the moment a date is picked.`,example:[{component:`AppDatePicker`,props:{value:``,placeholder:`Date`}}]},{title:`Set min and max bounds`,note:`No bounds, then reject the date after submit. Constrain up front instead.`,example:[{component:`AppDatePicker`,props:{value:`2030-01-01`}}]}],a11y:[`The field label names the control through aria-label when it is a string, and ariaLabel overrides it.`,`Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid. A caller's aria-invalid takes its place.`,`Required and disabled are set as native attributes on the control.`]}},{name:`AppDateRangePicker`,marker:`AppDateRangePicker`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when there is no visible label.`},{name:`className`,type:`string`,required:!1,description:`Class to apply to the control element.`,default:``},{name:`defaultEnd`,type:`string`,required:!1,description:`The starting end date of an uncontrolled field.`},{name:`defaultStart`,type:`string`,required:!1,description:`The starting start date of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`end`,type:`string`,required:!1,description:`Range end as an ISO date string (YYYY-MM-DD).`},{name:`endName`,type:`string`,required:!1,description:`Form field name the end date posts under.`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class to apply to the wrapper field div.`,default:``},{name:`financialYearStart`,type:`number`,required:!1,description:`The month number, 1 to 12, the financial year starts in; it sets the thisFinancialYear quick range. Unset, it is 4 (April).`},{name:`firstDay`,type:`enum`,enum:[0,1,2,3,4,5,6],required:!1,description:`First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it.`},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the control.`},{name:`id`,type:`string`,required:!1,description:`The id of the control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control and used as its accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest selectable date, as an ISO date string.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable date, as an ISO date string.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the field while no range is chosen.`,default:`Start to End`},{name:`presets`,type:`array`,required:!1,description:`Quick ranges, listed beside the calendar (above it on a phone); picking one fills the range and closes the calendar. An item is a name (today, yesterday, last7Days, last30Days, thisMonth, lastMonth or thisFinancialYear, resolved against today in the time zone (IST unless timeZone is set)) or { label, start, end } with ISO dates.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control height tier, matching AppInput.`},{name:`start`,type:`string`,required:!1,description:`Range start as an ISO date string (YYYY-MM-DD).`},{name:`startName`,type:`string`,required:!1,description:`Form field name the start date posts under.`},{name:`timeZone`,type:`string`,required:!1,description:`IANA time zone the quick ranges are resolved in, for example Asia/Kolkata or America/New_York. Unset, it is India Standard Time (Asia/Kolkata).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a start-and-end date range: a stay, a booking window, a report period.`,`You want one control for the whole range rather than two separate date fields.`,`Restricting the range to a valid window with min / max.`],whenNot:[{text:`You only need a single date.`,instead:`AppDatePicker`},{text:`You need a date and a time of day.`,instead:`a date-time control`},{text:`The two dates are unrelated fields.`,instead:`two AppDatePicker fields`}],do:[],dont:[],a11y:[`The field label names the control through aria-label when it is a string, and ariaLabel overrides it.`,`Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid.`,`Required and disabled are set as native attributes on the control.`]}},{name:`AppDateTimePicker`,marker:`AppDateTimePicker`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Classes for the wui-date-time control itself.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting instant of an uncontrolled field, as an ISO UTC string.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables both controls.`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the controls.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Classes for the field wrapper that holds the label, controls and messages.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Replaces the zone note shown under the controls.`},{name:`id`,type:`string`,required:!1,description:`The id of the date control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the controls.`},{name:`max`,type:`string`,required:!1,description:`The latest selectable date, as an ISO UTC string; its local calendar date is used.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable date, as an ISO UTC string; its local calendar date is used.`},{name:`name`,type:`string`,required:!1,description:`The form field name the UTC instant posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`value`,type:`string`,required:!1,description:`The instant as an ISO UTC string, for example 2026-03-14T04:00:00.000Z; empty when unset.`},{name:`zone`,type:`string`,required:!1,description:`The IANA zone the date and time are read and entered in. Default IST.`,default:`Asia/Kolkata`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing one instant a person sets by date and time: a meeting start, a deadline, a scheduled send.`,`The value must be stored in UTC and shown in IST.`],whenNot:[{text:`You need only a calendar date.`,instead:`AppDatePicker`},{text:`You need only a time of day.`,instead:`AppTimePicker`}],do:[],dont:[],a11y:[`The date control is named by the field label, and the time control carries its own name.`,`An error sets aria-invalid and points aria-describedby at the error text, or at the helper text when there is no error.`,`Both controls carry the required attribute as well as the visible required mark.`,`The info tip beside the label is named by helpLabel.`]}},{name:`AppDescriptions`,marker:`AppDescriptions`,acceptsChildren:!1,props:[{name:`bordered`,type:`boolean`,required:!1,description:`Draws a rule between rows, across every column.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the grid container.`,default:``},{name:`columns`,type:`enum`,enum:[1,2,3,4],required:!1,description:`How many columns the grid should have, before the media-breakpoint collapse.`,default:2},{name:`items`,type:`array`,itemFields:[{name:`emphasis`,type:`boolean`,required:!1,description:`Marks the total row: bold, with a rule above.`},{name:`href`,type:`url`,required:!1,description:`Makes the value a link; in layout list the whole row (icon, label and value) is the link. Leave it out for a value that is not actionable.`},{name:`icon`,type:`icon`,required:!1,description:`A glyph in a 36px round tile before the label, by name or as a node.`},{name:`id`,type:`string`,required:!1,description:`Set on the item's root so a link can jump to the row. Any data-* attribute on an item is set there too.`},{name:`key`,type:`string`,required:!1,description:`A stable React key for the row; defaults to its label and position.`},{name:`label`,type:`node`,required:!0,description:`The row's label.`},{name:`multiline`,type:`boolean`,required:!1,description:`Keeps the line breaks in this value.`},{name:`span`,type:`number`,required:!1,description:`How many grid columns the item spans: 2 or 3 for a longer value.`},{name:`tabIndex`,type:`number`,required:!1,description:`Set on the item's root; 0 or -1 makes the row focusable.`},{name:`value`,type:`node`,required:!0,description:`The row's value; an empty value shows a muted placeholder.`}],required:!1,description:`The rows, each with a label and a value. A span of 2 or 3 makes the item span multiple columns, and emphasis marks the total row.`,default:[]},{name:`labels`,type:`enum`,enum:[`start`,`top`],required:!1,description:`"start": each label sits left of its value, in the grid's columns; grid layout only. Default "top".`,default:`top`},{name:`layout`,type:`enum`,enum:[`grid`,`list`,`summary`],required:!1,description:`summary puts each label left of its value, with tabular figures. list is one column of rows with a rule between them, a flush first and last row and a single-line value.`,default:`grid`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Item padding and font size.`,default:`md`},{name:`title`,type:`node`,required:!1,description:`Optional heading above the grid.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are displaying many attributes of a single record.`,`Some values are longer (spanning multiple grid columns helps).`,`The panel is read-only: a detail view, a drawer, a profile sidebar.`,`You want a clean tabular layout that reflows on mobile.`],whenNot:[{text:`The values are editable.`,instead:`Form fields (AppInput, AppSelect, …)`},{text:`It is one headline number.`,instead:`AppKpiTile`},{text:`You are listing many records.`,instead:`AppDataTable`}],do:[{title:`Name each value`,note:`Specific, concise labels (no generic "Info") and clear values.`,example:[{component:`AppDescriptions`,props:{items:[{label:`Email`,value:`alice@example.com`},{label:`Status`,value:`Active`}]}}]}],dont:[{title:`Name each value`,note:`Generic labels like "Data 1" and ellipsis placeholders carry no meaning.`,example:[{component:`AppDescriptions`,props:{items:[{label:`Data 1`,value:`alice@example.com`},{label:`Data 2`,value:`…`}]}}]}],a11y:[`Renders a description list: each label is a dt and its value the dd of the same item.`,`An empty value renders a muted placeholder rather than a blank cell.`]}},{name:`AppDetailPane`,marker:`AppDetailPane`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the pane.`,default:``},{name:`label`,type:`string`,required:!0,description:`The accessible name of the pane region.`},{name:`open`,type:`boolean`,required:!1,description:`Shows the pane. Closed, the pane is hidden and takes no room. The caller owns it and closes it in onClose.`,default:!1},{name:`sticky`,type:`boolean`,required:!1,description:`Keeps the pane in view under the top bar while the list beside it scrolls.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person keeps working in a list and reads the details of one item beside it.`,`Choosing an item should not change page, and the list must stay where it is.`],whenNot:[{text:`The items form a queue the person works through one by one.`,instead:`AppSplitView`},{text:`The detail is an overlay that covers the page.`,instead:`AppDrawer`},{text:`The detail is a short task that interrupts the flow.`,instead:`AppModal`}],do:[{title:`Beside the list it details`,note:`The pane sits beside the list it details. Escape inside it calls onClose.`,example:[{component:`AppDetailPane`,props:{label:`Request details`,open:!0},children:[{component:`p`,children:`Expense claim: client travel. Dev Patel, Sales.`}]}]}],dont:[{title:`Beside the list it details`,note:`Use a detail pane to cover the page or hold a multi-step task; use AppDrawer or AppModal for that.`,example:[{component:`AppDetailPane`,props:{label:`New leave request`,open:!0},children:[{component:`p`,children:`Step 1 of 3: choose the leave type.`},{component:`AppButton`,props:{variant:`outline`,size:`sm`},children:`Next`}]}]}],a11y:[`The pane is a region named by label. Escape inside it calls onClose.`,`A closed pane is hidden from assistive technology, so it is not read while it is closed.`]}},{name:`AppDrawer`,marker:`AppDrawer`,acceptsChildren:!0,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The dialog's accessible name when there is no title.`},{name:`bodyClassName`,type:`string`,required:!1,description:`Classes on the scrolling body, such as p-0 to drop its padding.`,default:``},{name:`className`,type:`string`,required:!1,description:`Extra classes on the drawer element.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The close button's accessible name, for other languages.`,default:`Close`},{name:`confirmDiscard`,type:`string`,required:!1,description:`Ask before closing while dirty: this text, with Discard and Keep editing in the footer.`},{name:`defaultSnap`,type:`number`,required:!1,description:`Which of the sorted snap points it opens on.`,default:0},{name:`dirty`,type:`boolean`,required:!1,description:`True while a field differs from its loaded value; the caller owns it.`,default:!1},{name:`dismissible`,type:`boolean`,required:!1,description:`Show the close button.`,default:!0},{name:`footer`,type:`node`,required:!1,description:`Pinned below the scrolling body.`},{name:`header`,type:`node`,required:!1,description:`A custom header that replaces the default one (title, subtitle and close button).`},{name:`headerClassName`,type:`string`,required:!1,description:`Classes on the default header, so a product can style it without restyling the library class. Ignored when header replaces it.`,default:``},{name:`maxWidth`,type:`string`,required:!1,description:`Caps the panel's width, such as 600px. Unset, the theme caps it at 92vw.`},{name:`open`,type:`boolean`,required:!1,description:`Whether the drawer is open. The caller owns it and closes it in onClose.`,default:!1},{name:`sheet`,type:`boolean`,required:!1,description:`Below md the drawer is a bottom sheet that rests on snapPoints. false keeps the side panel at every width, for a menu or a filter panel.`,default:!0},{name:`sheetHeightLabel`,type:`string`,required:!1,description:`The sheet handle's accessible name, for other languages.`,default:`Sheet height`},{name:`side`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Which edge the side drawer slides from.`,default:`end`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The side drawer's width: 360, 480, 640 or 720 px.`,default:`md`},{name:`snapPoints`,type:`array`,required:!1,description:`The sheet's resting heights, each 10 to 100 percent of the screen.`,default:[50,90]},{name:`staticBackdrop`,type:`boolean`,required:!1,description:`The drawer closes only through its own Close or Cancel by default. false lets Escape and an outside click close it.`,default:!0},{name:`style`,type:`object`,required:!1,description:`Inline style on the drawer element.`},{name:`subtitle`,type:`string`,required:!1,description:`A line under the title.`},{name:`title`,type:`node`,required:!1,description:`The heading. Text, or a node with an icon or badge. It names the dialog unless ariaLabel is set or a custom header replaces it; give ariaLabel with a custom header.`},{name:`titleIcon`,type:`icon`,required:!1,description:`Library icon beside the title.`},{name:`width`,type:`string`,required:!1,description:`The panel's CSS width, such as 420px. Overrides size.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A filter, detail or edit panel that must not squeeze the page on a phone.`,`A menu or filter panel that stays a side panel on a phone (sheet false).`,`Secondary content the user opens, reads or edits, then dismisses.`],whenNot:[{text:`A short confirmation or a form that needs the user's full attention.`,instead:`AppModal`},{text:`Content that belongs beside a list.`,instead:`AppSplitView`}],do:[],dont:[],a11y:[`The panel is a native dialog, named by ariaLabel, else by the title.`,`The sheet handle is a vertical slider labelled Sheet height, and the close button is labelled Close.`,`Focus moves in on open, Tab moves through the drawer, then on to the browser, without wrapping, Escape leaves it open unless staticBackdrop is false, and focus returns to what opened it.`]}},{name:`AppDropZone`,marker:`AppDropZone`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`Accepted file types, written as the accept attribute is. Empty takes any file.`,default:``},{name:`anyTypeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Any file type`},{name:`browseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Click to upload`},{name:`className`,type:`string`,required:!1,description:`Class to apply to the control element, the visible zone.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks click and drop.`,default:!1},{name:`dropLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`or drag & drop`},{name:`error`,type:`string`,required:!1,description:`Message below the zone; also styles the zone as errored.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class to apply to the wrapper field div.`,default:``},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the zone; an error, the caller's or a rejected pick's, replaces it while it shows.`},{name:`id`,type:`string`,required:!1,description:`DOM id for the file input and the target of its label's for attribute.`},{name:`label`,type:`string`,required:!1,description:`Text of the label above the zone.`},{name:`maxSizeMb`,type:`number`,required:!1,description:`Largest file size in megabytes, the shared limit when left out. 0 means no size limit: nothing is rejected for its size, and the format line names no size.`},{name:`maxSizeText`,type:`string`,required:!1,description:`The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.`,default:`up to {size} MB`},{name:`multiple`,type:`boolean`,required:!1,description:`Take several files per pick or drop; the change handler then gets an array of files.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The page handles the file itself (upload, parse, import) and needs no preview in the field.`,`A document or spreadsheet is dropped in, not a picture the user wants to see back.`,`You want drag and drop plus a click target with type and size checks already done.`],whenNot:[{text:`The field keeps a value and shows the chosen image large.`,instead:`AppFilePicker`},{text:`The file is a compact attachment on a form, listed by name and size.`,instead:`AppFileAttachment`},{text:`You hand-roll a raw file input with custom styling.`,instead:`AppDropZone`}],do:[],dont:[],a11y:[`The zone is a label bound to a visually hidden native file input, so keyboard and screen reader users reach the same file chooser as a click.`,`The input is described by the helper text, or by the error when one shows, through aria-describedby.`,`A disabled zone sets aria-disabled, disables the input and ignores drops.`]}},{name:`AppDropdown`,marker:`AppDropdown`,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Which edge of the toggle the menu lines up with.`,default:`end`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the toggle; it wins over label.`},{name:`icon`,type:`string`,required:!1,description:`Name of the glyph on the toggle button. A custom trigger replaces it.`},{name:`iconSize`,type:`number`,required:!1,description:`Size of the toggle glyph in pixels.`},{name:`items`,type:`array`,itemFields:[{name:`data`,type:`object`,required:!1,description:`data-* attributes written on the control (the icon button or button and the menu row).`},{name:`description`,type:`string`,required:!1,description:`A muted second line under the label, for a short hint about what the row does.`},{name:`disabled`,type:`boolean`,required:!1,description:`Shows the row greyed out. It stays focusable and cannot be chosen, and renders no link.`},{name:`disabledReason`,type:`string`,required:!1,description:`Why the row is disabled. Shown as a tooltip on hover and focus, and read by screen readers. Needs disabled.`},{name:`divider`,type:`boolean`,required:!1,description:`Draws a separator instead of an action.`},{name:`header`,type:`string`,required:!1,description:`Draws a small group heading instead of an action.`},{name:`hiddenFrom`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The breakpoint from which the row is hidden.`},{name:`href`,type:`string`,required:!1,description:`A plain link the item opens, never routed through linkComponent (an external page, a download). An item takes to or href, not both.`},{name:`icon`,type:`icon`,required:!1,description:`A glyph name, or a custom node such as an iconsax glyph.`},{name:`image`,type:`string`,required:!1,description:`URL of a picture that leads the row, such as an external logo or avatar. Pass image or icon, not both.`},{name:`imageHeight`,type:`number`,required:!1,description:`The picture's height in pixels. Give it with imageWidth so the row keeps its size as the picture loads.`},{name:`imageWidth`,type:`number`,required:!1,description:`The picture's width in pixels. Give it with imageHeight so the row keeps its size as the picture loads.`},{name:`key`,type:`string`,required:!0,description:`Unique key of the row.`},{name:`label`,type:`node`,required:!1,description:`Content of the row: text, or text with an icon. A searchable menu needs text.`},{name:`rel`,type:`string`,required:!1,description:`The link's rel. Needs href or to.`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the item, such as E, drawn as a key chip at the end of the row. The page binds the key itself.`},{name:`target`,type:`enum`,enum:[`_blank`,`_self`],required:!1,description:`Where an href or to opens. Needs href or to.`},{name:`to`,type:`string`,required:!1,description:`Link target. The row renders through the link component when one is given, otherwise as a plain link.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" marks the row as destructive.`}],required:!1,description:`The menu rows, used when there are no children. A row is an action, a divider or a group heading; a divider or heading needs only a unique key.`,default:[]},{name:`label`,type:`string`,required:!1,description:`Tooltip and accessible name fallback for the toggle.`},{name:`menuClassName`,type:`string`,required:!1,description:`Class for the menu panel.`,default:``},{name:`menuWidth`,type:`enum`,enum:[`fit`,`lg`,`md`,`sm`],required:!1,description:`A fixed menu width (15, 20 or 25rem; long rows wrap instead of widening the menu), or fit: no minimum, the menu is as wide as its widest row. Unset, the menu is at least 12rem wide.`},{name:`noMatchText`,type:`string`,required:!1,description:`Text shown when no row matches the search. Needs searchable.`,default:`No matches.`},{name:`open`,type:`boolean`,required:!1,description:`Controlled open state. Leave it out and the menu manages its own; set it and the caller owns it, updating it from onOpenChange.`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`Placeholder and accessible name of the search box. Needs searchable.`,default:`Search`},{name:`searchable`,type:`boolean`,required:!1,description:`Puts a search box above the rows that filters them by label as the user types, for a long menu. It filters items, so it cannot be combined with children.`},{name:`toggleClassName`,type:`string`,required:!1,description:`Class for the toggle button, replacing the default toggle look.`},{name:`toggleVariant`,type:`enum`,enum:[`neutral`],required:!1,description:`neutral: a custom trigger that keeps the surrounding font and colour, with a muted fill on hover and while open. Needs trigger.`},{name:`trigger`,type:`node`,required:!1,description:`A custom trigger drawn inside the toggle button instead of the icon, such as an account chip or a labelled sort button. It wins over icon. The button keeps its open state, keyboard behaviour and accessible role.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A row or card has several secondary actions that would clutter the layout as buttons.`,`You want a consistent “⋯” affordance for overflow actions across every row.`,`The actions are related and belong under one grouped trigger.`,`A menu lists more than about ten rows and the user knows the name of the one they want.`],whenNot:[{text:`There is a single icon action.`,instead:`AppActionIcon`},{text:`The action is the primary thing on the screen.`,instead:`AppButton`},{text:`You are selecting one value from a list.`,instead:`AppSelect`},{text:`You need a yes/no confirmation.`,instead:`AppConfirmDialog`}],do:[{title:`Put the destructive item last`,note:`Overflow actions collapse into one trigger, with the destructive one marked danger and placed last.`,example:[{component:`AppDropdown`,props:{icon:`more-horizontal`,ariaLabel:`Row actions`,items:[{key:`edit`,label:`Edit`,icon:`edit`},{key:`copy`,label:`Duplicate`,icon:`copy`},{key:`delete`,label:`Delete`,icon:`trash-2`,tone:`danger`}]}}]},{title:`Keep the menu short and clear`,note:`A short, scannable list of clearly worded actions.`,example:[{component:`AppDropdown`,props:{icon:`more-horizontal`,ariaLabel:`More options`,items:[{key:`a`,label:`Rename`},{key:`b`,label:`Move to…`}]}}]}],dont:[{title:`Put the destructive item last`,note:`Delete sits first and unmarked, so it looks like every other item and is the easiest to hit by mistake.`,example:[{component:`AppDropdown`,props:{icon:`more-horizontal`,ariaLabel:`Row actions`,items:[{key:`delete`,label:`Delete`,icon:`trash-2`},{key:`edit`,label:`Edit`,icon:`edit`},{key:`copy`,label:`Duplicate`,icon:`copy`}]}}]},{title:`Keep the menu short and clear`,note:`A menu with nine items becomes a wall to read. Group or split it, or promote the common ones out.`,example:[{component:`AppDropdown`,props:{icon:`more-horizontal`,ariaLabel:`More options`,items:[{key:`0`,label:`Action 1`},{key:`1`,label:`Action 2`},{key:`2`,label:`Action 3`},{key:`3`,label:`Action 4`},{key:`4`,label:`Action 5`},{key:`5`,label:`Action 6`},{key:`6`,label:`Action 7`},{key:`7`,label:`Action 8`},{key:`8`,label:`Action 9`}]}}]}],a11y:[`The toggle is a button named by ariaLabel, else by label; an icon-only toggle with neither is an unnamed button, and a development warning says so.`,`The menu closes on an outside click or Escape and moves between items with the arrow keys, and a custom trigger keeps all of it.`,`An item with a shortcut names its key to assistive technology through aria-keyshortcuts; picture rows use empty alt text.`]}},{name:`AppDueDate`,marker:`AppDueDate`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the due date element.`,default:``},{name:`date`,type:`stringOrNumber`,required:!1,description:`The due date: an ISO date or date-time string, or epoch milliseconds, read in India Standard Time.`},{name:`daysLeftLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {days} is the number of days left.`,default:`{days} days left`},{name:`dueInLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {days} is the number of days left.`,default:`Due in {days} days`},{name:`dueTodayLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Due today`},{name:`dueTomorrowLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Due tomorrow`},{name:`icon`,type:`boolean`,required:!1,description:`Draws a calendar glyph before the date text in every dated state.`,default:!1},{name:`notSetLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Not set`},{name:`oneDayLeftLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`1 day left`},{name:`overdue`,type:`boolean`,required:!1,description:`Set by the caller from its own rule. Done items are never overdue.`,default:!1},{name:`overdueLabel`,type:`string`,required:!1,description:`Replaces the date text when overdue, for example "Validity ended".`},{name:`overdueSinceLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {date} is the formatted due date.`,default:`Overdue since {date}`},{name:`soonDays`,type:`number`,required:!1,description:`Within this many days of the date, the text reads "N days left" in warning.`},{name:`soonWording`,type:`enum`,enum:[`days`,`due`],required:!1,description:`Within soonDays, "days" reads "N days left"; "due" reads "Due today", "Due tomorrow" or "Due in N days".`,default:`days`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A date is a deadline someone must meet: a task due date, a milestone, the end of a validity period.`,`Lists, boards and detail pages where the date should read as on time or late.`],whenNot:[{text:`A moment that already happened, such as created or updated.`,instead:`AppRelativeTime`},{text:`A date that is only a fact, with no deadline.`,instead:`A formatted date`}],do:[],dont:[],a11y:[`The date sits in a time element that carries the machine readable date.`,`An overdue date has the title Overdue since the date and a danger glyph beside the text, so the state does not rest on colour alone.`,`A missing date reads Not set, in muted text.`]}},{name:`AppEmptyState`,marker:`AppEmptyState`,acceptsChildren:!1,props:[{name:`action`,type:`node`,required:!1,description:`The next step shown below the text, usually an AppButton.`},{name:`className`,type:`string`,required:!1,description:`Extra class on the empty state wrapper.`,default:``},{name:`description`,type:`node`,required:!1,description:`Body text under the title.`},{name:`icon`,type:`icon`,required:!1,description:`Semantic icon name for the bubble, or a custom node. Needed unless illustration is set, which replaces the bubble.`},{name:`iconSize`,type:`number`,required:!1,description:`Size of the icon in the bubble, in pixels.`,default:24},{name:`illustration`,type:`node`,required:!1,description:`A named drawing (no-results, no-data, empty-inbox, no-notifications, no-files, no-access, offline or error), or your own decorative SVG node drawn unboxed at up to 120 px. Replaces the icon bubble when set.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The type scale: md is the page or card empty state, sm is the tighter widget or tile variant with a smaller title and text.`,default:`md`},{name:`title`,type:`node`,required:!1,description:`The headline of the empty state.`},{name:`variant`,type:`enum`,enum:[`card`,`table`],required:!1,description:`The look: card is the card or section empty state; table is the body of a data table, with a larger disc above the title. The table look has no sm scale, so size sm with table warns.`,default:`card`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A card or section has loaded but there is genuinely nothing to show.`,`A first-run experience where the user hasn't created anything yet.`,`A filtered or searched view returned no matches and you want to explain why.`,`A data table has loaded with no rows: use variant="table" for the table body.`],whenNot:[{text:`The data is still loading (first fetch).`,instead:`AppSkeleton`},{text:`Something went wrong fetching the data.`,instead:`AppAlert`},{text:`You just need a one-line "nothing here" with no framing.`,instead:`a muted caption`}],do:[{title:`Offer a next step`,note:`Names what's missing, explains why it matters, and offers the exact action to fix it.`,example:[{component:`AppEmptyState`,props:{icon:`users`,title:`No team members yet`,description:`Invite a colleague to collaborate on this project.`,action:{component:`AppButton`,props:{leftIcon:`plus`},children:`Invite member`}}}]},{title:`Explain a search with no matches`,note:`A search-empty explains the specific query and suggests how to get results.`,example:[{component:`AppEmptyState`,props:{icon:`search`,title:`No results for “risk”`,description:`Try a broader keyword or clear the filters.`}}]},{title:`Keep the description specific`,note:`A description that says what the empty state means helps the user, where filler only pads the space.`,example:[{component:`AppEmptyState`,props:{icon:`inbox`,title:`No requests this week`,description:`Requests you raise appear here once they are submitted.`}}]}],dont:[{title:`Offer a next step`,note:`A bare "Empty" with no guidance and no action leaves the user stuck at a dead end.`,example:[{component:`AppEmptyState`,props:{icon:`users`,title:`Empty`}}]},{title:`Explain a search with no matches`,note:`A bare "No results" with no reason and no way forward leaves the user unsure whether to change the search or the data.`,example:[{component:`AppEmptyState`,props:{icon:`search`,title:`No results`}}]},{title:`Keep the description specific`,note:`Repetitive filler text pads the space without helping the user do anything.`,example:[{component:`AppEmptyState`,props:{icon:`search`,title:`No results`,description:`No results found. No results found. No results found.`}}]}],a11y:[`A named illustration is decorative; the title carries the meaning for assistive technology.`,`A custom illustration node is wrapped with aria-hidden, so it is skipped by screen readers.`,`The title and text are plain text blocks, read in order with the action last.`]}},{name:`AppEntryGrid`,marker:`AppEntryGrid`,acceptsChildren:!1,props:[{name:`activeRowKey`,type:`string`,required:!1,nullable:!0,description:`The key, as rowKey returns it, of the row the person is working on; that row is drawn as active.`},{name:`addLabel`,type:`string`,required:!1,description:`The text of the button that adds an empty line at the end.`,default:`Add line`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the grid's root element.`,default:``},{name:`columns`,type:`array`,itemFields:[{name:`group`,type:`string`,required:!1,description:`Adjacent columns with the same group share one heading drawn above them.`},{name:`help`,type:`node`,required:!1,description:`Help shown beside the column heading.`},{name:`key`,type:`string`,required:!0,description:`The row field this column reads and edits.`},{name:`kind`,type:`enum`,enum:[`number`,`text`],required:!1,description:`number right-aligns the column and selects the text of a focused input.`,default:`text`},{name:`label`,type:`node`,required:!0,description:`The column heading.`},{name:`pin`,type:`enum`,enum:[`start`],required:!1,description:`start keeps the column in view when the grid scrolls sideways. Only the first column can be pinned.`},{name:`sortable`,type:`boolean`,required:!1,description:`Makes the heading a sort control that calls onSort; the page sorts the rows.`,default:!1},{name:`width`,type:`stringOrNumber`,required:!1,description:`The column's width, in px or a CSS length.`}],required:!0,description:`The columns, left to right, each with a key and a label, plus optional kind, width and help.`},{name:`commitNextLabel`,type:`string`,required:!1,description:`The keyboard legend for Enter.`,default:`Save and go to the next line`},{name:`commitStayLabel`,type:`string`,required:!1,description:`The keyboard legend for Ctrl and S.`,default:`Save`},{name:`dirtyLabel`,type:`string`,required:!1,description:`The status word for a line with changes not yet saved.`,default:`Changed`},{name:`discardLabel`,type:`string`,required:!1,description:`The keyboard legend for Escape.`,default:`Discard changes`},{name:`emptyContent`,type:`node`,required:!1,description:`Replaces the emptyLabel sentence when there are no rows, for a title, text and an action. Giving both is refused.`},{name:`emptyLabel`,type:`string`,required:!1,description:`The message shown when there are no rows.`,default:`No lines yet`},{name:`failedLabel`,type:`string`,required:!1,description:`The status word for a line whose save failed.`,default:`Not saved`},{name:`hint`,type:`boolean`,required:!1,description:`Shows the keyboard legend under the grid. The Enter and Ctrl+S entries show only with onCommitRow.`,default:!0},{name:`label`,type:`string`,required:!1,description:`The accessible name of the table.`,default:`Entry lines`},{name:`loading`,type:`boolean`,required:!1,description:`Draws placeholder rows instead of the lines while they load.`,default:!1},{name:`maxHeight`,type:`stringOrNumber`,required:!1,description:`Caps the grid's height so the lines scroll inside it and the totals row stays in view. Set it when the grid sits in a dialog or page that scrolls.`},{name:`moveLabel`,type:`string`,required:!1,description:`The keyboard legend for Ctrl and the arrow keys.`,default:`Move between lines`},{name:`pagination`,type:`object`,fields:[{name:`mode`,type:`enum`,enum:[`numbered`,`prev-next`],required:!1,description:`numbered shows page buttons; prev-next shows only the previous and next buttons.`},{name:`page`,type:`number`,required:!0,description:`The current page, counted from one.`},{name:`pageSize`,type:`number`,required:!0,description:`The number of lines on a page.`},{name:`pageSizes`,type:`array`,required:!1,description:`The page sizes the size menu offers.`},{name:`summary`,type:`boolean`,required:!1,description:`Draws "Showing x to y of z" at the start of the footer.`},{name:`summaryText`,type:`string`,required:!1,description:`Replaces the built-in "Showing {first} to {last} of {total}" text of the footer, for other languages. The tokens are {first}, {last} and {total}.`},{name:`total`,type:`number`,required:!0,description:`The number of lines across all pages.`},{name:`totalPages`,type:`number`,required:!1,description:`The number of pages; wins over the count worked out from total.`}],required:!1,description:`The pager state, as AppDataTable takes it; draws the pager inside the grid frame under the table.`},{name:`removeLineLabel`,type:`string`,required:!1,description:`The keyboard legend for Ctrl and Delete; shown only with onRemoveRow.`,default:`Remove line`},{name:`rows`,type:`array`,required:!0,description:`The row objects shown in the grid, one per line, in the order they appear.`},{name:`savedLabel`,type:`string`,required:!1,description:`The status word for a line that was saved.`,default:`Saved`},{name:`savingLabel`,type:`string`,required:!1,description:`The status word for a line being saved.`,default:`Saving`},{name:`skeletonRows`,type:`number`,required:!1,description:`How many placeholder rows loading draws; a whole number of 1 or more.`,default:3},{name:`sort`,type:`object`,fields:[{name:`dir`,type:`enum`,enum:[`asc`,`desc`],required:!0,description:`The sort direction.`},{name:`key`,type:`string`,required:!0,nullable:!0,description:`The sorted column's key; null means no column is sorted.`}],required:!1,nullable:!0,description:`The sorted column's key and direction; that column's heading announces it.`},{name:`statusLabel`,type:`string`,required:!1,description:`The name of the status column, read by screen readers but not shown.`,default:`Status`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person enters or corrects several lines of figures in one table, one line at a time.`,`Enter and Ctrl+S commit the line; the page decides whether a commit saves at once or with the grid.`],whenNot:[{text:`The table only shows records and nothing is typed into it.`,instead:`AppDataTable`},{text:`One field on a record is edited in place.`,instead:`AppInlineEdit`}],do:[{title:`Save each line as the person leaves it`,note:`Enter saves the line and moves to the next one, so the person never reaches for a save button per line.`,example:[{component:`AppEntryGrid`,props:{columns:[{key:`item`,label:`Item`},{key:`units`,label:`Units`,kind:`number`}],rows:[{id:`L1`,item:`Blue pens`,units:48}]}}]}],dont:[{title:`Save each line as the person leaves it`,note:`A read-only table with no save path leaves the person's typing with nowhere to go.`,example:[{component:`AppDataTable`,props:{columns:[{key:`item`,label:`Item`},{key:`units`,label:`Units`}],rows:[{id:`L1`,item:`Blue pens`,units:48}]}}]}],a11y:[`The table is named by label, and the active line carries aria-current.`,`Each status is a glyph with a visually hidden word, so a saving, saved or failed line is not shown by colour alone.`,`A failed line shows its error in an alert region under the line.`],keyboard:[{key:`Enter`,does:`Saves the line; the page moves to the next line once the save succeeds.`,notes:`Does nothing inside a text area, a button, or an open menu.`},{key:`Ctrl+S`,does:`Saves the line and keeps the focus on it.`,notes:`Meta+S does the same on a Mac.`},{key:`Escape`,does:`Discards the changes on the line and restores its last saved values.`,notes:`Does nothing inside an open menu.`},{key:`Ctrl+ArrowUp and Ctrl+ArrowDown`,does:`Moves the active line up or down.`,notes:`Does nothing at the first or last line.`},{key:`Ctrl+Delete`,does:`Removes the line; the page deletes it.`,notes:`Only with onRemoveRow; Meta+Backspace does the same on a Mac.`},{key:`Tab and Shift+Tab`,does:`Move between the fields of a line in page order.`,notes:`Never intercepted, so the person can always tab out of the grid.`}]}},{name:`AppErrorBoundary`,marker:null,acceptsChildren:!0,props:[{name:`brand`,type:`node`,required:!1,description:`Shown above the default screen.`},{name:`fallback`,type:`node`,required:!1,description:`What to show after an error. A function receives { error, reset }. Default: the AppRouteError screen with Try again, Reload the page and a home link.`},{name:`homeHref`,type:`url`,required:!1,description:`Where "Go to the home page" leads in the default screen.`,default:`/`},{name:`resetKeys`,type:`array`,required:!1,description:`The boundary clears itself when any item changes, such as the route path.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`One page or section may throw while the rest of the app still works.`,`A failed section should offer Try again without a full page load.`],whenNot:[{text:`The root of the app, where a stale build must reload the page once and the error is logged.`,instead:`ErrorBoundary from @webority/web-core`},{text:`A router errorElement for a failed route or loader.`,instead:`AppRouteError`},{text:`A section whose data request failed but nothing threw.`,instead:`AppAsyncBlock`}],do:[{title:`Clear the error on navigation`,note:`Pass resetKeys so moving to another page clears the error.`,example:[{component:`AppErrorBoundary`,props:{resetKeys:[`/projects`]}}]},{title:`Never show the error text`,note:`The default screen shows a plain sentence, so internal details stay private.`,example:[{component:`AppErrorBoundary`,props:{homeHref:`/dashboard`}}]}],dont:[{title:`Clear the error on navigation`,note:`Without resetKeys, the error stays on screen after the person moves to another page.`,example:[{component:`AppErrorBoundary`,props:{brand:`Projects`}}]},{title:`Never show the error text`,note:`It can leak internal details to the person reading the page, so the fallback never shows the error text.`,example:[{component:`AppCodeBlock`,props:{code:`TypeError: Cannot read properties of undefined (reading 'map')`,language:`text`}}]}],a11y:[`The default screen has a real heading and native buttons and a link.`,`The caught error is never shown, only a plain sentence.`]}},{name:`AppErrorSummary`,marker:`AppErrorSummary`,acceptsChildren:!1,props:[{name:`autoFocus`,type:`boolean`,required:!1,description:`Take focus when errors appear. Turn off only where the summary is shown for reference, such as documentation, never on a form.`,default:!0},{name:`className`,type:`string`,required:!1,description:`Extra class on the summary element.`,default:``},{name:`errors`,type:`array`,itemFields:[{name:`field`,type:`string`,required:!0,description:`The id or name of the input the link focuses.`},{name:`message`,type:`string`,required:!0,description:`The error text shown as the link.`}],required:!1,description:`The errors to list; the summary renders nothing while it is empty.`,default:[]},{name:`id`,type:`string`,required:!1,description:`DOM id of the summary; its heading id is built from it.`},{name:`title`,type:`node`,required:!1,description:`Heading of the summary. Defaults to "Fix N field(s) to continue".`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form with more than one field failed to submit, and the reader needs to see everything wrong at once.`,`Keyboard and screen reader users should land on the list and reach each field from it.`,`You also show each field's own error, so the list and the fields agree.`],whenNot:[{text:`You have one message that does not belong to a field.`,instead:`AppAlert`},{text:`The feedback is brief, such as Saved or Copied.`,instead:`toast`},{text:`The form has a single field.`,instead:`that field's own error prop`}],do:[],dont:[],a11y:[`The summary has role alert and takes focus when errors appear, so a screen reader announces the title and the count.`,`Only the step from no errors to some errors takes focus, so a re-render while the user types a fix never pulls focus from the field.`,`Each message is a link that moves focus to its field by id or name; the plain anchor stays as the no-script fallback.`]}},{name:`AppFileAttachment`,marker:`AppFileAttachment`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`The file types the field takes, as an accept list. Defaults to images; pass for example image/*,application/pdf for mixed. An empty string accepts any file type, and the format line then names no types.`},{name:`browseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Browse`},{name:`dropTitle`,type:`string`,required:!1,description:`Replaces the drop row's title, for other languages. Default text depends on accept and multiple.`,default:`Add a file, Add an image, Add files or Add images, chosen from accept and multiple`},{name:`error`,type:`string`,required:!1,description:`A message from the page, shown below the field beside the field's own validation messages.`},{name:`id`,type:`string`,required:!1,description:`DOM id of the file input; the label and the drop row point at it. Pass one when rows share a name.`},{name:`label`,type:`node`,required:!1,description:`The label shown above the field.`,default:`Attachment`},{name:`maxSizeMb`,type:`number`,required:!1,description:`The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the format line names no size.`},{name:`maxSizeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {size}, the size limit in megabytes.`,default:`Up to {size} MB`},{name:`multiple`,type:`boolean`,required:!1,description:`Lets the person attach several files. They stack in a list and each one removes on its own.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Form field name, so an uncontrolled form can post the file.`},{name:`optional`,type:`boolean`,required:!1,description:`Adds (optional) after the label.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`removeFileLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {name}, the file name.`,default:`Remove {name}`},{name:`removeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove attachment`},{name:`typesAndMaxSizeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Tokens: {types}, the accepted types, and {size}, the size limit in megabytes.`,default:`{types}, up to {size} MB`},{name:`uploadingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {name}, the file name.`,default:`Uploading {name}`},{name:`validate`,type:`boolean`,required:!1,description:`Checks each pick against accept and maxSizeMb and shows the field's own message for a rejected file. Set false when the page validates the files itself and shows its own message through error, so every pick reaches onChange and the person never sees two messages in two voices for one problem. accept and maxSizeMb still set the picker filter and the format line.`,default:!0},{name:`value`,type:`any`,required:!1,description:`A picked File, or an existing or uploading file: sizeBytes is its size in bytes, progress runs 0 to 100 while it uploads, error says why it failed. With multiple, an array of these.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A file is attached to a record, such as a ticket, a message or a comment, as evidence.`,`The filename and size matter more than seeing the picture large.`,`You want type and size validation and preview handling done for you in a compact row.`],whenNot:[{text:`The image is the star and the user should see it large.`,instead:`AppFilePicker`},{text:`The upload is a round avatar or a company logo.`,instead:`AppImagePicker`},{text:`It is a plain text or number field, not a file.`,instead:`AppInput`},{text:`You hand-roll a raw <input type="file"> with custom markup.`,instead:`AppFileAttachment`}],do:[{title:`Name the row and limit types`,note:`Give the row a specific label and restrict the accepted types, so the user knows what belongs here and what is allowed before they pick.`,example:[{component:`AppFileAttachment`,props:{label:`Ticket attachment`,accept:`image/png,image/jpeg`,optional:!0}}]},{title:`Make a required file's requirement visible`,note:`Surface a submit-time requirement with a message below the row, in the field's error style.`,example:[{component:`AppFileAttachment`,props:{label:`Photo`,error:`File is required`}}]}],dont:[{title:`Name the row and limit types`,note:`A bare "Attach" label with no constraints leaves the user unsure what belongs here or what the field accepts.`,example:[{component:`AppFileAttachment`,props:{label:`Attach`}}]},{title:`Make a required file's requirement visible`,note:`Marking a genuinely required attachment "optional" mis-signals that it can be skipped.`,example:[{component:`AppFileAttachment`,props:{label:`Photo`,optional:!0}}]}],a11y:[`The label is tied to the file input, and the drop row is a label for the same input, so clicking or pressing the row opens the picker.`,`A shown error is linked to the file input through aria-describedby.`,`The remove control is a button named Remove attachment.`]}},{name:`AppFilePicker`,marker:`AppFilePicker`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`Accepted file types (the accept attribute). Widen it, for example image/*,application/pdf, and non-image files show a file-type icon instead of a thumbnail.`,default:`.jpg,.jpeg,.png`},{name:`browseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Click to upload`},{name:`buttonLabel`,type:`string`,required:!1,description:`The button form's text.`,default:`Add file`},{name:`changeFileLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Change file`},{name:`changeImageLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Change image`},{name:`className`,type:`string`,required:!1,description:`Class to apply to the control element: the preview or dropzone shell.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the picker and keeps it out of the form post.`,default:!1},{name:`dropLabel`,type:`string`,required:!1,description:`Follows the browse text in the dropzone. Replaces the built-in English text, for other languages.`,default:`or drag & drop`},{name:`error`,type:`string`,required:!1,description:`A message from the page, shown below the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class to apply to the wrapper field div, for example a file-w-* width preset.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the control. An error (the page's or a rejected pick's) replaces it while it shows.`},{name:`id`,type:`string`,required:!1,description:`DOM id for the file input and its labels' for target.`},{name:`label`,type:`string`,required:!1,description:`The label shown above the field.`},{name:`loading`,type:`boolean`,required:!1,description:`Spinner over the control and picking blocked, for example while the chosen file uploads.`,default:!1},{name:`maxFiles`,type:`number`,required:!1,description:`Cap on total files in multiple mode.`},{name:`maxFilesText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is replaced with the cap.`,default:`Up to {count} files.`},{name:`maxSizeMb`,type:`number`,required:!1,description:`The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the format line names no size.`},{name:`maxSizeText`,type:`string`,required:!1,description:`The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.`,default:`up to {size} MB`},{name:`multiple`,type:`boolean`,required:!1,description:`Lets the person pick several files. They stack in a list inside the dropzone.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Form field name.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks picking, dropping, changing and removing.`,default:!1},{name:`removeFileLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {name}, the file name.`,default:`Remove {name}`},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required in its label.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control height: sm, md or lg, md when unset. The button form takes it too.`,default:`md`},{name:`value`,type:`any`,required:!1,description:`The chosen file or files: a File, an object with a url and an optional name, an array of those, or null.`},{name:`variant`,type:`enum`,enum:[`button`,`dropzone`],required:!1,description:`dropzone is the tall drop target. button is a small outline button that opens the file dialog, with no preview and no list.`,default:`dropzone`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A single, visually important image is being uploaded: a photo, a cover, a scan.`,`The preview matters: the user should see the picture they chose, large.`,`You want drag and drop plus a click target in one field, with type and size validation handled.`],whenNot:[{text:`You are attaching a file where the name and size matter more than a big preview.`,instead:`AppFileAttachment`},{text:`The upload is a round avatar or a company logo in a header.`,instead:`AppImagePicker`},{text:`It is a plain, non-image file input with no preview.`,instead:`a labelled AppInput`},{text:`You hand-roll a raw <input type="file"> with custom styling.`,instead:`AppFilePicker`}],do:[{title:`Give the field a specific label`,note:`Give the field a specific label, "Structure photo" rather than "Upload", so the user knows what image belongs here.`,example:[{component:`AppFilePicker`,props:{label:`Structure photo`}}]},{title:`Show validation beside the field`,note:`Surface validation with a message below the zone, in the field's own error style, so the eye lands on it next to the control.`,example:[{component:`AppFilePicker`,props:{label:`Company logo`,required:!0,error:`Logo is required`}}]}],dont:[{title:`Give the field a specific label`,note:`A vague "File" label leaves the user guessing what to drop, and mixes with the format line already in the zone.`,example:[{component:`AppFilePicker`,props:{label:`File`}}]},{title:`Show validation beside the field`,note:`A required field with no message on submit leaves the user unsure why the form will not save.`,example:[{component:`AppFilePicker`,props:{label:`Company logo`,required:!0}}]}],a11y:[`The label is tied to the file input, and the dropzone is a label for the same input, so the zone opens the picker by click or keyboard.`,`A shown error or helper text is linked to the file input through aria-describedby.`,`While loading, the control is marked aria-busy and a spinner with the status role named Loading shows.`,`In single mode the preview has a button to change the file and a separate remove button, each with an accessible name.`]}},{name:`AppFileTiles`,marker:`AppFileTiles`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the list.`,default:``},{name:`files`,type:`array`,itemFields:[{name:`href`,type:`string`,required:!1,description:`Where the file opens or downloads; makes the tile a link.`},{name:`key`,type:`stringOrNumber`,required:!0,description:`The file's key; not shown.`},{name:`meta`,type:`node`,required:!1,description:`Text after the size.`},{name:`name`,type:`string`,required:!0,description:`The file name; its extension makes the type tile.`},{name:`sizeBytes`,type:`number`,required:!1,description:`The size in bytes; shown as a readable size.`},{name:`to`,type:`string`,required:!1,description:`An in-app route; routed through the link component when one is given, otherwise a plain link.`}],required:!1,description:`The files, each { key, name, href, to, sizeBytes, meta }. name's extension makes the type tile; href makes the tile a link; to is an in-app route, through linkComponent when one is given, otherwise a plain link; sizeBytes is the size in bytes; meta is text after the size.`,default:[]},{name:`label`,type:`string`,required:!0,description:`Accessible name of the list.`}],itemsTakeAction:[`files`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A few files attached to a record that the person reads rather than edits.`,`Files that open or download from the page, each shown with its type and size.`],whenNot:[{text:`The person picks or uploads the files.`,instead:`AppFileAttachment`},{text:`One file to read in the page.`,instead:`AppFileViewer`}],do:[],dont:[],a11y:[`The list takes its accessible name from label.`,`The type tile is hidden from assistive technology; the file name carries the meaning.`,`A file with an href is a link; a file without one is plain text.`]}},{name:`AppFileViewer`,marker:`AppFileViewer`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:`Your own controls, shown at the end of the toolbar. Hidden in full screen.`},{name:`assetBase`,type:`string`,required:!1,description:`Folder holding pdf.js's cmaps/, standard_fonts/ and wasm/, which unusual PDFs need (Asian text, fonts a file does not embed, some scanned images).`},{name:`captions`,type:`string`,required:!1,description:`A WebVTT captions file for a video; adds a captions button to the player.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`download`,type:`boolean`,required:!1,description:`Shows a download button in the toolbar.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The name shown in the toolbar and used for printing and download. Defaults to the last part of src.`},{name:`prefs`,type:`object`,required:!1,description:`The view settings to start from, when your app stores them itself (for example against the signed-in person). Read when a file opens. With it, the browser stores nothing; save what onPrefsChange hands you and pass it back next time.`},{name:`print`,type:`boolean`,required:!1,description:`Shows the print button for a PDF or an image. Pass false to hide it.`,default:!0},{name:`src`,type:`string`,required:!1,description:`The file's URL. Changing it opens the new file. Without one the viewer draws its frame with a "No file to show." message.`},{name:`type`,type:`string`,required:!1,description:`The file's MIME type. Defaults to a guess from the extension of name or src.`},{name:`viewKey`,type:`string`,required:!1,description:`Remembers the view settings (zoom, two-page view, thumbnails) in this browser under this key. Without it they last for the viewer's life.`},{name:`workerSrc`,type:`string`,required:!1,description:`URL of a hosted pdf.js worker, for a site whose content security policy refuses blob: workers. Defaults to the bundled copy.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Someone needs to read a document without leaving the page: an invoice, a contract, a report.`,`A review or approval step, where the decision buttons belong next to the file.`],whenNot:[{text:`Someone is choosing a file to upload.`,instead:`AppFilePicker or AppFileAttachment`},{text:`The file only needs to be downloaded.`,instead:`AppButton with an href`}],do:[],dont:[],a11y:[`The toolbar buttons carry accessible names.`,`The settings menus use the menu role with menuitemradio rows and respond to the keyboard.`,`The React wrapper adds no roles of its own; the element draws the toolbar and the file.`]}},{name:`AppFilterBar`,marker:`AppFilterBar`,acceptsChildren:!1,props:[{name:`anyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Any`},{name:`appliesAtOnceText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Changes apply at once.`},{name:`apply`,type:`boolean`,required:!1,description:`Hold search and date range edits until Apply (or Enter in a search box), as the Razor app-filter-bar does; other choices still apply when they change. Apply shows only when a text or dateRange facet is present, and never with floating.`,default:!1},{name:`applyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Apply`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the filter bar.`,default:``},{name:`clearAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Clear all`},{name:`dateFromText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {date} is the start date of a date range chip.`,default:`From {date}`},{name:`dateRangeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {from} and {to} are the start and end dates of a date range chip.`,default:`{from} to {to}`},{name:`dateUntilText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {date} is the end date of a date range chip.`,default:`Until {date}`},{name:`facetLabels`,type:`boolean`,required:!1,description:`Draws each inline facet's label above its control. The folded Filters panel always shows labels.`,default:!1},{name:`facets`,type:`array`,itemFields:[{name:`allLabel`,type:`string`,required:!1,description:`Names an enum facet's clearing segment, such as All payments; the default is All. A facet shown as a select ignores it.`},{name:`key`,type:`string`,required:!0,description:`The key the facet's value is stored under in value.`},{name:`label`,type:`string`,required:!0,description:`Names the control for assistive technology and is its placeholder.`},{name:`options`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!1,description:`A number drawn in the option's segment, such as how many rows it would show. Only an enum facet drawn as segments shows it.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name drawn in the option's segment. Only an enum facet drawn as segments shows it.`},{name:`label`,type:`string`,required:!0,description:`The option's visible text.`},{name:`value`,type:`string`,required:!0,description:`The value stored when the option is chosen.`}],required:!1,description:`Fills an enum or multiEnum facet.`},{name:`presets`,type:`array`,required:!1,description:`Quick ranges for a dateRange facet: today, yesterday, last7Days, last30Days, thisMonth, lastMonth, thisFinancialYear.`},{name:`required`,type:`boolean`,required:!1,description:`An enum that always holds one of its options: no All segment, its select cannot be cleared, and it draws no chip and is left out of Clear all and the Filters count.`},{name:`source`,type:`string`,required:!1,description:"Enum and multiEnum facets: search the server for options (GET source?q=query). `options` then holds only the records of the current value, so a chosen option shows its label."},{name:`type`,type:`enum`,enum:[`dateRange`,`enum`,`multiEnum`,`text`],required:!0,description:`The kind of control: one choice, several choices, a date range or free text.`}],required:!0,description:`The facets to draw, one filter control each. A facet with no options draws nothing.`},{name:`filtersActiveLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is the number of active filters.`,default:`Filters, {count} active`},{name:`filtersLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Filters`},{name:`floating`,type:`boolean`,required:!1,description:`A floating panel: hover, click or F opens the facets in a non-modal panel under the Filters button, with a chip summary in the row.`,default:!1},{name:`inline`,type:`number`,required:!1,description:`How many facets stay in the row; the rest fold into the Filters button.`,default:3},{name:`keepOpenLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Keep open`},{name:`removeChipLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {facet} is the facet label and {value} the chip text.`,default:`Remove {facet} filter {value}`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Control height. md draws every control and button at the 36px field height; sm is the compact toolbar height.`,default:`sm`},{name:`value`,type:`object`,required:!0,description:`The current filters, keyed by facet key: a string, a list of strings, or a { from, to } date range.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A server-paged list that people filter, share and reload.`,`Several kinds of filter (one choice, many choices, a date range, free text) that should look the same everywhere.`],whenNot:[{text:`The whole list is already in the browser.`,instead:`usePagination with a hand-wired AppSegmented or AppSearch`},{text:`One short exclusive choice and nothing else.`,instead:`AppSegmented`}],do:[],dont:[],a11y:[`Every facet control is named by its facet label.`,`The Filters button reports whether its panel is open and which panel it controls, and its name carries the number of active filters.`,`The floating panel has the dialog role named Filters and closes on Escape or a click outside.`,`With apply, Enter in a search box applies the held edits.`]}},{name:`AppFloatingButton`,marker:`AppFloatingButton`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Custom className; on the stack item when stacked, on the button when not.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the button.`,default:!1},{name:`icon`,type:`icon`,required:!0,description:`AppIcon name, or a node.`},{name:`label`,type:`string`,required:!0,description:`Accessible name and tooltip; the button shows no text.`},{name:`order`,type:`enum`,enum:[`primary`,`secondary`],required:!1,description:`Slot in the stack: primary sits in the corner, secondary stacks above it.`,default:`primary`},{name:`position`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Bottom corner of the stack.`,default:`end`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Circle size: 40px, 48px or 56px.`,default:`md`},{name:`stacked`,type:`boolean`,required:!1,description:`False renders the bare button with no stack item; the caller places it.`,default:!0},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Button tone.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Button variant.`,default:`solid`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A persistent corner action on a page, such as chat, help or report an issue.`],whenNot:[{text:`A toolbar action beside other icon actions.`,instead:`AppActionIcon.`},{text:`A labelled primary action that needs visible text.`,instead:`AppButton.`}],do:[],dont:[],a11y:[`The label is the accessible name and the tooltip.`,`aria-haspopup and aria-expanded pass through to the button.`]}},{name:`AppFloatingDock`,marker:`AppFloatingDock`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name for the dock landmark.`,default:`Quick navigation`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the dock.`,default:``},{name:`items`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!1,description:`A plain link target.`},{name:`icon`,type:`icon`,required:!0,description:`The item's icon: an icon name or a node.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the item; without one the title and position are used.`},{name:`title`,type:`string`,required:!0,description:`The item's accessible name and its hover tooltip.`},{name:`to`,type:`string`,required:!1,description:`A router target. Renders through the dock's link component when one is given, otherwise as a plain link.`}],required:!1,description:`The dock items, left to right. title is the accessible name and the hover tooltip.`,default:[]},{name:`magnify`,type:`boolean`,required:!1,description:`Set false to render a static dock, with no hover effect.`,default:!0},{name:`maxScale`,type:`number`,required:!1,description:`Item scale at the cursor's center. The element default is 1.6.`},{name:`radius`,type:`number`,required:!1,description:`Falloff distance for the magnification, in pixels. The element default is 100.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A marketing or landing surface wants a playful shortcut row, such as a hero, footer or portfolio.`,`The set is small (4 to 8 items) and every item reduces to one clear icon and title.`,`The destinations are also reachable through normal navigation.`],whenNot:[{text:`You need the app's persistent primary navigation.`,instead:`AppShell`},{text:`The actions belong to a toolbar or a data row.`,instead:`AppActionIcon`},{text:`You want a path or hierarchy trail, not shortcuts.`,instead:`AppBreadcrumbs`}],do:[],dont:[],a11y:[`The dock is a navigation landmark named by ariaLabel.`,`Every item is a real link or button named by its title; the visible tooltip is hidden from assistive technology.`,`Magnification turns itself off on touch pointers and when the person prefers reduced motion, leaving a plain icon row.`]}},{name:`AppForm`,marker:`AppForm`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the form element.`,default:``},{name:`fieldErrors`,type:`object`,required:!1,description:`Field name to message. A field inside the form with that name and no error of its own shows it; one no field claims is drawn at the top of the form.`,default:{}},{name:`formErrors`,type:`array`,required:!1,description:`Errors that name no field, drawn at the top of the form.`,default:[]},{name:`unsavedChanges`,type:`object`,required:!1,description:`The guard from useUnsavedChanges (@webority/web-core/router); the form asks before a held navigation goes ahead.`},{name:`unsavedChangesMessage`,type:`string`,required:!1,description:`Replaces the question's message.`,default:`Your changes on this page are not saved. If you leave now, they are lost.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form submits to the server and must not send twice: a double click or Enter while a save is in flight is dropped.`,`A submit may be retried after a failure and the server must recognise the retry as the same request.`,`Child buttons must show a pending state while the form submits: AppButton inside AppForm reads it.`],whenNot:[{text:`The form is a dialog or modal`,instead:`AppModal or AppConfirmDialog own the footer logic`},{text:`The control is a single button with no form around it`,instead:`use AppButton with its own onClick`}],do:[],dont:[],a11y:[`Renders a plain form element. While a submit is pending it sets aria-busy="true" so assistive technology knows the form is updating.`,`Extra attributes such as aria-label and id pass through to the form element.`]}},{name:`AppFormActions`,marker:`AppFormActions`,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`between`,`end`,`start`],required:!1,description:`Alignment of the children: end, start or between.`,default:`end`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`,default:``},{name:`sticky`,type:`boolean`,required:!1,description:`Sticks the actions to the bottom of the viewport with a border and background.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form has action buttons at the end (submit, save, cancel, etc.).`,`A form is longer than one viewport and needs actions to stay visible (use sticky).`,`You need consistent button alignment across all forms (trailing, leading, or space-between).`],whenNot:[{text:`Buttons are inside a modal or dialog`,instead:`AppModal or AppConfirmDialog own the footer logic`},{text:`You need custom spacing or layout around buttons`,instead:`Use a raw flex/grid container for full control`},{text:`Buttons are scattered throughout the form, not grouped at the end`,instead:`Use AppButton directly where needed`}],do:[],dont:[],a11y:[`Renders a plain div with the form-actions class. It adds no role or label, so each button keeps its own accessible name.`,`The tab order follows the order of the children; align changes only where they sit, not their order.`,`Extra attributes such as aria-label pass through to the div.`]}},{name:`AppFormRow`,marker:`AppFormRow`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`,default:``},{name:`collapse`,type:`boolean`,required:!1,description:`Stack to one column below the md breakpoint; false keeps the set columns at every width.`,default:!0},{name:`columns`,type:`enum`,enum:[1,2,3,4,5,6,7,8,9,10,11,12],required:!1,description:`Number of columns, 1 to 12.`,default:2}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You have multiple form fields that should sit side-by-side on desktop but stack on mobile.`,`You are building a form page with multiple rows of fields (pair with AppFormSection to group them).`,`You need responsive column control without custom CSS: use the columns prop.`],whenNot:[{text:`You need a single full-width field`,instead:`Just use the field component directly, or wrap in columns={1}`},{text:`You need a custom grid layout (asymmetric columns, spans, etc.)`,instead:`Use Bootstrap Row/Col for full control`},{text:`You are organizing logical groups, not just laying out fields`,instead:`Wrap AppFormRow in AppFormSection to add a title and description`}],do:[],dont:[],a11y:[`Renders a plain div grid with no role, so each field keeps its own label and accessible name.`,`Columns are placed by CSS only, so the tab order follows the order of the children whatever the column count.`,`Extra attributes pass through to the div.`]}},{name:`AppFormSection`,marker:`AppFormSection`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`,default:``},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`],required:!1,description:`compact uses 32px controls and tighter gaps, for admin screens and dialogs.`,default:`comfortable`},{name:`description`,type:`node`,required:!1,description:`Intro text below the title (optional).`},{name:`headingLevel`,type:`enum`,enum:[2,3,4],required:!1,description:`Heading level of the section title, so it nests under the page or drawer heading.`,default:3},{name:`labels`,type:`enum`,enum:[`start`,`top`],required:!1,description:`start puts each field's label beside its control (one field per row) from md up; below that labels sit on top.`,default:`top`},{name:`layout`,type:`enum`,enum:[`side`,`stacked`],required:!1,description:`side puts the title and description in a column beside the fields from lg up; below that it stacks.`,default:`stacked`},{name:`rule`,type:`enum`,enum:[`line`,`none`],required:!1,description:`none drops the hairline between consecutive sections and keeps the space.`,default:`line`},{name:`title`,type:`node`,required:!1,description:`Section heading (h3).`},{name:`titleFont`,type:`enum`,enum:[`body`,`display`],required:!1,description:`display sets the title in the display face; body keeps the text face.`,default:`body`},{name:`titleSize`,type:`number`,required:!1,description:`The title's font size in px; unset keeps the theme's 15px.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You're building a form page: use all three helpers together for a consistent layout.`,`You need to group logically related fields: AppFormSection wraps them with a title.`,`You have multiple fields in a row: AppFormRow arranges them responsively.`,`You're adding action buttons (submit, cancel, etc.): AppFormActions keeps them aligned.`],whenNot:[{text:`You're placing a single isolated field`,instead:`just use AppInput directly`},{text:`Your form is a dialog/modal`,instead:`AppModal / AppConfirmDialog owns the footer logic`},{text:`You need a custom grid layout`,instead:`use Bootstrap Row/Col for full control`}],do:[],dont:[],a11y:[`Renders a section element whose title is a real heading: h3 by default, h2 to h4 through headingLevel, so it appears in the page outline.`,`The description is a paragraph under the heading; the heading and description are left out when neither title nor description is given.`,`Extra attributes such as aria-labelledby pass through to the section.`]}},{name:`AppFormulaSteps`,marker:`AppFormulaSteps`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the list's root element.`,default:``},{name:`divideLabel`,type:`string`,required:!1,description:`The word a divide line is read as. Replaces the built-in English text, for other languages.`,default:`divided by`},{name:`equalLabel`,type:`string`,required:!1,description:`The word an equal line is read as. Replaces the built-in English text, for other languages.`,default:`equals`},{name:`label`,type:`string`,required:!1,description:`The accessible name of the list.`,default:`Calculation`},{name:`minusLabel`,type:`string`,required:!1,description:`The word a minus line is read as. Replaces the built-in English text, for other languages.`,default:`minus`},{name:`plusLabel`,type:`string`,required:!1,description:`The word a plus line is read as. Replaces the built-in English text, for other languages.`,default:`plus`},{name:`steps`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!1,description:`The React key of the line. Not shown.`},{name:`label`,type:`string`,required:!0,description:`What the line is, such as the name of the amount.`},{name:`note`,type:`string`,required:!1,description:`A short note under the line, such as a section reference.`},{name:`result`,type:`string`,required:!0,description:`The line's figure, already formatted.`},{name:`sign`,type:`enum`,enum:[`divide`,`equal`,`minus`,`plus`,`times`],required:!1,description:`The operator before the line. An equal line is the result and is drawn as the total. Unset on the first line.`},{name:`working`,type:`node`,required:!1,description:`The working in words and numbers, shown under the label. A node, so a link can sit in it.`}],required:!1,description:`The lines of the calculation, top to bottom. The first line has no sign; each later line names its operator.`,default:[]},{name:`timesLabel`,type:`string`,required:!1,description:`The word a times line is read as. Replaces the built-in English text, for other languages.`,default:`times`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Show how a figure on the page is reached, line by line, with the real numbers.`,`The server computes the figure and the page only shows it: the lines display that result, and the page does no arithmetic of its own.`],whenNot:[{text:`The figures are many rows the user scans, sorts or edits.`,instead:`AppDataTable`},{text:`The figures are a trend or a comparison shown as a picture.`,instead:`AppChart`},{text:`The figure is a single value with no working to show.`,instead:`a plain value in the page text`}],do:[{title:`End with the result line`,note:`Give each line the amount it stands for, and end with one equal line for the result.`,example:[{component:`AppFormulaSteps`,props:{label:`TDS on a bill`,steps:[{key:`a`,label:`Bill amount`,result:`₹10,00,000.00`},{key:`b`,sign:`minus`,label:`TDS`,result:`₹1,000.00`},{key:`c`,sign:`equal`,label:`Net payable`,result:`₹9,99,000.00`}]}}]}],dont:[{title:`End with the result line`,note:`A list of amounts with no equal line leaves the reader to add them up and find the total.`,example:[{component:`AppFormulaSteps`,props:{label:`TDS on a bill`,steps:[{key:`a`,label:`Bill amount`,result:`₹10,00,000.00`},{key:`b`,sign:`minus`,label:`TDS`,result:`₹1,000.00`}]}}]}],a11y:[`The lines are an ordered list with an accessible name, so a screen reader announces the count and reads each line in order.`,`A screen reader reads each operator as its word, such as minus or times, taken from the sign-word props.`,`Each operator glyph is hidden from assistive tech, so the symbol itself is never read out.`]}},{name:`AppGantt`,marker:`AppGantt`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names on the plan.`,default:``},{name:`emptyText`,type:`string`,required:!1,description:`The message when there are no tasks. Defaults to the built-in copy.`},{name:`error`,type:`string`,required:!1,description:`The curated message to show when the plan failed. Wins over loading and state.`},{name:`errorText`,type:`string`,required:!1,description:`The message under error when none is given. Defaults to the built-in copy.`},{name:`folded`,type:`array`,required:!1,description:`Names of the phase lanes that are folded. Controlled when given.`},{name:`from`,type:`string`,required:!1,description:`First day of the window, YYYY-MM-DD. Absent: the window the zoom picks around today. Controlled when given.`},{name:`layout`,type:`enum`,enum:[`lanes`,`table`],required:!1,description:`How the plan is drawn. table puts a task table (task, owner, start, end, done) beside the bars. lanes prints each name on its bar and opens a details card for a chosen bar.`,default:`table`},{name:`loading`,type:`boolean`,required:!1,description:`The plan is loading. Wins over state.`,default:!1},{name:`loadingText`,type:`string`,required:!1,description:`The text read aloud while the plan loads. Defaults to the built-in copy.`},{name:`rows`,type:`array`,itemFields:[{name:`dependsOn`,type:`array`,required:!1,description:`Keys of the rows this one starts after. Drawn read-only as finish-to-start arrows.`},{name:`end`,type:`string`,required:!1,description:`Last day, YYYY-MM-DD, inclusive. Absent makes the row a milestone.`},{name:`group`,type:`string`,required:!1,description:`The phase lane the row sits in. Rows keep list order inside it.`},{name:`key`,type:`string`,required:!0,description:`The task's key, unique across the list.`},{name:`name`,type:`string`,required:!0,description:`The task's name, shown in the table, or on its bar in the lanes layout.`},{name:`owner`,type:`string`,required:!1,description:`Shown in the table's Owner column, or in the details card in the lanes layout.`},{name:`progress`,type:`number`,required:!1,description:`Whole number from 0 to 100. Ignored for a milestone.`,default:0},{name:`start`,type:`string`,required:!1,description:`First day, YYYY-MM-DD. A row with no start is not drawn.`},{name:`status`,type:`enum`,enum:[`atRisk`,`done`,`inProgress`,`notStarted`],required:!1,description:`Colours the bar and is also written in its label.`,default:`notStarted`}],required:!0,description:`The tasks, flat: one entry per task. A row with no start is not drawn. A row with a start and no end is a milestone. A repeated key, an end before its start, a progress outside 0 to 100, or a dependsOn that names no row or loops throws, naming the key.`},{name:`selected`,type:`string`,required:!1,nullable:!0,description:`Key of the chosen row. The table layout highlights it; the lanes layout opens its details card. null chooses none. Controlled when given.`},{name:`state`,type:`enum`,enum:[`empty`,`error`,`loading`,`ready`],required:!1,description:`ready draws the plan; loading, empty and error draw their own message.`,default:`ready`},{name:`title`,type:`string`,required:!0,description:`Names the plan for assistive technology and its exported files.`},{name:`today`,type:`string`,required:!1,description:`Today, YYYY-MM-DD. Absent: today in Asia/Kolkata.`},{name:`zoom`,type:`enum`,enum:[`day`,`month`,`week`],required:!1,description:`The time scale: day, week or month. Controlled when given.`,default:`week`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A project plan whose tasks have a start and an end date, where the reader needs to see what is due when, what waits on what and what is late.`],whenNot:[{text:`Events on a month grid.`,instead:`AppCalendar`},{text:`A vertical history of what happened.`,instead:`AppTimeline`},{text:`A value series over time.`,instead:`AppChart`}],do:[],dont:[],a11y:[`Each bar is a focusable list item with one sentence read aloud: its name, dates, percent, status and predecessors.`,`Arrow keys move between bars. Enter chooses a row (the lanes layout opens its details card) and Escape clears it.`,`In the table layout the task table has row and column headers, so a screen reader reads each date with its column name.`,`The zoom is a radio group. The Today flag is text, never colour alone, and status is also written in each bar's label.`]}},{name:`AppHoverCard`,marker:`AppHoverCard`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`,default:``},{name:`closeDelay`,type:`number`,required:!1,description:`Milliseconds after leaving before it closes.`,default:150},{name:`label`,type:`string`,required:!1,description:`The card's accessible name, for example Asha Verma, profile.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and the loading label in place of the children while the preview is fetched; start the fetch when the card opens.`,default:!1},{name:`loadingLabel`,type:`string`,required:!1,description:`The text beside the spinner.`,default:`Loading`},{name:`open`,type:`boolean`,required:!1,description:`Shows the panel open, for a design preview or a controlled caller.`},{name:`openDelay`,type:`number`,required:!1,description:`Milliseconds of hover or focus before it opens.`,default:300},{name:`trigger`,type:`node`,required:!0,description:`The name or link the card belongs to. Make it a link or button so keyboard users can focus it.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A name or record link that people check in passing.`,`A short summary that can be fetched on demand.`],whenNot:[{text:`Actions or a form that opens on click.`,instead:`AppPopover`},{text:`One line of help text.`,instead:`AppTooltip`}],do:[],dont:[],a11y:[`The panel has role group, named by the label prop when given, and aria-busy while it loads; the loading text sits in a role status region.`,`The card opens when the trigger takes keyboard focus as well as on hover, and Escape closes it.`,`Touch never opens it, so the trigger must itself lead to the same information, for example a link to the record.`]}},{name:`AppIcon`,marker:`AppIcon`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`},{name:`color`,type:`string`,required:!1,description:`The icon colour. Without it the icon takes --wui-icon-color when an ancestor sets that variable, else the inherited text colour.`},{name:`name`,type:`string`,required:!0,description:`Icon name (kebab-case; curated or full-catalogue).`},{name:`size`,type:`number`,required:!1,description:`Icon size in pixels.`,default:16},{name:`tooltip`,type:`string`,required:!1,description:`A hover and focus tooltip that flips to stay on screen. The glyph is wrapped in a span with role img and an aria-label, so the icon is also named for assistive tech.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Preferred tooltip side; auto picks the side with the most room.`,default:`auto`},{name:`variant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`Icon style: linear, outline, bold, bulk, broken or twotone.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A label needs a small visual cue to reinforce its meaning: download, search, delete.`,`A component slot asks for an icon node (a button, a tab, a menu item).`,`You want a glyph referenced by a stable name so the underlying set can change centrally.`],whenNot:[{text:`The icon is the whole clickable control in a row or toolbar.`,instead:`AppActionIcon`},{text:`You need an interactive, labelled action.`,instead:`AppButton`},{text:`The meaning is not obvious from the glyph alone.`,instead:`a text label`}],do:[{title:`Reinforce a text label`,note:`The icon reinforces a clear text label: it supports the word and does not replace it.`,example:[{component:`AppButton`,props:{leftIcon:{component:`AppIcon`,props:{name:`plus`,size:16}}},children:`Add member`}]},{title:`Match the text size`,note:`AppIcon size matches the text it sits beside, so the baseline stays clean.`,example:[{component:`div`,props:{className:`d-flex align-items-center gap-2`},children:[{component:`AppIcon`,props:{name:`info`}},{component:`span`,children:`16px glyph beside 16px text, they align.`}]}]}],dont:[{title:`Reinforce a text label`,note:`Hand-written icon markup in app code bypasses the shared name map and drifts.`,example:[{component:`button`,props:{type:`button`,className:`btn`},children:[{component:`span`,props:{"aria-hidden":`true`},children:`+`}]}]},{title:`Match the text size`,note:`A glyph far larger than its label unbalances the row and pulls the eye away from the words.`,example:[{component:`div`,props:{className:`d-flex align-items-center gap-2`},children:[{component:`AppIcon`,props:{name:`info`,size:40}},{component:`span`,children:`Oversized glyph beside body text.`}]}]}],a11y:[`Without a tooltip the glyph is an svg marked aria-hidden, so it is decorative and the control around it needs its own accessible name.`,`With a tooltip the glyph is wrapped in a span with role img and an aria-label set to the tooltip text, so the icon is named for assistive tech.`,`The tooltip opens on hover and on keyboard focus, through the same tooltip engine as every other tooltip prop.`]}},{name:`AppIdleTimeoutDialog`,marker:`AppIdleTimeoutDialog`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the dialog.`,default:``},{name:`description`,type:`string`,required:!1,description:`{time} is filled with the time left. Replaces the built-in English text, for other languages.`,default:`You will be signed out in {time} because there has been no activity.`},{name:`open`,type:`boolean`,required:!0,description:`True while the timer is in its warning phase. The dialog draws only while open.`},{name:`remainingMs`,type:`number`,required:!0,description:`Time left before sign-out, in milliseconds, from useIdleTimeout. Drawn as minutes and seconds.`},{name:`signOutLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Sign out`},{name:`stayLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Stay signed in`},{name:`title`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Are you still there?`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person has been idle long enough that the app is about to sign them out for their security.`],whenNot:[{text:`The app is about to sign out for a reason other than inactivity.`,instead:`AppConfirmDialog`},{text:`A notice that does not need an answer.`,instead:`AppBanner`}],do:[],dont:[],a11y:[`The dialog is a modal: focus moves into it, Tab stays inside it and focus returns when it closes.`,`Escape does not close it; the person answers with Stay signed in or Sign out.`,`Both answers are native buttons, reached with Tab and used with Enter or Space.`]}},{name:`AppImagePicker`,marker:`AppImagePicker`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`The file types a person may choose. Defaults to PNG, JPG and WebP for logo; JPG, PNG, WebP and HEIC for avatar. HEIC opens only where the browser can decode it.`},{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the upload control. Defaults to Upload photo for the overlay and to the action's words for buttons.`},{name:`camera`,type:`boolean`,required:!1,description:`Shows the Take photo button, which opens the front camera. Default false for logo, true for avatar.`},{name:`cameraLabel`,type:`string`,required:!1,description:`The Take photo button's text on the buttons controls. Replaces the built-in English text.`,default:`Take photo`},{name:`cancel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Cancel`},{name:`changeLabel`,type:`string`,required:!1,description:`The Change button's text on the buttons controls, when a photo is set. Replaces the built-in English text.`,default:`Change photo`},{name:`className`,type:`string`,required:!1,description:`Extra class on the picker.`,default:``},{name:`controls`,type:`enum`,enum:[`buttons`,`overlay`],required:!1,description:`overlay is a ring with a hover label and an x to remove. buttons is the photo beside Upload or Change, Take photo and Remove. Default overlay for logo, buttons for avatar.`},{name:`crop`,type:`enumOrNumber`,enum:[`free`],required:!1,description:`Adds a crop step before upload. A number is the frame's width divided by its height, such as 1 for a round avatar; free lets the person resize the frame. Default none for logo, 1 for avatar.`},{name:`cropFailed`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Default That photo could not be saved. Try again, or choose another one. for avatar.`,default:`That image could not be cropped. Choose another one.`},{name:`dialogSubtitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Default Drag to position the photo, then zoom or rotate it. for avatar.`,default:`Drag the frame and zoom to choose what to keep.`},{name:`dialogTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Default Edit photo for avatar.`,default:`Crop photo`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks every action.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error from the caller. It wins over a rejection reason.`},{name:`fallback`,type:`node`,required:!1,description:`Shown when there is no image, for example initials.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra class on the field wrapper.`,default:``},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the picker. An error replaces it.`},{name:`kind`,type:`enum`,enum:[`avatar`,`logo`],required:!1,description:`The preset: logo is an identity ring, avatar is a person's profile photo. Each prop below overrides the preset.`,default:`logo`},{name:`label`,type:`node`,required:!1,description:`An optional field label above the picker.`},{name:`layout`,type:`enum`,enum:[`inline`,`profile`,`stacked`],required:!1,description:`Stacked is the ring with the helper text below. Inline puts the ring on the left with a title, subtitle and helper text column beside it. Profile stacks the same identity block, centred, beneath the ring. Applies to the overlay controls.`,default:`stacked`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and blocks every action while the picked file uploads.`,default:!1},{name:`maxSizeMb`,type:`number`,required:!1,description:`The size limit in megabytes; 0 means no limit. Defaults to 5 for logo and 10 for avatar.`},{name:`name`,type:`string`,required:!1,description:`The form field name. The chosen file, or the crop when cropping, is written into the file input, so an uncontrolled form posts it.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`outputSize`,type:`number`,required:!1,description:`The width and height of the saved square, in pixels, with a crop of 1. Default none for logo, 512 for avatar.`},{name:`outputType`,type:`enum`,enum:[`image/webp`,`keep`],required:!1,description:`The type of the saved crop: keep the chosen type, or WebP. Default keep for logo, WebP for avatar.`},{name:`overlayIcon`,type:`icon`,required:!1,description:`The icon name for the hover overlay. Overlay controls only.`,default:`image`},{name:`overlayLabel`,type:`string`,required:!1,description:`The text of the hover overlay. Overlay controls only.`,default:`Update photo`},{name:`previews`,type:`boolean`,required:!1,description:`Shows the 96 and 48 px live previews in the crop dialog. Default false for logo, true for avatar.`},{name:`removeLabel`,type:`string`,required:!1,description:`The accessible name and tooltip of the remove control. Use Remove logo on a logo picker.`,default:`Remove photo`},{name:`removeName`,type:`string`,required:!1,description:`A form field that posts true once Remove is pressed.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`rotatable`,type:`boolean`,required:!1,description:`Offers rotation in the crop dialog. Default false for logo, true for avatar.`},{name:`save`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Default Save photo for avatar.`,default:`Apply`},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`,`square`],required:!1,description:`The ring or frame shape.`,default:`circle`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`],required:!1,description:`A preset diameter (logo 72, 120, 160 px; avatar 64, 96, 128 px) or an exact number of pixels.`,default:`md`},{name:`style`,type:`object`,required:!1,description:`Inline style on the picker.`},{name:`subtitle`,type:`node`,required:!1,description:`Muted secondary text beside the ring. Inline and profile layouts only.`},{name:`title`,type:`node`,required:!1,description:`Bold primary text beside the ring. Inline and profile layouts only.`},{name:`unreadable`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the file name. Avatar keeps its HEIC message when the file is HEIC.`,default:`That image could not be opened. Choose another one.`},{name:`uploadLabel`,type:`string`,required:!1,description:`The Upload button's text on the buttons controls, when no photo is set. Replaces the built-in English text.`,default:`Upload photo`},{name:`value`,type:`string`,required:!1,description:`The current image URL. Absent or empty means no image.`},{name:`variant`,type:`enum`,enum:[`avatar`,`initials`],required:!1,description:`With no fallback, avatar draws a person icon. The avatar kind uses avatar.`,default:`initials`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`An identity image is being set, such as a workspace logo, a company avatar or a profile picture.`,`A person sets their own profile photo, or an admin sets a staff member's photo on their record.`,`You want a hover-to-change overlay plus a loading state while the file uploads.`],whenNot:[{text:`A single, rectangular image where the preview should be large.`,instead:`AppFilePicker`},{text:`A file attached to a record where the name or size matters.`,instead:`AppFileAttachment`},{text:`You only need to display an avatar, not upload one.`,instead:`AppAvatar`}],do:[{title:`Name the action the overlay performs`,note:`Set an overlay label that names the thing, such as "Change logo", so the hover affordance says exactly what happens.`,example:[{component:`AppImagePicker`,props:{fallback:`AC`,overlayLabel:`Change logo`}}]},{title:`Label and size the picker`,note:`Say what a good photo is. People crop better when they know.`,example:[{component:`AppImagePicker`,props:{kind:`avatar`,fallback:`NS`,label:`Profile photo`,helperText:`Your face, looking at the camera.`}}]}],dont:[{title:`Name the action the overlay performs`,note:`A generic "Click" overlay tells the user how to interact but not what the action does.`,example:[{component:`AppImagePicker`,props:{fallback:`AC`,overlayLabel:`Click`}}]},{title:`Label and size the picker`,note:`A tiny, disabled avatar picker with no label. Nobody can tell it sets their photo.`,example:[{component:`AppImagePicker`,props:{kind:`avatar`,fallback:`NS`,size:`sm`,disabled:!0}}]}],a11y:[`The upload control is named by ariaLabel, else by Upload photo for the overlay and by the action's words (Choose or Change photo) for buttons. It is disabled and marked busy while loading.`,`The remove control is its own button named by removeLabel, and it stays hidden until there is an image to remove.`,`The helper text or the error is tied to the upload control with aria-describedby, and an error wins over helper text.`,`The buttons look sits out of the tab order and the Upload button beside it is the keyboard path to the same action.`]}},{name:`AppInfoTip`,marker:`AppInfoTip`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the wrapper.`,default:``},{name:`label`,type:`string`,required:!1,description:`The popover title and the trigger’s accessible name. Unset, the trigger is named “More information”.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Where the popover opens. Auto flips it to stay in view.`,default:`auto`},{name:`width`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The widest the card grows before its text wraps, at 220, 276, 360 or 480px. It is a maximum, so a short tip stays as narrow as its text.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A field label uses a term the user may not know and you want an on-demand explanation.`,`The help is secondary, useful but not something every user needs to read.`,`You want accessible hover/focus behaviour without wiring a tooltip yourself.`],whenNot:[{text:`The message must be seen by everyone, persistently, in context.`,instead:`AppAlert`},{text:`It is a permanent helper text under a field the user should always read.`,instead:`the helperText prop on AppInput`},{text:`You would otherwise expose the text via a native title="".`,instead:`AppInfoTip`},{text:`It is a brief, transient confirmation after an action.`,instead:`toast`}],do:[{title:`Ask the question in the label`,note:`Give the tip a descriptive label (a real question) so it’s clear what the “?” explains, and keep the body to a sentence.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:[`Risk tolerance`,{component:`AppInfoTip`,props:{label:`What is risk tolerance?`},children:`The maximum acceptable annual loss probability under IEC 62305.`}]}]},{title:`Attach the tip to its term`,note:`Attach the tip to the exact term it explains, inline with the label, so the “?” sits where the question arises.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:[`Collection area`,{component:`AppInfoTip`,props:{label:`How is collection area computed?`},children:`The equivalent ground area that attracts the same strikes as the structure.`}]}]}],dont:[{title:`Ask the question in the label`,note:`A vague “info” label and a wall of text overload a tip: move long explanations into a linked doc.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:[`Risk tolerance`,{component:`AppInfoTip`,props:{label:`info`},children:`Risk tolerance is a very long paragraph that keeps going and turns the tip into a documentation page the user has to scroll through, which defeats the point.`}]}]},{title:`Attach the tip to its term`,note:`Burying the explanation elsewhere (or omitting it) forces the user to leave the field to understand it.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:`Collection area`}]}],a11y:[`The trigger is a button named by the label, or “More information” when there is no label.`,`It opens on hover and focus, and aria-expanded follows the open state.`,`With neither label nor body, the component renders nothing.`]}},{name:`AppInlineEdit`,marker:`AppInlineEdit`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the root element.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Shows the value without the edit affordance.`,default:!1},{name:`grouping`,type:`enum`,enum:[`indian`,`none`],required:!1,description:`Digit grouping of a number at rest: indian shows 15,00,000, none shows 1500000.`,default:`none`},{name:`id`,type:`string`,required:!1,description:`The root's id; the control and error ids derive from it. Generated when omitted.`},{name:`label`,type:`string`,required:!0,description:`What the value is, such as Owner: its accessible name and what screen readers announce, as in Owner saved.`},{name:`loadUrl`,type:`string`,required:!1,description:`A select's choices, fetched as a JSON array of { value, label } on the first open. Only with type select, and instead of options.`},{name:`options`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The text shown for this option.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value saved when this option is picked.`}],required:!1,description:`The choices of a select.`,default:[]},{name:`placeholder`,type:`string`,required:!1,description:`Shown, muted, when there is no value, and in the empty control. Without it an empty value shows a hyphen.`},{name:`type`,type:`enum`,enum:[`date`,`number`,`select`,`text`,`textarea`],required:!1,description:`The control the value turns into.`,default:`text`},{name:`value`,type:`stringOrNumber`,required:!1,nullable:!0,description:`The saved value. A date is yyyy-MM-dd; a select value is one of the options' values.`},{name:`wrap`,type:`boolean`,required:!1,description:`Wraps a long value across lines. false keeps it on one line, and a newline in a textarea value reads as a space.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`One field that changes often on its own: a status, an owner, a due date, a name.`,`A value in a table row that people fix while working down the list.`,`A fact on a detail page that is wrong or out of date.`],whenNot:[{text:`Several fields that change together, or depend on each other.`,instead:`An edit form or AppModal with AppFormActions.`},{text:`A change that needs a reason, an approval or a confirmation.`,instead:`An action button that opens a dialog.`},{text:`A value people cannot change.`,instead:`Plain text, or AppInlineEdit with disabled while access is decided per row.`}],do:[],dont:[],a11y:[`The value is a button named from the label, with a visually hidden word, edit or read only.`,`Saved and failed outcomes are announced through a polite live region.`,`Enter saves a text or number, Ctrl or Cmd+Enter saves a textarea, and Escape cancels.`]}},{name:`AppInput`,marker:`AppInput`,acceptsChildren:!1,props:[{name:`action`,type:`node`,required:!1,description:`A control rendered beside the field, outside its border, such as a verify button.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the control.`,default:``},{name:`clearLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Clear`},{name:`clearable`,type:`boolean`,required:!1,description:`Shows a clear button while the field has a value.`,default:!1},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultValue`,type:`stringOrNumber`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the field.`,default:!1},{name:`error`,type:`node`,required:!1,description:`A validation message under the field. It marks the control invalid for assistive technology.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra classes on the field wrapper.`,default:``},{name:`floatingLabel`,type:`enum`,enum:[`above`,`border`,`off`],required:!1,description:`Where the label rests. Off keeps it above the field. Border sits it inside as a placeholder, then slides it onto the top border once the field is focused or filled. Above rests it above the box, clear of the border.`,default:`off`},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text under the field. An error replaces it while both are set.`},{name:`hidePasswordLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Hide password`},{name:`id`,type:`string`,required:!1,description:`The id of the control. The label points at it.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control.`},{name:`leftIcon`,type:`icon`,required:!1,description:`A leading icon, given as a semantic icon name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`mask`,type:`string`,required:!1,description:`A named mask such as pan, phone-in, gstin, aadhaar, ifsc, pin-code, date or amount, or a pattern where 9 is a digit and A a letter. The value is formatted as it is typed.`},{name:`maxLength`,type:`number`,required:!1,description:`The character cap. The count turns red as the cap is approached.`},{name:`monospace`,type:`boolean`,required:!1,description:`Sets the monospace font, for codes and references.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The form field name.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`passwordPolicy`,type:`object`,fields:[{name:`customRules`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The rule text shown in the checklist.`},{name:`pattern`,type:`string`,required:!0,description:`A JavaScript regular expression source string.`}],required:!1,description:`Extra rules. Each rule ticks when its regular expression pattern matches the password.`},{name:`digit`,type:`boolean`,required:!1,description:`Requires a digit.`},{name:`lowercase`,type:`boolean`,required:!1,description:`Requires a lowercase letter.`},{name:`minLength`,type:`number`,required:!1,description:`The minimum number of characters.`},{name:`special`,type:`boolean`,required:!1,description:`Requires a special character.`},{name:`title`,type:`string`,required:!1,description:`The heading of the checklist.`},{name:`uniqueChars`,type:`number`,required:!1,description:`The minimum number of distinct characters.`},{name:`uppercase`,type:`boolean`,required:!1,description:`Requires an uppercase letter.`}],required:!1,description:`A custom password policy that replaces the default rules. It is used only while passwordRequirements is shown.`},{name:`passwordRequirements`,type:`enum`,enum:[`off`,`shown`],required:!1,description:`On a password field, shows a live checklist of the password rules as the user types. It uses the default policy unless passwordPolicy is set.`,default:`off`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in an empty field.`},{name:`postFormatted`,type:`boolean`,required:!1,description:`With a mask, a native form submit posts the formatted value instead of the raw characters.`,default:!1},{name:`prefix`,type:`node`,required:!1,description:`A bordered box before the input, such as a currency sign or a scheme.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the field; the value still posts. A clearable field shows no clear button.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required, with a visible mark and the native required attribute.`,default:!1},{name:`requirementsPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`inline`,`start`,`top`],required:!1,description:`The side the requirements popover opens on. Auto flips to stay in view. Inline puts the checklist under the field, in place of the helper text.`,default:`auto`},{name:`requirementsTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Password requirements`},{name:`rightIcon`,type:`icon`,required:!1,description:`A trailing icon button, given as a semantic icon name. It calls onRightIconClick when pressed.`},{name:`rightIconLabel`,type:`string`,required:!1,description:`The accessible name of the right-icon button. It falls back to the icon name.`},{name:`showCount`,type:`boolean`,required:!1,description:`Shows a live character count under the field.`,default:!1},{name:`showPasswordLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Show password`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control size: sm, md, lg and xl are 35, 40, 45 and 50px. Md is the default.`,default:`md`},{name:`suffix`,type:`node`,required:!1,description:`A bordered box after the input, such as a decimal part or a domain.`},{name:`type`,type:`string`,required:!1,description:`The native input type, such as email, tel, number or password.`,default:`text`},{name:`unit`,type:`string`,required:!1,description:`A unit shown after the value, such as kg.`},{name:`valid`,type:`boolean`,required:!1,description:`Shows a green tick on a filled field with no error. Default off.`,default:!1},{name:`value`,type:`stringOrNumber`,required:!1,description:`The controlled value. Pair it with onChange.`},{name:`variant`,type:`enum`,enum:[`bare`,`underline`],required:!1,description:`Bare drops the border and the fill, for inline editing. Underline keeps only a line under the field, which takes the same hover and focus colours as the boxed field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user enters a single line of text or a number: name, email, amount, reference.`,`You want the shared field treatment: label, helper text, error, and required marking.`,`A specific type (email, number, tel) should drive the keyboard and native validation.`],whenNot:[{text:`The value runs to multiple lines: a note or description.`,instead:`AppTextarea`},{text:`The user picks from a fixed set of options.`,instead:`AppSelect`},{text:`It is a search box that filters a list.`,instead:`AppSearch`},{text:`The value is a calendar date.`,instead:`AppDatePicker`}],do:[{title:`A visible label, not a placeholder`,note:`A visible label stays put while the user types and is read by screen readers.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e1`,type:`email`,placeholder:`you@company.com`}}]},{title:`Use the right input type`,note:`type="email" brings the right keyboard and native validation for free.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e3`,type:`email`,placeholder:`you@company.com`}}]},{title:`Say exactly what is wrong`,note:`A specific error tells the user exactly what to change.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e5`,required:!0,error:`Enter a valid email address.`}}]}],dont:[{title:`A visible label, not a placeholder`,note:`A placeholder used as the label vanishes on the first keystroke and fails accessibility.`,example:[{component:`AppInput`,props:{name:`e2`,placeholder:`Email`}}]},{title:`Use the right input type`,note:`A plain text type misses the email keyboard and validation the browser could give.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e4`,type:`text`,placeholder:`you@company.com`}}]},{title:`Say exactly what is wrong`,note:`Invalid leaves them guessing what is actually wrong.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e6`,required:!0,error:`Invalid`}}]}],a11y:[`The control carries aria-invalid, and aria-describedby points at the error or the helper text.`,`The clear button is named Clear and is hidden while the field is empty.`,`The password reveal button is named Show password or Hide password, and the checklist sits in a polite live region.`,`The right-icon button is named by rightIconLabel, or by the icon name when none is given.`,`The info-tip button is named by helpLabel.`]}},{name:`AppInputGroup`,marker:`AppInputGroup`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the root.`,default:``},{name:`htmlFor`,type:`string`,required:!1,description:`The id of the field the label names.`},{name:`label`,type:`string`,required:!1,description:`The group's label, above it.`},{name:`leading`,type:`node`,required:!1,description:`Before the field: text, or a node such as an AppButton.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the label required.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Height of text add-ons; set the same size on the field and on button add-ons.`,default:`md`},{name:`trailing`,type:`node`,required:!1,description:`After the field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Currency, protocol or domain around a value.`,`A button or select that acts on the field (Copy, Apply, a unit picker).`],whenNot:[{text:`A unit shown inside the field.`,instead:`AppInput unit, prefix or suffix`},{text:`A search box with a submit button.`,instead:`AppSearch`}],do:[],dont:[],a11y:[`The label is a label element tied to the field by htmlFor, and the required mark follows the label text.`,`The add-ons share the field's outline and height.`,`Text add-ons are plain spans with no role, so the field must carry its own accessible name when there is no label.`]}},{name:`AppKanban`,marker:`AppKanban`,acceptsChildren:!1,props:[{name:`activeCardKey`,type:`string`,required:!1,description:`The key of the card just added; it is highlighted until the next render.`},{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the board region.`,default:`Board`},{name:`boardId`,type:`string`,required:!1,description:`Remembers which columns are folded per browser, under this id.`},{name:`cards`,type:`array`,required:!0,description:"Every card on the board. A card is a plain object; it sits in the column named by its `column` and is identified by its `key` or `id`."},{name:`className`,type:`string`,required:!1,description:`Extra classes on the board.`,default:``},{name:`collapseLabel`,type:`string`,required:!1,description:`The accessible name of an open column's toggle. {title} is the column's title, for other languages.`,default:`Collapse {title}`},{name:`columnWidth`,type:`number`,required:!1,description:`The width of each column in px.`},{name:`columns`,type:`array`,itemFields:[{name:`acceptFrom`,type:`array`,required:!1,description:`The only columns this one takes cards from. Leave it out to take cards from every column.`},{name:`collapsed`,type:`boolean`,required:!1,description:`Whether a collapsible column starts folded.`},{name:`collapsible`,type:`boolean`,required:!1,description:`Folds the column to a strip, remembered per board.`},{name:`emptyText`,type:`string`,required:!1,description:`Text shown when this column has no cards, in place of the board's.`},{name:`href`,type:`url`,required:!1,description:`Where the column's name links, such as a filtered list of the same stage.`},{name:`key`,type:`string`,required:!0,description:`The React key of the column. Not shown.`},{name:`summary`,type:`node`,required:!1,description:`A line in the column head, such as a total. It may also be a function of the column's cards in code; the kit shows the node form.`},{name:`title`,type:`string`,required:!0,description:`The column's name.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the column's dot and count.`},{name:`visibleLimit`,type:`number`,required:!1,description:`Shows the first N cards the filter lets through, with a Show more link for the rest. The count still covers every card.`}],required:!0,description:"The columns, left to right. A column takes cards only from the columns in its `acceptFrom`; a `collapsible` column folds to a strip that is remembered per `boardId`. Each column also needs a unique `key`."},{name:`columnsLabel`,type:`string`,required:!1,description:`The accessible name of the column switcher, for other languages.`,default:`Board columns`},{name:`emptyText`,type:`string`,required:!1,description:`Text of an empty column.`,default:`Nothing here`},{name:`expandLabel`,type:`string`,required:!1,description:`The accessible name of a folded column's toggle. {title} is the column's title, for other languages.`,default:`Expand {title}`},{name:`fill`,type:`boolean`,required:!1,description:`From md up the board fits the screen and each column's cards scroll inside the column under its fixed head. Phones keep the one-column layout.`,default:!1},{name:`fillOffset`,type:`number`,required:!1,description:`The px taken off the viewport height when the board fills the screen, in place of the 240px default.`},{name:`headLayout`,type:`enum`,enum:[`inline`,`stacked`],required:!1,description:`Stacked puts each stage name on its own line, with no tone dot.`,default:`inline`},{name:`helpText`,type:`string`,required:!1,description:`The keyboard instructions for moving a card, read by screen readers, for other languages.`,default:`Press Space to pick up the card. Use the Left and Right arrow keys to choose a column, then Space to drop it, or Escape to cancel.`},{name:`id`,type:`string`,required:!1,description:`The board's id; the column, body and help ids derive from it. Generated when omitted.`},{name:`readOnly`,type:`boolean`,required:!1,description:`No card can be moved.`,default:!1},{name:`summaryFormat`,type:`enum`,enum:[`compact`,`currency`,`number`],required:!1,description:`Makes each column's summary the sum of its visible cards' values, in this format. The values come from a function in code.`},{name:`summaryUnit`,type:`enum`,enum:[`paise`,`rupees`],required:!1,description:`The unit of the card values that summaryFormat adds up.`,default:`rupees`},{name:`swipeHint`,type:`boolean`,required:!1,description:`On phones, a Swipe sideways or tap a column line under the column switcher.`,default:!1},{name:`swipeHintText`,type:`string`,required:!1,description:`The text of the phone hint that swipeHint shows, for other languages.`,default:`Swipe sideways or tap a column`},{name:`truncateHeads`,type:`boolean`,required:!1,description:`Keeps each stage name on one line, ends a long one in an ellipsis and shows the full name on hover.`,default:!1}],itemsTakeAction:[`columns`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Work moves through a few fixed stages and people move it themselves: a pipeline, a sprint, a support queue.`,`Seeing everything at a stage at once matters more than sorting or paging.`,`Each move is one saved change, such as a status or a stage.`],whenNot:[{text:`The list is long and needs sorting, paging or bulk edits.`,instead:`AppDataTable`},{text:`The stages are a fixed path someone walks through once.`,instead:`AppStepper`},{text:`You only need to show progress, not move work.`,instead:`AppProgress`}],do:[],dont:[],a11y:[`Every card is a focus stop. Space picks a card up, Left and Right choose a column, Space or Enter drops it, Escape cancels, and Up and Down move between cards.`,`Each step is announced to screen readers, refusals included.`,`The board is a region named by ariaLabel. Below md it shows one column at a time, with a column switcher above it.`]}},{name:`AppKbd`,marker:`AppKbd`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the key chip.`,default:``}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Naming a key in help text, in a field's helper text or in an empty state.`,`A legend or a guide that lists keys.`],whenNot:[{text:`Showing the key of a button or menu row.`,instead:`the shortcut prop`},{text:`Listing every shortcut on a screen.`,instead:`AppShortcutLegend`}],do:[],dont:[],a11y:[`It renders a kbd element whose text is part of the sentence, so assistive tech reads the key.`,`It only labels a key; to bind a key, put the shortcut prop on the control instead.`]}},{name:`AppKpiTile`,marker:`AppKpiTile`,acceptsChildren:!1,props:[{name:`attention`,type:`boolean`,required:!1,description:`Marks the tile as needing action, with a warning tint.`,default:!1},{name:`caption`,type:`node`,required:!1,description:`A sub-line under the value, such as Total sent.`},{name:`captionClassName`,type:`string`,required:!1,description:`Extra classes on the caption.`,default:``},{name:`className`,type:`string`,required:!1,description:`Extra classes on the tile root.`,default:``},{name:`delta`,type:`node`,required:!1,description:`The change text, such as 12% vs last month.`},{name:`deltaClassName`,type:`string`,required:!1,description:`Extra classes on the delta.`,default:``},{name:`deltaDirection`,type:`enum`,enum:[`down`,`flat`,`up`],required:!1,description:`Colours the delta and picks its arrow. Left out, it is read from a leading plus or minus sign on the delta and falls back to flat.`},{name:`deltaTone`,type:`enum`,enum:[`danger`,`neutral`,`success`],required:!1,description:`The delta's colour, overriding the one its direction implies, for a figure where a rise is bad news such as refunds or cost. The arrow still follows the direction.`},{name:`href`,type:`url`,required:!1,description:`Renders the whole tile as a link to this address.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name for the leading tile, or a custom node.`},{name:`iconClassName`,type:`string`,required:!1,description:`Extra classes on the icon chip.`,default:``},{name:`iconSlot`,type:`number`,required:!1,description:`Chart palette slot 1 to 8 for the icon chip (--color-chart-1 to -8). Unset, the chip takes iconTone or the default colour.`},{name:`iconTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Tints the icon chip.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The icon style of a named icon; a node icon is drawn as given.`,default:`twotone`},{name:`inline`,type:`boolean`,required:!1,description:`Puts the icon beside the text instead of above it.`,default:!1},{name:`label`,type:`node`,required:!0,description:`What the number measures.`},{name:`labelClassName`,type:`string`,required:!1,description:`Extra classes on the label.`,default:``},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The tile scale: sm is compact, md the default, lg a hero tile with an enlarged value.`,default:`md`},{name:`sparkline`,type:`array`,required:!1,description:`A trend series drawn as a small inline chart.`},{name:`sparklineClassName`,type:`string`,required:!1,description:`Extra classes on the sparkline.`,default:``},{name:`stacked`,type:`boolean`,required:!1,description:`Keeps the stacked layout (icon above the label) instead of the default picked layout, where the label and figure sit beside the icon and the delta and sparkline at the right. Ignored with inline.`,default:!1},{name:`value`,type:`node`,required:!0,description:`The number itself, already formatted.`},{name:`valueClassName`,type:`string`,required:!1,description:`Extra classes on the value.`,default:``},{name:`valueSize`,type:`number`,required:!1,description:`A custom value font size in px. It overrides the size and variant default, to tame a too-large headline.`},{name:`variant`,type:`enum`,enum:[`accent`,`filled`,`plain`,`spotlight`],required:!1,description:`The tile surface and layout: plain is a borderless tile, filled a subtle fill, accent a brand-tinted fill, spotlight a feature tile with the icon top right, a large value and the caption below.`,default:`plain`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A single derived number is worth stating on its own: a total, a count, a rate.`,`The reader should see it without reading a table.`,`You are building a dashboard strip or a summary above a list.`],whenNot:[{text:`You are showing many records with fields.`,instead:`AppDataTable`},{text:`The value is a status rather than a quantity.`,instead:`AppStatusBadge`},{text:`It is a label/value pair among several facts.`,instead:`AppDescriptions`},{text:`The number needs a chart to make sense.`,instead:`a chart`}],do:[{title:`Name the measure and comparison`,note:`Name what is measured and say what the delta compares against. “vs last week” is what makes 12 meaningful.`,example:[{component:`AppKpiTile`,props:{label:`Awaiting sign-off`,value:`12`,delta:`4 more than last week`,deltaDirection:`up`}}]}],dont:[{title:`Name the measure and comparison`,note:`“Count” of what? “+4” since when? The reader cannot act on either without going to look somewhere else.`,example:[{component:`AppKpiTile`,props:{label:`Count`,value:`12`,delta:`+4`,deltaDirection:`up`}}]}],a11y:[`The delta arrow carries the direction as well as the colour, so a reader who cannot tell green from red still gets it.`,`With href the whole tile is one link, a router link when a link component is given; without href it is a plain block, never a link with no target.`]}},{name:`AppLeadPopup`,marker:`AppLeadPopup`,acceptsChildren:!1,props:[{name:`action`,type:`url`,required:!0,description:`The URL the form posts to.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The close button's accessible name.`,default:`Close`},{name:`consentHref`,type:`url`,required:!1,description:`Adds a Privacy policy link beside the consent checkbox, opened in the same tab. Only with fields including consent.`},{name:`delaySeconds`,type:`number`,required:!1,description:`Seconds on the site before the delay trigger counts as engaged.`,default:30},{name:`description`,type:`string`,required:!1,description:`A sentence under the heading.`},{name:`dismissDays`,type:`number`,required:!1,description:`Days a dismissed popup stays quiet.`,default:30},{name:`errorText`,type:`string`,required:!1,description:`Shown when the send fails without a message of its own.`,default:`Something went wrong. Please try again or contact us directly.`},{name:`fieldNames`,type:`object`,required:!1,description:`Posted name per field, for a server that names it differently.`},{name:`fieldPrefix`,type:`string`,required:!1,description:`Text put before every posted field name, such as Input.`},{name:`fields`,type:`array`,required:!1,description:`The fields in order: name, email, phone, company, message, consent.`,default:[`name`,`email`]},{name:`labels`,type:`object`,required:!1,description:`Label per field.`},{name:`maxLengths`,type:`object`,required:!1,description:`Maximum length per field.`},{name:`pagesViewed`,type:`number`,required:!1,description:`Distinct pages this session before the pages trigger counts.`,default:2},{name:`preview`,type:`boolean`,required:!1,description:`Draw open with no triggers, memory or posting, for a design surface.`,default:!1},{name:`publicForm`,type:`string`,required:!0,description:`The server's PublicForm name, used as the captcha action.`},{name:`required`,type:`array`,required:!1,description:`The fields that must have a value.`,default:[]},{name:`scrollPercent`,type:`number`,required:!1,description:`Percent of the page scrolled before the scroll trigger counts.`,default:50},{name:`secondaryDivider`,type:`string`,required:!1,description:`The text drawn above the secondary link.`,default:`or`},{name:`secondaryHref`,type:`url`,required:!1,description:`Where the secondary link goes.`},{name:`secondaryLabel`,type:`string`,required:!1,description:`A secondary link under the form.`},{name:`storageKey`,type:`string`,required:!1,description:`Names the browser memory of the popup. Required with triggers; build it with the user's id.`},{name:`submitLabel`,type:`string`,required:!1,description:`The submit button's text.`,default:`Send`},{name:`submittedDays`,type:`number`,required:!1,description:`Days a submitted popup stays quiet.`,default:365},{name:`successCloseSeconds`,type:`number`,required:!1,description:`Seconds before the success view closes. 0 keeps it open.`,default:5},{name:`successText`,type:`string`,required:!1,description:`The sentence under the success heading.`},{name:`successTitle`,type:`string`,required:!1,description:`The heading after a successful send.`,default:`Thank you`},{name:`title`,type:`string`,required:!0,description:`The dialog's heading, and its accessible name.`},{name:`triggers`,type:`array`,required:!1,description:`exit, delay, scroll or pages. Empty by default: the host calls open().`,default:[]}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A public page asks a visitor for their details in a modal, opened by an exit, a delay, a scroll or a page count.`,`A campaign page needs a short lead form that is not a section of the page.`],whenNot:[{text:`The lead form is a section of the page's content.`,instead:`AppSectionLeadCapture`},{text:`The popup is a yes or no question, not a form.`,instead:`AppConfirmDialog`},{text:`The page is inside the signed-in app.`,instead:`AppModal`}],do:[],dont:[],a11y:[`The dialog is modal with a heading as its accessible name; Escape and the close button both dismiss it.`,`Each field has a visible label and an error message linked by aria-describedby; the first invalid field takes focus.`]}},{name:`AppLightbox`,marker:`AppLightbox`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the gallery.`,default:``},{name:`download`,type:`boolean`,required:!1,description:"Shows a download action. A browser ignores `name` for an image on another origin.",default:!1},{name:`items`,type:`array`,itemFields:[{name:`alt`,type:`string`,required:!1,description:`The image's text alternative. It defaults to the caption.`},{name:`caption`,type:`string`,required:!1,description:`The line under the image in the full-screen view.`},{name:`key`,type:`string`,required:!1,description:`A stable id for the image in the list. It defaults to the image address.`},{name:`name`,type:`string`,required:!1,description:`The file name a download saves under. It defaults to the last part of the image address.`},{name:`src`,type:`url`,required:!0,description:`The full image.`},{name:`thumb`,type:`url`,required:!1,description:`The thumbnail. It defaults to the full image.`},{name:`thumbHeight`,type:`number`,required:!1,description:`The thumbnail's height in pixels.`},{name:`thumbWidth`,type:`number`,required:!1,description:`The thumbnail's width in pixels. Set it with thumbHeight so its space is reserved before it loads.`}],required:!1,description:`The images, each opening full screen from its thumbnail.`,default:[]},{name:`label`,type:`string`,required:!1,description:`The full-screen dialog's name for screen readers.`,default:`Image viewer`},{name:`layout`,type:`enum`,enum:[`gallery`,`single`],required:!1,description:`gallery shows thumbnails; single shows each image at the container's full width, at its own shape.`,default:`gallery`},{name:`openIndex`,type:`number`,required:!1,description:`Opens the viewer on this image, counted from 0.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A gallery of photos.`,`Image attachments on a record that should open without leaving it.`],whenNot:[{text:`A PDF, video or audio file.`,instead:`AppFileViewer`},{text:`One image that is part of the page's content.`,instead:`a plain img`}],do:[],dont:[],a11y:[`Left and Right change image, wrapping at the ends; plus and minus zoom, 0 resets the zoom, and Escape closes and puts focus back on the thumbnail of the image last shown.`,`On a touch screen, swipe sideways to change image, pinch or double tap to zoom, drag to pan, and tap beside the image to close.`,"The full-screen dialog is named by `label`, and each thumbnail is a link to its image that still opens normally with Ctrl, Cmd or Shift."]}},{name:`AppLink`,marker:`AppLink`,acceptsChildren:!0,props:[{name:`animation`,type:`enum`,enum:[`bracket`,`fade`,`glow`,`grow`,`highlight`,`icon`,`none`,`rotate`,`shine`,`slide`,`static`,`underline`,`underline-center`],required:!1,description:`The hover treatment: underline slides a line in from the left, underline-center grows it from the middle, static is an always-visible underline with no motion, slide nudges the label and icons right, icon slides a trailing icon in (an arrow when none is given), rotate turns the trailing icon a quarter-eighth turn (45 degrees) on hover and focus (an up-right arrow when none is given), highlight wipes a tinted background across, bracket slides brackets in around the label, fade shifts colour only, grow opens up the letter spacing, glow adds a soft glow, shine sweeps a light shimmer across the label, and none is a plain coloured link.`,default:`underline`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the anchor.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Renders the link as unavailable: no navigation, and aria-disabled is set.`,default:!1},{name:`external`,type:`boolean`,required:!1,description:`Opens the link in a new tab, with the matching target and rel.`,default:!1},{name:`href`,type:`url`,required:!1,description:"The destination, or the `to` path when a link component is given. Left out, the anchor has no href."},{name:`label`,type:`node`,required:!1,description:`The link text as a prop, an alternative to children. When both are given, children wins.`},{name:`leftIcon`,type:`icon`,required:!1,description:`The leading glyph: an icon name or a node.`},{name:`maxLines`,type:`number`,required:!1,nullable:!0,description:`Clamps the label to this many lines, ending the last one with an ellipsis. Omit it for a label that runs on. Whole numbers of 1 or more only.`},{name:`rightIcon`,type:`icon`,required:!1,description:`The trailing glyph: an icon name or a node.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The text and icon size.`,default:`md`},{name:`surface`,type:`enum`,enum:[`dark`,`default`],required:!1,description:`Set dark when the link sits on a dark panel such as a dark hero or footer; the text turns light.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`An inline prose link inside body copy.`,`A footer link or a 'read more' / 'learn more' affordance.`,`A marketing call-to-action link where the hover should feel deliberate.`],whenNot:[{text:`The control performs an action rather than navigating.`,instead:`AppButton`},{text:`It is a primary navigation item in the app chrome.`,instead:`AppShell`},{text:`It is a rich link card with an icon tile and supporting text.`,instead:`AppResourceCard`},{text:`It is the trail to the current page.`,instead:`AppBreadcrumbs`}],do:[{title:`Name the destination`,note:`One clear animation and a descriptive label. The link reads as a link and says where it goes.`,example:[{component:`AppLink`,props:{href:`#guidance`,rightIcon:`arrow-right`},children:`See pricing`}]}],dont:[{title:`Name the destination`,note:`“Click here” tells the reader nothing. Name the destination so the link explains where it goes.`,example:[{component:`AppLink`,props:{href:`#guidance`,animation:`glow`},children:`Click here`}]}],a11y:[`A disabled link renders as a plain span with aria-disabled set and no href, so it is neither focusable nor announced as a link.`,`An external link opens in a new tab with rel noopener noreferrer.`,`Every animation is disabled under prefers-reduced-motion: reduce, where the link degrades to a static underline.`]}},{name:`AppLoadMore`,marker:`AppLoadMore`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the wrapper.`,default:``},{name:`failedText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Could not load more`},{name:`finishedText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`You are all caught up.`},{name:`infinite`,type:`boolean`,required:!1,description:`Loads the next page when the footer scrolls into view. The Load more button stays for keyboard users.`,default:!1},{name:`loadMoreLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Load more`},{name:`loadingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Loading more`},{name:`paging`,type:`object`,required:!0,description:`The paging object that useInfiniteDataState returns: hasMore, loadingMore, errorMore, loadMore and retryMore. The component only reads it.`},{name:`retryLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Try again`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A long feed, notification list or chat history that loads its next page on request or as the reader scrolls.`],whenNot:[{text:`Moving between numbered pages of a table.`,instead:`AppTablePagination`},{text:`The first page of a feed is loading.`,instead:`AppAsyncBlock`}],do:[],dont:[],a11y:[`Loading is announced by the spinner label.`,`A failed page is a polite status with a text-labelled Try again button.`,`The finished text is a polite status.`,`With infinite, the Load more button stays focusable, so keyboard users load the next page without scrolling.`]}},{name:`AppMarkdown`,marker:`AppMarkdown`,acceptsChildren:!1,props:[{name:`base`,type:`string`,required:!1,nullable:!0,description:`An https origin such as https://example.com that a relative link resolves against: /pricing opens https://example.com/pricing. Any other value (a path, a query, credentials, http) is ignored with a dev warning.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root element.`,default:``},{name:`headings`,type:`enum`,enum:[`outline`,`text`],required:!1,description:`Outline draws a heading as an h2 in the page outline. Text draws it as a bold line that stays out of the outline.`,default:`outline`},{name:`links`,type:`enum`,enum:[`app`,`page`,`web`],required:!1,description:`App opens only routes from resolveLink. Web also opens web, mail and phone addresses in a new tab. Page also opens a relative address and a web address on this site, in the same tab, and asks resolveLink for every address; an absolute web address it returns opens in a new tab when it leaves this site.`,default:`web`},{name:`value`,type:`string`,required:!1,description:`The Markdown source. Missing text renders nothing.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A brief, a comment or a work-item text that people wrote in Markdown.`,`A read-only view of formatted text from the server.`],whenNot:[{text:`Text a person edits.`,instead:`AppRichText`},{text:`A code sample people copy.`,instead:`AppCodeBlock`},{text:`Plain text with no formatting.`,instead:`the text itself`}],do:[],dont:[],a11y:[`Raw markup never reaches the page as elements: it shows as text, and an image shows as its alt text in brackets, so no picture is requested or announced.`,`By default a link opens only for an in-app route, a web address (in a new tab) or a mail or phone address. With links app, only the in-app route opens. Any other link shows its label as plain text.`]}},{name:`AppMentionInput`,marker:`AppMentionInput`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`debounce`,type:`number`,required:!1,description:`Milliseconds to wait for typing to pause before the lookup runs.`,default:250},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the box off.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error message shown under the box.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra classes on the field wrapper.`,default:``},{name:`help`,type:`node`,required:!1,description:`Help content shown in an info tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of that info tip.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the box when there is no error.`},{name:`id`,type:`string`,required:!1,description:`The element id. The text box is the id plus -text, which is the label's target.`},{name:`label`,type:`node`,required:!1,description:`Shown above the box. A string label also names the box.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`minChars`,type:`number`,required:!1,description:`How many letters after @ before the lookup runs.`,default:1},{name:`name`,type:`string`,required:!1,description:`Posts the stored value under this name in a form.`},{name:`people`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A second line under the name in the list.`},{name:`label`,type:`string`,required:!0,description:`The name shown in the list and written into the text.`},{name:`src`,type:`string`,required:!1,description:`A profile photo address shown beside the name. It is a string, not a url type, because the name does not end in href or url.`},{name:`value`,type:`string`,required:!0,description:`The person's public id: letters, digits and the characters _ . : -.`}],required:!1,description:`The people to offer when the person types @.`},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text shown while the box is empty.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`rows`,type:`number`,required:!1,description:`The number of visible lines.`,default:3},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control size: sm, md, lg or xl.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The stored value, plain text with each mention written as @[Asha Rao](u-12).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A comment, note or message that should reach named people.`,`Any text a server reads to notify someone.`],whenNot:[{text:`Choosing people as a field value.`,instead:`AppSelect mode="multiple"`},{text:`Formatted text with headings and lists.`,instead:`AppRichText`}],do:[],dont:[],a11y:[`The label points at the text box, whose id is the element id plus -text, so the label names it.`,`The helper text or the error is tied to the box with aria-describedby, and an error also marks the box aria-invalid.`,`In the list, Up and Down choose, Enter or Tab mention and Escape closes it. Backspace just after a mention removes it whole.`]}},{name:`AppMeter`,marker:`AppMeter`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the component.`,default:``},{name:`high`,type:`number`,required:!1,description:`A value at or above this is the high zone.`},{name:`label`,type:`string`,required:!1,description:`The accessible name of the bar. It is also shown above the bar when showLabel is set.`},{name:`low`,type:`number`,required:!1,description:`A value at or below this is the low zone.`},{name:`max`,type:`number`,required:!1,description:`The high end of the range.`,default:100},{name:`min`,type:`number`,required:!1,description:`The low end of the range.`,default:0},{name:`optimum`,type:`enum`,enum:[`high`,`low`],required:!1,description:`Which end is good. High means bigger is better.`,default:`high`},{name:`showLabel`,type:`boolean`,required:!1,description:`Shows the label text above the bar.`,default:!1},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The bar thickness.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`The fill colour when no thresholds are set.`,default:`info`},{name:`value`,type:`number`,required:!1,description:`The measurement, from min to max. It is clamped into range.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You have a single measurement within a known min…max range: disk used, a score, remaining quota.`,`There are meaningful thresholds where the reading becomes concerning, and you want the colour to say so automatically.`,`The value is a state to read at a glance, not a task advancing toward completion.`],whenNot:[{text:`The value is a task's completion moving toward 100% over time.`,instead:`AppProgress`},{text:`A single headline number with an optional trend, not a bar.`,instead:`AppKpiTile`},{text:`There is no known amount at all, it is just "working".`,instead:`AppSpinner`}],do:[{title:`Use meters for measurements, not tasks`,note:`Real thresholds that mean something operationally, so the auto-tone is trustworthy.`,example:[{component:`AppMeter`,props:{value:82,low:60,high:90,optimum:`low`,label:`Disk usage 82%`,showLabel:!0}}]}],dont:[{title:`Use meters for measurements, not tasks`,note:`A task advancing toward completion is not a measurement: that is AppProgress, not AppMeter.`,example:[{component:`AppMeter`,props:{value:45,label:`Import progress`,showLabel:!0}}]}],a11y:[`The bar has role meter with aria-valuenow, aria-valuemin and aria-valuemax, so assistive technology reads the value within its range.`,`label is the accessible name of the bar. The label shown above it is hidden from assistive technology so it is not read twice.`,`The tone is a visual cue only and is not announced, so state the reading in label.`]}},{name:`AppMetricStrip`,marker:`AppMetricStrip`,acceptsChildren:!1,props:[{name:`columns`,type:`enum`,enum:[3,4,5],required:!1,description:`How many values sit in a row.`,default:4},{name:`divided`,type:`boolean`,required:!1,description:`Draws the strip as one flush row with a rule between figures from the medium breakpoint up, for a strip inside a flush card.`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!1,description:`Makes the whole item a link.`},{name:`label`,type:`node`,required:!0,description:`What the value measures.`},{name:`note`,type:`string`,required:!1,description:`A small line under the value.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`Tints the value to show how it is going.`},{name:`value`,type:`node`,required:!0,description:`The value, shown large.`}],required:!1,description:`The values in the strip, three to five of them.`,default:[]},{name:`phoneColumns`,type:`enum`,enum:[1,2],required:!1,description:`How many values sit in a row on a phone.`,default:2},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The value and label scale.`,default:`md`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A page opens with three to five headline numbers.`,`Each number links to the list or report behind it.`,`The numbers need no surface of their own.`],whenNot:[{text:`One number needs its own card and icon.`,instead:`AppKpiTile`},{text:`The facts are a record's details.`,instead:`AppDescriptions`},{text:`You are listing many records.`,instead:`AppDataTable`}],do:[],dont:[],a11y:[`An item with an href is a real link; an item without one is plain text, so nothing is announced as a link that goes nowhere.`,`Label, value and note are plain text in reading order, with no hidden content.`]}},{name:`AppModal`,marker:`AppModal`,acceptsChildren:!0,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name when the title is not plain text, or when the header is hidden.`},{name:`backLabel`,type:`string`,required:!1,description:`The accessible name of the back arrow shown when onBack is set.`,default:`Back`},{name:`closeLabel`,type:`string`,required:!1,description:`The close button's accessible name, for other languages.`,default:`Close`},{name:`closeOnEscape`,type:`boolean`,required:!1,description:`Escape closes the modal through onClose, asking first when confirmDiscard applies. Set false for a dialog that must not close from the keyboard.`,default:!0},{name:`confirmDiscard`,type:`string`,required:!1,description:`Asks before closing while dirty, with this text and Discard and Keep editing in the footer.`},{name:`dirty`,type:`boolean`,required:!1,description:`True while a field differs from its loaded value. The caller owns it.`,default:!1},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows the close button in the header. For a forced-choice dialog, pair false with staticBackdrop and closeOnEscape false.`,default:!0},{name:`eyebrow`,type:`node`,required:!1,description:`A small kicker label above the title.`},{name:`footer`,type:`node`,required:!1,description:`Content pinned at the bottom, usually the action buttons.`},{name:`headerActions`,type:`node`,required:!1,description:`Actions drawn beside the title, before the close button, such as Previous and Next. Not drawn while hideHeader is set.`},{name:`headerIcon`,type:`icon`,required:!1,description:`A library icon name drawn in the header.`},{name:`hideHeader`,type:`boolean`,required:!1,description:`Hides the header, leaving the body and footer.`,default:!1},{name:`open`,type:`boolean`,required:!0,description:`Whether the dialog is shown.`},{name:`phoneSize`,type:`enum`,enum:[`fullscreen`,`lg`,`md`,`sm`,`wide`,`xl`],required:!1,description:`The card width below 576px, in place of size, which applies from 576px up. fullscreen covers the whole viewport on a phone. Unset, size applies at every width.`},{name:`placement`,type:`enum`,enum:[`center`,`top`],required:!1,description:`Vertical placement of the card: centred, or pinned near the top of the viewport.`,default:`center`},{name:`size`,type:`enumOrNumber`,enum:[`fullscreen`,`lg`,`md`,`sm`,`wide`,`xl`],required:!1,description:`The card width: a preset, wide for 1080px with fields in two columns (capped at 90vw), fullscreen for the whole viewport with header and footer pinned, or a number for an exact max width in pixels.`,default:`md`},{name:`staticBackdrop`,type:`boolean`,required:!1,description:`Covers outside clicks only: by default an outside click leaves the pop-up open. false lets an outside click close it.`,default:!0},{name:`subtitle`,type:`node`,required:!1,description:`A quieter line under the title.`},{name:`title`,type:`node`,required:!1,description:`The dialog title, shown in the header.`},{name:`titleFont`,type:`enum`,enum:[`sans`,`serif`],required:!1,description:`Face of the title. serif draws it in the display typeface at the 3xl size, weight 500.`,default:`sans`},{name:`tone`,type:`enum`,enum:[`danger`,`neutral`,`success`,`warning`],required:!1,description:`Tints the header icon and eyebrow to signal intent, such as a destructive or a success dialog.`,default:`neutral`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A short, self-contained task: edit a record, view details, complete a small form.`,`You need to interrupt the flow to get one thing done before continuing.`],whenNot:[{text:`It's a yes/no confirmation before a destructive action.`,instead:`AppConfirmDialog`},{text:`It's a slide-in navigation or filter panel on mobile.`,instead:`AppDrawer`},{text:`The content is a full workflow with many steps and forms.`,instead:`a dedicated page`},{text:`It's a transient success/error message.`,instead:`a toast`}],do:[{title:`One trigger, one dialog`,note:`A clear trigger opens a single-purpose dialog; open and onClose stay controlled so the close control always works.`,example:[{component:`AppButton`,children:`Edit project`}]},{title:`One primary action in the footer`,note:`A footer that pairs a secondary Cancel with one primary confirm: the eye knows the main action.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppButton`,props:{variant:`soft`},children:`Cancel`},{component:`AppButton`,children:`Save changes`}]}]}],dont:[{title:`One trigger, one dialog`,note:`A modal with no onClose traps the user: the backdrop and Escape have nothing to call.`,example:[{component:`AppButton`,props:{variant:`ghost`},children:`Open (never closes)`}]},{title:`One primary action in the footer`,note:`Three competing primaries in the footer leave the user unsure which one commits.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppButton`,children:`Save`},{component:`AppButton`,children:`Apply`},{component:`AppButton`,children:`Submit`}]}]}],a11y:[`Focus opens on the first control. Tab moves through the dialog and then to the browser's bar, without wrapping.`,`The dialog is named by a plain-text title or by ariaLabel; a headerless dialog with neither warns in development.`,`An outside click leaves it open by default (staticBackdrop); Escape closes it unless closeOnEscape is false.`]}},{name:`AppMonthPicker`,marker:`AppMonthPicker`,acceptsChildren:!1,props:[{name:`aria-invalid`,type:`any`,required:!1,description:`Marks the control invalid (aria-invalid) without an error message. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form.`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when there is no visible label.`},{name:`className`,type:`string`,required:!1,description:`Classes for the wui-datepicker control itself.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting month of an uncontrolled field, as YYYY-MM.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`displayFormat`,type:`string`,required:!1,description:`How the chosen month reads in the field, from the tokens yyyy, MMMM, MMM and MM (for example MM/yyyy). The onChange value stays YYYY-MM.`,default:`MMM yyyy`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Classes for the field wrapper that holds the label, helper text and error.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the control.`},{name:`id`,type:`string`,required:!1,description:`The id of the control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control and used as its accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest selectable month, as YYYY-MM.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable month, as YYYY-MM.`},{name:`name`,type:`string`,required:!1,description:`The form field name the YYYY-MM month posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the field while no month is chosen.`,default:`Choose a month`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control height tier, matching AppInput.`},{name:`value`,type:`string`,required:!1,description:`The chosen month as YYYY-MM.`},{name:`valueAsDate`,type:`boolean`,required:!1,description:`Stores the month as its first day, YYYY-MM-01, for a date column. value, defaultValue, min and max take YYYY-MM-01 or YYYY-MM, and onChange receives YYYY-MM-01.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a single calendar month: billing month, reporting period, expiry month.`,`You need one consistent month picker across every browser and both surfaces.`,`Restricting selection to a valid window with min / max.`],whenNot:[{text:`You need a full calendar date.`,instead:`AppDatePicker`},{text:`You are capturing a start-and-end range of months or dates.`,instead:`AppDateRangePicker`},{text:`The value is free text, not a month.`,instead:`AppInput`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[{title:`Give the month a visible label`,note:`A visible label above the field. The user knows what the month is for before opening it.`,example:[{component:`AppMonthPicker`,props:{id:`bp-good-month`,label:`Billing month`,value:`2026-07`}}]},{title:`Set min and max bounds`,note:`min / max stop invalid months at the source, so the user can only pick a real one.`,example:[{component:`AppMonthPicker`,props:{value:`2026-07`,min:`2026-01`,max:`2026-12`}}]}],dont:[{title:`Give the month a visible label`,note:`Only a placeholder as the label, which vanishes the moment a month is picked.`,example:[{component:`AppMonthPicker`,props:{value:``,placeholder:`Month`}}]},{title:`Set min and max bounds`,note:`No bounds, then reject the month after submit. Constrain up front instead.`,example:[{component:`AppMonthPicker`,props:{value:`2030-01`}}]}],a11y:[`The field label names the control through aria-label when it is a string, and ariaLabel overrides it.`,`Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid. A caller's aria-invalid takes its place.`,`Required and disabled are set as native attributes on the control.`]}},{name:`AppNavList`,marker:`AppNavList`,acceptsChildren:!1,props:[{name:`items`,type:`array`,itemFields:[{name:`active`,type:`boolean`,required:!1,description:`Marks the current row.`},{name:`count`,type:`number`,required:!1,description:`A count on the right; hidden at zero.`},{name:`divider`,type:`boolean`,required:!1,description:`Draws a hairline instead of a row.`},{name:`dotTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`A 10 px coloured dot in place of the icon.`},{name:`icon`,type:`icon`,required:!1,description:`An icon drawn before the text. Not together with dotTone.`},{name:`key`,type:`stringOrNumber`,required:!0,description:`The row's key; not shown.`},{name:`label`,type:`node`,required:!1,description:`The row text.`},{name:`to`,type:`string`,required:!1,description:`Where the row links.`}],required:!1,description:`The rows, top to bottom. A row with a target is a link; without one it is a button. A divider item draws a hairline between groups.`,default:[]},{name:`label`,type:`string`,required:!0,description:`The accessible name of the navigation landmark.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,role:`navigation`,usage:{when:[`A page has a short rail of destinations or groups, each with a count, beside its content.`,`The rows pick one current destination, and some rows are coloured by a status dot.`],whenNot:[{text:`A site's top navigation with dropdown panels.`,instead:`AppNavigationMenu`},{text:`A signed-in app's sidebar of destinations.`,instead:`AppShell`},{text:`A choice between several values in a form.`,instead:`AppRadioGroup`}],do:[],dont:[],a11y:[`The rows sit in a navigation landmark named by label, and the current row is marked with aria-current page.`,`A dot is decorative: the row's label carries the meaning, so the dot is hidden from assistive tech.`]}},{name:`AppNavigationMenu`,marker:`AppNavigationMenu`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the navigation landmark.`,default:`Main`},{name:`items`,type:`array`,itemFields:[{name:`current`,type:`boolean`,required:!1,description:`Marks the page the visitor is on.`},{name:`group`,type:`string`,required:!1,description:`The heading shown above the first entry of each run of entries with the same group.`},{name:`key`,type:`string`,required:!0,description:`The item's key; not shown.`},{name:`label`,type:`string`,required:!0,description:`The entry text.`},{name:`links`,type:`array`,itemFields:[{name:`current`,type:`boolean`,required:!1,description:`Marks the page the visitor is on.`},{name:`description`,type:`string`,required:!1,description:`A short line under the label.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name, or a node drawn before the text.`},{name:`key`,type:`string`,required:!0,description:`The item's key; not shown.`},{name:`label`,type:`string`,required:!0,description:`The link text.`},{name:`to`,type:`string`,required:!0,description:`Where the link goes.`}],required:!1,description:`The links in the entry's panel.`},{name:`to`,type:`string`,required:!1,description:`Where the entry links. Used only when the entry has no links.`}],required:!1,description:`The entries, left to right. An entry with links is a button that opens them; without links it is a link to its target.`,default:[]}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,role:`navigation`,usage:{when:[`A public site or portal header has sections, each with several destinations worth a short description.`,`Some entries are plain links beside the ones with panels.`],whenNot:[{text:`A signed-in app's sidebar of destinations.`,instead:`AppShell`},{text:`One button opens a short list of actions.`,instead:`AppDropdown`}],do:[],dont:[],a11y:[`The entries sit in a navigation landmark named by ariaLabel, and the current page is marked with aria-current page.`,`A panel button reports aria-expanded and names its panel through aria-controls; a panel opens on click, Enter, Space or Down, never on hover alone.`,`Escape closes the panel and returns focus to its button, and Left and Right move along the entries.`]}},{name:`AppNotificationCenter`,marker:`AppNotificationCenter`,acceptsChildren:!1,props:[{name:`defaultOpen`,type:`boolean`,required:!1,description:`Starts with the panel open. The element owns the state after that.`,default:!1},{name:`emptyText`,type:`string`,required:!1,description:`Shown when there are no items.`,default:`You are all caught up.`},{name:`items`,type:`array`,itemFields:[{name:`archived`,type:`boolean`,required:!1,description:`Filed away: shown only under the Archived tab.`},{name:`at`,type:`string`,required:!0,description:`When it happened: an ISO date-time with its zone, or a YYYY-MM-DD day. It sets the day group and the time shown, in India Standard Time.`},{name:`href`,type:`url`,required:!1,description:`The record the item opens. Without it the item is a button.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name drawn before the text.`},{name:`id`,type:`string`,required:!0,description:`A stable id that names the item to the click handler.`},{name:`read`,type:`boolean`,required:!1,description:`Already read: no dot and regular weight.`},{name:`text`,type:`string`,required:!1,description:`A second, quieter line.`},{name:`title`,type:`string`,required:!0,description:`The one line that says what happened.`}],required:!0,description:`The notifications, newest first. Read state is the caller's: pass the new items after marking some read.`},{name:`label`,type:`string`,required:!1,description:`The bell's name and the panel heading.`,default:`Notifications`},{name:`now`,type:`stringOrNumber`,required:!1,description:`The clock for Today and Yesterday, as ISO text or epoch milliseconds. The current time when omitted.`},{name:`tabs`,type:`any`,required:!1,description:"true for the tabs All, Unread and Archived, or the tabs to show in order as `{ key, label? }`, where key is all, unread or archived and label defaults to the key's name. All and Unread leave out archived items; Archived shows only them. Absent: no tab strip."},{name:`unread`,type:`number`,required:!1,description:`The badge count when it is larger than the items listed, for example the latest twenty of 120. Without it the count is the number of unread items.`},{name:`viewAllHref`,type:`url`,required:!1,description:`A View all link under the list. Without it there is no link.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A portal's list of things that happened to the person: approvals, comments, runs finished.`,`Anything that links to a record.`,`A row needs its own controls, such as Accept and Decline buttons: pass renderItem(item), which returns the row's content in place of the icon, title, text and time. The dot, the Unread prefix and the read handling stay.`,`A product brands the unread count: set --wui-notification-count-bg (the fill, default the strong danger colour) and --wui-notification-count-fg (the text, default white) on .wui-notification-center or an ancestor. No prop or class override is needed.`],whenNot:[{text:`A message that must be acted on right now.`,instead:`AppAlert or AppToast`},{text:`The shell's topbar bell fed by a server fragment.`,instead:`AppShell notifications`}],do:[],dont:[],a11y:[`The bell is a button with aria-haspopup dialog and aria-expanded, named with the label and the unread count.`,`The panel is a dialog named by its heading; Escape closes it and returns focus to the bell.`,`A change in the unread count is announced through a polite live region, and each unread item carries a visually hidden Unread prefix.`]}},{name:`AppNumberInput`,marker:`AppNumberInput`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the input.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`decreaseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Decrease`},{name:`defaultValue`,type:`number`,required:!1,nullable:!0,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the field and both steppers.`,default:!1},{name:`error`,type:`node`,required:!1,description:`An error message under the field. It sets the error state and aria-invalid on the input.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra classes on the field wrapper.`,default:``},{name:`grouping`,type:`enum`,enum:[`indian`,`none`],required:!1,description:`Digit grouping while the number is shown: indian writes 3,00,000 and posts the plain digits; none writes 300000.`,default:`none`},{name:`help`,type:`node`,required:!1,description:`Content for the info-tip beside the label. The caller supplies the node.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text under the field, linked to the input for screen readers.`},{name:`id`,type:`string`,required:!1,description:`The input's id. Unset, a generated id is used.`},{name:`increaseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Increase`},{name:`label`,type:`node`,required:!1,description:`The label above the field. A required field shows a required mark after it.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`number`,required:!1,description:`The highest value, inclusive. The increase stepper disables at it.`},{name:`min`,type:`number`,required:!1,description:`The lowest value, inclusive. The decrease stepper disables at it.`},{name:`name`,type:`string`,required:!1,description:`The input's name, for forms.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the empty field.`},{name:`precision`,type:`number`,required:!1,description:`The number of decimal places the value rounds to.`,default:0},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the field and both steppers; the value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required, on the input and on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.`,default:`md`},{name:`step`,type:`number`,required:!1,description:`The amount one stepper click, or one ArrowUp or ArrowDown press, adds or removes.`,default:1},{name:`unit`,type:`string`,required:!1,description:`A unit suffix shown inside the field after the input, such as kg or %.`},{name:`value`,type:`number`,required:!1,nullable:!0,description:`The current number; null or unset for an empty field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Any numeric input: quantities, prices, ratings, percentages.`,`When min/max bounds or precision rounding are important.`,`When keyboard stepping (Arrow Up/Down) would be helpful.`,`When a unit suffix (kg, °C, %) adds clarity.`],whenNot:[{text:`Text or email.`,instead:`AppInput`},{text:`Multiple choice.`,instead:`AppSelect or AppRadio`},{text:`When free-text input is the only needed mode (buttons would be clutter).`}],do:[],dont:[],a11y:[`The steppers are labelled Decrease and Increase and stay out of the tab order; keyboard users step with ArrowUp and ArrowDown on the input.`,`ArrowUp and ArrowDown step the value by step, within min and max; with Ctrl, Meta or Alt held they are left to the page.`,`aria-invalid is set from error, and aria-describedby points at the error or the helper text.`]}},{name:`AppOnboardingChecklist`,marker:`AppOnboardingChecklist`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the root element.`,default:``},{name:`defaultCollapsed`,type:`boolean`,required:!1,description:`Whether the steps start collapsed. Unset, they start collapsed when every step is done or skipped.`},{name:`defaultDismissed`,type:`boolean`,required:!1,description:`Whether the checklist starts dismissed, showing only the restore button.`,default:!1},{name:`dismissLabel`,type:`string`,required:!1,description:`The name and tooltip of the close icon.`,default:`Dismiss checklist`},{name:`restoreLabel`,type:`string`,required:!1,description:`The text of the button that brings a dismissed checklist back.`,default:`Show setup checklist`},{name:`steps`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A secondary line under the label.`},{name:`href`,type:`url`,required:!1,description:`Where the step is done. It makes the label a link to that place.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the step, so the list keeps each step's identity when steps are reordered.`},{name:`label`,type:`string`,required:!0,description:`The step's name, shown beside its mark.`},{name:`status`,type:`enum`,enum:[`current`,`done`,`skipped`,`todo`],required:!1,description:`The step's state. A step with no status is to do, and with no step marked current, the first step to do is current.`}],required:!1,description:`The steps in order. Each step has a label, an optional description and href, and a status.`,default:[]},{name:`storageKey`,type:`string`,required:!1,description:`Remembers a dismissal across visits under this key, one per checklist. Unset, the dismissal lasts the page.`},{name:`title`,type:`string`,required:!1,description:`The heading, and the name of the progress bar.`,default:`Get started`}],itemsTakeAction:[`steps`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A new user's first visit, where a few setup steps unlock the product.`,`Setup that spans several screens and may be done in any order.`],whenNot:[{text:`A strict sequence the user must follow in one flow.`,instead:`AppStepper or AppWizard`},{text:`A guided walk over one screen's controls.`,instead:`AppTour`}],do:[],dont:[],a11y:[`The card is named by its title, and the progress bar is named by the same title.`,`The heading toggle sets aria-expanded and aria-controls, so a screen reader hears whether the steps are open.`,`The progress bar is a progressbar whose value is the number of steps done, read as a count such as 2 of 4 done.`,`A step that is done or skipped is read out as Done or Skipped before its label, so the mark alone carries no state.`,`The current step carries aria-current set to step.`]}},{name:`AppOrgTree`,marker:`AppOrgTree`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the tree.`,default:`Organisation`},{name:`className`,type:`string`,required:!1,description:`Extra class names on the tree.`,default:``},{name:`collapseLabel`,type:`string`,required:!1,description:`A toggle's accessible name while its team is open. {name} is replaced with the person's name.`,default:`Hide {name}'s team`},{name:`expandDepth`,type:`number`,required:!1,description:`How many levels open at first render; level 1 is a root. A node at level expandDepth or deeper starts collapsed. Absent: every level starts open.`},{name:`expandLabel`,type:`string`,required:!1,description:`A toggle's accessible name while its team is closed. {name} is replaced with the person's name.`,default:`Show {name}'s team`},{name:`helpText`,type:`string`,required:!1,description:`The keyboard help read by screen readers. Defaults to the built-in instructions.`},{name:`highlightIds`,type:`array`,required:!1,description:`Ids of the people under the product's selection. They and every ancestor are highlighted, every other person dims. Empty or absent turns the highlight mode off.`},{name:`id`,type:`string`,required:!1,description:`The id of the tree element.`},{name:`noResultsText`,type:`string`,required:!1,description:`Announced when a search matches nobody.`,default:`No one found`},{name:`nodes`,type:`array`,itemFields:[{name:`avatarUrl`,type:`url`,required:!1,description:`The person's photo. Without it the avatar shows initials.`},{name:`id`,type:`string`,required:!0,description:`The person's id, unique across the list.`},{name:`name`,type:`string`,required:!0,description:`The person's name, shown on the card.`},{name:`overlay`,type:`any`,required:!1,description:`Product data the component never reads. renderOverlay(node) draws it under the person's text.`},{name:`parentId`,type:`string`,required:!0,nullable:!0,description:`The id of the person's manager, or null or empty for a root.`},{name:`role`,type:`string`,required:!1,description:`The person's job title, shown under the name.`},{name:`team`,type:`string`,required:!1,description:`The person's team, shown under the role.`}],required:!0,description:`The people, flat: one entry per person. A node whose parentId is null or empty is a root; several roots sit side by side in list order. A repeated id, a parentId that names no node, or a loop throws.`},{name:`resultsText`,type:`string`,required:!1,description:`Announced after a search. {count} is replaced with the number of matches.`,default:`{count} found`},{name:`searchLabel`,type:`string`,required:!1,description:`Accessible name and placeholder of the search field.`,default:`Search by name`},{name:`searchable`,type:`boolean`,required:!1,description:`Shows the search field above the tree.`,default:!0},{name:`selectable`,type:`boolean`,required:!1,description:`A person can be chosen by click, Enter or Space. onSelect fires with the id and node.`,default:!1},{name:`selected`,type:`string`,required:!1,nullable:!0,description:`Selected id (controlled). The tree shows this id whatever the user clicks until you change it; null selects nothing, and dropping the prop clears it.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Showing who reports to whom in an organisation, for reporting lines and review.`,`Choosing one person in a reporting structure, or highlighting the chain above a set of people.`],whenNot:[{text:`A hierarchy of folders or categories, not people.`,instead:`AppTreeView`},{text:`A flat list of people to pick from.`,instead:`AppSelect mode="search" or AppSelect mode="multiple"`}],do:[],dont:[],a11y:[`The tree follows the WAI-ARIA tree pattern: arrow keys move between people, Plus and Minus open and close a team, Enter chooses a person.`,`Each person's toggle has an accessible name that says whose team it opens or closes.`,`The search field announces how many people match, or that nobody does.`]}},{name:`AppOtpInput`,marker:`AppOtpInput`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Class to apply to the control element.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the field so the code cannot be entered.`,default:!1},{name:`error`,type:`string`,required:!1,description:`The error message under the code. It replaces the helper text and marks the field invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class to apply to the wrapper field div.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the code. It is hidden while an error is shown.`},{name:`id`,type:`string`,required:!1,description:`The element id. A generated id is used when this is omitted.`},{name:`label`,type:`string`,required:!1,description:`The visible label. It also becomes the field's accessible name.`},{name:`length`,type:`number`,required:!1,description:`Characters in the code. TOTP is 6; backup codes are often 8.`,default:6},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`mode`,type:`enum`,enum:[`alphanumeric`,`numeric`],required:!1,description:`Drives the on-screen keyboard and what the field will accept.`,default:`numeric`},{name:`name`,type:`string`,required:!1,description:`The form field name, so a plain form post includes the code.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required for assistive technology and shows the required mark beside the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control size: sm, md or lg.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The code entered so far. The field is controlled, so pair it with onChange.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A one-time code: MFA, email or phone verification, backup codes.`,`Anywhere the code has a known, fixed length.`],whenNot:[{text:`A password or passphrase.`,instead:`AppInput with type="password"`},{text:`A code of unknown or variable length.`,instead:`AppInput`},{text:`A licence key with separators. The segments here are characters, not groups.`,instead:`AppInput`}],do:[{title:`One field for the whole code`,note:`One labelled field, six boxes drawn underneath. Autofill, paste and a screen reader all work.`,example:[{component:`AppOtpInput`,props:{label:`Verification code`}}]}],dont:[{title:`One field for the whole code`,note:`Six inputs: the OS drops the whole SMS code into box one, and a screen reader announces six unlabelled boxes.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}}]}]}],a11y:[`One input, with the segment boxes drawn underneath, so a screen reader announces one labelled field instead of six unlabelled boxes.`,`OS autofill delivers the whole code to the one field, so an SMS code is never split across boxes.`,`A string label is the accessible name of the control, because a label element cannot point at the custom element.`,`An error marks the field invalid and is linked to it as the description, which takes precedence over the helper text.`,`Helper text is linked to the field as its description when no error is shown.`]}},{name:`AppPageHeader`,marker:`AppPageHeader`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:`Right-aligned page-level actions (usually an AppButton).`},{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Centres the masthead, for empty states and wizards.`,default:`start`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element for the title. Keep one h1 per page.`,default:`h1`},{name:`breadcrumbs`,type:`node`,required:!1,description:`A breadcrumbs row above the masthead (usually AppBreadcrumbs).`},{name:`bulk`,type:`node`,required:!1,description:`Bulk actions shown in the bar while the table named by bulkFor has rows ticked (size bar only).`},{name:`bulkFor`,type:`string`,required:!1,description:`Id of the data table whose selection swaps views and tools for its bulk bar (size bar only). Ticking rows hides views and tools and shows the bulk slot with an N selected count; the table's own toolbar bulk bar stays hidden.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the header element.`,default:``},{name:`divider`,type:`boolean`,required:!1,description:`A bottom border under the masthead.`,default:!1},{name:`eyebrow`,type:`node`,required:!1,description:`Small kicker label above the title.`},{name:`foldActions`,type:`boolean`,required:!1,description:`Folds the actions that do not fit into a More menu, keeping the solid primary action in the row while it fits (size bar only).`,default:!1},{name:`icon`,type:`icon`,required:!1,description:`Leading glyph: an icon name or a node.`},{name:`meta`,type:`node`,required:!1,description:`One short facts line or summary (size bar only).`},{name:`metaPlacement`,type:`enum`,enum:[`below`,`inline`],required:!1,description:`Where the meta line sits: inside the bar, or under it (size bar only).`,default:`inline`},{name:`size`,type:`enum`,enum:[`bar`,`lg`,`md`,`sm`],required:!1,description:`Title and spacing scale. bar is one 40px row.`,default:`md`},{name:`status`,type:`node`,required:!1,description:`Inline slot beside the title (for example an AppStatusBadge).`},{name:`sticky`,type:`boolean`,required:!1,description:`Sticks the masthead to the top of the scroll container.`,default:!1},{name:`subtitle`,type:`node`,required:!1,description:`A count, status, or short description.`},{name:`subtitlePlacement`,type:`enum`,enum:[`below`,`inline`],required:!1,description:`Where the subtitle sits: under the title, or on the title line after it. Size bar ignores it.`,default:`below`},{name:`title`,type:`node`,required:!1,description:`Rendered as the screen heading.`},{name:`titleSlot`,type:`node`,required:!1,description:`Rendered inside the heading in place of title, for a title with a badge or a link in it. The heading is then named by title.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:`Tints the icon tile and the eyebrow.`,default:`primary`},{name:`tools`,type:`node`,required:!1,description:`Search, filters and display, before the actions (size bar only).`},{name:`views`,type:`node`,required:!1,description:`Saved views after the title (size bar only).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,role:`title`,usage:{when:[`A screen needs its standard title-and-actions masthead at the top.`,`The page has a single primary action that applies to everything below it.`,`You want a subtitle to show a count, status, or one-line description.`],whenNot:[{text:`You are titling a section inside the page, not the page itself.`,instead:`AppCard title`},{text:`You need to switch between peer views of the page.`,instead:`AppTabs`},{text:`The message is transient feedback, not a heading.`,instead:`AppAlert`}],do:[{title:`One primary page action`,note:`One clear title, a context subtitle, and the single page-level action on the right.`,example:[{component:`AppPageHeader`,props:{title:`Projects`,subtitle:`12 active projects`,actions:{component:`AppButton`,props:{size:`sm`},children:`New project`}}}]},{title:`Keep the subtitle short and useful`,note:`The subtitle carries useful state: what this is and when it changed.`,example:[{component:`AppPageHeader`,props:{title:`Server Room`,subtitle:`Risk assessment · last saved 2h ago`}}]}],dont:[{title:`One primary page action`,note:`A pile of equal-weight buttons hides the primary action. Keep secondary ones in a menu.`,example:[{component:`AppPageHeader`,props:{title:`Projects`,actions:{component:`span`,children:[{component:`AppButton`,props:{size:`sm`,variant:`ghost`},children:`Export`},{component:`AppButton`,props:{size:`sm`,variant:`ghost`},children:`Import`},{component:`AppButton`,props:{size:`sm`,variant:`ghost`},children:`Archive`},{component:`AppButton`,props:{size:`sm`},children:`New project`}]}}}]},{title:`Keep the subtitle short and useful`,note:`A sentence-long subtitle reads as body copy, not a heading. Keep it to a phrase.`,example:[{component:`AppPageHeader`,props:{title:`Server Room`,subtitle:`This is the page for the server room where you can do things`}}]}],a11y:[`The title renders as the heading level chosen by as, and each page has one h1.`,`The size bar renders a header element. Every other size renders a div.`,`In the bar, the count of selected rows is announced politely as rows are ticked.`]}},{name:`AppPhoneNumberInput`,marker:`AppPhoneNumberInput`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the phone control itself, not on the field wrapper.`},{name:`country`,type:`string`,required:!1,description:`The ISO country code to start on. Left unset, the control starts on the viewer's own country.`},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the field off.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error message under the field, which also turns the border red.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra classes on the field wrapper.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the field. The error replaces it while one is shown.`},{name:`id`,type:`string`,required:!1,description:`The id of the phone control. Left unset, one is generated.`},{name:`label`,type:`node`,required:!1,description:`The label above the field.`,default:`Phone number`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`lockedCountry`,type:`string`,required:!1,description:`ISO alpha-2 code. The dial code is a static prefix with no picker, and the value always carries this country.`},{name:`name`,type:`string`,required:!1,description:`The form field name.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text in the empty field. Left unset, the control shows the country's example number.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required and adds the required mark to the label.`,default:!1},{name:`showDialCode`,type:`boolean`,required:!1,description:`Shows the country dial code, such as +91.`,default:!0},{name:`showFlag`,type:`boolean`,required:!1,description:`Shows the country flag.`,default:!0},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control height.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The phone number as entered.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Collecting an international phone number where the country dial code matters.`,`A signup or contact form that needs a valid, dialable number.`,`You want one field the user can’t desync: the code and the number are captured together.`],whenNot:[{text:`The value is any non-phone text.`,instead:`AppInput`},{text:`It is a generic numeric value (quantity, amount).`,instead:`AppInput`},{text:`You need a date rather than a number.`,instead:`AppDatePicker`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[{title:`Default the country`,note:`Default the country to the one most users will pick: fewer taps for the common case.`,example:[{component:`AppPhoneNumberInput`,props:{label:`Mobile`,value:``,country:`IN`}}]},{title:`Show the error under the field`,note:`Surface validation inline with error, right under the field the user must fix.`,example:[{component:`AppPhoneNumberInput`,props:{label:`Phone`,value:``,error:`Enter a valid phone number`,required:!0}}]}],dont:[{title:`Default the country`,note:`No label and no sensible default country: the user guesses what to enter and where.`,example:[{component:`AppPhoneNumberInput`,props:{label:``,value:``}}]},{title:`Show the error under the field`,note:`Required with no error feedback: the user submits and is bounced with no clue why.`,example:[{component:`AppPhoneNumberInput`,props:{label:`Phone`,value:``,required:!0}}]}],a11y:[`The label is a real label tied to the field by id, and a text label is also passed to the phone control as its accessible name.`,`An error or helper text is linked to the field with aria-describedby, and the helper text gives way to the error while one shows.`,`An error sets aria-invalid on the control, and required adds the required mark and marks the control required.`]}},{name:`AppPopover`,marker:`AppPopover`,acceptsChildren:!0,props:[{name:`autoFocus`,type:`boolean`,required:!1,description:`Moves focus into the panel on open and back to the trigger on close.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the popover panel.`,default:``},{name:`closeDelay`,type:`number`,required:!1,description:`Milliseconds a hover popover waits before it closes after the pointer leaves the trigger and the panel.`,default:220},{name:`labelledBy`,type:`string`,required:!1,description:`The id of the element that names a dialog panel. It wins over the title.`},{name:`open`,type:`boolean`,required:!1,description:`Controls the open state. When set, the panel follows it.`},{name:`openDelay`,type:`number`,required:!1,description:`Milliseconds a hover popover waits before it opens.`,default:80},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Where the panel opens. auto flips to stay in view.`,default:`bottom`},{name:`role`,type:`enum`,enum:[`dialog`],required:!1,description:`dialog names the panel after the title or labelledBy, marks it not modal, and lets Escape close it.`},{name:`title`,type:`string`,required:!1,description:`An optional panel title, plain text so it never breaks the page's heading order.`},{name:`trigger`,type:`object`,required:!0,description:`The element the panel opens from. It must be a single element that forwards a ref, such as a plain element, AppButton or AppActionIcon.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A trigger needs a floating panel of content richer than a flat action list: a notifications feed, a filters form, a mini preview.`,`The content is contextual to the trigger and doesn’t need a backdrop or to interrupt the page.`,`You want the panel positioned and flipped to stay in view automatically.`],whenNot:[{text:`The content is a flat list of actions.`,instead:`AppDropdown`},{text:`The task needs full attention, such as a form, a multi-step flow or a destructive confirmation.`,instead:`AppModal`},{text:`You are explaining a single term next to a label.`,instead:`AppInfoTip`}],do:[{title:`Keep the panel short`,note:`A short, scannable panel: a few lines the user can read without scrolling.`,example:[{component:`AppPopover`,props:{title:`Notifications`,trigger:{component:`AppButton`,props:{variant:`ghost`,leftIcon:`bell`},children:`Notifications`}},children:[{component:`div`,props:{className:`d-flex flex-column gap-2`},children:[{component:`div`,children:`Priya approved “Site survey #48”.`}]}]}]}],dont:[{title:`Keep the panel short`,note:`A multi-field form crammed into a popover has nowhere to show validation and no backdrop to hold focus. Use AppModal instead.`,example:[{component:`AppPopover`,props:{title:`Edit project`,trigger:{component:`AppButton`,props:{variant:`soft`,size:`sm`},children:`Edit`}},children:[{component:`div`,props:{className:`d-flex flex-column gap-2`},children:[{component:`AppInput`,props:{size:`sm`,placeholder:`Project name`}},{component:`AppInput`,props:{size:`sm`,placeholder:`Client`}},{component:`AppInput`,props:{size:`sm`,placeholder:`Owner`}},{component:`AppButton`,props:{size:`sm`},children:`Save`}]}]}]}],a11y:[`With role dialog the panel is named by the title, or by the element labelledBy points to (which wins), is marked not modal, and Escape closes it.`,`With autoFocus focus moves into the panel on open and back to the trigger on close.`,`The trigger is the caller's own element with aria-expanded added for a click trigger, so it needs its own accessible name.`]}},{name:`AppPricingCard`,marker:`AppPricingCard`,acceptsChildren:!1,props:[{name:`badge`,type:`string`,required:!1,description:`The text of the featured flag.`,default:`Most popular`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the card.`,default:``},{name:`cta`,type:`node`,required:!1,description:`The call to action, usually an AppButton.`},{name:`current`,type:`boolean`,required:!1,description:`Marks the tier the customer is already on.`,default:!1},{name:`featured`,type:`boolean`,required:!1,description:`Marks the recommended tier: brand border, lifted and badged.`,default:!1},{name:`features`,type:`array`,itemFields:[{name:`included`,type:`boolean`,required:!1,description:`False marks a feature the tier lacks; it shows an x instead of a check. Left out means included.`},{name:`text`,type:`string`,required:!0,description:`The feature text.`}],required:!1,description:`The feature list. Every card in a row should list the same features in the same order.`,default:[]},{name:`name`,type:`string`,required:!0,description:`The tier name.`},{name:`price`,type:`node`,required:!0,description:`The formatted amount, such as ₹1,499.`},{name:`tagline`,type:`string`,required:!1,description:`One line on who the tier is for.`},{name:`unit`,type:`string`,required:!1,description:`The period suffix after the price, such as /month.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are presenting purchasable tiers with prices and actions.`,`The reader is choosing which one to take.`,`Each tier has a short feature list that fits on a card.`],whenNot:[{text:`You need the full capability matrix, row by row.`,instead:`AppCompareTable`},{text:`It is a selectable option in a form, not a purchase.`,instead:`AppChoiceCard`},{text:`It is a link to a doc or template.`,instead:`AppResourceCard`}],do:[{title:`Unit, audience and every feature listed`,note:`A unit so the price is unambiguous, a tagline saying who it is for, excluded features kept in the list, and a CTA naming the tier.`,example:[{component:`AppPricingCard`,props:{name:`Pro`,price:`₹1,499`,unit:`/month`,tagline:`For growing teams.`,features:[{text:`Unlimited reports`},{text:`SSO`,included:!1}],cta:{component:`AppButton`,props:{block:!0},children:`Choose Pro`}}}]}],dont:[{title:`Unit, audience and every feature listed`,note:`“1499”: of what, per what? No tagline, the excluded feature dropped so rows no longer align, and “Click here” tells the reader nothing about what they are committing to.`,example:[{component:`AppPricingCard`,props:{name:`Pro`,price:`1499`,features:[{text:`Unlimited reports`}],cta:{component:`AppButton`,props:{block:!0},children:`Click here`}}}]}],a11y:[`The features are a list, and an included feature shows a check while an excluded one shows an x, so the two states differ without colour.`,`The card is a plain container with no role of its own; the call to action is the caller's control and carries its own accessible name.`]}},{name:`AppProgress`,marker:`AppProgress`,acceptsChildren:!1,props:[{name:`animated`,type:`boolean`,required:!1,description:`Animates the stripes, which implies striped.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the bar, or on the labelled wrapper when the label shows.`,default:``},{name:`indeterminate`,type:`boolean`,required:!1,description:`An unknown-duration sweep that drops the value and the label.`,default:!1},{name:`label`,type:`string`,required:!1,description:`The accessible name of the bar. It is also shown above the bar when showLabel is set.`},{name:`max`,type:`number`,required:!1,description:`The amount that counts as complete.`,default:100},{name:`showLabel`,type:`boolean`,required:!1,description:`Shows the label text above the bar. Ignored when indeterminate.`,default:!1},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The bar thickness. sm is a thin 4px bar for inline or table use.`,default:`md`},{name:`striped`,type:`boolean`,required:!1,description:`A diagonal stripe overlay.`,default:!1},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The fill colour.`,default:`info`},{name:`value`,type:`number`,required:!1,description:`The current amount from 0 to max, clamped into range. Ignored when indeterminate.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The task has a known total and a real, changing amount completed: an upload, an import, a quota.`,`You can compute a percentage (or a value and max pair) at any moment during the wait.`,`Showing how much is left is genuinely useful to the reader, not just decoration.`],whenNot:[{text:`There is no known amount or duration: it is just "working".`,instead:`AppSpinner`},{text:`Content with a known shape is loading, not a quantified task.`,instead:`AppSkeleton`},{text:`A button is submitting a single request.`,instead:`AppButton`}],do:[{title:`Real amounts, not fake progress`,note:`A real value with a label that states the actual amount, not just a bare percentage.`,example:[{component:`AppProgress`,props:{value:45,max:100,tone:`info`,label:`Importing 45 of 100 rows`,showLabel:!0}}]}],dont:[{title:`Real amounts, not fake progress`,note:`A progress bar pinned at 100% (or any fixed value) to fake a spinner. That is AppSpinner's job.`,example:[{component:`AppProgress`,props:{value:100,max:100,tone:`info`,label:`Loading`}}]}],a11y:[`The bar has role progressbar with aria-valuemin 0, aria-valuemax and aria-valuenow, and label is its accessible name.`,`An indeterminate bar leaves out aria-valuenow, as ARIA requires when the value is unknown.`,`The label text shown above the bar is hidden from assistive technology, because label already names the bar.`]}},{name:`AppQrCode`,marker:`AppQrCode`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the code.`},{name:`size`,type:`number`,required:!1,description:`The largest width and height in px. The code draws at the biggest whole number of pixels per module that fits.`,default:240},{name:`title`,type:`string`,required:!1,description:`The accessible name. Say what scanning it does.`,default:`QR code`},{name:`value`,type:`string`,required:!0,description:`The text to encode, such as a link, an otpauth setup address or a signed token. Nothing renders while it is empty.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Someone needs to move a link or a code from a screen to a phone.`,`An authenticator app needs a setup key.`,`A printed or on-screen document carries a value a scanner verifies.`],whenNot:[{text:`The person is already on a phone.`,instead:`AppLink`},{text:`The value is a short code people type.`,instead:`AppCopyButton`}],do:[{title:`Clear title and room to scan`,note:`Enough room around it, and a title that says what scanning does.`,example:[{component:`AppQrCode`,props:{value:`https://example.com`,size:120,title:`Scan to open the site`}}]}],dont:[{title:`Clear title and room to scan`,note:`A long value squeezed into a small box. The squares are too small to scan, and part of the code is cut off.`,example:[{component:`AppQrCode`,props:{value:`eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.LwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z`,size:48}}]}],a11y:[`The code is an image named by title, so the title should say what scanning it does.`,`Nothing is drawn while value is empty, so no unnamed image reaches assistive technology.`,`The code is always black on white, whatever the theme, because scanners need that contrast.`]}},{name:`AppQueryBuilder`,marker:`AppQueryBuilder`,acceptsChildren:!1,props:[{name:`addConditionLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Add condition`},{name:`addGroupLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Add group`},{name:`andLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`and`},{name:`applyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Apply filter`},{name:`ariaLabel`,type:`string`,required:!1,description:`Names the group that holds the Filters button and the chips. Defaults to the Filters text.`},{name:`cancelLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Cancel`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the wrapper.`,default:``},{name:`clearAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Clear all`},{name:`closeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Close filters`},{name:`conditionCountTextOne`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`{count} condition`},{name:`conditionCountTextOther`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`{count} conditions`},{name:`datePlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`DD-MMM-YYYY`},{name:`defaultValue`,type:`object`,required:!1,description:`The starting query when value is not given. Same shape as value.`},{name:`disabled`,type:`boolean`,required:!1,description:`Stops every edit and keeps the panel closed.`,default:!1},{name:`emptySummaryText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No conditions. The whole list shows.`},{name:`emptyText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Add a condition to narrow the list.`},{name:`emptyTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No conditions yet`},{name:`emptyValueText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`…`},{name:`fieldLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Field`},{name:`fields`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!0,description:`The key a condition stores in its field.`},{name:`kind`,type:`enum`,enum:[`boolean`,`date`,`enum`,`money`,`number`,`text`],required:!0,description:`The kind of value: money is integer paise, date is yyyy-MM-dd.`},{name:`label`,type:`string`,required:!0,description:`The field's visible name.`},{name:`operators`,type:`array`,required:!1,description:`The operators this field offers. Each must be allowed for its kind; the default is the kind's usual set.`},{name:`options`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The visible text.`},{name:`value`,type:`string`,required:!0,description:`The stored value.`}],required:!1,description:`The choices of an enum field.`}],required:!0,description:`The fields a condition can name. Keys are unique.`},{name:`filtersCountLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Filters · {count}`},{name:`filtersLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Filters`},{name:`groupCountTextOne`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`in {count} group`},{name:`groupCountTextOther`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`in {count} groups`},{name:`incompleteTextOne`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`{count} condition is incomplete`},{name:`incompleteTextOther`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`{count} conditions are incomplete`},{name:`matchAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`All`},{name:`matchAnyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Any`},{name:`matchLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Match`},{name:`matchSuffixText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`of these`},{name:`maxDepth`,type:`number`,required:!1,description:`The deepest group level allowed, from 1 to 3. A larger value is capped at 3.`,default:3},{name:`maxPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Max`},{name:`minPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Min`},{name:`multiPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Select values`},{name:`noLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No`},{name:`operatorBetween`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is between`},{name:`operatorContains`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`contains`},{name:`operatorGt`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is over`},{name:`operatorGtDate`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is after`},{name:`operatorInLast`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`in the last`},{name:`operatorIs`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is`},{name:`operatorIsAnyOf`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is any of`},{name:`operatorIsEmpty`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is empty`},{name:`operatorIsNot`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is not`},{name:`operatorLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Operator`},{name:`operatorLt`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is under`},{name:`operatorLtDate`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is before`},{name:`orLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`or`},{name:`panelTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Filters`},{name:`rangeJoinText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`and`},{name:`removeClauseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove filter: {clause}`},{name:`removeConditionLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove condition`},{name:`removeGroupLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove group`},{name:`singlePlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Select a value`},{name:`textPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Type to match`},{name:`unitDays`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`days`},{name:`unitLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Unit`},{name:`unitMonths`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`months`},{name:`unitWeeks`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`weeks`},{name:`value`,type:`object`,required:!1,description:`The query, controlled: a group { op: and | or, items } of conditions and nested groups.`},{name:`valueLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Value`},{name:`valueRequiredText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Enter a value`},{name:`yesLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Yes`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A list needs a rule with or, or with nested groups that a flat filter bar cannot say.`],whenNot:[{text:`One value per facet with no or.`,instead:`AppFilterBar`},{text:`A fixed set of choices shown as a list you pick from.`,instead:`AppSelect or AppTreePicker`}],do:[],dont:[],a11y:[`The Filters button opens the panel as a dialog named by its title; Escape, Cancel and the close button leave the applied rule as it was.`,`Every select and icon button has a name: Field, Operator, Value, Remove condition, Remove group.`,`An incomplete condition shows Enter a value under its value, and the footer says how many are incomplete while Apply is disabled.`,`Enter in a text value applies the panel when Apply is enabled.`]}},{name:`AppRadio`,marker:`AppRadio`,acceptsChildren:!1,props:[{name:`checked`,type:`boolean`,required:!1,description:`Controlled chosen state; pair with onChange.`},{name:`className`,type:`string`,required:!1,description:`Extra class on the form-check wrapper that holds the input, label and message.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultChecked`,type:`boolean`,required:!1,description:`Starting state when the radio is uncontrolled.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the radio and dims it.`},{name:`error`,type:`string`,required:!1,description:`Error message, rendered below the control. Replaces the helper text.`},{name:`help`,type:`node`,required:!1,description:`Content for the info-tip after the label. Shown only when a label is set.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the control. Hidden while an error is shown.`},{name:`id`,type:`string`,required:!1,description:`The input's id. The label is bound to the input through it, and it is generated when left out.`},{name:`label`,type:`node`,required:!1,description:`The visible label beside the radio.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The form field name. Radios that share a name form one group.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control size: sm, md or lg.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The value this radio posts when it is the chosen one.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user must pick exactly one of 2 to 5 mutually exclusive options.`,`The options are short labels worth comparing at a glance, all visible.`,`A single choice is mandatory before the form can be submitted.`],whenNot:[{text:`There are more than about five options.`,instead:`AppSelect`},{text:`Each option needs a description or icon.`,instead:`AppChoiceCard`},{text:`The choices are independent on/off settings.`,instead:`AppCheckbox`},{text:`The user can pick several values.`,instead:`AppSelect mode="multiple"`}],do:[{title:`Two to five options, all visible`,note:`2 to 5 exclusive options, all on screen. The user compares every choice without opening anything.`,example:[{component:`AppRadio`,props:{label:`No experience`,name:`experience`}},{component:`AppRadio`,props:{label:`1 year`,name:`experience`,defaultChecked:!0}},{component:`AppRadio`,props:{label:`2+ years`,name:`experience`}}]},{title:`Radios for one answer, not checkboxes`,note:`Radios enforce a single answer. Exactly one can ever be selected.`,example:[{component:`AppRadio`,props:{label:`No experience`,name:`experience`}},{component:`AppRadio`,props:{label:`1 year`,name:`experience`,defaultChecked:!0}},{component:`AppRadio`,props:{label:`2+ years`,name:`experience`}}]}],dont:[{title:`Two to five options, all visible`,note:`Past about five options a radio list sprawls and is hard to scan. A dropdown holds it in one line.`,example:[{component:`AppRadio`,props:{label:`Mumbai`,name:`city-bad`,defaultChecked:!0}},{component:`AppRadio`,props:{label:`Delhi`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Bengaluru`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Hyderabad`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Chennai`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Kolkata`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Pune`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Ahmedabad`,name:`city-bad`}}]},{title:`Radios for one answer, not checkboxes`,note:`Checkboxes let the user tick several, the wrong control for a single exclusive choice.`,example:[{component:`AppCheckbox`,props:{label:`No experience`,name:`exp-a`}},{component:`AppCheckbox`,props:{label:`1 year`,name:`exp-b`}},{component:`AppCheckbox`,props:{label:`2+ years`,name:`exp-c`}}]}],a11y:[`Each radio's label is bound to its input through id and htmlFor, so a click on the text selects it and a screen reader announces the name.`,`Radios that share a name form one native group, so arrow keys move between them. The component does not change that.`]}},{name:`AppRadioGroup`,marker:`AppRadioGroup`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Class on the group (the control).`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`Initially selected value (uncontrolled).`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables every option.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Error message below the group. Replaces the helper text.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class on the .field wrapper.`,default:``},{name:`help`,type:`node`,required:!1,description:`Content for the label info-tip.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the group.`},{name:`id`,type:`string`,required:!1,description:`The group's id; generated when left out. Option ids and the label and message ids derive from it.`},{name:`inline`,type:`boolean`,required:!1,description:`Options in a row (wrapping) instead of a column.`,default:!1},{name:`label`,type:`node`,required:!0,description:`Visible group label; also the group's accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Shared name of the radios. Defaults to a generated one.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`options`,type:`array`,itemFields:[{name:`description`,type:`node`,required:!1,description:`A muted line under the option's label, read with the radio as its description.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables this option.`},{name:`label`,type:`node`,required:!0,description:`The option's label.`},{name:`value`,type:`string`,required:!0,description:`The value this option posts.`}],required:!0,description:`The choices, in order. Each option has a value, a label, an optional description and an optional disabled flag.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the group and each option as required: the label shows the required mark, the group takes aria-required and each input the required attribute.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Steps the radios and their labels.`,default:`md`},{name:`style`,type:`object`,required:!1,description:`Inline style; lands on the group with className.`},{name:`value`,type:`string`,required:!1,description:`Selected value (controlled).`},{name:`variant`,type:`enum`,enum:[`card`,`default`],required:!1,description:`Draws each option as a bordered card the whole of which selects it; the chosen card takes the primary border and a tinted fill.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to five exclusive options, and the reader should see all of them before choosing.`,`The choice is a field in a form that sits in the same grid as the other fields.`,`You need helper text, an error or a required mark on the group as a whole.`],whenNot:[{text:`There are six or more options.`,instead:`AppSelect`},{text:`It is a control strip that changes a view at once.`,instead:`AppSegmented`},{text:`Each option needs an icon, an image or a description.`,instead:`AppChoiceCard`},{text:`You need one standalone radio, not a group.`,instead:`AppRadio`}],do:[],dont:[],a11y:[`The group is a radiogroup named by its label, so a screen reader announces the label as the group's name.`,`Each option's label is bound to its radio through htmlFor, so a click on the text selects it.`,`Helper text or an error is linked to the group through aria-describedby.`]}},{name:`AppRating`,marker:`AppRating`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Class on the stars (the control).`,default:``},{name:`defaultValue`,type:`number`,required:!1,description:`Initial rating of an uncontrolled input.`},{name:`disabled`,type:`boolean`,required:!1,description:`Input only: disables every star's input and sets the disabled attribute on the control.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Input only: message below the stars. Replaces the helper text.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Input only: class on the .field wrapper.`,default:``},{name:`half`,type:`boolean`,required:!1,description:`Display only: draw the value to the nearest half star.`,default:!1},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Input only: helper text below the stars.`},{name:`id`,type:`string`,required:!1,description:`The rating control's id; generated when left out.`},{name:`label`,type:`node`,required:!1,description:`Input: the visible group label and its name. Display: prefix of the spoken text, such as Quality: 4.5 out of 5; a string.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`number`,required:!1,description:`How many stars.`,default:5},{name:`name`,type:`string`,required:!1,description:`Input only: the form field name. Defaults to a generated one.`},{name:`ratingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Rating`},{name:`readOnly`,type:`boolean`,required:!1,description:`A display, not an input.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Input only: shows the required mark beside the label, and sets aria-required on the group and required on each star's input.`,default:!1},{name:`showValue`,type:`boolean`,required:!1,description:`Display only: print the number beside the stars.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The star size: 16, 20 or 28 pixels.`,default:`md`},{name:`starLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {count}.`,default:`{count} star`},{name:`starsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {count}.`,default:`{count} stars`},{name:`value`,type:`number`,required:!1,description:`The rating (controlled as an input). A display may hold a fraction such as 4.3; an input rounds to a whole star.`},{name:`valueText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Tokens: {value}, {max}.`,default:`{value} out of {max}`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Feedback, review and satisfaction forms.`,`Showing an average or a given rating in a list or on a card.`],whenNot:[{text:`A choice between named options.`,instead:`AppRadioGroup`},{text:`A numeric amount.`,instead:`AppSlider`}],do:[],dont:[],a11y:[`The input is a radiogroup named by its label, and each star is a labelled radio (for example, 3 stars).`,`A read-only display has role img and speaks its value, for example 4.5 out of 5.`,`The stars are hidden from assistive technology in the display, so only the spoken value is read.`]}},{name:`AppRecordPager`,marker:`AppRecordPager`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra CSS class on the pager.`,default:``},{name:`index`,type:`number`,required:!1,description:`The position of this record, from 1. Without it (nothing open) the label is empty and both icons are disabled.`},{name:`keys`,type:`boolean`,required:!1,description:`J and K press next and previous.`,default:!1},{name:`nextHref`,type:`url`,required:!1,description:`The next record URL.`},{name:`nextLabel`,type:`string`,required:!1,description:`The next icon name and tooltip, such as Next invoice.`,default:`Next`},{name:`prevHref`,type:`url`,required:!1,description:`The previous record URL.`},{name:`prevLabel`,type:`string`,required:!1,description:`The previous icon name and tooltip, such as Previous invoice.`,default:`Previous`},{name:`total`,type:`number`,required:!1,description:`How many records the list holds.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A record opened from a list that people work through.`,`The open item's header in a reading pane.`],whenNot:[{text:`Moving between pages of a list.`,instead:`AppTablePagination`}],do:[],dont:[],a11y:[`The position text is a polite live region, so a change of record is announced.`,`Previous and next are labelled by prevLabel and nextLabel, which also show as their tooltips.`]}},{name:`AppRelativeTime`,marker:`AppRelativeTime`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the relative time element.`,default:``},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Preferred side of the exact-time tooltip.`,default:`auto`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The moment as an ISO string with its zone (Z or an offset) or epoch milliseconds; write a Date as an ISO string. A bare 2026-10-04 is midnight IST; a missing or unreadable value shows a dash and no tooltip.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`When something happened: created, updated, last seen, last active.`,`Feeds, activity logs and list rows.`],whenNot:[{text:`A date that is itself the fact (due date, invoice date, joining date).`,instead:`a date column, or formatDate`},{text:`A countdown that must tick every second.`,instead:`A purpose-built timer`}],do:[],dont:[],a11y:[`It renders a time element whose dateTime attribute holds the machine-readable value, so the exact moment stays in the page.`,`The exact IST time shows in a tooltip on hover.`,`An unreadable or missing value shows a dash and no tooltip.`]}},{name:`AppRepeater`,marker:`AppRepeater`,acceptsChildren:!1,props:[{name:`addLabel`,type:`string`,required:!1,description:`Text of the add button.`,default:`Add another`},{name:`addVariant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`The add control's variant: an AppButton variant such as solid, outline or ghost, or link for a small text link with a plus icon. An unknown value throws.`,default:`soft`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the repeater.`,default:``},{name:`emptyText`,type:`string`,required:!1,description:`Shown in place of the rows when there are none.`},{name:`max`,type:`number`,required:!1,description:`Adding is disabled at this count.`},{name:`min`,type:`number`,required:!1,description:`Rows at or below this count cannot be removed.`,default:0},{name:`numbered`,type:`boolean`,required:!1,description:`Show the row index.`,default:!0},{name:`removeLabel`,type:`string`,required:!1,description:`Accessible name of each remove control. The row number is added, as in "Remove row 2".`,default:`Remove row`},{name:`rows`,type:`array`,itemFields:[{name:`id`,type:`stringOrNumber`,required:!1,description:`A stable key for the row; the position is used when it is missing.`}],required:!1,description:`The rows, one entry per row. The caller draws each row's fields.`,default:[]}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form needs one or more of the same group of fields.`,`The count is decided by the user, not the schema.`,`Each entry has more than one field: a name and an email, a description and an amount.`],whenNot:[{text:`The user is picking from a known list of options.`,instead:`AppSelect mode="multiple"`},{text:`It is a single repeated value, like a list of tags.`,instead:`AppSelect mode="tag"`},{text:`The rows are existing records to manage.`,instead:`AppDataTable`},{text:`The count is fixed by the schema.`,instead:`plain fields`}],do:[{title:`Name the actions and number rows`,note:`Specific add and remove labels ("Add contact"), a minimum so the form cannot reach an unsubmittable state, and numbered rows validation can point at.`,example:[{component:`AppRepeater`,props:{rows:[{id:1}],min:1,addLabel:`Add contact`,removeLabel:`Remove contact`,numbered:!0}}]}],dont:[{title:`Name the actions and number rows`,note:`A generic "Add another", no remove control at all, and no numbering, so "Row 2 email is invalid" has nothing to point at.`,example:[{component:`AppRepeater`,props:{rows:[{id:`x`}],numbered:!1}}]}],a11y:[`Each remove control is an icon button named by removeLabel and the row number, such as "Remove contact 2".`,`The add button shows its addLabel as visible text and is disabled once max rows exist.`]}},{name:`AppRequiredMark`,marker:`AppRequiredMark`,acceptsChildren:!1,props:[],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You compose a custom label for a required field the library does not own.`,`You need the same asterisk look outside AppInput / AppSelect and their siblings.`],whenNot:[{text:`The field already accepts a required prop.`,instead:`Pass required on the field`},{text:`You want a status or count marker.`,instead:`AppBadge`},{text:`You need explanatory help beside the label.`,instead:`AppInfoTip`}],do:[{title:`One mark beside the label`,note:`One asterisk flush against its label, using the shared mark.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:[`Company name`,{component:`AppRequiredMark`}]}]},{title:`Let the field own the mark`,note:`Let the field own the mark via required.`,example:[{component:`AppInput`,props:{label:`Phone`,required:!0}}]}],dont:[{title:`One mark beside the label`,note:`A hand-rolled star drifts in colour and spacing from every library field.`,example:[{component:`span`,props:{className:`label`},children:[`Company name `,{component:`span`,props:{className:`text-danger`},children:`*`}]}]},{title:`Let the field own the mark`,note:`A star typed into the label of a required field doubles the mark: the field already draws one.`,example:[{component:`AppInput`,props:{label:`Phone *`,required:!0}}]}],a11y:[`The asterisk is hidden from assistive technology with aria-hidden="true", so it is never read aloud.`,`Because the mark is hidden, the control itself must carry the required state: set required or aria-required on it.`]}},{name:`AppResourceCard`,marker:`AppResourceCard`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the card.`,default:``},{name:`description`,type:`string`,required:!1,description:`One line of supporting detail.`},{name:`external`,type:`boolean`,required:!1,description:`Open in a new tab.`,default:!1},{name:`href`,type:`url`,required:!0,description:`Where the card links to.`},{name:`icon`,type:`icon`,required:!0,description:`The glyph in the tile: a library icon name.`},{name:`title`,type:`string`,required:!0,description:`The resource's name. It is the link text.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are linking somewhere and the link needs a line of explanation.`,`Several such links sit together as a "related help" or "templates" block.`,`The destination is a document, article, guide or download.`],whenNot:[{text:`It is a selectable option in a form.`,instead:`AppChoiceCard`},{text:`It is a plain navigation link in a menu or nav.`,instead:`AppShell`},{text:`It performs an action rather than navigating.`,instead:`AppButton`},{text:`It is a pricing tier.`,instead:`AppPricingCard`}],do:[{title:`Link text that names the resource`,note:`The title names the resource, the text says the format and what to do with it, and the icon matches the action (a download).`,example:[{component:`AppResourceCard`,props:{icon:`download`,title:`Zone survey template`,description:`XLSX: fill on site, import here`,href:`#t`}}]}],dont:[{title:`Link text that names the resource`,note:`"Click here" twice tells the reader nothing about the destination, and it is what a screen reader announces as the link name.`,example:[{component:`AppResourceCard`,props:{icon:`circle`,title:`Click here`,description:`Click here to learn more`,href:`#t`}}]}],a11y:[`The whole card is one link, so its accessible name is its text: the title, then the supporting text. The icon glyph is hidden from assistive technology.`,`An external card opens in a new tab with rel="noopener noreferrer".`]}},{name:`AppResult`,marker:`AppResult`,acceptsChildren:!0,props:[{name:`actions`,type:`node`,required:!1,description:`Usually one or two buttons.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the result container.`,default:``},{name:`headingLevel`,type:`enum`,enum:[1,2,3],required:!1,description:`The title's heading level: 1 when the result is the whole page.`,default:2},{name:`icon`,type:`icon`,required:!1,description:`Overrides the status default icon: a library icon name or any node.`},{name:`status`,type:`enum`,enum:[`403`,`404`,`500`,`error`,`info`,`success`,`warning`],required:!1,description:`The outcome. It picks the default icon and tone; 403, 404 and 500 show the code as a large figure instead of an icon.`,default:`info`},{name:`subtitle`,type:`node`,required:!1,description:`Supporting message below the title.`},{name:`title`,type:`node`,required:!1,description:`The heading: what happened.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A self-contained outcome screen after a major action completes (checkout, signup, verification).`,`An error state (403/404/500) that needs a prominent, scannable presentation.`,`A confirmation or warning that warrants its own full-screen or modal moment.`],whenNot:[{text:`A transient message that dismisses on its own.`,instead:`AppToast`},{text:`A section-scoped "nothing here yet" inside a card or modal.`,instead:`AppEmptyState`},{text:`An inline alert about a validation error or status change.`,instead:`AppAlert`},{text:`A persistent announcement bar across the whole page.`,instead:`AppBanner`}],do:[],dont:[],a11y:[`The title is a heading: h2 by default, and headingLevel sets 1, 2 or 3. Use 1 when the result is the whole page.`,`The large figure of a 403, 404 or 500 status is hidden from assistive technology (aria-hidden), so the title carries the meaning.`]}},{name:`AppRichText`,marker:`AppRichText`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:"Accessible name for the editor; defaults to a string `label`."},{name:`className`,type:`string`,required:!1,description:"Class on the `<wui-rich-text>` element.",default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the editor and keeps it out of the form post.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Message below the editor. It replaces the helper text.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class on the wrapper field div.`,default:``},{name:`format`,type:`enum`,enum:[`html`,`markdown`],required:!1,description:"What `value` is. HTML is used when it is left out. It is read when the editor mounts, so changing it remounts the editor."},{name:`help`,type:`node`,required:!1,description:`Help content shown in an info tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`Accessible name for that info tip.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the editor.`},{name:`id`,type:`string`,required:!1,description:`The id of the editor; the helper text and error ids derive from it. Generated when omitted.`},{name:`label`,type:`node`,required:!1,description:`The visible label above the editor. A string label also names the editor for screen readers.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Posted under this name with a form.`},{name:`placeholder`,type:`string`,required:!1,description:`Shown while the editor is empty.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the editor; the value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required; an empty editor is invalid.`,default:!1},{name:`value`,type:`string`,required:!1,description:"The content, in `format`."}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`People need bold, links, lists or headings in a note, description or message, and the product stores or shows that formatting.`,`The value is rendered somewhere later as HTML or Markdown, and you want it clean on the way in.`],whenNot:[{text:`The value is plain text that may run past a line.`,instead:`AppTextarea`},{text:`The value is a single short line.`,instead:`AppInput`},{text:`The user picks tags or keywords.`,instead:`AppSelect mode="tag"`}],do:[{title:`Keep a visible label`,note:`A visible label stays put while the user types and is read by screen readers.`,example:[{component:`AppRichText`,props:{label:`Terms`,name:`terms-good`,helperText:`Shown on the quote.`}}]}],dont:[{title:`Keep a visible label`,note:`A placeholder used as the label vanishes on the first keystroke and fails accessibility.`,example:[{component:`AppRichText`,props:{name:`terms-bad`,placeholder:`Terms`}}]}],a11y:[`The editor is a group named by ariaLabel, or by the label when it is a string.`,`The label is tied to the editor by id. Helper text or an error is linked through aria-describedby, and an error also sets aria-invalid.`,`Required, disabled and read-only are passed to the editor as attributes, and a failed editor load shows a status message.`]}},{name:`AppRouteError`,marker:`AppRouteError`,acceptsChildren:!0,props:[{name:`brand`,type:`node`,required:!1,description:`Shown above the result, usually the product's logo.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the outer container.`,default:``},{name:`errorText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Something went wrong on our side. Try again in a moment.`},{name:`errorTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`This page did not load`},{name:`fullPage`,type:`boolean`,required:!1,description:`Fills the viewport and centres the result. Pass false for an error inside a page layout.`,default:!0},{name:`homeHref`,type:`url`,required:!1,description:`Where "Go to the home page" leads.`,default:`/`},{name:`homeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Go to the home page`},{name:`kind`,type:`enum`,enum:[`error`,`not-found`,`stale-build`],required:!1,description:`What went wrong. An error offers Try again and the home page, a stale build offers Reload, and a missing page offers the home page.`,default:`error`},{name:`notFoundText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Check the address, or go to the home page.`},{name:`notFoundTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`We could not find that page`},{name:`reloadLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Reload`},{name:`retryLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Try again`},{name:`staleText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`This app was updated while you had it open. Reload to get the new version.`},{name:`staleTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`A new version is ready`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A route failed to render, or its loader threw.`,`The root error boundary, or AppErrorBoundary, caught an error and needs a fallback screen.`,`No route matches the address.`],whenNot:[{text:`One section of a working page failed to load its data.`,instead:`AppAsyncBlock`},{text:`A page or section may throw and should recover in place, without a router or a full reload.`,instead:`AppErrorBoundary`},{text:`A finished action needs a success or failure screen.`,instead:`AppResult`},{text:`A newer build is live but the current page still works.`,instead:`AppUpdateBar`}],do:[{title:`Plain sentence, not the raw error`,note:`A plain sentence and a way forward. The error details go to the logs.`,example:[{component:`AppRouteError`,props:{fullPage:!1,homeHref:`#`}}]}],dont:[{title:`Plain sentence, not the raw error`,note:`The raw error tells the person nothing they can act on, and can leak internal details.`,example:[{component:`AppCodeBlock`,props:{code:`TypeError: Cannot read properties of undefined (reading 'map')`,language:`text`}}]}],a11y:[`The title is a real heading, and the actions are native buttons and a link, so Tab and Enter work as on any page.`,`The home action is a plain link, so the screen also works where no router is mounted.`,`The caught error is never shown, only a plain sentence, so nothing internal reaches a screen reader.`]}},{name:`AppRowActions`,marker:`AppRowActions`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the row's action group.`,default:``},{name:`items`,type:`array`,itemFields:[{name:`data`,type:`object`,required:!1,description:`data-* attributes written on the control (the icon button or button and the menu row).`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the action in both the icon button and the menu row.`},{name:`disabledReason`,type:`string`,required:!1,description:`Why the action is disabled: joined to the icon button's label as "Edit: locked", and shown on the menu row. Needs disabled.`},{name:`href`,type:`string`,required:!1,description:`A plain link, never routed through linkComponent. An action takes to or href, not both.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name. Without it (and without showLabel) the action is a menu row at every width.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The inline icon's style; the menu row draws the linear glyph.`},{name:`key`,type:`string`,required:!0,description:`Unique within the row's list.`},{name:`label`,type:`string`,required:!0,description:`The icon button's accessible name and tooltip, and the menu row's text.`},{name:`menuOnly`,type:`boolean`,required:!1,description:`Keeps the action in the menu at every width. Not with showLabel.`},{name:`rel`,type:`string`,required:!1,description:`The link's rel. Needs href or to.`},{name:`showLabel`,type:`boolean`,required:!1,description:`From sm up, draws the action as a small labelled button instead of an icon button.`},{name:`target`,type:`enum`,enum:[`_blank`,`_self`],required:!1,description:`Where an href or to opens. Needs href or to.`},{name:`to`,type:`string`,required:!1,description:`An in-app route, drawn through linkComponent when one is given.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" marks a destructive action.`}],required:!0,description:"The row's actions, in order. A list entry; false, null and undefined are skipped, so `canEdit && { ... }` leaves an action out. Each item needs a unique `key`, and onClick, href or to unless it is disabled; onClick may accompany href or to."},{name:`menuLabel`,type:`string`,required:!1,description:`The menu trigger's accessible name and tooltip.`,default:`More actions`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The actions at the end of a table or list row, one list that shows as icon buttons from sm up and as one menu on a phone.`],whenNot:[{text:`A menu that is not a row's own actions.`,instead:`AppDropdown`},{text:`Bulk actions on the selected rows.`,instead:`AppTableToolbar`}],do:[],dont:[],a11y:[`Each icon button is named by its label and shows it as a tooltip; a disabled one names its disabledReason too.`,`The menu trigger is named by menuLabel; Enter or Space opens the menu, arrows move through its rows, and Escape closes it and returns focus to the trigger.`,`Below sm only the menu is shown, so every action is reachable by a touch target and by the keyboard.`]}},{name:`AppSavedViews`,marker:`AppSavedViews`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra CSS class on the element.`,default:``},{name:`storageKey`,type:`string`,required:!0,description:`The name this list's views are stored under in the browser; give each list its own.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A list page whose filters people reuse.`,`Reports with a fixed set of filters opened most days.`],whenNot:[{text:`Hiding or ordering the columns of a table.`,instead:`AppColumnMenu`}],do:[],dont:[],a11y:[`The Views button announces expanded or collapsed; Escape closes the menu and returns focus to it.`,`Each Delete button is named for its view, such as Delete Open orders.`]}},{name:`AppScoreScale`,marker:`AppScoreScale`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Class on the scale (the control).`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Locks every radio so the score cannot be changed.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Message below the scale. Replaces the helper text.`},{name:`fieldClassName`,type:`string`,required:!1,description:"Class on the `.field` wrapper.",default:``},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the scale.`},{name:`highLabel`,type:`string`,required:!1,description:`Text under the highest value, such as "Very likely".`},{name:`id`,type:`string`,required:!1,description:`The id of the radio group; the label, helper text and error ids derive from it. Generated when omitted.`},{name:`label`,type:`node`,required:!1,description:`The visible group label; names the group.`},{name:`lowLabel`,type:`string`,required:!1,description:`Text under the lowest value, such as "Not likely".`},{name:`max`,type:`number`,required:!1,description:`The highest value on the scale.`,default:10},{name:`min`,type:`number`,required:!1,description:`The lowest value on the scale.`,default:0},{name:`name`,type:`string`,required:!1,description:`The form field name carried by every radio. Defaults to a generated one.`},{name:`scoreLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Score`},{name:`value`,type:`number`,required:!1,nullable:!0,description:`The chosen value, or null for no choice yet. The parent holds it (controlled).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Likelihood to recommend, satisfaction or effort on a numbered scale.`,`A single answer from a short, ordered run of numbers.`],whenNot:[{text:`A rating of a product or review as stars.`,instead:`AppRating`},{text:`A choice between named options.`,instead:`AppRadioGroup`},{text:`A numeric amount along a range.`,instead:`AppSlider`}],do:[],dont:[],a11y:[`The scale is a radio group named by its label, or named Score when there is no label.`,`Each value is a native radio sharing one name, so the arrow keys move and choose and the group posts with its form.`,`Helper text or an error is linked through aria-describedby, and an error also sets aria-invalid.`]}},{name:`AppScrollbar`,marker:`AppScrollbar`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the scroll container.`,default:``},{name:`maxHeight`,type:`stringOrNumber`,required:!1,description:`Caps the container height so content overflows and scrolls. A number is treated as pixels.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A fixed-height region (dropdown, side panel, card body) can overflow and you want a thin, unobtrusive scrollbar instead of the browser default.`,`The native scrollbar visually clutters a dense UI (a chunky gutter next to narrow content).`],whenNot:[{text:`Scrolling the whole page.`,instead:`the native page scrollbar`},{text:`A region that should paginate instead of scroll.`,instead:`AppTablePagination`}],do:[],dont:[],a11y:[`Only the scrollbar is restyled: native scrolling, keyboard navigation and in-page anchors work as in any scrollable element.`,`The container adds no role or aria attribute of its own, so the content inside keeps its own semantics.`]}},{name:`AppSearch`,marker:`AppSearch`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the field.`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`clearLabel`,type:`string`,required:!1,description:`Accessible name of the clear button. Replaces the built-in English text, for other languages.`,default:`Clear search`},{name:`collapsible`,type:`boolean`,required:!1,description:`Render as an icon button labelled by ariaLabel (or placeholder) that opens the field on click or "/"; Escape or leaving an empty field folds it, and a value keeps it open.`,default:!1},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the field off so it cannot be typed in or cleared.`,default:!1},{name:`form`,type:`string`,required:!1,description:`Id of the filter form this search joins, so it submits with the filters.`},{name:`iconSize`,type:`number`,required:!1,description:`The size in pixels of the leading magnifier. It is 18 when left out.`},{name:`loading`,type:`boolean`,required:!1,description:`Swap the leading glyph for a spinner while a search is in flight.`,default:!1},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text shown while the field is empty.`,default:`Search…`},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the field against typing and clearing; the value still posts.`,default:!1},{name:`searchLabel`,type:`string`,required:!1,description:`Accessible name of the collapsed search button when there is no ariaLabel or placeholder. Replaces the built-in English text, for other languages.`,default:`Search`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size around the default.`},{name:`value`,type:`string`,required:!1,description:`The text in the field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user narrows a list, table, or set of cards by typing a few characters.`,`You want a consistent search affordance, a magnifier and a clear button, above a collection.`,`The match is a simple contains-filter over data already on screen.`],whenNot:[{text:`It is an ordinary text value in a form.`,instead:`AppInput`},{text:`The user types to find one item from a large or remote list.`,instead:`AppSelect mode="search"`},{text:`The user picks from a fixed, known set of options.`,instead:`AppSelect`}],do:[{title:`Name what the search covers`,note:`A placeholder that names what is being searched sets the right expectation.`,example:[{component:`AppSearch`,props:{value:``,placeholder:`Search members…`,ariaLabel:`Search members`},handlers:[`onChange`]}]},{title:`Clear to reset the list`,note:`With a value present, the clear (×) lets the user reset to the full list in one click.`,example:[{component:`AppSearch`,props:{value:`Navneet`,placeholder:`Search members…`,ariaLabel:`Search members`},handlers:[`onChange`]}]}],dont:[{title:`Name what the search covers`,note:`A vague 'Type here' doesn't say what the box searches.`,example:[{component:`AppSearch`,props:{value:``,placeholder:`Type here`,ariaLabel:`Search`},handlers:[`onChange`]}]},{title:`Clear to reset the list`,note:`A raw input with a magnifier drawn on top has no clear control and drifts from the theme.`,example:[{component:`AppInput`,props:{value:`Navneet`,placeholder:`Search`},handlers:[`onChange`]}]}],a11y:[`The field is a native search input named by ariaLabel.`,`A collapsible search shows a toggle button named by ariaLabel (or the placeholder) with aria-expanded, and the / key opens the first collapsible search on the page unless focus is in a field.`,`Escape in an empty collapsible field folds it, and leaving an empty one folds it too.`,`The clear button is named Clear search, and the spinner is hidden from assistive technology.`]}},{name:`AppSectionCallToAction`,marker:`AppSectionCallToAction`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:"The buttons, usually a primary `AppButton` and an outline one."},{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the copy and buttons sit in the panel.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`subtitle`,type:`node`,required:!1,description:`A sentence under the heading.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`band`,`default`,`muted`],required:!1,description:"The section's background around the panel. `band` sets the call to action as a full-width band.",default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The last section of a landing page.`,`Between long sections, to offer the next step.`],whenNot:[{text:`A notice about the page or the account.`,instead:`AppBanner`}],do:[],dont:[],a11y:[`The section is labelled by its heading, through aria-labelledby, when an id is passed.`,`The title is a real heading element chosen by as, so set it to fit the page outline.`,`The buttons are the caller's own, so each keeps its native button or link behaviour.`]}},{name:`AppSectionFaq`,marker:`AppSectionFaq`,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:"Where the heading block sits. Under `split` the default is `start`.",default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The label every question's toggle carries as data-close-label, for a stylesheet to show while the question is open. Omitted when unset.`},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`openItems`,type:`array`,required:!1,description:`The positions of the questions that start open, counted from 0. They are passed to the AppAccordion among the children.`},{name:`subtitle`,type:`node`,required:!1,description:`A sentence under the heading ("Still stuck? Write to us.").`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`,`split`],required:!1,description:"The section's layout and background. `split` sets the heading block beside the questions.",default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Questions buyers ask before they sign up.`,`The last section before the call to action.`],whenNot:[{text:`Long help articles.`,instead:`a help centre page`}],do:[],dont:[],a11y:[`The section is labelled by its heading, through aria-labelledby, when an id is passed.`,`The title is a real heading element chosen by as, so set it to fit the page outline.`,`The questions sit in an AppAccordion, whose titles are buttons with aria-expanded, and closed answers stay in the page text.`]}},{name:`AppSectionFeatures`,marker:`AppSectionFeatures`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the heading block sits.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element; each point's title is one level under it.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`inset`,type:`number`,required:!1,description:`The section's side inset in px; unset keeps the container padding.`},{name:`items`,type:`array`,itemFields:[{name:`description`,type:`node`,required:!1,description:`The sentence under the point's heading.`},{name:`icon`,type:`string`,required:!1,description:`The name of a library icon shown above the title.`},{name:`imageAlt`,type:`string`,required:!1,description:`The text alternative of the image above the title.`},{name:`imageHeight`,type:`number`,required:!1,description:`The image's intrinsic height in px.`},{name:`imageSrc`,type:`string`,required:!1,description:`The URL of an image drawn above the title in place of the icon. Needs imageAlt, imageWidth and imageHeight; do not set icon as well.`},{name:`imageWidth`,type:`number`,required:!1,description:`The image's intrinsic width in px.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the point. It defaults to the title.`},{name:`media`,type:`node`,required:!1,description:`An image with width and height, shown beside the point in the rows layout.`},{name:`title`,type:`string`,required:!0,description:`The point's heading.`}],required:!1,description:`The points: a title, a description, a library icon name or an image, and a second image for the rows layout.`,default:[]},{name:`layout`,type:`enum`,enum:[`grid`,`rows`],required:!1,description:`Short points in columns, or one row per point with its image beside it.`,default:`grid`},{name:`subtitle`,type:`node`,required:!1,description:`One or two sentences under the heading.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`titleFont`,type:`enum`,enum:[`body`,`display`],required:!1,description:`The heading's face: display for the brand face, body for the text face.`,default:`display`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The product's main benefits on a landing page.`,`A service page's list of what is included.`],whenNot:[{text:`A full comparison of plans.`,instead:`AppCompareTable`}],do:[],dont:[],a11y:[`The section is labelled by its heading, through aria-labelledby, when an id is passed.`,`The title is a real heading element chosen by as, and each point's title is a heading one level under it.`,`The points are a list, so a screen reader announces how many there are.`]}},{name:`AppSectionHero`,marker:`AppSectionHero`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:"The calls to action, usually one or two `AppButton`s."},{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Centred copy with the media under it.`,default:`start`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element. Keep one h1 per page.`,default:`h1`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading: any node, including a styled container drawn as a pill.`},{name:`eyebrowTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Draws the eyebrow as a pill in this tone; unset keeps plain text.`},{name:`id`,type:`string`,required:!1,description:`The section's id, the target of an in-page link.`},{name:`media`,type:`node`,required:!1,description:"An `<img>` with `width` and `height`, beside the copy."},{name:`subtitle`,type:`node`,required:!1,description:`One or two sentences under the heading.`},{name:`title`,type:`node`,required:!0,description:`The page's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,role:`title`,usage:{when:[`The first section of a public page.`,`A campaign or product page that leads with one promise.`],whenNot:[{text:`The title of a portal screen.`,instead:`AppPageHeader`}],do:[],dont:[],a11y:[`The title is the page's h1 unless as says otherwise, so keep one h1 per page.`,`The section is labelled by its heading, through aria-labelledby, when an id is passed.`,`The eyebrow is plain text in a container, not a heading, so it stays out of the heading outline.`]}},{name:`AppSectionLeadCapture`,marker:`AppSectionLeadCapture`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the copy and form sit in the panel.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`companyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Company`},{name:`consent`,type:`node`,required:!1,description:`A line under the button, such as a privacy notice.`},{name:`description`,type:`node`,required:!1,description:`A paragraph above the form.`},{name:`emailLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Email`},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`fields`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!1,description:`The field's label. Defaults to the name's usual label.`},{name:`name`,type:`enum`,enum:[`company`,`email`,`message`,`name`,`phone`],required:!0,description:`Which field this is; it sets the input type, autocomplete and the usual label.`},{name:`required`,type:`boolean`,required:!1,description:`The field must have a value to submit.`,default:!1}],required:!0,description:`The fields in order: name, email, phone, company or message, each optionally labelled and required.`},{name:`invalidEmailText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Enter an email address such as name@example.com.`},{name:`leadSubmit`,type:`object`,fields:[],required:!1},{name:`messageLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Message`},{name:`nameLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Name`},{name:`phoneLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Phone number`},{name:`requiredText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`This field is required.`},{name:`submitErrorText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`We could not send your message. Please try again.`},{name:`submitLabel`,type:`string`,required:!1,description:`The button's label.`,default:`Send`},{name:`subtitle`,type:`node`,required:!1,description:`A sentence under the heading.`},{name:`successText`,type:`node`,required:!1,description:`The sentence under the success heading.`},{name:`successTitle`,type:`node`,required:!0,description:`The heading of the block shown after a successful send.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background around the panel.`,default:`default`}],itemsTakeAction:[],takesAction:[`leadSubmit`],source:`@webority/ui-react`,usage:{when:[`A marketing page that asks for a lead: a demo, a quote or a callback.`,`Up to five short fields, sent by a server action that rejects with a curated message, never a raw exception, because the visitor sees it.`],whenNot:[{text:`A form with more than five fields, or with several steps.`,instead:`AppFormSection`},{text:`A sign-in or account form.`,instead:`AppFormSection`}],do:[],dont:[],a11y:[`Each field has a visible label, and a required field is marked as required to the browser.`,`The form is not validated by the browser, so the messages shown are the section's own, next to each field.`,`A failed send is announced in an alert above the button, and a sent form is replaced by a success alert.`]}},{name:`AppSectionLogos`,marker:`AppSectionLogos`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the heading and the logos sit.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the section.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`id`,type:`string`,required:!1,description:`The section's id, the target of an in-page link.`},{name:`items`,type:`array`,itemFields:[{name:`alt`,type:`string`,required:!1,description:`The company's name, used as the image's alternative text. Falls back to name, then label.`},{name:`caption`,type:`string`,required:!1,description:`A short text under the logo, such as the company's name.`},{name:`height`,type:`number`,required:!1,description:`The image's intrinsic height in px. Needed with src.`},{name:`href`,type:`url`,required:!1,description:`A link the logo opens.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the logo.`},{name:`label`,type:`string`,required:!1,description:`Used as the text logo, or as the alt, when name is empty.`},{name:`name`,type:`string`,required:!1,description:`The company name. Drawn as the text logo when there is no src, and the fallback alt.`},{name:`src`,type:`string`,required:!1,description:`The image URL. An item without src is drawn as a text logo.`},{name:`width`,type:`number`,required:!1,description:`The image's intrinsic width in px. Needed with src.`}],required:!1,description:`The logos, each with its intrinsic size in px for an image and an optional link. An item that fits neither an image nor a text logo throws.`,default:[]},{name:`subtitle`,type:`node`,required:!1,description:`A sentence under the heading.`},{name:`title`,type:`node`,required:!0,description:`The section's heading, set small above the logos.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Under the hero, as proof that others use the product.`,`On a partners or integrations page.`],whenNot:[{text:`Logos that must move or scroll by themselves.`,instead:`AppCarousel`}],do:[],dont:[],a11y:[`The logos are a list: a ul with one li per logo, and a logo with an href is wrapped in a link.`,`An image logo takes its alt text from alt, else name, else label, and is drawn with its width and height set so the page does not move when it loads.`,`A logo with no src is drawn as text from name, else label.`]}},{name:`AppSectionPricing`,marker:`AppSectionPricing`,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the heading block sits.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the section.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`id`,type:`string`,required:!1,description:`The section's id, the target of an in-page link.`},{name:`subtitle`,type:`node`,required:!1,description:`One or two sentences under the heading, such as a tax note or a trial offer.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to four plans on a public pricing page.`,`A pricing block on a landing page.`],whenNot:[{text:`Comparing every feature across plans.`,instead:`AppCompareTable`}],do:[],dont:[],a11y:[`The heading uses the element chosen by as, h2 by default, and the section is labelled by it when an id is set.`,`The tiers sit in one grid container after the heading block, in source order; each tier's own semantics come from AppPricingCard.`]}},{name:`AppSectionTestimonials`,marker:`AppSectionTestimonials`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the heading block sits.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the section.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`id`,type:`string`,required:!1,description:`The section's id, the target of an in-page link.`},{name:`items`,type:`array`,itemFields:[{name:`avatar`,type:`string`,required:!1,description:`A square photo URL, drawn as a 48px circle.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the quote. Falls back to name.`},{name:`name`,type:`string`,required:!1,description:`The person's name.`},{name:`quote`,type:`node`,required:!0,description:`The customer's words.`},{name:`role`,type:`string`,required:!1,description:`The person's role and company.`}],required:!1,description:`The quotes, each with the person's name, role and a square photo URL.`,default:[]},{name:`subtitle`,type:`node`,required:!1,description:`One or two sentences under the heading.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to six short quotes from named customers.`,`Under the features, before pricing.`],whenNot:[{text:`A long case study.`,instead:`a page of its own`}],do:[],dont:[],a11y:[`Each quote is a figure holding a blockquote and a figcaption with the person's name and role, inside a list.`,`The photo is decorative: its alt text is empty because the name sits beside it, and it is drawn with width and height 48 so the page does not move when it loads.`]}},{name:`AppSegmented`,marker:`AppSegmented`,acceptsChildren:!1,props:[{name:`bordered`,type:`boolean`,required:!1,description:`Draws the edge and soft shadow of the selected thumb. false keeps a flat thumb.`,default:!0},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the group.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the whole control.`,default:!1},{name:`fullWidth`,type:`boolean`,required:!1,description:`Segments share the row equally, filling the container.`,default:!1},{name:`help`,type:`node`,required:!1,description:`Content for an info-tip after the visible label. Shown only when the label is visible.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`label`,type:`string`,required:!0,description:`The accessible name of the group.`},{name:`labelVisible`,type:`boolean`,required:!1,description:`Shows the label above the control. The accessible name stays either way.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The field name, which groups the radios and is what a form posts. Defaults to a generated one.`},{name:`options`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!1,description:`A number shown beside the label. A count of 0 still shows.`},{name:`disabled`,type:`boolean`,required:!1,description:`Keeps this option visible but unpickable.`},{name:`icon`,type:`string`,required:!1,description:`An icon name shown beside the label.`},{name:`label`,type:`string`,required:!0,description:`The option's visible text.`},{name:`note`,type:`string`,required:!1,description:`A smaller muted line under the label, for a supporting detail.`},{name:`value`,type:`string`,required:!0,description:`The value this option submits.`}],required:!1,description:`The choices, in order, two to four. note is a smaller muted line under the label, count is a number beside it, and disabled keeps one option visible but unpickable.`,default:[]},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Heights 32, 36 and 44px.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The selected option's value. Leave it out, with defaultValue, for an uncontrolled field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to four exclusive options, and seeing all of them helps the reader choose.`,`The choice changes a view immediately, such as a range, a mode or a theme.`,`The options are short words that fit on one row.`],whenNot:[{text:`There are five or more options.`,instead:`AppSelect`},{text:`It is a single on/off setting.`,instead:`AppSwitch`},{text:`Options are not exclusive: several can be on. AppChoiceChip also fits a filter that can be off.`,instead:`AppCheckbox`},{text:`The options need descriptions to choose between. AppChoiceCard also fits.`,instead:`AppRadio`}],do:[{title:`Short, parallel labels`,note:`Short, parallel labels of similar length, so the pills are balanced and the row reads as one control.`,example:[{component:`AppSegmented`,props:{label:`Theme`,value:`light`,options:[{value:`light`,label:`Light`,icon:`sun`},{value:`dark`,label:`Dark`,icon:`moon`},{value:`system`,label:`System`,icon:`gauge`}]}}]}],dont:[{title:`Short, parallel labels`,note:`Wildly uneven labels make one pill swamp the other and push the control past its container. If a label needs a sentence, the choice needs radios.`,example:[{component:`AppSegmented`,props:{label:`Theme`,value:`l`,options:[{value:`l`,label:`Light`},{value:`d`,label:`Always use the dark colour scheme`}]}}]}],a11y:[`The group is a radiogroup named by label, built from native radio inputs inside labels, so arrow keys, the single tab stop and the position announcement come from the browser.`,`disabled on the group sets aria-disabled and disables every radio; an option's own disabled disables that radio.`,`The sliding thumb is aria-hidden, and with labelVisible the visible label is aria-hidden because the group's aria-label already names it.`]}},{name:`AppSelect`,marker:`AppSelect`,acceptsChildren:!1,props:[{name:`addLabel`,type:`string`,required:!1,description:`Search mode: the row that adds a custom entry.`,default:`Add '{query}'`},{name:`allCountriesLabel`,type:`string`,required:!1,description:`Country mode: the group label for the full list.`,default:`All countries`},{name:`allowCustom`,type:`boolean`,required:!1,description:`Search mode: a typed value that matches no option can be chosen as its own value.`,default:!1},{name:`allowDuplicates`,type:`boolean`,required:!1,description:`Tag mode: keep a repeated entry. By default an entry equal to one already chosen, ignoring case, is refused.`,default:!1},{name:`aria-invalid`,type:`any`,required:!1,description:`Marks the control invalid (aria-invalid) without a field error. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the control.`,default:``},{name:`clearAllLabel`,type:`string`,required:!1,description:`Multiple mode: the footer clear action.`,default:`Clear all`},{name:`clearable`,type:`boolean`,required:!1,description:`Show a control that clears the chosen value.`,default:!1},{name:`collapseChips`,type:`boolean`,required:!1,description:`Multiple mode: fold the chips past the first few into a +N chip.`,default:!1},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`countries`,type:`array`,required:!1,description:`Country mode: the ISO alpha-2 codes to offer. Leaving it out offers every country.`},{name:`createLabel`,type:`string`,required:!1,description:`Tag mode: the row that creates an entry.`,default:`Create '{text}'`},{name:`debounce`,type:`number`,required:!1,description:`Search mode: milliseconds to wait after typing before the query is sent.`},{name:`defaultValue`,type:`any`,required:!1,description:`The starting value of an uncontrolled field, the same shape as value.`},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`],required:!1,description:`comfortable is the labelled form look. compact is the toolbar, sort and filter picker look: an inline width and a menu sized to its options. Pair compact with size sm.`,default:`comfortable`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`emptyText`,type:`string`,required:!1,description:`Text shown in the menu when a search matches nothing.`,default:`No matches`},{name:`error`,type:`node`,required:!1,description:`Error message shown under the field. Marks the control invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra class names added to the .field wrapper.`,default:``},{name:`floatingLabel`,type:`enum`,enum:[`above`,`border`,`off`],required:!1,description:`Where the label rests. Off keeps it above the control. Border sits the label inside as a placeholder, then slides it onto the top border on focus or once a value is chosen. Above rests it above the box, clear of the border. Needs label. Single, search and country modes only; ignored with a dev warning in multiple and tag.`,default:`off`},{name:`help`,type:`node`,required:!1,description:`Help content shown in an info tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`Accessible name for that info tip.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text shown under the field when there is no error.`},{name:`hintText`,type:`string`,required:!1,description:`Search mode: the row shown while the query is shorter than minChars. Left unset, the element shows Type to search….`},{name:`icon`,type:`string`,required:!1,description:`Icon name shown in the control.`},{name:`id`,type:`string`,required:!1,description:`DOM id for the control and the target of the label.`},{name:`invalidMessage`,type:`string`,required:!1,description:`Tag mode: the message shown when pattern or validate refuses an entry.`},{name:`label`,type:`node`,required:!1,description:`The visible field label.`},{name:`lazyOptions`,type:`boolean`,required:!1,description:`Draw the option rows only while the list is open. Default off.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`maxTags`,type:`number`,required:!1,description:`Tag mode: the most chips a value may hold.`},{name:`minChars`,type:`number`,required:!1,description:`Search mode: the query length before the element asks for options.`},{name:`mode`,type:`enum`,enum:[`country`,`multiple`,`search`,`single`,`tag`],required:!1,description:`What the control does. single picks one option; multiple picks several and shows them as chips, and with a loadOptions loader or remote searches the server as the user types, keeping each chosen chip's label; search filters options as the user types, from options or a loadOptions loader; tag takes free-text chips with optional suggestions, validate, pattern and maxTags; country picks an ISO country code with its flag and dial code. value is a string in single, search and country modes, and a string array in multiple and tag modes.`,default:`single`},{name:`name`,type:`string`,required:!1,description:`Form field name.`},{name:`open`,type:`boolean`,required:!1,description:`Shows the list open, for a design preview or a controlled caller.`},{name:`openOnHover`,type:`boolean`,required:!1,description:`Open the list when the mouse rests on the control, and close it when the mouse leaves the control and the list. Mouse only: touch and pen keep tap to open. A select with a search box (search mode, or searchable) and tag mode ignore it. A click on the control right after it opened on hover keeps the list open.`,default:!1},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`options`,type:`array`,itemFields:[{name:`avatar`,type:`string`,required:!1,description:`An image URL shown beside the option.`},{name:`description`,type:`string`,required:!1,description:`A second line under the label, also matched by search.`},{name:`disabled`,type:`boolean`,required:!1,description:`Keeps the row visible but unselectable.`},{name:`disabledHint`,type:`string`,required:!1,description:`Text shown beside a disabled row, such as Already added.`},{name:`group`,type:`string`,required:!1,description:`The grey group label the row sits under.`},{name:`icon`,type:`string`,required:!1,description:`An icon name shown beside the option.`},{name:`initials`,type:`string`,required:!1,description:`The face shown without, or under, the avatar.`},{name:`label`,type:`node`,required:!1,description:`The option's visible label. May be a node.`},{name:`meta`,type:`string`,required:!1,description:`Trailing text at the end of the row, such as a code or a dial code.`},{name:`text`,type:`string`,required:!1,description:`Plain text used for search and the accessible name when the label is a node.`},{name:`value`,type:`string`,required:!0,description:`The value this option submits.`}],required:!1,description:`The choices. A label may be a node, such as CO2 with a subscript: it renders as static markup, and search and the option's accessible name use its text. In tag mode these are the suggestions.`,default:[]},{name:`pattern`,type:`string`,required:!1,description:`Tag mode: a regular expression a typed entry must match.`},{name:`placeholder`,type:`string`,required:!1,description:`The text in the empty field. Left unset, the element's default for the mode applies: Select… in single, search and multiple, Add… in tag, Select country in country.`},{name:`prefix`,type:`node`,required:!1,description:`A bordered box before the select, such as +91 or Tag, in the same shell as an input's prefix. Single, search and country modes only; ignored with a dev warning in multiple and tag.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`recentsKey`,type:`string`,required:!1,description:`Single, search, multiple and country modes: a localStorage key to remember the options a person chooses on this device. The open list shows them first, under a Recent heading, while the search box is empty. Build it per user, for example from the user's public id. Only options still in the list show, so a search that fetches its options per query shows none. Not used in tag mode.`},{name:`recentsLabel`,type:`string`,required:!1,description:`The heading of the recent options.`,default:`Recent`},{name:`recentsLimit`,type:`number`,required:!1,description:`How many recent options to show and keep, 1 to 20.`,default:5},{name:`remote`,type:`boolean`,required:!1,description:`Search, multiple and tag modes: the page answers each query itself. The element fires its search event (React onSearch) with the query and its number, fetches nothing, and shows the searching row until the page sets options. Leave it off with loadOptions or source.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required.`,default:!1},{name:`searchPlaceholder`,type:`string`,required:!1,description:`The placeholder of the search box in the menu. Left unset, it is Search and the field's label (Search Client…) in single, multiple and search modes, Search… without a label, and Search countries… in country mode.`},{name:`searchable`,type:`boolean`,required:!1,description:`Show the search box in the menu. Default: on in multiple and country, on in single when there are more than ten options, off otherwise. true or false forces it either way.`},{name:`searchingText`,type:`string`,required:!1,description:`Search mode: the row shown while a query loads.`,default:`Searching…`},{name:`selectedText`,type:`string`,required:!1,description:`Multiple mode: the footer count.`,default:`{n} selected`},{name:`separators`,type:`string`,required:!1,description:`Tag mode: characters that commit an entry, such as comma or semicolon, as one string.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.`,default:`md`},{name:`source`,type:`string`,required:!1,description:`Search, multiple and tag modes: the endpoint the select calls as GET source?q=query, answering a JSON array of option records. Leave it off with remote or loadOptions.`},{name:`suffix`,type:`node`,required:!1,description:`A bordered box after the select, in the same shell as an input's suffix. Single, search and country modes only; ignored with a dev warning in multiple and tag.`},{name:`suggested`,type:`array`,required:!1,description:`Country mode: the ISO alpha-2 codes shown first under a Suggested group.`},{name:`suggestedLabel`,type:`string`,required:!1,description:`Country mode: the group label for suggested countries.`,default:`Suggested`},{name:`valid`,type:`boolean`,required:!1,description:`Shows a green tick on a filled field with no error. Default off.`,default:!1},{name:`value`,type:`any`,required:!1,description:`The selected value: a string in single, search and country modes, a string array in multiple and tag modes. Leaving it out clears the control.`},{name:`valueAvatar`,type:`string`,required:!1,description:`Search mode: the image of the current value.`},{name:`valueInitials`,type:`string`,required:!1,description:`Search mode: the initials of the current value.`},{name:`valueLabel`,type:`string`,required:!1,description:`Search mode: the label of the current value when the options do not carry it.`},{name:`valuePrefix`,type:`string`,required:!1,description:`Static text inside the control before the value, such as Sort:. Not prefix, which is the bordered affix box.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user picks one value from a known set of roughly 6 or more options: single mode, the default.`,`The user picks several values from a set: mode multiple, shown as removable chips.`,`The options are long or come from a server as the user types: mode search, with options or loadOptions.`,`The user types free-text entries such as emails or keywords, optionally with suggestions: mode tag.`,`The user picks a country: mode country, which gives the ISO code, the flag and the dial code.`,`compact density for toolbars, sort and filter pickers; a labelled form field omits it.`],whenNot:[{text:`There are only 2 to 5 options and they fit comfortably on screen.`,instead:`AppRadio`},{text:`The user needs to pick a value with no fixed list of options at all.`,instead:`AppInput`}],do:[{title:`Searchable past ten options`,note:`Past ten options the search box shows on its own, so leave searchable unset.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,placeholder:`Select a client…`,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`},{value:`jsw`,label:`JSW Steel Vijayanagar`},{value:`ntpc`,label:`NTPC Dadri`},{value:`bhel`,label:`BHEL Haridwar`},{value:`ongc`,label:`ONGC Hazira`},{value:`sail`,label:`SAIL Bokaro`},{value:`hind`,label:`Hindalco Renukoot`},{value:`bpcl`,label:`BPCL Kochi`}]}}]},{title:`A label and a placeholder`,note:`A label names the field and the placeholder tells the user what to pick.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,placeholder:`Select a client…`,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`}]}}]},{title:`A specific error`,note:`A specific error says which choice is missing and why it matters.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`}],required:!0,error:`Choose the client this project belongs to.`}}]}],dont:[{title:`Searchable past ten options`,note:`Turning the search box off on a long list forces the user to scroll and scan every time.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,placeholder:`Select a client…`,searchable:!1,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`},{value:`jsw`,label:`JSW Steel Vijayanagar`},{value:`ntpc`,label:`NTPC Dadri`},{value:`bhel`,label:`BHEL Haridwar`},{value:`ongc`,label:`ONGC Hazira`},{value:`sail`,label:`SAIL Bokaro`},{value:`hind`,label:`Hindalco Renukoot`},{value:`bpcl`,label:`BPCL Kochi`}]}}]},{title:`A label and a placeholder`,note:`No label and a bare 'Select' leave the field's purpose unclear.`,example:[{component:`AppSelect`,props:{value:``,placeholder:`Select`,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`}]}}]},{title:`A specific error`,note:`'Required' just repeats the asterisk without helping.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`}],required:!0,error:`Required`}}]}],a11y:[`The visible label is the control's accessible name; a select with no visible label takes aria-label or aria-labelledby from the caller.`,`An error sets aria-invalid on the control and is linked by aria-describedby, as is the helper text when there is no error. A caller's aria-invalid takes its place.`,`required and disabled are passed to the control, and required also draws a required mark in the label.`]}},{name:`AppSeoHead`,marker:null,acceptsChildren:!1,props:[{name:`canonicalUrl`,type:`url`,required:!0,description:`The absolute address of the page, used for the canonical link and og:url.`},{name:`description`,type:`string`,required:!0,description:`The meta description shown in search results.`},{name:`image`,type:`url`,required:!1,description:`The absolute address of the social preview image.`},{name:`imageAlt`,type:`string`,required:!1,description:`The text description of the social preview image.`},{name:`jsonLd`,type:`object`,required:!1,description:`Structured data for the page, one object or an array of objects. Written into the page as JSON-LD, as an escaped text child, so it is for client-rendered portals only (React escapes script text under server rendering).`},{name:`robots`,type:`string`,required:!0,description:`The robots directive the product picks per environment, such as "index, follow" or "noindex, nofollow".`},{name:`siteName`,type:`string`,required:!0,description:`The name of the site, for og:site_name.`},{name:`title`,type:`string`,required:!0,description:`The page title, written in full by the product.`},{name:`twitterCard`,type:`enum`,enum:[`summary`,`summary_large_image`],required:!1,description:`The Twitter card layout.`,default:`summary`},{name:`type`,type:`enum`,enum:[`article`,`website`],required:!1,description:`The Open Graph type of the page.`,default:`website`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A public page needs its title, search description, social preview and structured data in the document head.`],whenNot:[{text:`The page is rendered by Razor.`,instead:`<seo-head> from Webority.Seo.AspNetCore`}],do:[],dont:[],a11y:[`The tags add no visible content; they describe the page to search engines and social previews.`]}},{name:`AppShell`,marker:`AppShell`,acceptsChildren:!0,props:[{name:`accountMenuLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the signed-in person's name.`,default:`Account menu for {name}`},{name:`brand`,type:`node`,required:!1,description:`The logo row at the top of the sidebar.`},{name:`brandHref`,type:`string`,required:!1,description:`Makes the logo row a link to this address, through linkComponent when one is passed. The link wraps the logo, mark and brand, so brand must hold no link of its own. Needs brandLabel or brandName.`},{name:`brandLabel`,type:`string`,required:!1,description:`The brand link's accessible name, such as Acme home. Used only with brandHref; defaults to brandName.`},{name:`brandName`,type:`string`,required:!1,description:`The brand name, read by screen readers from the logo, or from the mark when there is no logo.`},{name:`capBadges`,type:`boolean`,required:!1,description:`Shows a count over 99 as "99+" on the nav and tab badges, as the bell does.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the shell root.`,default:``},{name:`collapseNavLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Collapse navigation`},{name:`collapsed`,type:`boolean`,required:!1,description:`Controlled rail state. Omit it to let the shell own the state.`},{name:`collapsedCookie`,type:`string`,required:!1,description:`The cookie rememberCollapsed uses.`,default:`wui-shell-collapsed`},{name:`currentPath`,type:`string`,required:!1,description:`The current location. Rows without active are matched against it.`},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`],required:!1,description:`Compact sets the content's top padding to 12px.`,default:`comfortable`},{name:`expandNavLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Expand navigation`},{name:`foldedCookie`,type:`string`,required:!1,description:`The cookie that remembers the folded collapsible groups, as their keys joined by dots.`,default:`wui-nav-folded`},{name:`footer`,type:`node`,required:!1,description:`Content shown below the page, in the content column.`},{name:`groups`,type:`array`,itemFields:[{name:`after`,type:`node`,required:!1,description:`A node rendered right after the group's links, such as an add-a-space row. It is hidden on the collapsed rail and shown in the drawer.`},{name:`collapsible`,type:`boolean`,required:!1,description:`Folds the group from its heading. Its folded state is remembered in a cookie (foldedCookie).`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`active`,type:`boolean`,required:!1,description:`Unset, the row is decided from currentPath. True or false forces it.`},{name:`badge`,type:`node`,required:!1,description:`A count or short status at the row's end.`},{name:`badgeTitle`,type:`string`,required:!1,description:`The badge's hover text, such as 3 invoices overdue.`},{name:`badgeTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Tints the badge, in the AppBadge tone set: danger for an alert count, primary for a plain count.`},{name:`children`,type:`array`,required:!1,description:`Sub-items. The row becomes an expandable parent.`},{name:`description`,type:`string`,required:!1,description:`The link's one-line description in the top bar panel.`},{name:`header`,type:`string`,required:!1,description:`A sub-heading row inside the group, drawn with no link. Shown only while a link follows it.`},{name:`href`,type:`url`,required:!1,description:`Where the label links. With children, the label link goes here and the chevron alone opens the sub-list.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name, or a node for a product's own icon set.`},{name:`iconSize`,type:`number`,required:!1,description:`The icon's width and height in px. Defaults to 22.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named icon. Defaults to linear.`},{name:`key`,type:`string`,required:!1,description:`Stable key of the row.`},{name:`label`,type:`string`,required:!1,description:`The visible label of the row. Every row but a header row has one.`},{name:`match`,type:`enum`,enum:[`exact`,`prefix`],required:!1,description:`How href is matched against currentPath. Defaults to prefix.`},{name:`matchAlso`,type:`array`,required:!1,description:`Extra path prefixes that also make this row the current page.`},{name:`newUntil`,type:`string`,required:!1,description:`An ISO date (yyyy-MM-dd, India time). A green New pill shows after the label through that day, and none after it.`},{name:`tab`,type:`boolean`,required:!1,description:`Also shows this row in the phone bottom tab bar.`},{name:`tabLabel`,type:`string`,required:!1,description:`A shorter label for the tab bar.`},{name:`trailingIcon`,type:`icon`,required:!1,description:`A right-aligned secondary glyph, such as a lock or an external arrow.`}],required:!0,description:`The nav rows of the group.`},{name:`key`,type:`string`,required:!1,description:`A stable name for the group. Needed with collapsible; lower-case letters, digits and hyphens.`},{name:`label`,type:`string`,required:!1,description:`The group heading.`}],required:!1,description:`Nav groups, in order. Groups after the first are separated by a rule. A group with no items is not rendered, and neither is its after.`,default:[]},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of every sidebar icon. A row's own iconVariant overrides it; bulk is the filled look. Unset, icons draw in the twotone style.`,default:`twotone`},{name:`itemHeight`,type:`number`,required:!1,description:`The height of every sidebar row in px, in place of the density's row height. Unset, the rows keep the density's height. A value above zero applies on every pointer, touch included.`},{name:`launcher`,type:`node`,required:!1,description:`A floating button pinned to the bottom end corner over the page, such as an assistant launcher. On a phone it sits above the tab bar.`},{name:`loadingNotificationsText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Loading…`},{name:`logoDark`,type:`string`,required:!1,description:`Dark-mode twin of logoLight, swapped in under data-theme dark. Needs logoLight.`},{name:`logoDarkHeight`,type:`number`,required:!1,description:`Pixel height of the dark-mode logo, set on its img. Unset, the image keeps its own size.`},{name:`logoDarkWidth`,type:`number`,required:!1,description:`Pixel width of the dark-mode logo, set on its img. Unset, the image keeps its own size.`},{name:`logoLight`,type:`string`,required:!1,description:`Image URL of the full logo shown on the open sidebar. Ship it pre-trimmed; the library fixes only its height.`},{name:`logoLightHeight`,type:`number`,required:!1,description:`Pixel height of the full logo on the open sidebar, set on its img. Unset, the image keeps its own size.`},{name:`logoLightWidth`,type:`number`,required:!1,description:`Pixel width of the full logo on the open sidebar, set on its img. Give the size with the file to reserve its space before it loads. Unset, the image keeps its own size.`},{name:`markAllReadLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Mark all read`},{name:`markDark`,type:`string`,required:!1,description:`Dark-mode twin of markLight.`},{name:`markDarkHeight`,type:`number`,required:!1,description:`Pixel height of the dark-mode mark, set on its img. Unset, the image keeps its own size.`},{name:`markDarkWidth`,type:`number`,required:!1,description:`Pixel width of the dark-mode mark, set on its img. Unset, the image keeps its own size.`},{name:`markLight`,type:`string`,required:!1,description:`Image URL of the square mark shown on the collapsed rail. Without one, the logo is clipped to a square.`},{name:`markLightHeight`,type:`number`,required:!1,description:`Pixel height of the square mark on the collapsed rail, set on its img. Unset, the image keeps its own size.`},{name:`markLightWidth`,type:`number`,required:!1,description:`Pixel width of the square mark on the collapsed rail, set on its img. Unset, the image keeps its own size.`},{name:`moreLabel`,type:`string`,required:!1,description:`Label of the tab bar button that opens the drawer.`,default:`More`},{name:`nav`,type:`enum`,enum:[`side`,`top`],required:!1,description:`Where the primary navigation sits: a sidebar, or from lg up the top bar.`,default:`side`},{name:`navLabel`,type:`string`,required:!1,description:`Accessible name of the sidebar navigation.`,default:`Main navigation`},{name:`newLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`New`},{name:`noResultsForText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {value} is the search text.`,default:`No results for “{value}”`},{name:`noResultsText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No results`},{name:`noSidebar`,type:`boolean`,required:!1,description:`Full-width layout with no side nav, for a focused wizard. There is no tab bar either.`,default:!1},{name:`noUnreadText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Read aloud when the unread count drops to zero.`,default:`No unread notifications`},{name:`notifications`,type:`object`,fields:[{name:`emptyText`,type:`string`,required:!1,description:`Text shown when the list is empty. Defaults to You are all caught up.`},{name:`items`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!1,description:`Where the notification links.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name for the notification.`},{name:`id`,type:`string`,required:!1,description:`Stable id of the notification.`},{name:`read`,type:`boolean`,required:!1,description:`True when the notification has been read.`},{name:`time`,type:`string`,required:!1,description:`When it happened, as display text.`},{name:`title`,type:`string`,required:!0,description:`The notification's text.`}],required:!1,description:`The list. Undefined until loaded.`},{name:`label`,type:`string`,required:!1,description:`The panel's heading. Defaults to Notifications.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a loading state in the list.`},{name:`unread`,type:`number`,required:!1,description:`Unread count on the bell. It shows 99+ above 99.`},{name:`viewAllHref`,type:`url`,required:!1,description:`Where the view-all link goes.`}],required:!1,description:`The notification bell.`},{name:`openNavLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Open navigation`},{name:`rememberCollapsed`,type:`boolean`,required:!1,description:`Remembers the uncontrolled rail state in a cookie.`,default:!1},{name:`resultCountText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is the number of results (one).`,default:`{count} result`},{name:`resultsCountText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is the number of results.`,default:`{count} results`},{name:`roleLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Role:`},{name:`rolesLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Roles:`},{name:`search`,type:`object`,fields:[{name:`loading`,type:`boolean`,required:!1,description:`Shows a loading state in the suggestions.`},{name:`placeholder`,type:`string`,required:!1,description:`Shown while the field is empty. Defaults to Search; it is also the field's accessible name.`},{name:`results`,type:`array`,itemFields:[{name:`hits`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!0,description:`Where the suggestion goes.`},{name:`icon`,type:`icon`,required:!1,description:`An icon before the title.`},{name:`subtitle`,type:`string`,required:!1,description:`A second line under the title.`},{name:`title`,type:`string`,required:!0,description:`The suggestion's text.`}],required:!0,description:`The suggestions in the group.`},{name:`label`,type:`string`,required:!1,description:`The group heading.`}],required:!1,nullable:!0,description:`Suggestion groups, each with a label and its hits. Null hides the list.`},{name:`shortcutKey`,type:`string`,required:!1,description:`One letter, a to z. Pressing Ctrl or Cmd with it focuses the field. The placeholder shows (Ctrl+K), or (⌘K) on a Mac, and aria-keyshortcuts names the chord.`},{name:`value`,type:`string`,required:!0,description:`Controlled text.`}],required:!1,description:`The topbar search. Its onChange, onSelect, onSubmit and onFocus handlers are passed in code; onFocus runs when the field gets focus, for example to open a command palette.`},{name:`searchResultsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Search results`},{name:`sidebarFooter`,type:`node`,required:!1,description:`Pinned below the scrolling nav.`},{name:`sidebarFooterItems`,type:`array`,itemFields:[{name:`active`,type:`boolean`,required:!1,description:`Unset, the row is decided from currentPath. True or false forces it.`},{name:`badge`,type:`node`,required:!1,description:`A count or short status at the row's end.`},{name:`badgeTitle`,type:`string`,required:!1,description:`The badge's hover text, such as 3 invoices overdue.`},{name:`badgeTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Tints the badge, in the AppBadge tone set: danger for an alert count, primary for a plain count.`},{name:`href`,type:`url`,required:!1,description:`Where the label links.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name, or a node for a product's own icon set.`},{name:`iconSize`,type:`number`,required:!1,description:`The icon's width and height in px. Defaults to 22.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named icon. Defaults to linear.`},{name:`key`,type:`string`,required:!1,description:`Stable key of the row.`},{name:`label`,type:`string`,required:!1,description:`The visible label of the row.`},{name:`match`,type:`enum`,enum:[`exact`,`prefix`],required:!1,description:`How href is matched against currentPath. Defaults to prefix.`},{name:`matchAlso`,type:`array`,required:!1,description:`Extra path prefixes that also make this row the current page.`},{name:`newUntil`,type:`string`,required:!1,description:`An ISO date (yyyy-MM-dd, India time). A green New pill shows after the label through that day, and none after it.`},{name:`trailingIcon`,type:`icon`,required:!1,description:`A right-aligned secondary glyph, such as a lock or an external arrow.`}],required:!1,description:`Nav links pinned in the sidebar footer, matched and marked active with the menu links. Flat links only: no children, no tab, no header.`},{name:`sidebarStart`,type:`node`,required:!1,description:`Between the brand row and the nav, such as a workspace switcher or an environment badge. Hidden on the collapsed rail.`},{name:`sidebarStartCompact`,type:`node`,required:!1,description:`The same slot for the collapsed rail, typically a compact monogram control. Shown only on the desktop collapsed rail.`},{name:`skipLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Skip to content`},{name:`tabBarLabel`,type:`string`,required:!1,description:`Accessible name of the phone tab bar.`,default:`Quick navigation`},{name:`togglePagesLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the nav item's label.`,default:`Show or hide {name} pages`},{name:`tone`,type:`enum`,enum:[`brand`,`default`],required:!1,description:`brand paints the sidebar and its parts with the --color-shell-* tokens.`,default:`default`},{name:`topNavDetail`,type:`boolean`,required:!1,description:`With nav top, the panels show each group's label, each link's description and mark the open panel.`,default:!1},{name:`topbarEnd`,type:`node`,required:!1,description:`Trailing topbar slot for page actions. The bell and account menu follow it.`},{name:`topbarStart`,type:`node`,required:!1,description:`Leading topbar slot, such as the page title or crumbs.`},{name:`topbarTone`,type:`enum`,enum:[`neutral`,`primary`],required:!1,description:`The top bar's colour. Primary paints the bar in the primary colour, with the ink that reads on it. The search field keeps its own surface.`,default:`neutral`},{name:`unreadBellLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {label} is the bell's label and {count} the unread count.`,default:`{label}, {count} unread`},{name:`unreadLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Unread`},{name:`unreadNotificationsText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is the unread count.`,default:`{count} unread notifications`},{name:`userMenu`,type:`object`,fields:[{name:`head`,type:`node`,required:!1,description:`Under the name, role and roles lines, such as an email or an account id.`},{name:`items`,type:`array`,itemFields:[{name:`divider`,type:`boolean`,required:!1,description:`Draws a rule instead of a row.`},{name:`href`,type:`url`,required:!1,description:`Where the row links.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name for the row.`},{name:`key`,type:`string`,required:!0,description:`Stable key of the row.`},{name:`label`,type:`node`,required:!1,description:`The visible label of the row.`}],required:!1,description:`Extra rows of the menu, above the sign-out item.`},{name:`logoutAction`,type:`string`,required:!1,description:`A URL a sign-out form POSTs to.`},{name:`logoutLabel`,type:`string`,required:!1,description:`The sign-out item's label. Defaults to Sign out.`},{name:`logoutVariant`,type:`enum`,enum:[`button`,`item`],required:!1,description:`item draws sign-out as a danger row; button draws a full-width soft danger button in its own foot.`,default:`item`},{name:`name`,type:`string`,required:!0,description:`The person's full name. The avatar's initials come from it.`},{name:`noTriggerRole`,type:`boolean`,required:!1,description:`Leave the job title off the topbar trigger, so it shows the name only. The opened menu still shows it.`,default:!1},{name:`outlined`,type:`boolean`,required:!1,description:`Draws an always-on outline around the topbar trigger.`,default:!1},{name:`photo`,type:`string`,required:!1,description:`Profile photo URL.`},{name:`profileHref`,type:`url`,required:!1,description:`Where the profile item goes.`},{name:`profileLabel`,type:`string`,required:!1,description:`The profile item's label. Defaults to My profile.`},{name:`role`,type:`string`,required:!1,description:`A second line: job title or signed-in role.`},{name:`roles`,type:`array`,required:!1,description:`Portal role display names, shown under the job title as Role or Roles. Razor takes one comma-separated string.`},{name:`section`,type:`node`,required:!1,description:`Between the head and the items, such as an account or workspace switcher.`}],required:!1,description:`The account menu at the end of the topbar.`},{name:`viewAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`View all`}],itemsTakeAction:[`sidebarFooterItems`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Every authenticated screen in a portal: mount it once, above the outlet.`,`The product has more than a handful of destinations.`,`You want the same collapse, drawer and topbar behaviour as every sibling product.`],whenNot:[{text:`It is a public marketing page.`,instead:`the Razor site layout`},{text:`It is a sign-in or sign-up screen, so there is no nav to show.`,instead:`a plain centred layout`},{text:`You need a temporary side panel, not the app's navigation.`,instead:`AppDrawer`},{text:`The session has not resolved yet.`,instead:`AppSplash`}],do:[],dont:[],a11y:[`The sidebar is a nav landmark named by navLabel, the phone tab bar is a nav named by tabBarLabel, a skip link jumps to the content, and the current page carries aria-current.`,`The collapse, menu and sub-list buttons are named and report aria-expanded; Escape closes the open navigation drawer, and a closed sub-list is inert and hidden from assistive technology.`,`The account menu button is named with the person's name, the bell is named with its unread count and announces changes in a polite live region, and the topbar search is a combobox with a listbox of suggestions.`]}},{name:`AppShortcutLegend`,marker:`AppShortcutLegend`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the legend root.`,default:``},{name:`items`,type:`string`,required:!1,description:`CSS selector of the items that J and K move between, inside the scope.`},{name:`open`,type:`boolean`,required:!1,description:`Controlled open state of the sheet.`},{name:`search`,type:`string`,required:!1,description:`CSS selector of the field that / focuses.`},{name:`shortcuts`,type:`array`,itemFields:[{name:`group`,type:`string`,required:!1,description:`A heading the row sits under; rows sharing one are listed together.`},{name:`key`,type:`string`,required:!0,description:`One character, or Enter, Esc or /.`},{name:`label`,type:`string`,required:!0,description:`The text shown beside the key.`}],required:!1,description:`The rows of the sheet, in order; the ? row is always last.`,default:[]},{name:`trigger`,type:`boolean`,required:!1,description:`false renders no button; the sheet opens from ?, open, or a data-wui-shortcuts-open element.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A queue or list someone clears every day.`,`A screen whose frequent actions have single-key shortcuts.`],whenNot:[{text:`Screens used now and then.`,instead:`visible buttons only`},{text:`Phone-only screens (no keyboard).`,instead:`visible buttons only`}],do:[],dont:[],a11y:[`A toggle button opens the sheet, which is a dialog; the button reports aria-haspopup, aria-expanded and aria-controls, and carries aria-keyshortcuts for the ? key.`,`Keys typed into a field, or held with Ctrl, Cmd or Alt, do nothing, so typing is never taken over.`,`Esc or a click outside closes the sheet, and the close button is named.`]}},{name:`AppShowMore`,marker:`AppShowMore`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`defaultExpanded`,type:`boolean`,required:!1,description:`Start with the whole text showing; a change after mount is ignored.`,default:!1},{name:`id`,type:`string`,required:!1,description:`The root's id; the text body's id is the root id plus -body. Generated when omitted.`},{name:`lessLabel`,type:`string`,required:!1,description:`The toggle's text while expanded.`,default:`Show less`},{name:`lines`,type:`number`,required:!1,description:`How many lines show while the text is collapsed.`,default:3},{name:`moreLabel`,type:`string`,required:!1,description:`The toggle's text while collapsed.`,default:`Show more`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A description, note or comment that can run to many lines on a detail page.`],whenNot:[{text:`Hiding one line of a table cell or title with an ellipsis.`,instead:`a truncated cell`},{text:`Several sections of content that belong behind headings.`,instead:`AppAccordion`}],do:[],dont:[],a11y:[`The clamp is visual: the full text stays in the page for screen readers.`,`The toggle is a button that reports aria-expanded and points at the text with aria-controls.`,`The toggle shows only when the text overflows, and without script the text shows in full.`]}},{name:`AppSkeleton`,marker:`AppSkeleton`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the bar.`,default:``},{name:`height`,type:`stringOrNumber`,required:!1,description:`Height of the bar: a number is px, a string is any CSS length.`,default:14},{name:`radius`,type:`stringOrNumber`,required:!1,description:`Corner radius of the bar: a number is px, a string is any CSS length.`,default:6},{name:`width`,type:`stringOrNumber`,required:!1,description:`Width of the bar: a number is px, a string is any CSS length.`,default:`100%`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A component is loading its first data, the classic loading && data.length === 0 case.`,`You want the page layout to hold its shape so content doesn't jump on arrival.`,`A table or list is fetching its first page and you want per-row placeholders.`],whenNot:[{text:`The data loaded but the result set is empty.`,instead:`AppEmptyState`},{text:`A table query returned no rows.`,instead:`AppEmptyState variant="table"`},{text:`A short, indeterminate action is running (a button submit).`,instead:`AppButton loading`},{text:`The whole page is blocked on a single request.`,instead:`a page-level spinner`}],do:[{title:`Echo the layout that is loading`,note:`A few bars that echo the real layout, a heading over two body lines. The eye reads it as "content, loading".`,example:[{component:`div`,children:[{component:`AppSkeleton`,props:{width:`70%`,height:16}},{component:`AppSkeleton`,props:{width:`100%`,height:12}},{component:`AppSkeleton`,props:{width:`90%`,height:12}}]}]},{title:`Match table columns while loading`,note:`Table skeletons use the same column count as the loaded table, so headers and widths never shift.`,example:[{component:`table`,children:[{component:`tbody`,children:[{component:`AppSkeletonRows`,props:{rows:3,cols:4}}]}]}]}],dont:[{title:`Echo the layout that is loading`,note:`One giant block tells the user nothing about what's coming and reflows hard when the real, smaller content lands.`,example:[{component:`AppSkeleton`,props:{width:`100%`,height:120}}]},{title:`Match table columns while loading`,note:`Two loose bars where a table is loading leaves the columns to snap into place on arrival.`,example:[{component:`div`,children:[{component:`AppSkeleton`,props:{width:`100%`,height:12}},{component:`AppSkeleton`,props:{width:`100%`,height:12}}]}]}],a11y:[`The bar is a span with aria-hidden set to true, so screen readers skip it.`,`The bar has no role and takes no focus.`]}},{name:`AppSkeletonLines`,marker:`AppSkeletonLines`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the wrapper.`,default:``},{name:`lastLineWidth`,type:`string`,required:!1,description:`Width of the last line as a CSS length string, such as 60% or 12rem. The other lines are full width.`,default:`60%`},{name:`lines`,type:`number`,required:!1,description:`How many lines to draw, an integer from 1 to 12. Any other value renders the default and warns.`,default:3}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A paragraph of text is loading and the page should hold its shape.`,`A card or a description is waiting for its first data.`],whenNot:[{text:`A single bar stands in for one element, such as a heading or a value.`,instead:`AppSkeleton`},{text:`A table is loading its first page.`,instead:`AppSkeletonRows`},{text:`The data loaded but the result set is empty.`,instead:`AppEmptyState`},{text:`The whole page is blocked on a single request.`,instead:`a page-level spinner`}],do:[],dont:[],a11y:[`The wrapper is aria-hidden, so screen readers skip the placeholder lines.`,`The lines have no role and take no focus.`]}},{name:`AppSkeletonRows`,marker:null,acceptsChildren:!1,props:[{name:`cols`,type:`number`,required:!1,description:`Number of placeholder cells in each row.`,default:5},{name:`rows`,type:`number`,required:!1,description:`Number of placeholder rows to draw.`,default:4}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table is fetching its first page and you want per-row placeholders.`,`You know the column count of the loaded table, so the layout holds its shape on arrival.`],whenNot:[{text:`The data loaded but the result set is empty.`,instead:`AppEmptyState`},{text:`A table query returned no rows.`,instead:`AppEmptyState variant="table"`}],do:[{title:`Match skeleton columns to the table`,note:`Table skeletons use the same column count as the loaded table, so headers and widths never shift.`,example:[{component:`table`,children:[{component:`tbody`,children:[{component:`AppSkeletonRows`,props:{rows:3,cols:4}}]}]}]}],dont:[{title:`Match skeleton columns to the table`,note:`Two loose bars where a table is loading leaves the columns to snap into place on arrival.`,example:[{component:`div`,children:[{component:`AppSkeleton`,props:{width:`100%`,height:12}},{component:`AppSkeleton`,props:{width:`100%`,height:12}}]}]}],a11y:[`Every placeholder bar is an AppSkeleton, which is aria-hidden, so screen readers skip the rows.`]}},{name:`AppSlider`,marker:`AppSlider`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when no visible label is used.`},{name:`className`,type:`string`,required:!1,description:`Class applied to the control element.`,default:``},{name:`defaultEnd`,type:`number`,required:!1,description:`The starting end of an uncontrolled range.`},{name:`defaultStart`,type:`number`,required:!1,description:`The starting start of an uncontrolled range.`},{name:`defaultValue`,type:`number`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`end`,type:`number`,required:!1,description:`Range end (range mode).`},{name:`endName`,type:`string`,required:!1,description:`Form field name for range end.`},{name:`error`,type:`string`,required:!1,description:`Error text under the control; sets aria-invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class applied to the wrapper field element.`,default:``},{name:`grouping`,type:`enum`,enum:[`indian`,`none`],required:!1,description:`Digit grouping of the value label: indian writes 1,50,000; none writes 150000.`,default:`none`},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the control.`},{name:`id`,type:`string`,required:!1,description:`Element id; a generated id is used when omitted.`},{name:`label`,type:`string`,required:!1,description:`Visible label above the control.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`number`,required:!1,description:`Highest value the slider can take.`,default:100},{name:`min`,type:`number`,required:!1,description:`Lowest value the slider can take.`,default:0},{name:`name`,type:`string`,required:!1,description:`Form field name (single mode).`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`range`,type:`boolean`,required:!1,description:`Enables dual-thumb range mode.`,default:!1},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`showValue`,type:`boolean`,required:!1,description:`Shows a label with the current value or values.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Control size tier.`},{name:`start`,type:`number`,required:!1,description:`Range start (range mode).`},{name:`startName`,type:`string`,required:!1,description:`Form field name for range start.`},{name:`step`,type:`number`,required:!1,description:`Distance between two allowed values.`,default:1},{name:`unit`,type:`string`,required:!1,description:`Suffix for the value label, for example %.`},{name:`value`,type:`number`,required:!1,description:`Current value (single mode).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Pick a single numeric value visually (volume, brightness, rating)`,`Select a range (price range, budget, date window)`,`Compare multiple values on a continuous scale`,`When keyboard input is secondary to visual feedback`],whenNot:[{text:`Precise multi-digit values.`,instead:`AppNumberInput`},{text:`Categorical choices.`,instead:`AppSelect, AppRadio, or AppSegmented`},{text:`Boolean on/off.`,instead:`AppSwitch`},{text:`When the scale is unclear (add labels or a reference)`}],do:[],dont:[],a11y:[`The visible label is tied to the control by id, and the control takes its accessible name from a text label or from ariaLabel.`,`aria-describedby points at the error text, or at the helper text when there is no error, and an error also sets aria-invalid.`,`A required slider shows a required mark beside its label and carries the required attribute.`]}},{name:`AppSortableList`,marker:`AppSortableList`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Names the list for assistive tech; also used in announcements when an item moves between lists.`},{name:`bordered`,type:`boolean`,required:!1,description:`False draws no border, fill or padding around each item.`,default:!0},{name:`className`,type:`string`,required:!1,description:`Extra class names for the list element.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`No item can be picked up.`,default:!1},{name:`group`,type:`string`,required:!1,description:`Name shared by lists that accept each other's items.`},{name:`handle`,type:`boolean`,required:!1,description:`Drag only from the handle. Without it an item can also be dragged from its body (links, buttons and inputs inside it keep working).`,default:!1},{name:`handleDisplay`,type:`enum`,enum:[`always`,`hover`],required:!1,description:`always shows every handle; hover shows it on item hover, handle focus, while lifted, and always on touch screens. Hover also turns the handle on.`,default:`always`},{name:`items`,type:`array`,itemFields:[{name:`content`,type:`node`,required:!1,description:`Replaces the visible text of the item.`},{name:`disabled`,type:`boolean`,required:!1,description:`Stops the item being picked up; other items can still move past it.`},{name:`id`,type:`string`,required:!0,description:`What onReorder reports for the item.`},{name:`label`,type:`string`,required:!0,description:`Names the item to assistive tech and is the visible text unless content is given.`}],required:!1,description:`The items, in the order shown. Each has an id, a label and optionally content and a disabled flag.`,default:[]},{name:`name`,type:`string`,required:!1,description:`Form field name; posts the order as one hidden input per item.`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Direction the items run; horizontal also covers a wrapping row.`,default:`vertical`},{name:`reorderLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the item's label.`,default:`Reorder {name}`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The person decides the order: priorities, steps, sections, the columns of a report.`,`A short list where seeing every item at once is the point.`],whenNot:[{text:`Rows the person adds and removes, not just orders.`,instead:`AppRepeater`},{text:`Sorting a table by a column.`,instead:`AppDataTable`},{text:`Choosing from options, not ordering them.`,instead:`AppSelect mode="multiple"`}],do:[],dont:[],a11y:[`Focus an item's handle, press Space to lift it, the arrow keys to move it, Space to drop it and Escape to cancel.`,`Every move is announced to screen readers, including a move between lists.`,`The list has role list and each item role listitem; each handle is a button named Reorder followed by the item label.`]}},{name:`AppSparkline`,marker:`AppSparkline`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the svg.`,default:``},{name:`data`,type:`array`,required:!1,description:`The values, in order. A value that is not a finite number (null, NaN, a string) is left out, and no data or a series with none left draws nothing.`},{name:`height`,type:`number`,required:!1,description:`Height in px.`,default:16},{name:`label`,type:`string`,required:!1,description:`What the trend measures; it starts the text alternative.`},{name:`namedTrendLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {label} is the label prop.`,default:`{label} trend`},{name:`oneValueText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The tokens are {name} (the trend name) and {value} (the one value).`,default:`{name} has one value, {value}.`},{name:`rangeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The tokens are {name} (the trend name), {from} and {to} (the first and last values) and {count} (the number of points).`,default:`{name} from {from} to {to} across {count} points.`},{name:`trendLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Trend`},{name:`width`,type:`number`,required:!1,description:`Width in px.`,default:48},{name:`yMin`,type:`number`,required:!1,description:`The lowest value of the line's range. Unset: the lowest data value.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The direction of a number matters more than its exact value, in a table row or beside a figure.`,`There is room for a word-sized picture and none for axes.`],whenNot:[{text:`Values that must be read, compared or dated.`,instead:`AppChart`},{text:`One reading against a known range.`,instead:`AppMeter`}],do:[],dont:[],a11y:[`The svg has role img and an aria-label that names the trend and says where the line starts and ends.`,`A custom aria-label replaces that text, and aria-hidden set to true hides the sparkline when the figure sits beside it in text.`,`A series with no usable value draws nothing.`]}},{name:`AppSpinner`,marker:`AppSpinner`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names for the spinner element.`,default:``},{name:`label`,type:`string`,required:!1,description:`Accessible name.`,default:`Loading`},{name:`size`,type:`enumOrNumber`,enum:[`md`,`sm`],required:!1,description:`A preset (sm or md), or an exact diameter in px; the border scales with it. Pass any positive number so the spinner matches what it sits in.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A short, shapeless wait, such as a validity check or an inline recalculation.`,`The busy area is too small for a skeleton to read as anything.`,`You need a busy indicator next to a status line or in a table cell.`],whenNot:[{text:`Content with a known shape is loading.`,instead:`AppSkeleton / AppSkeletonRows`},{text:`A button is submitting.`,instead:`AppButton's loading prop`},{text:`The whole app is booting.`,instead:`AppSplash`},{text:`The wait finished and there is nothing to show.`,instead:`AppEmptyState`}],do:[{title:`Name what is loading`,note:`A label that says what is happening, sized to sit inline with the thing it belongs to.`,example:[{component:`AppSpinner`,props:{size:`sm`,label:`Checking availability`}}]}],dont:[{title:`Name what is loading`,note:`A lone spinner filling a content area: no indication of what is loading, no idea how long, and the layout will jump when the real content arrives.`,example:[{component:`div`,children:[{component:`AppSpinner`}]}]}],a11y:[`The spinner is a span with role status, named by label, which is Loading unless you set it.`]}},{name:`AppSplash`,marker:`AppSplash`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`description`,type:`string`,required:!1,description:`One line of text under the mark, for example Signing you in.`},{name:`initials`,type:`string`,required:!1,description:`The fallback mark shown when there is no logo.`},{name:`label`,type:`string`,required:!1,description:`The accessible name for the live region.`,default:`Loading`},{name:`logo`,type:`node`,required:!1,description:`The brand mark, an image or an SVG. It takes the place of the initials.`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`],required:!1,description:`The mark size, a preset or an exact diameter in px. The presets are 44, 56 and 72 px.`,default:`md`},{name:`subtext`,type:`string`,required:!1,description:`A quieter second line under the text.`},{name:`variant`,type:`enum`,enum:[`bar`,`dots`,`ring`],required:!1,description:`The indeterminate boot indicator: a sweeping bar, a spinning ring or bouncing dots. Boot has no measurable percentage, so the indicator never shows progress.`,default:`bar`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The app is resolving its session and no route can render yet.`,`You are restoring state on cold start and the shell is not ready.`,`A flash of the wrong screen would otherwise be visible.`],whenNot:[{text:`A section of an already-rendered page is loading.`,instead:`AppSkeleton`},{text:`A small, shapeless wait.`,instead:`AppSpinner`},{text:`A form is submitting. Use the loading prop of the button.`,instead:`AppButton`},{text:`Boot failed and the user must be told.`,instead:`AppAlert`}],do:[],dont:[],a11y:[`The screen is a polite live region (role status, aria-live polite) named by label, so a screen reader announces the state once it settles without interrupting.`,`The indicator (bar, ring or dots) is hidden from assistive technology; the text and label carry the meaning.`,`The mark is the logo, or the initials when there is no logo.`]}},{name:`AppSplitButton`,marker:`AppSplitButton`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Which edge the menu lines up with.`,default:`end`},{name:`className`,type:`string`,required:!1,description:`Extra CSS classes added to the group.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Disables both halves.`,default:!1},{name:`href`,type:`url`,required:!1,description:`Makes the main button a link.`},{name:`items`,type:`array`,itemFields:[{name:`divider`,type:`boolean`,required:!1,description:`Draws a separator instead of an item.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name or any node, drawn before the item's text.`},{name:`image`,type:`string`,required:!1,description:`An image URL drawn before the item's text.`},{name:`key`,type:`string`,required:!0,description:`The React key of the menu item. Not shown.`},{name:`label`,type:`string`,required:!1,description:`The item's text.`},{name:`shortcut`,type:`string`,required:!1,description:`A key chip shown after the item's text.`},{name:`to`,type:`string`,required:!1,description:`The address the item links to.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" draws the item in the danger colour.`}],required:!1,description:"The menu, as the dropdown takes it. Each item needs a unique `key`. An item with divider true draws a separator.",default:[]},{name:`label`,type:`string`,required:!0,description:`The main button's text, also the group's accessible name.`},{name:`leftIcon`,type:`string`,required:!1,description:`The icon name before the main label.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the spinner on the main button and disables both halves.`,default:!1},{name:`menuLabel`,type:`string`,required:!1,description:`The accessible name of the chevron.`,default:`More actions`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the main action, drawn as a key chip after the label.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of both halves.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Both halves share it.`,default:`primary`},{name:`type`,type:`enum`,enum:[`button`,`reset`,`submit`],required:!1,description:`The main button's type.`,default:`button`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Both halves share it.`,default:`solid`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A primary action with two or three close alternatives (save and close, reply all).`,`A default the user can change without leaving the screen.`],whenNot:[{text:`Several equal actions.`,instead:`AppButtonGroup`},{text:`A menu with no main action.`,instead:`AppDropdown`}],do:[],dont:[],a11y:[`The two halves are one group (role group) named by label.`,`The chevron is named by menuLabel; Enter or Space on it opens the menu, arrows move, Escape closes it and returns focus to the chevron.`,`Disabled or loading disables both halves.`]}},{name:`AppSplitView`,marker:`AppSplitView`,acceptsChildren:!1,props:[{name:`bulkActions`,type:`node`,required:!1,description:`Buttons shown in place of the header while items are ticked, beside "N selected".`},{name:`chips`,type:`node`,required:!1,description:`A row under the header for the active filters.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root element.`,default:``},{name:`currentKey`,type:`stringOrNumber`,required:!1,description:`The key of the open item. It gets aria-current and the subtle primary background.`},{name:`empty`,type:`node`,required:!1,description:`Shown when there are no items.`,default:`Nothing here yet.`},{name:`header`,type:`node`,required:!1,description:`The list header: a count, a sort label, a filter trigger.`},{name:`items`,type:`array`,itemFields:[{name:`badge`,type:`stringOrNumber`,required:!1,description:`A short count or label at the end of the row.`},{name:`href`,type:`url`,required:!1,description:`Makes the item a link. Below stackBelow it follows the link instead of calling onSelect.`},{name:`key`,type:`stringOrNumber`,required:!0,description:`The React key of the item. Not shown.`},{name:`meta`,type:`node`,required:!1,description:`The line under the title, such as a sender or an excerpt.`},{name:`title`,type:`node`,required:!0,description:`The item's title, the first line of the list row.`},{name:`trailing`,type:`node`,required:!1,description:`Sits at the end of the row, such as a date.`}],required:!1,description:"The list. meta is the line under the title (sender, excerpt), trailing sits at the end (a date), badge is a short count or label. Keep links and buttons out of all three: the item is itself a link (with href) or a button. Each item needs a unique `key`, a string or a number.",default:[]},{name:`itemsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Items`},{name:`listWidth`,type:`enum`,enum:[3,4,5,6,7,8],required:!1,description:`The list's share of 12 columns when side by side.`,default:5},{name:`loading`,type:`boolean`,required:!1,description:`Placeholder items instead of the list.`,default:!1},{name:`loadingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Loading`},{name:`moveLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Move`},{name:`nextItemLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Next item`},{name:`openLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Open`},{name:`pager`,type:`boolean`,required:!1,description:`The record pager at the end of the pane header: "3 of 12" over the items on screen, and previous and next, which open the item before or after the open one as a click on it would. Turn it off to put your own pager in paneHeader for a paged list whose total is larger than the items on screen.`,default:!0},{name:`pane`,type:`node`,required:!1,description:`The open item's content.`},{name:`paneHeader`,type:`node`,required:!1,description:`Above the pane, before the pager: the open item's title or status, and a link back to the list for phones.`},{name:`previousItemLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Previous item`},{name:`readingPaneLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Reading pane`},{name:`selectAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Select all items`},{name:`selectItemLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {title} is the item's title.`,default:`Select {title}`},{name:`selectable`,type:`boolean`,required:!1,description:`A checkbox on each item and a select-all box in the header.`,default:!1},{name:`selectedKeys`,type:`array`,required:!1,description:`The keys of the ticked items. Each key is a string or a number, and the component reads it as a set.`},{name:`selectedLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {count} is the number of ticked items.`,default:`{count} selected`},{name:`shortcuts`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!0,description:`The React key of the shortcut. Not shown.`},{name:`label`,type:`string`,required:!0,description:`The name of the shortcut, shown in the shortcut sheet.`}],required:!1,description:"Extra single-key shortcuts (archive, approve), listed in the ? sheet. J, K, Enter, ? (and X with selectable) are built in and win over an extra with the same key. Each shortcut needs a `key`, a single key such as e."},{name:`shortcutsEnabled`,type:`boolean`,required:!1,description:`The keyboard shortcuts and their legend. They listen while focus is in the view, or nowhere for the first view on the page.`,default:!0},{name:`stackBelow`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`,`xxl`],required:!1,description:`Below this tier the list and pane are two screens.`,default:`xl`},{name:`untitledItemLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Read in place of a title that is not text.`,default:`item`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`People work through a queue one item at a time: approvals, an inbox, drafts, review.`,`Each item needs reading, not just a glance at a row.`,`Moving to the next item should take one key, not a page load.`],whenNot:[{text:`People compare items across many columns.`,instead:`AppDataTable`},{text:`The detail is a quick peek from a table.`,instead:`AppDrawer`},{text:`Each item is edited in a long form.`,instead:`its own page`}],do:[{title:`Mark the open list item`,note:`One item is open and marked in the list, so it is clear what the pane shows.`,example:[{component:`AppSplitView`,props:{items:[{key:`r1`,title:`Leave request: 3 days`,meta:`Asha Rao · Design`,trailing:`09:12`,badge:2},{key:`r2`,title:`Expense claim: client travel`,meta:`Dev Patel · Sales`,trailing:`Yesterday`},{key:`r3`,title:`Laptop replacement`,meta:`Meera Iyer · Engineering`,trailing:`Mon`}],currentKey:`r2`,pane:{component:`p`,children:`Expense claim: client travel`}}}]},{title:`One line of context per item`,note:`Items carry a title and one line of context; the detail waits in the pane.`,example:[{component:`AppSplitView`,props:{items:[{key:`r1`,title:`Leave request: 3 days`,meta:`Asha Rao · Design`,trailing:`09:12`,badge:2},{key:`r2`,title:`Expense claim: client travel`,meta:`Dev Patel · Sales`,trailing:`Yesterday`},{key:`r3`,title:`Laptop replacement`,meta:`Meera Iyer · Engineering`,trailing:`Mon`}],currentKey:`r1`,shortcutsEnabled:!1,pane:{component:`p`,children:`Leave request: 3 days`}}}]}],dont:[{title:`Mark the open list item`,note:`A pane with content but no open item: nothing in the list says which item it belongs to.`,example:[{component:`AppSplitView`,props:{items:[{key:`r1`,title:`Leave request: 3 days`,meta:`Asha Rao · Design`,trailing:`09:12`,badge:2},{key:`r2`,title:`Expense claim: client travel`,meta:`Dev Patel · Sales`,trailing:`Yesterday`},{key:`r3`,title:`Laptop replacement`,meta:`Meera Iyer · Engineering`,trailing:`Mon`}],shortcutsEnabled:!1,pane:{component:`p`,children:`Expense claim: client travel`}}}]},{title:`One line of context per item`,note:`Packing the detail into the list makes every item tall and the queue slow to scan.`,example:[{component:`AppSplitView`,props:{items:[{key:`r1`,title:`Leave request: 3 days`,meta:`Asha Rao · Design · Pending · 09:12 · submitted with three attachments and a note`},{key:`r2`,title:`Expense claim: client travel`,meta:`Dev Patel · Sales · Pending · Yesterday · submitted with three attachments and a note`},{key:`r3`,title:`Laptop replacement`,meta:`Meera Iyer · Engineering · Approved · Mon · submitted with three attachments and a note`}],currentKey:`r1`,shortcutsEnabled:!1,pane:{component:`p`,children:`Leave request: 3 days`}}}]}],a11y:[`The open item carries aria-current true. J and K move between items, Enter opens the focused one, X ticks it when selectable, and ? lists every shortcut.`,`Each item checkbox is named Select followed by the item title, and the select-all box is named Select all items; the selected count is a polite live region.`,`The list is named Items and shows aria-busy while loading; the pane is a section named Reading pane that takes focus.`]}},{name:`AppStatusBadge`,marker:`AppStatusBadge`,acceptsChildren:!1,props:[{name:`bordered`,type:`boolean`,required:!1,description:`Draws a 1px border in the tone's own colour, so the pill stands off a white row.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the pill, appended after the tone class.`,default:``},{name:`label`,type:`node`,required:!1,description:`The status text, as a string or a React node. When it is empty the badge draws a plain hyphen.`},{name:`tone`,type:`string`,required:!1,description:`The tone class suffix: neutral, primary, success, warning, danger or info.`,default:`neutral`},{name:`tooltip`,type:`string`,required:!1,description:`A hover and focus tooltip that flips to stay on screen. Use it to spell out a terse status.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The preferred tooltip side. Auto picks the side with the most room.`,default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are showing where a record stands, a lifecycle or workflow status.`,`A table has a status column that should read consistently down the list.`,`You are mapping a status enum to a coloured pill.`],whenNot:[{text:`You are showing a count or a short static label.`,instead:`AppBadge`},{text:`The token should be removable (a filter or tag).`,instead:`AppChip`},{text:`The user is picking one option from a set.`,instead:`AppChoiceChip`},{text:`It is a persistent inline message.`,instead:`AppAlert`}],do:[{title:`One consistent tone per status`,note:`Each status maps to a consistent, meaningful tone: the colour reinforces the word.`,example:[{component:`AppStatusBadge`,props:{label:`Active`,tone:`success`}},{component:`AppStatusBadge`,props:{label:`Pending`,tone:`warning`}},{component:`AppStatusBadge`,props:{label:`Failed`,tone:`danger`}}]},{title:`Pill holds one or two words`,note:`A single, concise status word, instantly scannable.`,example:[{component:`AppStatusBadge`,props:{label:`Failed`,tone:`danger`}}]}],dont:[{title:`One consistent tone per status`,note:`One tone for every status throws away the signal: the colour tells the user nothing.`,example:[{component:`AppStatusBadge`,props:{label:`Active`,tone:`info`}},{component:`AppStatusBadge`,props:{label:`Pending`,tone:`info`}},{component:`AppStatusBadge`,props:{label:`Failed`,tone:`info`}}]},{title:`Pill holds one or two words`,note:`A pill is not a place for a sentence: keep the status to a word or two and explain elsewhere.`,example:[{component:`AppStatusBadge`,props:{label:`Payment failed, retry scheduled for tomorrow`,tone:`danger`}}]}],a11y:[`The status is real text in a span, so the word carries the meaning and the colour only reinforces it.`,`With no label the badge draws a plain hyphen instead of an empty pill.`,`A tooltip, when set, opens on hover and on keyboard focus and flips to stay on screen.`]}},{name:`AppStepper`,marker:`AppStepper`,acceptsChildren:!1,props:[{name:`active`,type:`number`,required:!1,description:`The index of the current step. Steps before it are done, the one at it is active, the rest are pending; a step's own status still wins.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the stepper's root element.`,default:``},{name:`iconSize`,type:`number`,required:!1,description:`The width and height in px of every step glyph. Unset, it follows size.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of every step glyph.`,default:`linear`},{name:`label`,type:`string`,required:!1,description:`The accessible name of the list.`,default:`Progress`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Lay the steps out in a row or stack them down a side rail.`,default:`horizontal`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Scales the badge, its number, the labels and the glyphs together.`,default:`md`},{name:`stepLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {number} is the step's number.`,default:`Step {number}`},{name:`steps`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A short second line under the label.`},{name:`href`,type:`url`,required:!1,description:`Makes the step a link back to that stage.`},{name:`icon`,type:`string`,required:!1,description:`An icon name shown in place of the step number.`},{name:`key`,type:`string`,required:!1,description:`The React key of the step. Not shown.`},{name:`label`,type:`string`,required:!0,description:`The text under the step: what the step is for.`},{name:`status`,type:`enum`,enum:[`active`,`done`,`error`,`pending`],required:!1,description:`The state of the step. A done step shows a tick and an error step an alert; an unset status follows active.`}],required:!1,description:"The stages of the flow, in order. A step with href links back to that stage. Each step may carry a unique `key`.",default:[]},{name:`tone`,type:`enum`,enum:[`info`,`primary`],required:!1,description:`The accent of the active and done steps.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`journey`,`steps`],required:!1,description:`steps is compact, a numbered circle above its label. journey is wide, a large dot beside a step index and a title.`,default:`steps`}],itemsTakeAction:[`steps`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A task is split across several screens and the user needs to see the shape of it.`,`Steps have a fixed order and a known count.`,`Finished steps matter: the user may want to go back and check one.`],whenNot:[{text:`The sections are alternative views the user switches between freely.`,instead:`AppTabs`},{text:`It is one long form on a single screen.`,instead:`the .fld-section heading`},{text:`The number of steps is unknown or changes as the user goes.`,instead:`a progress message`},{text:`You are showing progress of a background job.`,instead:`AppSpinner`}],do:[{title:`Name each step by its action`,note:`Label each step with the action it performs, and mark exactly one step active. Three to five steps is the readable range.`,example:[{component:`AppStepper`,props:{steps:[{key:`a`,label:`Add site`,status:`done`},{key:`b`,label:`Add zones`,status:`active`},{key:`c`,label:`Create report`}]}}]}],dont:[{title:`Name each step by its action`,note:`The label "Step 2" adds nothing: the circle already says 2. The label is the only place that can tell the user what the step is for.`,example:[{component:`AppStepper`,props:{steps:[{key:`a`,label:`Step 1`,status:`done`},{key:`b`,label:`Step 2`,status:`active`},{key:`c`,label:`Step 3`}]}}]}],a11y:[`The stepper is a nav named by label, and the active step carries aria-current step, so a screen reader announces where the user is.`,`A finished step shows a tick and a failed step shows an alert glyph instead of its number, so the state is not carried by colour alone.`,`A step with href is a link and, with onStepClick in code, every step is a button; a step with neither is plain text.`]}},{name:`AppSwitch`,marker:`AppSwitch`,acceptsChildren:!1,props:[{name:`checked`,type:`boolean`,required:!1,description:`Controlled on or off state. Pair it with onChange.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the form-check wrapper.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultChecked`,type:`boolean`,required:!1,description:`The starting state when the switch is uncontrolled.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the switch and dims it.`},{name:`error`,type:`string`,required:!1,description:`Error message shown below the control. It replaces the helper text and marks the switch invalid.`},{name:`help`,type:`node`,required:!1,description:`Content for the info-tip after the label. Shown only when a label is set.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown below the control. It is hidden while an error shows.`},{name:`id`,type:`string`,required:!1,description:`The id of the switch input, which its label points at. A generated id is used when none is given.`},{name:`label`,type:`node`,required:!1,description:`The text shown beside the switch. It is a real label tied to the input.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The field name the switch posts under in a form.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`,`pill`,`round`],required:!1,description:`The track shape. round is the sliding pill with circular ends, pill is the same pill with squircle ends, and circle is a compact round on/off button.`,default:`round`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control size: sm, md or lg.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A single on/off setting that takes effect immediately.`,`Toggling a live feature or preference: dark mode, notifications, a feature flag.`,`A binary state where "instant" is the mental model, not "save later".`],whenNot:[{text:`The opt-in is saved with the rest of a form.`,instead:`AppCheckbox`},{text:`The user picks one of several exclusive options.`,instead:`AppRadio`},{text:`It triggers an action rather than holding a state.`,instead:`AppButton`},{text:`The user selects several values from a list.`,instead:`AppSelect mode="multiple"`}],do:[{title:`Use a switch for instant settings`,note:`An on/off setting that applies right away. The switch reads as a live control.`,example:[{component:`AppSwitch`,props:{label:`Email notifications`,checked:!0},handlers:[`onChange`]}]},{title:`Caption every switch`,note:`Each switch is captioned, so the user knows exactly what it controls and its current state.`,example:[{component:`AppSwitch`,props:{label:`Auto-renew`,defaultChecked:!0}},{component:`AppSwitch`,props:{label:`Beta features`}}]}],dont:[{title:`Use a switch for instant settings`,note:`A checkbox reads as a form field to submit later, the wrong signal for an instant toggle.`,example:[{component:`AppCheckbox`,props:{label:`Email notifications`,defaultChecked:!0}}]},{title:`Caption every switch`,note:`A bare switch with no caption leaves the user guessing what it turns on.`,example:[{component:`AppSwitch`,props:{label:`Setting`,defaultChecked:!0}}]}],a11y:[`The control is a native checkbox input, so Space toggles it and it posts with a form.`,`label draws a real label tied to the input by id, using a generated id when none is given.`,`An error sets aria-invalid to true and is linked to the input with aria-describedby; helper text is linked the same way while no error shows.`]}},{name:`AppTablePagination`,marker:`AppTablePagination`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the pager.`,default:`Pagination`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the pager.`,default:``},{name:`hasNext`,type:`boolean`,required:!1,description:`Set when the total is not known yet: draws Previous and Next only, Next disabled when false. Leave total and totalPages unset.`},{name:`mode`,type:`enum`,enum:[`numbered`,`prev-next`],required:!1,description:`numbered shows windowed page buttons (first, last and an ellipsis over any run of hidden pages) between the arrows. prev-next shows the arrows with a Page N of M readout.`,default:`numbered`},{name:`nextLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Next page`},{name:`page`,type:`number`,required:!0,description:`The current page, counted from 1.`},{name:`pageLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {page} is the page number.`,default:`Page {page}`},{name:`pageSize`,type:`number`,required:!1,description:`The rows per page. The page-size menu shows it as selected; without it, or without onPageSizeChange, no menu shows.`},{name:`pageSizeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {count} is the page size.`,default:`{count} per page`},{name:`pageSizes`,type:`array`,required:!1,description:`The page sizes the menu offers. It offers 5, 10, 25 and 50 when left out. The current pageSize is added when it is not in the list.`},{name:`previousLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Previous page`},{name:`rangeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The tokens {page} and {pages} are the current page and the page count.`,default:`Page {page} of {pages}`},{name:`rowsPerPageLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Rows per page`},{name:`showPageSize`,type:`boolean`,required:!1,description:`Shows the page-size menu. Set it to false for a pager that pages but does not expose the page size.`,default:!0},{name:`siblings`,type:`number`,required:!1,description:`The pages shown either side of the current page in numbered mode.`,default:2},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`sm draws 28px page and arrow buttons with 12px text.`,default:`md`},{name:`summary`,type:`boolean`,required:!1,description:`Shows Showing x to y of z at the start of the pager. It needs total and pageSize; without both nothing is shown.`,default:!1},{name:`summaryText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The tokens {first}, {last} and {total} are the first and last rows on the page and the row total. It shows with summary.`,default:`Showing {first} to {last} of {total}`},{name:`total`,type:`number`,required:!1,description:`The number of rows across all pages. Used when totalPages is not given: the page count is the total divided by pageSize, rounded up.`},{name:`totalPages`,type:`number`,required:!1,description:`The number of pages. It wins over total when both are given.`},{name:`variant`,type:`enum`,enum:[`footer`,`standalone`],required:!1,description:`footer sits under a table, right aligned, with a top rule. standalone is centred with no rule, for cards and lists.`,default:`footer`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A list is long enough that showing everything at once is unwieldy.`,`The user needs to control how many rows they see at a time.`,`You are paging content that is not an AppDataTable and need the footer standalone.`],whenNot:[{text:`The list is short and fits comfortably on one screen.`,instead:`no pager`},{text:`You are already using AppDataTable.`,instead:`the pagination prop on AppDataTable`},{text:`The user should keep scrolling instead of paging.`,instead:`infinite scroll`}],do:[{title:`Show the page and the total`,note:`The page buttons show the current page and how many there are, so the user always knows where they are in the list.`,example:[{component:`AppTablePagination`,props:{page:1,totalPages:5,pageSize:10}}]},{title:`Sit the pager under its table`,note:`The pager sits flush under the table it controls, so the two read as one visual unit.`,example:[{component:`div`,children:[{component:`AppDataTable`,props:{columns:[{key:`name`,label:`Building`},{key:`status`,label:`Status`}],rows:[{id:1,name:`Building 1`,status:`Draft`},{id:2,name:`Building 2`,status:`Compliant`},{id:3,name:`Building 3`,status:`Compliant`},{id:4,name:`Building 4`,status:`Draft`},{id:5,name:`Building 5`,status:`Compliant`}]}},{component:`AppTablePagination`,props:{page:1,totalPages:9,pageSize:5}}]}]}],dont:[{title:`Show the page and the total`,note:`Bare prev/next buttons with no page readout hide how big the list is or where the user stands.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`button`,props:{type:`button`,className:`btn btn-sm`},children:`Prev`},{component:`button`,props:{type:`button`,className:`btn btn-sm`},children:`Next`}]}]},{title:`Sit the pager under its table`,note:`A pager floating above its table breaks the expected footer placement and reads as disconnected.`,example:[{component:`div`,children:[{component:`AppTablePagination`,props:{page:1,totalPages:5,pageSize:10}},{component:`AppDataTable`,props:{columns:[{key:`name`,label:`Building`},{key:`status`,label:`Status`}],rows:[{id:1,name:`Building 1`,status:`Draft`},{id:2,name:`Building 2`,status:`Compliant`},{id:3,name:`Building 3`,status:`Compliant`}]}}]}]}],a11y:[`The previous and next arrows are native buttons named Previous page and Next page, disabled on the first and last page.`,`Each page button is named Page N, and the current one carries aria-current="page".`,`The ellipsis between page buttons is hidden from assistive technology.`,`The page-size menu is named Rows per page.`]}},{name:`AppTableToolbar`,marker:`AppTableToolbar`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:`The right side: search, export or a columns menu.`},{name:`allMatchingSelected`,type:`boolean`,required:!1,description:`Every matching row is selected: the bar reads All N selected and Clear becomes Clear selection. The screen resets it on any row change.`,default:!1},{name:`allSelectedLabel`,type:`string`,required:!1,description:`The bulk bar's count text when every matching row is selected, for other languages. {count} is the matching row total.`,default:`All {count} selected`},{name:`bulkActions`,type:`node`,required:!1,description:`The buttons shown in the bulk bar.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the toolbar.`,default:``},{name:`clearLabel`,type:`string`,required:!1,description:`The Clear button's text, for other languages.`,default:`Clear`},{name:`clearSelectionLabel`,type:`string`,required:!1,description:`The Clear button's text when every matching row is selected, for other languages.`,default:`Clear selection`},{name:`filters`,type:`node`,required:!1,description:`The left side: status segments, chips or a filter menu.`},{name:`pageCount`,type:`number`,required:!1,description:`The rows on the current page. The offer waits until selectedCount reaches it; without it, any selection qualifies.`},{name:`selectAllMatchingLabel`,type:`string`,required:!1,description:`The Select all button's text, for other languages. {count} is the matching row total.`,default:`Select all {count} matching`},{name:`selectedCount`,type:`number`,required:!1,description:`The number of selected rows. Above 0 the bulk bar replaces the toolbar.`,default:0},{name:`selectedLabel`,type:`string`,required:!1,description:`The bulk bar's count text, for other languages. {count} is the selected row count.`,default:`{count} selected`},{name:`totalCount`,type:`number`,required:!1,description:`The rows matching across every page. With onSelectAllMatching, the bulk bar offers Select all N matching once the page is selected and more rows match than it shows.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table needs filters, a search box or export above it.`,`Rows are selectable and the selection has actions of its own.`,`You want the filter strip and the bulk bar to share one place, so the table never jumps.`],whenNot:[{text:`The table has no filters, search or selection.`,instead:`no toolbar`},{text:`You are paging through rows.`,instead:`AppTablePagination`},{text:`The action belongs to one row, not a selection.`,instead:`the rowActions prop on AppDataTable`}],do:[{title:`Show bulk actions only when selected`,note:`Bulk actions appear only while rows are selected, with the count and a way out.`,example:[{component:`AppTableToolbar`,props:{selectedCount:2,bulkActions:{component:`AppButton`,props:{size:`sm`,tone:`danger`,leftIcon:`trash-2`},children:`Delete`}}}]},{title:`Filters left, search and actions right`,note:`Filters narrow the rows on the left; search and actions sit on the right.`,example:[{component:`AppTableToolbar`,props:{filters:{component:`AppSegmented`,props:{label:`Filter by status`,size:`sm`,value:`all`,options:[{value:`all`,label:`All`},{value:`draft`,label:`Draft`},{value:`compliant`,label:`Compliant`}]},handlers:[`onChange`]},actions:{component:`div`,props:{className:`d-flex align-items-center gap-2`},children:[{component:`AppSearch`,props:{value:``,placeholder:`Search buildings`,ariaLabel:`Search buildings`},handlers:[`onChange`]},{component:`AppActionIcon`,props:{icon:`download`,label:`Export all`}}]}}}]}],dont:[{title:`Show bulk actions only when selected`,note:`A row of always-visible, disabled bulk buttons takes space and explains nothing until something is selected.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppButton`,props:{size:`sm`,variant:`outline`,disabled:!0},children:`Send reminder`},{component:`AppButton`,props:{size:`sm`,variant:`outline`,disabled:!0},children:`Export`}]}]},{title:`Filters left, search and actions right`,note:`Search first and filters last, scattered with no shared strip: the eye has no fixed place to look.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppSearch`,props:{value:``,placeholder:`Search buildings`,ariaLabel:`Search buildings`},handlers:[`onChange`]},{component:`AppSegmented`,props:{label:`Filter by status`,size:`sm`,value:`all`,options:[{value:`all`,label:`All`},{value:`draft`,label:`Draft`},{value:`compliant`,label:`Compliant`}]},handlers:[`onChange`]}]}]}],a11y:[`The selected count is an aria-live polite region, so a change in the selection is announced.`,`Only one of the two rows is shown at a time: the other has the hidden attribute, so it leaves the accessibility tree.`,`Select all N matching and Clear are native buttons.`]}},{name:`AppTabs`,marker:`AppTabs`,acceptsChildren:!1,props:[{name:`activation`,type:`enum`,enum:[`automatic`,`manual`],required:!1,description:`Whether the arrow keys also select. automatic selects as focus moves. manual moves focus only and selects on Enter or Space.`,default:`automatic`},{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the tab strip.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the tab strip.`,default:``},{name:`fitted`,type:`boolean`,required:!1,description:`The tabs share the width equally instead of scrolling.`,default:!1},{name:`maxVisible`,type:`number`,required:!1,description:`Puts the tabs that do not fit the row in a More menu, as overflow menu does. The selected tab always stays visible.`},{name:`moreLabel`,type:`string`,required:!1,description:`The text of the More button when overflow is menu.`,default:`More`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`horizontal lays the tabs in a row. vertical renders a side rail.`,default:`horizontal`},{name:`overflow`,type:`enum`,enum:[`menu`,`scroll`],required:!1,description:`What a horizontal strip does when the tabs do not fit. scroll scrolls it with chevrons and edge fades. menu moves the tabs that do not fit into a More menu and always keeps the selected tab visible. Ignored when orientation is vertical.`,default:`scroll`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the tabs.`,default:`md`},{name:`tabs`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!1,description:`A count printed after the label with Indian digit grouping, such as 1,284.`},{name:`countLabel`,type:`string`,required:!1,description:`Text shown in the count pill instead of count, such as 3 open.`},{name:`countPending`,type:`boolean`,required:!1,description:`Shows an empty count pill that script fills in later, such as a count still loading. It takes no count or countLabel.`},{name:`danger`,type:`boolean`,required:!1,description:`Draws the tab and its indicator in the danger colour.`},{name:`disabled`,type:`boolean`,required:!1,description:`The tab cannot be selected.`},{name:`href`,type:`url`,required:!1,description:`Turns the tab into a link to this address.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name from the library catalogue, or a custom node, shown before the label.`},{name:`image`,type:`string`,required:!1,description:`A picture URL, such as a logo or avatar, shown before the label. It wins over icon.`},{name:`imageAlt`,type:`string`,required:!1,description:`Alternative text for the image.`},{name:`key`,type:`string`,required:!0,description:`The React key of the tab. Not shown.`},{name:`label`,type:`node`,required:!0,description:`The text of the tab.`},{name:`rel`,type:`string`,required:!1,description:`The link rel.`},{name:`target`,type:`string`,required:!1,description:`The link target, such as _blank. A new-window link gets rel noopener noreferrer unless rel is set.`},{name:`to`,type:`string`,required:!1,description:`Turns the tab into a router link to this route. A plain link when the page supplies no link component.`},{name:`tone`,type:`string`,required:!1,description:`Tints the count pill: success, warning, danger or info.`},{name:`tooltip`,type:`node`,required:!1,description:`A hint shown on hover and focus.`}],required:!0,description:"The tabs, in order. Each tab also needs a unique `key`."},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`success`,`warning`],required:!1,description:`Tints the count pill of a tab. Set it as tone on a tab, not on the strip.`},{name:`value`,type:`string`,required:!0,description:`The key of the selected tab.`},{name:`variant`,type:`enum`,enum:[`pills`,`underline`],required:!1,description:`The look of the strip: an underline with a sliding bar, or pills.`,default:`underline`}],itemsTakeAction:[`tabs`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A record or page has a few peer sections (Overview, Activity, Settings) the user switches between.`,`A list needs quick filters (All / Active / Archived) that swap the rows in place.`,`The set of views is small and stable, so every one stays a single click away.`],whenNot:[{text:`The views are ordered steps that must be completed in sequence.`,instead:`a wizard or stepper`},{text:`There are many options to choose from.`,instead:`AppSelect`},{text:`Each view is a full destination with its own URL.`,instead:`router navigation`},{text:`You are toggling a single on/off setting.`,instead:`AppSwitch`}],do:[{title:`Short labels for peer views`,note:`A few short, peer labels: the user sees every view at a glance.`,example:[{component:`AppTabs`,props:{tabs:[{key:`overview`,label:`Overview`},{key:`activity`,label:`Activity`},{key:`settings`,label:`Settings`}],value:`overview`,ariaLabel:`Sections`}}]},{title:`Tabs switch views, never steps`,note:`A count on a filter tab tells the user how much is behind it before they click.`,example:[{component:`AppTabs`,props:{tabs:[{key:`all`,label:`All`,count:12},{key:`open`,label:`Open`,count:3}],value:`all`,ariaLabel:`Filters`}}]}],dont:[{title:`Short labels for peer views`,note:`Sentence-long labels break the scannable rhythm a tab strip depends on.`,example:[{component:`AppTabs`,props:{tabs:[{key:`a`,label:`Show all of the records`},{key:`b`,label:`Only the ones still open`},{key:`c`,label:`The archived ones from before`}],value:`a`,ariaLabel:`Sections`}}]},{title:`Tabs switch views, never steps`,note:`Fitted pills read as a segmented control. Do not use them for sequential steps; that is a stepper.`,example:[{component:`AppTabs`,props:{tabs:[{key:`a`,label:`One`},{key:`b`,label:`Two`},{key:`c`,label:`Three`}],value:`a`,variant:`pills`,fitted:!0,ariaLabel:`Steps`}}]}],a11y:[`The strip is a tablist and each tab has role tab with aria-selected; a vertical strip sets aria-orientation, and ariaLabel names the strip.`,`Only one tab is in the tab order at a time (a roving tabindex). Arrow keys, Home and End move between tabs and skip disabled ones; Up and Down replace Left and Right when vertical.`,`Automatic activation selects a tab as focus moves; manual activation moves focus only and selects on Enter or Space.`,`A tab with href or to is a real link, so open in new tab and middle click work; a link tab is not selected by arrow keys, and a new-window link gets rel noopener noreferrer.`,`The scroll chevrons are left out of the tab order and carry accessible names, and the sliding indicator is hidden from assistive technology.`]}},{name:`AppTextarea`,marker:`AppTextarea`,acceptsChildren:!1,props:[{name:`autoGrow`,type:`boolean`,required:!1,description:`Grows the height to fit the content as the user types.`,default:!1},{name:`className`,type:`string`,required:!1,description:`A class added to the control.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultValue`,type:`stringOrNumber`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the field and keeps it out of the form post.`,default:!1},{name:`error`,type:`node`,required:!1,description:`An error message. It replaces the helper text and marks the field invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`A class added to the wrapping field.`,default:``},{name:`help`,type:`node`,required:!1,description:`Info-tip content shown beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text under the field.`},{name:`id`,type:`string`,required:!1,description:`The control's id. A generated id is used when this is unset.`},{name:`label`,type:`node`,required:!1,description:`The label above the field.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`maxLength`,type:`number`,required:!1,description:`The character cap. The count turns red as it is approached.`},{name:`monospace`,type:`boolean`,required:!1,description:`Sets the monospace font on the control, for codes, logs and pasted data.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The field name the text posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the empty field.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the field; the value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required and shows the required mark beside the label.`,default:!1},{name:`rows`,type:`number`,required:!1,description:`The visible number of text lines.`,default:4},{name:`showCount`,type:`boolean`,required:!1,description:`Shows a live character count under the field, as count / maxLength when maxLength is set.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control size: sm, md, lg or xl.`,default:`md`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The controlled value, paired with onChange.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The value is free-form text that can run past a single line: a note, description, comment, or address block.`,`You want the same labelled treatment (helper text, error, required) as the rest of the form, for a longer answer.`,`The user might write a few words or a few paragraphs and you can't predict which.`],whenNot:[{text:`The value is a single short line: a name, email, or reference.`,instead:`AppInput`},{text:`The user picks from a fixed set of options.`,instead:`AppSelect`},{text:`It is a search box that filters a list.`,instead:`AppSearch`}],do:[{title:`Keep a visible label`,note:`A visible label stays put while the user types and is read by screen readers.`,example:[{component:`AppTextarea`,props:{label:`Scope of work`,name:`scope`,helperText:`What the assessment covers.`}}]},{title:`Match the height to the answer`,note:`A height that matches the expected answer keeps the form compact and scannable.`,example:[{component:`AppTextarea`,props:{label:`Note`,name:`note`,rows:3,placeholder:`A short note…`}}]},{title:`Say exactly what to change`,note:`A specific error tells the user exactly what to change.`,example:[{component:`AppTextarea`,props:{label:`Description`,name:`d1`,required:!0,error:`Add at least one sentence describing the work.`}}]}],dont:[{title:`Keep a visible label`,note:`A placeholder used as the label vanishes on the first keystroke and fails accessibility.`,example:[{component:`AppTextarea`,props:{name:`scope`,placeholder:`Scope of work`}}]},{title:`Match the height to the answer`,note:`An oversized box wastes space and signals 'write an essay' when you wanted a sentence.`,example:[{component:`AppTextarea`,props:{label:`Note`,name:`note`,rows:10,placeholder:`A short note…`}}]},{title:`Say exactly what to change`,note:`'Invalid' leaves them guessing what is actually wrong.`,example:[{component:`AppTextarea`,props:{label:`Description`,name:`d2`,required:!0,error:`Invalid`}}]}],a11y:[`The label is tied to the field with a for and id pair, and a generated id is used when none is given.`,`The field carries the native required attribute as well as the visible required mark.`,`aria-invalid is set from error, and aria-describedby points at the error text, or at the helper text when there is no error.`,`The info tip beside the label is named by helpLabel.`]}},{name:`AppThemeToggle`,marker:`AppThemeToggle`,acceptsChildren:!1,props:[{name:`autoLabel`,type:`string`,required:!1,description:`The segmented variant's option text for the system-following mode.`,default:`System`},{name:`className`,type:`string`,required:!1,description:`A class added to the toggle.`,default:``},{name:`darkLabel`,type:`string`,required:!1,description:`The segmented variant's option text for dark.`,default:`Dark`},{name:`duration`,type:`number`,required:!1,description:`The effect length in milliseconds. Each effect has its own default.`},{name:`effect`,type:`enum`,enum:[`blinds`,`circle`,`fade`,`none`,`slide`,`wave`],required:!1,description:`The page-wide effect that plays when the theme changes.`,default:`fade`},{name:`includeAuto`,type:`boolean`,required:!1,description:`Offers the system-following mode beside light and dark. Off, the toggle offers only light and dark.`,default:!0},{name:`label`,type:`string`,required:!1,description:`The accessible name: the disc's tooltip, or the segmented group's name.`,default:`Theme`},{name:`lightLabel`,type:`string`,required:!1,description:`The segmented variant's option text for light.`,default:`Light`},{name:`name`,type:`string`,required:!1,description:`The segmented variant's field name, which groups its radios. A generated name is used when this is unset.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The disc's glyph size (16, 20, 24 or 28 px) or the segmented strip's size; xl draws the lg strip.`,default:`md`},{name:`storageKey`,type:`string`,required:!1,description:`The localStorage key the choice is kept under.`,default:`theme`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The disc's preferred tooltip side.`,default:`auto`},{name:`variant`,type:`enum`,enum:[`icon`,`segmented`],required:!1,description:`One cycling disc, or one option per mode.`,default:`icon`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`One disc in the app chrome (the topbar, the sidebar foot) that switches the whole product`,`A settings row that offers System, Light and Dark (variant="segmented")`],whenNot:[{text:`A per-section or per-card theme: the switch is page-wide by design`},{text:`Branding colour choices: that is a theme variable, not a mode`}],do:[],dont:[],a11y:[`The disc is an icon button named by the label and the current mode, such as "Theme: dark".`,`The segmented variant is one radio option per mode inside a group named by the label.`,`Without the View Transitions API, under reduced motion, or when the page already shows the requested theme, the switch is instant.`]}},{name:`AppTimePicker`,marker:`AppTimePicker`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the control. When unset, a text label names it.`},{name:`className`,type:`string`,required:!1,description:`A class added to the control.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the field.`},{name:`error`,type:`string`,required:!1,description:`An error message. It replaces the helper text and marks the field invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`A class added to the wrapping field.`,default:``},{name:`format`,type:`enum`,enum:[12,24],required:!1,description:`The display format, 12 or 24 hour. The wire value stays 24 hour.`,default:24},{name:`help`,type:`node`,required:!1,description:`Content for the info tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the field.`},{name:`id`,type:`string`,required:!1,description:`The control's id. A generated id is used when this is unset.`},{name:`label`,type:`node`,required:!1,description:`The label above the field.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest time that can be picked, as "HH:mm".`},{name:`min`,type:`string`,required:!1,description:`The earliest time that can be picked, as "HH:mm".`},{name:`name`,type:`string`,required:!1,description:`The field name the time posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`The text shown while no time is chosen.`,default:`Select time`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required and shows the required mark beside the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control height tier, matching AppInput; leave unset for the default height.`},{name:`step`,type:`number`,required:!1,description:`The minutes between choices. The control accepts any minute (step 1) when this is unset.`},{name:`value`,type:`string`,required:!1,description:`The time as 24-hour "HH:mm" text, which is also the wire format.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a time of day: a meeting time, a schedule slot, a booking time.`,`You need one consistent time picker across every browser and both surfaces.`,`Restricting selection to a valid window with min / max.`,`Controlling step granularity (1, 15, 30, or 60 minutes).`],whenNot:[{text:`You need both a date and a time.`,instead:`a date picker next to a time picker`},{text:`The value is free text, not a time.`,instead:`AppInput`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[],dont:[],a11y:[`The trigger is named by ariaLabel, or by a text label when there is none.`,`An error sets aria-invalid and points aria-describedby at the error text, or at the helper text when there is no error.`,`The field carries the required attribute as well as the visible required mark.`,`The info tip beside the label is named by helpLabel.`]}},{name:`AppTimeline`,marker:`AppTimeline`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`A class added to the list.`,default:``},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of the dot icons. Unset, steps use bulk and the others linear.`},{name:`items`,type:`array`,itemFields:[{name:`at`,type:`node`,required:!1,description:`The date, already formatted by the caller (IST, DD-MMM-YYYY).`},{name:`atTitle`,type:`string`,required:!1,description:`The full date and time shown on hover over the date. Unset, there is no tooltip.`},{name:`by`,type:`string`,required:!1,description:`Who did it.`},{name:`byHref`,type:`url`,required:!1,description:`A link for the by name: a path starting with one slash, or an http or https address, with no spaces. It needs by.`},{name:`description`,type:`node`,required:!1,description:`A plain line of text under the title. With markdown set it is Markdown source and must be a string.`},{name:`eyebrow`,type:`node`,required:!1,description:`Steps variant: the label above the title. Unset it reads Step 1, Step 2 and so on; an empty string hides it.`},{name:`icon`,type:`string`,required:!1,description:`The icon name for the dot. Unset, a feed shows a filled circle and a progress step shows its status glyph.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the item. When unset, the date and the position are used.`},{name:`note`,type:`string`,required:!1,description:`A boxed note under the item. With markdown set it is Markdown source.`},{name:`status`,type:`enum`,enum:[`cancelled`,`current`,`done`,`on-hold`,`rejected`,`skipped`,`upcoming`],required:!1,description:`Progress variant: the state of the stage, which sets the dot and the rail.`},{name:`time`,type:`string`,required:!1,description:`An optional time of day shown beside the date, already formatted (HH:mm).`},{name:`title`,type:`node`,required:!0,description:`What happened, or the stage name.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`The colour of the item.`}],required:!1,description:`The entries. Feed: newest first. Progress and steps: first stage first.`,default:[]},{name:`markdown`,type:`boolean`,required:!1,description:`Draws each item's description and note as Markdown (bold, italics, lists, links, code); raw HTML shows as text. Both must then be strings. Unset, they show as plain text.`,default:!1},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Feed and progress: vertical or horizontal. Steps: a row from md up and a column below, where vertical keeps the column at every width.`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`],required:!1,description:`A preset, or the dot diameter in px. The presets scale the dot, text and spacing together; a number sets only the dot.`},{name:`stepLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The {number} token is the step's position, counted from 1.`,default:`Step {number}`},{name:`variant`,type:`enum`,enum:[`feed`,`progress`,`steps`],required:!1,description:`The layout: an activity feed, a status tracker for a fixed sequence of stages, or a numbered process.`,default:`feed`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A sequence of events or steps where the order matters.`,`Feed: an audit trail or sign-off history that shows what happened, when, and who did it.`,`Progress: a live status tracker (an order, a loan, an onboarding) with a state on every step.`],whenNot:[{text:`The rows are records to sort, filter or page through.`,instead:`AppDataTable`},{text:`It is a form wizard's position indicator with no per-step history or status.`,instead:`AppStepper`},{text:`They are label/value facts with no time or step dimension.`,instead:`AppDescriptions`},{text:`There is nothing to show yet.`,instead:`AppEmptyState`}],do:[{title:`Record what happened, by whom, when`,note:`Title in the past tense saying what happened, plus the actor and an absolute timestamp: the three things an audit reader is looking for.`,example:[{component:`AppTimeline`,props:{items:[{key:`g`,tone:`success`,icon:`check-circle`,title:`Report approved`,at:`24-Jul-2026`,time:`14:05`,by:`Priya Sharma`}]}}]}],dont:[{title:`Record what happened, by whom, when`,note:`'Status changed' to what, by whom? And '2 days ago' cannot be cross-referenced against anything, so an audit trail needs absolute times.`,example:[{component:`AppTimeline`,props:{items:[{key:`b`,title:`Status changed`,at:`2 days ago`}]}}]}],a11y:[`The timeline is an ordered list, with one list item per entry, so assistive technology announces the order and the count.`,`A by name with a byHref is a normal link, and byHref without by is refused.`,`The full date on hover is a title attribute on the date text, so it shows for a pointer only.`]}},{name:`AppToast`,marker:`AppToast`,acceptsChildren:!1,props:[{name:`animation`,type:`enum`,enum:[`jelly`,`organic`,`rise`,`spring`],required:!1,description:"Default entrance motion for every toast: `rise` (soft fade and lift), `organic` (surface materializes, status icon grows from a dot, message trails in), `jelly` (squash-and-stretch drop), `spring` (elastic slide-up). A per-toast `animation` option overrides it.",default:`rise`},{name:`className`,type:`string`,required:!1,description:`Extra class on the container element.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The close button's accessible name on every toast, for other languages.`,default:`Close`},{name:`maxVisible`,type:`number`,required:!1,description:`Most toasts shown at once. Older ones collapse to a "+N more" chip.`,default:4},{name:`offset`,type:`number`,required:!1,description:"Distance in pixels from the screen edge the stack pins to, top or bottom. Ignored for middle-center and the side edges. The default is the `--wui-toast-edge-offset` token.",default:16},{name:`position`,type:`enum`,enum:[`bottom-center`,`bottom-end`,`bottom-start`,`middle-center`,`top-center`,`top-end`,`top-start`],required:!1,description:`Which corner or edge of the screen the toasts stack in.`,default:`bottom-end`},{name:`shape`,type:`enum`,enum:[`pill`,`rounded`,`sharp`],required:!1,description:"Default corner treatment. A per-toast `shape` option overrides it.",default:`rounded`},{name:`surface`,type:`enum`,enum:[`auto`,`inverse`],required:!1,description:"`inverse` renders every toast on the opposite surface of the active mode: a dark card in light mode, a light card in dark mode, so the stack always contrasts with the page. A per-toast `surface` option overrides it.",default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A brief confirmation or error that should not interrupt the flow ("Saved", "Copied").`,`A background result the user should notice but does not have to act on right away.`],whenNot:[{text:`A message that must be acknowledged before continuing.`,instead:`AppConfirmDialog`},{text:`A persistent, in-context validation or status message.`,instead:`AppAlert`},{text:`An explanatory aside that stays on the page.`,instead:`AppAlert with accent and role none`}],do:[],dont:[],a11y:[`Each toast is a live region: warning and danger toasts use role alert and announce assertively, success and info toasts use role status and announce politely, and the whole message is read at once.`,`Every toast carries a status icon as well as its colour, and a close button named Close.`,`The auto-dismiss countdown pauses on hover and focus, and a toast with duration 0 stays until it is closed.`]}},{name:`AppToolbar`,marker:`AppToolbar`,acceptsChildren:!1,props:[{name:`actions`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`Disables this action.`},{name:`icon`,type:`icon`,required:!0,description:`The action's icon: a library icon name or an icon node.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the action; it falls back to the title and position.`},{name:`title`,type:`string`,required:!0,description:`The action's accessible name, since the button shows only its icon.`}],required:!1,description:`Momentary buttons after a divider: fire and forget, never selected.`,default:[]},{name:`className`,type:`string`,required:!1,description:`Extra class on the toolbar element.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`Initially active tool (uncontrolled).`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the whole toolbar.`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`Keeps this tool visible but not selectable.`},{name:`icon`,type:`icon`,required:!0,description:`The tool's icon: a library icon name or an icon node.`},{name:`title`,type:`string`,required:!0,description:`The tool's name, shown beside the icon while the tool is active.`},{name:`value`,type:`string`,required:!0,description:`The tool's value: what posts in a form and what value matches.`}],required:!1,description:`The tools, left to right.`,default:[]},{name:`label`,type:`string`,required:!0,description:`Accessible name for the toolbar.`},{name:`name`,type:`string`,required:!1,description:`Field name grouping the radios, and what posts in a form. Defaults to a generated one.`},{name:`value`,type:`string`,required:!1,description:`The active tool's value (controlled).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A work surface (canvas, editor, board) where the user picks the tool in hand.`,`The set is small and icon-first, with one clearly active tool.`,`Commands that belong beside the tools ride along as momentary actions.`],whenNot:[{text:`You are choosing a form value, such as view mode, period or theme.`,instead:`AppSegmented`},{text:`The icons are row or record actions in a table or header.`,instead:`AppActionIcon`},{text:`You want navigation shortcuts on a marketing page.`,instead:`AppFloatingDock`}],do:[],dont:[],a11y:[`The strip has role toolbar, named by the label prop, and aria-disabled when the whole toolbar is disabled.`,`Tools are real radio inputs inside labels, so arrow keys move between them, the strip is one tab stop and screen readers announce the choice.`,`Momentary actions are buttons named by their title, and the expand and collapse motion honours reduced motion.`]}},{name:`AppTooltip`,marker:`AppTooltip`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the tooltip element.`,default:``},{name:`content`,type:`node`,required:!0,description:`The tooltip text or node.`},{name:`open`,type:`boolean`,required:!1,description:`Shows the panel open, for a design preview or a controlled caller.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:"Where the tooltip appears. A named side is preferred but flips if needed to stay in view; `auto` picks the side with the most room outright. The bubble is a native popover in the top layer, so it never clips off-screen.",default:`top`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the action ("A", "E", "/"), drawn as a key chip after the text ("Approve A"). One character is written in upper case.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:"Preset size (font size, padding and max width). For a fully custom size, pass a `className` that sets the `--wui-tooltip-font-size`, `--wui-tooltip-padding-y`, `--wui-tooltip-padding-x` and `--wui-tooltip-max-width` CSS vars.",default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`neutral`,`primary`,`success`,`warning`],required:!1,description:"Preset colour of the tooltip. `neutral` is the light surface look; the others are solid tints. For a fully custom colour, pass a `className` whose rule sets the `--wui-tooltip-bg`, `--wui-tooltip-color`, `--wui-tooltip-border` and `--wui-tooltip-radius` CSS vars.",default:`neutral`},{name:`variant`,type:`enum`,enum:[`inverse`],required:!1,description:"`inverse` draws the tooltip on a dark surface, for a tip inside a light page."}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Quick, context-sensitive hints on icon buttons, abbreviations, shortcuts.`,`Brief content: a sentence or two, never a help article.`,`Alongside clear labels or icons, not instead of them.`],whenNot:[{text:`Essential information: not everyone hovers, so put it in visible copy.`},{text:`Help text that exists only in the tooltip; repeat it in the form or docs.`},{text:`Tooltips on every element: clutter trains people to ignore them.`}],do:[],dont:[],a11y:[`The tooltip opens on hover and on keyboard focus of the trigger, so keyboard users get the same hint.`,`The tooltip carries a generated id, and the trigger points at it with aria-describedby while it is open.`,`Placement flips to stay inside the viewport, but essential information still belongs in visible copy.`]}},{name:`AppTour`,marker:`AppTour`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names on the tour element.`},{name:`endDialog`,type:`boolean`,required:!1,description:`Show the closing dialog after the last step.`,default:!0},{name:`endNextHref`,type:`string`,required:!1,description:`Where the closing dialog's next step goes; the step shows only with labels.endNextLabel set.`},{name:`labels`,type:`object`,fields:[{name:`advance`,type:`string`,required:!1,description:`The sentence for a click-to-advance step, default "Click {actionName} to continue.", where {actionName} is the step's actionLabel or else its target's accessible name.`},{name:`back`,type:`string`,required:!1,description:`The Back button text, default Back.`},{name:`done`,type:`string`,required:!1,description:`The last step's button text when the closing dialog is off, default Done.`},{name:`endButton`,type:`string`,required:!1,description:`The closing dialog's button text, default "Done".`},{name:`endMessage`,type:`string`,required:!1,description:`The closing dialog's message, a short friendly line by default.`},{name:`endNextLabel`,type:`string`,required:!1,description:`The closing dialog's next-step button text. The step shows only when this is set, and it goes to endNextHref.`},{name:`endTitle`,type:`string`,required:!1,description:`The closing dialog's title, default "You're all set".`},{name:`mediaPause`,type:`string`,required:!1,description:`Names a step loop's pause button while it plays, default "Pause animation".`},{name:`mediaPlay`,type:`string`,required:!1,description:`Names a step loop's play button while it is paused, default "Play animation".`},{name:`next`,type:`string`,required:!1,description:`The Next button text, default Next.`},{name:`progress`,type:`string`,required:!1,description:`The step count template, default "Step {current} of {total}".`},{name:`skip`,type:`string`,required:!1,description:`The Skip button text, default Skip.`}],required:!1,description:"Button text, defaults Back, Next, Skip, Done. `done` is the last step's button only with `endDialog` false; while the closing dialog is on, the last step reads `next`, because the dialog follows."},{name:`open`,type:`boolean`,required:!0,description:`Runs the tour. Set it back to false from onClose.`},{name:`seenStore`,type:`object`,required:!1,description:`Remembers that a person has seen the tour: it is asked before showing and written when the tour finishes or is skipped, with that outcome. Read through a ref, so an inline object does not restart a running tour.`},{name:`steps`,type:`array`,itemFields:[{name:`actionLabel`,type:`string`,required:!1,description:`Names the control in that sentence, in place of the target's accessible name, which it falls back to.`},{name:`advanceOn`,type:`enum`,enum:[`click`],required:!1,description:`With click, the tour moves on when the person clicks the target, and the card says what to click.`},{name:`description`,type:`string`,required:!0,description:`The step text.`},{name:`media`,type:`string`,required:!1,description:`The URL of an image or short loop shown above the title.`},{name:`mediaAlt`,type:`string`,required:!1,description:`The text alternative of the media.`},{name:`mediaPoster`,type:`string`,required:!1,description:`The still a loop shows under reduced motion.`},{name:`mediaType`,type:`enum`,enum:[`image`,`video`],required:!1,description:`Whether the media is an image or a looping video.`},{name:`target`,type:`string`,required:!1,description:`A CSS selector for the element the step points at. Left out, the step is a welcome card with no spotlight.`},{name:`title`,type:`string`,required:!1,description:`The step card's heading.`}],required:!0,description:`The steps, in order. A step with no target is a welcome card, centred over the page. A step whose target is missing or hidden is dropped.`},{name:`tourId`,type:`string`,required:!0,description:`Names the tour in the seen store.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person meets a screen for the first time and a handful of controls need a one-line explanation each.`,`A new feature needs pointing out where it sits on a screen people already know.`,`The steps follow a natural order the person can walk in under a minute.`,`The tour teaches one clear first action, such as creating the first item: give the closing dialog a next step (endNextLabel with endNextHref) that goes to it. With no single clear action, leave the dialog with Done alone.`],whenNot:[{text:`You need to explain one control, on demand.`,instead:`AppTooltip`},{text:`You are collecting information in steps.`,instead:`AppWizard`},{text:`You want a closable note with a link, not a walk.`,instead:`AppPopover`}],do:[],dont:[],a11y:[`Focus moves into the card on open, stays there while the tour runs and returns to where it was on close; each step is announced.`,`Escape skips the tour, and the arrow keys move between steps except while focus is in a field.`,`On a phone the card sits on the side of the target with room and never covers it; the closing dialog says the tour is done, and Escape there closes the tour as finished.`]}},{name:`AppTransferList`,marker:`AppTransferList`,acceptsChildren:!1,props:[{name:`addAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Add all shown`},{name:`addLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the row label.`,default:`Add {name}`},{name:`ariaLabel`,type:`string`,required:!1,description:`Names the group when there is no label.`},{name:`availableTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Available`},{name:`chosenTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Chosen`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`defaultValue`,type:`array`,required:!1,description:`The chosen ids, in order, when the list is uncontrolled.`,default:[]},{name:`disabled`,type:`boolean`,required:!1,description:`Stops every move and every search.`,default:!1},{name:`dragHintText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Press Space to pick up a row, then Left or Right to move it across, or Up and Down to reorder the chosen rows.`},{name:`emptyAvailableText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove an item from Chosen to see it here.`},{name:`emptyAvailableTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Everything is chosen`},{name:`emptyChosenText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Use Add on an item, or press Enter on it.`},{name:`emptyChosenTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Nothing chosen yet`},{name:`error`,type:`node`,required:!1,description:`An error message under the lists. Also marks the group as described by it.`},{name:`helperText`,type:`node`,required:!1,description:`A hint under the lists.`},{name:`id`,type:`string`,required:!1,description:`The id of the group's root element.`},{name:`items`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`A disabled row never moves.`,default:!1},{name:`id`,type:`string`,required:!0,description:`The value this row posts.`},{name:`label`,type:`string`,required:!0,description:`The row's visible name.`},{name:`secondary`,type:`string`,required:!1,description:`A smaller line under the label, also searched.`}],required:!0,description:`The rows. Available shows the ones not chosen, in this order. Each has an id, a label, an optional secondary line and an optional disabled flag.`},{name:`label`,type:`node`,required:!1,description:`The visible label above both lists.`},{name:`name`,type:`string`,required:!1,description:`Posts one hidden input per chosen id, in order, under this name.`},{name:`noMatchText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {query} is the search text.`,default:`No matches for "{query}"`},{name:`orderHintText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`The order of Chosen is kept. Drag the grip to reorder.`},{name:`removeAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove all`},{name:`removeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the row label.`,default:`Remove {name}`},{name:`reorderable`,type:`boolean`,required:!1,description:`Lets the person reorder Chosen. With false, Chosen keeps the order it was given and rows move by button or drag only.`,default:!0},{name:`searchLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {title} is the list title.`,default:`Search {title}`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Search`},{name:`searchable`,type:`boolean`,required:!1,description:`Shows a search box on each list.`,default:!0},{name:`value`,type:`array`,required:!1,description:`The chosen ids, in order. Controlled when given. Ids that match no item are dropped and never posted.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person builds an ordered or unordered set by moving rows between Available and Chosen.`],whenNot:[{text:`A flat pick from a long list, with no need to see the rest.`,instead:`AppSelect`},{text:`A pick from a hierarchy.`,instead:`AppTreePicker`},{text:`Reordering one list only.`,instead:`AppSortableList`}],do:[],dont:[],a11y:[`Each row action names its row: Add Alpha, Remove Alpha.`,`Every move is announced in a polite status line.`,`Enter on a row moves it between the lists, and focus follows the row to its new list.`,`Space lifts a Chosen row and the arrow keys move it; Escape cancels.`]}},{name:`AppTreePicker`,marker:`AppTreePicker`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the tree, when there is no visible label.`},{name:`chosenTitle`,type:`string`,required:!1,description:`Heading of the chosen list.`,default:`Chosen`},{name:`className`,type:`string`,required:!1,description:`Extra class names on the tree element.`,default:``},{name:`clearAllLabel`,type:`string`,required:!1,description:`Label of the button that clears every choice.`,default:`Clear all`},{name:`defaultValue`,type:`any`,required:!1,description:`Leaf ids chosen when the field first draws (uncontrolled): an array in multiple mode, one id in single mode.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the field.`},{name:`emptyText`,type:`string`,required:!1,description:`Text under the empty title.`,default:`Tick items in the tree.`},{name:`emptyTitle`,type:`string`,required:!1,description:`Shown in the chosen list when nothing is chosen.`,default:`Nothing chosen yet`},{name:`error`,type:`node`,required:!1,description:`An error message under the field; it also marks the field invalid.`},{name:`helperText`,type:`node`,required:!1,description:`Help text under the field.`},{name:`id`,type:`string`,required:!1,description:`The id of the field.`},{name:`label`,type:`node`,required:!1,description:`The field label.`},{name:`name`,type:`string`,required:!1,description:`Form field name: one hidden value per chosen id.`},{name:`noMatchText`,type:`string`,required:!1,description:`Shown when the search matches nothing; {query} is the search text.`},{name:`nodes`,type:`array`,itemFields:[{name:`children`,type:`array`,required:!1,description:`The node's child nodes, in the same shape.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the node; a disabled leaf is never chosen.`},{name:`icon`,type:`string`,required:!1,description:`A library icon name.`},{name:`id`,type:`string`,required:!0,description:`The node's id, unique across the whole tree.`},{name:`label`,type:`string`,required:!0,description:`The node's plain text label.`}],required:!0,description:`The hierarchy to pick from. Ids are strings, unique across the whole tree. A node with children is a parent; only leaves can be chosen.`},{name:`removeLabel`,type:`string`,required:!1,description:`Remove button label; {name} is the chosen item.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`},{name:`searchLabel`,type:`string`,required:!1,description:`Accessible name of the search box.`,default:`Search`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`Placeholder of the search box.`,default:`Search`},{name:`selectedText`,type:`string`,required:!1,description:`Count line; {n} is the number chosen.`},{name:`selection`,type:`enum`,enum:[`multiple`,`single`],required:!1,description:`multiple ticks leaves and parents; single picks one leaf.`,default:`multiple`},{name:`value`,type:`any`,required:!1,description:`Chosen leaf ids (controlled): an array in multiple mode, one id in single mode.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form needs one or many leaves of a hierarchy, such as departments and their teams.`],whenNot:[{text:`A flat set of options.`,instead:`AppSelect`},{text:`A browsable hierarchy that is not a form field.`,instead:`AppTreeView`},{text:`Moving rows between two lists.`,instead:`AppTransferList`}],do:[],dont:[],a11y:[`Follows the WAI-ARIA tree pattern: ArrowDown and ArrowUp move between rows, Home and End jump to the first and last row, and typing jumps to the next row whose label starts with the text typed.`,`ArrowRight opens a closed parent or moves to its first child; ArrowLeft closes an open parent or moves to its parent.`,`Only one row is in the tab order (a roving tabindex), so Tab reaches the tree once and the arrow keys move the focus between rows.`,`Enter and Space pick the focused row. In multiple selection they tick or untick it; in single selection they choose a leaf and do nothing on a parent. A disabled row ignores both keys.`,`In multiple selection the tree is multiselectable and each row reports aria-checked as true, false or mixed. A parent is mixed when some of its enabled leaves are chosen. Ticking a parent picks every enabled leaf under it, and ticking a parent whose leaves are all chosen clears them.`,`In single selection each leaf reports aria-selected; a parent never does.`,`Each row reports its depth, a parent reports aria-expanded, and a disabled row reports aria-disabled.`,`The visible checkboxes and expand chevrons are hidden from assistive technology and skipped by Tab; the row itself is the control.`,`The search box is named by the search label. ArrowDown and ArrowUp move from it into the tree. Typing matches labels ignoring case, keeps each match with its whole subtree and opens every parent of a match. When nothing matches, the no-match text with the query appears under the search box; it is not announced.`,`Backspace in an empty search box removes the last chosen item, in multiple selection only.`,`The Chosen panel lists each chosen leaf under its parent's label. Each item has a Remove button named with the remove label and the item's name. Clear all empties the selection and is disabled when nothing is chosen.`,`A polite status line under the Chosen panel announces the count, such as '2 selected', whenever the number of chosen items changes.`,`The tree is named by the visible label through aria-labelledby; ariaLabel replaces that name when it is set.`,`After Remove or Clear all, focus moves to the next Remove button, else the previous one, else the search box.`,`The error or helper text is linked to the field with aria-describedby.`]}},{name:`AppTreeView`,marker:`AppTreeView`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the tree.`},{name:`checked`,type:`array`,required:!1,description:`Checked ids (multiple mode, controlled).`},{name:`className`,type:`string`,required:!1,description:`Extra class names on the tree.`,default:``},{name:`errorText`,type:`string`,required:!1,description:`Announced when they fail.`,default:`Could not load. Try again.`},{name:`id`,type:`string`,required:!1,description:`The id of the tree element.`},{name:`loadUrl`,type:`url`,required:!1,description:`Children endpoint used when loadChildren is not set: a GET with parentId=<id> added, answering a JSON array of nodes.`},{name:`loadingText`,type:`string`,required:!1,description:`Announced while children load.`,default:`Loading`},{name:`name`,type:`string`,required:!1,description:`Form field name: multiple posts one value per checked id, single posts the selected id.`},{name:`nodes`,type:`array`,itemFields:[{name:`badge`,type:`string`,required:!1,description:`Short text in a badge after the label.`},{name:`badgeTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The tone of the badge, one of AppBadge's tones.`},{name:`checked`,type:`boolean`,required:!1,description:`True to start the node checked (multiple selection).`},{name:`children`,type:`array`,required:!1,description:`The node's child nodes, in the same shape. An empty list marks a leaf.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the node.`},{name:`expanded`,type:`boolean`,required:!1,description:`True to start the node open.`},{name:`hasChildren`,type:`boolean`,required:!1,description:`True when the children are fetched the first time the node opens.`},{name:`icon`,type:`string`,required:!1,description:`A library icon name.`},{name:`id`,type:`string`,required:!0,description:`The node's id, unique across the whole tree.`},{name:`label`,type:`string`,required:!0,description:`The node's plain text label.`}],required:!0,description:"The hierarchy to show. Ids are strings, unique across the whole tree. `children: []` is a leaf; `hasChildren: true` with no `children` is a node whose children are fetched the first time it opens."},{name:`selected`,type:`string`,required:!1,nullable:!0,description:`Selected id (single mode, controlled). The tree shows this id whatever the user clicks until you change it; null selects nothing, and dropping the prop clears it.`},{name:`selection`,type:`enum`,enum:[`multiple`,`none`,`single`],required:!1,description:`How rows are chosen: none, single (one selected row) or multiple (a tri-state checkbox per node).`,default:`none`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Data that nests to unknown depth: folders, categories, permissions.`,`Choosing several items across levels with a parent that reflects its children.`,`Large hierarchies where branches load when opened.`],whenNot:[{text:`A flat list of choices.`,instead:`AppSelect, AppSelect mode="multiple", or AppRadioGroup`},{text:`Content that opens and closes in place.`,instead:`AppAccordion`},{text:`Site or app navigation.`,instead:`AppShell`},{text:`People by reporting line, drawn as an org chart.`,instead:`AppOrgTree`}],do:[],dont:[],a11y:[`Follows the WAI-ARIA tree pattern: arrow keys move between rows and open or close branches, Home and End jump to the first and last row, typing jumps to a label, and Enter or Space activates a row.`,`In multiple selection each row has a tri-state checkbox: a parent is checked, unchecked or mixed from its children.`,`ariaLabel names the tree, and the loading and error text are announced while children load or fail.`]}},{name:`AppTruncate`,marker:`AppTruncate`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`lines`,type:`number`,required:!1,description:`How many lines show before the cut. 1 is a single line cut by width.`,default:1},{name:`width`,type:`string`,required:!1,description:`A CSS length the text never exceeds, such as 12rem or 240px. Without it the text takes the width it is given.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Names and descriptions in cards, rows and lists where the layout fixes the width.`,`Any text where the full value still matters on demand.`],whenNot:[{text:`Text a reader must see in full to act on.`,instead:`Let it wrap`},{text:`Long copy that needs a read-more.`,instead:`Show it in full on its own page`}],do:[],dont:[],a11y:[`Text that is cut gets a tab stop and shows its full text in a tooltip on hover and on keyboard focus.`,`Text that fits takes no tab stop and shows no tooltip.`,`The whole text stays in the page as ordinary text, so assistive technology reads all of it.`]}},{name:`AppUpdateBar`,marker:`AppUpdateBar`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the bar, such as sticky-top to keep it in view.`,default:``},{name:`description`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`A new version of this app is ready.`},{name:`dismissLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Dismiss`},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows a close button. The bar then stays closed until it remounts.`,default:!1},{name:`reloadLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Reload`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A newer build of the app is live and the current page still works.`],whenNot:[{text:`A code file of the old build failed to load and the page broke.`,instead:`AppRouteError`},{text:`A message about the whole app that is not about a new version.`,instead:`AppBanner`}],do:[{title:`Let people choose when to reload`,note:`Tell the person and let them choose when to reload.`,example:[{component:`AppUpdateBar`,props:{}}]}],dont:[{title:`Let people choose when to reload`,note:`A forced reload throws away what the person was typing.`,example:[{component:`div`,props:{className:`small`},children:`The page reloads by itself in the middle of a form.`}]}],a11y:[`The bar has role status, so a screen reader announces it without moving focus.`,`Reload is a native button, reached with Tab and used with Enter or Space.`,`With dismissible the close button is a native button named Dismiss.`]}},{name:`AppWhatsNew`,marker:`AppWhatsNew`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`emptyText`,type:`string`,required:!1,description:`Shown when there are no entries.`,default:`Nothing new yet`},{name:`entries`,type:`array`,itemFields:[{name:`body`,type:`string`,required:!1,description:`A short paragraph under the heading.`},{name:`date`,type:`string`,required:!0,description:`The day it shipped, as an ISO date (YYYY-MM-DD) or date-time. It shows as DD-MMM-YYYY.`},{name:`href`,type:`url`,required:!1,description:`Where the entry's link goes. The link shows only when this is set.`},{name:`id`,type:`string`,required:!1,description:`A stable key for the entry. It defaults to the date and the position.`},{name:`imageAlt`,type:`string`,required:!1,description:`Describes the picture. Leave it empty when the picture adds nothing.`},{name:`imageHeight`,type:`number`,required:!1,description:`The picture's intrinsic height in px. Set it with imageWidth so the picture keeps its space while it loads.`},{name:`imageSrc`,type:`string`,required:!1,description:`A picture shown under the text, loaded lazily.`},{name:`imageWidth`,type:`number`,required:!1,description:`The picture's intrinsic width in px. Set it with imageHeight so the picture keeps its space while it loads.`},{name:`linkLabel`,type:`string`,required:!1,description:`The link's text. It shows Learn more when left out.`},{name:`title`,type:`string`,required:!0,description:`The entry's heading.`}],required:!1,description:`The release notes, shown in the order passed.`,default:[]},{name:`indicator`,type:`enum`,enum:[`count`,`dot`],required:!1,description:`The unread mark on the trigger: a dot, or the number of unread entries.`,default:`dot`},{name:`label`,type:`string`,required:!1,description:`The trigger's name and the panel's heading.`,default:`What's new`},{name:`readThrough`,type:`string`,required:!1,description:`An ISO date or date-time read on another device or saved on the server. Entries up to the later of it and the stored read state count as read.`},{name:`storageKey`,type:`string`,required:!1,description:`Names where read state is kept. Include the user's id.`},{name:`unreadLabel`,type:`string`,required:!1,description:`Added to the trigger's name while there are unread entries.`,default:`unread`}],itemsTakeAction:[`entries`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Telling everyone about a feature or change since their last visit.`,`A short, dated list of release notes.`],whenNot:[{text:`Messages addressed to the person.`,instead:`The shell's notification bell`},{text:`A one-off tour of a screen.`,instead:`AppTour`}],do:[],dont:[],a11y:[`The trigger is a native button with aria-haspopup dialog, and the element keeps its aria-expanded and aria-controls in step with the panel.`,`The panel is a dialog named by label; opening it moves focus into the panel, and Escape closes it and returns focus to the trigger.`,`The unread dot is hidden from assistive technology; the unread state is spoken through unreadLabel in the trigger's name.`]}},{name:`AppWizard`,marker:`AppWizard`,acceptsChildren:!0,props:[{name:`active`,type:`number`,required:!1,description:`The current step's index when the wizard is controlled, used together with onStepChange.`},{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where each step's badge, label and description sit in its column on a horizontal stepper: centred, or at the start with the line running from badge to badge. It applies to the steps and icons variants.`,default:`center`},{name:`backLabel`,type:`string`,required:!1,description:`The text of the Back button.`,default:`Back`},{name:`barTitle`,type:`string`,required:!1,description:`The title at the start of the top bar.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the wizard.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The accessible name of the top bar's close button.`,default:`Close`},{name:`defaultActive`,type:`number`,required:!1,description:`The step the wizard starts on when it is not controlled.`,default:0},{name:`disabled`,type:`boolean`,required:!1,description:`Disables all navigation.`,default:!1},{name:`doneTone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:`Recolours completed steps only (their badge, STEP n eyebrow and the filled line after them). The current step keeps the tone accent; unset, completed steps follow tone.`},{name:`finishLabel`,type:`string`,required:!1,description:`The text of the Finish button on the last step.`,default:`Finish`},{name:`hideConnectors`,type:`boolean`,required:!1,description:`Drops the line joining the steps, on every variant and orientation. Lines show by default.`,default:!1},{name:`hideStepper`,type:`boolean`,required:!1,description:`Hides the progress header.`,default:!1},{name:`iconSize`,type:`number`,required:!1,description:`Every header glyph's width and height in px. Unset, it follows size (14, 16 or 20).`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of every header glyph: the done tick, the error alert, the skipped dash and each step's own icon. Unset draws the linear style.`},{name:`label`,type:`string`,required:!1,description:`The accessible name of the stepper.`,default:`Progress`},{name:`nextLabel`,type:`string`,required:!1,description:`The text of the Next button.`,default:`Next`},{name:`nonLinear`,type:`boolean`,required:!1,description:`Allows jumping to any step, not only completed ones.`,default:!1},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Lays the stepper out as a row or as a column.`,default:`horizontal`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Scales the stepper header: the badge, its number, the labels and the glyphs.`,default:`md`},{name:`skipLabel`,type:`string`,required:!1,description:`The text of the Skip button.`,default:`Skip`},{name:`skippable`,type:`boolean`,required:!1,description:`Shows a Skip button on every step but the last, without needing optional on each step.`,default:!1},{name:`steps`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`An optional second line under the label.`},{name:`icon`,type:`string`,required:!1,description:`A library icon name drawn in the step's badge in place of its number.`},{name:`key`,type:`string`,required:!1,description:`A stable React key for the step. It defaults to the label and the position.`},{name:`label`,type:`string`,required:!0,description:`The step's name. It must be non-empty text.`},{name:`optional`,type:`boolean`,required:!1,description:`Shows the Skip button on this step.`},{name:`status`,type:`enum`,enum:[`active`,`done`,`error`,`pending`],required:!1,description:`Forces the step's status instead of deriving it from the current step.`}],required:!1,description:`One entry per step, in step order. A list that is not an array of objects with a text label is refused with a thrown error, and an unknown field warns in development.`,default:[]},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:`Recolours the whole stepper accent (active fill, done rail, ring, done tint) to a semantic ramp. Unset keeps the variant's default: primary for steps and journey, success for icons.`},{name:`topBar`,type:`boolean`,required:!1,description:`Shows a 56px bar above the stepper with barTitle, Step N of M and a close button.`,default:!1},{name:`variant`,type:`enum`,enum:[`icons`,`journey`,`steps`,`tiles`],required:!1,description:`The stepper header style: compact circles, the wide journey bar, large connected icon badges with a STEP n eyebrow, or a row of tiles with an icon square, a label and a Done, Current or To do line.`,default:`steps`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A task is genuinely split across several ordered screens and each one is a real step, not just a tab.`,`You need the standard Back / Skip / Next / Finish footer wired up, not just a progress indicator.`,`Some steps are optional and the user should be able to skip past them explicitly.`],whenNot:[{text:`It is one form on a single screen with grouped sections.`,instead:`a form built from AppFormSection, AppFormRow and AppFormActions`},{text:`You only need to show progress, because navigation lives elsewhere (a route, a parent component).`,instead:`AppStepper`},{text:`The sections are alternative views the user switches between freely, not a sequence.`,instead:`AppTabs`}],do:[],dont:[],a11y:[`The step list is named by label (Progress by default) and the current step carries aria-current step; a step that can be reached is a native button, the others are plain text.`,`Each step panel has role tabpanel; the panels of other steps are hidden and marked aria-hidden.`,`With topBar the close button is named by closeLabel.`]}},{name:`AppWorkspaceSwitcher`,marker:`AppWorkspaceSwitcher`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the trigger. Without it the name is Workspace followed by the current workspace's name.`},{name:`canCreate`,type:`boolean`,required:!1,description:`Shows the create row. It is off by default because most members cannot create a workspace.`,default:!1},{name:`compact`,type:`boolean`,required:!1,description:`Draws a 36px monogram button instead of the full card, the shape a collapsed rail slot wants. The menu is the same either way.`,default:!1},{name:`createLabel`,type:`string`,required:!1,description:`The text of the create row.`,default:`Create workspace`},{name:`currentId`,type:`string`,required:!1,description:`The id of the active workspace. It drives the trigger and the tick, and falls back to the first workspace when it matches none.`},{name:`footerAction`,type:`node`,required:!1,description:`A pinned row under the list. Pass any node, or a descriptor with a label, an optional icon and an optional href that the library renders as a menu row.`},{name:`menuLabel`,type:`string`,required:!1,description:`An optional heading above the list, such as Workspaces.`},{name:`noMatchText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No workspaces match.`},{name:`searchLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Search workspaces`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Search workspaces`},{name:`searchable`,type:`boolean`,required:!1,description:`Adds a filter box above the list. It only earns its place past roughly eight workspaces.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Scales the trigger (the card or compact square, its mark and name) and the menu (width, row padding, avatars, the create plus chip and the footer), so trigger and panel read at one size.`,default:`md`},{name:`tenants`,type:`array`,itemFields:[{name:`badge`,type:`string`,required:!1,description:`A short label at the end of the row, such as the person's role or the plan.`},{name:`id`,type:`string`,required:!0,description:`The workspace's id. currentId is matched against it.`},{name:`logoUrl`,type:`url`,required:!1,description:`The workspace's logo. Without it the mark is a monogram of the name.`},{name:`name`,type:`string`,required:!0,description:`The workspace's name, shown on the trigger and in its row.`}],required:!1,description:`The switchable workspaces.`,default:[]}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A user can belong to more than one workspace, tenant, organisation, or company.`,`The current workspace must stay visible so a user never acts in the wrong one.`,`The sidebar or topbar needs one place to switch tenant and reach workspace settings.`],whenNot:[{text:`You are switching the signed-in USER, not the workspace.`,instead:`AppDropdown`},{text:`You are picking a value into a form field.`,instead:`AppSelect`},{text:`You need a flat list of actions behind a “⋯” trigger.`,instead:`AppDropdown`},{text:`You are navigating within one workspace.`,instead:`AppShell`}],do:[{title:`Name the current workspace`,note:`The current workspace is named on the trigger, ticked in the list, and settings are one row away.`,example:[{component:`AppWorkspaceSwitcher`,props:{tenants:[{id:`acme`,name:`Acme Corp`,badge:`Owner`},{id:`globex`,name:`Globex Ltd`},{id:`initech`,name:`Initech`}],currentId:`acme`,menuLabel:`Workspaces`,footerAction:{component:`a`,props:{className:`workspace-switcher-footer-action`,href:`/settings`},children:[{component:`AppIcon`,props:{name:`settings`,size:16}},`Workspace settings`]}}}]},{title:`Filter only a long list`,note:`Eight workspaces get a filter box, so finding one is typing rather than scrolling.`,example:[{component:`AppWorkspaceSwitcher`,props:{tenants:[{id:`acme`,name:`Acme Corp`,badge:`Owner`},{id:`globex`,name:`Globex Ltd`},{id:`initech`,name:`Initech`},{id:`umbrella`,name:`Umbrella Group`},{id:`stark`,name:`Stark Industries`},{id:`wayne`,name:`Wayne Enterprises`},{id:`soylent`,name:`Soylent Corp`},{id:`tyrell`,name:`Tyrell Corporation`}],currentId:`acme`,searchable:!0}}]}],dont:[{title:`Name the current workspace`,note:`A compact trigger in a full-width sidebar hides the workspace name, the one thing the control exists to show. Save it for a collapsed rail.`,example:[{component:`AppWorkspaceSwitcher`,props:{tenants:[{id:`acme`,name:`Acme Corp`,badge:`Owner`},{id:`globex`,name:`Globex Ltd`},{id:`initech`,name:`Initech`}],currentId:`acme`,compact:!0}}]},{title:`Filter only a long list`,note:`Three workspaces behind a search box: a control to skip past on the way to something already visible.`,example:[{component:`AppWorkspaceSwitcher`,props:{tenants:[{id:`acme`,name:`Acme Corp`,badge:`Owner`},{id:`globex`,name:`Globex Ltd`},{id:`initech`,name:`Initech`}],currentId:`acme`,searchable:!0}}]}],a11y:[`The trigger is a native button with aria-haspopup, named by ariaLabel or, without it, Workspace followed by the current name; the compact trigger keeps the full name.`,`Rows are native buttons in a dropdown menu, so Tab and the arrow keys reach them and Escape closes the menu.`,`The filter box is named Search workspaces; while typing, the arrow keys stay with the text, and Escape closes the menu.`,`Logos carry an empty alt, so each workspace name is read once.`]}},{name:`AppYearPicker`,marker:`AppYearPicker`,acceptsChildren:!1,props:[{name:`aria-invalid`,type:`any`,required:!1,description:`Marks the control invalid (aria-invalid) without an error message. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form.`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when there is no visible label.`},{name:`className`,type:`string`,required:!1,description:`Classes for the wui-datepicker control itself.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting year of an uncontrolled field, as YYYY.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`displayFormat`,type:`string`,required:!1,description:`How the chosen year reads in the field, from the token yyyy; any other text is kept as written (for example FY yyyy). The onChange value stays YYYY.`,default:`yyyy`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Classes for the field wrapper that holds the label, helper text and error.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the control.`},{name:`id`,type:`string`,required:!1,description:`The id of the control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control and used as its accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest selectable year, as YYYY.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable year, as YYYY.`},{name:`name`,type:`string`,required:!1,description:`The form field name the YYYY year posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the field while no year is chosen.`,default:`Choose a year`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control height tier, matching AppInput.`},{name:`value`,type:`string`,required:!1,description:`The chosen year as YYYY.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a single calendar year: financial year, reporting year, graduation year.`,`You need one consistent year picker across every browser and both surfaces.`,`Restricting selection to a valid window with min / max.`],whenNot:[{text:`You need a month or a full calendar date.`,instead:`AppMonthPicker`},{text:`You are capturing a start-and-end range of dates.`,instead:`AppDateRangePicker`},{text:`The value is free text, not a year.`,instead:`AppInput`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[{title:`Give the year a visible label`,note:`A visible label above the field. The user knows what the year is for before opening it.`,example:[{component:`AppYearPicker`,props:{id:`yp-good-year`,label:`Financial year`,value:`2026`}}]},{title:`Set min and max bounds`,note:`min / max stop invalid years at the source, so the user can only pick a real one.`,example:[{component:`AppYearPicker`,props:{value:`2026`,min:`2024`,max:`2030`}}]}],dont:[{title:`Give the year a visible label`,note:`Only a placeholder as the label, which vanishes the moment a year is picked.`,example:[{component:`AppYearPicker`,props:{value:``,placeholder:`Year`}}]},{title:`Set min and max bounds`,note:`No bounds, then reject the year after submit. Constrain up front instead.`,example:[{component:`AppYearPicker`,props:{value:`2990`}}]}],a11y:[`The field label names the control through aria-label when it is a string, and ariaLabel overrides it.`,`Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid. A caller's aria-invalid takes its place.`,`Required and disabled are set as native attributes on the control.`]}}],tokens:{color:`bg.bg-muted.bg-subtle.border.border-strong.border-subtle.chart-1.chart-2.chart-3.chart-4.chart-5.chart-6.chart-7.chart-8.chart-axis.chart-diverging-high.chart-diverging-low.chart-diverging-mid.chart-grid.chart-label.chart-neutral.chart-seq-0.chart-seq-1.chart-seq-2.chart-seq-3.chart-seq-4.chart-seq-5.chart-seq-6.danger.danger-border.danger-pressed.danger-soft.danger-strong.danger-strong-hover.danger-text.danger-text-on-soft.field-bg.field-border.field-border-focus.field-border-hover.focus-ring.focus-ring-soft.info.info-border.info-pressed.info-soft.info-strong.info-text.info-text-on-soft.link.link-hover.neutral.neutral-hover.neutral-pressed.neutral-soft.neutral-text.offline-fill.on-danger.on-danger-strong.on-info.on-info-strong.on-neutral.on-primary.on-scrim.on-success.on-success-strong.on-surface-dark.on-surface-dark-muted.on-warning.on-warning-strong.online-fill.primary.primary-hover.primary-soft.primary-text.primary-wash.primary-wash-strong.progress-label.progress-track.scrim.scrim-strong.scrollbar.scrollbar-active.scrollbar-hover.shell-accent.shell-accent-ring.shell-active.shell-bg.shell-bg-deep.shell-bg-raised.shell-border.shell-border-strong.shell-fill.shell-fill-strong.shell-fill-subtle.shell-hover.shell-rule.shell-text.shell-text-muted.shell-text-strong.success.success-border.success-pressed.success-soft.success-strong.success-text.success-text-on-soft.surface.surface-dark.surface-dark-border.surface-ink.surface-inverse.surface-inverse-elevated.surface-inverse-raised.surface-inverse-wash-12.surface-inverse-wash-24.surface-inverse-wash-4.surface-inverse-wash-8.text.text-body.text-inverse.text-muted.text-subtle.thumb.warning.warning-border.warning-pressed.warning-soft.warning-strong.warning-strong-hover.warning-text.warning-text-on-soft`.split(`.`),space:[`2xl`,`3xl`,`4xl`,`lg`,`md`,`none`,`sm`,`xl`,`xs`,`xxs`],radius:[`2xl`,`3xl`,`lg`,`md`,`none`,`pill`,`sm`,`xl`],shadow:[`card`,`drawer`,`elevated`,`modal`,`popover`],font:[`display`,`mono`,`ui`],text:[`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`base`,`lg`,`sm`,`xl`,`xs`],leading:[`body`,`display`,`heading`,`lead`,`prose`],colorMeanings:{bg:`Page background behind the content area.`,"bg-muted":`Muted background for grouped areas and quiet controls.`,"bg-subtle":`Subtle raised background for side panels and bands.`,border:`Hairline border of cards, tables and dividers.`,"border-strong":`Stronger border for emphasised separators, chart axes and unselected control outlines.`,"border-subtle":`Softest border for inner dividers and list edges.`,"chart-1":`Colour of chart series 1, the brand primary.`,"chart-2":`Colour of chart series 2 of the eight categorical series.`,"chart-3":`Colour of chart series 3 of the eight categorical series.`,"chart-4":`Colour of chart series 4 of the eight categorical series.`,"chart-5":`Colour of chart series 5 of the eight categorical series.`,"chart-6":`Colour of chart series 6 of the eight categorical series.`,"chart-7":`Colour of chart series 7 of the eight categorical series.`,"chart-8":`Colour of chart series 8 of the eight categorical series.`,"chart-axis":`Axis line colour of charts.`,"chart-diverging-high":`Colour of values above the midpoint in a diverging chart.`,"chart-diverging-low":`Colour of values below the midpoint in a diverging chart.`,"chart-diverging-mid":`Neutral midpoint colour of a diverging chart.`,"chart-grid":`Gridline colour of charts.`,"chart-label":`Tick and legend text colour of charts.`,"chart-neutral":`Context series colour, such as the last period, and the folded Other slice.`,"chart-seq-0":`Faintest step of the magnitude ramp, for empty heatmap and calendar cells.`,"chart-seq-1":`First step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-2":`Second step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-3":`Third step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-4":`Fourth step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-5":`Fifth step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-6":`Strongest step of the one-hue magnitude ramp for heatmap and calendar cells.`,danger:`Vivid danger fill for badges, dots and danger buttons.`,"danger-border":`Tinted danger border of alerts and badges.`,"danger-pressed":`Danger fill while a control is pressed.`,"danger-soft":`Soft danger background of alerts and badges.`,"danger-strong":`Deep danger fill that carries its own ink.`,"danger-strong-hover":`Deep danger fill while a control is hovered or pressed.`,"danger-text":`Danger colour as text on a page or a soft danger tint.`,"danger-text-on-soft":`Danger text on its own soft tint, such as an alert heading.`,"field-bg":`Resting fill of input-like controls such as fields and selects.`,"field-border":`Resting border of an input-like control such as a field or select.`,"field-border-focus":`Border of a focused, open or active control such as an input or select.`,"field-border-hover":`Hover border of an input-like control.`,"focus-ring":`Colour of the keyboard focus ring drawn on focus-visible controls.`,"focus-ring-soft":`Translucent step of the focus ring colour, for a soft halo around a focused field.`,info:`Vivid info fill for badges, dots and info buttons.`,"info-border":`Tinted info border of alerts and badges.`,"info-pressed":`Info fill while a control is pressed.`,"info-soft":`Soft info background of alerts and badges.`,"info-strong":`Deep info fill that carries its own ink.`,"info-text":`Info colour as text on a page or a soft info tint.`,"info-text-on-soft":`Info text on its own soft tint, such as an alert heading.`,link:`Interactive link text.`,"link-hover":`Link text while it is hovered.`,neutral:`Quiet unbranded fill for supporting actions such as Back, Skip and Close.`,"neutral-hover":`Neutral fill while a control is hovered.`,"neutral-pressed":`Neutral fill while a control is pressed.`,"neutral-soft":`Soft neutral background of the neutral status pill.`,"neutral-text":`Text on the soft neutral background.`,"offline-fill":`Fill of the offline network banner: the source red, not the contrast-darkened danger fill.`,"on-danger":`Ink on a solid danger fill.`,"on-danger-strong":`Ink on a deep danger fill.`,"on-info":`Ink on a solid info fill.`,"on-info-strong":`Ink on a deep info fill.`,"on-neutral":`Ink on a neutral fill.`,"on-primary":`Text and icon colour on a solid primary fill.`,"on-scrim":`Ink on a scrim, such as the text of an overlay.`,"on-success":`Ink on a solid success fill.`,"on-success-strong":`Ink on a deep success fill.`,"on-surface-dark":`Text and icons on a surface-dark band.`,"on-surface-dark-muted":`Secondary text on a surface-dark band.`,"on-warning":`Ink on a solid warning fill.`,"on-warning-strong":`Ink on a deep warning fill.`,"online-fill":`Fill of the back-online network banner: the source green, not the contrast-darkened success fill.`,primary:`Primary fill for buttons, selected states and borders.`,"primary-hover":`Primary fill while a control is hovered or pressed.`,"primary-soft":`Soft primary tint behind selected and highlighted rows.`,"primary-text":`Primary as text and small glyphs on a page.`,"primary-wash":`Faint translucent primary wash over a surface.`,"primary-wash-strong":`Stronger translucent primary wash over a surface.`,"progress-label":`Label text inside a progress bar fill.`,"progress-track":`Unfilled track of a progress bar or meter.`,scrim:`Dim behind page-level backdrops such as drawers, modals and the shell.`,"scrim-strong":`Stronger dim behind media overlays that carry white ink.`,scrollbar:`Resting thumb colour of a thin scrollbar.`,"scrollbar-active":`Scrollbar thumb colour while it is dragged.`,"scrollbar-hover":`Scrollbar thumb colour while it is hovered.`,"shell-accent":`Warm accent on the dark shell that marks where the user is: the active icon, the open group's guide line, the focus outline and the avatar.`,"shell-accent-ring":`Translucent accent halo on the dark shell, for a selection or focus ring.`,"shell-active":`Fill of the active nav row on the dark shell.`,"shell-bg":`Dark navigation shell background, the sidebar behind the nav items and the workspace switcher.`,"shell-bg-deep":`Deepest shell tone, the ink on an accent mark or an avatar in the shell.`,"shell-bg-raised":`Raised shell band, the fill of the active page row inside an open group.`,"shell-border":`Border of a control on the dark shell, shown on hover.`,"shell-border-strong":`Border of a focused or open control on the dark shell.`,"shell-fill":`Translucent fill for a badge and a focused or open switcher on the dark shell.`,"shell-fill-strong":`Strongest translucent fill on the dark shell, for a control that is held.`,"shell-fill-subtle":`Faint translucent fill on the dark shell, for the open group band and the workspace switcher pill.`,"shell-hover":`Hover fill for a nav row or the sidebar toggle on the dark shell.`,"shell-rule":`Hairline divider between shell groups and under the shell brand.`,"shell-text":`Body text and nav item labels on the dark shell.`,"shell-text-muted":`Quiet text on the dark shell: group labels, nav icons, carets and the sidebar toggle.`,"shell-text-strong":`Emphasis text on the dark shell: the brand name, hovered and open rows, the switcher label.`,success:`Vivid success fill for badges, dots and success buttons.`,"success-border":`Tinted success border of alerts and badges.`,"success-pressed":`Success fill while a control is pressed.`,"success-soft":`Soft success background of alerts and badges.`,"success-strong":`Deep success fill that carries its own ink.`,"success-text":`Success colour as text on a page or a soft success tint.`,"success-text-on-soft":`Success text on its own soft tint, such as an alert heading.`,surface:`Card and panel surface.`,"surface-dark":`Band that stays dark in light and dark mode, such as a site footer or a dark hero.`,"surface-dark-border":`Hairline border or divider on a surface-dark band.`,"surface-ink":`Neutral near-black band, darker than surface-dark, that stays the same in light and dark mode, such as a footer or a contents box.`,"surface-inverse":`Inverse band on a page, such as a dark footer or an inverse toast.`,"surface-inverse-elevated":`A floating or highlighted surface two layers up on an inverse band.`,"surface-inverse-raised":`A card or panel one layer up on an inverse band.`,"surface-inverse-wash-12":`Medium translucent wash over an inverse band, for a selected or pressed tile or row.`,"surface-inverse-wash-24":`Strong translucent wash over an inverse band, for a divider or a filled chip.`,"surface-inverse-wash-4":`Faintest translucent wash over an inverse band, for a resting tile or row.`,"surface-inverse-wash-8":`Light translucent wash over an inverse band, for a hovered tile or row.`,text:`Main heading and body ink.`,"text-body":`Body copy on a tinted surface such as an alert body.`,"text-inverse":`Text on an inverse surface.`,"text-muted":`Secondary text for descriptions and muted copy.`,"text-subtle":`Tertiary text for hints, captions, timestamps and placeholders.`,thumb:`Raised thumb that marks the selected option of a segmented control.`,warning:`Vivid warning fill for badges, dots and warning buttons.`,"warning-border":`Tinted warning border of alerts and badges.`,"warning-pressed":`Warning fill while a control is pressed.`,"warning-soft":`Soft warning background of alerts and badges.`,"warning-strong":`Deep warning fill that carries its own ink.`,"warning-strong-hover":`Deep warning fill while a control is hovered or pressed.`,"warning-text":`Warning colour as text on a page or a soft warning tint.`,"warning-text-on-soft":`Warning text on its own soft tint, such as an alert heading.`}},tokenValues:{color:{bg:{light:`#f4f6f8`,dark:`#0f1117`},"bg-muted":{light:`#f5f6fa`,dark:`#232733`},"bg-subtle":{light:`#f9fbfc`,dark:`#0d0f15`},border:{light:`#ebedf3`,dark:`#3d4554`},"border-strong":{light:`#c4cada`,dark:`#515b6e`},"border-subtle":{light:`#f4f6f8`,dark:`#3d455480`},"chart-1":{light:`#4f46e5`,dark:`#aeaaf5`},"chart-2":{light:`#0a7979`,dark:`#0a7979`},"chart-3":{light:`#7c3aed`,dark:`#a78bfa`},"chart-4":{light:`#2462eb`,dark:`#3987e5`},"chart-5":{light:`#e87ba4`,dark:`#d55181`},"chart-6":{light:`#4b5675`,dark:`#8a90a0`},"chart-7":{light:`#818cf8`,dark:`#7a90ef`},"chart-8":{light:`#a78bfa`,dark:`#8dc2ff`},"chart-axis":{light:`#c4cada`,dark:`#515b6e`},"chart-diverging-high":{light:`#2a78d6`,dark:`#3987e5`},"chart-diverging-low":{light:`#e34948`,dark:`#e66767`},"chart-diverging-mid":{light:`#c4cada`,dark:`#3a414f`},"chart-grid":{light:`#ebedf3`,dark:`#3d4554`},"chart-label":{light:`#626a82`,dark:`#8a90a0`},"chart-neutral":{light:`#99a1b7`,dark:`#5d6475`},"chart-seq-0":{light:`#f5f6fa`,dark:`#20242f`},"chart-seq-1":{light:`#e0e7ff`,dark:`#262c45`},"chart-seq-2":{light:`#c7d2fe`,dark:`#2f3a70`},"chart-seq-3":{light:`#a5b4fc`,dark:`#3b4ba0`},"chart-seq-4":{light:`#818cf8`,dark:`#5168d2`},"chart-seq-5":{light:`#6366f1`,dark:`#7a90ef`},"chart-seq-6":{light:`#4338ca`,dark:`#b3c1f7`},danger:{light:`#e82646`,dark:`#f87171`},"danger-border":{light:`#fdbfce`,dark:`#f8717166`},"danger-pressed":{light:`#e82646`,dark:`#f98686`},"danger-soft":{light:`#ffeaef`,dark:`#e826462e`},"danger-strong":{light:`#c81340`,dark:`#ee5c74`},"danger-strong-hover":{light:`#ab1036`,dark:`#f17489`},"danger-text":{light:`#cf1735`,dark:`#ee5c74`},"danger-text-on-soft":{light:`#cf1735`,dark:`#f07287`},"field-bg":{light:`#f9fbfc`,dark:`#232733`},"field-border":{light:`#dfe2ea`,dark:`#3d4554`},"field-border-focus":{light:`#a5b4fc`,dark:`#aeaaf5`},"field-border-hover":{light:`#c4cada`,dark:`#515b6e`},"focus-ring":{light:`#4f46e5`,dark:`#aeaaf5`},"focus-ring-soft":{light:`#4f46e540`,dark:`#aeaaf540`},info:{light:`#056ee9`,dark:`#60a5fa`},"info-border":{light:`#bbdbff`,dark:`#60a5fa66`},"info-pressed":{light:`#056ee9`,dark:`#78b3fb`},"info-soft":{light:`#e9f3ff`,dark:`#056ee92e`},"info-strong":{light:`#056ee9`,dark:`#4492ef`},"info-text":{light:`#1460ba`,dark:`#4492ef`},"info-text-on-soft":{light:`#1460ba`,dark:`#5da1f1`},link:{light:`#4f46e5`,dark:`#aeaaf5`},"link-hover":{light:`#4338ca`,dark:`#c3c0f8`},neutral:{light:`#07143714`,dark:`#e6e8ee14`},"neutral-hover":{light:`#0714371f`,dark:`#e6e8ee1f`},"neutral-pressed":{light:`#07143729`,dark:`#e6e8ee29`},"neutral-soft":{light:`#626a8229`,dark:`#8a90a029`},"neutral-text":{light:`#4b5675`,dark:`#b4b9c6`},"offline-fill":{light:`#e82646`,dark:`#e82646`},"on-danger":{light:`#ffffff`,dark:`#0f0f1a`},"on-danger-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-info":{light:`#ffffff`,dark:`#0f0f1a`},"on-info-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-neutral":{light:`#071437`,dark:`#e6e8ee`},"on-primary":{light:`#ffffff`,dark:`#0f0f0f`},"on-scrim":{light:`#ffffff`,dark:`#ffffff`},"on-success":{light:`#ffffff`,dark:`#0f0f1a`},"on-success-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-surface-dark":{light:`#ffffff`,dark:`#ffffff`},"on-surface-dark-muted":{light:`#babdc7`,dark:`#babdc7`},"on-warning":{light:`#ffffff`,dark:`#0f0f1a`},"on-warning-strong":{light:`#ffffff`,dark:`#0f0f0f`},"online-fill":{light:`#04b440`,dark:`#04b440`},primary:{light:`#4f46e5`,dark:`#aeaaf5`},"primary-hover":{light:`#4338ca`,dark:`#c3c0f8`},"primary-soft":{light:`#e0e7ff`,dark:`#4f46e533`},"primary-text":{light:`#4f46e5`,dark:`#aeaaf5`},"primary-wash":{light:`#4f46e514`,dark:`#aeaaf514`},"primary-wash-strong":{light:`#4f46e533`,dark:`#aeaaf533`},"progress-label":{light:`#ffffff`,dark:`#0f0f0f`},"progress-track":{light:`#e1e5ee`,dark:`#323845`},scrim:{light:`#07143773`,dark:`#00000073`},"scrim-strong":{light:`#0714379e`,dark:`#0000009e`},scrollbar:{light:`#919eab73`,dark:`#ffffff2e`},"scrollbar-active":{light:`#919eabd9`,dark:`#ffffff66`},"scrollbar-hover":{light:`#919eaba6`,dark:`#ffffff47`},"shell-accent":{light:`#f4a261`,dark:`#f4a261`},"shell-accent-ring":{light:`#f4a26140`,dark:`#f4a26140`},"shell-active":{light:`#ffffff1f`,dark:`#ffffff1f`},"shell-bg":{light:`#1f2d5c`,dark:`#1f2d5c`},"shell-bg-deep":{light:`#141e42`,dark:`#141e42`},"shell-bg-raised":{light:`#2c3f7a`,dark:`#2c3f7a`},"shell-border":{light:`#ffffff38`,dark:`#ffffff38`},"shell-border-strong":{light:`#ffffff66`,dark:`#ffffff66`},"shell-fill":{light:`#ffffff1f`,dark:`#ffffff1f`},"shell-fill-strong":{light:`#ffffff2e`,dark:`#ffffff2e`},"shell-fill-subtle":{light:`#ffffff14`,dark:`#ffffff14`},"shell-hover":{light:`#ffffff12`,dark:`#ffffff12`},"shell-rule":{light:`#ffffff1a`,dark:`#ffffff1a`},"shell-text":{light:`#c9d1e6`,dark:`#c9d1e6`},"shell-text-muted":{light:`#8792b4`,dark:`#8792b4`},"shell-text-strong":{light:`#ffffff`,dark:`#ffffff`},success:{light:`#04b440`,dark:`#30c780`},"success-border":{light:`#baeecc`,dark:`#30c78066`},"success-pressed":{light:`#04b440`,dark:`#4fcf93`},"success-soft":{light:`#e8faee`,dark:`#04b4402e`},"success-strong":{light:`#0e7531`,dark:`#43c770`},"success-text":{light:`#0e7531`,dark:`#43c770`},"success-text-on-soft":{light:`#0e7531`,dark:`#5cce83`},surface:{light:`#ffffff`,dark:`#181b23`},"surface-dark":{light:`#071437`,dark:`#071437`},"surface-dark-border":{light:`#2a3553`,dark:`#2a3553`},"surface-ink":{light:`#0b0e16`,dark:`#0b0e16`},"surface-inverse":{light:`#071437`,dark:`#e6e8ee`},"surface-inverse-elevated":{light:`#1d2949`,dark:`#d2d5de`},"surface-inverse-raised":{light:`#132041`,dark:`#dbdde5`},"surface-inverse-wash-12":{light:`#ffffff1f`,dark:`#0714371f`},"surface-inverse-wash-24":{light:`#ffffff3d`,dark:`#0714373d`},"surface-inverse-wash-4":{light:`#ffffff0a`,dark:`#0714370a`},"surface-inverse-wash-8":{light:`#ffffff14`,dark:`#07143714`},text:{light:`#071437`,dark:`#e6e8ee`},"text-body":{light:`#252f4a`,dark:`#e6e8ee`},"text-inverse":{light:`#ffffff`,dark:`#071437`},"text-muted":{light:`#4b5675`,dark:`#b4b9c6`},"text-subtle":{light:`#626a82`,dark:`#8a90a0`},thumb:{light:`#ffffff`,dark:`#3a3e49`},warning:{light:`#dfa000`,dark:`#fbbf24`},"warning-border":{light:`#fde8b3`,dark:`#fbbf2466`},"warning-pressed":{light:`#dfa000`,dark:`#fcc945`},"warning-soft":{light:`#fff8e6`,dark:`#dfa0002e`},"warning-strong":{light:`#9a6b00`,dark:`#e7b840`},"warning-strong-hover":{light:`#855c00`,dark:`#ebc35d`},"warning-text":{light:`#876100`,dark:`#e7b840`},"warning-text-on-soft":{light:`#876100`,dark:`#eac159`}},space:{"2xl":32,"3xl":48,"4xl":64,lg:16,md:12,none:0,sm:8,xl:24,xs:4,xxs:2},radius:{"2xl":18,"3xl":20,lg:14,md:10,none:0,pill:9999,sm:8,xl:16},shadow:{card:null,drawer:{x:0,y:24,blur:60,spread:-16,color:`rgba(7, 20, 55, 0.28)`,elevation:12},elevated:{x:0,y:2,blur:8,spread:-2,color:`rgba(7, 20, 55, 0.10)`,elevation:4},modal:{x:0,y:24,blur:60,spread:-16,color:`rgba(7, 20, 55, 0.28)`,elevation:12},popover:{x:0,y:8,blur:28,spread:-6,color:`rgba(7, 20, 55, 0.14)`,elevation:8}},font:{display:{family:`Webority Serif`,fallback:`Cambria, Georgia, Times New Roman, Noto Serif, serif`},mono:{family:`JetBrains Mono`,fallback:`SFMono-Regular, Menlo, Monaco, Consolas, monospace`},ui:{family:`Webority Sans`,fallback:`Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif`}},text:{"2xl":{size:32,weight:null},"3xl":{size:44,weight:null},"4xl":{size:56,weight:null},"5xl":{size:72,weight:null},"6xl":{size:96,weight:null},"7xl":{size:119.95,weight:null},"8xl":{size:144,weight:null},base:{size:16.8,weight:null},lg:{size:20,weight:null},sm:{size:14,weight:null},xl:{size:24,weight:null},xs:{size:13,weight:null}},leading:{body:1.55,display:1.05,heading:1.2,lead:1.6,prose:1.7}},icons:`aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-1.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.at.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.ban.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.bolt.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.briefcase-cross.briefcase-tick.briefcase-timer.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.comment.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.database.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.ellipsis.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flame.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.funnel.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.github.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.hamburger-menu.hand.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.journal-text.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layers.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.linkedin.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.microsoft.milk.mini-music-sqaure.minus.minus-circle.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-receive.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-2.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presentation-chart.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.reddit.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.robot.rotate-ccw.rotate-cw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.sliders.sliders-horizontal.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.snowflake.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.thumbs-down.thumbs-up.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-circle.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out`.split(`.`),renames:[{version:`0.87.1`,components:[],values:{}},{version:`0.89.0`,components:[],values:{}},{version:`0.91.0`,components:[],values:{}},{version:`0.93.0`,components:[],values:{}},{version:`0.97.0`,components:[],values:{variant:{subtle:`neutral`}}},{version:`0.107.0`,components:[],values:{}},{version:`0.108.0`,components:[{name:`AppSelectMini`,to:`AppSelect`,props:{prefix:`valuePrefix`},values:{},added:{compact:!0},removed:{}},{name:`AppInfoList`,to:`AppDescriptions`,props:{},values:{},added:{layout:`list`,columns:1},removed:{}},{name:`AppLogoPicker`,to:`AppImagePicker`,props:{},values:{},added:{},removed:{}},{name:`AppAvatarPicker`,to:`AppImagePicker`,props:{initials:`fallback`},values:{},added:{kind:`avatar`},removed:{}},{name:`AppPagination`,to:`AppTablePagination`,props:{},values:{},added:{variant:`standalone`},removed:{}},{name:`AppSidebarMenu`,to:`AppDrawer`,props:{show:`open`},values:{side:{right:`end`,left:`start`}},added:{sheet:!1,width:`420px`},removed:{backdrop:`removed: AppDrawer always draws its backdrop; use staticBackdrop to stop a click closing it`,scroll:`removed: the page behind a drawer never scrolls`,keyboard:`removed: Escape closes the drawer unless it is set dismissible={false}, which a drawer only an action closes needs`,responsive:`removed: no inline mode; render the content in the page at that width instead`,closeButton:`removed: set dismissible={false}`}},{name:`AppTableEmptyState`,to:`AppEmptyState`,props:{},values:{},added:{variant:`table`},removed:{}},{name:`AppStepper`,props:{activeStep:`active`},values:{},added:{},removed:{}}],values:{}},{version:`0.114.0`,components:[{name:`AppAlert`,props:{variant:`tone`},values:{},added:{},removed:{}}],values:{}},{version:`0.130.0`,components:[{name:`AppButton`,props:{},values:{variant:{primary:`solid`,secondary:`soft`,success:`solid`,danger:`solid`,warning:`solid`,info:`solid`,light:`solid`,dark:`solid`,"outline-primary":`outline`,"outline-secondary":`outline`,"outline-success":`outline`,"outline-danger":`outline`,"outline-warning":`outline`,"outline-info":`outline`,"outline-dark":`outline`,"outline-light":`glass`,"secondary-danger":`soft`,neutral:`soft`,text:`link`}},added:{},removed:{}},{name:`AppCopyButton`,props:{},values:{variant:{primary:`solid`,secondary:`soft`,success:`solid`,danger:`solid`,warning:`solid`,info:`solid`,light:`solid`,dark:`solid`,"outline-primary":`outline`,"outline-secondary":`outline`,"outline-success":`outline`,"outline-danger":`outline`,"outline-warning":`outline`,"outline-info":`outline`,"outline-dark":`outline`,"outline-light":`glass`,"secondary-danger":`soft`,neutral:`soft`,text:`link`}},added:{},removed:{}},{name:`AppSplitButton`,props:{},values:{variant:{primary:`solid`,secondary:`soft`,success:`solid`,danger:`solid`,warning:`solid`,info:`solid`,light:`solid`,dark:`solid`,"outline-primary":`outline`,"outline-secondary":`outline`,"outline-success":`outline`,"outline-danger":`outline`,"outline-warning":`outline`,"outline-info":`outline`,"outline-dark":`outline`,"outline-light":`glass`,"secondary-danger":`soft`,neutral:`soft`,text:`link`}},added:{},removed:{}},{name:`AppCheckbox`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppColorField`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppDatePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppDateRangePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppDropZone`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppFilePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppImagePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppMentionInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppNumberInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppOtpInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppPhoneNumberInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppRadio`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppRadioGroup`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppRating`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppRichText`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppScoreScale`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppSelect`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppSlider`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppSwitch`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppTextarea`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppTimePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppUpdateBar`,props:{message:`description`},values:{},added:{},removed:{}},{name:`AppPopover`,props:{show:`open`},values:{},added:{},removed:{}},{name:`AppDropdown`,props:{show:`open`},values:{},added:{},removed:{}},{name:`AppModal`,props:{},values:{tone:{default:`neutral`}},added:{},removed:{}},{name:`AppTooltip`,props:{},values:{tone:{default:`neutral`}},added:{},removed:{}},{name:`AppShell`,props:{},values:{topbarTone:{default:`neutral`}},added:{},removed:{}},{name:`AppConfirmDialog`,props:{message:`description`},values:{tone:{error:`danger`,delete:`danger`}},added:{},removed:{}},{name:`AppCard`,props:{},values:{variant:{default:`flat`,outlined:`outline`,muted:`filled`}},added:{},removed:{}},{name:`AppEmptyState`,props:{text:`description`},values:{},added:{},removed:{}},{name:`AppResourceCard`,props:{text:`description`},values:{},added:{},removed:{}},{name:`AppSectionLeadCapture`,props:{text:`description`},values:{},added:{},removed:{}},{name:`AppSplash`,props:{text:`description`},values:{},added:{},removed:{}},{name:`AppConsentBanner`,props:{heading:`title`},values:{},added:{},removed:{}},{name:`AppLeadPopup`,props:{heading:`title`},values:{},added:{},removed:{}}],values:{}},{version:`0.139.0`,components:[{name:`AppAutocomplete`,to:`AppSelect`,props:{},values:{},added:{mode:`search`},removed:{}},{name:`AppMultiSelect`,to:`AppSelect`,props:{values:`value`,defaultValues:`defaultValue`,customPattern:`pattern`,customInvalidMessage:`invalidMessage`},values:{},added:{mode:`multiple`},removed:{}},{name:`AppTagInput`,to:`AppSelect`,props:{values:`value`,defaultValues:`defaultValue`},values:{},added:{mode:`tag`},removed:{}},{name:`AppCountrySelect`,to:`AppSelect`,props:{},values:{},added:{mode:`country`},removed:{}}],values:{}},{version:`0.152.0`,components:[],values:{}},{version:`0.158.0`,components:[],values:{}},{version:`0.160.0`,components:[],values:{}},{version:`0.164.0`,components:[],values:{}},{version:`0.165.0`,components:[],values:{}},{version:`0.167.0`,components:[],values:{}},{version:`0.172.0`,components:[],values:{}},{version:`0.177.0`,components:[],values:{}}]}});export{JVt as default};
|
|
603
|
+
`):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=KDt(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=KDt(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),f6.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(R5.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(U5.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(J5.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push($5.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(VPt.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(HPt.configure(this.options.taskList)),e}}),e7=` `,t7=`\xA0`,UPt=m6.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,f0(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===e7||n[0].text===e7||n[0].raw===t7||n[0].text===t7)&&r.length===1&&r[0].type===`text`&&(r[0].text===e7||r[0].text===t7)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?e7:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),WPt=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,GPt=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,KPt=c6.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,f0(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[D0({find:WPt,type:this.type})]},addPasteRules(){return[A0({find:GPt,type:this.type})]}}),qPt=m6.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),JPt=c6.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,f0(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),YPt=f6.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(qNt.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(HNt.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(R5.configure(this.options.bulletList)),this.options.code!==!1&&e.push(XNt.configure(this.options.code)),this.options.codeBlock!==!1&&e.push($Nt.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(ePt.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(XMt.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(ZMt.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(tPt.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(nPt.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(eNt.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(rPt.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(cPt.configure(this.options.italic)),this.options.listItem!==!1&&e.push(U5.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(J5.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(TPt.configure(this.options?.link)),this.options.orderedList!==!1&&e.push($5.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(UPt.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(KPt.configure(this.options.strike)),this.options.text!==!1&&e.push(qPt.configure(this.options.text)),this.options.underline!==!1&&e.push(JPt.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push($Mt.configure(this.options?.trailingNode)),e}}),XPt=[2,3],n7=[`http`,`https`,`mailto`,`tel`],r7=/^[a-z][a-z0-9+.-]*:/i,i7={bold:e=>e.toggleBold(),italic:e=>e.toggleItalic(),code:e=>e.toggleCode(),heading2:e=>e.toggleHeading({level:2}),heading3:e=>e.toggleHeading({level:3}),bulletList:e=>e.toggleBulletList(),orderedList:e=>e.toggleOrderedList(),blockquote:e=>e.toggleBlockquote(),codeBlock:e=>e.toggleCodeBlock(),undo:e=>e.undo(),redo:e=>e.redo()},Object.keys(i7),a7=`http://www.w3.org/2000/svg`,o7=e=>Xkt({viewBox:`0 0 24 24`,width:18,height:18,fill:`none`,stroke:`currentColor`,"stroke-width":1.8,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`,focusable:`false`},e),s7=(e,t=``)=>E$(`span`,{class:`wui-rich-text-glyph${t?` wui-rich-text-glyph-${t}`:``}`,"aria-hidden":`true`},e),ZPt={bold:()=>s7(`B`,`bold`),italic:()=>s7(`I`,`italic`),heading2:()=>s7(`H2`),heading3:()=>s7(`H3`),code:()=>o7([[`path`,{d:`m8 8-4 4 4 4M16 8l4 4-4 4`}]]),codeBlock:()=>s7(`{ }`),link:()=>o7([[`path`,{d:`M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1`}]]),bulletList:()=>o7([[`path`,{d:`M9 6h11M9 12h11M9 18h11`}],[`circle`,{cx:`4.5`,cy:`6`,r:`.8`,fill:`currentColor`}],[`circle`,{cx:`4.5`,cy:`12`,r:`.8`,fill:`currentColor`}],[`circle`,{cx:`4.5`,cy:`18`,r:`.8`,fill:`currentColor`}]]),orderedList:()=>o7([[`path`,{d:`M10 6h10M10 12h10M10 18h10M4 5l1.5-1v4M4 14.5c0-1.4 2.5-1.4 2.5 0S4 16.5 4 17.5h2.5M4 20h2.5l-1.2 1.3c.8 0 1.2.5 1.2 1s-.6 1-1.5 1`}]]),blockquote:()=>o7([[`path`,{d:`M6 17c-1.5-1-2-2.5-2-4.5C4 9.5 5.5 8 8 7M14 17c-1.5-1-2-2.5-2-4.5 0-3 1.5-4.5 4-5.5`}]]),undo:()=>o7([[`path`,{d:`M9 14 4 9l5-5`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 0 11H11`}]]),redo:()=>o7([[`path`,{d:`m15 14 5-5-5-5`}],[`path`,{d:`M20 9H9.5a5.5 5.5 0 0 0 0 11H13`}]])},QPt=/\{([A-Za-z0-9_]+)\}/g,c7=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,$Pt=new Map,l7=0,u7=new Map,eFt={requiredFieldMessage:`Please fill in this field.`},tFt={applyLabel:`Apply`,ariaLabel:`Rich text`,boldLabel:`Bold`,bulletedListLabel:`Bulleted list`,cancelLabel:`Cancel`,closeLinkBoxLabel:`Close link box`,codeBlockLabel:`Code block`,heading2Label:`Heading 2`,heading3Label:`Heading 3`,helpLabel:`More information`,inlineCodeLabel:`Inline code`,italicLabel:`Italic`,linkAddressLabel:`Link address`,linkErrorMessage:`Use a web address, an email address or a phone number.`,linkLabel:`Link`,loadFailedText:`The editor couldn't load. Reload the page and try again.`,numberedListLabel:`Numbered list`,quoteLabel:`Quote`,redoLabel:`Redo`,removeLinkLabel:`Remove link`,textFormattingLabel:`Text formatting`,undoLabel:`Undo`},nFt=[`html`,`markdown`],d7=()=>tAt(`richText`,tFt),rFt=[[[`bold`,`boldLabel`,`Control+B Meta+B`],[`italic`,`italicLabel`,`Control+I Meta+I`],[`code`,`inlineCodeLabel`,`Control+E Meta+E`],[`link`,`linkLabel`,`Control+K Meta+K`]],[[`heading2`,`heading2Label`,`Control+Alt+2 Meta+Alt+2`],[`heading3`,`heading3Label`,`Control+Alt+3 Meta+Alt+3`]],[[`bulletList`,`bulletedListLabel`,`Control+Shift+8 Meta+Shift+8`],[`orderedList`,`numberedListLabel`,`Control+Shift+7 Meta+Shift+7`],[`blockquote`,`quoteLabel`,`Control+Shift+B Meta+Shift+B`],[`codeBlock`,`codeBlockLabel`,`Control+Alt+C Meta+Alt+C`]],[[`undo`,`undoLabel`,`Control+Z Meta+Z`],[`redo`,`redoLabel`,`Control+Shift+Z Meta+Shift+Z`]]],iFt={bold:!0,italic:!0,code:!0,heading2:!0,heading3:!0,bulletList:!0,orderedList:!0,blockquote:!0,codeBlock:!0,link:!0,undo:!0,redo:!0},aFt=new Map([[`ArrowRight`,1],[`ArrowLeft`,-1],[`Home`,`first`],[`End`,`last`]]),oFt=e=>o2(iFt,e),f7=!1,p7=class extends oAt{static formAssociated=!0;_value;_lastSet;_committed;_editor;_internals;_initial;_seeded;_abort;get _toolbar(){return r2(this,`.wui-rich-text-toolbar`,HTMLElement)}get _linkbar(){return r2(this,`[data-linkbar]`,HTMLElement)}get _linkInput(){return r2(this,`[data-link-input]`,HTMLInputElement)}get _linkError(){return r2(this,`[data-link-error]`,HTMLElement)}get _mounted(){if(!this._editor)throw Error(`<wui-rich-text> has no editor mounted.`);return this._editor}static get observedAttributes(){return[`placeholder`,`disabled`,`readonly`,`loading`,`required`,`aria-label`,`aria-invalid`,`aria-describedby`]}constructor(){super(),this._value=``,this._lastSet=null,this._committed=``,this._editor=null;try{this._internals=this.attachInternals()}catch{this._internals=null}}get value(){return this._editor?this._editor.getValue():this._value}set value(e){let t=e==null?``:String(e);t!==this._lastSet&&t!==this.value&&(this._lastSet=t,this._value=t,this._editor&&(this._editor.setValue(t),this._committed=this.value,this._afterValueChange()))}get format(){let e=this.getAttribute(`format`);return e!=null&&!nFt.includes(e)&&!f7&&(f7=!0,fSt(`[wui-rich-text] received format="${e}", which is not one of "html" | "markdown". The field uses "html" instead.`)),e===`markdown`?`markdown`:`html`}set format(e){e==null||e===``?this.removeAttribute(`format`):this.setAttribute(`format`,String(e))}connectedCallback(){if(o2(this,`value`)){let e=this.value;Reflect.deleteProperty(this,`value`),this._value=e==null?``:String(e),this._lastSet=this._value,this._initial=this._value,this._seeded=!0}else if(!this._seeded){this._seeded=!0;let e=this.querySelector(`:scope > textarea[data-wui-fallback]`);this._value=e instanceof HTMLTextAreaElement?e.value:this.getAttribute(`value`)??``,this._initial=this._value}this.hasAttribute(`role`)||this.setAttribute(`role`,`group`),this._build()}disconnectedCallback(){this._teardown()}attributeChangedCallback(e){this._editor&&(e===`placeholder`?this._editor.refreshPlaceholder():e===`disabled`||e===`readonly`||e===`loading`?this._syncEditable():(e===`required`&&this._syncValidity(),this._editor.setAttributes(this._surfaceAttributes())))}formResetCallback(){this.value=this._initial??``,this._committed=this.value}focus(e){this._editor?this._editor.focus():super.focus(e)}_surfaceAttributes(){let e={role:`textbox`,"aria-multiline":`true`,"aria-label":this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||d7().ariaLabel,class:`wui-rich-text-prose`},t=this.getAttribute(`aria-describedby`);return t&&(e[`aria-describedby`]=t),this.hasAttribute(`aria-invalid`)&&(e[`aria-invalid`]=`true`),this.hasAttribute(`required`)&&(e[`aria-required`]=`true`),this.hasAttribute(`readonly`)&&(e[`aria-readonly`]=`true`),this.hasAttribute(`disabled`)&&(e[`aria-disabled`]=`true`),e}_build(){this._teardown();let e=d7(),t=rFt.map(t=>E$(`div`,{class:`wui-rich-text-group`,role:`group`},...t.map(([t,n,r])=>{let i=e[n];return E$(`button`,{type:`button`,class:`wui-rich-text-button`,"data-action":t,title:i,"aria-label":i,"aria-keyshortcuts":r,"aria-pressed":t!==`link`&&t!==`undo`&&t!==`redo`?`false`:void 0,tabindex:`-1`},ZPt[t]())})));this.replaceChildren(E$(`div`,{class:`wui-rich-text-shell`},E$(`div`,{class:`wui-rich-text-toolbar`,role:`toolbar`,"aria-label":e.textFormattingLabel},...t),E$(`div`,{class:`wui-rich-text-linkbar`,"data-linkbar":!0,hidden:!0},E$(`input`,{type:`text`,class:`wui-rich-text-link-input`,"data-link-input":!0,"aria-label":e.linkAddressLabel,placeholder:`https://`,autocomplete:`off`}),E$(`button`,{type:`button`,class:`wui-rich-text-link-apply`,"data-link-apply":!0},e.applyLabel),E$(`button`,{type:`button`,class:`wui-rich-text-link-remove`,"data-link-remove":!0},e.removeLinkLabel),E$(`button`,{type:`button`,class:`wui-rich-text-link-cancel`,"data-link-cancel":!0,"aria-label":e.closeLinkBoxLabel},e.cancelLabel),E$(`div`,{class:`wui-rich-text-link-error`,"data-link-error":!0,role:`alert`,hidden:!0},e.linkErrorMessage)),E$(`div`,{class:`wui-rich-text-content`,"data-editor":!0}))),this._editor=Jkt({element:r2(this,`[data-editor]`,HTMLElement),content:this._value,format:this.format,placeholder:()=>this.getAttribute(`placeholder`)||``,editable:this._isEditable(),attributes:this._surfaceAttributes(),onChange:()=>this._onEdit(),onSelection:()=>this._syncToolbar(),onBlur:()=>this._onBlur()}),this._committed=this.value,this._wire(),this._syncEditable(),this._afterValueChange()}_teardown(){this._editor&&=(this._value=this.value,this._abort?.abort(),this._editor.destroy(),null)}_isEditable(){return!lAt(this)}_syncEditable(){this._mounted.setEditable(this._isEditable()),this._mounted.setAttributes(this._surfaceAttributes()),pSt(this,r2(this,`.wui-rich-text-shell`,HTMLElement)),this._syncToolbar(),this._syncMirror()}_syncMirror(){gSt(this,this.value)}_syncValidity(){let e=this._internals;typeof e?.setValidity==`function`&&(this.hasAttribute(`required`)&&this._mounted.isEmpty()?e.setValidity({valueMissing:!0},tAt(`field`,eFt).requiredFieldMessage,r2(this,`[data-editor] [contenteditable]`,HTMLElement)):e.setValidity({}))}_afterValueChange(){this._syncMirror(),this._syncValidity(),this._syncToolbar()}_onEdit(){this._lastSet=null,this._afterValueChange(),this.dispatchEvent(new Event(`input`,{bubbles:!0}))}_onBlur(){let e=this.value;e!==this._committed&&(this._committed=e,this.dispatchEvent(new Event(`change`,{bubbles:!0})))}_buttons(){return[...this._toolbar.querySelectorAll(`button`)]}_syncToolbar(){if(!this._editor)return;let e=this._editor.state(),t=!this._isEditable();for(let n of this._buttons()){let r=n.dataset.action??``,i=oFt(r)&&e[r];(n.hasAttribute(`aria-pressed`)||r===`link`)&&n.setAttribute(`aria-pressed`,String(i)),n.disabled=t||(r===`undo`||r===`redo`)&&!i}let n=this._buttons(),r=n.find(e=>e.tabIndex===0&&!e.disabled)??n.find(e=>!e.disabled);for(let e of n)e.tabIndex=e===r?0:-1}_wire(){this._abort=new AbortController;let{signal:e}=this._abort;this._toolbar.addEventListener(`mousedown`,e=>e.preventDefault(),{signal:e}),this._toolbar.addEventListener(`click`,e=>{let t=i2(e.target,`button[data-action]`);if(!t||t.disabled)return;let n=t.dataset.action??``;n===`link`?this._openLinkBar():this._mounted.run(n)},{signal:e}),this._toolbar.addEventListener(`keydown`,e=>this._toolbarKey(e),{signal:e}),this._toolbar.addEventListener(`focusin`,e=>{let t=i2(e.target,`button`);if(t)for(let e of this._buttons())e.tabIndex=e===t?0:-1},{signal:e}),r2(this,`[data-editor]`,HTMLElement).addEventListener(`keydown`,e=>{e.key.toLowerCase()===`k`&&(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&this._isEditable()&&(e.preventDefault(),this._openLinkBar())},{signal:e}),this._linkbar.addEventListener(`keydown`,e=>{vSt(e)?(e.preventDefault(),this._applyLink()):e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),this._closeLinkBar())},{signal:e}),this._linkbar.addEventListener(`click`,e=>{let t=e.target instanceof Element?e.target:null;t?.closest(`[data-link-apply]`)?this._applyLink():t?.closest(`[data-link-remove]`)?(this._mounted.removeLink(),this._closeLinkBar()):t?.closest(`[data-link-cancel]`)&&this._closeLinkBar()},{signal:e}),this._linkInput.addEventListener(`input`,()=>{this._linkError.hidden=!0,this._linkInput.removeAttribute(`aria-invalid`)},{signal:e})}_toolbarKey(e){let t=aFt.get(eAt(e.key,$kt(this)));if(t===void 0)return;let n=this._buttons().filter(e=>!e.disabled);if(!n.length)return;e.preventDefault();let r=i2(e.target,`button`),i=r===null?-1:n.indexOf(r);n[t===`first`?0:t===`last`?n.length-1:(i+t+n.length)%n.length]?.focus()}_openLinkBar(){this._linkInput.value=this._mounted.linkHref(),this._linkError.hidden=!0,this._linkInput.removeAttribute(`aria-invalid`),r2(this._linkbar,`[data-link-remove]`,HTMLButtonElement).hidden=!this._mounted.state().link,this._linkbar.hidden=!1,this._linkInput.focus(),this._linkInput.select()}_closeLinkBar(){this._linkbar.hidden=!0,this._mounted.focus()}_applyLink(){this._mounted.setLink(this._linkInput.value)?this._closeLinkBar():(this._linkError.hidden=!1,this._linkInput.setAttribute(`aria-invalid`,`true`),this._linkInput.focus())}},dSt(`wui-rich-text`,p7)})),cFt=[`html`,`markdown`],lFt=[`input`,`change`];function uFt({ref:e,...t}){let{marker:n,props:r}=U(`AppRichText`,t),i=Vs(`richText`,bme),{value:a,onChange:o,format:s,placeholder:c,name:l,label:u,error:d,helperText:m,required:h=!1,disabled:g=!1,readOnly:_=!1,loading:y=!1,defaultValue:b,id:C,ariaLabel:w,className:T=``,fieldClassName:E=``,help:D,helpLabel:O=i.helpLabel,...k}=r,A=Oc(l),j=d??A;G(`AppRichText`,k),W(`AppRichText`,`format`,s,cFt);let M=p(),N=C||M,[P,F]=v(!1),[I,L]=v(()=>Eo(`wui-rich-text`)),{setRef:R}=pV({ready:I,ref:e,value:a,defaultValue:b,onChange:o,events:lFt});return f(()=>{if(I)return;let e=!0;return Promise.resolve().then(()=>(sFt(),uSt)).then(()=>fde(`wui-rich-text`)).then(()=>{e&&L(!0)},t=>{ce(`[AppRichText] the editor failed to load:`,typeof t==`object`&&t&&`message`in t?t.message:void 0),e&&F(!0)}),()=>{e=!1}},[I]),S(`div`,{...n,className:`field${E?` ${E}`:``}`,children:[u&&S(`label`,{className:`label`,htmlFor:N,children:[u,h&&x(Uc,{}),D&&x(Hc,{label:O,children:D})]}),P?x(`div`,{className:`field-error`,role:`status`,children:i.loadFailedText}):x(`wui-rich-text`,{ref:R,id:N,role:`group`,name:l,format:s||void 0,placeholder:c,"aria-label":w||(typeof u==`string`?u:void 0),"aria-describedby":j?`${N}-error`:m?`${N}-hint`:void 0,"aria-invalid":j?`true`:void 0,required:h?``:void 0,disabled:g?``:void 0,readonly:_?``:void 0,loading:y?``:void 0,className:T||void 0,...k},s||`html`),x(Ac,{error:j,hint:m,errorId:`${N}-error`,hintId:`${N}-hint`})]})}var dFt,m7,fFt,h7,g7,_7,pFt=M((()=>{Lz(),Rc(),AB(),RB(),xn(),cpe(),dFt=`wui-saved-views:`,m7=20,fFt=0,h7=()=>pn(`savedViews`,spe),g7=e=>typeof e==`object`&&!!e&&`name`in e&&typeof e.name==`string`&&`query`in e&&typeof e.query==`string`,_7=class extends Lc{static get observedAttributes(){return[`key`,`mode`,`action`,`can-share`]}_doc=null;_dom=null;_views;_open;_busy;_error;_trigger;_onTriggerClick;_onKeyDown;_onPointerDown;_onSubmit;constructor(){super(),this._views=[],this._open=!1,this._busy=!1,this._error=null,this._onTriggerClick=()=>this._setOpen(!this._open),this._onKeyDown=e=>{this._open&&e.target instanceof Node&&this.contains(e.target)&&(e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),this._setOpen(!1),this._trigger?.focus()):(e.key===`ArrowDown`||e.key===`ArrowUp`)&&this._ui.menu.contains(e.target)&&!(e.target instanceof Element&&/input|textarea/i.test(e.target.tagName))&&(e.preventDefault(),e.stopPropagation()))},this._onPointerDown=e=>{this._open&&!e.composedPath().includes(this)&&this._setOpen(!1)},this._onSubmit=async e=>{e.preventDefault();let t=this._ui.input.value.trim();if(!t)return;if(this._server()){if(this._busy)return;let e={name:t,query:this._ownerDoc.location.search};this._canShare()&&(e.shared=String(this._ui.share.checked)),await this._request(`save`,e)&&(this._ui.input.value=``,this._ui.share.checked=!1);return}let n=this._ownerDoc.location.search;this._commit([{name:t,query:n},...this._views.filter(e=>e.name!==t)].slice(0,m7)),this._ui.input.value=``}}get _ownerDoc(){if(!this._doc)throw Error(`wui-saved-views is not connected`);return this._doc}get _ui(){if(!this._dom)throw Error(`wui-saved-views is not built`);return this._dom}connectedCallback(){this._doc=this.ownerDocument,this._trigger||this._build(),window.addEventListener(`keydown`,this._onKeyDown,!0),this._reload()}disconnectedCallback(){this._setOpen(!1),window.removeEventListener(`keydown`,this._onKeyDown,!0),this._doc=null}attributeChangedCallback(){this._doc&&this._trigger&&this._reload()}_reload(){this._server()?(this._views=[],this._render(),this._request(`list`)):(this._views=this._load(),this._render())}_server(){return this.getAttribute(`mode`)===`server`&&!!this.getAttribute(`action`)&&!!this.getAttribute(`key`)}_canShare(){return this._server()&&this.getAttribute(`can-share`)===`true`}async _request(e,t={}){let n=this.getAttribute(`action`)??``,r=this.getAttribute(`key`)??``,i=n,a;e===`list`?i+=(n.includes(`?`)?`&`:`?`)+new URLSearchParams({intent:`list`,key:r}):a={method:`POST`,body:new URLSearchParams({intent:e,key:r,...t})},this._busy=!0,this._render();let o=await MB(i,a);if(this._busy=!1,this._doc===null)return!1;if(o.ok){let e=kB(o.html);return this._views=[...e.querySelectorAll(`[data-wui-saved-views-items] > li`)].filter(e=>e instanceof HTMLLIElement).map(e=>({name:e.dataset.name,query:e.dataset.query,shared:e.dataset.shared===`true`})).filter(g7),this._error=null,this._render(),!0}return this._error=o.message||h7().viewsNotUpdatedMessage,this._render(),!1}_build(){let e=this._ownerDoc;this.classList.add(`dropdown`),this._trigger=e.createElement(`button`),this._trigger.type=`button`,this._trigger.className=Pz(`neutral`,`outline`,`sm`),this._trigger.dataset.wui=Fz,this._trigger.textContent=h7().viewsLabel,this._trigger.setAttribute(`aria-haspopup`,`true`),this._trigger.setAttribute(`aria-expanded`,`false`),this._trigger.addEventListener(`click`,this._onTriggerClick);let t=e.createElement(`div`);t.className=`dropdown-menu`;let n=e.createElement(`div`);n.className=`dropdown-divider`;let r=e.createElement(`input`);r.type=`text`,r.className=`form-control wui-input-sm`,r.setAttribute(`aria-label`,h7().viewNameLabel),r.placeholder=h7().nameViewPlaceholder;let i=e.createElement(`button`);i.type=`submit`,i.className=Pz(`primary`,`solid`,`sm`),i.dataset.wui=Fz,i.textContent=h7().saveViewLabel;let a=e.createElement(`form`);a.className=`d-flex gap-2 px-3 py-2`,a.append(r,i),a.addEventListener(`submit`,this._onSubmit);let o=e.createElement(`input`);o.type=`checkbox`,o.className=`form-check-input`,o.setAttribute(`role`,`switch`),o.id=`wui-saved-views-share-${fFt++}`;let s=e.createElement(`label`);s.className=`form-check-label`,s.htmlFor=o.id,s.textContent=h7().shareTeamLabel;let c=e.createElement(`div`);c.className=`form-check form-switch mb-0`,c.append(o,s);let l=e.createElement(`div`);l.className=`px-3 pb-2`,l.hidden=!0,l.append(c),this._dom={menu:t,divider:n,form:a,input:r,save:i,shareRow:l,share:o},this.append(this._trigger,t)}_render(){let e=this._ownerDoc,t=this._ui,n=[];for(let t of this._views){let r=e.createElement(`a`);if(r.className=`dropdown-item`,r.setAttribute(`href`,e.location.pathname+t.query),r.textContent=t.name,t.shared){let t=e.createElement(`span`);t.className=`badge text-bg-secondary ms-2`,t.textContent=h7().sharedLabel,r.append(t)}let i=e.createElement(`button`);i.type=`button`,i.className=`btn btn-link btn-sm`,i.textContent=h7().deleteLabel,i.setAttribute(`aria-label`,K(h7().deleteText,{name:t.name})),i.disabled=this._busy,i.addEventListener(`click`,()=>this._server()?this._request(`delete`,{name:t.name}):this._commit(this._views.filter(e=>e.name!==t.name))),n.push(r,i)}if(this._error){let t=e.createElement(`div`);t.className=`dropdown-item-text text-danger small`,t.setAttribute(`role`,`alert`),t.textContent=this._error,n.push(t)}t.save.disabled=this._busy,t.share.disabled=this._busy,t.shareRow.hidden=!this._canShare(),t.menu.replaceChildren(...n,t.divider,t.form,t.shareRow)}_commit(e){this._views=e,this._write(e),this._render()}_setOpen(e){e!==this._open&&(this._open=e,this._ui.menu.classList.toggle(`show`,e),this._trigger?.setAttribute(`aria-expanded`,String(e)),e?this._ownerDoc.addEventListener(`pointerdown`,this._onPointerDown,!0):this._ownerDoc.removeEventListener(`pointerdown`,this._onPointerDown,!0))}_storage(){let e=this.getAttribute(`key`);if(!e)return null;try{let t=this._ownerDoc.defaultView;return t?{store:t.localStorage,key:dFt+e}:null}catch{return null}}_load(){let e=this._storage();if(!e)return[];try{let t=JSON.parse(e.store.getItem(e.key)??`[]`);return Array.isArray(t)?t.filter(g7).slice(0,m7):[]}catch{return[]}}_write(e){let t=this._storage();if(t)try{t.store.setItem(t.key,JSON.stringify(e))}catch(e){if(!(e instanceof DOMException))throw e}}}})),mFt=P({WuiSavedViews:()=>_7}),hFt=M((()=>{Rc(),pFt(),Ic(`wui-saved-views`,_7)})),gFt=()=>Promise.resolve().then(()=>(hFt(),mFt));function _Ft(e){Fc(`wui-saved-views`,gFt);let{marker:t,props:n}=U(`AppSavedViews`,e),{storageKey:r,className:i=``,...a}=n;G(`AppSavedViews`,a);let o=_(null);if(h(()=>{o.current?.setAttribute(`key`,r)},[r]),r.trim()===``)throw Error(`AppSavedViews needs a storageKey, the name its views are stored under.`);return x(`wui-saved-views`,{ref:o,class:i||void 0,...t,...a})}function vFt(e){let t=Vs(`scoreScale`,Cme),{value:n=null,onChange:r,min:i=0,max:a=10,label:o,lowLabel:s,highLabel:c,name:l,disabled:u=!1,error:d,helperText:f,id:m,className:h=``,fieldClassName:g=``,scoreLabel:_=t.scoreLabel}=e,v=Oc(l),y=d??v,b=p(),C=m||b,w=l||C,T=`${C}-error`,E=`${C}-hint`,D=Array.from({length:Math.max(0,a-i+1)},(e,t)=>i+t),O=s!=null||c!=null;return S(`div`,{...se(`AppScoreScale`,e),className:`field${g?` ${g}`:``}`,children:[o!=null&&x(`span`,{className:`label`,id:`${C}-label`,children:o}),S(`div`,{className:`wui-score-scale${h?` ${h}`:``}`,id:C,role:`radiogroup`,"aria-labelledby":o==null?void 0:`${C}-label`,"aria-label":o==null?_:void 0,"aria-invalid":y?`true`:void 0,"aria-describedby":y?T:f?E:void 0,children:[D.map(e=>S(`label`,{className:`wui-score-scale__item${n===e?` wui-score-scale__item--selected`:``}`,children:[x(`input`,{type:`radio`,className:`visually-hidden`,name:w,value:e,checked:n===e,disabled:u,onChange:()=>r?.(e)}),e]},e)),O&&S(`span`,{className:`wui-score-scale__ends`,children:[x(`span`,{children:s}),x(`span`,{children:c})]})]}),x(Ac,{error:y,hint:f,errorId:T,hintId:E})]})}function yFt(e){let{marker:t,props:n}=U(`AppScrollbar`,e),{children:r,className:i=``,maxHeight:a,style:o,...s}=n;G(`AppScrollbar`,s);let c=i?`wui-scroll ${i}`:`wui-scroll`;return x(`div`,{className:c,style:a==null?o:{maxHeight:a,...o},...t,...s,children:r})}var v7=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],y7=[`start`,`center`],b7=[`default`,`muted`],bFt=[`display`,`body`];function xFt(e){return v7.some(t=>t===e)}function x7(e,t){return xFt(e)?e:t}function SFt(e){return v7[Math.min(v7.indexOf(e)+1,5)]??`h6`}function S7({className:e,src:t,alt:n,width:r,height:i}){return x(`img`,{className:e,src:t,alt:n,width:r,height:i,loading:`lazy`,decoding:`async`})}function C7({component:e,kind:t,title:n,as:r,eyebrow:i,subtitle:a,align:o,variant:s,eyebrowTone:c,titleFont:l,inset:u,actions:d,extraClass:f,className:p,rest:m,children:h}){if(n==null||n===``)throw Error(`${e} needs a title: every section opens with its heading.`);let g=r,_=m.id?`${m.id}-title`:void 0,v=Hs.includes(c??``),{style:y,...b}=m,C=u==null&&y===void 0?void 0:{"--wui-section-inset":u==null?void 0:`${u}px`,...y},w=[`wui-section`,`wui-section-${t}`,o===`center`?`wui-section-center`:``,s===`muted`?`wui-section-muted`:``,f,p].filter(Boolean).join(` `);return x(`section`,{className:w,style:C,"aria-labelledby":_,...b,children:S(`div`,{className:`wui-section-inner`,children:[S(`div`,{className:`wui-section-head`,children:[i!=null&&i!==``&&x(`div`,{className:v?`wui-section-eyebrow wui-section-eyebrow-pill wui-section-eyebrow-${c}`:`wui-section-eyebrow`,children:i}),x(g,{className:l===`body`?`wui-section-title wui-section-title-body`:`wui-section-title`,id:_,children:n}),a!=null&&a!==``&&x(`p`,{className:`wui-section-subtitle`,children:a}),d!=null&&d!==!1&&x(`div`,{className:`wui-section-actions`,children:d})]}),h]})})}var CFt=[...b7,`band`];function wFt(e){let{marker:t,props:n}=U(`AppSectionCallToAction`,e),{title:r,actions:i,as:a=`h2`,eyebrow:o,subtitle:s,align:c=`center`,variant:l=`default`,className:u=``,...d}=n;G(`AppSectionCallToAction`,d),W(`AppSectionCallToAction`,`as`,a,v7),W(`AppSectionCallToAction`,`align`,c,y7),W(`AppSectionCallToAction`,`variant`,l,CFt);let f=[l===`band`?`wui-section-call-to-action--band`:``,u].filter(Boolean).join(` `);return x(C7,{component:`AppSectionCallToAction`,kind:`call-to-action`,title:r,as:x7(a,`h2`),eyebrow:o,subtitle:s,align:c,variant:l,actions:i,className:f,rest:{...t,...d}})}var TFt=[...b7,`split`];function EFt(e,t,r){return!Array.isArray(t)&&r==null?e:n.map(e,e=>{if(!c(e)||e.type!==Pfe)return e;let n={};return Array.isArray(t)&&(n.openItems=t.map(t=>e.props.items?.[t]?.key??String(t))),r!=null&&(n.closeLabel=r),a(e,n)})}function DFt(e){let{marker:t,props:n}=U(`AppSectionFaq`,e),{title:r,as:i=`h2`,eyebrow:a,subtitle:o,align:s,variant:c=`default`,children:l,openItems:u,closeLabel:d,className:f=``,...p}=n;G(`AppSectionFaq`,p),W(`AppSectionFaq`,`as`,i,v7),W(`AppSectionFaq`,`align`,s,y7),W(`AppSectionFaq`,`variant`,c,TFt);let m=s??(c===`split`?`start`:`center`),h=[c===`split`?`wui-section-faq--split`:``,f].filter(Boolean).join(` `);return x(C7,{component:`AppSectionFaq`,kind:`faq`,title:r,as:x7(i,`h2`),eyebrow:a,subtitle:o,align:m,variant:c,className:h,rest:{...t,...p},children:l!=null&&l!==!1&&x(`div`,{className:`wui-section-faq-body`,children:EFt(l,u,d)})})}var OFt=[`grid`,`rows`];function kFt(e){let{marker:t,props:n}=U(`AppSectionFeatures`,e),{title:r,items:i=[],layout:a=`grid`,as:o=`h2`,eyebrow:s,subtitle:c,align:l=`center`,variant:u=`default`,titleFont:d=`display`,inset:f,className:p=``,...m}=n;G(`AppSectionFeatures`,m),W(`AppSectionFeatures`,`layout`,a,OFt),W(`AppSectionFeatures`,`as`,o,v7),W(`AppSectionFeatures`,`align`,l,y7),W(`AppSectionFeatures`,`variant`,u,b7),W(`AppSectionFeatures`,`titleFont`,d,bFt);for(let e of i)if(e.imageSrc!==void 0){if(e.icon)throw Error(`AppSectionFeatures item "${e.title}" sets both icon and imageSrc: pick one.`);if(!e.imageAlt?.trim()||(e.imageWidth??0)<=0||(e.imageHeight??0)<=0)throw Error(`AppSectionFeatures item "${e.title}" needs imageAlt, imageWidth and imageHeight with imageSrc: an image without a size moves the page when it loads.`)}let h=x7(o,`h2`),g=SFt(h);return x(C7,{component:`AppSectionFeatures`,kind:`features`,title:r,as:h,eyebrow:s,subtitle:c,align:l,variant:u,titleFont:d,inset:f,extraClass:a===`rows`?`wui-section-features-rows`:``,className:p,rest:{...t,...m},children:i.length>0&&x(`ul`,{className:`wui-section-features-list`,children:i.map(e=>S(`li`,{className:`wui-section-feature`,children:[e.media!=null&&x(`div`,{className:`wui-section-media`,children:e.media}),S(`div`,{className:`wui-section-feature-body`,children:[e.imageSrc!==void 0&&x(`span`,{className:`wui-section-feature-icon wui-section-feature-icon-image`,children:x(S7,{className:`wui-section-feature-img`,src:e.imageSrc,alt:e.imageAlt??``,width:e.imageWidth??0,height:e.imageHeight??0})}),e.icon&&x(`span`,{className:`wui-section-feature-icon`,children:x(J,{name:e.icon,size:24})}),x(g,{className:`wui-section-feature-title`,children:e.title}),e.description!=null&&e.description!==``&&x(`div`,{className:`wui-section-feature-text`,children:e.description})]})]},e.key??e.title))})})}function AFt(e){let{marker:t,props:n}=U(`AppSectionHero`,e),{title:r,as:i=`h1`,eyebrow:a,subtitle:o,align:s=`start`,variant:c=`default`,eyebrowTone:l,actions:u,media:d,className:f=``,...p}=n;return G(`AppSectionHero`,p),W(`AppSectionHero`,`as`,i,v7),W(`AppSectionHero`,`align`,s,y7),W(`AppSectionHero`,`variant`,c,b7),l!==void 0&&W(`AppSectionHero`,`eyebrowTone`,l,Hs),x(C7,{component:`AppSectionHero`,kind:`hero`,title:r,as:x7(i,`h1`),eyebrow:a,subtitle:o,align:s,variant:c,eyebrowTone:l,actions:u,className:f,rest:{...t,...p},children:d!=null&&d!==!1&&x(`div`,{className:`wui-section-media`,children:d})})}var jFt=e=>e!=null&&e!==``&&e!==!1;function MFt({ref:e,...t}){let{marker:n,props:r}=U(`AppTextarea`,t),i=Vs(`textarea`,Lme),{label:a,required:o=!1,optional:s=!1,optionalLabel:c=i.optionalLabel,error:l,helperText:d,help:m,helpLabel:g=i.helpLabel,id:y,name:b,rows:C=4,autoGrow:w=!1,monospace:T=!1,showCount:E=!1,maxLength:D,disabled:O=!1,readOnly:k=!1,loading:A=!1,size:j=`md`,className:M=``,fieldClassName:N=``,controlOnly:P=!1,value:F,...I}=r,L=Oc(b),R=l??L,{onChange:z,...B}=I;if(P){let e=[[`label`,a],[`error`,R],[`helperText`,d],[`fieldClassName`,N],[`showCount`,E],[`help`,m],[`optional`,s]];for(let[t,n]of e)if(jFt(n))throw Error(`<AppTextarea> controlOnly draws no field, so it takes no ${t}; draw the label or message on the page.`)}G(`AppTextarea`,I),W(`AppTextarea`,`size`,j,jc),f(()=>{},[s,o]);let V=p(),H=y||V,ee=[w?`autosize`:``,T?`wui-mono`:``,R?`error`:``,j===`sm`?`wui-input-sm`:``,j===`lg`?`wui-input-lg`:``,j===`xl`?`wui-input-xl`:``,A?Nc:``,M].filter(Boolean).join(` `),te=R&&H?`${H}-error`:void 0,ne=d&&H?`${H}-hint`:void 0,re=te||ne,ie=_(null),ae=t=>{ie.current=t,typeof e==`function`?e(t):e&&(e.current=t)},oe=_(void 0),se=u(()=>{let e=ie.current;e&&(e.style.height=`auto`,e.style.height=`${e.scrollHeight}px`,oe.current=`${e.value}|${e.clientWidth}`)},[]);h(()=>{let e=ie.current;!w||!e?oe.current=void 0:`${String(F??e.value)}|${e.clientWidth}`!==oe.current&&se()});let[ce,le]=v(()=>String(F??I.defaultValue??``).length);f(()=>{E&&F!==void 0&&le(String(F??``).length)},[F,E]);let ue=e=>{w&&se(),E&&le(e.currentTarget.value.length),I.onInput?.(e)},de=x(wc.Control,{as:`textarea`,id:H,name:b,rows:C,className:ee,"aria-invalid":R?`true`:`false`,"aria-describedby":re,"aria-busy":A||void 0,required:o,maxLength:D,disabled:O,readOnly:k||A,...P?n:null,...F===void 0?null:{value:F},...B,...z?{onChange:z}:null,ref:ae,onInput:ue});return P?de:S(wc.Group,{...n,className:`field${N?` ${N}`:``}`,children:[a&&S(wc.Label,{className:`label`,htmlFor:H,children:[a,s&&!o&&x(`span`,{className:`label-optional`,children:` ${c}`}),o&&x(Uc,{}),m&&x(Hc,{label:g,children:m})]}),de,x(Ac,{error:R,hint:d,errorId:te,hintId:ne}),E&&S(`div`,{className:`field-count${D&&ce>=D?` at-limit`:``}`,children:[ce,D?` / ${D}`:``]})]})}var NFt=[`name`,`email`,`phone`,`company`,`message`],PFt={name:`name`,email:`email`,company:`organization`},FFt=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function IFt(e,t,n){let r={};for(let{name:i,required:a=!1}of e){let e=(t[i]??``).trim();a&&e===``?r[i]=n.required:i===`email`&&e!==``&&!FFt.test(e)&&(r[i]=n.invalidEmail)}return r}function LFt(e){let{marker:t,props:n}=U(`AppSectionLeadCapture`,e),r=Vs(`sectionLeadCapture`,wme),{title:i,description:a,fields:o,onSubmit:s,submitLabel:c=r.submitLabel,nameLabel:l=r.nameLabel,emailLabel:u=r.emailLabel,phoneLabel:d=r.phoneLabel,companyLabel:f=r.companyLabel,messageLabel:m=r.messageLabel,requiredText:h=r.requiredText,invalidEmailText:g=r.invalidEmailText,submitErrorText:_=r.submitErrorText,successTitle:y,successText:b,consent:C,as:w=`h2`,eyebrow:T,subtitle:E,align:D=`center`,variant:O=`default`,className:k=``,...A}=n;G(`AppSectionLeadCapture`,A),W(`AppSectionLeadCapture`,`as`,w,v7),W(`AppSectionLeadCapture`,`align`,D,y7),W(`AppSectionLeadCapture`,`variant`,O,b7);for(let e of o)W(`AppSectionLeadCapture`,`fields.name`,e.name,NFt);let j=p(),[M,N]=v(()=>Object.fromEntries(o.map(e=>[e.name,``]))),[P,F]=v({}),[I,L]=v(null),[R,z]=v(!1),[B,V]=v(!1),H=(e,t)=>N(n=>({...n,[e]:t})),ee={name:l,email:u,phone:d,company:f,message:m},te={required:h,invalidEmail:g};async function ne(){if(R)return!1;let e=IFt(o,M,te);if(F(e),L(null),Object.keys(e).length>0)return!1;let t=Object.fromEntries(Object.entries(M).map(([e,t])=>[e,(t??``).trim()]));z(!0);try{return await s(t),V(!0),!0}catch(e){let t=typeof e==`object`&&e&&`message`in e?e.message:void 0;return L(typeof t==`string`&&t!==``?t:_),!1}finally{z(!1)}}function re({name:e,label:t=ee[e],required:n=!1}){let r=`${j}-${e}`,i=P[e];return e===`phone`?x(cbt,{id:r,name:e,label:t,required:n,value:M[e],onChange:t=>H(e,t),error:i},e):e===`message`?x(MFt,{id:r,name:e,label:t,required:n,value:M[e],onChange:t=>H(e,t.target.value),error:i},e):x(Gc,{id:r,name:e,type:e===`email`?`email`:`text`,autoComplete:PFt[e],label:t,required:n,value:M[e],onChange:t=>H(e,t.target.value),error:i},e)}return S(C7,{component:`AppSectionLeadCapture`,kind:`lead-capture`,title:i,as:x7(w,`h2`),eyebrow:T,subtitle:E,align:D,variant:O,className:k,rest:{...t,...A},children:[a!=null&&a!==``&&x(`p`,{className:`wui-section-lead-text`,children:a}),B?x(`div`,{className:`wui-section-lead-success`,children:x(Tc,{tone:`success`,title:y,children:b})}):S(ave,{className:`wui-section-lead-form`,noValidate:!0,onSubmit:ne,children:[x(`div`,{className:`wui-section-lead-fields`,children:o.map(re)}),I!=null&&x(Tc,{tone:`danger`,children:I}),x(nl,{type:`submit`,loading:R,children:c}),C!=null&&C!==``&&x(`p`,{className:`wui-section-lead-consent`,children:C})]})]})}var w7=e=>typeof e==`string`&&e.trim()!==``?e:void 0;function RFt(e,t){let n=w7(e.alt)??w7(e.name)??w7(e.label);if(n===void 0||e.width===void 0||e.height===void 0)throw Error(`AppSectionLogos item "${t}" needs alt, width and height.`);return x(S7,{className:`wui-section-logo-img`,src:t,alt:n,width:e.width,height:e.height})}function zFt(e){let{marker:t,props:n}=U(`AppSectionLogos`,e),{title:r,items:i=[],as:a=`h2`,eyebrow:o,subtitle:s,align:c=`center`,variant:l=`default`,className:u=``,linkComponent:d,...f}=n;G(`AppSectionLogos`,f),W(`AppSectionLogos`,`as`,a,v7),W(`AppSectionLogos`,`align`,c,y7),W(`AppSectionLogos`,`variant`,l,b7);for(let e of i){let t=w7(e.src),n=w7(e.name)??w7(e.label),r=(e.width??0)>0&&(e.height??0)>0;if(!(t?(w7(e.alt)??n)!==void 0&&r:n!==void 0))throw Error(`AppSectionLogos item "${e.src??``}" needs src, alt (the company's name), width and height: a logo without a size moves the page when it loads.`)}return x(C7,{component:`AppSectionLogos`,kind:`logos`,title:r,as:x7(a,`h2`),eyebrow:o,subtitle:s,align:c,variant:l,className:u,rest:{...t,...f},children:i.length>0&&x(`ul`,{className:`wui-section-logos-list`,children:i.map(e=>{let t=w7(e.src),n=w7(e.name)??w7(e.label),r=t?RFt(e,t):x(`span`,{className:`wui-section-logo-text`,children:n}),i=w7(e.caption),a=i?S(`span`,{className:`wui-section-logo-stack`,children:[r,x(`span`,{className:`wui-section-logo-caption`,children:i})]}):r,o=gs(d,{href:e.href});return x(`li`,{className:`wui-section-logo`,children:e.href?x(_s,{link:o,children:a}):a},e.key??t??n)})})})}function BFt(e){let{marker:t,props:n}=U(`AppSectionPricing`,e),{title:r,as:i=`h2`,eyebrow:a,subtitle:o,align:s=`center`,variant:c=`default`,children:l,className:u=``,...d}=n;return G(`AppSectionPricing`,d),W(`AppSectionPricing`,`as`,i,v7),W(`AppSectionPricing`,`align`,s,y7),W(`AppSectionPricing`,`variant`,c,b7),x(C7,{component:`AppSectionPricing`,kind:`pricing`,title:r,as:x7(i,`h2`),eyebrow:a,subtitle:o,align:s,variant:c,className:u,rest:{...t,...d},children:l!=null&&l!==!1&&x(`div`,{className:`plan-grid`,children:l})})}function VFt(e){let{marker:t,props:n}=U(`AppSectionTestimonials`,e),{title:r,items:i=[],as:a=`h2`,eyebrow:o,subtitle:s,align:c=`center`,variant:l=`default`,className:u=``,...d}=n;return G(`AppSectionTestimonials`,d),W(`AppSectionTestimonials`,`as`,a,v7),W(`AppSectionTestimonials`,`align`,c,y7),W(`AppSectionTestimonials`,`variant`,l,b7),x(C7,{component:`AppSectionTestimonials`,kind:`testimonials`,title:r,as:x7(a,`h2`),eyebrow:o,subtitle:s,align:c,variant:l,className:u,rest:{...t,...d},children:i.length>0&&x(`ul`,{className:`wui-section-testimonials-list`,children:i.map(e=>x(`li`,{children:S(`figure`,{className:`wui-section-testimonial`,children:[x(`blockquote`,{className:`wui-section-testimonial-quote`,children:e.quote}),S(`figcaption`,{className:`wui-section-testimonial-author`,children:[e.avatar&&x(S7,{className:`wui-section-testimonial-avatar`,src:e.avatar,alt:``,width:48,height:48}),S(`span`,{className:`wui-section-testimonial-who`,children:[e.name&&x(`span`,{className:`wui-section-testimonial-name`,children:e.name}),e.role&&x(`span`,{className:`wui-section-testimonial-role`,children:e.role})]})]})]})},e.key??e.name))})})}var HFt=[`website`,`article`],UFt=[`summary`,`summary_large_image`];function WFt(e){let{title:t,description:n,canonicalUrl:r,siteName:i,robots:a,image:o,imageAlt:s,jsonLd:c}=e;W(`AppSeoHead`,`type`,e.type,HFt),W(`AppSeoHead`,`twitterCard`,e.twitterCard,UFt);let l=HFt.includes(e.type??``)?e.type:`website`,u=UFt.includes(e.twitterCard??``)?e.twitterCard:`summary`,d=c?JSON.stringify(c).replace(/</g,`\\u003c`):null;return S(b,{children:[x(`title`,{children:t}),x(`meta`,{name:`description`,content:n}),x(`link`,{rel:`canonical`,href:r}),x(`meta`,{name:`robots`,content:a}),x(`meta`,{property:`og:type`,content:l}),x(`meta`,{property:`og:site_name`,content:i}),x(`meta`,{property:`og:title`,content:t}),x(`meta`,{property:`og:description`,content:n}),x(`meta`,{property:`og:url`,content:r}),o?x(`meta`,{property:`og:image`,content:o}):null,o&&s?x(`meta`,{property:`og:image:alt`,content:s}):null,x(`meta`,{name:`twitter:card`,content:u}),x(`meta`,{name:`twitter:title`,content:t}),x(`meta`,{name:`twitter:description`,content:n}),o?x(`meta`,{name:`twitter:image`,content:o}):null,o&&s?x(`meta`,{name:`twitter:image:alt`,content:s}):null,d?x(`script`,{type:`application/ld+json`,children:d}):null]})}var GFt=/^[a-z][a-z0-9+.-]*:/i;function T7(e){if(typeof e!=`string`||e.trim()===``)return null;let t=e.trim(),n=t.search(/[?#]/);if(n>=0&&(t=t.slice(0,n)),t.startsWith(`~/`)&&(t=t.slice(1)),t===``||t.startsWith(`//`)||GFt.test(t))return null;for(t[0]!==`/`&&(t=`/${t}`);t.length>1&&t.endsWith(`/`);)t=t.slice(0,-1);return t}function KFt(e,t,n){return e.toLowerCase()===t.toLowerCase()?!0:n||t===`/`?!1:e.toLowerCase().startsWith(`${t.toLowerCase()}/`)}function qFt(e,t){return e==null||t==null?e:e.toLowerCase()===t.toLowerCase()?`/`:e.toLowerCase().startsWith(`${t.toLowerCase()}/`)?e.slice(t.length):e}function JFt(e,t,{exact:n=!1,also:r,pathBase:i}={}){let a=T7(e);if(a==null)return-1;let o=T7(i);o===`/`&&(o=null);let s=-1,c=(e,t)=>{e!=null&&KFt(a,e,t)&&(s=Math.max(s,e.length))};c(qFt(T7(t),o),n);for(let e of r??[])c(qFt(T7(e),o),!1);return s}var YFt=`wui-shell-collapsed`,XFt=31536e3,E7=e=>e instanceof DOMException&&e.name===`SecurityError`;function ZFt(e=YFt,t=document){let n;try{n=t.cookie}catch(e){if(E7(e))return null;throw e}for(let t of n.split(`;`)){let n=t.indexOf(`=`);if(n<0||t.slice(0,n).trim()!==e)continue;let r=t.slice(n+1).trim();return r===`1`||r!==`0`&&null}return null}function QFt(e,t=YFt,n=document){try{n.cookie=`${t}=${e?`1`:`0`}; Path=/; Max-Age=${XFt}; SameSite=Lax`}catch(e){if(!E7(e))throw e}}var D7=`wui-nav-folded`;function $Ft(e=D7,t=document){let n;try{n=t.cookie}catch(e){if(E7(e))return new Set;throw e}for(let t of n.split(`;`)){let n=t.indexOf(`=`);if(!(n<0||t.slice(0,n).trim()!==e))return new Set(t.slice(n+1).trim().split(`.`).filter(Boolean))}return new Set}function eIt(e,t=D7,n=document){try{n.cookie=`${t}=${[...e].join(`.`)}; Path=/; Max-Age=${XFt}; SameSite=Lax`}catch(e){if(!E7(e))throw e}}var tIt=()=>Promise.resolve().then(()=>(Nz(),Mz)),nIt=()=>Promise.resolve().then(()=>(ml(),pl)),O7=99,rIt=4,iIt=5,aIt=/^[a-z0-9-]+$/,k7=`wui-sidebar-footer`,oIt=[],sIt=[`prefix`,`exact`],cIt=[`comfortable`,`compact`],lIt=[`neutral`,`primary`],uIt=[`default`,`brand`],dIt=[`side`,`top`],fIt=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],pIt=new Set([`key`,`label`,`icon`,`iconVariant`,`iconSize`,`href`,`badge`,`badgeTone`,`badgeTitle`,`newUntil`,`trailingIcon`,`active`,`match`,`matchAlso`,`tab`,`tabLabel`,`children`,`header`,`description`]),A7=e=>e>O7?`${O7}+`:String(e),mIt=new Intl.DateTimeFormat(`en-CA`,{timeZone:kn}),hIt=e=>{if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}$/.test(e))return!1;let t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())||t.toISOString().slice(0,10)!==e?!1:mIt.format(new Date)<=e},gIt=({logoLight:e,logoDark:t,markLight:n,markDark:r})=>{let i=!!(n||r);return[`app-sidebar-brand`,i&&`wui-brand-has-mark`,i&&!e&&!t&&`wui-brand-mark-only`,(t||r)&&`wui-brand-themed`].filter(Boolean).join(` `)},_It=({logoLight:e,logoDark:t,markLight:n,markDark:r,brandName:i,logoLightWidth:a,logoLightHeight:o,logoDarkWidth:s,logoDarkHeight:c,markLightWidth:l,markLightHeight:u,markDarkWidth:d,markDarkHeight:f})=>{let p=i??``,m=[e&&x(`img`,{className:`wui-brand-logo wui-brand-light`,src:e,alt:p,width:a,height:o},`logo-light`),t&&x(`img`,{className:`wui-brand-logo wui-brand-dark`,src:t,alt:``,"aria-hidden":`true`,width:s,height:c},`logo-dark`)],h=[n&&[`mark-light`,`wui-brand-mark wui-brand-light`,n,l,u],r&&[`mark-dark`,`wui-brand-mark wui-brand-dark`,r,d,f]].filter(e=>!!e).map(([t,n,r,i,a],o)=>o===0&&!e?x(`img`,{className:n,src:r,alt:p,width:i,height:a},t):x(`img`,{className:n,src:r,alt:``,"aria-hidden":`true`,width:i,height:a},t));return[...m,...h].filter(Boolean)};function vIt(e){let{marker:t,props:n}=U(`AppShell`,e),r=Vs(`shell`,Bs),{groups:i=[],brand:a,logoLight:o,logoDark:s,markLight:c,markDark:l,logoLightWidth:u,logoLightHeight:d,logoDarkWidth:p,logoDarkHeight:m,markLightWidth:h,markLightHeight:y,markDarkWidth:C,markDarkHeight:w,brandName:T,brandHref:E,brandLabel:D,sidebarStart:O,sidebarStartCompact:k,sidebarFooter:A,sidebarFooterItems:j=oIt,topbarStart:M,topbarEnd:N,footer:P,launcher:F,children:I,collapsed:L,onCollapsedChange:R,noSidebar:z=!1,nav:B=`side`,topNavDetail:V=!1,capBadges:H=!1,density:ee=`comfortable`,itemHeight:te,iconVariant:ne=`twotone`,topbarTone:re=`neutral`,tone:ie=`default`,navLabel:ae=r.navLabel,linkComponent:oe,currentPath:se,rememberCollapsed:ce=!1,collapsedCookie:le=`wui-shell-collapsed`,foldedCookie:ue=D7,tabBarLabel:de=r.tabBarLabel,moreLabel:fe=r.moreLabel,skipLabel:pe=r.skipLabel,openNavLabel:me=r.openNavLabel,expandNavLabel:he=r.expandNavLabel,collapseNavLabel:ge=r.collapseNavLabel,newLabel:_e=r.newLabel,togglePagesLabel:ve=r.togglePagesLabel,accountMenuLabel:ye=r.accountMenuLabel,roleLabel:be=r.roleLabel,rolesLabel:xe=r.rolesLabel,unreadLabel:Se=r.unreadLabel,markAllReadLabel:Ce=r.markAllReadLabel,viewAllLabel:we=r.viewAllLabel,loadingNotificationsText:Te=r.loadingNotificationsText,noUnreadText:Ee=r.noUnreadText,unreadNotificationsText:De=r.unreadNotificationsText,unreadBellLabel:Oe=r.unreadBellLabel,searchResultsLabel:ke=r.searchResultsLabel,noResultsText:Ae=r.noResultsText,noResultsForText:je=r.noResultsForText,resultsCountText:Me=r.resultsCountText,resultCountText:Ne=r.resultCountText,userMenu:Pe,notifications:Fe,search:Ie,className:Le=``,style:Re,...ze}=n;if(G(`AppShell`,ze),W(`AppShell`,`density`,ee,cIt),W(`AppShell`,`topbarTone`,re,lIt),W(`AppShell`,`tone`,ie,uIt),W(`AppShell`,`nav`,B,dIt),W(`AppShell`,`iconVariant`,ne,fIt),D!==void 0&&!E)throw Error(`<AppShell> brandLabel names the brand link, so it needs brandHref.`);if(E){if(!D&&!T)throw Error(`<AppShell> brandHref needs brandLabel or brandName: the collapsed rail hides the logo, so the link would have no accessible name.`);if(!(a||o||s||c||l))throw Error(`<AppShell> brandHref has no brand, logo or mark to link.`)}let Be=(te??0)>0?{...Re,"--wui-nav-item-height":`${te}px`}:Re,[Ve,He]=v(()=>ce&&L===void 0&&typeof document<`u`?ZFt(le)??!1:!1),[Ue,We]=v(!1),Ge=_(null),[Ke,qe]=v(!1),[Je,Ye]=v(!1),Xe=_(null),Ze=L??Ve,Qe=e=>E?x(DIt,{href:E,label:D||T,linkComponent:oe,onNavigate:()=>We(!1),children:e}):e,$e=()=>{let e=!Ze;L===void 0&&He(e),ce&&QFt(e,le),R?.(e)},et=i.some(e=>e.collapsible),[tt,nt]=v(()=>et&&typeof document<`u`?$Ft(ue):new Set),rt=e=>{let t=new Set(tt);t.has(e)?t.delete(e):t.add(e),nt(t),eIt(t,ue)},it=g(()=>yIt(i,j,se),[i,j,se]),at=it.groups,ot=it.footer,st=z?null:wIt(at,ot.some(e=>e.active));f(()=>{let e=()=>qe(window.scrollY>4);return e(),window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),f(()=>{Zde()},[]),f(()=>{Vde(Xe.current)},[]),f(()=>{let e=Xe.current;if(!e)return;let t=()=>Ye(at.length>0&&e.scrollHeight>e.clientHeight);if(t(),typeof ResizeObserver>`u`)return;let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[at]),f(()=>{let e=Ge.current;if(!e)return;let t=window.matchMedia(`(max-width: 991.98px)`),n=()=>{t.matches?e.setAttribute(`popover`,`auto`):(e.removeAttribute(`popover`),We(!1))},r=e=>We(`newState`in e&&e.newState===`open`);return n(),t.addEventListener(`change`,n),e.addEventListener(`toggle`,r),()=>{t.removeEventListener(`change`,n),e.removeEventListener(`toggle`,r)}},[]),f(()=>{let e=Ge.current;e?.hasAttribute(`popover`)&&va(e,Ue)},[Ue]);let ct=[`app-shell`,Ze?`collapsed`:``,z?`no-sidebar`:``,B===`top`?`wui-shell-top`:``,Ue?`mobile-open`:``,Le].filter(Boolean).join(` `);return S(`div`,{className:ct,"data-density":ee===`compact`?`compact`:void 0,"data-shell-tone":ie===`brand`?`brand`:void 0,"data-wui-folded-cookie":et?ue:void 0,style:Be,...t,...ze,children:[x(`a`,{className:`wui-skip-link`,href:`#main-content`,children:pe}),S(`aside`,{className:`app-sidebar`,ref:Ge,children:[(a||o||s||c||l)&&x(`div`,{className:gIt({logoLight:o,logoDark:s,markLight:c,markDark:l}),children:Qe(S(b,{children:[_It({logoLight:o,logoDark:s,markLight:c,markDark:l,brandName:T,logoLightWidth:u,logoLightHeight:d,logoDarkWidth:p,logoDarkHeight:m,markLightWidth:h,markLightHeight:y,markDarkWidth:C,markDarkHeight:w}),a]}))}),O&&x(`div`,{className:`app-sidebar-start`,children:O}),k&&x(`div`,{className:`app-sidebar-start-compact`,children:k}),x(`nav`,{className:`app-sidebar-scroll`,"aria-label":ae,ref:Xe,tabIndex:Je?0:void 0,children:at.map((e,t)=>{let n=e.items.map(e=>e.header==null?x(N7,{item:e,linkComponent:oe,onNavigate:()=>We(!1),iconVariant:ne,newLabel:_e,togglePagesLabel:ve,capBadges:H},e.key??e.href??e.label):x(`div`,{className:`wui-nav-header`,children:e.header},e.key??e.header));if(!e.collapsible)return S(`div`,{className:`app-nav-group`,children:[e.label&&x(`div`,{className:`app-nav-group-label`,children:e.label}),n,e.after&&x(`div`,{className:`wui-nav-group-after`,children:e.after})]},e.key??e.label??`group-${t}`);let r=!tt.has(e.key??``)||!!M7(e.items),i=`wui-nav-group-${e.key}`;return S(`div`,{className:`app-nav-group wui-nav-group-collapsible${r?``:` wui-nav-group-folded`}`,"data-wui-nav-group":e.key,children:[S(`button`,{type:`button`,className:`app-nav-group-label wui-nav-group-toggle`,"aria-expanded":r,"aria-controls":i,onClick:()=>rt(e.key??``),children:[x(`span`,{className:`wui-nav-group-text`,children:e.label}),x(`span`,{className:`wui-nav-group-caret`,children:x(J,{name:`chevron-down`,size:16})})]}),S(`div`,{className:`wui-nav-group-body`,id:i,children:[n,e.after&&x(`div`,{className:`wui-nav-group-after`,children:e.after})]})]},e.key??`group-${t}`)})}),(A||ot.length>0)&&S(`div`,{className:`app-sidebar-foot`,children:[ot.length>0&&x(`div`,{className:`wui-sidebar-foot-links`,children:ot.map(e=>x(N7,{item:e,linkComponent:oe,onNavigate:()=>We(!1),iconVariant:ne,newLabel:_e,togglePagesLabel:ve,capBadges:H},e.key??e.href??e.label))}),A]}),!z&&x(`button`,{type:`button`,className:`app-sidebar-toggle`,onClick:$e,"aria-label":Ze?he:ge,"aria-expanded":!Ze,children:x(J,{name:`chevrons-left`,size:20})})]}),S(`div`,{className:`app-main`,children:[S(`header`,{className:`app-topbar${Ke?` wui-scrolled`:``}`,"data-tone":re===`primary`?`primary`:void 0,children:[S(`div`,{className:`app-topbar-start`,children:[x(`button`,{type:`button`,className:`app-topbar-menu`,onClick:()=>We(!0),"aria-label":me,"aria-expanded":Ue,children:x(J,{name:`menu`,size:18})}),B===`top`&&a&&x(`div`,{className:`wui-shell-top-brand`,children:Qe(a)}),B===`top`&&x(`div`,{className:`wui-shell-top-nav`,children:x(Udt,{items:TIt(at,V),ariaLabel:ae,linkComponent:oe})}),M,Ie&&x(NIt,{config:Ie,searchResultsLabel:ke,noResultsText:Ae,noResultsForText:je,resultsCountText:Me,resultCountText:Ne,moreLabel:fe})]}),S(`div`,{className:`app-topbar-end`,children:[N,Fe&&x(jIt,{config:Fe,unreadLabel:Se,markAllReadLabel:Ce,viewAllLabel:we,loadingNotificationsText:Te,noUnreadText:Ee,unreadNotificationsText:De,unreadBellLabel:Oe}),Pe&&x(AIt,{config:Pe,linkComponent:oe,accountMenuLabel:ye,roleLabel:be,rolesLabel:xe})]})]}),x(`main`,{className:`app-content`,id:`main-content`,children:I}),P&&x(`footer`,{className:`app-footer`,children:P})]}),F&&x(`div`,{className:`wui-shell-launcher`,children:F}),st&&S(`nav`,{className:`wui-tabbar`,"aria-label":de,"data-wui-cap-badges":H||void 0,children:[st.tabs.map(e=>x(OIt,{tab:e,linkComponent:oe,iconVariant:ne,capBadges:H},e.key??e.href)),st.hasMore&&S(`button`,{type:`button`,className:`wui-tabbar-item${st.moreActive?` active`:``}`,onClick:()=>We(!0),children:[x(`span`,{className:`wui-tabbar-icon`,children:x(J,{name:`more`,size:24})}),x(`span`,{className:`wui-tabbar-label`,children:fe})]})]})]})}function yIt(e,t,n){let r=t;for(let e of r){if(e.children?.length)throw Error(`<AppShell> sidebarFooterItems cannot hold children; keep footer links flat.`);if(e.tab)throw Error(`<AppShell> sidebarFooterItems cannot carry tab: true; the phone tab bar is built from groups.`);if(e.header!=null)throw Error(`<AppShell> sidebarFooterItems cannot hold a header row.`)}for(let t of e)t.collapsible&&CIt(t);let i=(e,t=!1)=>(e??[]).map(e=>Array.isArray(e.children)?{...e,children:i(e.children)}:{...e}).filter(e=>j7(e)?t:(e.children?.length??0)>0||!!e.href),a=[...e,{key:k7,items:t}].map(e=>({...e,items:xIt(i(e.items,!0))})).filter(e=>e.items.some(e=>!j7(e))),o=[],s=e=>{for(let t of e)j7(t)||(o.push(t),t.children&&s(t.children))};for(let e of a)s(e.items);for(let e of o)G(`AppShell items`,bIt(e)),W(`AppShell`,`match`,e.match,sIt),W(`AppShell`,`iconVariant`,e.iconVariant,fIt),W(`AppShell`,`badgeTone`,e.badgeTone,Hs);let c=null;if(n!=null&&!o.some(e=>e.active===!0)){let e=-1;for(let t of o){if(t.active!=null||t.children?.length&&!t.href)continue;let r=JFt(n,t.href,{exact:t.match===`exact`,also:t.matchAlso});if(r<0)continue;let i=t.match===`exact`&&JFt(n,t.href,{exact:!0})>=0?1/0:r;i>e&&(e=i,c=t)}}for(let e of o)e.active=e.active??e===c;return{groups:a.filter(e=>e.key!==k7),footer:a.find(e=>e.key===k7)?.items??[]}}function bIt(e){return Object.fromEntries(Object.entries(e).filter(([e])=>!pIt.has(e)))}var j7=e=>e.header!=null;function xIt(e){return e.filter((t,n)=>{if(!j7(t))return!0;let r=e.findIndex((e,t)=>t>n&&j7(e));return e.slice(n+1,r<0?void 0:r).length>0})}var SIt=new Set;function CIt(e){if(e.key!=null&&aIt.test(e.key))return;let t=e.key==null?`<AppShell> a collapsible group needs a key so its folded state can be remembered.`:`<AppShell> collapsible group key "${e.key}" must use lower-case letters, digits and hyphens.`;typeof process<`u`||SIt.has(t)||(SIt.add(t),ce(t))}function wIt(e,t){let n=[],r=e=>{for(let t of e)j7(t)||(t.children?.length?r(t.children):n.push(t))};for(let t of e)r(t.items);let i=n.filter(e=>e.tab);if(i.length===0)return null;let a=i.length<n.length,o=a?rIt:iIt;if(i.length>o)throw Error(`<AppShell>: ${i.length} items carry tab: true, but the phone tab bar holds ${o} (${a?`4 plus More, because other items exist`:`5 when every item is a tab`}). Flag fewer items.`);return{tabs:i,hasMore:a,moreActive:t||n.some(e=>!e.tab&&e.active)}}function TIt(e,t){let n=e=>{if(e.label===void 0)throw Error(`<AppShell> a navigation row has no label; every row but a header needs one.`);return e.label},r=e=>e.key??e.href??n(e),i=(e,i)=>({key:r(e),label:n(e),to:i,current:!!e.active,...t&&e.description?{description:e.description}:{}}),a=e=>e.flatMap(e=>j7(e)?[]:[...e.href?[{...i(e,e.href),icon:e.icon}]:[],...a(e.children??[])]),o=[];for(let s of e)for(let e of s.items){if(j7(e))continue;let c=t&&s.label?{group:s.label}:{},l=a(e.children??[]);if(l.length>0){let a=e.href?[{...i(e,e.href),icon:e.icon}]:[],s=t&&(!!e.active||!!M7(e.children??[]));o.push({key:r(e),label:n(e),links:[...a,...l],...c,...t?{current:s}:{}})}else e.href&&o.push({...i(e,e.href),...c})}return o}function EIt(e,t){return t&&typeof e==`number`&&e>O7?`${O7}+`:e}function DIt({href:e,label:t,linkComponent:n,onNavigate:r,children:i}){return x(_s,{link:gs(n,{to:e}),className:`wui-brand-link`,"aria-label":t,onClick:r,children:i})}function OIt({tab:e,linkComponent:t,iconVariant:n,capBadges:r}){let i=`wui-tabbar-item${e.active?` active`:``}`,a=S(b,{children:[e.icon&&x(`span`,{className:`wui-tabbar-icon`,children:typeof e.icon==`string`?x(J,{name:e.icon,size:24,variant:e.iconVariant??n}):e.icon}),x(`span`,{className:`wui-tabbar-label`,children:e.tabLabel??e.label}),e.badge!=null&&x(`span`,{className:`wui-tabbar-badge${e.badgeTone?` tone-${e.badgeTone}`:``}`,title:e.badgeTitle||void 0,children:EIt(e.badge,r)}),e.badge!=null&&e.badgeTitle&&x(`span`,{className:`visually-hidden`,children:e.badgeTitle})]}),o=e.active?`page`:void 0;return x(_s,{link:gs(t,{to:e.href}),className:i,"aria-current":o,children:a})}function M7(e){for(let t of e){if(t.active)return t;let e=t.children?.length?M7(t.children):void 0;if(e)return e}}function N7({item:e,linkComponent:t,onNavigate:n,depth:r=0,iconVariant:i,newLabel:a,togglePagesLabel:o,capBadges:s}){let c=r>0,l=r>1?` wui-nav-depth-${Math.min(r,6)}`:``,u=Array.isArray(e.children)&&e.children.length>0,d=u?M7(e.children??[]):void 0,p=!!d,m=d?d.key??d.href??d.label:null,[h,g]=v(p);f(()=>{m!=null&&g(!0)},[m]);let _=typeof e.label==`string`?e.label:void 0,y=!c&&e.icon&&x(`span`,{className:`app-nav-icon`,children:typeof e.icon==`string`?x(J,{name:e.icon,size:e.iconSize??22,variant:e.iconVariant??i}):e.icon}),C=e.badge!=null&&x(`span`,{className:`app-nav-badge${e.badgeTone?` tone-${e.badgeTone}`:``}`,title:e.badgeTitle||void 0,children:EIt(e.badge,s)}),w=hIt(e.newUntil)&&x(`span`,{className:`wui-nav-new`,children:a}),T=S(b,{children:[y,x(`span`,{className:`app-nav-text`,children:e.label}),w,C,e.trailingIcon&&x(`span`,{className:`app-nav-trailing`,children:typeof e.trailingIcon==`string`?x(J,{name:e.trailingIcon,size:16}):e.trailingIcon})]}),E=e.active?`page`:void 0;if(u){let u=x(`div`,{className:`app-nav-sub${h?` expanded`:``}`,inert:!h,"aria-hidden":!h||void 0,children:x(`div`,{className:`app-nav-sub-inner`,children:(e.children??[]).map(e=>x(N7,{item:e,linkComponent:t,onNavigate:n,depth:r+1,iconVariant:i,newLabel:a,togglePagesLabel:o,capBadges:s},e.key??e.href))})});if(e.href){let r=x(_s,{link:gs(t,{to:e.href}),className:`wui-nav-split-link`,"aria-current":E,onClick:n,children:T});return S(b,{children:[S(`div`,{className:`app-nav-item has-children wui-nav-split${c?` app-nav-subitem`:``}${p||e.active?` active`:``}${l}`,"data-label":_,children:[r,x(`button`,{type:`button`,className:`app-nav-caret wui-nav-split-toggle`,"aria-expanded":h,"aria-label":K(o,{name:_??``}),onClick:()=>g(e=>!e),children:x(J,{name:`chevron-right`,size:16})})]}),u]})}return S(b,{children:[S(`button`,{type:`button`,className:`app-nav-item${c?` app-nav-subitem`:``} has-children${p?` active`:``}${l}`,"aria-expanded":h,"data-label":_,onClick:()=>g(e=>!e),children:[y,x(`span`,{className:`app-nav-text`,children:e.label}),w,C,x(`span`,{className:`app-nav-caret`,children:x(J,{name:`chevron-right`,size:16})})]}),u]})}let D=`app-nav-item${c?` app-nav-subitem`:``}${e.active?` active`:``}${l}`;return x(_s,{link:gs(t,{to:e.href}),className:D,"aria-current":E,"data-label":_,onClick:n,children:T})}function kIt(e){Fc(`wui-dropdown`,nIt);let[t,n]=v(!1),r=_(null);return f(()=>{r.current?.toggleAttribute(`open`,t)},[t]),f(()=>{let t=r.current;if(!t)return;let i=r=>{if(r.target!==t||!(`detail`in r)||!r.detail||typeof r.detail!=`object`)return;let i=`open`in r.detail&&r.detail.open===!0;n(i),i&&e?.()};return t.addEventListener(`wui-dropdown-toggle`,i),()=>t.removeEventListener(`wui-dropdown-toggle`,i)},[e]),{open:t,setOpen:n,ref:r}}function AIt({config:e,linkComponent:t,accountMenuLabel:n,roleLabel:r,rolesLabel:i}){let a=Vs(`shell`,Bs),o=p(),{open:s,setOpen:c,ref:l}=kIt(),{name:u,role:d,roles:f=[],noTriggerRole:m=!1,outlined:h=!1,photo:g,profileHref:_,profileLabel:v=a.profileLabel,onLogout:y,logoutAction:C,logoutLabel:w=a.logoutLabel,head:T,section:E,logoutVariant:D=`item`,items:O=[]}=e;if(W(`AppShell`,`userMenu.logoutVariant`,D,[`item`,`button`]),!u)throw Error(`<AppShell> userMenu.name is required; the trigger and the avatar are named from it.`);let k=f.map(e=>(e??``).trim()).filter(Boolean),A=()=>c(!1),j=(e,n,r,i)=>x(_s,{link:gs(t,{to:e}),className:`dropdown-item`,onClick:i,children:n},r),M=x(J,{name:`log-out`,size:18}),N=S(b,{children:[M,w]});return S(`wui-dropdown`,{class:`dropdown wui-usermenu`,align:`end`,ref:l,children:[S(`button`,{type:`button`,id:o,className:h?`wui-usermenu-trigger wui-usermenu-trigger-outlined`:`wui-usermenu-trigger`,"data-wui-dropdown-trigger":!0,"aria-expanded":s,"aria-label":K(n,{name:u}),children:[x(Gs,{name:u,src:g,tone:`auto`}),S(`span`,{className:`wui-usermenu-text`,children:[x(`span`,{className:`wui-usermenu-name`,children:u}),d&&!m&&x(`span`,{className:`wui-usermenu-role`,children:d})]}),x(J,{name:`chevron-down`,size:14,className:`wui-usermenu-caret`})]}),S(`div`,{"data-wui-dropdown-menu":!0,popover:`auto`,className:`dropdown-menu dropdown-menu-end wui-usermenu-menu${s?` show`:``}`,"aria-labelledby":o,children:[S(`div`,{className:`wui-usermenu-head`,children:[x(Gs,{name:u,src:g,size:`lg`,tone:`auto`}),S(`div`,{className:`wui-usermenu-who`,children:[x(`div`,{className:`wui-usermenu-name`,children:u}),d&&x(`div`,{className:`wui-usermenu-role`,children:d}),k.length>0&&S(`div`,{className:`wui-usermenu-roles`,children:[x(`span`,{className:`wui-usermenu-roles-label`,children:k.length===1?r:i}),` ${k.join(`, `)}`]}),T?x(`div`,{className:`wui-usermenu-extra`,children:T}):null]})]}),E?x(`div`,{className:`wui-usermenu-section`,children:E}):null,_&&j(_,S(b,{children:[x(J,{name:`user`,size:18}),v]}),void 0,A),O.map(e=>{if(e.divider)return x(`hr`,{className:`dropdown-divider`},e.key);let t=S(b,{children:[e.icon&&x(J,{name:e.icon,size:18}),e.label]}),n=()=>{e.onClick?.(),A()};return e.href?j(e.href,t,e.key,n):x(`button`,{type:`button`,className:`dropdown-item`,onClick:n,children:t},e.key)}),D===`button`?(C||y)&&x(`div`,{className:`wui-usermenu-foot`,children:C?x(`form`,{method:`post`,action:C,className:`wui-usermenu-logout`,children:S(nl,{type:`submit`,tone:`danger`,variant:`soft`,block:!0,children:[x(`span`,{className:`d-inline-flex me-2`,children:M}),w]})}):S(nl,{type:`button`,tone:`danger`,variant:`soft`,block:!0,onClick:()=>{A(),y?.()},children:[x(`span`,{className:`d-inline-flex me-2`,children:M}),w]})}):C?x(`form`,{method:`post`,action:C,className:`wui-usermenu-logout`,children:x(`button`,{type:`submit`,className:`dropdown-item danger`,children:N})}):y&&x(`button`,{type:`button`,className:`dropdown-item danger`,onClick:()=>{A(),y()},children:N})]})]})}function jIt({config:e,unreadLabel:t,markAllReadLabel:n,viewAllLabel:r,loadingNotificationsText:i,noUnreadText:a,unreadNotificationsText:o,unreadBellLabel:s}){let c=Vs(`shell`,Bs),l=p(),{open:u,ref:d}=kIt(e.onOpen),{unread:m=0,items:h,loading:g=!1,onMarkAllRead:y,viewAllHref:C,label:w=c.label,emptyText:T=c.emptyText}=e,[E,D]=v(``),O=_(m);f(()=>{O.current!==m&&(O.current=m,D(m===0?a:K(o,{count:A7(m)})))},[m,a,o]);let k=null;return h?.length?k=x(`div`,{className:`wui-bell-items`,children:h.map((e,n)=>{let r=`wui-bell-item${e.read?` wui-bell-item-read`:``}`,i=S(b,{children:[x(`span`,{className:`wui-bell-dot`,"aria-hidden":`true`}),e.icon&&x(`span`,{className:`wui-bell-icon`,children:x(J,{name:e.icon,size:18})}),S(`span`,{className:`wui-bell-body`,children:[!e.read&&S(`span`,{className:`visually-hidden`,children:[t,`: `]}),x(`span`,{className:`wui-bell-item-title`,children:e.title}),e.time&&x(`span`,{className:`wui-bell-when`,children:e.time})]})]});return e.href?x(`a`,{className:r,href:e.href,"data-id":e.id,children:i},e.id??n):x(`div`,{className:r,"data-id":e.id,children:i},e.id??n)})}):g?k=x(`div`,{className:`wui-bell-state`,children:i}):h&&(k=x(`div`,{className:`wui-bell-state`,children:T})),S(`wui-dropdown`,{class:`dropdown wui-bell`,align:`end`,ref:d,children:[S(`button`,{type:`button`,id:l,className:`topbar-icon-btn wui-bell-trigger`,"data-wui-dropdown-trigger":!0,"aria-expanded":u,"aria-label":m===0?w:K(s,{label:w,count:A7(m)}),children:[x(J,{name:`notification`,size:20}),x(`span`,{className:`wui-bell-count`,"aria-hidden":`true`,hidden:m===0,children:A7(m)})]}),x(`span`,{className:`visually-hidden`,"aria-live":`polite`,children:E}),S(`div`,{"data-wui-dropdown-menu":!0,popover:`auto`,className:`dropdown-menu dropdown-menu-end wui-bell-menu${u?` show`:``}`,"aria-labelledby":l,children:[S(`div`,{className:`wui-bell-head`,children:[x(`span`,{className:`wui-bell-title`,children:w}),y&&x(`button`,{type:`button`,className:`wui-bell-markall`,onClick:y,children:n})]}),x(`div`,{className:`wui-bell-list`,"aria-busy":g||void 0,children:k}),C&&x(`a`,{className:`wui-bell-foot`,href:C,children:r})]})]})}var MIt=e=>!!e&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName));function NIt({config:e,searchResultsLabel:t,noResultsText:n,noResultsForText:r,resultsCountText:i,resultCountText:a,moreLabel:o}){Fc(`wui-overflow`,tIt);let s=Vs(`shell`,Bs),c=p(),{value:l=``,onChange:u,results:d=null,loading:m=!1,onSelect:h,onSubmit:y,onFocus:b,placeholder:C=s.placeholder,shortcutKey:w}=e;if(w!==void 0&&!/^[a-z]$/.test(w))throw Error(`<AppShell>: search shortcutKey must be one letter, a to z; got "${w}".`);let T=w?.toUpperCase(),E=T===void 0?``:` (${ude()?`⌘${T}`:`Ctrl+${T}`})`;f(()=>{if(w===void 0)return;let e=e=>{dde(e,w)&&(e.preventDefault(),O(!0),I.current?.focus(),I.current?.select())};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[w]);let[D,O]=v(!1),[k,A]=v(!1),[j,M]=v({results:null,index:-1}),N=j.results===d?j.index:-1,P=e=>M({results:d,index:e}),F=_(null),I=_(null),L=_([]),R=g(()=>(d??[]).flatMap(e=>e.hits??[]),[d]),z=d!=null&&!k,B=R.length;f(()=>{let e=e=>{e.key!==`/`||e.ctrlKey||e.metaKey||e.altKey||MIt(e.target instanceof HTMLElement?e.target:null)||(e.preventDefault(),O(!0),I.current?.focus())},t=e=>{F.current?.contains(e.target instanceof Node?e.target:null)||(A(!0),O(!1))};return document.addEventListener(`keydown`,e),document.addEventListener(`pointerdown`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`pointerdown`,t)}},[]);let V=e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(!z||B===0)return;e.preventDefault(),P((N+(e.key===`ArrowDown`?1:-1)+B)%B)}else ni(e.nativeEvent)?z&&N>=0&&L.current[N]?(e.preventDefault(),L.current[N].click()):y&&l.trim()!==``&&(e.preventDefault(),y(l.trim())):e.key===`Escape`&&(z?(e.preventDefault(),A(!0)):D&&(e.preventDefault(),O(!1)))},H=-1;return L.current=[],x(`wui-overflow`,{class:`wui-topsearch-host`,label:o,children:x(`div`,{"data-wui-overflow-list":!0,className:`wui-topsearch-row`,children:S(`div`,{className:`wui-topsearch${D?` is-open`:``}${m?` is-loading`:``}`,ref:F,"data-overflow-label":C,children:[x(`button`,{type:`button`,className:`topbar-icon-btn wui-topsearch-open`,"aria-label":C,"aria-expanded":D,"aria-controls":`${c}-panel`,onClick:()=>{let e=!D;O(e),e&&I.current?.focus()},children:x(J,{name:`search`,size:20})}),S(`div`,{className:`wui-topsearch-panel`,id:`${c}-panel`,children:[S(`div`,{className:`search-wrap`,children:[x(J,{name:`search`,size:18,className:`search-icon`}),x(`input`,{ref:I,type:`search`,className:`form-control input search-input`,id:`${c}-input`,placeholder:C+E,"aria-label":C,"aria-keyshortcuts":T===void 0?void 0:`Control+${T} Meta+${T}`,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":z,"aria-controls":`${c}-list`,"aria-activedescendant":z&&N>=0?`${c}-opt-${N}`:void 0,autoComplete:`off`,value:l,onChange:e=>{A(!1),u?.(e.target.value)},onKeyDown:V,onFocus:b})]}),x(`div`,{className:`wui-topsearch-results`,id:`${c}-list`,role:`listbox`,"aria-label":t,hidden:!z,children:z&&S(`div`,{className:`wui-topsearch-groups`,role:`presentation`,children:[B===0&&x(`div`,{className:`wui-topsearch-empty`,role:`option`,"aria-disabled":`true`,"aria-selected":`false`,children:K(r,{value:l})}),d.filter(e=>e.hits?.length).map((e,t)=>S(`div`,{className:`wui-topsearch-group`,role:`group`,"aria-label":e.label??``,children:[e.label&&x(`div`,{className:`wui-topsearch-group-label`,role:`presentation`,children:e.label}),e.hits.map(e=>{H+=1;let t=H;return S(`a`,{className:`wui-topsearch-hit${t===N?` is-active`:``}`,role:`option`,"aria-selected":t===N,id:`${c}-opt-${t}`,href:e.href,ref:e=>{L.current[t]=e},onClick:t=>h?.(e,t),children:[e.icon&&x(`span`,{className:`wui-topsearch-hit-icon`,children:x(J,{name:e.icon,size:18})}),S(`span`,{className:`wui-topsearch-hit-text`,children:[x(`span`,{className:`wui-topsearch-hit-title`,children:e.title}),e.subtitle&&x(`span`,{className:`wui-topsearch-hit-sub`,children:e.subtitle})]})]},`${e.href}-${t}`)})]},e.label??t))]})})]}),x(`span`,{className:`visually-hidden`,"aria-live":`polite`,children:z?B===0?n:K(B===1?a:i,{count:B}):``})]})})})}function P7(e,t){let n=e.querySelector(t);return n instanceof HTMLElement?n:null}function PIt(e,t){return[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement)}var FIt,F7,IIt=M((()=>{En(),Rc(),Ma(),bo(),FIt=`wui-shortcuts-open-change`,F7=class extends Lc{_doc;_onKeyDown;_onClick;_onDocClick;_onPointerDown;_onPressEnd;_pressedOpen;_pinned;_mirroring;static get observedAttributes(){return[`open`,`no-trigger`]}constructor(){super(),this._doc=null,this._pressedOpen=!1,this._pinned=!1,this._mirroring=!1,this._onKeyDown=e=>this._keydown(e),this._onClick=e=>this._click(e),this._onDocClick=e=>{let t=Tn(e.target,`[data-wui-shortcuts-open]`)?.getAttribute(`data-wui-shortcuts-open`);t&&this.matches(t)&&this.setOpen(!0)},this._onPointerDown=e=>{Tn(e.target,`.wui-shortcut-toggle`)&&(this._pressedOpen=this.open)},this._onPressEnd=e=>{e.type===`pointerup`&&Tn(e.target,`.wui-shortcut-toggle`)||(this._pressedOpen=!1)}}connectedCallback(){this._doc=this.ownerDocument,this._doc.addEventListener(`keydown`,this._onKeyDown),this._doc.addEventListener(`click`,this._onDocClick),this._doc.addEventListener(`pointerup`,this._onPressEnd,!0),this._doc.addEventListener(`pointercancel`,this._onPressEnd,!0),this.addEventListener(`click`,this._onClick),this.addEventListener(`pointerdown`,this._onPointerDown,!0),this.hasAttribute(`open`)&&!this.open&&(this._pinned=!0,this.setOpen(!0,{focus:!1})),this._syncTrigger()}attributeChangedCallback(e,t,n){e===`no-trigger`?this._syncTrigger():(this._mirroring||(this._pinned=n!==null),this._sheet()&&n!==null!==this.open&&this.setOpen(n!==null))}disconnectedCallback(){let e=this._sheet();e&&ga(e),this._doc?.removeEventListener(`keydown`,this._onKeyDown),this._doc?.removeEventListener(`click`,this._onDocClick),this._doc?.removeEventListener(`pointerup`,this._onPressEnd,!0),this._doc?.removeEventListener(`pointercancel`,this._onPressEnd,!0),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`pointerdown`,this._onPointerDown,!0),this._doc=null}get open(){let e=this._sheet();return!!(e&&_a(e))}set open(e){let t=e===!0||e===``||e===`true`;this._pinned=t,this._sheet()?t!==this.open&&this.setOpen(t):this.toggleAttribute(`open`,t)}setOpen(e,{focus:t=!0}={}){let n=this._sheet();if(!n)return;let r=P7(this,`.wui-shortcut-toggle`);e||(this._pinned=!1),e?(n.removeAttribute(`hidden`),ha(this.hasAttribute(`no-trigger`)?r??this:wn(r,`<wui-shortcuts> needs its toggle to anchor the sheet.`),n,{mode:`auto`,side:`top`,align:`end`,flipAlign:!0,gap:8,keepOffscreen:this._pinned,onClosed:()=>{this._pinned=!1,this._mirror(!1)}})):ga(n),this._mirror(e),t&&(e?queueMicrotask(()=>{_a(n)&&P7(n,`.wui-shortcut-close`)?.focus()}):r?.focus())}_mirror(e){let t=this._sheet();t&&(t.hidden=!e),P7(this,`.wui-shortcut-toggle`)?.setAttribute(`aria-expanded`,String(e)),this.hasAttribute(`open`)!==e&&(this._mirroring=!0,this.toggleAttribute(`open`,e),this._mirroring=!1,this.dispatchEvent(new CustomEvent(FIt,{bubbles:!0,detail:{open:e}})))}_sheet(){return P7(this,`.wui-shortcut-sheet`)}_syncTrigger(){let e=P7(this,`.wui-shortcut-toggle`);e&&(e.hidden=this.hasAttribute(`no-trigger`))}_scope(){let e=this.closest(`[${Mue}]`);return e instanceof HTMLElement?e:null}_items(){let e=this.getAttribute(`items`);return e?PIt(wn(this._scope()??this._doc,`WuiShortcuts used before it was connected`),e):[]}_click(e){let t=e.target;if(t instanceof Element){if(t.closest(`.wui-shortcut-toggle`)){let e=this._pressedOpen;this._pressedOpen=!1,this.setOpen(!e&&!this.open)}else t.closest(`.wui-shortcut-close`)&&this.setOpen(!1)}}_tickFocused(){let e=this._items(),t=wn(this._doc,`WuiShortcuts used before it was connected`).activeElement,n=t?.closest?.(`li, tr`),r=e.find(e=>e===t||e.contains(t)||n?.contains(e)),i=(r?.closest(`li, tr`)??r)?.querySelector(`input[type="checkbox"]`);i instanceof HTMLInputElement&&i.click()}_focusSearch(){let e=this.getAttribute(`search`);if(!e)return;let t=wn(this._doc,`WuiShortcuts used before it was connected`);(P7(this._scope()??t,e)??P7(t,e))?.focus()}_keydown(e){if(e.defaultPrevented)return;let t=Tue(e);if(!t)return;if(t===`esc`&&this.open){e.preventDefault(),this.setOpen(!1);return}let n=this._scope(),r={help:()=>this.setOpen(!this.open)};if(this.getAttribute(`items`)&&(r.j=()=>Aue(this._items(),1),r.k=()=>Aue(this._items(),-1),r.x=()=>this._tickFocused()),this.getAttribute(`search`)&&(r.slash=()=>this._focusSearch()),r[t]){ho(e,r,n);return}if(t===`enter`)return;let i=wn(this._doc,`WuiShortcuts used before it was connected`),a=e.target instanceof Node?e.target:null;if(Oue(i)||!kue(a,n)||mo(a))return;let o=po(t),s=PIt(this,`.wui-shortcut-keys [data-shortcut]`).find(e=>e.dataset.shortcut===o);if(!s)return;let c=(n??i).querySelector(`[aria-current="true"]`)?.closest(`[data-key]`),l=c instanceof HTMLElement?c.dataset.key??null:null;if(!this.dispatchEvent(new CustomEvent(`wui:shortcut`,{bubbles:!0,cancelable:!0,detail:{key:o,itemKey:l}}))){e.preventDefault();return}let u=s.dataset.target,d=u?P7(i,u):null;d&&(e.preventDefault(),d.click())}}})),LIt=P({WuiShortcuts:()=>F7}),RIt=M((()=>{Rc(),IIt(),Ic(`wui-shortcuts`,F7)})),zIt=`wui-shortcuts-open-change`,BIt=()=>Promise.resolve().then(()=>(RIt(),LIt));function VIt(e){let t=[],n=new Map;for(let r of e){let e=r.group?.trim(),i=e?n.get(e):void 0;e?i?i.rows.push(r):n.set(e,{title:e,rows:[r]}):t.push(r)}return[{title:null,rows:t},...n.values()].filter(e=>e.rows.length>0)}function HIt(e){return x(`dl`,{className:`wui-shortcut-keys`,children:e.map(e=>S(`div`,{"data-shortcut":po(e.key),children:[x(`dt`,{children:x(`kbd`,{className:`wui-kbd`,children:po(e.key)})}),x(`dd`,{children:e.label})]},po(e.key)))})}function UIt(e){Fc(`wui-shortcuts`,BIt);let{marker:t,props:n}=U(`AppShortcutLegend`,{...e}),r=Vs(`shortcutKeys`,fo),{shortcuts:i=[],items:a,search:o,open:s,onOpenChange:c,trigger:l=!0,className:u=``,...d}=n;G(`AppShortcutLegend`,d);let m=p(),h=_(null),g=i.filter(e=>po(e.key)!==`?`),v=VIt(g),y={key:`?`,label:r.helpLabel},b=v.at(-1);b?b.rows.push(y):v.push({title:null,rows:[y]});let C=v.find(e=>!e.title),w=v.filter(e=>e.title),T=_(g);T.current=g,f(()=>{let e=h.current;if(!e)return;let t=e=>{if(!(e instanceof CustomEvent))throw Error(`wui:shortcut arrived without a detail`);let t=e.detail,n=T.current.find(e=>po(e.key)===t.key&&typeof e.onPress==`function`);n?.onPress&&(e.preventDefault(),n.onPress(t.itemKey))};return e.addEventListener(_o,t),()=>e.removeEventListener(_o,t)},[]);let E=_(c);return E.current=c,f(()=>{let e=h.current;if(!e)return;let t=t=>{if(!(t instanceof CustomEvent)||t.target!==e)return;let n=t.detail;E.current?.(n.open)};return e.addEventListener(zIt,t),()=>e.removeEventListener(zIt,t)},[]),S(`wui-shortcuts`,{ref:h,class:[`wui-shortcut-legend`,u].filter(Boolean).join(` `),items:a||void 0,search:o||void 0,open:s,"no-trigger":l?void 0:``,...t,...d,children:[l&&S(`button`,{type:`button`,className:`wui-shortcut-toggle`,"aria-haspopup":`dialog`,"aria-expanded":`false`,"aria-controls":m,"aria-keyshortcuts":`?`,children:[Qo(`?`),` ${r.sheetTitle}`]}),S(`div`,{className:`wui-shortcut-sheet`,id:m,role:`dialog`,"aria-label":r.sheetTitle,hidden:!0,children:[S(`div`,{className:`wui-shortcut-sheet-head`,children:[x(`span`,{className:`wui-shortcut-sheet-title`,children:r.sheetTitle}),x(`button`,{type:`button`,className:`wui-shortcut-close`,"aria-label":r.closeLabel,children:x(J,{name:`x`,size:16})})]}),C&&HIt(C.rows),w.map(e=>S(`section`,{className:`wui-shortcut-group`,children:[x(`h3`,{className:`wui-shortcut-group-title`,children:e.title}),HIt(e.rows)]},e.title))]})]})}var WIt,I7,L7,GIt=M((()=>{En(),Rc(),xn(),upe(),WIt=3,I7=()=>pn(`showMore`,Ps),L7=class extends Lc{_width;_observer;_toggle;_onClick;constructor(){super(),this._width=-1,this._observer=null,this._toggle=null,this._onClick=()=>this.toggle()}connectedCallback(){let e=this.querySelector(`.wui-show-more-toggle`);if(this._toggle=e instanceof HTMLButtonElement?e:null,!this._toggle)return;let t=Number.parseInt(this.getAttribute(`lines`)??``,10);this.style.setProperty(`--wui-show-more-lines`,String(t>=1?t:WIt)),this._toggle.addEventListener(`click`,this._onClick),this._sync(),this._check(),typeof ResizeObserver<`u`&&(this._observer=new ResizeObserver(()=>{this.clientWidth!==this._width&&this._check()}),this._observer.observe(this))}disconnectedCallback(){this._observer?.disconnect(),this._observer=null,this._toggle?.removeEventListener(`click`,this._onClick),this._toggle=null}get expanded(){return this.hasAttribute(`expanded`)}toggle(e=!this.expanded){this.toggleAttribute(`expanded`,!!e),this._sync(),this.dispatchEvent(new CustomEvent(`wui:show-more:toggle`,{bubbles:!0,detail:{expanded:this.expanded}}))}_sync(){let e=wn(this._toggle,`WuiShowMore used before it was connected`),t=this.expanded;e.setAttribute(`aria-expanded`,String(t)),e.textContent=t?this.getAttribute(`less-label`)||I7().lessLabel:this.getAttribute(`more-label`)||I7().moreLabel}_check(){let e=this.querySelector(`.wui-show-more-body`);if(!(e instanceof HTMLElement))return;this._width=this.clientWidth;let t=this.expanded;t&&this.removeAttribute(`expanded`);let n=e.scrollHeight>e.clientHeight+1;t&&this.setAttribute(`expanded`,``);let r=wn(this._toggle,`WuiShowMore used before it was connected`);r.hidden=!n}}})),KIt=P({WuiShowMore:()=>L7}),qIt=M((()=>{Rc(),GIt(),Ic(`wui-show-more`,L7)})),JIt=()=>Promise.resolve().then(()=>(qIt(),KIt));function YIt(e){Fc(`wui-show-more`,JIt);let{marker:t,props:n}=U(`AppShowMore`,{...e}),r=Vs(`showMore`,Ps),{children:i,lines:a=3,moreLabel:o=r.moreLabel,lessLabel:s=r.lessLabel,defaultExpanded:c=!1,id:l,className:u=``,...d}=n;G(`AppShowMore`,d);let f=p(),m=l||`show-more-${f.replace(/:/g,``)}`,g=`${m}-body`,v=_(null),y=_(c);return h(()=>{if(y.current){if(!v.current)throw Error(`<AppShowMore> element was not mounted before layout`);Eo(`wui-show-more`)?v.current.toggle(!0):v.current.setAttribute(`expanded`,``)}},[]),S(`wui-show-more`,{ref:v,class:[`wui-show-more`,u].filter(Boolean).join(` `),id:m,lines:a===3?void 0:String(a),"more-label":o===r.moreLabel?void 0:o,"less-label":s===r.lessLabel?void 0:s,...t,...d,children:[x(`div`,{className:`wui-show-more-body`,id:g,children:i}),x(`button`,{type:`button`,className:`btn btn-link btn-sm wui-show-more-toggle`,"aria-expanded":y.current?`true`:`false`,"aria-controls":g,hidden:!0,children:y.current?s:o})]})}var R7=Array.from({length:12},(e,t)=>t+1),XIt=R7.map(e=>`line-placeholder-${e}`),ZIt=3;function QIt(e){let{marker:t,props:n}=U(`AppSkeletonLines`,{...e}),{lines:r=ZIt,lastLineWidth:i=`60%`,className:a=``,style:o,...s}=n;G(`AppSkeletonLines`,s),W(`AppSkeletonLines`,`lines`,r,R7);let c=R7.includes(r)?r:ZIt;return x(`div`,{className:[`wui-skeleton-lines`,a].filter(Boolean).join(` `),"aria-hidden":`true`,style:o,...t,...s,children:XIt.slice(0,c).map((e,t)=>x(`span`,{className:`skeleton`,style:t===c-1?{width:i}:void 0},e))})}var z7,B7,V7,H7,$It,U7,eLt=M((()=>{Ci(),En(),Rc(),HB(),rH(),xn(),dpe(),z7=()=>pn(`slider`,Fs),B7=class extends Lc{static formAssociated=!0;_internals;_value;_start;_end;_isDragging;_dragThumb;_pointerDownListener;_pointerMoveListener;_pointerUpListener;_thumbKeyListener;_trackClickListener;_rendered;_defaultsCaptured;_defaultValue;_defaultStart;_defaultEnd;static get observedAttributes(){return[`min`,`max`,`step`,`value`,`start`,`end`,`name`,`start-name`,`end-name`,`disabled`,`readonly`,`loading`,`size`,`show-value`,`unit`,`grouping`,`aria-label`]}constructor(){super();try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=50,this._start=25,this._end=75,this._isDragging=!1,this._dragThumb=null,this._pointerDownListener=null,this._pointerMoveListener=null,this._pointerUpListener=null,this._thumbKeyListener=null,this._trackClickListener=null}connectedCallback(){this._rendered?this._wire():this.render()}get value(){return this._value}set value(e){this._value=this._snapToStep(this._clamp(V7(e,this._value))),this._syncValue(),this._syncMirrors()}get start(){return this._start}set start(e){this._start=Math.min(this._snapToStep(this._clamp(V7(e,this._start))),this._end),this._syncValue(),this._syncMirrors()}get end(){return this._end}set end(e){this._end=Math.max(this._snapToStep(this._clamp(V7(e,this._end))),this._start),this._syncValue(),this._syncMirrors()}attributeChangedCallback(e,t,n){e===`value`||e===`start`||e===`end`||e===`min`||e===`max`||e===`step`?(this._updateFromAttribute(e),this._rendered&&(this._syncValue(),this._syncMirrors())):this._rendered&&this.render()}formResetCallback(){this._isRange()?this._resetRange():this._resetSingle()}_updateFromAttribute(e){e===`value`?this._value=this._snapToStep(this._clamp(V7(this.getAttribute(`value`),this._value))):e===`start`?this._start=this._snapToStep(this._clamp(V7(this.getAttribute(`start`),this._start))):e===`end`&&(this._end=this._snapToStep(this._clamp(V7(this.getAttribute(`end`),this._end))))}_isRange(){return this.hasAttribute(`range`)}_min(){return V7(this.getAttribute(`min`),0)}_max(){return V7(this.getAttribute(`max`),100)}_step(){return V7(this.getAttribute(`step`),1)}_clamp(e){return Math.max(this._min(),Math.min(e,this._max()))}_snapToStep(e){let t=this._step();if(t<=0)return e;let n=this._min();return this._clamp(n+Math.round((e-n)/t)*t)}_captureDefaults(){this._defaultsCaptured||=(this._isRange()?(this._defaultStart=this._start,this._defaultEnd=this._end):this._defaultValue=this._value,!0)}_resetSingle(){this._value=this._defaultValue??50,this._syncValue(),this._syncMirrors()}_resetRange(){this._start=this._defaultStart??25,this._end=this._defaultEnd??75,this._syncValue(),this._syncMirrors()}render(){this._captureDefaults();let e=this._min(),t=this._max(),n=this._isRange(),r=this.getAttribute(`size`),i=r===`sm`?` slider-sm`:r===`lg`?` slider-lg`:``,a=this.hasAttribute(`disabled`),o=this.hasAttribute(`readonly`);n?(this._start=this._clamp(this._start),this._end=this._clamp(this._end),this._start>this._end&&([this._start,this._end]=[this._end,this._start])):this._value=this._clamp(this._value);let s=n?[q(`button`,{type:`button`,role:`slider`,class:`slider-thumb`,"data-thumb":`start`,"aria-label":z7().minimumLabel,"aria-valuemin":e,"aria-valuemax":t,"aria-valuenow":this._start,"aria-valuetext":this._formatValue(this._start),"aria-readonly":o?`true`:void 0,disabled:a}),q(`button`,{type:`button`,role:`slider`,class:`slider-thumb`,"data-thumb":`end`,"aria-label":z7().maximumLabel,"aria-valuemin":e,"aria-valuemax":t,"aria-valuenow":this._end,"aria-valuetext":this._formatValue(this._end),"aria-readonly":o?`true`:void 0,disabled:a})]:[q(`button`,{type:`button`,role:`slider`,class:`slider-thumb`,"data-thumb":`single`,"aria-valuemin":e,"aria-valuemax":t,"aria-valuenow":this._value,"aria-valuetext":this._formatValue(this._value),"aria-readonly":o?`true`:void 0,disabled:a,"aria-label":this.getAttribute(`aria-label`)||z7().ariaLabel})],c=q(`div`,{class:`wui-slider-rail`},q(`div`,{class:`slider-track`,role:`presentation`}),q(`div`,{class:`slider-fill`,role:`presentation`}),...s),l=this.hasAttribute(`show-value`)?q(`span`,{class:`slider-value`},n?K(z7().rangeText,{start:this._formatValue(this._start),end:this._formatValue(this._end)}):this._formatValue(this._value)):!1;this.replaceChildren(q(`div`,{class:`slider${i}`},c,l)),this._rendered=!0,this._placeParts(),this._syncMirrors(),zB(this,this.querySelector(`.slider`)),this._wire()}_formatValue(e){let t=this.getAttribute(`unit`)||``;return`${this._grouping()===`indian`?yi(String(e)):String(e)}${t}`}_grouping(){let e=this.getAttribute(`grouping`)??`none`;if(!xi(e))throw Error(Si(e));return e}_placeParts(){let e=this._min(),t=this._max(),n=n=>t===e?0:(n-e)/(t-e),r=this._isRange(),i=r?n(this._start):0,a=n(r?this._end:this._value),o=H7(this,`.slider-fill`);o&&(o.style.left=`${i*100}%`,o.style.right=`${100-a*100}%`,r&&o.style.setProperty(`--wui-fill-start`,String(i)),o.style.setProperty(`--wui-fill-end`,String(a)));let s=(e,t)=>{e&&(e.style.left=`${t*100}%`,e.style.setProperty(`--wui-t`,String(t)))};r?(s(H7(this,`[data-thumb="start"]`),i),s(H7(this,`[data-thumb="end"]`),a)):s(H7(this,`.slider-thumb`),a)}_syncValue(){if(this._rendered){if(this._placeParts(),this._isRange()){let e=H7(this,`[data-thumb="start"]`),t=H7(this,`[data-thumb="end"]`);e&&(e.setAttribute(`aria-valuenow`,String(this._start)),e.setAttribute(`aria-valuetext`,this._formatValue(this._start))),t&&(t.setAttribute(`aria-valuenow`,String(this._end)),t.setAttribute(`aria-valuetext`,this._formatValue(this._end)));let n=H7(this,`.slider-value`);n&&(n.textContent=K(z7().rangeText,{start:this._formatValue(this._start),end:this._formatValue(this._end)}))}else{let e=H7(this,`.slider-thumb`);e&&(e.setAttribute(`aria-valuenow`,String(this._value)),e.setAttribute(`aria-valuetext`,this._formatValue(this._value)));let t=H7(this,`.slider-value`);t&&(t.textContent=this._formatValue(this._value))}}}_syncMirrors(){this._isRange()?this._syncRangeMirrors():this._syncSingleMirror()}_syncSingleMirror(){this.getAttribute(`name`)&&eH(this,String(this._value))}_syncRangeMirrors(){let e=this.getAttribute(`start-name`),t=this.getAttribute(`end-name`);this._mirrorRange(`start`,e,this._start),this._mirrorRange(`end`,t,this._end)}_mirrorRange(e,t,n){if(!t)return;let r=$It(this,`input[type="hidden"][data-slider-mirror="${e}"]`);r||(r=document.createElement(`input`),r.type=`hidden`,r.setAttribute(`data-slider-mirror`,e),this.appendChild(r)),r.name=t,r.value=String(n),r.disabled=this.hasAttribute(`disabled`)}_valueAtPosition(e){let t=H7(this,`.slider-track`);if(!t)return this._min();let n=t.getBoundingClientRect(),r=H7(this,`.slider-thumb`),i=r?r.offsetWidth/2:0,a=n.width-i*2,o=a>0?Math.max(0,Math.min(1,(e-n.left-i)/a)):0,s=this._min()+o*(this._max()-this._min());return this._snapToStep(s)}_nearestThumb(e){return Math.abs(e-this._start)<=Math.abs(e-this._end)?`start`:`end`}_wire(){if(this._teardown(),VB(this))return;let e=U7(this,`.slider-thumb`),t=H7(this,`.slider-track`),n=this._isRange(),r=e=>{if(VB(this))return;let t=e.target;if(!(t instanceof Element))throw Error(`Pointer event target is not an element`);let n=t.closest(`.slider-thumb`);n&&(e.preventDefault(),this._isDragging=!0,this._dragThumb=n.getAttribute(`data-thumb`),document.addEventListener(`pointermove`,i),document.addEventListener(`pointerup`,a),document.addEventListener(`pointercancel`,a))},i=e=>{if(!this._isDragging)return;e.preventDefault();let t=this._valueAtPosition(e.clientX);if(this._dragThumb===`single`)this._value=this._clamp(t),this._syncValue(),this.dispatchEvent(new CustomEvent(`slide`,{detail:{value:this._value}}));else if(this._dragThumb===`start`){let e=Math.min(t,this._end);this._start=this._clamp(e),this._syncValue(),this.dispatchEvent(new CustomEvent(`slide`,{detail:{start:this._start,end:this._end}}))}else if(this._dragThumb===`end`){let e=Math.max(t,this._start);this._end=this._clamp(e),this._syncValue(),this.dispatchEvent(new CustomEvent(`slide`,{detail:{start:this._start,end:this._end}}))}},a=()=>{this._isDragging&&(this._isDragging=!1,this._dragThumb=null,document.removeEventListener(`pointermove`,i),document.removeEventListener(`pointerup`,a),document.removeEventListener(`pointercancel`,a),this._syncMirrors(),this.dispatchEvent(new Event(`change`,{bubbles:!0})))},o=e=>{if(!(e.currentTarget instanceof HTMLElement))throw Error(`Keyboard event target is not an element`);let t=e.currentTarget;if(VB(this))return;let n=this._step(),r=n*10,i=null,a=t.getAttribute(`data-thumb`),o=a===`end`?this._end:a===`start`?this._start:this._value;e.key===`ArrowLeft`||e.key===`ArrowDown`?(e.preventDefault(),i=o-n):e.key===`ArrowRight`||e.key===`ArrowUp`?(e.preventDefault(),i=o+n):e.key===`PageDown`?(e.preventDefault(),i=o-r):e.key===`PageUp`?(e.preventDefault(),i=o+r):e.key===`Home`?(e.preventDefault(),i=this._min()):e.key===`End`&&(e.preventDefault(),i=this._max()),i!=null&&(i=this._clamp(i),a===`single`?this._value=i:a===`start`?this._start=Math.min(i,this._end):a===`end`&&(this._end=Math.max(i,this._start)),this._syncValue(),this._syncMirrors(),this.dispatchEvent(new Event(`change`,{bubbles:!0})))},s=e=>{if(VB(this))return;let t=this._valueAtPosition(e.clientX);n?this._nearestThumb(t)===`start`?this._start=Math.min(this._clamp(t),this._end):this._end=Math.max(this._clamp(t),this._start):this._value=this._clamp(t),this._syncValue(),this._syncMirrors(),this.dispatchEvent(new Event(`change`,{bubbles:!0}))};this._pointerDownListener=r,this._pointerMoveListener=i,this._pointerUpListener=a,this._thumbKeyListener=o,this._trackClickListener=s,e.forEach(e=>{e.addEventListener(`pointerdown`,r),e.addEventListener(`keydown`,o)}),t?.addEventListener(`click`,s)}_teardown(){for(let e of U7(this,`.slider-thumb`))this._pointerDownListener&&e.removeEventListener(`pointerdown`,this._pointerDownListener),this._thumbKeyListener&&e.removeEventListener(`keydown`,this._thumbKeyListener);this._pointerMoveListener&&document.removeEventListener(`pointermove`,this._pointerMoveListener),this._pointerUpListener&&(document.removeEventListener(`pointerup`,this._pointerUpListener),document.removeEventListener(`pointercancel`,this._pointerUpListener)),this._isDragging=!1,this._dragThumb=null;let e=H7(this,`.slider-track`);e&&this._trackClickListener&&e.removeEventListener(`click`,this._trackClickListener)}disconnectedCallback(){this._teardown()}},V7=(e,t)=>{let n=Number.parseFloat(String(e));return Number.isFinite(n)?n:t},H7=(e,t)=>{let n=e.querySelector(t);return n instanceof HTMLElement?n:null},$It=(e,t)=>{let n=e.querySelector(t);return n instanceof HTMLInputElement?n:null},U7=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement)})),tLt=P({WuiSlider:()=>B7}),nLt=M((()=>{Rc(),eLt(),Ic(`wui-slider`,B7)})),rLt=[`sm`,`md`,`lg`],iLt=[`none`,`indian`],aLt=()=>Promise.resolve().then(()=>(nLt(),tLt)),oLt=(e,t)=>P8e(e,typeof t==`number`||typeof t==`string`?t:void 0);function sLt(e){let{marker:t,props:n}=U(`AppSlider`,e),r=Vs(`slider`,Fs),{ref:i,value:a,start:o,end:s,range:c=!1,onChange:l,label:u,required:d=!1,optional:m=!1,helperText:h,error:g,name:v,startName:y,endName:b,min:C=0,max:w=100,step:T=1,disabled:E,readOnly:D=!1,loading:O=!1,defaultValue:k,defaultStart:A,defaultEnd:j,size:M,showValue:N,unit:P,grouping:F=`none`,id:I,ariaLabel:L,className:R=``,fieldClassName:z=``,help:B,helpLabel:V=r.helpLabel,optionalLabel:H=r.optionalLabel,...ee}=n,te=Oc(v),ne=Oc(y),re=Oc(b),ie=g??te??ne??re;G(`AppSlider`,ee),W(`AppSlider`,`size`,M,rLt),W(`AppSlider`,`grouping`,F,iLt);let ae=Fc(`wui-slider`,aLt),oe=p(),se=I||oe,ce=c,{setRef:le,innerRef:ue}=pV({ready:ae,ref:e=>{typeof i==`function`?i(e):i&&(i.current=e)},value:ce?void 0:a,onChange:ce?t=>{e.range&&e.onChange?.(t)}:t=>{e.range||e.onChange?.(t)},readValue:ce?N8e:void 0,writeValue:ce?void 0:oLt}),de=_(!1);f(()=>{if(!ce)return;let e=ue.current;if(!e)return;let t=o===void 0?de.current?void 0:A:o,n=s===void 0?de.current?void 0:j:s;de.current=!0,t!==void 0&&t>e.end?(n!==void 0&&e.end!==n&&(e.end=n),t!==void 0&&e.start!==t&&(e.start=t)):(t!==void 0&&e.start!==t&&(e.start=t),n!==void 0&&e.end!==n&&(e.end=n))},[o,s,A,j,ce,ue]);let fe=!u&&!ie&&!h,pe=ie?`${se}-error`:void 0,me=h?`${se}-hint`:void 0,he=x(`wui-slider`,{ref:le,id:se,name:v||void 0,"start-name":y||void 0,"end-name":b||void 0,min:C,max:w,step:T,size:M||void 0,value:(a??k)!=null&&!ce?String(a??k):void 0,"aria-label":L||(typeof u==`string`?u:void 0),"aria-describedby":pe||me,"aria-invalid":ie?`true`:void 0,disabled:E?``:void 0,readonly:D?``:void 0,loading:O?``:void 0,required:d?``:void 0,range:ce?``:void 0,"show-value":N?``:void 0,unit:P||void 0,grouping:F===`indian`?F:void 0,className:R||void 0,...fe?t:null,...ee});return fe?he:S(`div`,{...t,className:`field${z?` ${z}`:``}`,children:[u&&S(`label`,{className:`label`,htmlFor:se,children:[u,m&&!d&&x(`span`,{className:`label-optional`,children:` ${H}`}),d&&x(Uc,{}),B&&x(Hc,{label:V,children:B})]}),he,x(Ac,{error:ie,hint:h,errorId:pe,hintId:me})]})}function cLt(e,t,n){return e<t+q7?-Math.ceil(J7*Math.min(1,(t+q7-e)/q7)):e>n-q7?Math.ceil(J7*Math.min(1,(e-(n-q7))/q7)):0}function lLt(e){for(let t=e.parentElement;t&&t!==document.body&&t!==document.documentElement;t=t.parentElement){let e=getComputedStyle(t),n=/(auto|scroll)/.test(e.overflowY)&&t.scrollHeight>t.clientHeight,r=/(auto|scroll)/.test(e.overflowX)&&t.scrollWidth>t.clientWidth;if(n||r)return t}return null}var W7,G7,K7,uLt,dLt,fLt,pLt,q7,J7,Y7,mLt=M((()=>{Rc(),rH(),$i(),xn(),ppe(),W7=()=>pn(`sortable`,fpe),G7=new Set,K7=`.wui-sortable-handle`,uLt=`a[href],button,input,select,textarea,label,summary,[contenteditable='true'],[role='button'],[role='link']`,dLt=4,fLt=8,pLt=250,q7=48,J7=18,Y7=class extends Lc{_drag;_kb;_moving;controlled;_observer;_onDragStart;_onDocTouchMove;_onSelectStart;static get observedAttributes(){return[`name`,`disabled`]}constructor(){super(),this._drag=null,this._kb=null,this._moving=!1,this.controlled=!1,this._observer=null,this._onPointerDown=this._onPointerDown.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onFocusOut=this._onFocusOut.bind(this),this._onDragStart=e=>e.preventDefault(),this._onDocMove=this._onDocMove.bind(this),this._onDocUp=this._onDocUp.bind(this),this._onDocCancel=this._onDocCancel.bind(this),this._onDocKey=this._onDocKey.bind(this),this._onDocTouchMove=e=>{this._drag?.started&&e.preventDefault()},this._onSelectStart=e=>e.preventDefault(),this._scrollTick=this._scrollTick.bind(this)}connectedCallback(){G7.add(this),this.addEventListener(`pointerdown`,this._onPointerDown),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`dragstart`,this._onDragStart),this._observer=new MutationObserver(()=>this._syncMirrors()),this._observer.observe(this,{childList:!0}),this._syncMirrors()}disconnectedCallback(){G7.delete(this),this.removeEventListener(`pointerdown`,this._onPointerDown),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`dragstart`,this._onDragStart),this._observer?.disconnect(),this._observer=null,this._abort()}attributeChangedCallback(e){e===`disabled`&&this._abort(),this.isConnected&&this._syncMirrors()}get order(){return this._items().map(e=>e.getAttribute(`data-id`))}set order(e){if(this._drag?.started||this._kb)return;let t=this._items(),n=new Map(t.map(e=>[e.getAttribute(`data-id`),e])),r=[];for(let t of e??[]){let e=n.get(String(t));e&&!r.includes(e)&&r.push(e)}[...r,...t.filter(e=>!r.includes(e))].forEach((e,t)=>{let n=this._items()[t]??null;n!==e&&this.insertBefore(e,n)}),this._syncMirrors()}_items(){return[...this.querySelectorAll(`:scope > [data-id]`)].filter(e=>e instanceof HTMLElement)}_itemFrom(e){let t=e;for(;t&&t.parentElement!==this;)t=t.parentElement;return t instanceof HTMLElement&&t.hasAttribute(`data-id`)?t:null}_itemDisabled(e){return e.hasAttribute(`data-disabled`)}_horizontal(){return this.getAttribute(`orientation`)===`horizontal`}_syncMirrors(){tH(this,this.order.map(e=>e??``))}_insertAt(e,t){let n=this._items();if(n.indexOf(e)===t)return;let r=n.filter(t=>t!==e),i=r[t]??null;i?this.insertBefore(e,i):r.length>0?r[r.length-1]?.after(e):this.appendChild(e)}_indexFor(e,t,n){let r=this._items().filter(t=>t!==e),i=this._horizontal(),a=Zi(this);for(let[e,o]of r.entries()){let r=o.getBoundingClientRect(),s=n<=r.bottom&&(a?t>r.left+r.width/2:t<r.left+r.width/2);if(i?n<r.top||s:n<r.top+r.height/2)return e}return r.length}_peers(){let e=this.getAttribute(`group`);return[...G7].filter(t=>t===this||e&&t.getAttribute(`group`)===e&&!t.hasAttribute(`disabled`))}_labelOf(e){return e.getAttribute(`data-label`)||(e.textContent??``).replace(/\s+/g,` `).trim()||e.getAttribute(`data-id`)}_announce(e){let t=this.querySelector(`:scope > .wui-sortable-live`);t||(t=document.createElement(`div`),t.className=`wui-sortable-live`,t.setAttribute(`role`,`status`),t.setAttribute(`aria-live`,`polite`),t.setAttribute(`aria-atomic`,`true`),this.appendChild(t)),t.textContent=e}_position(e){let t=this._items();return K(W7().positionText,{position:t.indexOf(e)+1,total:t.length})}_onPointerDown(e){if(this._drag||this._kb||this.hasAttribute(`disabled`)||e.pointerType===`mouse`&&e.button!==0)return;let t=e.target;if(!(t instanceof Element))return;let n=this._itemFrom(t);if(!n||this._itemDisabled(n))return;let r=n.querySelector(`:scope > ${K7}`),i=!!r&&r.contains(t);if(this.hasAttribute(`handle`)&&!i)return;if(!i){let e=t.closest?.(uLt);if(e&&e!==n&&n.contains(e))return}let a=e.pointerType===`touch`&&!i,o={item:n,pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,x:e.clientX,y:e.clientY,slop:e.pointerType===`touch`?fLt:dLt,ready:!a,started:!1,timer:null,raf:0,list:this,ghost:null,offsetX:0,offsetY:0,fromIndex:0};this._drag=o,a&&(o.timer=setTimeout(()=>{o.timer=null,o.ready=!0,this._begin()},pLt)),document.addEventListener(`pointermove`,this._onDocMove),document.addEventListener(`pointerup`,this._onDocUp),document.addEventListener(`pointercancel`,this._onDocCancel),document.addEventListener(`keydown`,this._onDocKey,!0),document.addEventListener(`touchmove`,this._onDocTouchMove,{passive:!1})}_onDocMove(e){let t=this._drag;if(t&&e.pointerId===t.pointerId){if(t.x=e.clientX,t.y=e.clientY,!t.started){let e=Math.hypot(t.x-t.startX,t.y-t.startY);if(!t.ready){e>t.slop&&this._finish(!0);return}if(e<t.slop||(this._begin(),!this._drag?.started))return}e.preventDefault?.(),this._moveGhost(),this._update()}}_onDocUp(e){this._drag&&e.pointerId===this._drag.pointerId&&this._finish(!1)}_onDocCancel(e){this._drag&&e.pointerId===this._drag.pointerId&&this._finish(!0)}_onDocKey(e){e.key===`Escape`&&this._drag&&(e.preventDefault(),e.stopPropagation(),this._finish(!0))}_begin(){let e=this._drag;if(!e||e.started)return;e.started=!0;let t=e.item.getBoundingClientRect();e.offsetX=e.startX-t.left,e.offsetY=e.startY-t.top,e.fromIndex=this._items().indexOf(e.item);let n=e.item.cloneNode(!0);if(!(n instanceof HTMLElement))throw Error(`drag ghost is not an HTML element`);for(let e of[n,...n.querySelectorAll(`[id],[data-id]`)])e.removeAttribute(`id`),e.removeAttribute(`data-id`);n.classList.add(`wui-sortable-ghost`),n.setAttribute(`aria-hidden`,`true`),n.inert=!0,n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,e.ghost=n,e.item.classList.add(`wui-sortable-dragging`),document.body.appendChild(n),document.documentElement.classList.add(`wui-sortable-active`),document.addEventListener(`selectstart`,this._onSelectStart),this._moveGhost(),e.raf=requestAnimationFrame(this._scrollTick),this._emit(this,`wui-sortable:start`,{id:e.item.getAttribute(`data-id`)})}_moveGhost(){let e=this._drag;e?.ghost&&(e.ghost.style.transform=`translate(${e.x-e.offsetX}px, ${e.y-e.offsetY}px)`)}_update(){let e=this._drag;if(!e?.started)return;let t=e.list;for(let n of this._peers()){let r=n.getBoundingClientRect();if(e.x>=r.left&&e.x<=r.right&&e.y>=r.top&&e.y<=r.bottom){t=n;break}}let n=t._indexFor(e.item,e.x,e.y);(t!==e.list||n!==t._items().indexOf(e.item))&&t._insertAt(e.item,n),e.list=t}_scrollTick(){let e=this._drag;if(!e?.started)return;let t=lLt(e.list),n=t?t.getBoundingClientRect():null,r=Math.max(n?.top??0,0),i=Math.min(n?.bottom??window.innerHeight,window.innerHeight),a=Math.max(n?.left??0,0),o=Math.min(n?.right??window.innerWidth,window.innerWidth),s=cLt(e.y,r,i),c=cLt(e.x,a,o);(c||s)&&(t?(t.scrollTop+=s,t.scrollLeft+=c):window.scrollBy(c,s),this._update()),e.raf=requestAnimationFrame(this._scrollTick)}_finish(e){let t=this._drag;if(!t||(this._drag=null,clearTimeout(t.timer??void 0),cancelAnimationFrame(t.raf),document.removeEventListener(`pointermove`,this._onDocMove),document.removeEventListener(`pointerup`,this._onDocUp),document.removeEventListener(`pointercancel`,this._onDocCancel),document.removeEventListener(`keydown`,this._onDocKey,!0),document.removeEventListener(`touchmove`,this._onDocTouchMove),document.removeEventListener(`selectstart`,this._onSelectStart),!t.started))return;t.ghost?.remove(),document.documentElement.classList.remove(`wui-sortable-active`),t.item.classList.remove(`wui-sortable-dragging`);let n=t.item.getAttribute(`data-id`);e?(this._insertAt(t.item,t.fromIndex),this._syncMirrors(),t.list!==this&&t.list._syncMirrors()):this._settle(t.item,this,t.fromIndex,t.list),this._emit(this,`wui-sortable:end`,{id:n,cancelled:e})}_settle(e,t,n,r){let i=r._items().indexOf(e);if(r===t&&i===n)return;let a=e.getAttribute(`data-id`),o=r.order,s=r!==t,c=t.order;s&&(t.controlled||r.controlled)&&t._insertAt(e,n),t._syncMirrors(),r._syncMirrors();let l=r._labelOf(e),u=s&&r.getAttribute(`aria-label`)?K(W7().destinationText,{destination:String(r.getAttribute(`aria-label`))}):``,d={id:a,fromIndex:n,toIndex:i,from:t,to:r};s&&this._emit(t,`wui-sortable:change`,{...d,ids:c}),this._emit(r,`wui-sortable:change`,{...d,ids:o}),r._announce(K(W7().movedPositionText,{label:String(l),destination:u,position:i+1,total:o.length}))}_emit(e,t,n){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:n}))}_abort(){this._drag&&this._finish(!0),this._kb&&this._dropKeyboard(!0)}_onKeyDown(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(K7),r=n instanceof HTMLElement?n:null,i=r&&r.parentElement?.parentElement===this?r.parentElement:null;if(!r||!i||this._itemDisabled(i)||this._drag)return;let a=Qi(e.key,Zi(this));if(!this._kb){if(a!==` `&&a!==`Enter`)return;e.preventDefault(),this._liftKeyboard(i,r)}else if(this._kb.item===i){if(a===` `||a===`Enter`)e.preventDefault(),this._dropKeyboard(!1);else if(a===`Escape`)e.preventDefault(),e.stopPropagation(),this._dropKeyboard(!0);else if([`ArrowUp`,`ArrowLeft`,`ArrowDown`,`ArrowRight`,`Home`,`End`].includes(a)){e.preventDefault();let t=this._items(),n=t.indexOf(i),o=t.length-1,s=a===`Home`?0:a===`End`?o:Math.max(0,Math.min(o,n+(a===`ArrowUp`||a===`ArrowLeft`?-1:1)));if(s===n){let e=W7();this._announce(K(n===0?e.alreadyFirstText:e.alreadyLastText,{label:String(this._labelOf(i)),position:this._position(i)}));return}this._moveFocused(()=>this._insertAt(i,s),r),this._announce(K(W7().movedText,{label:String(this._labelOf(i)),position:this._position(i)}))}}}_onFocusOut(e){if(!this._kb||this._moving)return;let t=e.relatedTarget;if(t&&!(t instanceof Node))throw Error(`focus moved to a non-node target`);t&&this._kb.handle.contains(t)||this._dropKeyboard(!1)}_liftKeyboard(e,t){this._kb={item:e,handle:t,fromIndex:this._items().indexOf(e)},t.setAttribute(`aria-pressed`,`true`),this._announce(K(W7().liftedText,{label:String(this._labelOf(e)),position:this._position(e)}))}_dropKeyboard(e){let t=this._kb;t&&(this._kb=null,t.handle.removeAttribute(`aria-pressed`),e?(this._moveFocused(()=>this._insertAt(t.item,t.fromIndex),t.handle),this._announce(K(W7().reorderCancelledText,{label:String(this._labelOf(t.item)),position:this._position(t.item)}))):this._items().indexOf(t.item)===t.fromIndex?this._announce(K(W7().droppedText,{label:String(this._labelOf(t.item)),position:this._position(t.item)})):this._settle(t.item,this,t.fromIndex,this))}_moveFocused(e,t){this._moving=!0;let n=this.contains(document.activeElement);e(),n&&document.activeElement!==t&&t.focus(),this._moving=!1}}})),hLt=P({WuiSortable:()=>Y7}),gLt=M((()=>{Rc(),mLt(),Ic(`wui-sortable`,Y7)})),_Lt=[`vertical`,`horizontal`],vLt=[`always`,`hover`],yLt=()=>Promise.resolve().then(()=>(gLt(),hLt)),bLt=e=>`order`in e,xLt=(e,t)=>{if(!bLt(e))throw TypeError(`<AppSortableList> wrote its order before <wui-sortable> upgraded.`);e.controlled=!0;let n=e.order;(n.length!==t.length||t.some((e,t)=>e!==n[t]))&&(e.order=t)};function SLt({ref:e,...t}){let n=Fc(`wui-sortable`,yLt),{marker:r,props:i}=U(`AppSortableList`,t),a=Vs(`sortableList`,Eme),{items:o=[],onReorder:s,ariaLabel:c,handle:l=!1,group:u,name:d,disabled:p=!1,orientation:m=`vertical`,handleDisplay:h=`always`,bordered:g=!0,className:v=``,reorderLabel:y=a.reorderLabel,...b}=i;G(`AppSortableList`,b),W(`AppSortableList`,`orientation`,m,_Lt),W(`AppSortableList`,`handleDisplay`,h,vLt);let C=h===`hover`,w=o.map(e=>e.id),T=_(w);f(()=>{T.current=w});let{setRef:E,innerRef:D}=pV({ready:n,ref:e,value:w,writeValue:xLt,on:{"wui-sortable:change":e=>{if(e.target!==e.currentTarget)return;let t=e.detail;s?.(t.ids,t),requestAnimationFrame(()=>{let e=D.current;e&&xLt(e,T.current)})}}});return x(`wui-sortable`,{ref:E,role:`list`,"aria-label":c,name:d||void 0,group:u||void 0,orientation:m===`horizontal`?`horizontal`:void 0,"handle-display":C?`hover`:void 0,handle:l||C?``:void 0,disabled:p?``:void 0,borderless:g?void 0:``,className:`wui-sortable${v?` ${v}`:``}`,...r,...b,children:o.map(e=>S(`div`,{role:`listitem`,className:`wui-sortable-item`,"data-id":e.id,"data-label":e.label,"data-disabled":e.disabled?``:void 0,children:[x(`button`,{type:`button`,className:`wui-sortable-handle`,"aria-label":K(y,{name:e.label}),disabled:p||e.disabled?!0:void 0,children:x(J,{name:`menu`,size:18})}),x(`div`,{className:`wui-sortable-body`,children:e.content??e.label})]},e.id))})}var CLt=[`bar`,`ring`,`dots`],X7={sm:44,md:56,lg:72};function wLt(e){let{marker:t,props:n}=U(`AppSplash`,e),r=Vs(`splash`,kme),{logo:i,initials:a,description:o,subtext:s,variant:c=`bar`,size:l=`md`,label:u=r.label,className:d=``,...f}=n;G(`AppSplash`,f),W(`AppSplash`,`variant`,c,CLt),W(`AppSplash`,`size`,typeof l==`string`?l:null,Object.keys(X7));let{style:p,...m}=f,h={"--wui-splash-size":`${typeof l==`number`?l:X7[l]??X7.md}px`},g=c===`ring`?x(`span`,{className:`splash-ring`,"aria-hidden":`true`}):c===`dots`?S(`span`,{className:`splash-dots`,"aria-hidden":`true`,children:[x(`i`,{}),x(`i`,{}),x(`i`,{})]}):x(`span`,{className:`splash-bar`,"aria-hidden":`true`});return x(`div`,{className:`splash${d?` ${d}`:``}`,role:`status`,"aria-live":`polite`,"aria-label":u,style:{...h,...p},...t,...m,children:S(`div`,{className:`splash-inner`,children:[i||a&&x(`span`,{className:`splash-mark`,children:a}),g,o&&x(`span`,{className:`splash-text`,children:o}),s&&x(`span`,{className:`splash-subtext`,children:s})]})})}var TLt=[`sm`,`md`,`lg`],ELt=[`button`,`submit`,`reset`],DLt={sm:14,md:16,lg:20},OLt={sm:`btn-sm`,md:``,lg:`btn-lg`};function kLt(e){let{marker:t,props:n}=U(`AppSplitButton`,e),r=Vs(`splitButton`,Ame),{label:i,items:a=[],onClick:o,href:s,type:c=`button`,tone:l=`primary`,variant:u=`solid`,size:d=`md`,disabled:f=!1,loading:p=!1,leftIcon:m,shortcut:h,menuLabel:g=r.menuLabel,align:_=`end`,linkComponent:v,className:y=``,...b}=n;G(`AppSplitButton`,b),W(`AppSplitButton`,`size`,d,TLt),W(`AppSplitButton`,`tone`,l,Hs),W(`AppSplitButton`,`variant`,u,Us),W(`AppSplitButton`,`type`,c,ELt);let C=[`btn`,Ec(l,u),OLt[d]??``,`wui-split-toggle`].filter(Boolean).join(` `),w=x(J,{name:`chevron-down`,size:DLt[d]??DLt.md}),T=f||p;return S(`div`,{role:`group`,"aria-label":i,className:[`wui-split-button`,y].filter(Boolean).join(` `),...t,...b,children:[x(nl,{tone:l,variant:u,size:d,type:c,href:s,onClick:o,disabled:f,loading:p,leftIcon:m,shortcut:h,children:i}),T?x(`div`,{className:`wui-split-menu`,children:x(`button`,{type:`button`,className:C,disabled:!0,"aria-label":g,children:w})}):x(gl,{className:`wui-split-menu`,trigger:w,toggleClassName:C,label:g,ariaLabel:g,align:_,items:a,linkComponent:v})]})}var Z7={sm:576,md:768,lg:992,xl:1200,xxl:1400},ALt=Object.keys(Z7),jLt=[3,4,5,6,7,8],MLt=Array.from({length:6},(e,t)=>`skeleton-placeholder-${t}`),NLt=`.wui-split-items > .wui-split-item > .wui-split-link`,PLt=(e,t)=>e!=null&&String(e)===String(t),FLt=e=>{let t=window.matchMedia?.(`(min-width: ${Z7[e]}px)`);return!t||t.matches},ILt=(e,t)=>typeof e==`string`||typeof e==`number`?String(e):t;function LLt(e){let{marker:t,props:n}=U(`AppSplitView`,e),r=Vs(`splitView`,jme),i=Vs(`kbd`,ime),{items:a=[],currentKey:o,onSelect:s,selectable:c=!1,selectedKeys:l,onToggle:u,onToggleAll:d,bulkActions:p,header:m,chips:h,pane:v,paneHeader:y,pager:C=!0,shortcuts:w,shortcutsEnabled:T=!0,empty:E=r.empty,loading:D=!1,listWidth:O=5,stackBelow:k=`xl`,linkComponent:A,loadingLabel:j=r.loadingLabel,itemsLabel:M=r.itemsLabel,selectItemLabel:N=r.selectItemLabel,selectAllLabel:P=r.selectAllLabel,readingPaneLabel:F=r.readingPaneLabel,previousItemLabel:I=r.previousItemLabel,nextItemLabel:L=r.nextItemLabel,openLabel:R=r.openLabel,moveLabel:z=r.moveLabel,selectedLabel:B=r.selectedLabel,untitledItemLabel:V=r.untitledItemLabel,className:H=``,...ee}=n,te=g(()=>new Set(l),[l]);G(`AppSplitView`,ee),W(`AppSplitView`,`stackBelow`,k,ALt),W(`AppSplitView`,`listWidth`,O,jLt);let ne=Z7[k]?k:`xl`,re=jLt.includes(O)?O:5,ie=_(null),ae=o!=null,oe=c?te?.size??0:0,se=oe>0,ce=c&&a.length>0&&a.every(e=>te?.has(e.key)),le=c&&!ce&&a.some(e=>te?.has(e.key)),ue=e=>{e&&(e.indeterminate=le)},de=_(o);f(()=>{de.current!==o&&(de.current=o,o!=null&&ie.current?.querySelector(`.wui-split-link[aria-current="true"]`)?.scrollIntoView?.({block:`nearest`}))},[o]);let fe=(e,t)=>{t.button>0||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey||s&&(!e.href||FLt(ne))&&(t.preventDefault(),s(e.key))},pe=e=>{let t=[...ie.current?.querySelectorAll(NLt)??[]];t[t.findIndex(e=>e.getAttribute(`aria-current`)===`true`)+e]?.click()},me=[`wui-split-view`,ae?`wui-split-reading`:``,H].filter(Boolean).join(` `),he=c?[...vo(),Nue()]:vo(),ge=new Set([`J`,`K`,`Enter`,`?`,...c?[`X`]:[]]),_e=[...he,...(w??[]).filter(e=>!ge.has(po(e.key))).map(e=>({key:e.key,label:e.label,onPress:()=>e.onPress?.(o)}))],ve=a.findIndex(e=>PLt(o,e.key)),ye=C&&!D&&a.length>0?x(Qxt,{"data-split-pager":``,index:ve>=0?ve+1:void 0,total:a.length,onPrev:()=>pe(-1),onNext:()=>pe(1),prevLabel:I,nextLabel:L}):null,be=e=>{let t=PLt(o,e.key),n=c&&!!te?.has(e.key),r=e.badge!==void 0&&e.badge!==null&&e.badge!==``,i=gs(A,{href:e.href}),a=S(b,{children:[S(`span`,{className:`wui-split-item-main`,children:[x(`span`,{className:`wui-split-item-title`,children:e.title}),e.meta!==void 0&&e.meta!==null&&x(`span`,{className:`wui-split-item-meta`,children:e.meta})]}),(e.trailing||r)&&S(`span`,{className:`wui-split-item-end`,children:[e.trailing,r&&x(`span`,{className:`wui-split-badge`,children:e.badge})]})]});return S(`li`,{className:[`wui-split-item`,t?`is-active`:``,n?`is-selected`:``].filter(Boolean).join(` `),"data-key":e.key,children:[c&&x(`input`,{type:`checkbox`,className:`form-check-input wui-split-check`,checked:n,onChange:()=>u?.(e.key),"aria-label":K(N,{title:ILt(e.title,V)})}),e.href?x(_s,{link:i,className:`wui-split-link`,"aria-current":t?`true`:void 0,onClick:t=>fe(e,t),children:a}):x(`button`,{type:`button`,className:`wui-split-link`,"aria-current":t?`true`:void 0,onClick:t=>fe(e,t),children:a})]},e.key)},xe;return xe=D?S(`div`,{className:`wui-split-items`,"aria-busy":`true`,tabIndex:0,children:[x(`span`,{className:`visually-hidden`,children:j}),MLt.map(e=>S(`div`,{className:`wui-split-skeleton`,"aria-hidden":`true`,children:[x(`span`,{className:`skeleton wui-split-skeleton-title`}),x(`span`,{className:`skeleton wui-split-skeleton-meta`})]},e))]}):a.length?x(`ul`,{className:`wui-split-items`,"aria-label":M,children:a.map(be)}):x(`div`,{className:`wui-split-empty`,children:E}),S(`div`,{ref:ie,className:me,"data-stack-below":ne,"data-list-width":re,"data-shortcut-scope":T?``:void 0,...t,...ee,children:[S(`div`,{className:`wui-split-list`,children:[(m||c)&&S(`div`,{className:`wui-split-head`,children:[c&&x(`input`,{ref:ue,type:`checkbox`,className:`form-check-input wui-split-all`,checked:ce,onChange:e=>d?.(e.target.checked),"aria-label":P}),x(`div`,{className:`wui-split-head-main`,hidden:se,children:m}),c&&S(`div`,{className:`wui-split-head-bulk`,hidden:!se,children:[x(`span`,{className:`wui-split-count`,"aria-live":`polite`,children:K(B,{count:oe})}),p]})]}),h&&x(`div`,{className:`wui-split-chips`,children:h}),xe,T&&S(`div`,{className:`wui-split-legend`,children:[S(`span`,{children:[x(`kbd`,{className:`wui-kbd`,children:`J`}),` `,x(`kbd`,{className:`wui-kbd`,children:`K`}),` ${z}`]}),S(`span`,{children:[x(`kbd`,{className:`wui-kbd`,children:i.enterLabel}),` ${R}`]}),x(UIt,{items:NLt,shortcuts:_e})]})]}),S(`div`,{className:`wui-split-pane`,children:[(y||ye)&&S(`div`,{className:`wui-split-pane-head`,children:[y,ye]}),x(`section`,{className:`wui-split-pane-body`,"aria-label":F,tabIndex:0,children:v})]})]})}function RLt(e){let{marker:t,props:n}=U(`AppStatusBadge`,e),{label:r,tone:i=`neutral`,bordered:a=!1,className:o=``,tooltip:s,tooltipPlacement:c,...l}=n;return G(`AppStatusBadge`,l),W(`AppStatusBadge`,`tone`,i,Hs),r==null||r===``?dh():ts(x(`span`,{className:`status-label ${i}${a?` wui-bordered`:``}${o?` ${o}`:``}`,...t,...l,children:r}),s,c)}var zLt=[`steps`,`journey`],BLt=[`horizontal`,`vertical`],VLt=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],HLt=[`sm`,`md`,`lg`],ULt=Hs.filter(e=>e===`primary`||e===`info`),WLt={sm:12,md:14,lg:18},GLt=[`done`,`active`,`pending`,`error`];function KLt(e){let{marker:t,props:n}=U(`AppStepper`,e),r=Vs(`stepper`,Mme),{steps:i=[],variant:a=`steps`,orientation:o=`horizontal`,iconVariant:s,size:c=`md`,iconSize:l,active:u,onStepClick:d,label:f=r.label,stepLabel:p=r.stepLabel,tone:m=`primary`,linkComponent:h,className:g=``,..._}=n;G(`AppStepper`,_),W(`AppStepper`,`variant`,a,zLt),W(`AppStepper`,`orientation`,o,BLt),W(`AppStepper`,`iconVariant`,s,VLt),W(`AppStepper`,`size`,c,HLt),W(`AppStepper`,`tone`,m,ULt);let v=l!==void 0&&l>0?l:WLt[c];for(let e of i)W(`AppStepper`,`steps[].status`,e.status,GLt);let y=a===`journey`,C=[`stepper`,y&&`stepper-journey`,o===`vertical`&&`stepper-vertical`,c!==`md`&&HLt.includes(c)&&`wui-step-size-${c}`,m!==`primary`&&ULt.includes(m)&&`wui-step-tone-${m}`,g].filter(Boolean).join(` `),w=Bue(i,{statusOf:e=>{let t=i[e];if(!t)throw Error(`AppStepper: no step at index ${e}`);return t.status||zue(e,u)},journey:y,connectors:!0});return x(`nav`,{className:C,"aria-label":f,...t,..._,children:w.map(e=>{let t=e.index,n=i[t];if(!n)throw Error(`AppStepper: no step at index ${t}`);let r=e.className,a=e.glyph.number;e.glyph.icon&&(a=x(J,{name:e.glyph.icon,size:v,variant:s}));let o=S(b,{children:[x(`span`,{className:`step-circle`,children:a}),y?S(`span`,{className:`step-text`,children:[x(`span`,{className:`step-index`,children:K(p,{number:t+1})}),x(`span`,{className:`step-label`,children:n.label}),n.description?x(`span`,{className:`step-desc`,children:n.description}):null]}):S(b,{children:[x(`span`,{className:`step-label`,children:n.label}),n.description?x(`span`,{className:`step-desc`,children:n.description}):null]})]}),c=e.current?`step`:void 0,l=n.key??`${n.label}-${t}`,u;if(d)u=x(`button`,{type:`button`,className:r,"aria-current":c,onClick:()=>d(n,t),children:o},l);else if(n.href){let e=gs(h,{href:n.href});u=x(_s,{link:e,className:r,"aria-current":c,children:o},l)}else u=x(`div`,{className:r,"aria-current":c,children:o},l);return e.line?[u,x(`span`,{className:`step-line${e.line.done?` done`:``}`,"aria-hidden":`true`},`${l}-line`)]:u})})}function qLt(e){let{marker:t,props:n}=U(`AppTableToolbar`,e),r=Vs(`tableToolbar`,Fme),{filters:i,actions:a,selectedCount:o=0,bulkActions:s,onClearSelection:c,totalCount:l,pageCount:u,onSelectAllMatching:d,allMatchingSelected:f=!1,selectAllMatchingLabel:p=r.selectAllMatchingLabel,selectedLabel:m=r.selectedLabel,allSelectedLabel:h=r.allSelectedLabel,clearLabel:g=r.clearLabel,clearSelectionLabel:_=r.clearSelectionLabel,className:v=``,...y}=n;G(`AppTableToolbar`,y);let b=o>0,C=typeof d==`function`&&typeof l==`number`,w=C&&f,T=e=>Nn(e,{decimals:0}),E=C&&!w&&b&&o>=(u??1)&&l>(u??o);return S(`div`,{className:`wui-table-toolbar${v?` ${v}`:``}`,...t,...y,children:[S(`div`,{className:`wui-table-toolbar-main`,hidden:b,children:[x(`div`,{className:`wui-table-toolbar-filters`,children:i}),x(`div`,{className:`wui-table-toolbar-actions`,children:a})]}),S(`div`,{className:`wui-table-toolbar-bulk`,hidden:!b,children:[x(`span`,{className:`wui-table-toolbar-count`,"aria-live":`polite`,children:K(w?h:m,{count:T(w?l:o)})}),C&&x(`button`,{type:`button`,className:`btn btn-link btn-sm wui-table-toolbar-all`,hidden:!E,onClick:d,children:K(p,{count:T(l)})}),s,c&&x(nl,{variant:`ghost`,size:`sm`,className:`wui-table-toolbar-clear`,onClick:c,children:w?_:g})]})]})}function Q7(e){return rue.some(t=>t===e)}var $7={light:`sun`,dark:`moon`,auto:`monitor`},JLt=[`icon`,`segmented`],e9={sm:16,md:20,lg:24,xl:28};function YLt(e){let{marker:t,props:n}=U(`AppThemeToggle`,e),r=Vs(`themeToggle`,Rme),{variant:i=`icon`,effect:a=aue,includeAuto:o=!0,storageKey:s=ao,duration:c,label:l=r.label,lightLabel:d=r.lightLabel,darkLabel:m=r.darkLabel,autoLabel:h=r.autoLabel,name:g,size:y=`md`,tooltipPlacement:b=`auto`,onChange:S,className:C=``,...w}=n,E={light:r.lightModeLabel,dark:r.darkModeLabel,auto:r.autoModeLabel};G(`AppThemeToggle`,w),W(`AppThemeToggle`,`variant`,i,JLt),W(`AppThemeToggle`,`effect`,a,iue),W(`AppThemeToggle`,`size`,y,Object.keys(e9));let D=u(e=>e===`auto`&&!o?so(e):e,[o]),[O,k]=v(()=>D(typeof window>`u`?`auto`:due(s))),A=p(),j=g||A,M=_({shown:D,storageKey:s});f(()=>{let e=document.documentElement.getAttribute(`data-theme`);Q7(e)?k(M.current.shown(e)):co(due(M.current.storageKey))},[]),f(()=>{let e=e=>{if(!(e instanceof CustomEvent))throw Error(`wui:theme:change arrived without a CustomEvent`);let t=`detail`in e?e.detail:void 0,n=typeof t==`object`&&t&&`preference`in t?t.preference:void 0;Q7(n)&&k(D(n))};return document.addEventListener(oo,e),()=>document.removeEventListener(oo,e)},[D]),f(()=>mue(()=>{document.documentElement.getAttribute(`data-theme`)===`auto`&&co(`auto`)}),[]);let N=u((e,t)=>{let n=t?.getBoundingClientRect?.()??{left:0,top:0,width:0,height:0},r={x:n.left+n.width/2,y:n.top+n.height/2};Cue(()=>{co(e),fue(e,s),T(()=>k(e))},{effect:a,to:so(e),origin:r,...c===void 0?null:{duration:c}}).then(()=>S?.(e))},[s,a,c,S]);if(i===`segmented`){let e=[{value:`light`,label:d,icon:$7.light},{value:`dark`,label:m,icon:$7.dark}];return o&&e.push({value:`auto`,label:h,icon:$7.auto}),x(xz,{...t,options:e,value:O,name:j,label:l,size:y===`xl`?`lg`:y,className:[`wui-theme-toggle`,`wui-theme-toggle-segmented`,C].filter(Boolean).join(` `),onChange:e=>{if(!Q7(e)||e===O)return;let t=document.querySelector(`.segmented-input[name="${CSS.escape(j)}"][value="${e}"]`);N(e,t?.closest(`.segmented-option`)??t)}})}return x(Ks,{...t,icon:$7[O],label:`${l}: ${E[O]}`,size:e9[y]??e9.md,tooltipPlacement:b,onClick:e=>N(pue(O,{includeAuto:o}),e.currentTarget),className:[`wui-theme-toggle`,C].filter(Boolean).join(` `)})}var XLt=[`feed`,`progress`,`steps`],ZLt=[`vertical`,`horizontal`],QLt=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],$Lt=Hs.filter(e=>e!==`primary`),eRt=[`sm`,`md`,`lg`],tRt={done:`check`,current:`clock`,"on-hold":`lock`,rejected:`x`,cancelled:`minus`,skipped:`arrow-right`,upcoming:null},nRt=e=>(/^https?:[/][/]/i.test(e)||e.startsWith(`/`)&&e[1]!==`/`&&e[1]!==`\\`)&&![...e].some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)===127);function rRt(e){if(e.byHref!=null&&e.byHref!==``){if(!nRt(e.byHref))throw Error(`<AppTimeline> items[].byHref must be a path starting with one '/', or an http:// or https:// address, with no spaces.`);if(!e.by)throw Error(`<AppTimeline> items[].byHref links the by name, so the item needs by.`)}}var iRt=(e,t)=>{if(!e.byHref)return e.by;let n=gs(t,{href:e.byHref});return x(_s,{link:n,className:`timeline-by-link`,children:e.by})},aRt=(e,t)=>{if(typeof e!=`string`)throw TypeError(`<AppTimeline> items[].${t} must be a string when markdown is set, because it is Markdown source.`);return e},oRt=(e,t)=>t?x(EB,{value:aRt(e.description,`description`),headings:`text`}):e.description,sRt=(e,t)=>t?x(`div`,{className:`timeline-note wui-timeline-note--markdown`,children:x(EB,{value:aRt(e.note,`note`),headings:`text`})}):x(`p`,{className:`timeline-note`,children:e.note});function cRt(e){let{marker:t,props:n}=U(`AppTimeline`,e),r=Vs(`timeline`,zme),{items:i=[],variant:a=`feed`,orientation:o,iconVariant:s,size:c,linkComponent:l,className:u=``,style:d,stepLabel:f=r.stepLabel,markdown:p=!1,...m}=n;G(`AppTimeline`,m),W(`AppTimeline`,`variant`,a,XLt),W(`AppTimeline`,`orientation`,o,ZLt),W(`AppTimeline`,`iconVariant`,s,QLt),W(`AppTimeline`,`size`,typeof c==`string`?c:null,eRt);for(let e of i){if(p)for(let t of[`description`,`note`]){let n=e[t];if(n!=null&&typeof n!=`string`)throw TypeError(`<AppTimeline> items[].${t} must be a string when markdown is set, because it is Markdown source.`)}W(`AppTimeline`,`items[].tone`,e.tone,$Lt),rRt(e),a===`progress`&&W(`AppTimeline`,`items[].status`,e.status,Object.keys(tRt))}let h=a===`progress`,g=a===`steps`,_=o===`horizontal`,v=s??(g?`bulk`:void 0),y=typeof c==`string`&&eRt.includes(c)?c:`md`,b=typeof c==`number`&&c>0?c:void 0,C=!b&&y!==`md`?` wui-timeline--${y}`:``,w=`${g?`timeline wui-timeline--steps${o===`vertical`?` wui-timeline--steps-vertical`:``}`:`timeline${h?` timeline--progress`:``}${_?` timeline--horizontal`:``}`}${C}${u?` ${u}`:``}`,T=g?b?Math.round(b*.43):{sm:19,md:24,lg:31}[y]:b?Math.round(b*.54):h?{sm:10,md:13,lg:17}[y]:{sm:10,md:12,lg:17}[y],E={"--wui-timeline-dot":`${b}px`},D=b?{...d,...E}:d;return x(`ol`,{className:w,style:D,...t,...m,children:i.map((e,t)=>{let n=e.tone&&e.tone!==`neutral`?` ${e.tone}`:``;if(g){let r=e.eyebrow??K(f,{number:t+1});return S(`li`,{className:`timeline-item${n}`,children:[x(`span`,{className:`timeline-dot`,children:e.icon?x(J,{name:e.icon,size:T,variant:v}):null}),S(`div`,{className:`timeline-body`,children:[r!==``&&x(`div`,{className:`wui-timeline-eyebrow`,children:r}),x(`div`,{className:`timeline-title`,children:e.title}),e.description&&x(`div`,{className:`timeline-desc`,children:oRt(e,p)})]})]},e.key??`${typeof e.at==`string`?e.at:``}-${t}`)}let r=h?e.status:void 0,i=r?` is-${r}`:``,a=h?e.icon??(r?tRt[r]:void 0):e.icon||`circle`;return S(`li`,{className:`timeline-item${i}${n}`,children:[x(`span`,{className:`timeline-dot`,children:a?x(J,{name:a,size:T,variant:v}):null}),S(`div`,{className:`timeline-body`,children:[h?S(`div`,{className:`timeline-head`,children:[x(`div`,{className:`timeline-title`,children:e.title}),(e.at||e.time)&&S(`span`,{className:`timeline-when`,children:[e.at&&x(`span`,{className:`timeline-at`,title:e.atTitle||void 0,children:e.at}),e.time&&x(`span`,{className:`timeline-time`,children:e.time})]})]}):x(`div`,{className:`timeline-title`,children:e.title}),e.description&&x(`div`,{className:`timeline-desc`,children:oRt(e,p)}),!h&&(e.at||e.time||e.by)&&S(`div`,{className:`timeline-meta`,children:[(e.at||e.time)&&S(`span`,{className:`timeline-when`,children:[e.at&&x(`span`,{className:`timeline-at`,title:e.atTitle||void 0,children:e.at}),e.time&&x(`span`,{className:`timeline-time`,children:e.time})]}),e.by&&x(`span`,{className:`timeline-by`,children:iRt(e,l)})]}),h&&e.by&&x(`div`,{className:`timeline-meta`,children:x(`span`,{className:`timeline-by`,children:iRt(e,l)})}),e.note&&sRt(e,p)]})]},e.key??`${typeof e.at==`string`?e.at:``}-${t}`)})})}var lRt=[`sm`,`md`,`lg`,`xl`],uRt=[`12`,`24`],dRt=()=>Promise.resolve().then(()=>(Fet(),Pet));function fRt(e){let t=Fc(`wui-timepicker`,dRt),{marker:n,props:r}=U(`AppTimePicker`,e),i=Vs(`timePicker`,Is),{value:o,defaultValue:s,onChange:c,label:l,required:u=!1,optional:d=!1,optionalLabel:f=i.optionalLabel,helperText:m,error:h,help:g,helpLabel:_=i.helpLabel,name:v,min:y,max:b,step:C,format:w=24,placeholder:T=i.placeholder,disabled:E,readOnly:D=!1,loading:O=!1,size:k,id:A,ariaLabel:j,className:M=``,fieldClassName:N=``,ref:P,...F}=r,I=Oc(v),L=h??I;G(`AppTimePicker`,F),W(`AppTimePicker`,`size`,k,lRt);let R=String(w);W(`AppTimePicker`,`format`,R,uRt);let z=p(),B=A||v||z,{setRef:V}=pV({ready:t,ref:P,value:o??(s===void 0?``:void 0),onChange:c}),H=!l&&!L&&!m,ee=L?`${B}-error`:void 0,te=m?`${B}-hint`:void 0,ne=ee||te,re=x(`wui-timepicker`,{ref:V,value:(o??s)||void 0,id:B,name:v,min:y,max:b,step:C==null?void 0:String(C),format:R,placeholder:T,size:k||void 0,"aria-label":j||ZV(l)||void 0,"aria-describedby":ne,"aria-invalid":L?`true`:void 0,disabled:E?``:void 0,readonly:D?``:void 0,loading:O?``:void 0,required:u?``:void 0,className:M||void 0,...F});return H?a(re,n):S(`div`,{...n,className:`field${N?` ${N}`:``}`,children:[l&&S(`label`,{className:`label`,htmlFor:B,children:[l,d&&!u&&x(`span`,{className:`label-optional`,children:` ${f}`}),u&&x(Uc,{}),g&&x(Hc,{label:_,children:g})]}),re,x(Ac,{error:L,hint:m,errorId:ee,hintId:te})]})}var pRt={success:{icon:`check-circle`,assertive:!1},info:{icon:`info`,assertive:!1},warning:{icon:`alert-triangle`,assertive:!0},danger:{icon:`alert-circle`,assertive:!0}},mRt=e=>Object.keys(pRt).includes(e),t9={"top-start":`top-0 start-0`,"top-center":`top-0 start-50 translate-middle-x`,"top-end":`top-0 end-0`,"middle-center":`top-50 start-50 translate-middle`,"bottom-start":`bottom-0 start-0`,"bottom-center":`bottom-0 start-50 translate-middle-x`,"bottom-end":`bottom-0 end-0`},hRt=64;function gRt(e){let{marker:t,props:n}=U(`AppToast`,e),r=Vs(`toast`,zs),{position:i=`bottom-end`,maxVisible:a=4,animation:o=`rise`,shape:s=`rounded`,surface:c=`auto`,offset:l,closeLabel:u=r.closeLabel,className:d=``,...p}=n;G(`AppToast`,p),W(`AppToast`,`position`,i,Object.keys(t9)),W(`AppToast`,`animation`,o,Rlt),W(`AppToast`,`shape`,s,zlt),W(`AppToast`,`surface`,c,Blt);let[m,h]=v([]);f(()=>Klt(h),[]);let g=_fe(),y=_(null);f(()=>{let e=y.current;g&&e&&m.length!==0&&e.isConnected&&ya(e)},[m,g]);let b=typeof l==`number`&&Number.isFinite(l)&&l>=0;f(()=>{l==null||b||ce(`[@webority/ui-react] <AppToast> received offset="${String(l)}", which must be a number of pixels, 0 or more. The default offset is used instead.`)},[l,b]);let{style:C,...T}=p,E={"--wui-toast-offset":`${l}px`},D=b?{...E,...C}:C,O=Math.max(0,m.length-a),k=O?m.slice(O):m,A=t9[i]??t9[`bottom-end`];return g?w(S(`div`,{...t,...T,ref:y,popover:`manual`,style:D,className:`wui-toast-container toast-container position-fixed ${A} p-3 ${d}`.trim(),children:[O>0&&S(`div`,{className:`wui-toast-more`,"aria-hidden":`true`,children:[`+`,O,` `,r.moreText]}),k.map(e=>x(_Rt,{toast:e,defaultAnimation:o,defaultShape:s,defaultSurface:c,closeLabel:u},e.id))]}),g):null}function _Rt(e){let t=Vs(`toast`,zs),{toast:n,defaultAnimation:r=`rise`,defaultShape:i=`rounded`,defaultSurface:a=`auto`,closeLabel:o=t.closeLabel}=e;if(!mRt(n.variant))throw Error(`<AppToast> has no tone for the variant "${n.variant}".`);let s=pRt[n.variant],c=n.animation??r,l=n.shape??i,u=n.surface??a,d=(c===`rise`?``:` wui-toast--anim-${c}`)+(l===`rounded`?``:` wui-toast--shape-${l}`)+(u===`inverse`?` wui-toast--surface-inverse`:``),p=n.duration===0,[m,h]=v(0),[g,y]=v(!1),b=_(null),C=()=>lY(n.id),w=_(null);f(()=>{if(n.duration===0)return;qlt(n.id);let e=w.current,t=e==null?``:getComputedStyle(e).animationName;if(e!=null&&(typeof e.getAnimations==`function`?e.getAnimations().length>0:t!==``&&t!==`none`))return;let r=setTimeout(()=>lY(n.id),n.duration);return()=>clearTimeout(r)},[n.id,n.duration]);let T=e=>{if(e.button===0){if(!(e.target instanceof Element))throw Error(`<AppToast> received a pointer event whose target is not an element.`);e.target.closest(`button`)||(b.current=e.clientX,y(!0),e.currentTarget.setPointerCapture?.(e.pointerId))}},E=e=>{b.current!==null&&h(e.clientX-b.current)},D=()=>{b.current=null,y(!1),h(0)},O=e=>{if(b.current===null)return;let t=e.clientX-b.current;Math.abs(t)>hRt?C():D()},k=m?{transform:`translateX(${m}px)`,opacity:Math.max(0,1-Math.abs(m)/200)}:void 0,A=n.message;return S(`div`,{className:`toast show wui-toast wui-toast--${n.variant}${d}${g?` wui-toast--dragging`:``}`,role:s.assertive?`alert`:`status`,"aria-live":s.assertive?`assertive`:`polite`,"aria-atomic":`true`,style:k,onPointerDown:T,onPointerMove:E,onPointerUp:O,onPointerCancel:D,children:[x(`span`,{className:`wui-toast-icon`,"aria-hidden":`true`,children:x(J,{name:s.icon,size:20})}),S(`div`,{className:`wui-toast-content`,children:[n.title&&x(`div`,{className:`wui-toast-title`,children:n.title}),x(`div`,{className:`wui-toast-message`,children:A}),typeof n.progress==`number`&&S(`div`,{className:`wui-toast-task`,children:[x(`div`,{className:`wui-toast-track`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(n.progress),children:x(`div`,{className:`wui-toast-track-fill`,style:{width:`${n.progress}%`}})}),S(`span`,{className:`wui-toast-track-pct`,"aria-hidden":`true`,children:[Math.round(n.progress),`%`]})]}),n.action&&x(`button`,{type:`button`,className:`wui-toast-action`,onClick:()=>{n.action?.onClick?.(),C()},children:n.action.label})]}),x(`button`,{type:`button`,className:`btn-close wui-toast-close`,"aria-label":o,onClick:C}),!p&&x(`div`,{ref:w,className:`wui-toast-progress`,style:{animationDuration:`${n.duration}ms`},onAnimationEnd:C})]})}function vRt(e){let{marker:t,props:n}=U(`AppToolbar`,e),{items:r=[],actions:i=[],value:a,defaultValue:o,onChange:s,label:c,name:l,disabled:u=!1,className:d=``,...f}=n;G(`AppToolbar`,f);let m=p(),h=l||m,[g,_]=v(o),y=a===void 0?g:a,b=[`toolbar`,u?`is-disabled`:``,d].filter(Boolean).join(` `);return S(`div`,{className:b,role:`toolbar`,"aria-label":c,"aria-disabled":u||void 0,...t,...f,children:[r.map(e=>S(`label`,{className:`toolbar-item`,children:[x(`input`,{type:`radio`,className:`toolbar-input`,name:h,value:e.value,checked:e.value===y,disabled:u||e.disabled,onChange:()=>{a===void 0&&_(e.value),s?.(e.value)}}),x(`span`,{className:`toolbar-item-icon`,children:Ws(e.icon,{size:16})}),x(`span`,{className:`toolbar-item-label`,children:e.title})]},e.value)),i.length>0&&x(`span`,{className:`toolbar-sep`,"aria-hidden":`true`}),i.map((e,t)=>x(`button`,{type:`button`,className:`toolbar-action`,"aria-label":e.title,disabled:u||e.disabled,onClick:e.onClick,children:x(`span`,{className:`toolbar-item-icon`,children:Ws(e.icon,{size:16})})},e.key??`${e.title}-${t}`))]})}function yRt(e){let t=e.ownerDocument,n=(e.getAttribute(`aria-labelledby`)||``).split(/\s+/).filter(Boolean),r=e instanceof HTMLInputElement&&/^(button|submit|reset)$/.test(e.type)?e.value:``,i=[n.map(e=>t.getElementById(e)?.textContent??``).join(` `),e.getAttribute(`aria-label`),Array.from(tzt(e)??[],e=>e.textContent).join(` `),e.getAttribute(`alt`),r,e.textContent,e.getAttribute(`title`)];for(let e of i){let t=c9(e);if(t)return t}return``}function bRt(e){for(let t of[e,...e.querySelectorAll($Rt)])if((t instanceof HTMLElement||t instanceof SVGElement)&&t.tabIndex>=0&&!nzt(t))return t;return null}function xRt(e,t,n){let r=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(e=>e&&e!==t);n&&r.push(t),r.length>0?e.setAttribute(`aria-describedby`,r.join(` `)):e.removeAttribute(`aria-describedby`)}function SRt(e,t){let n=e.querySelector(`.${a9}`),r=e.querySelector(`.wui-tour-text`)?.id,i=r?`${r.replace(/-text$/,``)}-hint`:``;if(!t)n?.remove(),i&&xRt(e,i,!1);else{if(!n){n=e.ownerDocument.createElement(`p`),n.className=a9,i&&(n.id=i);let t=e.querySelector(`.wui-tour-actions`);if(!t)throw Error(`Tour card has no actions row.`);t.before(n)}n.textContent=t,i&&xRt(e,i,!0)}}function CRt(e,t){let n=e.querySelector(`.${o9}`);if(!t){n?.remove();return}if(n)return;let r=e.ownerDocument.createElement(`span`);r.className=o9,r.setAttribute(`aria-hidden`,`true`),e.append(r)}function wRt(e,{layer:t,spot:n,card:r},i,a){let o=s9(i,a);t.toggleAttribute(i9,o&&!(t.getRootNode()instanceof ShadowRoot)),n.hasAttribute(i9)&&(n.removeAttribute(i9),o&&rzt(n)),o&&n.setAttribute(i9,``),CRt(n,o);let s=r.querySelector(`.wui-tour-next`);if(!(s instanceof HTMLElement))throw Error(`Tour card has no next button.`);s.classList.toggle(`btn-primary`,!o),s.classList.toggle(`btn-link`,o);let c=o?c9(i?.actionLabel)||yRt(a):``,l=e.getAttribute(`advance-label`)||ezt().advanceLabel,u=c?l.replace(/\{actionName\}/g,()=>c):``;return SRt(r,u),u}function TRt(e,t,n){if(!s9(e,t))return()=>{};let r,i=()=>{r??=setTimeout(n,0)};return t.addEventListener(`click`,i),()=>{t.removeEventListener(`click`,i),clearTimeout(r)}}function ERt(e,t,n,r){return e.contains(r)||s9(t,n)&&n.contains(r)}function DRt(e,{card:t,active:n,step:r,target:i}){let a=Array.from(t.querySelectorAll(`button`)).filter(e=>!e.hidden),o=s9(r,i)?bRt(i):null;o&&a.push(o);let s=a.findIndex(e=>e===n||e===o&&i?.contains(n));e.preventDefault();let c=a[s===-1?e.shiftKey?a.length-1:0:(s+(e.shiftKey?-1:1)+a.length)%a.length];if(!c)throw Error(`Tour card has no focus stop.`);c.focus()}function ORt(e){return e.length===0?null:new Promise(t=>{let n=setTimeout(t,azt);Promise.allSettled(e.map(e=>e.finished)).then(()=>{clearTimeout(n),t()})})}function kRt(e){let t=e.parentElement?.querySelector(`:scope > .wui-tour-spot`),n=0;for(let e of t?u9(t,szt):[]){let t=e.effect?.getComputedTiming?.();if(typeof t?.duration!=`number`)continue;let r=typeof e.currentTime==`number`?e.currentTime:0;n=Math.max(n,(t.delay??0)+t.duration*izt-r)}return n}function ARt(e){let t=kRt(e);t>0?e.style.setProperty(`--wui-tour-card-delay`,`${Math.round(t)}ms`):e.style.removeProperty(`--wui-tour-card-delay`),e.dataset.state=`entering`;let n={};l9.set(e,n);let r=()=>{l9.get(e)===n&&e.dataset.state===`entering`&&(e.dataset.state=`shown`)},i=u9(e,czt);i.length===0?r():Promise.allSettled(i.map(e=>e.finished)).then(r)}function jRt(e){return e.dataset.state=`leaving`,ORt(u9(e,d9))}function MRt(e){let t=e.shadowRoot?.querySelector(`.wui-tour-layer`),n=e.classList.contains(`wui-tour-layer`)?e:t instanceof HTMLElement?t:null;n&&(n.dataset.state=`leaving`);let r=n?ORt(u9(n,d9)):null;r?(e.setAttribute(`inert`,``),r.then(()=>e.remove())):e.remove()}function NRt(e,t){if(!t?.scrollIntoView)return;e.style.maxHeight=``;let n=zRt(e),r=e.offsetHeight+f9;if(t.getBoundingClientRect().height+4+r*2<=n.bottom-n.top){t.scrollIntoView({block:`center`,inline:`nearest`});return}let i=t.style.scrollMarginTop;t.style.scrollMarginTop=`${n.top+r+lzt}px`,t.scrollIntoView({block:`start`,inline:`nearest`}),t.style.scrollMarginTop=i}function PRt(e,t,n){let r=e.style,i=t.style,a=BRt(t);if(!n){r.top=`50%`,r.left=`50%`,r.width=`0px`,r.height=`0px`,r.boxShadow=`0 0 0 100vmax var(--color-scrim-strong)`;for(let e of g9)r.removeProperty(`border-${e}-radius`),r.removeProperty(`corner-${e}-shape`);t.dataset.placement=`center`,a.hidden=!0,i.position=`fixed`,i.top=`50%`,i.left=`50%`,i.transform=`translate(-50%, -50%)`,i.maxHeight=`calc(100vh - 16px)`;return}r.boxShadow=``,i.transform=``,i.position=`fixed`;let o=n.getBoundingClientRect();r.top=`${o.top}px`,r.left=`${o.left}px`,r.width=`${o.width}px`,r.height=`${o.height}px`,FRt(r,n);let s=t.scrollTop;i.maxHeight=``;let c={width:t.offsetWidth,height:t.offsetHeight},l=zRt(t),u=l.bottom-l.top,d={bottom:l.bottom-o.bottom-f9,top:o.top-f9-l.top,right:l.right-o.right-f9,left:o.left-f9-l.left},f=window.matchMedia(uzt).matches,p=(Zi(n)?fzt:dzt).find(e=>e===`top`||e===`bottom`?c.height<=d[e]+1:!f&&c.width<=d[e]+1&&c.height<=u+1),m=Math.min(o.bottom,l.bottom+p9)-Math.max(o.top,l.top-p9);p?IRt(t,a,p,o,l,c):m>=Math.min(c.height,u)+8?LRt(t,a,o,l,c):RRt(t,a,d.bottom>=d.top?`bottom`:`top`,o,l,c,d),t.scrollTop=s}function FRt(e,t){pzt??=CSS.supports(`corner-top-left-shape`,`squircle`);let n=getComputedStyle(t);for(let t of g9)e.setProperty(`border-${t}-radius`,n.getPropertyValue(`border-${t}-radius`)),pzt&&e.setProperty(`corner-${t}-shape`,n.getPropertyValue(`corner-${t}-shape`))}function IRt(e,t,n,r,i,a){let o=n===`top`||n===`bottom`,s,c,l;if(o){let e=v9(r.left,r.right,i.left,i.right);s=_9(e-a.width/2,i.left,i.right-a.width),c=n===`bottom`?r.bottom+f9:r.top-f9-a.height,l=_9(e-s,h9,a.width-h9)}else{let e=v9(r.top,r.bottom,i.top,i.bottom);c=_9(e-a.height/2,i.top,i.bottom-a.height),s=n===`right`?r.right+f9:r.left-f9-a.width,l=_9(e-c,h9,a.height-h9)}e.dataset.placement=n,e.style.top=`${c}px`,e.style.left=`${s}px`,t.hidden=!1,t.style.left=o?`${l-e.clientLeft-t.offsetWidth/2}px`:``,t.style.top=o?``:`${l-e.clientTop-t.offsetHeight/2}px`}function LRt(e,t,n,r,i){let a=r.bottom-r.top;e.dataset.placement=`overlap`,t.hidden=!0,e.style.maxHeight=i.height>a?`${Math.max(a,0)}px`:``;let o=Math.min(n.bottom,r.bottom)-m9;e.style.top=`${Math.max(r.top,o-Math.min(i.height,a))}px`,e.style.left=`${_9(n.left+m9,r.left,r.right-i.width)}px`}function RRt(e,t,n,r,i,a,o){let s=Math.max(o[n],0),c=Math.min(a.height,s);e.dataset.placement=n,t.hidden=!0,e.style.maxHeight=a.height>s?`${s}px`:``,e.style.top=`${n===`bottom`?r.bottom+f9:r.top-f9-c}px`;let l=v9(r.left,r.right,i.left,i.right);e.style.left=`${_9(l-a.width/2,i.left,i.right-a.width)}px`}function zRt(e){let t=e.parentElement,n=t?getComputedStyle(t):null,r=e=>Number.parseFloat(n?.[e]??``)||0;return{top:r(`paddingTop`)+p9,bottom:window.innerHeight-r(`paddingBottom`)-p9,left:r(`paddingLeft`)+p9,right:window.innerWidth-r(`paddingRight`)-p9}}function BRt(e){let t=e.querySelector(`:scope > .wui-tour-arrow`);if(t instanceof HTMLElement)return t;let n=document.createElement(`span`);return n.className=`wui-tour-arrow`,n.setAttribute(`aria-hidden`,`true`),n.hidden=!0,e.append(n),n}function n9(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`Expected "${t}" to match a ${n.name}.`);return r}function VRt(e,t){let n=`wui-tour-end-${++mzt}`,{nextLabel:r,nextHref:i}=e,a=r&&i?q(`a`,{class:`${Pz(`primary`,`solid`,`sm`)} wui-tour-end-next`,"data-wui":Fz,href:i},r):null,o=a!==null,s=q(`button`,{type:`button`,class:`${o?hzt:Pz(`primary`,`solid`,`sm`)} wui-tour-end-button`,"data-wui":Fz},e.button);return q(t?`dialog`:`div`,{class:`wui-tour-card wui-tour-end`,"data-layout":`center`,"data-next":o||void 0,role:`dialog`,tabindex:-1,"aria-labelledby":`${n}-title`,"aria-describedby":`${n}-message`},q(`div`,{class:`wui-tour-end-mark`,"aria-hidden":`true`},Jr({viewBox:`0 0 24 24`,focusable:`false`},[[`path`,{d:`M5 12.5l4.5 4.5L19 7.5`}]])),q(`h2`,{class:`wui-tour-title wui-tour-end-title`,id:`${n}-title`},e.title),q(`p`,{class:`wui-tour-text wui-tour-end-message`,id:`${n}-message`},e.message),q(`div`,{class:`wui-tour-actions`},a,s))}function HRt(e,t,n){let r=e.ownerDocument,i=VRt(t,e.getRootNode()===r),a=n9(i,`.wui-tour-end-button`,HTMLButtonElement),o=i.querySelector(`.wui-tour-end-next`);if(o!==null&&!(o instanceof HTMLAnchorElement))throw Error(`The end dialog's next link is not a link.`);let s=o,c=s??a,l=new AbortController,u=i instanceof HTMLDialogElement?i:null,d=null;return new Promise(o=>{let f=e=>{if(l.abort(),d&&u){let e=d;d=null,ma(u).then(e)}o(e)};if(n?.aborted){f(`done`);return}let p=n9(e,`.wui-tour-card:not(.wui-tour-end)`,HTMLElement),m=n9(e,`.wui-tour-spot`,HTMLElement),h=n9(e,`[role=status]`,HTMLElement),g={signal:l.signal};n?.addEventListener(`abort`,()=>f(`done`),g),a.addEventListener(`click`,()=>f(`done`),g),s&&s.addEventListener(`click`,e=>{gzt(e)&&(e.preventDefault(),f(`next`))},g),r.addEventListener(`keydown`,e=>{if(!(e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`Escape`){if(d)return;e.preventDefault(),e.stopPropagation(),f(`done`)}else ni(e)&&s&&!e.shiftKey&&(e.composedPath?.()[0]??e.target)===s&&(e.preventDefault(),f(`next`))}},{capture:!0,signal:l.signal});let _=()=>{l.signal.aborted||(p.hidden=!0,PRt(m,p,null),e.append(i),ARt(i),u&&(d=pa(u,{escape:!0,backdrop:!1,focus:`first-control`,onRequestClose:()=>f(`done`)})),h.textContent=[t.title,t.message].filter(Boolean).join(`. `),c.focus())},v=jRt(p);v===null?_():v.then(_)})}function URt(e){let t=document.createElementNS(x9,`svg`);t.setAttribute(`viewBox`,`0 0 24 24`),t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`focusable`,`false`);let n=document.createElementNS(x9,`path`);return n.setAttribute(`d`,e),t.appendChild(n),t}function WRt(e){let t=document.createElement(`img`);return t.setAttribute(`alt`,e.mediaAlt??``),t.setAttribute(`width`,`1280`),t.setAttribute(`height`,`720`),t.setAttribute(`loading`,`lazy`),t.setAttribute(`decoding`,`async`),t.setAttribute(`src`,e.media??``),t}function GRt(e,t){let n=document.createElement(`video`);return n.muted=!0,n.setAttribute(`muted`,``),n.loop=!0,n.setAttribute(`playsinline`,``),t&&n.setAttribute(`autoplay`,``),n.setAttribute(`preload`,t?`auto`:`metadata`),e.mediaAlt&&n.setAttribute(`aria-label`,e.mediaAlt),e.mediaPoster&&n.setAttribute(`poster`,e.mediaPoster),n.setAttribute(`src`,e.media??``),n}function KRt(e,t){let n=document.createElement(`button`);n.type=`button`,n.className=vzt;let r=(r=!e.paused)=>{n.setAttribute(`aria-label`,r?t.pause:t.play),n.replaceChildren(URt(r?yzt:bzt))};return e.addEventListener(`play`,()=>r()),e.addEventListener(`pause`,()=>r()),n.addEventListener(`click`,()=>{e.paused?e.play()?.catch(()=>r()):e.pause()}),r(e.hasAttribute(`autoplay`)),n}function qRt(e){let t=e.querySelector(`:scope > .${b9}`);if(!t)return;let n=t.querySelector(`video`);n&&(n.pause(),n.removeAttribute(`src`),n.load()),t.remove()}function JRt(e,t,n=xzt()){if(qRt(e),!t.media){e.removeAttribute(`data-media`);return}let r=document.createElement(`div`);if(r.className=b9,t.mediaType===`video`){let e=GRt(t,!Szt());r.append(e,KRt(e,n))}else r.appendChild(WRt(t));e.prepend(r),e.setAttribute(`data-media`,t.target?`step`:`welcome`)}function YRt(e){let t=new Set;return{drop:e=>{t.add(e)},position:e=>{t.delete(e);let n=0;for(let r of t)r<e&&n++;return e+1-n},total:()=>e-t.size}}function XRt(e,t,n){return(e.getAttribute(`progress-label`)||Czt().progressLabel).replace(/\{(current|total)\}/g,(e,r)=>String(r===`current`?t:n))}function ZRt(e,{text:t,position:n,total:r}){let i=e.querySelector(`.wui-tour-position`);if(!(i instanceof HTMLElement))throw Error(`tour position label missing`);i.textContent=t;let a=e.querySelector(`.wui-tour-progress-bar`);if(!a){let t=e.ownerDocument,n=t.createElement(`div`);n.className=`wui-tour-progress`,n.setAttribute(`aria-hidden`,`true`),a=t.createElement(`div`),a.className=`wui-tour-progress-bar`,n.append(a),i.before(n)}let o=a.children;for(;o.length<r;){let t=e.ownerDocument.createElement(`span`);t.className=`wui-tour-progress-segment`,a.append(t)}for(;o.length>r;){let e=a.lastElementChild;if(!e)throw Error(`progress bar segment missing`);e.remove()}for(let e=0;e<o.length;e++){let t=o[e];if(!t)throw Error(`progress bar segment missing`);t.toggleAttribute(`data-filled`,e<n)}}function r9(e,t,n){let r=e.querySelector(t);if(!(r instanceof n))throw Error(`<wui-tour> layer has no ${t}`);return r}function QRt(e){D9||(D9=new CSSStyleSheet,D9.replaceSync(_zt)),e.adoptedStyleSheets=[D9]}var i9,a9,o9,$Rt,ezt,s9,c9,tzt,nzt,rzt,izt,azt,ozt,l9,u9,d9,szt,czt,lzt,f9,p9,m9,h9,uzt,dzt,fzt,g9,pzt,_9,v9,mzt,hzt,gzt,_zt,y9,b9,vzt,x9,yzt,bzt,xzt,Szt,Czt,wzt,Tzt,S9,C9,Ezt,Dzt,Ozt,w9,kzt,T9,E9,Azt,D9,O9,jzt=M((()=>{ca(),Lz(),En(),Rc(),Ma(),$i(),xn(),gpe(),ri(),Xr(),J8e(),ade(),i9=`data-advance`,a9=`wui-tour-hint`,o9=`wui-tour-pointer`,$Rt=`a[href], button, input, select, textarea, summary, [tabindex], [contenteditable]`,ezt=()=>pn(`tourAdvance`,hpe),s9=(e,t)=>e?.advanceOn===`click`&&!!t,c9=e=>(e??``).replace(/\s+/g,` `).trim(),tzt=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLMeterElement||e instanceof HTMLOutputElement||e instanceof HTMLProgressElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement?e.labels:null,nzt=e=>e instanceof HTMLButtonElement||e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOptGroupElement||e instanceof HTMLOptionElement?e.disabled:!1,rzt=e=>getComputedStyle(e).animationName,izt=2/3,azt=1e3,ozt=new Set([`top`,`left`,`width`,`height`]),l9=new WeakMap,u9=(e,t)=>typeof e.getAnimations==`function`?e.getAnimations().filter(t):[],d9=e=>`transitionProperty`in e&&e.transitionProperty===`opacity`,szt=e=>`transitionProperty`in e&&typeof e.transitionProperty==`string`&&ozt.has(e.transitionProperty),czt=e=>`animationName`in e&&typeof e.animationName==`string`&&e.animationName.startsWith(`wui-tour-`),lzt=2,f9=12,p9=8,m9=4,h9=20,uzt=`(max-width: 575.98px)`,dzt=[`bottom`,`top`,`right`,`left`],fzt=[`bottom`,`top`,`left`,`right`],g9=[`top-left`,`top-right`,`bottom-right`,`bottom-left`],_9=(e,t,n)=>Math.max(t,Math.min(e,n)),v9=(e,t,n,r)=>(Math.max(e,n)+Math.min(t,r))/2,mzt=0,hzt=`btn btn-sm btn-link`,gzt=e=>e.button===0&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey,_zt=` :host { all: initial; display: revert-layer; position: fixed; inset: 0; ${Object.entries({"--wui-z-tour":`1550`,"--wui-radius-sm":`8px`,"--wui-radius-2xl":`18px`,"--wui-shadow-popover":`0px 8px 28px -6px rgba(7, 20, 55, 0.14)`,"--wui-ease-out":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-ease-linear":`cubic-bezier(0, 0, 1, 1)`,"--wui-duration-fast":`150ms`,"--wui-duration-default":`250ms`,"--wui-duration-slow":`400ms`,"--wui-space-xs":`4px`,"--wui-tour-motion-duration":`200ms`,"--wui-tour-motion-ease":`cubic-bezier(0.22, 1, 0.36, 1)`,"--wui-tour-spot-duration":`240ms`,"--wui-tour-spot-ease":`cubic-bezier(0.32, 0.72, 0, 1)`,"--color-primary":`#4F46E5`,"--color-primary-hover":`#4338CA`,"--color-primary-text":`#4F46E5`,"--color-focus-ring":`#4F46E5`,"--wui-focus-ring-width":`2px`,"--wui-focus-ring-offset":`2px`,"--color-on-primary":`#FFFFFF`,"--color-success-soft":`#E8FAEE`,"--color-success-text":`#0e7531`,"--color-on-scrim":`#FFFFFF`,"--color-scrim-strong":`color-mix(in srgb, #071437 62%, transparent)`,"--color-surface":`#FFFFFF`,"--color-text":`#071437`,"--color-text-muted":`#4B5675`,"--color-border":`#EBEDF3`,"--color-bg-muted":`#F5F6FA`}).map(([e,t])=>` ${e}: ${t};`).join(` `)} } *, *::before, *::after { box-sizing: border-box; } [hidden] { display: none !important; } .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; } .btn { display: inline-block; margin: 0; padding: 0.25rem 0.5rem; border: 1px solid transparent; border-radius: 0.375rem; background: transparent; font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.5; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; } .btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } .btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); } .btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); } .btn-outline-neutral { border-color: var(--color-text-muted); color: var(--color-text-muted); } .btn-outline-neutral:hover { background: var(--color-bg-muted); color: var(--color-text); } .btn-link { font-weight: 400; color: var(--color-primary-text); text-decoration: underline; } .btn-link:hover { color: var(--color-primary-hover); } .wui-tour-layer { pointer-events: none; font-family: "Webority Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--color-text); text-align: start; } .wui-tour-card { pointer-events: auto; } .wui-tour-layer { position: fixed; inset: 0; z-index: var(--wui-z-tour); width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: visible; background: none; } .wui-tour-spot { position: fixed; box-shadow: 0 0 0 2px var(--color-primary), 0 0 4px 2px color-mix(in srgb, var(--color-primary) 30%, transparent), 0 0 0 100vmax var(--color-scrim-strong); pointer-events: none; } .wui-tour-card { display: flex; flex-direction: column; gap: 8px; width: min(360px, 100vw - 16px); padding: 16px; overflow-y: auto; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--wui-radius-2xl); corner-shape: squircle; box-shadow: var(--wui-shadow-popover); } .wui-tour-card:focus { outline: none; } .wui-tour-card:focus-visible { outline: var(--wui-focus-ring-width) solid var(--color-focus-ring); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-title { margin: 0; font-size: 16px; font-weight: 600; } .wui-tour-text { margin: 0; font-size: 14px; color: var(--color-text-muted); } .wui-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; } .wui-tour-nav { display: flex; gap: 8px; } .wui-tour-skip { color: var(--color-text-muted); } .wui-tour-back, .wui-tour-next { min-width: 64px; } @keyframes wui-tour-fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes wui-tour-card-enter { from { opacity: 0; scale: 0.96; translate: var(--wui-tour-card-lift, 0 6px); } to { opacity: 1; scale: 1; translate: 0 0; } } .wui-tour-layer[data-state=leaving], .wui-tour-card[data-state=leaving] { opacity: 0; } .wui-tour-layer[data-state=leaving], .wui-tour-layer[data-state=leaving] * { pointer-events: none; } @media (prefers-reduced-motion: no-preference) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-tour-motion-duration) var(--wui-tour-motion-ease); } .wui-tour-spot { transition: top var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), left var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), width var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), height var(--wui-tour-spot-duration) var(--wui-tour-spot-ease), border-radius var(--wui-tour-spot-duration) var(--wui-tour-spot-ease); } .wui-tour-spot[data-tracking] { transition: none; } .wui-tour-card { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=top] { --wui-tour-card-lift: 0 -6px; transform-origin: bottom center; } .wui-tour-card[data-placement=bottom] { --wui-tour-card-lift: 0 6px; transform-origin: top center; } .wui-tour-card[data-placement=left] { --wui-tour-card-lift: -6px 0; transform-origin: right center; } .wui-tour-card[data-placement=right] { --wui-tour-card-lift: 6px 0; transform-origin: left center; } .wui-tour-card[data-placement=overlap], .wui-tour-card[data-placement=center] { --wui-tour-card-lift: 0 0; transform-origin: center; } .wui-tour-card[data-state=entering] { animation: wui-tour-card-enter var(--wui-tour-motion-duration) var(--wui-tour-motion-ease) var(--wui-tour-card-delay, 0ms) both; } .wui-tour-card[data-state=leaving] { transition: opacity calc(var(--wui-tour-motion-duration) / 2) var(--wui-tour-motion-ease); } } @media (prefers-reduced-motion: reduce) { .wui-tour-layer { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-layer[data-state=leaving] { transition: opacity var(--wui-duration-fast) var(--wui-ease-linear); } .wui-tour-card[data-state=entering] { animation: wui-tour-fade-in var(--wui-duration-fast) var(--wui-ease-linear) both; } } .wui-tour-progress-bar { display: flex; gap: 4px; } .wui-tour-progress-segment { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--color-border); } .wui-tour-progress-segment[data-filled] { background: var(--color-primary); } .wui-tour-position { margin: 0; font-size: 12px; color: var(--color-text-muted); } .wui-tour-layer { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); } .wui-tour-card:has(.wui-tour-arrow:not([hidden])) { overflow: visible; } .wui-tour-arrow { position: absolute; width: 8px; height: 8px; background: var(--color-surface); border: 1px solid var(--color-border); rotate: 45deg; pointer-events: none; } .wui-tour-card[data-placement=bottom] .wui-tour-arrow { top: -5px; border-right-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=top] .wui-tour-arrow { bottom: -5px; border-top-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=right] .wui-tour-arrow { left: -5px; border-top-color: rgba(0, 0, 0, 0); border-right-color: rgba(0, 0, 0, 0); } .wui-tour-card[data-placement=left] .wui-tour-arrow { right: -5px; border-bottom-color: rgba(0, 0, 0, 0); border-left-color: rgba(0, 0, 0, 0); } @media (max-width: 575.98px) { .wui-tour-card { width: calc(100vw - 16px); } .wui-tour-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; } } .wui-tour-media { position: relative; order: -1; flex: none; aspect-ratio: 16/9; margin: -16px -16px 4px; overflow: hidden; background: var(--color-border); } .wui-tour-media>img, .wui-tour-media>video { display: block; width: 100%; height: 100%; object-fit: cover; } .wui-tour-card[data-welcome] { width: min(420px, 100vw - 16px); } .wui-tour-media-toggle { position: absolute; inset-block-end: 8px; inset-inline-end: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--color-scrim-strong); color: var(--color-on-scrim); cursor: pointer; } .wui-tour-media-toggle>svg { width: 20px; height: 20px; fill: currentColor; } .wui-tour-media-toggle:focus-visible { outline: 2px solid var(--color-on-scrim); outline-offset: var(--wui-focus-ring-offset); } .wui-tour-layer[data-advance] { pointer-events: none; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-card { pointer-events: auto; } .wui-tour-layer[data-advance]:not([data-state=leaving]) .wui-tour-spot::before { content: ""; position: absolute; inset: -100vmax; pointer-events: auto; clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 100vmax 100vmax, calc(100% - 100vmax) 100vmax, calc(100% - 100vmax) calc(100% - 100vmax), 100vmax calc(100% - 100vmax), 100vmax 100vmax); } .wui-tour-hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-text); } .wui-tour-pointer { position: absolute; top: 50%; left: 50%; width: 18px; height: 24px; pointer-events: none; } .wui-tour-pointer::before { content: ""; position: absolute; inset: 0; background: var(--color-primary); clip-path: polygon(0 0, 0 75%, 28% 58%, 46% 100%, 62% 92%, 45% 52%, 85% 52%); filter: drop-shadow(1px 0 0 var(--color-surface)) drop-shadow(-1px 0 0 var(--color-surface)) drop-shadow(0 1px 0 var(--color-surface)) drop-shadow(0 -1px 0 var(--color-surface)); } .wui-tour-pointer::after { content: ""; position: absolute; top: -16px; left: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); opacity: 0; display: none; } @media (max-width: 575.98px) { .wui-tour-pointer { width: 24px; height: 24px; translate: -50% -50%; } .wui-tour-pointer::before { clip-path: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--color-surface); filter: none; } .wui-tour-pointer::after { top: -4px; left: -4px; } } @keyframes wui-tour-tap { 0% { opacity: 0; transform: translate(56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-tap-rtl { 0% { opacity: 0; transform: translate(-56px, 44px) scale(1); } 10% { opacity: 1; transform: translate(-56px, 44px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 52% { transform: translate(0, 0) scale(0.86); } 60% { transform: translate(0, 0) scale(1); } 85% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, 0) scale(1); } } @keyframes wui-tour-ripple { 0%, 50% { opacity: 0; transform: scale(0.2); } 52% { opacity: 0.35; transform: scale(0.2); } 80%, 100% { opacity: 0; transform: scale(1); } } @media (prefers-reduced-motion: no-preference) { .wui-tour-pointer { opacity: 0; animation: wui-tour-tap calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } .wui-tour-pointer:dir(rtl) { animation-name: wui-tour-tap-rtl; } .wui-tour-pointer::after { display: block; animation: wui-tour-ripple calc(var(--wui-duration-slow) * 6) var(--wui-ease-out) var(--wui-tour-spot-duration) infinite; } } @keyframes wui-tour-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } } .wui-tour-end[data-layout=center] { --wui-tour-card-lift: 0 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); transform-origin: center; align-items: center; gap: 8px; width: min(420px, 100vw - 16px); max-height: calc(100vh - 16px); padding: 24px; text-align: center; } .wui-tour-end[data-layout=center] .wui-tour-actions { justify-content: center; margin-top: 8px; } .wui-tour-end[data-layout=center][data-next] .wui-tour-actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--wui-space-xs); } .wui-tour-end-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-success-soft); color: var(--color-success-text); } .wui-tour-end-mark>svg { width: 26px; height: 26px; } .wui-tour-end-mark path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; } .wui-tour-end-title { font-size: 18px; } .wui-tour-end-message { text-wrap: balance; } .wui-tour-end-next { text-wrap: balance; } .wui-tour-end-button { min-width: 120px; } @media (prefers-reduced-motion: no-preference) { .wui-tour-end-mark path { animation: wui-tour-check var(--wui-duration-default) var(--wui-ease-out) calc(var(--wui-tour-card-delay, 0ms) + var(--wui-duration-fast)) both; } } `,y9=()=>pn(`tour`,Ls),b9=`wui-tour-media`,vzt=`wui-tour-media-toggle`,x9=`http://www.w3.org/2000/svg`,yzt=`M6 5h4v14H6zM14 5h4v14h-4z`,bzt=`M8 5v14l11-7z`,xzt=()=>({pause:y9().mediaPauseLabel,play:y9().mediaPlayLabel}),Szt=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches===!0,Czt=()=>pn(`tour`,Ls),wzt=`wui-tour-step`,Tzt=`wui-tour-host`,S9=`data-tracking`,C9=()=>pn(`tour`,Ls),Ezt=()=>({back:C9().backLabel,next:C9().nextLabel,skip:C9().skipLabel,done:C9().doneLabel,mediaPause:C9().mediaPauseLabel,mediaPlay:C9().mediaPlayLabel,endTitle:C9().endTitle,endMessage:C9().endMessage,endButton:C9().doneLabel}),Dzt={back:`back-label`,next:`next-label`,skip:`skip-label`,done:`done-label`,mediaPause:`media-pause-label`,mediaPlay:`media-play-label`,endTitle:`end-title`,endMessage:`end-message`,endButton:`end-button`},Ozt=[[`media`,`media`],[`mediaAlt`,`media-alt`],[`mediaPoster`,`media-poster`],[`mediaType`,`media-type`],[`advanceOn`,`advance-on`],[`actionLabel`,`action-label`]],w9={index:null,position:null,total:null},kzt=0,T9=e=>!e?.isConnected||getComputedStyle(e).visibility===`hidden`?!1:e.getClientRects().length>0,E9=e=>e instanceof HTMLElement&&(e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),Azt=()=>{let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e},D9=null,O9=class extends Lc{seenStore;onBeforeStep;_run;_running;_layer;_outer;_shadow;_unbindAdvance;_ending;_seenMark;_steps=[];_progress=YRt(0);_firstIndex=0;_returnFocus=null;_current=null;_moving=!1;_card=null;_spot=null;_live=null;_onKey=null;_onFocusIn=null;static get observedAttributes(){return[`open`]}constructor(){super(),this.seenStore=null,this.onBeforeStep=null,this._run=0,this._running=!1,this._layer=null,this._outer=null,this._shadow=null,this._unbindAdvance=null,this._ending=null,this._seenMark=null}connectedCallback(){this.hasAttribute(`open`)&&this.start()}disconnectedCallback(){this.stop()}attributeChangedCallback(e,t,n){e===`open`&&this.isConnected&&(n===null?this.stop():this.start())}get tourId(){return this.getAttribute(`tour-id`)||``}set tourId(e){e==null||e===``?this.removeAttribute(`tour-id`):this.setAttribute(`tour-id`,String(e))}get isolated(){return this.hasAttribute(`isolated`)}set isolated(e){this.toggleAttribute(`isolated`,e===!0||e===``||e===`true`)}_stepList(){return Array.from(this.querySelectorAll(`:scope > ${wzt}`),e=>{let t={target:e.getAttribute(`target`)||``,title:e.getAttribute(`title`)||void 0,description:(e.textContent??``).trim()};for(let[n,r]of Ozt)e.hasAttribute(r)&&(t[n]=e.getAttribute(r)??``);return t})}_stepAt(e){let t=this._steps[e];if(!t)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);return t}_store(){return this.seenStore?this.seenStore:this.getAttribute(`seen-store`)===`local`?ide():null}_label(e){return this.getAttribute(Dzt[e])||Ezt()[e]}_endDialogText(){if(this.getAttribute(`end-dialog`)===`false`)return null;let e=(this.getAttribute(`end-next-label`)??``).trim(),t=(this.getAttribute(`end-next-href`)??``).trim();return{title:this._label(`endTitle`),message:this._label(`endMessage`),button:this._label(`endButton`),nextLabel:e,nextHref:t}}_markSeen(e){let t=this._store();return t?t.markSeen(this.tourId,e):null}async start(){if(this._running)return;this._running=!0;let e=++this._run;this.hasAttribute(`open`)||this.setAttribute(`open`,``);try{await this._start(e)}catch(t){throw e===this._run&&(this._running=!1),t}}async _start(e){this._steps=this._stepList(),this._progress=YRt(this._steps.length);let t=this._store();if(t&&!this.tourId)throw Error(`<wui-tour> needs a tour-id to use a seen store.`);if(t&&await t.isSeen(this.tourId)){e===this._run&&this._finish(`alreadySeen`);return}for(let[e,t]of this._steps.entries())t.target&&!T9(document.querySelector(t.target))&&this._progress.drop(e);this._returnFocus=document.activeElement;let n=await this._locate(0,1,e);e===this._run&&(n?(this._firstIndex=n.index,this.dispatchEvent(new CustomEvent(`wui-tour:start`,{bubbles:!0,detail:{total:this._progress.total()}})),e===this._run&&(this._build(),this._show(n))):this._finish(`noTargets`))}next(){return this._move(1)}back(){return!this._current||this._current.index<=this._firstIndex?Promise.resolve():this._move(-1)}async goTo(e){if(this._current){if(!Number.isInteger(e)||e<0||e>=this._steps.length)throw RangeError(`<wui-tour> has no step ${e}; it has ${this._steps.length}.`);await this._go(e,1)}}stop(){this._running&&(this._run++,this._teardown(),this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`))}async _locate(e,t,n){let r=this._steps;for(let i=e;i>=0&&i<r.length;i+=t){let e=r[i];if(!e)break;if(await this._beforeStep(e,i),n!==this._run)return null;if(!e.target)return{index:i,target:null};let t=document.querySelector(e.target),a=t instanceof HTMLElement||t instanceof SVGElement?t:null;if(T9(a))return this._progress.position(i),{index:i,target:a};this._progress.drop(i)}return null}async _beforeStep(e,t){let n=[];this.dispatchEvent(new CustomEvent(`wui-tour:beforestep`,{bubbles:!0,detail:{step:e,index:t,wait:e=>n.push(e)}})),await Promise.all(n),typeof this.onBeforeStep==`function`&&await this.onBeforeStep(e,t)}_build(){let e=`wui-tour-${++kzt}`,t=document.createElement(`div`);t.className=`wui-tour-layer`,t.replaceChildren(q(`div`,{class:`wui-tour-spot`,"aria-hidden":`true`}),q(`div`,{class:`wui-tour-card`,role:`dialog`,tabindex:`-1`,"aria-labelledby":`${e}-title`,"aria-describedby":`${e}-text`},q(`p`,{class:`wui-tour-position`}),q(`h2`,{class:`wui-tour-title`,id:`${e}-title`}),q(`p`,{class:`wui-tour-text`,id:`${e}-text`}),q(`div`,{class:`wui-tour-actions`},q(`button`,{type:`button`,class:`btn btn-sm btn-link wui-tour-skip`}),q(`div`,{class:`wui-tour-nav`},q(`button`,{type:`button`,class:`${Pz(`neutral`,`outline`,`sm`)} wui-tour-back`,"data-wui":Fz}),q(`button`,{type:`button`,class:`${Pz(`primary`,`solid`,`sm`)} wui-tour-next`,"data-wui":Fz})))),q(`div`,{class:`visually-hidden`,role:`status`,"aria-live":`polite`}));let n=t;this._shadow=null,this.isolated&&(n=document.createElement(Tzt),this._shadow=n.attachShadow({mode:`open`}),QRt(this._shadow),this._shadow.appendChild(t)),n.setAttribute(`popover`,`manual`),ba(document).appendChild(n),document.documentElement.setAttribute(vV,``),this._outer=n,this._layer=t;let r=r9(t,`.wui-tour-spot`,HTMLDivElement),i=r9(t,`.wui-tour-card`,HTMLDivElement),a=r9(t,`[role=status]`,HTMLElement);this._spot=r,this._card=i,this._live=a,r9(i,`.wui-tour-skip`,HTMLElement).addEventListener(`click`,()=>this._close(`skipped`,`button`)),r9(i,`.wui-tour-back`,HTMLElement).addEventListener(`click`,()=>this._move(-1)),r9(i,`.wui-tour-next`,HTMLElement).addEventListener(`click`,()=>this._move(1));let o=e=>this._key(e);this._onKey=o;let s=e=>{let t=this._layer;if(!t||this._ending)return;let n=this._current,r=n?this._stepAt(n.index):null;if(!(e.target instanceof Node))throw Error(`<wui-tour> saw a focus change from a non-node target`);ERt(t,r,n?.target??null,e.target)||i.focus()};this._onFocusIn=s,document.addEventListener(`keydown`,o,!0),this._shadow||document.addEventListener(`focusin`,s),na(n,()=>this._follow())}_active(){return this._shadow?this._shadow.activeElement:document.activeElement}_raise(){let e=this._outer;if(!e)throw Error(`<wui-tour> raises a step before its host is built`);let t=ba(this.ownerDocument);e.parentElement!==t&&t.appendChild(e),ya(e)}_show(e){this._current=e;let{index:t,target:n}=e,r=this._stepAt(t),i=this._layer,a=this._spot,o=this._card,s=this._live;if(!i||!a||!o||!s)throw Error(`<wui-tour> shows a step before its layer is built`);this._raise();let c=this._progress.position(t),l=this._progress.total(),u=c===l&&!this._endDialogText(),d=XRt(this,c,l);ZRt(o,{text:d,position:c,total:l}),JRt(o,r,{pause:this._label(`mediaPause`),play:this._label(`mediaPlay`)}),o.toggleAttribute(`data-welcome`,!n);let f=wRt(this,{layer:i,spot:a,card:o},r,n),p=r9(o,`.wui-tour-title`,HTMLElement);p.textContent=r.title||``,p.hidden=!r.title,r9(o,`.wui-tour-text`,HTMLElement).textContent=r.description||``,r9(o,`.wui-tour-skip`,HTMLElement).textContent=this._label(`skip`);let m=r9(o,`.wui-tour-back`,HTMLElement);m.textContent=this._label(`back`),m.hidden=t<=this._firstIndex,r9(o,`.wui-tour-next`,HTMLElement).textContent=this._label(u?`done`:`next`);let h=[d,r.title,r.description].filter(Boolean).join(`. `);s.textContent=f?[h,f].join(/[.!?]$/.test(h)?` `:`. `):h,NRt(o,n),a.removeAttribute(S9),this._place(),ARt(o),this._unbindAdvance?.(),this._unbindAdvance=TRt(r,n,()=>void this._move(1));let g=this._active();(g!==null&&o.contains(g)?!(g instanceof HTMLElement&&g.hidden):this._shadow!==null&&E9(Azt()))||o.focus(),this.dispatchEvent(new CustomEvent(`wui-tour:step`,{bubbles:!0,detail:{step:r,index:t,position:c,total:l}}))}_place(){if(!this._current||!this._layer)return;let e=this._spot,t=this._card;if(!e||!t)throw Error(`<wui-tour> places a step before its layer is built`);PRt(e,t,this._current.target)}_follow(){if(!this._current||!this._layer||this._ending)return;let e=this._spot;if(!e)throw Error(`<wui-tour> follows a step before its spot is built`);let t=e.style.cssText;this._place(),e.style.cssText!==t&&e.setAttribute(S9,``)}async _move(e){this._current&&await this._go(this._current.index+e,e)}async _go(e,t){if(!this._current||this._moving)return;this._moving=!0;let n=this._run;try{let r=await this._locate(e,t,n);if(n!==this._run)return;if(r){let e=this._card;if(!e)throw Error(`<wui-tour> moved with no card showing`);let t=jRt(e);if(t!==null&&await t,n!==this._run)return;this._show(r)}else if(t>0){let e=this._endDialogText(),t=e?await this._showEnd(e):`done`;if(n!==this._run)return;let r=await this._close(t===`next`?`next`:`finished`);if(t===`next`&&r&&e){let t=this.ownerDocument.defaultView;if(!t)throw Error(`<wui-tour> has no window to follow its next link in`);t.location.assign(e.nextHref)}}}finally{this._moving=!1}}_showEnd(e){this._unbindAdvance?.(),this._unbindAdvance=null;let t=this._layer,n=this._spot,r=this._card;if(!t||!n||!r)throw Error(`<wui-tour> ends a tour before its layer is built`);return wRt(this,{layer:t,spot:n,card:r},null,null),n.removeAttribute(S9),this._ending=new AbortController,this._seenMark=this._markSeen(`finished`),HRt(t,e,this._ending.signal)}_key(e){if(!this._layer||this._ending||e.altKey||e.ctrlKey||e.metaKey)return;let t=Qi(e.key,Zi(this));if(e.key===`Escape`)e.preventDefault(),e.stopPropagation(),this._close(`skipped`,`escape`);else if(t===`ArrowRight`||t===`ArrowLeft`){if(E9(e.composedPath?.()[0]??e.target))return;if(e.preventDefault(),t===`ArrowRight`)this._move(1);else{let e=this._current;if(!e)throw Error(`<wui-tour> moved back with no step showing`);e.index>this._firstIndex&&this._move(-1)}}else if(e.key===`Tab`&&!this._shadow){let t=this._current,n=this._card;if(!t||!n)throw Error(`<wui-tour> cycled focus with no step showing`);DRt(e,{card:n,active:this._active(),step:this._stepAt(t.index),target:t.target})}}_teardown(){if(!this._layer)return;this._onKey&&document.removeEventListener(`keydown`,this._onKey,!0),this._onFocusIn&&document.removeEventListener(`focusin`,this._onFocusIn);let e=!this._shadow||this._shadow.activeElement!==null||!document.activeElement||document.activeElement===document.body;this._unbindAdvance?.(),this._unbindAdvance=null,this._ending?.abort(),this._ending=null,this._seenMark=null;let t=this._outer;if(ra(t),!t)throw Error(`<wui-tour> has a layer with no host to remove`);MRt(t),document.documentElement.removeAttribute(vV),this._outer=null,this._shadow=null,this._layer=null,this._current=null;let n=this._returnFocus;this._returnFocus=null,e&&n?.isConnected&&(n instanceof HTMLElement||n instanceof SVGElement)&&n.focus()}async _close(e,t=null){let n=this._run,r=this._current,i=r?{index:r.index,position:this._progress.position(r.index),total:this._progress.total()}:w9,a=this._seenMark;this._teardown();let o=e===`next`?`finished`:e,s=!1;try{n===this._run&&await(a??this._markSeen(o)),s=n===this._run}finally{this._finish(e,i,t)}return s}_finish(e,t=w9,n=null){this._run++,this._running=!1,this.hasAttribute(`open`)&&this.removeAttribute(`open`),this.dispatchEvent(new CustomEvent(`wui-tour:close`,{bubbles:!0,detail:{reason:e,...t,via:n}}))}}})),Mzt=P({WuiTour:()=>O9}),Nzt=M((()=>{Rc(),jzt(),Ic(`wui-tour`,O9)})),Pzt=[`image`,`video`],Fzt=[`click`],Izt=()=>Promise.resolve().then(()=>(Nzt(),Mzt));function Lzt({ref:e,...t}){let n=Fc(`wui-tour`,Izt),{marker:r,props:i}=U(`AppTour`,t),{open:a,onClose:o,tourId:s,steps:c,seenStore:l,onBeforeStep:u,labels:d,endDialog:p=!0,endNextHref:m,className:g,...v}=i;G(`AppTour`,v);for(let e of c)W(`AppTour`,`steps[].mediaType`,e.mediaType,Pzt),W(`AppTour`,`steps[].advanceOn`,e.advanceOn,Fzt);let y=_(null),b=t=>{y.current=t,typeof e==`function`?e(t):e&&(e.current=t)};h(()=>{let e=y.current;e&&n&&(e.seenStore=l??null,e.onBeforeStep=u??null)},[l,u,n]),h(()=>{let e=y.current;e&&n&&(a?e.setAttribute(`open`,``):e.removeAttribute(`open`))},[a,n]);let S=_(o);return S.current=o,f(()=>{let e=y.current;if(!e)return;let t=e=>{if(!(e instanceof CustomEvent))throw Error(`AppTour: wui-tour:close must be a CustomEvent carrying its detail.`);let{reason:t,index:n,position:r,total:i}=e.detail;S.current?.(t,{index:n,position:r,total:i})};return e.addEventListener(`wui-tour:close`,t),()=>e.removeEventListener(`wui-tour:close`,t)},[]),x(`wui-tour`,{ref:b,"tour-id":s,"back-label":d?.back,"next-label":d?.next,"skip-label":d?.skip,"done-label":d?.done,"progress-label":d?.progress,"advance-label":d?.advance,"media-pause-label":d?.mediaPause,"media-play-label":d?.mediaPlay,"end-title":d?.endTitle,"end-message":d?.endMessage,"end-button":d?.endButton,"end-next-label":d?.endNextLabel,"end-next-href":m,"end-dialog":p===!1?`false`:void 0,class:g||void 0,...r,...v,children:c.map(e=>x(`wui-tour-step`,{target:e.target,title:e.title,media:e.media,"media-alt":e.mediaAlt,"media-poster":e.mediaPoster,"media-type":e.mediaType,"advance-on":e.advanceOn,"action-label":e.actionLabel,children:e.description},`${e.target??``}|${e.description}`))})}var k9={type:`none`},Rzt=(e,t)=>{switch(e){case`ArrowUp`:return t.side===`chosen`&&t.reorderable?{type:`nudge`,delta:-1}:k9;case`ArrowDown`:return t.side===`chosen`&&t.reorderable?{type:`nudge`,delta:1}:k9;case`Home`:return t.side===`chosen`&&t.reorderable?{type:`nudge`,delta:`first`}:k9;case`End`:return t.side===`chosen`&&t.reorderable?{type:`nudge`,delta:`last`}:k9;case`ArrowLeft`:return t.side===`chosen`?{type:`crossList`,to:`available`}:k9;case`ArrowRight`:return t.side===`available`?{type:`crossList`,to:`chosen`}:k9;case` `:case`Enter`:return{type:`drop`};case`Escape`:return{type:`cancelPickUp`};default:return k9}},zzt=e=>{switch(e){case`ArrowDown`:return{type:`move`,to:`next`};case`ArrowUp`:return{type:`move`,to:`prev`};case`Home`:return{type:`move`,to:`first`};case`End`:return{type:`move`,to:`last`};default:return null}},Bzt=(e,t)=>e.key===` `?t.rowDisabled?k9:{type:`tick`}:e.altKey===!0&&e.key===`ArrowRight`?t.side===`available`&&!t.rowDisabled?{type:`transfer`,direction:`toChosen`}:k9:e.altKey===!0&&e.key===`ArrowLeft`&&t.side===`chosen`&&!t.rowDisabled?{type:`transfer`,direction:`toAvailable`}:k9,Vzt=(e,t)=>ni(e)?t.rowDisabled?k9:{type:`transfer`,direction:t.side===`available`?`toChosen`:`toAvailable`}:e.key===` `?t.rowDisabled?k9:{type:`pickUp`}:k9;function Hzt(e,t){return e.key===`Enter`&&!ni(e)||(e.ctrlKey===!0||e.metaKey===!0)&&/^[a-z]$/i.test(e.key)?k9:t.pickedUp?Rzt(e.key,t):zzt(e.key)||(t.layout===`arrows`?Bzt(e,t):Vzt(e,t))}var A9=e=>[...new Set(e)],Uzt=(e,t,n)=>Math.min(Math.max(e,t),n),Wzt=e=>new Map(e.map(e=>[e.id,e]));function Gzt(e,t){let n=Wzt(e),r=new Set,i=[];for(let e of t){let t=n.get(e);t&&!r.has(e)&&(r.add(e),i.push(t))}return{available:e.filter(e=>!r.has(e.id)),chosen:i}}function Kzt(e,t,n,r){let i=Wzt(n),a=A9(e),o=new Set(a),s=[];for(let e of t){let t=i.get(e);t&&t.disabled!==!0&&!o.has(e)&&(o.add(e),s.push(e))}let c=r===void 0?a.length:Uzt(r,0,a.length);return[...a.slice(0,c),...s,...a.slice(c)]}function qzt(e,t){let n=new Set(t);return A9(e).filter(e=>!n.has(e))}function Jzt(e,t,n){let r=A9(e);if(!r.includes(t))return r;let i=r.filter(e=>e!==t);return i.splice(Uzt(n,0,i.length),0,t),i}function Yzt(e,t){let n=t.trim().toLowerCase();return n===``?[...e]:e.filter(e=>e.label.toLowerCase().includes(n)||(e.secondary??``).toLowerCase().includes(n))}function Xzt(e,t,n,r){return t===`chosen`?`${e} added to Chosen, position ${n} of ${r}.`:`${e} removed from Chosen.`}function Zzt({item:e,side:t,action:n,disabled:r}){return S(`span`,{className:`d-flex align-items-center justify-content-between w-100 gap-2`,children:[S(`span`,{children:[e.label,e.secondary?x(`span`,{className:`small text-secondary ms-1`,children:e.secondary}):null]}),x(Ks,{icon:t===`available`?`plus`:`x`,label:n.label(e),disabled:r||e.disabled,onClick:()=>n.onAct(e.id),"data-transfer-row-action":e.id})]})}function Qzt(e){let{side:t,title:n,items:r,totalCount:i,query:a,searchable:o,rowAction:s,reorder:c,disabled:l}=e,u=a.trim()!==``;return S(`div`,{className:`border rounded-3 bg-body d-flex flex-column`,style:{minWidth:0},children:[S(`div`,{className:`d-flex align-items-center justify-content-between px-3 py-2 border-bottom`,children:[S(`span`,{className:`fw-semibold`,children:[n,` `,x(cl,{tone:`neutral`,children:u?r.length:i})]}),x(nl,{variant:`ghost`,tone:`neutral`,size:`sm`,disabled:e.bulkDisabled||l,onClick:e.onBulk,children:e.bulkLabel})]}),o?x(`div`,{className:`p-2`,children:x(eJ,{ariaLabel:e.searchLabel,placeholder:e.searchPlaceholder,value:a,onChange:e.onQueryChange,disabled:l})}):null,S(`div`,{className:`px-2 pb-2`,style:{minHeight:230},children:[c?x(SLt,{ref:e.listRef,ariaLabel:e.listLabel,handle:!0,bordered:!1,disabled:l,items:r.map(e=>({id:e.id,label:e.label,disabled:e.disabled,content:x(Zzt,{item:e,side:t,action:s,disabled:l})})),onReorder:c.onReorder}):x(`section`,{ref:e.listRef,role:`list`,"aria-label":e.listLabel,className:`d-flex flex-column`,children:r.map(e=>x(`div`,{role:`listitem`,"data-id":e.id,"data-disabled":e.disabled?``:void 0,className:`d-flex align-items-center px-1 py-2 border-bottom`,children:x(Zzt,{item:e,side:t,action:s,disabled:l})},e.id))}),r.length===0?u?x(`div`,{className:`small text-secondary p-3 text-center`,children:e.noMatchText}):x(il,{size:`sm`,title:e.emptyTitle,description:e.emptyText}):null]}),e.hint===null?null:x(`div`,{className:`small text-secondary px-3 pb-2`,children:e.hint})]})}var $zt=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]);function eBt({ref:e,...t}){let{marker:n,props:r}=U(`AppTransferList`,t),i=Vs(`transferList`,Bme),{items:a,value:o,defaultValue:s=[],onChange:c,name:l,label:u,helperText:d,error:m,disabled:h=!1,searchable:g=!0,reorderable:y=!0,availableTitle:b=i.availableTitle,chosenTitle:C=i.chosenTitle,addAllLabel:w=i.addAllLabel,removeAllLabel:T=i.removeAllLabel,addLabel:E=i.addLabel,removeLabel:D=i.removeLabel,searchLabel:O=i.searchLabel,searchPlaceholder:k=i.searchPlaceholder,noMatchText:A=i.noMatchText,emptyAvailableTitle:j=i.emptyAvailableTitle,emptyAvailableText:M=i.emptyAvailableText,emptyChosenTitle:N=i.emptyChosenTitle,emptyChosenText:P=i.emptyChosenText,dragHintText:F=i.dragHintText,orderHintText:I=i.orderHintText,id:L,className:R=``,ariaLabel:z,...B}=r;G(`AppTransferList`,B);let V=p(),H=`${V}-label`,ee=m?`${V}-error`:void 0,te=d?`${V}-hint`:void 0,ne=[ee,te].filter(Boolean).join(` `)||void 0,re=o!==void 0,[ie,ae]=v(s),oe=Gzt(a,o??ie),se=oe.chosen.map(e=>e.id),[ce,le]=v(``),[ue,de]=v(``),[W,fe]=v(``),pe=_(!1),me=_(null),he=_(null),ge=_(null);f(()=>{let e=me.current;if(!e)return;me.current=null;let t=(e.side===`chosen`?ge.current:he.current)?.querySelectorAll(`[data-transfer-row-action]`)??[];Array.from(t).find(t=>t.dataset.transferRowAction===e.id)?.focus()});let _e=e=>!$zt(e,se)&&(re||ae(e),c?.(e),!0),ve=(e,t,n)=>{let r=t.filter(e=>a.some(t=>t.id===e&&t.disabled!==!0));if(r.length===0)return;let i=e===`chosen`?Kzt(se,r,a,n):qzt(se,r);if(!_e(i))return;let o=a.find(e=>e.id===r[r.length-1]);o&&fe(Xzt(o.label,e,i.indexOf(o.id)+1,i.length))},ye=(e,t)=>{if(t.to!==ge.current)return;let n=Jzt(se,t.id,t.toIndex),r=a.find(e=>e.id===t.id);_e(n)&&r&&fe(Xzt(r.label,`chosen`,n.indexOf(r.id)+1,n.length))},be=e=>e.nativeEvent.isComposing||e.keyCode===229,xe=(e,t)=>{if(h||!(t.target instanceof HTMLElement))return null;let n=t.target.closest(`[data-id]`)?.dataset.id;if(!n)return null;let r=getComputedStyle(t.currentTarget).direction===`rtl`;return{rowId:n,action:Hzt({key:r&&t.key===`ArrowLeft`?`ArrowRight`:r&&t.key===`ArrowRight`?`ArrowLeft`:t.key,shiftKey:t.shiftKey,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,isComposing:be(t)},{side:e,layout:`rows`,pickedUp:pe.current,reorderable:y,rowDisabled:a.some(e=>e.id===n&&e.disabled===!0)})}},Se=e=>t=>{let n=xe(e,t);if(!n)return;let{rowId:r,action:i}=n;i.type===`drop`||i.type===`cancelPickUp`?(pe.current=!1,i.type===`drop`&&t.preventDefault()):i.type===`crossList`&&(t.preventDefault(),t.stopPropagation(),pe.current=!1,t.target instanceof HTMLElement&&t.target.blur(),me.current={id:r,side:i.to},ve(i.to,[r]))},Ce=e=>t=>{let n=xe(e,t);if(!n)return;let{rowId:r,action:i}=n;if(i.type===`transfer`){t.preventDefault();let e=i.direction===`toChosen`?`chosen`:`available`;me.current={id:r,side:e},ve(e,[r])}else i.type===`pickUp`&&(t.preventDefault(),pe.current=!0)},we=e=>{let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||(pe.current=!1)},Te=e=>{let t=e===`chosen`,n=t?ue:ce,r=Yzt(t?oe.chosen:oe.available,n),i=r.filter(e=>e.disabled!==!0).map(e=>e.id),a=t?C:b,o=t?`available`:`chosen`;return{side:e,title:a,items:r,totalCount:t?oe.chosen.length:oe.available.length,query:n,onQueryChange:t?de:le,searchable:g,searchLabel:K(O,{title:a}),searchPlaceholder:k,noMatchText:K(A,{query:n}),bulkLabel:t?T:w,onBulk:()=>ve(o,i),bulkDisabled:h||i.length===0,emptyTitle:t?N:j,emptyText:t?P:M,hint:y?t?I:F:null,rowAction:{label:e=>K(t?D:E,{name:e.label}),onAct:e=>{me.current={id:e,side:o},ve(o,[e])}},reorder:t&&y?{onReorder:ye}:null,listRef:t?ge:he,listLabel:a,disabled:h}};return S(`div`,{id:L,ref:e,className:`wui-transfer-list d-flex flex-column gap-2${R?` ${R}`:``}`,role:`group`,"aria-labelledby":u?H:void 0,"aria-label":u?void 0:z,"aria-describedby":ne,"aria-disabled":h||void 0,...n,...B,children:[u?x(`div`,{id:H,className:`form-label mb-0`,children:u}):null,S(`div`,{className:`wui-transfer-list-panels`,children:[x(`div`,{onKeyDownCapture:Se(`available`),onKeyDown:Ce(`available`),onBlur:we,children:x(Qzt,{...Te(`available`)})}),x(`div`,{onKeyDownCapture:Se(`chosen`),onKeyDown:Ce(`chosen`),onBlur:we,children:x(Qzt,{...Te(`chosen`)})})]}),l?se.map(e=>x(`input`,{type:`hidden`,name:l,value:e},e)):null,x(Ac,{error:m,hint:d,errorId:ee,hintId:te}),x(`div`,{className:`small text-secondary mt-2`,role:`status`,children:W})]})}function tBt(e,t){switch(e.key){case`ArrowDown`:case`ArrowUp`:case`Enter`:case` `:return CBt;case`Backspace`:return t.searchEmpty&&t.mode===`multiple`?{type:`removeLastChip`}:P9;default:return P9}}function nBt(e,t){let n=t.row,r=n!==null&&!n.hasChildren,i=n!==null&&!n.disabled;switch(e.key){case`ArrowDown`:return{type:`move`,to:`next`};case`ArrowUp`:return{type:`move`,to:`prev`};case`Home`:return{type:`move`,to:`first`};case`End`:return{type:`move`,to:`last`};case`ArrowRight`:return n===null||!n.hasChildren?P9:t.expanded?{type:`focusFirstChild`}:{type:`expand`};case`ArrowLeft`:return n?.hasChildren===!0&&t.expanded?{type:`collapse`}:t.hasParent?{type:`focusParent`}:P9;case` `:return i?t.mode===`multiple`?{type:`toggle`}:r?{type:`choose`}:P9:P9;case`Enter`:return i?t.mode===`multiple`?{type:`toggle`}:r?{type:`choose`}:P9:P9;case`Escape`:return{type:`close`};default:{let t=e.ctrlKey!==!0&&e.metaKey!==!0&&e.altKey!==!0;return e.key.length===1&&t?{type:`typeahead`,char:e.key}:P9}}}function rBt(e,t){return ti(e)?P9:t.open?nBt(e,t):tBt(e,t)}function iBt(e){e.replaceChildren(),e.classList.add(`wui-tree-picker`);let t=q(`div`,{class:`search-wrap`},Zr(`search`,{size:18,className:`search-icon`})),n=q(`input`,{class:`input search-input wui-tree-picker-search`,type:`search`,"data-wui-action":`search`,autocomplete:`off`});t.append(n);let r=q(`ul`,{class:`wui-tree-picker-tree`,role:`tree`}),i=q(`p`,{class:`wui-tree-picker-nomatch`,role:`presentation`});i.hidden=!0;let a=q(`div`,{class:`wui-tree-picker-pane`});a.append(t,r,i);let o=q(`span`,{class:`wui-tree-picker-title`}),s=q(`span`,{class:`badge`}),c=q(`button`,{class:Pz(`neutral`,`ghost`,`sm`),type:`button`,"data-wui-action":`clear`}),l=q(`div`,{class:`wui-tree-picker-rail-head`}),u=q(`span`,{class:`d-inline-flex align-items-center gap-2`});u.append(o,s),l.append(u,c);let d=q(`div`,{class:`wui-tree-picker-rail-body`}),f=q(`div`,{class:`visually-hidden`,role:`status`,"aria-live":`polite`}),p=q(`div`,{class:`wui-tree-picker-rail`});p.append(l,d,f);let m=q(`div`,{class:`wui-tree-picker-surface`});return m.append(a,p),e.append(m),{surface:m,search:n,tree:r,noMatch:i,title:o,count:s,clear:c,body:d,status:f}}function aBt(e,t){let n=t.selection===`multiple`,r=new Map,i=[];for(let e of t.rows){let a=t.checkOf(e),o=q(`li`,{class:`wui-tree-picker-item`,role:`treeitem`,tabindex:e.id===t.focusId?0:-1,"aria-level":e.level+1,"aria-labelledby":`${t.uid}-${e.index}`,"data-id":e.id}),s=t.expanded.has(e.id);e.hasChildren&&o.setAttribute(`aria-expanded`,String(s)),(e.disabled||t.disabled)&&o.setAttribute(`aria-disabled`,`true`),n?o.setAttribute(`aria-checked`,a===`mixed`?`mixed`:String(a===`checked`)):o.setAttribute(`aria-selected`,String(!e.hasChildren&&a===`checked`));let c=q(`div`,{class:`wui-tree-picker-row`,role:`presentation`});if(c.style.setProperty(`--wui-tree-picker-level`,String(e.level)),e.hasChildren){let t=q(`button`,{class:`wui-tree-picker-toggle`,type:`button`,tabindex:-1,"aria-hidden":`true`,"data-wui-action":`expand`,"data-id":e.id},Zr(`chevron-right`,{size:16}));c.append(t)}else c.append(q(`span`,{class:`wui-tree-picker-toggle`,"aria-hidden":`true`}));if(n){let n=q(`input`,{class:`form-check-input wui-tree-picker-check`,type:`checkbox`,tabindex:-1,"aria-hidden":`true`,"data-wui-action":`pick`,"data-id":e.id});n.checked=a===`checked`,n.indeterminate=a===`mixed`,n.disabled=e.disabled||t.disabled,c.append(n)}if(e.icon){let t=q(`span`,{class:`wui-tree-icon`,"aria-hidden":`true`},Zr(e.icon,{size:16}));c.append(t)}let l=q(`span`,{class:`wui-tree-picker-label`,id:`${t.uid}-${e.index}`,"data-wui-action":`pick`,"data-id":e.id});if(l.textContent=e.label,c.append(l),o.append(c),e.hasChildren&&s){let t=q(`ul`,{class:`wui-tree-picker-group`,role:`group`});o.append(t),r.set(e.id,t)}let u=e.parentId===null?void 0:r.get(e.parentId);u?u.append(o):i.push(o)}e.tree.replaceChildren(...i),n?e.tree.setAttribute(`aria-multiselectable`,`true`):e.tree.removeAttribute(`aria-multiselectable`)}function oBt(e,t){let n=q(`li`,{class:`wui-tree-picker-chosen-row`}),r=q(`span`,{class:`wui-tree-picker-chosen-label`});r.textContent=t.label;let i=q(`button`,{class:`btn btn-link btn-sm wui-tree-picker-remove`,type:`button`,"aria-label":K(e.text.removeLabel,{name:t.label}),"data-wui-action":`remove`,"data-id":t.id},Zr(`x`,{size:14}));return i.disabled=e.disabled,n.append(r,i),n}function sBt(e,t){let{text:n}=t;if(e.title.textContent=n.chosenTitle,e.count.textContent=String(t.chosen.length),e.clear.textContent=n.clearAllLabel,e.clear.disabled=t.disabled||t.chosen.length===0,t.chosen.length===0){let t=q(`div`,{class:`wui-tree-picker-empty`}),r=q(`div`,{class:`fw-semibold`});r.textContent=n.emptyTitle;let i=q(`div`,{class:`small text-body-secondary`});i.textContent=n.emptyText,t.append(r,i),e.body.replaceChildren(t);return}let r=new Map;for(let e of t.chosen){let t=e.group??``,n=r.get(t)??{label:e.group,items:[]};n.items.push(e),r.set(t,n)}let i=[];for(let e of r.values()){let n=q(`div`,{class:`wui-tree-picker-chosen-group`});if(e.label!==null){let t=q(`div`,{class:`small text-body-secondary`});t.textContent=e.label,n.append(t)}let r=q(`ul`,{class:`list-unstyled m-0`});r.append(...e.items.map(e=>oBt(t,e))),n.append(r),i.push(n)}e.body.replaceChildren(...i)}function cBt(e){let t=document.activeElement;if(t===e.clear)return`clear`;if(!(t instanceof HTMLButtonElement))return null;let n=[...e.body.querySelectorAll(`[data-wui-action='remove']`)].indexOf(t);return n===-1?null:n}function lBt(e,t){if(t===null)return;let n=e.body.querySelectorAll(`[data-wui-action='remove']`),r=typeof t==`number`?n[Math.min(t,n.length-1)]:void 0;r?r.focus():e.search.focus()}function uBt(e,t){let n=F9.get(e)??iBt(e);F9.set(e,n);let{text:r}=t;n.surface.classList.toggle(`wui-tree-picker-invalid`,t.invalid),n.search.setAttribute(`aria-label`,r.searchLabel),n.search.placeholder=r.searchPlaceholder,n.search.disabled=t.disabled,n.search.value!==t.query&&(n.search.value=t.query),aBt(n,t);let i=t.query.trim()!==``;n.noMatch.hidden=!(i&&t.rows.length===0),n.noMatch.textContent=n.noMatch.hidden?``:K(r.noMatchText,{query:t.query.trim()});let a=cBt(n);sBt(n,t),lBt(n,a),n.status.textContent=t.status}function dBt(e,t,n){let r=[];for(let i of e){if(t.has(i.id))throw Error(`Duplicate tree node id "${i.id}".`);t.add(i.id);let e=wBt(i)?i.disabled===!0?[]:[i.id]:dBt(i.children??[],t,n);n.set(i.id,e),r.push(...e)}return r}function fBt(e,t,n){let r=[],i=(e,a,o)=>{for(let s of e)r.push({id:s.id,label:s.label,icon:s.icon||null,parentId:a,level:o,index:r.length,hasChildren:I9(s)||s.hasChildren===!0,disabled:s.disabled===!0,leafIds:t.get(s.id)??[]}),I9(s)&&n(s.id)&&i(s.children??[],s.id,o+1)};return i(e,null,0),{rows:r,byId:new Map(r.map(e=>[e.id,e]))}}function pBt(e){let t=new Map;return dBt(e,new Set,t),{leavesById:t}}function mBt(e,t){let{leavesById:n}=pBt(e);return fBt(e,n,e=>t.has(e))}function j9(e){let{leavesById:t}=pBt(e);return fBt(e,t,()=>!0)}function hBt(e,t){if(e.leafIds.length===0)return`unchecked`;let n=0;for(let r of e.leafIds)t.has(r)&&(n+=1);return n===0?`unchecked`:n===e.leafIds.length?`checked`:`mixed`}function gBt(e,t){let n=e.byId.get(t);if(n===void 0)throw Error(`Unknown tree node id "${t}".`);return n}function _Bt(e,t,n,r){let i=gBt(j9(e),r),a=[...n];if(t===`single`)return i.hasChildren||i.disabled?a:[r];if(!i.hasChildren)return i.disabled?a:a.includes(r)?a.filter(e=>e!==r):[...a,r];if(i.leafIds.length===0)return a;if(hBt(i,new Set(a))===`checked`){let e=new Set(i.leafIds);return a.filter(t=>!e.has(t))}let o=new Set(a);return[...a,...i.leafIds.filter(e=>!o.has(e))]}function vBt(e,t){let n=[],r=new Set;for(let i of t){let t=e.byId.get(i);t===void 0||t.hasChildren||r.has(i)||(r.add(i),n.push(t))}return n}function yBt(e,t){return vBt(j9(e),t).map(e=>e.id)}function bBt(){return[]}function M9(e,t){return e.filter(e=>e!==t)}function xBt(e,t){return e===`single`?t[0]??``:[...t]}function N9(e,t){let n=t.trim().toLowerCase();if(n===``)return{nodes:[...e],expanded:new Set};let r=new Set,i=e=>{if(I9(e)){r.add(e.id);for(let t of e.children??[])i(t)}},a=e=>{if(e.label.toLowerCase().includes(n))return i(e),e;let t=(e.children??[]).flatMap(e=>{let t=a(e);return t===null?[]:[t]});return t.length===0?null:(r.add(e.id),{...e,children:t})};return{nodes:e.flatMap(e=>{let t=a(e);return t===null?[]:[t]}),expanded:r}}function SBt(e){return Array.isArray(e)}var P9,CBt,F9,I9,wBt,TBt,L9,EBt,DBt,R9,OBt=M((()=>{Za(),Rc(),rH(),qr(),ri(),$i(),xn(),bpe(),Lz(),En(),ei(),P9={type:`none`},CBt={type:`open`},F9=new WeakMap,I9=e=>(e.children?.length??0)>0,wBt=e=>!I9(e)&&e.hasChildren!==!0,TBt=[`nodes`,`values`,`selection`,`name`],L9={chosenTitle:`chosen-title`,clearAllLabel:`clear-all-label`,emptyTitle:`empty-title`,emptyText:`empty-text`,noMatchText:`no-match-text`,removeLabel:`remove-label`,searchLabel:`search-label`,searchPlaceholder:`search-placeholder`,selectedText:`selected-text`},EBt=600,DBt=0,R9=class extends Lc{_uid;_nodes;_hasNodes;_valuesSet;_pending;_values;_expanded;_query;_focusId;_rows;_ready;_typed;_unsubscribe;_onClick;_onInput;_onKeyDown;_onFocusIn;static get observedAttributes(){return[`selection`,`name`,`disabled`,`invalid`,`aria-label`,`aria-labelledby`,...Object.values(L9)]}constructor(){super(),this._uid=`wui-tree-picker-${++DBt}`,this._nodes=[],this._hasNodes=!1,this._valuesSet=!1,this._pending=null,this._values=[],this._expanded=new Set,this._query=``,this._focusId=null,this._rows=[],this._ready=!1,this._typed={text:``,at:0},this._unsubscribe=null,this._onClick=e=>this._handleClick(e),this._onInput=e=>this._handleInput(e),this._onKeyDown=e=>this._handleKeyDown(e),this._onFocusIn=e=>{let t=this._rowIdFrom(e.target);t!==null&&t!==this._focusId&&this._setRoving(t)}}connectedCallback(){let e=new Map;for(let t of TBt)Kr(this,t)&&(e.set(t,Reflect.get(this,t)),Reflect.deleteProperty(this,t));if(!this._ready){this._ready=!0;let e=this._readScript();e&&this._adopt(e)}for(let[t,n]of e)Reflect.set(this,t,n);!this._valuesSet&&this._pending===null&&this.hasAttribute(`values`)&&(this._pending=this._readValuesAttribute(),this._hasNodes&&this._adopt(this._nodes)),this.addEventListener(`click`,this._onClick),this.addEventListener(`input`,this._onInput),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`focusin`,this._onFocusIn),this._unsubscribe=mn(()=>this._render()),this._render(),this._syncForm()}disconnectedCallback(){this.removeEventListener(`click`,this._onClick),this.removeEventListener(`input`,this._onInput),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`focusin`,this._onFocusIn),this._unsubscribe?.(),this._unsubscribe=null}attributeChangedCallback(e){e===`selection`&&this._normalise(),this._ready&&this.isConnected&&(this._render(),(e===`selection`||e===`name`)&&this._syncForm())}get nodes(){return[...this._nodes]}set nodes(e){this._adopt(e??[]),this._ready&&this.isConnected&&(this._render(),this._syncForm())}get values(){return[...this._values]}set values(e){this._valuesSet=!0,this._pending=null,this._values=(e??[]).map(String),this._normalise(),this._ready&&this.isConnected&&(this._render(),this._syncForm())}get selection(){return this.getAttribute(`selection`)===`single`?`single`:`multiple`}set selection(e){this.setAttribute(`selection`,String(e))}get name(){return this.getAttribute(`name`)}set name(e){e==null?this.removeAttribute(`name`):this.setAttribute(`name`,String(e))}_readScript(){let e=this.querySelector(`:scope > script[type='application/json']`);if(!e)return null;try{let t=JSON.parse(e.textContent??``);return SBt(t)?t:(Xa(`[@webority/ui-elements] <wui-tree-picker> JSON nodes must be an array.`),null)}catch(e){return Xa(`[@webority/ui-elements] <wui-tree-picker> could not read its JSON nodes:`,e instanceof Error?e.message:void 0),null}}_adopt(e){if(!SBt(e))throw Error(`<wui-tree-picker> nodes must be an array.`);let t=j9(e),n=this._pending!==null&&!this._valuesSet?this._checkInitial(t.byId,this._pending):null;this._nodes=e,this._hasNodes=!0,n!==null&&(this._values=n,this._pending=null),this._normalise();let r=new Set(j9(e).rows.map(e=>e.id));for(let e of[...this._expanded])r.has(e)||this._expanded.delete(e);this._focusId!==null&&!r.has(this._focusId)&&(this._focusId=null)}_readValuesAttribute(){let e=this.getAttribute(`values`)??``,t;try{t=JSON.parse(e)}catch(t){throw Error(`<wui-tree-picker> values must be a JSON array of leaf ids, got ${e}.`,{cause:t})}if(!Array.isArray(t)||!t.every(e=>typeof e==`string`))throw Error(`<wui-tree-picker> values must be a JSON array of leaf ids, got ${e}.`);if(this.selection===`single`&&t.length>1)throw Error(`<wui-tree-picker> single selection takes one value, got ${t.length}.`);return t}_checkInitial(e,t){for(let n of t){let t=e.get(n);if(t===void 0||t.hasChildren)throw Error(`<wui-tree-picker> values id "${n}" is not a leaf of the tree.`)}return[...new Set(t)]}_normalise(){if(!this._hasNodes)return;let e=yBt(this._nodes,this._values);this._values=this.selection===`single`?e.slice(0,1):e}_text(){let e=pn(`treePicker`,ype),t=t=>this.getAttribute(L9[t])??e[t];return{chosenTitle:t(`chosenTitle`),clearAllLabel:t(`clearAllLabel`),emptyTitle:t(`emptyTitle`),emptyText:t(`emptyText`),noMatchText:t(`noMatchText`),removeLabel:t(`removeLabel`),searchLabel:t(`searchLabel`),searchPlaceholder:t(`searchPlaceholder`),selectedText:t(`selectedText`)}}_visible(){let e=N9(this._nodes,this._query),t=new Set(this._expanded);for(let n of e.expanded)t.add(n);return mBt(e.nodes,t).rows}_isOpen(e){return this._expanded.has(e)?!0:this._query.trim()!==``&&N9(this._nodes,this._query).expanded.has(e)}_render(){if(!this._ready)return;let e=document.activeElement,t=e instanceof HTMLElement&&this.contains(e)&&e.getAttribute(`role`)===`treeitem`,n=N9(this._nodes,this._query),r=new Set(this._expanded);for(let e of n.expanded)r.add(e);let i=mBt(n.nodes,r).rows;this._rows=i,i.some(e=>e.id===this._focusId)||(this._focusId=i[0]?.id??null);let a=new Set(this._values),o=new Map(j9(this._nodes).rows.map(e=>[e.id,e])),s=this._values.flatMap(e=>{let t=o.get(e);if(t===void 0)return[];let n=t.parentId===null?void 0:o.get(t.parentId);return[{id:e,label:t.label,group:n?.label??null}]}),c=this._text();uBt(this,{rows:i,checkOf:e=>hBt(o.get(e.id)??e,a),focusId:this._focusId,expanded:r,query:this._query,chosen:s,selection:this.selection,disabled:this.hasAttribute(`disabled`),invalid:this.hasAttribute(`invalid`),status:K(c.selectedText,{n:s.length}),text:c,uid:this._uid});let l=this.querySelector(`[role='tree']`),u=this.getAttribute(`aria-label`),d=u?null:this.getAttribute(`aria-labelledby`);u?l?.setAttribute(`aria-label`,u):l?.removeAttribute(`aria-label`),d?l?.setAttribute(`aria-labelledby`,d):l?.removeAttribute(`aria-labelledby`),t&&this._focusRow(this._focusId)}_syncForm(){tH(this,this._values)}_emit(){this.dispatchEvent(new CustomEvent(`wui-tree-picker:change`,{detail:{values:[...this._values],value:xBt(this.selection,this._values)},bubbles:!0,composed:!0}))}_commit(e){let t=yBt(this._nodes,e);t.length===this._values.length&&t.every((e,t)=>e===this._values[t])||(this._values=t,this._render(),this._syncForm(),this._emit())}_rowItems(){return[...this.querySelectorAll(`[role='treeitem']`)]}_rowEl(e){return e===null?void 0:this._rowItems().find(t=>t.dataset.id===e)}_rowIdFrom(e){return!(e instanceof HTMLElement)||e.getAttribute(`role`)!==`treeitem`?null:e.dataset.id??null}_setRoving(e){let t=this._rowEl(this._focusId);t&&(t.tabIndex=-1),this._focusId=e;let n=this._rowEl(e);n&&(n.tabIndex=0)}_focusRow(e){e!==null&&(this._setRoving(e),this._rowEl(e)?.focus())}_pick(e){let t=this._rows.find(t=>t.id===e);t!==void 0&&(this._setRoving(e),this.selection===`single`&&t.hasChildren?this._toggleOpen(e):(this._commit(_Bt(this._nodes,this.selection,this._values,e)),this._focusRow(e)))}_toggleOpen(e){this._expanded.has(e)?this._expanded.delete(e):this._expanded.add(e),this._render()}_handleClick(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`[data-wui-action]`);if(!n||!this.contains(n))return;let r=n.dataset.id??``;switch(n.dataset.wuiAction){case`expand`:this._setRoving(r),this._toggleOpen(r),this._focusRow(r);break;case`pick`:this._pick(r);break;case`remove`:n.focus(),this._commit(M9(this._values,r));break;case`clear`:n.focus(),this._commit(bBt())}}_handleInput(e){if(this.hasAttribute(`disabled`))return;let t=e.target;t instanceof HTMLInputElement&&t.dataset.wuiAction===`search`&&(this._query=t.value,this._render())}_handleKeyDown(e){if(this.hasAttribute(`disabled`))return;let t=e.target;if(!(t instanceof HTMLElement))return;let n={key:Qi(e.key,Zi(this)),shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,isComposing:ti(e)};if(t instanceof HTMLInputElement&&t.dataset.wuiAction===`search`){this._searchKey(e,n);return}let r=this._rowIdFrom(t);if(r===null)return;let i=this._rows.find(e=>e.id===r);if(i===void 0)return;let a=rBt(n,{mode:this.selection,open:!0,searchEmpty:this._query===``,row:i,expanded:i.hasChildren&&this._isOpen(r),hasParent:i.parentId!==null});if(a.type!==`none`&&a.type!==`open`&&a.type!==`close`)switch(e.preventDefault(),a.type){case`move`:this._move(i,a.to);break;case`expand`:this._expanded.add(r),this._render();break;case`collapse`:this._expanded.delete(r),this._render();break;case`focusParent`:this._focusRow(i.parentId);break;case`focusFirstChild`:{let e=this._rows[i.index+1];e?.parentId===r&&this._focusRow(e.id);break}case`toggle`:case`choose`:this._pick(r);break;case`removeLastChip`:{let e=this._values[this._values.length-1];e!==void 0&&this._commit(M9(this._values,e));break}case`typeahead`:this._typeahead(i,a.char)}}_searchKey(e,t){let n=rBt(t,{mode:this.selection,open:!1,searchEmpty:this._query===``,row:null,expanded:!1,hasParent:!1});if(n.type===`removeLastChip`){let t=this._values[this._values.length-1];if(t===void 0)return;e.preventDefault(),this._commit(M9(this._values,t))}else n.type===`open`&&(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),this._focusRow(this._focusId??this._rows[0]?.id??null))}_move(e,t){let n=this._rows,r=t===`first`?n[0]:t===`last`?n[n.length-1]:n[e.index+(t===`next`?1:-1)];r&&this._focusRow(r.id)}_typeahead(e,t){let n=Date.now(),r=n-this._typed.at>EBt?t:this._typed.text+t;this._typed={text:r,at:n};let i=r.toLowerCase(),a=this._rows,o=r.length===1?e.index+1:e.index;for(let e=0;e<a.length;e++){let t=a[(o+e)%a.length];if(t?.label.toLowerCase().startsWith(i)){this._focusRow(t.id);return}}}}})),kBt=P({WuiTreePicker:()=>R9}),ABt=M((()=>{Rc(),OBt(),Ic(`wui-tree-picker`,R9)})),jBt=[`single`,`multiple`],MBt=()=>Promise.resolve().then(()=>(ABt(),kBt));function NBt(e){return e instanceof HTMLElement&&`values`in e&&`nodes`in e}function PBt(e,t){e.values=Array.isArray(t)?t:t===``?[]:[t]}function FBt({ref:e,...t}){let n=Fc(`wui-tree-picker`,MBt),{marker:r,props:i}=U(`AppTreePicker`,t),{nodes:a,selection:o=`multiple`,value:s,defaultValue:c,onChange:l,name:u,label:d,helperText:m,error:h,required:g,disabled:_,id:v,ariaLabel:y,className:b,chosenTitle:C,clearAllLabel:w,emptyTitle:T,emptyText:E,noMatchText:D,removeLabel:O,searchLabel:k,searchPlaceholder:A,selectedText:j,...M}=i;G(`AppTreePicker`,M),W(`AppTreePicker`,`selection`,o,jBt);let N=p(),P=v||N,F=d?`${P}-label`:void 0,I=h?`${P}-error`:void 0,L=m?`${P}-hint`:void 0,{setRef:R,innerRef:z}=pV({ready:n,ref:e,value:s,defaultValue:c,writeValue:PBt,on:{"wui-tree-picker:change":e=>l?.(e.detail.value,{ids:e.detail.values})}});f(()=>{let e=z.current;n&&NBt(e)&&a!==void 0&&(e.nodes=a)},[a,z,n]);let B=x(`wui-tree-picker`,{ref:R,id:P,selection:o,name:u||void 0,"aria-label":y||void 0,"aria-labelledby":y?void 0:F,"aria-describedby":I||L||void 0,invalid:h?``:void 0,disabled:_?``:void 0,"chosen-title":C||void 0,"clear-all-label":w||void 0,"empty-title":T||void 0,"empty-text":E||void 0,"no-match-text":D||void 0,"remove-label":O||void 0,"search-label":k||void 0,"search-placeholder":A||void 0,"selected-text":j||void 0,className:b||void 0,...M});return S(`div`,{...r,className:`field`,children:[d&&S(`label`,{className:`label`,id:F,htmlFor:P,children:[d,g&&x(Uc,{})]}),B,x(Ac,{error:h,hint:m,errorId:I,hintId:L})]})}function IBt(e){for(let t=e;t&&t!==document.body&&t!==document.documentElement;t=t.parentElement)if(/^(auto|scroll|overlay)$/.test(getComputedStyle(t).overflowY))return t;return null}var z9,LBt,RBt,zBt,BBt,VBt,HBt,UBt,WBt,GBt,B9,KBt=M((()=>{Za(),En(),Rc(),rH(),qr(),ei(),GB(),$i(),a7e(),RB(),xn(),vpe(),z9=()=>pn(`tree`,_pe),LBt=[`none`,`single`,`multiple`],RBt=e=>LBt.some(t=>t===e),zBt=300,BBt=8,VBt=300,HBt=`parentId`,UBt=`:scope > input[data-wui-mirror]`,WBt=[`nodes`,`selection`,`selected`,`values`,`loadChildren`,`loadUrl`,`name`],GBt=0,B9=class extends Lc{_uid;_seq;_roots;_byId;_prev;_staged;_els;_checked;_selected;_focusId;_loader;_list;_live;_ready;_flat;_win;_rowH;_rowMeasured;_box;_unbind;_frame;_nav;_onKeyDown;_onClick;_onFocusIn;static get observedAttributes(){return[`selection`,`selected`,`name`,`aria-label`,`loading-text`,`error-text`]}constructor(){super(),this._uid=`wui-tree-${++GBt}`,this._seq=0,this._roots=[],this._byId=new Map,this._prev=null,this._staged=null,this._els=new Map,this._checked=new Set,this._selected=null,this._focusId=null,this._loader=null,this._list=null,this._live=null,this._ready=!1,this._flat=null,this._win=null,this._rowH=36,this._rowMeasured=!1,this._box=null,this._unbind=null,this._frame=0,this._nav=G6e({getVisibleOptions:()=>[...this._els.values()].map(e=>e.row),getActive:()=>this._visible().findIndex(e=>e.id===this._focusId),setActive:e=>this._focusNode(this._visible()[e]),getCount:()=>this._visible().length,getOptionAt:e=>this._els.get(this._visible()[e]?.id??``)?.row,findByPrefix:e=>this._visible().findIndex(t=>t.label.toLowerCase().startsWith(e)),onEnter:()=>{let e=this._focusId===null?void 0:this._byId.get(this._focusId);e&&this._activate(e)}}),this._onKeyDown=e=>this._handleKeyDown(e),this._onClick=e=>this._handleClick(e),this._onFocusIn=e=>{if(e.target===this._list){this._focusNode(this._focusId===null?void 0:this._byId.get(this._focusId));return}let t=this._nodeFrom(e.target);t&&t.id!==this._focusId&&this._setRoving(t)}}connectedCallback(){let e=new Map;for(let t of WBt)Kr(this,t)&&(e.set(t,Reflect.get(this,t)),Reflect.deleteProperty(this,t));if(!this._ready){this._ready=!0;let e=this._readScript();this.replaceChildren(),this._list=q(`ul`,{class:`wui-tree`}),this._list.setAttribute(`role`,`tree`),this._live=q(`div`,{class:`visually-hidden`,role:`status`,"aria-live":`polite`}),this.append(this._list,this._live),e&&this._adoptAll(e)}for(let[t,n]of e)Reflect.set(this,t,n);this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`click`,this._onClick),this.addEventListener(`focusin`,this._onFocusIn),this._render(),this._loadOpenNodes()}disconnectedCallback(){this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`focusin`,this._onFocusIn),this._unbindWindow(),this._nav.clearTypeahead()}attributeChangedCallback(e,t,n){e===`selected`&&(this._selected=n),this._ready&&this.isConnected&&this._render()}get nodes(){return this._roots.map(e=>e.raw)}set nodes(e){this._adoptAll(e??[]),this._render(),this._loadOpenNodes()}get selection(){let e=this.getAttribute(`selection`);return RBt(e)?e:`none`}set selection(e){this.setAttribute(`selection`,String(e))}get selected(){return this._selected}set selected(e){this._selected=e==null?null:String(e),this._render()}get values(){let e=[],t=n=>{for(let r of n)this._state(r)===`checked`&&e.push(r.id),r.children&&t(r.children)};return t(this._roots),[...e,...[...this._checked].filter(e=>!this._byId.has(e))]}set values(e){this._checked.clear();for(let t of e??[]){let e=this._byId.get(String(t));e?this._setChecked(e,!0):this._checked.add(String(t))}this._render()}get loadChildren(){return this._loader}set loadChildren(e){this._loader=typeof e==`function`?e:null}get loadUrl(){return this.getAttribute(`load-url`)}set loadUrl(e){e==null?this.removeAttribute(`load-url`):this.setAttribute(`load-url`,String(e))}get name(){return this.getAttribute(`name`)}set name(e){e==null?this.removeAttribute(`name`):this.setAttribute(`name`,String(e))}get loadingText(){return this.getAttribute(`loading-text`)??z9().loadingText}set loadingText(e){this.setAttribute(`loading-text`,String(e??``))}get errorText(){return this.getAttribute(`error-text`)??z9().errorText}set errorText(e){this.setAttribute(`error-text`,String(e??``))}_readScript(){let e=this.querySelector(`:scope > script[type='application/json']`);if(!e)return null;try{return JSON.parse(e.textContent??``)}catch(e){return Xa(`[@webority/ui-elements] <wui-tree> could not read its JSON nodes:`,e instanceof Error?e.message:void 0),null}}_adoptAll(e){this._flat=null;let t=this._byId;this._prev=t,this._byId=new Map;let n;try{n=this._adoptStaged(e,null,1)}catch(e){throw this._byId=t,e}finally{this._prev=null}this._roots=n;for(let e of t.keys())this._byId.has(e)||this._checked.delete(e);for(let e of this._roots)this._passChecksDown(e);this._focusId&&!this._byId.has(this._focusId)&&(this._focusId=null)}_adoptStaged(e,t,n){let r=[],i=[];this._staged={ids:r,checks:i};try{let r=this._adopt(e,t,n);for(let e of i)this._checked.add(e);return r}catch(e){for(let e of r)this._byId.delete(e);throw e}finally{this._staged=null}}_adopt(e,t,n){if(!Array.isArray(e))throw Error(`<wui-tree> nodes must be an array.`);return e.map((e,r)=>{let i=e?.id==null?``:String(e.id);if(!i)throw Error(`<wui-tree> every node needs an id.`);if(this._byId.has(i))throw Error(`<wui-tree> node id "${i}" is used twice.`);let a=this._prev?.get(i),o={id:i,raw:e,parent:t,level:n,seq:++this._seq,pos:r,label:e.label==null?i:String(e.label),icon:e.icon||null,badge:e.badge==null||e.badge===``?null:String(e.badge),badgeTone:e.badgeTone||null,disabled:!!e.disabled,hasChildren:!!e.hasChildren,children:null,expanded:a?a.expanded:!!e.expanded,loading:!1,failed:!1};this._byId.set(i,o),this._staged?.ids.push(i);let s=e.children??(e.hasChildren?a?.children?.map(e=>e.raw):void 0);return Array.isArray(s)&&(o.children=this._adopt(s,o,n+1)),o.loading=!!a?.loading&&o.children===null&&o.hasChildren,e.checked&&!a&&this._staged?.checks.push(i),o})}_passChecksDown(e){e.children?.length&&this._checked.has(e.id)&&(this._checked.delete(e.id),this._setChecked(e,!0));for(let t of e.children??[])this._passChecksDown(t)}_loadOpenNodes(){queueMicrotask(()=>{if(this.isConnected)for(let e of[...this._byId.values()])e.expanded&&e.children===null&&e.hasChildren&&!e.loading&&this._load(e)})}_isBranch(e){return e.children?e.children.length>0:e.hasChildren}_visible(){if(this._flat)return this._flat;let e=[],t=n=>{for(let r of n)e.push(r),r.expanded&&r.children&&t(r.children)};return t(this._roots),this._flat=e,e}_state(e){if(e.children?.length){let t=0,n=0;for(let r of e.children){let e=this._state(r);e===`checked`?t++:e===`unchecked`&&n++}return t===e.children.length?`checked`:n===e.children.length?`unchecked`:`mixed`}return this._checked.has(e.id)?`checked`:`unchecked`}_setChecked(e,t){if(e.children?.length)for(let n of e.children)n.disabled||this._setChecked(n,t);else t?this._checked.add(e.id):this._checked.delete(e.id)}_nodeFrom(e){if(!(e instanceof Element))return null;let t=e.closest(`li.wui-tree-item`);if(!t)return null;for(let[e,n]of this._els)if(n.li===t)return this._byId.get(e)??null;return null}_emit(e,t){this.dispatchEvent(new CustomEvent(`wui-tree:${e}`,{detail:t,bubbles:!0,composed:!0}))}_announce(e){this._live&&(this._live.textContent=e)}_setRoving(e){let t=this._focusId===null?void 0:this._els.get(this._focusId);t&&(t.li.tabIndex=-1),this._focusId=e.id;let n=this._els.get(e.id);n&&(n.li.tabIndex=0),this._syncTab()}_syncTab(){this._list&&(this._focusId!==null&&!this._els.has(this._focusId)?this._list.tabIndex=0:this._list.removeAttribute(`tabindex`))}_focusNode(e){e&&(this._win&&!this._els.has(e.id)&&this._reveal(e),this._setRoving(e),this._els.get(e.id)?.li.focus())}_activate(e){e.disabled||(this.selection===`single`&&(this._selected=e.id,this._render(),this._syncForm()),this._emit(`select`,{id:e.id,node:e.raw}))}_enabledLeaves(e){return e.disabled?[]:e.children?.length?e.children.flatMap(e=>this._enabledLeaves(e)):[e]}_toggleCheck(e){let t=this._enabledLeaves(e);if(!t.length)return;let n=!t.every(e=>this._checked.has(e.id));this._setChecked(e,n),this._render(),this._syncForm(),this._emit(`check`,{id:e.id,checked:n,values:this.values})}_toggleExpand(e){!e.disabled&&this._isBranch(e)&&(e.expanded?(e.expanded=!1,this._render()):this._expand(e))}_expand(e){e.expanded=!0,e.children===null?this._load(e):this._render()}async _load(e){if(e.loading)return;e.loading=!0,e.failed=!1,this._announce(this.loadingText),this._render();let t=[],n=null;try{t=await this._fetchChildren(e)}catch(e){n=e}let r=this._byId.get(e.id);if(!r)this._announce(``);else if(r.loading){if(r.loading=!1,!n)try{r.children=this._adoptStaged(t,r,r.level+1),this._passChecksDown(r),this._announce(``)}catch(e){n=e}n&&(r.failed=!0,r.expanded=!1,this._announce(this.errorText),this._emit(`error`,{id:r.id,message:n instanceof Error?n.message:String(n)})),this._render(),this._syncForm()}}async _fetchChildren(e){if(this._loader)return this._loader(e.raw);let t=this.getAttribute(`load-url`);if(!t)throw Error(`<wui-tree> has a node with children to load but no loadChildren or load-url.`);let n=new URL(t,window.location.href);n.searchParams.set(HBt,e.id);let r=await MB(n.href,{headers:{Accept:`application/json`}});if(!r.ok)throw Error(`Loading children answered ${r.kind}.`);return JSON.parse(r.html)}_handleClick(e){let t=e.target;if(!(t instanceof Element))return;let n=this._nodeFrom(t);n&&!n.disabled&&(this._focusNode(n),t.closest(`.wui-tree-toggle`)?this._toggleExpand(n):t.closest(`.wui-tree-check`)?(e.preventDefault(),this._toggleCheck(n)):this._activate(n))}_handleKeyDown(e){if(e.ctrlKey||e.metaKey||e.altKey)return;let t=this._nodeFrom(e.target);if(!t||e.target!==this._els.get(t.id)?.li)return;let n=Qi(e.key,Zi(this));if(n===`ArrowRight`){if(e.preventDefault(),!this._isBranch(t)||t.disabled)return;t.expanded?t.children?.length&&this._focusNode(t.children[0]):this._expand(t)}else n===`ArrowLeft`?(e.preventDefault(),t.expanded&&this._isBranch(t)&&!t.disabled?this._toggleExpand(t):t.parent&&this._focusNode(t.parent)):e.key===` `?(e.preventDefault(),this.selection===`multiple`?this._toggleCheck(t):this.selection===`single`&&this._activate(t)):this._nav.handler(e)}_syncForm(){let e=this.selection;if(e===`multiple`)tH(this,this.values);else if(e===`single`)eH(this,this._selected??``);else for(let e of this.querySelectorAll(UBt))e.remove()}_render(){if(!this._list)return;this._flat=null;let e=document.activeElement,t=!!e&&this._list.contains(e),n=this._visible();n.some(e=>e.id===this._focusId)||(this._focusId=(n.find(e=>e.id===this._selected)??n[0])?.id??null);let r=this.getAttribute(`aria-label`);if(r?this._list.setAttribute(`aria-label`,r):this._list.removeAttribute(`aria-label`),n.length>zBt){this._bindWindow();let e={heights:n7e(n.length,this._rowH),start:0,end:0};this._win=e,this._paint(n,e)}else this._unbindWindow(),this._win=null,this._list.style.paddingTop=``,this._list.style.paddingBottom=``,this._drawRows(n);t&&this._focusId&&this._els.get(this._focusId)?.li.focus(),this._syncForm()}_drawRows(e){this._list&&(this._els=new Map,this._list.replaceChildren(...e.map(e=>this._buildItem(e))),this._syncTab())}_metrics(){let e=this._box,t=this._list?.getBoundingClientRect().top??0,n=e?e.getBoundingClientRect().top:0,r=(e?e.clientHeight:window.innerHeight)||VBt;return{scrollTop:Math.max(0,n-t),viewport:r}}_rangeOf(e){return r7e(e.heights,{...this._metrics(),overscan:BBt})}_draw(e,t){let{start:n,end:r}=this._rangeOf(t);t.start=n,t.end=r,this._drawRows(e.slice(n,r));let i=this._list?.style;i&&(i.paddingTop=`${t.heights.offsetOf(n)}px`,i.paddingBottom=`${t.heights.total()-t.heights.offsetOf(r)}px`)}_measure(e,t){let{heights:n}=t,r=n.indexAt(this._metrics().scrollTop),i=n.offsetOf(r),a=!1;for(let r=t.start;r<t.end;r++){let t=e[r]?.id,i=t===void 0?void 0:this._els.get(t)?.li,o=i?i.getBoundingClientRect().height:0;if(o>0){if(!this._rowMeasured){this._rowMeasured=!0,this._rowH=o;let e=n.estimate;n.setEstimate(o),n.estimate!==e&&(a=!0)}n.set(r,o)&&(a=!0)}}return a?{changed:a,delta:n.offsetOf(r)-i}:{changed:!1,delta:0}}_scrollBy(e){this._box?this._box.scrollTop+=e:window.scrollBy(0,e)}_paint(e,t){this._draw(e,t);for(let n=0;n<2;n++){let{changed:n,delta:r}=this._measure(e,t);if(!n)return;r&&this._scrollBy(r),this._draw(e,t)}}_repaintWindow(){let e=this._win;if(!e||!this._list)return;let{start:t,end:n}=this._rangeOf(e);if(t===e.start&&n===e.end)return;let r=document.activeElement,i=!!r&&this._list.contains(r);this._paint(this._visible(),e),i&&this._focusId&&this._els.get(this._focusId)?.li.focus({preventScroll:!0})}_schedule(){this._frame||=requestAnimationFrame(()=>{this._frame=0,this._repaintWindow()})}_reveal(e){let t=this._win;if(!t)return;let n=this._visible(),r=n.indexOf(e);if(!(r<0))for(let i=0;i<2;i++){let i=this._metrics(),a=i7e(t.heights,r,i);if(Math.abs(a-i.scrollTop)>.5)this._scrollBy(a-i.scrollTop);else if(this._els.has(e.id))break;this._paint(n,t)}}_bindWindow(){if(this._unbind||!this.isConnected)return;let e=IBt(this),t=e??window,n=()=>this._schedule();t.addEventListener(`scroll`,n,{passive:!0});let r=null;e?(r=new ResizeObserver(n),r.observe(e)):window.addEventListener(`resize`,n),this._box=e,this._unbind=()=>{t.removeEventListener(`scroll`,n),r?r.disconnect():window.removeEventListener(`resize`,n)}}_unbindWindow(){this._unbind?.(),this._unbind=null,this._box=null,this._frame&&cancelAnimationFrame(this._frame),this._frame=0}_buildItem(e){let t=e.parent?e.parent.children?.length??0:this._roots.length,n=this.selection,r=this._isBranch(e),i=this._state(e),a=q(`li`,{class:`wui-tree-item`,role:`treeitem`,tabindex:e.id===this._focusId?0:-1,"aria-level":e.level,"aria-setsize":t,"aria-posinset":e.pos+1,"aria-labelledby":`${this._uid}-${e.seq}`,"aria-describedby":e.badge?`${this._uid}-${e.seq}-badge`:null});r&&a.setAttribute(`aria-expanded`,String(e.expanded)),e.disabled&&a.setAttribute(`aria-disabled`,`true`),e.loading&&a.setAttribute(`aria-busy`,`true`),n===`single`&&a.setAttribute(`aria-selected`,String(e.id===this._selected)),n===`multiple`&&a.setAttribute(`aria-checked`,i===`mixed`?`mixed`:String(i===`checked`));let o=q(`div`,{class:`wui-tree-row`,role:`presentation`});o.style.setProperty(`--wui-tree-level`,String(e.level-1)),n===`single`&&e.id===this._selected&&o.classList.add(`wui-tree-row-selected`),e.failed&&o.classList.add(`wui-tree-row-error`);let s=q(`span`,{class:r?`wui-tree-toggle`:`wui-tree-toggle wui-tree-toggle-leaf`,"aria-hidden":`true`});if(r){let e=Zr(`chevron-right`,{size:16});s.replaceChildren(...e?[e]:[])}if(o.append(s),n===`multiple`){let t=q(`input`,{class:`form-check-input wui-tree-check`,type:`checkbox`,tabindex:-1,"aria-hidden":`true`});t.checked=i===`checked`,t.indeterminate=i===`mixed`,t.disabled=e.disabled,t.addEventListener(`mousedown`,e=>e.preventDefault()),o.append(t)}if(e.icon){let t=q(`span`,{class:`wui-tree-icon`,"aria-hidden":`true`}),n=Zr(e.icon,{size:16});t.replaceChildren(...n?[n]:[]),o.append(t)}let c=q(`span`,{class:`wui-tree-label`,id:`${this._uid}-${e.seq}`});if(c.textContent=e.label,o.append(c),e.badge){let t=q(`span`,{class:`badge wui-tree-badge${e.badgeTone&&e.badgeTone!==`neutral`?` badge-${e.badgeTone}`:``}`,id:`${this._uid}-${e.seq}-badge`});t.textContent=e.badge,o.append(t)}return e.loading&&o.append(q(`span`,{class:`wui-tree-spinner`,"aria-hidden":`true`})),a.append(o),this._els.set(e.id,{li:a,row:o}),a}}})),qBt=P({WuiTree:()=>B9}),JBt=M((()=>{Rc(),KBt(),Ic(`wui-tree`,B9)})),YBt=[`none`,`single`,`multiple`],XBt=()=>Promise.resolve().then(()=>(JBt(),qBt));function V9(e){return e instanceof HTMLElement&&`nodes`in e&&`loadChildren`in e&&`selected`in e}function ZBt({ref:e,...t}){let n=Fc(`wui-tree`,XBt),{marker:r,props:i}=U(`AppTreeView`,t),{nodes:a,selection:o,selected:s,onSelect:c,checked:l,onCheck:u,loadChildren:d,loadUrl:p,onLoadError:m,name:h,loadingText:g,errorText:v,ariaLabel:y,id:b,className:S=``,...C}=i;G(`AppTreeView`,C),W(`AppTreeView`,`selection`,o,YBt);let{setRef:w,innerRef:T}=pV({ready:n,ref:e,value:l,readValue:j8e,writeValue:M8e,on:{"wui-tree:check":e=>u?.(e.detail.values,{id:e.detail.id,checked:e.detail.checked}),"wui-tree:select":e=>{c?.(e.detail.id,e.detail.node);let t=e.currentTarget;V9(t)&&s!==void 0&&t.selected!==s&&(t.selected=s)},"wui-tree:error":e=>m?.(e.detail.id,e.detail.message)}});f(()=>{let e=T.current;n&&V9(e)&&a!==void 0&&(e.nodes=a)},[a,T,n]),f(()=>{let e=T.current;n&&V9(e)&&(e.loadChildren=d)},[d,T,n]);let E=_(!1);return f(()=>{let e=T.current;n&&V9(e)&&(s===void 0?(E.current&&(e.selected=null),E.current=!1):(E.current=!0,e.selected!==s&&(e.selected=s)))},[s,T,n]),x(`wui-tree`,{ref:w,id:b||void 0,selection:o||void 0,name:h||void 0,"load-url":p||void 0,"loading-text":g||void 0,"error-text":v||void 0,"aria-label":y||void 0,className:S||void 0,...r,...C})}var H9,QBt=M((()=>{Rc(),H9=class extends Lc{_measure;_resize;_mutation;_ownTabindex;constructor(){super(),this._measure=()=>this.measure(),this._resize=null,this._mutation=null,this._ownTabindex=!1}connectedCallback(){this.measure(),this.addEventListener(`mouseover`,this._measure),typeof ResizeObserver<`u`&&(this._resize=new ResizeObserver(this._measure),this._resize.observe(this)),this._mutation=new MutationObserver(this._measure),this._mutation.observe(this,{childList:!0,subtree:!0,characterData:!0})}disconnectedCallback(){this.removeEventListener(`mouseover`,this._measure),this._resize?.disconnect(),this._mutation?.disconnect(),this._resize=null,this._mutation=null}measure(){let e=this.querySelector(`.wui-truncate-text`);e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight?(this.setAttribute(`data-wui-tooltip`,(e.textContent??``).replace(/\s+/g,` `).trim()),this.hasAttribute(`tabindex`)||(this.setAttribute(`tabindex`,`0`),this._ownTabindex=!0)):(this.removeAttribute(`data-wui-tooltip`),this._ownTabindex&&=(this.removeAttribute(`tabindex`),!1)))}}})),$Bt=P({WuiTruncate:()=>H9}),eVt=M((()=>{Rc(),QBt(),Ic(`wui-truncate`,H9)})),tVt=()=>Promise.resolve().then(()=>(eVt(),$Bt));function nVt(e){Fc(`wui-truncate`,tVt);let{marker:t,props:n}=U(`AppTruncate`,e),{children:r,lines:i=1,width:a,style:o,className:s=``,...c}=n;G(`AppTruncate`,c);let l=Number.isInteger(i)&&i>1,u={...l?{"--wui-truncate-lines":i}:null,...a?{"--wui-truncate-width":a}:null,...o};return x(`wui-truncate`,{class:[`wui-truncate`,l&&`wui-truncate-multi`,s].filter(Boolean).join(` `),style:Object.keys(u).length?u:void 0,...t,...c,children:x(`span`,{className:`wui-truncate-text`,children:r})})}var rVt=()=>window.location.reload();function iVt(e){let{marker:t,props:n}=U(`AppUpdateBar`,e),r=Vs(`updateBar`,Vme),{onReload:i=rVt,dismissible:a=!1,onClose:o,className:s=``,description:c=r.description,reloadLabel:l=r.reloadLabel,dismissLabel:u=r.dismissLabel,...d}=n;return G(`AppUpdateBar`,d),S(jve,{tone:`info`,icon:`refresh-cw`,dismissible:a,onClose:o,dismissLabel:u,className:s,...t,...d,children:[x(`span`,{className:`me-3`,children:c}),x(nl,{size:`sm`,onClick:i,children:l})]})}var aVt,oVt,U9,sVt,W9,G9,K9,q9,cVt=M((()=>{En(),Rc(),Ma(),aVt=`wui-whats-new-read`,oVt=`wui-whats-new:`,U9=`data-wui-unread`,sVt=0,W9=e=>{let t=Date.parse(e);return Number.isNaN(t)?-1/0:t},G9=(e,t)=>W9(t)>W9(e)?t:e,K9=(e,t)=>{let n=e.querySelector(t);return n instanceof HTMLElement?n:null},q9=class extends Lc{_doc;_stored;_observer;_onTriggerClick;_closeFocus;static get observedAttributes(){return[`storage-key`,`read-through`,`indicator`]}constructor(){super(),this._doc=null,this._stored=``,this._closeFocus=null,this._observer=null,this._onTriggerClick=()=>this.isOpen?this.close(!0):this.open()}get isOpen(){let e=this._panel;return e!==null&&_a(e)}get _trigger(){return K9(this,`.wui-whats-new-trigger`)}get _panel(){return K9(this,`.wui-whats-new-panel`)}get _dot(){return K9(this,`.wui-whats-new-dot`)}connectedCallback(){this._doc=this.ownerDocument;let e=this._panel,t=this._trigger;e&&t&&(e.id||=`wui-whats-new-${++sVt}`,t.setAttribute(`aria-controls`,e.id),t.setAttribute(`aria-expanded`,`false`),t.addEventListener(`click`,this._onTriggerClick),this._stored=this._load(),this._refresh(),typeof MutationObserver<`u`&&(this._observer=new MutationObserver(()=>this._refresh()),this._observer.observe(e,{childList:!0,subtree:!0})))}disconnectedCallback(){let e=this._panel;e&&(this._closeFocus=!1,ga(e),this._closeFocus=null),this._observer?.disconnect(),this._observer=null,this._trigger?.removeEventListener(`click`,this._onTriggerClick),this._doc=null}attributeChangedCallback(e,t,n){t!==n&&this._doc&&(e===`storage-key`&&(this._stored=this._load()),this._refresh())}open(){let e=wn(this._trigger,`<wui-whats-new> needs its trigger to open.`),t=wn(this._panel,`<wui-whats-new> needs its panel to open.`);this.isOpen||(ha(e,t,{mode:`auto`,clampHeight:!0,onClosed:()=>this._closed()}),e.setAttribute(`aria-expanded`,`true`),t.focus({preventScroll:!0}),this._markRead())}close(e){let t=this._panel;t&&this.isOpen&&(this._closeFocus=e,ga(t))}_closed(){let e=this._closeFocus??this._panel?.contains(this.ownerDocument.activeElement)??!1;this._closeFocus=null,this._settle(e)}_settle(e){this._trigger?.setAttribute(`aria-expanded`,`false`),this._refresh(),e&&this._trigger?.focus()}_entries(){let e=[];for(let t of this.querySelectorAll(`.wui-whats-new-entry`))t instanceof HTMLElement&&e.push({entry:t,date:t.querySelector(`time[datetime]`)?.getAttribute(`datetime`)??``});return e}_newest(){return this._entries().reduce((e,{date:t})=>G9(e,t),``)}_seenPoint(){return G9(this._stored,this.getAttribute(`read-through`)??``)}_refresh(){let e=this._seenPoint(),t=this._entries(),n=0;for(let{entry:r,date:i}of t){let t=W9(i)>W9(e);t&&n++,this.isOpen&&r.hasAttribute(U9)||r.toggleAttribute(U9,t)}this.toggleAttribute(U9,n>0);let r=this._dot;r&&(r.textContent=this.getAttribute(`indicator`)===`count`&&n>0?String(n):``)}_markRead(){let e=this._newest();!e||W9(e)<=W9(this._seenPoint())||(this._stored=G9(this._stored,e),this._save(this._stored),this._refresh(),this.dispatchEvent(new CustomEvent(`wui-whats-new-read`,{bubbles:!0,detail:{through:e}})))}_storage(){let e=this.getAttribute(`storage-key`);if(!e)return null;try{let t=this.ownerDocument.defaultView;return t?{store:t.localStorage,key:oVt+e}:null}catch{return null}}_load(){let e=this._storage();return e?e.store.getItem(e.key)??``:this._stored}_save(e){let t=this._storage();t&&t.store.setItem(t.key,e)}}})),lVt=P({WHATS_NEW_READ_EVENT:()=>aVt,WuiWhatsNew:()=>q9}),uVt=M((()=>{Rc(),cVt(),Ic(`wui-whats-new`,q9)})),dVt=[`dot`,`count`],fVt=()=>Promise.resolve().then(()=>(uVt(),lVt)),pVt=e=>typeof e==`object`&&!!e&&`through`in e&&typeof e.through==`string`;function mVt(e){Fc(`wui-whats-new`,fVt);let{marker:t,props:n}=U(`AppWhatsNew`,e),r=Vs(`whatsNew`,Hme),{entries:i=[],storageKey:a,readThrough:o,indicator:s=`dot`,label:c=r.label,unreadLabel:l=r.unreadLabel,emptyText:u=r.emptyText,onRead:d,linkComponent:p,className:m=``,...h}=n;G(`AppWhatsNew`,h),W(`AppWhatsNew`,`indicator`,s,dVt);let g=_(null),v=_(d);return v.current=d,f(()=>{let e=g.current;if(!e)return;let t=e=>{let t=e instanceof CustomEvent?e.detail:void 0;if(!pVt(t))throw Error(`wui-whats-new-read carried no read-through date`);v.current?.(t.through)};return e.addEventListener(`wui-whats-new-read`,t),()=>e.removeEventListener(`wui-whats-new-read`,t)},[]),S(`wui-whats-new`,{ref:g,class:[`wui-whats-new`,m].filter(Boolean).join(` `),"storage-key":a||void 0,"read-through":o||void 0,indicator:s,...t,...h,children:[S(`button`,{type:`button`,className:`u-action wui-whats-new-trigger`,"aria-haspopup":`dialog`,children:[x(J,{name:`gift`,size:20}),x(`span`,{className:`wui-whats-new-name`,children:c}),x(`span`,{className:`wui-whats-new-unread`,children:` ${l}`}),x(`span`,{className:`wui-whats-new-dot`,"aria-hidden":`true`})]}),S(`div`,{className:`wui-whats-new-panel`,popover:`auto`,role:`dialog`,"aria-label":c,tabIndex:-1,children:[x(`h2`,{className:`wui-whats-new-title`,children:c}),i.length>0?x(`ol`,{className:`wui-whats-new-list`,children:i.map((e,t)=>S(`li`,{className:`wui-whats-new-entry`,children:[x(`time`,{className:`wui-whats-new-date`,dateTime:e.date,children:Fn(e.date)}),x(`h3`,{className:`wui-whats-new-entry-title`,children:e.title}),e.body&&x(`p`,{className:`wui-whats-new-body`,children:e.body}),e.imageSrc&&x(`img`,{className:`wui-whats-new-image`,src:e.imageSrc,alt:e.imageAlt??``,width:e.imageWidth,height:e.imageHeight,loading:`lazy`}),e.href&&x(hVt,{entry:e,linkComponent:p})]},e.id??`${e.date}-${t}`))}):x(`p`,{className:`wui-whats-new-empty`,children:u})]})]})}function hVt({entry:e,linkComponent:t}){let n=Vs(`whatsNew`,Hme),r=gs(t,{href:e.href});return x(_s,{link:r,className:`wui-whats-new-link`,children:e.linkLabel||n.linkLabel})}var J9,gVt,Y9,_Vt,vVt,X9,Z9,yVt,Q9,$9,bVt=M((()=>{Rc(),En(),xn(),Za(),Lz(),ei(),Vue(),xpe(),J9=()=>pn(`wizard`,Rs),gVt=`wui-wizard-step`,Y9=`:scope > [data-wui-glyphs]`,_Vt=()=>({done:J9().doneLabel,active:J9().activeLabel,pending:J9().pendingLabel,error:J9().errorLabel,skipped:J9().skippedLabel}),vVt=[`data-nav`,`data-step`,`data-close`],X9=new WeakSet,Z9=class extends Lc{_active;_skipped;_invalid;_finished;_rendered;_reflecting;_beforeNext;_header;_footer;_chromeInserted;_topBar;_onTopBarClick;_onHeaderClick;_onFooterClick;_known;_observer;_glyphs;_glyphObserver;static get observedAttributes(){return[`active`,`variant`,`orientation`,`align`,`icon-size`,`non-linear`,`hide-stepper`,`hide-connectors`,`disabled`,`skippable`,`label`,`back-label`,`next-label`,`skip-label`,`finish-label`,`top-bar`,`bar-title`,`close-label`]}constructor(){super(),this._active=0,this._skipped=new Set,this._invalid=new Set,this._finished=!1,this._rendered=!1,this._reflecting=!1,this._beforeNext=null,this._header=document.createElement(`nav`),this._header.className=`stepper wizard-stepper`,this._footer=document.createElement(`div`),this._footer.className=`form-actions wizard-footer form-actions-between`,this._chromeInserted=!1,this._topBar=null,this._onTopBarClick=e=>{let t=e.target;t instanceof Element&&t.closest(`[data-close]`)&&this.dispatchEvent(new CustomEvent(`wui-wizard:close`,{detail:{index:this._active},bubbles:!0}))},this._known=[],this._observer=null,this._glyphs=null,this._glyphObserver=null}get active(){return this._active}set active(e){let t=Number.parseInt(String(e),10);Number.isFinite(t)&&this._go(t,`set`)}get beforeNext(){return this._beforeNext}set beforeNext(e){this._beforeNext=typeof e==`function`?e:null}get _steps(){return[...this.querySelectorAll(`:scope > ${gVt}`)].filter(e=>e instanceof HTMLElement)}refresh(){this._rendered&&this._renderChrome()}connectedCallback(){if(this._rendered)this._wire(),this._onStepsMutated();else{let e=Number.parseInt(this.getAttribute(`active`)??``,10);this._active=Number.isFinite(e)&&e>=0?e:0,this.render()}}disconnectedCallback(){this._teardown()}attributeChangedCallback(e,t,n){if(this._rendered&&!this._reflecting){if(e===`active`){let e=Number.parseInt(n??``,10);Number.isFinite(e)&&this._go(e,`set`)}else this._renderChrome()}}render(){let e=this._steps;if(!this._chromeInserted){let t=e[0],n=e[e.length-1];t&&n?(this.insertBefore(this._header,t),n.after(this._footer)):(this.prepend(this._header),this.append(this._footer)),this._chromeInserted=!0}this._known=e,this._renderChrome(),this._rendered=!0,this._wire()}_renderChrome(){let e=this._reconcileSteps();this._placeChrome(e),this._clampActive(e),this._syncPanels(e);let t=this._focusedControl();this._syncTopBar(e),this._header.replaceChildren(...this._headerNodes(e)),this._footer.replaceChildren(...this._footerNodes(e)),this._header.hidden=this.hasAttribute(`hide-stepper`),this._restoreFocus(t)}_focusedControl(){let e=document.activeElement;if(!e||![this._topBar,this._header,this._footer].some(t=>t?.contains(e)))return null;let t=vVt.find(t=>e.hasAttribute(t));return t?{attr:t,value:e.getAttribute(t)}:null}_restoreFocus(e){if(e)for(let t of[this._topBar,this._header,this._footer]){let n=t&&[...t.querySelectorAll(`[${e.attr}]`)].find(t=>t.getAttribute(e.attr)===e.value);if(n){n instanceof HTMLElement&&!(n instanceof HTMLButtonElement&&n.disabled)&&n.focus({preventScroll:!0});return}}}_syncTopBar(e){if(!this.hasAttribute(`top-bar`)){this._topBar?.removeEventListener(`click`,this._onTopBarClick),this._topBar?.remove(),this._topBar=null;return}this._topBar||(this._topBar=document.createElement(`div`),this._topBar.className=`wui-wizard-topbar`,this._rendered&&this._topBar.addEventListener(`click`,this._onTopBarClick)),this._header.previousElementSibling!==this._topBar&&this.insertBefore(this._topBar,this._header);let t=this.getAttribute(`bar-title`)||``,n=this.getAttribute(`close-label`)||J9().closeLabel,r=e.length?[q(`span`,{class:`wui-wizard-topbar-count`},K(J9().stepOfText,{position:this._active+1,total:e.length}))]:[];this._topBar.replaceChildren(q(`span`,{class:`wui-wizard-topbar-title`},t||null),...r,q(`button`,{type:`button`,class:`wui-wizard-topbar-close`,"data-close":!0,"aria-label":n},this._glyph(`x`)))}_clampActive(e){let t=Math.max(0,e.length-1);this._active>t&&(this._active=t),this._active<0&&(this._active=0)}_reconcileSteps(){let e=this._steps,t=this._known;if(this._known=e,Q9(e,t))return e;let n=n=>new Set([...n].map(n=>{let r=t[n];return r?e.indexOf(r):-1}).filter(e=>e>=0));this._skipped=n(this._skipped),this._invalid=n(this._invalid);let r=t[this._active];if(!r)return e;let i=e.indexOf(r);if(i<0){let n=t=>e.includes(t),r=t.slice(this._active+1).find(n)??t.slice(0,this._active).reverse().find(n);i=r?e.indexOf(r):this._active}return i=Math.min(i,Math.max(0,e.length-1)),i!==this._active&&(this._active=i,this._reflectActive(i)),e}_placeChrome(e){let t=e[0],n=e[e.length-1];t&&n&&(this._header.nextElementSibling!==t&&this.insertBefore(this._header,t),this._footer.previousElementSibling!==n&&n.after(this._footer))}_onStepsMutated(){if(!this._rendered)return;let e=this._steps,t=!e.length||this._header.nextElementSibling===e[0]&&this._footer.previousElementSibling===e[e.length-1];this.querySelector(Y9)!==this._glyphs&&(this._watchGlyphs(),this._renderHeader()),t&&Q9(e,this._known)||(this._renderChrome(),this._observer?.takeRecords())}_syncPanels(e){e.forEach((e,t)=>{let n=t===this._active;e.classList.add(`wizard-panel`),e.hidden=!n,e.setAttribute(`role`,`tabpanel`),e.setAttribute(`aria-hidden`,n?`false`:`true`)})}_stepStatus(e,t){let n=e?.getAttribute(`status`);if(n){if(!yVt(n))throw Error(`wui-wizard: status "${n}" is not one of pending, active, done, error, skipped.`);return n}return this._invalid.has(t)?`error`:this._finished?`done`:t===this._active?`active`:t<this._active?this._skipped.has(t)?`skipped`:`done`:`pending`}_headerNodes(e){let t=this.getAttribute(`variant`)===`journey`,n=this.getAttribute(`variant`)===`icons`,r=this.getAttribute(`variant`)===`tiles`,i=this.getAttribute(`orientation`)===`vertical`,a=!this.hasAttribute(`hide-connectors`),o=this.getAttribute(`align`)===`start`;this._header.className=[`stepper`,`wizard-stepper`,t&&`stepper-journey`,n&&`stepper-icons`,r&&`wui-step-tiles`,i&&`stepper-vertical`,!a&&`wui-stepper-no-connectors`,o&&`wui-stepper-start`].filter(Boolean).join(` `),this._header.setAttribute(`aria-label`,this.getAttribute(`label`)||J9().label);let s=this.hasAttribute(`non-linear`);for(let t of e)t.getAttribute(`label`)||X9.has(t)||(X9.add(t),Ya(`wui-wizard: a <wui-wizard-step> needs a label attribute; its header segment is empty.`));let c=Bue(e.map(e=>({label:e.getAttribute(`label`)||``,icon:e.getAttribute(`icon`)||void 0})),{statusOf:t=>this._stepStatus(e[t],t),journey:t,connectors:a}),l=_Vt(),u=c.flatMap(i=>{let a=i.index,o=e[a];if(!o)return[];let c=i.status,u=o.getAttribute(`label`)||null,d=o.getAttribute(`description`)||``,f=a+1,p=`icon`in i.glyph?this._glyph(i.glyph.icon):i.glyph.number,m=i.className,h=i.current?`step`:void 0,g=s||a<this._active;if(r){let e=[q(`span`,{class:`step-circle`},p),q(`span`,{class:`step-text`},q(`span`,{class:`step-label`},u),q(`span`,{class:`wui-step-tile-state`},l[c]??null))],t=g?q(`button`,{type:`button`,class:`wui-step-tile-body`,"data-step":a,"aria-current":h},...e):q(`div`,{class:`wui-step-tile-body`,"aria-current":h},...e);return[q(`li`,{class:c===`pending`?`wui-step-tile`:`wui-step-tile ${c}`},t)]}let _=d?[q(`span`,{class:`step-desc`},d)]:[],v;v=t?[q(`span`,{class:`step-circle`},p),q(`span`,{class:`step-text`},q(`span`,{class:`step-index`},K(J9().stepText,{position:f})),q(`span`,{class:`step-label`},u),..._)]:n?[q(`span`,{class:`step-circle`},p),q(`span`,{class:`step-index`},K(J9().stepText,{position:f})),q(`span`,{class:`step-label`},u),..._]:[q(`span`,{class:`step-circle`},p),q(`span`,{class:`step-label`},u),..._];let y=g?q(`button`,{type:`button`,class:m,"data-step":a,"aria-current":h},...v):q(`div`,{class:m,"aria-current":h},...v);return i.line?[y,q(`span`,{class:`step-line${i.line.done?` done`:``}`,"aria-hidden":`true`})]:[y]});return r?[q(`ol`,null,...u)]:u}_footerNodes(e){let t=this._active,n=e.length-1,r=this.hasAttribute(`disabled`),i=e[t]?.hasAttribute(`optional`)||this.hasAttribute(`skippable`),a=this.getAttribute(`back-label`)||J9().backLabel,o=this.getAttribute(`next-label`)||J9().nextLabel,s=this.getAttribute(`skip-label`)||J9().skipLabel,c=this.getAttribute(`finish-label`)||J9().finishLabel;return[t>0?q(`button`,{type:`button`,class:Pz(`primary`,`soft`,`md`),"data-nav":`back`,disabled:r,"data-wui":Fz},Zr(`arrow-left`,{className:`me-2`}),a):q(`span`),q(`span`,{class:`wizard-footer-actions`},i&&t<n?q(`button`,{type:`button`,class:Pz(`neutral`,`soft`,`md`),"data-nav":`skip`,disabled:r,"data-wui":Fz},s):null,t<n?q(`button`,{type:`button`,class:Pz(`primary`,`solid`,`md`),"data-nav":`next`,disabled:r,"data-wui":Fz},o,Zr(`arrow-right`,{className:`ms-2`})):q(`button`,{type:`button`,class:Pz(`primary`,`solid`,`md`),"data-nav":`finish`,disabled:r,"data-wui":Fz},c))]}_wire(){this._teardown(),this._onHeaderClick=e=>{let t=e.target instanceof Element?e.target.closest(`[data-step]`):null;t instanceof HTMLElement&&this.contains(t)&&this._stepTo(Number.parseInt(t.dataset.step??``,10))},this._onFooterClick=e=>{let t=e.target instanceof Element?e.target.closest(`[data-nav]`):null;if(!(t instanceof HTMLElement)||!this.contains(t)||this.hasAttribute(`disabled`))return;let n=t.dataset.nav;n===`back`?this._back():n===`skip`?this._skip():(n===`next`||n===`finish`)&&this._next()},this._header.addEventListener(`click`,this._onHeaderClick),this._footer.addEventListener(`click`,this._onFooterClick),this._topBar?.addEventListener(`click`,this._onTopBarClick),this._observer=new MutationObserver(()=>this._onStepsMutated()),this._observer.observe(this,{childList:!0}),this._watchGlyphs()}_glyph(e){let t=this.querySelector(Y9),n=t&&[...t.children].find(t=>t.getAttribute(`data-icon`)===e);if(n)return n.cloneNode(!0);let r=Number.parseInt(this.getAttribute(`icon-size`)??``,10);return Zr(e,r>0?{size:r}:void 0)}_watchGlyphs(){this._glyphObserver?.disconnect(),this._glyphObserver=null,this._glyphs=this.querySelector(Y9),this._glyphs&&(this._glyphObserver=new MutationObserver(()=>this._renderHeader()),this._glyphObserver.observe(this._glyphs,{childList:!0,subtree:!0,attributes:!0,characterData:!0}))}_renderHeader(){if(!this._rendered)return;let e=this._focusedControl();this._header.replaceChildren(...this._headerNodes(this._steps)),this._restoreFocus(e)}_teardown(){this._header&&this._onHeaderClick&&this._header.removeEventListener(`click`,this._onHeaderClick),this._footer&&this._onFooterClick&&this._footer.removeEventListener(`click`,this._onFooterClick),this._topBar?.removeEventListener(`click`,this._onTopBarClick),this._observer?.disconnect(),this._observer=null,this._glyphObserver?.disconnect(),this._glyphObserver=null}_stepTo(e){this.hasAttribute(`disabled`)||!this.hasAttribute(`non-linear`)&&e>=this._active||this._go(e,`step`)}_back(){this._active>0&&this._go(this._active-1,`back`)}async _next(){this._reconcileSteps();let e=this._active,t=this._steps,n=e>=t.length-1,r=t[e];if(!this.dispatchEvent(new CustomEvent(`wui-wizard:beforechange`,{detail:n?{index:e,next:e,reason:`finish`}:{index:e,next:e+1,reason:`next`},cancelable:!0})))return this._flagInvalid(e);if(this._beforeNext){let i;try{i=await this._beforeNext(e)}catch{i=!1}if(this._reconcileSteps(),t=this._steps,e=r?t.indexOf(r):-1,e<0)return;if(n=e>=t.length-1,i===!1)return this._flagInvalid(e)}if(this._invalid.delete(e),this._skipped.delete(e),n)return this._finish();this._go(e+1,`next`)}_skip(){let e=this._active,t=this._steps;(t[e]?.hasAttribute(`optional`)||this.hasAttribute(`skippable`))&&(this._invalid.delete(e),this._skipped.add(e),this.dispatchEvent(new CustomEvent(`wui-wizard:skip`,{detail:{index:e}})),e>=t.length-1?this._finish():this._go(e+1,`skip`))}_flagInvalid(e){this._invalid.add(e),this._renderChrome(),this.dispatchEvent(new CustomEvent(`wui-wizard:invalid`,{detail:{index:e}}))}_finish(){this._invalid.delete(this._active),this._finished=!0,this._renderChrome(),this.dispatchEvent(new CustomEvent(`wui-wizard:finish`,{detail:{index:this._active}}))}_go(e,t){let n=this._reconcileSteps(),r=Math.max(0,n.length-1),i=Math.min(Math.max(e,0),r),a=this._active;this._finished=!1,this._invalid.delete(a),this._active=i,this._reflectActive(i),this._renderChrome(),t!==`silent`&&i!==a&&this.dispatchEvent(new CustomEvent(`wui-wizard:change`,{detail:{index:i,previous:a,reason:t}}))}_reflectActive(e){this._reflecting=!0,this.setAttribute(`active`,String(e)),this._reflecting=!1}},yVt=e=>e===`pending`||e===`active`||e===`done`||e===`error`||e===`skipped`,Q9=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),$9=class extends Lc{static get observedAttributes(){return[`label`,`description`,`optional`,`icon`,`status`]}attributeChangedCallback(){let e=this.closest(`wui-wizard`);e&&`refresh`in e&&typeof e.refresh==`function`&&e.refresh()}}})),xVt=P({WuiWizard:()=>Z9,WuiWizardStep:()=>$9}),SVt=M((()=>{Rc(),bVt(),Ic(`wui-wizard-step`,$9),Ic(`wui-wizard`,Z9)})),CVt=[`steps`,`journey`,`icons`,`tiles`],wVt=Hs.filter(e=>e!==`neutral`),TVt=[`horizontal`,`vertical`],EVt=[`center`,`start`],DVt=[`done`,`active`,`pending`,`error`],OVt=[`key`,`label`,`description`,`optional`,`icon`,`status`],kVt=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],AVt=[`check`,`alert-triangle`,`minus`],jVt=[`sm`,`md`,`lg`],MVt={sm:14,md:16,lg:20},NVt=()=>Promise.resolve().then(()=>(SVt(),xVt)),PVt=new Set,FVt=()=>{try{return!1}catch{return!0}};function IVt(e){if(!Array.isArray(e))throw Error(`AppWizard: steps must be an array of { label, description?, optional?, icon?, status?, key? } objects.`);e.forEach((e,t)=>{if(typeof e!=`object`||!e)throw Error(`AppWizard: steps[${t}] needs a text label.`);let n=`label`in e?e.label:void 0;if(typeof n!=`string`||n.trim()===``)throw Error(`AppWizard: steps[${t}] needs a text label.`);if(FVt())for(let n of Object.keys(e)){if(OVt.includes(n))continue;let e=`AppWizard: steps[${t}] has an unknown field ${n}; the fields are ${OVt.join(`, `)}.`;PVt.has(e)||(PVt.add(e),ce(e))}})}function LVt({ref:e,...t}){let r=Fc(`wui-wizard`,NVt),{marker:i,props:a}=U(`AppWizard`,t),o=Vs(`wizard`,Rs),{steps:s=[],children:c,active:l,defaultActive:u=0,onStepChange:d,onFinish:p,onSkip:m,beforeNext:h,onInvalid:g,onClose:v,variant:y=`steps`,tone:b,doneTone:C,orientation:w=`horizontal`,align:T=`center`,iconVariant:E,size:D=`md`,iconSize:O,skippable:k=!1,nonLinear:A=!1,hideStepper:j=!1,hideConnectors:M=!1,disabled:N=!1,label:P=o.label,backLabel:F=o.backLabel,nextLabel:I=o.nextLabel,skipLabel:L=o.skipLabel,finishLabel:R=o.finishLabel,topBar:z=!1,barTitle:B,closeLabel:V=o.closeLabel,className:H=``,...ee}=a;G(`AppWizard`,ee),W(`AppWizard`,`variant`,y,CVt),W(`AppWizard`,`tone`,b,wVt),W(`AppWizard`,`doneTone`,C,wVt),W(`AppWizard`,`orientation`,w,TVt),W(`AppWizard`,`align`,T,EVt),W(`AppWizard`,`iconVariant`,E,kVt),W(`AppWizard`,`size`,D,jVt),IVt(s);let te=O!==void 0&&O>0?O:MVt[D]??MVt.md;for(let e of s)W(`AppWizard`,`steps[].status`,e.status,DVt);let ne=_(null),re=t=>{ne.current=t,typeof e==`function`?e(t):e&&(e.current=t)},ie=n.toArray(c),ae=E&&E!==`linear`?[...new Set([...AVt,...s.map(e=>e.icon).filter(e=>!!e)])]:[],oe=[b&&`wui-step-tone-${b}`,C&&`wui-step-done-tone-${C}`,D!==`md`&&jVt.includes(D)&&`wui-step-size-${D}`,H].filter(Boolean).join(` `),se=_(l===void 0?u:l);return f(()=>{let e=ne.current;e&&r&&se.current&&(e.active=se.current)},[r]),f(()=>{let e=ne.current;e&&r&&l!==void 0&&Number(e.active)!==l&&(e.active=l)},[l,r]),f(()=>{let e=ne.current;e&&r&&(e.beforeNext=h??null)},[h,r]),f(()=>{let e=ne.current;if(!e)return;let t=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:change must be a CustomEvent carrying its detail.`);let t=e.detail;d?.(t.index,t)},n=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:finish must be a CustomEvent carrying its detail.`);let t=e.detail;p?.(t)},r=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:skip must be a CustomEvent carrying its detail.`);let t=e.detail;m?.(t.index)},i=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:invalid must be a CustomEvent carrying its detail.`);let t=e.detail;g?.(t.index)},a=e=>{if(!(e instanceof CustomEvent))throw Error(`AppWizard: wui-wizard:close must be a CustomEvent carrying its detail.`);let t=e.detail;v?.(t)};return e.addEventListener(`wui-wizard:change`,t),e.addEventListener(`wui-wizard:finish`,n),e.addEventListener(`wui-wizard:skip`,r),e.addEventListener(`wui-wizard:invalid`,i),e.addEventListener(`wui-wizard:close`,a),()=>{e.removeEventListener(`wui-wizard:change`,t),e.removeEventListener(`wui-wizard:finish`,n),e.removeEventListener(`wui-wizard:skip`,r),e.removeEventListener(`wui-wizard:invalid`,i),e.removeEventListener(`wui-wizard:close`,a)}},[d,p,m,g,v]),S(`wui-wizard`,{ref:re,variant:y,orientation:w,align:T===`start`?`start`:void 0,"icon-size":te===16?void 0:te,skippable:k?``:void 0,"non-linear":A?``:void 0,"hide-stepper":j?``:void 0,"hide-connectors":M?``:void 0,disabled:N?``:void 0,label:P,"back-label":F,"next-label":I,"skip-label":L,"finish-label":R,"top-bar":z?``:void 0,"bar-title":B||void 0,"close-label":V,className:oe||void 0,...i,...ee,children:[s.map((e,t)=>x(`wui-wizard-step`,{label:e.label,description:e.description||void 0,optional:e.optional?``:void 0,icon:e.icon||void 0,status:e.status||void 0,children:ie[t]},e.key??`${e.label}-${t}`)),ae.length>0&&x(`span`,{hidden:!0,"data-wui-glyphs":``,children:ae.map(e=>x(J,{name:e,size:te,variant:E},e))})]})}var RVt=[`sm`,`md`,`lg`],zVt=()=>Promise.resolve().then(()=>(ml(),pl)),BVt=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`]);function VVt(e){let{marker:t,props:n}=U(`AppWorkspaceSwitcher`,e),r=Vs(`workspaceSwitcher`,Ume),{tenants:i=[],currentId:a,onSelect:o,menuLabel:s,footerAction:c,linkComponent:l,searchable:d=!1,onCreate:p,canCreate:m=!1,createLabel:h=r.createLabel,compact:y=!1,size:b=`md`,ariaLabel:C,searchPlaceholder:w=r.searchPlaceholder,searchLabel:T=r.searchPlaceholder,noMatchText:E=r.noMatchText,...D}=n,{onToggle:O,...k}=D;G(`AppWorkspaceSwitcher`,k),W(`AppWorkspaceSwitcher`,`size`,b,RVt),Fc(`wui-dropdown`,zVt);let[A,j]=v(``),[M,N]=v(!1),P=_(null),F=_(null),I=u((e,t)=>{N(e),O?.(e,t)},[O]),L=i.find(e=>e.id===a)??i[0],R=g(()=>{let e=A.trim().toLowerCase();return!d||!e?i:i.filter(t=>String(t.name??``).toLowerCase().includes(e))},[i,A,d]);f(()=>{M&&d&&P.current?.focus()},[M,d]),f(()=>{let e=F.current;if(!e)return;let t=t=>{if(t.target===e){if(!(t instanceof CustomEvent))throw TypeError(`<wui-dropdown> toggle arrived without its detail.`);I(t.detail.open,{source:t.detail.source})}};return e.addEventListener(`wui-dropdown-toggle`,t),()=>e.removeEventListener(`wui-dropdown-toggle`,t)},[I]),f(()=>{if(!d)return;let e=P.current;if(!e)return;let t=e=>{BVt.has(e.key)&&e.stopPropagation()};return e.addEventListener(`keydown`,t),()=>e.removeEventListener(`keydown`,t)},[d]);let z=L?.name??``,B=C??K(r.ariaLabel,{currentName:z});return S(`wui-dropdown`,{ref:F,class:`dropdown workspace-switcher${b===`sm`?` workspace-switcher-sm`:``}${b===`lg`?` workspace-switcher-lg`:``}`,...t,...k,children:[x(WVt,{compact:y,tenant:L,ariaLabel:B,size:b}),S(`div`,{"data-wui-dropdown-menu":``,popover:`auto`,className:`dropdown-menu workspace-switcher-menu`,children:[s?x(`div`,{className:`workspace-switcher-menu-label`,children:s}):null,d?S(`div`,{className:`workspace-switcher-search`,children:[x(J,{name:`search`,size:14}),x(`input`,{ref:P,type:`search`,className:`workspace-switcher-search-input`,placeholder:w,"aria-label":T,value:A,onChange:e=>j(e.target.value)})]}):null,S(`div`,{className:`workspace-switcher-list`,children:[R.map(e=>S(`button`,{type:`button`,className:`dropdown-item workspace-switcher-option${e.id===L?.id?` is-active`:``}`,onClick:()=>o?.(e),children:[x(HVt,{tenant:e,size:b,inMenu:!0}),x(`span`,{className:`workspace-switcher-option-name`,children:e.name}),e.badge?x(`span`,{className:`workspace-switcher-badge`,children:e.badge}):null,e.id===L?.id?x(J,{name:`check`,size:16,className:`workspace-switcher-tick`}):null]},e.id)),R.length===0?x(`div`,{className:`workspace-switcher-empty`,children:E}):null]}),m?S(`button`,{type:`button`,className:`dropdown-item workspace-switcher-create`,onClick:()=>p?.(),children:[x(J,{name:`plus`,size:16}),h]}):null,c?x(`div`,{className:`workspace-switcher-footer`,children:UVt(c,l)}):null]})]})}function HVt({tenant:e,size:t,inMenu:n=!1}){if(e?.logoUrl){let r=n?{sm:24,md:28,lg:34}[t]:{sm:24,md:30,lg:32}[t];return x(`img`,{className:`workspace-switcher-mark`,src:e.logoUrl,alt:``,loading:`lazy`,width:r,height:r})}return x(`span`,{className:`workspace-switcher-mark`,children:Dr(e?.name,1)})}function UVt(e,t){if(typeof e!=`object`||!e||!(`label`in e))return e;let{label:n,icon:r,href:i}=e,a=S(b,{children:[r?x(J,{name:r,size:16}):null,n]});return i?x(_s,{link:gs(t,{href:i}),className:`workspace-switcher-footer-action`,children:a}):x(`button`,{className:`workspace-switcher-footer-action`,type:`button`,children:a})}function WVt({compact:e,tenant:t,ariaLabel:n,size:r}){return S(`button`,{type:`button`,"data-wui-dropdown-trigger":``,className:`workspace-switcher-trigger${e?` is-compact`:``}`,"aria-haspopup":`true`,"aria-expanded":`false`,"aria-label":n,children:[x(HVt,{tenant:t,size:r}),e?null:S(b,{children:[x(`span`,{className:`workspace-switcher-trigger-name`,children:t?.name}),x(J,{name:`chevrons-up-down`,size:16,className:`workspace-switcher-chevron`})]})]})}var GVt=[`sm`,`md`,`lg`,`xl`],KVt=()=>Promise.resolve().then(()=>(pU(),fU));function qVt({ref:e,...t}){let n=Fc(`wui-datepicker`,KVt),r=Vs(`datePicker`,ws),{marker:i,props:o}=U(`AppYearPicker`,t),{value:s,onChange:c,label:l,required:u=!1,optional:d=!1,optionalLabel:f=r.optionalLabel,helperText:m,error:h,name:g,min:_,max:v,placeholder:y=r.yearPlaceholder,disabled:b,readOnly:C=!1,loading:w=!1,defaultValue:T,help:E,helpLabel:D=r.helpLabel,size:O,displayFormat:k,id:A,ariaLabel:j,"aria-invalid":M,className:N=``,fieldClassName:P=``,...F}=o,I=Oc(g),L=h??I;G(`AppYearPicker`,F),W(`AppYearPicker`,`size`,O,GVt),typeof k==`string`&&k!==``&&/DD|YYYY|YY/.test(k)&&ce(`[@webority/ui-react] <AppYearPicker> displayFormat "${k}" uses uppercase year or day tokens, which print as written; the year token is yyyy.`);let R=p(),z=A||R,{setRef:B}=pV({ready:n,ref:e,value:s??(T===void 0?``:void 0),defaultValue:T,onChange:c}),V=!l&&!L&&!m,H=L?`${z}-error`:void 0,ee=m?`${z}-hint`:void 0,te=H||ee,ne=x(`wui-datepicker`,{ref:B,id:z,name:g,value:(s??T)||void 0,min:_,max:v,placeholder:y,size:O||void 0,"display-format":k||void 0,"aria-label":j||ZV(l)||void 0,"aria-describedby":te,"aria-invalid":M??(L?`true`:void 0),disabled:b?``:void 0,readonly:C?``:void 0,loading:w?``:void 0,required:u?``:void 0,className:N||void 0,...F,mode:`year`});return V?a(ne,i):S(`div`,{...i,className:`field${P?` ${P}`:``}`,children:[l&&S(`label`,{className:`label`,htmlFor:z,children:[l,d&&!u&&x(`span`,{className:`label-optional`,children:` ${f}`}),u&&x(Uc,{}),E&&x(Hc,{label:D,children:E})]}),ne,x(Ac,{error:L,hint:m,errorId:H,hintId:ee})]})}var JVt=R({components:{AppAccordion:Pfe,AppAccountSwitcher:$me,AppActionIcon:Ks,AppAlert:Tc,AppAsyncBlock:Cve,AppAuthLayout:Tve,AppAvatar:Gs,AppAvatarGroup:kve,AppBadge:cl,AppBanner:jve,AppBreadcrumbs:Gve,AppButton:nl,AppButtonGroup:qve,AppCalendar:DOe,AppCard:POe,AppCarousel:BOe,AppCell:WOe,AppChart:E2e,AppChartCard:F2e,AppCheckbox:R2e,AppChip:Tz,AppChipGroup:Q2e,AppChoiceCard:r4e,AppChoiceChip:o4e,AppCodeBlock:O4e,AppColorField:A4e,AppColumnMenu:j4e,AppCommandPalette:V4e,AppCommentThread:f8e,AppCompareTable:E8e,AppConfirmDialog:Qc,AppConsentBanner:u5e,AppContextMenu:C5e,AppCopyButton:D5e,AppCountryFlag:k5e,AppDashboardCell:M5e,AppDashboardGrid:N5e,AppDataTable:uet,AppDatePicker:met,AppDateRangePicker:jet,AppDateTimePicker:Ket,AppDescriptions:Qet,AppDetailPane:$et,AppDrawer:htt,AppDropZone:gtt,AppDropdown:gl,AppDueDate:Ctt,AppEmptyState:il,AppEntryGrid:Itt,AppErrorBoundary:Utt,AppErrorSummary:Wtt,AppFileAttachment:Xtt,AppFilePicker:xot,AppFileTiles:wot,AppFileViewer:kot,AppFilterBar:_st,AppFloatingButton:Est,AppFloatingDock:jst,AppForm:ave,AppFormActions:Nst,AppFormRow:Fst,AppFormSection:Hst,AppFormulaSteps:Gst,AppGantt:xct,AppHoverCard:Mct,AppIcon:J,AppIdleTimeoutDialog:Pct,AppImagePicker:ylt,AppInfoTip:Hc,AppInlineEdit:Plt,AppInput:Gc,AppInputGroup:Llt,AppKanban:gut,AppKbd:BU,AppKpiTile:Nut,AppLeadPopup:adt,AppLightbox:bdt,AppLink:lB,AppLoadMore:xdt,AppMarkdown:EB,AppMentionInput:wdt,AppMeter:Adt,AppMetricStrip:Fdt,AppModal:Jc,AppMonthPicker:Rdt,AppNavList:Wdt,AppNavigationMenu:Udt,AppNotificationCenter:vft,AppNumberInput:kft,AppOnboardingChecklist:Hft,AppOrgTree:upt,AppOtpInput:vpt,AppPageHeader:jpt,AppPhoneNumberInput:cbt,AppPopover:Vc,AppPricingCard:lbt,AppProgress:al,AppQrCode:Nbt,AppQueryBuilder:Mxt,AppRadio:Nxt,AppRadioGroup:Fxt,AppRating:Gxt,AppRecordPager:Qxt,AppRelativeTime:oSt,AppRepeater:cSt,AppRequiredMark:Uc,AppResourceCard:lSt,AppResult:KU,AppRichText:uFt,AppRouteError:ztt,AppRowActions:H5e,AppSavedViews:_Ft,AppScoreScale:vFt,AppScrollbar:yFt,AppSearch:eJ,AppSectionCallToAction:wFt,AppSectionFaq:DFt,AppSectionFeatures:kFt,AppSectionHero:AFt,AppSectionLeadCapture:LFt,AppSectionLogos:zFt,AppSectionPricing:BFt,AppSectionTestimonials:VFt,AppSegmented:xz,AppSelect:XH,AppSeoHead:WFt,AppShell:vIt,AppShortcutLegend:UIt,AppShowMore:YIt,AppSkeleton:YV,AppSkeletonLines:QIt,AppSkeletonRows:U5e,AppSlider:sLt,AppSortableList:SLt,AppSparkline:Cut,AppSpinner:Jz,AppSplash:wLt,AppSplitButton:kLt,AppSplitView:LLt,AppStatusBadge:RLt,AppStepper:KLt,AppSwitch:Not,AppTablePagination:ZH,AppTableToolbar:qLt,AppTabs:rft,AppTextarea:MFt,AppThemeToggle:YLt,AppTimePicker:fRt,AppTimeline:cRt,AppToast:gRt,AppToolbar:vRt,AppTooltip:es,AppTour:Lzt,AppTransferList:eBt,AppTreePicker:FBt,AppTreeView:ZBt,AppTruncate:nVt,AppUpdateBar:iVt,AppWhatsNew:mVt,AppWizard:LVt,AppWorkspaceSwitcher:VVt,AppYearPicker:qVt},markers:{AppAccordion:`AppAccordion`,AppAccountSwitcher:`AppAccountSwitcher`,AppActionIcon:`AppActionIcon`,AppAlert:`AppAlert`,AppAsyncBlock:`AppAsyncBlock`,AppAuthLayout:`AppAuthLayout`,AppAvatar:`AppAvatar`,AppAvatarGroup:`AppAvatarGroup`,AppBadge:`AppBadge`,AppBanner:`AppBanner`,AppBreadcrumbs:`AppBreadcrumbs`,AppButton:`AppButton`,AppButtonGroup:`AppButtonGroup`,AppCalendar:`AppCalendar`,AppCard:`AppCard`,AppCarousel:`AppCarousel`,AppCell:`AppCell`,AppChart:`AppChart`,AppChartCard:`AppChartCard`,AppCheckbox:`AppCheckbox`,AppChip:`AppChip`,AppChipGroup:`AppChipGroup`,AppChoiceCard:`AppChoiceCard`,AppChoiceChip:`AppChoiceChip`,AppCodeBlock:`AppCodeBlock`,AppColorField:`AppColorField`,AppColumnMenu:`AppColumnMenu`,AppCommandPalette:`AppCommandPalette`,AppCommentThread:`AppCommentThread`,AppCompareTable:`AppCompareTable`,AppConfirmDialog:`AppConfirmDialog`,AppConsentBanner:`AppConsentBanner`,AppContextMenu:`AppContextMenu`,AppCopyButton:`AppCopyButton`,AppCountryFlag:`AppCountryFlag`,AppDashboardCell:`AppDashboardCell`,AppDashboardGrid:`AppDashboardGrid`,AppDataTable:`AppDataTable`,AppDatePicker:`AppDatePicker`,AppDateRangePicker:`AppDateRangePicker`,AppDateTimePicker:`AppDateTimePicker`,AppDescriptions:`AppDescriptions`,AppDetailPane:`AppDetailPane`,AppDrawer:`AppDrawer`,AppDropZone:`AppDropZone`,AppDropdown:`AppDropdown`,AppDueDate:`AppDueDate`,AppEmptyState:`AppEmptyState`,AppEntryGrid:`AppEntryGrid`,AppErrorSummary:`AppErrorSummary`,AppFileAttachment:`AppFileAttachment`,AppFilePicker:`AppFilePicker`,AppFileTiles:`AppFileTiles`,AppFileViewer:`AppFileViewer`,AppFilterBar:`AppFilterBar`,AppFloatingButton:`AppFloatingButton`,AppFloatingDock:`AppFloatingDock`,AppForm:`AppForm`,AppFormActions:`AppFormActions`,AppFormRow:`AppFormRow`,AppFormSection:`AppFormSection`,AppFormulaSteps:`AppFormulaSteps`,AppGantt:`AppGantt`,AppHoverCard:`AppHoverCard`,AppIcon:`AppIcon`,AppIdleTimeoutDialog:`AppIdleTimeoutDialog`,AppImagePicker:`AppImagePicker`,AppInfoTip:`AppInfoTip`,AppInlineEdit:`AppInlineEdit`,AppInput:`AppInput`,AppInputGroup:`AppInputGroup`,AppKanban:`AppKanban`,AppKbd:`AppKbd`,AppKpiTile:`AppKpiTile`,AppLeadPopup:`AppLeadPopup`,AppLightbox:`AppLightbox`,AppLink:`AppLink`,AppLoadMore:`AppLoadMore`,AppMarkdown:`AppMarkdown`,AppMentionInput:`AppMentionInput`,AppMeter:`AppMeter`,AppMetricStrip:`AppMetricStrip`,AppModal:`AppModal`,AppMonthPicker:`AppMonthPicker`,AppNavList:`AppNavList`,AppNavigationMenu:`AppNavigationMenu`,AppNotificationCenter:`AppNotificationCenter`,AppNumberInput:`AppNumberInput`,AppOnboardingChecklist:`AppOnboardingChecklist`,AppOrgTree:`AppOrgTree`,AppOtpInput:`AppOtpInput`,AppPageHeader:`AppPageHeader`,AppPhoneNumberInput:`AppPhoneNumberInput`,AppPopover:`AppPopover`,AppPricingCard:`AppPricingCard`,AppProgress:`AppProgress`,AppQrCode:`AppQrCode`,AppQueryBuilder:`AppQueryBuilder`,AppRadio:`AppRadio`,AppRadioGroup:`AppRadioGroup`,AppRating:`AppRating`,AppRecordPager:`AppRecordPager`,AppRelativeTime:`AppRelativeTime`,AppRepeater:`AppRepeater`,AppRequiredMark:`AppRequiredMark`,AppResourceCard:`AppResourceCard`,AppResult:`AppResult`,AppRichText:`AppRichText`,AppRouteError:`AppRouteError`,AppRowActions:`AppRowActions`,AppSavedViews:`AppSavedViews`,AppScoreScale:`AppScoreScale`,AppScrollbar:`AppScrollbar`,AppSearch:`AppSearch`,AppSectionCallToAction:`AppSectionCallToAction`,AppSectionFaq:`AppSectionFaq`,AppSectionFeatures:`AppSectionFeatures`,AppSectionHero:`AppSectionHero`,AppSectionLeadCapture:`AppSectionLeadCapture`,AppSectionLogos:`AppSectionLogos`,AppSectionPricing:`AppSectionPricing`,AppSectionTestimonials:`AppSectionTestimonials`,AppSegmented:`AppSegmented`,AppSelect:`AppSelect`,AppShell:`AppShell`,AppShortcutLegend:`AppShortcutLegend`,AppShowMore:`AppShowMore`,AppSkeleton:`AppSkeleton`,AppSkeletonLines:`AppSkeletonLines`,AppSlider:`AppSlider`,AppSortableList:`AppSortableList`,AppSparkline:`AppSparkline`,AppSpinner:`AppSpinner`,AppSplash:`AppSplash`,AppSplitButton:`AppSplitButton`,AppSplitView:`AppSplitView`,AppStatusBadge:`AppStatusBadge`,AppStepper:`AppStepper`,AppSwitch:`AppSwitch`,AppTablePagination:`AppTablePagination`,AppTableToolbar:`AppTableToolbar`,AppTabs:`AppTabs`,AppTextarea:`AppTextarea`,AppThemeToggle:`AppThemeToggle`,AppTimePicker:`AppTimePicker`,AppTimeline:`AppTimeline`,AppToast:`AppToast`,AppToolbar:`AppToolbar`,AppTooltip:`AppTooltip`,AppTour:`AppTour`,AppTransferList:`AppTransferList`,AppTreePicker:`AppTreePicker`,AppTreeView:`AppTreeView`,AppTruncate:`AppTruncate`,AppUpdateBar:`AppUpdateBar`,AppWhatsNew:`AppWhatsNew`,AppWizard:`AppWizard`,AppWorkspaceSwitcher:`AppWorkspaceSwitcher`,AppYearPicker:`AppYearPicker`},tokenValues:{color:{bg:{light:`#f4f6f8`,dark:`#0f1117`},"bg-muted":{light:`#f5f6fa`,dark:`#232733`},"bg-subtle":{light:`#f9fbfc`,dark:`#0d0f15`},border:{light:`#ebedf3`,dark:`#3d4554`},"border-strong":{light:`#c4cada`,dark:`#515b6e`},"border-subtle":{light:`#f4f6f8`,dark:`#3d455480`},"chart-1":{light:`#4f46e5`,dark:`#aeaaf5`},"chart-2":{light:`#0a7979`,dark:`#0a7979`},"chart-3":{light:`#7c3aed`,dark:`#a78bfa`},"chart-4":{light:`#2462eb`,dark:`#3987e5`},"chart-5":{light:`#e87ba4`,dark:`#d55181`},"chart-6":{light:`#4b5675`,dark:`#8a90a0`},"chart-7":{light:`#818cf8`,dark:`#7a90ef`},"chart-8":{light:`#a78bfa`,dark:`#8dc2ff`},"chart-axis":{light:`#c4cada`,dark:`#515b6e`},"chart-diverging-high":{light:`#2a78d6`,dark:`#3987e5`},"chart-diverging-low":{light:`#e34948`,dark:`#e66767`},"chart-diverging-mid":{light:`#c4cada`,dark:`#3a414f`},"chart-grid":{light:`#ebedf3`,dark:`#3d4554`},"chart-label":{light:`#626a82`,dark:`#8a90a0`},"chart-neutral":{light:`#99a1b7`,dark:`#5d6475`},"chart-seq-0":{light:`#f5f6fa`,dark:`#20242f`},"chart-seq-1":{light:`#e0e7ff`,dark:`#262c45`},"chart-seq-2":{light:`#c7d2fe`,dark:`#2f3a70`},"chart-seq-3":{light:`#a5b4fc`,dark:`#3b4ba0`},"chart-seq-4":{light:`#818cf8`,dark:`#5168d2`},"chart-seq-5":{light:`#6366f1`,dark:`#7a90ef`},"chart-seq-6":{light:`#4338ca`,dark:`#b3c1f7`},danger:{light:`#e82646`,dark:`#f87171`},"danger-border":{light:`#fdbfce`,dark:`#f8717166`},"danger-pressed":{light:`#e82646`,dark:`#f98686`},"danger-soft":{light:`#ffeaef`,dark:`#e826462e`},"danger-strong":{light:`#c81340`,dark:`#ee5c74`},"danger-strong-hover":{light:`#ab1036`,dark:`#f17489`},"danger-text":{light:`#cf1735`,dark:`#ee5c74`},"danger-text-on-soft":{light:`#cf1735`,dark:`#f07287`},"field-bg":{light:`#f9fbfc`,dark:`#232733`},"field-border":{light:`#dfe2ea`,dark:`#3d4554`},"field-border-focus":{light:`#a5b4fc`,dark:`#aeaaf5`},"field-border-hover":{light:`#c4cada`,dark:`#515b6e`},"focus-ring":{light:`#4f46e5`,dark:`#aeaaf5`},"focus-ring-soft":{light:`#4f46e540`,dark:`#aeaaf540`},info:{light:`#056ee9`,dark:`#60a5fa`},"info-border":{light:`#bbdbff`,dark:`#60a5fa66`},"info-pressed":{light:`#056ee9`,dark:`#78b3fb`},"info-soft":{light:`#e9f3ff`,dark:`#056ee92e`},"info-strong":{light:`#056ee9`,dark:`#4492ef`},"info-text":{light:`#1460ba`,dark:`#4492ef`},"info-text-on-soft":{light:`#1460ba`,dark:`#5da1f1`},link:{light:`#4f46e5`,dark:`#aeaaf5`},"link-hover":{light:`#4338ca`,dark:`#c3c0f8`},neutral:{light:`#07143714`,dark:`#e6e8ee14`},"neutral-hover":{light:`#0714371f`,dark:`#e6e8ee1f`},"neutral-pressed":{light:`#07143729`,dark:`#e6e8ee29`},"neutral-soft":{light:`#626a8229`,dark:`#8a90a029`},"neutral-text":{light:`#4b5675`,dark:`#b4b9c6`},"offline-fill":{light:`#e82646`,dark:`#e82646`},"on-danger":{light:`#ffffff`,dark:`#0f0f1a`},"on-danger-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-info":{light:`#ffffff`,dark:`#0f0f1a`},"on-info-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-neutral":{light:`#071437`,dark:`#e6e8ee`},"on-primary":{light:`#ffffff`,dark:`#0f0f0f`},"on-scrim":{light:`#ffffff`,dark:`#ffffff`},"on-success":{light:`#ffffff`,dark:`#0f0f1a`},"on-success-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-surface-dark":{light:`#ffffff`,dark:`#ffffff`},"on-surface-dark-muted":{light:`#babdc7`,dark:`#babdc7`},"on-warning":{light:`#ffffff`,dark:`#0f0f1a`},"on-warning-strong":{light:`#ffffff`,dark:`#0f0f0f`},"online-fill":{light:`#04b440`,dark:`#04b440`},primary:{light:`#4f46e5`,dark:`#aeaaf5`},"primary-hover":{light:`#4338ca`,dark:`#c3c0f8`},"primary-soft":{light:`#e0e7ff`,dark:`#4f46e533`},"primary-text":{light:`#4f46e5`,dark:`#aeaaf5`},"primary-wash":{light:`#4f46e514`,dark:`#aeaaf514`},"primary-wash-strong":{light:`#4f46e533`,dark:`#aeaaf533`},"progress-label":{light:`#ffffff`,dark:`#0f0f0f`},"progress-track":{light:`#e1e5ee`,dark:`#323845`},scrim:{light:`#07143773`,dark:`#00000073`},"scrim-strong":{light:`#0714379e`,dark:`#0000009e`},scrollbar:{light:`#919eab73`,dark:`#ffffff2e`},"scrollbar-active":{light:`#919eabd9`,dark:`#ffffff66`},"scrollbar-hover":{light:`#919eaba6`,dark:`#ffffff47`},"shell-accent":{light:`#f4a261`,dark:`#f4a261`},"shell-accent-ring":{light:`#f4a26140`,dark:`#f4a26140`},"shell-active":{light:`#ffffff1f`,dark:`#ffffff1f`},"shell-bg":{light:`#1f2d5c`,dark:`#1f2d5c`},"shell-bg-deep":{light:`#141e42`,dark:`#141e42`},"shell-bg-raised":{light:`#2c3f7a`,dark:`#2c3f7a`},"shell-border":{light:`#ffffff38`,dark:`#ffffff38`},"shell-border-strong":{light:`#ffffff66`,dark:`#ffffff66`},"shell-fill":{light:`#ffffff1f`,dark:`#ffffff1f`},"shell-fill-strong":{light:`#ffffff2e`,dark:`#ffffff2e`},"shell-fill-subtle":{light:`#ffffff14`,dark:`#ffffff14`},"shell-hover":{light:`#ffffff12`,dark:`#ffffff12`},"shell-rule":{light:`#ffffff1a`,dark:`#ffffff1a`},"shell-text":{light:`#c9d1e6`,dark:`#c9d1e6`},"shell-text-muted":{light:`#8792b4`,dark:`#8792b4`},"shell-text-strong":{light:`#ffffff`,dark:`#ffffff`},success:{light:`#04b440`,dark:`#30c780`},"success-border":{light:`#baeecc`,dark:`#30c78066`},"success-pressed":{light:`#04b440`,dark:`#4fcf93`},"success-soft":{light:`#e8faee`,dark:`#04b4402e`},"success-strong":{light:`#0e7531`,dark:`#43c770`},"success-text":{light:`#0e7531`,dark:`#43c770`},"success-text-on-soft":{light:`#0e7531`,dark:`#5cce83`},surface:{light:`#ffffff`,dark:`#181b23`},"surface-dark":{light:`#071437`,dark:`#071437`},"surface-dark-border":{light:`#2a3553`,dark:`#2a3553`},"surface-ink":{light:`#0b0e16`,dark:`#0b0e16`},"surface-inverse":{light:`#071437`,dark:`#e6e8ee`},"surface-inverse-elevated":{light:`#1d2949`,dark:`#d2d5de`},"surface-inverse-raised":{light:`#132041`,dark:`#dbdde5`},"surface-inverse-wash-12":{light:`#ffffff1f`,dark:`#0714371f`},"surface-inverse-wash-24":{light:`#ffffff3d`,dark:`#0714373d`},"surface-inverse-wash-4":{light:`#ffffff0a`,dark:`#0714370a`},"surface-inverse-wash-8":{light:`#ffffff14`,dark:`#07143714`},text:{light:`#071437`,dark:`#e6e8ee`},"text-body":{light:`#252f4a`,dark:`#e6e8ee`},"text-inverse":{light:`#ffffff`,dark:`#071437`},"text-muted":{light:`#4b5675`,dark:`#b4b9c6`},"text-subtle":{light:`#626a82`,dark:`#8a90a0`},thumb:{light:`#ffffff`,dark:`#3a3e49`},warning:{light:`#dfa000`,dark:`#fbbf24`},"warning-border":{light:`#fde8b3`,dark:`#fbbf2466`},"warning-pressed":{light:`#dfa000`,dark:`#fcc945`},"warning-soft":{light:`#fff8e6`,dark:`#dfa0002e`},"warning-strong":{light:`#9a6b00`,dark:`#e7b840`},"warning-strong-hover":{light:`#855c00`,dark:`#ebc35d`},"warning-text":{light:`#876100`,dark:`#e7b840`},"warning-text-on-soft":{light:`#876100`,dark:`#eac159`}},space:{"2xl":32,"3xl":48,"4xl":64,lg:16,md:12,none:0,sm:8,xl:24,xs:4,xxs:2},radius:{"2xl":18,"3xl":20,lg:14,md:10,none:0,pill:9999,sm:8,xl:16},shadow:{card:null,drawer:{x:0,y:24,blur:60,spread:-16,color:`rgba(7, 20, 55, 0.28)`,elevation:12},elevated:{x:0,y:2,blur:8,spread:-2,color:`rgba(7, 20, 55, 0.10)`,elevation:4},modal:{x:0,y:24,blur:60,spread:-16,color:`rgba(7, 20, 55, 0.28)`,elevation:12},popover:{x:0,y:8,blur:28,spread:-6,color:`rgba(7, 20, 55, 0.14)`,elevation:8}},font:{display:{family:`Webority Serif`,fallback:`Cambria, Georgia, Times New Roman, Noto Serif, serif`},mono:{family:`JetBrains Mono`,fallback:`SFMono-Regular, Menlo, Monaco, Consolas, monospace`},ui:{family:`Webority Sans`,fallback:`Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif`}},text:{"2xl":{size:32,weight:null},"3xl":{size:44,weight:null},"4xl":{size:56,weight:null},"5xl":{size:72,weight:null},"6xl":{size:96,weight:null},"7xl":{size:119.95,weight:null},"8xl":{size:144,weight:null},base:{size:16.8,weight:null},lg:{size:20,weight:null},sm:{size:14,weight:null},xl:{size:24,weight:null},xs:{size:13,weight:null}},leading:{body:1.55,display:1.05,heading:1.2,lead:1.6,prose:1.7}},manifest:{kind:`WeborityWeb`,library:{name:`@webority/ui-react`,version:`0.178.2`},rendererProtocolVersion:14,platform:`Web`,kitModuleVersion:2,productKit:null,components:[{name:`AppAccordion`,marker:`AppAccordion`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the list.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The label every trigger carries as data-close-label, for a stylesheet to show while the pane is open. Omitted when unset.`},{name:`id`,type:`string`,required:!1,description:`Prefix for the generated pane ids. Set it when a pane needs a stable anchor to link to.`},{name:`items`,type:`array`,itemFields:[{name:`content`,type:`node`,required:!0,description:`The body that opens and closes.`},{name:`count`,type:`number`,required:!1,description:`A count chip after the title. Null shows none; 0 shows 0.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the pane, used by openItems. It defaults to the pane's position.`},{name:`open`,type:`boolean`,required:!1,description:`Starts the pane expanded.`},{name:`title`,type:`node`,required:!0,description:`The row that is always visible.`}],required:!1,description:`The panes, each with a title row and a content body.`,default:[]},{name:`multiple`,type:`boolean`,required:!1,description:`Allows more than one pane open at a time. Leave it off for a list the reader scans.`,default:!1},{name:`openItems`,type:`array`,required:!1,description:`The keys of the panes that start open. It replaces each item's own open flag and is read again when its content changes. Without multiple only the first key opens.`},{name:`variant`,type:`enum`,enum:[`bordered`,`flat`],required:!1,description:`bordered (default) | flat: a text toggle with a leading chevron and an optional count chip, for a section header rather than a card of questions.`,default:`bordered`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A page has several self-contained blocks and a reader wants one of them.`,`The content is secondary: reference detail, an FAQ answer, an advanced setting.`,`Collapsing keeps a long page scannable rather than hiding something essential.`],whenNot:[{text:`The sections are alternative views of the same thing.`,instead:`AppTabs`},{text:`The content needs the user's full attention before they continue.`,instead:`AppModal`},{text:`Every pane will be read anyway, so collapsing just adds clicks.`,instead:`plain sections with headings`},{text:`It is a short helper text attached to a field label.`,instead:`AppInfoTip`}],do:[{title:`Titles that name what is inside`,note:`Write the title as the question or the thing the reader is looking for. They are scanning titles, not content.`,example:[{component:`AppAccordion`,props:{items:[{key:`g`,title:`Can I revise a report after it is issued?`,content:`Yes.`}]}}]}],dont:[{title:`Titles that name what is inside`,note:`"More information" says nothing about what is inside, so the reader has to open every pane to find what they want.`,example:[{component:`AppAccordion`,props:{items:[{key:`b`,title:`More information`,content:`Yes.`}]}}]}],a11y:[`Each title is a native button with aria-expanded and aria-controls pointing at its pane, so Enter and Space toggle it.`,`Each pane is a section labelled by its title button.`,`A closed pane stays in the page but is inert and hidden from assistive technology until it opens.`]}},{name:`AppAccountSwitcher`,marker:`AppAccountSwitcher`,acceptsChildren:!1,props:[{name:`accounts`,type:`array`,itemFields:[{name:`badge`,type:`string`,required:!1,description:`A short label at the end of the row, such as the plan.`},{name:`description`,type:`string`,required:!1,description:`A second line under the name, such as the role or the company.`},{name:`href`,type:`url`,required:!1,description:`Where the row goes. Without it the row is a button.`},{name:`id`,type:`string`,required:!0,description:`The account's id. currentId is matched against it.`},{name:`name`,type:`string`,required:!0,description:`The account's name, shown in its row.`},{name:`photo`,type:`url`,required:!1,description:`The account's photo. Without it the avatar shows the name's initials.`}],required:!1,description:`The accounts a person can switch to. A row with an href navigates; a row without one calls onSelect(account) on React and does no navigation. The current account is marked with a tick and aria-current.`,default:[]},{name:`currentId`,type:`string`,required:!1,description:`The id of the current account. It sets the tick and aria-current, and falls back to the first account when it matches none.`},{name:`label`,type:`string`,required:!1,description:`The heading above the list. It is also the group's accessible name.`,default:`Switch account`}],itemsTakeAction:[`accounts`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person signed in to more than one account, company or organisation, and needs to see which one is current.`,`The switcher sits in the user menu's section slot of AppShell.`],whenNot:[{text:`You are switching the workspace or tenant in the chrome.`,instead:`AppWorkspaceSwitcher`},{text:`You need a flat list of actions behind a trigger.`,instead:`AppDropdown`},{text:`You are picking a value into a form field.`,instead:`AppSelect`}],do:[{title:`Offer switching only with several accounts`,note:`The current account is ticked, and each other account is one row to switch to.`,example:[{component:`AppAccountSwitcher`,props:{accounts:[{id:`acme`,name:`Acme Corp`,description:`Owner`},{id:`globex`,name:`Globex Ltd`,badge:`Trial`}],currentId:`acme`}}]}],dont:[{title:`Offer switching only with several accounts`,note:`A list of one account. There is nothing to switch to, so the section does not earn its place.`,example:[{component:`AppAccountSwitcher`,props:{accounts:[{id:`acme`,name:`Acme Corp`}],currentId:`acme`}}]}],a11y:[`The list is a group named by label.`,`The current account carries aria-current and a tick, so the state is not shown by colour alone.`,`A row with an href is a link; a row without one is a button.`]}},{name:`AppActionIcon`,marker:`AppActionIcon`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`The file types the chooser offers. File mode only.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the control.`,default:``},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`],required:!1,description:`How much room surrounds the glyph: comfortable keeps an 8px ring, compact 4px (a 16px glyph in a 24px disc).`,default:`comfortable`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the action off.`,default:!1},{name:`href`,type:`url`,required:!1,description:`Makes the action a link to this address.`},{name:`icon`,type:`icon`,required:!0,description:`The glyph, given as a semantic icon name.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named icon.`},{name:`label`,type:`string`,required:!0,description:`The accessible name of the control. It also shows as a tooltip on hover and focus.`},{name:`multiple`,type:`boolean`,required:!1,description:`Allows several files. File mode only.`,default:!1},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs this action, such as J or E. It is drawn as a key chip in the tooltip.`},{name:`size`,type:`number`,required:!1,description:`The glyph size in px. The disc around it scales with it.`,default:20},{name:`tone`,type:`enum`,enum:[`danger`,`neutral`],required:!1,description:`danger draws a destructive tint. neutral mutes the ink and the hover surface, for an action on a card or a quiet surface.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The side the tooltip prefers. Auto picks the side with the most room.`,default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A row or toolbar needs a compact action and the icon is unambiguous: edit, delete, view, more.`,`Space is tight and a labelled button would crowd the layout.`,`The action recurs on every row, so users learn the icon once.`],whenNot:[{text:`The action is the primary thing on the screen.`,instead:`AppButton`},{text:`You need several actions behind one trigger.`,instead:`AppDropdown`},{text:`The meaning is not obvious from an icon alone.`,instead:`a button with a visible label`},{text:`It toggles a single on/off setting.`,instead:`AppSwitch`}],do:[{title:`Collapse the extra actions`,note:`When a row has more than two or three actions, collapse the extras behind a single "more" trigger.`,example:[{component:`AppActionIcon`,props:{icon:`more-horizontal`,label:`More actions`}}]},{title:`Use a conventional glyph`,note:`A recognisable, conventional glyph. A trash can reads as "delete" with no thinking.`,example:[{component:`AppActionIcon`,props:{icon:`trash-2`,label:`Delete`}}]}],dont:[{title:`Collapse the extra actions`,note:`Five icons crammed in a row is a guessing game, with too many targets to scan at a glance.`,example:[{component:`AppActionIcon`,props:{icon:`eye`,label:`View`}},{component:`AppActionIcon`,props:{icon:`pencil`,label:`Edit`}},{component:`AppActionIcon`,props:{icon:`copy`,label:`Duplicate`}},{component:`AppActionIcon`,props:{icon:`share-2`,label:`Share`}},{component:`AppActionIcon`,props:{icon:`trash-2`,label:`Delete`,tone:`danger`}}]},{title:`Use a conventional glyph`,note:`An obscure glyph for a common action makes the user hover and hope. Stick to the conventional icon.`,example:[{component:`AppActionIcon`,props:{icon:`triangle`,label:`Delete`}}]}],a11y:[`The label is the accessible name of the control and also shows as a tooltip on hover and focus.`,`A shortcut is announced through aria-keyshortcuts; the page binds the key itself.`,`A disabled link keeps role link with aria-disabled and leaves the tab order; a disabled button uses the native disabled state.`,`In file mode the control is a button and the hidden file input is aria-hidden and outside the tab order.`]}},{name:`AppAlert`,marker:`AppAlert`,acceptsChildren:!0,props:[{name:`accent`,type:`boolean`,required:!1,description:`A thick left edge in the tone colour, marking the alert as an aside.`,default:!1},{name:`action`,type:`node`,required:!1,description:`A trailing action pinned to the right, usually a button.`},{name:`bordered`,type:`boolean`,required:!1,description:`Draws the soft border of the tone. False keeps only the tint fill.`,default:!0},{name:`className`,type:`string`,required:!1,description:`Extra classes on the alert.`,default:``},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows the close button. It is on by default when a close handler is set.`},{name:`icon`,type:`icon`,required:!1,description:`A leading glyph, given as a semantic icon name. It defaults to the glyph of the tone; pass null for no badge.`},{name:`iconSize`,type:`number`,required:!1,description:`The badge glyph's width and height in px. Unset, it follows size.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named icon. It does not change an image.`},{name:`image`,type:`string`,required:!1,description:`A custom image URL shown in the badge instead of the icon glyph.`},{name:`imageAlt`,type:`string`,required:!1,description:`Alt text for the custom image.`,default:``},{name:`imageSize`,type:`number`,required:!1,description:`Width and height of the image badge in px. Unset, it follows size.`},{name:`role`,type:`enum`,enum:[`alert`,`none`,`status`],required:!1,description:`Status is for notices that must not interrupt a screen reader. None is for explanatory page content.`,default:`alert`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Sm is a compact single line. Lg is roomier, with a larger heading, body and badge.`,default:`md`},{name:`title`,type:`node`,required:!1,description:`A bold heading line above the body.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`The status tone. Neutral is a plain notice in ink on a grey surface, with no semantic colour.`,default:`info`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A message needs to persist on the page while its cause is true: a form error, a trial warning.`,`You are stating status inline, in context, next to the thing it concerns.`,`The user should be able to re-read it. It is not a fleeting confirmation.`,`You are explaining how something works, as page content (accent with role "none").`],whenNot:[{text:`The feedback is brief and self-dismissing, such as "Saved" or "Copied".`,instead:`toast`},{text:`It is a small count or a one-word label.`,instead:`AppBadge`},{text:`It maps a status enum to a coloured pill.`,instead:`AppStatusBadge`},{text:`It is a help hint tied to a single field label.`,instead:`AppInfoTip`}],do:[{title:`Match the tone to the message`,note:`Match the tone to intent and say what to do next. A danger alert names the problem and the recovery.`,example:[{component:`AppAlert`,props:{tone:`danger`},children:`We couldn't save your changes: check the highlighted fields and try again.`}]},{title:`Use info for a neutral notice`,note:`A neutral, informational notice uses the info tone: calm, not alarming.`,example:[{component:`AppAlert`,props:{tone:`info`},children:`Reports use the latest IEC 62305-2 methodology.`}]}],dont:[{title:`Match the tone to the message`,note:`A success (green) tone on an error message contradicts the words. The colour lies about what happened.`,example:[{component:`AppAlert`,props:{tone:`success`},children:`Something went wrong while saving.`}]},{title:`Use info for a neutral notice`,note:`A warning (amber) tone on a purely informational message implies a problem that is not there.`,example:[{component:`AppAlert`,props:{tone:`warning`},children:`Reports use the latest IEC 62305-2 methodology.`}]}],a11y:[`The alert role is set by default, so assistive technology announces the alert as it appears; pass status for a notice that must not interrupt.`,`Role none removes the role, so an explanatory note reads as ordinary page content.`,`A custom image takes its alt text from imageAlt, which is empty by default.`]}},{name:`AppAsyncBlock`,marker:`AppAsyncBlock`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the wrapper.`,default:``},{name:`empty`,type:`node`,required:!1,description:`Content of the empty state. Without it, an empty state with the emptyTitle text shows.`},{name:`emptyTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Nothing here yet`},{name:`errorTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`That didn't load`},{name:`loadingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Loading`},{name:`retryLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Try again`},{name:`skeleton`,type:`node`,required:!1,description:`A loading placeholder shaped like the content. Without it a thin indeterminate progress line shows.`},{name:`state`,type:`object`,required:!0,description:`What the screen is showing: one DataState from useDataState, with status idle, loading, error, empty or data. Idle is a skipped query and draws nothing.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A screen fetches data and must show loading, error and empty states consistently.`,`You want one place that switches between those states from one status value, instead of nested ternaries.`],whenNot:[{text:`Only one state ever applies, such as a button submit.`,instead:`a button's loading prop`},{text:`The empty body of a data table specifically.`,instead:`AppEmptyState variant="table"`},{text:`The whole app is booting, not one screen.`,instead:`AppSplash`}],do:[{title:`Shape the skeleton like the content`,note:`A skeleton shaped like the content that is coming. The layout does not jump on arrival.`,example:[{component:`AppAsyncBlock`,props:{state:{status:`loading`},skeleton:{component:`div`,children:[{component:`AppSkeleton`,props:{width:`70%`,height:16}},{component:`AppSkeleton`,props:{width:`100%`,height:12}}]}}}]},{title:`Use the shared loading state`,note:`The shared loading state owns the loading, error and empty handling, so each screen does not hand-roll its own.`,example:[{component:`AppAsyncBlock`,props:{state:{status:`loading`}}}]}],dont:[{title:`Shape the skeleton like the content`,note:`A single tall block that matches no part of the content makes the layout jump when the data arrives.`,example:[{component:`AppAsyncBlock`,props:{state:{status:`loading`},skeleton:{component:`AppSkeleton`,props:{width:`100%`,height:300}}}}]},{title:`Use the shared loading state`,note:`A bare "loading…" string hand-rolled per screen is inconsistent, and it skips the shared empty and error handling entirely.`,example:[{component:`div`,children:`loading…`}]}],a11y:[`Each drawn state is marked with a data-state attribute on the wrapper: loading, error, empty or data. Idle draws no wrapper.`,`With no skeleton, the loading state is an indeterminate progress bar labelled Loading.`,`The error state is an empty state with a Try again button that calls the state's retry.`,`The component sets no aria attributes of its own.`]}},{name:`AppAuthLayout`,marker:`AppAuthLayout`,acceptsChildren:!0,props:[{name:`aside`,type:`node`,required:!1,description:`The panel beside the form. It is drawn only for variant split, and only from the lg breakpoint up.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`footer`,type:`node`,required:!1,description:`Small print or a link under the form.`},{name:`logo`,type:`node`,required:!1,description:`The brand mark above the form, usually an img with width and height.`},{name:`maxWidth`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`],required:!1,description:`The widest size of the form column: a preset or an exact width in px. The presets are 360, 420 and 520 px.`,default:`md`},{name:`variant`,type:`enum`,enum:[`centred`,`split`],required:!1,description:`The form alone in the middle, or the form beside an aside panel.`,default:`centred`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A sign-in, sign-up, forgot-password or verification page.`,`Any signed-out page that is one form on its own.`],whenNot:[{text:`A short outcome after an action (confirmed, not found, no access).`,instead:`AppResult`},{text:`The boot screen while the session loads.`,instead:`AppSplash`},{text:`A form inside a signed-in page.`,instead:`AppCard`}],do:[],dont:[],a11y:[`The layout draws no heading: put the one h1 of the page in the children.`,`The aside is an aside landmark and is hidden below the lg breakpoint, so nothing in it may be the only way to do something.`,`The logo is an image the caller labels with alt text; use an empty alt if the heading already names the product.`]}},{name:`AppAvatar`,marker:`AppAvatar`,acceptsChildren:!1,props:[{name:`badge`,type:`node`,required:!1,description:`A small count or marker in the top-right corner.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the avatar.`,default:``},{name:`href`,type:`url`,required:!1,description:`Makes the avatar a link.`},{name:`icon`,type:`icon`,required:!1,description:`The face shown instead of initials when there is no photo: a library icon name or any node.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The icon style of a named icon. A node icon is drawn as given.`,default:`linear`},{name:`label`,type:`string`,required:!1,description:`Text shown as a tooltip above the avatar on hover or focus. It is also the accessible name of a link or button avatar.`},{name:`name`,type:`string`,required:!1,description:`The person's name. Used for the initials fallback and the image alt text.`},{name:`photoLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Profile photo`},{name:`ring`,type:`boolean`,required:!1,description:`A ring around the avatar.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`,`square`],required:!1,description:`The disc shape.`,default:`circle`},{name:`size`,type:`stringOrNumber`,required:!1,description:`A preset from xs to 2xl, or a custom pixel size as a number or any CSS length.`,default:`md`},{name:`src`,type:`string`,required:!1,description:`The profile photo URL, usually a data or object URL. When set, the photo shows over the initials.`},{name:`status`,type:`enum`,enum:[`away`,`busy`,`none`,`offline`,`online`],required:!1,description:`A presence dot at the lower right.`,default:`none`},{name:`tone`,type:`enum`,enum:[`auto`,`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the initials face. auto gives each name a stable colour.`,default:`primary`},{name:`tooltip`,type:`string`,required:!1,description:`A tooltip on hover or focus that flips to stay on screen. Distinct from label, which is a fixed bubble.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The preferred tooltip side. auto picks the side with the most room.`,default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are showing who a person is, such as a topbar account, a comment author or a team-list row.`,`A list of people needs a compact, recognisable identity marker.`,`A photo may be missing and you still want a stable, on-brand placeholder.`],whenNot:[{text:`You need a status marker, not a person.`,instead:`AppStatusBadge`},{text:`It is a decorative or brand image, not a person.`,instead:`a plain <img>`},{text:`You are showing a company logo.`,instead:`AppImagePicker`}],do:[{title:`Always pass a name`,note:`A name is always supplied, so the avatar shows meaningful initials and correct alt text.`,example:[{component:`AppAvatar`,props:{name:`Jane Doe`}}]},{title:`Beside the name it shows`,note:`The avatar sits next to the name it represents, so identity reads as one unit.`,example:[{component:`div`,props:{className:`d-flex align-items-center gap-2`},children:[{component:`AppAvatar`,props:{name:`Ravi Kumar`,src:`data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect width="80" height="80" fill="%234f46e5"/><circle cx="40" cy="32" r="14" fill="%23c7d2fe"/><rect x="16" y="52" width="48" height="28" rx="14" fill="%23c7d2fe"/></svg>`}},{component:`span`,props:{className:`fw-semibold`},children:`Ravi Kumar`}]}]},{title:`Use AppAvatar, not a plain image`,note:`AppAvatar keeps the shared shape and falls back to initials when the photo is missing.`,example:[{component:`AppAvatar`,props:{name:`Ravi Kumar`,tone:`auto`}}]}],dont:[{title:`Always pass a name`,note:`With no name and no photo the avatar can only render a bare question mark, which is useless to the eye and to a screen reader.`,example:[{component:`AppAvatar`}]},{title:`Beside the name it shows`,note:`On its own the avatar names no one, so the reader cannot tell whose row it is.`,example:[{component:`AppAvatar`,props:{name:`Ravi Kumar`}}]},{title:`Use AppAvatar, not a plain image`,note:`A hand-rolled round <img> drifts from the shared avatar shape and skips the initials fallback.`,example:[{component:`img`,props:{src:`data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect width="80" height="80" fill="%234f46e5"/><circle cx="40" cy="32" r="14" fill="%23c7d2fe"/><rect x="16" y="52" width="48" height="28" rx="14" fill="%23c7d2fe"/></svg>`,alt:`Ravi`,width:40,height:40,className:`rounded-circle`}}]}],a11y:[`A plain initials avatar is announced as an image named by label, else name; with a photo, the photo's alt text is the name, or 'Profile photo' when there is no name.`,`With href or onClick the whole avatar is one link or button named by label, else name, and the photo's alt text is empty.`,`With no name or label the avatar is hidden from assistive technology; the initials face, presence dot, badge and label bubble are always hidden from it.`]}},{name:`AppAvatarGroup`,marker:`AppAvatarGroup`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the group.`,default:``},{name:`moreLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The {count} token is the hidden count.`,default:`{count} more`},{name:`overflow`,type:`stringOrNumber`,required:!1,description:`The hidden count, shown as a +N chip after the avatars. Zero or unset shows no chip.`},{name:`size`,type:`stringOrNumber`,required:!1,description:`Sizes the whole row at once. Each avatar and the +N chip inherit it; an avatar with its own size still wins.`},{name:`spacing`,type:`enum`,enum:[`loose`,`normal`,`tight`],required:!1,description:`How far the avatars overlap.`,default:`normal`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Several people belong to one row or card, such as assignees, reviewers or attendees.`,`You want a compact identity cluster instead of a long list of names.`,`A list is longer than you want to show and a +N summary will do.`],whenNot:[{text:`You are showing a single person.`,instead:`AppAvatar`},{text:`You need a full, scannable list of people.`,instead:`AppDataTable`},{text:`The items are not people.`,instead:`AppBadge`}],do:[],dont:[],a11y:[`The group is a plain container with no role of its own; each avatar inside carries its own accessible name.`,`The +N chip is announced as an image named 'N more'.`]}},{name:`AppBadge`,marker:`AppBadge`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the badge.`,default:``},{name:`dot`,type:`boolean`,required:!1,description:`Shows the badge in its compact dot style.`,default:!1},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The badge colour.`},{name:`tooltip`,type:`string`,required:!1,description:`A tooltip on hover or focus that flips to stay on screen.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The preferred tooltip side. auto picks the side with the most room.`,default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A count sits beside a label, such as an unread inbox or a pending queue.`,`A short static tag marks something: New, Beta, Pro.`,`You need a tiny inline emphasis that fits on the same line as its text.`],whenNot:[{text:`You are showing a status mapped from an enum.`,instead:`AppStatusBadge`},{text:`The token should be removable (a filter or tag).`,instead:`AppChip`},{text:`It performs an action when clicked.`,instead:`AppButton`},{text:`It is a persistent inline message.`,instead:`AppAlert`}],do:[{title:`Keep badge text to a word or a number`,note:`A short count attached to its label. The badge reads instantly.`,example:[{component:`span`,props:{className:`d-inline-flex align-items-center gap-2`},children:[`Notifications `,{component:`AppBadge`,props:{tone:`danger`},children:`12`}]}]},{title:`Use one tone for one tag`,note:`A neutral New tag in one intentional tone.`,example:[{component:`AppBadge`,props:{tone:`primary`},children:`New`}]}],dont:[{title:`Keep badge text to a word or a number`,note:`A sentence in a badge is the wrong tool. Badges hold a word or a number, not prose.`,example:[{component:`AppBadge`,props:{tone:`primary`},children:`This item was updated 3 minutes ago by an editor`}]},{title:`Use one tone for one tag`,note:`The same label in three tones invents meaning that is not there. One tag, one tone.`,example:[{component:`AppBadge`,props:{tone:`success`},children:`New`},{component:`AppBadge`,props:{tone:`warning`},children:`New`},{component:`AppBadge`,props:{tone:`danger`},children:`New`}]}],a11y:[`The badge is a plain inline element with no role of its own, so the text inside it carries the meaning.`,`A tooltip opens on hover and on keyboard focus.`]}},{name:`AppBanner`,marker:`AppBanner`,acceptsChildren:!0,props:[{name:`action`,type:`node`,required:!1,description:`A button or link at the banner's right edge; it wraps below the message on a phone.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the banner.`,default:``},{name:`dismissLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Dismiss`},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows a close button that removes the banner.`,default:!1},{name:`icon`,type:`icon`,required:!1,description:`A leading icon: a library icon name or any node.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`The colour and intent of the banner.`,default:`info`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The message applies to the whole screen or app, not one section of it.`,`It should stay visible until the user dismisses it or the condition it reports ends.`,`It is the kind of thing every user of the page needs to see: maintenance, a trial ending, a new version.`],whenNot:[{text:`The message is about one section or form on the page.`,instead:`AppAlert`},{text:`The feedback is brief and self-dismissing, such as Saved or Copied.`,instead:`toast`},{text:`You are explaining how something works, not reporting a state.`,instead:`AppAlert`}],do:[{title:`Banner only for page-wide notices`,note:`A page-wide, time-bound notice every visitor needs to see, with a tone that matches its urgency.`,example:[{component:`AppBanner`,props:{tone:`warning`,icon:`alert-triangle`},children:`Scheduled maintenance begins at 11:00 PM IST tonight.`}]}],dont:[{title:`Banner only for page-wide notices`,note:`A field-level validation message belongs next to the field, not full-bleed across the page. That is AppAlert's job.`,example:[{component:`AppBanner`,props:{tone:`danger`},children:`Enter a valid email address in the field below.`}]}],a11y:[`The banner has role status, so a screen reader announces it politely when it appears.`,`The close button, shown with dismissible, is named Dismiss.`]}},{name:`AppBreadcrumbs`,marker:`AppBreadcrumbs`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the trail.`,default:``},{name:`items`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!1,description:`Where the crumb links. Ignored on the current page.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name, or a node drawn before the label.`},{name:`key`,type:`string`,required:!1,description:`A stable React key for the crumb. Defaults to the label and its position when omitted.`},{name:`label`,type:`node`,required:!0,description:`The crumb text.`},{name:`to`,type:`string`,required:!1,description:`A router path. It goes through the link component when one is given, otherwise it becomes a plain link.`}],required:!0,description:"The trail, root first, current page last. An item links when it has `href` or `to`, unless it is the current page."},{name:`maxItems`,type:`number`,required:!1,description:`Below md, show only the last this many crumbs, with an ellipsis menu holding the rest. A whole number of 1 or more. Unset shows the whole trail.`},{name:`moreLabel`,type:`string`,required:!1,description:`The accessible name of the ellipsis button.`,default:`Show hidden levels`},{name:`wrap`,type:`boolean`,required:!1,description:`false keeps the trail on one line; items do not wrap.`,default:!0}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The page sits several levels deep in a hierarchy the user might want to step back through.`,`You want to state, unambiguously, where the current page is in that hierarchy.`,`The trail is short: a handful of levels, not a full site map.`],whenNot:[{text:`The user is switching between peer views of the same record.`,instead:`AppTabs`},{text:`You need the app's persistent primary navigation.`,instead:`AppShell`},{text:`The flow is a sequence of steps to complete, not a place in a hierarchy.`,instead:`AppStepper`}],do:[{title:`Current page as plain text`,note:`Short labels, a real link on every ancestor, and the current page as plain text.`,example:[{component:`AppBreadcrumbs`,props:{items:[{icon:`house`,label:`Home`,href:`/`},{label:`Projects`,href:`/projects`},{label:`Acme Corp`}]}}]}],dont:[{title:`Current page as plain text`,note:`The current page still looks like the others. AppBreadcrumbs already prevents this by ignoring href on the last item, so this shape only happens if you fight the component.`,example:[{component:`AppBreadcrumbs`,props:{items:[{label:`Home`,href:`/`},{label:`Projects`,href:`/projects`},{label:`Acme Corp`,href:`/projects/acme`}]}}]}],a11y:[`The last item is the current page: it is text with aria-current page, never a link, unless the trail sits in a bar page header, where every crumb is a parent link.`,`An item with no target renders as a plain span, so it is never announced as a button with no link.`,`With maxItems, the hidden crumbs sit in an ellipsis menu below md, reachable by keyboard like any dropdown.`]}},{name:`AppButton`,marker:`AppButton`,acceptsChildren:!0,props:[{name:`animation`,type:`enum`,enum:[`expand`,`fill`,`glow`,`none`,`roll`,`sheen`],required:!1,description:`Hover animation; omit for the default sheen. roll rolls the label up and slides a trailing rightIcon through a round well.`},{name:`block`,type:`boolean`,required:!1,description:`Full width of its container.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the button.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the button.`,default:!1},{name:`href`,type:`url`,required:!1,description:`Render as a button-styled link (an <a href>) instead of a <button>; matches Razor <app-button href>.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named leftIcon / rightIcon.`,default:`linear`},{name:`leftIcon`,type:`icon`,required:!1,description:`An icon name, drawn in the icon set.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and disables the button while work runs; hides both icons.`,default:!1},{name:`pinRightIcon`,type:`boolean`,required:!1,description:`Pin the rightIcon (or the roll animation's icon well) to the button's end edge and centre the label; for a wide or full-width button.`,default:!1},{name:`rightIcon`,type:`icon`,required:!1,description:`An icon name, drawn in the icon set.`},{name:`shape`,type:`enum`,enum:[`pill`,`rounded`,`sharp`],required:!1,description:`Corner shape: the default rounded squircle, a fully rounded pill, or sharp square corners.`,default:`rounded`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs this action ("A", "E", "/"), drawn as a key chip: in the tooltip when the button has one, otherwise after the label. Sets aria-keyshortcuts; the page binds the key itself. Ignored on a static button.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size. xl is a marketing call to action: 55px tall with larger text, and 45px below 992px.`,default:`md`},{name:`static`,type:`boolean`,required:!1,description:`Render as a non-interactive element (a span) that keeps the button's chrome but does not click, focus or hover: a resolved or confirmation label (for example Verified) sized to sit where its action button was. Ignores loading, disabled, type and href.`,default:!1},{name:`to`,type:`string`,required:!1,description:`The router link the button navigates to, drawn as a link through the component's router link component.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic colour.`,default:`primary`},{name:`tooltip`,type:`string`,required:!1,description:`A collision-aware hover and focus tooltip (through AppTooltip and Popper) that flips to stay on screen. For a labelled button use it sparingly, since the label already says what it does; it is most useful on a terse or icon-led action.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Preferred tooltip side; auto picks the side with the most room.`,default:`auto`},{name:`type`,type:`enum`,enum:[`button`,`reset`,`submit`],required:!1,description:`The native button type; not emitted on a link-shaped button.`,default:`button`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Emphasis level: solid fill, soft tint, outline, ghost, link text, or glass.`,default:`solid`},{name:`vibrate`,type:`any`,required:!1,description:`Phones only: true buzzes 10 ms on a tap, or a whole number of milliseconds from 1 to 100. Not applied while disabled or loading; ignored where the browser has no vibration.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user performs an action: submit, save, open a dialog, confirm.`,`You need to mark the single most important action on a screen (one primary).`,`A destructive action needs to stand out (danger): pair it with a confirm dialog.`,`A form's submit button takes loading from the mutation state; that also blocks a second press.`],whenNot:[{text:`It navigates to another page or URL.`,instead:`a link`},{text:`It toggles a single on/off setting.`,instead:`AppSwitch`},{text:`It is an icon-only action in a row or toolbar.`,instead:`AppActionIcon`},{text:`It is a selectable filter or tag.`,instead:`AppChoiceChip`}],do:[{title:`One primary action per group`,note:`One clear primary action, supported by a secondary. The eye knows where to go.`,example:[{component:`AppButton`,props:{tone:`primary`},children:`Publish`},{component:`AppButton`,props:{variant:`soft`},children:`Save draft`}]},{title:`Name destructive actions specifically`,note:`Destructive actions use danger and name the object: "Delete project", not "OK".`,example:[{component:`AppButton`,props:{tone:`danger`},children:`Delete project`}]},{title:`Start labels with an action verb`,note:`Action-first verb + optional reinforcing icon. The label says exactly what happens.`,example:[{component:`AppButton`,props:{leftIcon:`plus`},children:`Add member`}]}],dont:[{title:`One primary action per group`,note:`Two primaries compete for attention, so neither reads as the main action.`,example:[{component:`AppButton`,props:{tone:`primary`},children:`Publish`},{component:`AppButton`,props:{tone:`primary`},children:`Save draft`}]},{title:`Name destructive actions specifically`,note:`A vague "Submit" in the default variant hides that this deletes data.`,example:[{component:`AppButton`,props:{tone:`primary`},children:`Submit`}]},{title:`Start labels with an action verb`,note:`A noun-only label leaves the user guessing what the button does.`,example:[{component:`AppButton`,children:`Member`}]}],a11y:[`While loading, the button shows a spinner hidden from assistive technology, sets aria-busy and is disabled.`,`A shortcut sets aria-keyshortcuts; the page binds the key itself.`,`A static button renders as a plain span, never a button, so assistive technology reads it as text.`,`The roll animation's copy of the label is aria-hidden, so the label is read once.`],keyboard:[{key:`Tab`,does:`Moves focus onto the button.`,notes:`In page order. A disabled or loading button is skipped.`},{key:`Shift + Tab`,does:`Moves focus to the previous control.`,notes:`Reverse of Tab; the order never changes.`},{key:`Enter`,does:`Activates the button.`,notes:`On a link button (href) it follows the link.`},{key:`Space`,does:`Activates the button.`,notes:`Runs on key up, like a native button. A link button ignores it.`},{key:`The shortcut key, for example N`,does:`Runs the action.`,notes:`Only when the page binds the key. The button exposes it as aria-keyshortcuts.`}],contrast:[{pair:`primary-text on primary`,light:`6.29:1 AA`,dark:`6.29:1 AA`},{pair:`primary as text on bg-light`,light:`6.29:1 AA`,dark:`6.23:1 AA`},{pair:`primary-hover as text on bg-light`,light:`4.47:1 Large only`,dark:`7.36:1 AAA`},{pair:`danger-text on danger-10`,light:`4.77:1 AA`,dark:`4.77:1 AA`},{pair:`success-text on the soft success tint (the success variant)`,light:`5.02:1 AA`,dark:`Set by the dark theme`},{pair:`white on success-strong (solid green surfaces)`,light:`5.82:1 AA`,dark:`5.82:1 AA`},{pair:`white on danger-strong (the danger variant)`,light:`5.80:1 AA`,dark:`5.80:1 AA`}]}},{name:`AppButtonGroup`,marker:`AppButtonGroup`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the group.`,default:``},{name:`fullWidth`,type:`boolean`,required:!1,description:`Fill the container, the buttons sharing the row equally.`,default:!1},{name:`label`,type:`string`,required:!0,description:`Accessible name for the group ("Text style").`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`One size for every button in the group.`,default:`md`},{name:`vertical`,type:`boolean`,required:!1,description:`Stack the buttons top to bottom.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to five related actions: text styles, bulk actions, a view switch.`,`A toolbar section that should read as one control.`],whenNot:[{text:`Choosing one of a few options.`,instead:`AppSegmented`},{text:`A main action with a few alternatives.`,instead:`AppSplitButton`}],do:[],dont:[],a11y:[`The group has role group and is announced by its label.`,`Each button is still its own tab stop: a button group is a set of actions, not a single-choice control.`]}},{name:`AppCalendar`,marker:`AppCalendar`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`date`,type:`string`,required:!1,description:"The day (`YYYY-MM-DD`, in the time zone of the calendar) to show; today when omitted. Changing it moves the calendar."},{name:`emptyText`,type:`string`,required:!1,description:`What a list with no events says.`},{name:`errorText`,type:`string`,required:!1,description:"What is said when `eventsUrl` could not be loaded, and when the calendar's code could not."},{name:`events`,type:`array`,itemFields:[{name:`allDay`,type:`boolean`,required:!1,description:`Shows the event as an all-day event.`},{name:`end`,type:`string`,required:!1,description:`The first moment after the event, so an all-day event on the 4th ends on the 5th.`},{name:`id`,type:`stringOrNumber`,required:!1,description:`Identifies the event.`},{name:`stack`,type:`object`,fields:[{name:`count`,type:`number`,required:!0,description:`How many more events the card stands for; a whole number above 0.`},{name:`label`,type:`string`,required:!0,description:`The link's tooltip and screen-reader name.`},{name:`url`,type:`url`,required:!0,description:"Where the `+count` link goes."}],required:!1,description:"Draws a `+count` link of its own inside the card, for a card that stands for several events."},{name:`start`,type:`string`,required:!0,description:`A YYYY-MM-DD day or an ISO date-time.`},{name:`title`,type:`string`,required:!0,description:`The event name.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Colours the event from the theme.`},{name:`url`,type:`url`,required:!1,description:`Makes the event a link.`}],required:!1,description:"The events, instead of `eventsUrl`. Extra keys are kept and come back in `onEventClick`."},{name:`eventsUrl`,type:`url`,required:!1,description:"Called with `start`, `end` and `view` (month, week, day or list; IST days) whenever the visible period changes; answers a JSON list of events."},{name:`firstDay`,type:`enum`,enum:[0,1,2,3,4,5,6],required:!1,description:"First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's `--wui-first-day` token, which is 1 (Monday) unless the product sets it."},{name:`label`,type:`string`,required:!1,description:`The name a screen reader hears for the calendar.`,default:`Calendar`},{name:`style`,type:`object`,required:!1,description:`Inline style on the element.`},{name:`timeZone`,type:`string`,required:!1,description:`IANA time zone the calendar shows, for example Asia/Kolkata or America/New_York. Events with an offset or a Z are moved into it; events with no offset are read as already in it. Unset, it is India Standard Time (Asia/Kolkata).`},{name:`view`,type:`enum`,enum:[`day`,`list`,`month`,`week`],required:!1,description:`The view to show. Without it a calendar opens on the month, or on the list when it is narrower than a phone.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Meetings, leave, releases, deadlines or bookings that people read by the day, week or month.`,`A schedule fed by an endpoint, where each period is fetched as the person moves to it.`,`One place to click a day to start something, or an event to open it.`],whenNot:[{text:`Picking a date in a form.`,instead:`AppDatePicker`},{text:`A history of what happened, newest first.`,instead:`AppTimeline`},{text:`A number per day, shaded by size.`,instead:`AppChart`}],do:[],dont:[],a11y:[`Every day can be reached by keyboard: one tab stop among the days, the arrow keys move between them, Home and End go to the first and last day of the week, Page Up and Page Down to the previous and next month, and Enter opens the day.`,`Events are buttons of their own: Tab to one and press Enter.`,`The label is the name a screen reader hears for the calendar.`]}},{name:`AppCard`,marker:`AppCard`,acceptsChildren:!0,props:[{name:`body`,type:`boolean`,required:!1,description:"Wrap children in `.card-body`. False when the content brings its own padding.",default:!0},{name:`bodyClassName`,type:`string`,required:!1,description:`Extra classes on the card body.`,default:``},{name:`className`,type:`string`,required:!1,description:"Extra classes on the `.card` root. The padding hook: a class here can set `--wui-card-pad` to retune the inset (the Razor counterpart is a plain `class`).",default:``},{name:`closeLabel`,type:`string`,required:!1,description:`Accessible name of the close button.`,default:`Close`},{name:`dismissible`,type:`boolean`,required:!1,description:`Show a close button at the end of the header (defaults to true when onClose is set).`},{name:`divided`,type:`boolean`,required:!1,description:`Draws a thin rule under the header. Needs a header (title, subtitle, headerIcon, headerActions or header). The rule colour is the --wui-card-divider-color token.`,default:!1},{name:`flush`,type:`boolean`,required:!1,description:`Clips the content to the card's rounded corners and removes the body padding, for a table or image that runs edge to edge. The header and footer keep their padding. Anything that pokes outside the card, such as an inline menu, is clipped.`,default:!1},{name:`footer`,type:`node`,required:!1,description:`Footer row (actions or meta), below the body.`},{name:`header`,type:`node`,required:!1,description:`Fully custom header: overrides title, subtitle, icon, extra and actions.`},{name:`headerActions`,type:`node`,required:!1,description:`Right-aligned header controls.`},{name:`headerClassName`,type:`string`,required:!1,description:`Extra classes on the card header.`,default:``},{name:`headerExtra`,type:`node`,required:!1,description:`Extra content in the header, after the title.`},{name:`headerIcon`,type:`node`,required:!1,description:`Leading header glyph: an icon name (or a node).`},{name:`href`,type:`url`,required:!1,description:`Makes the whole card a link.`},{name:`lifted`,type:`boolean`,required:!1,description:"1px hover translate (`.card-lifted`), not a drop shadow.",default:!1},{name:`maxWidth`,type:`stringOrNumber`,required:!1,description:`Cap and centre a standalone card. A preset (xs, sm, md, lg), a number of pixels or a CSS length.`},{name:`media`,type:`node`,required:!1,description:`Top media band (image or video), above the header.`},{name:`padding`,type:`enum`,enum:[`lg`,`md`,`none`,`sm`],required:!1,description:"Header, body and footer padding preset. The default (md) is a uniform 20px; `none` clears only the body, for a table or list that runs edge to edge, and keeps the header and footer inset. For an arbitrary inset, add a class (see `className`) that sets the `--wui-card-pad` token instead of using this preset scale.",default:`md`},{name:`subtitle`,type:`node`,required:!1,description:`Muted line under the title.`},{name:`title`,type:`node`,required:!1,description:`The heading shown in the card header.`},{name:`titleClassName`,type:`string`,required:!1,description:`Extra classes on the title.`,default:``},{name:`titleFont`,type:`enum`,enum:[`sans`,`serif`],required:!1,description:"Face of the title. `serif` draws it in the display typeface.",default:`sans`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:"Colours the `accent` stripe.",default:`primary`},{name:`variant`,type:`enum`,enum:[`accent`,`elevated`,`filled`,`flat`,`outline`],required:!1,description:`The visual treatment of the card.`,default:`flat`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A page section needs to be visually grouped and set apart from the rest.`,`You are laying out a dashboard of summaries, each on its own surface.`,`A form or list should read as one self-contained block.`],whenNot:[{text:`You need a masthead with a page title and actions.`,instead:`AppPageHeader`},{text:`The content is a transient message, not a lasting section.`,instead:`AppAlert`},{text:`You are showing an empty section with a call to action.`,instead:`AppEmptyState`},{text:`Everything on the page is already one surface: nesting adds noise.`,instead:`plain layout`}],do:[{title:`One titled subject per card`,note:`One titled card, one coherent subject: the header tells the user what this block is.`,example:[{component:`AppCard`,props:{title:`Billing`},children:[{component:`p`,props:{className:`mb-0`},children:`Your plan renews on 12 Aug 2026.`}]}]},{title:`Use body={false} for a table`,note:`A table uses body={false} so its rows sit flush to the card edges.`,example:[{component:`AppCard`,props:{body:!1},children:[{component:`table`,props:{className:`table mb-0`},children:[{component:`tbody`,children:[{component:`tr`,children:[{component:`td`,children:`Corporate Office`},{component:`td`,children:`Draft`}]}]}]}]}]}],dont:[{title:`One titled subject per card`,note:`Three unrelated facts crammed into one untitled card, so none of them stands out.`,example:[{component:`AppCard`,children:[{component:`p`,props:{className:`mb-1`},children:`Your plan renews on 12 Aug 2026.`},{component:`p`,props:{className:`mb-1`},children:`3 new members joined this week.`},{component:`p`,props:{className:`mb-0`},children:`Server Room assessment is overdue.`}]}]},{title:`Use body={false} for a table`,note:`The default body padding leaves an awkward inset gap around a full-width table.`,example:[{component:`AppCard`,children:[{component:`table`,props:{className:`table mb-0`},children:[{component:`tbody`,children:[{component:`tr`,children:[{component:`td`,children:`Corporate Office`},{component:`td`,children:`Draft`}]}]}]}]}]}],a11y:[`A card given an onClick has role button and one tab stop, and Enter or Space runs the action; a card given an href is a link.`,`The close button has an accessible name from closeLabel, and pressing it never runs the card's own action.`]}},{name:`AppCarousel`,marker:`AppCarousel`,acceptsChildren:!0,props:[{name:`arrows`,type:`boolean`,required:!1,description:`Show the previous and next buttons.`,default:!0},{name:`autoplay`,type:`number`,required:!1,description:`Milliseconds between automatic steps (5000 is typical). Omit for none.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`dotLabel`,type:`string`,required:!1,description:`The words before the slide number in each dot's name.`,default:`Go to slide`},{name:`dots`,type:`boolean`,required:!1,description:`Show the page dots.`,default:!0},{name:`label`,type:`string`,required:!0,description:`What the slides are ("Customer stories"): the carousel's accessible name.`},{name:`loop`,type:`boolean`,required:!1,description:`The previous and next buttons wrap around at the ends.`,default:!1},{name:`nextLabel`,type:`string`,required:!1,description:`The next button's name.`,default:`Next slide`},{name:`pauseLabel`,type:`string`,required:!1,description:`The pause button's text and name while playing.`,default:`Pause`},{name:`perView`,type:`number`,required:!1,description:`Slides in view on a phone.`,default:1},{name:`perViewLg`,type:`number`,required:!1,description:"Slides in view from the lg breakpoint. Defaults to `perViewMd`."},{name:`perViewMd`,type:`number`,required:!1,description:"Slides in view from the md breakpoint. Defaults to `perView`."},{name:`playLabel`,type:`string`,required:!1,description:`The pause button's text and name while paused.`,default:`Play`},{name:`previousLabel`,type:`string`,required:!1,description:`The previous button's name.`,default:`Previous slide`},{name:`style`,type:`object`,required:!1,description:`Merged after the per-view custom properties.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A handful of equal slides: testimonials, featured items.`,`Content that is fine to read a slide at a time.`],whenNot:[{text:`Steps a person must complete in order.`,instead:`AppWizard`},{text:`A long list people scan and filter.`,instead:`AppDataTable`}],do:[],dont:[],a11y:[`The carousel is a named region with the role description carousel; the label names it.`,`Each slide is a group described as a slide; the slide row takes keyboard focus and moves with the arrow, Home and End keys; the previous and next buttons are named by previousLabel and nextLabel.`,`The pause button is named by pauseLabel while playing and by playLabel while paused; each page dot is named by dotLabel and its slide number.`]}},{name:`AppCell`,marker:`AppCell`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the cell root.`,default:``},{name:`href`,type:`string`,required:!1,description:`Makes the primary a link to this address.`},{name:`mono`,type:`boolean`,required:!1,description:`Sets the primary line in monospace.`,default:!1},{name:`numeric`,type:`boolean`,required:!1,description:`Right-aligns both lines with tabular digits.`,default:!1},{name:`primary`,type:`node`,required:!1,description:`The main value on the first line. Empty draws the placeholder -; 0 draws 0.`},{name:`secondary`,type:`node`,required:!1,description:`The quieter detail line under the primary. Omitted when empty.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table cell with a main value and a quieter detail line under it.`,`A figure column that should right-align with tabular digits.`],whenNot:[{text:`A cell that is only one value.`,instead:`Plain cell text`},{text:`An amount in rupees from paise.`,instead:`formatINR, or app-money in Razor`}],do:[],dont:[],a11y:[`The link is a real anchor named by the primary text.`,`Both lines are plain text and read in order.`]}},{name:`AppChart`,marker:`AppChart`,acceptsChildren:!1,props:[{name:`bands`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The stretch's name.`},{name:`upTo`,type:`number`,required:!0,description:`The value the stretch runs up to.`}],required:!1,description:`A gauge's named stretches of its scale, each up to a value.`},{name:`centerLabel`,type:`string`,required:!1,description:`Caption under the total in the centre of a donut. Default Total. Donut only.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`data`,type:`array`,required:!0,description:`One row per x position, slice, cell, stage, flow or point: what a row is depends on the type.`},{name:`description`,type:`string`,required:!1,description:`One sentence a screen reader hears before the automatic summary.`},{name:`emptyText`,type:`string`,required:!1,description:`Replaces the default empty message.`},{name:`error`,type:`string`,required:!1,description:"The curated message to show when the chart failed: the same as state `error` with this text. Wins over `loading` and `state`, and replaces `errorText`."},{name:`errorText`,type:`string`,required:!1,description:`Replaces the default error message. Say what the person can do.`},{name:`group`,type:`object`,fields:[{name:`key`,type:`string`,required:!0,description:`The data column holding the second dimension.`},{name:`label`,type:`string`,required:!1,description:`The name shown for the second dimension.`}],required:!1,description:`The second dimension: a heatmap's rows, a treemap's parents, a scatter or bubble's colour groups (at most 3). Required for a heatmap and a treemap.`},{name:`height`,type:`number`,required:!1,description:`In px, the axis labels included. A value that is not above 0 draws at the default.`,default:320},{name:`loading`,type:`boolean`,required:!1,description:"The chart is loading: the same as state `loading`. Wins over `state`.",default:!1},{name:`loadingText`,type:`string`,required:!1,description:`Replaces the default loading message, the text read aloud while the chart loads.`,default:`Loading chart`},{name:`renderer`,type:`enum`,enum:[`auto`,`canvas`,`svg`],required:!1,description:"`auto` draws SVG, and canvas above 5,000 points.",default:`auto`},{name:`series`,type:`array`,itemFields:[{name:`colour`,type:`enum`,enum:[`chart-1`,`chart-2`,`chart-3`,`chart-4`,`chart-5`,`chart-6`,`chart-7`,`chart-8`],required:!1,description:`Which theme chart colour this series draws in (chart-1 to chart-8). Omit it to take the next colour in order.`},{name:`format`,type:`object`,fields:[{name:`currency`,type:`string`,required:!1,description:`For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. Required when style is currency.`},{name:`decimals`,type:`number`,required:!1,description:`Fraction digits: fixed for currency (0 when left out), a cap for other styles.`},{name:`pattern`,type:`enum`,enum:[`datetime`,`day`,`month`,`time`,`year`],required:!1,description:`For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).`,default:`day`},{name:`style`,type:`enum`,enum:[`compact`,`currency`,`date`,`duration`,`number`,`percent`],required:!1,description:`How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).`,default:`number`},{name:`unit`,type:`enum`,enum:[`h`,`min`,`ms`,`paise`,`rupees`,`s`],required:!1,description:`What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration.`}],required:!1,description:`How this series' values print: a style, with currency, unit, decimals or pattern where the style takes them.`},{name:`key`,type:`string`,required:!0,description:`The data column holding this series' values.`},{name:`label`,type:`string`,required:!0,description:`The series name shown in the legend and tooltips.`}],required:!0,description:`The value columns, in the order they take colours: at most 8. Every type but line, area, column, bar and multiples takes one.`},{name:`size`,type:`object`,fields:[{name:`format`,type:`object`,fields:[{name:`currency`,type:`string`,required:!1,description:`For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. Required when style is currency.`},{name:`decimals`,type:`number`,required:!1,description:`Fraction digits: fixed for currency (0 when left out), a cap for other styles.`},{name:`pattern`,type:`enum`,enum:[`datetime`,`day`,`month`,`time`,`year`],required:!1,description:`For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).`,default:`day`},{name:`style`,type:`enum`,enum:[`compact`,`currency`,`date`,`duration`,`number`,`percent`],required:!1,description:`How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).`,default:`number`},{name:`unit`,type:`enum`,enum:[`h`,`min`,`ms`,`paise`,`rupees`,`s`],required:!1,description:`What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration.`}],required:!1,description:`How bubble areas print: a style, with currency, unit, decimals or pattern where the style takes them.`},{name:`key`,type:`string`,required:!0,description:`The data column holding each bubble's area.`},{name:`label`,type:`string`,required:!1,description:`The name shown for the bubble area.`}],required:!1,description:`A bubble's area. Required for a bubble.`},{name:`sliceValues`,type:`boolean`,required:!1,description:`Print each slice's value and share on the donut, at any width. Donut only.`,default:!0},{name:`stack`,type:`enum`,enum:[`none`,`percent`,`stacked`],required:!1,description:`For area, column and bar.`,default:`none`},{name:`state`,type:`enum`,enum:[`empty`,`error`,`loading`,`ready`],required:!1,description:"`loading` after a first draw keeps that picture on screen, dimmed.",default:`ready`},{name:`style`,type:`object`,required:!1,description:`Inline style on the element.`},{name:`target`,type:`object`,fields:[{name:`label`,type:`string`,required:!0,description:`The line's name.`},{name:`value`,type:`number`,required:!0,description:`Where the line sits on the value axis.`}],required:!1,description:`A dashed reference line.`},{name:`timeZone`,type:`string`,required:!1,description:`IANA time zone dates are read and shown in, for example America/New_York. Unset, it is India Standard Time (Asia/Kolkata).`},{name:`title`,type:`string`,required:!0,description:`Required. Names the chart for assistive tech and names exported files. An empty string counts as not given.`},{name:`to`,type:`object`,fields:[{name:`key`,type:`string`,required:!0,description:`The data column holding where each flow ends.`},{name:`label`,type:`string`,required:!1,description:`The name shown for where the flows end.`}],required:!1,description:"Where each sankey flow ends; `x` is where it starts. Required for a sankey."},{name:`trend`,type:`boolean`,required:!1,description:`A scatter or bubble's straight trend line through the visible points.`},{name:`type`,type:`enum`,enum:[`area`,`bar`,`bubble`,`calendar`,`column`,`donut`,`funnel`,`gauge`,`heatmap`,`line`,`multiples`,`sankey`,`scatter`,`treemap`,`waterfall`],required:!0,description:"`column` is vertical bars, `bar` horizontal. `multiples` draws each series as its own small chart under one shared x axis."},{name:`valueLabels`,type:`boolean`,required:!1,description:`Print each value on its bar or point. Line, column and bar only. A line shows them by default.`,default:!1},{name:`view`,type:`enum`,enum:[`chart`,`table`],required:!1,description:"`table` shows the data table in the chart's place.",default:`chart`},{name:`x`,type:`object`,fields:[{name:`format`,type:`object`,fields:[{name:`currency`,type:`string`,required:!1,description:`For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. Required when style is currency.`},{name:`decimals`,type:`number`,required:!1,description:`Fraction digits: fixed for currency (0 when left out), a cap for other styles.`},{name:`pattern`,type:`enum`,enum:[`datetime`,`day`,`month`,`time`,`year`],required:!1,description:`For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).`,default:`day`},{name:`style`,type:`enum`,enum:[`compact`,`currency`,`date`,`duration`,`number`,`percent`],required:!1,description:`How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).`,default:`number`},{name:`unit`,type:`enum`,enum:[`h`,`min`,`ms`,`paise`,`rupees`,`s`],required:!1,description:`What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration.`}],required:!1,description:`How x values print: a style, with currency, unit, decimals or pattern where the style takes them.`},{name:`key`,type:`string`,required:!0,description:`The data column holding the x value.`},{name:`kind`,type:`enum`,enum:[`category`,`time`,`value`],required:!1,description:`How x values are read: as category labels, as times, or as numbers.`},{name:`label`,type:`string`,required:!1,description:`The title of the x axis.`},{name:`labelFit`,type:`enum`,enum:[`all`,`auto`,`ellipsis`,`rotate`],required:!1,description:`How a column chart fits its category names. auto hides those that overlap; all shows every name; rotate turns them; ellipsis cuts each to its slot, with the full text in the axis tooltip and the table. Column only: a bar chart has the room already.`,default:`auto`}],required:!0,description:'The column holding the x value. `time` takes epoch ms, an ISO instant or a "YYYY-MM-DD" day; `value` (scatter and bubble) is a number. A calendar is always `time`, a scatter and a bubble always `value`.'},{name:`y`,type:`object`,fields:[{name:`format`,type:`object`,fields:[{name:`currency`,type:`string`,required:!1,description:`For currency and compact: a three-letter ISO 4217 code such as INR, USD, EUR or GBP. Required when style is currency.`},{name:`decimals`,type:`number`,required:!1,description:`Fraction digits: fixed for currency (0 when left out), a cap for other styles.`},{name:`pattern`,type:`enum`,enum:[`datetime`,`day`,`month`,`time`,`year`],required:!1,description:`For date: how the date prints. day shows 04-Oct-2026, in the time zone of the chart (IST by default).`,default:`day`},{name:`style`,type:`enum`,enum:[`compact`,`currency`,`date`,`duration`,`number`,`percent`],required:!1,description:`How the value prints. percent takes a ratio, so 0.125 shows as 12.5%. compact shortens (lakh and crore for rupees, K, M and B for other currencies).`,default:`number`},{name:`unit`,type:`enum`,enum:[`h`,`min`,`ms`,`paise`,`rupees`,`s`],required:!1,description:`What the value counts: rupees (default) or paise for money; ms, s (default), min or h for a duration.`}],required:!1,description:`How axis values print: a style, with currency, unit, decimals or pattern where the style takes them.`},{name:`label`,type:`string`,required:!1,description:`The title of the value axis.`},{name:`max`,type:`number`,required:!1,description:`The highest value on the axis.`},{name:`min`,type:`number`,required:!1,description:`The lowest value on the axis.`},{name:`wholeNumbers`,type:`boolean`,required:!1,description:`Ticks the axis only at whole numbers, for a chart of counts.`}],required:!1,description:`The one value axis. There is no second axis: show another measure as its own chart.`},{name:`zoom`,type:`boolean`,required:!1,description:`A zoom slider under a line or area. On by default above 5,000 rows.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A trend, a comparison or a share that people need to read at a glance, with the exact values one hover away.`,`Money, counts, percentages or durations that should print the way the rest of the product prints them.`,`A dashboard where every chart should look, behave and read aloud the same way.`],whenNot:[{text:`One headline number with a small trend.`,instead:`AppKpiTile`},{text:`A trend that fits in a table cell.`,instead:`AppSparkline`},{text:`One reading against a known range.`,instead:`AppMeter`}],do:[],dont:[],a11y:[`The chart is a figure named by its title, with a screen-reader summary linked to it and a real data table behind the picture.`,`The drawing is read with the arrow keys, one value at a time, and each legend button reports whether its series is shown with aria-pressed.`,`The loading, empty and error messages are announced as status, and a chart that is loading is marked busy.`]}},{name:`AppChartCard`,marker:`AppChartCard`,acceptsChildren:!0,props:[{name:`chartViewLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Chart`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the card.`,default:``},{name:`downloadCsvLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Download CSV`},{name:`downloadPngLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Download PNG`},{name:`footer`,type:`node`,required:!1,description:`A row under the chart: a source, an updated-at time, a link.`},{name:`legendLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Show legend`},{name:`legendTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Show or hide the legend`},{name:`moreActionsForLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {title} is filled with the card's title.`,default:`More actions for {title}`},{name:`moreActionsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`More actions`},{name:`retryLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Try again`},{name:`subtitle`,type:`string`,required:!1,description:`A muted line under the title: the unit or the period.`},{name:`tableViewLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Table`},{name:`title`,type:`string`,required:!0,description:`The card's heading. Also names the menu button for assistive tech.`},{name:`toolbar`,type:`boolean`,required:!1,description:`Show the view controls.`,default:!0},{name:`viewLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`View`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A chart that sits on a dashboard or a report page and needs a title and the standard view controls.`,`People should be able to see the numbers as a table, or take them away as a PNG or a CSV.`],whenNot:[{text:`A chart inside prose or inside another card.`,instead:`AppChart`},{text:`A single figure.`,instead:`AppKpiTile`}],do:[],dont:[],a11y:[`The legend toggle is a button that reports its state with aria-pressed and is named Show legend.`,`The Try again button is an ordinary button that appears only when onRetry is given and the chart is in its error state.`]}},{name:`AppCheckbox`,marker:`AppCheckbox`,acceptsChildren:!1,props:[{name:`checked`,type:`boolean`,required:!1,description:"Controlled ticked state; pair with `onChange`."},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultChecked`,type:`boolean`,required:!1,description:`Starting state when the checkbox is uncontrolled.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the checkbox and dims it.`},{name:`error`,type:`node`,required:!1,description:`Error message, rendered below the control. Replaces the helper text.`},{name:`help`,type:`node`,required:!1,description:`Content for the info-tip after the label. Shown only when a label is set.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text below the control. Hidden while an error is shown.`},{name:`id`,type:`string`,required:!1,description:`The input's id. A unique id is generated when none is given.`},{name:`label`,type:`node`,required:!1,description:`The text beside the box. Clicking it ticks the box.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The form field name, sent with the value on submit.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`],required:!1,description:`circle draws a round box with the tick inside, for a task that is completed. Omit it for the square box.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control size: sm, md or lg.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You need one or more independent true/false settings, where any combination is valid.`,`The user opts in on a form that is saved later (terms, notification preferences).`,`Several options apply at once and are not mutually exclusive.`],whenNot:[{text:`One on/off setting that takes effect immediately.`,instead:`AppSwitch`},{text:`The user must pick exactly one of 2 to 5 options.`,instead:`AppRadio`},{text:`The user picks many values from a long list.`,instead:`AppSelect mode="multiple"`},{text:`It is a selectable filter or tag pill.`,instead:`AppChoiceChip`}],do:[{title:`Independent options each get a checkbox`,note:`Independent settings: each checkbox toggles on its own, any combination allowed.`,example:[{component:`div`,props:{className:`d-flex flex-column gap-2`},children:[{component:`AppCheckbox`,props:{label:`Weekly digest`,defaultChecked:!0}},{component:`AppCheckbox`,props:{label:`Product updates`}},{component:`AppCheckbox`,props:{label:`Security alerts`,defaultChecked:!0}}]}]},{title:`Checkboxes, not switches, for saved forms`,note:`A clear, specific label states exactly what opting in means.`,example:[{component:`AppCheckbox`,props:{label:`Send weekly digest`}}]}],dont:[{title:`Independent options each get a checkbox`,note:`Radios force a single choice, so independent yes/no options each need their own checkbox.`,example:[{component:`div`,props:{className:`wui-control-group`},children:[{component:`AppRadio`,props:{label:`Weekly digest`,name:`prefs-bad`,value:`digest`,defaultChecked:!0}},{component:`AppRadio`,props:{label:`Security alerts`,name:`prefs-bad`,value:`security`}}]}]},{title:`Checkboxes, not switches, for saved forms`,note:`Switches imply an instant, saved effect; on a form that submits on Save, checkboxes set the right expectation.`,example:[{component:`div`,props:{className:`d-flex flex-column gap-2`},children:[{component:`AppSwitch`,props:{label:`Weekly digest`,defaultChecked:!0}},{component:`AppSwitch`,props:{label:`Product updates`}},{component:`AppSwitch`,props:{label:`Security alerts`,defaultChecked:!0}}]}]}],a11y:[`The label is linked to the input by id, so a click on the label text ticks the box.`,`The error or the helper text is linked to the input with aria-describedby, and an error sets aria-invalid to true.`,`An id is generated when none is given, so the label link always works.`]}},{name:`AppChip`,marker:`AppChip`,acceptsChildren:!0,props:[{name:`avatar`,type:`node`,required:!1,description:`Leading avatar: an image URL or a node.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`count`,type:`node`,required:!1,description:`A count shown after the label, such as a filter's result count.`},{name:`disabled`,type:`boolean`,required:!1,description:`Dims the chip and stops it from being pressed.`,default:!1},{name:`label`,type:`node`,required:!1,description:"Chip text (or use `children`)."},{name:`leadingIcon`,type:`string`,required:!1,description:`Semantic icon name for a leading glyph.`},{name:`removeLabel`,type:`string`,required:!1,description:`aria-label for the dismiss button.`},{name:`selected`,type:`boolean`,required:!1,nullable:!0,description:`With onClick, true marks the chip as the chosen filter (its button carries aria-pressed). Needs onClick; a chip that is not clickable refuses it.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`sm for a denser chip; md by default.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour meaning: neutral by default, or a state or category.`,default:`neutral`},{name:`variant`,type:`enum`,enum:[`outline`,`soft`,`solid`],required:!1,description:`Colour treatment: a tinted surface (soft, the default), a tinted surface with a coloured border (outline), or a filled pill with contrasting text (solid).`,default:`soft`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A multi-select needs to show each chosen value as a removable token.`,`A filter bar shows the active facets, each dismissible.`,`You are labelling something with a small tag: a category, a state, a version.`],whenNot:[{text:`The user is picking one option from a set (a form control).`,instead:`AppChoiceChip`},{text:`You are showing a small count or a bare label.`,instead:`AppBadge`},{text:`You are showing a status mapped from an enum.`,instead:`AppStatusBadge`},{text:`It is really a button that performs an action.`,instead:`AppButton`}],do:[{title:`Show applied filters as removable chips`,note:`Removable chips for applied filters: the user sees exactly what is active and can clear each one.`,example:[{component:`AppChip`,props:{label:`Lightning`}},{component:`AppChip`,props:{label:`Zone 1`}},{component:`AppChip`,props:{label:`Rev B`}}]},{title:`One clear tone and a glyph`,note:`One clear tone and a reinforcing glyph: the chip reads at a glance.`,example:[{component:`AppChip`,props:{label:`Verified`,tone:`success`,leadingIcon:`check-circle`}}]},{title:`Keep chip text short`,note:`A short label reads as a token at a glance.`,example:[{component:`AppChip`,props:{label:`Draft`}}]}],dont:[{title:`Show applied filters as removable chips`,note:`A disabled chip cannot be cleared, so the user has no way to remove the filter from the chip.`,example:[{component:`AppChip`,props:{label:`Lightning`,disabled:!0}}]},{title:`One clear tone and a glyph`,note:`Three tones on three peer filters invent meaning that isn’t there: keep peers one tone.`,example:[{component:`AppChip`,props:{label:`Lightning`,tone:`primary`}},{component:`AppChip`,props:{label:`Zone 1`,tone:`success`}},{component:`AppChip`,props:{label:`Rev B`,tone:`danger`}}]},{title:`Keep chip text short`,note:`A sentence in a chip defeats the point: a chip is a token, not a paragraph.`,example:[{component:`AppChip`,props:{label:`Verified, submitted, and awaiting final sign-off from the reviewer`,tone:`success`}}]}],a11y:[`A removable chip's dismiss button is named by removeLabel, or by Remove followed by the chip text when no label is given.`,`A clickable chip is a button; its aria-* and data-* attributes go to that button, so the button carries the name.`,`disabled disables the chip button and the dismiss button.`]}},{name:`AppChipGroup`,marker:`AppChipGroup`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the group.`,default:``},{name:`label`,type:`string`,required:!1,description:`Accessible name for the group.`},{name:`moreLabel`,type:`string`,required:!1,description:`The More button text when overflow is menu.`,default:`More`},{name:`overflow`,type:`enum`,enum:[`menu`,`wrap`],required:!1,description:"`wrap` lets the chips wrap; `menu` moves the extras into a More menu.",default:`wrap`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A filter or tag row that must stay on one line on a phone.`,`A row of chips of unknown length.`],whenNot:[{text:`Two to four exclusive options.`,instead:`AppSegmented`},{text:`Tabs that switch panels.`,instead:`AppTabs`}],do:[],dont:[],a11y:[`The group has role group and takes its accessible name from label.`,`With overflow menu, the chips that do not fit move into a More menu whose button text is moreLabel.`,`Choosing a chip in the menu clicks that chip's own control; a chip with no control is listed greyed out.`]}},{name:`AppChoiceCard`,marker:`AppChoiceCard`,acceptsChildren:!0,props:[{name:`checkIcon`,type:`string`,required:!1,description:`Icon name for the selected tick.`,default:`check`},{name:`checkSize`,type:`number`,required:!1,description:`Tick icon size in px.`,default:18},{name:`checked`,type:`boolean`,required:!0,description:`Whether the card is selected.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the card.`,default:``},{name:`description`,type:`node`,required:!1,description:`Secondary text under the title.`},{name:`disabled`,type:`boolean`,required:!1,description:`The card cannot change: no pointer, no hover, announced as disabled. A disabled parent fieldset does the same.`,default:!1},{name:`help`,type:`node`,required:!1,description:`Content for an info-tip drawn after the card text.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`hideCheck`,type:`boolean`,required:!1,description:`Render no selected tick. Selection then reads from the card's border and fill alone, and the card sheds the top and bottom room the tick needed.`,default:!1},{name:`icon`,type:`string`,required:!1,description:`Icon name. Renders linear, and switches to the solid (bold) style while the card is checked so the selected card reads at a glance.`},{name:`iconNode`,type:`node`,required:!1,description:`Custom icon content, used in place of icon.`},{name:`iconSize`,type:`number`,required:!1,description:`Icon glyph size in px. Defaults to the card size: 16 (sm), 18 (md), 22 (lg).`},{name:`image`,type:`string`,required:!1,description:`Image URL. Renders an image-forward card (overrides icon).`},{name:`imageAlt`,type:`string`,required:!1,description:`Alternative text for the image.`,default:``},{name:`imageHeight`,type:`number`,required:!1,description:`The image's intrinsic height in px.`},{name:`imageWidth`,type:`number`,required:!1,description:`The image's intrinsic width in px. Set it with imageHeight so the card keeps its size while the image loads.`},{name:`layout`,type:`enum`,enum:[`inline`,`stacked`],required:!1,description:"`inline` puts the icon beside the text; `stacked` puts the icon on its own line with the title and description below it.",default:`inline`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`multiple`,type:`boolean`,required:!1,description:`Render as a checkbox (multi-select) rather than a radio.`,default:!1},{name:`name`,type:`string`,required:!0,description:`Shared form name. Cards with the same name form one group.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`selectedStyle`,type:`enum`,enum:[`filled`],required:!1,description:"`filled` fills the checked card's icon disc with the primary colour and draws the glyph in the on-primary colour. Unset keeps the soft selected look."},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Card size: padding, gap, icon disc, type and the tick offset step together.`,default:`md`},{name:`title`,type:`node`,required:!1,description:`The card title.`},{name:`value`,type:`string`,required:!0,description:`The value this card submits when selected.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Picking one of a small set (2 to 5) of exclusive options, each worth an icon and a line of description.`,`A structure, plan, or type picker where seeing all options side by side helps the decision.`,`An onboarding or setup choice that benefits from richer visuals than a plain radio list.`],whenNot:[{text:`There are many options (6+).`,instead:`AppSelect`},{text:`The options are plain and need no icon or description.`,instead:`AppRadio`},{text:`It is a compact filter or tag toggle.`,instead:`AppChoiceChip`},{text:`It just displays a chosen value.`,instead:`AppChip`}],do:[{title:`A short title and one line`,note:`A short title and a one-line description. The card reads instantly.`,example:[{component:`div`,props:{className:`wui-grid wui-grid-md-2 gap-3`},children:[{component:`AppChoiceCard`,props:{name:`dd-good`,value:`flat`,checked:!0,icon:`building-2`,title:`Flat roof`,description:`Single-level rooftop`},handlers:[`onChange`]},{component:`AppChoiceCard`,props:{name:`dd-good`,value:`tower`,checked:!1,icon:`factory`,title:`Tower`,description:`Tall vertical structure`},handlers:[`onChange`]}]}]},{title:`One visual style per group`,note:`One visual style across the group: all icon cards, or all image cards.`,example:[{component:`div`,props:{className:`wui-grid wui-grid-md-2 gap-3`},children:[{component:`AppChoiceCard`,props:{name:`dd-consistent`,value:`a`,checked:!0,icon:`building-2`,title:`Flat roof`,description:`Single-level`},handlers:[`onChange`]},{component:`AppChoiceCard`,props:{name:`dd-consistent`,value:`b`,checked:!1,icon:`house`,title:`Pitched roof`,description:`Sloped`},handlers:[`onChange`]}]}]}],dont:[{title:`A short title and one line`,note:`A paragraph stuffed into a card. If it needs this much text, it needs a different control.`,example:[{component:`AppChoiceCard`,props:{name:`dd-bad`,value:`x`,checked:!1,icon:`house`,title:`Pitched / gabled / hip roof with an eave overhang`,description:`Any roof whose primary planes are inclined more than ten degrees from the horizontal, including combinations.`},handlers:[`onChange`]}]},{title:`One visual style per group`,note:`Mixing an icon card with an image card in one group makes the set feel broken.`,example:[{component:`div`,props:{className:`wui-grid wui-grid-md-2 gap-3`},children:[{component:`AppChoiceCard`,props:{name:`dd-mixed`,value:`a`,checked:!0,icon:`building-2`,title:`Flat roof`,description:`Single-level`},handlers:[`onChange`]},{component:`AppChoiceCard`,props:{name:`dd-mixed`,value:`b`,checked:!1,image:`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='180'%3E%3Crect width='100%25' height='100%25' fill='%2304B440'/%3E%3C/svg%3E`,title:`Green`,description:`Tone`},handlers:[`onChange`]}]}]}],a11y:[`The card is a label around a native radio input, or a checkbox input when multiple is set, so keyboard and screen reader behaviour is the browser's.`,`Cards with the same name form one radio group; disabled sets the input disabled and marks the card aria-disabled.`,`The image uses imageAlt as its alternative text, empty when it is not set.`]}},{name:`AppChoiceChip`,marker:`AppChoiceChip`,acceptsChildren:!0,props:[{name:`checked`,type:`boolean`,required:!0,description:`Whether the chip is selected.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the chip.`,default:``},{name:`count`,type:`node`,required:!1,description:`A matching-row count, such as Active 12. Shown as a small badge that inverts when the chip is selected.`},{name:`disabled`,type:`boolean`,required:!1,description:`The chip dims and cannot be picked.`,default:!1},{name:`help`,type:`node`,required:!1,description:`Content for an info-tip drawn beside the chip, as its sibling.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`label`,type:`node`,required:!1,description:`Chip text. Children work in its place.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`multiple`,type:`boolean`,required:!1,description:`Checkbox (multi-select) when true, radio when false.`,default:!0},{name:`name`,type:`string`,required:!1,description:`Shared form name. Chips with the same name form one group.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Pill size: padding, gap and font step together.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The value this chip submits when selected.`},{name:`variant`,type:`enum`,enum:[`soft`,`solid`],required:!1,description:`Checked look: a soft primary tint (soft) or a primary fill with a translucent count (solid).`,default:`soft`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A filter the user turns on and off, to narrow a list by tag, status or type.`,`Picking among a small set of options shown as pills, all visible at once.`,`Multi-select tags where several choices can be active together.`],whenNot:[{text:`It triggers an action rather than holding a selection.`,instead:`AppButton`},{text:`It only displays or removes a chosen value (a token).`,instead:`AppChip`},{text:`You are picking one of many (6+) options.`,instead:`AppSelect`},{text:`Each option needs an icon, title, and description.`,instead:`AppChoiceCard`}],do:[{title:`A few short pills`,note:`A few short, scannable pills; the user sees every option and toggles at a glance.`,example:[{component:`AppChoiceChip`,props:{checked:!0},children:`Telecom`,handlers:[`onChange`]},{component:`AppChoiceChip`,props:{checked:!1},children:`Power line`,handlers:[`onChange`]}]},{title:`Drive checked from state`,note:`checked reflects real selection state that your onChange updates; a proper control.`,example:[{component:`AppChoiceChip`,props:{checked:!0},children:`Active`,handlers:[`onChange`]}]}],dont:[{title:`A few short pills`,note:`A sentence crammed into a chip. Long labels belong in a select or a checkbox list.`,example:[{component:`AppChoiceChip`,props:{checked:!1},children:`Structures fed by overhead high-voltage lines within 50 m`,handlers:[`onChange`]}]},{title:`Drive checked from state`,note:`A chip used to fire an action. Actions are buttons; a chip should hold a choice.`,example:[{component:`AppChoiceChip`,props:{checked:!1},children:`Export`,handlers:[`onChange`]}]}],a11y:[`The chip is a label around a native checkbox input, or a radio input when multiple is false, so keyboard and screen reader behaviour is the browser's.`,`Chips with the same name form one radio group when multiple is false.`,`The visible text comes from label, or from the children when label is not set; disabled sets the input disabled.`]}},{name:`AppCodeBlock`,marker:`AppCodeBlock`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the root.`,default:``},{name:`code`,type:`string`,required:!1,description:`The source text. A single trailing newline is dropped.`},{name:`copiedLabel`,type:`string`,required:!1,description:`The copy button's label for two seconds after a copy. It reads Copied when left out.`},{name:`copyLabel`,type:`string`,required:!1,description:`The copy button's label. It reads Copy when left out.`},{name:`label`,type:`string`,required:!1,description:`The header title, such as webhook.json, and the code region's accessible name. Without it the header names the language.`},{name:`language`,type:`enum`,enum:[`bash`,`cs`,`css`,`html`,`http`,`js`,`json`,`razor`,`sql`,`text`],required:!1,description:"What to colour; `text` shows it as written.",default:`text`},{name:`lineNumbers`,type:`boolean`,required:!1,description:`Number the lines. The numbers are not copied or selected.`,default:!1},{name:`wrap`,type:`boolean`,required:!1,description:`Wrap long lines instead of scrolling sideways.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A code sample, request, response or payload people read and copy.`,`An API key or command to paste.`],whenNot:[{text:`A short value in a sentence.`,instead:`the code element`},{text:`Copying a single value with no code around it.`,instead:`AppCopyButton`},{text:`Editing code.`,instead:`a code editor`}],do:[],dont:[],a11y:[`The label is the code region's accessible name; without it the header names the language.`,`The copy button reads copyLabel, and for two seconds after a copy it reads copiedLabel.`,`Line numbers are not copied or selected.`]}},{name:`AppColorField`,marker:`AppColorField`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Applied to the hex text input, the control.`,default:``},{name:`colourLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Colour`},{name:`colourPickerLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {label} is the field label.`,default:`{label}, colour picker`},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`The field cannot change.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Error message shown under the field.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Applied to the field wrapper.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the field.`},{name:`id`,type:`string`,required:!1,description:`Element id of the hex text box. Defaults to a generated id, not name.`},{name:`label`,type:`node`,required:!1,description:`The field label.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Form field name on the text box, the control that posts.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size. sm, lg and xl resize the swatch and the hex box together.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`Hex colour, for example #4F46E5.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user genuinely needs an arbitrary colour, such as a brand accent or a tag colour.`,`A hex from a brand guide will be pasted in.`,`The field sits in a settings or theming form.`],whenNot:[{text:`There is a fixed palette to choose from (AppChoiceChip or AppChoiceCard).`,instead:`AppChoiceChip`},{text:`The colour carries meaning (status, severity). Meaning belongs to a token, not a user-picked hex.`,instead:`AppStatusBadge`},{text:`It is any other single-line value.`,instead:`AppInput`}],do:[{title:`Say what the colour affects`,note:`Says what the colour affects. A user picking blind cannot tell whether they are about to change one button or the whole portal.`,example:[{component:`AppColorField`,props:{label:`Accent colour`,value:`#4F46E5`,helperText:`Used for buttons and links.`}}]}],dont:[{title:`Say what the colour affects`,note:`“Colour” of what? And with no helper text, the user has to save and go looking to find out what changed.`,example:[{component:`AppColorField`,props:{label:`Colour`,value:`#4F46E5`}}]}],a11y:[`The hex text box is the labelled control and the field that posts; the label points at it and the required mark follows the label.`,`The swatch has its own accessible name, the label followed by colour picker (or Colour when there is no label), and is skipped by the tab key.`,`An error sets the text box invalid and describes it with the error text; without an error, the helper text describes it.`]}},{name:`AppColumnMenu`,marker:`AppColumnMenu`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the menu panel.`,default:``},{name:`columns`,type:`array`,itemFields:[{name:`hideable`,type:`boolean`,required:!1,description:`Gives the column a checkbox in the menu. Without it the column always shows.`},{name:`key`,type:`string`,required:!0,description:`The column's key, used in hiddenColumns and onToggle.`},{name:`label`,type:`node`,required:!0,description:`The column's heading.`}],required:!0,description:`The table's columns.`},{name:`hiddenColumns`,type:`array`,required:!1,description:`Keys of the columns currently hidden.`,default:[]},{name:`label`,type:`string`,required:!1,description:`Accessible name and tooltip of the button, and the menu heading.`,default:`Columns`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table has columns that only some people need, such as an owner, a created date or an internal code.`,`People return to the same table and expect it the way they left it.`,`The columns that identify a row must stay visible while the rest are optional.`],whenNot:[{text:`The table has only a few columns that all matter.`,instead:`no menu`},{text:`You want to narrow which rows show.`,instead:`AppTableToolbar`},{text:`You want the table in a different order.`,instead:`AppDataTable`}],do:[{title:`One Columns button in the toolbar`,note:`One Columns button in the toolbar actions, beside search and export.`,example:[{component:`div`,props:{className:`w-100`},children:[{component:`AppTableToolbar`,props:{actions:{component:`AppColumnMenu`,props:{columns:[{key:`name`,label:`Building`},{key:`owner`,label:`Owner`,hideable:!0},{key:`floors`,label:`Floors`,hideable:!0},{key:`status`,label:`Status`}],hiddenColumns:[]},handlers:[`onToggle`]}}},{component:`AppDataTable`,props:{id:`wui-column-menu-usage`,ariaLabel:`Buildings`,density:`compact`,columns:[{key:`name`,label:`Building`},{key:`owner`,label:`Owner`,hideable:!0},{key:`floors`,label:`Floors`,hideable:!0},{key:`status`,label:`Status`}],rows:[{id:1,name:`Corporate Office`,owner:`Asha Rao`,floors:12,status:`Draft`},{id:2,name:`Warehouse Annexe`,owner:`Vikram Shah`,floors:3,status:`Compliant`},{id:3,name:`Server Room`,owner:`Asha Rao`,floors:1,status:`Draft`}]}}]}]}],dont:[{title:`One Columns button in the toolbar`,note:`A permanent row of checkboxes takes space above the table and pushes the data down.`,example:[{component:`div`,props:{className:`d-flex gap-3`},children:[{component:`AppCheckbox`,props:{label:`Owner`,defaultChecked:!0}},{component:`AppCheckbox`,props:{label:`Floors`,defaultChecked:!0}}]}]}],a11y:[`The button's accessible name and tooltip is the label prop.`,`Each hideable column is a native checkbox inside a label, so its name is the column heading and Space toggles it.`]}},{name:`AppCommandPalette`,marker:`AppCommandPalette`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the dialog and its input.`,default:`Search`},{name:`backLabel`,type:`string`,required:!1,description:`Accessible name of the Back button.`,default:`Back`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the dialog card.`,default:``},{name:`emptyText`,type:`node`,required:!1,description:`Shown when the query is not blank, nothing is loading, and no group has items.`,default:`No results`},{name:`footer`,type:`node`,required:!1,description:`Content under the list, such as key hints.`},{name:`groupFilter`,type:`boolean`,required:!1,description:`Shows a pill per group under the query, All first with the total. Only the picked group's results are drawn. Tab and Shift+Tab in the search move to the next and previous pill; a changed query picks All again.`,default:!1},{name:`groups`,type:`array`,itemFields:[{name:`items`,type:`array`,itemFields:[{name:`ariaLabel`,type:`string`,required:!1,description:`The option's accessible name; give it when the label is a node.`},{name:`description`,type:`node`,required:!1,description:`Secondary text under the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Lists the item but cannot be chosen; the arrow keys skip it.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name or a node drawn before the label.`},{name:`key`,type:`string`,required:!0,description:`The item's key, unique within its group; keep it stable.`},{name:`keywords`,type:`array`,required:!1,description:`Other words the item answers to, such as synonyms. The search matches them the way it matches the label; the palette does not filter, so the caller's search reads them.`},{name:`label`,type:`node`,required:!0,description:`The item's text; a string label gets the search emphasis.`},{name:`meta`,type:`node`,required:!1,description:`Short trailing text or a node.`},{name:`page`,type:`object`,fields:[{name:`key`,type:`string`,required:!0,description:`The page's key.`},{name:`label`,type:`string`,required:!0,description:`The page's name, shown in the breadcrumb.`}],required:!1,description:`Makes the item open a nested page instead of acting.`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the item elsewhere, drawn as a key chip; a hint, the page binds the key.`}],required:!1,description:`The results in the group, in order.`},{name:`key`,type:`string`,required:!0,description:`The group's key, unique among the groups.`},{name:`label`,type:`node`,required:!0,description:`The group heading.`}],required:!1,description:`Results, rendered in order under their group headings; groups with no items are left out.`,default:[]},{name:`highlight`,type:`boolean`,required:!1,description:`Bold the query inside each string label, case-insensitively. A label given as a node renders as it is.`,default:!0},{name:`id`,type:`string`,required:!1,description:`Seeds the result and heading ids; defaults to a generated id.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the library spinner in the input.`,default:!1},{name:`open`,type:`boolean`,required:!0,description:`Shows the palette while true.`},{name:`path`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!0,description:`The page's key.`},{name:`label`,type:`string`,required:!0,description:`The page's name, shown in the breadcrumb.`}],required:!1,description:`The open nested pages, outermost first (controlled); empty shows the first page.`,default:[]},{name:`placeholder`,type:`string`,required:!1,description:`The text the search field shows while it is empty.`,default:`Search…`},{name:`query`,type:`string`,required:!1,description:`The search text (controlled).`,default:``},{name:`recentsKey`,type:`string`,required:!1,description:`localStorage key to remember chosen items under; omit for no recents. Make it per user, for example from the user's public id.`},{name:`recentsLabel`,type:`string`,required:!1,description:`Heading of the recent items.`,default:`Recent`},{name:`recentsLimit`,type:`number`,required:!1,description:`How many recent items to keep (at most 20).`,default:5},{name:`resultsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Results`},{name:`rootLabel`,type:`string`,required:!1,description:`Breadcrumb text for the first page.`,default:`All`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`An app has more pages and actions than its navigation can show at once.`,`Regular users want to jump straight to a record or run an action from the keyboard.`,`The same search should reach pages, actions and records in one place.`],whenNot:[{text:`You are picking a value for a form field.`,instead:`AppSelect mode="search"`},{text:`You are filtering the list on the current page.`,instead:`AppSearch`},{text:`The palette would be the only way to reach a page.`,instead:`AppShell`}],do:[],dont:[],a11y:[`The search field is a combobox that names the listbox it controls, and the dialog and the field take the ariaLabel prop as their accessible name.`,`Results sit in a listbox in groups named by their headings; each option's accessible name is its ariaLabel or its string label, and a disabled item is marked aria-disabled.`,`Escape and a click on the dimmed page close the palette, and focus returns to where it was before it opened, because the dialog is AppModal.`]}},{name:`AppCommentThread`,marker:`AppCommentThread`,acceptsChildren:!1,props:[{name:`addReactionLabel`,type:`string`,required:!1,description:`Name of the add-reaction button. Replaces the built-in English text, for other languages.`,default:`Add a reaction`},{name:`allowReactions`,type:`boolean`,required:!1,description:`False leaves out the reaction panel and the reaction chips.`,default:!0},{name:`allowReplies`,type:`boolean`,required:!1,description:`False leaves out the Reply action and the reply box; existing replies still show.`,default:!0},{name:`attachmentsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Attachments`},{name:`author`,type:`string`,required:!1,description:`The name for the inline composer's avatar. Ignored when stacked.`},{name:`cancelLabel`,type:`string`,required:!1,description:`Cancels a delete. Replaces the built-in English text, for other languages.`,default:`Cancel`},{name:`chooseReactionLabel`,type:`string`,required:!1,description:`Name of the reaction panel. Replaces the built-in English text, for other languages.`,default:`Choose a reaction`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`comments`,type:`array`,itemFields:[{name:`at`,type:`stringOrNumber`,required:!0,description:`When it was written: an ISO instant with its zone, epoch ms or a Date. Shown in IST.`},{name:`attachments`,type:`array`,itemFields:[{name:`href`,type:`string`,required:!1,description:`The download URL.`},{name:`name`,type:`string`,required:!0,description:`The file name shown.`},{name:`sizeBytes`,type:`number`,required:!1,description:`The size, shown beside the name when given.`},{name:`to`,type:`string`,required:!1,description:`An in-app route for the file viewer page. It goes through the link component when one is given, otherwise it becomes a plain link. Without it the file downloads from href.`}],required:!1,description:`Files attached to the comment, listed as download links under the body.`},{name:`author`,type:`object`,fields:[{name:`name`,type:`string`,required:!0,description:`The author's name.`},{name:`src`,type:`string`,required:!1,description:`A photo URL for the author.`}],required:!0,description:`Who wrote it; src is a photo URL.`},{name:`canDelete`,type:`boolean`,required:!1,description:`This person may delete it.`},{name:`canEdit`,type:`boolean`,required:!1,description:`This person may edit it.`},{name:`deleted`,type:`boolean`,required:!1,description:`Shows "This comment was deleted." in place of the body; replies stay.`},{name:`edited`,type:`boolean`,required:!1,description:`Shows "Edited" beside the time.`},{name:`id`,type:`string`,required:!0,description:`The comment's public id.`},{name:`internal`,type:`boolean`,required:!1,description:`A staff-only note: tinted, with an "Internal note" badge.`},{name:`mine`,type:`boolean`,required:!1,description:`This person wrote it; the conversation variant puts it on the right.`},{name:`reactions`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!0,description:`How many people reacted this way.`},{name:`emoji`,type:`string`,required:!0,description:`The reaction character.`},{name:`mine`,type:`boolean`,required:!1,description:`True when this person reacted this way.`}],required:!1,description:`The reactions on the comment.`},{name:`replies`,type:`array`,itemFields:[{name:`at`,type:`stringOrNumber`,required:!0,description:`When it was written: an ISO instant with its zone, epoch ms or a Date. Shown in IST.`},{name:`attachments`,type:`array`,itemFields:[{name:`href`,type:`string`,required:!1,description:`The download URL.`},{name:`name`,type:`string`,required:!0,description:`The file name shown.`},{name:`sizeBytes`,type:`number`,required:!1,description:`The size, shown beside the name when given.`},{name:`to`,type:`string`,required:!1,description:`An in-app route for the file viewer page. It goes through the link component when one is given, otherwise it becomes a plain link. Without it the file downloads from href.`}],required:!1,description:`Files attached to the comment, listed as download links under the body.`},{name:`author`,type:`object`,fields:[{name:`name`,type:`string`,required:!0,description:`The author's name.`},{name:`src`,type:`string`,required:!1,description:`A photo URL for the author.`}],required:!0,description:`Who wrote it; src is a photo URL.`},{name:`canDelete`,type:`boolean`,required:!1,description:`This person may delete it.`},{name:`canEdit`,type:`boolean`,required:!1,description:`This person may edit it.`},{name:`deleted`,type:`boolean`,required:!1,description:`Shows "This comment was deleted." in place of the body; replies stay.`},{name:`edited`,type:`boolean`,required:!1,description:`Shows "Edited" beside the time.`},{name:`id`,type:`string`,required:!0,description:`The comment's public id.`},{name:`internal`,type:`boolean`,required:!1,description:`A staff-only note: tinted, with an "Internal note" badge.`},{name:`mine`,type:`boolean`,required:!1,description:`This person wrote it; the conversation variant puts it on the right.`},{name:`reactions`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!0,description:`How many people reacted this way.`},{name:`emoji`,type:`string`,required:!0,description:`The reaction character.`},{name:`mine`,type:`boolean`,required:!1,description:`True when this person reacted this way.`}],required:!1,description:`The reactions on the comment.`},{name:`replies`,type:`array`,required:!1,description:`Replies to a reply are not nested.`},{name:`value`,type:`string`,required:!1,description:`The stored body, with mentions as @[Label](id). Markdown source when markdown is set.`}],required:!1,description:`Replies, oldest first, with the same fields. Replies to a reply are not nested.`},{name:`value`,type:`string`,required:!1,description:`The stored body, with mentions as @[Label](id). Markdown source when markdown is set.`}],required:!1,description:`Top-level comments, oldest first.`,default:[]},{name:`composer`,type:`enum`,enum:[`inline`,`stacked`],required:!1,description:`stacked: the box under the list. inline: one row with the author's avatar, the box and the post button.`,default:`stacked`},{name:`composerLabel`,type:`string`,required:!1,description:`Name of the new-comment box. Replaces the built-in English text, for other languages.`,default:`Add a comment`},{name:`composerPlaceholder`,type:`string`,required:!1,description:`The composer box's placeholder. Without it the standard placeholder asks for a comment and names @ mentions.`},{name:`composerRows`,type:`number`,required:!1,description:`The composer box's rows. Without it, 3 stacked and 1 inline.`},{name:`deleteConfirmText`,type:`string`,required:!1,description:`The question before a delete. Replaces the built-in English text, for other languages.`,default:`Delete this comment?`},{name:`deleteLabel`,type:`string`,required:!1,description:`The Delete action and its confirm button. Replaces the built-in English text, for other languages.`,default:`Delete`},{name:`deletedText`,type:`string`,required:!1,description:`Shown in place of a deleted comment. Replaces the built-in English text, for other languages.`,default:`This comment was deleted.`},{name:`editLabel`,type:`string`,required:!1,description:`The Edit action. Replaces the built-in English text, for other languages.`,default:`Edit`},{name:`editedLabel`,type:`string`,required:!1,description:`Marks an edited comment. Replaces the built-in English text, for other languages.`,default:`Edited`},{name:`id`,type:`string`,required:!1,description:`The root's id. Generated when omitted.`},{name:`internalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Internal note`},{name:`label`,type:`string`,required:!1,description:`The list's accessible name.`,default:`Comments`},{name:`markdown`,type:`boolean`,required:!1,description:`Draws each comment body as Markdown (bold, italics, lists, links, code); raw HTML shows as text and a mention reads as plain @Name. Unset, bodies show as plain text.`,default:!1},{name:`noCommentsText`,type:`string`,required:!1,description:`Shown when there are no comments. Replaces the built-in English text, for other languages.`,default:`No comments yet.`},{name:`people`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A short line under the name, such as a team.`},{name:`label`,type:`string`,required:!0,description:`The name shown for the person.`},{name:`src`,type:`string`,required:!1,description:`A photo URL for the person.`},{name:`value`,type:`string`,required:!0,description:`The id stored in the mention.`}],required:!1,description:`The people the boxes offer after @.`},{name:`peopleLabel`,type:`string`,required:!1,description:`Name of the mention menu in the composer. Replaces the built-in English text, for other languages.`,default:`People`},{name:`postLabel`,type:`string`,required:!1,description:`The post button's text.`,default:`Comment`},{name:`postVariant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`The post button's emphasis. Without it, soft, or outline when composer is inline.`},{name:`reactionChoices`,type:`array`,required:!1,description:`The reactions the panel offers. Without it the panel offers a thumbs up, heart, party, smile, eyes and folded hands.`},{name:`reactionsLabel`,type:`string`,required:!1,description:`Name of a comment's reaction group. Replaces the built-in English text, for other languages.`,default:`Reactions`},{name:`readOnly`,type:`boolean`,required:!1,description:`Show the thread without the box, actions or reacting.`,default:!1},{name:`repliesToLabel`,type:`string`,required:!1,description:`Name of a reply list; {name} is the author. Replaces the built-in English text, for other languages.`,default:`Replies to {name}`},{name:`replyLabel`,type:`string`,required:!1,description:`The Reply action. Replaces the built-in English text, for other languages.`,default:`Reply`},{name:`variant`,type:`enum`,enum:[`conversation`,`list`],required:!1,description:`list: every comment down one column. conversation: chat bubbles, this person's own on the right.`,default:`list`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Discussion on a work item, ticket or approval.`,`Any record people talk about and mention each other on.`],whenNot:[{text:`A log of what changed and who changed it.`,instead:`AppTimeline`},{text:`A live conversation with an assistant.`,instead:`a chat thread in the chat package`}],do:[],dont:[],a11y:[`Changes to the thread are announced to screen readers.`,`Ctrl or Cmd+Enter sends a box and Escape closes it and returns focus.`,`The label prop is the list's accessible name.`]}},{name:`AppCompareTable`,marker:`AppCompareTable`,acceptsChildren:!1,props:[{name:`caption`,type:`string`,required:!1,description:`Accessible description of what is being compared.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`columns`,type:`array`,itemFields:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`start or center: center suits a column of ticks and short answers.`,default:`start`},{name:`highlight`,type:`boolean`,required:!1,description:`Tints the column as the recommended one.`},{name:`label`,type:`string`,required:!0,description:`The column heading; empty for the capability-name column.`},{name:`nowrap`,type:`boolean`,required:!1,description:`Keeps the column's cells on one line.`}],required:!0,description:`The columns, including the leading capability-name column, whose label is normally empty.`},{name:`density`,type:`enum`,enum:[`comfortable`,`relaxed`],required:!1,description:`relaxed sets a 16px body and 32px side padding for marketing tables.`,default:`comfortable`},{name:`mobile`,type:`enum`,enum:[`scroll`,`stack`],required:!1,description:`Under 576px of table width: stack (default) turns each row into a card; scroll keeps the columns and scrolls sideways.`,default:`stack`},{name:`noLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No`},{name:`partialLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Partial`},{name:`rows`,type:`array`,itemFields:[{name:`group`,type:`string`,required:!1,description:`A heading drawn above the first row of each run of rows that share it.`},{name:`key`,type:`string`,required:!1,description:`An optional stable key for the row.`},{name:`label`,type:`string`,required:!0,description:`The capability the row names.`},{name:`values`,type:`array`,required:!0,description:`One cell per column after the first: true shows a tick, false a dash, { state, text } shows a state icon beside its text (yes, no, warn or partial), { code } shows a reference code, anything else shows as written.`}],required:!0,description:`One row per capability.`},{name:`stickyFirstColumn`,type:`boolean`,required:!1,description:`With mobile scroll: the first column stays in place while the rest scrolls.`,default:!1},{name:`stickyHeader`,type:`boolean`,required:!1,description:`The header row stays on screen while a long table scrolls past it.`,default:!1},{name:`variant`,type:`enum`,enum:[`boxed`,`plain`],required:!1,description:`plain draws a figure table: ruled rows with no outer border, rounded corners or shaded first column, and body-size text.`,default:`boxed`},{name:`warningLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Warning`},{name:`yesLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Yes`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A reader is choosing between two to four options on the same criteria.`,`A page shows figures in ruled rows with no frame, such as rates and charges (variant plain).`,`The rows are authored capabilities, not records from a query.`,`Seeing the options side by side is what makes the choice obvious.`],whenNot:[{text:`The rows are records to sort, filter or page through.`,instead:`AppDataTable`},{text:`You are showing the tiers themselves with prices and CTAs.`,instead:`AppPricingCard`},{text:`It is a list of facts about one thing.`,instead:`AppDescriptions`}],do:[{title:`Booleans as ticks, plain row labels`,note:`Every row appears for every column, so the reader can read across. The row label names the capability in the customer’s words.`,example:[{component:`AppCompareTable`,props:{caption:`Good example`,columns:[{label:``},{label:`Free`},{label:`Pro`,highlight:!0}],rows:[{key:`g`,label:`Single sign-on`,values:[!1,!0]}]}}]}],dont:[{title:`Booleans as ticks, plain row labels`,note:`Two highlighted columns both tint, so no option reads as the recommendation; internal jargon in the row label; and hand-typed dashes and Y instead of booleans lose the tick's shape cue.`,example:[{component:`AppCompareTable`,props:{caption:`Bad example`,columns:[{label:``},{label:`Free`,highlight:!0},{label:`Pro`,highlight:!0}],rows:[{key:`b`,label:`SSO / SAML2 IdP federation`,values:[`-`,`Y`]}]}}]}],a11y:[`The caption prop is a visually hidden table caption, read by a screen reader before the table.`,`Column headings are th elements with scope col.`,`Each row label is a th element with scope row.`,`Each cell repeats its column name in data-label, so a stacked phone card reads the same as the table.`,`A state's icon is hidden from screen readers; its state is spoken as a hidden prefix such as Yes or Warning.`,`With mobile scroll, the scrolling region is focusable and named by the caption.`]}},{name:`AppConfirmDialog`,marker:`AppConfirmDialog`,acceptsChildren:!0,props:[{name:`cancelAction`,type:`object`,fields:[],required:!1},{name:`cancelLabel`,type:`string`,required:!1,description:`The cancel button's text.`,default:`Cancel`},{name:`className`,type:`string`,required:!1,description:`Merged with the dialog's own wui-confirm class.`,default:``},{name:`confirmAction`,type:`object`,fields:[],required:!1},{name:`confirmLabel`,type:`string`,required:!1,description:`The confirm button's text.`,default:`Confirm`},{name:`confirmPhrase`,type:`string`,required:!1,description:`Exact text the user must type before Confirm unlocks, such as a workspace name.`},{name:`description`,type:`node`,required:!1,description:`The text that explains what the user is confirming.`},{name:`icon`,type:`node`,required:!1,description:`Replaces the tone's glyph. A string is an icon name; a node is drawn as given. An image still wins over it.`},{name:`iconSize`,type:`number`,required:!1,description:`Width and height of the illustration in px, for the tone artwork and a custom image alike. Unset, it is 120px with a message and 84px without.`},{name:`idempotent`,type:`boolean`,required:!1,description:`Passes one Idempotency-Key to onConfirm for the action. A retry while the dialog stays open reuses it, and reopening the dialog makes a new one. Set it on a money action so the server applies a repeated send once.`,default:!1},{name:`image`,type:`string`,required:!1,description:`URL of a custom illustration that replaces the tone artwork. Any source size is fine: the theme boxes it to the same footprint. It is decorative, so the title and message carry the meaning.`},{name:`imageHeight`,type:`number`,required:!1,description:`Height in px of the custom image, written as the img height. Unset, no height is written.`},{name:`imageWidth`,type:`number`,required:!1,description:`Width in px of the custom image, written as the img width. Unset, no width is written.`},{name:`loading`,type:`boolean`,required:!1,description:`Busy state: shows a spinner and disables Confirm, Cancel and the confirm-phrase field, and blocks dismissal while the async action is in flight.`,default:!1},{name:`open`,type:`boolean`,required:!0,description:`Shows the dialog while true.`},{name:`placement`,type:`enum`,enum:[`center`,`top`],required:!1,description:`Vertical placement of the card: centred, or pinned near the top.`,default:`center`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Card width: a preset, or an exact max-width in px for a custom size.`,default:`md`},{name:`staticBackdrop`,type:`boolean`,required:!1,description:`The dialog closes only through its own Cancel or Confirm by default. false lets Escape and an outside click close it.`,default:!0},{name:`title`,type:`node`,required:!0,description:`The dialog heading.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:`The status icon, and the confirm button's colour when danger: the danger tone styles Confirm as destructive and draws the delete icon. Unset, the icon is info.`},{name:`typePhraseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {phrase} is filled with the confirm phrase.`,default:`Type {phrase} to confirm`},{name:`variant`,type:`enum`,enum:[`default`,`plain`],required:!1,description:`default keeps the status illustration and equal-width actions. plain drops the illustration, starts the text at the edge and sizes the actions small, right-aligned.`,default:`default`}],itemsTakeAction:[],takesAction:[`cancelAction`,`confirmAction`],source:`@webority/ui-react`,usage:{when:[`A destructive action needs a deliberate second step: delete, remove, cancel.`,`An action is irreversible and you want the user to pause before it runs.`,`The stakes are high enough to warrant typing an exact phrase to unlock (confirmPhrase).`],whenNot:[{text:`The dialog holds a form or details, not a yes/no question.`,instead:`AppModal`},{text:`The action is trivial and easily undone.`,instead:`an inline action + undo toast`},{text:`You're confirming across a slide-in panel of options.`,instead:`AppDrawer`}],do:[{title:`Name the verb and use danger`,note:`The danger tone + a verb-labelled button ("Delete") makes the weight and the outcome of the action clear.`,example:[{component:`AppButton`,props:{tone:`danger`},children:`Delete project`}]},{title:`Typed name only for irreversible actions`,note:`For an account-wide wipe, confirmPhrase forces the user to type the name, so there are no accidental clicks.`,example:[{component:`AppButton`,props:{tone:`danger`},children:`Delete workspace`}]}],dont:[{title:`Name the verb and use danger`,note:`A neutral "OK" on a destructive confirm hides what pressing it actually does.`,example:[{component:`AppButton`,children:`OK`}]},{title:`Typed name only for irreversible actions`,note:`Gating a reversible archive behind a typed phrase is friction with no payoff, so save it for the irreversible.`,example:[{component:`AppButton`,children:`Archive report`}]}],a11y:[`The dialog is built on AppModal, so it traps focus, closes on Escape only when staticBackdrop is false, and restores focus.`,`The title is an h3 that takes focus when the dialog opens.`,`A custom image is hidden from assistive technology with an empty alt, so the title and message carry the meaning.`,`The confirm-phrase field is named "Type <phrase> to confirm", and Confirm stays disabled until the phrase matches.`,`While loading, Cancel is disabled and the backdrop and Escape no longer close the dialog.`,`Children draw left-aligned between the description and the confirm-phrase field, so a field placed there keeps its own label.`]}},{name:`AppConsentBanner`,marker:`AppConsentBanner`,acceptsChildren:!1,props:[{name:`analyticsDescription`,type:`string`,required:!1,description:`What the analytics category covers.`},{name:`categories`,type:`array`,required:!1,description:`The optional categories to show; essential always shows. A category left out has no row, saves as off and is never granted by Accept all.`,default:[`analytics`,`functional`,`marketing`]},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`description`,type:`string`,required:!1,description:`The explanation above the buttons.`},{name:`functionalDescription`,type:`string`,required:!1,description:`What the functional category covers.`},{name:`marketingDescription`,type:`string`,required:!1,description:`What the marketing category covers.`},{name:`policyHref`,type:`url`,required:!1,description:`Link to the cookie policy; no link when omitted.`},{name:`policyLabel`,type:`string`,required:!1,description:`The policy link's text.`,default:`Cookie policy`},{name:`position`,type:`enum`,enum:[`bar`,`bottom-left`,`bottom-right`],required:!1,description:`The corner it pins to, or the full-width bar. bar is a slim full-width bar along the bottom at every width.`,default:`bottom-left`},{name:`preview`,type:`boolean`,required:!1,description:`Draw the banner open without reading or saving consent, for a design surface that never ran initConsent. Nothing is stored.`,default:!1},{name:`standalone`,type:`boolean`,required:!1,description:"Render sealed in a shadow root with bundled styles, for a page that does not load `@webority/theme`.",default:!1},{name:`title`,type:`string`,required:!1,description:`Title, and the dialog's accessible name.`,default:`Cookies on this site`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Any product surface that sets non-essential cookies (analytics, ads, feature personalization).`,`You want one shared consent record across the website and its subdomains.`],whenNot:[{text:`You need to announce something to every visitor, not ask a compliance question.`,instead:`AppBanner`},{text:`You are building the Razor head include that loads the tags and the consent record (the app-analytics-head tag).`},{text:`You are starting analytics or tags by hand beside the banner. The choice saved through initConsent decides which analytics start: the analytics category turns PostHog capture and Clarity on, and Consent Mode holds Tag Manager's tags until analytics consent, or marketing consent when adStorage is on.`}],do:[],dont:[],a11y:[`The panel is a dialog named by its title.`,`There is no close button by design, so the only way out is a choice: Accept all, Reject all, or Save preferences in settings mode.`,`Escape does not dismiss it, for the same reason as the missing close button.`]}},{name:`AppContextMenu`,marker:`AppContextMenu`,acceptsChildren:!0,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the menu.`,default:`Context menu`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the menu off; the browser's own menu shows instead.`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`checked`,type:`boolean`,required:!1,description:`Shows a check mark beside the label, for a selection.`},{name:`disabled`,type:`boolean`,required:!1,description:`The row is listed but skipped by the arrow keys and cannot be chosen.`},{name:`divider`,type:`boolean`,required:!1,description:`Draws a separator; the row then needs only its key.`},{name:`hint`,type:`string`,required:!1,description:`Muted text after the label, such as a keyboard shortcut.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name or a node shown before the label.`},{name:`image`,type:`string`,required:!1,description:`A picture URL shown instead of the icon.`},{name:`imageHeight`,type:`number`,required:!1,description:`Picture height in pixels.`},{name:`imageWidth`,type:`number`,required:!1,description:`Picture width in pixels; reserves its box before it loads.`},{name:`items`,type:`array`,itemFields:[{name:`checked`,type:`boolean`,required:!1,description:`Shows a check mark beside the label, for a selection.`},{name:`disabled`,type:`boolean`,required:!1,description:`The row is listed but skipped by the arrow keys and cannot be chosen.`},{name:`divider`,type:`boolean`,required:!1,description:`Draws a separator; the row then needs only its key.`},{name:`hint`,type:`string`,required:!1,description:`Muted text after the label, such as a keyboard shortcut.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name or a node shown before the label.`},{name:`image`,type:`string`,required:!1,description:`A picture URL shown instead of the icon.`},{name:`imageHeight`,type:`number`,required:!1,description:`Picture height in pixels.`},{name:`imageWidth`,type:`number`,required:!1,description:`Picture width in pixels; reserves its box before it loads.`},{name:`items`,type:`array`,required:!1,description:`Makes the row open a further side menu, in the same item model.`},{name:`key`,type:`string`,required:!0,description:`A unique id for the row.`},{name:`label`,type:`string`,required:!1,description:`The row's text.`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`The placeholder of the filter field on a searchable side menu.`,default:`Search`},{name:`searchable`,type:`boolean`,required:!1,description:`On a row with items, puts a filter field at the top of its side menu.`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the row, drawn as a key chip at the end of the row.`},{name:`to`,type:`string`,required:!1,description:`Makes the row a link to this address.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" styles the row as a destructive action.`}],required:!1,description:`Makes the row open a side menu of these rows, in the same item model.`},{name:`key`,type:`string`,required:!0,description:`A unique id for the row.`},{name:`label`,type:`string`,required:!1,description:`The row's text.`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`The placeholder of the filter field on a searchable side menu.`,default:`Search`},{name:`searchable`,type:`boolean`,required:!1,description:`On a row with items, puts a filter field at the top of its side menu.`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the row, such as E, drawn as a key chip at the end of the row. The page binds the key itself.`},{name:`to`,type:`string`,required:!1,description:`Makes the row a link to this address.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" styles the row as a destructive action.`}],required:!1,description:`The AppDropdown item model: one entry per row, or a separator when divider is true.`,default:[]},{name:`menuClassName`,type:`string`,required:!1,description:`Extra classes on the menu panel.`,default:``},{name:`open`,type:`boolean`,required:!1,description:`Shows the panel open, for a design preview or a controlled caller.`},{name:`target`,type:`string`,required:!1,description:"CSS selector of the elements the menu serves. Without it, the menu serves `children`."},{name:`trigger`,type:`string`,required:!1,description:`A CSS selector inside the region: a click or Enter on a match opens the menu under it.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table row, file or card has several actions and a visible button on each would clutter it.`,`Power users expect right-click on a list of records, as in a file manager or a mail client.`,`The same actions are also reachable some visible way.`],whenNot:[{text:`The actions hang off a visible button or icon.`,instead:`AppDropdown`},{text:`You are choosing a value for a form field.`,instead:`AppSelect`},{text:`The panel holds a form or rich content.`,instead:`AppPopover`}],do:[],dont:[],a11y:[`The menu panel has role menu named by ariaLabel, each row has role menuitem, and a disabled row sets aria-disabled.`,`Arrow keys, Home and End move between rows, typing the start of a label jumps to it, Enter or Space chooses, and Escape closes the menu and returns focus to where it was.`,`Shift+F10 or the ContextMenu key opens the menu under the focused element, and a long press opens it on touch.`]}},{name:`AppCopyButton`,marker:`AppCopyButton`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Custom className.`,default:``},{name:`copiedLabel`,type:`string`,required:!1,description:`Label shown after a successful copy.`,default:`Copied`},{name:`iconOnly`,type:`boolean`,required:!1,description:`Render as an icon-only button (like AppActionIcon); label becomes aria-label.`,default:!1},{name:`label`,type:`string`,required:!1,description:`Button label.`,default:`Copy`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Button size.`,default:`md`},{name:`text`,type:`string`,required:!0,description:`The text to copy.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic colour.`,default:`primary`},{name:`tooltip`,type:`string`,required:!1,description:`A collision-aware hover and focus tooltip (via AppTooltip) that flips to stay on screen.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:"Preferred tooltip side; `auto` picks the side with the most room.",default:`auto`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Button variant.`,default:`ghost`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A user needs to copy an API key, token, ID, link, or other reference to the clipboard.`,`You want visual feedback: the icon and label swap for 2 seconds to confirm the copy.`,`The copied text is sensitive (token, key) and you want a compact, accessible button.`],whenNot:[{text:`You are copying large amounts of data or structured content.`,instead:`A download link or a manual selection + native copy.`},{text:`The text to copy changes dynamically and you cannot react to it.`,instead:`A static link or a form with a dedicated copy action.`}],do:[],dont:[],a11y:[`In the button form the label swaps from the Copy label to the Copied label, and the button has aria-live polite so the change is announced.`,`In the icon-only form the current label is the accessible name of the action icon.`,`A clipboard that denies the copy changes nothing and raises no error.`]}},{name:`AppCountryFlag`,marker:`AppCountryFlag`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the flag.`,default:``},{name:`country`,type:`string`,required:!0,description:`ISO 3166-1 alpha-2 code of the country, such as IN. The flag follows the size of the text around it.`},{name:`label`,type:`string`,required:!1,description:`Names the flag for assistive tech. Without it the flag is decorative and hidden, so put the country name in the text beside it.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A country beside its name in a list, a table cell or a profile.`,`A country column in a table.`],whenNot:[{text:`Picking a country.`,instead:`AppSelect mode="country"`},{text:`A phone number with its country.`,instead:`AppPhoneNumberInput`}],do:[],dont:[],a11y:[`Decorative by default: the country name in the text beside it carries the meaning.`,`Give label when the flag stands alone, so assistive tech reads the country.`]}},{name:`AppDashboardCell`,marker:`AppDashboardCell`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the cell.`,default:``},{name:`span`,type:`enum`,enum:[`Fifth`,`Full`,`Half`,`Quarter`,`Third`,`TwoThirds`],required:!1,description:`The share of the row the cell takes, by name: Quarter, Third, Half or TwoThirds of the twelve columns, Full (the default), or Fifth for five to a row on wide screens.`,default:`Full`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Inside an AppDashboardGrid, to say how many of its twelve columns a card or tile takes.`,`A card or tile inside should fill the cell's height.`],whenNot:[{text:`A layout that needs other widths than Quarter, Third, Half, TwoThirds or Full.`,instead:`Bootstrap's Row and Col`}],do:[],dont:[],a11y:[`The cell is a plain div with no role or aria attributes; the card or tile inside carries its own semantics.`,`Under 576px the cell takes the full width.`]}},{name:`AppDashboardGrid`,marker:`AppDashboardGrid`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the grid.`,default:``}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A page of KPI tiles and chart cards that should line up and stack on a phone.`,`A layout the page decides, with no drag and drop or saved layouts.`],whenNot:[{text:`A form or a content page.`,instead:`AppFormSection`},{text:`A layout that needs other widths than a quarter, a third, a half, two thirds, a fifth or the full row.`,instead:`Bootstrap's Row and Col`}],do:[],dont:[],a11y:[`The grid is a plain div with no role or aria attributes; each cell's content carries its own semantics.`,`Under 576px every cell takes the full width, one above another.`]}},{name:`AppDataTable`,marker:`AppDataTable`,acceptsChildren:!1,props:[{name:`activeRowKey`,type:`stringOrNumber`,required:!1,description:`The key, as rowKey returns it, of the row whose record is open, for example in a detail pane beside the table. That row gets aria-current and a subtle primary background, apart from the row status bar and selected rows.`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name for the table.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the table element.`,default:``},{name:`columns`,type:`array`,itemFields:[{name:`align`,type:`enum`,enum:[`center`,`end`,`num`],required:!1,description:`Aligns the cells: num right-aligns figures in tabular digits.`},{name:`cellClassName`,type:`string`,required:!1,description:`A class added to every cell in the column.`},{name:`cellStyle`,type:`object`,required:!1,description:`Inline styles added to every cell in the column.`},{name:`columnClassName`,type:`string`,required:!1,description:`added to the header cell and every body cell of the column; use it to target one column from CSS, for example to hide it in a container query`},{name:`grow`,type:`boolean`,required:!1,description:`Gives this column the spare width.`},{name:`help`,type:`node`,required:!1,description:`Help shown in an info tip beside the header label.`},{name:`hideable`,type:`boolean`,required:!1,description:`Lets the person hide this column from the column menu.`},{name:`key`,type:`string`,required:!0,description:`The row field this column reads.`},{name:`label`,type:`node`,required:!0,description:`The column heading.`},{name:`minWidth`,type:`stringOrNumber`,required:!1,description:`The narrowest the column may shrink, in px or a CSS length.`},{name:`nowrap`,type:`boolean`,required:!1,description:`Keeps each cell on one line.`},{name:`pin`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Keeps the column in view at the start or end while the table scrolls sideways.`},{name:`rowHeader`,type:`boolean`,required:!1,description:`The cell names the row: it draws as a th with scope row. Default off.`},{name:`sortable`,type:`boolean`,required:!1,description:`Lets the heading sort the rows by this column.`},{name:`width`,type:`stringOrNumber`,required:!1,description:`The column's width, in px or a CSS length.`}],required:!0,description:`The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align, grow and rowHeader.`},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`,`cozy`],required:!1,description:`Row height: cozy 48 px (the default), comfortable 72 px for reading-heavy pages, compact 40 px. Compact is one line per row and hides the identity subline.`,default:`cozy`},{name:`densitySwitch`,type:`boolean`,required:!1,description:`Shows a Comfortable and Compact switch above the table that changes the row height on the spot.`,default:!1},{name:`empty`,type:`node`,required:!1,description:`Shown when there are no rows and the source is empty (sourceCount 0), or no emptyFiltered is given.`,default:`No records found.`},{name:`emptyFiltered`,type:`node`,required:!1,description:`Shown when there are no rows and sourceCount is unset or above 0.`},{name:`emptyHeader`,type:`enum`,enum:[`hide`,`show`],required:!1,description:`Column headers over an empty table: hide removes them while the empty state shows; show keeps them above it.`,default:`hide`},{name:`equalActions`,type:`boolean`,required:!1,description:`Gives every labelled button in the row actions column the same width, so the column lines up from row to row. Icon-only actions are not widened.`,default:!1},{name:`error`,type:`object`,fields:[{name:`message`,type:`string`,required:!0,description:`The sentence the error state shows.`}],required:!1,nullable:!0,description:`A failed fetch, with a message the error state shows. With no rows it replaces the empty state, with a retry button when onRetry is set. Rows present are replaced by it too. Ignored while loading. An ApiError from the web-core helpers fits.`},{name:`exportName`,type:`string`,required:!1,description:`The file name, without its extension, for an export.`,default:`table`},{name:`exportable`,type:`boolean`,required:!1,description:`Shows Download CSV and Download Excel above the table. React exports all rows; Razor exports the rows in the DOM at the click.`,default:!1},{name:`flush`,type:`boolean`,required:!1,description:`No wrapper padding above the column header row.`,default:!1},{name:`groupBy`,type:`string`,required:!1,description:`A column key: rows gather under a header row per value of it, in the order each value first appears, each header collapsing its rows and showing their count. On a server-paged list each page's rows gather the same way, and the count is the rows on that page.`},{name:`headerTone`,type:`string`,required:!1,description:`The column header band's colour, a CSS colour or a $color token the Canvas renderer resolves.`},{name:`hiddenColumns`,type:`array`,required:!1,description:`Keys of hideable columns to leave out, from useTableView. A column that is not hideable always shows.`},{name:`hoverRowKey`,type:`stringOrNumber`,required:!1,description:`The key, as rowKey returns it, of a row drawn in its hover look without a pointer, for previews and design tools. The row carries the theme class wui-force-hover and otherwise looks and behaves as any other row.`},{name:`id`,type:`string`,required:!1,description:`DOM id on the table's outer box; a column menu's for names it.`},{name:`linkFirstColumn`,type:`boolean`,required:!1,description:`Draws the first column's name as a link. Needs rowHref or onRowClick.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows skeleton rows in place of the rows.`,default:!1},{name:`maxHeight`,type:`stringOrNumber`,required:!1,description:`Caps the table's height; the body scrolls inside it with the header pinned. Without it there is no scroll box for the header to stick to.`},{name:`nameLines`,type:`number`,required:!1,description:`Lines a ledger name wraps to before it is cut, 1 to 4; the default is 2. A compact or virtual table shows one line.`},{name:`pad`,type:`number`,required:!1,description:`The inset around the table, in px; the wrapper's 20px is the default and flush wins over it.`},{name:`pagination`,type:`object`,fields:[{name:`mode`,type:`enum`,enum:[`numbered`,`prev-next`],required:!1,description:`numbered shows page buttons; prev-next shows only the previous and next buttons.`},{name:`page`,type:`number`,required:!0,description:`The current page, counted from 1.`},{name:`pageSize`,type:`number`,required:!0,description:`The rows shown on one page.`},{name:`pageSizes`,type:`array`,required:!1,description:`The page sizes the size menu offers.`},{name:`summary`,type:`boolean`,required:!1,description:`Draws "Showing x to y of z" at the start of the footer.`},{name:`summaryText`,type:`string`,required:!1,description:`Replaces the built-in "Showing {first} to {last} of {total}" text of the footer, for other languages. The tokens are {first}, {last} and {total}.`},{name:`total`,type:`number`,required:!0,description:`The number of rows across every page.`},{name:`totalPages`,type:`number`,required:!1,description:`The number of pages; wins over the count worked out from total.`}],required:!1,description:`The footer's state, usually straight from usePagination. The footer shows once total is above the smallest page size and stays in place while loading.`},{name:`refreshing`,type:`boolean`,required:!1,description:`Keeps the current rows on screen, dimmed and marked busy, while new rows load. Has no effect with no rows; loading shows skeleton rows instead.`,default:!1},{name:`resizableColumns`,type:`boolean`,required:!1,description:`Each column but the last gets a handle on its end edge: drag it, or focus it and press the arrow keys. The table then keeps fixed widths measured from its rows, and the last column takes the rest.`,default:!1},{name:`rowActionsLabel`,type:`string`,required:!1,description:`The heading text of the trailing actions column.`},{name:`rowActionsMode`,type:`enum`,enum:[`column`,`hover`,`hover-menu`],required:!1,description:`Where the row actions show: hover fades them in on row hover and focus, and the menu shows on touch; hover-menu keeps the menu visible; column keeps the icons always visible.`,default:`hover`},{name:`rowDrag`,type:`boolean`,required:!1,description:`Rows drag onto page elements marked data-wui-drop-target; a ticked row drags the whole selection. Fires wui:row-drop with keys and target on the wrapper.`,default:!1},{name:`rows`,type:`array`,required:!1,description:`The row objects shown in the table, one per row, read through each column's key.`},{name:`selectable`,type:`boolean`,required:!1,description:`Renders a leading checkbox column. Fires a bubbling selectionchange with selected, total and keys when the ticked count changes.`,default:!1},{name:`selectedIds`,type:`array`,required:!1,description:`Currently selected row keys, as a Set.`},{name:`singleExpand`,type:`boolean`,required:!1,description:`With renderExpanded, opening a row closes the one that was open, so at most one row is expanded.`,default:!1},{name:`skeletonRows`,type:`number`,required:!1,description:`How many skeleton rows to draw while loading.`,default:5},{name:`sort`,type:`object`,fields:[{name:`dir`,type:`enum`,enum:[`asc`,`desc`],required:!0,description:`The sort direction.`},{name:`key`,type:`string`,required:!0,nullable:!0,description:`The key of the sorted column.`}],required:!1,description:`The column the rows are sorted by and the direction, as the caller holds them.`},{name:`sortIcons`,type:`enum`,enum:[`always`,`hover`],required:!1,description:`Sort arrows on sortable headers: hover shows them on hover only; always keeps a faint arrow on every sortable header.`,default:`hover`},{name:`sourceCount`,type:`number`,required:!1,description:`The number of rows before filtering. 0 means the source is empty and empty shows; unset means the table was filtered.`},{name:`stackOnMobile`,type:`boolean`,required:!1,description:`Stacks on phones by default: below 768px each row is a card, the first column on top, then label and value lines from the column labels, actions at the bottom. A virtual table defaults to false. Set false to keep the scrolling table.`,default:!0},{name:`stickyActions`,type:`boolean`,required:!1,description:`Pins the last column, where the rowActions list renders, to the end edge while a wide table scrolls sideways, so a row's actions stay in view in a narrow box.`,default:!1},{name:`stickyFirstColumn`,type:`boolean`,required:!1,description:`Pins the first column, and the select or expand column before it, while a wide table scrolls sideways.`,default:!1},{name:`striped`,type:`boolean`,required:!1,description:`Alternate-row shading in place of divider lines.`,default:!1},{name:`tableLayout`,type:`enum`,enum:[`auto`,`fixed`],required:!1,description:`fixed holds every column to its width or minWidth and clips overflowing text; auto sizes columns to their content.`,default:`auto`},{name:`viewKey`,type:`string`,required:!1,description:`Remembers resized widths in this browser under this name, the same name useTableView takes.`},{name:`virtual`,type:`boolean`,required:!1,description:`Renders only the rows in view, plus a margin, for a long client-side list. Needs maxHeight; rows are taken to share one height, so it is not for renderExpanded or stackOnMobile.`,default:!1},{name:`wrapperClassName`,type:`string`,required:!1,description:`Extra classes on the outer table-wrap div, the padding hook. Manage the table's inset from here, for example a class that sets --wui-table-pad.`,default:``}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are listing records in rows and columns: projects, assessments, members.`,`The list needs sortable headers, a loading skeleton, or an empty state.`,`Rows need per-row actions (edit, delete) in a trailing column.`],whenNot:[{text:`You are laying out non-tabular content on a surface.`,instead:`AppCard`},{text:`You only need to page through a list, not tabulate it.`,instead:`AppTablePagination alone`},{text:`The empty list deserves a rich call to action.`,instead:`AppEmptyState variant="table" (as empty)`}],do:[{title:`Say when a table is empty`,note:`An explicit empty message tells the user the list is genuinely empty, not broken.`,example:[{component:`AppDataTable`,props:{columns:[{key:`name`,label:`Building`},{key:`status`,label:`Status`},{key:`created`,label:`Created`,hideable:!0,cellClassName:`text-body-secondary wui-text-sm`}],rows:[],empty:`No buildings yet.`}}]}],dont:[{title:`Say when a table is empty`,note:`A blank table with no message reads as a bug, because the user cannot tell empty from failed.`,example:[{component:`AppDataTable`,props:{columns:[{key:`name`,label:`Building`},{key:`status`,label:`Status`},{key:`created`,label:`Created`,hideable:!0,cellClassName:`text-body-secondary wui-text-sm`}],rows:[],empty:``}}]}],a11y:[`Sortable headers carry aria-sort and sort on Enter or Space.`,`Row checkboxes are labelled Select row, the header one Select all rows, and the expand toggle Expand row or Collapse row with aria-expanded.`,`The open row carries aria-current, and a saved or failed row change is announced through a polite status region.`],keyboard:[{key:`Tab`,does:`Moves focus through the table's stops: the scroll region, each sortable heading, each row that opens, each checkbox and each column resize handle, in page order.`,notes:`Arrow keys do nothing in the table.`},{key:`Enter`,does:`Sorts by a focused sortable column heading.`,notes:`Space does the same. Only sortable headings respond.`},{key:`Space`,does:`Sorts by a focused sortable column heading, or ticks a focused row checkbox.`,notes:`The checkbox is a native input; its state follows the browser.`},{key:`Enter`,does:`Opens a focused row.`,notes:`Only on a table with rowHref or onRowClick, and only when the row itself has focus.`},{key:`Shift + click`,does:`Selects or clears every row from the last ticked row to the clicked one.`,notes:`Mouse; set on a row checkbox, only when selection is on.`}]}},{name:`AppDatePicker`,marker:`AppDatePicker`,acceptsChildren:!1,props:[{name:`aria-invalid`,type:`any`,required:!1,description:`Marks the control invalid (aria-invalid) without an error message. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form.`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when there is no visible label.`},{name:`className`,type:`string`,required:!1,description:`Classes for the wui-datepicker control itself.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`displayFormat`,type:`string`,required:!1,description:`How the chosen date reads in the field, from the tokens yyyy, MMMM, MMM, MM, dd and d (for example dd/MM/yyyy). The onChange value stays ISO.`,default:`dd-MMM-yyyy`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Classes for the field wrapper that holds the label, helper text and error.`,default:``},{name:`firstDay`,type:`enum`,enum:[0,1,2,3,4,5,6],required:!1,description:`First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it.`},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the control.`},{name:`id`,type:`string`,required:!1,description:`The id of the control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control and used as its accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest selectable date, as an ISO date string.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable date, as an ISO date string.`},{name:`name`,type:`string`,required:!1,description:`The form field name the ISO date posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the field while no date is chosen.`,default:`Choose a date`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control height tier, matching AppInput.`},{name:`valid`,type:`boolean`,required:!1,description:`Shows a green tick on a filled field with no error. Default off.`,default:!1},{name:`value`,type:`string`,required:!1,description:`ISO date string.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a single calendar date: assessment date, due date, date of birth.`,`You need one consistent calendar across every browser and both surfaces.`,`Restricting selection to a valid window with min / max.`],whenNot:[{text:`You need a date and a time of day.`,instead:`AppDateTimePicker`},{text:`You are capturing a start-and-end range.`,instead:`AppDateRangePicker`},{text:`The value is free text, not a date.`,instead:`AppInput`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[{title:`Give the date a visible label`,note:`A visible label above the field. The user knows what the date is for before opening it.`,example:[{component:`AppDatePicker`,props:{id:`bp-good-date`,label:`Assessment date`,value:`2026-07-10`}}]},{title:`Set min and max bounds`,note:`min / max stop invalid dates at the source, so the user can only pick a real one.`,example:[{component:`AppDatePicker`,props:{value:`2026-07-15`,min:`2026-07-01`,max:`2026-07-31`}}]}],dont:[{title:`Give the date a visible label`,note:`Only a placeholder as the label, which vanishes the moment a date is picked.`,example:[{component:`AppDatePicker`,props:{value:``,placeholder:`Date`}}]},{title:`Set min and max bounds`,note:`No bounds, then reject the date after submit. Constrain up front instead.`,example:[{component:`AppDatePicker`,props:{value:`2030-01-01`}}]}],a11y:[`The field label names the control through aria-label when it is a string, and ariaLabel overrides it.`,`Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid. A caller's aria-invalid takes its place.`,`Required and disabled are set as native attributes on the control.`]}},{name:`AppDateRangePicker`,marker:`AppDateRangePicker`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when there is no visible label.`},{name:`className`,type:`string`,required:!1,description:`Class to apply to the control element.`,default:``},{name:`defaultEnd`,type:`string`,required:!1,description:`The starting end date of an uncontrolled field.`},{name:`defaultStart`,type:`string`,required:!1,description:`The starting start date of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`end`,type:`string`,required:!1,description:`Range end as an ISO date string (YYYY-MM-DD).`},{name:`endName`,type:`string`,required:!1,description:`Form field name the end date posts under.`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class to apply to the wrapper field div.`,default:``},{name:`financialYearStart`,type:`number`,required:!1,description:`The month number, 1 to 12, the financial year starts in; it sets the thisFinancialYear quick range. Unset, it is 4 (April).`},{name:`firstDay`,type:`enum`,enum:[0,1,2,3,4,5,6],required:!1,description:`First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it.`},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the control.`},{name:`id`,type:`string`,required:!1,description:`The id of the control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control and used as its accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest selectable date, as an ISO date string.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable date, as an ISO date string.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the field while no range is chosen.`,default:`Start to End`},{name:`presets`,type:`array`,required:!1,description:`Quick ranges, listed beside the calendar (above it on a phone); picking one fills the range and closes the calendar. An item is a name (today, yesterday, last7Days, last30Days, thisMonth, lastMonth or thisFinancialYear, resolved against today in the time zone (IST unless timeZone is set)) or { label, start, end } with ISO dates.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control height tier, matching AppInput.`},{name:`start`,type:`string`,required:!1,description:`Range start as an ISO date string (YYYY-MM-DD).`},{name:`startName`,type:`string`,required:!1,description:`Form field name the start date posts under.`},{name:`timeZone`,type:`string`,required:!1,description:`IANA time zone the quick ranges are resolved in, for example Asia/Kolkata or America/New_York. Unset, it is India Standard Time (Asia/Kolkata).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a start-and-end date range: a stay, a booking window, a report period.`,`You want one control for the whole range rather than two separate date fields.`,`Restricting the range to a valid window with min / max.`],whenNot:[{text:`You only need a single date.`,instead:`AppDatePicker`},{text:`You need a date and a time of day.`,instead:`a date-time control`},{text:`The two dates are unrelated fields.`,instead:`two AppDatePicker fields`}],do:[],dont:[],a11y:[`The field label names the control through aria-label when it is a string, and ariaLabel overrides it.`,`Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid.`,`Required and disabled are set as native attributes on the control.`]}},{name:`AppDateTimePicker`,marker:`AppDateTimePicker`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Classes for the wui-date-time control itself.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting instant of an uncontrolled field, as an ISO UTC string.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables both controls.`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the controls.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Classes for the field wrapper that holds the label, controls and messages.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Replaces the zone note shown under the controls.`},{name:`id`,type:`string`,required:!1,description:`The id of the date control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the controls.`},{name:`max`,type:`string`,required:!1,description:`The latest selectable date, as an ISO UTC string; its local calendar date is used.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable date, as an ISO UTC string; its local calendar date is used.`},{name:`name`,type:`string`,required:!1,description:`The form field name the UTC instant posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`value`,type:`string`,required:!1,description:`The instant as an ISO UTC string, for example 2026-03-14T04:00:00.000Z; empty when unset.`},{name:`zone`,type:`string`,required:!1,description:`The IANA zone the date and time are read and entered in. Default IST.`,default:`Asia/Kolkata`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing one instant a person sets by date and time: a meeting start, a deadline, a scheduled send.`,`The value must be stored in UTC and shown in IST.`],whenNot:[{text:`You need only a calendar date.`,instead:`AppDatePicker`},{text:`You need only a time of day.`,instead:`AppTimePicker`}],do:[],dont:[],a11y:[`The date control is named by the field label, and the time control carries its own name.`,`An error sets aria-invalid and points aria-describedby at the error text, or at the helper text when there is no error.`,`Both controls carry the required attribute as well as the visible required mark.`,`The info tip beside the label is named by helpLabel.`]}},{name:`AppDescriptions`,marker:`AppDescriptions`,acceptsChildren:!1,props:[{name:`bordered`,type:`boolean`,required:!1,description:`Draws a rule between rows, across every column.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the grid container.`,default:``},{name:`columns`,type:`enum`,enum:[1,2,3,4],required:!1,description:`How many columns the grid should have, before the media-breakpoint collapse.`,default:2},{name:`items`,type:`array`,itemFields:[{name:`emphasis`,type:`boolean`,required:!1,description:`Marks the total row: bold, with a rule above.`},{name:`href`,type:`url`,required:!1,description:`Makes the value a link; in layout list the whole row (icon, label and value) is the link. Leave it out for a value that is not actionable.`},{name:`icon`,type:`icon`,required:!1,description:`A glyph in a 36px round tile before the label, by name or as a node.`},{name:`id`,type:`string`,required:!1,description:`Set on the item's root so a link can jump to the row. Any data-* attribute on an item is set there too.`},{name:`key`,type:`string`,required:!1,description:`A stable React key for the row; defaults to its label and position.`},{name:`label`,type:`node`,required:!0,description:`The row's label.`},{name:`multiline`,type:`boolean`,required:!1,description:`Keeps the line breaks in this value.`},{name:`span`,type:`number`,required:!1,description:`How many grid columns the item spans: 2 or 3 for a longer value.`},{name:`tabIndex`,type:`number`,required:!1,description:`Set on the item's root; 0 or -1 makes the row focusable.`},{name:`value`,type:`node`,required:!0,description:`The row's value; an empty value shows a muted placeholder.`}],required:!1,description:`The rows, each with a label and a value. A span of 2 or 3 makes the item span multiple columns, and emphasis marks the total row.`,default:[]},{name:`labels`,type:`enum`,enum:[`start`,`top`],required:!1,description:`"start": each label sits left of its value, in the grid's columns; grid layout only. Default "top".`,default:`top`},{name:`layout`,type:`enum`,enum:[`grid`,`list`,`summary`],required:!1,description:`summary puts each label left of its value, with tabular figures. list is one column of rows with a rule between them, a flush first and last row and a single-line value.`,default:`grid`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Item padding and font size.`,default:`md`},{name:`title`,type:`node`,required:!1,description:`Optional heading above the grid.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are displaying many attributes of a single record.`,`Some values are longer (spanning multiple grid columns helps).`,`The panel is read-only: a detail view, a drawer, a profile sidebar.`,`You want a clean tabular layout that reflows on mobile.`],whenNot:[{text:`The values are editable.`,instead:`Form fields (AppInput, AppSelect, …)`},{text:`It is one headline number.`,instead:`AppKpiTile`},{text:`You are listing many records.`,instead:`AppDataTable`}],do:[{title:`Name each value`,note:`Specific, concise labels (no generic "Info") and clear values.`,example:[{component:`AppDescriptions`,props:{items:[{label:`Email`,value:`alice@example.com`},{label:`Status`,value:`Active`}]}}]}],dont:[{title:`Name each value`,note:`Generic labels like "Data 1" and ellipsis placeholders carry no meaning.`,example:[{component:`AppDescriptions`,props:{items:[{label:`Data 1`,value:`alice@example.com`},{label:`Data 2`,value:`…`}]}}]}],a11y:[`Renders a description list: each label is a dt and its value the dd of the same item.`,`An empty value renders a muted placeholder rather than a blank cell.`]}},{name:`AppDetailPane`,marker:`AppDetailPane`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the pane.`,default:``},{name:`label`,type:`string`,required:!0,description:`The accessible name of the pane region.`},{name:`open`,type:`boolean`,required:!1,description:`Shows the pane. Closed, the pane is hidden and takes no room. The caller owns it and closes it in onClose.`,default:!1},{name:`sticky`,type:`boolean`,required:!1,description:`Keeps the pane in view under the top bar while the list beside it scrolls.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person keeps working in a list and reads the details of one item beside it.`,`Choosing an item should not change page, and the list must stay where it is.`],whenNot:[{text:`The items form a queue the person works through one by one.`,instead:`AppSplitView`},{text:`The detail is an overlay that covers the page.`,instead:`AppDrawer`},{text:`The detail is a short task that interrupts the flow.`,instead:`AppModal`}],do:[{title:`Beside the list it details`,note:`The pane sits beside the list it details. Escape inside it calls onClose.`,example:[{component:`AppDetailPane`,props:{label:`Request details`,open:!0},children:[{component:`p`,children:`Expense claim: client travel. Dev Patel, Sales.`}]}]}],dont:[{title:`Beside the list it details`,note:`Use a detail pane to cover the page or hold a multi-step task; use AppDrawer or AppModal for that.`,example:[{component:`AppDetailPane`,props:{label:`New leave request`,open:!0},children:[{component:`p`,children:`Step 1 of 3: choose the leave type.`},{component:`AppButton`,props:{variant:`outline`,size:`sm`},children:`Next`}]}]}],a11y:[`The pane is a region named by label. Escape inside it calls onClose.`,`A closed pane is hidden from assistive technology, so it is not read while it is closed.`]}},{name:`AppDrawer`,marker:`AppDrawer`,acceptsChildren:!0,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The dialog's accessible name when there is no title.`},{name:`bodyClassName`,type:`string`,required:!1,description:`Classes on the scrolling body, such as p-0 to drop its padding.`,default:``},{name:`className`,type:`string`,required:!1,description:`Extra classes on the drawer element.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The close button's accessible name, for other languages.`,default:`Close`},{name:`confirmDiscard`,type:`string`,required:!1,description:`Ask before closing while dirty: this text, with Discard and Keep editing in the footer.`},{name:`defaultSnap`,type:`number`,required:!1,description:`Which of the sorted snap points it opens on.`,default:0},{name:`dirty`,type:`boolean`,required:!1,description:`True while a field differs from its loaded value; the caller owns it.`,default:!1},{name:`dismissible`,type:`boolean`,required:!1,description:`Show the close button.`,default:!0},{name:`footer`,type:`node`,required:!1,description:`Pinned below the scrolling body.`},{name:`header`,type:`node`,required:!1,description:`A custom header that replaces the default one (title, subtitle and close button).`},{name:`headerClassName`,type:`string`,required:!1,description:`Classes on the default header, so a product can style it without restyling the library class. Ignored when header replaces it.`,default:``},{name:`maxWidth`,type:`string`,required:!1,description:`Caps the panel's width, such as 600px. Unset, the theme caps it at 92vw.`},{name:`open`,type:`boolean`,required:!1,description:`Whether the drawer is open. The caller owns it and closes it in onClose.`,default:!1},{name:`sheet`,type:`boolean`,required:!1,description:`Below md the drawer is a bottom sheet that rests on snapPoints. false keeps the side panel at every width, for a menu or a filter panel.`,default:!0},{name:`sheetHeightLabel`,type:`string`,required:!1,description:`The sheet handle's accessible name, for other languages.`,default:`Sheet height`},{name:`side`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Which edge the side drawer slides from.`,default:`end`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The side drawer's width: 360, 480, 640 or 720 px.`,default:`md`},{name:`snapPoints`,type:`array`,required:!1,description:`The sheet's resting heights, each 10 to 100 percent of the screen.`,default:[50,90]},{name:`staticBackdrop`,type:`boolean`,required:!1,description:`The drawer closes only through its own Close or Cancel by default. false lets Escape and an outside click close it.`,default:!0},{name:`style`,type:`object`,required:!1,description:`Inline style on the drawer element.`},{name:`subtitle`,type:`string`,required:!1,description:`A line under the title.`},{name:`title`,type:`node`,required:!1,description:`The heading. Text, or a node with an icon or badge. It names the dialog unless ariaLabel is set or a custom header replaces it; give ariaLabel with a custom header.`},{name:`titleIcon`,type:`icon`,required:!1,description:`Library icon beside the title.`},{name:`width`,type:`string`,required:!1,description:`The panel's CSS width, such as 420px. Overrides size.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A filter, detail or edit panel that must not squeeze the page on a phone.`,`A menu or filter panel that stays a side panel on a phone (sheet false).`,`Secondary content the user opens, reads or edits, then dismisses.`],whenNot:[{text:`A short confirmation or a form that needs the user's full attention.`,instead:`AppModal`},{text:`Content that belongs beside a list.`,instead:`AppSplitView`}],do:[],dont:[],a11y:[`The panel is a native dialog, named by ariaLabel, else by the title.`,`The sheet handle is a vertical slider labelled Sheet height, and the close button is labelled Close.`,`Focus moves in on open, Tab moves through the drawer, then on to the browser, without wrapping, Escape leaves it open unless staticBackdrop is false, and focus returns to what opened it.`]}},{name:`AppDropZone`,marker:`AppDropZone`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`Accepted file types, written as the accept attribute is. Empty takes any file.`,default:``},{name:`anyTypeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Any file type`},{name:`browseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Click to upload`},{name:`className`,type:`string`,required:!1,description:`Class to apply to the control element, the visible zone.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks click and drop.`,default:!1},{name:`dropLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`or drag & drop`},{name:`error`,type:`string`,required:!1,description:`Message below the zone; also styles the zone as errored.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class to apply to the wrapper field div.`,default:``},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the zone; an error, the caller's or a rejected pick's, replaces it while it shows.`},{name:`id`,type:`string`,required:!1,description:`DOM id for the file input and the target of its label's for attribute.`},{name:`label`,type:`string`,required:!1,description:`Text of the label above the zone.`},{name:`maxSizeMb`,type:`number`,required:!1,description:`Largest file size in megabytes, the shared limit when left out. 0 means no size limit: nothing is rejected for its size, and the format line names no size.`},{name:`maxSizeText`,type:`string`,required:!1,description:`The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.`,default:`up to {size} MB`},{name:`multiple`,type:`boolean`,required:!1,description:`Take several files per pick or drop; the change handler then gets an array of files.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The page handles the file itself (upload, parse, import) and needs no preview in the field.`,`A document or spreadsheet is dropped in, not a picture the user wants to see back.`,`You want drag and drop plus a click target with type and size checks already done.`],whenNot:[{text:`The field keeps a value and shows the chosen image large.`,instead:`AppFilePicker`},{text:`The file is a compact attachment on a form, listed by name and size.`,instead:`AppFileAttachment`},{text:`You hand-roll a raw file input with custom styling.`,instead:`AppDropZone`}],do:[],dont:[],a11y:[`The zone is a label bound to a visually hidden native file input, so keyboard and screen reader users reach the same file chooser as a click.`,`The input is described by the helper text, or by the error when one shows, through aria-describedby.`,`A disabled zone sets aria-disabled, disables the input and ignores drops.`]}},{name:`AppDropdown`,marker:`AppDropdown`,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Which edge of the toggle the menu lines up with.`,default:`end`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the toggle; it wins over label.`},{name:`icon`,type:`string`,required:!1,description:`Name of the glyph on the toggle button. A custom trigger replaces it.`},{name:`iconSize`,type:`number`,required:!1,description:`Size of the toggle glyph in pixels.`},{name:`items`,type:`array`,itemFields:[{name:`data`,type:`object`,required:!1,description:`data-* attributes written on the control (the icon button or button and the menu row).`},{name:`description`,type:`string`,required:!1,description:`A muted second line under the label, for a short hint about what the row does.`},{name:`disabled`,type:`boolean`,required:!1,description:`Shows the row greyed out. It stays focusable and cannot be chosen, and renders no link.`},{name:`disabledReason`,type:`string`,required:!1,description:`Why the row is disabled. Shown as a tooltip on hover and focus, and read by screen readers. Needs disabled.`},{name:`divider`,type:`boolean`,required:!1,description:`Draws a separator instead of an action.`},{name:`header`,type:`string`,required:!1,description:`Draws a small group heading instead of an action.`},{name:`hiddenFrom`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The breakpoint from which the row is hidden.`},{name:`href`,type:`string`,required:!1,description:`A plain link the item opens, never routed through linkComponent (an external page, a download). An item takes to or href, not both.`},{name:`icon`,type:`icon`,required:!1,description:`A glyph name, or a custom node such as an iconsax glyph.`},{name:`image`,type:`string`,required:!1,description:`URL of a picture that leads the row, such as an external logo or avatar. Pass image or icon, not both.`},{name:`imageHeight`,type:`number`,required:!1,description:`The picture's height in pixels. Give it with imageWidth so the row keeps its size as the picture loads.`},{name:`imageWidth`,type:`number`,required:!1,description:`The picture's width in pixels. Give it with imageHeight so the row keeps its size as the picture loads.`},{name:`key`,type:`string`,required:!0,description:`Unique key of the row.`},{name:`label`,type:`node`,required:!1,description:`Content of the row: text, or text with an icon. A searchable menu needs text.`},{name:`rel`,type:`string`,required:!1,description:`The link's rel. Needs href or to.`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the item, such as E, drawn as a key chip at the end of the row. The page binds the key itself.`},{name:`target`,type:`enum`,enum:[`_blank`,`_self`],required:!1,description:`Where an href or to opens. Needs href or to.`},{name:`to`,type:`string`,required:!1,description:`Link target. The row renders through the link component when one is given, otherwise as a plain link.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" marks the row as destructive.`}],required:!1,description:`The menu rows, used when there are no children. A row is an action, a divider or a group heading; a divider or heading needs only a unique key.`,default:[]},{name:`label`,type:`string`,required:!1,description:`Tooltip and accessible name fallback for the toggle.`},{name:`menuClassName`,type:`string`,required:!1,description:`Class for the menu panel.`,default:``},{name:`menuWidth`,type:`enum`,enum:[`fit`,`lg`,`md`,`sm`],required:!1,description:`A fixed menu width (15, 20 or 25rem; long rows wrap instead of widening the menu), or fit: no minimum, the menu is as wide as its widest row. Unset, the menu is at least 12rem wide.`},{name:`noMatchText`,type:`string`,required:!1,description:`Text shown when no row matches the search. Needs searchable.`,default:`No matches.`},{name:`open`,type:`boolean`,required:!1,description:`Controlled open state. Leave it out and the menu manages its own; set it and the caller owns it, updating it from onOpenChange.`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`Placeholder and accessible name of the search box. Needs searchable.`,default:`Search`},{name:`searchable`,type:`boolean`,required:!1,description:`Puts a search box above the rows that filters them by label as the user types, for a long menu. It filters items, so it cannot be combined with children.`},{name:`toggleClassName`,type:`string`,required:!1,description:`Class for the toggle button, replacing the default toggle look.`},{name:`toggleVariant`,type:`enum`,enum:[`neutral`],required:!1,description:`neutral: a custom trigger that keeps the surrounding font and colour, with a muted fill on hover and while open. Needs trigger.`},{name:`trigger`,type:`node`,required:!1,description:`A custom trigger drawn inside the toggle button instead of the icon, such as an account chip or a labelled sort button. It wins over icon. The button keeps its open state, keyboard behaviour and accessible role.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A row or card has several secondary actions that would clutter the layout as buttons.`,`You want a consistent “⋯” affordance for overflow actions across every row.`,`The actions are related and belong under one grouped trigger.`,`A menu lists more than about ten rows and the user knows the name of the one they want.`],whenNot:[{text:`There is a single icon action.`,instead:`AppActionIcon`},{text:`The action is the primary thing on the screen.`,instead:`AppButton`},{text:`You are selecting one value from a list.`,instead:`AppSelect`},{text:`You need a yes/no confirmation.`,instead:`AppConfirmDialog`}],do:[{title:`Put the destructive item last`,note:`Overflow actions collapse into one trigger, with the destructive one marked danger and placed last.`,example:[{component:`AppDropdown`,props:{icon:`more-horizontal`,ariaLabel:`Row actions`,items:[{key:`edit`,label:`Edit`,icon:`edit`},{key:`copy`,label:`Duplicate`,icon:`copy`},{key:`delete`,label:`Delete`,icon:`trash-2`,tone:`danger`}]}}]},{title:`Keep the menu short and clear`,note:`A short, scannable list of clearly worded actions.`,example:[{component:`AppDropdown`,props:{icon:`more-horizontal`,ariaLabel:`More options`,items:[{key:`a`,label:`Rename`},{key:`b`,label:`Move to…`}]}}]}],dont:[{title:`Put the destructive item last`,note:`Delete sits first and unmarked, so it looks like every other item and is the easiest to hit by mistake.`,example:[{component:`AppDropdown`,props:{icon:`more-horizontal`,ariaLabel:`Row actions`,items:[{key:`delete`,label:`Delete`,icon:`trash-2`},{key:`edit`,label:`Edit`,icon:`edit`},{key:`copy`,label:`Duplicate`,icon:`copy`}]}}]},{title:`Keep the menu short and clear`,note:`A menu with nine items becomes a wall to read. Group or split it, or promote the common ones out.`,example:[{component:`AppDropdown`,props:{icon:`more-horizontal`,ariaLabel:`More options`,items:[{key:`0`,label:`Action 1`},{key:`1`,label:`Action 2`},{key:`2`,label:`Action 3`},{key:`3`,label:`Action 4`},{key:`4`,label:`Action 5`},{key:`5`,label:`Action 6`},{key:`6`,label:`Action 7`},{key:`7`,label:`Action 8`},{key:`8`,label:`Action 9`}]}}]}],a11y:[`The toggle is a button named by ariaLabel, else by label; an icon-only toggle with neither is an unnamed button, and a development warning says so.`,`The menu closes on an outside click or Escape and moves between items with the arrow keys, and a custom trigger keeps all of it.`,`An item with a shortcut names its key to assistive technology through aria-keyshortcuts; picture rows use empty alt text.`]}},{name:`AppDueDate`,marker:`AppDueDate`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the due date element.`,default:``},{name:`date`,type:`stringOrNumber`,required:!1,description:`The due date: an ISO date or date-time string, or epoch milliseconds, read in India Standard Time.`},{name:`daysLeftLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {days} is the number of days left.`,default:`{days} days left`},{name:`dueInLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {days} is the number of days left.`,default:`Due in {days} days`},{name:`dueTodayLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Due today`},{name:`dueTomorrowLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Due tomorrow`},{name:`icon`,type:`boolean`,required:!1,description:`Draws a calendar glyph before the date text in every dated state.`,default:!1},{name:`notSetLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Not set`},{name:`oneDayLeftLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`1 day left`},{name:`overdue`,type:`boolean`,required:!1,description:`Set by the caller from its own rule. Done items are never overdue.`,default:!1},{name:`overdueLabel`,type:`string`,required:!1,description:`Replaces the date text when overdue, for example "Validity ended".`},{name:`overdueSinceLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {date} is the formatted due date.`,default:`Overdue since {date}`},{name:`soonDays`,type:`number`,required:!1,description:`Within this many days of the date, the text reads "N days left" in warning.`},{name:`soonWording`,type:`enum`,enum:[`days`,`due`],required:!1,description:`Within soonDays, "days" reads "N days left"; "due" reads "Due today", "Due tomorrow" or "Due in N days".`,default:`days`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A date is a deadline someone must meet: a task due date, a milestone, the end of a validity period.`,`Lists, boards and detail pages where the date should read as on time or late.`],whenNot:[{text:`A moment that already happened, such as created or updated.`,instead:`AppRelativeTime`},{text:`A date that is only a fact, with no deadline.`,instead:`A formatted date`}],do:[],dont:[],a11y:[`The date sits in a time element that carries the machine readable date.`,`An overdue date has the title Overdue since the date and a danger glyph beside the text, so the state does not rest on colour alone.`,`A missing date reads Not set, in muted text.`]}},{name:`AppEmptyState`,marker:`AppEmptyState`,acceptsChildren:!1,props:[{name:`action`,type:`node`,required:!1,description:`The next step shown below the text, usually an AppButton.`},{name:`className`,type:`string`,required:!1,description:`Extra class on the empty state wrapper.`,default:``},{name:`description`,type:`node`,required:!1,description:`Body text under the title.`},{name:`icon`,type:`icon`,required:!1,description:`Semantic icon name for the bubble, or a custom node. Needed unless illustration is set, which replaces the bubble.`},{name:`iconSize`,type:`number`,required:!1,description:`Size of the icon in the bubble, in pixels.`,default:24},{name:`illustration`,type:`node`,required:!1,description:`A named drawing (no-results, no-data, empty-inbox, no-notifications, no-files, no-access, offline or error), or your own decorative SVG node drawn unboxed at up to 120 px. Replaces the icon bubble when set.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The type scale: md is the page or card empty state, sm is the tighter widget or tile variant with a smaller title and text.`,default:`md`},{name:`title`,type:`node`,required:!1,description:`The headline of the empty state.`},{name:`variant`,type:`enum`,enum:[`card`,`table`],required:!1,description:`The look: card is the card or section empty state; table is the body of a data table, with a larger disc above the title. The table look has no sm scale, so size sm with table warns.`,default:`card`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A card or section has loaded but there is genuinely nothing to show.`,`A first-run experience where the user hasn't created anything yet.`,`A filtered or searched view returned no matches and you want to explain why.`,`A data table has loaded with no rows: use variant="table" for the table body.`],whenNot:[{text:`The data is still loading (first fetch).`,instead:`AppSkeleton`},{text:`Something went wrong fetching the data.`,instead:`AppAlert`},{text:`You just need a one-line "nothing here" with no framing.`,instead:`a muted caption`}],do:[{title:`Offer a next step`,note:`Names what's missing, explains why it matters, and offers the exact action to fix it.`,example:[{component:`AppEmptyState`,props:{icon:`users`,title:`No team members yet`,description:`Invite a colleague to collaborate on this project.`,action:{component:`AppButton`,props:{leftIcon:`plus`},children:`Invite member`}}}]},{title:`Explain a search with no matches`,note:`A search-empty explains the specific query and suggests how to get results.`,example:[{component:`AppEmptyState`,props:{icon:`search`,title:`No results for “risk”`,description:`Try a broader keyword or clear the filters.`}}]},{title:`Keep the description specific`,note:`A description that says what the empty state means helps the user, where filler only pads the space.`,example:[{component:`AppEmptyState`,props:{icon:`inbox`,title:`No requests this week`,description:`Requests you raise appear here once they are submitted.`}}]}],dont:[{title:`Offer a next step`,note:`A bare "Empty" with no guidance and no action leaves the user stuck at a dead end.`,example:[{component:`AppEmptyState`,props:{icon:`users`,title:`Empty`}}]},{title:`Explain a search with no matches`,note:`A bare "No results" with no reason and no way forward leaves the user unsure whether to change the search or the data.`,example:[{component:`AppEmptyState`,props:{icon:`search`,title:`No results`}}]},{title:`Keep the description specific`,note:`Repetitive filler text pads the space without helping the user do anything.`,example:[{component:`AppEmptyState`,props:{icon:`search`,title:`No results`,description:`No results found. No results found. No results found.`}}]}],a11y:[`A named illustration is decorative; the title carries the meaning for assistive technology.`,`A custom illustration node is wrapped with aria-hidden, so it is skipped by screen readers.`,`The title and text are plain text blocks, read in order with the action last.`]}},{name:`AppEntryGrid`,marker:`AppEntryGrid`,acceptsChildren:!1,props:[{name:`activeRowKey`,type:`string`,required:!1,nullable:!0,description:`The key, as rowKey returns it, of the row the person is working on; that row is drawn as active.`},{name:`addLabel`,type:`string`,required:!1,description:`The text of the button that adds an empty line at the end.`,default:`Add line`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the grid's root element.`,default:``},{name:`columns`,type:`array`,itemFields:[{name:`group`,type:`string`,required:!1,description:`Adjacent columns with the same group share one heading drawn above them.`},{name:`help`,type:`node`,required:!1,description:`Help shown beside the column heading.`},{name:`key`,type:`string`,required:!0,description:`The row field this column reads and edits.`},{name:`kind`,type:`enum`,enum:[`number`,`text`],required:!1,description:`number right-aligns the column and selects the text of a focused input.`,default:`text`},{name:`label`,type:`node`,required:!0,description:`The column heading.`},{name:`pin`,type:`enum`,enum:[`start`],required:!1,description:`start keeps the column in view when the grid scrolls sideways. Only the first column can be pinned.`},{name:`sortable`,type:`boolean`,required:!1,description:`Makes the heading a sort control that calls onSort; the page sorts the rows.`,default:!1},{name:`width`,type:`stringOrNumber`,required:!1,description:`The column's width, in px or a CSS length.`}],required:!0,description:`The columns, left to right, each with a key and a label, plus optional kind, width and help.`},{name:`commitNextLabel`,type:`string`,required:!1,description:`The keyboard legend for Enter.`,default:`Save and go to the next line`},{name:`commitStayLabel`,type:`string`,required:!1,description:`The keyboard legend for Ctrl and S.`,default:`Save`},{name:`dirtyLabel`,type:`string`,required:!1,description:`The status word for a line with changes not yet saved.`,default:`Changed`},{name:`discardLabel`,type:`string`,required:!1,description:`The keyboard legend for Escape.`,default:`Discard changes`},{name:`emptyContent`,type:`node`,required:!1,description:`Replaces the emptyLabel sentence when there are no rows, for a title, text and an action. Giving both is refused.`},{name:`emptyLabel`,type:`string`,required:!1,description:`The message shown when there are no rows.`,default:`No lines yet`},{name:`failedLabel`,type:`string`,required:!1,description:`The status word for a line whose save failed.`,default:`Not saved`},{name:`hint`,type:`boolean`,required:!1,description:`Shows the keyboard legend under the grid. The Enter and Ctrl+S entries show only with onCommitRow.`,default:!0},{name:`label`,type:`string`,required:!1,description:`The accessible name of the table.`,default:`Entry lines`},{name:`loading`,type:`boolean`,required:!1,description:`Draws placeholder rows instead of the lines while they load.`,default:!1},{name:`maxHeight`,type:`stringOrNumber`,required:!1,description:`Caps the grid's height so the lines scroll inside it and the totals row stays in view. Set it when the grid sits in a dialog or page that scrolls.`},{name:`moveLabel`,type:`string`,required:!1,description:`The keyboard legend for Ctrl and the arrow keys.`,default:`Move between lines`},{name:`pagination`,type:`object`,fields:[{name:`mode`,type:`enum`,enum:[`numbered`,`prev-next`],required:!1,description:`numbered shows page buttons; prev-next shows only the previous and next buttons.`},{name:`page`,type:`number`,required:!0,description:`The current page, counted from one.`},{name:`pageSize`,type:`number`,required:!0,description:`The number of lines on a page.`},{name:`pageSizes`,type:`array`,required:!1,description:`The page sizes the size menu offers.`},{name:`summary`,type:`boolean`,required:!1,description:`Draws "Showing x to y of z" at the start of the footer.`},{name:`summaryText`,type:`string`,required:!1,description:`Replaces the built-in "Showing {first} to {last} of {total}" text of the footer, for other languages. The tokens are {first}, {last} and {total}.`},{name:`total`,type:`number`,required:!0,description:`The number of lines across all pages.`},{name:`totalPages`,type:`number`,required:!1,description:`The number of pages; wins over the count worked out from total.`}],required:!1,description:`The pager state, as AppDataTable takes it; draws the pager inside the grid frame under the table.`},{name:`removeLineLabel`,type:`string`,required:!1,description:`The keyboard legend for Ctrl and Delete; shown only with onRemoveRow.`,default:`Remove line`},{name:`rows`,type:`array`,required:!0,description:`The row objects shown in the grid, one per line, in the order they appear.`},{name:`savedLabel`,type:`string`,required:!1,description:`The status word for a line that was saved.`,default:`Saved`},{name:`savingLabel`,type:`string`,required:!1,description:`The status word for a line being saved.`,default:`Saving`},{name:`skeletonRows`,type:`number`,required:!1,description:`How many placeholder rows loading draws; a whole number of 1 or more.`,default:3},{name:`sort`,type:`object`,fields:[{name:`dir`,type:`enum`,enum:[`asc`,`desc`],required:!0,description:`The sort direction.`},{name:`key`,type:`string`,required:!0,nullable:!0,description:`The sorted column's key; null means no column is sorted.`}],required:!1,nullable:!0,description:`The sorted column's key and direction; that column's heading announces it.`},{name:`statusLabel`,type:`string`,required:!1,description:`The name of the status column, read by screen readers but not shown.`,default:`Status`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person enters or corrects several lines of figures in one table, one line at a time.`,`Enter and Ctrl+S commit the line; the page decides whether a commit saves at once or with the grid.`],whenNot:[{text:`The table only shows records and nothing is typed into it.`,instead:`AppDataTable`},{text:`One field on a record is edited in place.`,instead:`AppInlineEdit`}],do:[{title:`Save each line as the person leaves it`,note:`Enter saves the line and moves to the next one, so the person never reaches for a save button per line.`,example:[{component:`AppEntryGrid`,props:{columns:[{key:`item`,label:`Item`},{key:`units`,label:`Units`,kind:`number`}],rows:[{id:`L1`,item:`Blue pens`,units:48}]}}]}],dont:[{title:`Save each line as the person leaves it`,note:`A read-only table with no save path leaves the person's typing with nowhere to go.`,example:[{component:`AppDataTable`,props:{columns:[{key:`item`,label:`Item`},{key:`units`,label:`Units`}],rows:[{id:`L1`,item:`Blue pens`,units:48}]}}]}],a11y:[`The table is named by label, and the active line carries aria-current.`,`Each status is a glyph with a visually hidden word, so a saving, saved or failed line is not shown by colour alone.`,`A failed line shows its error in an alert region under the line.`],keyboard:[{key:`Enter`,does:`Saves the line; the page moves to the next line once the save succeeds.`,notes:`Does nothing inside a text area, a button, or an open menu.`},{key:`Ctrl+S`,does:`Saves the line and keeps the focus on it.`,notes:`Meta+S does the same on a Mac.`},{key:`Escape`,does:`Discards the changes on the line and restores its last saved values.`,notes:`Does nothing inside an open menu.`},{key:`Ctrl+ArrowUp and Ctrl+ArrowDown`,does:`Moves the active line up or down.`,notes:`Does nothing at the first or last line.`},{key:`Ctrl+Delete`,does:`Removes the line; the page deletes it.`,notes:`Only with onRemoveRow; Meta+Backspace does the same on a Mac.`},{key:`Tab and Shift+Tab`,does:`Move between the fields of a line in page order.`,notes:`Never intercepted, so the person can always tab out of the grid.`}]}},{name:`AppErrorBoundary`,marker:null,acceptsChildren:!0,props:[{name:`brand`,type:`node`,required:!1,description:`Shown above the default screen.`},{name:`fallback`,type:`node`,required:!1,description:`What to show after an error. A function receives { error, reset }. Default: the AppRouteError screen with Try again, Reload the page and a home link.`},{name:`homeHref`,type:`url`,required:!1,description:`Where "Go to the home page" leads in the default screen.`,default:`/`},{name:`resetKeys`,type:`array`,required:!1,description:`The boundary clears itself when any item changes, such as the route path.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`One page or section may throw while the rest of the app still works.`,`A failed section should offer Try again without a full page load.`],whenNot:[{text:`The root of the app, where a stale build must reload the page once and the error is logged.`,instead:`ErrorBoundary from @webority/web-core`},{text:`A router errorElement for a failed route or loader.`,instead:`AppRouteError`},{text:`A section whose data request failed but nothing threw.`,instead:`AppAsyncBlock`}],do:[{title:`Clear the error on navigation`,note:`Pass resetKeys so moving to another page clears the error.`,example:[{component:`AppErrorBoundary`,props:{resetKeys:[`/projects`]}}]},{title:`Never show the error text`,note:`The default screen shows a plain sentence, so internal details stay private.`,example:[{component:`AppErrorBoundary`,props:{homeHref:`/dashboard`}}]}],dont:[{title:`Clear the error on navigation`,note:`Without resetKeys, the error stays on screen after the person moves to another page.`,example:[{component:`AppErrorBoundary`,props:{brand:`Projects`}}]},{title:`Never show the error text`,note:`It can leak internal details to the person reading the page, so the fallback never shows the error text.`,example:[{component:`AppCodeBlock`,props:{code:`TypeError: Cannot read properties of undefined (reading 'map')`,language:`text`}}]}],a11y:[`The default screen has a real heading and native buttons and a link.`,`The caught error is never shown, only a plain sentence.`]}},{name:`AppErrorSummary`,marker:`AppErrorSummary`,acceptsChildren:!1,props:[{name:`autoFocus`,type:`boolean`,required:!1,description:`Take focus when errors appear. Turn off only where the summary is shown for reference, such as documentation, never on a form.`,default:!0},{name:`className`,type:`string`,required:!1,description:`Extra class on the summary element.`,default:``},{name:`errors`,type:`array`,itemFields:[{name:`field`,type:`string`,required:!0,description:`The id or name of the input the link focuses.`},{name:`message`,type:`string`,required:!0,description:`The error text shown as the link.`}],required:!1,description:`The errors to list; the summary renders nothing while it is empty.`,default:[]},{name:`id`,type:`string`,required:!1,description:`DOM id of the summary; its heading id is built from it.`},{name:`title`,type:`node`,required:!1,description:`Heading of the summary. Defaults to "Fix N field(s) to continue".`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form with more than one field failed to submit, and the reader needs to see everything wrong at once.`,`Keyboard and screen reader users should land on the list and reach each field from it.`,`You also show each field's own error, so the list and the fields agree.`],whenNot:[{text:`You have one message that does not belong to a field.`,instead:`AppAlert`},{text:`The feedback is brief, such as Saved or Copied.`,instead:`toast`},{text:`The form has a single field.`,instead:`that field's own error prop`}],do:[],dont:[],a11y:[`The summary has role alert and takes focus when errors appear, so a screen reader announces the title and the count.`,`Only the step from no errors to some errors takes focus, so a re-render while the user types a fix never pulls focus from the field.`,`Each message is a link that moves focus to its field by id or name; the plain anchor stays as the no-script fallback.`]}},{name:`AppFileAttachment`,marker:`AppFileAttachment`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`The file types the field takes, as an accept list. Defaults to images; pass for example image/*,application/pdf for mixed. An empty string accepts any file type, and the format line then names no types.`},{name:`browseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Browse`},{name:`dropTitle`,type:`string`,required:!1,description:`Replaces the drop row's title, for other languages. Default text depends on accept and multiple.`,default:`Add a file, Add an image, Add files or Add images, chosen from accept and multiple`},{name:`error`,type:`string`,required:!1,description:`A message from the page, shown below the field beside the field's own validation messages.`},{name:`id`,type:`string`,required:!1,description:`DOM id of the file input; the label and the drop row point at it. Pass one when rows share a name.`},{name:`label`,type:`node`,required:!1,description:`The label shown above the field.`,default:`Attachment`},{name:`maxSizeMb`,type:`number`,required:!1,description:`The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the format line names no size.`},{name:`maxSizeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {size}, the size limit in megabytes.`,default:`Up to {size} MB`},{name:`multiple`,type:`boolean`,required:!1,description:`Lets the person attach several files. They stack in a list and each one removes on its own.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Form field name, so an uncontrolled form can post the file.`},{name:`optional`,type:`boolean`,required:!1,description:`Adds (optional) after the label.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`removeFileLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {name}, the file name.`,default:`Remove {name}`},{name:`removeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove attachment`},{name:`typesAndMaxSizeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Tokens: {types}, the accepted types, and {size}, the size limit in megabytes.`,default:`{types}, up to {size} MB`},{name:`uploadingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {name}, the file name.`,default:`Uploading {name}`},{name:`validate`,type:`boolean`,required:!1,description:`Checks each pick against accept and maxSizeMb and shows the field's own message for a rejected file. Set false when the page validates the files itself and shows its own message through error, so every pick reaches onChange and the person never sees two messages in two voices for one problem. accept and maxSizeMb still set the picker filter and the format line.`,default:!0},{name:`value`,type:`any`,required:!1,description:`A picked File, or an existing or uploading file: sizeBytes is its size in bytes, progress runs 0 to 100 while it uploads, error says why it failed. With multiple, an array of these.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A file is attached to a record, such as a ticket, a message or a comment, as evidence.`,`The filename and size matter more than seeing the picture large.`,`You want type and size validation and preview handling done for you in a compact row.`],whenNot:[{text:`The image is the star and the user should see it large.`,instead:`AppFilePicker`},{text:`The upload is a round avatar or a company logo.`,instead:`AppImagePicker`},{text:`It is a plain text or number field, not a file.`,instead:`AppInput`},{text:`You hand-roll a raw <input type="file"> with custom markup.`,instead:`AppFileAttachment`}],do:[{title:`Name the row and limit types`,note:`Give the row a specific label and restrict the accepted types, so the user knows what belongs here and what is allowed before they pick.`,example:[{component:`AppFileAttachment`,props:{label:`Ticket attachment`,accept:`image/png,image/jpeg`,optional:!0}}]},{title:`Make a required file's requirement visible`,note:`Surface a submit-time requirement with a message below the row, in the field's error style.`,example:[{component:`AppFileAttachment`,props:{label:`Photo`,error:`File is required`}}]}],dont:[{title:`Name the row and limit types`,note:`A bare "Attach" label with no constraints leaves the user unsure what belongs here or what the field accepts.`,example:[{component:`AppFileAttachment`,props:{label:`Attach`}}]},{title:`Make a required file's requirement visible`,note:`Marking a genuinely required attachment "optional" mis-signals that it can be skipped.`,example:[{component:`AppFileAttachment`,props:{label:`Photo`,optional:!0}}]}],a11y:[`The label is tied to the file input, and the drop row is a label for the same input, so clicking or pressing the row opens the picker.`,`A shown error is linked to the file input through aria-describedby.`,`The remove control is a button named Remove attachment.`]}},{name:`AppFilePicker`,marker:`AppFilePicker`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`Accepted file types (the accept attribute). Widen it, for example image/*,application/pdf, and non-image files show a file-type icon instead of a thumbnail.`,default:`.jpg,.jpeg,.png`},{name:`browseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Click to upload`},{name:`buttonLabel`,type:`string`,required:!1,description:`The button form's text.`,default:`Add file`},{name:`changeFileLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Change file`},{name:`changeImageLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Change image`},{name:`className`,type:`string`,required:!1,description:`Class to apply to the control element: the preview or dropzone shell.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the picker and keeps it out of the form post.`,default:!1},{name:`dropLabel`,type:`string`,required:!1,description:`Follows the browse text in the dropzone. Replaces the built-in English text, for other languages.`,default:`or drag & drop`},{name:`error`,type:`string`,required:!1,description:`A message from the page, shown below the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class to apply to the wrapper field div, for example a file-w-* width preset.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the control. An error (the page's or a rejected pick's) replaces it while it shows.`},{name:`id`,type:`string`,required:!1,description:`DOM id for the file input and its labels' for target.`},{name:`label`,type:`string`,required:!1,description:`The label shown above the field.`},{name:`loading`,type:`boolean`,required:!1,description:`Spinner over the control and picking blocked, for example while the chosen file uploads.`,default:!1},{name:`maxFiles`,type:`number`,required:!1,description:`Cap on total files in multiple mode.`},{name:`maxFilesText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is replaced with the cap.`,default:`Up to {count} files.`},{name:`maxSizeMb`,type:`number`,required:!1,description:`The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the format line names no size.`},{name:`maxSizeText`,type:`string`,required:!1,description:`The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.`,default:`up to {size} MB`},{name:`multiple`,type:`boolean`,required:!1,description:`Lets the person pick several files. They stack in a list inside the dropzone.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Form field name.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks picking, dropping, changing and removing.`,default:!1},{name:`removeFileLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {name}, the file name.`,default:`Remove {name}`},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required in its label.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control height: sm, md or lg, md when unset. The button form takes it too.`,default:`md`},{name:`value`,type:`any`,required:!1,description:`The chosen file or files: a File, an object with a url and an optional name, an array of those, or null.`},{name:`variant`,type:`enum`,enum:[`button`,`dropzone`],required:!1,description:`dropzone is the tall drop target. button is a small outline button that opens the file dialog, with no preview and no list.`,default:`dropzone`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A single, visually important image is being uploaded: a photo, a cover, a scan.`,`The preview matters: the user should see the picture they chose, large.`,`You want drag and drop plus a click target in one field, with type and size validation handled.`],whenNot:[{text:`You are attaching a file where the name and size matter more than a big preview.`,instead:`AppFileAttachment`},{text:`The upload is a round avatar or a company logo in a header.`,instead:`AppImagePicker`},{text:`It is a plain, non-image file input with no preview.`,instead:`a labelled AppInput`},{text:`You hand-roll a raw <input type="file"> with custom styling.`,instead:`AppFilePicker`}],do:[{title:`Give the field a specific label`,note:`Give the field a specific label, "Structure photo" rather than "Upload", so the user knows what image belongs here.`,example:[{component:`AppFilePicker`,props:{label:`Structure photo`}}]},{title:`Show validation beside the field`,note:`Surface validation with a message below the zone, in the field's own error style, so the eye lands on it next to the control.`,example:[{component:`AppFilePicker`,props:{label:`Company logo`,required:!0,error:`Logo is required`}}]}],dont:[{title:`Give the field a specific label`,note:`A vague "File" label leaves the user guessing what to drop, and mixes with the format line already in the zone.`,example:[{component:`AppFilePicker`,props:{label:`File`}}]},{title:`Show validation beside the field`,note:`A required field with no message on submit leaves the user unsure why the form will not save.`,example:[{component:`AppFilePicker`,props:{label:`Company logo`,required:!0}}]}],a11y:[`The label is tied to the file input, and the dropzone is a label for the same input, so the zone opens the picker by click or keyboard.`,`A shown error or helper text is linked to the file input through aria-describedby.`,`While loading, the control is marked aria-busy and a spinner with the status role named Loading shows.`,`In single mode the preview has a button to change the file and a separate remove button, each with an accessible name.`]}},{name:`AppFileTiles`,marker:`AppFileTiles`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the list.`,default:``},{name:`files`,type:`array`,itemFields:[{name:`href`,type:`string`,required:!1,description:`Where the file opens or downloads; makes the tile a link.`},{name:`key`,type:`stringOrNumber`,required:!0,description:`The file's key; not shown.`},{name:`meta`,type:`node`,required:!1,description:`Text after the size.`},{name:`name`,type:`string`,required:!0,description:`The file name; its extension makes the type tile.`},{name:`sizeBytes`,type:`number`,required:!1,description:`The size in bytes; shown as a readable size.`},{name:`to`,type:`string`,required:!1,description:`An in-app route; routed through the link component when one is given, otherwise a plain link.`}],required:!1,description:`The files, each { key, name, href, to, sizeBytes, meta }. name's extension makes the type tile; href makes the tile a link; to is an in-app route, through linkComponent when one is given, otherwise a plain link; sizeBytes is the size in bytes; meta is text after the size.`,default:[]},{name:`label`,type:`string`,required:!0,description:`Accessible name of the list.`}],itemsTakeAction:[`files`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A few files attached to a record that the person reads rather than edits.`,`Files that open or download from the page, each shown with its type and size.`],whenNot:[{text:`The person picks or uploads the files.`,instead:`AppFileAttachment`},{text:`One file to read in the page.`,instead:`AppFileViewer`}],do:[],dont:[],a11y:[`The list takes its accessible name from label.`,`The type tile is hidden from assistive technology; the file name carries the meaning.`,`A file with an href is a link; a file without one is plain text.`]}},{name:`AppFileViewer`,marker:`AppFileViewer`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:`Your own controls, shown at the end of the toolbar. Hidden in full screen.`},{name:`assetBase`,type:`string`,required:!1,description:`Folder holding pdf.js's cmaps/, standard_fonts/ and wasm/, which unusual PDFs need (Asian text, fonts a file does not embed, some scanned images).`},{name:`captions`,type:`string`,required:!1,description:`A WebVTT captions file for a video; adds a captions button to the player.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`download`,type:`boolean`,required:!1,description:`Shows a download button in the toolbar.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The name shown in the toolbar and used for printing and download. Defaults to the last part of src.`},{name:`prefs`,type:`object`,required:!1,description:`The view settings to start from, when your app stores them itself (for example against the signed-in person). Read when a file opens. With it, the browser stores nothing; save what onPrefsChange hands you and pass it back next time.`},{name:`print`,type:`boolean`,required:!1,description:`Shows the print button for a PDF or an image. Pass false to hide it.`,default:!0},{name:`src`,type:`string`,required:!1,description:`The file's URL. Changing it opens the new file. Without one the viewer draws its frame with a "No file to show." message.`},{name:`type`,type:`string`,required:!1,description:`The file's MIME type. Defaults to a guess from the extension of name or src.`},{name:`viewKey`,type:`string`,required:!1,description:`Remembers the view settings (zoom, two-page view, thumbnails) in this browser under this key. Without it they last for the viewer's life.`},{name:`workerSrc`,type:`string`,required:!1,description:`URL of a hosted pdf.js worker, for a site whose content security policy refuses blob: workers. Defaults to the bundled copy.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Someone needs to read a document without leaving the page: an invoice, a contract, a report.`,`A review or approval step, where the decision buttons belong next to the file.`],whenNot:[{text:`Someone is choosing a file to upload.`,instead:`AppFilePicker or AppFileAttachment`},{text:`The file only needs to be downloaded.`,instead:`AppButton with an href`}],do:[],dont:[],a11y:[`The toolbar buttons carry accessible names.`,`The settings menus use the menu role with menuitemradio rows and respond to the keyboard.`,`The React wrapper adds no roles of its own; the element draws the toolbar and the file.`]}},{name:`AppFilterBar`,marker:`AppFilterBar`,acceptsChildren:!1,props:[{name:`anyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Any`},{name:`appliesAtOnceText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Changes apply at once.`},{name:`apply`,type:`boolean`,required:!1,description:`Hold search and date range edits until Apply (or Enter in a search box), as the Razor app-filter-bar does; other choices still apply when they change. Apply shows only when a text or dateRange facet is present, and never with floating.`,default:!1},{name:`applyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Apply`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the filter bar.`,default:``},{name:`clearAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Clear all`},{name:`dateFromText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {date} is the start date of a date range chip.`,default:`From {date}`},{name:`dateRangeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {from} and {to} are the start and end dates of a date range chip.`,default:`{from} to {to}`},{name:`dateUntilText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {date} is the end date of a date range chip.`,default:`Until {date}`},{name:`facetLabels`,type:`boolean`,required:!1,description:`Draws each inline facet's label above its control. The folded Filters panel always shows labels.`,default:!1},{name:`facets`,type:`array`,itemFields:[{name:`allLabel`,type:`string`,required:!1,description:`Names an enum facet's clearing segment, such as All payments; the default is All. A facet shown as a select ignores it.`},{name:`key`,type:`string`,required:!0,description:`The key the facet's value is stored under in value.`},{name:`label`,type:`string`,required:!0,description:`Names the control for assistive technology and is its placeholder.`},{name:`options`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!1,description:`A number drawn in the option's segment, such as how many rows it would show. Only an enum facet drawn as segments shows it.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name drawn in the option's segment. Only an enum facet drawn as segments shows it.`},{name:`label`,type:`string`,required:!0,description:`The option's visible text.`},{name:`value`,type:`string`,required:!0,description:`The value stored when the option is chosen.`}],required:!1,description:`Fills an enum or multiEnum facet.`},{name:`presets`,type:`array`,required:!1,description:`Quick ranges for a dateRange facet: today, yesterday, last7Days, last30Days, thisMonth, lastMonth, thisFinancialYear.`},{name:`required`,type:`boolean`,required:!1,description:`An enum that always holds one of its options: no All segment, its select cannot be cleared, and it draws no chip and is left out of Clear all and the Filters count.`},{name:`source`,type:`string`,required:!1,description:"Enum and multiEnum facets: search the server for options (GET source?q=query). `options` then holds only the records of the current value, so a chosen option shows its label."},{name:`type`,type:`enum`,enum:[`dateRange`,`enum`,`multiEnum`,`text`],required:!0,description:`The kind of control: one choice, several choices, a date range or free text.`}],required:!0,description:`The facets to draw, one filter control each. A facet with no options draws nothing.`},{name:`filtersActiveLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is the number of active filters.`,default:`Filters, {count} active`},{name:`filtersLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Filters`},{name:`floating`,type:`boolean`,required:!1,description:`A floating panel: hover, click or F opens the facets in a non-modal panel under the Filters button, with a chip summary in the row.`,default:!1},{name:`inline`,type:`number`,required:!1,description:`How many facets stay in the row; the rest fold into the Filters button.`,default:3},{name:`keepOpenLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Keep open`},{name:`removeChipLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {facet} is the facet label and {value} the chip text.`,default:`Remove {facet} filter {value}`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Control height. md draws every control and button at the 36px field height; sm is the compact toolbar height.`,default:`sm`},{name:`value`,type:`object`,required:!0,description:`The current filters, keyed by facet key: a string, a list of strings, or a { from, to } date range.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A server-paged list that people filter, share and reload.`,`Several kinds of filter (one choice, many choices, a date range, free text) that should look the same everywhere.`],whenNot:[{text:`The whole list is already in the browser.`,instead:`usePagination with a hand-wired AppSegmented or AppSearch`},{text:`One short exclusive choice and nothing else.`,instead:`AppSegmented`}],do:[],dont:[],a11y:[`Every facet control is named by its facet label.`,`The Filters button reports whether its panel is open and which panel it controls, and its name carries the number of active filters.`,`The floating panel has the dialog role named Filters and closes on Escape or a click outside.`,`With apply, Enter in a search box applies the held edits.`]}},{name:`AppFloatingButton`,marker:`AppFloatingButton`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Custom className; on the stack item when stacked, on the button when not.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the button.`,default:!1},{name:`icon`,type:`icon`,required:!0,description:`AppIcon name, or a node.`},{name:`label`,type:`string`,required:!0,description:`Accessible name and tooltip; the button shows no text.`},{name:`order`,type:`enum`,enum:[`primary`,`secondary`],required:!1,description:`Slot in the stack: primary sits in the corner, secondary stacks above it.`,default:`primary`},{name:`position`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Bottom corner of the stack.`,default:`end`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Circle size: 40px, 48px or 56px.`,default:`md`},{name:`stacked`,type:`boolean`,required:!1,description:`False renders the bare button with no stack item; the caller places it.`,default:!0},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Button tone.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Button variant.`,default:`solid`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A persistent corner action on a page, such as chat, help or report an issue.`],whenNot:[{text:`A toolbar action beside other icon actions.`,instead:`AppActionIcon.`},{text:`A labelled primary action that needs visible text.`,instead:`AppButton.`}],do:[],dont:[],a11y:[`The label is the accessible name and the tooltip.`,`aria-haspopup and aria-expanded pass through to the button.`]}},{name:`AppFloatingDock`,marker:`AppFloatingDock`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name for the dock landmark.`,default:`Quick navigation`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the dock.`,default:``},{name:`items`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!1,description:`A plain link target.`},{name:`icon`,type:`icon`,required:!0,description:`The item's icon: an icon name or a node.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the item; without one the title and position are used.`},{name:`title`,type:`string`,required:!0,description:`The item's accessible name and its hover tooltip.`},{name:`to`,type:`string`,required:!1,description:`A router target. Renders through the dock's link component when one is given, otherwise as a plain link.`}],required:!1,description:`The dock items, left to right. title is the accessible name and the hover tooltip.`,default:[]},{name:`magnify`,type:`boolean`,required:!1,description:`Set false to render a static dock, with no hover effect.`,default:!0},{name:`maxScale`,type:`number`,required:!1,description:`Item scale at the cursor's center. The element default is 1.6.`},{name:`radius`,type:`number`,required:!1,description:`Falloff distance for the magnification, in pixels. The element default is 100.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A marketing or landing surface wants a playful shortcut row, such as a hero, footer or portfolio.`,`The set is small (4 to 8 items) and every item reduces to one clear icon and title.`,`The destinations are also reachable through normal navigation.`],whenNot:[{text:`You need the app's persistent primary navigation.`,instead:`AppShell`},{text:`The actions belong to a toolbar or a data row.`,instead:`AppActionIcon`},{text:`You want a path or hierarchy trail, not shortcuts.`,instead:`AppBreadcrumbs`}],do:[],dont:[],a11y:[`The dock is a navigation landmark named by ariaLabel.`,`Every item is a real link or button named by its title; the visible tooltip is hidden from assistive technology.`,`Magnification turns itself off on touch pointers and when the person prefers reduced motion, leaving a plain icon row.`]}},{name:`AppForm`,marker:`AppForm`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the form element.`,default:``},{name:`fieldErrors`,type:`object`,required:!1,description:`Field name to message. A field inside the form with that name and no error of its own shows it; one no field claims is drawn at the top of the form.`,default:{}},{name:`formErrors`,type:`array`,required:!1,description:`Errors that name no field, drawn at the top of the form.`,default:[]},{name:`unsavedChanges`,type:`object`,required:!1,description:`The guard from useUnsavedChanges (@webority/web-core/router); the form asks before a held navigation goes ahead.`},{name:`unsavedChangesMessage`,type:`string`,required:!1,description:`Replaces the question's message.`,default:`Your changes on this page are not saved. If you leave now, they are lost.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form submits to the server and must not send twice: a double click or Enter while a save is in flight is dropped.`,`A submit may be retried after a failure and the server must recognise the retry as the same request.`,`Child buttons must show a pending state while the form submits: AppButton inside AppForm reads it.`],whenNot:[{text:`The form is a dialog or modal`,instead:`AppModal or AppConfirmDialog own the footer logic`},{text:`The control is a single button with no form around it`,instead:`use AppButton with its own onClick`}],do:[],dont:[],a11y:[`Renders a plain form element. While a submit is pending it sets aria-busy="true" so assistive technology knows the form is updating.`,`Extra attributes such as aria-label and id pass through to the form element.`]}},{name:`AppFormActions`,marker:`AppFormActions`,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`between`,`end`,`start`],required:!1,description:`Alignment of the children: end, start or between.`,default:`end`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`,default:``},{name:`sticky`,type:`boolean`,required:!1,description:`Sticks the actions to the bottom of the viewport with a border and background.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form has action buttons at the end (submit, save, cancel, etc.).`,`A form is longer than one viewport and needs actions to stay visible (use sticky).`,`You need consistent button alignment across all forms (trailing, leading, or space-between).`],whenNot:[{text:`Buttons are inside a modal or dialog`,instead:`AppModal or AppConfirmDialog own the footer logic`},{text:`You need custom spacing or layout around buttons`,instead:`Use a raw flex/grid container for full control`},{text:`Buttons are scattered throughout the form, not grouped at the end`,instead:`Use AppButton directly where needed`}],do:[],dont:[],a11y:[`Renders a plain div with the form-actions class. It adds no role or label, so each button keeps its own accessible name.`,`The tab order follows the order of the children; align changes only where they sit, not their order.`,`Extra attributes such as aria-label pass through to the div.`]}},{name:`AppFormRow`,marker:`AppFormRow`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`,default:``},{name:`collapse`,type:`boolean`,required:!1,description:`Stack to one column below the md breakpoint; false keeps the set columns at every width.`,default:!0},{name:`columns`,type:`enum`,enum:[1,2,3,4,5,6,7,8,9,10,11,12],required:!1,description:`Number of columns, 1 to 12.`,default:2}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You have multiple form fields that should sit side-by-side on desktop but stack on mobile.`,`You are building a form page with multiple rows of fields (pair with AppFormSection to group them).`,`You need responsive column control without custom CSS: use the columns prop.`],whenNot:[{text:`You need a single full-width field`,instead:`Just use the field component directly, or wrap in columns={1}`},{text:`You need a custom grid layout (asymmetric columns, spans, etc.)`,instead:`Use Bootstrap Row/Col for full control`},{text:`You are organizing logical groups, not just laying out fields`,instead:`Wrap AppFormRow in AppFormSection to add a title and description`}],do:[],dont:[],a11y:[`Renders a plain div grid with no role, so each field keeps its own label and accessible name.`,`Columns are placed by CSS only, so the tab order follows the order of the children whatever the column count.`,`Extra attributes pass through to the div.`]}},{name:`AppFormSection`,marker:`AppFormSection`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`,default:``},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`],required:!1,description:`compact uses 32px controls and tighter gaps, for admin screens and dialogs.`,default:`comfortable`},{name:`description`,type:`node`,required:!1,description:`Intro text below the title (optional).`},{name:`headingLevel`,type:`enum`,enum:[2,3,4],required:!1,description:`Heading level of the section title, so it nests under the page or drawer heading.`,default:3},{name:`labels`,type:`enum`,enum:[`start`,`top`],required:!1,description:`start puts each field's label beside its control (one field per row) from md up; below that labels sit on top.`,default:`top`},{name:`layout`,type:`enum`,enum:[`side`,`stacked`],required:!1,description:`side puts the title and description in a column beside the fields from lg up; below that it stacks.`,default:`stacked`},{name:`rule`,type:`enum`,enum:[`line`,`none`],required:!1,description:`none drops the hairline between consecutive sections and keeps the space.`,default:`line`},{name:`title`,type:`node`,required:!1,description:`Section heading (h3).`},{name:`titleFont`,type:`enum`,enum:[`body`,`display`],required:!1,description:`display sets the title in the display face; body keeps the text face.`,default:`body`},{name:`titleSize`,type:`number`,required:!1,description:`The title's font size in px; unset keeps the theme's 15px.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You're building a form page: use all three helpers together for a consistent layout.`,`You need to group logically related fields: AppFormSection wraps them with a title.`,`You have multiple fields in a row: AppFormRow arranges them responsively.`,`You're adding action buttons (submit, cancel, etc.): AppFormActions keeps them aligned.`],whenNot:[{text:`You're placing a single isolated field`,instead:`just use AppInput directly`},{text:`Your form is a dialog/modal`,instead:`AppModal / AppConfirmDialog owns the footer logic`},{text:`You need a custom grid layout`,instead:`use Bootstrap Row/Col for full control`}],do:[],dont:[],a11y:[`Renders a section element whose title is a real heading: h3 by default, h2 to h4 through headingLevel, so it appears in the page outline.`,`The description is a paragraph under the heading; the heading and description are left out when neither title nor description is given.`,`Extra attributes such as aria-labelledby pass through to the section.`]}},{name:`AppFormulaSteps`,marker:`AppFormulaSteps`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the list's root element.`,default:``},{name:`divideLabel`,type:`string`,required:!1,description:`The word a divide line is read as. Replaces the built-in English text, for other languages.`,default:`divided by`},{name:`equalLabel`,type:`string`,required:!1,description:`The word an equal line is read as. Replaces the built-in English text, for other languages.`,default:`equals`},{name:`label`,type:`string`,required:!1,description:`The accessible name of the list.`,default:`Calculation`},{name:`minusLabel`,type:`string`,required:!1,description:`The word a minus line is read as. Replaces the built-in English text, for other languages.`,default:`minus`},{name:`plusLabel`,type:`string`,required:!1,description:`The word a plus line is read as. Replaces the built-in English text, for other languages.`,default:`plus`},{name:`steps`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!1,description:`The React key of the line. Not shown.`},{name:`label`,type:`string`,required:!0,description:`What the line is, such as the name of the amount.`},{name:`note`,type:`string`,required:!1,description:`A short note under the line, such as a section reference.`},{name:`result`,type:`string`,required:!0,description:`The line's figure, already formatted.`},{name:`sign`,type:`enum`,enum:[`divide`,`equal`,`minus`,`plus`,`times`],required:!1,description:`The operator before the line. An equal line is the result and is drawn as the total. Unset on the first line.`},{name:`working`,type:`node`,required:!1,description:`The working in words and numbers, shown under the label. A node, so a link can sit in it.`}],required:!1,description:`The lines of the calculation, top to bottom. The first line has no sign; each later line names its operator.`,default:[]},{name:`timesLabel`,type:`string`,required:!1,description:`The word a times line is read as. Replaces the built-in English text, for other languages.`,default:`times`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Show how a figure on the page is reached, line by line, with the real numbers.`,`The server computes the figure and the page only shows it: the lines display that result, and the page does no arithmetic of its own.`],whenNot:[{text:`The figures are many rows the user scans, sorts or edits.`,instead:`AppDataTable`},{text:`The figures are a trend or a comparison shown as a picture.`,instead:`AppChart`},{text:`The figure is a single value with no working to show.`,instead:`a plain value in the page text`}],do:[{title:`End with the result line`,note:`Give each line the amount it stands for, and end with one equal line for the result.`,example:[{component:`AppFormulaSteps`,props:{label:`TDS on a bill`,steps:[{key:`a`,label:`Bill amount`,result:`₹10,00,000.00`},{key:`b`,sign:`minus`,label:`TDS`,result:`₹1,000.00`},{key:`c`,sign:`equal`,label:`Net payable`,result:`₹9,99,000.00`}]}}]}],dont:[{title:`End with the result line`,note:`A list of amounts with no equal line leaves the reader to add them up and find the total.`,example:[{component:`AppFormulaSteps`,props:{label:`TDS on a bill`,steps:[{key:`a`,label:`Bill amount`,result:`₹10,00,000.00`},{key:`b`,sign:`minus`,label:`TDS`,result:`₹1,000.00`}]}}]}],a11y:[`The lines are an ordered list with an accessible name, so a screen reader announces the count and reads each line in order.`,`A screen reader reads each operator as its word, such as minus or times, taken from the sign-word props.`,`Each operator glyph is hidden from assistive tech, so the symbol itself is never read out.`]}},{name:`AppGantt`,marker:`AppGantt`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names on the plan.`,default:``},{name:`emptyText`,type:`string`,required:!1,description:`The message when there are no tasks. Defaults to the built-in copy.`},{name:`error`,type:`string`,required:!1,description:`The curated message to show when the plan failed. Wins over loading and state.`},{name:`errorText`,type:`string`,required:!1,description:`The message under error when none is given. Defaults to the built-in copy.`},{name:`folded`,type:`array`,required:!1,description:`Names of the phase lanes that are folded. Controlled when given.`},{name:`from`,type:`string`,required:!1,description:`First day of the window, YYYY-MM-DD. Absent: the window the zoom picks around today. Controlled when given.`},{name:`layout`,type:`enum`,enum:[`lanes`,`table`],required:!1,description:`How the plan is drawn. table puts a task table (task, owner, start, end, done) beside the bars. lanes prints each name on its bar and opens a details card for a chosen bar.`,default:`table`},{name:`loading`,type:`boolean`,required:!1,description:`The plan is loading. Wins over state.`,default:!1},{name:`loadingText`,type:`string`,required:!1,description:`The text read aloud while the plan loads. Defaults to the built-in copy.`},{name:`rows`,type:`array`,itemFields:[{name:`dependsOn`,type:`array`,required:!1,description:`Keys of the rows this one starts after. Drawn read-only as finish-to-start arrows.`},{name:`end`,type:`string`,required:!1,description:`Last day, YYYY-MM-DD, inclusive. Absent makes the row a milestone.`},{name:`group`,type:`string`,required:!1,description:`The phase lane the row sits in. Rows keep list order inside it.`},{name:`key`,type:`string`,required:!0,description:`The task's key, unique across the list.`},{name:`name`,type:`string`,required:!0,description:`The task's name, shown in the table, or on its bar in the lanes layout.`},{name:`owner`,type:`string`,required:!1,description:`Shown in the table's Owner column, or in the details card in the lanes layout.`},{name:`progress`,type:`number`,required:!1,description:`Whole number from 0 to 100. Ignored for a milestone.`,default:0},{name:`start`,type:`string`,required:!1,description:`First day, YYYY-MM-DD. A row with no start is not drawn.`},{name:`status`,type:`enum`,enum:[`atRisk`,`done`,`inProgress`,`notStarted`],required:!1,description:`Colours the bar and is also written in its label.`,default:`notStarted`}],required:!0,description:`The tasks, flat: one entry per task. A row with no start is not drawn. A row with a start and no end is a milestone. A repeated key, an end before its start, a progress outside 0 to 100, or a dependsOn that names no row or loops throws, naming the key.`},{name:`selected`,type:`string`,required:!1,nullable:!0,description:`Key of the chosen row. The table layout highlights it; the lanes layout opens its details card. null chooses none. Controlled when given.`},{name:`state`,type:`enum`,enum:[`empty`,`error`,`loading`,`ready`],required:!1,description:`ready draws the plan; loading, empty and error draw their own message.`,default:`ready`},{name:`title`,type:`string`,required:!0,description:`Names the plan for assistive technology and its exported files.`},{name:`today`,type:`string`,required:!1,description:`Today, YYYY-MM-DD. Absent: today in Asia/Kolkata.`},{name:`zoom`,type:`enum`,enum:[`day`,`month`,`week`],required:!1,description:`The time scale: day, week or month. Controlled when given.`,default:`week`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A project plan whose tasks have a start and an end date, where the reader needs to see what is due when, what waits on what and what is late.`],whenNot:[{text:`Events on a month grid.`,instead:`AppCalendar`},{text:`A vertical history of what happened.`,instead:`AppTimeline`},{text:`A value series over time.`,instead:`AppChart`}],do:[],dont:[],a11y:[`Each bar is a focusable list item with one sentence read aloud: its name, dates, percent, status and predecessors.`,`Arrow keys move between bars. Enter chooses a row (the lanes layout opens its details card) and Escape clears it.`,`In the table layout the task table has row and column headers, so a screen reader reads each date with its column name.`,`The zoom is a radio group. The Today flag is text, never colour alone, and status is also written in each bar's label.`]}},{name:`AppHoverCard`,marker:`AppHoverCard`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`,default:``},{name:`closeDelay`,type:`number`,required:!1,description:`Milliseconds after leaving before it closes.`,default:150},{name:`label`,type:`string`,required:!1,description:`The card's accessible name, for example Asha Verma, profile.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and the loading label in place of the children while the preview is fetched; start the fetch when the card opens.`,default:!1},{name:`loadingLabel`,type:`string`,required:!1,description:`The text beside the spinner.`,default:`Loading`},{name:`open`,type:`boolean`,required:!1,description:`Shows the panel open, for a design preview or a controlled caller.`},{name:`openDelay`,type:`number`,required:!1,description:`Milliseconds of hover or focus before it opens.`,default:300},{name:`trigger`,type:`node`,required:!0,description:`The name or link the card belongs to. Make it a link or button so keyboard users can focus it.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A name or record link that people check in passing.`,`A short summary that can be fetched on demand.`],whenNot:[{text:`Actions or a form that opens on click.`,instead:`AppPopover`},{text:`One line of help text.`,instead:`AppTooltip`}],do:[],dont:[],a11y:[`The panel has role group, named by the label prop when given, and aria-busy while it loads; the loading text sits in a role status region.`,`The card opens when the trigger takes keyboard focus as well as on hover, and Escape closes it.`,`Touch never opens it, so the trigger must itself lead to the same information, for example a link to the record.`]}},{name:`AppIcon`,marker:`AppIcon`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the root element.`},{name:`color`,type:`string`,required:!1,description:`The icon colour. Without it the icon takes --wui-icon-color when an ancestor sets that variable, else the inherited text colour.`},{name:`name`,type:`string`,required:!0,description:`Icon name (kebab-case; curated or full-catalogue).`},{name:`size`,type:`number`,required:!1,description:`Icon size in pixels.`,default:16},{name:`tooltip`,type:`string`,required:!1,description:`A hover and focus tooltip that flips to stay on screen. The glyph is wrapped in a span with role img and an aria-label, so the icon is also named for assistive tech.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Preferred tooltip side; auto picks the side with the most room.`,default:`auto`},{name:`variant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`Icon style: linear, outline, bold, bulk, broken or twotone.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A label needs a small visual cue to reinforce its meaning: download, search, delete.`,`A component slot asks for an icon node (a button, a tab, a menu item).`,`You want a glyph referenced by a stable name so the underlying set can change centrally.`],whenNot:[{text:`The icon is the whole clickable control in a row or toolbar.`,instead:`AppActionIcon`},{text:`You need an interactive, labelled action.`,instead:`AppButton`},{text:`The meaning is not obvious from the glyph alone.`,instead:`a text label`}],do:[{title:`Reinforce a text label`,note:`The icon reinforces a clear text label: it supports the word and does not replace it.`,example:[{component:`AppButton`,props:{leftIcon:{component:`AppIcon`,props:{name:`plus`,size:16}}},children:`Add member`}]},{title:`Match the text size`,note:`AppIcon size matches the text it sits beside, so the baseline stays clean.`,example:[{component:`div`,props:{className:`d-flex align-items-center gap-2`},children:[{component:`AppIcon`,props:{name:`info`}},{component:`span`,children:`16px glyph beside 16px text, they align.`}]}]}],dont:[{title:`Reinforce a text label`,note:`Hand-written icon markup in app code bypasses the shared name map and drifts.`,example:[{component:`button`,props:{type:`button`,className:`btn`},children:[{component:`span`,props:{"aria-hidden":`true`},children:`+`}]}]},{title:`Match the text size`,note:`A glyph far larger than its label unbalances the row and pulls the eye away from the words.`,example:[{component:`div`,props:{className:`d-flex align-items-center gap-2`},children:[{component:`AppIcon`,props:{name:`info`,size:40}},{component:`span`,children:`Oversized glyph beside body text.`}]}]}],a11y:[`Without a tooltip the glyph is an svg marked aria-hidden, so it is decorative and the control around it needs its own accessible name.`,`With a tooltip the glyph is wrapped in a span with role img and an aria-label set to the tooltip text, so the icon is named for assistive tech.`,`The tooltip opens on hover and on keyboard focus, through the same tooltip engine as every other tooltip prop.`]}},{name:`AppIdleTimeoutDialog`,marker:`AppIdleTimeoutDialog`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the dialog.`,default:``},{name:`description`,type:`string`,required:!1,description:`{time} is filled with the time left. Replaces the built-in English text, for other languages.`,default:`You will be signed out in {time} because there has been no activity.`},{name:`open`,type:`boolean`,required:!0,description:`True while the timer is in its warning phase. The dialog draws only while open.`},{name:`remainingMs`,type:`number`,required:!0,description:`Time left before sign-out, in milliseconds, from useIdleTimeout. Drawn as minutes and seconds.`},{name:`signOutLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Sign out`},{name:`stayLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Stay signed in`},{name:`title`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Are you still there?`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person has been idle long enough that the app is about to sign them out for their security.`],whenNot:[{text:`The app is about to sign out for a reason other than inactivity.`,instead:`AppConfirmDialog`},{text:`A notice that does not need an answer.`,instead:`AppBanner`}],do:[],dont:[],a11y:[`The dialog is a modal: focus moves into it, Tab stays inside it and focus returns when it closes.`,`Escape does not close it; the person answers with Stay signed in or Sign out.`,`Both answers are native buttons, reached with Tab and used with Enter or Space.`]}},{name:`AppImagePicker`,marker:`AppImagePicker`,acceptsChildren:!1,props:[{name:`accept`,type:`string`,required:!1,description:`The file types a person may choose. Defaults to PNG, JPG and WebP for logo; JPG, PNG, WebP and HEIC for avatar. HEIC opens only where the browser can decode it.`},{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the upload control. Defaults to Upload photo for the overlay and to the action's words for buttons.`},{name:`camera`,type:`boolean`,required:!1,description:`Shows the Take photo button, which opens the front camera. Default false for logo, true for avatar.`},{name:`cameraLabel`,type:`string`,required:!1,description:`The Take photo button's text on the buttons controls. Replaces the built-in English text.`,default:`Take photo`},{name:`cancel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Cancel`},{name:`changeLabel`,type:`string`,required:!1,description:`The Change button's text on the buttons controls, when a photo is set. Replaces the built-in English text.`,default:`Change photo`},{name:`className`,type:`string`,required:!1,description:`Extra class on the picker.`,default:``},{name:`controls`,type:`enum`,enum:[`buttons`,`overlay`],required:!1,description:`overlay is a ring with a hover label and an x to remove. buttons is the photo beside Upload or Change, Take photo and Remove. Default overlay for logo, buttons for avatar.`},{name:`crop`,type:`enumOrNumber`,enum:[`free`],required:!1,description:`Adds a crop step before upload. A number is the frame's width divided by its height, such as 1 for a round avatar; free lets the person resize the frame. Default none for logo, 1 for avatar.`},{name:`cropFailed`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Default That photo could not be saved. Try again, or choose another one. for avatar.`,default:`That image could not be cropped. Choose another one.`},{name:`dialogSubtitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Default Drag to position the photo, then zoom or rotate it. for avatar.`,default:`Drag the frame and zoom to choose what to keep.`},{name:`dialogTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Default Edit photo for avatar.`,default:`Crop photo`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks every action.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error from the caller. It wins over a rejection reason.`},{name:`fallback`,type:`node`,required:!1,description:`Shown when there is no image, for example initials.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra class on the field wrapper.`,default:``},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the picker. An error replaces it.`},{name:`kind`,type:`enum`,enum:[`avatar`,`logo`],required:!1,description:`The preset: logo is an identity ring, avatar is a person's profile photo. Each prop below overrides the preset.`,default:`logo`},{name:`label`,type:`node`,required:!1,description:`An optional field label above the picker.`},{name:`layout`,type:`enum`,enum:[`inline`,`profile`,`stacked`],required:!1,description:`Stacked is the ring with the helper text below. Inline puts the ring on the left with a title, subtitle and helper text column beside it. Profile stacks the same identity block, centred, beneath the ring. Applies to the overlay controls.`,default:`stacked`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and blocks every action while the picked file uploads.`,default:!1},{name:`maxSizeMb`,type:`number`,required:!1,description:`The size limit in megabytes; 0 means no limit. Defaults to 5 for logo and 10 for avatar.`},{name:`name`,type:`string`,required:!1,description:`The form field name. The chosen file, or the crop when cropping, is written into the file input, so an uncontrolled form posts it.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`outputSize`,type:`number`,required:!1,description:`The width and height of the saved square, in pixels, with a crop of 1. Default none for logo, 512 for avatar.`},{name:`outputType`,type:`enum`,enum:[`image/webp`,`keep`],required:!1,description:`The type of the saved crop: keep the chosen type, or WebP. Default keep for logo, WebP for avatar.`},{name:`overlayIcon`,type:`icon`,required:!1,description:`The icon name for the hover overlay. Overlay controls only.`,default:`image`},{name:`overlayLabel`,type:`string`,required:!1,description:`The text of the hover overlay. Overlay controls only.`,default:`Update photo`},{name:`previews`,type:`boolean`,required:!1,description:`Shows the 96 and 48 px live previews in the crop dialog. Default false for logo, true for avatar.`},{name:`removeLabel`,type:`string`,required:!1,description:`The accessible name and tooltip of the remove control. Use Remove logo on a logo picker.`,default:`Remove photo`},{name:`removeName`,type:`string`,required:!1,description:`A form field that posts true once Remove is pressed.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`rotatable`,type:`boolean`,required:!1,description:`Offers rotation in the crop dialog. Default false for logo, true for avatar.`},{name:`save`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Default Save photo for avatar.`,default:`Apply`},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`,`square`],required:!1,description:`The ring or frame shape.`,default:`circle`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`],required:!1,description:`A preset diameter (logo 72, 120, 160 px; avatar 64, 96, 128 px) or an exact number of pixels.`,default:`md`},{name:`style`,type:`object`,required:!1,description:`Inline style on the picker.`},{name:`subtitle`,type:`node`,required:!1,description:`Muted secondary text beside the ring. Inline and profile layouts only.`},{name:`title`,type:`node`,required:!1,description:`Bold primary text beside the ring. Inline and profile layouts only.`},{name:`unreadable`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the file name. Avatar keeps its HEIC message when the file is HEIC.`,default:`That image could not be opened. Choose another one.`},{name:`uploadLabel`,type:`string`,required:!1,description:`The Upload button's text on the buttons controls, when no photo is set. Replaces the built-in English text.`,default:`Upload photo`},{name:`value`,type:`string`,required:!1,description:`The current image URL. Absent or empty means no image.`},{name:`variant`,type:`enum`,enum:[`avatar`,`initials`],required:!1,description:`With no fallback, avatar draws a person icon. The avatar kind uses avatar.`,default:`initials`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`An identity image is being set, such as a workspace logo, a company avatar or a profile picture.`,`A person sets their own profile photo, or an admin sets a staff member's photo on their record.`,`You want a hover-to-change overlay plus a loading state while the file uploads.`],whenNot:[{text:`A single, rectangular image where the preview should be large.`,instead:`AppFilePicker`},{text:`A file attached to a record where the name or size matters.`,instead:`AppFileAttachment`},{text:`You only need to display an avatar, not upload one.`,instead:`AppAvatar`}],do:[{title:`Name the action the overlay performs`,note:`Set an overlay label that names the thing, such as "Change logo", so the hover affordance says exactly what happens.`,example:[{component:`AppImagePicker`,props:{fallback:`AC`,overlayLabel:`Change logo`}}]},{title:`Label and size the picker`,note:`Say what a good photo is. People crop better when they know.`,example:[{component:`AppImagePicker`,props:{kind:`avatar`,fallback:`NS`,label:`Profile photo`,helperText:`Your face, looking at the camera.`}}]}],dont:[{title:`Name the action the overlay performs`,note:`A generic "Click" overlay tells the user how to interact but not what the action does.`,example:[{component:`AppImagePicker`,props:{fallback:`AC`,overlayLabel:`Click`}}]},{title:`Label and size the picker`,note:`A tiny, disabled avatar picker with no label. Nobody can tell it sets their photo.`,example:[{component:`AppImagePicker`,props:{kind:`avatar`,fallback:`NS`,size:`sm`,disabled:!0}}]}],a11y:[`The upload control is named by ariaLabel, else by Upload photo for the overlay and by the action's words (Choose or Change photo) for buttons. It is disabled and marked busy while loading.`,`The remove control is its own button named by removeLabel, and it stays hidden until there is an image to remove.`,`The helper text or the error is tied to the upload control with aria-describedby, and an error wins over helper text.`,`The buttons look sits out of the tab order and the Upload button beside it is the keyboard path to the same action.`]}},{name:`AppInfoTip`,marker:`AppInfoTip`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the wrapper.`,default:``},{name:`label`,type:`string`,required:!1,description:`The popover title and the trigger’s accessible name. Unset, the trigger is named “More information”.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Where the popover opens. Auto flips it to stay in view.`,default:`auto`},{name:`width`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The widest the card grows before its text wraps, at 220, 276, 360 or 480px. It is a maximum, so a short tip stays as narrow as its text.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A field label uses a term the user may not know and you want an on-demand explanation.`,`The help is secondary, useful but not something every user needs to read.`,`You want accessible hover/focus behaviour without wiring a tooltip yourself.`],whenNot:[{text:`The message must be seen by everyone, persistently, in context.`,instead:`AppAlert`},{text:`It is a permanent helper text under a field the user should always read.`,instead:`the helperText prop on AppInput`},{text:`You would otherwise expose the text via a native title="".`,instead:`AppInfoTip`},{text:`It is a brief, transient confirmation after an action.`,instead:`toast`}],do:[{title:`Ask the question in the label`,note:`Give the tip a descriptive label (a real question) so it’s clear what the “?” explains, and keep the body to a sentence.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:[`Risk tolerance`,{component:`AppInfoTip`,props:{label:`What is risk tolerance?`},children:`The maximum acceptable annual loss probability under IEC 62305.`}]}]},{title:`Attach the tip to its term`,note:`Attach the tip to the exact term it explains, inline with the label, so the “?” sits where the question arises.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:[`Collection area`,{component:`AppInfoTip`,props:{label:`How is collection area computed?`},children:`The equivalent ground area that attracts the same strikes as the structure.`}]}]}],dont:[{title:`Ask the question in the label`,note:`A vague “info” label and a wall of text overload a tip: move long explanations into a linked doc.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:[`Risk tolerance`,{component:`AppInfoTip`,props:{label:`info`},children:`Risk tolerance is a very long paragraph that keeps going and turns the tip into a documentation page the user has to scroll through, which defeats the point.`}]}]},{title:`Attach the tip to its term`,note:`Burying the explanation elsewhere (or omitting it) forces the user to leave the field to understand it.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:`Collection area`}]}],a11y:[`The trigger is a button named by the label, or “More information” when there is no label.`,`It opens on hover and focus, and aria-expanded follows the open state.`,`With neither label nor body, the component renders nothing.`]}},{name:`AppInlineEdit`,marker:`AppInlineEdit`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the root element.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Shows the value without the edit affordance.`,default:!1},{name:`grouping`,type:`enum`,enum:[`indian`,`none`],required:!1,description:`Digit grouping of a number at rest: indian shows 15,00,000, none shows 1500000.`,default:`none`},{name:`id`,type:`string`,required:!1,description:`The root's id; the control and error ids derive from it. Generated when omitted.`},{name:`label`,type:`string`,required:!0,description:`What the value is, such as Owner: its accessible name and what screen readers announce, as in Owner saved.`},{name:`loadUrl`,type:`string`,required:!1,description:`A select's choices, fetched as a JSON array of { value, label } on the first open. Only with type select, and instead of options.`},{name:`options`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The text shown for this option.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value saved when this option is picked.`}],required:!1,description:`The choices of a select.`,default:[]},{name:`placeholder`,type:`string`,required:!1,description:`Shown, muted, when there is no value, and in the empty control. Without it an empty value shows a hyphen.`},{name:`type`,type:`enum`,enum:[`date`,`number`,`select`,`text`,`textarea`],required:!1,description:`The control the value turns into.`,default:`text`},{name:`value`,type:`stringOrNumber`,required:!1,nullable:!0,description:`The saved value. A date is yyyy-MM-dd; a select value is one of the options' values.`},{name:`wrap`,type:`boolean`,required:!1,description:`Wraps a long value across lines. false keeps it on one line, and a newline in a textarea value reads as a space.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`One field that changes often on its own: a status, an owner, a due date, a name.`,`A value in a table row that people fix while working down the list.`,`A fact on a detail page that is wrong or out of date.`],whenNot:[{text:`Several fields that change together, or depend on each other.`,instead:`An edit form or AppModal with AppFormActions.`},{text:`A change that needs a reason, an approval or a confirmation.`,instead:`An action button that opens a dialog.`},{text:`A value people cannot change.`,instead:`Plain text, or AppInlineEdit with disabled while access is decided per row.`}],do:[],dont:[],a11y:[`The value is a button named from the label, with a visually hidden word, edit or read only.`,`Saved and failed outcomes are announced through a polite live region.`,`Enter saves a text or number, Ctrl or Cmd+Enter saves a textarea, and Escape cancels.`]}},{name:`AppInput`,marker:`AppInput`,acceptsChildren:!1,props:[{name:`action`,type:`node`,required:!1,description:`A control rendered beside the field, outside its border, such as a verify button.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the control.`,default:``},{name:`clearLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Clear`},{name:`clearable`,type:`boolean`,required:!1,description:`Shows a clear button while the field has a value.`,default:!1},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultValue`,type:`stringOrNumber`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the field.`,default:!1},{name:`error`,type:`node`,required:!1,description:`A validation message under the field. It marks the control invalid for assistive technology.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra classes on the field wrapper.`,default:``},{name:`floatingLabel`,type:`enum`,enum:[`above`,`border`,`off`],required:!1,description:`Where the label rests. Off keeps it above the field. Border sits it inside as a placeholder, then slides it onto the top border once the field is focused or filled. Above rests it above the box, clear of the border.`,default:`off`},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text under the field. An error replaces it while both are set.`},{name:`hidePasswordLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Hide password`},{name:`id`,type:`string`,required:!1,description:`The id of the control. The label points at it.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control.`},{name:`leftIcon`,type:`icon`,required:!1,description:`A leading icon, given as a semantic icon name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`mask`,type:`string`,required:!1,description:`A named mask such as pan, phone-in, gstin, aadhaar, ifsc, pin-code, date or amount, or a pattern where 9 is a digit and A a letter. The value is formatted as it is typed.`},{name:`maxLength`,type:`number`,required:!1,description:`The character cap. The count turns red as the cap is approached.`},{name:`monospace`,type:`boolean`,required:!1,description:`Sets the monospace font, for codes and references.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The form field name.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`passwordPolicy`,type:`object`,fields:[{name:`customRules`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The rule text shown in the checklist.`},{name:`pattern`,type:`string`,required:!0,description:`A JavaScript regular expression source string.`}],required:!1,description:`Extra rules. Each rule ticks when its regular expression pattern matches the password.`},{name:`digit`,type:`boolean`,required:!1,description:`Requires a digit.`},{name:`lowercase`,type:`boolean`,required:!1,description:`Requires a lowercase letter.`},{name:`minLength`,type:`number`,required:!1,description:`The minimum number of characters.`},{name:`special`,type:`boolean`,required:!1,description:`Requires a special character.`},{name:`title`,type:`string`,required:!1,description:`The heading of the checklist.`},{name:`uniqueChars`,type:`number`,required:!1,description:`The minimum number of distinct characters.`},{name:`uppercase`,type:`boolean`,required:!1,description:`Requires an uppercase letter.`}],required:!1,description:`A custom password policy that replaces the default rules. It is used only while passwordRequirements is shown.`},{name:`passwordRequirements`,type:`enum`,enum:[`off`,`shown`],required:!1,description:`On a password field, shows a live checklist of the password rules as the user types. It uses the default policy unless passwordPolicy is set.`,default:`off`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in an empty field.`},{name:`postFormatted`,type:`boolean`,required:!1,description:`With a mask, a native form submit posts the formatted value instead of the raw characters.`,default:!1},{name:`prefix`,type:`node`,required:!1,description:`A bordered box before the input, such as a currency sign or a scheme.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the field; the value still posts. A clearable field shows no clear button.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required, with a visible mark and the native required attribute.`,default:!1},{name:`requirementsPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`inline`,`start`,`top`],required:!1,description:`The side the requirements popover opens on. Auto flips to stay in view. Inline puts the checklist under the field, in place of the helper text.`,default:`auto`},{name:`requirementsTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Password requirements`},{name:`rightIcon`,type:`icon`,required:!1,description:`A trailing icon button, given as a semantic icon name. It calls onRightIconClick when pressed.`},{name:`rightIconLabel`,type:`string`,required:!1,description:`The accessible name of the right-icon button. It falls back to the icon name.`},{name:`showCount`,type:`boolean`,required:!1,description:`Shows a live character count under the field.`,default:!1},{name:`showPasswordLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Show password`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control size: sm, md, lg and xl are 35, 40, 45 and 50px. Md is the default.`,default:`md`},{name:`suffix`,type:`node`,required:!1,description:`A bordered box after the input, such as a decimal part or a domain.`},{name:`type`,type:`string`,required:!1,description:`The native input type, such as email, tel, number or password.`,default:`text`},{name:`unit`,type:`string`,required:!1,description:`A unit shown after the value, such as kg.`},{name:`valid`,type:`boolean`,required:!1,description:`Shows a green tick on a filled field with no error. Default off.`,default:!1},{name:`value`,type:`stringOrNumber`,required:!1,description:`The controlled value. Pair it with onChange.`},{name:`variant`,type:`enum`,enum:[`bare`,`underline`],required:!1,description:`Bare drops the border and the fill, for inline editing. Underline keeps only a line under the field, which takes the same hover and focus colours as the boxed field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user enters a single line of text or a number: name, email, amount, reference.`,`You want the shared field treatment: label, helper text, error, and required marking.`,`A specific type (email, number, tel) should drive the keyboard and native validation.`],whenNot:[{text:`The value runs to multiple lines: a note or description.`,instead:`AppTextarea`},{text:`The user picks from a fixed set of options.`,instead:`AppSelect`},{text:`It is a search box that filters a list.`,instead:`AppSearch`},{text:`The value is a calendar date.`,instead:`AppDatePicker`}],do:[{title:`A visible label, not a placeholder`,note:`A visible label stays put while the user types and is read by screen readers.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e1`,type:`email`,placeholder:`you@company.com`}}]},{title:`Use the right input type`,note:`type="email" brings the right keyboard and native validation for free.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e3`,type:`email`,placeholder:`you@company.com`}}]},{title:`Say exactly what is wrong`,note:`A specific error tells the user exactly what to change.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e5`,required:!0,error:`Enter a valid email address.`}}]}],dont:[{title:`A visible label, not a placeholder`,note:`A placeholder used as the label vanishes on the first keystroke and fails accessibility.`,example:[{component:`AppInput`,props:{name:`e2`,placeholder:`Email`}}]},{title:`Use the right input type`,note:`A plain text type misses the email keyboard and validation the browser could give.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e4`,type:`text`,placeholder:`you@company.com`}}]},{title:`Say exactly what is wrong`,note:`Invalid leaves them guessing what is actually wrong.`,example:[{component:`AppInput`,props:{label:`Email`,name:`e6`,required:!0,error:`Invalid`}}]}],a11y:[`The control carries aria-invalid, and aria-describedby points at the error or the helper text.`,`The clear button is named Clear and is hidden while the field is empty.`,`The password reveal button is named Show password or Hide password, and the checklist sits in a polite live region.`,`The right-icon button is named by rightIconLabel, or by the icon name when none is given.`,`The info-tip button is named by helpLabel.`]}},{name:`AppInputGroup`,marker:`AppInputGroup`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the root.`,default:``},{name:`htmlFor`,type:`string`,required:!1,description:`The id of the field the label names.`},{name:`label`,type:`string`,required:!1,description:`The group's label, above it.`},{name:`leading`,type:`node`,required:!1,description:`Before the field: text, or a node such as an AppButton.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the label required.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Height of text add-ons; set the same size on the field and on button add-ons.`,default:`md`},{name:`trailing`,type:`node`,required:!1,description:`After the field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Currency, protocol or domain around a value.`,`A button or select that acts on the field (Copy, Apply, a unit picker).`],whenNot:[{text:`A unit shown inside the field.`,instead:`AppInput unit, prefix or suffix`},{text:`A search box with a submit button.`,instead:`AppSearch`}],do:[],dont:[],a11y:[`The label is a label element tied to the field by htmlFor, and the required mark follows the label text.`,`The add-ons share the field's outline and height.`,`Text add-ons are plain spans with no role, so the field must carry its own accessible name when there is no label.`]}},{name:`AppKanban`,marker:`AppKanban`,acceptsChildren:!1,props:[{name:`activeCardKey`,type:`string`,required:!1,description:`The key of the card just added; it is highlighted until the next render.`},{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the board region.`,default:`Board`},{name:`boardId`,type:`string`,required:!1,description:`Remembers which columns are folded per browser, under this id.`},{name:`cards`,type:`array`,required:!0,description:"Every card on the board. A card is a plain object; it sits in the column named by its `column` and is identified by its `key` or `id`."},{name:`className`,type:`string`,required:!1,description:`Extra classes on the board.`,default:``},{name:`collapseLabel`,type:`string`,required:!1,description:`The accessible name of an open column's toggle. {title} is the column's title, for other languages.`,default:`Collapse {title}`},{name:`columnWidth`,type:`number`,required:!1,description:`The width of each column in px.`},{name:`columns`,type:`array`,itemFields:[{name:`acceptFrom`,type:`array`,required:!1,description:`The only columns this one takes cards from. Leave it out to take cards from every column.`},{name:`collapsed`,type:`boolean`,required:!1,description:`Whether a collapsible column starts folded.`},{name:`collapsible`,type:`boolean`,required:!1,description:`Folds the column to a strip, remembered per board.`},{name:`emptyText`,type:`string`,required:!1,description:`Text shown when this column has no cards, in place of the board's.`},{name:`href`,type:`url`,required:!1,description:`Where the column's name links, such as a filtered list of the same stage.`},{name:`key`,type:`string`,required:!0,description:`The React key of the column. Not shown.`},{name:`summary`,type:`node`,required:!1,description:`A line in the column head, such as a total. It may also be a function of the column's cards in code; the kit shows the node form.`},{name:`title`,type:`string`,required:!0,description:`The column's name.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the column's dot and count.`},{name:`visibleLimit`,type:`number`,required:!1,description:`Shows the first N cards the filter lets through, with a Show more link for the rest. The count still covers every card.`}],required:!0,description:"The columns, left to right. A column takes cards only from the columns in its `acceptFrom`; a `collapsible` column folds to a strip that is remembered per `boardId`. Each column also needs a unique `key`."},{name:`columnsLabel`,type:`string`,required:!1,description:`The accessible name of the column switcher, for other languages.`,default:`Board columns`},{name:`emptyText`,type:`string`,required:!1,description:`Text of an empty column.`,default:`Nothing here`},{name:`expandLabel`,type:`string`,required:!1,description:`The accessible name of a folded column's toggle. {title} is the column's title, for other languages.`,default:`Expand {title}`},{name:`fill`,type:`boolean`,required:!1,description:`From md up the board fits the screen and each column's cards scroll inside the column under its fixed head. Phones keep the one-column layout.`,default:!1},{name:`fillOffset`,type:`number`,required:!1,description:`The px taken off the viewport height when the board fills the screen, in place of the 240px default.`},{name:`headLayout`,type:`enum`,enum:[`inline`,`stacked`],required:!1,description:`Stacked puts each stage name on its own line, with no tone dot.`,default:`inline`},{name:`helpText`,type:`string`,required:!1,description:`The keyboard instructions for moving a card, read by screen readers, for other languages.`,default:`Press Space to pick up the card. Use the Left and Right arrow keys to choose a column, then Space to drop it, or Escape to cancel.`},{name:`id`,type:`string`,required:!1,description:`The board's id; the column, body and help ids derive from it. Generated when omitted.`},{name:`readOnly`,type:`boolean`,required:!1,description:`No card can be moved.`,default:!1},{name:`summaryFormat`,type:`enum`,enum:[`compact`,`currency`,`number`],required:!1,description:`Makes each column's summary the sum of its visible cards' values, in this format. The values come from a function in code.`},{name:`summaryUnit`,type:`enum`,enum:[`paise`,`rupees`],required:!1,description:`The unit of the card values that summaryFormat adds up.`,default:`rupees`},{name:`swipeHint`,type:`boolean`,required:!1,description:`On phones, a Swipe sideways or tap a column line under the column switcher.`,default:!1},{name:`swipeHintText`,type:`string`,required:!1,description:`The text of the phone hint that swipeHint shows, for other languages.`,default:`Swipe sideways or tap a column`},{name:`truncateHeads`,type:`boolean`,required:!1,description:`Keeps each stage name on one line, ends a long one in an ellipsis and shows the full name on hover.`,default:!1}],itemsTakeAction:[`columns`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Work moves through a few fixed stages and people move it themselves: a pipeline, a sprint, a support queue.`,`Seeing everything at a stage at once matters more than sorting or paging.`,`Each move is one saved change, such as a status or a stage.`],whenNot:[{text:`The list is long and needs sorting, paging or bulk edits.`,instead:`AppDataTable`},{text:`The stages are a fixed path someone walks through once.`,instead:`AppStepper`},{text:`You only need to show progress, not move work.`,instead:`AppProgress`}],do:[],dont:[],a11y:[`Every card is a focus stop. Space picks a card up, Left and Right choose a column, Space or Enter drops it, Escape cancels, and Up and Down move between cards.`,`Each step is announced to screen readers, refusals included.`,`The board is a region named by ariaLabel. Below md it shows one column at a time, with a column switcher above it.`]}},{name:`AppKbd`,marker:`AppKbd`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the key chip.`,default:``}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Naming a key in help text, in a field's helper text or in an empty state.`,`A legend or a guide that lists keys.`],whenNot:[{text:`Showing the key of a button or menu row.`,instead:`the shortcut prop`},{text:`Listing every shortcut on a screen.`,instead:`AppShortcutLegend`}],do:[],dont:[],a11y:[`It renders a kbd element whose text is part of the sentence, so assistive tech reads the key.`,`It only labels a key; to bind a key, put the shortcut prop on the control instead.`]}},{name:`AppKpiTile`,marker:`AppKpiTile`,acceptsChildren:!1,props:[{name:`attention`,type:`boolean`,required:!1,description:`Marks the tile as needing action, with a warning tint.`,default:!1},{name:`caption`,type:`node`,required:!1,description:`A sub-line under the value, such as Total sent.`},{name:`captionClassName`,type:`string`,required:!1,description:`Extra classes on the caption.`,default:``},{name:`className`,type:`string`,required:!1,description:`Extra classes on the tile root.`,default:``},{name:`delta`,type:`node`,required:!1,description:`The change text, such as 12% vs last month.`},{name:`deltaClassName`,type:`string`,required:!1,description:`Extra classes on the delta.`,default:``},{name:`deltaDirection`,type:`enum`,enum:[`down`,`flat`,`up`],required:!1,description:`Colours the delta and picks its arrow. Left out, it is read from a leading plus or minus sign on the delta and falls back to flat.`},{name:`deltaTone`,type:`enum`,enum:[`danger`,`neutral`,`success`],required:!1,description:`The delta's colour, overriding the one its direction implies, for a figure where a rise is bad news such as refunds or cost. The arrow still follows the direction.`},{name:`href`,type:`url`,required:!1,description:`Renders the whole tile as a link to this address.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name for the leading tile, or a custom node.`},{name:`iconClassName`,type:`string`,required:!1,description:`Extra classes on the icon chip.`,default:``},{name:`iconSlot`,type:`number`,required:!1,description:`Chart palette slot 1 to 8 for the icon chip (--color-chart-1 to -8). Unset, the chip takes iconTone or the default colour.`},{name:`iconTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Tints the icon chip.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The icon style of a named icon; a node icon is drawn as given.`,default:`twotone`},{name:`inline`,type:`boolean`,required:!1,description:`Puts the icon beside the text instead of above it.`,default:!1},{name:`label`,type:`node`,required:!0,description:`What the number measures.`},{name:`labelClassName`,type:`string`,required:!1,description:`Extra classes on the label.`,default:``},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The tile scale: sm is compact, md the default, lg a hero tile with an enlarged value.`,default:`md`},{name:`sparkline`,type:`array`,required:!1,description:`A trend series drawn as a small inline chart.`},{name:`sparklineClassName`,type:`string`,required:!1,description:`Extra classes on the sparkline.`,default:``},{name:`stacked`,type:`boolean`,required:!1,description:`Keeps the stacked layout (icon above the label) instead of the default picked layout, where the label and figure sit beside the icon and the delta and sparkline at the right. Ignored with inline.`,default:!1},{name:`value`,type:`node`,required:!0,description:`The number itself, already formatted.`},{name:`valueClassName`,type:`string`,required:!1,description:`Extra classes on the value.`,default:``},{name:`valueSize`,type:`number`,required:!1,description:`A custom value font size in px. It overrides the size and variant default, to tame a too-large headline.`},{name:`variant`,type:`enum`,enum:[`accent`,`filled`,`plain`,`spotlight`],required:!1,description:`The tile surface and layout: plain is a borderless tile, filled a subtle fill, accent a brand-tinted fill, spotlight a feature tile with the icon top right, a large value and the caption below.`,default:`plain`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A single derived number is worth stating on its own: a total, a count, a rate.`,`The reader should see it without reading a table.`,`You are building a dashboard strip or a summary above a list.`],whenNot:[{text:`You are showing many records with fields.`,instead:`AppDataTable`},{text:`The value is a status rather than a quantity.`,instead:`AppStatusBadge`},{text:`It is a label/value pair among several facts.`,instead:`AppDescriptions`},{text:`The number needs a chart to make sense.`,instead:`a chart`}],do:[{title:`Name the measure and comparison`,note:`Name what is measured and say what the delta compares against. “vs last week” is what makes 12 meaningful.`,example:[{component:`AppKpiTile`,props:{label:`Awaiting sign-off`,value:`12`,delta:`4 more than last week`,deltaDirection:`up`}}]}],dont:[{title:`Name the measure and comparison`,note:`“Count” of what? “+4” since when? The reader cannot act on either without going to look somewhere else.`,example:[{component:`AppKpiTile`,props:{label:`Count`,value:`12`,delta:`+4`,deltaDirection:`up`}}]}],a11y:[`The delta arrow carries the direction as well as the colour, so a reader who cannot tell green from red still gets it.`,`With href the whole tile is one link, a router link when a link component is given; without href it is a plain block, never a link with no target.`]}},{name:`AppLeadPopup`,marker:`AppLeadPopup`,acceptsChildren:!1,props:[{name:`action`,type:`url`,required:!0,description:`The URL the form posts to.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The close button's accessible name.`,default:`Close`},{name:`consentHref`,type:`url`,required:!1,description:`Adds a Privacy policy link beside the consent checkbox, opened in the same tab. Only with fields including consent.`},{name:`delaySeconds`,type:`number`,required:!1,description:`Seconds on the site before the delay trigger counts as engaged.`,default:30},{name:`description`,type:`string`,required:!1,description:`A sentence under the heading.`},{name:`dismissDays`,type:`number`,required:!1,description:`Days a dismissed popup stays quiet.`,default:30},{name:`errorText`,type:`string`,required:!1,description:`Shown when the send fails without a message of its own.`,default:`Something went wrong. Please try again or contact us directly.`},{name:`fieldNames`,type:`object`,required:!1,description:`Posted name per field, for a server that names it differently.`},{name:`fieldPrefix`,type:`string`,required:!1,description:`Text put before every posted field name, such as Input.`},{name:`fields`,type:`array`,required:!1,description:`The fields in order: name, email, phone, company, message, consent.`,default:[`name`,`email`]},{name:`labels`,type:`object`,required:!1,description:`Label per field.`},{name:`maxLengths`,type:`object`,required:!1,description:`Maximum length per field.`},{name:`pagesViewed`,type:`number`,required:!1,description:`Distinct pages this session before the pages trigger counts.`,default:2},{name:`preview`,type:`boolean`,required:!1,description:`Draw open with no triggers, memory or posting, for a design surface.`,default:!1},{name:`publicForm`,type:`string`,required:!0,description:`The server's PublicForm name, used as the captcha action.`},{name:`required`,type:`array`,required:!1,description:`The fields that must have a value.`,default:[]},{name:`scrollPercent`,type:`number`,required:!1,description:`Percent of the page scrolled before the scroll trigger counts.`,default:50},{name:`secondaryDivider`,type:`string`,required:!1,description:`The text drawn above the secondary link.`,default:`or`},{name:`secondaryHref`,type:`url`,required:!1,description:`Where the secondary link goes.`},{name:`secondaryLabel`,type:`string`,required:!1,description:`A secondary link under the form.`},{name:`storageKey`,type:`string`,required:!1,description:`Names the browser memory of the popup. Required with triggers; build it with the user's id.`},{name:`submitLabel`,type:`string`,required:!1,description:`The submit button's text.`,default:`Send`},{name:`submittedDays`,type:`number`,required:!1,description:`Days a submitted popup stays quiet.`,default:365},{name:`successCloseSeconds`,type:`number`,required:!1,description:`Seconds before the success view closes. 0 keeps it open.`,default:5},{name:`successText`,type:`string`,required:!1,description:`The sentence under the success heading.`},{name:`successTitle`,type:`string`,required:!1,description:`The heading after a successful send.`,default:`Thank you`},{name:`title`,type:`string`,required:!0,description:`The dialog's heading, and its accessible name.`},{name:`triggers`,type:`array`,required:!1,description:`exit, delay, scroll or pages. Empty by default: the host calls open().`,default:[]}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A public page asks a visitor for their details in a modal, opened by an exit, a delay, a scroll or a page count.`,`A campaign page needs a short lead form that is not a section of the page.`],whenNot:[{text:`The lead form is a section of the page's content.`,instead:`AppSectionLeadCapture`},{text:`The popup is a yes or no question, not a form.`,instead:`AppConfirmDialog`},{text:`The page is inside the signed-in app.`,instead:`AppModal`}],do:[],dont:[],a11y:[`The dialog is modal with a heading as its accessible name; Escape and the close button both dismiss it.`,`Each field has a visible label and an error message linked by aria-describedby; the first invalid field takes focus.`]}},{name:`AppLightbox`,marker:`AppLightbox`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the gallery.`,default:``},{name:`download`,type:`boolean`,required:!1,description:"Shows a download action. A browser ignores `name` for an image on another origin.",default:!1},{name:`items`,type:`array`,itemFields:[{name:`alt`,type:`string`,required:!1,description:`The image's text alternative. It defaults to the caption.`},{name:`caption`,type:`string`,required:!1,description:`The line under the image in the full-screen view.`},{name:`key`,type:`string`,required:!1,description:`A stable id for the image in the list. It defaults to the image address.`},{name:`name`,type:`string`,required:!1,description:`The file name a download saves under. It defaults to the last part of the image address.`},{name:`src`,type:`url`,required:!0,description:`The full image.`},{name:`thumb`,type:`url`,required:!1,description:`The thumbnail. It defaults to the full image.`},{name:`thumbHeight`,type:`number`,required:!1,description:`The thumbnail's height in pixels.`},{name:`thumbWidth`,type:`number`,required:!1,description:`The thumbnail's width in pixels. Set it with thumbHeight so its space is reserved before it loads.`}],required:!1,description:`The images, each opening full screen from its thumbnail.`,default:[]},{name:`label`,type:`string`,required:!1,description:`The full-screen dialog's name for screen readers.`,default:`Image viewer`},{name:`layout`,type:`enum`,enum:[`gallery`,`single`],required:!1,description:`gallery shows thumbnails; single shows each image at the container's full width, at its own shape.`,default:`gallery`},{name:`openIndex`,type:`number`,required:!1,description:`Opens the viewer on this image, counted from 0.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A gallery of photos.`,`Image attachments on a record that should open without leaving it.`],whenNot:[{text:`A PDF, video or audio file.`,instead:`AppFileViewer`},{text:`One image that is part of the page's content.`,instead:`a plain img`}],do:[],dont:[],a11y:[`Left and Right change image, wrapping at the ends; plus and minus zoom, 0 resets the zoom, and Escape closes and puts focus back on the thumbnail of the image last shown.`,`On a touch screen, swipe sideways to change image, pinch or double tap to zoom, drag to pan, and tap beside the image to close.`,"The full-screen dialog is named by `label`, and each thumbnail is a link to its image that still opens normally with Ctrl, Cmd or Shift."]}},{name:`AppLink`,marker:`AppLink`,acceptsChildren:!0,props:[{name:`animation`,type:`enum`,enum:[`bracket`,`fade`,`glow`,`grow`,`highlight`,`icon`,`none`,`rotate`,`shine`,`slide`,`static`,`underline`,`underline-center`],required:!1,description:`The hover treatment: underline slides a line in from the left, underline-center grows it from the middle, static is an always-visible underline with no motion, slide nudges the label and icons right, icon slides a trailing icon in (an arrow when none is given), rotate turns the trailing icon a quarter-eighth turn (45 degrees) on hover and focus (an up-right arrow when none is given), highlight wipes a tinted background across, bracket slides brackets in around the label, fade shifts colour only, grow opens up the letter spacing, glow adds a soft glow, shine sweeps a light shimmer across the label, and none is a plain coloured link.`,default:`underline`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the anchor.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Renders the link as unavailable: no navigation, and aria-disabled is set.`,default:!1},{name:`external`,type:`boolean`,required:!1,description:`Opens the link in a new tab, with the matching target and rel.`,default:!1},{name:`href`,type:`url`,required:!1,description:"The destination, or the `to` path when a link component is given. Left out, the anchor has no href."},{name:`label`,type:`node`,required:!1,description:`The link text as a prop, an alternative to children. When both are given, children wins.`},{name:`leftIcon`,type:`icon`,required:!1,description:`The leading glyph: an icon name or a node.`},{name:`maxLines`,type:`number`,required:!1,nullable:!0,description:`Clamps the label to this many lines, ending the last one with an ellipsis. Omit it for a label that runs on. Whole numbers of 1 or more only.`},{name:`rightIcon`,type:`icon`,required:!1,description:`The trailing glyph: an icon name or a node.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The text and icon size.`,default:`md`},{name:`surface`,type:`enum`,enum:[`dark`,`default`],required:!1,description:`Set dark when the link sits on a dark panel such as a dark hero or footer; the text turns light.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`An inline prose link inside body copy.`,`A footer link or a 'read more' / 'learn more' affordance.`,`A marketing call-to-action link where the hover should feel deliberate.`],whenNot:[{text:`The control performs an action rather than navigating.`,instead:`AppButton`},{text:`It is a primary navigation item in the app chrome.`,instead:`AppShell`},{text:`It is a rich link card with an icon tile and supporting text.`,instead:`AppResourceCard`},{text:`It is the trail to the current page.`,instead:`AppBreadcrumbs`}],do:[{title:`Name the destination`,note:`One clear animation and a descriptive label. The link reads as a link and says where it goes.`,example:[{component:`AppLink`,props:{href:`#guidance`,rightIcon:`arrow-right`},children:`See pricing`}]}],dont:[{title:`Name the destination`,note:`“Click here” tells the reader nothing. Name the destination so the link explains where it goes.`,example:[{component:`AppLink`,props:{href:`#guidance`,animation:`glow`},children:`Click here`}]}],a11y:[`A disabled link renders as a plain span with aria-disabled set and no href, so it is neither focusable nor announced as a link.`,`An external link opens in a new tab with rel noopener noreferrer.`,`Every animation is disabled under prefers-reduced-motion: reduce, where the link degrades to a static underline.`]}},{name:`AppLoadMore`,marker:`AppLoadMore`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the wrapper.`,default:``},{name:`failedText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Could not load more`},{name:`finishedText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`You are all caught up.`},{name:`infinite`,type:`boolean`,required:!1,description:`Loads the next page when the footer scrolls into view. The Load more button stays for keyboard users.`,default:!1},{name:`loadMoreLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Load more`},{name:`loadingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Loading more`},{name:`paging`,type:`object`,required:!0,description:`The paging object that useInfiniteDataState returns: hasMore, loadingMore, errorMore, loadMore and retryMore. The component only reads it.`},{name:`retryLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Try again`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A long feed, notification list or chat history that loads its next page on request or as the reader scrolls.`],whenNot:[{text:`Moving between numbered pages of a table.`,instead:`AppTablePagination`},{text:`The first page of a feed is loading.`,instead:`AppAsyncBlock`}],do:[],dont:[],a11y:[`Loading is announced by the spinner label.`,`A failed page is a polite status with a text-labelled Try again button.`,`The finished text is a polite status.`,`With infinite, the Load more button stays focusable, so keyboard users load the next page without scrolling.`]}},{name:`AppMarkdown`,marker:`AppMarkdown`,acceptsChildren:!1,props:[{name:`base`,type:`string`,required:!1,nullable:!0,description:`An https origin such as https://example.com that a relative link resolves against: /pricing opens https://example.com/pricing. Any other value (a path, a query, credentials, http) is ignored with a dev warning.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root element.`,default:``},{name:`headings`,type:`enum`,enum:[`outline`,`text`],required:!1,description:`Outline draws a heading as an h2 in the page outline. Text draws it as a bold line that stays out of the outline.`,default:`outline`},{name:`links`,type:`enum`,enum:[`app`,`page`,`web`],required:!1,description:`App opens only routes from resolveLink. Web also opens web, mail and phone addresses in a new tab. Page also opens a relative address and a web address on this site, in the same tab, and asks resolveLink for every address; an absolute web address it returns opens in a new tab when it leaves this site.`,default:`web`},{name:`value`,type:`string`,required:!1,description:`The Markdown source. Missing text renders nothing.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A brief, a comment or a work-item text that people wrote in Markdown.`,`A read-only view of formatted text from the server.`],whenNot:[{text:`Text a person edits.`,instead:`AppRichText`},{text:`A code sample people copy.`,instead:`AppCodeBlock`},{text:`Plain text with no formatting.`,instead:`the text itself`}],do:[],dont:[],a11y:[`Raw markup never reaches the page as elements: it shows as text, and an image shows as its alt text in brackets, so no picture is requested or announced.`,`By default a link opens only for an in-app route, a web address (in a new tab) or a mail or phone address. With links app, only the in-app route opens. Any other link shows its label as plain text.`]}},{name:`AppMentionInput`,marker:`AppMentionInput`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`debounce`,type:`number`,required:!1,description:`Milliseconds to wait for typing to pause before the lookup runs.`,default:250},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the box off.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error message shown under the box.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra classes on the field wrapper.`,default:``},{name:`help`,type:`node`,required:!1,description:`Help content shown in an info tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of that info tip.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the box when there is no error.`},{name:`id`,type:`string`,required:!1,description:`The element id. The text box is the id plus -text, which is the label's target.`},{name:`label`,type:`node`,required:!1,description:`Shown above the box. A string label also names the box.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`minChars`,type:`number`,required:!1,description:`How many letters after @ before the lookup runs.`,default:1},{name:`name`,type:`string`,required:!1,description:`Posts the stored value under this name in a form.`},{name:`people`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A second line under the name in the list.`},{name:`label`,type:`string`,required:!0,description:`The name shown in the list and written into the text.`},{name:`src`,type:`string`,required:!1,description:`A profile photo address shown beside the name. It is a string, not a url type, because the name does not end in href or url.`},{name:`value`,type:`string`,required:!0,description:`The person's public id: letters, digits and the characters _ . : -.`}],required:!1,description:`The people to offer when the person types @.`},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text shown while the box is empty.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`rows`,type:`number`,required:!1,description:`The number of visible lines.`,default:3},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control size: sm, md, lg or xl.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The stored value, plain text with each mention written as @[Asha Rao](u-12).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A comment, note or message that should reach named people.`,`Any text a server reads to notify someone.`],whenNot:[{text:`Choosing people as a field value.`,instead:`AppSelect mode="multiple"`},{text:`Formatted text with headings and lists.`,instead:`AppRichText`}],do:[],dont:[],a11y:[`The label points at the text box, whose id is the element id plus -text, so the label names it.`,`The helper text or the error is tied to the box with aria-describedby, and an error also marks the box aria-invalid.`,`In the list, Up and Down choose, Enter or Tab mention and Escape closes it. Backspace just after a mention removes it whole.`]}},{name:`AppMeter`,marker:`AppMeter`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the component.`,default:``},{name:`high`,type:`number`,required:!1,description:`A value at or above this is the high zone.`},{name:`label`,type:`string`,required:!1,description:`The accessible name of the bar. It is also shown above the bar when showLabel is set.`},{name:`low`,type:`number`,required:!1,description:`A value at or below this is the low zone.`},{name:`max`,type:`number`,required:!1,description:`The high end of the range.`,default:100},{name:`min`,type:`number`,required:!1,description:`The low end of the range.`,default:0},{name:`optimum`,type:`enum`,enum:[`high`,`low`],required:!1,description:`Which end is good. High means bigger is better.`,default:`high`},{name:`showLabel`,type:`boolean`,required:!1,description:`Shows the label text above the bar.`,default:!1},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The bar thickness.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`The fill colour when no thresholds are set.`,default:`info`},{name:`value`,type:`number`,required:!1,description:`The measurement, from min to max. It is clamped into range.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You have a single measurement within a known min…max range: disk used, a score, remaining quota.`,`There are meaningful thresholds where the reading becomes concerning, and you want the colour to say so automatically.`,`The value is a state to read at a glance, not a task advancing toward completion.`],whenNot:[{text:`The value is a task's completion moving toward 100% over time.`,instead:`AppProgress`},{text:`A single headline number with an optional trend, not a bar.`,instead:`AppKpiTile`},{text:`There is no known amount at all, it is just "working".`,instead:`AppSpinner`}],do:[{title:`Use meters for measurements, not tasks`,note:`Real thresholds that mean something operationally, so the auto-tone is trustworthy.`,example:[{component:`AppMeter`,props:{value:82,low:60,high:90,optimum:`low`,label:`Disk usage 82%`,showLabel:!0}}]}],dont:[{title:`Use meters for measurements, not tasks`,note:`A task advancing toward completion is not a measurement: that is AppProgress, not AppMeter.`,example:[{component:`AppMeter`,props:{value:45,label:`Import progress`,showLabel:!0}}]}],a11y:[`The bar has role meter with aria-valuenow, aria-valuemin and aria-valuemax, so assistive technology reads the value within its range.`,`label is the accessible name of the bar. The label shown above it is hidden from assistive technology so it is not read twice.`,`The tone is a visual cue only and is not announced, so state the reading in label.`]}},{name:`AppMetricStrip`,marker:`AppMetricStrip`,acceptsChildren:!1,props:[{name:`columns`,type:`enum`,enum:[3,4,5],required:!1,description:`How many values sit in a row.`,default:4},{name:`divided`,type:`boolean`,required:!1,description:`Draws the strip as one flush row with a rule between figures from the medium breakpoint up, for a strip inside a flush card.`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!1,description:`Makes the whole item a link.`},{name:`label`,type:`node`,required:!0,description:`What the value measures.`},{name:`note`,type:`string`,required:!1,description:`A small line under the value.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`Tints the value to show how it is going.`},{name:`value`,type:`node`,required:!0,description:`The value, shown large.`}],required:!1,description:`The values in the strip, three to five of them.`,default:[]},{name:`phoneColumns`,type:`enum`,enum:[1,2],required:!1,description:`How many values sit in a row on a phone.`,default:2},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The value and label scale.`,default:`md`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A page opens with three to five headline numbers.`,`Each number links to the list or report behind it.`,`The numbers need no surface of their own.`],whenNot:[{text:`One number needs its own card and icon.`,instead:`AppKpiTile`},{text:`The facts are a record's details.`,instead:`AppDescriptions`},{text:`You are listing many records.`,instead:`AppDataTable`}],do:[],dont:[],a11y:[`An item with an href is a real link; an item without one is plain text, so nothing is announced as a link that goes nowhere.`,`Label, value and note are plain text in reading order, with no hidden content.`]}},{name:`AppModal`,marker:`AppModal`,acceptsChildren:!0,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name when the title is not plain text, or when the header is hidden.`},{name:`backLabel`,type:`string`,required:!1,description:`The accessible name of the back arrow shown when onBack is set.`,default:`Back`},{name:`closeLabel`,type:`string`,required:!1,description:`The close button's accessible name, for other languages.`,default:`Close`},{name:`closeOnEscape`,type:`boolean`,required:!1,description:`Escape closes the modal through onClose, asking first when confirmDiscard applies. Set false for a dialog that must not close from the keyboard.`,default:!0},{name:`confirmDiscard`,type:`string`,required:!1,description:`Asks before closing while dirty, with this text and Discard and Keep editing in the footer.`},{name:`dirty`,type:`boolean`,required:!1,description:`True while a field differs from its loaded value. The caller owns it.`,default:!1},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows the close button in the header. For a forced-choice dialog, pair false with staticBackdrop and closeOnEscape false.`,default:!0},{name:`eyebrow`,type:`node`,required:!1,description:`A small kicker label above the title.`},{name:`footer`,type:`node`,required:!1,description:`Content pinned at the bottom, usually the action buttons.`},{name:`headerActions`,type:`node`,required:!1,description:`Actions drawn beside the title, before the close button, such as Previous and Next. Not drawn while hideHeader is set.`},{name:`headerIcon`,type:`icon`,required:!1,description:`A library icon name drawn in the header.`},{name:`hideHeader`,type:`boolean`,required:!1,description:`Hides the header, leaving the body and footer.`,default:!1},{name:`open`,type:`boolean`,required:!0,description:`Whether the dialog is shown.`},{name:`phoneSize`,type:`enum`,enum:[`fullscreen`,`lg`,`md`,`sm`,`wide`,`xl`],required:!1,description:`The card width below 576px, in place of size, which applies from 576px up. fullscreen covers the whole viewport on a phone. Unset, size applies at every width.`},{name:`placement`,type:`enum`,enum:[`center`,`top`],required:!1,description:`Vertical placement of the card: centred, or pinned near the top of the viewport.`,default:`center`},{name:`size`,type:`enumOrNumber`,enum:[`fullscreen`,`lg`,`md`,`sm`,`wide`,`xl`],required:!1,description:`The card width: a preset, wide for 1080px with fields in two columns (capped at 90vw), fullscreen for the whole viewport with header and footer pinned, or a number for an exact max width in pixels.`,default:`md`},{name:`staticBackdrop`,type:`boolean`,required:!1,description:`Covers outside clicks only: by default an outside click leaves the pop-up open. false lets an outside click close it.`,default:!0},{name:`subtitle`,type:`node`,required:!1,description:`A quieter line under the title.`},{name:`title`,type:`node`,required:!1,description:`The dialog title, shown in the header.`},{name:`titleFont`,type:`enum`,enum:[`sans`,`serif`],required:!1,description:`Face of the title. serif draws it in the display typeface at the 3xl size, weight 500.`,default:`sans`},{name:`tone`,type:`enum`,enum:[`danger`,`neutral`,`success`,`warning`],required:!1,description:`Tints the header icon and eyebrow to signal intent, such as a destructive or a success dialog.`,default:`neutral`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A short, self-contained task: edit a record, view details, complete a small form.`,`You need to interrupt the flow to get one thing done before continuing.`],whenNot:[{text:`It's a yes/no confirmation before a destructive action.`,instead:`AppConfirmDialog`},{text:`It's a slide-in navigation or filter panel on mobile.`,instead:`AppDrawer`},{text:`The content is a full workflow with many steps and forms.`,instead:`a dedicated page`},{text:`It's a transient success/error message.`,instead:`a toast`}],do:[{title:`One trigger, one dialog`,note:`A clear trigger opens a single-purpose dialog; open and onClose stay controlled so the close control always works.`,example:[{component:`AppButton`,children:`Edit project`}]},{title:`One primary action in the footer`,note:`A footer that pairs a secondary Cancel with one primary confirm: the eye knows the main action.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppButton`,props:{variant:`soft`},children:`Cancel`},{component:`AppButton`,children:`Save changes`}]}]}],dont:[{title:`One trigger, one dialog`,note:`A modal with no onClose traps the user: the backdrop and Escape have nothing to call.`,example:[{component:`AppButton`,props:{variant:`ghost`},children:`Open (never closes)`}]},{title:`One primary action in the footer`,note:`Three competing primaries in the footer leave the user unsure which one commits.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppButton`,children:`Save`},{component:`AppButton`,children:`Apply`},{component:`AppButton`,children:`Submit`}]}]}],a11y:[`Focus opens on the first control. Tab moves through the dialog and then to the browser's bar, without wrapping.`,`The dialog is named by a plain-text title or by ariaLabel; a headerless dialog with neither warns in development.`,`An outside click leaves it open by default (staticBackdrop); Escape closes it unless closeOnEscape is false.`]}},{name:`AppMonthPicker`,marker:`AppMonthPicker`,acceptsChildren:!1,props:[{name:`aria-invalid`,type:`any`,required:!1,description:`Marks the control invalid (aria-invalid) without an error message. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form.`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when there is no visible label.`},{name:`className`,type:`string`,required:!1,description:`Classes for the wui-datepicker control itself.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting month of an uncontrolled field, as YYYY-MM.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`displayFormat`,type:`string`,required:!1,description:`How the chosen month reads in the field, from the tokens yyyy, MMMM, MMM and MM (for example MM/yyyy). The onChange value stays YYYY-MM.`,default:`MMM yyyy`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Classes for the field wrapper that holds the label, helper text and error.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the control.`},{name:`id`,type:`string`,required:!1,description:`The id of the control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control and used as its accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest selectable month, as YYYY-MM.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable month, as YYYY-MM.`},{name:`name`,type:`string`,required:!1,description:`The form field name the YYYY-MM month posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the field while no month is chosen.`,default:`Choose a month`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control height tier, matching AppInput.`},{name:`value`,type:`string`,required:!1,description:`The chosen month as YYYY-MM.`},{name:`valueAsDate`,type:`boolean`,required:!1,description:`Stores the month as its first day, YYYY-MM-01, for a date column. value, defaultValue, min and max take YYYY-MM-01 or YYYY-MM, and onChange receives YYYY-MM-01.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a single calendar month: billing month, reporting period, expiry month.`,`You need one consistent month picker across every browser and both surfaces.`,`Restricting selection to a valid window with min / max.`],whenNot:[{text:`You need a full calendar date.`,instead:`AppDatePicker`},{text:`You are capturing a start-and-end range of months or dates.`,instead:`AppDateRangePicker`},{text:`The value is free text, not a month.`,instead:`AppInput`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[{title:`Give the month a visible label`,note:`A visible label above the field. The user knows what the month is for before opening it.`,example:[{component:`AppMonthPicker`,props:{id:`bp-good-month`,label:`Billing month`,value:`2026-07`}}]},{title:`Set min and max bounds`,note:`min / max stop invalid months at the source, so the user can only pick a real one.`,example:[{component:`AppMonthPicker`,props:{value:`2026-07`,min:`2026-01`,max:`2026-12`}}]}],dont:[{title:`Give the month a visible label`,note:`Only a placeholder as the label, which vanishes the moment a month is picked.`,example:[{component:`AppMonthPicker`,props:{value:``,placeholder:`Month`}}]},{title:`Set min and max bounds`,note:`No bounds, then reject the month after submit. Constrain up front instead.`,example:[{component:`AppMonthPicker`,props:{value:`2030-01`}}]}],a11y:[`The field label names the control through aria-label when it is a string, and ariaLabel overrides it.`,`Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid. A caller's aria-invalid takes its place.`,`Required and disabled are set as native attributes on the control.`]}},{name:`AppNavList`,marker:`AppNavList`,acceptsChildren:!1,props:[{name:`items`,type:`array`,itemFields:[{name:`active`,type:`boolean`,required:!1,description:`Marks the current row.`},{name:`count`,type:`number`,required:!1,description:`A count on the right; hidden at zero.`},{name:`divider`,type:`boolean`,required:!1,description:`Draws a hairline instead of a row.`},{name:`dotTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`A 10 px coloured dot in place of the icon.`},{name:`icon`,type:`icon`,required:!1,description:`An icon drawn before the text. Not together with dotTone.`},{name:`key`,type:`stringOrNumber`,required:!0,description:`The row's key; not shown.`},{name:`label`,type:`node`,required:!1,description:`The row text.`},{name:`to`,type:`string`,required:!1,description:`Where the row links.`}],required:!1,description:`The rows, top to bottom. A row with a target is a link; without one it is a button. A divider item draws a hairline between groups.`,default:[]},{name:`label`,type:`string`,required:!0,description:`The accessible name of the navigation landmark.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,role:`navigation`,usage:{when:[`A page has a short rail of destinations or groups, each with a count, beside its content.`,`The rows pick one current destination, and some rows are coloured by a status dot.`],whenNot:[{text:`A site's top navigation with dropdown panels.`,instead:`AppNavigationMenu`},{text:`A signed-in app's sidebar of destinations.`,instead:`AppShell`},{text:`A choice between several values in a form.`,instead:`AppRadioGroup`}],do:[],dont:[],a11y:[`The rows sit in a navigation landmark named by label, and the current row is marked with aria-current page.`,`A dot is decorative: the row's label carries the meaning, so the dot is hidden from assistive tech.`]}},{name:`AppNavigationMenu`,marker:`AppNavigationMenu`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the navigation landmark.`,default:`Main`},{name:`items`,type:`array`,itemFields:[{name:`current`,type:`boolean`,required:!1,description:`Marks the page the visitor is on.`},{name:`group`,type:`string`,required:!1,description:`The heading shown above the first entry of each run of entries with the same group.`},{name:`key`,type:`string`,required:!0,description:`The item's key; not shown.`},{name:`label`,type:`string`,required:!0,description:`The entry text.`},{name:`links`,type:`array`,itemFields:[{name:`current`,type:`boolean`,required:!1,description:`Marks the page the visitor is on.`},{name:`description`,type:`string`,required:!1,description:`A short line under the label.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name, or a node drawn before the text.`},{name:`key`,type:`string`,required:!0,description:`The item's key; not shown.`},{name:`label`,type:`string`,required:!0,description:`The link text.`},{name:`to`,type:`string`,required:!0,description:`Where the link goes.`}],required:!1,description:`The links in the entry's panel.`},{name:`to`,type:`string`,required:!1,description:`Where the entry links. Used only when the entry has no links.`}],required:!1,description:`The entries, left to right. An entry with links is a button that opens them; without links it is a link to its target.`,default:[]}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,role:`navigation`,usage:{when:[`A public site or portal header has sections, each with several destinations worth a short description.`,`Some entries are plain links beside the ones with panels.`],whenNot:[{text:`A signed-in app's sidebar of destinations.`,instead:`AppShell`},{text:`One button opens a short list of actions.`,instead:`AppDropdown`}],do:[],dont:[],a11y:[`The entries sit in a navigation landmark named by ariaLabel, and the current page is marked with aria-current page.`,`A panel button reports aria-expanded and names its panel through aria-controls; a panel opens on click, Enter, Space or Down, never on hover alone.`,`Escape closes the panel and returns focus to its button, and Left and Right move along the entries.`]}},{name:`AppNotificationCenter`,marker:`AppNotificationCenter`,acceptsChildren:!1,props:[{name:`defaultOpen`,type:`boolean`,required:!1,description:`Starts with the panel open. The element owns the state after that.`,default:!1},{name:`emptyText`,type:`string`,required:!1,description:`Shown when there are no items.`,default:`You are all caught up.`},{name:`items`,type:`array`,itemFields:[{name:`archived`,type:`boolean`,required:!1,description:`Filed away: shown only under the Archived tab.`},{name:`at`,type:`string`,required:!0,description:`When it happened: an ISO date-time with its zone, or a YYYY-MM-DD day. It sets the day group and the time shown, in India Standard Time.`},{name:`href`,type:`url`,required:!1,description:`The record the item opens. Without it the item is a button.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name drawn before the text.`},{name:`id`,type:`string`,required:!0,description:`A stable id that names the item to the click handler.`},{name:`read`,type:`boolean`,required:!1,description:`Already read: no dot and regular weight.`},{name:`text`,type:`string`,required:!1,description:`A second, quieter line.`},{name:`title`,type:`string`,required:!0,description:`The one line that says what happened.`}],required:!0,description:`The notifications, newest first. Read state is the caller's: pass the new items after marking some read.`},{name:`label`,type:`string`,required:!1,description:`The bell's name and the panel heading.`,default:`Notifications`},{name:`now`,type:`stringOrNumber`,required:!1,description:`The clock for Today and Yesterday, as ISO text or epoch milliseconds. The current time when omitted.`},{name:`tabs`,type:`any`,required:!1,description:"true for the tabs All, Unread and Archived, or the tabs to show in order as `{ key, label? }`, where key is all, unread or archived and label defaults to the key's name. All and Unread leave out archived items; Archived shows only them. Absent: no tab strip."},{name:`unread`,type:`number`,required:!1,description:`The badge count when it is larger than the items listed, for example the latest twenty of 120. Without it the count is the number of unread items.`},{name:`viewAllHref`,type:`url`,required:!1,description:`A View all link under the list. Without it there is no link.`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A portal's list of things that happened to the person: approvals, comments, runs finished.`,`Anything that links to a record.`,`A row needs its own controls, such as Accept and Decline buttons: pass renderItem(item), which returns the row's content in place of the icon, title, text and time. The dot, the Unread prefix and the read handling stay.`,`A product brands the unread count: set --wui-notification-count-bg (the fill, default the strong danger colour) and --wui-notification-count-fg (the text, default white) on .wui-notification-center or an ancestor. No prop or class override is needed.`],whenNot:[{text:`A message that must be acted on right now.`,instead:`AppAlert or AppToast`},{text:`The shell's topbar bell fed by a server fragment.`,instead:`AppShell notifications`}],do:[],dont:[],a11y:[`The bell is a button with aria-haspopup dialog and aria-expanded, named with the label and the unread count.`,`The panel is a dialog named by its heading; Escape closes it and returns focus to the bell.`,`A change in the unread count is announced through a polite live region, and each unread item carries a visually hidden Unread prefix.`]}},{name:`AppNumberInput`,marker:`AppNumberInput`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the input.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`decreaseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Decrease`},{name:`defaultValue`,type:`number`,required:!1,nullable:!0,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the field and both steppers.`,default:!1},{name:`error`,type:`node`,required:!1,description:`An error message under the field. It sets the error state and aria-invalid on the input.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra classes on the field wrapper.`,default:``},{name:`grouping`,type:`enum`,enum:[`indian`,`none`],required:!1,description:`Digit grouping while the number is shown: indian writes 3,00,000 and posts the plain digits; none writes 300000.`,default:`none`},{name:`help`,type:`node`,required:!1,description:`Content for the info-tip beside the label. The caller supplies the node.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text under the field, linked to the input for screen readers.`},{name:`id`,type:`string`,required:!1,description:`The input's id. Unset, a generated id is used.`},{name:`increaseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Increase`},{name:`label`,type:`node`,required:!1,description:`The label above the field. A required field shows a required mark after it.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`number`,required:!1,description:`The highest value, inclusive. The increase stepper disables at it.`},{name:`min`,type:`number`,required:!1,description:`The lowest value, inclusive. The decrease stepper disables at it.`},{name:`name`,type:`string`,required:!1,description:`The input's name, for forms.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the empty field.`},{name:`precision`,type:`number`,required:!1,description:`The number of decimal places the value rounds to.`,default:0},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the field and both steppers; the value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required, on the input and on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.`,default:`md`},{name:`step`,type:`number`,required:!1,description:`The amount one stepper click, or one ArrowUp or ArrowDown press, adds or removes.`,default:1},{name:`unit`,type:`string`,required:!1,description:`A unit suffix shown inside the field after the input, such as kg or %.`},{name:`value`,type:`number`,required:!1,nullable:!0,description:`The current number; null or unset for an empty field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Any numeric input: quantities, prices, ratings, percentages.`,`When min/max bounds or precision rounding are important.`,`When keyboard stepping (Arrow Up/Down) would be helpful.`,`When a unit suffix (kg, °C, %) adds clarity.`],whenNot:[{text:`Text or email.`,instead:`AppInput`},{text:`Multiple choice.`,instead:`AppSelect or AppRadio`},{text:`When free-text input is the only needed mode (buttons would be clutter).`}],do:[],dont:[],a11y:[`The steppers are labelled Decrease and Increase and stay out of the tab order; keyboard users step with ArrowUp and ArrowDown on the input.`,`ArrowUp and ArrowDown step the value by step, within min and max; with Ctrl, Meta or Alt held they are left to the page.`,`aria-invalid is set from error, and aria-describedby points at the error or the helper text.`]}},{name:`AppOnboardingChecklist`,marker:`AppOnboardingChecklist`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the root element.`,default:``},{name:`defaultCollapsed`,type:`boolean`,required:!1,description:`Whether the steps start collapsed. Unset, they start collapsed when every step is done or skipped.`},{name:`defaultDismissed`,type:`boolean`,required:!1,description:`Whether the checklist starts dismissed, showing only the restore button.`,default:!1},{name:`dismissLabel`,type:`string`,required:!1,description:`The name and tooltip of the close icon.`,default:`Dismiss checklist`},{name:`restoreLabel`,type:`string`,required:!1,description:`The text of the button that brings a dismissed checklist back.`,default:`Show setup checklist`},{name:`steps`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A secondary line under the label.`},{name:`href`,type:`url`,required:!1,description:`Where the step is done. It makes the label a link to that place.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the step, so the list keeps each step's identity when steps are reordered.`},{name:`label`,type:`string`,required:!0,description:`The step's name, shown beside its mark.`},{name:`status`,type:`enum`,enum:[`current`,`done`,`skipped`,`todo`],required:!1,description:`The step's state. A step with no status is to do, and with no step marked current, the first step to do is current.`}],required:!1,description:`The steps in order. Each step has a label, an optional description and href, and a status.`,default:[]},{name:`storageKey`,type:`string`,required:!1,description:`Remembers a dismissal across visits under this key, one per checklist. Unset, the dismissal lasts the page.`},{name:`title`,type:`string`,required:!1,description:`The heading, and the name of the progress bar.`,default:`Get started`}],itemsTakeAction:[`steps`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A new user's first visit, where a few setup steps unlock the product.`,`Setup that spans several screens and may be done in any order.`],whenNot:[{text:`A strict sequence the user must follow in one flow.`,instead:`AppStepper or AppWizard`},{text:`A guided walk over one screen's controls.`,instead:`AppTour`}],do:[],dont:[],a11y:[`The card is named by its title, and the progress bar is named by the same title.`,`The heading toggle sets aria-expanded and aria-controls, so a screen reader hears whether the steps are open.`,`The progress bar is a progressbar whose value is the number of steps done, read as a count such as 2 of 4 done.`,`A step that is done or skipped is read out as Done or Skipped before its label, so the mark alone carries no state.`,`The current step carries aria-current set to step.`]}},{name:`AppOrgTree`,marker:`AppOrgTree`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the tree.`,default:`Organisation`},{name:`className`,type:`string`,required:!1,description:`Extra class names on the tree.`,default:``},{name:`collapseLabel`,type:`string`,required:!1,description:`A toggle's accessible name while its team is open. {name} is replaced with the person's name.`,default:`Hide {name}'s team`},{name:`expandDepth`,type:`number`,required:!1,description:`How many levels open at first render; level 1 is a root. A node at level expandDepth or deeper starts collapsed. Absent: every level starts open.`},{name:`expandLabel`,type:`string`,required:!1,description:`A toggle's accessible name while its team is closed. {name} is replaced with the person's name.`,default:`Show {name}'s team`},{name:`helpText`,type:`string`,required:!1,description:`The keyboard help read by screen readers. Defaults to the built-in instructions.`},{name:`highlightIds`,type:`array`,required:!1,description:`Ids of the people under the product's selection. They and every ancestor are highlighted, every other person dims. Empty or absent turns the highlight mode off.`},{name:`id`,type:`string`,required:!1,description:`The id of the tree element.`},{name:`noResultsText`,type:`string`,required:!1,description:`Announced when a search matches nobody.`,default:`No one found`},{name:`nodes`,type:`array`,itemFields:[{name:`avatarUrl`,type:`url`,required:!1,description:`The person's photo. Without it the avatar shows initials.`},{name:`id`,type:`string`,required:!0,description:`The person's id, unique across the list.`},{name:`name`,type:`string`,required:!0,description:`The person's name, shown on the card.`},{name:`overlay`,type:`any`,required:!1,description:`Product data the component never reads. renderOverlay(node) draws it under the person's text.`},{name:`parentId`,type:`string`,required:!0,nullable:!0,description:`The id of the person's manager, or null or empty for a root.`},{name:`role`,type:`string`,required:!1,description:`The person's job title, shown under the name.`},{name:`team`,type:`string`,required:!1,description:`The person's team, shown under the role.`}],required:!0,description:`The people, flat: one entry per person. A node whose parentId is null or empty is a root; several roots sit side by side in list order. A repeated id, a parentId that names no node, or a loop throws.`},{name:`resultsText`,type:`string`,required:!1,description:`Announced after a search. {count} is replaced with the number of matches.`,default:`{count} found`},{name:`searchLabel`,type:`string`,required:!1,description:`Accessible name and placeholder of the search field.`,default:`Search by name`},{name:`searchable`,type:`boolean`,required:!1,description:`Shows the search field above the tree.`,default:!0},{name:`selectable`,type:`boolean`,required:!1,description:`A person can be chosen by click, Enter or Space. onSelect fires with the id and node.`,default:!1},{name:`selected`,type:`string`,required:!1,nullable:!0,description:`Selected id (controlled). The tree shows this id whatever the user clicks until you change it; null selects nothing, and dropping the prop clears it.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Showing who reports to whom in an organisation, for reporting lines and review.`,`Choosing one person in a reporting structure, or highlighting the chain above a set of people.`],whenNot:[{text:`A hierarchy of folders or categories, not people.`,instead:`AppTreeView`},{text:`A flat list of people to pick from.`,instead:`AppSelect mode="search" or AppSelect mode="multiple"`}],do:[],dont:[],a11y:[`The tree follows the WAI-ARIA tree pattern: arrow keys move between people, Plus and Minus open and close a team, Enter chooses a person.`,`Each person's toggle has an accessible name that says whose team it opens or closes.`,`The search field announces how many people match, or that nobody does.`]}},{name:`AppOtpInput`,marker:`AppOtpInput`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Class to apply to the control element.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the field so the code cannot be entered.`,default:!1},{name:`error`,type:`string`,required:!1,description:`The error message under the code. It replaces the helper text and marks the field invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class to apply to the wrapper field div.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the code. It is hidden while an error is shown.`},{name:`id`,type:`string`,required:!1,description:`The element id. A generated id is used when this is omitted.`},{name:`label`,type:`string`,required:!1,description:`The visible label. It also becomes the field's accessible name.`},{name:`length`,type:`number`,required:!1,description:`Characters in the code. TOTP is 6; backup codes are often 8.`,default:6},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`mode`,type:`enum`,enum:[`alphanumeric`,`numeric`],required:!1,description:`Drives the on-screen keyboard and what the field will accept.`,default:`numeric`},{name:`name`,type:`string`,required:!1,description:`The form field name, so a plain form post includes the code.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required for assistive technology and shows the required mark beside the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control size: sm, md or lg.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The code entered so far. The field is controlled, so pair it with onChange.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A one-time code: MFA, email or phone verification, backup codes.`,`Anywhere the code has a known, fixed length.`],whenNot:[{text:`A password or passphrase.`,instead:`AppInput with type="password"`},{text:`A code of unknown or variable length.`,instead:`AppInput`},{text:`A licence key with separators. The segments here are characters, not groups.`,instead:`AppInput`}],do:[{title:`One field for the whole code`,note:`One labelled field, six boxes drawn underneath. Autofill, paste and a screen reader all work.`,example:[{component:`AppOtpInput`,props:{label:`Verification code`}}]}],dont:[{title:`One field for the whole code`,note:`Six inputs: the OS drops the whole SMS code into box one, and a screen reader announces six unlabelled boxes.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}},{component:`AppInput`,props:{className:`input`,maxLength:1}}]}]}],a11y:[`One input, with the segment boxes drawn underneath, so a screen reader announces one labelled field instead of six unlabelled boxes.`,`OS autofill delivers the whole code to the one field, so an SMS code is never split across boxes.`,`A string label is the accessible name of the control, because a label element cannot point at the custom element.`,`An error marks the field invalid and is linked to it as the description, which takes precedence over the helper text.`,`Helper text is linked to the field as its description when no error is shown.`]}},{name:`AppPageHeader`,marker:`AppPageHeader`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:`Right-aligned page-level actions (usually an AppButton).`},{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Centres the masthead, for empty states and wizards.`,default:`start`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element for the title. Keep one h1 per page.`,default:`h1`},{name:`breadcrumbs`,type:`node`,required:!1,description:`A breadcrumbs row above the masthead (usually AppBreadcrumbs).`},{name:`bulk`,type:`node`,required:!1,description:`Bulk actions shown in the bar while the table named by bulkFor has rows ticked (size bar only).`},{name:`bulkFor`,type:`string`,required:!1,description:`Id of the data table whose selection swaps views and tools for its bulk bar (size bar only). Ticking rows hides views and tools and shows the bulk slot with an N selected count; the table's own toolbar bulk bar stays hidden.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the header element.`,default:``},{name:`divider`,type:`boolean`,required:!1,description:`A bottom border under the masthead.`,default:!1},{name:`eyebrow`,type:`node`,required:!1,description:`Small kicker label above the title.`},{name:`foldActions`,type:`boolean`,required:!1,description:`Folds the actions that do not fit into a More menu, keeping the solid primary action in the row while it fits (size bar only).`,default:!1},{name:`icon`,type:`icon`,required:!1,description:`Leading glyph: an icon name or a node.`},{name:`meta`,type:`node`,required:!1,description:`One short facts line or summary (size bar only).`},{name:`metaPlacement`,type:`enum`,enum:[`below`,`inline`],required:!1,description:`Where the meta line sits: inside the bar, or under it (size bar only).`,default:`inline`},{name:`size`,type:`enum`,enum:[`bar`,`lg`,`md`,`sm`],required:!1,description:`Title and spacing scale. bar is one 40px row.`,default:`md`},{name:`status`,type:`node`,required:!1,description:`Inline slot beside the title (for example an AppStatusBadge).`},{name:`sticky`,type:`boolean`,required:!1,description:`Sticks the masthead to the top of the scroll container.`,default:!1},{name:`subtitle`,type:`node`,required:!1,description:`A count, status, or short description.`},{name:`subtitlePlacement`,type:`enum`,enum:[`below`,`inline`],required:!1,description:`Where the subtitle sits: under the title, or on the title line after it. Size bar ignores it.`,default:`below`},{name:`title`,type:`node`,required:!1,description:`Rendered as the screen heading.`},{name:`titleSlot`,type:`node`,required:!1,description:`Rendered inside the heading in place of title, for a title with a badge or a link in it. The heading is then named by title.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:`Tints the icon tile and the eyebrow.`,default:`primary`},{name:`tools`,type:`node`,required:!1,description:`Search, filters and display, before the actions (size bar only).`},{name:`views`,type:`node`,required:!1,description:`Saved views after the title (size bar only).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,role:`title`,usage:{when:[`A screen needs its standard title-and-actions masthead at the top.`,`The page has a single primary action that applies to everything below it.`,`You want a subtitle to show a count, status, or one-line description.`],whenNot:[{text:`You are titling a section inside the page, not the page itself.`,instead:`AppCard title`},{text:`You need to switch between peer views of the page.`,instead:`AppTabs`},{text:`The message is transient feedback, not a heading.`,instead:`AppAlert`}],do:[{title:`One primary page action`,note:`One clear title, a context subtitle, and the single page-level action on the right.`,example:[{component:`AppPageHeader`,props:{title:`Projects`,subtitle:`12 active projects`,actions:{component:`AppButton`,props:{size:`sm`},children:`New project`}}}]},{title:`Keep the subtitle short and useful`,note:`The subtitle carries useful state: what this is and when it changed.`,example:[{component:`AppPageHeader`,props:{title:`Server Room`,subtitle:`Risk assessment · last saved 2h ago`}}]}],dont:[{title:`One primary page action`,note:`A pile of equal-weight buttons hides the primary action. Keep secondary ones in a menu.`,example:[{component:`AppPageHeader`,props:{title:`Projects`,actions:{component:`span`,children:[{component:`AppButton`,props:{size:`sm`,variant:`ghost`},children:`Export`},{component:`AppButton`,props:{size:`sm`,variant:`ghost`},children:`Import`},{component:`AppButton`,props:{size:`sm`,variant:`ghost`},children:`Archive`},{component:`AppButton`,props:{size:`sm`},children:`New project`}]}}}]},{title:`Keep the subtitle short and useful`,note:`A sentence-long subtitle reads as body copy, not a heading. Keep it to a phrase.`,example:[{component:`AppPageHeader`,props:{title:`Server Room`,subtitle:`This is the page for the server room where you can do things`}}]}],a11y:[`The title renders as the heading level chosen by as, and each page has one h1.`,`The size bar renders a header element. Every other size renders a div.`,`In the bar, the count of selected rows is announced politely as rows are ticked.`]}},{name:`AppPhoneNumberInput`,marker:`AppPhoneNumberInput`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the phone control itself, not on the field wrapper.`},{name:`country`,type:`string`,required:!1,description:`The ISO country code to start on. Left unset, the control starts on the viewer's own country.`},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the field off.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error message under the field, which also turns the border red.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra classes on the field wrapper.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the field. The error replaces it while one is shown.`},{name:`id`,type:`string`,required:!1,description:`The id of the phone control. Left unset, one is generated.`},{name:`label`,type:`node`,required:!1,description:`The label above the field.`,default:`Phone number`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`lockedCountry`,type:`string`,required:!1,description:`ISO alpha-2 code. The dial code is a static prefix with no picker, and the value always carries this country.`},{name:`name`,type:`string`,required:!1,description:`The form field name.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text in the empty field. Left unset, the control shows the country's example number.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required and adds the required mark to the label.`,default:!1},{name:`showDialCode`,type:`boolean`,required:!1,description:`Shows the country dial code, such as +91.`,default:!0},{name:`showFlag`,type:`boolean`,required:!1,description:`Shows the country flag.`,default:!0},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control height.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The phone number as entered.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Collecting an international phone number where the country dial code matters.`,`A signup or contact form that needs a valid, dialable number.`,`You want one field the user can’t desync: the code and the number are captured together.`],whenNot:[{text:`The value is any non-phone text.`,instead:`AppInput`},{text:`It is a generic numeric value (quantity, amount).`,instead:`AppInput`},{text:`You need a date rather than a number.`,instead:`AppDatePicker`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[{title:`Default the country`,note:`Default the country to the one most users will pick: fewer taps for the common case.`,example:[{component:`AppPhoneNumberInput`,props:{label:`Mobile`,value:``,country:`IN`}}]},{title:`Show the error under the field`,note:`Surface validation inline with error, right under the field the user must fix.`,example:[{component:`AppPhoneNumberInput`,props:{label:`Phone`,value:``,error:`Enter a valid phone number`,required:!0}}]}],dont:[{title:`Default the country`,note:`No label and no sensible default country: the user guesses what to enter and where.`,example:[{component:`AppPhoneNumberInput`,props:{label:``,value:``}}]},{title:`Show the error under the field`,note:`Required with no error feedback: the user submits and is bounced with no clue why.`,example:[{component:`AppPhoneNumberInput`,props:{label:`Phone`,value:``,required:!0}}]}],a11y:[`The label is a real label tied to the field by id, and a text label is also passed to the phone control as its accessible name.`,`An error or helper text is linked to the field with aria-describedby, and the helper text gives way to the error while one shows.`,`An error sets aria-invalid on the control, and required adds the required mark and marks the control required.`]}},{name:`AppPopover`,marker:`AppPopover`,acceptsChildren:!0,props:[{name:`autoFocus`,type:`boolean`,required:!1,description:`Moves focus into the panel on open and back to the trigger on close.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the popover panel.`,default:``},{name:`closeDelay`,type:`number`,required:!1,description:`Milliseconds a hover popover waits before it closes after the pointer leaves the trigger and the panel.`,default:220},{name:`labelledBy`,type:`string`,required:!1,description:`The id of the element that names a dialog panel. It wins over the title.`},{name:`open`,type:`boolean`,required:!1,description:`Controls the open state. When set, the panel follows it.`},{name:`openDelay`,type:`number`,required:!1,description:`Milliseconds a hover popover waits before it opens.`,default:80},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Where the panel opens. auto flips to stay in view.`,default:`bottom`},{name:`role`,type:`enum`,enum:[`dialog`],required:!1,description:`dialog names the panel after the title or labelledBy, marks it not modal, and lets Escape close it.`},{name:`title`,type:`string`,required:!1,description:`An optional panel title, plain text so it never breaks the page's heading order.`},{name:`trigger`,type:`object`,required:!0,description:`The element the panel opens from. It must be a single element that forwards a ref, such as a plain element, AppButton or AppActionIcon.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A trigger needs a floating panel of content richer than a flat action list: a notifications feed, a filters form, a mini preview.`,`The content is contextual to the trigger and doesn’t need a backdrop or to interrupt the page.`,`You want the panel positioned and flipped to stay in view automatically.`],whenNot:[{text:`The content is a flat list of actions.`,instead:`AppDropdown`},{text:`The task needs full attention, such as a form, a multi-step flow or a destructive confirmation.`,instead:`AppModal`},{text:`You are explaining a single term next to a label.`,instead:`AppInfoTip`}],do:[{title:`Keep the panel short`,note:`A short, scannable panel: a few lines the user can read without scrolling.`,example:[{component:`AppPopover`,props:{title:`Notifications`,trigger:{component:`AppButton`,props:{variant:`ghost`,leftIcon:`bell`},children:`Notifications`}},children:[{component:`div`,props:{className:`d-flex flex-column gap-2`},children:[{component:`div`,children:`Priya approved “Site survey #48”.`}]}]}]}],dont:[{title:`Keep the panel short`,note:`A multi-field form crammed into a popover has nowhere to show validation and no backdrop to hold focus. Use AppModal instead.`,example:[{component:`AppPopover`,props:{title:`Edit project`,trigger:{component:`AppButton`,props:{variant:`soft`,size:`sm`},children:`Edit`}},children:[{component:`div`,props:{className:`d-flex flex-column gap-2`},children:[{component:`AppInput`,props:{size:`sm`,placeholder:`Project name`}},{component:`AppInput`,props:{size:`sm`,placeholder:`Client`}},{component:`AppInput`,props:{size:`sm`,placeholder:`Owner`}},{component:`AppButton`,props:{size:`sm`},children:`Save`}]}]}]}],a11y:[`With role dialog the panel is named by the title, or by the element labelledBy points to (which wins), is marked not modal, and Escape closes it.`,`With autoFocus focus moves into the panel on open and back to the trigger on close.`,`The trigger is the caller's own element with aria-expanded added for a click trigger, so it needs its own accessible name.`]}},{name:`AppPricingCard`,marker:`AppPricingCard`,acceptsChildren:!1,props:[{name:`badge`,type:`string`,required:!1,description:`The text of the featured flag.`,default:`Most popular`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the card.`,default:``},{name:`cta`,type:`node`,required:!1,description:`The call to action, usually an AppButton.`},{name:`current`,type:`boolean`,required:!1,description:`Marks the tier the customer is already on.`,default:!1},{name:`featured`,type:`boolean`,required:!1,description:`Marks the recommended tier: brand border, lifted and badged.`,default:!1},{name:`features`,type:`array`,itemFields:[{name:`included`,type:`boolean`,required:!1,description:`False marks a feature the tier lacks; it shows an x instead of a check. Left out means included.`},{name:`text`,type:`string`,required:!0,description:`The feature text.`}],required:!1,description:`The feature list. Every card in a row should list the same features in the same order.`,default:[]},{name:`name`,type:`string`,required:!0,description:`The tier name.`},{name:`price`,type:`node`,required:!0,description:`The formatted amount, such as ₹1,499.`},{name:`tagline`,type:`string`,required:!1,description:`One line on who the tier is for.`},{name:`unit`,type:`string`,required:!1,description:`The period suffix after the price, such as /month.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are presenting purchasable tiers with prices and actions.`,`The reader is choosing which one to take.`,`Each tier has a short feature list that fits on a card.`],whenNot:[{text:`You need the full capability matrix, row by row.`,instead:`AppCompareTable`},{text:`It is a selectable option in a form, not a purchase.`,instead:`AppChoiceCard`},{text:`It is a link to a doc or template.`,instead:`AppResourceCard`}],do:[{title:`Unit, audience and every feature listed`,note:`A unit so the price is unambiguous, a tagline saying who it is for, excluded features kept in the list, and a CTA naming the tier.`,example:[{component:`AppPricingCard`,props:{name:`Pro`,price:`₹1,499`,unit:`/month`,tagline:`For growing teams.`,features:[{text:`Unlimited reports`},{text:`SSO`,included:!1}],cta:{component:`AppButton`,props:{block:!0},children:`Choose Pro`}}}]}],dont:[{title:`Unit, audience and every feature listed`,note:`“1499”: of what, per what? No tagline, the excluded feature dropped so rows no longer align, and “Click here” tells the reader nothing about what they are committing to.`,example:[{component:`AppPricingCard`,props:{name:`Pro`,price:`1499`,features:[{text:`Unlimited reports`}],cta:{component:`AppButton`,props:{block:!0},children:`Click here`}}}]}],a11y:[`The features are a list, and an included feature shows a check while an excluded one shows an x, so the two states differ without colour.`,`The card is a plain container with no role of its own; the call to action is the caller's control and carries its own accessible name.`]}},{name:`AppProgress`,marker:`AppProgress`,acceptsChildren:!1,props:[{name:`animated`,type:`boolean`,required:!1,description:`Animates the stripes, which implies striped.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the bar, or on the labelled wrapper when the label shows.`,default:``},{name:`indeterminate`,type:`boolean`,required:!1,description:`An unknown-duration sweep that drops the value and the label.`,default:!1},{name:`label`,type:`string`,required:!1,description:`The accessible name of the bar. It is also shown above the bar when showLabel is set.`},{name:`max`,type:`number`,required:!1,description:`The amount that counts as complete.`,default:100},{name:`showLabel`,type:`boolean`,required:!1,description:`Shows the label text above the bar. Ignored when indeterminate.`,default:!1},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The bar thickness. sm is a thin 4px bar for inline or table use.`,default:`md`},{name:`striped`,type:`boolean`,required:!1,description:`A diagonal stripe overlay.`,default:!1},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The fill colour.`,default:`info`},{name:`value`,type:`number`,required:!1,description:`The current amount from 0 to max, clamped into range. Ignored when indeterminate.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The task has a known total and a real, changing amount completed: an upload, an import, a quota.`,`You can compute a percentage (or a value and max pair) at any moment during the wait.`,`Showing how much is left is genuinely useful to the reader, not just decoration.`],whenNot:[{text:`There is no known amount or duration: it is just "working".`,instead:`AppSpinner`},{text:`Content with a known shape is loading, not a quantified task.`,instead:`AppSkeleton`},{text:`A button is submitting a single request.`,instead:`AppButton`}],do:[{title:`Real amounts, not fake progress`,note:`A real value with a label that states the actual amount, not just a bare percentage.`,example:[{component:`AppProgress`,props:{value:45,max:100,tone:`info`,label:`Importing 45 of 100 rows`,showLabel:!0}}]}],dont:[{title:`Real amounts, not fake progress`,note:`A progress bar pinned at 100% (or any fixed value) to fake a spinner. That is AppSpinner's job.`,example:[{component:`AppProgress`,props:{value:100,max:100,tone:`info`,label:`Loading`}}]}],a11y:[`The bar has role progressbar with aria-valuemin 0, aria-valuemax and aria-valuenow, and label is its accessible name.`,`An indeterminate bar leaves out aria-valuenow, as ARIA requires when the value is unknown.`,`The label text shown above the bar is hidden from assistive technology, because label already names the bar.`]}},{name:`AppQrCode`,marker:`AppQrCode`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the code.`},{name:`size`,type:`number`,required:!1,description:`The largest width and height in px. The code draws at the biggest whole number of pixels per module that fits.`,default:240},{name:`title`,type:`string`,required:!1,description:`The accessible name. Say what scanning it does.`,default:`QR code`},{name:`value`,type:`string`,required:!0,description:`The text to encode, such as a link, an otpauth setup address or a signed token. Nothing renders while it is empty.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Someone needs to move a link or a code from a screen to a phone.`,`An authenticator app needs a setup key.`,`A printed or on-screen document carries a value a scanner verifies.`],whenNot:[{text:`The person is already on a phone.`,instead:`AppLink`},{text:`The value is a short code people type.`,instead:`AppCopyButton`}],do:[{title:`Clear title and room to scan`,note:`Enough room around it, and a title that says what scanning does.`,example:[{component:`AppQrCode`,props:{value:`https://example.com`,size:120,title:`Scan to open the site`}}]}],dont:[{title:`Clear title and room to scan`,note:`A long value squeezed into a small box. The squares are too small to scan, and part of the code is cut off.`,example:[{component:`AppQrCode`,props:{value:`eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.LwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z-jItS3cBmLwV6fEpOzY9iHsR2bAlKvU5eDoNyX8hGrQ1a_kJuT4dCnMxW7gFqP0Z`,size:48}}]}],a11y:[`The code is an image named by title, so the title should say what scanning it does.`,`Nothing is drawn while value is empty, so no unnamed image reaches assistive technology.`,`The code is always black on white, whatever the theme, because scanners need that contrast.`]}},{name:`AppQueryBuilder`,marker:`AppQueryBuilder`,acceptsChildren:!1,props:[{name:`addConditionLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Add condition`},{name:`addGroupLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Add group`},{name:`andLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`and`},{name:`applyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Apply filter`},{name:`ariaLabel`,type:`string`,required:!1,description:`Names the group that holds the Filters button and the chips. Defaults to the Filters text.`},{name:`cancelLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Cancel`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the wrapper.`,default:``},{name:`clearAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Clear all`},{name:`closeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Close filters`},{name:`conditionCountTextOne`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`{count} condition`},{name:`conditionCountTextOther`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`{count} conditions`},{name:`datePlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`DD-MMM-YYYY`},{name:`defaultValue`,type:`object`,required:!1,description:`The starting query when value is not given. Same shape as value.`},{name:`disabled`,type:`boolean`,required:!1,description:`Stops every edit and keeps the panel closed.`,default:!1},{name:`emptySummaryText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No conditions. The whole list shows.`},{name:`emptyText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Add a condition to narrow the list.`},{name:`emptyTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No conditions yet`},{name:`emptyValueText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`…`},{name:`fieldLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Field`},{name:`fields`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!0,description:`The key a condition stores in its field.`},{name:`kind`,type:`enum`,enum:[`boolean`,`date`,`enum`,`money`,`number`,`text`],required:!0,description:`The kind of value: money is integer paise, date is yyyy-MM-dd.`},{name:`label`,type:`string`,required:!0,description:`The field's visible name.`},{name:`operators`,type:`array`,required:!1,description:`The operators this field offers. Each must be allowed for its kind; the default is the kind's usual set.`},{name:`options`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The visible text.`},{name:`value`,type:`string`,required:!0,description:`The stored value.`}],required:!1,description:`The choices of an enum field.`}],required:!0,description:`The fields a condition can name. Keys are unique.`},{name:`filtersCountLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Filters · {count}`},{name:`filtersLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Filters`},{name:`groupCountTextOne`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`in {count} group`},{name:`groupCountTextOther`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`in {count} groups`},{name:`incompleteTextOne`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`{count} condition is incomplete`},{name:`incompleteTextOther`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`{count} conditions are incomplete`},{name:`matchAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`All`},{name:`matchAnyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Any`},{name:`matchLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Match`},{name:`matchSuffixText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`of these`},{name:`maxDepth`,type:`number`,required:!1,description:`The deepest group level allowed, from 1 to 3. A larger value is capped at 3.`,default:3},{name:`maxPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Max`},{name:`minPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Min`},{name:`multiPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Select values`},{name:`noLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No`},{name:`operatorBetween`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is between`},{name:`operatorContains`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`contains`},{name:`operatorGt`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is over`},{name:`operatorGtDate`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is after`},{name:`operatorInLast`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`in the last`},{name:`operatorIs`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is`},{name:`operatorIsAnyOf`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is any of`},{name:`operatorIsEmpty`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is empty`},{name:`operatorIsNot`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is not`},{name:`operatorLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Operator`},{name:`operatorLt`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is under`},{name:`operatorLtDate`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`is before`},{name:`orLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`or`},{name:`panelTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Filters`},{name:`rangeJoinText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`and`},{name:`removeClauseLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove filter: {clause}`},{name:`removeConditionLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove condition`},{name:`removeGroupLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove group`},{name:`singlePlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Select a value`},{name:`textPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Type to match`},{name:`unitDays`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`days`},{name:`unitLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Unit`},{name:`unitMonths`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`months`},{name:`unitWeeks`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`weeks`},{name:`value`,type:`object`,required:!1,description:`The query, controlled: a group { op: and | or, items } of conditions and nested groups.`},{name:`valueLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Value`},{name:`valueRequiredText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Enter a value`},{name:`yesLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Yes`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A list needs a rule with or, or with nested groups that a flat filter bar cannot say.`],whenNot:[{text:`One value per facet with no or.`,instead:`AppFilterBar`},{text:`A fixed set of choices shown as a list you pick from.`,instead:`AppSelect or AppTreePicker`}],do:[],dont:[],a11y:[`The Filters button opens the panel as a dialog named by its title; Escape, Cancel and the close button leave the applied rule as it was.`,`Every select and icon button has a name: Field, Operator, Value, Remove condition, Remove group.`,`An incomplete condition shows Enter a value under its value, and the footer says how many are incomplete while Apply is disabled.`,`Enter in a text value applies the panel when Apply is enabled.`]}},{name:`AppRadio`,marker:`AppRadio`,acceptsChildren:!1,props:[{name:`checked`,type:`boolean`,required:!1,description:`Controlled chosen state; pair with onChange.`},{name:`className`,type:`string`,required:!1,description:`Extra class on the form-check wrapper that holds the input, label and message.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultChecked`,type:`boolean`,required:!1,description:`Starting state when the radio is uncontrolled.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the radio and dims it.`},{name:`error`,type:`string`,required:!1,description:`Error message, rendered below the control. Replaces the helper text.`},{name:`help`,type:`node`,required:!1,description:`Content for the info-tip after the label. Shown only when a label is set.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the control. Hidden while an error is shown.`},{name:`id`,type:`string`,required:!1,description:`The input's id. The label is bound to the input through it, and it is generated when left out.`},{name:`label`,type:`node`,required:!1,description:`The visible label beside the radio.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The form field name. Radios that share a name form one group.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control size: sm, md or lg.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The value this radio posts when it is the chosen one.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user must pick exactly one of 2 to 5 mutually exclusive options.`,`The options are short labels worth comparing at a glance, all visible.`,`A single choice is mandatory before the form can be submitted.`],whenNot:[{text:`There are more than about five options.`,instead:`AppSelect`},{text:`Each option needs a description or icon.`,instead:`AppChoiceCard`},{text:`The choices are independent on/off settings.`,instead:`AppCheckbox`},{text:`The user can pick several values.`,instead:`AppSelect mode="multiple"`}],do:[{title:`Two to five options, all visible`,note:`2 to 5 exclusive options, all on screen. The user compares every choice without opening anything.`,example:[{component:`AppRadio`,props:{label:`No experience`,name:`experience`}},{component:`AppRadio`,props:{label:`1 year`,name:`experience`,defaultChecked:!0}},{component:`AppRadio`,props:{label:`2+ years`,name:`experience`}}]},{title:`Radios for one answer, not checkboxes`,note:`Radios enforce a single answer. Exactly one can ever be selected.`,example:[{component:`AppRadio`,props:{label:`No experience`,name:`experience`}},{component:`AppRadio`,props:{label:`1 year`,name:`experience`,defaultChecked:!0}},{component:`AppRadio`,props:{label:`2+ years`,name:`experience`}}]}],dont:[{title:`Two to five options, all visible`,note:`Past about five options a radio list sprawls and is hard to scan. A dropdown holds it in one line.`,example:[{component:`AppRadio`,props:{label:`Mumbai`,name:`city-bad`,defaultChecked:!0}},{component:`AppRadio`,props:{label:`Delhi`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Bengaluru`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Hyderabad`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Chennai`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Kolkata`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Pune`,name:`city-bad`}},{component:`AppRadio`,props:{label:`Ahmedabad`,name:`city-bad`}}]},{title:`Radios for one answer, not checkboxes`,note:`Checkboxes let the user tick several, the wrong control for a single exclusive choice.`,example:[{component:`AppCheckbox`,props:{label:`No experience`,name:`exp-a`}},{component:`AppCheckbox`,props:{label:`1 year`,name:`exp-b`}},{component:`AppCheckbox`,props:{label:`2+ years`,name:`exp-c`}}]}],a11y:[`Each radio's label is bound to its input through id and htmlFor, so a click on the text selects it and a screen reader announces the name.`,`Radios that share a name form one native group, so arrow keys move between them. The component does not change that.`]}},{name:`AppRadioGroup`,marker:`AppRadioGroup`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Class on the group (the control).`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`Initially selected value (uncontrolled).`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables every option.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Error message below the group. Replaces the helper text.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class on the .field wrapper.`,default:``},{name:`help`,type:`node`,required:!1,description:`Content for the label info-tip.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the group.`},{name:`id`,type:`string`,required:!1,description:`The group's id; generated when left out. Option ids and the label and message ids derive from it.`},{name:`inline`,type:`boolean`,required:!1,description:`Options in a row (wrapping) instead of a column.`,default:!1},{name:`label`,type:`node`,required:!0,description:`Visible group label; also the group's accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Shared name of the radios. Defaults to a generated one.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`options`,type:`array`,itemFields:[{name:`description`,type:`node`,required:!1,description:`A muted line under the option's label, read with the radio as its description.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables this option.`},{name:`label`,type:`node`,required:!0,description:`The option's label.`},{name:`value`,type:`string`,required:!0,description:`The value this option posts.`}],required:!0,description:`The choices, in order. Each option has a value, a label, an optional description and an optional disabled flag.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the group and each option as required: the label shows the required mark, the group takes aria-required and each input the required attribute.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Steps the radios and their labels.`,default:`md`},{name:`style`,type:`object`,required:!1,description:`Inline style; lands on the group with className.`},{name:`value`,type:`string`,required:!1,description:`Selected value (controlled).`},{name:`variant`,type:`enum`,enum:[`card`,`default`],required:!1,description:`Draws each option as a bordered card the whole of which selects it; the chosen card takes the primary border and a tinted fill.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to five exclusive options, and the reader should see all of them before choosing.`,`The choice is a field in a form that sits in the same grid as the other fields.`,`You need helper text, an error or a required mark on the group as a whole.`],whenNot:[{text:`There are six or more options.`,instead:`AppSelect`},{text:`It is a control strip that changes a view at once.`,instead:`AppSegmented`},{text:`Each option needs an icon, an image or a description.`,instead:`AppChoiceCard`},{text:`You need one standalone radio, not a group.`,instead:`AppRadio`}],do:[],dont:[],a11y:[`The group is a radiogroup named by its label, so a screen reader announces the label as the group's name.`,`Each option's label is bound to its radio through htmlFor, so a click on the text selects it.`,`Helper text or an error is linked to the group through aria-describedby.`]}},{name:`AppRating`,marker:`AppRating`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Class on the stars (the control).`,default:``},{name:`defaultValue`,type:`number`,required:!1,description:`Initial rating of an uncontrolled input.`},{name:`disabled`,type:`boolean`,required:!1,description:`Input only: disables every star's input and sets the disabled attribute on the control.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Input only: message below the stars. Replaces the helper text.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Input only: class on the .field wrapper.`,default:``},{name:`half`,type:`boolean`,required:!1,description:`Display only: draw the value to the nearest half star.`,default:!1},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Input only: helper text below the stars.`},{name:`id`,type:`string`,required:!1,description:`The rating control's id; generated when left out.`},{name:`label`,type:`node`,required:!1,description:`Input: the visible group label and its name. Display: prefix of the spoken text, such as Quality: 4.5 out of 5; a string.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`number`,required:!1,description:`How many stars.`,default:5},{name:`name`,type:`string`,required:!1,description:`Input only: the form field name. Defaults to a generated one.`},{name:`ratingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Rating`},{name:`readOnly`,type:`boolean`,required:!1,description:`A display, not an input.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Input only: shows the required mark beside the label, and sets aria-required on the group and required on each star's input.`,default:!1},{name:`showValue`,type:`boolean`,required:!1,description:`Display only: print the number beside the stars.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The star size: 16, 20 or 28 pixels.`,default:`md`},{name:`starLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {count}.`,default:`{count} star`},{name:`starsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Token: {count}.`,default:`{count} stars`},{name:`value`,type:`number`,required:!1,description:`The rating (controlled as an input). A display may hold a fraction such as 4.3; an input rounds to a whole star.`},{name:`valueText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Tokens: {value}, {max}.`,default:`{value} out of {max}`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Feedback, review and satisfaction forms.`,`Showing an average or a given rating in a list or on a card.`],whenNot:[{text:`A choice between named options.`,instead:`AppRadioGroup`},{text:`A numeric amount.`,instead:`AppSlider`}],do:[],dont:[],a11y:[`The input is a radiogroup named by its label, and each star is a labelled radio (for example, 3 stars).`,`A read-only display has role img and speaks its value, for example 4.5 out of 5.`,`The stars are hidden from assistive technology in the display, so only the spoken value is read.`]}},{name:`AppRecordPager`,marker:`AppRecordPager`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra CSS class on the pager.`,default:``},{name:`index`,type:`number`,required:!1,description:`The position of this record, from 1. Without it (nothing open) the label is empty and both icons are disabled.`},{name:`keys`,type:`boolean`,required:!1,description:`J and K press next and previous.`,default:!1},{name:`nextHref`,type:`url`,required:!1,description:`The next record URL.`},{name:`nextLabel`,type:`string`,required:!1,description:`The next icon name and tooltip, such as Next invoice.`,default:`Next`},{name:`prevHref`,type:`url`,required:!1,description:`The previous record URL.`},{name:`prevLabel`,type:`string`,required:!1,description:`The previous icon name and tooltip, such as Previous invoice.`,default:`Previous`},{name:`total`,type:`number`,required:!1,description:`How many records the list holds.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A record opened from a list that people work through.`,`The open item's header in a reading pane.`],whenNot:[{text:`Moving between pages of a list.`,instead:`AppTablePagination`}],do:[],dont:[],a11y:[`The position text is a polite live region, so a change of record is announced.`,`Previous and next are labelled by prevLabel and nextLabel, which also show as their tooltips.`]}},{name:`AppRelativeTime`,marker:`AppRelativeTime`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the relative time element.`,default:``},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`Preferred side of the exact-time tooltip.`,default:`auto`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The moment as an ISO string with its zone (Z or an offset) or epoch milliseconds; write a Date as an ISO string. A bare 2026-10-04 is midnight IST; a missing or unreadable value shows a dash and no tooltip.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`When something happened: created, updated, last seen, last active.`,`Feeds, activity logs and list rows.`],whenNot:[{text:`A date that is itself the fact (due date, invoice date, joining date).`,instead:`a date column, or formatDate`},{text:`A countdown that must tick every second.`,instead:`A purpose-built timer`}],do:[],dont:[],a11y:[`It renders a time element whose dateTime attribute holds the machine-readable value, so the exact moment stays in the page.`,`The exact IST time shows in a tooltip on hover.`,`An unreadable or missing value shows a dash and no tooltip.`]}},{name:`AppRepeater`,marker:`AppRepeater`,acceptsChildren:!1,props:[{name:`addLabel`,type:`string`,required:!1,description:`Text of the add button.`,default:`Add another`},{name:`addVariant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`The add control's variant: an AppButton variant such as solid, outline or ghost, or link for a small text link with a plus icon. An unknown value throws.`,default:`soft`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the repeater.`,default:``},{name:`emptyText`,type:`string`,required:!1,description:`Shown in place of the rows when there are none.`},{name:`max`,type:`number`,required:!1,description:`Adding is disabled at this count.`},{name:`min`,type:`number`,required:!1,description:`Rows at or below this count cannot be removed.`,default:0},{name:`numbered`,type:`boolean`,required:!1,description:`Show the row index.`,default:!0},{name:`removeLabel`,type:`string`,required:!1,description:`Accessible name of each remove control. The row number is added, as in "Remove row 2".`,default:`Remove row`},{name:`rows`,type:`array`,itemFields:[{name:`id`,type:`stringOrNumber`,required:!1,description:`A stable key for the row; the position is used when it is missing.`}],required:!1,description:`The rows, one entry per row. The caller draws each row's fields.`,default:[]}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form needs one or more of the same group of fields.`,`The count is decided by the user, not the schema.`,`Each entry has more than one field: a name and an email, a description and an amount.`],whenNot:[{text:`The user is picking from a known list of options.`,instead:`AppSelect mode="multiple"`},{text:`It is a single repeated value, like a list of tags.`,instead:`AppSelect mode="tag"`},{text:`The rows are existing records to manage.`,instead:`AppDataTable`},{text:`The count is fixed by the schema.`,instead:`plain fields`}],do:[{title:`Name the actions and number rows`,note:`Specific add and remove labels ("Add contact"), a minimum so the form cannot reach an unsubmittable state, and numbered rows validation can point at.`,example:[{component:`AppRepeater`,props:{rows:[{id:1}],min:1,addLabel:`Add contact`,removeLabel:`Remove contact`,numbered:!0}}]}],dont:[{title:`Name the actions and number rows`,note:`A generic "Add another", no remove control at all, and no numbering, so "Row 2 email is invalid" has nothing to point at.`,example:[{component:`AppRepeater`,props:{rows:[{id:`x`}],numbered:!1}}]}],a11y:[`Each remove control is an icon button named by removeLabel and the row number, such as "Remove contact 2".`,`The add button shows its addLabel as visible text and is disabled once max rows exist.`]}},{name:`AppRequiredMark`,marker:`AppRequiredMark`,acceptsChildren:!1,props:[],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You compose a custom label for a required field the library does not own.`,`You need the same asterisk look outside AppInput / AppSelect and their siblings.`],whenNot:[{text:`The field already accepts a required prop.`,instead:`Pass required on the field`},{text:`You want a status or count marker.`,instead:`AppBadge`},{text:`You need explanatory help beside the label.`,instead:`AppInfoTip`}],do:[{title:`One mark beside the label`,note:`One asterisk flush against its label, using the shared mark.`,example:[{component:`span`,props:{className:`label d-inline-flex align-items-center gap-1`},children:[`Company name`,{component:`AppRequiredMark`}]}]},{title:`Let the field own the mark`,note:`Let the field own the mark via required.`,example:[{component:`AppInput`,props:{label:`Phone`,required:!0}}]}],dont:[{title:`One mark beside the label`,note:`A hand-rolled star drifts in colour and spacing from every library field.`,example:[{component:`span`,props:{className:`label`},children:[`Company name `,{component:`span`,props:{className:`text-danger`},children:`*`}]}]},{title:`Let the field own the mark`,note:`A star typed into the label of a required field doubles the mark: the field already draws one.`,example:[{component:`AppInput`,props:{label:`Phone *`,required:!0}}]}],a11y:[`The asterisk is hidden from assistive technology with aria-hidden="true", so it is never read aloud.`,`Because the mark is hidden, the control itself must carry the required state: set required or aria-required on it.`]}},{name:`AppResourceCard`,marker:`AppResourceCard`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the card.`,default:``},{name:`description`,type:`string`,required:!1,description:`One line of supporting detail.`},{name:`external`,type:`boolean`,required:!1,description:`Open in a new tab.`,default:!1},{name:`href`,type:`url`,required:!0,description:`Where the card links to.`},{name:`icon`,type:`icon`,required:!0,description:`The glyph in the tile: a library icon name.`},{name:`title`,type:`string`,required:!0,description:`The resource's name. It is the link text.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are linking somewhere and the link needs a line of explanation.`,`Several such links sit together as a "related help" or "templates" block.`,`The destination is a document, article, guide or download.`],whenNot:[{text:`It is a selectable option in a form.`,instead:`AppChoiceCard`},{text:`It is a plain navigation link in a menu or nav.`,instead:`AppShell`},{text:`It performs an action rather than navigating.`,instead:`AppButton`},{text:`It is a pricing tier.`,instead:`AppPricingCard`}],do:[{title:`Link text that names the resource`,note:`The title names the resource, the text says the format and what to do with it, and the icon matches the action (a download).`,example:[{component:`AppResourceCard`,props:{icon:`download`,title:`Zone survey template`,description:`XLSX: fill on site, import here`,href:`#t`}}]}],dont:[{title:`Link text that names the resource`,note:`"Click here" twice tells the reader nothing about the destination, and it is what a screen reader announces as the link name.`,example:[{component:`AppResourceCard`,props:{icon:`circle`,title:`Click here`,description:`Click here to learn more`,href:`#t`}}]}],a11y:[`The whole card is one link, so its accessible name is its text: the title, then the supporting text. The icon glyph is hidden from assistive technology.`,`An external card opens in a new tab with rel="noopener noreferrer".`]}},{name:`AppResult`,marker:`AppResult`,acceptsChildren:!0,props:[{name:`actions`,type:`node`,required:!1,description:`Usually one or two buttons.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the result container.`,default:``},{name:`headingLevel`,type:`enum`,enum:[1,2,3],required:!1,description:`The title's heading level: 1 when the result is the whole page.`,default:2},{name:`icon`,type:`icon`,required:!1,description:`Overrides the status default icon: a library icon name or any node.`},{name:`status`,type:`enum`,enum:[`403`,`404`,`500`,`error`,`info`,`success`,`warning`],required:!1,description:`The outcome. It picks the default icon and tone; 403, 404 and 500 show the code as a large figure instead of an icon.`,default:`info`},{name:`subtitle`,type:`node`,required:!1,description:`Supporting message below the title.`},{name:`title`,type:`node`,required:!1,description:`The heading: what happened.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A self-contained outcome screen after a major action completes (checkout, signup, verification).`,`An error state (403/404/500) that needs a prominent, scannable presentation.`,`A confirmation or warning that warrants its own full-screen or modal moment.`],whenNot:[{text:`A transient message that dismisses on its own.`,instead:`AppToast`},{text:`A section-scoped "nothing here yet" inside a card or modal.`,instead:`AppEmptyState`},{text:`An inline alert about a validation error or status change.`,instead:`AppAlert`},{text:`A persistent announcement bar across the whole page.`,instead:`AppBanner`}],do:[],dont:[],a11y:[`The title is a heading: h2 by default, and headingLevel sets 1, 2 or 3. Use 1 when the result is the whole page.`,`The large figure of a 403, 404 or 500 status is hidden from assistive technology (aria-hidden), so the title carries the meaning.`]}},{name:`AppRichText`,marker:`AppRichText`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:"Accessible name for the editor; defaults to a string `label`."},{name:`className`,type:`string`,required:!1,description:"Class on the `<wui-rich-text>` element.",default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the editor and keeps it out of the form post.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Message below the editor. It replaces the helper text.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class on the wrapper field div.`,default:``},{name:`format`,type:`enum`,enum:[`html`,`markdown`],required:!1,description:"What `value` is. HTML is used when it is left out. It is read when the editor mounts, so changing it remounts the editor."},{name:`help`,type:`node`,required:!1,description:`Help content shown in an info tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`Accessible name for that info tip.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the editor.`},{name:`id`,type:`string`,required:!1,description:`The id of the editor; the helper text and error ids derive from it. Generated when omitted.`},{name:`label`,type:`node`,required:!1,description:`The visible label above the editor. A string label also names the editor for screen readers.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`Posted under this name with a form.`},{name:`placeholder`,type:`string`,required:!1,description:`Shown while the editor is empty.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the editor; the value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required; an empty editor is invalid.`,default:!1},{name:`value`,type:`string`,required:!1,description:"The content, in `format`."}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`People need bold, links, lists or headings in a note, description or message, and the product stores or shows that formatting.`,`The value is rendered somewhere later as HTML or Markdown, and you want it clean on the way in.`],whenNot:[{text:`The value is plain text that may run past a line.`,instead:`AppTextarea`},{text:`The value is a single short line.`,instead:`AppInput`},{text:`The user picks tags or keywords.`,instead:`AppSelect mode="tag"`}],do:[{title:`Keep a visible label`,note:`A visible label stays put while the user types and is read by screen readers.`,example:[{component:`AppRichText`,props:{label:`Terms`,name:`terms-good`,helperText:`Shown on the quote.`}}]}],dont:[{title:`Keep a visible label`,note:`A placeholder used as the label vanishes on the first keystroke and fails accessibility.`,example:[{component:`AppRichText`,props:{name:`terms-bad`,placeholder:`Terms`}}]}],a11y:[`The editor is a group named by ariaLabel, or by the label when it is a string.`,`The label is tied to the editor by id. Helper text or an error is linked through aria-describedby, and an error also sets aria-invalid.`,`Required, disabled and read-only are passed to the editor as attributes, and a failed editor load shows a status message.`]}},{name:`AppRouteError`,marker:`AppRouteError`,acceptsChildren:!0,props:[{name:`brand`,type:`node`,required:!1,description:`Shown above the result, usually the product's logo.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the outer container.`,default:``},{name:`errorText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Something went wrong on our side. Try again in a moment.`},{name:`errorTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`This page did not load`},{name:`fullPage`,type:`boolean`,required:!1,description:`Fills the viewport and centres the result. Pass false for an error inside a page layout.`,default:!0},{name:`homeHref`,type:`url`,required:!1,description:`Where "Go to the home page" leads.`,default:`/`},{name:`homeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Go to the home page`},{name:`kind`,type:`enum`,enum:[`error`,`not-found`,`stale-build`],required:!1,description:`What went wrong. An error offers Try again and the home page, a stale build offers Reload, and a missing page offers the home page.`,default:`error`},{name:`notFoundText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Check the address, or go to the home page.`},{name:`notFoundTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`We could not find that page`},{name:`reloadLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Reload`},{name:`retryLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Try again`},{name:`staleText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`This app was updated while you had it open. Reload to get the new version.`},{name:`staleTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`A new version is ready`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A route failed to render, or its loader threw.`,`The root error boundary, or AppErrorBoundary, caught an error and needs a fallback screen.`,`No route matches the address.`],whenNot:[{text:`One section of a working page failed to load its data.`,instead:`AppAsyncBlock`},{text:`A page or section may throw and should recover in place, without a router or a full reload.`,instead:`AppErrorBoundary`},{text:`A finished action needs a success or failure screen.`,instead:`AppResult`},{text:`A newer build is live but the current page still works.`,instead:`AppUpdateBar`}],do:[{title:`Plain sentence, not the raw error`,note:`A plain sentence and a way forward. The error details go to the logs.`,example:[{component:`AppRouteError`,props:{fullPage:!1,homeHref:`#`}}]}],dont:[{title:`Plain sentence, not the raw error`,note:`The raw error tells the person nothing they can act on, and can leak internal details.`,example:[{component:`AppCodeBlock`,props:{code:`TypeError: Cannot read properties of undefined (reading 'map')`,language:`text`}}]}],a11y:[`The title is a real heading, and the actions are native buttons and a link, so Tab and Enter work as on any page.`,`The home action is a plain link, so the screen also works where no router is mounted.`,`The caught error is never shown, only a plain sentence, so nothing internal reaches a screen reader.`]}},{name:`AppRowActions`,marker:`AppRowActions`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the row's action group.`,default:``},{name:`items`,type:`array`,itemFields:[{name:`data`,type:`object`,required:!1,description:`data-* attributes written on the control (the icon button or button and the menu row).`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the action in both the icon button and the menu row.`},{name:`disabledReason`,type:`string`,required:!1,description:`Why the action is disabled: joined to the icon button's label as "Edit: locked", and shown on the menu row. Needs disabled.`},{name:`href`,type:`string`,required:!1,description:`A plain link, never routed through linkComponent. An action takes to or href, not both.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name. Without it (and without showLabel) the action is a menu row at every width.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The inline icon's style; the menu row draws the linear glyph.`},{name:`key`,type:`string`,required:!0,description:`Unique within the row's list.`},{name:`label`,type:`string`,required:!0,description:`The icon button's accessible name and tooltip, and the menu row's text.`},{name:`menuOnly`,type:`boolean`,required:!1,description:`Keeps the action in the menu at every width. Not with showLabel.`},{name:`rel`,type:`string`,required:!1,description:`The link's rel. Needs href or to.`},{name:`showLabel`,type:`boolean`,required:!1,description:`From sm up, draws the action as a small labelled button instead of an icon button.`},{name:`target`,type:`enum`,enum:[`_blank`,`_self`],required:!1,description:`Where an href or to opens. Needs href or to.`},{name:`to`,type:`string`,required:!1,description:`An in-app route, drawn through linkComponent when one is given.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" marks a destructive action.`}],required:!0,description:"The row's actions, in order. A list entry; false, null and undefined are skipped, so `canEdit && { ... }` leaves an action out. Each item needs a unique `key`, and onClick, href or to unless it is disabled; onClick may accompany href or to."},{name:`menuLabel`,type:`string`,required:!1,description:`The menu trigger's accessible name and tooltip.`,default:`More actions`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The actions at the end of a table or list row, one list that shows as icon buttons from sm up and as one menu on a phone.`],whenNot:[{text:`A menu that is not a row's own actions.`,instead:`AppDropdown`},{text:`Bulk actions on the selected rows.`,instead:`AppTableToolbar`}],do:[],dont:[],a11y:[`Each icon button is named by its label and shows it as a tooltip; a disabled one names its disabledReason too.`,`The menu trigger is named by menuLabel; Enter or Space opens the menu, arrows move through its rows, and Escape closes it and returns focus to the trigger.`,`Below sm only the menu is shown, so every action is reachable by a touch target and by the keyboard.`]}},{name:`AppSavedViews`,marker:`AppSavedViews`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra CSS class on the element.`,default:``},{name:`storageKey`,type:`string`,required:!0,description:`The name this list's views are stored under in the browser; give each list its own.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A list page whose filters people reuse.`,`Reports with a fixed set of filters opened most days.`],whenNot:[{text:`Hiding or ordering the columns of a table.`,instead:`AppColumnMenu`}],do:[],dont:[],a11y:[`The Views button announces expanded or collapsed; Escape closes the menu and returns focus to it.`,`Each Delete button is named for its view, such as Delete Open orders.`]}},{name:`AppScoreScale`,marker:`AppScoreScale`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Class on the scale (the control).`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Locks every radio so the score cannot be changed.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Message below the scale. Replaces the helper text.`},{name:`fieldClassName`,type:`string`,required:!1,description:"Class on the `.field` wrapper.",default:``},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the scale.`},{name:`highLabel`,type:`string`,required:!1,description:`Text under the highest value, such as "Very likely".`},{name:`id`,type:`string`,required:!1,description:`The id of the radio group; the label, helper text and error ids derive from it. Generated when omitted.`},{name:`label`,type:`node`,required:!1,description:`The visible group label; names the group.`},{name:`lowLabel`,type:`string`,required:!1,description:`Text under the lowest value, such as "Not likely".`},{name:`max`,type:`number`,required:!1,description:`The highest value on the scale.`,default:10},{name:`min`,type:`number`,required:!1,description:`The lowest value on the scale.`,default:0},{name:`name`,type:`string`,required:!1,description:`The form field name carried by every radio. Defaults to a generated one.`},{name:`scoreLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Score`},{name:`value`,type:`number`,required:!1,nullable:!0,description:`The chosen value, or null for no choice yet. The parent holds it (controlled).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Likelihood to recommend, satisfaction or effort on a numbered scale.`,`A single answer from a short, ordered run of numbers.`],whenNot:[{text:`A rating of a product or review as stars.`,instead:`AppRating`},{text:`A choice between named options.`,instead:`AppRadioGroup`},{text:`A numeric amount along a range.`,instead:`AppSlider`}],do:[],dont:[],a11y:[`The scale is a radio group named by its label, or named Score when there is no label.`,`Each value is a native radio sharing one name, so the arrow keys move and choose and the group posts with its form.`,`Helper text or an error is linked through aria-describedby, and an error also sets aria-invalid.`]}},{name:`AppScrollbar`,marker:`AppScrollbar`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the scroll container.`,default:``},{name:`maxHeight`,type:`stringOrNumber`,required:!1,description:`Caps the container height so content overflows and scrolls. A number is treated as pixels.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A fixed-height region (dropdown, side panel, card body) can overflow and you want a thin, unobtrusive scrollbar instead of the browser default.`,`The native scrollbar visually clutters a dense UI (a chunky gutter next to narrow content).`],whenNot:[{text:`Scrolling the whole page.`,instead:`the native page scrollbar`},{text:`A region that should paginate instead of scroll.`,instead:`AppTablePagination`}],do:[],dont:[],a11y:[`Only the scrollbar is restyled: native scrolling, keyboard navigation and in-page anchors work as in any scrollable element.`,`The container adds no role or aria attribute of its own, so the content inside keeps its own semantics.`]}},{name:`AppSearch`,marker:`AppSearch`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the field.`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`clearLabel`,type:`string`,required:!1,description:`Accessible name of the clear button. Replaces the built-in English text, for other languages.`,default:`Clear search`},{name:`collapsible`,type:`boolean`,required:!1,description:`Render as an icon button labelled by ariaLabel (or placeholder) that opens the field on click or "/"; Escape or leaving an empty field folds it, and a value keeps it open.`,default:!1},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the field off so it cannot be typed in or cleared.`,default:!1},{name:`form`,type:`string`,required:!1,description:`Id of the filter form this search joins, so it submits with the filters.`},{name:`iconSize`,type:`number`,required:!1,description:`The size in pixels of the leading magnifier. It is 18 when left out.`},{name:`loading`,type:`boolean`,required:!1,description:`Swap the leading glyph for a spinner while a search is in flight.`,default:!1},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text shown while the field is empty.`,default:`Search…`},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the field against typing and clearing; the value still posts.`,default:!1},{name:`searchLabel`,type:`string`,required:!1,description:`Accessible name of the collapsed search button when there is no ariaLabel or placeholder. Replaces the built-in English text, for other languages.`,default:`Search`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size around the default.`},{name:`value`,type:`string`,required:!1,description:`The text in the field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user narrows a list, table, or set of cards by typing a few characters.`,`You want a consistent search affordance, a magnifier and a clear button, above a collection.`,`The match is a simple contains-filter over data already on screen.`],whenNot:[{text:`It is an ordinary text value in a form.`,instead:`AppInput`},{text:`The user types to find one item from a large or remote list.`,instead:`AppSelect mode="search"`},{text:`The user picks from a fixed, known set of options.`,instead:`AppSelect`}],do:[{title:`Name what the search covers`,note:`A placeholder that names what is being searched sets the right expectation.`,example:[{component:`AppSearch`,props:{value:``,placeholder:`Search members…`,ariaLabel:`Search members`},handlers:[`onChange`]}]},{title:`Clear to reset the list`,note:`With a value present, the clear (×) lets the user reset to the full list in one click.`,example:[{component:`AppSearch`,props:{value:`Navneet`,placeholder:`Search members…`,ariaLabel:`Search members`},handlers:[`onChange`]}]}],dont:[{title:`Name what the search covers`,note:`A vague 'Type here' doesn't say what the box searches.`,example:[{component:`AppSearch`,props:{value:``,placeholder:`Type here`,ariaLabel:`Search`},handlers:[`onChange`]}]},{title:`Clear to reset the list`,note:`A raw input with a magnifier drawn on top has no clear control and drifts from the theme.`,example:[{component:`AppInput`,props:{value:`Navneet`,placeholder:`Search`},handlers:[`onChange`]}]}],a11y:[`The field is a native search input named by ariaLabel.`,`A collapsible search shows a toggle button named by ariaLabel (or the placeholder) with aria-expanded, and the / key opens the first collapsible search on the page unless focus is in a field.`,`Escape in an empty collapsible field folds it, and leaving an empty one folds it too.`,`The clear button is named Clear search, and the spinner is hidden from assistive technology.`]}},{name:`AppSectionCallToAction`,marker:`AppSectionCallToAction`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:"The buttons, usually a primary `AppButton` and an outline one."},{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the copy and buttons sit in the panel.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`subtitle`,type:`node`,required:!1,description:`A sentence under the heading.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`band`,`default`,`muted`],required:!1,description:"The section's background around the panel. `band` sets the call to action as a full-width band.",default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The last section of a landing page.`,`Between long sections, to offer the next step.`],whenNot:[{text:`A notice about the page or the account.`,instead:`AppBanner`}],do:[],dont:[],a11y:[`The section is labelled by its heading, through aria-labelledby, when an id is passed.`,`The title is a real heading element chosen by as, so set it to fit the page outline.`,`The buttons are the caller's own, so each keeps its native button or link behaviour.`]}},{name:`AppSectionFaq`,marker:`AppSectionFaq`,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:"Where the heading block sits. Under `split` the default is `start`.",default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The label every question's toggle carries as data-close-label, for a stylesheet to show while the question is open. Omitted when unset.`},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`openItems`,type:`array`,required:!1,description:`The positions of the questions that start open, counted from 0. They are passed to the AppAccordion among the children.`},{name:`subtitle`,type:`node`,required:!1,description:`A sentence under the heading ("Still stuck? Write to us.").`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`,`split`],required:!1,description:"The section's layout and background. `split` sets the heading block beside the questions.",default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Questions buyers ask before they sign up.`,`The last section before the call to action.`],whenNot:[{text:`Long help articles.`,instead:`a help centre page`}],do:[],dont:[],a11y:[`The section is labelled by its heading, through aria-labelledby, when an id is passed.`,`The title is a real heading element chosen by as, so set it to fit the page outline.`,`The questions sit in an AppAccordion, whose titles are buttons with aria-expanded, and closed answers stay in the page text.`]}},{name:`AppSectionFeatures`,marker:`AppSectionFeatures`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the heading block sits.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element; each point's title is one level under it.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`inset`,type:`number`,required:!1,description:`The section's side inset in px; unset keeps the container padding.`},{name:`items`,type:`array`,itemFields:[{name:`description`,type:`node`,required:!1,description:`The sentence under the point's heading.`},{name:`icon`,type:`string`,required:!1,description:`The name of a library icon shown above the title.`},{name:`imageAlt`,type:`string`,required:!1,description:`The text alternative of the image above the title.`},{name:`imageHeight`,type:`number`,required:!1,description:`The image's intrinsic height in px.`},{name:`imageSrc`,type:`string`,required:!1,description:`The URL of an image drawn above the title in place of the icon. Needs imageAlt, imageWidth and imageHeight; do not set icon as well.`},{name:`imageWidth`,type:`number`,required:!1,description:`The image's intrinsic width in px.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the point. It defaults to the title.`},{name:`media`,type:`node`,required:!1,description:`An image with width and height, shown beside the point in the rows layout.`},{name:`title`,type:`string`,required:!0,description:`The point's heading.`}],required:!1,description:`The points: a title, a description, a library icon name or an image, and a second image for the rows layout.`,default:[]},{name:`layout`,type:`enum`,enum:[`grid`,`rows`],required:!1,description:`Short points in columns, or one row per point with its image beside it.`,default:`grid`},{name:`subtitle`,type:`node`,required:!1,description:`One or two sentences under the heading.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`titleFont`,type:`enum`,enum:[`body`,`display`],required:!1,description:`The heading's face: display for the brand face, body for the text face.`,default:`display`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The product's main benefits on a landing page.`,`A service page's list of what is included.`],whenNot:[{text:`A full comparison of plans.`,instead:`AppCompareTable`}],do:[],dont:[],a11y:[`The section is labelled by its heading, through aria-labelledby, when an id is passed.`,`The title is a real heading element chosen by as, and each point's title is a heading one level under it.`,`The points are a list, so a screen reader announces how many there are.`]}},{name:`AppSectionHero`,marker:`AppSectionHero`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:"The calls to action, usually one or two `AppButton`s."},{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Centred copy with the media under it.`,default:`start`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element. Keep one h1 per page.`,default:`h1`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading: any node, including a styled container drawn as a pill.`},{name:`eyebrowTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Draws the eyebrow as a pill in this tone; unset keeps plain text.`},{name:`id`,type:`string`,required:!1,description:`The section's id, the target of an in-page link.`},{name:`media`,type:`node`,required:!1,description:"An `<img>` with `width` and `height`, beside the copy."},{name:`subtitle`,type:`node`,required:!1,description:`One or two sentences under the heading.`},{name:`title`,type:`node`,required:!0,description:`The page's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,role:`title`,usage:{when:[`The first section of a public page.`,`A campaign or product page that leads with one promise.`],whenNot:[{text:`The title of a portal screen.`,instead:`AppPageHeader`}],do:[],dont:[],a11y:[`The title is the page's h1 unless as says otherwise, so keep one h1 per page.`,`The section is labelled by its heading, through aria-labelledby, when an id is passed.`,`The eyebrow is plain text in a container, not a heading, so it stays out of the heading outline.`]}},{name:`AppSectionLeadCapture`,marker:`AppSectionLeadCapture`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the copy and form sit in the panel.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names for the root element.`,default:``},{name:`companyLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Company`},{name:`consent`,type:`node`,required:!1,description:`A line under the button, such as a privacy notice.`},{name:`description`,type:`node`,required:!1,description:`A paragraph above the form.`},{name:`emailLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Email`},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`fields`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!1,description:`The field's label. Defaults to the name's usual label.`},{name:`name`,type:`enum`,enum:[`company`,`email`,`message`,`name`,`phone`],required:!0,description:`Which field this is; it sets the input type, autocomplete and the usual label.`},{name:`required`,type:`boolean`,required:!1,description:`The field must have a value to submit.`,default:!1}],required:!0,description:`The fields in order: name, email, phone, company or message, each optionally labelled and required.`},{name:`invalidEmailText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Enter an email address such as name@example.com.`},{name:`leadSubmit`,type:`object`,fields:[],required:!1},{name:`messageLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Message`},{name:`nameLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Name`},{name:`phoneLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Phone number`},{name:`requiredText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`This field is required.`},{name:`submitErrorText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`We could not send your message. Please try again.`},{name:`submitLabel`,type:`string`,required:!1,description:`The button's label.`,default:`Send`},{name:`subtitle`,type:`node`,required:!1,description:`A sentence under the heading.`},{name:`successText`,type:`node`,required:!1,description:`The sentence under the success heading.`},{name:`successTitle`,type:`node`,required:!0,description:`The heading of the block shown after a successful send.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background around the panel.`,default:`default`}],itemsTakeAction:[],takesAction:[`leadSubmit`],source:`@webority/ui-react`,usage:{when:[`A marketing page that asks for a lead: a demo, a quote or a callback.`,`Up to five short fields, sent by a server action that rejects with a curated message, never a raw exception, because the visitor sees it.`],whenNot:[{text:`A form with more than five fields, or with several steps.`,instead:`AppFormSection`},{text:`A sign-in or account form.`,instead:`AppFormSection`}],do:[],dont:[],a11y:[`Each field has a visible label, and a required field is marked as required to the browser.`,`The form is not validated by the browser, so the messages shown are the section's own, next to each field.`,`A failed send is announced in an alert above the button, and a sent form is replaced by a success alert.`]}},{name:`AppSectionLogos`,marker:`AppSectionLogos`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the heading and the logos sit.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the section.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`id`,type:`string`,required:!1,description:`The section's id, the target of an in-page link.`},{name:`items`,type:`array`,itemFields:[{name:`alt`,type:`string`,required:!1,description:`The company's name, used as the image's alternative text. Falls back to name, then label.`},{name:`caption`,type:`string`,required:!1,description:`A short text under the logo, such as the company's name.`},{name:`height`,type:`number`,required:!1,description:`The image's intrinsic height in px. Needed with src.`},{name:`href`,type:`url`,required:!1,description:`A link the logo opens.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the logo.`},{name:`label`,type:`string`,required:!1,description:`Used as the text logo, or as the alt, when name is empty.`},{name:`name`,type:`string`,required:!1,description:`The company name. Drawn as the text logo when there is no src, and the fallback alt.`},{name:`src`,type:`string`,required:!1,description:`The image URL. An item without src is drawn as a text logo.`},{name:`width`,type:`number`,required:!1,description:`The image's intrinsic width in px. Needed with src.`}],required:!1,description:`The logos, each with its intrinsic size in px for an image and an optional link. An item that fits neither an image nor a text logo throws.`,default:[]},{name:`subtitle`,type:`node`,required:!1,description:`A sentence under the heading.`},{name:`title`,type:`node`,required:!0,description:`The section's heading, set small above the logos.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Under the hero, as proof that others use the product.`,`On a partners or integrations page.`],whenNot:[{text:`Logos that must move or scroll by themselves.`,instead:`AppCarousel`}],do:[],dont:[],a11y:[`The logos are a list: a ul with one li per logo, and a logo with an href is wrapped in a link.`,`An image logo takes its alt text from alt, else name, else label, and is drawn with its width and height set so the page does not move when it loads.`,`A logo with no src is drawn as text from name, else label.`]}},{name:`AppSectionPricing`,marker:`AppSectionPricing`,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the heading block sits.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the section.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`id`,type:`string`,required:!1,description:`The section's id, the target of an in-page link.`},{name:`subtitle`,type:`node`,required:!1,description:`One or two sentences under the heading, such as a tax note or a trial offer.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to four plans on a public pricing page.`,`A pricing block on a landing page.`],whenNot:[{text:`Comparing every feature across plans.`,instead:`AppCompareTable`}],do:[],dont:[],a11y:[`The heading uses the element chosen by as, h2 by default, and the section is labelled by it when an id is set.`,`The tiers sit in one grid container after the heading block, in source order; each tier's own semantics come from AppPricingCard.`]}},{name:`AppSectionTestimonials`,marker:`AppSectionTestimonials`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where the heading block sits.`,default:`center`},{name:`as`,type:`enum`,enum:[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],required:!1,description:`The heading element.`,default:`h2`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the section.`,default:``},{name:`eyebrow`,type:`node`,required:!1,description:`A short label above the heading.`},{name:`id`,type:`string`,required:!1,description:`The section's id, the target of an in-page link.`},{name:`items`,type:`array`,itemFields:[{name:`avatar`,type:`string`,required:!1,description:`A square photo URL, drawn as a 48px circle.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the quote. Falls back to name.`},{name:`name`,type:`string`,required:!1,description:`The person's name.`},{name:`quote`,type:`node`,required:!0,description:`The customer's words.`},{name:`role`,type:`string`,required:!1,description:`The person's role and company.`}],required:!1,description:`The quotes, each with the person's name, role and a square photo URL.`,default:[]},{name:`subtitle`,type:`node`,required:!1,description:`One or two sentences under the heading.`},{name:`title`,type:`node`,required:!0,description:`The section's heading.`},{name:`variant`,type:`enum`,enum:[`default`,`muted`],required:!1,description:`The section's background.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to six short quotes from named customers.`,`Under the features, before pricing.`],whenNot:[{text:`A long case study.`,instead:`a page of its own`}],do:[],dont:[],a11y:[`Each quote is a figure holding a blockquote and a figcaption with the person's name and role, inside a list.`,`The photo is decorative: its alt text is empty because the name sits beside it, and it is drawn with width and height 48 so the page does not move when it loads.`]}},{name:`AppSegmented`,marker:`AppSegmented`,acceptsChildren:!1,props:[{name:`bordered`,type:`boolean`,required:!1,description:`Draws the edge and soft shadow of the selected thumb. false keeps a flat thumb.`,default:!0},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the group.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the whole control.`,default:!1},{name:`fullWidth`,type:`boolean`,required:!1,description:`Segments share the row equally, filling the container.`,default:!1},{name:`help`,type:`node`,required:!1,description:`Content for an info-tip after the visible label. Shown only when the label is visible.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`label`,type:`string`,required:!0,description:`The accessible name of the group.`},{name:`labelVisible`,type:`boolean`,required:!1,description:`Shows the label above the control. The accessible name stays either way.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The field name, which groups the radios and is what a form posts. Defaults to a generated one.`},{name:`options`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!1,description:`A number shown beside the label. A count of 0 still shows.`},{name:`disabled`,type:`boolean`,required:!1,description:`Keeps this option visible but unpickable.`},{name:`icon`,type:`string`,required:!1,description:`An icon name shown beside the label.`},{name:`label`,type:`string`,required:!0,description:`The option's visible text.`},{name:`note`,type:`string`,required:!1,description:`A smaller muted line under the label, for a supporting detail.`},{name:`value`,type:`string`,required:!0,description:`The value this option submits.`}],required:!1,description:`The choices, in order, two to four. note is a smaller muted line under the label, count is a number beside it, and disabled keeps one option visible but unpickable.`,default:[]},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Heights 32, 36 and 44px.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The selected option's value. Leave it out, with defaultValue, for an uncontrolled field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Two to four exclusive options, and seeing all of them helps the reader choose.`,`The choice changes a view immediately, such as a range, a mode or a theme.`,`The options are short words that fit on one row.`],whenNot:[{text:`There are five or more options.`,instead:`AppSelect`},{text:`It is a single on/off setting.`,instead:`AppSwitch`},{text:`Options are not exclusive: several can be on. AppChoiceChip also fits a filter that can be off.`,instead:`AppCheckbox`},{text:`The options need descriptions to choose between. AppChoiceCard also fits.`,instead:`AppRadio`}],do:[{title:`Short, parallel labels`,note:`Short, parallel labels of similar length, so the pills are balanced and the row reads as one control.`,example:[{component:`AppSegmented`,props:{label:`Theme`,value:`light`,options:[{value:`light`,label:`Light`,icon:`sun`},{value:`dark`,label:`Dark`,icon:`moon`},{value:`system`,label:`System`,icon:`gauge`}]}}]}],dont:[{title:`Short, parallel labels`,note:`Wildly uneven labels make one pill swamp the other and push the control past its container. If a label needs a sentence, the choice needs radios.`,example:[{component:`AppSegmented`,props:{label:`Theme`,value:`l`,options:[{value:`l`,label:`Light`},{value:`d`,label:`Always use the dark colour scheme`}]}}]}],a11y:[`The group is a radiogroup named by label, built from native radio inputs inside labels, so arrow keys, the single tab stop and the position announcement come from the browser.`,`disabled on the group sets aria-disabled and disables every radio; an option's own disabled disables that radio.`,`The sliding thumb is aria-hidden, and with labelVisible the visible label is aria-hidden because the group's aria-label already names it.`]}},{name:`AppSelect`,marker:`AppSelect`,acceptsChildren:!1,props:[{name:`addLabel`,type:`string`,required:!1,description:`Search mode: the row that adds a custom entry.`,default:`Add '{query}'`},{name:`allCountriesLabel`,type:`string`,required:!1,description:`Country mode: the group label for the full list.`,default:`All countries`},{name:`allowCustom`,type:`boolean`,required:!1,description:`Search mode: a typed value that matches no option can be chosen as its own value.`,default:!1},{name:`allowDuplicates`,type:`boolean`,required:!1,description:`Tag mode: keep a repeated entry. By default an entry equal to one already chosen, ignoring case, is refused.`,default:!1},{name:`aria-invalid`,type:`any`,required:!1,description:`Marks the control invalid (aria-invalid) without a field error. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the control.`,default:``},{name:`clearAllLabel`,type:`string`,required:!1,description:`Multiple mode: the footer clear action.`,default:`Clear all`},{name:`clearable`,type:`boolean`,required:!1,description:`Show a control that clears the chosen value.`,default:!1},{name:`collapseChips`,type:`boolean`,required:!1,description:`Multiple mode: fold the chips past the first few into a +N chip.`,default:!1},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`countries`,type:`array`,required:!1,description:`Country mode: the ISO alpha-2 codes to offer. Leaving it out offers every country.`},{name:`createLabel`,type:`string`,required:!1,description:`Tag mode: the row that creates an entry.`,default:`Create '{text}'`},{name:`debounce`,type:`number`,required:!1,description:`Search mode: milliseconds to wait after typing before the query is sent.`},{name:`defaultValue`,type:`any`,required:!1,description:`The starting value of an uncontrolled field, the same shape as value.`},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`],required:!1,description:`comfortable is the labelled form look. compact is the toolbar, sort and filter picker look: an inline width and a menu sized to its options. Pair compact with size sm.`,default:`comfortable`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`emptyText`,type:`string`,required:!1,description:`Text shown in the menu when a search matches nothing.`,default:`No matches`},{name:`error`,type:`node`,required:!1,description:`Error message shown under the field. Marks the control invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Extra class names added to the .field wrapper.`,default:``},{name:`floatingLabel`,type:`enum`,enum:[`above`,`border`,`off`],required:!1,description:`Where the label rests. Off keeps it above the control. Border sits the label inside as a placeholder, then slides it onto the top border on focus or once a value is chosen. Above rests it above the box, clear of the border. Needs label. Single, search and country modes only; ignored with a dev warning in multiple and tag.`,default:`off`},{name:`help`,type:`node`,required:!1,description:`Help content shown in an info tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`Accessible name for that info tip.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text shown under the field when there is no error.`},{name:`hintText`,type:`string`,required:!1,description:`Search mode: the row shown while the query is shorter than minChars. Left unset, the element shows Type to search….`},{name:`icon`,type:`string`,required:!1,description:`Icon name shown in the control.`},{name:`id`,type:`string`,required:!1,description:`DOM id for the control and the target of the label.`},{name:`invalidMessage`,type:`string`,required:!1,description:`Tag mode: the message shown when pattern or validate refuses an entry.`},{name:`label`,type:`node`,required:!1,description:`The visible field label.`},{name:`lazyOptions`,type:`boolean`,required:!1,description:`Draw the option rows only while the list is open. Default off.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`maxTags`,type:`number`,required:!1,description:`Tag mode: the most chips a value may hold.`},{name:`minChars`,type:`number`,required:!1,description:`Search mode: the query length before the element asks for options.`},{name:`mode`,type:`enum`,enum:[`country`,`multiple`,`search`,`single`,`tag`],required:!1,description:`What the control does. single picks one option; multiple picks several and shows them as chips, and with a loadOptions loader or remote searches the server as the user types, keeping each chosen chip's label; search filters options as the user types, from options or a loadOptions loader; tag takes free-text chips with optional suggestions, validate, pattern and maxTags; country picks an ISO country code with its flag and dial code. value is a string in single, search and country modes, and a string array in multiple and tag modes.`,default:`single`},{name:`name`,type:`string`,required:!1,description:`Form field name.`},{name:`open`,type:`boolean`,required:!1,description:`Shows the list open, for a design preview or a controlled caller.`},{name:`openOnHover`,type:`boolean`,required:!1,description:`Open the list when the mouse rests on the control, and close it when the mouse leaves the control and the list. Mouse only: touch and pen keep tap to open. A select with a search box (search mode, or searchable) and tag mode ignore it. A click on the control right after it opened on hover keeps the list open.`,default:!1},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`options`,type:`array`,itemFields:[{name:`avatar`,type:`string`,required:!1,description:`An image URL shown beside the option.`},{name:`description`,type:`string`,required:!1,description:`A second line under the label, also matched by search.`},{name:`disabled`,type:`boolean`,required:!1,description:`Keeps the row visible but unselectable.`},{name:`disabledHint`,type:`string`,required:!1,description:`Text shown beside a disabled row, such as Already added.`},{name:`group`,type:`string`,required:!1,description:`The grey group label the row sits under.`},{name:`icon`,type:`string`,required:!1,description:`An icon name shown beside the option.`},{name:`initials`,type:`string`,required:!1,description:`The face shown without, or under, the avatar.`},{name:`label`,type:`node`,required:!1,description:`The option's visible label. May be a node.`},{name:`meta`,type:`string`,required:!1,description:`Trailing text at the end of the row, such as a code or a dial code.`},{name:`text`,type:`string`,required:!1,description:`Plain text used for search and the accessible name when the label is a node.`},{name:`value`,type:`string`,required:!0,description:`The value this option submits.`}],required:!1,description:`The choices. A label may be a node, such as CO2 with a subscript: it renders as static markup, and search and the option's accessible name use its text. In tag mode these are the suggestions.`,default:[]},{name:`pattern`,type:`string`,required:!1,description:`Tag mode: a regular expression a typed entry must match.`},{name:`placeholder`,type:`string`,required:!1,description:`The text in the empty field. Left unset, the element's default for the mode applies: Select… in single, search and multiple, Add… in tag, Select country in country.`},{name:`prefix`,type:`node`,required:!1,description:`A bordered box before the select, such as +91 or Tag, in the same shell as an input's prefix. Single, search and country modes only; ignored with a dev warning in multiple and tag.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`recentsKey`,type:`string`,required:!1,description:`Single, search, multiple and country modes: a localStorage key to remember the options a person chooses on this device. The open list shows them first, under a Recent heading, while the search box is empty. Build it per user, for example from the user's public id. Only options still in the list show, so a search that fetches its options per query shows none. Not used in tag mode.`},{name:`recentsLabel`,type:`string`,required:!1,description:`The heading of the recent options.`,default:`Recent`},{name:`recentsLimit`,type:`number`,required:!1,description:`How many recent options to show and keep, 1 to 20.`,default:5},{name:`remote`,type:`boolean`,required:!1,description:`Search, multiple and tag modes: the page answers each query itself. The element fires its search event (React onSearch) with the query and its number, fetches nothing, and shows the searching row until the page sets options. Leave it off with loadOptions or source.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required.`,default:!1},{name:`searchPlaceholder`,type:`string`,required:!1,description:`The placeholder of the search box in the menu. Left unset, it is Search and the field's label (Search Client…) in single, multiple and search modes, Search… without a label, and Search countries… in country mode.`},{name:`searchable`,type:`boolean`,required:!1,description:`Show the search box in the menu. Default: on in multiple and country, on in single when there are more than ten options, off otherwise. true or false forces it either way.`},{name:`searchingText`,type:`string`,required:!1,description:`Search mode: the row shown while a query loads.`,default:`Searching…`},{name:`selectedText`,type:`string`,required:!1,description:`Multiple mode: the footer count.`,default:`{n} selected`},{name:`separators`,type:`string`,required:!1,description:`Tag mode: characters that commit an entry, such as comma or semicolon, as one string.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control size: sm, md, lg or xl (35, 40, 45 or 50px). md is the default.`,default:`md`},{name:`source`,type:`string`,required:!1,description:`Search, multiple and tag modes: the endpoint the select calls as GET source?q=query, answering a JSON array of option records. Leave it off with remote or loadOptions.`},{name:`suffix`,type:`node`,required:!1,description:`A bordered box after the select, in the same shell as an input's suffix. Single, search and country modes only; ignored with a dev warning in multiple and tag.`},{name:`suggested`,type:`array`,required:!1,description:`Country mode: the ISO alpha-2 codes shown first under a Suggested group.`},{name:`suggestedLabel`,type:`string`,required:!1,description:`Country mode: the group label for suggested countries.`,default:`Suggested`},{name:`valid`,type:`boolean`,required:!1,description:`Shows a green tick on a filled field with no error. Default off.`,default:!1},{name:`value`,type:`any`,required:!1,description:`The selected value: a string in single, search and country modes, a string array in multiple and tag modes. Leaving it out clears the control.`},{name:`valueAvatar`,type:`string`,required:!1,description:`Search mode: the image of the current value.`},{name:`valueInitials`,type:`string`,required:!1,description:`Search mode: the initials of the current value.`},{name:`valueLabel`,type:`string`,required:!1,description:`Search mode: the label of the current value when the options do not carry it.`},{name:`valuePrefix`,type:`string`,required:!1,description:`Static text inside the control before the value, such as Sort:. Not prefix, which is the bordered affix box.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The user picks one value from a known set of roughly 6 or more options: single mode, the default.`,`The user picks several values from a set: mode multiple, shown as removable chips.`,`The options are long or come from a server as the user types: mode search, with options or loadOptions.`,`The user types free-text entries such as emails or keywords, optionally with suggestions: mode tag.`,`The user picks a country: mode country, which gives the ISO code, the flag and the dial code.`,`compact density for toolbars, sort and filter pickers; a labelled form field omits it.`],whenNot:[{text:`There are only 2 to 5 options and they fit comfortably on screen.`,instead:`AppRadio`},{text:`The user needs to pick a value with no fixed list of options at all.`,instead:`AppInput`}],do:[{title:`Searchable past ten options`,note:`Past ten options the search box shows on its own, so leave searchable unset.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,placeholder:`Select a client…`,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`},{value:`jsw`,label:`JSW Steel Vijayanagar`},{value:`ntpc`,label:`NTPC Dadri`},{value:`bhel`,label:`BHEL Haridwar`},{value:`ongc`,label:`ONGC Hazira`},{value:`sail`,label:`SAIL Bokaro`},{value:`hind`,label:`Hindalco Renukoot`},{value:`bpcl`,label:`BPCL Kochi`}]}}]},{title:`A label and a placeholder`,note:`A label names the field and the placeholder tells the user what to pick.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,placeholder:`Select a client…`,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`}]}}]},{title:`A specific error`,note:`A specific error says which choice is missing and why it matters.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`}],required:!0,error:`Choose the client this project belongs to.`}}]}],dont:[{title:`Searchable past ten options`,note:`Turning the search box off on a long list forces the user to scroll and scan every time.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,placeholder:`Select a client…`,searchable:!1,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`},{value:`jsw`,label:`JSW Steel Vijayanagar`},{value:`ntpc`,label:`NTPC Dadri`},{value:`bhel`,label:`BHEL Haridwar`},{value:`ongc`,label:`ONGC Hazira`},{value:`sail`,label:`SAIL Bokaro`},{value:`hind`,label:`Hindalco Renukoot`},{value:`bpcl`,label:`BPCL Kochi`}]}}]},{title:`A label and a placeholder`,note:`No label and a bare 'Select' leave the field's purpose unclear.`,example:[{component:`AppSelect`,props:{value:``,placeholder:`Select`,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`}]}}]},{title:`A specific error`,note:`'Required' just repeats the asterisk without helping.`,example:[{component:`AppSelect`,props:{label:`Client`,value:``,options:[{value:`rpg`,label:`RPG Bhiwadi DC`},{value:`tata`,label:`Tata Power Mumbai`},{value:`adani`,label:`Adani Green Gujarat`},{value:`lt`,label:`L&T Construction`}],required:!0,error:`Required`}}]}],a11y:[`The visible label is the control's accessible name; a select with no visible label takes aria-label or aria-labelledby from the caller.`,`An error sets aria-invalid on the control and is linked by aria-describedby, as is the helper text when there is no error. A caller's aria-invalid takes its place.`,`required and disabled are passed to the control, and required also draws a required mark in the label.`]}},{name:`AppSeoHead`,marker:null,acceptsChildren:!1,props:[{name:`canonicalUrl`,type:`url`,required:!0,description:`The absolute address of the page, used for the canonical link and og:url.`},{name:`description`,type:`string`,required:!0,description:`The meta description shown in search results.`},{name:`image`,type:`url`,required:!1,description:`The absolute address of the social preview image.`},{name:`imageAlt`,type:`string`,required:!1,description:`The text description of the social preview image.`},{name:`jsonLd`,type:`object`,required:!1,description:`Structured data for the page, one object or an array of objects. Written into the page as JSON-LD, as an escaped text child, so it is for client-rendered portals only (React escapes script text under server rendering).`},{name:`robots`,type:`string`,required:!0,description:`The robots directive the product picks per environment, such as "index, follow" or "noindex, nofollow".`},{name:`siteName`,type:`string`,required:!0,description:`The name of the site, for og:site_name.`},{name:`title`,type:`string`,required:!0,description:`The page title, written in full by the product.`},{name:`twitterCard`,type:`enum`,enum:[`summary`,`summary_large_image`],required:!1,description:`The Twitter card layout.`,default:`summary`},{name:`type`,type:`enum`,enum:[`article`,`website`],required:!1,description:`The Open Graph type of the page.`,default:`website`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A public page needs its title, search description, social preview and structured data in the document head.`],whenNot:[{text:`The page is rendered by Razor.`,instead:`<seo-head> from Webority.Seo.AspNetCore`}],do:[],dont:[],a11y:[`The tags add no visible content; they describe the page to search engines and social previews.`]}},{name:`AppShell`,marker:`AppShell`,acceptsChildren:!0,props:[{name:`accountMenuLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the signed-in person's name.`,default:`Account menu for {name}`},{name:`brand`,type:`node`,required:!1,description:`The logo row at the top of the sidebar.`},{name:`brandHref`,type:`string`,required:!1,description:`Makes the logo row a link to this address, through linkComponent when one is passed. The link wraps the logo, mark and brand, so brand must hold no link of its own. Needs brandLabel or brandName.`},{name:`brandLabel`,type:`string`,required:!1,description:`The brand link's accessible name, such as Acme home. Used only with brandHref; defaults to brandName.`},{name:`brandName`,type:`string`,required:!1,description:`The brand name, read by screen readers from the logo, or from the mark when there is no logo.`},{name:`capBadges`,type:`boolean`,required:!1,description:`Shows a count over 99 as "99+" on the nav and tab badges, as the bell does.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the shell root.`,default:``},{name:`collapseNavLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Collapse navigation`},{name:`collapsed`,type:`boolean`,required:!1,description:`Controlled rail state. Omit it to let the shell own the state.`},{name:`collapsedCookie`,type:`string`,required:!1,description:`The cookie rememberCollapsed uses.`,default:`wui-shell-collapsed`},{name:`currentPath`,type:`string`,required:!1,description:`The current location. Rows without active are matched against it.`},{name:`density`,type:`enum`,enum:[`comfortable`,`compact`],required:!1,description:`Compact sets the content's top padding to 12px.`,default:`comfortable`},{name:`expandNavLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Expand navigation`},{name:`foldedCookie`,type:`string`,required:!1,description:`The cookie that remembers the folded collapsible groups, as their keys joined by dots.`,default:`wui-nav-folded`},{name:`footer`,type:`node`,required:!1,description:`Content shown below the page, in the content column.`},{name:`groups`,type:`array`,itemFields:[{name:`after`,type:`node`,required:!1,description:`A node rendered right after the group's links, such as an add-a-space row. It is hidden on the collapsed rail and shown in the drawer.`},{name:`collapsible`,type:`boolean`,required:!1,description:`Folds the group from its heading. Its folded state is remembered in a cookie (foldedCookie).`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`active`,type:`boolean`,required:!1,description:`Unset, the row is decided from currentPath. True or false forces it.`},{name:`badge`,type:`node`,required:!1,description:`A count or short status at the row's end.`},{name:`badgeTitle`,type:`string`,required:!1,description:`The badge's hover text, such as 3 invoices overdue.`},{name:`badgeTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Tints the badge, in the AppBadge tone set: danger for an alert count, primary for a plain count.`},{name:`children`,type:`array`,required:!1,description:`Sub-items. The row becomes an expandable parent.`},{name:`description`,type:`string`,required:!1,description:`The link's one-line description in the top bar panel.`},{name:`header`,type:`string`,required:!1,description:`A sub-heading row inside the group, drawn with no link. Shown only while a link follows it.`},{name:`href`,type:`url`,required:!1,description:`Where the label links. With children, the label link goes here and the chevron alone opens the sub-list.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name, or a node for a product's own icon set.`},{name:`iconSize`,type:`number`,required:!1,description:`The icon's width and height in px. Defaults to 22.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named icon. Defaults to linear.`},{name:`key`,type:`string`,required:!1,description:`Stable key of the row.`},{name:`label`,type:`string`,required:!1,description:`The visible label of the row. Every row but a header row has one.`},{name:`match`,type:`enum`,enum:[`exact`,`prefix`],required:!1,description:`How href is matched against currentPath. Defaults to prefix.`},{name:`matchAlso`,type:`array`,required:!1,description:`Extra path prefixes that also make this row the current page.`},{name:`newUntil`,type:`string`,required:!1,description:`An ISO date (yyyy-MM-dd, India time). A green New pill shows after the label through that day, and none after it.`},{name:`tab`,type:`boolean`,required:!1,description:`Also shows this row in the phone bottom tab bar.`},{name:`tabLabel`,type:`string`,required:!1,description:`A shorter label for the tab bar.`},{name:`trailingIcon`,type:`icon`,required:!1,description:`A right-aligned secondary glyph, such as a lock or an external arrow.`}],required:!0,description:`The nav rows of the group.`},{name:`key`,type:`string`,required:!1,description:`A stable name for the group. Needed with collapsible; lower-case letters, digits and hyphens.`},{name:`label`,type:`string`,required:!1,description:`The group heading.`}],required:!1,description:`Nav groups, in order. Groups after the first are separated by a rule. A group with no items is not rendered, and neither is its after.`,default:[]},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of every sidebar icon. A row's own iconVariant overrides it; bulk is the filled look. Unset, icons draw in the twotone style.`,default:`twotone`},{name:`itemHeight`,type:`number`,required:!1,description:`The height of every sidebar row in px, in place of the density's row height. Unset, the rows keep the density's height. A value above zero applies on every pointer, touch included.`},{name:`launcher`,type:`node`,required:!1,description:`A floating button pinned to the bottom end corner over the page, such as an assistant launcher. On a phone it sits above the tab bar.`},{name:`loadingNotificationsText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Loading…`},{name:`logoDark`,type:`string`,required:!1,description:`Dark-mode twin of logoLight, swapped in under data-theme dark. Needs logoLight.`},{name:`logoDarkHeight`,type:`number`,required:!1,description:`Pixel height of the dark-mode logo, set on its img. Unset, the image keeps its own size.`},{name:`logoDarkWidth`,type:`number`,required:!1,description:`Pixel width of the dark-mode logo, set on its img. Unset, the image keeps its own size.`},{name:`logoLight`,type:`string`,required:!1,description:`Image URL of the full logo shown on the open sidebar. Ship it pre-trimmed; the library fixes only its height.`},{name:`logoLightHeight`,type:`number`,required:!1,description:`Pixel height of the full logo on the open sidebar, set on its img. Unset, the image keeps its own size.`},{name:`logoLightWidth`,type:`number`,required:!1,description:`Pixel width of the full logo on the open sidebar, set on its img. Give the size with the file to reserve its space before it loads. Unset, the image keeps its own size.`},{name:`markAllReadLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Mark all read`},{name:`markDark`,type:`string`,required:!1,description:`Dark-mode twin of markLight.`},{name:`markDarkHeight`,type:`number`,required:!1,description:`Pixel height of the dark-mode mark, set on its img. Unset, the image keeps its own size.`},{name:`markDarkWidth`,type:`number`,required:!1,description:`Pixel width of the dark-mode mark, set on its img. Unset, the image keeps its own size.`},{name:`markLight`,type:`string`,required:!1,description:`Image URL of the square mark shown on the collapsed rail. Without one, the logo is clipped to a square.`},{name:`markLightHeight`,type:`number`,required:!1,description:`Pixel height of the square mark on the collapsed rail, set on its img. Unset, the image keeps its own size.`},{name:`markLightWidth`,type:`number`,required:!1,description:`Pixel width of the square mark on the collapsed rail, set on its img. Unset, the image keeps its own size.`},{name:`moreLabel`,type:`string`,required:!1,description:`Label of the tab bar button that opens the drawer.`,default:`More`},{name:`nav`,type:`enum`,enum:[`side`,`top`],required:!1,description:`Where the primary navigation sits: a sidebar, or from lg up the top bar.`,default:`side`},{name:`navLabel`,type:`string`,required:!1,description:`Accessible name of the sidebar navigation.`,default:`Main navigation`},{name:`newLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`New`},{name:`noResultsForText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {value} is the search text.`,default:`No results for “{value}”`},{name:`noResultsText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No results`},{name:`noSidebar`,type:`boolean`,required:!1,description:`Full-width layout with no side nav, for a focused wizard. There is no tab bar either.`,default:!1},{name:`noUnreadText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Read aloud when the unread count drops to zero.`,default:`No unread notifications`},{name:`notifications`,type:`object`,fields:[{name:`emptyText`,type:`string`,required:!1,description:`Text shown when the list is empty. Defaults to You are all caught up.`},{name:`items`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!1,description:`Where the notification links.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name for the notification.`},{name:`id`,type:`string`,required:!1,description:`Stable id of the notification.`},{name:`read`,type:`boolean`,required:!1,description:`True when the notification has been read.`},{name:`time`,type:`string`,required:!1,description:`When it happened, as display text.`},{name:`title`,type:`string`,required:!0,description:`The notification's text.`}],required:!1,description:`The list. Undefined until loaded.`},{name:`label`,type:`string`,required:!1,description:`The panel's heading. Defaults to Notifications.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a loading state in the list.`},{name:`unread`,type:`number`,required:!1,description:`Unread count on the bell. It shows 99+ above 99.`},{name:`viewAllHref`,type:`url`,required:!1,description:`Where the view-all link goes.`}],required:!1,description:`The notification bell.`},{name:`openNavLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Open navigation`},{name:`rememberCollapsed`,type:`boolean`,required:!1,description:`Remembers the uncontrolled rail state in a cookie.`,default:!1},{name:`resultCountText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is the number of results (one).`,default:`{count} result`},{name:`resultsCountText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is the number of results.`,default:`{count} results`},{name:`roleLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Role:`},{name:`rolesLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Roles:`},{name:`search`,type:`object`,fields:[{name:`loading`,type:`boolean`,required:!1,description:`Shows a loading state in the suggestions.`},{name:`placeholder`,type:`string`,required:!1,description:`Shown while the field is empty. Defaults to Search; it is also the field's accessible name.`},{name:`results`,type:`array`,itemFields:[{name:`hits`,type:`array`,itemFields:[{name:`href`,type:`url`,required:!0,description:`Where the suggestion goes.`},{name:`icon`,type:`icon`,required:!1,description:`An icon before the title.`},{name:`subtitle`,type:`string`,required:!1,description:`A second line under the title.`},{name:`title`,type:`string`,required:!0,description:`The suggestion's text.`}],required:!0,description:`The suggestions in the group.`},{name:`label`,type:`string`,required:!1,description:`The group heading.`}],required:!1,nullable:!0,description:`Suggestion groups, each with a label and its hits. Null hides the list.`},{name:`shortcutKey`,type:`string`,required:!1,description:`One letter, a to z. Pressing Ctrl or Cmd with it focuses the field. The placeholder shows (Ctrl+K), or (⌘K) on a Mac, and aria-keyshortcuts names the chord.`},{name:`value`,type:`string`,required:!0,description:`Controlled text.`}],required:!1,description:`The topbar search. Its onChange, onSelect, onSubmit and onFocus handlers are passed in code; onFocus runs when the field gets focus, for example to open a command palette.`},{name:`searchResultsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Search results`},{name:`sidebarFooter`,type:`node`,required:!1,description:`Pinned below the scrolling nav.`},{name:`sidebarFooterItems`,type:`array`,itemFields:[{name:`active`,type:`boolean`,required:!1,description:`Unset, the row is decided from currentPath. True or false forces it.`},{name:`badge`,type:`node`,required:!1,description:`A count or short status at the row's end.`},{name:`badgeTitle`,type:`string`,required:!1,description:`The badge's hover text, such as 3 invoices overdue.`},{name:`badgeTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Tints the badge, in the AppBadge tone set: danger for an alert count, primary for a plain count.`},{name:`href`,type:`url`,required:!1,description:`Where the label links.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name, or a node for a product's own icon set.`},{name:`iconSize`,type:`number`,required:!1,description:`The icon's width and height in px. Defaults to 22.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of a named icon. Defaults to linear.`},{name:`key`,type:`string`,required:!1,description:`Stable key of the row.`},{name:`label`,type:`string`,required:!1,description:`The visible label of the row.`},{name:`match`,type:`enum`,enum:[`exact`,`prefix`],required:!1,description:`How href is matched against currentPath. Defaults to prefix.`},{name:`matchAlso`,type:`array`,required:!1,description:`Extra path prefixes that also make this row the current page.`},{name:`newUntil`,type:`string`,required:!1,description:`An ISO date (yyyy-MM-dd, India time). A green New pill shows after the label through that day, and none after it.`},{name:`trailingIcon`,type:`icon`,required:!1,description:`A right-aligned secondary glyph, such as a lock or an external arrow.`}],required:!1,description:`Nav links pinned in the sidebar footer, matched and marked active with the menu links. Flat links only: no children, no tab, no header.`},{name:`sidebarStart`,type:`node`,required:!1,description:`Between the brand row and the nav, such as a workspace switcher or an environment badge. Hidden on the collapsed rail.`},{name:`sidebarStartCompact`,type:`node`,required:!1,description:`The same slot for the collapsed rail, typically a compact monogram control. Shown only on the desktop collapsed rail.`},{name:`skipLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Skip to content`},{name:`tabBarLabel`,type:`string`,required:!1,description:`Accessible name of the phone tab bar.`,default:`Quick navigation`},{name:`togglePagesLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the nav item's label.`,default:`Show or hide {name} pages`},{name:`tone`,type:`enum`,enum:[`brand`,`default`],required:!1,description:`brand paints the sidebar and its parts with the --color-shell-* tokens.`,default:`default`},{name:`topNavDetail`,type:`boolean`,required:!1,description:`With nav top, the panels show each group's label, each link's description and mark the open panel.`,default:!1},{name:`topbarEnd`,type:`node`,required:!1,description:`Trailing topbar slot for page actions. The bell and account menu follow it.`},{name:`topbarStart`,type:`node`,required:!1,description:`Leading topbar slot, such as the page title or crumbs.`},{name:`topbarTone`,type:`enum`,enum:[`neutral`,`primary`],required:!1,description:`The top bar's colour. Primary paints the bar in the primary colour, with the ink that reads on it. The search field keeps its own surface.`,default:`neutral`},{name:`unreadBellLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {label} is the bell's label and {count} the unread count.`,default:`{label}, {count} unread`},{name:`unreadLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Unread`},{name:`unreadNotificationsText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {count} is the unread count.`,default:`{count} unread notifications`},{name:`userMenu`,type:`object`,fields:[{name:`head`,type:`node`,required:!1,description:`Under the name, role and roles lines, such as an email or an account id.`},{name:`items`,type:`array`,itemFields:[{name:`divider`,type:`boolean`,required:!1,description:`Draws a rule instead of a row.`},{name:`href`,type:`url`,required:!1,description:`Where the row links.`},{name:`icon`,type:`icon`,required:!1,description:`A library icon name for the row.`},{name:`key`,type:`string`,required:!0,description:`Stable key of the row.`},{name:`label`,type:`node`,required:!1,description:`The visible label of the row.`}],required:!1,description:`Extra rows of the menu, above the sign-out item.`},{name:`logoutAction`,type:`string`,required:!1,description:`A URL a sign-out form POSTs to.`},{name:`logoutLabel`,type:`string`,required:!1,description:`The sign-out item's label. Defaults to Sign out.`},{name:`logoutVariant`,type:`enum`,enum:[`button`,`item`],required:!1,description:`item draws sign-out as a danger row; button draws a full-width soft danger button in its own foot.`,default:`item`},{name:`name`,type:`string`,required:!0,description:`The person's full name. The avatar's initials come from it.`},{name:`noTriggerRole`,type:`boolean`,required:!1,description:`Leave the job title off the topbar trigger, so it shows the name only. The opened menu still shows it.`,default:!1},{name:`outlined`,type:`boolean`,required:!1,description:`Draws an always-on outline around the topbar trigger.`,default:!1},{name:`photo`,type:`string`,required:!1,description:`Profile photo URL.`},{name:`profileHref`,type:`url`,required:!1,description:`Where the profile item goes.`},{name:`profileLabel`,type:`string`,required:!1,description:`The profile item's label. Defaults to My profile.`},{name:`role`,type:`string`,required:!1,description:`A second line: job title or signed-in role.`},{name:`roles`,type:`array`,required:!1,description:`Portal role display names, shown under the job title as Role or Roles. Razor takes one comma-separated string.`},{name:`section`,type:`node`,required:!1,description:`Between the head and the items, such as an account or workspace switcher.`}],required:!1,description:`The account menu at the end of the topbar.`},{name:`viewAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`View all`}],itemsTakeAction:[`sidebarFooterItems`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Every authenticated screen in a portal: mount it once, above the outlet.`,`The product has more than a handful of destinations.`,`You want the same collapse, drawer and topbar behaviour as every sibling product.`],whenNot:[{text:`It is a public marketing page.`,instead:`the Razor site layout`},{text:`It is a sign-in or sign-up screen, so there is no nav to show.`,instead:`a plain centred layout`},{text:`You need a temporary side panel, not the app's navigation.`,instead:`AppDrawer`},{text:`The session has not resolved yet.`,instead:`AppSplash`}],do:[],dont:[],a11y:[`The sidebar is a nav landmark named by navLabel, the phone tab bar is a nav named by tabBarLabel, a skip link jumps to the content, and the current page carries aria-current.`,`The collapse, menu and sub-list buttons are named and report aria-expanded; Escape closes the open navigation drawer, and a closed sub-list is inert and hidden from assistive technology.`,`The account menu button is named with the person's name, the bell is named with its unread count and announces changes in a polite live region, and the topbar search is a combobox with a listbox of suggestions.`]}},{name:`AppShortcutLegend`,marker:`AppShortcutLegend`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the legend root.`,default:``},{name:`items`,type:`string`,required:!1,description:`CSS selector of the items that J and K move between, inside the scope.`},{name:`open`,type:`boolean`,required:!1,description:`Controlled open state of the sheet.`},{name:`search`,type:`string`,required:!1,description:`CSS selector of the field that / focuses.`},{name:`shortcuts`,type:`array`,itemFields:[{name:`group`,type:`string`,required:!1,description:`A heading the row sits under; rows sharing one are listed together.`},{name:`key`,type:`string`,required:!0,description:`One character, or Enter, Esc or /.`},{name:`label`,type:`string`,required:!0,description:`The text shown beside the key.`}],required:!1,description:`The rows of the sheet, in order; the ? row is always last.`,default:[]},{name:`trigger`,type:`boolean`,required:!1,description:`false renders no button; the sheet opens from ?, open, or a data-wui-shortcuts-open element.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A queue or list someone clears every day.`,`A screen whose frequent actions have single-key shortcuts.`],whenNot:[{text:`Screens used now and then.`,instead:`visible buttons only`},{text:`Phone-only screens (no keyboard).`,instead:`visible buttons only`}],do:[],dont:[],a11y:[`A toggle button opens the sheet, which is a dialog; the button reports aria-haspopup, aria-expanded and aria-controls, and carries aria-keyshortcuts for the ? key.`,`Keys typed into a field, or held with Ctrl, Cmd or Alt, do nothing, so typing is never taken over.`,`Esc or a click outside closes the sheet, and the close button is named.`]}},{name:`AppShowMore`,marker:`AppShowMore`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`defaultExpanded`,type:`boolean`,required:!1,description:`Start with the whole text showing; a change after mount is ignored.`,default:!1},{name:`id`,type:`string`,required:!1,description:`The root's id; the text body's id is the root id plus -body. Generated when omitted.`},{name:`lessLabel`,type:`string`,required:!1,description:`The toggle's text while expanded.`,default:`Show less`},{name:`lines`,type:`number`,required:!1,description:`How many lines show while the text is collapsed.`,default:3},{name:`moreLabel`,type:`string`,required:!1,description:`The toggle's text while collapsed.`,default:`Show more`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A description, note or comment that can run to many lines on a detail page.`],whenNot:[{text:`Hiding one line of a table cell or title with an ellipsis.`,instead:`a truncated cell`},{text:`Several sections of content that belong behind headings.`,instead:`AppAccordion`}],do:[],dont:[],a11y:[`The clamp is visual: the full text stays in the page for screen readers.`,`The toggle is a button that reports aria-expanded and points at the text with aria-controls.`,`The toggle shows only when the text overflows, and without script the text shows in full.`]}},{name:`AppSkeleton`,marker:`AppSkeleton`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the bar.`,default:``},{name:`height`,type:`stringOrNumber`,required:!1,description:`Height of the bar: a number is px, a string is any CSS length.`,default:14},{name:`radius`,type:`stringOrNumber`,required:!1,description:`Corner radius of the bar: a number is px, a string is any CSS length.`,default:6},{name:`width`,type:`stringOrNumber`,required:!1,description:`Width of the bar: a number is px, a string is any CSS length.`,default:`100%`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A component is loading its first data, the classic loading && data.length === 0 case.`,`You want the page layout to hold its shape so content doesn't jump on arrival.`,`A table or list is fetching its first page and you want per-row placeholders.`],whenNot:[{text:`The data loaded but the result set is empty.`,instead:`AppEmptyState`},{text:`A table query returned no rows.`,instead:`AppEmptyState variant="table"`},{text:`A short, indeterminate action is running (a button submit).`,instead:`AppButton loading`},{text:`The whole page is blocked on a single request.`,instead:`a page-level spinner`}],do:[{title:`Echo the layout that is loading`,note:`A few bars that echo the real layout, a heading over two body lines. The eye reads it as "content, loading".`,example:[{component:`div`,children:[{component:`AppSkeleton`,props:{width:`70%`,height:16}},{component:`AppSkeleton`,props:{width:`100%`,height:12}},{component:`AppSkeleton`,props:{width:`90%`,height:12}}]}]},{title:`Match table columns while loading`,note:`Table skeletons use the same column count as the loaded table, so headers and widths never shift.`,example:[{component:`table`,children:[{component:`tbody`,children:[{component:`AppSkeletonRows`,props:{rows:3,cols:4}}]}]}]}],dont:[{title:`Echo the layout that is loading`,note:`One giant block tells the user nothing about what's coming and reflows hard when the real, smaller content lands.`,example:[{component:`AppSkeleton`,props:{width:`100%`,height:120}}]},{title:`Match table columns while loading`,note:`Two loose bars where a table is loading leaves the columns to snap into place on arrival.`,example:[{component:`div`,children:[{component:`AppSkeleton`,props:{width:`100%`,height:12}},{component:`AppSkeleton`,props:{width:`100%`,height:12}}]}]}],a11y:[`The bar is a span with aria-hidden set to true, so screen readers skip it.`,`The bar has no role and takes no focus.`]}},{name:`AppSkeletonLines`,marker:`AppSkeletonLines`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names added to the wrapper.`,default:``},{name:`lastLineWidth`,type:`string`,required:!1,description:`Width of the last line as a CSS length string, such as 60% or 12rem. The other lines are full width.`,default:`60%`},{name:`lines`,type:`number`,required:!1,description:`How many lines to draw, an integer from 1 to 12. Any other value renders the default and warns.`,default:3}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A paragraph of text is loading and the page should hold its shape.`,`A card or a description is waiting for its first data.`],whenNot:[{text:`A single bar stands in for one element, such as a heading or a value.`,instead:`AppSkeleton`},{text:`A table is loading its first page.`,instead:`AppSkeletonRows`},{text:`The data loaded but the result set is empty.`,instead:`AppEmptyState`},{text:`The whole page is blocked on a single request.`,instead:`a page-level spinner`}],do:[],dont:[],a11y:[`The wrapper is aria-hidden, so screen readers skip the placeholder lines.`,`The lines have no role and take no focus.`]}},{name:`AppSkeletonRows`,marker:null,acceptsChildren:!1,props:[{name:`cols`,type:`number`,required:!1,description:`Number of placeholder cells in each row.`,default:5},{name:`rows`,type:`number`,required:!1,description:`Number of placeholder rows to draw.`,default:4}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table is fetching its first page and you want per-row placeholders.`,`You know the column count of the loaded table, so the layout holds its shape on arrival.`],whenNot:[{text:`The data loaded but the result set is empty.`,instead:`AppEmptyState`},{text:`A table query returned no rows.`,instead:`AppEmptyState variant="table"`}],do:[{title:`Match skeleton columns to the table`,note:`Table skeletons use the same column count as the loaded table, so headers and widths never shift.`,example:[{component:`table`,children:[{component:`tbody`,children:[{component:`AppSkeletonRows`,props:{rows:3,cols:4}}]}]}]}],dont:[{title:`Match skeleton columns to the table`,note:`Two loose bars where a table is loading leaves the columns to snap into place on arrival.`,example:[{component:`div`,children:[{component:`AppSkeleton`,props:{width:`100%`,height:12}},{component:`AppSkeleton`,props:{width:`100%`,height:12}}]}]}],a11y:[`Every placeholder bar is an AppSkeleton, which is aria-hidden, so screen readers skip the rows.`]}},{name:`AppSlider`,marker:`AppSlider`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when no visible label is used.`},{name:`className`,type:`string`,required:!1,description:`Class applied to the control element.`,default:``},{name:`defaultEnd`,type:`number`,required:!1,description:`The starting end of an uncontrolled range.`},{name:`defaultStart`,type:`number`,required:!1,description:`The starting start of an uncontrolled range.`},{name:`defaultValue`,type:`number`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`end`,type:`number`,required:!1,description:`Range end (range mode).`},{name:`endName`,type:`string`,required:!1,description:`Form field name for range end.`},{name:`error`,type:`string`,required:!1,description:`Error text under the control; sets aria-invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Class applied to the wrapper field element.`,default:``},{name:`grouping`,type:`enum`,enum:[`indian`,`none`],required:!1,description:`Digit grouping of the value label: indian writes 1,50,000; none writes 150000.`,default:`none`},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the control.`},{name:`id`,type:`string`,required:!1,description:`Element id; a generated id is used when omitted.`},{name:`label`,type:`string`,required:!1,description:`Visible label above the control.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`number`,required:!1,description:`Highest value the slider can take.`,default:100},{name:`min`,type:`number`,required:!1,description:`Lowest value the slider can take.`,default:0},{name:`name`,type:`string`,required:!1,description:`Form field name (single mode).`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`range`,type:`boolean`,required:!1,description:`Enables dual-thumb range mode.`,default:!1},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`showValue`,type:`boolean`,required:!1,description:`Shows a label with the current value or values.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Control size tier.`},{name:`start`,type:`number`,required:!1,description:`Range start (range mode).`},{name:`startName`,type:`string`,required:!1,description:`Form field name for range start.`},{name:`step`,type:`number`,required:!1,description:`Distance between two allowed values.`,default:1},{name:`unit`,type:`string`,required:!1,description:`Suffix for the value label, for example %.`},{name:`value`,type:`number`,required:!1,description:`Current value (single mode).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Pick a single numeric value visually (volume, brightness, rating)`,`Select a range (price range, budget, date window)`,`Compare multiple values on a continuous scale`,`When keyboard input is secondary to visual feedback`],whenNot:[{text:`Precise multi-digit values.`,instead:`AppNumberInput`},{text:`Categorical choices.`,instead:`AppSelect, AppRadio, or AppSegmented`},{text:`Boolean on/off.`,instead:`AppSwitch`},{text:`When the scale is unclear (add labels or a reference)`}],do:[],dont:[],a11y:[`The visible label is tied to the control by id, and the control takes its accessible name from a text label or from ariaLabel.`,`aria-describedby points at the error text, or at the helper text when there is no error, and an error also sets aria-invalid.`,`A required slider shows a required mark beside its label and carries the required attribute.`]}},{name:`AppSortableList`,marker:`AppSortableList`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Names the list for assistive tech; also used in announcements when an item moves between lists.`},{name:`bordered`,type:`boolean`,required:!1,description:`False draws no border, fill or padding around each item.`,default:!0},{name:`className`,type:`string`,required:!1,description:`Extra class names for the list element.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`No item can be picked up.`,default:!1},{name:`group`,type:`string`,required:!1,description:`Name shared by lists that accept each other's items.`},{name:`handle`,type:`boolean`,required:!1,description:`Drag only from the handle. Without it an item can also be dragged from its body (links, buttons and inputs inside it keep working).`,default:!1},{name:`handleDisplay`,type:`enum`,enum:[`always`,`hover`],required:!1,description:`always shows every handle; hover shows it on item hover, handle focus, while lifted, and always on touch screens. Hover also turns the handle on.`,default:`always`},{name:`items`,type:`array`,itemFields:[{name:`content`,type:`node`,required:!1,description:`Replaces the visible text of the item.`},{name:`disabled`,type:`boolean`,required:!1,description:`Stops the item being picked up; other items can still move past it.`},{name:`id`,type:`string`,required:!0,description:`What onReorder reports for the item.`},{name:`label`,type:`string`,required:!0,description:`Names the item to assistive tech and is the visible text unless content is given.`}],required:!1,description:`The items, in the order shown. Each has an id, a label and optionally content and a disabled flag.`,default:[]},{name:`name`,type:`string`,required:!1,description:`Form field name; posts the order as one hidden input per item.`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Direction the items run; horizontal also covers a wrapping row.`,default:`vertical`},{name:`reorderLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the item's label.`,default:`Reorder {name}`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The person decides the order: priorities, steps, sections, the columns of a report.`,`A short list where seeing every item at once is the point.`],whenNot:[{text:`Rows the person adds and removes, not just orders.`,instead:`AppRepeater`},{text:`Sorting a table by a column.`,instead:`AppDataTable`},{text:`Choosing from options, not ordering them.`,instead:`AppSelect mode="multiple"`}],do:[],dont:[],a11y:[`Focus an item's handle, press Space to lift it, the arrow keys to move it, Space to drop it and Escape to cancel.`,`Every move is announced to screen readers, including a move between lists.`,`The list has role list and each item role listitem; each handle is a button named Reorder followed by the item label.`]}},{name:`AppSparkline`,marker:`AppSparkline`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the svg.`,default:``},{name:`data`,type:`array`,required:!1,description:`The values, in order. A value that is not a finite number (null, NaN, a string) is left out, and no data or a series with none left draws nothing.`},{name:`height`,type:`number`,required:!1,description:`Height in px.`,default:16},{name:`label`,type:`string`,required:!1,description:`What the trend measures; it starts the text alternative.`},{name:`namedTrendLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {label} is the label prop.`,default:`{label} trend`},{name:`oneValueText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The tokens are {name} (the trend name) and {value} (the one value).`,default:`{name} has one value, {value}.`},{name:`rangeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The tokens are {name} (the trend name), {from} and {to} (the first and last values) and {count} (the number of points).`,default:`{name} from {from} to {to} across {count} points.`},{name:`trendLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Trend`},{name:`width`,type:`number`,required:!1,description:`Width in px.`,default:48},{name:`yMin`,type:`number`,required:!1,description:`The lowest value of the line's range. Unset: the lowest data value.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The direction of a number matters more than its exact value, in a table row or beside a figure.`,`There is room for a word-sized picture and none for axes.`],whenNot:[{text:`Values that must be read, compared or dated.`,instead:`AppChart`},{text:`One reading against a known range.`,instead:`AppMeter`}],do:[],dont:[],a11y:[`The svg has role img and an aria-label that names the trend and says where the line starts and ends.`,`A custom aria-label replaces that text, and aria-hidden set to true hides the sparkline when the figure sits beside it in text.`,`A series with no usable value draws nothing.`]}},{name:`AppSpinner`,marker:`AppSpinner`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names for the spinner element.`,default:``},{name:`label`,type:`string`,required:!1,description:`Accessible name.`,default:`Loading`},{name:`size`,type:`enumOrNumber`,enum:[`md`,`sm`],required:!1,description:`A preset (sm or md), or an exact diameter in px; the border scales with it. Pass any positive number so the spinner matches what it sits in.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A short, shapeless wait, such as a validity check or an inline recalculation.`,`The busy area is too small for a skeleton to read as anything.`,`You need a busy indicator next to a status line or in a table cell.`],whenNot:[{text:`Content with a known shape is loading.`,instead:`AppSkeleton / AppSkeletonRows`},{text:`A button is submitting.`,instead:`AppButton's loading prop`},{text:`The whole app is booting.`,instead:`AppSplash`},{text:`The wait finished and there is nothing to show.`,instead:`AppEmptyState`}],do:[{title:`Name what is loading`,note:`A label that says what is happening, sized to sit inline with the thing it belongs to.`,example:[{component:`AppSpinner`,props:{size:`sm`,label:`Checking availability`}}]}],dont:[{title:`Name what is loading`,note:`A lone spinner filling a content area: no indication of what is loading, no idea how long, and the layout will jump when the real content arrives.`,example:[{component:`div`,children:[{component:`AppSpinner`}]}]}],a11y:[`The spinner is a span with role status, named by label, which is Loading unless you set it.`]}},{name:`AppSplash`,marker:`AppSplash`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`description`,type:`string`,required:!1,description:`One line of text under the mark, for example Signing you in.`},{name:`initials`,type:`string`,required:!1,description:`The fallback mark shown when there is no logo.`},{name:`label`,type:`string`,required:!1,description:`The accessible name for the live region.`,default:`Loading`},{name:`logo`,type:`node`,required:!1,description:`The brand mark, an image or an SVG. It takes the place of the initials.`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`],required:!1,description:`The mark size, a preset or an exact diameter in px. The presets are 44, 56 and 72 px.`,default:`md`},{name:`subtext`,type:`string`,required:!1,description:`A quieter second line under the text.`},{name:`variant`,type:`enum`,enum:[`bar`,`dots`,`ring`],required:!1,description:`The indeterminate boot indicator: a sweeping bar, a spinning ring or bouncing dots. Boot has no measurable percentage, so the indicator never shows progress.`,default:`bar`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The app is resolving its session and no route can render yet.`,`You are restoring state on cold start and the shell is not ready.`,`A flash of the wrong screen would otherwise be visible.`],whenNot:[{text:`A section of an already-rendered page is loading.`,instead:`AppSkeleton`},{text:`A small, shapeless wait.`,instead:`AppSpinner`},{text:`A form is submitting. Use the loading prop of the button.`,instead:`AppButton`},{text:`Boot failed and the user must be told.`,instead:`AppAlert`}],do:[],dont:[],a11y:[`The screen is a polite live region (role status, aria-live polite) named by label, so a screen reader announces the state once it settles without interrupting.`,`The indicator (bar, ring or dots) is hidden from assistive technology; the text and label carry the meaning.`,`The mark is the logo, or the initials when there is no logo.`]}},{name:`AppSplitButton`,marker:`AppSplitButton`,acceptsChildren:!1,props:[{name:`align`,type:`enum`,enum:[`end`,`start`],required:!1,description:`Which edge the menu lines up with.`,default:`end`},{name:`className`,type:`string`,required:!1,description:`Extra CSS classes added to the group.`,default:``},{name:`disabled`,type:`boolean`,required:!1,description:`Disables both halves.`,default:!1},{name:`href`,type:`url`,required:!1,description:`Makes the main button a link.`},{name:`items`,type:`array`,itemFields:[{name:`divider`,type:`boolean`,required:!1,description:`Draws a separator instead of an item.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name or any node, drawn before the item's text.`},{name:`image`,type:`string`,required:!1,description:`An image URL drawn before the item's text.`},{name:`key`,type:`string`,required:!0,description:`The React key of the menu item. Not shown.`},{name:`label`,type:`string`,required:!1,description:`The item's text.`},{name:`shortcut`,type:`string`,required:!1,description:`A key chip shown after the item's text.`},{name:`to`,type:`string`,required:!1,description:`The address the item links to.`},{name:`tone`,type:`enum`,enum:[`danger`],required:!1,description:`tone="danger" draws the item in the danger colour.`}],required:!1,description:"The menu, as the dropdown takes it. Each item needs a unique `key`. An item with divider true draws a separator.",default:[]},{name:`label`,type:`string`,required:!0,description:`The main button's text, also the group's accessible name.`},{name:`leftIcon`,type:`string`,required:!1,description:`The icon name before the main label.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the spinner on the main button and disables both halves.`,default:!1},{name:`menuLabel`,type:`string`,required:!1,description:`The accessible name of the chevron.`,default:`More actions`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the main action, drawn as a key chip after the label.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of both halves.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Both halves share it.`,default:`primary`},{name:`type`,type:`enum`,enum:[`button`,`reset`,`submit`],required:!1,description:`The main button's type.`,default:`button`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Both halves share it.`,default:`solid`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A primary action with two or three close alternatives (save and close, reply all).`,`A default the user can change without leaving the screen.`],whenNot:[{text:`Several equal actions.`,instead:`AppButtonGroup`},{text:`A menu with no main action.`,instead:`AppDropdown`}],do:[],dont:[],a11y:[`The two halves are one group (role group) named by label.`,`The chevron is named by menuLabel; Enter or Space on it opens the menu, arrows move, Escape closes it and returns focus to the chevron.`,`Disabled or loading disables both halves.`]}},{name:`AppSplitView`,marker:`AppSplitView`,acceptsChildren:!1,props:[{name:`bulkActions`,type:`node`,required:!1,description:`Buttons shown in place of the header while items are ticked, beside "N selected".`},{name:`chips`,type:`node`,required:!1,description:`A row under the header for the active filters.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root element.`,default:``},{name:`currentKey`,type:`stringOrNumber`,required:!1,description:`The key of the open item. It gets aria-current and the subtle primary background.`},{name:`empty`,type:`node`,required:!1,description:`Shown when there are no items.`,default:`Nothing here yet.`},{name:`header`,type:`node`,required:!1,description:`The list header: a count, a sort label, a filter trigger.`},{name:`items`,type:`array`,itemFields:[{name:`badge`,type:`stringOrNumber`,required:!1,description:`A short count or label at the end of the row.`},{name:`href`,type:`url`,required:!1,description:`Makes the item a link. Below stackBelow it follows the link instead of calling onSelect.`},{name:`key`,type:`stringOrNumber`,required:!0,description:`The React key of the item. Not shown.`},{name:`meta`,type:`node`,required:!1,description:`The line under the title, such as a sender or an excerpt.`},{name:`title`,type:`node`,required:!0,description:`The item's title, the first line of the list row.`},{name:`trailing`,type:`node`,required:!1,description:`Sits at the end of the row, such as a date.`}],required:!1,description:"The list. meta is the line under the title (sender, excerpt), trailing sits at the end (a date), badge is a short count or label. Keep links and buttons out of all three: the item is itself a link (with href) or a button. Each item needs a unique `key`, a string or a number.",default:[]},{name:`itemsLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Items`},{name:`listWidth`,type:`enum`,enum:[3,4,5,6,7,8],required:!1,description:`The list's share of 12 columns when side by side.`,default:5},{name:`loading`,type:`boolean`,required:!1,description:`Placeholder items instead of the list.`,default:!1},{name:`loadingLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Loading`},{name:`moveLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Move`},{name:`nextItemLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Next item`},{name:`openLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Open`},{name:`pager`,type:`boolean`,required:!1,description:`The record pager at the end of the pane header: "3 of 12" over the items on screen, and previous and next, which open the item before or after the open one as a click on it would. Turn it off to put your own pager in paneHeader for a paged list whose total is larger than the items on screen.`,default:!0},{name:`pane`,type:`node`,required:!1,description:`The open item's content.`},{name:`paneHeader`,type:`node`,required:!1,description:`Above the pane, before the pager: the open item's title or status, and a link back to the list for phones.`},{name:`previousItemLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Previous item`},{name:`readingPaneLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Reading pane`},{name:`selectAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Select all items`},{name:`selectItemLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {title} is the item's title.`,default:`Select {title}`},{name:`selectable`,type:`boolean`,required:!1,description:`A checkbox on each item and a select-all box in the header.`,default:!1},{name:`selectedKeys`,type:`array`,required:!1,description:`The keys of the ticked items. Each key is a string or a number, and the component reads it as a set.`},{name:`selectedLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {count} is the number of ticked items.`,default:`{count} selected`},{name:`shortcuts`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!0,description:`The React key of the shortcut. Not shown.`},{name:`label`,type:`string`,required:!0,description:`The name of the shortcut, shown in the shortcut sheet.`}],required:!1,description:"Extra single-key shortcuts (archive, approve), listed in the ? sheet. J, K, Enter, ? (and X with selectable) are built in and win over an extra with the same key. Each shortcut needs a `key`, a single key such as e."},{name:`shortcutsEnabled`,type:`boolean`,required:!1,description:`The keyboard shortcuts and their legend. They listen while focus is in the view, or nowhere for the first view on the page.`,default:!0},{name:`stackBelow`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`,`xxl`],required:!1,description:`Below this tier the list and pane are two screens.`,default:`xl`},{name:`untitledItemLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. Read in place of a title that is not text.`,default:`item`}],itemsTakeAction:[`items`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`People work through a queue one item at a time: approvals, an inbox, drafts, review.`,`Each item needs reading, not just a glance at a row.`,`Moving to the next item should take one key, not a page load.`],whenNot:[{text:`People compare items across many columns.`,instead:`AppDataTable`},{text:`The detail is a quick peek from a table.`,instead:`AppDrawer`},{text:`Each item is edited in a long form.`,instead:`its own page`}],do:[{title:`Mark the open list item`,note:`One item is open and marked in the list, so it is clear what the pane shows.`,example:[{component:`AppSplitView`,props:{items:[{key:`r1`,title:`Leave request: 3 days`,meta:`Asha Rao · Design`,trailing:`09:12`,badge:2},{key:`r2`,title:`Expense claim: client travel`,meta:`Dev Patel · Sales`,trailing:`Yesterday`},{key:`r3`,title:`Laptop replacement`,meta:`Meera Iyer · Engineering`,trailing:`Mon`}],currentKey:`r2`,pane:{component:`p`,children:`Expense claim: client travel`}}}]},{title:`One line of context per item`,note:`Items carry a title and one line of context; the detail waits in the pane.`,example:[{component:`AppSplitView`,props:{items:[{key:`r1`,title:`Leave request: 3 days`,meta:`Asha Rao · Design`,trailing:`09:12`,badge:2},{key:`r2`,title:`Expense claim: client travel`,meta:`Dev Patel · Sales`,trailing:`Yesterday`},{key:`r3`,title:`Laptop replacement`,meta:`Meera Iyer · Engineering`,trailing:`Mon`}],currentKey:`r1`,shortcutsEnabled:!1,pane:{component:`p`,children:`Leave request: 3 days`}}}]}],dont:[{title:`Mark the open list item`,note:`A pane with content but no open item: nothing in the list says which item it belongs to.`,example:[{component:`AppSplitView`,props:{items:[{key:`r1`,title:`Leave request: 3 days`,meta:`Asha Rao · Design`,trailing:`09:12`,badge:2},{key:`r2`,title:`Expense claim: client travel`,meta:`Dev Patel · Sales`,trailing:`Yesterday`},{key:`r3`,title:`Laptop replacement`,meta:`Meera Iyer · Engineering`,trailing:`Mon`}],shortcutsEnabled:!1,pane:{component:`p`,children:`Expense claim: client travel`}}}]},{title:`One line of context per item`,note:`Packing the detail into the list makes every item tall and the queue slow to scan.`,example:[{component:`AppSplitView`,props:{items:[{key:`r1`,title:`Leave request: 3 days`,meta:`Asha Rao · Design · Pending · 09:12 · submitted with three attachments and a note`},{key:`r2`,title:`Expense claim: client travel`,meta:`Dev Patel · Sales · Pending · Yesterday · submitted with three attachments and a note`},{key:`r3`,title:`Laptop replacement`,meta:`Meera Iyer · Engineering · Approved · Mon · submitted with three attachments and a note`}],currentKey:`r1`,shortcutsEnabled:!1,pane:{component:`p`,children:`Leave request: 3 days`}}}]}],a11y:[`The open item carries aria-current true. J and K move between items, Enter opens the focused one, X ticks it when selectable, and ? lists every shortcut.`,`Each item checkbox is named Select followed by the item title, and the select-all box is named Select all items; the selected count is a polite live region.`,`The list is named Items and shows aria-busy while loading; the pane is a section named Reading pane that takes focus.`]}},{name:`AppStatusBadge`,marker:`AppStatusBadge`,acceptsChildren:!1,props:[{name:`bordered`,type:`boolean`,required:!1,description:`Draws a 1px border in the tone's own colour, so the pill stands off a white row.`,default:!1},{name:`className`,type:`string`,required:!1,description:`Extra classes on the pill, appended after the tone class.`,default:``},{name:`label`,type:`node`,required:!1,description:`The status text, as a string or a React node. When it is empty the badge draws a plain hyphen.`},{name:`tone`,type:`string`,required:!1,description:`The tone class suffix: neutral, primary, success, warning, danger or info.`,default:`neutral`},{name:`tooltip`,type:`string`,required:!1,description:`A hover and focus tooltip that flips to stay on screen. Use it to spell out a terse status.`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The preferred tooltip side. Auto picks the side with the most room.`,default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`You are showing where a record stands, a lifecycle or workflow status.`,`A table has a status column that should read consistently down the list.`,`You are mapping a status enum to a coloured pill.`],whenNot:[{text:`You are showing a count or a short static label.`,instead:`AppBadge`},{text:`The token should be removable (a filter or tag).`,instead:`AppChip`},{text:`The user is picking one option from a set.`,instead:`AppChoiceChip`},{text:`It is a persistent inline message.`,instead:`AppAlert`}],do:[{title:`One consistent tone per status`,note:`Each status maps to a consistent, meaningful tone: the colour reinforces the word.`,example:[{component:`AppStatusBadge`,props:{label:`Active`,tone:`success`}},{component:`AppStatusBadge`,props:{label:`Pending`,tone:`warning`}},{component:`AppStatusBadge`,props:{label:`Failed`,tone:`danger`}}]},{title:`Pill holds one or two words`,note:`A single, concise status word, instantly scannable.`,example:[{component:`AppStatusBadge`,props:{label:`Failed`,tone:`danger`}}]}],dont:[{title:`One consistent tone per status`,note:`One tone for every status throws away the signal: the colour tells the user nothing.`,example:[{component:`AppStatusBadge`,props:{label:`Active`,tone:`info`}},{component:`AppStatusBadge`,props:{label:`Pending`,tone:`info`}},{component:`AppStatusBadge`,props:{label:`Failed`,tone:`info`}}]},{title:`Pill holds one or two words`,note:`A pill is not a place for a sentence: keep the status to a word or two and explain elsewhere.`,example:[{component:`AppStatusBadge`,props:{label:`Payment failed, retry scheduled for tomorrow`,tone:`danger`}}]}],a11y:[`The status is real text in a span, so the word carries the meaning and the colour only reinforces it.`,`With no label the badge draws a plain hyphen instead of an empty pill.`,`A tooltip, when set, opens on hover and on keyboard focus and flips to stay on screen.`]}},{name:`AppStepper`,marker:`AppStepper`,acceptsChildren:!1,props:[{name:`active`,type:`number`,required:!1,description:`The index of the current step. Steps before it are done, the one at it is active, the rest are pending; a step's own status still wins.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the stepper's root element.`,default:``},{name:`iconSize`,type:`number`,required:!1,description:`The width and height in px of every step glyph. Unset, it follows size.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of every step glyph.`,default:`linear`},{name:`label`,type:`string`,required:!1,description:`The accessible name of the list.`,default:`Progress`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Lay the steps out in a row or stack them down a side rail.`,default:`horizontal`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Scales the badge, its number, the labels and the glyphs together.`,default:`md`},{name:`stepLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {number} is the step's number.`,default:`Step {number}`},{name:`steps`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A short second line under the label.`},{name:`href`,type:`url`,required:!1,description:`Makes the step a link back to that stage.`},{name:`icon`,type:`string`,required:!1,description:`An icon name shown in place of the step number.`},{name:`key`,type:`string`,required:!1,description:`The React key of the step. Not shown.`},{name:`label`,type:`string`,required:!0,description:`The text under the step: what the step is for.`},{name:`status`,type:`enum`,enum:[`active`,`done`,`error`,`pending`],required:!1,description:`The state of the step. A done step shows a tick and an error step an alert; an unset status follows active.`}],required:!1,description:"The stages of the flow, in order. A step with href links back to that stage. Each step may carry a unique `key`.",default:[]},{name:`tone`,type:`enum`,enum:[`info`,`primary`],required:!1,description:`The accent of the active and done steps.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`journey`,`steps`],required:!1,description:`steps is compact, a numbered circle above its label. journey is wide, a large dot beside a step index and a title.`,default:`steps`}],itemsTakeAction:[`steps`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A task is split across several screens and the user needs to see the shape of it.`,`Steps have a fixed order and a known count.`,`Finished steps matter: the user may want to go back and check one.`],whenNot:[{text:`The sections are alternative views the user switches between freely.`,instead:`AppTabs`},{text:`It is one long form on a single screen.`,instead:`the .fld-section heading`},{text:`The number of steps is unknown or changes as the user goes.`,instead:`a progress message`},{text:`You are showing progress of a background job.`,instead:`AppSpinner`}],do:[{title:`Name each step by its action`,note:`Label each step with the action it performs, and mark exactly one step active. Three to five steps is the readable range.`,example:[{component:`AppStepper`,props:{steps:[{key:`a`,label:`Add site`,status:`done`},{key:`b`,label:`Add zones`,status:`active`},{key:`c`,label:`Create report`}]}}]}],dont:[{title:`Name each step by its action`,note:`The label "Step 2" adds nothing: the circle already says 2. The label is the only place that can tell the user what the step is for.`,example:[{component:`AppStepper`,props:{steps:[{key:`a`,label:`Step 1`,status:`done`},{key:`b`,label:`Step 2`,status:`active`},{key:`c`,label:`Step 3`}]}}]}],a11y:[`The stepper is a nav named by label, and the active step carries aria-current step, so a screen reader announces where the user is.`,`A finished step shows a tick and a failed step shows an alert glyph instead of its number, so the state is not carried by colour alone.`,`A step with href is a link and, with onStepClick in code, every step is a button; a step with neither is plain text.`]}},{name:`AppSwitch`,marker:`AppSwitch`,acceptsChildren:!1,props:[{name:`checked`,type:`boolean`,required:!1,description:`Controlled on or off state. Pair it with onChange.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the form-check wrapper.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultChecked`,type:`boolean`,required:!1,description:`The starting state when the switch is uncontrolled.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the switch and dims it.`},{name:`error`,type:`string`,required:!1,description:`Error message shown below the control. It replaces the helper text and marks the switch invalid.`},{name:`help`,type:`node`,required:!1,description:`Content for the info-tip after the label. Shown only when a label is set.`},{name:`helpLabel`,type:`string`,required:!1,description:`aria-label for the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown below the control. It is hidden while an error shows.`},{name:`id`,type:`string`,required:!1,description:`The id of the switch input, which its label points at. A generated id is used when none is given.`},{name:`label`,type:`node`,required:!1,description:`The text shown beside the switch. It is a real label tied to the input.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The field name the switch posts under in a form.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`,`pill`,`round`],required:!1,description:`The track shape. round is the sliding pill with circular ends, pill is the same pill with squircle ends, and circle is a compact round on/off button.`,default:`round`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The control size: sm, md or lg.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A single on/off setting that takes effect immediately.`,`Toggling a live feature or preference: dark mode, notifications, a feature flag.`,`A binary state where "instant" is the mental model, not "save later".`],whenNot:[{text:`The opt-in is saved with the rest of a form.`,instead:`AppCheckbox`},{text:`The user picks one of several exclusive options.`,instead:`AppRadio`},{text:`It triggers an action rather than holding a state.`,instead:`AppButton`},{text:`The user selects several values from a list.`,instead:`AppSelect mode="multiple"`}],do:[{title:`Use a switch for instant settings`,note:`An on/off setting that applies right away. The switch reads as a live control.`,example:[{component:`AppSwitch`,props:{label:`Email notifications`,checked:!0},handlers:[`onChange`]}]},{title:`Caption every switch`,note:`Each switch is captioned, so the user knows exactly what it controls and its current state.`,example:[{component:`AppSwitch`,props:{label:`Auto-renew`,defaultChecked:!0}},{component:`AppSwitch`,props:{label:`Beta features`}}]}],dont:[{title:`Use a switch for instant settings`,note:`A checkbox reads as a form field to submit later, the wrong signal for an instant toggle.`,example:[{component:`AppCheckbox`,props:{label:`Email notifications`,defaultChecked:!0}}]},{title:`Caption every switch`,note:`A bare switch with no caption leaves the user guessing what it turns on.`,example:[{component:`AppSwitch`,props:{label:`Setting`,defaultChecked:!0}}]}],a11y:[`The control is a native checkbox input, so Space toggles it and it posts with a form.`,`label draws a real label tied to the input by id, using a generated id when none is given.`,`An error sets aria-invalid to true and is linked to the input with aria-describedby; helper text is linked the same way while no error shows.`]}},{name:`AppTablePagination`,marker:`AppTablePagination`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the pager.`,default:`Pagination`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the pager.`,default:``},{name:`hasNext`,type:`boolean`,required:!1,description:`Set when the total is not known yet: draws Previous and Next only, Next disabled when false. Leave total and totalPages unset.`},{name:`mode`,type:`enum`,enum:[`numbered`,`prev-next`],required:!1,description:`numbered shows windowed page buttons (first, last and an ellipsis over any run of hidden pages) between the arrows. prev-next shows the arrows with a Page N of M readout.`,default:`numbered`},{name:`nextLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Next page`},{name:`page`,type:`number`,required:!0,description:`The current page, counted from 1.`},{name:`pageLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {page} is the page number.`,default:`Page {page}`},{name:`pageSize`,type:`number`,required:!1,description:`The rows per page. The page-size menu shows it as selected; without it, or without onPageSizeChange, no menu shows.`},{name:`pageSizeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The token {count} is the page size.`,default:`{count} per page`},{name:`pageSizes`,type:`array`,required:!1,description:`The page sizes the menu offers. It offers 5, 10, 25 and 50 when left out. The current pageSize is added when it is not in the list.`},{name:`previousLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Previous page`},{name:`rangeText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The tokens {page} and {pages} are the current page and the page count.`,default:`Page {page} of {pages}`},{name:`rowsPerPageLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Rows per page`},{name:`showPageSize`,type:`boolean`,required:!1,description:`Shows the page-size menu. Set it to false for a pager that pages but does not expose the page size.`,default:!0},{name:`siblings`,type:`number`,required:!1,description:`The pages shown either side of the current page in numbered mode.`,default:2},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`sm draws 28px page and arrow buttons with 12px text.`,default:`md`},{name:`summary`,type:`boolean`,required:!1,description:`Shows Showing x to y of z at the start of the pager. It needs total and pageSize; without both nothing is shown.`,default:!1},{name:`summaryText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The tokens {first}, {last} and {total} are the first and last rows on the page and the row total. It shows with summary.`,default:`Showing {first} to {last} of {total}`},{name:`total`,type:`number`,required:!1,description:`The number of rows across all pages. Used when totalPages is not given: the page count is the total divided by pageSize, rounded up.`},{name:`totalPages`,type:`number`,required:!1,description:`The number of pages. It wins over total when both are given.`},{name:`variant`,type:`enum`,enum:[`footer`,`standalone`],required:!1,description:`footer sits under a table, right aligned, with a top rule. standalone is centred with no rule, for cards and lists.`,default:`footer`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A list is long enough that showing everything at once is unwieldy.`,`The user needs to control how many rows they see at a time.`,`You are paging content that is not an AppDataTable and need the footer standalone.`],whenNot:[{text:`The list is short and fits comfortably on one screen.`,instead:`no pager`},{text:`You are already using AppDataTable.`,instead:`the pagination prop on AppDataTable`},{text:`The user should keep scrolling instead of paging.`,instead:`infinite scroll`}],do:[{title:`Show the page and the total`,note:`The page buttons show the current page and how many there are, so the user always knows where they are in the list.`,example:[{component:`AppTablePagination`,props:{page:1,totalPages:5,pageSize:10}}]},{title:`Sit the pager under its table`,note:`The pager sits flush under the table it controls, so the two read as one visual unit.`,example:[{component:`div`,children:[{component:`AppDataTable`,props:{columns:[{key:`name`,label:`Building`},{key:`status`,label:`Status`}],rows:[{id:1,name:`Building 1`,status:`Draft`},{id:2,name:`Building 2`,status:`Compliant`},{id:3,name:`Building 3`,status:`Compliant`},{id:4,name:`Building 4`,status:`Draft`},{id:5,name:`Building 5`,status:`Compliant`}]}},{component:`AppTablePagination`,props:{page:1,totalPages:9,pageSize:5}}]}]}],dont:[{title:`Show the page and the total`,note:`Bare prev/next buttons with no page readout hide how big the list is or where the user stands.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`button`,props:{type:`button`,className:`btn btn-sm`},children:`Prev`},{component:`button`,props:{type:`button`,className:`btn btn-sm`},children:`Next`}]}]},{title:`Sit the pager under its table`,note:`A pager floating above its table breaks the expected footer placement and reads as disconnected.`,example:[{component:`div`,children:[{component:`AppTablePagination`,props:{page:1,totalPages:5,pageSize:10}},{component:`AppDataTable`,props:{columns:[{key:`name`,label:`Building`},{key:`status`,label:`Status`}],rows:[{id:1,name:`Building 1`,status:`Draft`},{id:2,name:`Building 2`,status:`Compliant`},{id:3,name:`Building 3`,status:`Compliant`}]}}]}]}],a11y:[`The previous and next arrows are native buttons named Previous page and Next page, disabled on the first and last page.`,`Each page button is named Page N, and the current one carries aria-current="page".`,`The ellipsis between page buttons is hidden from assistive technology.`,`The page-size menu is named Rows per page.`]}},{name:`AppTableToolbar`,marker:`AppTableToolbar`,acceptsChildren:!1,props:[{name:`actions`,type:`node`,required:!1,description:`The right side: search, export or a columns menu.`},{name:`allMatchingSelected`,type:`boolean`,required:!1,description:`Every matching row is selected: the bar reads All N selected and Clear becomes Clear selection. The screen resets it on any row change.`,default:!1},{name:`allSelectedLabel`,type:`string`,required:!1,description:`The bulk bar's count text when every matching row is selected, for other languages. {count} is the matching row total.`,default:`All {count} selected`},{name:`bulkActions`,type:`node`,required:!1,description:`The buttons shown in the bulk bar.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the toolbar.`,default:``},{name:`clearLabel`,type:`string`,required:!1,description:`The Clear button's text, for other languages.`,default:`Clear`},{name:`clearSelectionLabel`,type:`string`,required:!1,description:`The Clear button's text when every matching row is selected, for other languages.`,default:`Clear selection`},{name:`filters`,type:`node`,required:!1,description:`The left side: status segments, chips or a filter menu.`},{name:`pageCount`,type:`number`,required:!1,description:`The rows on the current page. The offer waits until selectedCount reaches it; without it, any selection qualifies.`},{name:`selectAllMatchingLabel`,type:`string`,required:!1,description:`The Select all button's text, for other languages. {count} is the matching row total.`,default:`Select all {count} matching`},{name:`selectedCount`,type:`number`,required:!1,description:`The number of selected rows. Above 0 the bulk bar replaces the toolbar.`,default:0},{name:`selectedLabel`,type:`string`,required:!1,description:`The bulk bar's count text, for other languages. {count} is the selected row count.`,default:`{count} selected`},{name:`totalCount`,type:`number`,required:!1,description:`The rows matching across every page. With onSelectAllMatching, the bulk bar offers Select all N matching once the page is selected and more rows match than it shows.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A table needs filters, a search box or export above it.`,`Rows are selectable and the selection has actions of its own.`,`You want the filter strip and the bulk bar to share one place, so the table never jumps.`],whenNot:[{text:`The table has no filters, search or selection.`,instead:`no toolbar`},{text:`You are paging through rows.`,instead:`AppTablePagination`},{text:`The action belongs to one row, not a selection.`,instead:`the rowActions prop on AppDataTable`}],do:[{title:`Show bulk actions only when selected`,note:`Bulk actions appear only while rows are selected, with the count and a way out.`,example:[{component:`AppTableToolbar`,props:{selectedCount:2,bulkActions:{component:`AppButton`,props:{size:`sm`,tone:`danger`,leftIcon:`trash-2`},children:`Delete`}}}]},{title:`Filters left, search and actions right`,note:`Filters narrow the rows on the left; search and actions sit on the right.`,example:[{component:`AppTableToolbar`,props:{filters:{component:`AppSegmented`,props:{label:`Filter by status`,size:`sm`,value:`all`,options:[{value:`all`,label:`All`},{value:`draft`,label:`Draft`},{value:`compliant`,label:`Compliant`}]},handlers:[`onChange`]},actions:{component:`div`,props:{className:`d-flex align-items-center gap-2`},children:[{component:`AppSearch`,props:{value:``,placeholder:`Search buildings`,ariaLabel:`Search buildings`},handlers:[`onChange`]},{component:`AppActionIcon`,props:{icon:`download`,label:`Export all`}}]}}}]}],dont:[{title:`Show bulk actions only when selected`,note:`A row of always-visible, disabled bulk buttons takes space and explains nothing until something is selected.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppButton`,props:{size:`sm`,variant:`outline`,disabled:!0},children:`Send reminder`},{component:`AppButton`,props:{size:`sm`,variant:`outline`,disabled:!0},children:`Export`}]}]},{title:`Filters left, search and actions right`,note:`Search first and filters last, scattered with no shared strip: the eye has no fixed place to look.`,example:[{component:`div`,props:{className:`d-flex gap-2`},children:[{component:`AppSearch`,props:{value:``,placeholder:`Search buildings`,ariaLabel:`Search buildings`},handlers:[`onChange`]},{component:`AppSegmented`,props:{label:`Filter by status`,size:`sm`,value:`all`,options:[{value:`all`,label:`All`},{value:`draft`,label:`Draft`},{value:`compliant`,label:`Compliant`}]},handlers:[`onChange`]}]}]}],a11y:[`The selected count is an aria-live polite region, so a change in the selection is announced.`,`Only one of the two rows is shown at a time: the other has the hidden attribute, so it leaves the accessibility tree.`,`Select all N matching and Clear are native buttons.`]}},{name:`AppTabs`,marker:`AppTabs`,acceptsChildren:!1,props:[{name:`activation`,type:`enum`,enum:[`automatic`,`manual`],required:!1,description:`Whether the arrow keys also select. automatic selects as focus moves. manual moves focus only and selects on Enter or Space.`,default:`automatic`},{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the tab strip.`},{name:`className`,type:`string`,required:!1,description:`Extra class names added to the tab strip.`,default:``},{name:`fitted`,type:`boolean`,required:!1,description:`The tabs share the width equally instead of scrolling.`,default:!1},{name:`maxVisible`,type:`number`,required:!1,description:`Puts the tabs that do not fit the row in a More menu, as overflow menu does. The selected tab always stays visible.`},{name:`moreLabel`,type:`string`,required:!1,description:`The text of the More button when overflow is menu.`,default:`More`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`horizontal lays the tabs in a row. vertical renders a side rail.`,default:`horizontal`},{name:`overflow`,type:`enum`,enum:[`menu`,`scroll`],required:!1,description:`What a horizontal strip does when the tabs do not fit. scroll scrolls it with chevrons and edge fades. menu moves the tabs that do not fit into a More menu and always keeps the selected tab visible. Ignored when orientation is vertical.`,default:`scroll`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the tabs.`,default:`md`},{name:`tabs`,type:`array`,itemFields:[{name:`count`,type:`number`,required:!1,description:`A count printed after the label with Indian digit grouping, such as 1,284.`},{name:`countLabel`,type:`string`,required:!1,description:`Text shown in the count pill instead of count, such as 3 open.`},{name:`countPending`,type:`boolean`,required:!1,description:`Shows an empty count pill that script fills in later, such as a count still loading. It takes no count or countLabel.`},{name:`danger`,type:`boolean`,required:!1,description:`Draws the tab and its indicator in the danger colour.`},{name:`disabled`,type:`boolean`,required:!1,description:`The tab cannot be selected.`},{name:`href`,type:`url`,required:!1,description:`Turns the tab into a link to this address.`},{name:`icon`,type:`icon`,required:!1,description:`An icon name from the library catalogue, or a custom node, shown before the label.`},{name:`image`,type:`string`,required:!1,description:`A picture URL, such as a logo or avatar, shown before the label. It wins over icon.`},{name:`imageAlt`,type:`string`,required:!1,description:`Alternative text for the image.`},{name:`key`,type:`string`,required:!0,description:`The React key of the tab. Not shown.`},{name:`label`,type:`node`,required:!0,description:`The text of the tab.`},{name:`rel`,type:`string`,required:!1,description:`The link rel.`},{name:`target`,type:`string`,required:!1,description:`The link target, such as _blank. A new-window link gets rel noopener noreferrer unless rel is set.`},{name:`to`,type:`string`,required:!1,description:`Turns the tab into a router link to this route. A plain link when the page supplies no link component.`},{name:`tone`,type:`string`,required:!1,description:`Tints the count pill: success, warning, danger or info.`},{name:`tooltip`,type:`node`,required:!1,description:`A hint shown on hover and focus.`}],required:!0,description:"The tabs, in order. Each tab also needs a unique `key`."},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`success`,`warning`],required:!1,description:`Tints the count pill of a tab. Set it as tone on a tab, not on the strip.`},{name:`value`,type:`string`,required:!0,description:`The key of the selected tab.`},{name:`variant`,type:`enum`,enum:[`pills`,`underline`],required:!1,description:`The look of the strip: an underline with a sliding bar, or pills.`,default:`underline`}],itemsTakeAction:[`tabs`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A record or page has a few peer sections (Overview, Activity, Settings) the user switches between.`,`A list needs quick filters (All / Active / Archived) that swap the rows in place.`,`The set of views is small and stable, so every one stays a single click away.`],whenNot:[{text:`The views are ordered steps that must be completed in sequence.`,instead:`a wizard or stepper`},{text:`There are many options to choose from.`,instead:`AppSelect`},{text:`Each view is a full destination with its own URL.`,instead:`router navigation`},{text:`You are toggling a single on/off setting.`,instead:`AppSwitch`}],do:[{title:`Short labels for peer views`,note:`A few short, peer labels: the user sees every view at a glance.`,example:[{component:`AppTabs`,props:{tabs:[{key:`overview`,label:`Overview`},{key:`activity`,label:`Activity`},{key:`settings`,label:`Settings`}],value:`overview`,ariaLabel:`Sections`}}]},{title:`Tabs switch views, never steps`,note:`A count on a filter tab tells the user how much is behind it before they click.`,example:[{component:`AppTabs`,props:{tabs:[{key:`all`,label:`All`,count:12},{key:`open`,label:`Open`,count:3}],value:`all`,ariaLabel:`Filters`}}]}],dont:[{title:`Short labels for peer views`,note:`Sentence-long labels break the scannable rhythm a tab strip depends on.`,example:[{component:`AppTabs`,props:{tabs:[{key:`a`,label:`Show all of the records`},{key:`b`,label:`Only the ones still open`},{key:`c`,label:`The archived ones from before`}],value:`a`,ariaLabel:`Sections`}}]},{title:`Tabs switch views, never steps`,note:`Fitted pills read as a segmented control. Do not use them for sequential steps; that is a stepper.`,example:[{component:`AppTabs`,props:{tabs:[{key:`a`,label:`One`},{key:`b`,label:`Two`},{key:`c`,label:`Three`}],value:`a`,variant:`pills`,fitted:!0,ariaLabel:`Steps`}}]}],a11y:[`The strip is a tablist and each tab has role tab with aria-selected; a vertical strip sets aria-orientation, and ariaLabel names the strip.`,`Only one tab is in the tab order at a time (a roving tabindex). Arrow keys, Home and End move between tabs and skip disabled ones; Up and Down replace Left and Right when vertical.`,`Automatic activation selects a tab as focus moves; manual activation moves focus only and selects on Enter or Space.`,`A tab with href or to is a real link, so open in new tab and middle click work; a link tab is not selected by arrow keys, and a new-window link gets rel noopener noreferrer.`,`The scroll chevrons are left out of the tab order and carry accessible names, and the sliding indicator is hidden from assistive technology.`]}},{name:`AppTextarea`,marker:`AppTextarea`,acceptsChildren:!1,props:[{name:`autoGrow`,type:`boolean`,required:!1,description:`Grows the height to fit the content as the user types.`,default:!1},{name:`className`,type:`string`,required:!1,description:`A class added to the control.`,default:``},{name:`controlOnly`,type:`boolean`,required:!1,description:`Draws only the control: no field wrapper, label row or message line. Name it with aria-label, aria-labelledby or a label the page draws, because the component draws none.`,default:!1},{name:`defaultValue`,type:`stringOrNumber`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the field and keeps it out of the form post.`,default:!1},{name:`error`,type:`node`,required:!1,description:`An error message. It replaces the helper text and marks the field invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`A class added to the wrapping field.`,default:``},{name:`help`,type:`node`,required:!1,description:`Info-tip content shown beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`node`,required:!1,description:`Helper text under the field.`},{name:`id`,type:`string`,required:!1,description:`The control's id. A generated id is used when this is unset.`},{name:`label`,type:`node`,required:!1,description:`The label above the field.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`maxLength`,type:`number`,required:!1,description:`The character cap. The count turns red as it is approached.`},{name:`monospace`,type:`boolean`,required:!1,description:`Sets the monospace font on the control, for codes, logs and pasted data.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The field name the text posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the empty field.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Locks the field; the value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required and shows the required mark beside the label.`,default:!1},{name:`rows`,type:`number`,required:!1,description:`The visible number of text lines.`,default:4},{name:`showCount`,type:`boolean`,required:!1,description:`Shows a live character count under the field, as count / maxLength when maxLength is set.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control size: sm, md, lg or xl.`,default:`md`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The controlled value, paired with onChange.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`The value is free-form text that can run past a single line: a note, description, comment, or address block.`,`You want the same labelled treatment (helper text, error, required) as the rest of the form, for a longer answer.`,`The user might write a few words or a few paragraphs and you can't predict which.`],whenNot:[{text:`The value is a single short line: a name, email, or reference.`,instead:`AppInput`},{text:`The user picks from a fixed set of options.`,instead:`AppSelect`},{text:`It is a search box that filters a list.`,instead:`AppSearch`}],do:[{title:`Keep a visible label`,note:`A visible label stays put while the user types and is read by screen readers.`,example:[{component:`AppTextarea`,props:{label:`Scope of work`,name:`scope`,helperText:`What the assessment covers.`}}]},{title:`Match the height to the answer`,note:`A height that matches the expected answer keeps the form compact and scannable.`,example:[{component:`AppTextarea`,props:{label:`Note`,name:`note`,rows:3,placeholder:`A short note…`}}]},{title:`Say exactly what to change`,note:`A specific error tells the user exactly what to change.`,example:[{component:`AppTextarea`,props:{label:`Description`,name:`d1`,required:!0,error:`Add at least one sentence describing the work.`}}]}],dont:[{title:`Keep a visible label`,note:`A placeholder used as the label vanishes on the first keystroke and fails accessibility.`,example:[{component:`AppTextarea`,props:{name:`scope`,placeholder:`Scope of work`}}]},{title:`Match the height to the answer`,note:`An oversized box wastes space and signals 'write an essay' when you wanted a sentence.`,example:[{component:`AppTextarea`,props:{label:`Note`,name:`note`,rows:10,placeholder:`A short note…`}}]},{title:`Say exactly what to change`,note:`'Invalid' leaves them guessing what is actually wrong.`,example:[{component:`AppTextarea`,props:{label:`Description`,name:`d2`,required:!0,error:`Invalid`}}]}],a11y:[`The label is tied to the field with a for and id pair, and a generated id is used when none is given.`,`The field carries the native required attribute as well as the visible required mark.`,`aria-invalid is set from error, and aria-describedby points at the error text, or at the helper text when there is no error.`,`The info tip beside the label is named by helpLabel.`]}},{name:`AppThemeToggle`,marker:`AppThemeToggle`,acceptsChildren:!1,props:[{name:`autoLabel`,type:`string`,required:!1,description:`The segmented variant's option text for the system-following mode.`,default:`System`},{name:`className`,type:`string`,required:!1,description:`A class added to the toggle.`,default:``},{name:`darkLabel`,type:`string`,required:!1,description:`The segmented variant's option text for dark.`,default:`Dark`},{name:`duration`,type:`number`,required:!1,description:`The effect length in milliseconds. Each effect has its own default.`},{name:`effect`,type:`enum`,enum:[`blinds`,`circle`,`fade`,`none`,`slide`,`wave`],required:!1,description:`The page-wide effect that plays when the theme changes.`,default:`fade`},{name:`includeAuto`,type:`boolean`,required:!1,description:`Offers the system-following mode beside light and dark. Off, the toggle offers only light and dark.`,default:!0},{name:`label`,type:`string`,required:!1,description:`The accessible name: the disc's tooltip, or the segmented group's name.`,default:`Theme`},{name:`lightLabel`,type:`string`,required:!1,description:`The segmented variant's option text for light.`,default:`Light`},{name:`name`,type:`string`,required:!1,description:`The segmented variant's field name, which groups its radios. A generated name is used when this is unset.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The disc's glyph size (16, 20, 24 or 28 px) or the segmented strip's size; xl draws the lg strip.`,default:`md`},{name:`storageKey`,type:`string`,required:!1,description:`The localStorage key the choice is kept under.`,default:`theme`},{name:`tooltipPlacement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:`The disc's preferred tooltip side.`,default:`auto`},{name:`variant`,type:`enum`,enum:[`icon`,`segmented`],required:!1,description:`One cycling disc, or one option per mode.`,default:`icon`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`One disc in the app chrome (the topbar, the sidebar foot) that switches the whole product`,`A settings row that offers System, Light and Dark (variant="segmented")`],whenNot:[{text:`A per-section or per-card theme: the switch is page-wide by design`},{text:`Branding colour choices: that is a theme variable, not a mode`}],do:[],dont:[],a11y:[`The disc is an icon button named by the label and the current mode, such as "Theme: dark".`,`The segmented variant is one radio option per mode inside a group named by the label.`,`Without the View Transitions API, under reduced motion, or when the page already shows the requested theme, the switch is instant.`]}},{name:`AppTimePicker`,marker:`AppTimePicker`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the control. When unset, a text label names it.`},{name:`className`,type:`string`,required:!1,description:`A class added to the control.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting value of an uncontrolled field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks the field.`},{name:`error`,type:`string`,required:!1,description:`An error message. It replaces the helper text and marks the field invalid.`},{name:`fieldClassName`,type:`string`,required:!1,description:`A class added to the wrapping field.`,default:``},{name:`format`,type:`enum`,enum:[12,24],required:!1,description:`The display format, 12 or 24 hour. The wire value stays 24 hour.`,default:24},{name:`help`,type:`node`,required:!1,description:`Content for the info tip beside the label.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text under the field.`},{name:`id`,type:`string`,required:!1,description:`The control's id. A generated id is used when this is unset.`},{name:`label`,type:`node`,required:!1,description:`The label above the field.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest time that can be picked, as "HH:mm".`},{name:`min`,type:`string`,required:!1,description:`The earliest time that can be picked, as "HH:mm".`},{name:`name`,type:`string`,required:!1,description:`The field name the time posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`The text shown while no time is chosen.`,default:`Select time`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required and shows the required mark beside the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`The control height tier, matching AppInput; leave unset for the default height.`},{name:`step`,type:`number`,required:!1,description:`The minutes between choices. The control accepts any minute (step 1) when this is unset.`},{name:`value`,type:`string`,required:!1,description:`The time as 24-hour "HH:mm" text, which is also the wire format.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a time of day: a meeting time, a schedule slot, a booking time.`,`You need one consistent time picker across every browser and both surfaces.`,`Restricting selection to a valid window with min / max.`,`Controlling step granularity (1, 15, 30, or 60 minutes).`],whenNot:[{text:`You need both a date and a time.`,instead:`a date picker next to a time picker`},{text:`The value is free text, not a time.`,instead:`AppInput`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[],dont:[],a11y:[`The trigger is named by ariaLabel, or by a text label when there is none.`,`An error sets aria-invalid and points aria-describedby at the error text, or at the helper text when there is no error.`,`The field carries the required attribute as well as the visible required mark.`,`The info tip beside the label is named by helpLabel.`]}},{name:`AppTimeline`,marker:`AppTimeline`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`A class added to the list.`,default:``},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of the dot icons. Unset, steps use bulk and the others linear.`},{name:`items`,type:`array`,itemFields:[{name:`at`,type:`node`,required:!1,description:`The date, already formatted by the caller (IST, DD-MMM-YYYY).`},{name:`atTitle`,type:`string`,required:!1,description:`The full date and time shown on hover over the date. Unset, there is no tooltip.`},{name:`by`,type:`string`,required:!1,description:`Who did it.`},{name:`byHref`,type:`url`,required:!1,description:`A link for the by name: a path starting with one slash, or an http or https address, with no spaces. It needs by.`},{name:`description`,type:`node`,required:!1,description:`A plain line of text under the title. With markdown set it is Markdown source and must be a string.`},{name:`eyebrow`,type:`node`,required:!1,description:`Steps variant: the label above the title. Unset it reads Step 1, Step 2 and so on; an empty string hides it.`},{name:`icon`,type:`string`,required:!1,description:`The icon name for the dot. Unset, a feed shows a filled circle and a progress step shows its status glyph.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the item. When unset, the date and the position are used.`},{name:`note`,type:`string`,required:!1,description:`A boxed note under the item. With markdown set it is Markdown source.`},{name:`status`,type:`enum`,enum:[`cancelled`,`current`,`done`,`on-hold`,`rejected`,`skipped`,`upcoming`],required:!1,description:`Progress variant: the state of the stage, which sets the dot and the rail.`},{name:`time`,type:`string`,required:!1,description:`An optional time of day shown beside the date, already formatted (HH:mm).`},{name:`title`,type:`node`,required:!0,description:`What happened, or the stage name.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`success`,`warning`],required:!1,description:`The colour of the item.`}],required:!1,description:`The entries. Feed: newest first. Progress and steps: first stage first.`,default:[]},{name:`markdown`,type:`boolean`,required:!1,description:`Draws each item's description and note as Markdown (bold, italics, lists, links, code); raw HTML shows as text. Both must then be strings. Unset, they show as plain text.`,default:!1},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Feed and progress: vertical or horizontal. Steps: a row from md up and a column below, where vertical keeps the column at every width.`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`],required:!1,description:`A preset, or the dot diameter in px. The presets scale the dot, text and spacing together; a number sets only the dot.`},{name:`stepLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. The {number} token is the step's position, counted from 1.`,default:`Step {number}`},{name:`variant`,type:`enum`,enum:[`feed`,`progress`,`steps`],required:!1,description:`The layout: an activity feed, a status tracker for a fixed sequence of stages, or a numbered process.`,default:`feed`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A sequence of events or steps where the order matters.`,`Feed: an audit trail or sign-off history that shows what happened, when, and who did it.`,`Progress: a live status tracker (an order, a loan, an onboarding) with a state on every step.`],whenNot:[{text:`The rows are records to sort, filter or page through.`,instead:`AppDataTable`},{text:`It is a form wizard's position indicator with no per-step history or status.`,instead:`AppStepper`},{text:`They are label/value facts with no time or step dimension.`,instead:`AppDescriptions`},{text:`There is nothing to show yet.`,instead:`AppEmptyState`}],do:[{title:`Record what happened, by whom, when`,note:`Title in the past tense saying what happened, plus the actor and an absolute timestamp: the three things an audit reader is looking for.`,example:[{component:`AppTimeline`,props:{items:[{key:`g`,tone:`success`,icon:`check-circle`,title:`Report approved`,at:`24-Jul-2026`,time:`14:05`,by:`Priya Sharma`}]}}]}],dont:[{title:`Record what happened, by whom, when`,note:`'Status changed' to what, by whom? And '2 days ago' cannot be cross-referenced against anything, so an audit trail needs absolute times.`,example:[{component:`AppTimeline`,props:{items:[{key:`b`,title:`Status changed`,at:`2 days ago`}]}}]}],a11y:[`The timeline is an ordered list, with one list item per entry, so assistive technology announces the order and the count.`,`A by name with a byHref is a normal link, and byHref without by is refused.`,`The full date on hover is a title attribute on the date text, so it shows for a pointer only.`]}},{name:`AppToast`,marker:`AppToast`,acceptsChildren:!1,props:[{name:`animation`,type:`enum`,enum:[`jelly`,`organic`,`rise`,`spring`],required:!1,description:"Default entrance motion for every toast: `rise` (soft fade and lift), `organic` (surface materializes, status icon grows from a dot, message trails in), `jelly` (squash-and-stretch drop), `spring` (elastic slide-up). A per-toast `animation` option overrides it.",default:`rise`},{name:`className`,type:`string`,required:!1,description:`Extra class on the container element.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The close button's accessible name on every toast, for other languages.`,default:`Close`},{name:`maxVisible`,type:`number`,required:!1,description:`Most toasts shown at once. Older ones collapse to a "+N more" chip.`,default:4},{name:`offset`,type:`number`,required:!1,description:"Distance in pixels from the screen edge the stack pins to, top or bottom. Ignored for middle-center and the side edges. The default is the `--wui-toast-edge-offset` token.",default:16},{name:`position`,type:`enum`,enum:[`bottom-center`,`bottom-end`,`bottom-start`,`middle-center`,`top-center`,`top-end`,`top-start`],required:!1,description:`Which corner or edge of the screen the toasts stack in.`,default:`bottom-end`},{name:`shape`,type:`enum`,enum:[`pill`,`rounded`,`sharp`],required:!1,description:"Default corner treatment. A per-toast `shape` option overrides it.",default:`rounded`},{name:`surface`,type:`enum`,enum:[`auto`,`inverse`],required:!1,description:"`inverse` renders every toast on the opposite surface of the active mode: a dark card in light mode, a light card in dark mode, so the stack always contrasts with the page. A per-toast `surface` option overrides it.",default:`auto`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A brief confirmation or error that should not interrupt the flow ("Saved", "Copied").`,`A background result the user should notice but does not have to act on right away.`],whenNot:[{text:`A message that must be acknowledged before continuing.`,instead:`AppConfirmDialog`},{text:`A persistent, in-context validation or status message.`,instead:`AppAlert`},{text:`An explanatory aside that stays on the page.`,instead:`AppAlert with accent and role none`}],do:[],dont:[],a11y:[`Each toast is a live region: warning and danger toasts use role alert and announce assertively, success and info toasts use role status and announce politely, and the whole message is read at once.`,`Every toast carries a status icon as well as its colour, and a close button named Close.`,`The auto-dismiss countdown pauses on hover and focus, and a toast with duration 0 stays until it is closed.`]}},{name:`AppToolbar`,marker:`AppToolbar`,acceptsChildren:!1,props:[{name:`actions`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`Disables this action.`},{name:`icon`,type:`icon`,required:!0,description:`The action's icon: a library icon name or an icon node.`},{name:`key`,type:`string`,required:!1,description:`A stable key for the action; it falls back to the title and position.`},{name:`title`,type:`string`,required:!0,description:`The action's accessible name, since the button shows only its icon.`}],required:!1,description:`Momentary buttons after a divider: fire and forget, never selected.`,default:[]},{name:`className`,type:`string`,required:!1,description:`Extra class on the toolbar element.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`Initially active tool (uncontrolled).`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the whole toolbar.`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`Keeps this tool visible but not selectable.`},{name:`icon`,type:`icon`,required:!0,description:`The tool's icon: a library icon name or an icon node.`},{name:`title`,type:`string`,required:!0,description:`The tool's name, shown beside the icon while the tool is active.`},{name:`value`,type:`string`,required:!0,description:`The tool's value: what posts in a form and what value matches.`}],required:!1,description:`The tools, left to right.`,default:[]},{name:`label`,type:`string`,required:!0,description:`Accessible name for the toolbar.`},{name:`name`,type:`string`,required:!1,description:`Field name grouping the radios, and what posts in a form. Defaults to a generated one.`},{name:`value`,type:`string`,required:!1,description:`The active tool's value (controlled).`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A work surface (canvas, editor, board) where the user picks the tool in hand.`,`The set is small and icon-first, with one clearly active tool.`,`Commands that belong beside the tools ride along as momentary actions.`],whenNot:[{text:`You are choosing a form value, such as view mode, period or theme.`,instead:`AppSegmented`},{text:`The icons are row or record actions in a table or header.`,instead:`AppActionIcon`},{text:`You want navigation shortcuts on a marketing page.`,instead:`AppFloatingDock`}],do:[],dont:[],a11y:[`The strip has role toolbar, named by the label prop, and aria-disabled when the whole toolbar is disabled.`,`Tools are real radio inputs inside labels, so arrow keys move between them, the strip is one tab stop and screen readers announce the choice.`,`Momentary actions are buttons named by their title, and the expand and collapse motion honours reduced motion.`]}},{name:`AppTooltip`,marker:`AppTooltip`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra class on the tooltip element.`,default:``},{name:`content`,type:`node`,required:!0,description:`The tooltip text or node.`},{name:`open`,type:`boolean`,required:!1,description:`Shows the panel open, for a design preview or a controlled caller.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`end`,`start`,`top`],required:!1,description:"Where the tooltip appears. A named side is preferred but flips if needed to stay in view; `auto` picks the side with the most room outright. The bubble is a native popover in the top layer, so it never clips off-screen.",default:`top`},{name:`shortcut`,type:`string`,required:!1,description:`The key that runs the action ("A", "E", "/"), drawn as a key chip after the text ("Approve A"). One character is written in upper case.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:"Preset size (font size, padding and max width). For a fully custom size, pass a `className` that sets the `--wui-tooltip-font-size`, `--wui-tooltip-padding-y`, `--wui-tooltip-padding-x` and `--wui-tooltip-max-width` CSS vars.",default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`neutral`,`primary`,`success`,`warning`],required:!1,description:"Preset colour of the tooltip. `neutral` is the light surface look; the others are solid tints. For a fully custom colour, pass a `className` whose rule sets the `--wui-tooltip-bg`, `--wui-tooltip-color`, `--wui-tooltip-border` and `--wui-tooltip-radius` CSS vars.",default:`neutral`},{name:`variant`,type:`enum`,enum:[`inverse`],required:!1,description:"`inverse` draws the tooltip on a dark surface, for a tip inside a light page."}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Quick, context-sensitive hints on icon buttons, abbreviations, shortcuts.`,`Brief content: a sentence or two, never a help article.`,`Alongside clear labels or icons, not instead of them.`],whenNot:[{text:`Essential information: not everyone hovers, so put it in visible copy.`},{text:`Help text that exists only in the tooltip; repeat it in the form or docs.`},{text:`Tooltips on every element: clutter trains people to ignore them.`}],do:[],dont:[],a11y:[`The tooltip opens on hover and on keyboard focus of the trigger, so keyboard users get the same hint.`,`The tooltip carries a generated id, and the trigger points at it with aria-describedby while it is open.`,`Placement flips to stay inside the viewport, but essential information still belongs in visible copy.`]}},{name:`AppTour`,marker:`AppTour`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra class names on the tour element.`},{name:`endDialog`,type:`boolean`,required:!1,description:`Show the closing dialog after the last step.`,default:!0},{name:`endNextHref`,type:`string`,required:!1,description:`Where the closing dialog's next step goes; the step shows only with labels.endNextLabel set.`},{name:`labels`,type:`object`,fields:[{name:`advance`,type:`string`,required:!1,description:`The sentence for a click-to-advance step, default "Click {actionName} to continue.", where {actionName} is the step's actionLabel or else its target's accessible name.`},{name:`back`,type:`string`,required:!1,description:`The Back button text, default Back.`},{name:`done`,type:`string`,required:!1,description:`The last step's button text when the closing dialog is off, default Done.`},{name:`endButton`,type:`string`,required:!1,description:`The closing dialog's button text, default "Done".`},{name:`endMessage`,type:`string`,required:!1,description:`The closing dialog's message, a short friendly line by default.`},{name:`endNextLabel`,type:`string`,required:!1,description:`The closing dialog's next-step button text. The step shows only when this is set, and it goes to endNextHref.`},{name:`endTitle`,type:`string`,required:!1,description:`The closing dialog's title, default "You're all set".`},{name:`mediaPause`,type:`string`,required:!1,description:`Names a step loop's pause button while it plays, default "Pause animation".`},{name:`mediaPlay`,type:`string`,required:!1,description:`Names a step loop's play button while it is paused, default "Play animation".`},{name:`next`,type:`string`,required:!1,description:`The Next button text, default Next.`},{name:`progress`,type:`string`,required:!1,description:`The step count template, default "Step {current} of {total}".`},{name:`skip`,type:`string`,required:!1,description:`The Skip button text, default Skip.`}],required:!1,description:"Button text, defaults Back, Next, Skip, Done. `done` is the last step's button only with `endDialog` false; while the closing dialog is on, the last step reads `next`, because the dialog follows."},{name:`open`,type:`boolean`,required:!0,description:`Runs the tour. Set it back to false from onClose.`},{name:`seenStore`,type:`object`,required:!1,description:`Remembers that a person has seen the tour: it is asked before showing and written when the tour finishes or is skipped, with that outcome. Read through a ref, so an inline object does not restart a running tour.`},{name:`steps`,type:`array`,itemFields:[{name:`actionLabel`,type:`string`,required:!1,description:`Names the control in that sentence, in place of the target's accessible name, which it falls back to.`},{name:`advanceOn`,type:`enum`,enum:[`click`],required:!1,description:`With click, the tour moves on when the person clicks the target, and the card says what to click.`},{name:`description`,type:`string`,required:!0,description:`The step text.`},{name:`media`,type:`string`,required:!1,description:`The URL of an image or short loop shown above the title.`},{name:`mediaAlt`,type:`string`,required:!1,description:`The text alternative of the media.`},{name:`mediaPoster`,type:`string`,required:!1,description:`The still a loop shows under reduced motion.`},{name:`mediaType`,type:`enum`,enum:[`image`,`video`],required:!1,description:`Whether the media is an image or a looping video.`},{name:`target`,type:`string`,required:!1,description:`A CSS selector for the element the step points at. Left out, the step is a welcome card with no spotlight.`},{name:`title`,type:`string`,required:!1,description:`The step card's heading.`}],required:!0,description:`The steps, in order. A step with no target is a welcome card, centred over the page. A step whose target is missing or hidden is dropped.`},{name:`tourId`,type:`string`,required:!0,description:`Names the tour in the seen store.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person meets a screen for the first time and a handful of controls need a one-line explanation each.`,`A new feature needs pointing out where it sits on a screen people already know.`,`The steps follow a natural order the person can walk in under a minute.`,`The tour teaches one clear first action, such as creating the first item: give the closing dialog a next step (endNextLabel with endNextHref) that goes to it. With no single clear action, leave the dialog with Done alone.`],whenNot:[{text:`You need to explain one control, on demand.`,instead:`AppTooltip`},{text:`You are collecting information in steps.`,instead:`AppWizard`},{text:`You want a closable note with a link, not a walk.`,instead:`AppPopover`}],do:[],dont:[],a11y:[`Focus moves into the card on open, stays there while the tour runs and returns to where it was on close; each step is announced.`,`Escape skips the tour, and the arrow keys move between steps except while focus is in a field.`,`On a phone the card sits on the side of the target with room and never covers it; the closing dialog says the tour is done, and Escape there closes the tour as finished.`]}},{name:`AppTransferList`,marker:`AppTransferList`,acceptsChildren:!1,props:[{name:`addAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Add all shown`},{name:`addLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the row label.`,default:`Add {name}`},{name:`ariaLabel`,type:`string`,required:!1,description:`Names the group when there is no label.`},{name:`availableTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Available`},{name:`chosenTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Chosen`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the root.`,default:``},{name:`defaultValue`,type:`array`,required:!1,description:`The chosen ids, in order, when the list is uncontrolled.`,default:[]},{name:`disabled`,type:`boolean`,required:!1,description:`Stops every move and every search.`,default:!1},{name:`dragHintText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Press Space to pick up a row, then Left or Right to move it across, or Up and Down to reorder the chosen rows.`},{name:`emptyAvailableText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove an item from Chosen to see it here.`},{name:`emptyAvailableTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Everything is chosen`},{name:`emptyChosenText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Use Add on an item, or press Enter on it.`},{name:`emptyChosenTitle`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Nothing chosen yet`},{name:`error`,type:`node`,required:!1,description:`An error message under the lists. Also marks the group as described by it.`},{name:`helperText`,type:`node`,required:!1,description:`A hint under the lists.`},{name:`id`,type:`string`,required:!1,description:`The id of the group's root element.`},{name:`items`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`A disabled row never moves.`,default:!1},{name:`id`,type:`string`,required:!0,description:`The value this row posts.`},{name:`label`,type:`string`,required:!0,description:`The row's visible name.`},{name:`secondary`,type:`string`,required:!1,description:`A smaller line under the label, also searched.`}],required:!0,description:`The rows. Available shows the ones not chosen, in this order. Each has an id, a label, an optional secondary line and an optional disabled flag.`},{name:`label`,type:`node`,required:!1,description:`The visible label above both lists.`},{name:`name`,type:`string`,required:!1,description:`Posts one hidden input per chosen id, in order, under this name.`},{name:`noMatchText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {query} is the search text.`,default:`No matches for "{query}"`},{name:`orderHintText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`The order of Chosen is kept. Drag the grip to reorder.`},{name:`removeAllLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Remove all`},{name:`removeLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {name} is the row label.`,default:`Remove {name}`},{name:`reorderable`,type:`boolean`,required:!1,description:`Lets the person reorder Chosen. With false, Chosen keeps the order it was given and rows move by button or drag only.`,default:!0},{name:`searchLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages. {title} is the list title.`,default:`Search {title}`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Search`},{name:`searchable`,type:`boolean`,required:!1,description:`Shows a search box on each list.`,default:!0},{name:`value`,type:`array`,required:!1,description:`The chosen ids, in order. Controlled when given. Ids that match no item are dropped and never posted.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A person builds an ordered or unordered set by moving rows between Available and Chosen.`],whenNot:[{text:`A flat pick from a long list, with no need to see the rest.`,instead:`AppSelect`},{text:`A pick from a hierarchy.`,instead:`AppTreePicker`},{text:`Reordering one list only.`,instead:`AppSortableList`}],do:[],dont:[],a11y:[`Each row action names its row: Add Alpha, Remove Alpha.`,`Every move is announced in a polite status line.`,`Enter on a row moves it between the lists, and focus follows the row to its new list.`,`Space lifts a Chosen row and the arrow keys move it; Escape cancels.`]}},{name:`AppTreePicker`,marker:`AppTreePicker`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the tree, when there is no visible label.`},{name:`chosenTitle`,type:`string`,required:!1,description:`Heading of the chosen list.`,default:`Chosen`},{name:`className`,type:`string`,required:!1,description:`Extra class names on the tree element.`,default:``},{name:`clearAllLabel`,type:`string`,required:!1,description:`Label of the button that clears every choice.`,default:`Clear all`},{name:`defaultValue`,type:`any`,required:!1,description:`Leaf ids chosen when the field first draws (uncontrolled): an array in multiple mode, one id in single mode.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the field.`},{name:`emptyText`,type:`string`,required:!1,description:`Text under the empty title.`,default:`Tick items in the tree.`},{name:`emptyTitle`,type:`string`,required:!1,description:`Shown in the chosen list when nothing is chosen.`,default:`Nothing chosen yet`},{name:`error`,type:`node`,required:!1,description:`An error message under the field; it also marks the field invalid.`},{name:`helperText`,type:`node`,required:!1,description:`Help text under the field.`},{name:`id`,type:`string`,required:!1,description:`The id of the field.`},{name:`label`,type:`node`,required:!1,description:`The field label.`},{name:`name`,type:`string`,required:!1,description:`Form field name: one hidden value per chosen id.`},{name:`noMatchText`,type:`string`,required:!1,description:`Shown when the search matches nothing; {query} is the search text.`},{name:`nodes`,type:`array`,itemFields:[{name:`children`,type:`array`,required:!1,description:`The node's child nodes, in the same shape.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the node; a disabled leaf is never chosen.`},{name:`icon`,type:`string`,required:!1,description:`A library icon name.`},{name:`id`,type:`string`,required:!0,description:`The node's id, unique across the whole tree.`},{name:`label`,type:`string`,required:!0,description:`The node's plain text label.`}],required:!0,description:`The hierarchy to pick from. Ids are strings, unique across the whole tree. A node with children is a parent; only leaves can be chosen.`},{name:`removeLabel`,type:`string`,required:!1,description:`Remove button label; {name} is the chosen item.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`},{name:`searchLabel`,type:`string`,required:!1,description:`Accessible name of the search box.`,default:`Search`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`Placeholder of the search box.`,default:`Search`},{name:`selectedText`,type:`string`,required:!1,description:`Count line; {n} is the number chosen.`},{name:`selection`,type:`enum`,enum:[`multiple`,`single`],required:!1,description:`multiple ticks leaves and parents; single picks one leaf.`,default:`multiple`},{name:`value`,type:`any`,required:!1,description:`Chosen leaf ids (controlled): an array in multiple mode, one id in single mode.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A form needs one or many leaves of a hierarchy, such as departments and their teams.`],whenNot:[{text:`A flat set of options.`,instead:`AppSelect`},{text:`A browsable hierarchy that is not a form field.`,instead:`AppTreeView`},{text:`Moving rows between two lists.`,instead:`AppTransferList`}],do:[],dont:[],a11y:[`Follows the WAI-ARIA tree pattern: ArrowDown and ArrowUp move between rows, Home and End jump to the first and last row, and typing jumps to the next row whose label starts with the text typed.`,`ArrowRight opens a closed parent or moves to its first child; ArrowLeft closes an open parent or moves to its parent.`,`Only one row is in the tab order (a roving tabindex), so Tab reaches the tree once and the arrow keys move the focus between rows.`,`Enter and Space pick the focused row. In multiple selection they tick or untick it; in single selection they choose a leaf and do nothing on a parent. A disabled row ignores both keys.`,`In multiple selection the tree is multiselectable and each row reports aria-checked as true, false or mixed. A parent is mixed when some of its enabled leaves are chosen. Ticking a parent picks every enabled leaf under it, and ticking a parent whose leaves are all chosen clears them.`,`In single selection each leaf reports aria-selected; a parent never does.`,`Each row reports its depth, a parent reports aria-expanded, and a disabled row reports aria-disabled.`,`The visible checkboxes and expand chevrons are hidden from assistive technology and skipped by Tab; the row itself is the control.`,`The search box is named by the search label. ArrowDown and ArrowUp move from it into the tree. Typing matches labels ignoring case, keeps each match with its whole subtree and opens every parent of a match. When nothing matches, the no-match text with the query appears under the search box; it is not announced.`,`Backspace in an empty search box removes the last chosen item, in multiple selection only.`,`The Chosen panel lists each chosen leaf under its parent's label. Each item has a Remove button named with the remove label and the item's name. Clear all empties the selection and is disabled when nothing is chosen.`,`A polite status line under the Chosen panel announces the count, such as '2 selected', whenever the number of chosen items changes.`,`The tree is named by the visible label through aria-labelledby; ariaLabel replaces that name when it is set.`,`After Remove or Clear all, focus moves to the next Remove button, else the previous one, else the search box.`,`The error or helper text is linked to the field with aria-describedby.`]}},{name:`AppTreeView`,marker:`AppTreeView`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name of the tree.`},{name:`checked`,type:`array`,required:!1,description:`Checked ids (multiple mode, controlled).`},{name:`className`,type:`string`,required:!1,description:`Extra class names on the tree.`,default:``},{name:`errorText`,type:`string`,required:!1,description:`Announced when they fail.`,default:`Could not load. Try again.`},{name:`id`,type:`string`,required:!1,description:`The id of the tree element.`},{name:`loadUrl`,type:`url`,required:!1,description:`Children endpoint used when loadChildren is not set: a GET with parentId=<id> added, answering a JSON array of nodes.`},{name:`loadingText`,type:`string`,required:!1,description:`Announced while children load.`,default:`Loading`},{name:`name`,type:`string`,required:!1,description:`Form field name: multiple posts one value per checked id, single posts the selected id.`},{name:`nodes`,type:`array`,itemFields:[{name:`badge`,type:`string`,required:!1,description:`Short text in a badge after the label.`},{name:`badgeTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The tone of the badge, one of AppBadge's tones.`},{name:`checked`,type:`boolean`,required:!1,description:`True to start the node checked (multiple selection).`},{name:`children`,type:`array`,required:!1,description:`The node's child nodes, in the same shape. An empty list marks a leaf.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the node.`},{name:`expanded`,type:`boolean`,required:!1,description:`True to start the node open.`},{name:`hasChildren`,type:`boolean`,required:!1,description:`True when the children are fetched the first time the node opens.`},{name:`icon`,type:`string`,required:!1,description:`A library icon name.`},{name:`id`,type:`string`,required:!0,description:`The node's id, unique across the whole tree.`},{name:`label`,type:`string`,required:!0,description:`The node's plain text label.`}],required:!0,description:"The hierarchy to show. Ids are strings, unique across the whole tree. `children: []` is a leaf; `hasChildren: true` with no `children` is a node whose children are fetched the first time it opens."},{name:`selected`,type:`string`,required:!1,nullable:!0,description:`Selected id (single mode, controlled). The tree shows this id whatever the user clicks until you change it; null selects nothing, and dropping the prop clears it.`},{name:`selection`,type:`enum`,enum:[`multiple`,`none`,`single`],required:!1,description:`How rows are chosen: none, single (one selected row) or multiple (a tri-state checkbox per node).`,default:`none`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Data that nests to unknown depth: folders, categories, permissions.`,`Choosing several items across levels with a parent that reflects its children.`,`Large hierarchies where branches load when opened.`],whenNot:[{text:`A flat list of choices.`,instead:`AppSelect, AppSelect mode="multiple", or AppRadioGroup`},{text:`Content that opens and closes in place.`,instead:`AppAccordion`},{text:`Site or app navigation.`,instead:`AppShell`},{text:`People by reporting line, drawn as an org chart.`,instead:`AppOrgTree`}],do:[],dont:[],a11y:[`Follows the WAI-ARIA tree pattern: arrow keys move between rows and open or close branches, Home and End jump to the first and last row, typing jumps to a label, and Enter or Space activates a row.`,`In multiple selection each row has a tri-state checkbox: a parent is checked, unchecked or mixed from its children.`,`ariaLabel names the tree, and the loading and error text are announced while children load or fail.`]}},{name:`AppTruncate`,marker:`AppTruncate`,acceptsChildren:!0,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`lines`,type:`number`,required:!1,description:`How many lines show before the cut. 1 is a single line cut by width.`,default:1},{name:`width`,type:`string`,required:!1,description:`A CSS length the text never exceeds, such as 12rem or 240px. Without it the text takes the width it is given.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Names and descriptions in cards, rows and lists where the layout fixes the width.`,`Any text where the full value still matters on demand.`],whenNot:[{text:`Text a reader must see in full to act on.`,instead:`Let it wrap`},{text:`Long copy that needs a read-more.`,instead:`Show it in full on its own page`}],do:[],dont:[],a11y:[`Text that is cut gets a tab stop and shows its full text in a tooltip on hover and on keyboard focus.`,`Text that fits takes no tab stop and shows no tooltip.`,`The whole text stays in the page as ordinary text, so assistive technology reads all of it.`]}},{name:`AppUpdateBar`,marker:`AppUpdateBar`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the bar, such as sticky-top to keep it in view.`,default:``},{name:`description`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`A new version of this app is ready.`},{name:`dismissLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Dismiss`},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows a close button. The bar then stays closed until it remounts.`,default:!1},{name:`reloadLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Reload`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A newer build of the app is live and the current page still works.`],whenNot:[{text:`A code file of the old build failed to load and the page broke.`,instead:`AppRouteError`},{text:`A message about the whole app that is not about a new version.`,instead:`AppBanner`}],do:[{title:`Let people choose when to reload`,note:`Tell the person and let them choose when to reload.`,example:[{component:`AppUpdateBar`,props:{}}]}],dont:[{title:`Let people choose when to reload`,note:`A forced reload throws away what the person was typing.`,example:[{component:`div`,props:{className:`small`},children:`The page reloads by itself in the middle of a form.`}]}],a11y:[`The bar has role status, so a screen reader announces it without moving focus.`,`Reload is a native button, reached with Tab and used with Enter or Space.`,`With dismissible the close button is a native button named Dismiss.`]}},{name:`AppWhatsNew`,marker:`AppWhatsNew`,acceptsChildren:!1,props:[{name:`className`,type:`string`,required:!1,description:`Extra classes on the element.`,default:``},{name:`emptyText`,type:`string`,required:!1,description:`Shown when there are no entries.`,default:`Nothing new yet`},{name:`entries`,type:`array`,itemFields:[{name:`body`,type:`string`,required:!1,description:`A short paragraph under the heading.`},{name:`date`,type:`string`,required:!0,description:`The day it shipped, as an ISO date (YYYY-MM-DD) or date-time. It shows as DD-MMM-YYYY.`},{name:`href`,type:`url`,required:!1,description:`Where the entry's link goes. The link shows only when this is set.`},{name:`id`,type:`string`,required:!1,description:`A stable key for the entry. It defaults to the date and the position.`},{name:`imageAlt`,type:`string`,required:!1,description:`Describes the picture. Leave it empty when the picture adds nothing.`},{name:`imageHeight`,type:`number`,required:!1,description:`The picture's intrinsic height in px. Set it with imageWidth so the picture keeps its space while it loads.`},{name:`imageSrc`,type:`string`,required:!1,description:`A picture shown under the text, loaded lazily.`},{name:`imageWidth`,type:`number`,required:!1,description:`The picture's intrinsic width in px. Set it with imageHeight so the picture keeps its space while it loads.`},{name:`linkLabel`,type:`string`,required:!1,description:`The link's text. It shows Learn more when left out.`},{name:`title`,type:`string`,required:!0,description:`The entry's heading.`}],required:!1,description:`The release notes, shown in the order passed.`,default:[]},{name:`indicator`,type:`enum`,enum:[`count`,`dot`],required:!1,description:`The unread mark on the trigger: a dot, or the number of unread entries.`,default:`dot`},{name:`label`,type:`string`,required:!1,description:`The trigger's name and the panel's heading.`,default:`What's new`},{name:`readThrough`,type:`string`,required:!1,description:`An ISO date or date-time read on another device or saved on the server. Entries up to the later of it and the stored read state count as read.`},{name:`storageKey`,type:`string`,required:!1,description:`Names where read state is kept. Include the user's id.`},{name:`unreadLabel`,type:`string`,required:!1,description:`Added to the trigger's name while there are unread entries.`,default:`unread`}],itemsTakeAction:[`entries`],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Telling everyone about a feature or change since their last visit.`,`A short, dated list of release notes.`],whenNot:[{text:`Messages addressed to the person.`,instead:`The shell's notification bell`},{text:`A one-off tour of a screen.`,instead:`AppTour`}],do:[],dont:[],a11y:[`The trigger is a native button with aria-haspopup dialog, and the element keeps its aria-expanded and aria-controls in step with the panel.`,`The panel is a dialog named by label; opening it moves focus into the panel, and Escape closes it and returns focus to the trigger.`,`The unread dot is hidden from assistive technology; the unread state is spoken through unreadLabel in the trigger's name.`]}},{name:`AppWizard`,marker:`AppWizard`,acceptsChildren:!0,props:[{name:`active`,type:`number`,required:!1,description:`The current step's index when the wizard is controlled, used together with onStepChange.`},{name:`align`,type:`enum`,enum:[`center`,`start`],required:!1,description:`Where each step's badge, label and description sit in its column on a horizontal stepper: centred, or at the start with the line running from badge to badge. It applies to the steps and icons variants.`,default:`center`},{name:`backLabel`,type:`string`,required:!1,description:`The text of the Back button.`,default:`Back`},{name:`barTitle`,type:`string`,required:!1,description:`The title at the start of the top bar.`},{name:`className`,type:`string`,required:!1,description:`Extra classes on the wizard.`,default:``},{name:`closeLabel`,type:`string`,required:!1,description:`The accessible name of the top bar's close button.`,default:`Close`},{name:`defaultActive`,type:`number`,required:!1,description:`The step the wizard starts on when it is not controlled.`,default:0},{name:`disabled`,type:`boolean`,required:!1,description:`Disables all navigation.`,default:!1},{name:`doneTone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:`Recolours completed steps only (their badge, STEP n eyebrow and the filled line after them). The current step keeps the tone accent; unset, completed steps follow tone.`},{name:`finishLabel`,type:`string`,required:!1,description:`The text of the Finish button on the last step.`,default:`Finish`},{name:`hideConnectors`,type:`boolean`,required:!1,description:`Drops the line joining the steps, on every variant and orientation. Lines show by default.`,default:!1},{name:`hideStepper`,type:`boolean`,required:!1,description:`Hides the progress header.`,default:!1},{name:`iconSize`,type:`number`,required:!1,description:`Every header glyph's width and height in px. Unset, it follows size (14, 16 or 20).`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The iconsax style of every header glyph: the done tick, the error alert, the skipped dash and each step's own icon. Unset draws the linear style.`},{name:`label`,type:`string`,required:!1,description:`The accessible name of the stepper.`,default:`Progress`},{name:`nextLabel`,type:`string`,required:!1,description:`The text of the Next button.`,default:`Next`},{name:`nonLinear`,type:`boolean`,required:!1,description:`Allows jumping to any step, not only completed ones.`,default:!1},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Lays the stepper out as a row or as a column.`,default:`horizontal`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Scales the stepper header: the badge, its number, the labels and the glyphs.`,default:`md`},{name:`skipLabel`,type:`string`,required:!1,description:`The text of the Skip button.`,default:`Skip`},{name:`skippable`,type:`boolean`,required:!1,description:`Shows a Skip button on every step but the last, without needing optional on each step.`,default:!1},{name:`steps`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`An optional second line under the label.`},{name:`icon`,type:`string`,required:!1,description:`A library icon name drawn in the step's badge in place of its number.`},{name:`key`,type:`string`,required:!1,description:`A stable React key for the step. It defaults to the label and the position.`},{name:`label`,type:`string`,required:!0,description:`The step's name. It must be non-empty text.`},{name:`optional`,type:`boolean`,required:!1,description:`Shows the Skip button on this step.`},{name:`status`,type:`enum`,enum:[`active`,`done`,`error`,`pending`],required:!1,description:`Forces the step's status instead of deriving it from the current step.`}],required:!1,description:`One entry per step, in step order. A list that is not an array of objects with a text label is refused with a thrown error, and an unknown field warns in development.`,default:[]},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`primary`,`success`,`warning`],required:!1,description:`Recolours the whole stepper accent (active fill, done rail, ring, done tint) to a semantic ramp. Unset keeps the variant's default: primary for steps and journey, success for icons.`},{name:`topBar`,type:`boolean`,required:!1,description:`Shows a 56px bar above the stepper with barTitle, Step N of M and a close button.`,default:!1},{name:`variant`,type:`enum`,enum:[`icons`,`journey`,`steps`,`tiles`],required:!1,description:`The stepper header style: compact circles, the wide journey bar, large connected icon badges with a STEP n eyebrow, or a row of tiles with an icon square, a label and a Done, Current or To do line.`,default:`steps`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A task is genuinely split across several ordered screens and each one is a real step, not just a tab.`,`You need the standard Back / Skip / Next / Finish footer wired up, not just a progress indicator.`,`Some steps are optional and the user should be able to skip past them explicitly.`],whenNot:[{text:`It is one form on a single screen with grouped sections.`,instead:`a form built from AppFormSection, AppFormRow and AppFormActions`},{text:`You only need to show progress, because navigation lives elsewhere (a route, a parent component).`,instead:`AppStepper`},{text:`The sections are alternative views the user switches between freely, not a sequence.`,instead:`AppTabs`}],do:[],dont:[],a11y:[`The step list is named by label (Progress by default) and the current step carries aria-current step; a step that can be reached is a native button, the others are plain text.`,`Each step panel has role tabpanel; the panels of other steps are hidden and marked aria-hidden.`,`With topBar the close button is named by closeLabel.`]}},{name:`AppWorkspaceSwitcher`,marker:`AppWorkspaceSwitcher`,acceptsChildren:!1,props:[{name:`ariaLabel`,type:`string`,required:!1,description:`The accessible name of the trigger. Without it the name is Workspace followed by the current workspace's name.`},{name:`canCreate`,type:`boolean`,required:!1,description:`Shows the create row. It is off by default because most members cannot create a workspace.`,default:!1},{name:`compact`,type:`boolean`,required:!1,description:`Draws a 36px monogram button instead of the full card, the shape a collapsed rail slot wants. The menu is the same either way.`,default:!1},{name:`createLabel`,type:`string`,required:!1,description:`The text of the create row.`,default:`Create workspace`},{name:`currentId`,type:`string`,required:!1,description:`The id of the active workspace. It drives the trigger and the tick, and falls back to the first workspace when it matches none.`},{name:`footerAction`,type:`node`,required:!1,description:`A pinned row under the list. Pass any node, or a descriptor with a label, an optional icon and an optional href that the library renders as a menu row.`},{name:`menuLabel`,type:`string`,required:!1,description:`An optional heading above the list, such as Workspaces.`},{name:`noMatchText`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`No workspaces match.`},{name:`searchLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Search workspaces`},{name:`searchPlaceholder`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`Search workspaces`},{name:`searchable`,type:`boolean`,required:!1,description:`Adds a filter box above the list. It only earns its place past roughly eight workspaces.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Scales the trigger (the card or compact square, its mark and name) and the menu (width, row padding, avatars, the create plus chip and the footer), so trigger and panel read at one size.`,default:`md`},{name:`tenants`,type:`array`,itemFields:[{name:`badge`,type:`string`,required:!1,description:`A short label at the end of the row, such as the person's role or the plan.`},{name:`id`,type:`string`,required:!0,description:`The workspace's id. currentId is matched against it.`},{name:`logoUrl`,type:`url`,required:!1,description:`The workspace's logo. Without it the mark is a monogram of the name.`},{name:`name`,type:`string`,required:!0,description:`The workspace's name, shown on the trigger and in its row.`}],required:!1,description:`The switchable workspaces.`,default:[]}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`A user can belong to more than one workspace, tenant, organisation, or company.`,`The current workspace must stay visible so a user never acts in the wrong one.`,`The sidebar or topbar needs one place to switch tenant and reach workspace settings.`],whenNot:[{text:`You are switching the signed-in USER, not the workspace.`,instead:`AppDropdown`},{text:`You are picking a value into a form field.`,instead:`AppSelect`},{text:`You need a flat list of actions behind a “⋯” trigger.`,instead:`AppDropdown`},{text:`You are navigating within one workspace.`,instead:`AppShell`}],do:[{title:`Name the current workspace`,note:`The current workspace is named on the trigger, ticked in the list, and settings are one row away.`,example:[{component:`AppWorkspaceSwitcher`,props:{tenants:[{id:`acme`,name:`Acme Corp`,badge:`Owner`},{id:`globex`,name:`Globex Ltd`},{id:`initech`,name:`Initech`}],currentId:`acme`,menuLabel:`Workspaces`,footerAction:{component:`a`,props:{className:`workspace-switcher-footer-action`,href:`/settings`},children:[{component:`AppIcon`,props:{name:`settings`,size:16}},`Workspace settings`]}}}]},{title:`Filter only a long list`,note:`Eight workspaces get a filter box, so finding one is typing rather than scrolling.`,example:[{component:`AppWorkspaceSwitcher`,props:{tenants:[{id:`acme`,name:`Acme Corp`,badge:`Owner`},{id:`globex`,name:`Globex Ltd`},{id:`initech`,name:`Initech`},{id:`umbrella`,name:`Umbrella Group`},{id:`stark`,name:`Stark Industries`},{id:`wayne`,name:`Wayne Enterprises`},{id:`soylent`,name:`Soylent Corp`},{id:`tyrell`,name:`Tyrell Corporation`}],currentId:`acme`,searchable:!0}}]}],dont:[{title:`Name the current workspace`,note:`A compact trigger in a full-width sidebar hides the workspace name, the one thing the control exists to show. Save it for a collapsed rail.`,example:[{component:`AppWorkspaceSwitcher`,props:{tenants:[{id:`acme`,name:`Acme Corp`,badge:`Owner`},{id:`globex`,name:`Globex Ltd`},{id:`initech`,name:`Initech`}],currentId:`acme`,compact:!0}}]},{title:`Filter only a long list`,note:`Three workspaces behind a search box: a control to skip past on the way to something already visible.`,example:[{component:`AppWorkspaceSwitcher`,props:{tenants:[{id:`acme`,name:`Acme Corp`,badge:`Owner`},{id:`globex`,name:`Globex Ltd`},{id:`initech`,name:`Initech`}],currentId:`acme`,searchable:!0}}]}],a11y:[`The trigger is a native button with aria-haspopup, named by ariaLabel or, without it, Workspace followed by the current name; the compact trigger keeps the full name.`,`Rows are native buttons in a dropdown menu, so Tab and the arrow keys reach them and Escape closes the menu.`,`The filter box is named Search workspaces; while typing, the arrow keys stay with the text, and Escape closes the menu.`,`Logos carry an empty alt, so each workspace name is read once.`]}},{name:`AppYearPicker`,marker:`AppYearPicker`,acceptsChildren:!1,props:[{name:`aria-invalid`,type:`any`,required:!1,description:`Marks the control invalid (aria-invalid) without an error message. A given value wins over the one an error sets, and it draws no field wrapper or message in the bare form.`},{name:`ariaLabel`,type:`string`,required:!1,description:`Accessible name when there is no visible label.`},{name:`className`,type:`string`,required:!1,description:`Classes for the wui-datepicker control itself.`,default:``},{name:`defaultValue`,type:`string`,required:!1,description:`The starting year of an uncontrolled field, as YYYY.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the control.`},{name:`displayFormat`,type:`string`,required:!1,description:`How the chosen year reads in the field, from the token yyyy; any other text is kept as written (for example FY yyyy). The onChange value stays YYYY.`,default:`yyyy`},{name:`error`,type:`string`,required:!1,description:`An error message shown under the control.`},{name:`fieldClassName`,type:`string`,required:!1,description:`Classes for the field wrapper that holds the label, helper text and error.`,default:``},{name:`help`,type:`node`,required:!1,description:`The content of the info-tip beside the label, opened by a button.`},{name:`helpLabel`,type:`string`,required:!1,description:`The accessible name of the info-tip button.`,default:`More information`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown under the control.`},{name:`id`,type:`string`,required:!1,description:`The id of the control; a unique one is made when left out.`},{name:`label`,type:`node`,required:!1,description:`The field label, shown above the control and used as its accessible name.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a busy state and blocks input while data loads.`,default:!1},{name:`max`,type:`string`,required:!1,description:`The latest selectable year, as YYYY.`},{name:`min`,type:`string`,required:!1,description:`The earliest selectable year, as YYYY.`},{name:`name`,type:`string`,required:!1,description:`The form field name the YYYY year posts under.`},{name:`optional`,type:`boolean`,required:!1,description:`Ends the label with (optional) when the field is not required. Required wins when both are set.`,default:!1},{name:`optionalLabel`,type:`string`,required:!1,description:`Replaces the built-in English text, for other languages.`,default:`(optional)`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the field while no year is chosen.`,default:`Choose a year`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value but blocks editing. The value still posts.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field required, with the required mark on the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Control height tier, matching AppInput.`},{name:`value`,type:`string`,required:!1,description:`The chosen year as YYYY.`}],itemsTakeAction:[],takesAction:[],source:`@webority/ui-react`,usage:{when:[`Capturing a single calendar year: financial year, reporting year, graduation year.`,`You need one consistent year picker across every browser and both surfaces.`,`Restricting selection to a valid window with min / max.`],whenNot:[{text:`You need a month or a full calendar date.`,instead:`AppMonthPicker`},{text:`You are capturing a start-and-end range of dates.`,instead:`AppDateRangePicker`},{text:`The value is free text, not a year.`,instead:`AppInput`},{text:`You are picking from a fixed list of labels.`,instead:`AppSelect`}],do:[{title:`Give the year a visible label`,note:`A visible label above the field. The user knows what the year is for before opening it.`,example:[{component:`AppYearPicker`,props:{id:`yp-good-year`,label:`Financial year`,value:`2026`}}]},{title:`Set min and max bounds`,note:`min / max stop invalid years at the source, so the user can only pick a real one.`,example:[{component:`AppYearPicker`,props:{value:`2026`,min:`2024`,max:`2030`}}]}],dont:[{title:`Give the year a visible label`,note:`Only a placeholder as the label, which vanishes the moment a year is picked.`,example:[{component:`AppYearPicker`,props:{value:``,placeholder:`Year`}}]},{title:`Set min and max bounds`,note:`No bounds, then reject the year after submit. Constrain up front instead.`,example:[{component:`AppYearPicker`,props:{value:`2990`}}]}],a11y:[`The field label names the control through aria-label when it is a string, and ariaLabel overrides it.`,`Helper text or error text is linked to the control with aria-describedby, and an error sets aria-invalid. A caller's aria-invalid takes its place.`,`Required and disabled are set as native attributes on the control.`]}}],tokens:{color:`bg.bg-muted.bg-subtle.border.border-strong.border-subtle.chart-1.chart-2.chart-3.chart-4.chart-5.chart-6.chart-7.chart-8.chart-axis.chart-diverging-high.chart-diverging-low.chart-diverging-mid.chart-grid.chart-label.chart-neutral.chart-seq-0.chart-seq-1.chart-seq-2.chart-seq-3.chart-seq-4.chart-seq-5.chart-seq-6.danger.danger-border.danger-pressed.danger-soft.danger-strong.danger-strong-hover.danger-text.danger-text-on-soft.field-bg.field-border.field-border-focus.field-border-hover.focus-ring.focus-ring-soft.info.info-border.info-pressed.info-soft.info-strong.info-text.info-text-on-soft.link.link-hover.neutral.neutral-hover.neutral-pressed.neutral-soft.neutral-text.offline-fill.on-danger.on-danger-strong.on-info.on-info-strong.on-neutral.on-primary.on-scrim.on-success.on-success-strong.on-surface-dark.on-surface-dark-muted.on-warning.on-warning-strong.online-fill.primary.primary-hover.primary-soft.primary-text.primary-wash.primary-wash-strong.progress-label.progress-track.scrim.scrim-strong.scrollbar.scrollbar-active.scrollbar-hover.shell-accent.shell-accent-ring.shell-active.shell-bg.shell-bg-deep.shell-bg-raised.shell-border.shell-border-strong.shell-fill.shell-fill-strong.shell-fill-subtle.shell-hover.shell-rule.shell-text.shell-text-muted.shell-text-strong.success.success-border.success-pressed.success-soft.success-strong.success-text.success-text-on-soft.surface.surface-dark.surface-dark-border.surface-ink.surface-inverse.surface-inverse-elevated.surface-inverse-raised.surface-inverse-wash-12.surface-inverse-wash-24.surface-inverse-wash-4.surface-inverse-wash-8.text.text-body.text-inverse.text-muted.text-subtle.thumb.warning.warning-border.warning-pressed.warning-soft.warning-strong.warning-strong-hover.warning-text.warning-text-on-soft`.split(`.`),space:[`2xl`,`3xl`,`4xl`,`lg`,`md`,`none`,`sm`,`xl`,`xs`,`xxs`],radius:[`2xl`,`3xl`,`lg`,`md`,`none`,`pill`,`sm`,`xl`],shadow:[`card`,`drawer`,`elevated`,`modal`,`popover`],font:[`display`,`mono`,`ui`],text:[`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`base`,`lg`,`sm`,`xl`,`xs`],leading:[`body`,`display`,`heading`,`lead`,`prose`],colorMeanings:{bg:`Page background behind the content area.`,"bg-muted":`Muted background for grouped areas and quiet controls.`,"bg-subtle":`Subtle raised background for side panels and bands.`,border:`Hairline border of cards, tables and dividers.`,"border-strong":`Stronger border for emphasised separators, chart axes and unselected control outlines.`,"border-subtle":`Softest border for inner dividers and list edges.`,"chart-1":`Colour of chart series 1, the brand primary.`,"chart-2":`Colour of chart series 2 of the eight categorical series.`,"chart-3":`Colour of chart series 3 of the eight categorical series.`,"chart-4":`Colour of chart series 4 of the eight categorical series.`,"chart-5":`Colour of chart series 5 of the eight categorical series.`,"chart-6":`Colour of chart series 6 of the eight categorical series.`,"chart-7":`Colour of chart series 7 of the eight categorical series.`,"chart-8":`Colour of chart series 8 of the eight categorical series.`,"chart-axis":`Axis line colour of charts.`,"chart-diverging-high":`Colour of values above the midpoint in a diverging chart.`,"chart-diverging-low":`Colour of values below the midpoint in a diverging chart.`,"chart-diverging-mid":`Neutral midpoint colour of a diverging chart.`,"chart-grid":`Gridline colour of charts.`,"chart-label":`Tick and legend text colour of charts.`,"chart-neutral":`Context series colour, such as the last period, and the folded Other slice.`,"chart-seq-0":`Faintest step of the magnitude ramp, for empty heatmap and calendar cells.`,"chart-seq-1":`First step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-2":`Second step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-3":`Third step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-4":`Fourth step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-5":`Fifth step of the one-hue magnitude ramp for heatmap and calendar cells.`,"chart-seq-6":`Strongest step of the one-hue magnitude ramp for heatmap and calendar cells.`,danger:`Vivid danger fill for badges, dots and danger buttons.`,"danger-border":`Tinted danger border of alerts and badges.`,"danger-pressed":`Danger fill while a control is pressed.`,"danger-soft":`Soft danger background of alerts and badges.`,"danger-strong":`Deep danger fill that carries its own ink.`,"danger-strong-hover":`Deep danger fill while a control is hovered or pressed.`,"danger-text":`Danger colour as text on a page or a soft danger tint.`,"danger-text-on-soft":`Danger text on its own soft tint, such as an alert heading.`,"field-bg":`Resting fill of input-like controls such as fields and selects.`,"field-border":`Resting border of an input-like control such as a field or select.`,"field-border-focus":`Border of a focused, open or active control such as an input or select.`,"field-border-hover":`Hover border of an input-like control.`,"focus-ring":`Colour of the keyboard focus ring drawn on focus-visible controls.`,"focus-ring-soft":`Translucent step of the focus ring colour, for a soft halo around a focused field.`,info:`Vivid info fill for badges, dots and info buttons.`,"info-border":`Tinted info border of alerts and badges.`,"info-pressed":`Info fill while a control is pressed.`,"info-soft":`Soft info background of alerts and badges.`,"info-strong":`Deep info fill that carries its own ink.`,"info-text":`Info colour as text on a page or a soft info tint.`,"info-text-on-soft":`Info text on its own soft tint, such as an alert heading.`,link:`Interactive link text.`,"link-hover":`Link text while it is hovered.`,neutral:`Quiet unbranded fill for supporting actions such as Back, Skip and Close.`,"neutral-hover":`Neutral fill while a control is hovered.`,"neutral-pressed":`Neutral fill while a control is pressed.`,"neutral-soft":`Soft neutral background of the neutral status pill.`,"neutral-text":`Text on the soft neutral background.`,"offline-fill":`Fill of the offline network banner: the source red, not the contrast-darkened danger fill.`,"on-danger":`Ink on a solid danger fill.`,"on-danger-strong":`Ink on a deep danger fill.`,"on-info":`Ink on a solid info fill.`,"on-info-strong":`Ink on a deep info fill.`,"on-neutral":`Ink on a neutral fill.`,"on-primary":`Text and icon colour on a solid primary fill.`,"on-scrim":`Ink on a scrim, such as the text of an overlay.`,"on-success":`Ink on a solid success fill.`,"on-success-strong":`Ink on a deep success fill.`,"on-surface-dark":`Text and icons on a surface-dark band.`,"on-surface-dark-muted":`Secondary text on a surface-dark band.`,"on-warning":`Ink on a solid warning fill.`,"on-warning-strong":`Ink on a deep warning fill.`,"online-fill":`Fill of the back-online network banner: the source green, not the contrast-darkened success fill.`,primary:`Primary fill for buttons, selected states and borders.`,"primary-hover":`Primary fill while a control is hovered or pressed.`,"primary-soft":`Soft primary tint behind selected and highlighted rows.`,"primary-text":`Primary as text and small glyphs on a page.`,"primary-wash":`Faint translucent primary wash over a surface.`,"primary-wash-strong":`Stronger translucent primary wash over a surface.`,"progress-label":`Label text inside a progress bar fill.`,"progress-track":`Unfilled track of a progress bar or meter.`,scrim:`Dim behind page-level backdrops such as drawers, modals and the shell.`,"scrim-strong":`Stronger dim behind media overlays that carry white ink.`,scrollbar:`Resting thumb colour of a thin scrollbar.`,"scrollbar-active":`Scrollbar thumb colour while it is dragged.`,"scrollbar-hover":`Scrollbar thumb colour while it is hovered.`,"shell-accent":`Warm accent on the dark shell that marks where the user is: the active icon, the open group's guide line, the focus outline and the avatar.`,"shell-accent-ring":`Translucent accent halo on the dark shell, for a selection or focus ring.`,"shell-active":`Fill of the active nav row on the dark shell.`,"shell-bg":`Dark navigation shell background, the sidebar behind the nav items and the workspace switcher.`,"shell-bg-deep":`Deepest shell tone, the ink on an accent mark or an avatar in the shell.`,"shell-bg-raised":`Raised shell band, the fill of the active page row inside an open group.`,"shell-border":`Border of a control on the dark shell, shown on hover.`,"shell-border-strong":`Border of a focused or open control on the dark shell.`,"shell-fill":`Translucent fill for a badge and a focused or open switcher on the dark shell.`,"shell-fill-strong":`Strongest translucent fill on the dark shell, for a control that is held.`,"shell-fill-subtle":`Faint translucent fill on the dark shell, for the open group band and the workspace switcher pill.`,"shell-hover":`Hover fill for a nav row or the sidebar toggle on the dark shell.`,"shell-rule":`Hairline divider between shell groups and under the shell brand.`,"shell-text":`Body text and nav item labels on the dark shell.`,"shell-text-muted":`Quiet text on the dark shell: group labels, nav icons, carets and the sidebar toggle.`,"shell-text-strong":`Emphasis text on the dark shell: the brand name, hovered and open rows, the switcher label.`,success:`Vivid success fill for badges, dots and success buttons.`,"success-border":`Tinted success border of alerts and badges.`,"success-pressed":`Success fill while a control is pressed.`,"success-soft":`Soft success background of alerts and badges.`,"success-strong":`Deep success fill that carries its own ink.`,"success-text":`Success colour as text on a page or a soft success tint.`,"success-text-on-soft":`Success text on its own soft tint, such as an alert heading.`,surface:`Card and panel surface.`,"surface-dark":`Band that stays dark in light and dark mode, such as a site footer or a dark hero.`,"surface-dark-border":`Hairline border or divider on a surface-dark band.`,"surface-ink":`Neutral near-black band, darker than surface-dark, that stays the same in light and dark mode, such as a footer or a contents box.`,"surface-inverse":`Inverse band on a page, such as a dark footer or an inverse toast.`,"surface-inverse-elevated":`A floating or highlighted surface two layers up on an inverse band.`,"surface-inverse-raised":`A card or panel one layer up on an inverse band.`,"surface-inverse-wash-12":`Medium translucent wash over an inverse band, for a selected or pressed tile or row.`,"surface-inverse-wash-24":`Strong translucent wash over an inverse band, for a divider or a filled chip.`,"surface-inverse-wash-4":`Faintest translucent wash over an inverse band, for a resting tile or row.`,"surface-inverse-wash-8":`Light translucent wash over an inverse band, for a hovered tile or row.`,text:`Main heading and body ink.`,"text-body":`Body copy on a tinted surface such as an alert body.`,"text-inverse":`Text on an inverse surface.`,"text-muted":`Secondary text for descriptions and muted copy.`,"text-subtle":`Tertiary text for hints, captions, timestamps and placeholders.`,thumb:`Raised thumb that marks the selected option of a segmented control.`,warning:`Vivid warning fill for badges, dots and warning buttons.`,"warning-border":`Tinted warning border of alerts and badges.`,"warning-pressed":`Warning fill while a control is pressed.`,"warning-soft":`Soft warning background of alerts and badges.`,"warning-strong":`Deep warning fill that carries its own ink.`,"warning-strong-hover":`Deep warning fill while a control is hovered or pressed.`,"warning-text":`Warning colour as text on a page or a soft warning tint.`,"warning-text-on-soft":`Warning text on its own soft tint, such as an alert heading.`}},tokenValues:{color:{bg:{light:`#f4f6f8`,dark:`#0f1117`},"bg-muted":{light:`#f5f6fa`,dark:`#232733`},"bg-subtle":{light:`#f9fbfc`,dark:`#0d0f15`},border:{light:`#ebedf3`,dark:`#3d4554`},"border-strong":{light:`#c4cada`,dark:`#515b6e`},"border-subtle":{light:`#f4f6f8`,dark:`#3d455480`},"chart-1":{light:`#4f46e5`,dark:`#aeaaf5`},"chart-2":{light:`#0a7979`,dark:`#0a7979`},"chart-3":{light:`#7c3aed`,dark:`#a78bfa`},"chart-4":{light:`#2462eb`,dark:`#3987e5`},"chart-5":{light:`#e87ba4`,dark:`#d55181`},"chart-6":{light:`#4b5675`,dark:`#8a90a0`},"chart-7":{light:`#818cf8`,dark:`#7a90ef`},"chart-8":{light:`#a78bfa`,dark:`#8dc2ff`},"chart-axis":{light:`#c4cada`,dark:`#515b6e`},"chart-diverging-high":{light:`#2a78d6`,dark:`#3987e5`},"chart-diverging-low":{light:`#e34948`,dark:`#e66767`},"chart-diverging-mid":{light:`#c4cada`,dark:`#3a414f`},"chart-grid":{light:`#ebedf3`,dark:`#3d4554`},"chart-label":{light:`#626a82`,dark:`#8a90a0`},"chart-neutral":{light:`#99a1b7`,dark:`#5d6475`},"chart-seq-0":{light:`#f5f6fa`,dark:`#20242f`},"chart-seq-1":{light:`#e0e7ff`,dark:`#262c45`},"chart-seq-2":{light:`#c7d2fe`,dark:`#2f3a70`},"chart-seq-3":{light:`#a5b4fc`,dark:`#3b4ba0`},"chart-seq-4":{light:`#818cf8`,dark:`#5168d2`},"chart-seq-5":{light:`#6366f1`,dark:`#7a90ef`},"chart-seq-6":{light:`#4338ca`,dark:`#b3c1f7`},danger:{light:`#e82646`,dark:`#f87171`},"danger-border":{light:`#fdbfce`,dark:`#f8717166`},"danger-pressed":{light:`#e82646`,dark:`#f98686`},"danger-soft":{light:`#ffeaef`,dark:`#e826462e`},"danger-strong":{light:`#c81340`,dark:`#ee5c74`},"danger-strong-hover":{light:`#ab1036`,dark:`#f17489`},"danger-text":{light:`#cf1735`,dark:`#ee5c74`},"danger-text-on-soft":{light:`#cf1735`,dark:`#f07287`},"field-bg":{light:`#f9fbfc`,dark:`#232733`},"field-border":{light:`#dfe2ea`,dark:`#3d4554`},"field-border-focus":{light:`#a5b4fc`,dark:`#aeaaf5`},"field-border-hover":{light:`#c4cada`,dark:`#515b6e`},"focus-ring":{light:`#4f46e5`,dark:`#aeaaf5`},"focus-ring-soft":{light:`#4f46e540`,dark:`#aeaaf540`},info:{light:`#056ee9`,dark:`#60a5fa`},"info-border":{light:`#bbdbff`,dark:`#60a5fa66`},"info-pressed":{light:`#056ee9`,dark:`#78b3fb`},"info-soft":{light:`#e9f3ff`,dark:`#056ee92e`},"info-strong":{light:`#056ee9`,dark:`#4492ef`},"info-text":{light:`#1460ba`,dark:`#4492ef`},"info-text-on-soft":{light:`#1460ba`,dark:`#5da1f1`},link:{light:`#4f46e5`,dark:`#aeaaf5`},"link-hover":{light:`#4338ca`,dark:`#c3c0f8`},neutral:{light:`#07143714`,dark:`#e6e8ee14`},"neutral-hover":{light:`#0714371f`,dark:`#e6e8ee1f`},"neutral-pressed":{light:`#07143729`,dark:`#e6e8ee29`},"neutral-soft":{light:`#626a8229`,dark:`#8a90a029`},"neutral-text":{light:`#4b5675`,dark:`#b4b9c6`},"offline-fill":{light:`#e82646`,dark:`#e82646`},"on-danger":{light:`#ffffff`,dark:`#0f0f1a`},"on-danger-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-info":{light:`#ffffff`,dark:`#0f0f1a`},"on-info-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-neutral":{light:`#071437`,dark:`#e6e8ee`},"on-primary":{light:`#ffffff`,dark:`#0f0f0f`},"on-scrim":{light:`#ffffff`,dark:`#ffffff`},"on-success":{light:`#ffffff`,dark:`#0f0f1a`},"on-success-strong":{light:`#ffffff`,dark:`#0f0f0f`},"on-surface-dark":{light:`#ffffff`,dark:`#ffffff`},"on-surface-dark-muted":{light:`#babdc7`,dark:`#babdc7`},"on-warning":{light:`#ffffff`,dark:`#0f0f1a`},"on-warning-strong":{light:`#ffffff`,dark:`#0f0f0f`},"online-fill":{light:`#04b440`,dark:`#04b440`},primary:{light:`#4f46e5`,dark:`#aeaaf5`},"primary-hover":{light:`#4338ca`,dark:`#c3c0f8`},"primary-soft":{light:`#e0e7ff`,dark:`#4f46e533`},"primary-text":{light:`#4f46e5`,dark:`#aeaaf5`},"primary-wash":{light:`#4f46e514`,dark:`#aeaaf514`},"primary-wash-strong":{light:`#4f46e533`,dark:`#aeaaf533`},"progress-label":{light:`#ffffff`,dark:`#0f0f0f`},"progress-track":{light:`#e1e5ee`,dark:`#323845`},scrim:{light:`#07143773`,dark:`#00000073`},"scrim-strong":{light:`#0714379e`,dark:`#0000009e`},scrollbar:{light:`#919eab73`,dark:`#ffffff2e`},"scrollbar-active":{light:`#919eabd9`,dark:`#ffffff66`},"scrollbar-hover":{light:`#919eaba6`,dark:`#ffffff47`},"shell-accent":{light:`#f4a261`,dark:`#f4a261`},"shell-accent-ring":{light:`#f4a26140`,dark:`#f4a26140`},"shell-active":{light:`#ffffff1f`,dark:`#ffffff1f`},"shell-bg":{light:`#1f2d5c`,dark:`#1f2d5c`},"shell-bg-deep":{light:`#141e42`,dark:`#141e42`},"shell-bg-raised":{light:`#2c3f7a`,dark:`#2c3f7a`},"shell-border":{light:`#ffffff38`,dark:`#ffffff38`},"shell-border-strong":{light:`#ffffff66`,dark:`#ffffff66`},"shell-fill":{light:`#ffffff1f`,dark:`#ffffff1f`},"shell-fill-strong":{light:`#ffffff2e`,dark:`#ffffff2e`},"shell-fill-subtle":{light:`#ffffff14`,dark:`#ffffff14`},"shell-hover":{light:`#ffffff12`,dark:`#ffffff12`},"shell-rule":{light:`#ffffff1a`,dark:`#ffffff1a`},"shell-text":{light:`#c9d1e6`,dark:`#c9d1e6`},"shell-text-muted":{light:`#8792b4`,dark:`#8792b4`},"shell-text-strong":{light:`#ffffff`,dark:`#ffffff`},success:{light:`#04b440`,dark:`#30c780`},"success-border":{light:`#baeecc`,dark:`#30c78066`},"success-pressed":{light:`#04b440`,dark:`#4fcf93`},"success-soft":{light:`#e8faee`,dark:`#04b4402e`},"success-strong":{light:`#0e7531`,dark:`#43c770`},"success-text":{light:`#0e7531`,dark:`#43c770`},"success-text-on-soft":{light:`#0e7531`,dark:`#5cce83`},surface:{light:`#ffffff`,dark:`#181b23`},"surface-dark":{light:`#071437`,dark:`#071437`},"surface-dark-border":{light:`#2a3553`,dark:`#2a3553`},"surface-ink":{light:`#0b0e16`,dark:`#0b0e16`},"surface-inverse":{light:`#071437`,dark:`#e6e8ee`},"surface-inverse-elevated":{light:`#1d2949`,dark:`#d2d5de`},"surface-inverse-raised":{light:`#132041`,dark:`#dbdde5`},"surface-inverse-wash-12":{light:`#ffffff1f`,dark:`#0714371f`},"surface-inverse-wash-24":{light:`#ffffff3d`,dark:`#0714373d`},"surface-inverse-wash-4":{light:`#ffffff0a`,dark:`#0714370a`},"surface-inverse-wash-8":{light:`#ffffff14`,dark:`#07143714`},text:{light:`#071437`,dark:`#e6e8ee`},"text-body":{light:`#252f4a`,dark:`#e6e8ee`},"text-inverse":{light:`#ffffff`,dark:`#071437`},"text-muted":{light:`#4b5675`,dark:`#b4b9c6`},"text-subtle":{light:`#626a82`,dark:`#8a90a0`},thumb:{light:`#ffffff`,dark:`#3a3e49`},warning:{light:`#dfa000`,dark:`#fbbf24`},"warning-border":{light:`#fde8b3`,dark:`#fbbf2466`},"warning-pressed":{light:`#dfa000`,dark:`#fcc945`},"warning-soft":{light:`#fff8e6`,dark:`#dfa0002e`},"warning-strong":{light:`#9a6b00`,dark:`#e7b840`},"warning-strong-hover":{light:`#855c00`,dark:`#ebc35d`},"warning-text":{light:`#876100`,dark:`#e7b840`},"warning-text-on-soft":{light:`#876100`,dark:`#eac159`}},space:{"2xl":32,"3xl":48,"4xl":64,lg:16,md:12,none:0,sm:8,xl:24,xs:4,xxs:2},radius:{"2xl":18,"3xl":20,lg:14,md:10,none:0,pill:9999,sm:8,xl:16},shadow:{card:null,drawer:{x:0,y:24,blur:60,spread:-16,color:`rgba(7, 20, 55, 0.28)`,elevation:12},elevated:{x:0,y:2,blur:8,spread:-2,color:`rgba(7, 20, 55, 0.10)`,elevation:4},modal:{x:0,y:24,blur:60,spread:-16,color:`rgba(7, 20, 55, 0.28)`,elevation:12},popover:{x:0,y:8,blur:28,spread:-6,color:`rgba(7, 20, 55, 0.14)`,elevation:8}},font:{display:{family:`Webority Serif`,fallback:`Cambria, Georgia, Times New Roman, Noto Serif, serif`},mono:{family:`JetBrains Mono`,fallback:`SFMono-Regular, Menlo, Monaco, Consolas, monospace`},ui:{family:`Webority Sans`,fallback:`Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif`}},text:{"2xl":{size:32,weight:null},"3xl":{size:44,weight:null},"4xl":{size:56,weight:null},"5xl":{size:72,weight:null},"6xl":{size:96,weight:null},"7xl":{size:119.95,weight:null},"8xl":{size:144,weight:null},base:{size:16.8,weight:null},lg:{size:20,weight:null},sm:{size:14,weight:null},xl:{size:24,weight:null},xs:{size:13,weight:null}},leading:{body:1.55,display:1.05,heading:1.2,lead:1.6,prose:1.7}},icons:`aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-1.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.at.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.ban.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.bolt.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.briefcase-cross.briefcase-tick.briefcase-timer.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.comment.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.database.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.ellipsis.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flame.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.funnel.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.github.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.hamburger-menu.hand.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.journal-text.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layers.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.linkedin.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.microsoft.milk.mini-music-sqaure.minus.minus-circle.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-receive.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-2.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presentation-chart.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.reddit.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.robot.rotate-ccw.rotate-cw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.sliders.sliders-horizontal.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.snowflake.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.thumbs-down.thumbs-up.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-circle.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out`.split(`.`),renames:[{version:`0.87.1`,components:[],values:{}},{version:`0.89.0`,components:[],values:{}},{version:`0.91.0`,components:[],values:{}},{version:`0.93.0`,components:[],values:{}},{version:`0.97.0`,components:[],values:{variant:{subtle:`neutral`}}},{version:`0.107.0`,components:[],values:{}},{version:`0.108.0`,components:[{name:`AppSelectMini`,to:`AppSelect`,props:{prefix:`valuePrefix`},values:{},added:{compact:!0},removed:{}},{name:`AppInfoList`,to:`AppDescriptions`,props:{},values:{},added:{layout:`list`,columns:1},removed:{}},{name:`AppLogoPicker`,to:`AppImagePicker`,props:{},values:{},added:{},removed:{}},{name:`AppAvatarPicker`,to:`AppImagePicker`,props:{initials:`fallback`},values:{},added:{kind:`avatar`},removed:{}},{name:`AppPagination`,to:`AppTablePagination`,props:{},values:{},added:{variant:`standalone`},removed:{}},{name:`AppSidebarMenu`,to:`AppDrawer`,props:{show:`open`},values:{side:{right:`end`,left:`start`}},added:{sheet:!1,width:`420px`},removed:{backdrop:`removed: AppDrawer always draws its backdrop; use staticBackdrop to stop a click closing it`,scroll:`removed: the page behind a drawer never scrolls`,keyboard:`removed: Escape closes the drawer unless it is set dismissible={false}, which a drawer only an action closes needs`,responsive:`removed: no inline mode; render the content in the page at that width instead`,closeButton:`removed: set dismissible={false}`}},{name:`AppTableEmptyState`,to:`AppEmptyState`,props:{},values:{},added:{variant:`table`},removed:{}},{name:`AppStepper`,props:{activeStep:`active`},values:{},added:{},removed:{}}],values:{}},{version:`0.114.0`,components:[{name:`AppAlert`,props:{variant:`tone`},values:{},added:{},removed:{}}],values:{}},{version:`0.130.0`,components:[{name:`AppButton`,props:{},values:{variant:{primary:`solid`,secondary:`soft`,success:`solid`,danger:`solid`,warning:`solid`,info:`solid`,light:`solid`,dark:`solid`,"outline-primary":`outline`,"outline-secondary":`outline`,"outline-success":`outline`,"outline-danger":`outline`,"outline-warning":`outline`,"outline-info":`outline`,"outline-dark":`outline`,"outline-light":`glass`,"secondary-danger":`soft`,neutral:`soft`,text:`link`}},added:{},removed:{}},{name:`AppCopyButton`,props:{},values:{variant:{primary:`solid`,secondary:`soft`,success:`solid`,danger:`solid`,warning:`solid`,info:`solid`,light:`solid`,dark:`solid`,"outline-primary":`outline`,"outline-secondary":`outline`,"outline-success":`outline`,"outline-danger":`outline`,"outline-warning":`outline`,"outline-info":`outline`,"outline-dark":`outline`,"outline-light":`glass`,"secondary-danger":`soft`,neutral:`soft`,text:`link`}},added:{},removed:{}},{name:`AppSplitButton`,props:{},values:{variant:{primary:`solid`,secondary:`soft`,success:`solid`,danger:`solid`,warning:`solid`,info:`solid`,light:`solid`,dark:`solid`,"outline-primary":`outline`,"outline-secondary":`outline`,"outline-success":`outline`,"outline-danger":`outline`,"outline-warning":`outline`,"outline-info":`outline`,"outline-dark":`outline`,"outline-light":`glass`,"secondary-danger":`soft`,neutral:`soft`,text:`link`}},added:{},removed:{}},{name:`AppCheckbox`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppColorField`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppDatePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppDateRangePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppDropZone`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppFilePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppImagePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppMentionInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppNumberInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppOtpInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppPhoneNumberInput`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppRadio`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppRadioGroup`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppRating`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppRichText`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppScoreScale`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppSelect`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppSlider`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppSwitch`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppTextarea`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppTimePicker`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`AppUpdateBar`,props:{message:`description`},values:{},added:{},removed:{}},{name:`AppPopover`,props:{show:`open`},values:{},added:{},removed:{}},{name:`AppDropdown`,props:{show:`open`},values:{},added:{},removed:{}},{name:`AppModal`,props:{},values:{tone:{default:`neutral`}},added:{},removed:{}},{name:`AppTooltip`,props:{},values:{tone:{default:`neutral`}},added:{},removed:{}},{name:`AppShell`,props:{},values:{topbarTone:{default:`neutral`}},added:{},removed:{}},{name:`AppConfirmDialog`,props:{message:`description`},values:{tone:{error:`danger`,delete:`danger`}},added:{},removed:{}},{name:`AppCard`,props:{},values:{variant:{default:`flat`,outlined:`outline`,muted:`filled`}},added:{},removed:{}},{name:`AppEmptyState`,props:{text:`description`},values:{},added:{},removed:{}},{name:`AppResourceCard`,props:{text:`description`},values:{},added:{},removed:{}},{name:`AppSectionLeadCapture`,props:{text:`description`},values:{},added:{},removed:{}},{name:`AppSplash`,props:{text:`description`},values:{},added:{},removed:{}},{name:`AppConsentBanner`,props:{heading:`title`},values:{},added:{},removed:{}},{name:`AppLeadPopup`,props:{heading:`title`},values:{},added:{},removed:{}}],values:{}},{version:`0.139.0`,components:[{name:`AppAutocomplete`,to:`AppSelect`,props:{},values:{},added:{mode:`search`},removed:{}},{name:`AppMultiSelect`,to:`AppSelect`,props:{values:`value`,defaultValues:`defaultValue`,customPattern:`pattern`,customInvalidMessage:`invalidMessage`},values:{},added:{mode:`multiple`},removed:{}},{name:`AppTagInput`,to:`AppSelect`,props:{values:`value`,defaultValues:`defaultValue`},values:{},added:{mode:`tag`},removed:{}},{name:`AppCountrySelect`,to:`AppSelect`,props:{},values:{},added:{mode:`country`},removed:{}}],values:{}},{version:`0.152.0`,components:[],values:{}},{version:`0.158.0`,components:[],values:{}},{version:`0.160.0`,components:[],values:{}},{version:`0.164.0`,components:[],values:{}},{version:`0.165.0`,components:[],values:{}},{version:`0.167.0`,components:[],values:{}},{version:`0.172.0`,components:[],values:{}},{version:`0.177.0`,components:[],values:{}}]}});export{JVt as default};
|