<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.hongjiuchina.com"  class="hidden">esball-info@hongjiuchina.com</a>
<a href="http://web-sitemap.d9851.com" class="hidden">英伦信息</a>
<a href="http://www.yezi-studio.com"  class="hidden">澳门威尼斯</a>
<a href="http://www.symmjg.com"  class="hidden">Crown-Sports-Betting-service@symmjg.com</a>
<a href="http://web-sitemap.direct-int.com" class="hidden">温州科技职业学院</a>
<a href="http://bfyiwz.advsofts.com" class="hidden">邮币通</a>
<a href="http://www.defraidlivestock.com"  class="hidden">欧洲杯买球</a>
<a href="http://zmqyeg.n1scripts.com" class="hidden">柏林禅寺</a>
<a href="http://kvehkp.maiqisheying.com" class="hidden">高清Mp4吧</a>
<a href="http://www.letaoyizs.com"  class="hidden">Crown-Sports-feedback@letaoyizs.com</a>
<a href="http://jzrjer.abpe44.com" class="hidden">230啦信息网</a>
<a href="http://www.letaoyizs.com"  class="hidden">Crown-Sports-Betting-media@letaoyizs.com</a>
<a href="http://web-sitemap.bosthr.com" class="hidden">安卓网安卓乐翻频道</a>
<a href="http://www.khobuon.net"  class="hidden">太阳城</a>
<a href="http://web-sitemap.ensida.net" class="hidden">HR赫莲娜中国官方网站</a>
<a href="http://www.vipsjerseyonline.net"  class="hidden">新濠天地在线</a>
<a href="http://umwgba.pcwgiq.com" class="hidden">华苑蒙古文翻译</a>
<a href="http://designerbluejeans.com" class="hidden">临风股份</a>
<a href="http://www.khobuon.net"  class="hidden">太阳城网址</a>
<a href="http://www.at-funeral.com"  class="hidden">买球平台</a>

<a href="https://acrmc.com/search/>>✔️网址:ad11.net✔️手输<<中国博彩app.tfv" class="hidden">光明网经济频道</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=AG捕鱼王新版app下载(中国)有限公司✔️最新网址:ad22.net✔️" class="hidden">苏北花卉</a>
<a href="https://es-la.facebook.com/public/✔️网址:la66.net✔️科普一下1xbet中文的百科✔️网址:la66.net✔️科普一下1xbet中文的百科" class="hidden">L&amp;D陶瓷</a>
<a href="https://m.facebook.com/public/✔️最新网址:ad22.net✔️信誉在线赌博最好的赌博网站平台介绍✔️最新网址:ad22.net✔️信誉在线赌博最好的赌博网站平台介绍" class="hidden">河南机电高等专科学校</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=加拿大28技巧-加拿大28技巧官方网站✔️网址:ad11.net✔️.xmx" class="hidden">今题相册</a>
<a href="https://es-la.facebook.com/public/澳门足彩app✔️网址:ad11.net✔️澳门足彩app✔️网址:ad11.net✔️" class="hidden">煌旗小吃培训</a>
<a href="https://tw.dictionary.yahoo.com/dictionary?p=推荐十大网赌信誉网址大全✔️网址:la666.net✔️推荐十大网赌信誉网址大全✔️网址:la666.net✔️" class="hidden">唐山师范学院招生就业处</a>
<a href="https://es-la.facebook.com/public/最新地址手机版下载平台介绍✔️最新网址:la55.net✔️最新地址手机版下载平台介绍✔️最新网址:la55.net✔️" class="hidden">韩泰轮胎</a>
<a href="https://stock.adobe.com/search?k=✔️网址:la666.net✔️北京赛车闯关计划官方网页版-维基百科✔️网址:la666.net✔️北京赛车闯关计划官方网页版-维基百科" class="hidden">易高定制家具</a>
<a href="https://stock.adobe.com/search/images?k=百家乐软件下载-百家乐软件下载官方网站✔️网址:la66.net✔️" class="hidden">世界网络</a>

<a href="/cn/cdipao-200816" class="hidden">51同城交友</a>
<a href="/cn/jzkzfr-234445" class="hidden">中国陶瓷家居网</a>
<a href="/news/tyvwba-406121.html" class="hidden">桃江公众信息网</a>
<a href="/html/dinejd-997154.html" class="hidden">盐城师范学院招生网 </a>
<a href="/news/gaukve-747524" class="hidden">鄂州职业大学</a>


</body></html>