{"version":3,"file":"logo.DgjxnDwl.js","sources":["../../../../../packages/web-components/src/lib/components/logo/logo.ts"],"sourcesContent":["import { html } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { required } from '../../decorators/required';\nimport { pdsCustomElement as customElement } from '../../decorators/pds-custom-element';\nimport { PdsElement } from '../PdsElement';\nimport styles from './logo.scss?inline';\n\n/**\n * @summary This component handles all variants of the 91ÇÑ×Ó logo\n */\n@customElement('pds-logo', {\n category: 'component',\n type: 'component',\n state: 'stable',\n styles,\n})\nexport class PdsLogo extends PdsElement {\n /**\n * Style variant\n * - **default** logo as it should display on light backgrounds\n * - **white** default logo with white fill\n * - **p** \"P\" logo as it should display on light backgrounds\n * - **p-gradient** \"P\" gradient logo as it should display on light backgrounds\n * - **p-white** \"P\" logo with a white fill, for darker backgrounds\n * This is a **required** property.\n */\n @required\n @property()\n variant:\n | 'default'\n | 'white'\n | 'default-p-white-font'\n | 'p-gradient'\n | 'p'\n | 'p-white' = 'default';\n\n /**\n * @internal\n */\n @property()\n fullLogoVariants: (typeof this.variant)[] = [\n 'default',\n 'white',\n 'default-p-white-font',\n ];\n\n /**\n * Adds a title to the logo\n * @internal\n */\n @state()\n title: string;\n\n /**\n * @internal\n */\n @property()\n pLogoVariants: (typeof this.variant)[] = ['p-gradient', 'p', 'p-white'];\n\n connectedCallback() {\n super.connectedCallback();\n this.initLocalization();\n }\n\n protected override firstUpdated() {\n super.firstUpdated();\n\n this.title = this.translateText('pfg-logo');\n }\n\n /**\n * @internal\n */\n pLogoColorMarkup() {\n switch (this.variant) {\n case 'p':\n return html``;\n case 'p-gradient':\n return html``;\n default:\n return html``;\n }\n }\n\n /**\n * @internal\n */\n fullLogoColorMarkup() {\n switch (this.variant) {\n case 'default-p-white-font':\n return html``;\n case 'white':\n return html``;\n default:\n return html``;\n }\n }\n\n /**\n * @internal\n */\n get classNames() {\n return {\n /* This is equivalent to doing\n * 'primary': this.variant === 'primary',\n * 'secondary': this.variant === 'secondary',\n */\n [this.variant]: !!this.variant,\n };\n }\n\n render() {\n return this.fullLogoVariants.includes(this.variant)\n ? html`\n `\n : html``;\n }\n}\n"],"names":["PdsLogo","PdsElement","html","__decorateClass","required","property","state","customElement","styles"],"mappings":";;;;;;;;;AAgBa,IAAAA,IAAN,cAAsBC,EAAW;AAAA,EAAjC,cAAA;AAAA,UAAA,GAAA,SAAA,GAkBW,KAAA,UAAA,WAM4B,KAAA,mBAAA;AAAA,MAC1C;AAAA,MACA;AAAA,MACA;AAAA,IACF,GAayC,KAAA,gBAAA,CAAC,cAAc,KAAK,SAAS;AAAA,EAAA;AAAA,EAEtE,oBAAoB;AAClB,UAAM,kBAAkB,GACxB,KAAK,iBAAiB;AAAA,EAAA;AAAA,EAGL,eAAe;AAChC,UAAM,aAAa,GAEd,KAAA,QAAQ,KAAK,cAAc,UAAU;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA,EAM5C,mBAAmB;AACjB,YAAQ,KAAK,SAAS;AAAA,MACpB,KAAK;AACI,eAAAC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,MAKT,KAAK;AACI,eAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,MAKT;AACS,eAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,IAAA;AAAA,EAKX;AAAA;AAAA;AAAA;AAAA,EAMF,sBAAsB;AACpB,YAAQ,KAAK,SAAS;AAAA,MACpB,KAAK;AACI,eAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,MAQT,KAAK;AACI,eAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,MAQT;AACS,eAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,IAAA;AAAA,EAQX;AAAA;AAAA;AAAA;AAAA,EAMF,IAAI,aAAa;AACR,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAKL,CAAC,KAAK,OAAO,GA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