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88labs/tsukuri-components-vue/libs/wc-tsukuri-button-group-I3F65A6L.js"],"sourcesContent":["import {\n __decorateClass,\n toButtonAlign,\n toSize\n} from \"./chunk-YPVMPZET.js\";\nimport \"./chunk-UKGVOFIA.js\";\nimport \"./chunk-DNDA3TIE.js\";\nimport \"./chunk-KYGNPTYE.js\";\nimport \"./chunk-JO2RVYIO.js\";\nimport {\n ValidatePropertiesController,\n validateString\n} from \"./chunk-Z77RWYJX.js\";\n\n// ../../components/components/Button/libs/chunk-IY6WLBSU.js\nimport {\n LitElement,\n html,\n unsafeCSS\n} from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nvar buttons_group_default = \":host{all:initial;box-sizing:border-box;display:flex;visibility:inherit}:host:host([button-align=horizontal]){flex-direction:row}:host:host([button-align=vertical]){flex-direction:column}\", toBorderRadius = (index, length, align) => {\n let borderVar = \"var(--radius-ref-x1)\";\n if (align === \"horizontal\") {\n if (index === 0) return `${borderVar} 0 0 ${borderVar}`;\n if (index === length - 1) return `0 ${borderVar} ${borderVar} 0`;\n } else {\n if (index === 0) return `${borderVar} ${borderVar} 0 0`;\n if (index === length - 1) return `0 0 ${borderVar} ${borderVar}`;\n }\n return \"none\";\n}, toBorderWidth = (index, length, align) => {\n let borderVar = \"var(--border-width)\";\n return index === length - 1 ? {\n top: borderVar,\n right: borderVar,\n bottom: borderVar,\n left: borderVar\n } : align === \"horizontal\" ? {\n top: borderVar,\n right: \"0px\",\n bottom: borderVar,\n left: borderVar\n } : {\n top: borderVar,\n right: borderVar,\n bottom: \"0px\",\n left: borderVar\n };\n}, Controller = class {\n constructor(host) {\n this.host = host, this.host.addController(this), this.updateButton = this.updateButton.bind(this), this.updateButtons = this.updateButtons.bind(this);\n }\n updateLabel() {\n this.host.label ? this.host.setAttribute(\"aria-label\", this.host.label) : this.host.removeAttribute(\"aria-label\");\n }\n updateButton(btn, index, buttons) {\n btn.setAttribute(\"size\", this.host.size), btn.setAttribute(\"type\", \"basic\"), btn.style.setProperty(\n \"--border-radius\",\n toBorderRadius(index, buttons.length, this.host.buttonAlign)\n );\n let { top, right, bottom, left } = toBorderWidth(\n index,\n buttons.length,\n this.host.buttonAlign\n );\n btn.style.setProperty(\"--border-top\", top), btn.style.setProperty(\"--border-right\", right), btn.style.setProperty(\"--border-bottom\", bottom), btn.style.setProperty(\"--border-left\", left);\n }\n updateButtons() {\n this.host.querySelectorAll(\"wc-tsukuri-button\").forEach(this.updateButton);\n }\n hostConnected() {\n this.host.setAttribute(\"role\", \"group\"), this.updateLabel();\n }\n hostUpdate() {\n let current = this.host.getAttribute(\"aria-label\");\n this.host.label !== current ? this.updateLabel() : this.updateButtons();\n }\n}, TsukuriButtonGroup = class extends LitElement {\n constructor() {\n super(), this.buttonAlign = \"horizontal\", this.size = \"medium\", new ValidatePropertiesController(this, {\n buttonAlign: toButtonAlign,\n size: toSize,\n label: validateString()\n }), this.controller = new Controller(this);\n }\n render() {\n return html``;\n }\n};\nTsukuriButtonGroup.styles = unsafeCSS(buttons_group_default), __decorateClass([\n property({\n type: String,\n attribute: \"button-align\",\n converter: toButtonAlign,\n reflect: !0\n })\n], TsukuriButtonGroup.prototype, \"buttonAlign\", 2), __decorateClass([\n property({\n type: String,\n converter: toSize\n })\n], TsukuriButtonGroup.prototype, \"size\", 2), __decorateClass([\n property({\n type: String\n })\n], TsukuriButtonGroup.prototype, \"label\", 2), TsukuriButtonGroup = __decorateClass([\n customElement(\"wc-tsukuri-button-group\")\n], TsukuriButtonGroup);\nexport {\n TsukuriButtonGroup\n};\n//# sourceMappingURL=wc-tsukuri-button-group-I3F65A6L.js.map"],"names":["buttons_group_default","toBorderRadius","index","length","align","borderVar","toBorderWidth","Controller","host","btn","buttons","top","right","bottom","left","current","TsukuriButtonGroup"],"sourceRoot":""}