<html><head></head><body>{"version":3,"file":"score-button.js","sources":["../../../../src/components/score/score-button/score-button.ts"],"sourcesContent":["import { CSSResultGroup, TemplateResult, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { OutlineButton } from '../../base/outline-button/outline-button';\nimport { SlotController } from '../../controllers/slot-controller';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport componentStyles from './score-button.css.lit';\nimport { isExternalLink, isMessageRequired, isOmittedDomain } from '../../../utilities/external-links'; \n\nexport type ScoreButtonVariant =\n  | 'primary'\n  | 'secondary'\n  | 'login'\n  | 'signup'\n  | 'filter';\n\n/**\n * The Score Button component\n * @element score-button\n *\n */\n\n@customElement('score-button')\nexport class ScoreButton extends OutlineButton {\n  slots = new SlotController(\n    this, // This, the host element.\n    true // To shift or not to shift LightDom nodes to ShadowDOM.\n  );\n  static styles: CSSResultGroup = [componentStyles];\n  @property({ type: String, attribute: 'sr-only' }) srOnly: string;\n  @property({ type: Boolean, attribute: 'is-modal-action' }) isModalAction: boolean;\n  @property({ type: String, attribute: 'rel-text' }) relText: string;\n\n  render(): TemplateResult {\n    const isModalAction = this.isModalAction ? true : false;\n    let buttonUrl = this.buttonUrl ? String(this.buttonUrl) : '';\n    let buttonTarget = this.buttonTarget ? String(this.buttonTarget) : undefined;\n    let isLinkExternal: boolean = isExternalLink(buttonUrl);\n    let isLinkOmitted: boolean = isOmittedDomain(buttonUrl);\n    // External links should open in the new tab.\n    if (isLinkExternal &amp;&amp; !isLinkOmitted) {\n      buttonTarget = '_blank';\n    }\n    \n    if (isMessageRequired(buttonUrl) &amp;&amp; !isModalAction &amp;&amp; !isLinkOmitted) {\n      // Call the modal in the score_content module.\n      // To preserve the external link URL value within the\n      // external modal, encode the URL prior to passing to the external modal.\n      // When using javascript as an href, web browsers will automatically decode the value\n      // which leads to the scoreContentCallModal receiving a decoded URL value.\n      // Encoding the URL again before passing to the javascript call ensures any existing encoded\n      // characters in the URL are preserved in the scoreContentCallModal once the web browser decodes\n      // the value.\n      buttonUrl = 'javascript:scoreContentCallModal(\"' + encodeURIComponent(buttonUrl) + '\")';\n      buttonTarget = '_self';\n    }\n    return this.buttonUrl\n      ? html` <a\n ${this.buttonsize}\"\n="" ${this.buttonvariant}="" aria-disabled='\"${ifDefined(this.isDisabled)}\"\n' aria-label='\"${ifDefined(this.buttonLabel)}\"\n' class='\"btn' href="${buttonUrl}\n" rel='\"${ifDefined(this.relText)}\"\n' target="${ifDefined(buttonTarget)}\n">\n          ${this.iconTemplate(this.hasLeftIcon, 'left')}\n          <slot></slot>\n          ${this.iconTemplate(this.hasRightIcon, 'right')} ${this.hasSrOnly()}\n        `\n      : html`<button\n ${this.buttonsize}\"\n="" ${this.buttonvariant}="" .onclick='\"${this.onClick}\"\n' .onkeyup='\"${this.onKeyUp}\"\n' aria-disabled='\"${ifDefined(this.isDisabled)}\"\n' aria-label='\"${ifDefined(this.buttonLabel)}\"\n' class='\"btn'>\n          ${this.iconTemplate(this.hasLeftIcon, 'left')}\n          <slot></slot>\n          ${this.iconTemplate(this.hasRightIcon, 'right')} ${this.hasSrOnly()}\n         `;\n  }\n  hasSrOnly() {\n    return this.srOnly\n      ? html`<span class='\"visually-hidden\"'>${this.srOnly}</span> `\n      : undefined;\n  }\n}\n\ndeclare global {\n  interface HTMLElementTagNameMap {\n    'score-button': ScoreButton;\n  }\n}\n"],"names":["ScoreButton","OutlineButton","constructor","this","slots","SlotController","render","isModalAction","buttonUrl","String","buttonTarget","undefined","isLinkExternal","isExternalLink","isLinkOmitted","isOmittedDomain","isMessageRequired","encodeURIComponent","html","buttonVariant","buttonSize","ifDefined","buttonLabel","isDisabled","relText","iconTemplate","hasLeftIcon","hasRightIcon","hasSrOnly","onClick","onKeyUp","srOnly","styles","componentStyles","__decorate","property","type","attribute","prototype","Boolean","customElement"],"mappings":"glCAsBO,IAAMA,EAAN,cAA0BC,EAA1BC,kCACLC,KAAAC,MAAQ,IAAIC,EACVF,MACA,EA4DH,CArDCG,SACE,MAAMC,I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;
}
</style>

<a href="http://www.cceweb.net"  class="hidden">博彩平台</a>
<a href="http://www.78278.net"  class="hidden">ag8-Asia-Tour-service@78278.net</a>
<a href="http://www.wellnessgrass.net"  class="hidden">Sun-City-hr@wellnessgrass.net</a>
<a href="http://www.wowarmony.com"  class="hidden">太阳城娱乐城</a>
<a href="http://www.kongtiao11.com"  class="hidden">Gambling-website-info@kongtiao11.com</a>
<a href="http://www.m-y-c.net"  class="hidden">2024欧洲杯押注</a>
<a href="http://www.rf518.com"  class="hidden">博彩平台</a>
<a href="http://www.uc1112.com"  class="hidden">澳门威尼斯</a>
<a href="http://www.999lsm.net"  class="hidden">Sports-in-Sabah-customerservice@999lsm.net</a>
<a href="http://www.jayconscious.com"  class="hidden">皇冠体育</a>
<a href="http://www.vko29.com"  class="hidden">365-Sports-Betting-info@vko29.com</a>
<a href="http://web-sitemap.daves-studio.com" class="hidden">福建招标网</a>
<a href="http://gpcree.gdlheng.com" class="hidden">语音云</a>
<a href="http://www.c178.net"  class="hidden">Online-betting-website-support@c178.net</a>
<a href="http://www.haerbinjiudian.com"  class="hidden">Sabah-Sports-website-service@haerbinjiudian.com</a>
<a href="http://dkaldi.85500171.com" class="hidden">猴岛游戏论坛</a>
<a href="http://www.futuretac.net"  class="hidden">Wynn-Sports-app-sales@futuretac.net</a>
<a href="http://www.babyfeedingshop.com"  class="hidden">Euro-2024-buying-entrance-support@babyfeedingshop.com</a>
<a href="http://gqvzpk.metsamies.com" class="hidden">上海九龙男子医院</a>
<a href="http://tknscd.jqc365.com" class="hidden">31会议</a>

<a href="https://stock.adobe.com/search/images?k=✔️网址:la666.net✔️(关于澳门赌场能开户赌钱吗的简介)澳门赌场能开户赌钱吗.qnr" class="hidden">医学教育网论坛</a>
<a href="https://es-la.facebook.com/public/✔️最新网址:ad22.net✔️科普一下bet8手机官网的百科.ujz" class="hidden">贵阳搜房网-新房</a>
<a href="https://stock.adobe.com/search/images?k=✔️网址:la666.net✔️bb平台登录官方网站(中国)有限公司✔️网址:la666.net✔️bb平台登录官方网站(中国)有限公司.udf" class="hidden">今日头条</a>
<a href="https://stock.adobe.com/search/images?k=raybet雷电竞(中国)有限公司✔️最新网址:ad22.net✔️raybet雷电竞(中国)有限公司✔️最新网址:ad22.net✔️" class="hidden">商丘百姓网</a>
<a href="https://es-la.facebook.com/public/全球最大在线赌博靠谱的网赌网站>>✔️网址:la666.net✔️手输<<.fmk" class="hidden">85度C</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=>>✔️最新网址:ad22.net✔️手输<<线上百家乐平台>>✔️最新网址:ad22.net✔️手输<<线上百家乐平台.sby" class="hidden">双环电感</a>
<a href="https://stock.adobe.com/search?k=bt365全程担保(中国)有限公司✔️网址:la666.net✔️" class="hidden">河南康辉国际旅行社</a>
<a href="https://es-la.facebook.com/public/✔️最新网址:ad22.net✔️正规买足球的app" class="hidden">a8z8连环画</a>
<a href="https://stock.adobe.com/search?k=>>✔️最新网址:la55.net✔️手输<<正规网赌软件在哪里.bgk" class="hidden">企业搜</a>
<a href="https://es-la.facebook.com/public/>>✔️网址:ad11.net✔️手输<<beplay官网全站>>✔️网址:ad11.net✔️手输<<beplay官网全站" class="hidden">佳贝艾特kabrita</a>

<a href="/sitemap.xml" class="hidden">站点地图</a>
<a href="/cn/bcwsqu-705876" class="hidden">呼伦贝尔火网人才频道</a>
<a href="/news/iajbvv-897193" class="hidden">潞安生活网</a>
<a href="/html/gxdver-132658" class="hidden">阿勇时尚饰品批发网</a>
<a href="/sttcs/hot-news/Freudianism.html" class="hidden">北京四中</a>


</body></html>