import{parseFragment as e,registerTemplate as t,freezeTemplate as s,registerDecorators as i,registerComponent as r}from"@kdcloudjs/kwc";import{s as o}from"../kddsCommon-CucK_w70.js";import l from"./shadowBaseClassPrivate.js";import"../observable-tloG64m6.js";import"../i18n-B98kiI7M.js";import{b as n}from"../normalize-C0Pp7GJL.js";import{parseToFormattedLinkifiedParts as a,parseToFormattedParts as m}from"./utilsPrivate.js";import"../client-Ddi3i8XR.js";import"../ssr-C2pjZzfv.js";import"../empty_html-CjXB8rB4.js";import"./iso8601Utils.js";import"../colorValid-qIPgkqGp.js";var p=[[o]];const f=e`<a target="_blank"${"a0:href"} rel="noopener"${3}>${"t1"}</a>`,u=e`<br${3}>`;function k(e,t,s,i){const{k:r,d:o,sp:l,st:n,t:a,i:m}=e;return m(t.formattedParts,function(e){return[e.isLink?n(f,r(1,e.key),[l(0,{attrs:{href:e.href}},null),l(1,null,o(e.value))]):null,e.isText?a(o(e.value)):null,e.isNewline?n(u,r(3,e.key)):null]})}var c=t(k);k.stylesheets=[],k.stylesheetToken="kwc-51v6rj820fs",k.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedText-undefined_formattedText",p&&k.stylesheets.push.apply(k.stylesheets,p),s(k);class d extends l{constructor(...e){super(...e),this.value="",this._linkify=!1}get linkify(){return this._linkify}set linkify(e){this._linkify=n(e)}get formattedParts(){return this.value&&"string"==typeof this.value?this.linkify?a(this.value):m(this.value):[]}}i(d,{publicProps:{value:{config:0},linkify:{config:3}},track:{_linkify:1}});const h=r(d,{tmpl:c,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedText-",apiVersion:63});export{h as default};
