import{registerTemplate as t,freezeTemplate as e,registerDecorators as o,registerComponent as i}from"@kdcloudjs/kwc";import{features as s}from"./features.js";import r from"./shadowBaseClassPrivate.js";import{b as a}from"../intlFormat-DNT_1eg4.js";import"../i18n-B98kiI7M.js";import"./configProvider.js";import"../observable-tloG64m6.js";import{d as n,n as m,t as d,e as l}from"../utilsPrivate-CI3EeA5x.js";import"../empty_html-CjXB8rB4.js";import"../client-Ddi3i8XR.js";import"../ssr-C2pjZzfv.js";import"./iso8601Utils.js";import"../colorValid-qIPgkqGp.js";import"./i18nCldrOptions.js";import"./i18nService.js";import"../classSet-DY6Qvt6E.js";import"../labelUtils-DAuN2uUV.js";import"../label-CY8Q8HAO.js";function h(t,e,o,i){const{d:s,t:r}=t;return[r(s(e.formattedValue))]}var c=t(h);h.stylesheets=[],h.stylesheetToken="kwc-lp2v3ehr22",h.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedDateTime-undefined_formattedDateTime",e(h);const u=s.ENABLE_FORMATTED_DATE_TIME_DATE_STYLE?"medium":void 0;class p extends r{constructor(...t){super(...t),this.value=void 0,this.weekday=void 0,this.era=void 0,this.year=void 0,this.month=void 0,this.day=void 0,this.hour=void 0,this.minute=void 0,this.second=void 0,this.timeZoneName=void 0,this.timeZone=void 0,this._dateStyle=u,this._hour12=!1,this._hour12Set=!1}get hour12(){return this._hour12}set hour12(t){void 0===t?(this._hour12Set=!1,this._hour12=t):(this._hour12Set=!0,this._hour12=n(t))}get dateStyle(){return this._dateStyle}set dateStyle(t){if(s.ENABLE_FORMATTED_DATE_TIME_DATE_STYLE){const e=m(t,{fallbackValue:"medium",validValues:["short","medium","long"]});this._dateStyle=e}}get formattedValue(){return d(this,a)}getOptions(){return l(this)}}o(p,{publicProps:{value:{config:0},weekday:{config:0},era:{config:0},year:{config:0},month:{config:0},day:{config:0},hour:{config:0},minute:{config:0},second:{config:0},timeZoneName:{config:0},timeZone:{config:0},hour12:{config:3},dateStyle:{config:3}},track:{_hour12:1,_hour12Set:1},fields:["_dateStyle"]});const f=i(p,{tmpl:c,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedDateTime-",apiVersion:63});export{f as default};
