"use strict";var e=require("@kdcloudjs/kwc"),t=require("./features.js"),i=require("./shadowBaseClassPrivate.js"),r=require("../intlFormat-Bs-dlvDH.js");require("../i18n-CP31jeWH.js"),require("./configProvider.js"),require("../observable-BXDJFaLN.js");var s=require("../utilsPrivate-DL4VBetH.js");function o(e,t,i,r){const{d:s,t:o}=e;return[o(s(t.formattedValue))]}require("../empty_html-hFq4zm9t.js"),require("../client-Co_j5m_k.js"),require("../ssr-RXknEJpO.js"),require("./iso8601Utils.js"),require("../colorValid-BBnkvgd_.js"),require("./i18nCldrOptions.js"),require("./i18nService.js"),require("../classSet-B5xuJbNb.js"),require("../labelUtils-C2UzbgdZ.js"),require("../label-DdXuOVTE.js");var a=e.registerTemplate(o);o.stylesheets=[],o.stylesheetToken="kwc-lp2v3ehr22",o.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedDateTime-undefined_formattedDateTime",e.freezeTemplate(o);const n=t.features.ENABLE_FORMATTED_DATE_TIME_DATE_STYLE?"medium":void 0;class u extends i{constructor(...e){super(...e),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=n,this._hour12=!1,this._hour12Set=!1}get hour12(){return this._hour12}set hour12(e){void 0===e?(this._hour12Set=!1,this._hour12=e):(this._hour12Set=!0,this._hour12=s.normalizeBoolean(e))}get dateStyle(){return this._dateStyle}set dateStyle(e){if(t.features.ENABLE_FORMATTED_DATE_TIME_DATE_STYLE){const t=s.normalizeString(e,{fallbackValue:"medium",validValues:["short","medium","long"]});this._dateStyle=t}}get formattedValue(){return s.toFormattedDate(this,r.dateTimeFormat)}getOptions(){return s.toDateTimeFormatOptions(this)}}e.registerDecorators(u,{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 d=e.registerComponent(u,{tmpl:a,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedDateTime-",apiVersion:63});module.exports=d;
