"use strict";var s=require("@kdcloudjs/kwc"),e=require("../kddsCommon-CICoPypw.js"),t=require("../kddsUtilsGrid-Di6bwMd2.js"),l=require("./shadowBaseClassPrivate.js");require("../observable-BXDJFaLN.js"),require("../i18n-CP31jeWH.js");var i=require("../normalize-DKPi18vK.js"),r=require("../classSet-B5xuJbNb.js");require("./utilsPrivate.js"),require("../client-Co_j5m_k.js"),require("../ssr-RXknEJpO.js"),require("./iso8601Utils.js"),require("../colorValid-BBnkvgd_.js"),require("../empty_html-hFq4zm9t.js");var a=[[function(s,e,t){return"@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {.kdds-slot"+(s?"["+s+"]":"")+" {display: flex;}}"}],[e.stylesheet0,t.stylesheet2]];const d={classMap:{"kdds-slot":!0},key:0},o=[];function n(s,e,t,l){const{s:i}=s;return[i("",d,o,t)]}var u=s.registerTemplate(n);n.slots=[""],n.stylesheets=[],n.stylesheetToken="kwc-5g0js0f6hrv",n.legacyStylesheetToken="D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\layout-undefined_layout",a&&n.stylesheets.push.apply(n.stylesheets,a),s.freezeTemplate(n);const c={center:"kdds-grid_align-center",space:"kdds-grid_align-space",spread:"kdds-grid_align-spread",end:"kdds-grid_align-end"},p={start:"kdds-grid_vertical-align-start",center:"kdds-grid_vertical-align-center",end:"kdds-grid_vertical-align-end",stretch:"kdds-grid_vertical-stretch"},g={small:"kdds-grid_pull-padded",medium:"kdds-grid_pull-padded-medium",large:"kdds-grid_pull-padded-large"},h=Object.keys(p),k=Object.keys(g),_=Object.keys(c);function m(s,e,t){return s=s?s.toLowerCase():" ",i.normalizeString(s,{fallbackValue:" ",validValues:e||[]})}class y extends l{constructor(...s){super(...s),this._horizontalAlign=void 0,this._verticalAlign=void 0,this._pullToBoundary=void 0,this._multipleRows=void 0,this._layoutClass=[]}get horizontalAlign(){return this._horizontalAlign}set horizontalAlign(s){this._horizontalAlign=m(s,_),this.updateClassList()}get verticalAlign(){return this._verticalAlign}set verticalAlign(s){this._verticalAlign=m(s,h),this.updateClassList()}get pullToBoundary(){return this._pullToBoundary}set pullToBoundary(s){this._pullToBoundary=m(s,k),this.updateClassList()}get multipleRows(){return this._multipleRows||!1}set multipleRows(s){this._multipleRows=i.normalizeBoolean(s),this.updateClassList()}connectedCallback(){super.connectedCallback(),this.updateClassList()}updateClassList(){this.classList.remove(...this._layoutClass);const s=function(s,e,t,l){const i=r.classSet("kdds-grid");return" "!==s&&c[s]&&i.add(c[s])," "!==e&&p[e]&&i.add(p[e])," "!==t&&g[t]&&i.add(g[t]),l&&i.add("kdds-wrap"),i}(this.horizontalAlign,this.verticalAlign,this.pullToBoundary,this.multipleRows);this._layoutClass=Object.keys(s),this.classList.add(...this._layoutClass)}}y.validationOptOut=["class"],s.registerDecorators(y,{publicProps:{horizontalAlign:{config:3},verticalAlign:{config:3},pullToBoundary:{config:3},multipleRows:{config:3}},track:{_horizontalAlign:1,_verticalAlign:1,_pullToBoundary:1,_multipleRows:1},fields:["_layoutClass"]});const v=s.registerComponent(y,{tmpl:u,sel:"D:\\new_workspace\\workspace\\kingdee-base-components\\src\\modules\\kd\\layout-",apiVersion:63});module.exports=v;
