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wc-tsukuri-radio-EV7HVDLQ.js"],"sourcesContent":["import {\n RadioContextConsumer,\n __decorateClass,\n createRadioItemController,\n toLabelSize\n} from \"./chunk-SHJQ7IC4.js\";\nimport \"./chunk-USQWQ5QW.js\";\nimport \"./chunk-F5GUQJF7.js\";\nimport \"./chunk-EGRHWZRV.js\";\nimport {\n focusTargetAttributeKey\n} from \"./chunk-YBP6YZHF.js\";\nimport \"./chunk-VV7F6BAX.js\";\nimport {\n HostBinder\n} from \"./chunk-47KMAPAF.js\";\nimport \"./chunk-X6F5WTMZ.js\";\nimport \"./chunk-LGCDDBCK.js\";\nimport \"./chunk-ZVKNMDWP.js\";\nimport \"./chunk-SVB7QVGC.js\";\nimport \"./chunk-2K2X2VFV.js\";\nimport \"./chunk-KYGNPTYE.js\";\nimport \"./chunk-JO2RVYIO.js\";\nimport \"./chunk-444UF7LD.js\";\nimport {\n ValidatePropertiesController,\n validateBoolean,\n validateString\n} from \"./chunk-Z77RWYJX.js\";\n\n// ../../components/components/Radio/libs/chunk-IKKP4QYP.js\nimport {\n LitElement,\n html as html2,\n unsafeCSS as unsafeCSS2\n} from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport { html, unsafeCSS } from \"lit\";\nvar Controller = class {\n constructor(host) {\n this.host = host, this.host.addController(this), this.consumer = new RadioContextConsumer(this.host), this.item = createRadioItemController(\n this.host,\n () => this.host.value,\n () => this.type === \"disabled\" || this.type === \"readonly\"\n ), this.binder = new HostBinder(this.host, this.attributes, {\n click: this.item.select\n });\n }\n get isChecked() {\n return this.item.isActive;\n }\n get type() {\n return this.disabled ? \"disabled\" : this.consumer.status === \"read-only\" ? \"readonly\" : this.consumer.status;\n }\n get attributes() {\n return {\n role: \"radio\",\n [focusTargetAttributeKey]: \"false\",\n \"aria-label\": this.host.label,\n \"aria-checked\": this.isChecked.toString(),\n tabindex: this.item.isActive && !this.disabled ? \"0\" : \"-1\"\n };\n }\n get disabled() {\n return this.consumer.status === \"disabled\" || this.host.disabled;\n }\n get size() {\n return this.consumer.size;\n }\n hostUpdate() {\n this.binder.updateAttributes(this.attributes);\n }\n}, Label_default = \"[data-tsukuri-component=radio-label]{color:var(--color-sys-text-regular)}[data-tsukuri-component=radio-label][data-tsukuri-state-radio-disabled=true]{color:var(--color-sys-text-disabled)}[data-tsukuri-component=radio-supporting-text]{color:var(--color-sys-text-secondary)}[data-tsukuri-component=radio-supporting-text][data-tsukuri-state-radio-disabled=true]{color:var(--color-sys-text-disabled)}\", Label = class {\n constructor(host, controller) {\n this.host = host, this.controller = controller;\n }\n get labelSize() {\n return toLabelSize(this.controller.size);\n }\n get template() {\n let contents = [\n html`${this.host.label}`\n ];\n return this.host.supportingText && contents.push(\n html`${this.host.supportingText}`\n ), contents;\n }\n};\nLabel.styles = [unsafeCSS(Label_default)];\nvar style_default = `:host{all:initial;box-sizing:border-box;display:block;flex:1;-webkit-user-select:none;user-select:none;visibility:inherit}[data-tsukuri-component=radio]{align-items:flex-start;cursor:pointer;display:flex;flex-direction:row;gap:6px}[data-tsukuri-component=radio][data-tsukuri-state-radio-type=disabled]{cursor:not-allowed}[data-tsukuri-component=radio][data-tsukuri-state-radio-type=readonly]{cursor:auto}[data-tsukuri-component=radio-input]{--input-inner-circle-color:var(--color-sys-transparent);--input-outer-circle-color:var(--color-sys-surface1-surface-primary);--input-border-color:var(--color-sys-object-neutral);--input-outline-color:var(--color-sys-border-interactive-extra-light);--input-size:16px;--input-inner-size:0;align-items:center;background-color:var(--input-outer-circle-color);border:2px solid var(--input-border-color);border-radius:50%;box-sizing:border-box;display:flex;height:var(--input-size);justify-content:center;min-width:var(--input-size);width:var(--input-size)}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-checked=true]{--input-inner-circle-color:var(--color-sys-surface1-surface-primary);--input-border-color:var(--color-sys-surface-interactive-surface-primary);--input-outer-circle-color:var(\n --color-sys-surface-interactive-surface-primary\n )}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-size=small]{--input-size:16px;--input-inner-size:4px;--gap-row:6px;--gap-col:12px}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-size=medium]{--input-size:18px;--input-inner-size:6px;--gap-row:8px;--gap-col:16px}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-size=large]{--input-size:20px;--input-inner-size:8px;--gap-row:10px;--gap-col:20px}:host(:hover) [data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=default]{--input-border-color:var(--color-sys-object-interactive);outline:4px solid var(--input-outline-color)}:host(:focus-visible) [data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=default]{--input-border-color:var(--color-sys-border-interactive-dark);--input-outline-color:var(--color-sys-focus);outline:2px solid var(--input-outline-color);outline-offset:1px}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=legacy][data-tsukuri-state-radio-checked=true]{--input-outer-circle-color:var(--color-sys-surface1-surface-primary);--input-inner-circle-color:var(--color-sys-surface1-object-notice);--input-border-color:var(--color-sys-border-notice-extra-highlight)}:host(:hover) [data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=legacy]{--input-border-color:var(--color-sys-object-notice);--input-outline-color:var(--color-sys-border-notice-extra-light);outline:4px solid var(--input-outline-color)}:host(:focus-visible) [data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=legacy]{--input-border-color:var(--color-sys-border-notice-extra-highlight);outline:2px solid var(--input-outline-color);outline-offset:1px}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=readonly]{--input-border-color:var(--color-sys-object-neutral);--input-outer-circle-color:var(--color-sys-surface1-surface-state1)}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=readonly][data-tsukuri-state-radio-checked=true]{--input-inner-circle-color:var(--color-sys-text-regular)}:host(:focus-visible) [data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=readonly]{--input-border-color:var(--color-sys-border-interactive-dark);--input-outline-color:var(--color-sys-focus);outline:2px solid var(--input-outline-color);outline-offset:1px}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=disabled]{--input-border-color:var(--color-sys-border-light);--input-outer-circle-color:var(--color-sys-surface1-surface-secondary)}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=disabled][data-tsukuri-state-radio-checked=true]{--input-inner-circle-color:var(--color-sys-text-disabled)}[data-tsukuri-component=radio-input][data-tsukuri-state-radio-type=error]{--input-border-color:var(--color-sys-object-critical);--input-outer-circle-color:var(\n --color-sys-surface-critical-subdued-surface-primary\n )}[data-tsukuri-component=radio-input-inner]{background-color:var(--input-inner-circle-color);border-radius:50%;box-sizing:border-box;height:var(--input-inner-size);width:var(--input-inner-size)}[data-tsukuri-component=radio-label-wrapper]{align-items:flex-start;display:flex;flex-direction:column;flex-grow:1;padding:1px 0}[data-tsukuri-component=radio-label-wrapper][data-tsukuri-state-radio-size=small]{gap:3px}[data-tsukuri-component=radio-label-wrapper][data-tsukuri-state-radio-size=medium]{gap:4px}[data-tsukuri-component=radio-label-wrapper][data-tsukuri-state-radio-size=large]{gap:5px}`, TsukuriRadio = class extends LitElement {\n constructor() {\n super(), this.label = \"\", this.supportingText = \"\", this.value = \"\", this.disabled = !1, new ValidatePropertiesController(this, {\n label: validateString(),\n supportingText: validateString(),\n value: validateString(),\n disabled: validateBoolean\n }), this.controller = new Controller(this), this.labels = new Label(this, this.controller);\n }\n render() {\n return html2`
${this.labels.template}
`;\n }\n};\nTsukuriRadio.styles = [unsafeCSS2(style_default), ...Label.styles], __decorateClass([\n property({ type: String })\n], TsukuriRadio.prototype, \"label\", 2), __decorateClass([\n property({ type: String, attribute: \"supporting-text\" })\n], TsukuriRadio.prototype, \"supportingText\", 2), __decorateClass([\n property({ type: String })\n], TsukuriRadio.prototype, \"value\", 2), __decorateClass([\n property({ type: Boolean })\n], TsukuriRadio.prototype, \"disabled\", 2), TsukuriRadio = __decorateClass([\n customElement(\"wc-tsukuri-radio\")\n], TsukuriRadio);\nexport {\n TsukuriRadio\n};\n//# sourceMappingURL=wc-tsukuri-radio-EV7HVDLQ.js.map"],"names":["Controller","host","Label_default","Label","controller","contents","style_default","TsukuriRadio"],"sourceRoot":""}