"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("../normalize-DKPi18vK.js"),i=require("./utilsPrivate.js");require("../client-Co_j5m_k.js"),require("../ssr-RXknEJpO.js"),require("../empty_html-hFq4zm9t.js"),require("./iso8601Utils.js"),require("../colorValid-BBnkvgd_.js");var a=[[s.stylesheet0]];const l=e.parseFragment`<a target="_blank"${"a0:href"} rel="noopener"${3}>${"t1"}</a>`,n=e.parseFragment`<br${3}>`;function o(e,s,r,t){const{k:i,d:a,sp:o,st:u,t:k,i:c}=e;return c(s.formattedParts,function(e){return[e.isLink?u(l,i(1,e.key),[o(0,{attrs:{href:e.href}},null),o(1,null,a(e.value))]):null,e.isText?k(a(e.value)):null,e.isNewline?u(n,i(3,e.key)):null]})}var u=e.registerTemplate(o);o.stylesheets=[],o.stylesheetToken="kwc-51v6rj820fs",o.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedText-undefined_formattedText",a&&o.stylesheets.push.apply(o.stylesheets,a),e.freezeTemplate(o);class k 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?i.parseToFormattedLinkifiedParts(this.value):i.parseToFormattedParts(this.value):[]}}e.registerDecorators(k,{publicProps:{value:{config:0},linkify:{config:3}},track:{_linkify:1}});const c=e.registerComponent(k,{tmpl:u,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedText-",apiVersion:63});module.exports=c;
