@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 169 kB
JavaScript
var r=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?r(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var C=(e,t)=>r({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),M=(e,t)=>{let{valid:o,invalid:a,hover:n,focus:i,checked:l,active:c,selected:u,disabled:b,indeterminate:h,loading:N,empty:m,readonly:L,highlighted:k,...S}=t;return r({"k-valid":o,"k-invalid":a,"k-hover":n,"k-focus":i,"k-checked":l,"k-active":c,"k-selected":u,"k-disabled":b,"k-indeterminate":h&&!l,"k-loading":N,"k-empty":m,"k-readonly":L,"k-highlighted":k},Object.keys(S).reduce((A,y)=>(y.startsWith("k-")?A[y]=S[y]:A[`k-${y}`]=S[y],A),{}))};function Ja(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var d={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},f={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},x={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},lt={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},g={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},s={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var Zn={};function w(e){return Zn[e]=(Zn[e]||0)+1,`k-${e}-${Zn[e]}`}import{Fragment as Ad,jsx as ri}from"react/jsx-runtime";var Qn="k-font-icon",Md=[],Sd={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info]},yd={},fa=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:i,...l}=e;return a?ri("span",{...l,className:r(e.className,Qn,C(Qn,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${n}`]:n,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true"}):ri(Ad,{})};fa.states=Md;fa.options=Sd;fa.className=Qn;fa.defaultOptions=yd;var si=fa;import{Fragment as Id,jsx as Ya}from"react/jsx-runtime";var jn="k-svg-icon",Cd=[],Ed={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info],variant:[lt.outline,lt.solid,lt.duotone]},er={viewBox:"0 0 24 24",variant:lt.outline},ba=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:i=er.viewBox,variant:l=er.variant,icon:c,...u}=e;if(!c)return Ya(Id,{});if(c==="none")return Ya("span",{...u,className:r(e.className,jn,C("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let b=typeof c=="object"&&c.name&&c.name,h=typeof c=="object"?l&&c.variants?.[l]||c.variants?.outline||c.content:void 0;return Ya("span",{...u,className:r(e.className,jn,C("k-icon",{size:t}),{[`k-svg-i-${b}`]:b,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":n==="h"||n==="both","k-flip-v":n==="v"||n==="both"}),"aria-hidden":"true",children:Ya("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof c=="object"?c.viewBox:i,dangerouslySetInnerHTML:h!==void 0?{__html:h}:void 0,children:c?void 0:e.children})})};ba.states=Cd;ba.options=Ed;ba.className=jn;ba.defaultOptions=er;var tr=ba;import*as or from"@progress/kendo-svg-icons";var ii="icon",li="icons";import{useContext as Od}from"react";import{createContext as Td}from"react";var pi=Td({iconsType:"svg"});import{Fragment as di,jsx as ha}from"react/jsx-runtime";var Za="k-icon",Bd=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),Pd=[],wd={size:[d.undefined,d.xsmall,d.small,d.medium,d.large,d.xlarge,d.xxlarge,d.xxxlarge],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info],variant:[lt.outline,lt.solid,lt.duotone]},Qa={viewBox:"0 0 24 24",type:"svg",variant:lt.outline},v=e=>{let{iconsType:t}=Od(pi),{size:o,themeColor:a,icon:n,type:i=t||Qa.type,rotate:l,flip:c,viewBox:u=Qa.viewBox,variant:b=Qa.variant,...h}=e;if(!n)return ha(di,{});if((t||i)==="svg"){if(n==="none")return ha(tr,{...h,className:r(e.className,Za),icon:n,size:o,variant:b});let m=or[n]?n:Bd(`${n}-icon`);return or[m]?ha(tr,{...h,className:r(e.className,Za),icon:or[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:u,variant:b}):ha(di,{})}return ha(si,{...h,className:r(e.className,Za),icon:n,size:o,themeColor:a,rotate:l,flip:c})};v.states=Pd;v.options=wd;v.defaultOptions=Qa;v.className=Za;v.moduleName=ii;v.folderName=li;v.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var ar="button",ci=ar;import{Fragment as mi,jsx as uo,jsxs as ui}from"react/jsx-runtime";var xa="k-button",Kd=["icon-button"],Rd=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],_d={size:[d.undefined,d.xsmall,d.small,d.medium,d.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[x.undefined,x.solid,x.flat,x.outline,x.clear,x.link],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary,g.success,g.warning,g.error,g.info,g.inverse]},nr={showArrow:!1,arrowIconName:"chevron-down"},p=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:i,showArrow:l=nr.showArrow,arrowIconName:c=nr.arrowIconName,variant:u,hover:b,focus:h,active:N,selected:m,disabled:L,togglable:k,ariaDisabled:S,icon:A,iconSize:y,text:E,iconClassName:V,className:pe,...xe}=e,ge=A!=null,Ne=e.children!==void 0;return ui(t,{className:r(pe,xa,Ja(xa,u),C(xa,{size:o,rounded:a,fillMode:n,themeColor:i}),M(xa,{hover:b,focus:h,active:N,disabled:L||S,selected:m}),{"k-icon-button":!E&&!Ne&&ge}),"aria-pressed":k?m?"true":"false":void 0,...xe,"aria-disabled":S?"true":void 0,disabled:L||void 0,children:[typeof A=="string"&&A&&uo(v,{className:r(V,"k-button-icon"),icon:A,size:y}),A&&typeof A!="string"&&uo(mi,{children:A}),E?ui(mi,{children:[E&&uo("span",{className:"k-button-text",children:E}),e.children]}):e.children&&uo("span",{className:"k-button-text",children:e.children}),l&&uo("span",{className:"k-menu-button-arrow k-button-arrow",children:uo(v,{icon:c})})]})};p.states=Rd;p.options=_d;p.variants=Kd;p.className=xa;p.defaultOptions=nr;p.moduleName=ar;p.folderName=ci;p.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};import{jsx as Dd}from"react/jsx-runtime";var W=e=>Dd(p,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as Hd}from"react/jsx-runtime";var ga=e=>Hd(p,{icon:"folder",children:"Button",...e});import{jsx as zd}from"react/jsx-runtime";var at=e=>zd(p,{children:"Button",...e});import{jsx as rr}from"react/jsx-runtime";var Ud=p.options,Fd=p.states,Gd={...p.defaultOptions,variant:"text"},Vd=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],$d=[],fo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return rr(W,{...o,icon:"star"});case"icon-and-text":return rr(ga,{...o,icon:"star",children:"Button"});default:return rr(at,{...o,children:"Button"})}};fo.options=Ud;fo.states=Fd;fo.variants=Vd;fo.defaultOptions=Gd;fo.modifiers=$d;fo.className=p.className;import{jsx as fi,jsxs as Yd}from"react/jsx-runtime";var ja="k-fab",Wd=[s.hover,s.focus,s.active,s.selected,s.disabled],Jd={size:[d.undefined,d.small,d.medium,d.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],themeColor:[g.undefined,g.base,g.primary,g.secondary,g.tertiary]},bi={type:"button"},Z=e=>{let{size:t,rounded:o,themeColor:a,text:n,icon:i,type:l=bi.type,position:c,hover:u,focus:b,active:h,selected:N,disabled:m,...L}=e;return Yd("button",{...L,type:l,className:r(e.className,ja,C(ja,{size:t,rounded:o,themeColor:a}),M(ja,{hover:u,focus:b,active:h,disabled:m,selected:N}),{[`!k-pos-absolute k-${c}`]:c}),...!n&&i&&!e["aria-label"]&&{"aria-label":"Action"},...m&&{"aria-disabled":"true"},disabled:m||void 0,children:[i&&fi(v,{className:"k-fab-icon",icon:i}),n&&fi("span",{className:"k-fab-text",children:n})]})};Z.states=Wd;Z.options=Jd;Z.className=ja;Z.defaultOptions=bi;Z.moduleName="fab";Z.folderName="fab";Z.ariaSpec={selector:".k-fab",rules:[{selector:".k-fab",attribute:"role=button or nodeName=button",usage:"Omitted if the <button> DOM element is used."},{selector:".k-fab",attribute:"aria-label or title (when icon-only)",usage:"The attribute must be present when no text is initially visible in the button."},{selector:".k-fab.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the button is disabled."}]};import{jsx as Qd}from"react/jsx-runtime";var Zd="k-fab-items",hi=e=>{let{position:t,...o}=e;return Qd("ul",{...o,className:r(e.className,Zd,{[`k-fab-items-${t}`]:t}),children:e.children})};import{jsx as gi,jsxs as ec}from"react/jsx-runtime";var xi="k-fab-item",jd=[s.hover,s.focus,s.active,s.disabled],sr=e=>{let{text:t,icon:o,align:a,hover:n,focus:i,active:l,disabled:c,...u}=e;return ec("li",{...u,className:r(e.className,xi,{[`k-text-${a}`]:a},M(xi,{hover:n,focus:i,active:l,disabled:c})),children:[gi("span",{className:"k-fab-item-text",children:t}),gi(v,{className:"k-fab-item-icon",icon:o})]})};sr.states=jd;import{jsx as gv}from"react/jsx-runtime";import{jsx as tc}from"react/jsx-runtime";var Ni=e=>tc(Z,{icon:"plus",...e});import{jsx as yv}from"react/jsx-runtime";import{jsx as Iv}from"react/jsx-runtime";import{jsx as bo,jsxs as ic}from"react/jsx-runtime";var oc=Z.options,ac=Z.states,nc={...Z.defaultOptions,variant:"text"},rc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],sc=[{name:"opened",title:"Opened"}],ho=e=>{let{variant:t,modifiers:o,...a}=e,{opened:n}=o||{},i=n?bo("div",{className:"k-fab-popup k-popup k-popup-transparent",style:{position:"absolute",top:"calc(16px + 36px)",right:"calc(16px + calc(36px / 2) - calc(36px /2))"},children:bo(hi,{position:"bottom",children:bo(sr,{text:"Item",icon:"pencil",align:"right"})})}):null,l;switch(t){case"icon-only":l=bo(Z,{...a,icon:"star"});break;case"icon-and-text":l=bo(Z,{...a,icon:"star",text:"Action"});break;default:l=bo(Z,{...a,text:"Action"});break}return ic("span",{style:{position:"relative"},children:[l,i]})};ho.options=oc;ho.states=ac;ho.variants=rc;ho.defaultOptions=nc;ho.modifiers=sc;ho.className=Z.className;import{jsx as dc}from"react/jsx-runtime";var ir="k-input-inner",lc=[],pc={},en={type:"text",autocomplete:"off",value:"",placeholder:""},ve=e=>{let{value:t=en.value,type:o=en.type,placeholder:a=en.placeholder,autocomplete:n=en.autocomplete,disabled:i,readOnly:l,...c}=e;return dc("input",{...c,type:o,className:r(e.className,ir,C(ir,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:i||void 0,readOnly:l||void 0})};ve.states=lc;ve.options=pc;ve.className=ir;import{jsx as uc}from"react/jsx-runtime";var lr="k-input-inner",cc=[],mc={},vi={value:"",placeholder:""},Na=e=>{let{value:t=vi.value,placeholder:o=vi.placeholder,rows:a,disabled:n,...i}=e;return uc("textarea",{...i,className:r(e.className,lr,C(lr,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Na.states=cc;Na.options=mc;Na.className=lr;var pr="prompt-box",ki=pr;var dr="speech-to-text-button",Li=dr;import{jsx as fc}from"react/jsx-runtime";var Mi="k-speech-to-text-button",Si={icon:"microphone"},Ie=e=>{let{listening:t=!1,icon:o=Si.icon,...a}=e;return fc(p,{...a,icon:t?"stop":o,className:r(e.className,Mi,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};Ie.states=p.states;Ie.options=p.options;Ie.className=Mi;Ie.defaultOptions=Si;Ie.moduleName=dr;Ie.folderName=Li;Ie.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};import{jsx as dk}from"react/jsx-runtime";import{jsx as fk}from"react/jsx-runtime";import{jsx as Nc}from"react/jsx-runtime";var bc=p.states,yi={...p.defaultOptions,variant:"normal"},hc={...p.options,fillMode:p.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},xc=[],gc=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],xo=e=>{let{variant:t,...o}={...yi,...e},a={};return t==="listening"&&(a.listening=!0),Nc(Ie,{...o,...a})};xo.options=hc;xo.states=bc;xo.variants=gc;xo.defaultOptions=yi;xo.modifiers=xc;xo.className=Ie.className;import{jsx as go,jsxs as cr}from"react/jsx-runtime";var pt="k-prompt-box",vc=[s.hover,s.focus,s.disabled],kc={fillMode:[x.undefined,x.solid,x.flat,x.outline]},mr={lineMode:"auto",isExpanded:!1},de=e=>{let{fillMode:t,lineMode:o=mr.lineMode,startAffix:a,endAffix:n,header:i,isExpanded:l=mr.isExpanded,className:c,children:u,value:b,placeholder:h,generating:N,hover:m,focus:L,disabled:k,...S}=e,A=o==="multi"||o==="auto"&&l;return cr("div",{...S,className:r(c,"k-input",pt,{[`${pt}-singleline`]:o==="single",[`${pt}-multiline`]:A,[`k-input-${t}`]:t,"k-hover":m,"k-focus":L,"k-disabled":k}),children:[i&&go("div",{className:`${pt}-header`,children:i}),cr("div",{className:`${pt}-content`,children:[a&&go("div",{className:`${pt}-affix`,children:a}),o==="single"?go(ve,{value:b,placeholder:h,className:`${pt}-input`,type:"text","aria-label":"Prompt input"}):go(Na,{value:b,placeholder:h,className:`${pt}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),cr("div",{className:`${pt}-affix`,children:[n,go(Ie,{size:"small",fillMode:"flat",rounded:"full"}),go(W,{icon:N?"stop":"arrow-up",size:"small",rounded:"full",active:N,disabled:!b&&!N,className:r({"k-generating":N}),"aria-label":N?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),u]})};de.states=vc;de.options=kc;de.className=pt;de.defaultOptions=mr;de.moduleName=pr;de.folderName=ki;de.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};import{jsx as Rk}from"react/jsx-runtime";import{jsx as zk}from"react/jsx-runtime";import{jsx as Vk}from"react/jsx-runtime";import{jsx as Wk}from"react/jsx-runtime";import{jsx as Qk}from"react/jsx-runtime";import{Fragment as ur,jsx as Ot,jsxs as Cc}from"react/jsx-runtime";var Lc=de.options,Mc=de.states,Sc={...de.defaultOptions,variant:"Single"},yc=[{name:"Single",title:"Singleline"},{name:"Multi",title:"Multiline"}],Ac=[{name:"header",title:"Header"},{name:"endAffix",title:"End Affix"},{name:"startAffix",title:"Start Affix"}],No=e=>{let{variant:t,modifiers:o,...a}=e,n={},i=Ot(ur,{children:Ot(W,{size:"small",icon:"send",fillMode:"flat"})});return Object.keys(o||{}).forEach(l=>{switch(l){case"header":n.header=o?.[l]?Ot(p,{children:"Button in header"}):void 0;break;case"endAffix":o?.[l]&&(n.endAffix=Cc(ur,{children:[i,Ot(W,{icon:"paperclip",size:"small",fillMode:"flat"})]}));break;case"startAffix":n.startAffix=o?.[l]?Ot(ur,{children:Ot(W,{icon:"plus",size:"small",fillMode:"flat"})}):void 0;break;default:break}}),t==="Multi"?Ot(de,{style:{width:300},lineMode:"multi",endAffix:i,placeholder:"Enter your prompt...",...a,...n}):Ot(de,{style:{width:300},lineMode:"single",endAffix:i,placeholder:"Enter your prompt...",...a,...n})};No.options=Lc;No.states=Mc;No.variants=yc;No.defaultOptions=Sc;No.modifiers=Ac;No.className=de.className;var fr="chat",Ai=fr;import{Fragment as Ii,jsx as Wt,jsxs as va}from"react/jsx-runtime";var Ci="k-chat",Ec=[],Ic={},Tc=va(Ii,{children:[Wt(W,{icon:"paperclip",fillMode:"clear",rounded:"full",size:"small","aria-label":"Attach file"},"paperclip"),Wt("div",{className:"k-spacer"})]}),Ei={tools:Tc},U=e=>{let{header:t,dir:o,suggestedActions:a,files:n,pinned:i,replied:l,generating:c,tools:u=Ei.tools,value:b,empty:h,scrollToBottom:N,scrollbar:m,promptBoxProps:L,...k}=e;return va("div",{...k,className:r(Ci,e.className),dir:o,children:[t,va("div",{className:"k-message-list",role:"log","aria-label":"Message list","aria-live":"polite",children:[i,Wt("div",{className:r("k-message-list-content",h&&"k-message-list-content-empty"),children:e.children}),N&&Wt("div",{className:"k-chat-scroll-to-bottom-container",children:Wt(Ni,{themeColor:"base",icon:"arrow-down",size:"small"})})]}),m&&Wt("div",{className:"k-separator"}),va("div",{className:"k-message-box-wrapper",children:[a,Wt(de,{lineMode:"multi",placeholder:"Type a message",generating:c,value:b,header:n||l?va(Ii,{children:[l,n]}):void 0,endAffix:u,...L})]})]})};U.states=Ec;U.options=Ic;U.className=Ci;U.defaultOptions=Ei;U.moduleName=fr;U.folderName=Ai;U.ariaSpec={selector:".k-chat",rules:[{selector:".k-message-list",attribute:"role=log",usage:"The role of the Chat message list must imply that there is a log (list) of messages."},{selector:".k-message-list",attribute:"aria-label",usage:"Announces the purpose of the Chat message list."},{selector:".k-message-list",attribute:"aria-live=polite",usage:"Announces new messages in the Chat message list."},{selector:".k-bubble",attribute:"tabindex=0",usage:"The Chat bubble must be focusable."},{selector:".k-bubble .k-typing-indicator",attribute:"tabindex=-1",usage:"The Chat bubble typing indicator should not be focusable."},{selector:".k-bubble-expandable-indicator",attribute:"role=button",usage:"The expandable indicator must have an appropriate role."},{selector:".k-bubble-expandable-indicator",attribute:"aria-label or title",usage:"The expandable indicator must be properly labelled."},{selector:".k-bubble-expandable-indicator",attribute:"tabindex=0",usage:"The expandable indicator must be part of the page tabsequence."},{selector:".k-message-reference>.k-button",attribute:"aria-label or title",usage:"The reference close button must be properly labelled."},{selector:".k-message-reference>.k-button",attribute:"role=button or nodeName=button",usage:"The reference close button must have an appropriate role."},{selector:".k-prompt-box-affix>.k-button",attribute:"role=button or nodeName=button",usage:"The buttons must have appropriate role."},{selector:".k-prompt-box-affix>.k-button",attribute:"aria-label or title",usage:"The buttons must be properly labelled."},{selector:".k-prompt-box-affix>.k-button.k-disabled",attribute:"disabled",usage:"Announces the send action as disabled when necessary."}]};var br="button",Ti=br;import{jsx as wc}from"react/jsx-runtime";var ka="k-button-group",Oc=[s.disabled],Bc={fillMode:[x.undefined,x.solid,x.flat,x.outline,x.clear,x.link]},Pc={},T=e=>{let{fillMode:t,disabled:o,stretched:a,...n}=e;return wc("div",{role:"group",...n,className:r(e.className,ka,C(ka,{fillMode:t}),M(ka,{disabled:o}),{[`${ka}-stretched`]:a}),...o&&{"aria-disabled":"true"},children:e.children})};T.states=Oc;T.options=Bc;T.className=ka;T.defaultOptions=Pc;T.moduleName=br;T.folderName=Ti;T.ariaSpec={selector:".k-button-group",rules:[{selector:".k-button-group:not(.k-split-button)",attribute:"role=group",usage:"Sets the proper role for the group of buttons."},{selector:".k-button-group.k-disabled",attribute:"aria-disabled=true",usage:"The attribute is rendered only when the entire button group is disabled."},{selector:".k-button-group:not(.k-split-button):not(.k-scheduler-navigation):not(.k-zoom-control) .k-button",attribute:"aria-pressed (when selected)",usage:"Specifies the current state of the ButtonGroup. Only the selected button within the group will have this attribute set to true."}]};import{Fragment as BL,jsx as OL,jsxs as PL}from"react/jsx-runtime";import{Fragment as HL,jsx as DL,jsxs as zL}from"react/jsx-runtime";import{Fragment as XL,jsx as $L,jsxs as qL}from"react/jsx-runtime";import{Fragment as jL,jsx as QL,jsxs as eM}from"react/jsx-runtime";import{Fragment as sM,jsx as rM,jsxs as iM}from"react/jsx-runtime";import{Fragment as uM,jsx as mM,jsxs as fM}from"react/jsx-runtime";import{jsx as vt,jsxs as hr}from"react/jsx-runtime";var Kc={...p.options,...T.options},Rc=p.states,_c={...p.defaultOptions,...T.defaultOptions,variant:"text-button"},Dc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],Hc=[],vo=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?hr(T,{fillMode:a.fillMode,className:o,children:[vt(p,{...a,icon:"star"}),vt(p,{...a,icon:"star"}),vt(p,{...a,icon:"star"})]}):t==="icon-text-button"?hr(T,{fillMode:a.fillMode,className:o,children:[vt(p,{...a,icon:"star",children:"First"}),vt(p,{...a,icon:"star",children:"Middle"}),vt(p,{...a,icon:"star",children:"Last"})]}):hr(T,{fillMode:a.fillMode,className:o,children:[vt(p,{...a,children:"First"}),vt(p,{...a,children:"Middle"}),vt(p,{...a,children:"Last"})]})};vo.options=Kc;vo.states=Rc;vo.variants=Dc;vo.defaultOptions=_c;vo.modifiers=Hc;vo.className=T.className;var La="input",on=La;import{jsx as Gc}from"react/jsx-runtime";var an="k-input",zc=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Uc={size:[d.undefined,d.small,d.medium,d.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},Fc={},Q=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:i,loading:l,readonly:c,size:u,rounded:b,fillMode:h,...N}=e;return Gc("span",{...N,className:r(e.className,an,C(an,{size:u,rounded:b,fillMode:h}),M(an,{hover:t,focus:o,disabled:a,invalid:n,valid:i,loading:l,readonly:c}))})};Q.states=zc;Q.options=Uc;Q.className=an;Q.defaultOptions=Fc;Q.moduleName=La;Q.folderName=on;import{jsx as qc}from"react/jsx-runtime";var nn="k-picker",Vc=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],$c={size:[d.undefined,d.small,d.medium,d.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},Xc={},dt=e=>{let{hover:t,focus:o,disabled:a,invalid:n,valid:i,loading:l,readonly:c,size:u,rounded:b,fillMode:h,...N}=e;return qc("span",{...N,className:r(e.className,nn,C(nn,{size:u,rounded:b,fillMode:h}),M(nn,{hover:t,focus:o,disabled:a,invalid:n,valid:i,loading:l,readonly:c})),children:e.children})};dt.states=Vc;dt.options=$c;dt.className=nn;dt.defaultOptions=Xc;dt.moduleName=La;dt.folderName=on;import{Fragment as Yc,jsx as xr}from"react/jsx-runtime";var Oi="k-clear-value",Wc=[s.disabled,s.loading,s.readonly],Jc={},Ke=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?xr(Yc,{}):xr("span",{className:r(e.className,Oi),children:xr(v,{icon:"x"})})};Ke.states=Wc;Ke.options=Jc;Ke.className=Oi;import{jsx as Bi,jsxs as jc}from"react/jsx-runtime";var gr="k-input-inner",Zc=[],Qc={},Jt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:i,...l}=e;return jc("span",{...l,className:r(e.className,gr,C(gr,e)),children:[n,!n&&i&&Bi(v,{className:"k-input-value-icon",icon:i}),a&&!t&&o,a&&t&&Bi("span",{className:"k-input-value-text",children:t})]})};Jt.states=Zc;Jt.options=Qc;Jt.className=gr;import{Fragment as tm,jsx as Pi}from"react/jsx-runtime";var wi="k-input-loading-icon",em=[s.disabled,s.loading],Te=e=>{let{disabled:t,loading:o}=e;return t||!o?Pi(tm,{}):Pi("span",{className:r(e.className,wi,"k-icon k-i-loading")})};Te.states=em;Te.className=wi;import{Fragment as nm,jsx as Ki}from"react/jsx-runtime";var Ri="k-input-validation-icon",om=[s.valid,s.invalid,s.disabled,s.loading],am={},ke=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,i=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Ki(nm,{}):Ki(v,{className:r(Ri),icon:i})};ke.states=om;ke.options=am;ke.className=Ri;import{Fragment as im,jsx as _i}from"react/jsx-runtime";var rm="k-input-prefix",sm={direction:"horizontal"},Fe=e=>{let{direction:t=sm.direction,...o}=e;return e.children?_i("span",{...o,className:r(rm,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):_i(im,{})};import{Fragment as dm,jsx as Di}from"react/jsx-runtime";var lm="k-input-suffix",pm={direction:"horizontal"},Ge=e=>{let{direction:t=pm.direction,...o}=e;return e.children?Di("span",{...o,className:r(lm,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Di(dm,{})};import{jsx as lS}from"react/jsx-runtime";import{jsx as mm}from"react/jsx-runtime";var cm="k-input-suffix-text",Nr=e=>{let{children:t,...o}=e;return mm("span",{...o,className:r(cm,e.className),children:t})};import{jsx as fm}from"react/jsx-runtime";var Hi="k-input-separator",um={direction:"vertical"},Ve=e=>{let{direction:t=um.direction,...o}=e;return fm("span",{...o,className:r(Hi,e.className,{[`${Hi}-${t}`]:t})})};import{Fragment as zi,jsx as ct,jsxs as vr}from"react/jsx-runtime";var bm=Q.states,hm=Q.defaultOptions,xm=Q.options,gm=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],Nm=[],ko=e=>{let{modifiers:t,valid:o,invalid:a,loading:n,disabled:i,readonly:l,...c}=e,u=t?.prefix,b=t?.suffix,h=t?.["clear-button"],N=t?.["validation-icon"],m=t?.separators;return vr(Q,{...c,valid:o,invalid:a,loading:n,disabled:i,readonly:l,style:{width:300},children:[u&&vr(zi,{children:[ct(Fe,{children:ct(v,{icon:"lock"})}),m&&ct(Ve,{})]}),ct(ve,{placeholder:"Placeholder",value:"Value"}),N&&ct(ke,{valid:o,invalid:a,loading:n,disabled:i}),ct(Te,{loading:n,disabled:i}),h&&ct(Ke,{loading:n,disabled:i,readonly:l,value:"Value"}),b&&vr(zi,{children:[m&&ct(Ve,{}),ct(Ge,{children:ct(at,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};ko.options=xm;ko.states=bm;ko.variants=Nm;ko.defaultOptions=hm;ko.modifiers=gm;ko.className=Q.className;import{jsx as Ui,jsxs as Lm}from"react/jsx-runtime";var Fi="k-color-preview",vm=[],km={},Bt=e=>{let{color:t,iconName:o,...a}=e;return Lm("span",{...a,className:r(e.className,Fi,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Ui(v,{icon:o,className:"k-color-preview-icon"}),Ui("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Bt.states=vm;Bt.options=km;Bt.className=Fi;var kr="popup",Gi=kr;import{jsx as Vi}from"react/jsx-runtime";var $i="k-animation-container",Mm=[],Sm={},Lr={positionMode:"absolute",shown:!0},mt=e=>{let{positionMode:t=Lr.positionMode,shown:o=Lr.shown,animationStyle:a,offset:n,...i}=e;return Vi("div",{...i,style:{...n,...e.style},className:r(e.className,$i,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:Vi("div",{className:"k-child-animation-container",style:a,children:e.children})})};mt.states=Mm;mt.options=Sm;mt.className=$i;mt.defaultOptions=Lr;mt.moduleName=kr;mt.folderName=Gi;var Mr="popup",Xi=Mr;import{jsx as qi}from"react/jsx-runtime";var Wi="k-popup",ym=[],Am={},Ji={positionMode:"absolute"},G=e=>{let{offset:t,positionMode:o=Ji.positionMode,animationStyle:a,containerClassName:n,containerRole:i,containerAriaLabel:l,...c}=e;return qi(mt,{positionMode:o,offset:t,animationStyle:a,className:n,role:i,"aria-label":l,children:qi("div",{...c,className:r(e.className,Wi),children:e.children})})};G.states=ym;G.options=Am;G.className=Wi;G.defaultOptions=Ji;G.moduleName=Mr;G.folderName=Xi;G.ariaSpec={selector:".k-popup",rules:[{selector:".k-animation-container",attribute:"role (when appended to body)",usage:'Container gets role="region" when appended to document body. Popup is a building block \u2014 ARIA semantics come from consuming components.'}]};var Sr="action-buttons",Yi=Sr;import{jsx as Im}from"react/jsx-runtime";var rn="k-actions",Cm=[],Em={},yr={alignment:"start",orientation:"horizontal"},Re=e=>{let{alignment:t=yr.alignment,orientation:o=yr.orientation,...a}=e;return Im("div",{...a,className:r(rn,{[`${rn}-${t}`]:t,[`${rn}-${o}`]:o},e.className),children:e.children})};Re.states=Cm;Re.options=Em;Re.className=rn;Re.defaultOptions=yr;Re.moduleName=Sr;Re.folderName=Yi;var Zi=Re;import{jsx as Om}from"react/jsx-runtime";var Tm="k-actionsheet-footer",Qi={alignment:"stretched",orientation:"horizontal"},Pt=e=>{let{alignment:t=Qi.alignment,orientation:o=Qi.orientation,template:a,as:n=a?"div":Re,...i}=e;return Om(n,{...i,...!a&&{alignment:t,orientation:o},className:r(e.className,Tm),children:e.children})};var Ar="searchbox",ji=Ar;import{jsx as Ma,jsxs as wm}from"react/jsx-runtime";var el="k-searchbox",Bm=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],Pm={size:[d.undefined,d.small,d.medium,d.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},Cr={showIcon:!0,icon:"search"},$e=e=>{let{value:t,placeholder:o,size:a,rounded:n,fillMode:i,hover:l,focus:c,valid:u,invalid:b,required:h,loading:N,disabled:m,showIcon:L=Cr.showIcon,icon:k=Cr.icon,"aria-label":S,...A}=e;return wm(Q,{...A,size:a,rounded:n,fillMode:i,hover:l,focus:c,valid:u,invalid:b,required:h,loading:N,disabled:m,className:r(e.className,el),children:[L&&Ma(v,{className:"k-input-icon",icon:k}),Ma(ve,{placeholder:o,value:t,"aria-label":S}),Ma(Te,{...e}),Ma(ke,{...e}),Ma(Ke,{...e})]})};$e.states=Bm;$e.options=Pm;$e.className=el;$e.defaultOptions=Cr;$e.moduleName=Ar;$e.folderName=ji;import{jsx as Py}from"react/jsx-runtime";var Er="textbox",tl=Er;import{Fragment as ol,jsx as wt,jsxs as Ir}from"react/jsx-runtime";var al="k-textbox",Km=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Rm={size:[d.undefined,d.small,d.medium,d.large],rounded:[f.undefined,f.none,f.small,f.medium,f.large,f.full],fillMode:[x.undefined,x.solid,x.flat,x.outline]},sn={showClearButton:!0,showValidationIcon:!0,separators:!0},ie=e=>{let{size:t,rounded:o,fillMode:a,separators:n=sn.separators,showClearButton:i=sn.showClearButton,showValidationIcon:l=sn.showValidationIcon,prefix:c,suffix:u,type:b,value:h,placeholder:N,hover:m,focus:L,valid:k,invalid:S,required:A,loading:y,disabled:E,readonly:V,id:pe,"aria-label":xe,"aria-describedby":ge,...Ne}=e;return Ir(Q,{...Ne,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:k,invalid:S,required:A,loading:y,disabled:E,readonly:V,className:r(e.className,al),children:[c&&Ir(ol,{children:[wt(Fe,{children:c}),n&&wt(Ve,{})]}),wt(ve,{id:pe,placeholder:N,value:h,type:b,disabled:E,"aria-label":xe,"aria-describedby":ge,"aria-invalid":S?"true":void 0}),l&&wt(ke,{valid:k,invalid:S,loading:y,disabled:E}),wt(Te,{loading:y,disabled:E}),i&&wt(Ke,{loading:y,disabled:E,readonly:V,value:h}),u&&Ir(ol,{children:[n&&wt(Ve,{}),wt(Ge,{children:u})]})]})};ie.states=Km;ie.options=Rm;ie.className=al;ie.defaultOptions=sn;ie.moduleName=Er;ie.folderName=tl;ie.ariaSpec={selector:".k-textbox",rules:[{selector:".k-textbox > .k-input-inner",attribute:"role=textbox or nodeName=input",usage:"Describes the role of the component."},{selector:".k-textbox > .k-input-inner",attribute:"label for or aria-label or aria-labelledby (when has accessible name)",usage:"The input requires an accessible name (provided by consuming app)."},{selector:".k-textbox > .k-input-inner",attribute:"aria-invalid=true (when invalid)",usage:"Rendered when the TextBox is in an invalid state."},{selector:".k-textbox > .k-input-inner",attribute:"aria-describedby (when has hint or error)",usage:"Points to the hint or error message for the input."},{selector:".k-textbox.k-disabled > .k-input-inner",attribute:"disabled=disabled or aria-disabled=true",usage:"Rendered when the TextBox is disabled."}]};var Sa=ie;import{jsx as _m}from"react/jsx-runtime";var ln=e=>_m(Sa,{...e});import{Fragment as Zy,jsx as Yy}from"react/jsx-runtime";import{Fragment as aA,jsx as oA}from"react/jsx-runtime";import{jsx as iA}from"react/jsx-runtime";import{jsx as Tr}from"react/jsx-runtime";var Dm=ie.states,Hm=ie.defaultOptions,zm=ie.options,Um=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Fm=[],Lo=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?Tr(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?Tr(at,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),Tr(ln,{value:"Value",style:{width:300},...o,...a})};Lo.options=zm;Lo.states=Dm;Lo.variants=Fm;Lo.defaultOptions=Hm;Lo.modifiers=Um;Lo.className=ie.className;import{jsx as Kt,jsxs as Or}from"react/jsx-runtime";var nl="k-actionsheet-titlebar",Gm={},Le=e=>{let{title:t,subtitle:o,actionsStart:a,actionsEnd:n,filter:i,input:l,inputValue:c,inputPlaceholder:u,adaptive:b,titleId:h,children:N,...m}=e;return Or("div",{...m,className:r(e.className,nl),children:[Or("div",{className:"k-actionsheet-titlebar-group",children:[a&&Kt("div",{className:"k-actionsheet-actions",children:a}),!N&&Or("div",{className:"k-actionsheet-title",id:h,children:[t&&Kt("div",{className:"k-text-center",children:t}),o&&Kt("div",{className:"k-actionsheet-subtitle k-text-center",children:o})]}),N&&Kt("div",{className:"k-actionsheet-title",id:h,children:N}),n&&Kt("div",{className:"k-actionsheet-actions",children:n})]}),(l||i)&&Kt("div",{className:"k-actionsheet-titlebar-group k-actionsheet-filter",children:l?Kt(ie,{value:c,placeholder:u,size:b?"large":"medium","aria-label":t||u||"Input"}):Kt($e,{placeholder:"Filter",size:b?"large":"medium","aria-label":"Filter options"})})]})};Le.className=nl;Le.defaultOptions=Gm;import{jsx as Br,jsxs as qm}from"react/jsx-runtime";var Pr="k-actionsheet-view",Vm=[],$m={},Xm={},Mo=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:i,titleId:l,...c}=e,u=n?.type===Le&&Br(Le,{adaptive:t,titleId:l,...n?.props}),b=i?.type===Pt&&Br(Pt,{...i?.props});return qm("div",{...c,className:r(e.className,Pr,{[`${Pr}-animated`]:o}),children:[u,Br("div",{className:"k-actionsheet-content",children:a}),b]})};Mo.states=Vm;Mo.options=$m;Mo.className=Pr;Mo.defaultOptions=Xm;var ya="action-sheet",pn=ya;var wr="overlay",rl=wr;import{jsx as Zm}from"react/jsx-runtime";var sl="k-overlay",Wm=[],Jm={},Ym={},ut=e=>{let{...t}=e;return Zm("div",{...t,className:r(e.className,sl),children:e.children})};ut.states=Wm;ut.options=Jm;ut.className=sl;ut.defaultOptions=Ym;ut.moduleName=wr;ut.folderName=rl;import{jsx as dn,jsxs as eu}from"react/jsx-runtime";var il="k-actionsheet",Qm=[],jm={},Aa={side:"bottom",fullscreen:!1,adaptive:!1,overlay:!0},J=e=>{let{side:t=Aa.side,fullscreen:o=Aa.fullscreen,adaptive:a=Aa.adaptive,overlay:n=Aa.overlay,template:i,children:l,header:c,footer:u,id:b,...h}=e,N=b&&!i&&c?`${b}-title`:void 0;return eu("div",{className:"k-actionsheet-container",children:[n&&dn(ut,{}),dn(mt,{animationStyle:{[`${o===!0?"top":t}`]:0,[`${o===!0?"width":null}`]:"100%",[`${o===!0?"height":null}`]:"100%",[`${t==="top"||t==="bottom"?"width":null}`]:"100%",[`${t==="left"||t==="right"?"height":null}`]:"100%"},children:dn("div",{...h,id:b,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:r(e.className,il,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:i||dn(Mo,{header:c,footer:u,adaptive:a,titleId:N,...e,children:l})})})]})};J.states=Qm;J.options=jm;J.className=il;J.defaultOptions=Aa;J.moduleName=ya;J.folderName=pn;J.ariaSpec={selector:".k-actionsheet",rules:[{selector:".k-actionsheet",attribute:"role=dialog",usage:"Announces the dialog role of the component."},{selector:".k-actionsheet",attribute:"aria-labelledby (when has title)",usage:"Associates the title of the action sheet."},{selector:".k-actionsheet",attribute:"aria-hidden=true/false (when hidden)",usage:"Announces the hidden state of the ActionSheet container."},{selector:".k-actionsheet",attribute:"aria-modal=true (when modal)",usage:"Announces that the action sheet is modal."},{selector:".k-actionsheet .k-actionsheet-title",attribute:"id",usage:"Used to associate the title with the action sheet wrapper element."}]};import{jsx as nu}from"react/jsx-runtime";var ll="k-actionsheet-container",tu=[],ou={},au={},So=e=>{let{children:t,...o}=e;return nu("div",{...o,className:ll,children:t})};So.states=tu;So.options=ou;So.className=ll;So.defaultOptions=au;So.moduleName=ya;So.folderName=pn;import{jsx as ru}from"react/jsx-runtime";var Kr=e=>{let{...t}=e;return ru("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};import{Fragment as iu,jsx as Ca,jsxs as Rr}from"react/jsx-runtime";var _r="k-actionsheet-item",su=[s.hover,s.focus,s.selected,s.disabled],Rt=e=>{let{iconName:t,text:o,description:a,hover:n,focus:i,selected:l,disabled:c,...u}=e;return Rr("span",{...u,className:r(e.className,_r,M(_r,{hover:n,focus:i,selected:l,disabled:c})),children:[!e.children&&Ca(iu,{children:Rr("span",{className:"k-actionsheet-action",children:[t&&Ca("span",{className:"k-icon-wrap",children:Ca(v,{className:"k-actionsheet-item-icon",icon:t})}),Rr("span",{className:"k-actionsheet-item-text",children:[o&&Ca("span",{className:"k-actionsheet-item-title",children:o}),a&&Ca("span",{className:"k-actionsheet-item-description",children:a})]})]})}),e.children]})};Rt.states=su;Rt.className=_r;import{jsx as sC,jsxs as iC}from"react/jsx-runtime";import{jsx as cC}from"react/jsx-runtime";import{jsx as bC}from"react/jsx-runtime";import{jsx as NC}from"react/jsx-runtime";import{jsx as le,jsxs as Dr}from"react/jsx-runtime";var lu=J.options,pu=J.states,dl={...J.defaultOptions,variant:"normal"},du=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],cu=[{name:"actions",title:"Titlebar Actions",type:"boolean"},{name:"subtitle",title:"Subtitle",type:"boolean"},{name:"footer",title:"Footer",type:"boolean"}],yo=e=>{let{variant:t,modifiers:o,...a}={...dl,...e},n={},i=Dr(Kr,{children:[le(Rt,{text:"Edit Item",description:"Click to edit",iconName:"edit-tools"}),le(Rt,{text:"Add to Favorites",iconName:"heart"}),le(Rt,{text:"Upload New",iconName:"upload",disabled:!0}),le("hr",{className:"k-hr"}),le(Rt,{text:"Cancel",iconName:"cancel"})]}),l="Choose from the items below",c="Select Item";return t==="fullScreen"&&(n.fullScreen=!0),Object.keys(o||{}).forEach(u=>{switch(u){case"actions":n.actionsStart=!!o?.[u],n.actionsEnd=!!o?.[u];break;case"subtitle":n.subtitle=o?.[u]?l:void 0;break;case"footer":n.footer=!!o?.[u];break;default:break}}),t==="adaptive"?le(J,{...a,adaptive:!0,fullscreen:n.fullScreen,header:le(Le,{actionsStart:n.actionsStart?le(p,{icon:"chevron-left",size:"large",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?le(p,{icon:"x",size:"large",fillMode:"flat"}):void 0,title:c,subtitle:n.subtitle}),footer:n.footer?Dr(Pt,{alignment:"stretched",children:[le(p,{text:"Cancel",size:"large",themeColor:"base"}),le(p,{text:"Apply",size:"large",themeColor:"primary"})]}):void 0,children:i}):le(J,{...a,fullscreen:n.fullScreen,header:le(Le,{actionsStart:n.actionsStart?le(p,{icon:"chevron-left",fillMode:"flat"}):void 0,actionsEnd:n.actionsEnd?le(p,{icon:"x",fillMode:"flat"}):void 0,title:"Select Item",subtitle:n.subtitle}),footer:n.footer?Dr(Pt,{alignment:"stretched",children:[le(p,{text:"Apply",themeColor:"primary"}),le(p,{text:"Cancel",themeColor:"base"})]}):void 0,children:i})};yo.options=lu;yo.states=pu;yo.variants=du;yo.defaultOptions=dl;yo.modifiers=cu;yo.className=J.className;var Hr="slider",cl=Hr;import{jsx as Ao,jsxs as zr}from"react/jsx-runtime";var Ea="k-slider",mu=[s.hover,s.focus,s.active,s.disabled,s.readonly],uu={},Xe={type:"single",orientation:"horizontal",gradientType:"1d",readonly:!1,disabled:!1,handlePosition:"end",showButtons:!0,showTicks:!0,value:50,min:0,max:100},F=e=>{let{type:t=Xe.type,orientation:o=Xe.orientation,gradientType:a=Xe.gradientType,readonly:n=Xe.readonly,disabled:i=Xe.disabled,handlePosition:l=Xe.handlePosition,showButtons:c=Xe.showButtons,showTicks:u=Xe.showTicks,value:b=Xe.value,min:h=Xe.min,max:N=Xe.max,startValue:m,endValue:L,hover:k,focus:S,active:A,trackStyle:y,dir:E,...V}=e,xe=(()=>{if(t==="gradient"&&a==="2d")return"undefined";if(o==="vertical")return"vertical"})(),ge,Ne;return o==="horizontal"?(ge=E==="rtl"?"chevron-left":"chevron-right",Ne=E==="rtl"?"chevron-right":"chevron-left"):o==="vertical"&&(ge="chevron-up",Ne="chevron-down"),zr("div",{...V,className:r(Ea,e.className,M(Ea,{readonly:n,disabled:i}),{[`k-slider-${o}`]:o,"k-colorgradient-slider":t==="gradient"}),dir:E,children:[c&&Ao(p,{className:"k-button-decrease",rounded:"full",icon:Ne,tabIndex:-1,title:"Decrease"}),zr("div",{className:"k-slider-track-wrap",children:[u&&Ao("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),zr("div",{className:"k-slider-track",style:y,children:[Ao("div",{className:"k-slider-selection"}),t==="range"&&Ao("span",{className:r("k-draghandle","k-draghandle-start",M(Ea,{hover:k,focus:S,active:A})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":m??h,"aria-valuemin":h,"aria-valuemax":L??N,"aria-orientation":xe,"aria-disabled":i?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":V["aria-label"]?`${V["aria-label"]} start`:"Range start"}),Ao("span",{className:r("k-draghandle",`k-draghandle-${l}`,M(Ea,{hover:k,focus:S,active:A})),role:"slider",tabIndex:i?void 0:0,"aria-valuenow":t==="range"?L??N:b,"aria-valuemin":t==="range"?m??h:h,"aria-valuemax":N,"aria-orientation":xe,"aria-disabled":i?"true":void 0,"aria-readonly":n?"true":void 0,"aria-label":t==="range"?V["aria-label"]?`${V["aria-label"]} end`:"Range end":V["aria-label"]})]})]}),c&&Ao(p,{className:"k-button-increase",rounded:"full",icon:ge,tabIndex:-1,title:"Increase"})]})};F.states=mu;F.options=uu;F.className=Ea;F.defaultOptions=Xe;F.moduleName=Hr;F.folderName=cl;F.ariaSpec={selector:".k-slider",rules:[{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"role=slider",usage:"Sets the proper role for Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-label or aria-labelledby or title",usage:"The Slider needs an accessible name to be assigned to it."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-invalid=true (when invalid)",usage:"Rendered only when the Slider is in a form and announces the invalid state."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Slider."},{selector:".k-slider .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-valuetext (when has text alternative)",usage:"Specifies a human-readable text alternative to the numeric value. Provided by consuming applications."},{selector:".k-slider:not(.k-disabled) .k-draghandle:not(.k-hsv-draghandle)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled sliders are removed from tab order."},{selector:".k-slider-vertical .k-draghandle",attribute:"aria-orientation=vertical (when vertical)",usage:"Present only when slider is vertical."},{selector:".k-slider.k-disabled .k-draghandle:not(.k-hsv-draghandle)",attribute:"aria-disabled=true",usage:"Rendered only when the Slider is disabled."},{selector:".k-slider.k-readonly .k-draghandle",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Slider is readonly. Readonly sliders remain focusable but their value cannot be changed."},{selector:".k-slider .k-button",attribute:"tabindex=-1",usage:"Excludes the buttons from the natural tab order. Keyboard users use arrow keys on the drag handle."},{selector:".k-slider .k-button",attribute:"title",usage:'Provides a tooltip describing the button action (e.g., "Decrease" or "Increase").'},{selector:".k-slider .k-slider-items",attribute:"aria-hidden=true",usage:"Hides the tick list from assistive technologies. Tick values are redundant with the drag handle value attributes."},{selector:".k-slider .k-tick",attribute:"role=presentation",usage:"Removes semantic meaning from individual tick elements. Ticks are visual-only markers."},{selector:".k-slider .k-tick",attribute:"title",usage:"Represents the value associated with the respective tick."}]};import{jsx as ml}from"react/jsx-runtime";var ul="k-tick",fu=[],bu={},fl={label:!1},I=e=>{let{style:t,label:o=fl.label,orientation:a,large:n,text:i,...l}=e;return ml("li",{...l,role:"presentation",title:i||"Tick",className:r(e.className,ul,{[`k-tick-${a}`]:a,"k-tick-large":n}),style:t,children:o&&ml("span",{className:"k-label",children:i})})};I.states=fu;I.options=bu;I.className=ul;I.defaultOptions=fl;import{Fragment as hu,jsx as qe,jsxs as xu}from"react/jsx-runtime";var bl=e=>qe(F,{"aria-label":e["aria-label"]||"Slider",children:xu(hu,{children:[qe(I,{className:"k-first",label:!0,large:!0,text:"0"}),qe(I,{}),qe(I,{}),qe(I,{}),qe(I,{}),qe(I,{label:!0,large:!0,text:"5"}),qe(I,{}),qe(I,{}),qe(I,{}),qe(I,{}),qe(I,{className:"k-last",label:!0,large:!0,text:"10"})]}),...e});import{Fragment as gu,jsx as We,jsxs as Nu}from"react/jsx-runtime";var hl=e=>We(F,{children:Nu(gu,{children:[We(I,{className:"k-first",label:!0,large:!0,text:"0"}),We(I,{}),We(I,{}),We(I,{}),We(I,{}),We(I,{label:!0,large:!0,text:"5"}),We(I,{}),We(I,{}),We(I,{}),We(I,{}),We(I,{className:"k-last",label:!0,large:!0,text:"10"})]}),"aria-label":e["aria-label"]||"Vertical slider",...e,orientation:"vertical"});import{Fragment as iE,jsx as sE,jsxs as lE}from"react/jsx-runtime";import{Fragment as uE,jsx as mE,jsxs as fE}from"react/jsx-runtime";import{jsx as vu}from"react/jsx-runtime";var Ur=e=>vu(F,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as ku}from"react/jsx-runtime";var Fr=e=>ku(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as yE,jsx as SE,jsxs as AE}from"react/jsx-runtime";import{Fragment as OE,jsx as TE,jsxs as BE}from"react/jsx-runtime";import{jsx as ft,jsxs as xl}from"react/jsx-runtime";var Lu=F.options,Mu=F.states,gl={...F.defaultOptions,variant:"horizontal",label:!0},Su=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],yu=[{name:"label",title:"Labels",default:!0},{name:"tick",title:"Ticks",default:!0},{name:"button",title:"Side Buttons",default:!0}],Co=e=>{let{variant:t,modifiers:o,...a}=e,n=gl.label,i={};Object.keys(o||{}).forEach(c=>{switch(c){case"button":{i.showButtons=!!o?.[c];break}case"label":{n=!!o?.[c];break}case"tick":{i.showTicks=!!o?.[c];break}}});let l={"--kendo-slider-start":0,"--kendo-slider-end":60};return t==="vertical"?xl(hl,{style:{height:"300px",...l},...a,...i,children:[ft(I,{label:n,large:!0,orientation:"vertical",text:"0",style:{position:"absolute",bottom:"0%"}}),ft(I,{label:n,large:!0,orientation:"vertical",text:"2",style:{position:"absolute",bottom:"25%"}}),ft(I,{label:n,large:!0,orientation:"vertical",text:"4",style:{position:"absolute",bottom:"50%"}}),ft(I,{label:n,large:!0,orientation:"vertical",text:"6",style:{position:"absolute",bottom:"75%"}}),ft(I,{label:n,large:!0,orientation:"vertical",text:"8",style:{position:"absolute",bottom:"100%"}})]}):xl(bl,{style:{width:"400px",...l},...a,...i,children:[ft(I,{label:n,large:!0,orientati