@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
1 lines • 170 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 Ya(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 Qn={};function w(e){return Qn[e]=(Qn[e]||0)+1,`k-${e}-${Qn[e]}`}import{Fragment as Cd,jsx as si}from"react/jsx-runtime";var jn="k-font-icon",Sd=[],yd={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]},Ad={},fa=e=>{let{size:t,themeColor:o,icon:a,rotate:n,flip:i,...l}=e;return a?si("span",{...l,className:r(e.className,jn,C(jn,{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"}):si(Cd,{})};fa.states=Sd;fa.options=yd;fa.className=jn;fa.defaultOptions=Ad;var ii=fa;import{Fragment as Td,jsx as Za}from"react/jsx-runtime";var er="k-svg-icon",Ed=[],Id={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]},tr={viewBox:"0 0 24 24",variant:lt.outline},ba=e=>{let{size:t,themeColor:o,rotate:a,flip:n,viewBox:i=tr.viewBox,variant:l=tr.variant,icon:c,...u}=e;if(!c)return Za(Td,{});if(c==="none")return Za("span",{...u,className:r(e.className,er,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 Za("span",{...u,className:r(e.className,er,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:Za("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=Ed;ba.options=Id;ba.className=er;ba.defaultOptions=tr;var or=ba;import*as ar from"@progress/kendo-svg-icons";var li="icon",pi="icons";import{useContext as Bd}from"react";import{createContext as Od}from"react";var di=Od({iconsType:"svg"});import{Fragment as ci,jsx as ha}from"react/jsx-runtime";var Qa="k-icon",Pd=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),wd=[],Kd={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]},ja={viewBox:"0 0 24 24",type:"svg",variant:lt.outline},v=e=>{let{iconsType:t}=Bd(di),{size:o,themeColor:a,icon:n,type:i=t||ja.type,rotate:l,flip:c,viewBox:u=ja.viewBox,variant:b=ja.variant,...h}=e;if(!n)return ha(ci,{});if((t||i)==="svg"){if(n==="none")return ha(or,{...h,className:r(e.className,Qa),icon:n,size:o,variant:b});let m=ar[n]?n:Pd(`${n}-icon`);return ar[m]?ha(or,{...h,className:r(e.className,Qa),icon:ar[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:u,variant:b}):ha(ci,{})}return ha(ii,{...h,className:r(e.className,Qa),icon:n,size:o,themeColor:a,rotate:l,flip:c})};v.states=wd;v.options=Kd;v.defaultOptions=ja;v.className=Qa;v.moduleName=li;v.folderName=pi;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 nr="button",mi=nr;import{Fragment as ui,jsx as uo,jsxs as fi}from"react/jsx-runtime";var xa="k-button",Rd=["icon-button"],_d=[s.hover,s.focus,s.active,s.selected,s.disabled,s.generating],Dd={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]},rr={showArrow:!1,arrowIconName:"chevron-down"},p=e=>{let{as:t="button",size:o,rounded:a,fillMode:n,themeColor:i,showArrow:l=rr.showArrow,arrowIconName:c=rr.arrowIconName,variant:u,hover:b,focus:h,active:N,selected:m,disabled:L,togglable:k,ariaDisabled:S,icon:A,iconSize:y,text:E,iconClassName:X,className:pe,...xe}=e,ge=A!=null,Ne=e.children!==void 0;return fi(t,{className:r(pe,xa,Ya(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(X,"k-button-icon"),icon:A,size:y}),A&&typeof A!="string"&&uo(ui,{children:A}),E?fi(ui,{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=_d;p.options=Dd;p.variants=Rd;p.className=xa;p.defaultOptions=rr;p.moduleName=nr;p.folderName=mi;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 Hd}from"react/jsx-runtime";var W=e=>Hd(p,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});import{jsx as zd}from"react/jsx-runtime";var ga=e=>zd(p,{icon:"folder",children:"Button",...e});import{jsx as Ud}from"react/jsx-runtime";var at=e=>Ud(p,{children:"Button",...e});import{jsx as sr}from"react/jsx-runtime";var Fd=p.options,Gd=p.states,Vd={...p.defaultOptions,variant:"text"},$d=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Xd=[],fo=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return sr(W,{...o,icon:"star"});case"icon-and-text":return sr(ga,{...o,icon:"star",children:"Button"});default:return sr(at,{...o,children:"Button"})}};fo.options=Fd;fo.states=Gd;fo.variants=$d;fo.defaultOptions=Vd;fo.modifiers=Xd;fo.className=p.className;import{jsx as bi,jsxs as Zd}from"react/jsx-runtime";var en="k-fab",Jd=[s.hover,s.focus,s.active,s.selected,s.disabled],Yd={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]},hi={type:"button"},Z=e=>{let{size:t,rounded:o,themeColor:a,text:n,icon:i,type:l=hi.type,position:c,hover:u,focus:b,active:h,selected:N,disabled:m,...L}=e;return Zd("button",{...L,type:l,className:r(e.className,en,C(en,{size:t,rounded:o,themeColor:a}),M(en,{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&&bi(v,{className:"k-fab-icon",icon:i}),n&&bi("span",{className:"k-fab-text",children:n})]})};Z.states=Jd;Z.options=Yd;Z.className=en;Z.defaultOptions=hi;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 jd}from"react/jsx-runtime";var Qd="k-fab-items",xi=e=>{let{position:t,...o}=e;return jd("ul",{...o,className:r(e.className,Qd,{[`k-fab-items-${t}`]:t}),children:e.children})};import{jsx as Ni,jsxs as tc}from"react/jsx-runtime";var gi="k-fab-item",ec=[s.hover,s.focus,s.active,s.disabled],ir=e=>{let{text:t,icon:o,align:a,hover:n,focus:i,active:l,disabled:c,...u}=e;return tc("li",{...u,className:r(e.className,gi,{[`k-text-${a}`]:a},M(gi,{hover:n,focus:i,active:l,disabled:c})),children:[Ni("span",{className:"k-fab-item-text",children:t}),Ni(v,{className:"k-fab-item-icon",icon:o})]})};ir.states=ec;import{jsx as vv}from"react/jsx-runtime";import{jsx as oc}from"react/jsx-runtime";var vi=e=>oc(Z,{icon:"plus",...e});import{jsx as Cv}from"react/jsx-runtime";import{jsx as Ov}from"react/jsx-runtime";import{jsx as bo,jsxs as lc}from"react/jsx-runtime";var ac=Z.options,nc=Z.states,rc={...Z.defaultOptions,variant:"text"},sc=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ic=[{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(xi,{position:"bottom",children:bo(ir,{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 lc("span",{style:{position:"relative"},children:[l,i]})};ho.options=ac;ho.states=nc;ho.variants=sc;ho.defaultOptions=rc;ho.modifiers=ic;ho.className=Z.className;import{jsx as cc}from"react/jsx-runtime";var lr="k-input-inner",pc=[],dc={},tn={type:"text",autocomplete:"off",value:"",placeholder:""},ve=e=>{let{value:t=tn.value,type:o=tn.type,placeholder:a=tn.placeholder,autocomplete:n=tn.autocomplete,disabled:i,readOnly:l,...c}=e;return cc("input",{...c,type:o,className:r(e.className,lr,C(lr,e)),placeholder:a,autoComplete:n,defaultValue:t,disabled:i||void 0,readOnly:l||void 0})};ve.states=pc;ve.options=dc;ve.className=lr;import{jsx as fc}from"react/jsx-runtime";var pr="k-input-inner",mc=[],uc={},ki={value:"",placeholder:""},Na=e=>{let{value:t=ki.value,placeholder:o=ki.placeholder,rows:a,disabled:n,...i}=e;return fc("textarea",{...i,className:r(e.className,pr,C(pr,e)),placeholder:o,rows:a,defaultValue:t,disabled:n||void 0})};Na.states=mc;Na.options=uc;Na.className=pr;var dr="prompt-box",Li=dr;var cr="speech-to-text-button",Mi=cr;import{jsx as bc}from"react/jsx-runtime";var Si="k-speech-to-text-button",yi={icon:"microphone"},Ie=e=>{let{listening:t=!1,icon:o=yi.icon,...a}=e;return bc(p,{...a,icon:t?"stop":o,className:r(e.className,Si,{"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=Si;Ie.defaultOptions=yi;Ie.moduleName=cr;Ie.folderName=Mi;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 mk}from"react/jsx-runtime";import{jsx as hk}from"react/jsx-runtime";import{jsx as vc}from"react/jsx-runtime";var hc=p.states,Ai={...p.defaultOptions,variant:"normal"},xc={...p.options,fillMode:p.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},gc=[],Nc=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],xo=e=>{let{variant:t,...o}={...Ai,...e},a={};return t==="listening"&&(a.listening=!0),vc(Ie,{...o,...a})};xo.options=xc;xo.states=hc;xo.variants=Nc;xo.defaultOptions=Ai;xo.modifiers=gc;xo.className=Ie.className;import{jsx as go,jsxs as mr}from"react/jsx-runtime";var pt="k-prompt-box",kc=[s.hover,s.focus,s.disabled],Lc={fillMode:[x.undefined,x.solid,x.flat,x.outline]},ur={lineMode:"auto",isExpanded:!1},de=e=>{let{fillMode:t,lineMode:o=ur.lineMode,startAffix:a,endAffix:n,header:i,isExpanded:l=ur.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 mr("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}),mr("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"}),mr("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=kc;de.options=Lc;de.className=pt;de.defaultOptions=ur;de.moduleName=dr;de.folderName=Li;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 Dk}from"react/jsx-runtime";import{jsx as Fk}from"react/jsx-runtime";import{jsx as Xk}from"react/jsx-runtime";import{jsx as Yk}from"react/jsx-runtime";import{jsx as eL}from"react/jsx-runtime";import{Fragment as fr,jsx as Ot,jsxs as Ec}from"react/jsx-runtime";var Mc=de.options,Sc=de.states,yc={...de.defaultOptions,variant:"Single"},Ac=[{name:"Single",title:"Singleline"},{name:"Multi",title:"Multiline"}],Cc=[{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(fr,{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=Ec(fr,{children:[i,Ot(W,{icon:"paperclip",size:"small",fillMode:"flat"})]}));break;case"startAffix":n.startAffix=o?.[l]?Ot(fr,{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=Mc;No.states=Sc;No.variants=Ac;No.defaultOptions=yc;No.modifiers=Cc;No.className=de.className;var br="chat",Ci=br;import{Fragment as Ti,jsx as Wt,jsxs as va}from"react/jsx-runtime";var Ei="k-chat",Ic=[],Tc={},Oc=va(Ti,{children:[Wt(W,{icon:"paperclip",fillMode:"clear",rounded:"full",size:"small","aria-label":"Attach file"},"paperclip"),Wt("div",{className:"k-spacer"})]}),Ii={tools:Oc},U=e=>{let{header:t,dir:o,suggestedActions:a,files:n,pinned:i,replied:l,generating:c,tools:u=Ii.tools,value:b,empty:h,scrollToBottom:N,scrollbar:m,promptBoxProps:L,...k}=e;return va("div",{...k,className:r(Ei,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(vi,{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(Ti,{children:[l,n]}):void 0,endAffix:u,...L})]})]})};U.states=Ic;U.options=Tc;U.className=Ei;U.defaultOptions=Ii;U.moduleName=br;U.folderName=Ci;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 hr="button",Oi=hr;import{jsx as Kc}from"react/jsx-runtime";var ka="k-button-group",Bc=[s.disabled],Pc={fillMode:[x.undefined,x.solid,x.flat,x.outline,x.clear,x.link]},wc={},T=e=>{let{fillMode:t,disabled:o,stretched:a,...n}=e;return Kc("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=Bc;T.options=Pc;T.className=ka;T.defaultOptions=wc;T.moduleName=hr;T.folderName=Oi;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 wL,jsx as PL,jsxs as KL}from"react/jsx-runtime";import{Fragment as UL,jsx as zL,jsxs as FL}from"react/jsx-runtime";import{Fragment as WL,jsx as qL,jsxs as JL}from"react/jsx-runtime";import{Fragment as tM,jsx as eM,jsxs as oM}from"react/jsx-runtime";import{Fragment as lM,jsx as iM,jsxs as pM}from"react/jsx-runtime";import{Fragment as bM,jsx as fM,jsxs as hM}from"react/jsx-runtime";import{jsx as vt,jsxs as xr}from"react/jsx-runtime";var Rc={...p.options,...T.options},_c=p.states,Dc={...p.defaultOptions,...T.defaultOptions,variant:"text-button"},Hc=[{name:"icon-button",title:"Icon Only"},{name:"text-button",title:"Text"},{name:"icon-text-button",title:"Icon Text"}],zc=[],vo=e=>{let{variant:t,className:o,...a}=e;return t==="icon-button"?xr(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"?xr(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"})]}):xr(T,{fillMode:a.fillMode,className:o,children:[vt(p,{...a,children:"First"}),vt(p,{...a,children:"Middle"}),vt(p,{...a,children:"Last"})]})};vo.options=Rc;vo.states=_c;vo.variants=Hc;vo.defaultOptions=Dc;vo.modifiers=zc;vo.className=T.className;var La="input",an=La;import{jsx as Vc}from"react/jsx-runtime";var nn="k-input",Uc=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Fc={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]},Gc={},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 Vc("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}))})};Q.states=Uc;Q.options=Fc;Q.className=nn;Q.defaultOptions=Gc;Q.moduleName=La;Q.folderName=an;import{jsx as Wc}from"react/jsx-runtime";var rn="k-picker",$c=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],Xc={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]},qc={},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 Wc("span",{...N,className:r(e.className,rn,C(rn,{size:u,rounded:b,fillMode:h}),M(rn,{hover:t,focus:o,disabled:a,invalid:n,valid:i,loading:l,readonly:c})),children:e.children})};dt.states=$c;dt.options=Xc;dt.className=rn;dt.defaultOptions=qc;dt.moduleName=La;dt.folderName=an;import{Fragment as Zc,jsx as gr}from"react/jsx-runtime";var Bi="k-clear-value",Jc=[s.disabled,s.loading,s.readonly],Yc={},Ke=e=>{let{disabled:t,loading:o,readonly:a,value:n}=e;return t||a||o||!n?gr(Zc,{}):gr("span",{className:r(e.className,Bi),children:gr(v,{icon:"x"})})};Ke.states=Jc;Ke.options=Yc;Ke.className=Bi;import{jsx as Pi,jsxs as em}from"react/jsx-runtime";var Nr="k-input-inner",Qc=[],jc={},Jt=e=>{let{value:t,placeholder:o,showValue:a,valueIcon:n,valueIconName:i,...l}=e;return em("span",{...l,className:r(e.className,Nr,C(Nr,e)),children:[n,!n&&i&&Pi(v,{className:"k-input-value-icon",icon:i}),a&&!t&&o,a&&t&&Pi("span",{className:"k-input-value-text",children:t})]})};Jt.states=Qc;Jt.options=jc;Jt.className=Nr;import{Fragment as om,jsx as wi}from"react/jsx-runtime";var Ki="k-input-loading-icon",tm=[s.disabled,s.loading],Te=e=>{let{disabled:t,loading:o}=e;return t||!o?wi(om,{}):wi("span",{className:r(e.className,Ki,"k-icon k-i-loading")})};Te.states=tm;Te.className=Ki;import{Fragment as rm,jsx as Ri}from"react/jsx-runtime";var _i="k-input-validation-icon",am=[s.valid,s.invalid,s.disabled,s.loading],nm={},ke=e=>{let{valid:t,invalid:o,disabled:a,loading:n}=e,i=o?"warning-circle":"check-circle";return a||n||!!!(t||o)?Ri(rm,{}):Ri(v,{className:r(_i),icon:i})};ke.states=am;ke.options=nm;ke.className=_i;import{Fragment as lm,jsx as Di}from"react/jsx-runtime";var sm="k-input-prefix",im={direction:"horizontal"},Fe=e=>{let{direction:t=im.direction,...o}=e;return e.children?Di("span",{...o,className:r(sm,e.className,{[`k-input-prefix-${t}`]:t}),children:e.children}):Di(lm,{})};import{Fragment as cm,jsx as Hi}from"react/jsx-runtime";var pm="k-input-suffix",dm={direction:"horizontal"},Ge=e=>{let{direction:t=dm.direction,...o}=e;return e.children?Hi("span",{...o,className:r(pm,e.className,{[`k-input-suffix-${t}`]:t}),children:e.children}):Hi(cm,{})};import{jsx as dS}from"react/jsx-runtime";import{jsx as um}from"react/jsx-runtime";var mm="k-input-suffix-text",vr=e=>{let{children:t,...o}=e;return um("span",{...o,className:r(mm,e.className),children:t})};import{jsx as bm}from"react/jsx-runtime";var zi="k-input-separator",fm={direction:"vertical"},Ve=e=>{let{direction:t=fm.direction,...o}=e;return bm("span",{...o,className:r(zi,e.className,{[`${zi}-${t}`]:t})})};import{Fragment as Ui,jsx as ct,jsxs as kr}from"react/jsx-runtime";var hm=Q.states,xm=Q.defaultOptions,gm=Q.options,Nm=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"},{name:"validation-icon",title:"Validation Icon"},{name:"separators",title:"Separators"}],vm=[],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 kr(Q,{...c,valid:o,invalid:a,loading:n,disabled:i,readonly:l,style:{width:300},children:[u&&kr(Ui,{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&&kr(Ui,{children:[m&&ct(Ve,{}),ct(Ge,{children:ct(at,{size:c.size,fillMode:"clear",children:"Send"})})]})]})};ko.options=gm;ko.states=hm;ko.variants=vm;ko.defaultOptions=xm;ko.modifiers=Nm;ko.className=Q.className;import{jsx as Fi,jsxs as Mm}from"react/jsx-runtime";var Gi="k-color-preview",km=[],Lm={},Bt=e=>{let{color:t,iconName:o,...a}=e;return Mm("span",{...a,className:r(e.className,Gi,{"k-icon-color-preview":o,"k-no-color":!t}),children:[o&&Fi(v,{icon:o,className:"k-color-preview-icon"}),Fi("span",{className:"k-color-preview-mask",style:{backgroundColor:t}})]})};Bt.states=km;Bt.options=Lm;Bt.className=Gi;var Lr="popup",Vi=Lr;import{jsx as $i}from"react/jsx-runtime";var Xi="k-animation-container",Sm=[],ym={},Mr={positionMode:"absolute",shown:!0},mt=e=>{let{positionMode:t=Mr.positionMode,shown:o=Mr.shown,animationStyle:a,offset:n,...i}=e;return $i("div",{...i,style:{...n,...e.style},className:r(e.className,Xi,{"k-animation-container-shown":o,"k-animation-container-fixed":t==="fixed"}),children:$i("div",{className:"k-child-animation-container",style:a,children:e.children})})};mt.states=Sm;mt.options=ym;mt.className=Xi;mt.defaultOptions=Mr;mt.moduleName=Lr;mt.folderName=Vi;var Sr="popup",qi=Sr;import{jsx as Wi}from"react/jsx-runtime";var Ji="k-popup",Am=[],Cm={},Yi={positionMode:"absolute"},$=e=>{let{offset:t,positionMode:o=Yi.positionMode,animationStyle:a,containerClassName:n,containerRole:i,containerAriaLabel:l,...c}=e;return Wi(mt,{positionMode:o,offset:t,animationStyle:a,className:n,role:i,"aria-label":l,children:Wi("div",{...c,className:r(e.className,Ji),children:e.children})})};$.states=Am;$.options=Cm;$.className=Ji;$.defaultOptions=Yi;$.moduleName=Sr;$.folderName=qi;$.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 yr="action-buttons",Zi=yr;import{jsx as Tm}from"react/jsx-runtime";var sn="k-actions",Em=[],Im={},Ar={alignment:"start",orientation:"horizontal"},Re=e=>{let{alignment:t=Ar.alignment,orientation:o=Ar.orientation,...a}=e;return Tm("div",{...a,className:r(sn,{[`${sn}-${t}`]:t,[`${sn}-${o}`]:o},e.className),children:e.children})};Re.states=Em;Re.options=Im;Re.className=sn;Re.defaultOptions=Ar;Re.moduleName=yr;Re.folderName=Zi;var Qi=Re;import{jsx as Bm}from"react/jsx-runtime";var Om="k-actionsheet-footer",ji={alignment:"stretched",orientation:"horizontal"},Pt=e=>{let{alignment:t=ji.alignment,orientation:o=ji.orientation,template:a,as:n=a?"div":Re,...i}=e;return Bm(n,{...i,...!a&&{alignment:t,orientation:o},className:r(e.className,Om),children:e.children})};var Cr="searchbox",el=Cr;import{jsx as Ma,jsxs as Km}from"react/jsx-runtime";var tl="k-searchbox",Pm=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading],wm={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]},Er={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=Er.showIcon,icon:k=Er.icon,"aria-label":S,...A}=e;return Km(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,tl),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=Pm;$e.options=wm;$e.className=tl;$e.defaultOptions=Er;$e.moduleName=Cr;$e.folderName=el;import{jsx as Ky}from"react/jsx-runtime";var Ir="textbox",ol=Ir;import{Fragment as al,jsx as wt,jsxs as Tr}from"react/jsx-runtime";var nl="k-textbox",Rm=[s.hover,s.focus,s.valid,s.invalid,s.required,s.disabled,s.loading,s.readonly],_m={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]},ln={showClearButton:!0,showValidationIcon:!0,separators:!0},ie=e=>{let{size:t,rounded:o,fillMode:a,separators:n=ln.separators,showClearButton:i=ln.showClearButton,showValidationIcon:l=ln.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:X,id:pe,"aria-label":xe,"aria-describedby":ge,...Ne}=e;return Tr(Q,{...Ne,size:t,rounded:o,fillMode:a,hover:m,focus:L,valid:k,invalid:S,required:A,loading:y,disabled:E,readonly:X,className:r(e.className,nl),children:[c&&Tr(al,{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:X,value:h}),u&&Tr(al,{children:[n&&wt(Ve,{}),wt(Ge,{children:u})]})]})};ie.states=Rm;ie.options=_m;ie.className=nl;ie.defaultOptions=ln;ie.moduleName=Ir;ie.folderName=ol;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 Dm}from"react/jsx-runtime";var pn=e=>Dm(Sa,{...e});import{Fragment as jy,jsx as Qy}from"react/jsx-runtime";import{Fragment as rA,jsx as nA}from"react/jsx-runtime";import{jsx as pA}from"react/jsx-runtime";import{jsx as Or}from"react/jsx-runtime";var Hm=ie.states,zm=ie.defaultOptions,Um=ie.options,Fm=[{name:"prefix",title:"Prefix"},{name:"suffix",title:"Suffix"},{name:"clear-button",title:"`Clear` Button"}],Gm=[],Lo=e=>{let{modifiers:t,...o}=e,a={};return Object.keys(t||{}).forEach(n=>{switch(n){case"prefix":a.prefix=t?.[n]?Or(v,{icon:"lock"}):void 0;break;case"suffix":a.suffix=t?.[n]?Or(at,{size:o.size,fillMode:"clear",children:"Send"}):void 0;break;case"clear-button":a.showClearButton=t?.[n];break;default:break}}),Or(pn,{value:"Value",style:{width:300},...o,...a})};Lo.options=Um;Lo.states=Hm;Lo.variants=Gm;Lo.defaultOptions=zm;Lo.modifiers=Fm;Lo.className=ie.className;import{jsx as Kt,jsxs as Br}from"react/jsx-runtime";var rl="k-actionsheet-titlebar",Vm={},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 Br("div",{...m,className:r(e.className,rl),children:[Br("div",{className:"k-actionsheet-titlebar-group",children:[a&&Kt("div",{className:"k-actionsheet-actions",children:a}),!N&&Br("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=rl;Le.defaultOptions=Vm;import{jsx as Pr,jsxs as Wm}from"react/jsx-runtime";var wr="k-actionsheet-view",$m=[],Xm={},qm={},Mo=e=>{let{adaptive:t,animated:o,children:a,header:n,footer:i,titleId:l,...c}=e,u=n?.type===Le&&Pr(Le,{adaptive:t,titleId:l,...n?.props}),b=i?.type===Pt&&Pr(Pt,{...i?.props});return Wm("div",{...c,className:r(e.className,wr,{[`${wr}-animated`]:o}),children:[u,Pr("div",{className:"k-actionsheet-content",children:a}),b]})};Mo.states=$m;Mo.options=Xm;Mo.className=wr;Mo.defaultOptions=qm;var ya="action-sheet",dn=ya;var Kr="overlay",sl=Kr;import{jsx as Qm}from"react/jsx-runtime";var il="k-overlay",Jm=[],Ym={},Zm={},ut=e=>{let{...t}=e;return Qm("div",{...t,className:r(e.className,il),children:e.children})};ut.states=Jm;ut.options=Ym;ut.className=il;ut.defaultOptions=Zm;ut.moduleName=Kr;ut.folderName=sl;import{jsx as cn,jsxs as tu}from"react/jsx-runtime";var ll="k-actionsheet",jm=[],eu={},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 tu("div",{className:"k-actionsheet-container",children:[n&&cn(ut,{}),cn(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:cn("div",{...h,id:b,role:"dialog","aria-modal":n?"true":void 0,"aria-labelledby":N,className:r(e.className,ll,{[`k-actionsheet-${t}`]:o===!1,"k-actionsheet-fullscreen":o===!0,"k-adaptive-actionsheet":a}),children:i||cn(Mo,{header:c,footer:u,adaptive:a,titleId:N,...e,children:l})})})]})};J.states=jm;J.options=eu;J.className=ll;J.defaultOptions=Aa;J.moduleName=ya;J.folderName=dn;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 ru}from"react/jsx-runtime";var pl="k-actionsheet-container",ou=[],au={},nu={},So=e=>{let{children:t,...o}=e;return ru("div",{...o,className:pl,children:t})};So.states=ou;So.options=au;So.className=pl;So.defaultOptions=nu;So.moduleName=ya;So.folderName=dn;import{jsx as su}from"react/jsx-runtime";var Rr=e=>{let{...t}=e;return su("div",{...t,className:r(e.className,"k-list-ul"),children:e.children})};import{Fragment as lu,jsx as Ca,jsxs as _r}from"react/jsx-runtime";var Dr="k-actionsheet-item",iu=[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 _r("span",{...u,className:r(e.className,Dr,M(Dr,{hover:n,focus:i,selected:l,disabled:c})),children:[!e.children&&Ca(lu,{children:_r("span",{className:"k-actionsheet-action",children:[t&&Ca("span",{className:"k-icon-wrap",children:Ca(v,{className:"k-actionsheet-item-icon",icon:t})}),_r("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=iu;Rt.className=Dr;import{jsx as lC,jsxs as pC}from"react/jsx-runtime";import{jsx as uC}from"react/jsx-runtime";import{jsx as xC}from"react/jsx-runtime";import{jsx as kC}from"react/jsx-runtime";import{jsx as le,jsxs as Hr}from"react/jsx-runtime";var pu=J.options,du=J.states,cl={...J.defaultOptions,variant:"normal"},cu=[{name:"normal",title:"Normal"},{name:"adaptive",title:"Adaptive"},{name:"fullScreen",title:"Full Screen"}],mu=[{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}={...cl,...e},n={},i=Hr(Rr,{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?Hr(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?Hr(Pt,{alignment:"stretched",children:[le(p,{text:"Apply",themeColor:"primary"}),le(p,{text:"Cancel",themeColor:"base"})]}):void 0,children:i})};yo.options=pu;yo.states=du;yo.variants=cu;yo.defaultOptions=cl;yo.modifiers=mu;yo.className=J.className;var zr="slider",ml=zr;import{jsx as Ao,jsxs as Ur}from"react/jsx-runtime";var Ea="k-slider",uu=[s.hover,s.focus,s.active,s.disabled,s.readonly],fu={},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,...X}=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"),Ur("div",{...X,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"}),Ur("div",{className:"k-slider-track-wrap",children:[u&&Ao("ul",{className:"k-reset k-slider-items","aria-hidden":"true",children:e.children}),Ur("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":X["aria-label"]?`${X["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"?X["aria-label"]?`${X["aria-label"]} end`:"Range end":X["aria-label"]})]})]}),c&&Ao(p,{className:"k-button-increase",rounded:"full",icon:ge,tabIndex:-1,title:"Increase"})]})};F.states=uu;F.options=fu;F.className=Ea;F.defaultOptions=Xe;F.moduleName=zr;F.folderName=ml;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 ul}from"react/jsx-runtime";var fl="k-tick",bu=[],hu={},bl={label:!1},I=e=>{let{style:t,label:o=bl.label,orientation:a,large:n,text:i,...l}=e;return ul("li",{...l,role:"presentation",title:i||"Tick",className:r(e.className,fl,{[`k-tick-${a}`]:a,"k-tick-large":n}),style:t,children:o&&ul("span",{className:"k-label",children:i})})};I.states=bu;I.options=hu;I.className=fl;I.defaultOptions=bl;import{Fragment as xu,jsx as qe,jsxs as gu}from"react/jsx-runtime";var hl=e=>qe(F,{"aria-label":e["aria-label"]||"Slider",children:gu(xu,{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 Nu,jsx as We,jsxs as vu}from"react/jsx-runtime";var xl=e=>We(F,{children:vu(Nu,{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 pE,jsx as lE,jsxs as dE}from"react/jsx-runtime";import{Fragment as bE,jsx as fE,jsxs as hE}from"react/jsx-runtime";import{jsx as ku}from"react/jsx-runtime";var Fr=e=>ku(F,{type:"gradient",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{jsx as Lu}from"react/jsx-runtime";var Gr=e=>Lu(F,{type:"gradient",orientation:"vertical",showButtons:!1,showTicks:!1,...e,"aria-label":e["aria-label"]||"Color slider"});import{Fragment as CE,jsx as AE,jsxs as EE}from"react/jsx-runtime";import{Fragment as PE,jsx as BE,jsxs as wE}from"react/jsx-runtime";import{jsx as ft,jsxs as gl}from"react/jsx-runtime";var Mu=F.options,Su=F.states,Nl={...F.defaultOptions,variant:"horizontal",label:!0},yu=[{name:"horizontal",title:"Horizontal"},{name:"vertical",title:"Vertical"}],Au=[{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=Nl.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"?gl(xl,{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%"}})]}):gl(hl,{style:{width:"400px",...l},...a,...i,children:[ft(I,{label:n,large:!0,orientati