"use strict";var e=require("@kdcloudjs/kwc"),t=require("../kddsCommon-CICoPypw.js");require("../observable-BXDJFaLN.js"),require("../i18n-CP31jeWH.js");var r=require("../utilsPrivate-DL4VBetH.js"),s=require("./shadowBaseClassPrivate.js");require("../empty_html-hFq4zm9t.js"),require("../client-Co_j5m_k.js"),require("../ssr-RXknEJpO.js"),require("./iso8601Utils.js"),require("../colorValid-BBnkvgd_.js");var i=[[t.stylesheet0]];const n=e.parseFragment`<span dir="ltr"${3}>${"t1"}</span>`,l=e.parseFragment`<a target="_blank"${"a0:href"} rel="noopener"${3}>${"t1"}</a>`;function a(e,t,r,s){const{d:i,sp:a,st:o,t:u,k:d,i:c,f:h}=e;return h([t.shouldFormat?null:t.ignoreRTL?o(n,1,[a(1,null,i(t.normalizedValue))]):null,t.shouldFormat||t.ignoreRTL?null:u(i(t.normalizedValue)),c(t.formattedParts,function(e){return[t.shouldFormat&&e.isLink?o(l,d(3,e.key),[a(0,{attrs:{href:e.href}},null),a(1,null,i(e.value))]):null,t.shouldFormat&&e.isText?u(i(e.value)):null]})])}var o=e.registerTemplate(a);a.stylesheets=[],a.stylesheetToken="kwc-2sj394kinr2",a.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\baseFormattedText-undefined_baseFormattedText",i&&a.stylesheets.push.apply(a.stylesheets,i),e.freezeTemplate(a);class u extends s{constructor(...e){super(...e),this.value="",this._linkify=!1}get linkify(){return this._linkify}set linkify(e){this._linkify=r.normalizeBoolean(e)}get shouldFormat(){return this.linkify&&this.isString}get isString(){return this.value&&"string"==typeof this.value}get isObject(){return"object"==typeof this.value}get normalizedValue(){return this.isObject?"":this.value}get formattedParts(){return this.isString?r.parseToFormattedLinkifiedParts(this.value,!0):[]}get ignoreRTL(){return r.isTextIgnoreRTL(this.value)}}e.registerDecorators(u,{publicProps:{value:{config:0},linkify:{config:3}},track:{_linkify:1}});const d=e.registerComponent(u,{tmpl:o,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\baseFormattedText-",apiVersion:63});module.exports=d;
