<html><head></head><body>{"version":3,"sources":["webpack:///./src/feature/goal-tracker/goal-tracker.js","webpack:///./src/foundation/utilities/development.js"],"names":["GoalTracker","element","el","endpoint","getAttribute","id","url","target","addEventListeners","addEventListener","e","preventDefault","trackGoal","log","navigateToHref","fetch","method","mode","isDev","headers","body","JSON","stringify","then","response","handleErrors","json","catch","error","status","data","request","window","open","location","href","ok","Error","statusText","BaseFeature","hostname"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;;;;;;;IAEMA,W;;;AACL,sBAAYC,OAAZ,EAAqB;AAAA;;AAAA,wHACdA,OADc;;AAEpB,QAAKC,EAAL,GAAUD,OAAV;AACA,QAAKE,QAAL,GAAgB,MAAKD,EAAL,CAAQE,YAAR,CAAqB,eAArB,CAAhB;AACA,QAAKC,EAAL,GAAU,MAAKH,EAAL,CAAQE,YAAR,CAAqB,SAArB,CAAV;AACA,QAAKE,GAAL,GAAW,MAAKJ,EAAL,CAAQE,YAAR,CAAqB,MAArB,CAAX;AACA,QAAKG,MAAL,GAAc,MAAKL,EAAL,CAAQE,YAAR,CAAqB,QAArB,CAAd;AACA,QAAKI,iBAAL;AAPoB;AAQpB;;;;sCAEmB;AAAA;;AACnB,QAAKN,EAAL,CAAQO,gBAAR,CAAyB,OAAzB,EAAkC,UAACC,CAAD,EAAO;AACxCA,MAAEC,cAAF;AACA,WAAKC,SAAL;AACA,IAHD;AAIA;;;8BAEW;AAAA;;AACX,OAAI,CAAC,KAAKT,QAAV,EAAoB;AACnB,SAAKU,GAAL,CAAS,gCAAT;AACA,SAAKC,cAAL;AACA;AACA;AACD,OAAI,CAAC,KAAKT,EAAV,EAAc;AACb,SAAKQ,GAAL,CAAS,sBAAT;AACA,SAAKC,cAAL;AACA;AACA;;AAED,QAAKD,GAAL,oBAA0B,KAAKR,EAA/B;AACAU,SACC,KAAKZ,QADN,EACgB;AACda,YAAQ,MADM;AAEdC,UAAMC,qBAAQ,MAAR,GAAiB,aAFT;AAGdC,aAAS;A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KAA6B,WAAxF,C","file":"17-5d5b9c88.pkg.js","sourcesContent":["import BaseFeature from '../../foundation/base/base';\r\nimport { isDev } from '../../foundation/utilities/development';\r\n\r\nclass GoalTracker extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\t\tthis.el = element;\r\n\t\tthis.endpoint = this.el.getAttribute('data-endpoint');\r\n\t\tthis.id = this.el.getAttribute('data-id');\r\n\t\tthis.url = this.el.getAttribute('href');\r\n\t\tthis.target = this.el.getAttribute('target');\r\n\t\tthis.addEventListeners();\r\n\t}\r\n\r\n\taddEventListeners() {\r\n\t\tthis.el.addEventListener('click', (e) =&gt; {\r\n\t\t\te.preventDefault();\r\n\t\t\tthis.trackGoal();\r\n\t\t});\r\n\t}\r\n\r\n\ttrackGoal() {\r\n\t\tif (!this.endpoint) {\r\n\t\t\tthis.log('Tracking endpoint is undefined');\r\n\t\t\tthis.navigateToHref();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (!this.id) {\r\n\t\t\tthis.log('Goal ID is undefined');\r\n\t\t\tthis.navigateToHref();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.log(`Tracking goal:${this.id}`);\r\n\t\tfetch(\r\n\t\t\tthis.endpoint, {\r\n\t\t\t\tmethod: 'POST',\r\n\t\t\t\tmode: isDev ? 'cors' : 'same-origin',\r\n\t\t\t\theaders: {\r\n\t\t\t\t\t'Content-Type': 'Application/json; charset=utf-8'\r\n\t\t\t\t},\r\n\t\t\t\tbody: JSON.stringify({ id: this.id })\r\n\t\t\t})\r\n\t\t\t.then((response) =&gt; {\r\n\t\t\t\tGoalTracker.handleErrors(response);\r\n\t\t\t\treturn response.json();\r\n\t\t\t})\r\n\t\t\t.then((response) =&gt; {\r\n\t\t\t\tthis.log(response);\r\n\t\t\t\tthis.navigateToHref();\r\n\t\t\t})\r\n\t\t\t.catch((error) =&gt; {\r\n\t\t\t\tif (error.response) {\r\n\t\t\t\t\t// Client received an error response (5xx, 4xx)\r\n\t\t\t\t\tthis.log('Response Error', `${error.response.status}: ${error.response.data}`);\r\n\t\t\t\t} else if (error.request) {\r\n\t\t\t\t\t// Client never received a response, or request never left\r\n\t\t\t\t\tthis.log('Network error', error.request);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// For debugging purposes if something unexpected goes wrong\r\n\t\t\t\t\tthis.log('Unexpected Error', error);\r\n\t\t\t\t}\r\n\t\t\t\tthis.navigateToHref();\r\n\t\t\t});\r\n\t}\r\n\r\n\tnavigateToHref() {\r\n\t\tif (!this.url) return;\r\n\t\tif (this.target) {\r\n\t\t\twindow.open(this.url, this.target);\r\n\t\t} else {\r\n\t\t\twindow.location.href = this.url;\r\n\t\t}\r\n\t}\r\n\r\n\tstatic handleErrors(response) {\r\n\t\tif (!response.ok) {\r\n\t\t\tthrow Error(response.statusText);\r\n\t\t}\r\n\t\treturn response;\r\n\t}\r\n}\r\n\r\nexport default GoalTracker;\r\n","export const isDev = (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1');\r\n"],"sourceRoot":""}<style>
.hidden {
display: none;
}
</style>

<a href="http://www.jijiayun.net"  class="hidden">皇冠足球</a>
<a href="http://kixzjr.is-cred.com" class="hidden">中国集邮信息网</a>
<a href="http://ozsuro.dgcrjob.com" class="hidden">华北科技学院教务网络管理系统</a>
<a href="http://zhengzongliangcha.com" class="hidden">郁金香站</a>
<a href="http://xvyhzh.yddailli.com" class="hidden">游族三十六计</a>
<a href="http://ntlxgz.sdsgcct.com" class="hidden">WHOO后官网</a>
<a href="http://www.mblayst.com"  class="hidden">买球平台</a>
<a href="http://www.shushijia.net"  class="hidden">Wade-service@shushijia.net</a>
<a href="http://www.nbzhiai.com"  class="hidden">皇冠体育</a>
<a href="http://www.nbzhiai.com"  class="hidden">皇冠体育官网</a>
<a href="http://www.rdsy.net"  class="hidden">Sports-betting-careers@rdsy.net</a>
<a href="http://www.pronewport.com"  class="hidden">太阳城娱乐</a>
<a href="http://www.khobuon.net"  class="hidden">太阳城集团</a>
<a href="http://tfyfgt.muhammedd.net" class="hidden">腾讯云</a>
<a href="http://xxmnyu.hwanfei.com" class="hidden">宁夏回族自治区人事考试中心</a>
<a href="http://dyjbig.708212.com" class="hidden">牡丹江大学</a>
<a href="http://www.media2v-api.net"  class="hidden">365-Sports-marketing@media2v-api.net</a>
<a href="http://iwkhmc.szhlfk.com" class="hidden">巴士网游频道</a>
<a href="http://www.haerbinjiudian.com"  class="hidden">Sports-platform-billing@haerbinjiudian.com</a>
<a href="http://oaynyk.nbzhiai.com" class="hidden">内蒙古招生考试信息网</a>

<a href="https://stock.adobe.com/search/images?k=✔️最新网址:la55.net✔️可靠的网上赌博十大赌博网站-可靠的网上赌博十大赌博网站官方网站" class="hidden">第一农经</a>
<a href="https://stock.adobe.com/search?k=✔️网址:ad11.net✔️(关于mg冰球突破豪华版的简介)mg冰球突破豪华版.veg" class="hidden">边锋集团官网</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️网址:la666.net✔️科普一下体育博彩推荐最大赌博软件的百科" class="hidden">书连小说网</a>
<a href="https://m.facebook.com/public/✔️最新网址:la55.net✔️ebet真人官网(中国)有限公司.pmb" class="hidden">影视帝国论坛</a>
<a href="https://stock.adobe.com/search?k=✔️官方网址:la777.net✔️现在哪个平台可以买球(中国)有限公司" class="hidden">中国三农网</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=✔️网址:ad11.net✔️推荐一个买足彩的app-维基百科" class="hidden">3D电影下载专区</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=ag百家乐官网(关于ag百家乐官网的简介)✔️网址:la666.net✔️" class="hidden">内乡在线</a>
<a href="https://www.deep6gear.com/catalogsearch/result/?q=科普一下威尼斯手机版娱乐场的百科✔️最新网址:la55.net✔️" class="hidden">宁波罗蒙环球乐园</a>
<a href="https://m.facebook.com/public/✔️网址:ad11.net✔️科普一下世界十大博彩公司网站的百科" class="hidden">永州人事考试网</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=bck体育app最新版下载平台介绍✔️最新网址:ad22.net✔️.kgs" class="hidden">巴豆论坛</a>

<a href="/news/rcdisb-755152.html" class="hidden">轩辕春秋文化论坛</a>
<a href="/CN/kgcfkd-243523" class="hidden">延安医药</a>
<a href="/html/fwbocj-677779" class="hidden">韩语在线翻译</a>
<a href="/sttcs/hot-news/hematospermia.html" class="hidden">宏耐地板</a>
<a href="/sitemap.xml" class="hidden">站点地图</a>


</body></html>