{"version":3,"file":"primary-navigation-utility-menu-item.bCq7cHwu.js","sources":["../../../../../packages/web-components/src/lib/components/primary-navigation-utility-menu-item/primary-navigation-utility-menu-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 { required } from '../../decorators/required';\nimport styles from './primary-navigation-utility-menu-item.scss?inline';\nimport { requiredSlot } from '../../decorators/requiredSlot';\n\n/**\n * @summary A list item (li) element that contains a link (a)\n *\n * @slot default Required: The link text\n *\n * @fires primary-navigation-utility-menu-item-click A custom event dispatched on click\n */\n@customElement('pds-primary-navigation-utility-menu-item', {\n category: 'component',\n type: 'component',\n state: 'stable',\n styles,\n})\nexport class PdsPrimaryNavigationUtilityMenuItem extends PdsElement {\n /**\n * The link for the item. This is a **required** property.\n */\n @required\n @property()\n href: string;\n\n handleClick() {\n const customEvent = new CustomEvent(\n 'pds-primary-navigation-utility-menu-item-click',\n {\n bubbles: true,\n composed: true,\n detail: {\n summary: this.textContent,\n },\n },\n );\n\n this.dispatchEvent(customEvent);\n }\n\n @requiredSlot(['default'])\n render() {\n return html`\n
  • \n \n \n \n \n
  • \n `;\n }\n}\n"],"names":["PdsPrimaryNavigationUtilityMenuItem","PdsElement","customEvent","html","__decorateClass","required","property","requiredSlot","customElement","styles"],"mappings":";;;;;;;;;;AAqBa,IAAAA,IAAN,cAAkDC,EAAW;AAAA,EAQlE,cAAc;AACZ,UAAMC,IAAc,IAAI;AAAA,MACtB;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,QACV,QAAQ;AAAA,UACN,SAAS,KAAK;AAAA,QAAA;AAAA,MAChB;AAAA,IAEJ;AAEA,SAAK,cAAcA,CAAW;AAAA,EAAA;AAAA,EAIhC,SAAS;AACA,WAAAC;AAAAA,kBACO,KAAK,UAAU;AAAA;AAAA,mBAEd,KAAK,WAAW;AAAA,mBAChB,KAAK,QAAQ,MAAM,CAAC;AAAA,iBACtB,KAAK,IAAI;AAAA;AAAA,yBAED,KAAK,QAAQ,MAAM,CAAC;AAAA;AAAA,qBAExB,KAAK,QAAQ,OAAO,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAA;AAO1C;AAnCEC,EAAA;AAAA,EAFCC;AAAA,EACAC,EAAS;AAAA,GALCN,EAMX,WAAA,QAAA,CAAA;AAkBAI,EAAA;AAAA,EADCG,EAAa,CAAC,SAAS,CAAC;AAAA,GAvBdP,EAwBX,WAAA,UAAA,CAAA;AAxBWA,IAANI,EAAA;AAAA,EANNI,EAAc,4CAA4C;AAAA,IACzD,UAAU;AAAA,IACV,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAAC;AAAA,EACD,CAAA;AAAA,GACYT,CAAA;"}