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nimport {\n BreadcrumbContextProvider,\n __decorateClass\n} from \"./chunk-5CXOIJLV.js\";\nimport \"./chunk-67J45PQM.js\";\nimport \"./chunk-X6F5WTMZ.js\";\nimport \"./chunk-GCQY4XSU.js\";\nimport \"./chunk-YPVMPZET.js\";\nimport \"./chunk-23NHRZR6.js\";\nimport \"./chunk-5GQYQJXS.js\";\nimport \"./chunk-NY566OBB.js\";\nimport \"./chunk-BQSFTQNB.js\";\nimport \"./chunk-A5FXBQUW.js\";\nimport \"./chunk-NXPP6CND.js\";\nimport \"./chunk-AK7R77KD.js\";\nimport \"./chunk-LKKVCIMO.js\";\nimport \"./chunk-RHBM4X5G.js\";\nimport \"./chunk-UKGVOFIA.js\";\nimport \"./chunk-LGCDDBCK.js\";\nimport \"./chunk-FH3RWWXY.js\";\nimport \"./chunk-SGYWMEQ3.js\";\nimport \"./chunk-TW2HXKXM.js\";\nimport \"./chunk-7UBZKMHG.js\";\nimport \"./chunk-O6FMPWRI.js\";\nimport \"./chunk-ZVKNMDWP.js\";\nimport \"./chunk-SVB7QVGC.js\";\nimport \"./chunk-VLPFIM3K.js\";\nimport \"./chunk-ZD2W5NM5.js\";\nimport \"./chunk-DNDA3TIE.js\";\nimport \"./chunk-EPEIW5CT.js\";\nimport \"./chunk-KG7JXOZT.js\";\nimport \"./chunk-2K2X2VFV.js\";\nimport {\n $enum,\n createParser\n} from \"./chunk-KYGNPTYE.js\";\nimport \"./chunk-JO2RVYIO.js\";\nimport \"./chunk-BBOFWZ7B.js\";\nimport \"./chunk-444UF7LD.js\";\nimport {\n ValidatePropertiesController,\n validateString\n} from \"./chunk-Z77RWYJX.js\";\n\n// ../../components/components/Breadcrumb/libs/chunk-6HZY5DXM.js\nimport {\n LitElement,\n html,\n unsafeCSS\n} from \"lit\";\nimport { customElement, property } from \"lit/decorators.js\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nvar typeValidator = $enum(\n \"basic\",\n \"multiline\"\n), toType = createParser(\n typeValidator,\n \"basic\"\n), style_default = \":host{all:initial;box-sizing:border-box;display:block}#wrapper{align-items:center;display:flex;flex-wrap:nowrap}#multiline-current{padding:7px 0}[hidden]{display:none!important}\", toSlotName = (index, length, isMultiline) => index + 1 === length && isMultiline ? \"current\" : index === 0 || length < 5 ? \"before\" : 1 <= index && index < length - 2 ? \"overflow\" : \"after\", forwardClick = (ele) => (e) => {\n ele.href || ele.disabled || (e.preventDefault(), ele.click());\n}, toMenuItemFrom = (ele) => html` `, setAttrs = (isMultiline) => (ele, index, arr) => {\n ele.setAttribute(\"slot\", toSlotName(index, arr.length, isMultiline)), ele.toggleAttribute(\"page-title\", index + 1 === arr.length);\n}, TsukuriBreadcrumb = class extends LitElement {\n constructor() {\n super(), this.type = \"basic\", this.overflowLabel = \"\\u7701\\u7565\\u3055\\u308C\\u305F\\u30DA\\u30FC\\u30B8\\u3092\\u8868\\u793A\", this.overflowMenuWidth = \"medium\", this.hasOverflowItems = !1, this.numOfItem = -1, new ValidatePropertiesController(this, {\n type: toType,\n overflowLabel: validateString(\"\\u7701\\u7565\\u3055\\u308C\\u305F\\u30DA\\u30FC\\u30B8\\u3092\\u8868\\u793A\"),\n overflowMenuWidth: validateString(\"medium\")\n }), this.provider = new BreadcrumbContextProvider(this);\n }\n /**\n * @internal\n */\n updateSlot() {\n let items = this.querySelectorAll(\"wc-tsukuri-breadcrumb-item\");\n this.numOfItem !== items.length && (items.forEach(setAttrs(this.type === \"multiline\")), this.hasOverflowItems = items.length >= 5, this.numOfItem = items.length, this.requestUpdate());\n }\n /**\n * @internal\n */\n get dropdownMenuItems() {\n return Array.from(\n this.querySelectorAll(\n 'wc-tsukuri-breadcrumb-item[slot=\"overflow\"]'\n )\n ).map(toMenuItemFrom);\n }\n willUpdate(_changedProperties) {\n _changedProperties.has(\"type\") && this.provider.setValue({ multiline: this.type === \"multiline\" });\n }\n updated(_changedProperties) {\n _changedProperties.has(\"type\") && this.updateSlot();\n }\n render() {\n return html`
${this.dropdownMenuItems}
`;\n }\n};\nTsukuriBreadcrumb.styles = unsafeCSS(style_default), __decorateClass([\n property({ type: String, converter: toType })\n], TsukuriBreadcrumb.prototype, \"type\", 2), __decorateClass([\n property({ type: String, attribute: \"overflow-label\" })\n], TsukuriBreadcrumb.prototype, \"overflowLabel\", 2), __decorateClass([\n property({ type: String, attribute: \"overflow-menu-width\" })\n], TsukuriBreadcrumb.prototype, \"overflowMenuWidth\", 2), TsukuriBreadcrumb = __decorateClass([\n customElement(\"wc-tsukuri-breadcrumb\")\n], TsukuriBreadcrumb);\nexport {\n TsukuriBreadcrumb\n};\n//# sourceMappingURL=wc-tsukuri-breadcrumb-234ROUDA.js.map"],"names":["typeValidator","toType","style_default","toSlotName","index","length","isMultiline","forwardClick","ele","e","toMenuItemFrom","setAttrs","arr","TsukuriBreadcrumb","items","_changedProperties"],"sourceRoot":""}