{"version":3,"file":"breadcrumbs-item.B0vRSQsO.js","sources":["../../../../../packages/web-components/src/lib/components/breadcrumbs-item/breadcrumbs-item.ts"],"sourcesContent":["import { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { pdsCustomElement as customElement } from '../../decorators/pds-custom-element';\nimport { PdsElement } from '../PdsElement';\nimport styles from './breadcrumbs-item.scss?inline';\nimport '@principal/design-system-icons-web/chevron-right';\nimport '@principal/design-system-icons-web/chevron-left';\nimport { requiredSlot } from '../../decorators/requiredSlot';\n\n/**\n * @summary A breadcrumbs-item (li) element\n *\n * @slot default Required: The content of the breadcrumbs item\n *\n * @fires pds-breadcrumbs-item-click A custom event dispatched on click\n */\n\n@customElement('pds-breadcrumbs-item', {\n category: 'component',\n type: 'component',\n state: 'deprecated',\n styles,\n})\nexport class PdsBreadcrumbsItem extends PdsElement {\n /**\n * - Active denotes current breadcrumb-item rendering it non-clickable.\n */\n @property({ type: Boolean })\n active = false;\n\n /**\n * - href supplies the url for the breadcrumb link\n */\n @property({ type: String })\n href = '#';\n\n /**\n * @internal\n */\n handleClick() {\n const customEvent = new CustomEvent('pds-breadcrumbs-item-click', {\n bubbles: true,\n composed: true,\n detail: {\n summary: this.textContent,\n },\n });\n\n this.dispatchEvent(customEvent);\n }\n\n /**\n * @internal\n */\n getBreadcrumb(): unknown {\n if (this.active) {\n return html`Breadcrumb`;\n }\n\n return html`Breadcrumb`;\n }\n\n /**\n * @internal\n */\n get classNames() {\n return {\n active: this.active,\n };\n }\n\n @requiredSlot(['default'])\n render() {\n return html`
  • \n ${this.getBreadcrumb()}\n
  • `;\n }\n}\n"],"names":["PdsBreadcrumbsItem","PdsElement","customEvent","html","__decorateClass","property","requiredSlot","customElement","styles"],"mappings":";;;;;;;;;;AAuBa,IAAAA,IAAN,cAAiCC,EAAW;AAAA,EAA5C,cAAA;AAAA,UAAA,GAAA,SAAA,GAKI,KAAA,SAAA,IAMF,KAAA,OAAA;AAAA,EAAA;AAAA;AAAA;AAAA;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