import{parseFragment as e,registerTemplate as s,freezeTemplate as t,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{d as n,y as a,z as p}from"../utilsPrivate-CI3EeA5x.js";import"../client-Ddi3i8XR.js";import"../ssr-C2pjZzfv.js";import"../empty_html-CjXB8rB4.js";import"./iso8601Utils.js";import"../colorValid-qIPgkqGp.js";var m=[[o]];const u=e`<a target="_blank"${"a0:href"} rel="noopener"${3}>${"t1"}</a>`,f=e`<br${3}>`;function k(e,s,t,i){const{k:r,d:o,sp:l,st:n,t:a,i:p}=e;return p(s.formattedParts,function(e){return[e.isLink?n(u,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(f,r(3,e.key)):null]})}var c=s(k);k.stylesheets=[],k.stylesheetToken="kwc-51v6rj820fs",k.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\formattedText-undefined_formattedText",m&&k.stylesheets.push.apply(k.stylesheets,m),t(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):p(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};
