import{registerTemplate as t,freezeTemplate as e,registerDecorators as s,registerComponent as a}from"@kdcloudjs/kwc";import{s as n}from"../kddsCommon-CucK_w70.js";import i from"./shadowBaseClassPrivate.js";import{i as d}from"../ssr-C2pjZzfv.js";import"../observable-tloG64m6.js";import"../i18n-B98kiI7M.js";import{d as r}from"../utilsPrivate-CI3EeA5x.js";import{f as o}from"../focus-93ksTIEs.js";import"../client-Ddi3i8XR.js";import"../empty_html-CjXB8rB4.js";import"./iso8601Utils.js";import"../colorValid-qIPgkqGp.js";import"./tooltipLibrary.js";import"./positionLibrary.js";import"./primitiveBubble.js";import"../classSet-DY6Qvt6E.js";import"./ariaObserver.js";var c=[[n,[function(t,e,s){var a=t?"["+t+"-host]":"";return(e?":host(.kdds-tabs_default__content) {":a+".kdds-tabs_default__content {")+"--kdds-c-tabs-panel-spacing-blockstart: var(--kdds-c-tab-panel-spacing-block-start);--kdds-c-tabs-panel-spacing-blockend: var(--kdds-c-tab-panel-spacing-block-end);--kdds-c-tabs-panel-spacing-inlineend: var(--kdds-c-tab-panel-spacing-inline-end);--kdds-c-tabs-panel-spacing-inlinestart: var(--kdds-c-tab-panel-spacing-inline-start);position: relative;padding-block-start: var(--kdds-c-tab-panel-spacing-blockstart, var(--kdds-g-spacing-3));padding-inline-end: var(--kdds-c-tab-panel-spacing-inlineend, 0);padding-block-end: var(--kdds-c-tab-panel-spacing-blockend, var(--kdds-g-spacing-3));padding-inline-start: var(--kdds-c-tab-panel-spacing-inlinestart, 0);}"+(e?":host(.kdds-tabs_scoped__content) {":a+".kdds-tabs_scoped__content {")+"background-color: var(--kdds-g-color-surface-container-1);border: var(--kdds-g-sizing-border-1) solid var(--kdds-g-color-border-base-4, var(--kdds-g-color-border-1));border-block-start: 0;border-start-start-radius: 0;border-start-end-radius: 0;border-end-end-radius: var(--kdds-g-spacing-1);border-end-start-radius: var(--kdds-g-spacing-1);padding: var(--kdds-g-spacing-4);}"+(e?":host(.kdds-vertical-tabs__content) {":a+".kdds-vertical-tabs__content {")+"flex: 1;padding: var(--kdds-g-spacing-4);background: var(--kdds-g-color-neutral-base-100, var(--kdds-g-color-surface-container-1));}"+(e?":host(.kdds-show) {":a+".kdds-show {")+"display: block;}"+(e?":host(.kdds-hide) {":a+".kdds-hide {")+"display: none !important;}"}]]];const l={key:0},p=[];function b(t,e,s,a){const{s:n}=t;return[e._loadContent?n("",l,p,s):null]}var h=t(b);b.slots=[""],b.stylesheets=[],b.stylesheetToken="kwc-f70phat940",b.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\tab-undefined_tab",c&&b.stylesheets.push.apply(b.stylesheets,c),e(b);class g extends i{constructor(...t){super(...t),this._loadContent=!1,this._registered=!1}connectedCallback(){super.connectedCallback(),this._connected=!0,d&&this.template.synthetic&&this.dispatchEvent(new CustomEvent("privatetabregister",{cancelable:!0,bubbles:!0,composed:!0,detail:{setDeRegistrationCallback:t=>{this._deRegistrationCallback=t}}}))}renderedCallback(){this._registered||this.template.synthetic||(this._registered=!0,this.dispatchEvent(new CustomEvent("privatetabregister",{cancelable:!0,bubbles:!0,composed:!0,detail:{setDeRegistrationCallback:t=>{this._deRegistrationCallback=t}}}))),this.setAttribute("tabindex",this.firstElementChild&&o(this.firstElementChild).length>0?"-1":"0")}loadContent(){this._loadContent=!0,d&&this.dispatchEvent(new CustomEvent("active"))}disconnectedCallback(){this._connected=!1,this._deRegistrationCallback&&this._deRegistrationCallback()}get value(){return this._value}set value(t){this._value=String(t),this._dispatchDataChangeEventIfConnected()}get label(){return this._label}set label(t){this._label=t,this._dispatchDataChangeEventIfConnected()}get title(){return this._title}set title(t){this._title=t,this._dispatchDataChangeEventIfConnected()}get iconName(){return this._iconName}set iconName(t){this._iconName=t,this._dispatchDataChangeEventIfConnected()}get endIconName(){return this._endIconName}set endIconName(t){this._endIconName=t,this._dispatchDataChangeEventIfConnected()}get showErrorIndicator(){return this._showErrorIndicator}set showErrorIndicator(t){this._showErrorIndicator=r(t),this._dispatchDataChangeEventIfConnected()}get disabled(){return this._disabled}set disabled(t){this._disabled=t}_dispatchDataChangeEventIfConnected(){d&&this._connected&&this.dispatchEvent(new CustomEvent("privatetabdatachange",{cancelable:!0,bubbles:!0,composed:!0}))}}s(g,{publicProps:{value:{config:3},label:{config:3},title:{config:3},iconName:{config:3},endIconName:{config:3},showErrorIndicator:{config:3},disabled:{config:3}},publicMethods:["loadContent"],track:{_loadContent:1},fields:["_registered"]});const k=a(g,{tmpl:h,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\tab-",apiVersion:63});export{k as default};
