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