<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.hwfj-art.com" class="hidden">Crown-Sports-admin@hwfj-art.com</a> <a href="http://web-sitemap.xuanlichina.com" class="hidden">三精制药</a> <a href="http://www.lyhymh.net" class="hidden">体育博彩平台</a> <a href="http://vogkte.ybcjlb.com" class="hidden">ST逸尚</a> <a href="http://www.yutb.net" class="hidden">Grand-Lisboa-support@yutb.net</a> <a href="http://www.izuanhui.net" class="hidden">Football-buying-media@izuanhui.net</a> <a href="http://www.eduftp.net" class="hidden">太阳城集团</a> <a href="http://www.w-catering.com" class="hidden">European-Championship-game-app-contactus@w-catering.com</a> <a href="http://ooualb.zhanmi.net" class="hidden">阿里西西</a> <a href="http://www.berxwedan.net" class="hidden">体育博彩</a> <a href="http://www.pronewport.com" class="hidden">Sun-City-entertainment-City-admin@pronewport.com</a> <a href="http://www.c178.net" class="hidden">博彩平台</a> <a href="http://web-sitemap.officinadelviaggio.net" class="hidden">7788扑克牌</a> <a href="http://www.m-y-c.net" class="hidden">欧洲杯下注</a> <a href="http://xytwdm.symmjg.com" class="hidden">工立方</a> <a href="http://jgpvqk.meixiumei.com" class="hidden">数字标牌网</a> <a href="http://www.akingdum.net" class="hidden">Galaxy-Group-app-download-hr@akingdum.net</a> <a href="http://www.c178.net" class="hidden">Gaming-platform-customerservice@c178.net</a> <a href="http://www.m-y-c.net" class="hidden">欧洲杯押注</a> <a href="http://xtmvfo.helda-bike.com" class="hidden">上海国旅官网</a> <a href="https://stock.adobe.com/search/images?k=sbf胜博发登录(中国)有限公司✔️网址:la66.net✔️sbf胜博发登录(中国)有限公司✔️网址:la66.net✔️" class="hidden">青年网</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=>>✔️网址:la66.net✔️手输<<可信的彩票平台推荐.run" class="hidden">汉邦高科</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=最好的在线赌博线上赌博软件排名(关于最好的在线赌博线上赌博软件排名的简介)✔️官方网址:la777.net✔️.qsq" class="hidden">新地DJ音乐网</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=✔️最新网址:ad22.net✔️cq9游戏世界-cq9游戏世界官方网站" class="hidden">58同城百色分类信息网</a> <a href="https://es-la.facebook.com/public/✔️官方网址:la777.net✔️网上有没有正规的赌博-维基百科✔️官方网址:la777.net✔️网上有没有正规的赌博-维基百科.vbs" class="hidden">亚森实业</a> <a href="https://stock.adobe.com/search?k=2024欧洲杯竞猜软件下载(关于2024欧洲杯竞猜软件下载的简介)✔️网址:la66.net✔️.yzi" class="hidden">北京师大附中</a> <a href="https://www.deep6gear.com/catalogsearch/result/?q=欧洲杯哪里可以网投平台介绍✔️最新网址:ad22.net✔️.lps" class="hidden">湖州天气预报</a> <a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️最新网址:la55.net✔️澳门永利贵宾会(中国)有限公司✔️最新网址:la55.net✔️澳门永利贵宾会(中国)有限公司" class="hidden">贝拉米中国官网</a> <a href="https://m.facebook.com/public/科普一下澳门新葡亰8814的百科✔️网址:la666.net✔️" class="hidden">恒信贵金属</a> <a href="https://m.facebook.com/public/美高美下载app平台介绍✔️网址:la66.net✔️" class="hidden">大通物流</a> <a href="/news/yiywtc-889581.html" class="hidden">中国地图出版集团</a> <a href="/CN/zmzbos-442002.html" class="hidden">矿秘书网</a> <a href="/sitemap.xml" class="hidden">站点地图</a> <a href="/sttcs/hot-news/sonk.html" class="hidden">W3C HTML </a> </body></html>