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,EAAG,KAAK,QAAQ,sBAAsB,GAAK,KAAK,aAAa,OAAQ,MAAM,CACrG,CAOA,cAAe,CACb,KAAK,qBAAqB,QAASD,GAAQ,CACzCA,aAAe,MAAgBA,EAAI,aAAa,OAAQ,KAAK,IAAI,EAAGA,EAAI,aAAa,OAAQ,MAAM,GAAIA,aAAeF,IAAoBE,EAAI,KAAO,KAAK,MAAOA,aAAe,KAAeA,EAAI,aAAa,OAAQ,KAAK,IAAI,CACnO,CAAC,CACH,CACA,QAAQD,EAAmB,CACzBA,EAAkB,IAAI,MAAM,GAAK,KAAK,eAAe,KAAK,IAAM,KAAK,aAAa,CAAC,CACrF,CACA,QAAS,CACP,OAAQ,KAAK,KAAM,CACjB,IAAK,UACH,SAAO,qCAAqC,KAAK,IAAI,kCAAkC,KAAK,YAAY,kBAC1G,IAAK,YACH,SAAO,uCAAuC,KAAK,IAAI,yBAAyB,KAAK,YAAY,kBACnG,QACE,OAAO,IACX,CACF,CACA,IAAI,sBAAuB,CACzB,IAAIG,EACJ,QAASA,EAAK,KAAK,WAAW,cAAc,MAAM,IAAM,KAAO,OAASA,EAAG,iBAAiB,CAAE,QAAS,EAAG,CAAC,IAAM,CAAC,CACpH,CACA,aAAc,CACZ,MAAM,EAAG,KAAK,KAAO,YAAa,KAAK,KAAO,QAChD,CACF,EACAD,EAAY,UAAS,MAAWL,CAAa,EAAGK,EAAY,WAAa,CACvE,KAAM,CAAE,KAAM,OAAQ,UAAWN,CAAQ,EACzC,KAAM,CAAE,KAAM,OAAQ,UAAWH,CAAQ,CAC3C,EACA,eAAe,OAAO,kBAAmBS,CAAW,C","sources":["webpack://nuxt-app/./node_modules/@88labs/tsukuri-components-vue/libs/chunk-7P22TMVW.js"],"sourcesContent":["import {\n TsukuriLink\n} from \"./chunk-WT6GNYIQ.js\";\nimport {\n TsukuriText,\n toSize\n} from \"./chunk-ZVKNMDWP.js\";\nimport {\n $enum,\n createParser\n} from \"./chunk-KYGNPTYE.js\";\n\n// ../../components/components/List/libs/chunk-76NWQ7TO.js\nimport {\n LitElement as LitElement2,\n html as html2,\n nothing,\n unsafeCSS as unsafeCSS2\n} from \"lit\";\nimport {\n LitElement,\n html,\n unsafeCSS\n} from \"lit\";\nvar _toSize = toSize(\"medium\"), toSize2 = (v) => v === \"x-large\" ? \"medium\" : _toSize(v), isType = $enum(\n \"ordered\",\n \"unordered\"\n), toType2 = createParser(\n isType,\n \"unordered\"\n), style_default = \":host{all:initial;box-sizing:border-box;display:block;visibility:inherit;--size-text:var(--size-sys-text-body-medium);--size-line:var(--size-sys-line-height-body-medium)}#list{all:initial;box-sizing:border-box;display:block;font-family:var(--font-sys-family-yakumono),var(--font-sys-family-en),var(--font-sys-family),sans-serif;font-size:var(--size-text);line-height:var(--size-line);padding-left:var(--size-line);visibility:inherit}#list.small{--size-text:var(--size-sys-text-body-small);--size-line:var(--size-sys-line-height-body-small)}#list.medium{--size-text:var(--size-sys-text-body-medium);--size-line:var(--size-sys-line-height-body-medium)}#list.large{--size-text:var(--size-sys-text-body-large);--size-line:var(--size-sys-line-height-body-large)}#list.unordered{list-style-type:disc}#list.ordered{list-style-type:decimal}\", list_item_default = \":host{all:initial;box-sizing:border-box;display:list-item;list-style-position:outside;list-style-type:inherit;visibility:inherit;--size-text:var(--size-sys-text-body-medium);--size-line:var(--size-sys-line-height-body-medium)}:host::marker{font-family:var(--font-sys-family-en)}:host([size=xx-small]){--size-text:var(--size-sys-text-body-xx-small);--size-line:var(--size-sys-line-height-body-xx-small)}:host([size=xx-small])::marker{font-size:var(--size-sys-text-body-xx-small);line-height:var(--size-sys-line-height-body-xx-small)}:host([size=x-small]){--size-text:var(--size-sys-text-body-x-small);--size-line:var(--size-sys-line-height-body-x-small)}:host([size=x-small])::marker{font-size:var(--size-sys-text-body-x-small);line-height:var(--size-sys-line-height-body-x-small)}:host([size=small]){--size-text:var(--size-sys-text-body-small);--size-line:var(--size-sys-line-height-body-small)}:host([size=small])::marker{font-size:var(--size-sys-text-body-small);line-height:var(--size-sys-line-height-body-small)}:host([size=medium]){--size-text:var(--size-sys-text-body-medium);--size-line:var(--size-sys-line-height-body-medium)}:host([size=medium])::marker{font-size:var(--size-sys-text-body-medium);line-height:var(--size-sys-line-height-body-medium)}:host([size=large]){--size-text:var(--size-sys-text-body-large);--size-line:var(--size-sys-line-height-body-large)}:host([size=large])::marker{font-size:var(--size-sys-text-body-large);line-height:var(--size-sys-line-height-body-large)}:host(:not(wc-tsukuri-list-item:first-of-type)){margin-top:calc(var(--size-line)/2 - var(--size-text)/2)}\", TsukuriListItem = class extends LitElement {\n connectedCallback() {\n super.connectedCallback(), this.setAttribute(\"role\", \"listitem\");\n }\n updated(changedProperties) {\n changedProperties.has(\"size\") && this.updateComplete.then(() => this.onSlotChange());\n }\n /**\n * スロット内の Text / Link のサイズを paragraph と同じにする\n *\n * @param slot slot 要素\n * @returns void\n */\n onSlotChange() {\n this.querySelectorAll(\"wc-tsukuri-text, wc-tsukuri-link\").forEach((ele) => {\n ele instanceof TsukuriText && (ele.setAttribute(\"size\", this.size), ele.setAttribute(\"type\", \"body\")), ele instanceof TsukuriLink && ele.setAttribute(\"size\", this.size);\n }), this.nestSlotAssignedElements.forEach((ele) => {\n ele instanceof TsukuriList && ele.setAttribute(\"size\", this.size);\n });\n }\n render() {\n return html` `;\n }\n get nestSlotAssignedElements() {\n var _a;\n return ((_a = this.renderRoot.querySelector(\"slot[name='nest']\")) == null ? void 0 : _a.assignedElements({ flatten: !1 })) ?? [];\n }\n constructor() {\n super(), this.size = \"medium\";\n }\n};\nTsukuriListItem.styles = unsafeCSS(list_item_default), TsukuriListItem.properties = {\n size: { type: String, reflect: !0, converter: toSize2 }\n};\ncustomElements.define(\"wc-tsukuri-list-item\", TsukuriListItem);\nvar TsukuriList = class extends LitElement2 {\n connectedCallback() {\n super.connectedCallback(), this.closest(\"wc-tsukuri-list-item\") && this.setAttribute(\"slot\", \"nest\");\n }\n /**\n * スロット内の Text / Link のサイズを paragraph と同じにする\n *\n * @param slot slot 要素\n * @returns void\n */\n onSlotChange() {\n this.slotAssignedElements.forEach((ele) => {\n ele instanceof TsukuriText && (ele.setAttribute(\"size\", this.size), ele.setAttribute(\"type\", \"body\")), ele instanceof TsukuriListItem && (ele.size = this.size), ele instanceof TsukuriLink && ele.setAttribute(\"size\", this.size);\n });\n }\n updated(changedProperties) {\n changedProperties.has(\"size\") && this.updateComplete.then(() => this.onSlotChange());\n }\n render() {\n switch (this.type) {\n case \"ordered\":\n return html2`
`;\n case \"unordered\":\n return html2``;\n default:\n return nothing;\n }\n }\n get slotAssignedElements() {\n var _a;\n return ((_a = this.renderRoot.querySelector(\"slot\")) == null ? void 0 : _a.assignedElements({ flatten: !1 })) ?? [];\n }\n constructor() {\n super(), this.type = \"unordered\", this.size = \"medium\";\n }\n};\nTsukuriList.styles = unsafeCSS2(style_default), TsukuriList.properties = {\n type: { type: String, converter: toType2 },\n size: { type: String, converter: toSize2 }\n};\ncustomElements.define(\"wc-tsukuri-list\", TsukuriList);\n\nexport {\n TsukuriListItem,\n TsukuriList\n};\n//# sourceMappingURL=chunk-7P22TMVW.js.map"],"names":["_toSize","toSize2","v","isType","toType2","style_default","list_item_default","TsukuriListItem","changedProperties","ele","TsukuriList","_a"],"sourceRoot":""}