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IACIxB,EAAYwB,GAAGvB,EAInB,CAHA,MACOyB,GACHC,QAAQC,MAAMF,EAClB,CAER,QACWG,OAAW,MAClBA,OAAOC,mBAtBYC,IACnB/B,EAAYgC,KAAKD,GACV,KACH,MAAMP,EAAIxB,EAAYiC,QAAQF,IACpB,IAANP,IAEAxB,EAAYwB,GAAKxB,EAAYA,EAAYyB,OAAS,GAClDzB,EAAYkC,MAAG,GAeKC","names":["CarouselModule","CommonModule","MyChartBarModule","SharedModule","i0","PageSelectorComponent","constructor","this","EventEmitter","goPrevPages","pagesToDisplay","goNextPages","changePage","numPage","currentPage","pageChangeEvent","emit","resetPages","selectors","PageSelectorModule","FormsModule","NgbModule","chainType","value","ChainType","label","FaqType","RefLinkType","id","subscribers","log","type","message","data","obj","String","date","Date","dispatch","LocalTracer","context","trace","getContext","setContext","updateContext","contextToAdd","Object","assign","getType","setType","withType","withContext","withUpdatedContext","i","length","e","console","error","window","__ledgerLogsListen","cb","push","indexOf","pop","listen"],"sourceRoot":"webpack:///","sources":["./src/app/shared/component/carousel/carousel.module.ts","./src/app/shared/component/page-selector/page-selector.component.html","./src/app/shared/component/page-selector/page-selector.component.ts","./src/app/shared/component/page-selector/page-selector.module.ts","./src/app/shared/constants/chainType.ts","./src/app/shared/enums/chainType.ts","./src/app/shared/enums/faqType.ts","./src/app/shared/enums/refLinkType.ts","./node_modules/@ledgerhq/logs/lib-es/index.js"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { CarouselComponent } from './carousel.component';\r\nimport { MyChartBarModule } from '../charts/chart-bar/chart-bar.module';\r\nimport { SharedModule } from '../../shared.module';\r\n\r\n@NgModule({\r\n declarations: [\r\n CarouselComponent\r\n ],\r\n imports: [\r\n CommonModule,\r\n MyChartBarModule,\r\n SharedModule\r\n ],\r\n exports: [\r\n CarouselComponent\r\n ]\r\n})\r\nexport class CarouselModule { }\r\n","
1\">\r\n \r\n ←\r\n
\r\n \r\n \r\n {{ i }}\r\n \r\n \r\n {{ i }}\r\n \r\n \r\n \r\n →\r\n \r\n\r\n","import { Component, Input } from '@angular/core';\r\nimport { Output, EventEmitter } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-page-selector',\r\n templateUrl: './page-selector.component.html',\r\n styleUrls: ['./page-selector.component.scss'],\r\n})\r\nexport class PageSelectorComponent {\r\n @Input() countPages: number = 0;\r\n @Output() pageChangeEvent = new EventEmitter();\r\n pagesToDisplay: number = 1;\r\n currentPage: number = 1;\r\n\r\n constructor() {}\r\n\r\n goPrevPages() {\r\n this.pagesToDisplay -= 3;\r\n }\r\n\r\n goNextPages() {\r\n this.pagesToDisplay += 3;\r\n }\r\n\r\n changePage(numPage = 1) {\r\n this.currentPage = numPage;\r\n this.pageChangeEvent.emit(numPage);\r\n }\r\n\r\n resetPages() {\r\n this.currentPage = 1;\r\n this.pagesToDisplay = 1;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { PageSelectorComponent } from './page-selector.component';\r\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\r\n\r\n@NgModule({\r\n declarations: [\r\n PageSelectorComponent\r\n ],\r\n imports: [\r\n CommonModule, \r\n FormsModule,\r\n NgbModule\r\n ],\r\n exports:[\r\n PageSelectorComponent\r\n ]\r\n})\r\nexport class PageSelectorModule { }\r\n","import { ChainType } from \"../enums/chainType\";\r\n\r\nexport var chainType = [\r\n { value: ChainType.Any, label: \"Any\" },\r\n { value: ChainType.Arbitrum, label: \"Arbitrum\" },\r\n { value: ChainType.ERC20, label: \"ERC-20\" },\r\n];","export enum ChainType {\r\n Any = -200,\r\n Arbitrum = 0,\r\n ERC20 = 1,\r\n}","export enum FaqType {\r\n Deposit = 1,\r\n Withdraw = 2\r\n}","export enum RefLinkType {\r\n Default = 0,\r\n Premium = 1\r\n}","let id = 0;\nconst subscribers = [];\n/**\n * Logs something\n *\n * @param type a namespaced identifier of the log (it is not a level like \"debug\", \"error\" but more like \"apdu-in\", \"apdu-out\", etc...)\n * @param message a clear message of the log associated to the type\n */\nexport const log = (type, message, data) => {\n const obj = {\n type,\n id: String(++id),\n date: new Date(),\n };\n if (message)\n obj.message = message;\n if (data)\n obj.data = data;\n dispatch(obj);\n};\n/**\n * A simple tracer function, only expanding the existing log function\n *\n * Its goal is to capture more context than a log function.\n * This is simple for now, but can be improved later.\n *\n * @param context Anything representing the context where the log occurred\n */\nexport const trace = ({ type, message, data, context, }) => {\n const obj = {\n type,\n id: String(++id),\n date: new Date(),\n };\n if (message)\n obj.message = message;\n if (data)\n obj.data = data;\n if (context)\n obj.context = context;\n dispatch(obj);\n};\n/**\n * A simple tracer class, that can be used to avoid repetition when using the `trace` function\n *\n * Its goal is to capture more context than a log function.\n * This is simple for now, but can be improved later.\n *\n * @param type A given type (not level) for the current local tracer (\"hw\", \"withDevice\", etc.)\n * @param context Anything representing the context where the log occurred\n */\nexport class LocalTracer {\n constructor(type, context) {\n this.type = type;\n this.context = context;\n }\n trace(message, data) {\n trace({\n type: this.type,\n message,\n data,\n context: this.context,\n });\n }\n getContext() {\n return this.context;\n }\n setContext(context) {\n this.context = context;\n }\n updateContext(contextToAdd) {\n this.context = Object.assign(Object.assign({}, this.context), contextToAdd);\n }\n getType() {\n return this.type;\n }\n setType(type) {\n this.type = type;\n }\n /**\n * Create a new instance of the LocalTracer with an updated `type`\n *\n * It does not mutate the calling instance, but returns a new LocalTracer,\n * following a simple builder pattern.\n */\n withType(type) {\n return new LocalTracer(type, this.context);\n }\n /**\n * Create a new instance of the LocalTracer with a new `context`\n *\n * It does not mutate the calling instance, but returns a new LocalTracer,\n * following a simple builder pattern.\n *\n * @param context A TraceContext, that can undefined to reset the context\n */\n withContext(context) {\n return new LocalTracer(this.type, context);\n }\n /**\n * Create a new instance of the LocalTracer with an updated `context`,\n * on which an additional context is merged with the existing one.\n *\n * It does not mutate the calling instance, but returns a new LocalTracer,\n * following a simple builder pattern.\n */\n withUpdatedContext(contextToAdd) {\n return new LocalTracer(this.type, Object.assign(Object.assign({}, this.context), contextToAdd));\n }\n}\n/**\n * Adds a subscribers to the emitted logs.\n *\n * @param cb that is called for each future log() with the Log object\n * @return a function that can be called to unsubscribe the listener\n */\nexport const listen = (cb) => {\n subscribers.push(cb);\n return () => {\n const i = subscribers.indexOf(cb);\n if (i !== -1) {\n // equivalent of subscribers.splice(i, 1) // https://twitter.com/Rich_Harris/status/1125850391155965952\n subscribers[i] = subscribers[subscribers.length - 1];\n subscribers.pop();\n }\n };\n};\nfunction dispatch(log) {\n for (let i = 0; i < subscribers.length; i++) {\n try {\n subscribers[i](log);\n }\n catch (e) {\n console.error(e);\n }\n }\n}\nif (typeof window !== \"undefined\") {\n window.__ledgerLogsListen = listen;\n}\n"],"x_google_ignoreList":[8]}