import e from"../../../_util/classNames.mjs";import t from"../../hooks/useMergeProps.mjs";import{isSameWeek as n}from"../../utils/dateUtil.mjs";import r from"../DatePanel/index.mjs";import{createVNode as i}from"vue";function a(a){let o=t(a),{prefixCls:s,generateConfig:c,locale:l,value:u}=o,d=`${s}-cell`,f=t=>i(`td`,{key:`week`,class:e(d,`${d}-week`)},[c.locale.getWeek(l.locale,t)]),p=`${s}-week-panel-row`,m=t=>e(p,{[`${p}-selected`]:n(c,l.locale,u,t)});return i(r,{...o,panelName:`week`,prefixColumn:f,rowClassName:m,keyboardConfig:{onLeftRight:null}},null)}a.displayName=`WeekPanel`,a.inheritAttrs=!1;export{a as default};