@progress/kendo-themes-html
Version:
A collection of HTML helpers used for developing Kendo UI themes
2 lines (1 loc) • 46.1 kB
JavaScript
var ra=Object.create;var De=Object.defineProperty;var oa=Object.getOwnPropertyDescriptor;var da=Object.getOwnPropertyNames;var ia=Object.getPrototypeOf,sa=Object.prototype.hasOwnProperty;var ca=(a,t)=>{for(var l in t)De(a,l,{get:t[l],enumerable:!0})},nt=(a,t,l,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of da(t))!sa.call(a,i)&&i!==l&&De(a,i,{get:()=>t[i],enumerable:!(d=oa(t,i))||d.enumerable});return a};var Ca=(a,t,l)=>(l=a!=null?ra(ia(a)):{},nt(t||!a||!a.__esModule?De(l,"default",{value:a,enumerable:!0}):l,a)),xa=a=>nt(De({},"__esModule",{value:!0}),a);var ll={};ca(ll,{MultiViewCalendarDecade:()=>lt});module.exports=xa(ll);var C=(...a)=>a.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?C(...t):typeof t=="object"?Object.keys(t).map((l,d)=>t[d]||t[l]&&l||null).filter(l=>l!==null).join(" "):t).filter(t=>!!t).join(" ");var U=(a,t)=>C({[`${a}-xs`]:t.size==="xsmall",[`${a}-sm`]:t.size==="small",[`${a}-md`]:t.size==="medium",[`${a}-lg`]:t.size==="large",[`${a}-xl`]:t.size==="xlarge",[`${a}-xxl`]:t.size==="xxlarge",[`${a}-xxxl`]:t.size==="xxxlarge"},{[`${a}-${t.fillMode}`]:t.fillMode},{[`${a}-${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"}),Ve=(a,t)=>{let{valid:l,invalid:d,hover:i,focus:p,checked:T,active:u,selected:g,disabled:y,indeterminate:A,loading:V,empty:K,readonly:le,highlighted:be,...G}=t;return C({"k-valid":l,"k-invalid":d,"k-hover":i,"k-focus":p,"k-checked":T,"k-active":u,"k-selected":g,"k-disabled":y,"k-indeterminate":A&&!T,"k-loading":V,"k-empty":K,"k-readonly":le,"k-highlighted":be},Object.keys(G).reduce((F,W)=>(W.startsWith("k-")?F[W]=G[W]:F[`k-${W}`]=G[W],F),{}))};function rt(a,t){if(!t)return{};let l=Array.isArray(t)?t:[t];return Object.fromEntries(l.map(d=>[`k-${d}`,!0]))}var s={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},Q={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},Z={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},$={undefined:void 0,outline:"outline",solid:"solid",duotone:"duotone"},b={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},P={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 Pe={};function ne(a){return Pe[a]=(Pe[a]||0)+1,`k-${a}-${Pe[a]}`}var dt=require("react/jsx-runtime"),ot="k-calendar-view",Oe={orientation:"horizontal",calendarView:"month"},ze=a=>{let{orientation:t=Oe.orientation,calendarView:l=Oe.calendarView,gridRole:d,ariaLabelledBy:i,...p}=a;return(0,dt.jsx)("div",{...p,className:C(a.className,ot,`k-calendar-${l}view`,"k-align-items-start","k-justify-content-center",{"k-hstack":t==="horizontal","k-vstack":t==="vertical"}),...d?{role:"grid","aria-labelledby":i,tabIndex:0}:{},children:a.children})};ze.className=ot;ze.defaultOptions=Oe;var ke=require("react/jsx-runtime"),We="k-font-icon",ma=[],pa={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info]},ua={},ye=a=>{let{size:t,themeColor:l,icon:d,rotate:i,flip:p,...T}=a;return d?(0,ke.jsx)("span",{...T,className:C(a.className,We,U(We,{size:t}),{[`k-i-${d}`]:d,[`k-color-${l}`]:l,[`k-rotate-${i}`]:i,"k-flip-h":p==="h"||p==="both","k-flip-v":p==="v"||p==="both"}),"aria-hidden":"true"}):(0,ke.jsx)(ke.Fragment,{})};ye.states=ma;ye.options=pa;ye.className=We;ye.defaultOptions=ua;var it=ye;var j=require("react/jsx-runtime"),Ue="k-svg-icon",ba=[],fa={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info],variant:[$.outline,$.solid,$.duotone]},Je={viewBox:"0 0 24 24",variant:$.outline},Te=a=>{var V,K;let{size:t,themeColor:l,rotate:d,flip:i,viewBox:p=Je.viewBox,variant:T=Je.variant,icon:u,...g}=a;if(!u)return(0,j.jsx)(j.Fragment,{});if(u==="none")return(0,j.jsx)("span",{...g,className:C(a.className,Ue,U("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let y=typeof u=="object"&&u.name&&u.name,A=typeof u=="object"?T&&((V=u.variants)==null?void 0:V[T])||((K=u.variants)==null?void 0:K.outline)||u.content:void 0;return(0,j.jsx)("span",{...g,className:C(a.className,Ue,U("k-icon",{size:t}),{[`k-svg-i-${y}`]:y,[`k-color-${l}`]:l,[`k-rotate-${d}`]:d,"k-flip-h":i==="h"||i==="both","k-flip-v":i==="v"||i==="both"}),"aria-hidden":"true",children:(0,j.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof u=="object"?u.viewBox:p,dangerouslySetInnerHTML:A!==void 0?{__html:A}:void 0,children:u?void 0:a.children})})};Te.states=ba;Te.options=fa;Te.className=Ue;Te.defaultOptions=Je;var $e=Te;var Ye=Ca(require("@progress/kendo-svg-icons"));var st="icon",ct="icons";var mt=require("react");var Ct=require("react"),xt=(0,Ct.createContext)({iconsType:"svg"});var q=require("react/jsx-runtime"),He="k-icon",wa=a=>a.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ka=[],ya={size:[s.undefined,s.xsmall,s.small,s.medium,s.large,s.xlarge,s.xxlarge,s.xxxlarge],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info],variant:[$.outline,$.solid,$.duotone]},Ke={viewBox:"0 0 24 24",type:"svg",variant:$.outline},Y=a=>{let{iconsType:t}=(0,mt.useContext)(xt),{size:l,themeColor:d,icon:i,type:p=t||Ke.type,rotate:T,flip:u,viewBox:g=Ke.viewBox,variant:y=Ke.variant,...A}=a;if(!i)return(0,q.jsx)(q.Fragment,{});if((t||p)==="svg"){if(i==="none")return(0,q.jsx)($e,{...A,className:C(a.className,He),icon:i,size:l,variant:y});let K=Ye[i]?i:wa(`${i}-icon`);return Ye[K]?(0,q.jsx)($e,{...A,className:C(a.className,He),icon:Ye[K],size:l,themeColor:d,rotate:T,flip:u,viewBox:g,variant:y}):(0,q.jsx)(q.Fragment,{})}return(0,q.jsx)(it,{...A,className:C(a.className,He),icon:i,size:l,themeColor:d,rotate:T,flip:u})};Y.states=ka;Y.options=ya;Y.defaultOptions=Ke;Y.className=He;Y.moduleName=st;Y.folderName=ct;Y.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 Ge="button",pt=Ge;var O=require("react/jsx-runtime"),ge="k-button",Ta=["icon-button"],ga=[P.hover,P.focus,P.active,P.selected,P.disabled,P.generating],Na={size:[s.undefined,s.xsmall,s.small,s.medium,s.large],rounded:[Q.undefined,Q.none,Q.small,Q.medium,Q.large,Q.full],fillMode:[Z.undefined,Z.solid,Z.flat,Z.outline,Z.clear,Z.link],themeColor:[b.undefined,b.base,b.primary,b.secondary,b.tertiary,b.success,b.warning,b.error,b.info,b.inverse]},qe={showArrow:!1,arrowIconName:"chevron-down"},v=a=>{let{as:t="button",size:l,rounded:d,fillMode:i,themeColor:p,showArrow:T=qe.showArrow,arrowIconName:u=qe.arrowIconName,variant:g,hover:y,focus:A,active:V,selected:K,disabled:le,togglable:be,ariaDisabled:G,icon:F,iconSize:W,text:fe,iconClassName:Me,className:we,...Fe}=a,Se=F!=null,na=a.children!==void 0;return(0,O.jsxs)(t,{className:C(we,ge,rt(ge,g),U(ge,{size:l,rounded:d,fillMode:i,themeColor:p}),Ve(ge,{hover:y,focus:A,active:V,disabled:le||G,selected:K}),{"k-icon-button":!fe&&!na&&Se}),"aria-pressed":be?K?"true":"false":void 0,...Fe,"aria-disabled":G?"true":void 0,disabled:le||void 0,children:[typeof F=="string"&&F&&(0,O.jsx)(Y,{className:C(Me,"k-button-icon"),icon:F,size:W}),F&&typeof F!="string"&&(0,O.jsx)(O.Fragment,{children:F}),fe?(0,O.jsxs)(O.Fragment,{children:[fe&&(0,O.jsx)("span",{className:"k-button-text",children:fe}),a.children]}):a.children&&(0,O.jsx)("span",{className:"k-button-text",children:a.children}),T&&(0,O.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,O.jsx)(Y,{icon:u})})]})};v.states=ga;v.options=Na;v.variants=Ta;v.className=ge;v.defaultOptions=qe;v.moduleName=Ge;v.folderName=pt;v.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."}]};var bt=require("react/jsx-runtime"),ut=a=>(0,bt.jsx)(v,{icon:"folder",...a,"aria-label":a["aria-label"]||"Folder",children:void 0});var wt=require("react/jsx-runtime"),ft=a=>(0,wt.jsx)(v,{icon:"folder",children:"Button",...a});var yt=require("react/jsx-runtime"),kt=a=>(0,yt.jsx)(v,{children:"Button",...a});var _e=require("react/jsx-runtime"),va=v.options,Ra=v.states,ha={...v.defaultOptions,variant:"text"},Aa=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],Ea=[],re=a=>{let{variant:t,...l}=a;switch(t){case"icon-only":return(0,_e.jsx)(ut,{...l,icon:"star"});case"icon-and-text":return(0,_e.jsx)(ft,{...l,icon:"star",children:"Button"});default:return(0,_e.jsx)(kt,{...l,children:"Button"})}};re.options=va;re.states=Ra;re.variants=Aa;re.defaultOptions=ha;re.modifiers=Ea;re.className=v.className;var X=require("react/jsx-runtime"),Tt="k-calendar-header",La={size:[s.undefined,s.small,s.medium,s.large]},Ne={calendarTitleText:"October 2021",showToday:!0,showNavigationButtons:!0,orientation:"horizontal"},ee=a=>{let{calendarTitleText:t=Ne.calendarTitleText,showToday:l=Ne.showToday,showNavigationButtons:d=Ne.showNavigationButtons,orientation:i=Ne.orientation,size:p,calendarView:T,dir:u,titleId:g,...y}=a,A=u==="rtl"?"chevron-right":"chevron-left",V=u==="rtl"?"chevron-left":"chevron-right",K=g||ne("calendar-title");return(0,X.jsxs)("div",{...y,className:C(a.className,Tt,{"k-vstack":i==="vertical"}),children:[(0,X.jsx)(v,{disabled:T==="century",className:"k-calendar-title",text:t,size:p,fillMode:"flat",themeColor:"primary",id:K,tabIndex:-1,"aria-label":`Navigate to parent view: ${t}`,...T==="century"?{"aria-disabled":"true"}:{}}),(0,X.jsx)("span",{className:"k-spacer"}),(0,X.jsxs)("span",{className:"k-calendar-nav",children:[d&&(0,X.jsx)(v,{className:"k-calendar-nav-prev",icon:A,size:p,fillMode:"flat",tabIndex:-1,"aria-label":"Navigate to previous view"}),l&&(0,X.jsx)(v,{size:p,fillMode:"flat",className:"k-calendar-nav-today",tabIndex:-1,children:"Today"}),d&&(0,X.jsx)(v,{className:"k-calendar-nav-next",icon:V,size:p,fillMode:"flat",tabIndex:-1,"aria-label":"Navigate to next view"})]})]})};ee.options=La;ee.className=Tt;ee.defaultOptions=Ne;var Xe=require("react/jsx-runtime"),gt="k-calendar-footer",Ia={size:[s.undefined,s.small,s.medium,s.large]},Nt={calendarFooterText:"Tuesday, October 12, 2021"},ve=a=>{let{size:t,calendarFooterText:l=Nt.calendarFooterText,...d}=a;return(0,Xe.jsx)("div",{...d,className:C(a.className,gt),children:(0,Xe.jsx)(v,{size:t,fillMode:"flat",themeColor:"primary",className:"k-calendar-nav-today",children:l})})};ve.options=Ia;ve.className=gt;ve.defaultOptions=Nt;var z="calendar",_=z;var oe=require("react/jsx-runtime"),Qe="k-calendar",Ma=[],Sa={size:[s.undefined,s.small,s.medium,s.large]},Re={showCalendarHeader:!0,orientation:"horizontal",calendarView:"month",calendarTitleText:"October 2021"},R=a=>{let{size:t,orientation:l=Re.orientation,calendarView:d=Re.calendarView,calendarTitleText:i=Re.calendarTitleText,showCalendarHeader:p=Re.showCalendarHeader,showWeek:T,showCalendarFooter:u,calendarFooterText:g,dir:y,...A}=a,V=ne("calendar-title");return(0,oe.jsxs)("div",{...A,dir:y,className:C(a.className,Qe,U(Qe,{size:t}),{"k-week-number":T}),children:[p&&(0,oe.jsx)(ee,{calendarView:d,showToday:!u,calendarTitleText:i,orientation:l,size:t,dir:y,titleId:V}),(0,oe.jsx)(ze,{calendarView:d,orientation:l,gridRole:!0,ariaLabelledBy:V,children:a.children}),u&&(0,oe.jsx)(ve,{calendarFooterText:g,size:t})]})};R.states=Ma;R.options=Sa;R.className=Qe;R.defaultOptions=Re;R.moduleName=z;R.folderName=_;R.ariaSpec={selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range)",rules:[{selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-view",attribute:"role=grid",usage:"Specifies the role of the Calendar view container."},{selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-view",attribute:"aria-labelledby",usage:"Pointing to the current view label (e.g. March 2022 or 2020-2029)."},{selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-view",attribute:"tabindex=0",usage:"Makes the grid focusable."},{selector:".k-calendar:not(.k-calendar-infinite):not(.k-calendar-range) .k-calendar-table",attribute:"role=none",usage:"Inner table has role removed \u2014 content belongs to the grid on the view."},{selector:".k-calendar-thead",attribute:"role=rowgroup",usage:"Groups header rows."},{selector:".k-calendar-tbody",attribute:"role=rowgroup",usage:"Groups body rows."},{selector:".k-calendar-tr",attribute:"role=row",usage:"Each row in the calendar table."},{selector:".k-calendar-thead .k-calendar-th",attribute:"role=columnheader",usage:"Column header for day names."},{selector:".k-calendar-thead .k-calendar-th",attribute:"scope=col",usage:"Specifies the header applies to a column."},{selector:".k-calendar-thead .k-calendar-th",attribute:"aria-label",usage:"Full name of the day of the week."},{selector:".k-calendar-td:not(.k-alt):not(.k-empty)",attribute:"role=gridcell",usage:"Date cells in the calendar body."},{selector:".k-calendar-td.k-selected",attribute:"aria-selected=true",usage:"Indicates the selected date."},{selector:".k-calendar-td.k-disabled",attribute:"aria-disabled=true",usage:"Indicates a disabled date."},{selector:".k-calendar-nav-next,.k-calendar-nav-prev",attribute:"tabindex=-1",usage:"Navigation buttons are not focusable."},{selector:".k-calendar-nav-next,.k-calendar-nav-prev",attribute:"aria-label",usage:"Describes the navigation button purpose."},{selector:".k-calendar-title",attribute:"tabindex=-1",usage:"Title button is not focusable."},{selector:".k-calendar-title",attribute:"aria-label",usage:"Describes the title button purpose."},{selector:".k-calendar-nav-today",attribute:"tabindex=-1",usage:"Today link/button is not focusable."}]};var Rt=require("react/jsx-runtime"),vt="k-calendar-container",Da=[],Va={},za={},de=a=>{let{...t}=a;return(0,Rt.jsx)("div",{...t,className:C(a.className,vt),children:a.children})};de.states=Da;de.options=Va;de.className=vt;de.defaultOptions=za;de.moduleName=z;de.folderName=_;var J=require("react/jsx-runtime"),Ha=[P.hover,P.focus,P.active,P.selected,P.disabled],e=a=>{let{text:t,headerCell:l,today:d,weekend:i,showOtherMonth:p,weekCell:T,rangeStart:u,rangeMid:g,rangeEnd:y,dayIndicator:A,empty:V,hover:K,focus:le,active:be,selected:G,disabled:F,...W}=a,Me=`k-calendar-${l?"th":"td"}`,we=[a.className,Me,Ve(Me,{hover:K,focus:le,active:be,selected:G,disabled:F}),{"k-today":d,"k-weekend":i,"k-other-month":p,"k-alt":T,"k-range-start":u,"k-range-mid":g,"k-range-end":y,"k-empty":V}],Fe={Su:"Sunday",Mo:"Monday",Tu:"Tuesday",We:"Wednesday",Th:"Thursday",Fr:"Friday",Sa:"Saturday",W:"Week number"};if(l){let Se=t?Fe[t]||t:void 0;return(0,J.jsx)("th",{...W,className:C(we),role:"columnheader",scope:"col","aria-label":Se,children:T?(0,J.jsx)("span",{className:"k-sr-only",children:Se}):t})}return T?(0,J.jsx)("td",{...W,className:C(we),children:t}):(0,J.jsx)("td",{...W,className:C(we),role:"gridcell",...G?{"aria-selected":"true"}:{},...F?{"aria-disabled":"true"}:{},children:V&&!p?(0,J.jsx)(J.Fragment,{children:"\xA0"}):(0,J.jsxs)("span",{className:"k-link",children:[t,A&&(0,J.jsx)("span",{className:"k-day-indicator"})]})})};e.states=Ha;var ie=require("react/jsx-runtime"),ht="k-calendar-thead",At={cellsText:["Su","Mo","Tu","We","Th","Fr","Sa"]},se=a=>{let{showWeek:t,cellsText:l=At.cellsText,...d}=a;return(0,ie.jsx)("thead",{...d,className:C(a.className,ht),role:"rowgroup",children:(0,ie.jsxs)("tr",{className:"k-calendar-tr",role:"row",children:[t&&(0,ie.jsx)(e,{weekCell:!0,headerCell:!0,text:"W"}),l.map((i,p)=>(0,ie.jsx)(e,{text:i,headerCell:!0},p))]})})};se.className=ht;se.defaultOptions=At;var Lt=require("react/jsx-runtime"),Et="k-calendar-tbody",D=a=>{let{...t}=a;return(0,Lt.jsx)("tbody",{...t,className:C(a.className,Et),role:"rowgroup",children:a.children})};D.className=Et;D.moduleName=z;D.folderName=_;var ce=require("react/jsx-runtime"),Ka="k-calendar-table",h=a=>{let{calendarCaption:t,showTableHead:l,showWeek:d,ariaLabelledBy:i,ariaActiveDescendant:p,gridRole:T,...u}=a;return(0,ce.jsxs)("table",{...u,className:C(a.className,Ka),...T?{role:"grid","aria-labelledby":i,"aria-activedescendant":p,tabIndex:0}:{role:"none"},children:[t&&(0,ce.jsx)("caption",{className:"k-calendar-caption",children:t}),l&&(0,ce.jsx)(se,{showWeek:d}),(0,ce.jsx)(D,{children:a.children})]})};var te=require("react/jsx-runtime"),It="k-calendar-navigation",he=a=>(0,te.jsxs)("div",{...a,className:C(a.className,It),children:[(0,te.jsx)("span",{className:"k-calendar-navigation-highlight"}),(0,te.jsxs)("div",{className:"k-content k-scrollable",children:[(0,te.jsx)("ul",{className:"k-reset",children:a.children}),(0,te.jsx)("div",{className:"k-scrollable-placeholder",style:{height:"1000px"}})]})]});he.className=It;he.moduleName=z;he.folderName=_;var Mt=require("react/jsx-runtime"),_a="k-calendar-table",Ze=a=>{let{tableRole:t="none",ariaLabelledBy:l,...d}=a;return(0,Mt.jsx)("table",{...d,className:C(a.className,_a),role:t,...l?{"aria-labelledby":l}:{},...t==="grid"?{tabIndex:0}:{},children:a.children})};var H=require("react/jsx-runtime"),St="k-calendar-view",Ce={orientation:"vertical",calendarView:"month",headerText:"April 2018",showWeekdays:!0,showNavigationButtons:!1},xe=a=>{let{orientation:t=Ce.orientation,calendarView:l=Ce.calendarView,headerText:d=Ce.headerText,showWeekdays:i=Ce.showWeekdays,showNavigationButtons:p=Ce.showNavigationButtons,showWeekNumbers:T,weekdayCellsText:u,gridLabelledBy:g,...y}=a;return(0,H.jsxs)("div",{...y,className:C(St,`k-calendar-${l}view`,a.className,{"k-hstack":t==="horizontal","k-vstack":t==="vertical"}),children:[(0,H.jsx)(ee,{showNavigationButtons:p,calendarTitleText:d,orientation:"horizontal"}),i&&(0,H.jsxs)(Ze,{className:"k-calendar-weekdays",tableRole:"table",children:[(0,H.jsxs)("colgroup",{children:[(0,H.jsx)("col",{}),(0,H.jsx)("col",{}),(0,H.jsx)("col",{}),(0,H.jsx)("col",{}),(0,H.jsx)("col",{}),(0,H.jsx)("col",{}),(0,H.jsx)("col",{})]}),(0,H.jsx)(se,{cellsText:u,showWeek:T})]}),(0,H.jsxs)("div",{className:"k-content k-scrollable",role:"none",children:[(0,H.jsx)(Ze,{tableRole:"grid",ariaLabelledBy:g,children:a.children}),(0,H.jsx)("div",{className:"k-scrollable-placeholder",style:{height:"1000px"}})]})]})};xe.className=St;xe.defaultOptions=Ce;xe.moduleName=z;xe.folderName=_;var ae=require("react/jsx-runtime"),Dt="k-calendar-infinite",Ba={size:[s.undefined,s.small,s.medium,s.large]},Fa=["Aug","Sep","Oct","Nov","Dec","2021","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","2022","Feb","Mar","Apr","May","Jun","Jul"],Pa={2021:"marker",2022:"marker"},Oa=(a,t)=>a.map((l,d)=>(0,ae.jsx)("li",{children:(0,ae.jsx)("span",{className:t[l]==="marker"?"k-calendar-navigation-marker":void 0,children:l})},d)),Ae={showNavigation:!0,calendarView:"month",navigationItems:Fa,navigationMarkerConfig:Pa},L=a=>{let{size:t,showNavigation:l=Ae.showNavigation,calendarView:d=Ae.calendarView,navigationItems:i=Ae.navigationItems,navigationMarkerConfig:p=Ae.navigationMarkerConfig,calendarTitleText:T,showWeekdays:u,showWeekNumbers:g,showNavigationButtons:y,calendarWeekdays:A,...V}=a,K=ne("calendar-infinite-title");return(0,ae.jsxs)("div",{...V,className:C(a.className,"k-calendar",Dt,U("k-calendar",{size:t})),children:[l&&(0,ae.jsx)(he,{children:Oa(i,p)}),(0,ae.jsx)(xe,{calendarView:d,headerText:T,showWeekdays:u,showWeekNumbers:g,showNavigationButtons:y,orientation:"vertical",weekdayCellsText:A,gridLabelledBy:K,children:a.children})]})};L.options=Ba;L.className=Dt;L.defaultOptions=Ae;L.moduleName=z;L.folderName=_;L.ariaSpec={selector:".k-calendar-infinite",rules:[{selector:".k-calendar-infinite .k-content .k-calendar-table",attribute:"role=grid",usage:"The content table is the grid element for the infinite calendar."},{selector:".k-calendar-infinite .k-content .k-calendar-table",attribute:"aria-labelledby",usage:"Pointing to the current view title element."},{selector:".k-calendar-infinite .k-content .k-calendar-table",attribute:"tabindex=0",usage:"Makes the grid focusable."},{selector:".k-calendar-infinite .k-calendar-weekdays",attribute:"role=table",usage:"Weekday header table keeps table semantics (not part of grid)."},{selector:".k-calendar-view div.k-content.k-scrollable",attribute:"role=none",usage:"Scrollable wrapper is transparent to a11y tree."},{selector:".k-calendar-infinite .k-calendar-tbody",attribute:"role=rowgroup",usage:"Explicit rowgroup role on tbody."},{selector:".k-calendar-infinite .k-calendar-tr",attribute:"role=row",usage:"Explicit row role on tr."},{selector:".k-calendar-infinite .k-calendar-weekdays .k-calendar-th",attribute:"role=columnheader",usage:"Explicit columnheader role on weekday headers."},{selector:".k-calendar-infinite .k-calendar-weekdays .k-calendar-th",attribute:"scope=col",usage:"Specifies that the header applies to a column."},{selector:".k-calendar-infinite .k-calendar-weekdays .k-calendar-th",attribute:"aria-label",usage:"Full name of the day of the week."},{selector:".k-calendar-infinite .k-calendar-td:not(.k-alt):not(.k-empty)",attribute:"role=gridcell",usage:"Date cells in the calendar body."},{selector:".k-calendar-td.k-selected",attribute:"aria-selected=true",usage:"Specifies whether the date is selected."},{selector:".k-calendar-td.k-disabled",attribute:"aria-disabled=true",usage:"Specifies a disabled date."},{selector:".k-calendar-title",attribute:"tabindex=-1",usage:"Title button is not focusable."},{selector:".k-calendar-nav-today",attribute:"tabindex=-1",usage:"Today link is not focusable."}]};var zt=require("react/jsx-runtime"),Vt="k-calendar-tr",r=a=>{let{...t}=a;return(0,zt.jsx)("tr",{...t,className:C(a.className,Vt),role:"row",children:a.children})};r.className=Vt;r.moduleName=z;r.folderName=_;var Kt=require("react/jsx-runtime"),Ht="k-calendar-caption",B=a=>{let{text:t,scope:l,colSpan:d,rowSpan:i,...p}=a;return(0,Kt.jsx)("th",{...p,scope:l,colSpan:d,rowSpan:i,className:C(a.className,Ht),children:t})};B.className=Ht;B.moduleName=z;B.folderName=_;var I=require("react/jsx-runtime"),_t=({showOtherCentury:a,...t})=>(0,I.jsx)(R,{calendarView:"century",calendarTitleText:"2000 - 2099",children:(0,I.jsxs)(h,{children:[(0,I.jsxs)(r,{children:[(0,I.jsx)(e,{text:"1990 - 1999"}),(0,I.jsx)(e,{text:"2000 - 2009"}),(0,I.jsx)(e,{text:"2010 - 2019",today:!0}),(0,I.jsx)(e,{text:"2020 - 2029"})]}),(0,I.jsxs)(r,{children:[(0,I.jsx)(e,{text:"2030 - 2039"}),(0,I.jsx)(e,{text:"2040 - 2049"}),(0,I.jsx)(e,{text:"2050 - 2059"}),(0,I.jsx)(e,{text:"2060 - 2069"})]}),(0,I.jsxs)(r,{children:[(0,I.jsx)(e,{text:"2070 - 2079"}),(0,I.jsx)(e,{text:"2080 - 2089"}),(0,I.jsx)(e,{text:"2090 - 2099"}),(0,I.jsx)(e,{text:"2100 - 2109",empty:!a})]})]}),...t});var M=require("react/jsx-runtime"),Bt=({showOtherDecade:a,...t})=>(0,M.jsx)(R,{calendarView:"decade",calendarTitleText:"2020 - 2029",children:(0,M.jsxs)(h,{children:[(0,M.jsxs)(r,{children:[(0,M.jsx)(e,{text:"2019",empty:!a}),(0,M.jsx)(e,{text:"2020"}),(0,M.jsx)(e,{text:"2021",today:!0}),(0,M.jsx)(e,{text:"2022"})]}),(0,M.jsxs)(r,{children:[(0,M.jsx)(e,{text:"2023"}),(0,M.jsx)(e,{text:"2024"}),(0,M.jsx)(e,{text:"2025"}),(0,M.jsx)(e,{text:"2026"})]}),(0,M.jsxs)(r,{children:[(0,M.jsx)(e,{text:"2027"}),(0,M.jsx)(e,{text:"2028"}),(0,M.jsx)(e,{text:"2029"}),(0,M.jsx)(e,{text:"2030",empty:!a})]})]}),...t});var c=require("react/jsx-runtime"),Ft=({showCaptions:a,showOtherMonth:t,...l})=>(0,c.jsx)(R,{calendarView:"month",children:(0,c.jsxs)(h,{calendarCaption:a&&"October 2021",showTableHead:!0,children:[(0,c.jsxs)(r,{children:[(0,c.jsx)(e,{text:"26",showOtherMonth:t,empty:!t,weekend:t}),(0,c.jsx)(e,{text:"27",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"28",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"29",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"30",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"1"}),(0,c.jsx)(e,{text:"2",weekend:!0})]}),(0,c.jsxs)(r,{children:[(0,c.jsx)(e,{text:"3",weekend:!0}),(0,c.jsx)(e,{text:"4"}),(0,c.jsx)(e,{text:"5"}),(0,c.jsx)(e,{text:"6"}),(0,c.jsx)(e,{text:"7"}),(0,c.jsx)(e,{text:"8"}),(0,c.jsx)(e,{text:"9",weekend:!0})]}),(0,c.jsxs)(r,{children:[(0,c.jsx)(e,{text:"10",weekend:!0}),(0,c.jsx)(e,{text:"11"}),(0,c.jsx)(e,{text:"12",today:!0}),(0,c.jsx)(e,{text:"13"}),(0,c.jsx)(e,{text:"14"}),(0,c.jsx)(e,{text:"15"}),(0,c.jsx)(e,{text:"16",weekend:!0})]}),(0,c.jsxs)(r,{children:[(0,c.jsx)(e,{text:"17",weekend:!0}),(0,c.jsx)(e,{text:"18"}),(0,c.jsx)(e,{text:"19"}),(0,c.jsx)(e,{text:"20"}),(0,c.jsx)(e,{text:"21"}),(0,c.jsx)(e,{text:"22"}),(0,c.jsx)(e,{text:"23",weekend:!0})]}),(0,c.jsxs)(r,{children:[(0,c.jsx)(e,{text:"24",weekend:!0}),(0,c.jsx)(e,{text:"25"}),(0,c.jsx)(e,{text:"26"}),(0,c.jsx)(e,{text:"27"}),(0,c.jsx)(e,{text:"28"}),(0,c.jsx)(e,{text:"29"}),(0,c.jsx)(e,{text:"30",weekend:!0})]}),(0,c.jsxs)(r,{children:[(0,c.jsx)(e,{text:"31",weekend:!0}),(0,c.jsx)(e,{text:"1",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"2",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"3",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"4",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"5",showOtherMonth:t,empty:!t}),(0,c.jsx)(e,{text:"6",showOtherMonth:t,empty:!t,weekend:t})]})]}),...l});var Pt=require("react/jsx-runtime");var S=require("react/jsx-runtime"),Ot=a=>(0,S.jsx)(R,{calendarView:"year",calendarTitleText:"2019",children:(0,S.jsxs)(h,{children:[(0,S.jsxs)(r,{children:[(0,S.jsx)(e,{text:"Jan"}),(0,S.jsx)(e,{text:"Feb"}),(0,S.jsx)(e,{text:"Mar"}),(0,S.jsx)(e,{text:"Apr"})]}),(0,S.jsxs)(r,{children:[(0,S.jsx)(e,{text:"May"}),(0,S.jsx)(e,{text:"Jun"}),(0,S.jsx)(e,{text:"Jul"}),(0,S.jsx)(e,{text:"Au"})]}),(0,S.jsxs)(r,{children:[(0,S.jsx)(e,{text:"Sep"}),(0,S.jsx)(e,{text:"Oct",today:!0}),(0,S.jsx)(e,{text:"Nov"}),(0,S.jsx)(e,{text:"Dec"})]})]}),...a});var o=require("react/jsx-runtime"),Wt=({firstCaption:a="January 2021",secondCaption:t="February 2021",...l})=>(0,o.jsx)(L,{calendarTitleText:"January 2021",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("colgroup",{children:[(0,o.jsx)("col",{}),(0,o.jsx)("col",{}),(0,o.jsx)("col",{}),(0,o.jsx)("col",{}),(0,o.jsx)("col",{}),(0,o.jsx)("col",{}),(0,o.jsx)("col",{})]}),(0,o.jsxs)(D,{children:[(0,o.jsx)(r,{"aria-hidden":"true",children:(0,o.jsx)(B,{scope:"col",colSpan:7,text:a})}),(0,o.jsxs)(r,{children:[(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{text:"1"}),(0,o.jsx)(e,{text:"2",weekend:!0})]}),(0,o.jsxs)(r,{children:[(0,o.jsx)(e,{text:"3",weekend:!0}),(0,o.jsx)(e,{text:"4"}),(0,o.jsx)(e,{text:"5"}),(0,o.jsx)(e,{text:"6"}),(0,o.jsx)(e,{text:"7"}),(0,o.jsx)(e,{text:"8"}),(0,o.jsx)(e,{text:"9",weekend:!0})]}),(0,o.jsxs)(r,{children:[(0,o.jsx)(e,{text:"10",weekend:!0}),(0,o.jsx)(e,{text:"11"}),(0,o.jsx)(e,{text:"12"}),(0,o.jsx)(e,{text:"13"}),(0,o.jsx)(e,{text:"14"}),(0,o.jsx)(e,{text:"15"}),(0,o.jsx)(e,{text:"16",weekend:!0})]}),(0,o.jsxs)(r,{children:[(0,o.jsx)(e,{text:"17",weekend:!0}),(0,o.jsx)(e,{text:"18"}),(0,o.jsx)(e,{text:"19"}),(0,o.jsx)(e,{text:"20"}),(0,o.jsx)(e,{text:"21"}),(0,o.jsx)(e,{text:"22"}),(0,o.jsx)(e,{text:"23",weekend:!0})]}),(0,o.jsxs)(r,{children:[(0,o.jsx)(e,{text:"24",weekend:!0}),(0,o.jsx)(e,{text:"25"}),(0,o.jsx)(e,{text:"26"}),(0,o.jsx)(e,{text:"27"}),(0,o.jsx)(e,{text:"28"}),(0,o.jsx)(e,{text:"29"}),(0,o.jsx)(e,{text:"30",weekend:!0})]}),(0,o.jsxs)(r,{children:[(0,o.jsx)(e,{text:"31",weekend:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0}),(0,o.jsx)(e,{empty:!0})]})]}),(0,o.jsx)(D,{children:(0,o.jsx)(r,{"aria-hidden":"true",children:(0,o.jsx)(B,{scope:"col",colSpan:7,text:t})})})]}),...l});var x=require("react/jsx-runtime"),Ut=({firstCaption:a="2021",secondCaption:t="2022",...l})=>(0,x.jsx)(L,{calendarView:"year",showWeekdays:!1,calendarTitleText:"2021",navigationItems:["2016","2017","2018","2019","2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030","2031","2032","2033","2034","2035","2036","2037","2038","2039","2040","2041","2042"],navigationMarkerConfig:{2021:"marker",2030:"marker",2040:"marker"},children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("colgroup",{children:[(0,x.jsx)("col",{}),(0,x.jsx)("col",{}),(0,x.jsx)("col",{}),(0,x.jsx)("col",{})]}),(0,x.jsxs)(D,{children:[(0,x.jsx)(r,{"aria-hidden":"true",children:(0,x.jsx)(B,{scope:"col",colSpan:4,text:a})}),(0,x.jsxs)(r,{children:[(0,x.jsx)(e,{text:"Jan",today:!0}),(0,x.jsx)(e,{text:"Feb"}),(0,x.jsx)(e,{text:"Mar"}),(0,x.jsx)(e,{text:"Apr"})]}),(0,x.jsxs)(r,{children:[(0,x.jsx)(e,{text:"May"}),(0,x.jsx)(e,{text:"Jun"}),(0,x.jsx)(e,{text:"Jul"}),(0,x.jsx)(e,{text:"Aug"})]}),(0,x.jsxs)(r,{children:[(0,x.jsx)(e,{text:"Sep"}),(0,x.jsx)(e,{text:"Oct"}),(0,x.jsx)(e,{text:"Nov"}),(0,x.jsx)(e,{text:"Dec"})]})]}),(0,x.jsxs)(D,{children:[(0,x.jsx)(r,{"aria-hidden":"true",children:(0,x.jsx)(B,{scope:"col",colSpan:4,text:t})}),(0,x.jsxs)(r,{children:[(0,x.jsx)(e,{text:"Jan"}),(0,x.jsx)(e,{text:"Feb"}),(0,x.jsx)(e,{text:"Mar"}),(0,x.jsx)(e,{text:"Apr"})]}),(0,x.jsxs)(r,{children:[(0,x.jsx)(e,{text:"May"}),(0,x.jsx)(e,{text:"Jun"}),(0,x.jsx)(e,{text:"Jul"}),(0,x.jsx)(e,{text:"Aug"})]}),(0,x.jsxs)(r,{children:[(0,x.jsx)(e,{text:"Sep"}),(0,x.jsx)(e,{text:"Oct"}),(0,x.jsx)(e,{text:"Nov"}),(0,x.jsx)(e,{text:"Dec"})]})]})]}),...l});var m=require("react/jsx-runtime"),Jt=({firstCaption:a="2020 - 2029",secondCaption:t="2030 - 2039",...l})=>(0,m.jsx)(L,{calendarView:"decade",showWeekdays:!1,calendarTitleText:"2020 - 2029",navigationItems:["1970","1980","1990","2000","2010","2020","2030","2040","2050","2060","2070","2080","2090"],navigationMarkerConfig:{2020:"marker"},children:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("colgroup",{children:[(0,m.jsx)("col",{}),(0,m.jsx)("col",{}),(0,m.jsx)("col",{}),(0,m.jsx)("col",{})]}),(0,m.jsxs)(D,{children:[(0,m.jsx)(r,{"aria-hidden":"true",children:(0,m.jsx)(B,{scope:"col",colSpan:4,text:a})}),(0,m.jsxs)(r,{children:[(0,m.jsx)(e,{text:"2020",today:!0}),(0,m.jsx)(e,{text:"2021"}),(0,m.jsx)(e,{text:"2022"}),(0,m.jsx)(e,{text:"2023"})]}),(0,m.jsxs)(r,{children:[(0,m.jsx)(e,{text:"2024"}),(0,m.jsx)(e,{text:"2025"}),(0,m.jsx)(e,{text:"2026"}),(0,m.jsx)(e,{text:"2027"})]}),(0,m.jsxs)(r,{children:[(0,m.jsx)(e,{text:"2028"}),(0,m.jsx)(e,{text:"2029"}),(0,m.jsx)(e,{empty:!0}),(0,m.jsx)(e,{empty:!0})]})]}),(0,m.jsxs)(D,{children:[(0,m.jsx)(r,{"aria-hidden":"true",children:(0,m.jsx)(B,{scope:"col",colSpan:4,text:t})}),(0,m.jsxs)(r,{children:[(0,m.jsx)(e,{text:"2030"}),(0,m.jsx)(e,{text:"2031"}),(0,m.jsx)(e,{text:"2032"}),(0,m.jsx)(e,{text:"2033"})]}),(0,m.jsxs)(r,{children:[(0,m.jsx)(e,{text:"2034"}),(0,m.jsx)(e,{text:"2035"}),(0,m.jsx)(e,{text:"2036"}),(0,m.jsx)(e,{text:"2037"})]}),(0,m.jsxs)(r,{children:[(0,m.jsx)(e,{text:"2038"}),(0,m.jsx)(e,{text:"2039"}),(0,m.jsx)(e,{empty:!0}),(0,m.jsx)(e,{empty:!0})]})]})]}),...l});var N=require("react/jsx-runtime"),$t=({firstCaption:a="2000 - 2099",...t})=>(0,N.jsx)(L,{calendarView:"century",showWeekdays:!1,calendarTitleText:"2000 - 2099",navigationItems:["1900","2000"],navigationMarkerConfig:{2e3:"marker"},children:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("colgroup",{children:[(0,N.jsx)("col",{}),(0,N.jsx)("col",{}),(0,N.jsx)("col",{}),(0,N.jsx)("col",{})]}),(0,N.jsxs)(D,{children:[(0,N.jsx)(r,{"aria-hidden":"true",children:(0,N.jsx)(B,{scope:"col",colSpan:4,text:a})}),(0,N.jsxs)(r,{children:[(0,N.jsx)(e,{text:"1900 - 1999"}),(0,N.jsx)(e,{text:"2000 - 2009"}),(0,N.jsx)(e,{text:"2010 - 2019"}),(0,N.jsx)(e,{text:"2020 - 2029"})]}),(0,N.jsxs)(r,{children:[(0,N.jsx)(e,{text:"2030 - 2039"}),(0,N.jsx)(e,{text:"2040 - 2049"}),(0,N.jsx)(e,{text:"2050 - 2059"}),(0,N.jsx)(e,{text:"2060 - 2069"})]}),(0,N.jsxs)(r,{children:[(0,N.jsx)(e,{text:"2070 - 2079"}),(0,N.jsx)(e,{text:"2080 - 2089"}),(0,N.jsx)(e,{text:"2090 - 2099"}),(0,N.jsx)(e,{empty:!0})]})]})]}),...t});var je=require("react/jsx-runtime");var Yt=require("react/jsx-runtime");var et=require("react/jsx-runtime");var Ee=require("react/jsx-runtime"),Wa=R.options,Ua=R.states,Gt={...R.defaultOptions,variant:"month"},Ja=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],$a=[{name:"footer",title:"Calendar Footer"},{name:"other",title:"Show other cells"}],me=a=>{let{variant:t,modifiers:l,...d}={...Gt,...a},i={showCalendarFooter:!1};Object.keys(l||{}).forEach(y=>{switch(y){case"other":i.showOtherMonth=!!(l!=null&&l[y]),i.showOtherCentury=!!(l!=null&&l[y]),i.showOtherDecade=!!(l!=null&&l[y]);break;case"footer":i.showCalendarFooter=!!(l!=null&&l[y]);break;default:return}});let{showOtherMonth:p,showOtherDecade:T,showOtherCentury:u,showCalendarFooter:g}=i;switch(t){case"century":return(0,Ee.jsx)(_t,{size:d.size,showOtherCentury:u,showCalendarFooter:g});case"decade":return(0,Ee.jsx)(Bt,{size:d.size,showOtherDecade:T,showCalendarFooter:g});case"year":return(0,Ee.jsx)(Ot,{calendarTitleText:"2021",size:d.size,showCalendarFooter:g});default:return(0,Ee.jsx)(Ft,{size:d.size,showOtherMonth:p,showCalendarFooter:g})}};me.options=Wa;me.states=Ua;me.variants=Ja;me.defaultOptions=Gt;me.modifiers=$a;me.className=R.className;var Le=require("react/jsx-runtime"),Ya=L.options,Ga=L.states,qt={...L.defaultOptions,variant:"month"},qa=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],Xa=[{name:"footer",title:"Calendar Footer"},{name:"other",title:"Show other cells"}],pe=a=>{let{variant:t,modifiers:l,...d}={...qt,...a},i={showCalendarFooter:!1};Object.keys(l||{}).forEach(y=>{switch(y){case"other":i.showOtherMonth=!!(l!=null&&l[y]),i.showOtherCentury=!!(l!=null&&l[y]),i.showOtherDecade=!!(l!=null&&l[y]);break;case"footer":i.showCalendarFooter=!!(l!=null&&l[y]);break;default:return}});let{showOtherMonth:p,showOtherDecade:T,showOtherCentury:u,showCalendarFooter:g}=i;switch(t){case"century":return(0,Le.jsx)($t,{size:d.size,showOtherCentury:u,showCalendarFooter:g});case"decade":return(0,Le.jsx)(Jt,{size:d.size,showOtherDecade:T,showCalendarFooter:g});case"year":return(0,Le.jsx)(Ut,{size:d.size,showCalendarFooter:g});default:return(0,Le.jsx)(Wt,{size:d.size,showOtherMonth:p,showCalendarFooter:g})}};pe.options=Ya;pe.states=Ga;pe.variants=qa;pe.defaultOptions=qt;pe.modifiers=Xa;pe.className=L.className;var Xt="calendar",Qt="calendar";var jt=require("react/jsx-runtime"),Zt="k-calendar-range",Qa=[],Za={size:[s.undefined,s.small,s.medium,s.large]},Be={calendarTitleText:"October 2021 - November 2021",orientation:"horizontal",calendarView:"month"},E=a=>{let{size:t,orientation:l=Be.orientation,calendarView:d=Be.calendarView,calendarTitleText:i=Be.calendarTitleText,showCalendarFooter:p,showWeek:T,dir:u,...g}=a;return(0,jt.jsx)(R,{...g,className:C(a.className,Zt),size:t,calendarTitleText:i,calendarView:d,orientation:l,showCalendarFooter:p,showWeek:T,dir:u})};E.states=Qa;E.options=Za;E.className=Zt;E.defaultOptions=Be;E.moduleName=Xt;E.folderName=Qt;E.ariaSpec={selector:".k-calendar-range",rules:[{selector:".k-calendar-range .k-calendar-view",attribute:"role=grid",usage:"Specifies the role of the multi-view calendar wrapper."},{selector:".k-calendar-range .k-calendar-view",attribute:"aria-labelledby",usage:"Pointing to the k-calendar-title element."},{selector:".k-calendar-range .k-calendar-view",attribute:"tabindex=0",usage:"Makes the grid focusable."},{selector:".k-calendar-range .k-calendar-table",attribute:"role=none",usage:"Inner tables have role removed \u2014 content belongs to single grid."},{selector:".k-calendar-thead",attribute:"role=rowgroup",usage:"Explicit rowgroup role."},{selector:".k-calendar-tbody",attribute:"role=rowgroup",usage:"Explicit rowgroup role."},{selector:".k-calendar-tr",attribute:"role=row",usage:"Explicit row role."},{selector:".k-calendar-thead .k-calendar-th",attribute:"role=columnheader",usage:"Column header for day names."},{selector:".k-calendar-thead .k-calendar-th",attribute:"scope=col",usage:"Specifies the header applies to a column."},{selector:".k-calendar-thead .k-calendar-th",attribute:"aria-label",usage:"Full name of the day of the week."},{selector:".k-calendar-td:not(.k-alt):not(.k-empty)",attribute:"role=gridcell",usage:"Date cells in the calendar body."},{selector:".k-calendar-td.k-selected",attribute:"aria-selected=true",usage:"Indicates the selected date."},{selector:".k-calendar-td.k-disabled",attribute:"aria-disabled=true",usage:"Indicates a disabled date."},{selector:".k-calendar-nav-prev,.k-calendar-nav-next",attribute:"tabindex=-1",usage:"Navigation buttons are not focusable."},{selector:".k-calendar-title",attribute:"tabindex=-1",usage:"Title button is not focusable."},{selector:".k-calendar-nav-today",attribute:"tabindex=-1",usage:"Today link is not focusable."}]};var f=require("react/jsx-runtime"),ea=({showCaptions:a,showOtherCentury:t,...l})=>(0,f.jsx)(E,{calendarView:"century",calendarTitleText:"1900 - 2099",children:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(h,{calendarCaption:a&&"1900 - 1999",children:[(0,f.jsxs)(r,{children:[(0,f.jsx)(e,{text:"1890 - 1899",empty:!t}),(0,f.jsx)(e,{text:"1900 - 1909"}),(0,f.jsx)(e,{text:"1910 - 1919"}),(0,f.jsx)(e,{text:"1920 - 1929"})]}),(0,f.jsxs)(r,{children:[(0,f.jsx)(e,{text:"1930 - 1939"}),(0,f.jsx)(e,{text:"1940 - 1949"}),(0,f.jsx)(e,{text:"1950 - 1959"}),(0,f.jsx)(e,{text:"1960 - 1969"})]}),(0,f.jsxs)(r,{children:[(0,f.jsx)(e,{text:"1970 - 1979"}),(0,f.jsx)(e,{text:"1980 - 1989"}),(0,f.jsx)(e,{text:"1990 - 1999"}),(0,f.jsx)(e,{text:"2000 - 2009",empty:!t})]})]}),(0,f.jsxs)(h,{calendarCaption:a&&"2000 - 2099",children:[(0,f.jsxs)(r,{children:[(0,f.jsx)(e,{text:"1990 - 1999",empty:!t}),(0,f.jsx)(e,{text:"2000 - 2009"}),(0,f.jsx)(e,{text:"2010 - 2019"}),(0,f.jsx)(e,{text:"2020 - 2029",today:!0})]}),(0,f.jsxs)(r,{children:[(0,f.jsx)(e,{text:"2030 - 2039"}),(0,f.jsx)(e,{text:"2040 - 2049"}),(0,f.jsx)(e,{text:"2050 - 2059"}),(0,f.jsx)(e,{text:"2060 - 2069"})]}),(0,f.jsxs)(r,{children:[(0,f.jsx)(e,{text:"2070 - 2079"}),(0,f.jsx)(e,{text:"2080 - 2089"}),(0,f.jsx)(e,{text:"2090 - 2099"}),(0,f.jsx)(e,{text:"2100 - 2109",empty:!t})]})]})]}),...l});var n=require("react/jsx-runtime"),ta=({showCaptions:a,showOtherMonth:t,...l})=>(0,n.jsx)(E,{calendarView:"month",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h,{calendarCaption:a&&"October 2021",showTableHead:!0,children:[(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"26",showOtherMonth:t,empty:!t,weekend:t}),(0,n.jsx)(e,{text:"27",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"28",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"29",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"30",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"1"}),(0,n.jsx)(e,{text:"2",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"3",weekend:!0}),(0,n.jsx)(e,{text:"4"}),(0,n.jsx)(e,{text:"5"}),(0,n.jsx)(e,{text:"6"}),(0,n.jsx)(e,{text:"7"}),(0,n.jsx)(e,{text:"8"}),(0,n.jsx)(e,{text:"9",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"10",weekend:!0}),(0,n.jsx)(e,{text:"11"}),(0,n.jsx)(e,{text:"12",today:!0}),(0,n.jsx)(e,{text:"13"}),(0,n.jsx)(e,{text:"14"}),(0,n.jsx)(e,{text:"15"}),(0,n.jsx)(e,{text:"16",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"17",weekend:!0}),(0,n.jsx)(e,{text:"18"}),(0,n.jsx)(e,{text:"19"}),(0,n.jsx)(e,{text:"20"}),(0,n.jsx)(e,{text:"21"}),(0,n.jsx)(e,{text:"22"}),(0,n.jsx)(e,{text:"23",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"24",weekend:!0}),(0,n.jsx)(e,{text:"25"}),(0,n.jsx)(e,{text:"26"}),(0,n.jsx)(e,{text:"27"}),(0,n.jsx)(e,{text:"28"}),(0,n.jsx)(e,{text:"29"}),(0,n.jsx)(e,{text:"30",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"31",weekend:!0}),(0,n.jsx)(e,{text:"1",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"2",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"3",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"4",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"5",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"6",showOtherMonth:t,empty:!t,weekend:t})]})]}),(0,n.jsxs)(h,{calendarCaption:a&&"November 2021",showTableHead:!0,children:[(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"31",showOtherMonth:t,empty:!t,weekend:t}),(0,n.jsx)(e,{text:"1"}),(0,n.jsx)(e,{text:"2"}),(0,n.jsx)(e,{text:"3"}),(0,n.jsx)(e,{text:"4"}),(0,n.jsx)(e,{text:"5"}),(0,n.jsx)(e,{text:"6",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"7",weekend:!0}),(0,n.jsx)(e,{text:"8"}),(0,n.jsx)(e,{text:"9"}),(0,n.jsx)(e,{text:"10"}),(0,n.jsx)(e,{text:"11"}),(0,n.jsx)(e,{text:"12"}),(0,n.jsx)(e,{text:"13",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"14",weekend:!0}),(0,n.jsx)(e,{text:"15"}),(0,n.jsx)(e,{text:"16"}),(0,n.jsx)(e,{text:"17"}),(0,n.jsx)(e,{text:"18"}),(0,n.jsx)(e,{text:"19"}),(0,n.jsx)(e,{text:"20",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"21",weekend:!0}),(0,n.jsx)(e,{text:"22"}),(0,n.jsx)(e,{text:"23"}),(0,n.jsx)(e,{text:"24"}),(0,n.jsx)(e,{text:"25"}),(0,n.jsx)(e,{text:"26"}),(0,n.jsx)(e,{text:"27",weekend:!0})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"28",weekend:!0}),(0,n.jsx)(e,{text:"29"}),(0,n.jsx)(e,{text:"30"}),(0,n.jsx)(e,{text:"1",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"2",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"3",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"4",showOtherMonth:t,empty:!t,weekend:t})]}),(0,n.jsxs)(r,{children:[(0,n.jsx)(e,{text:"5",showOtherMonth:t,empty:!t,weekend:t}),(0,n.jsx)(e,{text:"6",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"7",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"8",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"9",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"10",showOtherMonth:t,empty:!t}),(0,n.jsx)(e,{text:"11",showOtherMonth:t,empty:!t,weekend:t})]})]})]}),...l});var tt=require("react/jsx-runtime");var w=require("react/jsx-runtime"),aa=({showCaptions:a,...t})=>(0,w.jsx)(E,{calendarView:"year",calendarTitleText:"2021",children:(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(h,{calendarCaption:a&&"2021",children:[(0,w.jsxs)(r,{children:[(0,w.jsx)(e,{text:"Jan"}),(0,w.jsx)(e,{text:"Feb"}),(0,w.jsx)(e,{text:"Mar"}),(0,w.jsx)(e,{text:"Apr"})]}),(0,w.jsxs)(r,{children:[(0,w.jsx)(e,{text:"May"}),(0,w.jsx)(e,{text:"Jun"}),(0,w.jsx)(e,{text:"Jul"}),(0,w.jsx)(e,{text:"Au"})]}),(0,w.jsxs)(r,{children:[(0,w.jsx)(e,{text:"Sep"}),(0,w.jsx)(e,{text:"Oct",today:!0}),(0,w.jsx)(e,{text:"Nov"}),(0,w.jsx)(e,{text:"Dec"})]})]}),(0,w.jsxs)(h,{calendarCaption:a&&"2022",children:[(0,w.jsxs)(r,{children:[(0,w.jsx)(e,{text:"Jan"}),(0,w.jsx)(e,{text:"Feb"}),(0,w.jsx)(e,{text:"Mar"}),(0,w.jsx)(e,{text:"Apr"})]}),(0,w.jsxs)(r,{children:[(0,w.jsx)(e,{text:"May"}),(0,w.jsx)(e,{text:"Jun"}),(0,w.jsx)(e,{text:"Jul"}),(0,w.jsx)(e,{text:"Au"})]}),(0,w.jsxs)(r,{children:[(0,w.jsx)(e,{text:"Sep"}),(0,w.jsx)(e,{text:"Oct"}),(0,w.jsx)(e,{text:"Nov"}),(0,w.jsx)(e,{text:"Dec"})]})]})]}),...t});var at=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ja=E.options,el=E.states,la={...E.defaultOptions,variant:"month"},tl=[{name:"month",title:"Month View"},{name:"year",title:"Year View"},{name:"decade",title:"Decade View"},{name:"century",title:"Century View"}],al=[{name:"vertical",title:"Vertical Orientation"}],ue=a=>{let{variant:t,modifiers:l,...d}={...la,...a},i={showCalendarFooter:!1};Object.keys(l||{}).forEach(A=>{switch(A){case"footer":i.showCalendarFooter=!!(l!=null&&l[A]);break;case"vertical":i.orientation=l!=null&&l[A]?"vertical":"horizontal",i.height=l!=null&&l[A]?"inherit":void 0;break;default:return}});let{showOtherMonth:p,showOtherDecade:T,showOtherCentury:u,height:g,...y}=i;switch(t){case"century":return(0,Ie.jsx)(ea,{style:{height:g},size:d.size,showOtherCentury:u,...y});case"decade":return(0,Ie.jsx)(lt,{style:{height:g},size:d.size,showOtherDecade:T,...y});case"year":return(0,Ie.jsx)(aa,{style:{height:g},size:d.size,...y});default:return(0,Ie.jsx)(ta,{style:{height:g},size:d.size,showOtherMonth:p,...y})}};ue.options=ja;ue.states=el;ue.variants=tl;ue.defaultOptions=la;ue.modifiers=al;ue.className=E.className;var k=require("react/jsx-runtime"),lt=({showCaptions:a,showOtherDecade:t,...l})=>(0,k.jsx)(E,{calendarView:"decade",calendarTitleText:"2020 - 2039",children:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(h,{calendarCaption:a&&"2020 - 2029",children:[(0,k.jsxs)(r,{children:[(0,k.jsx)(e,{text:"2019",empty:!t}),(0,k.jsx)(e,{text:"2020"}),(0,k.jsx)(e,{text:"2021",today:!0}),(0,k.jsx)(e,{text:"2022"})]}),(0,k.jsxs)(r,{children:[(0,k.jsx)(e,{text:"2023"}),(0,k.jsx)(e,{text:"2024"}),(0,k.jsx)(e,{text:"2025"}),(0,k.jsx)(e,{text:"2026"})]}),(0,k.jsxs)(r,{children:[(0,k.jsx)(e,{text:"2027"}),(0,k.jsx)(e,{text:"2028"}),(0,k.jsx)(e,{text:"2029"}),(0,k.jsx)(e,{text:"2030",empty:!t})]})]}),(0,k.jsxs)(h,{calendarCaption:a&&"2030 - 2039",children:[(0,k.jsxs)(r,{children:[(0,k.jsx)(e,{text:"2029",empty:!t}),(0,k.jsx)(e,{text:"2030"}),(0,k.jsx)(e,{text:"2031"}),(0,k.jsx)(e,{text:"2032"})]}),(0,k.jsxs)(r,{children:[(0,k.jsx)(e,{text:"2033"}),(0,k.jsx)(e,{text:"2034"}),(0,k.jsx)(e,{text:"2035"}),(0,k.jsx)(e,{text:"2036"})]}),(0,k.jsxs)(r,{children:[(0,k.jsx)(e,{text:"2037"}),(0,k.jsx)(e,{text:"2038"}),(0,k.jsx)(e,{text:"2039"}),(0,k.jsx)(e,{text:"2040",empty:!t})]})]})]}),...l});