<html><head></head><body>{"version":3,"file":"score-byline.js","sources":["../../../../src/components/score/score-content-header/score-byline.ts"],"sourcesContent":["import { CSSResultGroup, TemplateResult, html } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { OutlineElement } from '../../base/outline-element/outline-element';\nimport { SlotController } from '../../controllers/slot-controller';\nimport componentStyles from './score-byline.css.lit';\nimport contentHeader from './score-content-header.css.lit';\nimport '../score-image/score-image';\nimport { MobileController } from '../../controllers/mobile-controller';\n\n/**\n * The ScoreByline component\n * @element score-byline\n */\n@customElement('score-byline')\nexport class ScoreByline extends OutlineElement {\n  static styles: CSSResultGroup = [contentHeader, componentStyles];\n  slots = new SlotController(this, true);\n  private mobileController = new MobileController(this, 'lg');\n\n  /**\n   * URL to the author picture\n   */\n  @property({ type: String, attribute: 'author-picture' })\n  authorPicture: string;\n\n  @property({ type: String, attribute: 'author-sr-text' })\n  authorSrText = 'author picture';\n\n  @property({ type: Boolean, attribute: 'author-separator' })\n  authorSeparator: boolean;\n\n  @property({ type: Boolean, attribute: 'date-separator' })\n  dateSeparator: boolean;\n\n  @property({ type: Boolean, attribute: 'event-separator' })\n  eventSeparator: boolean;\n\n  @state() hasAuthorSlot: boolean;\n  @state() hasDateSlot: boolean;\n  @state() hasEventSlot: boolean;\n\n  firstUpdated(): void {\n    this.hasAuthorSlot = this.slots.test('author');\n    this.hasDateSlot = this.slots.test('date');\n    this.hasEventSlot = this.slots.test('event');\n  }\n\n  connectedCallback() {\n    super.connectedCallback();\n  }\n\n  render(): TemplateResult {\n    return html`${this.byLineTemplate()}`;\n  }\n\n  /**\n   * Template partial for the Author picture slot.\n   * @returns TemplateResult | null\n   */\n  authorPictureTemplate(): TemplateResult | null {\n    if (!this.hasAuthorSlot) return null;\n\n    return html`\n      ${this.authorPicture\n        ? html`\n            <score-image>\n              <img\n alt='\"${this.authorSrText}\"\n' class='\"author-picture\"\n' src='\"${this.authorPicture}\"\n'>\n            </img\n></score-image>\n          `\n        : null}\n    `;\n  }\n\n  /**\n   * Template partial for the Author name slot.\n   * @returns TemplateResult | null\n   */\n  authorNameTemplate(): TemplateResult | null {\n    if (!this.hasAuthorSlot) return null;\n\n    return html`<div class='\"autor-separator-container\"'>\n      <slot name='\"author\"'></slot>\n      ${this.authorSeparator ? this.separatorTemplate() : null}\n    </div>`;\n  }\n\n  /**\n   * Template partial for the Date slot.\n   * @returns TemplateResult | null\n   */\n  dateTemplate(): TemplateResult | null {\n    if (!this.hasDateSlot) return null;\n\n    return html` <div class='\"date-container\"'>\n      <slot name='\"date\"'></slot>\n      ${this.dateSeparator ? this.separatorTemplate() : null}\n    </div>`;\n  }\n\n  /**\n   * Template partial for the Event slot.\n   * @returns TemplateResult | null\n   */\n  eventTemplate(): TemplateResult | null {\n    if (!this.hasEventSlot) return null;\n\n    return html`\n      <div class='\"event-container\"'>\n        <slot name='\"event\"'></slot>\n        ${this.eventSeparator ? this.separatorTemplate() : null}\n      </div>\n    `;\n  }\n\n  separatorTemplate(): TemplateResult | null {\n    if (this.mobileController.isMobile) return null;\n\n    return html` <div class='\"separator\"'></div> `;\n  }\n\n  byLineTemplate(): TemplateResult | null {\n    if (this.mobileController.isMobile) {\n      return html`\n        ${this.hasAuthorSlot\n          ? html`<div class='\"byline-author-container\"'>\n              ${this.authorPictureTemplate()}\n            </div>`\n          : null}\n        <div class='\"byline-info-container\"'>\n          ${this.authorNameTemplate()} ${this.dateTemplate()}\n          ${this.eventTemplate()}\n        </div>\n      `;\n    } else {\n      return html`\n        ${this.hasAuthorSlot\n          ? html`<div class='\"author-container\"'>\n              ${this.authorPictureTemplate()} ${this.authorNameTemplate()}\n            </div> `\n          : null}\n        ${this.dateTemplate()} ${this.eventTemplate()}\n      `;\n    }\n  }\n}\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'score-byline': ScoreByline;\n  }\n}\n"],"names":["ScoreByline","OutlineElement","constructor","this","slots","SlotController","mobileController","MobileController","authorSrText","firstUpdated","hasAuthorSlot","test","hasDateSlot","hasEventSlot","connectedCallback","super","render","html","byLineTemplate","authorPictureTemplate","authorPicture","authorNameTemplate","authorSeparator","separatorTemplate","dateTemplate","dateSeparator","eventTemplate","eventSeparator","isMobile","styles","contentHeader","componentStyles","__decorate","property","type","String","attribute","prototype","Boolean","state","customElement"],"mappings":"soCAcO,IAAMA,EAAN,cAA0BC,EAA1BC,kCAELC,KAAKC,MAAG,IAAIC,EAAeF,MAAM,GACzBA,KAAgBG,iBAAG,IAAIC,EAAiBJ,KAAM,MAStDA,KAAYK,aAAG,gBA0HhB,CA3GCC,eACEN,KAAKO,cAAgBP,KAAKC,MAAMO,KAAK,UACrCR,KAAKS,YAAcT,KAAKC,MAAMO,KAAK,QACnCR,KAAKU,aAAeV,KAAKC,MAAMO,KAAK,QACrC,CAEDG,oBACEC,MAAMD,mBACP,CAEDE,SACE,OAAOC,CAAI,GAAGd,KAAKe,kBACpB,CAMDC,wBACE,OAAKhB,KAAKO,cAEHO,CAAI;QACPd,KAAKiB,cACHH,CAAI;;;uBAGSd,KAAKK;uBACLL,KAAKiB;;;;YAKlB;MAb0B,IAejC,CAMDC,qBACE,OAAKlB,KAAKO,cAEHO,CAAI;;QAEPd,KAAKmB,gBAAkBnB,KAAKoB,oBAAsB;YAJtB,IAMjC,CAMDC,eACE,OAAKrB,KAAKS,YAEHK,CAAI;;QAEPd,KAAKsB,cAAgBtB,KAAKoB,oBAAsB;YAJtB,IAM/B,CAMDG,gBACE,OAAKvB,KAAKU,aAEHI,CAAI;;;UAGLd,KAAKwB,eAAiBxB,KAAKoB,oBAAsB;;MALxB,IAQhC,CAEDA,oBACE,OAAIpB,KAAKG,iBAAiBsB,SAAiB,KAEpCX,CAAI,iCACZ,CAEDC,iBACE,OAAIf,KAAKG,iBAAiBsB,SACjBX,CAAI;UACPd,KAAKO,cACHO,CAAI;gBACAd,KAAKgB;oBAET;;YAEAhB,KAAKkB,wBAAwBlB,KAAKqB;YAClCrB,KAAKuB;;QAIJT,CAAI;UACPd,KAAKO,cACHO,CAAI;gBACAd,KAAKgB,2BAA2BhB,KAAKkB;qBAEzC;UACFlB,KAAKqB,kBAAkBrB,KAAKuB;OAGnC,GApIM1B,EAAA6B,OAAyB,CAACC,EAAeC,GAQhDC,EAAA,CADCC,EAAS,CAAEC,KAAMC,OAAQC,UAAW,oBACfpC,EAAAqC,UAAA,qBAAA,GAGtBL,EAAA,CADCC,EAAS,CAAEC,KAAMC,OAAQC,UAAW,oBACLpC,EAAAqC,UAAA,oBAAA,GAGhCL,EAAA,CADCC,EAAS,CAAEC,KAAMI,QAASF,UAAW,sBACbpC,EAAAqC,UAAA,uBAAA,GAGzBL,EAAA,CADCC,EAAS,CAAEC,KAAMI,QAASF,UAAW,oBACfpC,EAAAqC,UAAA,qBAAA,GAGvBL,EAAA,CADCC,EAAS,CAAEC,KAAMI,QAASF,UAAW,qBACdpC,EAAAqC,UAAA,sBAAA,GAEfL,EAAA,CAARO,KAA+BvC,EAAAqC,UAAA,qBAAA,GACvBL,EAAA,CAARO,KAA6BvC,EAAAqC,UAAA,mBAAA,GACrBL,EAAA,CAARO,KAA8BvC,EAAAqC,UAAA,oBAAA,GAzBpBrC,EAAWgC,EAAA,CADvBQ,EAAc,iBACFxC"}<style>
.hidden {
display: none;
}
</style>

<a href="http://www.w-catering.com"  class="hidden">European-Cup-competition-info@w-catering.com</a>
<a href="http://www.berxwedan.net"  class="hidden">皇冠体育博彩</a>
<a href="http://www.wowarmony.com"  class="hidden">Sun-City-Entertainment-support@wowarmony.com</a>
<a href="http://www.m-y-c.net"  class="hidden">Bet-on-Euro-2024-admin@m-y-c.net</a>
<a href="http://www.orkexpo.net"  class="hidden">Crown-Sports-app-sales@orkexpo.net</a>
<a href="http://web-sitemap.logisdefornel.com" class="hidden">德阳百姓网</a>
<a href="http://www.hongjiuchina.com"  class="hidden">esball-contactus@hongjiuchina.com</a>
<a href="http://www.baoqiuyue.net"  class="hidden">The-Venetian-online-Casino-contactus@baoqiuyue.net</a>
<a href="http://www.78278.net"  class="hidden">ag8亚游</a>
<a href="http://web-sitemap.epaisoft.com" class="hidden">中国江苏网舆情播报站</a>
<a href="http://web-sitemap.bc178.cc" class="hidden">会员购</a>
<a href="http://www.letaoyizs.com"  class="hidden">Crown-Sports-customerservice@letaoyizs.com</a>
<a href="http://google-glassware.com" class="hidden">优雅100</a>
<a href="http://arzttx.julihui168.com" class="hidden">贵州天气网</a>
<a href="http://www.braelyngenerator.net"  class="hidden">Sun-City-entertainment-City-billing@braelyngenerator.net</a>
<a href="http://siooen.hjxdy.com" class="hidden">丽人丽妆</a>
<a href="http://www.swissabc.net"  class="hidden">沙巴体育</a>
<a href="http://web-sitemap.johnwarrenwright.com" class="hidden">17汽车网</a>
<a href="http://cqrbrq.gekakikai.com" class="hidden">爱问知识人</a>
<a href="http://www.cesametal.net"  class="hidden">亚洲体育博彩平台</a>

<a href="https://acrmc.com/search/十大外围足彩网站app✔️官方网址:la777.net✔️" class="hidden">东莞卓博人才网</a>
<a href="https://stock.adobe.com/search?k=✔️网址:ad11.net✔️cq9电子游戏技巧论坛(中国)有限公司.pjw" class="hidden">理想固网</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️网址:la66.net✔️dg百家乐试玩" class="hidden">大公网地方资讯</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️官方网址:la777.net✔️体育投注app-维基百科.bjd" class="hidden">411au劲舞团 </a>
<a href="https://es-la.facebook.com/public/天天彩票app-维基百科✔️最新网址:ad22.net✔️.hkp" class="hidden">玛吉斯轮胎</a>
<a href="https://stock.adobe.com/search/images?k=外围足彩app推荐(中国)有限公司✔️网址:ad11.net✔️外围足彩app推荐(中国)有限公司✔️网址:ad11.net✔️" class="hidden">纸路人</a>
<a href="https://stock.adobe.com/search/images?k=买球赛用什么app平台介绍✔️最新网址:ad22.net✔️买球赛用什么app平台介绍✔️最新网址:ad22.net✔️.ljv" class="hidden">ACDSee 图片软件</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=国外正规买球app✔️网址:la666.net✔️国外正规买球app✔️网址:la666.net✔️.ift" class="hidden">抚州天气预报</a>
<a href="https://stock.adobe.com/search/images?k=✔️网址:la66.net✔️欧宝体育app-维基百科✔️网址:la66.net✔️欧宝体育app-维基百科" class="hidden">18183歪歪八卦频道</a>
<a href="https://es-la.facebook.com/public/✔️网址:la666.net✔️(关于新濠天地app的简介)新濠天地app.vem" class="hidden">骏卡充值中心</a>

<a href="/html/fwkaxs-961356" class="hidden">网上天虹</a>
<a href="/cn/nrrrok-546343" class="hidden">畅游论坛</a>
<a href="/sitemap.xml" class="hidden">站点地图</a>
<a href="/CN/akfqnz-586643" class="hidden">潜江在线</a>


</body></html>