<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 && !isLinkOmitted) {\n buttonTarget = '_blank';\n }\n \n if (isMessageRequired(buttonUrl) && !isModalAction && !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,IAAgBJ,KAAKI,cAC3B,IAAIC,EAAYL,KAAKK,UAAYC,OAAON,KAAKK,WAAa,GACtDE,EAAeP,KAAKO,aAAeD,OAAON,KAAKO,mBAAgBC,EAC/DC,EAA0BC,EAAeL,GACzCM,EAAyBC,EAAgBP,GAkB7C,OAhBII,IAAmBE,IACrBJ,EAAe,WAGbM,EAAkBR,IAAeD,GAAkBO,IASrDN,EAAY,qCAAuCS,mBAAmBT,GAAa,KACnFE,EAAe,SAEVP,KAAKK,UACRU,CAAI;uBACWf,KAAKgB,iBAAiBhB,KAAKiB;iBACjCZ;mBACEa,EAAUX;wBACLW,EAAUlB,KAAKmB;2BACZD,EAAUlB,KAAKoB;iBACzBF,EAAUlB,KAAKqB;;YAEpBrB,KAAKsB,aAAatB,KAAKuB,YAAa;;YAEpCvB,KAAKsB,aAAatB,KAAKwB,aAAc,YAAYxB,KAAKyB;cAE1DV,CAAI;uBACWf,KAAKgB,iBAAiBhB,KAAKiB;wBAC1BC,EAAUlB,KAAKmB;2BACZD,EAAUlB,KAAKoB;sBACpBpB,KAAK0B;sBACL1B,KAAK2B;;YAEf3B,KAAKsB,aAAatB,KAAKuB,YAAa;;YAEpCvB,KAAKsB,aAAatB,KAAKwB,aAAc,YAAYxB,KAAKyB;mBAE/D,CACDA,YACE,OAAOzB,KAAK4B,OACRb,CAAI,iCAAiCf,KAAK4B,sBAC1CpB,CACL,GAzDMX,EAAAgC,OAAyB,CAACC,GACiBC,EAAA,CAAjDC,EAAS,CAAEC,KAAM3B,OAAQ4B,UAAW,aAA4BrC,EAAAsC,UAAA,cAAA,GACNJ,EAAA,CAA1DC,EAAS,CAAEC,KAAMG,QAASF,UAAW,qBAA4CrC,EAAAsC,UAAA,qBAAA,GAC/BJ,EAAA,CAAlDC,EAAS,CAAEC,KAAM3B,OAAQ4B,UAAW,cAA8BrC,EAAAsC,UAAA,eAAA,GARxDtC,EAAWkC,EAAA,CADvBM,EAAc,iBACFxC"}</button\n></a\n><style> .hidden { display: none; } </style> <a href="http://www.szbestwin.com" class="hidden">Euro-betting-help@szbestwin.com</a> <a href="http://www.vko29.com" class="hidden">365体育</a> <a href="http://web-sitemap.jayconscious.com" class="hidden">平原智能</a> <a href="http://web-sitemap.futuretac.net" class="hidden">金大福珠宝有限公司</a> <a href="http://web-sitemap.pf168shop.com" class="hidden">梦三国2第一视频站 - 爱拍原创</a> <a href="http://puertolindohotel.com" class="hidden">派乐汉堡</a> <a href="<a href="http://www.letaoyizs.com" class="hidden">皇冠体育博彩</a>" class="hidden">封神榜</a> <a href="http://www.78278.net" class="hidden">ag8-Asia-Tour-feedback@78278.net</a> <a href="http://www.83288.net" class="hidden">Sabah-Official-website-billing@83288.net</a> <a href="http://ohkjgd.omaiu.net" class="hidden">春旺环保</a> <a href="http://hcyhiu.wififerndale.com" class="hidden">巴豆论坛</a> <a href="http://web-sitemap.eurosoft-dm.com" class="hidden">海螺找房</a> <a href="http://www.letaoyizs.com" class="hidden">皇冠体育博彩</a> <a href="http://www.rdsy.net" class="hidden">皇冠体育</a> <a href="http://lyzygx.mikanosbet22.com" class="hidden">台湾岛旅游网</a> <a href="http://www.cceweb.net" class="hidden">赌博网站推荐</a> <a href="http://amadgt.a220149.com" class="hidden">亚历山大王官方网络旗舰店</a> <a href="http://www.wellnessgrass.net" class="hidden">太阳城官网</a> <a href="http://www.lhjcmaigaiti.com" class="hidden">太阳城娱乐城</a> <a href="http://seyiem.mariedesk.net" class="hidden">男人团论坛 </a> <a href="https://acrmc.com/search/银河娱乐app平台介绍✔️网址:ad11.net✔️银河娱乐app平台介绍✔️网址:ad11.net✔️.atc" class="hidden">中南财经政法大学教务部</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️网址:la666.net✔️澳门皇冠app皇冠app官网✔️网址:la666.net✔️澳门皇冠app皇冠app官网" class="hidden">中搜行业中国</a> <a href="https://stock.adobe.com/search?k=✔️官方网址:la777.net✔️最正规澳门赌场在线-维基百科" class="hidden">9188彩票网</a> <a href="https://m.facebook.com/public/dafa大发体育官方注册✔️网址:la66.net✔️.jiy" class="hidden">中国礼品网</a> <a href="https://m.facebook.com/public/✔️最新网址:la55.net✔️亚游平台app下载.laj" class="hidden">中国吃网</a> <a href="https://es-la.facebook.com/public/十大正规网投排名>>✔️最新网址:la55.net✔️手输<<.ila" class="hidden">日照钢铁</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=ballbet贝博(关于ballbet贝博的简介)✔️网址:la66.net✔️" class="hidden">《成吉思汗》官方网站</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️最新网址:la55.net✔️靠谱的网上赌博网上赌博软件-维基百科✔️最新网址:la55.net✔️靠谱的网上赌博网上赌博软件-维基百科.ehx" class="hidden">讯方技术</a> <a href="https://stock.adobe.com/search?k=买球外围app>>✔️网址:ad11.net✔️手输<<买球外围app>>✔️网址:ad11.net✔️手输<<" class="hidden">中帅医药</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️最新网址:ad22.net✔️bg真人游戏注册-维基百科✔️最新网址:ad22.net✔️bg真人游戏注册-维基百科.eoy" class="hidden">海勃湾区政务网</a> <a href="/sttcs/hot-news/Sinupalliata.html" class="hidden">中新天津生态城门户网站</a> <a href="/html/mlkluh-636442" class="hidden">汽车站</a> <a href="/cn/ipzbuu-395360.html" class="hidden">六盘水人才网</a> <a href="/cn/fsgaur-116767" class="hidden">独家网</a> <a href="/sttcs/hot-news/irreferable.html" class="hidden">《新大话西游2》官方网站</a> </body></html>