{"version":3,"file":"breadcrumbs.DNIY2QCx.js","sources":["../../../../../packages/web-components/src/lib/components/breadcrumbs/breadcrumbs.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 '../breadcrumbs-item/breadcrumbs-item';\nimport styles from './breadcrumbs.scss?inline';\nimport { requiredSlot } from '../../decorators/requiredSlot';\n\n/**\n * @summary Site breadcrumb\n *\n * @slot default Required: One or more pds-breadcrumb-item elements\n */\n\n@customElement('pds-breadcrumbs', {\n category: 'component',\n type: 'component',\n state: 'stable',\n styles,\n})\nexport class PdsBreadcrumbs extends PdsElement {\n connectedCallback() {\n super.connectedCallback();\n this.initLocalization();\n }\n\n /**\n * ariaLabel\n */\n @property()\n ariaLabel: string;\n\n /**\n * @internal\n * If the user passes in a custom aria-label, that will be populated.\n * If not, the label will be automated and language localized.\n */\n getAriaLabel() {\n if (!this.ariaLabel) {\n const localizedAriaLabel = this.translateText('breadcrumbs');\n\n return localizedAriaLabel;\n }\n\n return this.ariaLabel;\n }\n\n @requiredSlot(['default'])\n render() {\n return html`\n
    \n \n
\n `;\n }\n}\n"],"names":["PdsBreadcrumbs","PdsElement","html","__decorateClass","property","requiredSlot","customElement","styles"],"mappings":";;;;;;;;;;AAoBa,IAAAA,IAAN,cAA6BC,EAAW;AAAA,EAC7C,oBAAoB;AAClB,UAAM,kBAAkB,GACxB,KAAK,iBAAiB;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcxB,eAAe;AACT,WAAC,KAAK,YAMH,KAAK,YALiB,KAAK,cAAc,aAAa;AAAA,EAKjD;AAAA,EAId,SAAS;AACA,WAAAC;AAAAA,cACG,KAAK,SAAU,CAAA;AAAA,oBACT,KAAK,cAAc;AAAA;AAAA,mBAEpB,KAAK,QAAQ,MAAM,CAAC;AAAA;AAAA;AAAA;AAAA,EAAA;AAKvC;AA5BEC,EAAA;AAAA,EADCC,EAAS;AAAA,GATCJ,EAUX,WAAA,aAAA,CAAA;AAkBAG,EAAA;AAAA,EADCE,EAAa,CAAC,SAAS,CAAC;AAAA,GA3BdL,EA4BX,WAAA,UAAA,CAAA;AA5BWA,IAANG,EAAA;AAAA,EANNG,EAAc,mBAAmB;AAAA,IAChC,UAAU;AAAA,IACV,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAAC;AAAA,EACD,CAAA;AAAA,GACYP,CAAA;"}