"use strict";var e=require("@kdcloudjs/kwc"),t=require("../kddsCommon-CICoPypw.js"),s=require("./shadowBaseClassPrivate.js"),a=require("../ssr-RXknEJpO.js");require("../observable-BXDJFaLN.js"),require("../i18n-CP31jeWH.js");var n=require("../normalize-DKPi18vK.js"),i=require("../focus-DdgBlQbB.js");require("./utilsPrivate.js"),require("../client-Co_j5m_k.js"),require("./iso8601Utils.js"),require("../colorValid-BBnkvgd_.js"),require("../empty_html-hFq4zm9t.js"),require("./tooltipLibrary.js"),require("./positionLibrary.js"),require("./primitiveBubble.js"),require("../classSet-B5xuJbNb.js"),require("./ariaObserver.js");var r=[function(e,t,s){var a=e?"["+e+"-host]":"";return(t?":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);}"+(t?":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);}"+(t?":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));}"+(t?":host(.kdds-show) {":a+".kdds-show {")+"display: block;}"+(t?":host(.kdds-hide) {":a+".kdds-hide {")+"display: none !important;}"}],d=[[t.stylesheet0,r]];const o={key:0},c=[];function l(e,t,s,a){const{s:n}=e;return[t._loadContent?n("",o,c,s):null]}var b=e.registerTemplate(l);l.slots=[""],l.stylesheets=[],l.stylesheetToken="kwc-f70phat940",l.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\tab-undefined_tab",d&&l.stylesheets.push.apply(l.stylesheets,d),e.freezeTemplate(l);class h extends s{constructor(...e){super(...e),this._loadContent=!1,this._registered=!1}connectedCallback(){super.connectedCallback(),this._connected=!0,a.isCSR&&this.template.synthetic&&this.dispatchEvent(new CustomEvent("privatetabregister",{cancelable:!0,bubbles:!0,composed:!0,detail:{setDeRegistrationCallback:e=>{this._deRegistrationCallback=e}}}))}renderedCallback(){this._registered||this.template.synthetic||(this._registered=!0,this.dispatchEvent(new CustomEvent("privatetabregister",{cancelable:!0,bubbles:!0,composed:!0,detail:{setDeRegistrationCallback:e=>{this._deRegistrationCallback=e}}}))),this.setAttribute("tabindex",this.firstElementChild&&i.findAllTabbableElements(this.firstElementChild).length>0?"-1":"0")}loadContent(){this._loadContent=!0,a.isCSR&&this.dispatchEvent(new CustomEvent("active"))}disconnectedCallback(){this._connected=!1,this._deRegistrationCallback&&this._deRegistrationCallback()}get value(){return this._value}set value(e){this._value=String(e),this._dispatchDataChangeEventIfConnected()}get label(){return this._label}set label(e){this._label=e,this._dispatchDataChangeEventIfConnected()}get title(){return this._title}set title(e){this._title=e,this._dispatchDataChangeEventIfConnected()}get iconName(){return this._iconName}set iconName(e){this._iconName=e,this._dispatchDataChangeEventIfConnected()}get endIconName(){return this._endIconName}set endIconName(e){this._endIconName=e,this._dispatchDataChangeEventIfConnected()}get showErrorIndicator(){return this._showErrorIndicator}set showErrorIndicator(e){this._showErrorIndicator=n.normalizeBoolean(e),this._dispatchDataChangeEventIfConnected()}get disabled(){return this._disabled}set disabled(e){this._disabled=e}_dispatchDataChangeEventIfConnected(){a.isCSR&&this._connected&&this.dispatchEvent(new CustomEvent("privatetabdatachange",{cancelable:!0,bubbles:!0,composed:!0}))}}e.registerDecorators(h,{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 p=e.registerComponent(h,{tmpl:b,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\tab-",apiVersion:63});module.exports=p;
