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L,SAASkL,qBAAuBF,EAA0B,CAC5D,MAAMG,EAAiBzM,EAAMyB,OAAOiL,OAEpC1M,EAAMyB,OAAOiL,OAAS,CAACC,EAAgBC,KACrCtL,SAASkL,qBAAoB,IAAMC,EAAeE,EAAgBC,IAAY,CAElF,K,QCnBFC,GAAWjE,WAAW,CAAEiD,SAAS,I,sBCCjC5S,GAAAA,WAA0BwS,EAAa,CAAEqB,WAAU,UAAEC,SAAS,I,QCoB9DC,EAAAA,EAAUpE,WAAW,CAAC,SAAU,CAAEqE,KAAM,IAAKC,SAAS,EAAOC,UAAU,IAEvE7C,EAAAA,EAAAA,QAAc8C,OAAQ,C","sources":["webpack://app/./app/javascript/channels/ sync _channel\\.js$","webpack://app/./app/javascript/controllers/ sync _controller\\.js$","webpack://app/./app/javascript/channels/index.js","webpack://app/./app/javascript/controllers/application_controller.js","webpack://app/./app/javascript/controllers/article_controller.js","webpack://app/./app/javascript/controllers/carousel_controller.js","webpack://app/./app/javascript/controllers/checkbox_select_all_controller.js","webpack://app/./app/javascript/controllers/comments_controller.js","webpack://app/./app/javascript/controllers/currency_controller.js","webpack://app/./app/javascript/controllers/datepicker_controller.js","webpack://app/./app/javascript/controllers/dropdown_controller.js","webpack://app/./app/javascript/controllers/frame_refresh_controller.js","webpack://app/./app/javascript/controllers/modal_controller.js","webpack://app/./app/javascript/controllers/navigation_controller.js","webpack://app/./app/javascript/controllers/profile_edit_controller.js","webpack://app/./app/javascript/controllers/readmore_controller.js","webpack://app/./app/javascript/controllers/tabs_controller.js","webpack://app/./app/javascript/controllers/timeframe_controller.js","webpack://app/./app/javascript/controllers/toast_controller.js","webpack://app/./app/javascript/controllers/token_frame_controller.js","webpack://app/./app/javascript/controllers/wallet_controller.js","webpack://app/./app/javascript/channels/consumer.js","webpack://app/./app/javascript/controllers/application.js","webpack://app/./app/javascript/controllers/index.js","webpack://app/./app/javascript/config/cable_ready.js","webpack://app/./app/javascript/config/stimulus_reflex.js","webpack://app/./app/javascript/packs/application.js"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 3760;\nmodule.exports = webpackEmptyContext;","var map = {\n\t\"./application_controller.js\": 3728,\n\t\"./article_controller.js\": 9228,\n\t\"./carousel_controller.js\": 5436,\n\t\"./checkbox_select_all_controller.js\": 8308,\n\t\"./comments_controller.js\": 5332,\n\t\"./currency_controller.js\": 8567,\n\t\"./datepicker_controller.js\": 5888,\n\t\"./dropdown_controller.js\": 8197,\n\t\"./frame_refresh_controller.js\": 3205,\n\t\"./modal_controller.js\": 6897,\n\t\"./navigation_controller.js\": 1156,\n\t\"./profile_edit_controller.js\": 1732,\n\t\"./readmore_controller.js\": 8133,\n\t\"./tabs_controller.js\": 6506,\n\t\"./timeframe_controller.js\": 4524,\n\t\"./toast_controller.js\": 3307,\n\t\"./token_frame_controller.js\": 427,\n\t\"./wallet_controller.js\": 9085,\n\t\"controllers/application_controller.js\": 3728,\n\t\"controllers/article_controller.js\": 9228,\n\t\"controllers/carousel_controller.js\": 5436,\n\t\"controllers/checkbox_select_all_controller.js\": 8308,\n\t\"controllers/comments_controller.js\": 5332,\n\t\"controllers/currency_controller.js\": 8567,\n\t\"controllers/datepicker_controller.js\": 5888,\n\t\"controllers/dropdown_controller.js\": 8197,\n\t\"controllers/frame_refresh_controller.js\": 3205,\n\t\"controllers/modal_controller.js\": 6897,\n\t\"controllers/navigation_controller.js\": 1156,\n\t\"controllers/profile_edit_controller.js\": 1732,\n\t\"controllers/readmore_controller.js\": 8133,\n\t\"controllers/tabs_controller.js\": 6506,\n\t\"controllers/timeframe_controller.js\": 4524,\n\t\"controllers/toast_controller.js\": 3307,\n\t\"controllers/token_frame_controller.js\": 427,\n\t\"controllers/wallet_controller.js\": 9085\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 5124;","// Load all the channels within this directory and all subdirectories.\n// Channel files must be named *_channel.js.\n\nconst channels = require.context('.', true, /_channel\\.js$/)\nchannels.keys().forEach(channels)\n","import { Controller } from '@hotwired/stimulus'\nimport StimulusReflex from 'stimulus_reflex'\n\n// This is the Stimulus ApplicationController.\n// All StimulusReflex controllers should inherit from this class.\n//\n// Example:\n//\n// import ApplicationController from './application_controller'\n//\n// export default class extends ApplicationController { ... }\n//\n// Learn more at: https://docs.stimulusreflex.com\n//\n\nexport default class extends Controller {\n connect () {\n StimulusReflex.register(this)\n }\n\n // Application-wide lifecycle methods\n //\n // Use these methods to handle lifecycle callbacks for all controllers.\n // Using lifecycle methods is optional, so feel free to delete these if you don't need them.\n //\n // Arguments:\n //\n // element - the element that triggered the reflex\n // may be different than the Stimulus controller's this.element\n //\n // reflex - the name of the reflex e.g. \"Example#demo\"\n //\n // error/noop - the error message (for reflexError), otherwise null\n //\n // id - a UUID4 or developer-provided unique identifier for each Reflex\n //\n\n beforeReflex (element, reflex, noop, id) {\n // document.body.classList.add('wait')\n }\n\n reflexQueued (element, reflex, noop, id) {\n // Reflex will be delivered to server upon reconnection\n }\n\n reflexDelivered (element, reflex, noop, id) {\n // Reflex has been delivered to the server\n }\n\n reflexSuccess (element, reflex, noop, id) {\n // show success message\n }\n\n reflexError (element, reflex, error, id) {\n // show error message\n }\n\n reflexForbidden (element, reflex, noop, id) {\n // Reflex action did not have permission to run\n // window.location = '/'\n }\n\n reflexHalted (element, reflex, noop, id) {\n // handle aborted Reflex action\n }\n\n afterReflex (element, reflex, noop, id) {\n // document.body.classList.remove('wait')\n }\n\n finalizeReflex (element, reflex, noop, id) {\n // all operations have completed, animation etc is now safe\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport slugify from \"@sindresorhus/slugify\"\n\nexport default class extends Controller {\n static targets = [\"tocWrapper\", \"body\"]\n static classes = [\"tocLinkActive\"]\n static values = {\n allowToc: Boolean, default: false,\n tocWrapperClasses: String,\n tocLinkClasses: String,\n }\n\n connect() {\n if (!this.hasTocWrapperTarget || !this.hasBodyTarget){\n console.error(\"missing targets: tocWrapper or body\")\n return\n }\n else {\n this.collectHeadlines()\n \n if(this.shouldHaveToc) {\n this.buildToc()\n }\n }\n }\n\n shouldHaveToc() {\n if(this.allowTocValue && this.headlines.length > 1) {\n return true\n } else {\n return false\n }\n }\n\n collectHeadlines() {\n this.headlines = []\n\n Array.from(this.bodyTarget.children).forEach((child) => {\n if(child.tagName.match(/H[2-3]/)) {\n this.headlines.push(child)\n }\n })\n }\n\n buildToc() {\n let tocLinksHTML = \"\"\n\n this.headlines.forEach((headline) => {\n let level = parseInt(headline.tagName.slice(1)) - 1\n let anchor = slugify(headline.textContent)\n let text = headline.textContent\n headline.id = anchor\n\n tocLinksHTML += `${text}`\n })\n\n this.tocWrapperTarget.innerHTML = `
${tocLinksHTML}
`\n this.highlightTocItem()\n }\n\n highlightTocItem() {\n let currentHeadline = null;\n\n for (let i = 0; i < this.headlines.length; i++) {\n let headline = this.headlines[i];\n let nextHeadline = this.headlines[i + 1]\n let rect = headline.getBoundingClientRect();\n\n if (rect.top <= 50) {\n if (nextHeadline && nextHeadline.getBoundingClientRect().top > 50) {\n currentHeadline = headline\n break\n }\n else if (!nextHeadline) {\n currentHeadline = headline;\n break;\n }\n }\n }\n\n if (currentHeadline) {\n let currentAnchor = currentHeadline.id;\n let currentTocItem = this.tocWrapperTarget.querySelector(`a[href=\"#${currentAnchor}\"]`);\n\n if (currentTocItem) {\n this.removeAllHighlights()\n \n currentTocItem.classList.add(this.tocLinkActiveClass);\n }\n } else {\n this.removeAllHighlights()\n }\n }\n\n removeAllHighlights() {\n this.tocWrapperTarget.querySelectorAll(\"a\").forEach((tocItem) => {\n tocItem.classList.remove(this.tocLinkActiveClass);\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport Swiper from \"swiper/bundle\"\n\nexport default class extends Controller {\n static targets = [\"stage\", \"slide\", \"foreignSlide\"]\n static values = { swiperOptions: Object }\n static outlets = [\"carousel\"]\n\n connect() {\n this.swiper = new Swiper(this.stageTarget.parentNode, this.swiperOptions())\n\n if (this.hasCarouselOutlet) {\n this.handleForeignSlides()\n\n this.swiper.on(\"resize\", () => {\n this.handleForeignSlides()\n })\n }\n }\n\n swiperOptions() {\n let defaultOptions = {\n slidesPerView: 1,\n spaceBetween: 32,\n loop: true,\n pagination: {\n el: \".swiper-pagination\",\n clickable: true,\n }\n }\n \n return Object.assign(defaultOptions, this.swiperOptionsValue)\n }\n\n handleForeignSlides() {\n if(window.innerWidth < 768) {\n if (this.hasForeignSlideTarget) return\n\n this.carouselOutlets.forEach((outlet) => {\n outlet.slideTargets.forEach((foreignSlide) => {\n let slide = foreignSlide.cloneNode(true)\n slide.setAttribute(\"data-carousel-target\", \"foreignSlide\")\n this.swiper.prependSlide(slide)\n })\n })\n }\n else {\n this.foreignSlideTargets.forEach((slide) => {\n let slideIndex = this.swiper.slides.indexOf(slide)\n this.swiper.removeSlide(slideIndex)\n })\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"parent\", \"child\"]\n\n connect() {\n // set all to false on page refresh\n this.childTargets.map(x => x.checked = false)\n this.parentTarget.checked = false\n }\n\n toggleChildren() {\n if (this.parentTarget.checked) {\n this.childTargets.map(x => x.checked = true)\n } else {\n this.childTargets.map(x => x.checked = false)\n }\n }\n\n toggleParent() {\n if (this.childTargets.map(x => x.checked).includes(false)) {\n this.parentTarget.checked = false\n } else {\n this.parentTarget.checked = true\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"form\", \"replyForm\", \"formHeader\", \"replyButton\", \"textarea\"];\n static classes = [\"hidden\"]\n\n replyFormTargetConnected() {\n this.replyButtonTarget.classList.add(this.hiddenClass);\n }\n\n expand(event) {\n this.textareaTarget.focus();\n this.textareaTarget.classList.add(\"expanded\");\n if (this.hasFormHeaderTarget) {\n this.formHeaderTarget.classList.remove(this.hiddenClass);\n }\n }\n\n cancel() {\n this.replyButtonTarget.classList.remove(this.hiddenClass);\n this.replyFormTarget.remove();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller { \n static targets = [\"option\", \"default\"]\n\n connect() {\n this.optionTargets.forEach(element => {\n element.dataset.action = [element.dataset.action, \"click->currency#switch\"].join(\" \").trim()\n })\n\n const target = this.hasDefaultTarget ? this.defaultTarget : this.optionTarget\n this.setCurrent(target)\n }\n\n setCurrent(element) {\n this.current = {\n name: element.dataset.currencyName,\n symbol: element.dataset.currencySymbol,\n }\n\n document.dispatchEvent(\n new CustomEvent(\"currency-change\", { detail: this.current })\n )\n }\n\n switch(event) {\n this.setCurrent(event.currentTarget)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport flatpickr from \"flatpickr\"\n\nrequire(\"flatpickr/dist/flatpickr.css\")\n\nexport default class extends Controller {\n connect() {\n flatpickr(this.element, {\n dateFormat: \"F j, Y\",\n enable: [\n {\n from: new Date().fp_incr(1),\n to: new Date().fp_incr(730)\n }\n ],\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"default\", \"selected\", \"itemList\", \"arrow\"]\n static classes = [\"hidden\", \"selected\", \"active\", \"arrowDown\", \"arrowUp\"]\n\n connect() {\n if (this.hasDefaultTarget) {\n this.setSelected(this.defaultTarget)\n }\n }\n\n setArrow() {\n if (!this.hasArrowTarget) return\n \n if (this.itemListTarget.classList.contains(this.hiddenClass)) {\n this.arrowTarget.classList.replace(this.arrowUpClass, this.arrowDownClass)\n }\n else {\n this.arrowTarget.classList.replace(this.arrowDownClass, this.arrowUpClass)\n }\n }\n\n setSelected(element) {\n // hide the selected from the list of options\n Array.from(this.itemListTarget.children).forEach(item => { item.classList.remove(this.hiddenClass) })\n element.classList.add(this.hiddenClass)\n\n let replaceWith = [element.innerHTML]\n if (this.hasArrowTarget) replaceWith.push(this.arrowTarget)\n\n this.selectedTarget.replaceChildren(...replaceWith)\n }\n\n toggle(event) {\n this.itemListTarget.classList.toggle(this.hiddenClass)\n this.selectedTarget.classList.toggle(this.activeClass)\n this.setArrow()\n }\n\n outsideClose(event) {\n if(!this.element.contains(event.target)) {\n this.itemListTarget.classList.add(this.hiddenClass)\n this.selectedTarget.classList.remove(this.activeClass)\n this.setArrow()\n }\n }\n\n select(event) {\n this.setSelected(event.currentTarget)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n interval: { type: Number, default: 60000 },\n morph: { type: Boolean, default: true },\n }\n\n connect() {\n this.refreshInterval = setInterval(() => {\n this.element.reload();\n }, this.intervalValue);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"modal\"\nexport default class extends Controller {\n static classes = [\"open\"]\n\n connect() {\n // When the modal is shown, we want a fixed body\n document.body.style.position = 'fixed'\n document.body.style.top = `-${window.scrollY}px`\n\n this.element.classList.add(this.openClass)\n }\n\n handleSubmit(event) {\n if (event.detail.success) { this.close() }\n }\n\n close() {\n const scrollY = document.body.style.top\n document.body.style.position = ''\n document.body.style.top = ''\n window.scrollTo(0, parseInt(scrollY || '0') * -1)\n\n this.element.remove()\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"aria\"]\n static classes = [\"open\"]\n\n toggleMenu() {\n if (this.element.classList.contains(this.openClass)) {\n this.element.classList.remove(this.openClass)\n this.ariaTargets.forEach(target => target.ariaExpanded = false)\n }\n else {\n this.element.classList.add(this.openClass)\n this.ariaTargets.forEach(target => target.ariaExpanded = true)\n }\n }\n\n toggleItem(event) {\n const parent = event.currentTarget.parentElement;\n\n if (parent.classList.contains(this.openClass)) {\n parent.classList.remove(this.openClass)\n }\n else {\n parent.classList.add(this.openClass)\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"slug\"]\n\n toggleSlugOverwrite() {\n this.slugTarget.disabled = !this.slugTarget.disabled\n }\n\n uploadAvatar(event) {\n const file = event.target.files[0];\n const reader = new FileReader();\n const wrapper = event.target.closest(\".avatarContainer\");\n reader.onloadend = () => {\n document.getElementById('avatar_profile').src = reader.result;\n };\n\n if (file) {\n reader.readAsDataURL(file);\n this.saveAvatar(file, wrapper);\n }\n }\n\n async saveAvatar(file, wrapper) {\n const formData = new FormData();\n formData.append('user_profile[avatar]', file);\n\n try {\n const response = await fetch('/my/profile/avatar', {\n method: 'PATCH',\n body: formData,\n headers: {\n 'X-CSRF-Token': document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n }\n });\n\n if (response.ok) {\n this.showSuccessMessage(wrapper);\n } else {\n this.showErrorMessage(wrapper);\n }\n } catch (error) {\n console.error('Error saving avatar:', error);\n this.showErrorMessage(wrapper);\n }\n }\n\n showSuccessMessage(wrapper) {\n const snackbar = document.createElement('div');\n snackbar.classList.add('snackbar', 'show');\n snackbar.innerHTML = ' Profile image updated successfully';\n wrapper.appendChild(snackbar);\n setTimeout(() => {\n snackbar.remove();\n }, 3000);\n }\n\n showErrorMessage(wrapper) {\n const snackbar = document.createElement('div');\n snackbar.classList.add('snackbar', 'show');\n snackbar.innerHTML = ' There is an error while uploading! Please try again later.';\n wrapper.appendChild(snackbar);\n setTimeout(() => {\n snackbar.remove();\n }, 3000);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"hidden\", \"textLabel\"]\n static classes = [\"hidden\"]\n static values = {\n open: { type: Boolean, default: false },\n moreText: { type: String, default: \"Show more\" },\n lessText: { type: String, default: \"Show less\" }\n }\n\n connect() {\n this.openValue === true ? this.show() : this.hide()\n }\n\n toggle() {\n this.openValue === false ? this.show() : this.hide()\n }\n\n show() {\n this.openValue = true\n this.hiddenTargets.forEach((target) => target.classList.remove(this.hiddenClass))\n this.textLabelTarget.textContent = this.lessTextValue\n }\n \n hide() {\n this.openValue = false\n this.hiddenTargets.forEach((target) => target.classList.add(this.hiddenClass))\n this.textLabelTarget.textContent = this.moreTextValue\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"tab\", \"pane\", \"currentTab\"]\n static classes = [\"active\"]\n static values = {\n preventDefault: { type: Boolean, default: false }\n }\n\n connect() {\n const tabAction = this.preventDefaultValue ? \"click->tabs#showTab:prevent\" : \"click->tabs#showTab\"\n\n this.tabTargets.forEach(tab => tab.dataset.action = tabAction)\n if (this.hasCurrentTabTarget) {\n this.showTab({ currentTarget: this.currentTabTarget })\n } else {\n this.showTab({ currentTarget: this.tabTargets[0] })\n }\n }\n\n showTab(event) {\n this.currentTab = event.currentTarget\n this.currentPane = this.paneTargets.find(pane => pane.dataset.id == this.currentTab.dataset.id)\n\n this.tabTargets.forEach(tab => tab.classList.remove(this.activeClass))\n this.paneTargets.forEach(pane => pane.classList.remove(this.activeClass))\n\n this.currentTab.classList.add(this.activeClass)\n\n if (!this.currentPane) return\n\n this.currentPane.classList.add(this.activeClass)\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"defaultItem\", \"itemList\"]\n static classes = [\"active\"]\n\n connect() {\n this.setActiveItem()\n }\n\n setActiveItem(element=null) {\n if(element == null) {\n element = this.defaultItemTarget\n }\n\n Array.from(this.itemListTarget.children).forEach((item) => {\n item.classList.remove(this.activeClass) }\n )\n\n element.classList.add(this.activeClass)\n }\n\n activate(event) {\n this.setActiveItem(event.currentTarget)\n }\n}\n","\nimport { Controller } from \"@hotwired/stimulus\"\nimport { Toast } from \"bootstrap\"\n\nexport default class extends Controller {\n static targets = [ \"toast\" ]\n\n toastTargetConnected(element) {\n new Toast(element, {delay: 5000}).show();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n srcs: Object\n }\n\n connect() {\n document.addEventListener(\"currency-change\", event => {\n const currencyName = event.detail.name.toLowerCase()\n\n if (this.srcsValue[currencyName] === undefined) {\n console.error(`currency ${currencyName} not found in srcsValue`)\n return\n }\n\n if (this.element.src === this.srcsValue[currencyName]) {\n console.info(\"frame already loaded with this currency\", event.detail)\n return\n }\n else {\n this.element.src = this.srcsValue[currencyName]\n console.info(\"reload frame with new currency in url \", event.detail)\n }\n })\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\nimport { Wallet } from '@cardano-foundation/cardano-connect-with-wallet-core'\n\nexport default class extends Controller {\n static targets = [\"button\"]\n static values = {\n network: { type: String, default: \"mainnet\" }\n }\n\n initialize() {\n this.installedWallets = Wallet.getInstalledWalletExtensions();\n }\n\n buttonTargetConnected(button) {\n if(!this.installedWallets.includes(button.value)) {\n button.disabled = true;\n button.classList.add(\"greyscale\", \"opacity-50\");\n button.querySelector(\".not-installed\").classList.remove(\"d-none\");\n }\n }\n\n async selectWallet(event) {\n this.messageSigned = false;\n this.authenticated = false;\n\n let button = event.currentTarget;\n let spinner = button.querySelector(\".spinner\");\n let statusIcon = button.querySelector(\".status-icon\");\n\n statusIcon.classList.add(\"d-none\");\n spinner.classList.remove(\"d-none\");\n await this.connectToWallet(button.value);\n spinner.classList.add(\"d-none\");\n\n if (this.authenticated) {\n statusIcon.classList.add(\"fa-regular\", \"fa-circle-check\", \"text-success\");\n } else {\n statusIcon.classList.add(\"fa-solid\", \"fa-circle-exclamation\", \"text-alert\");\n }\n\n statusIcon.classList.remove(\"d-none\");\n }\n\n async connectToWallet(wallet) {\n try {\n await Wallet.connectToWallet(wallet, this.networkValue, 2, 500);\n console.log('Connected to ', wallet);\n } catch (error) {\n console.error('Error connecting to wallet', error);\n return;\n }\n\n try {\n const stakeAddresses = await Wallet.getRewardAddresses();\n this.stakeAddress = stakeAddresses[0];\n } catch (error) {\n console.error('Error fetching stake address', error);\n return;\n }\n\n try {\n await this.signMessage();\n } catch (error) {\n console.error('Error signing message', error);\n return;\n }\n\n if (this.messageSigned) {\n await this.verifyAuth().then((response) => {\n this.authenticated = true;\n console.log(\"Authenticated!\", response);\n const redirect_url = response.url.toString()\n Turbo.visit(new URL(redirect_url, document.baseURI));\n }).catch((error) => {\n console.error(\"Auth verification failed\", error);\n });\n }\n }\n\n async signMessage() {\n try {\n this.nonce = await this.requestNonce();\n } catch (error) {\n console.error(\"Error fetching nonce\", error);\n return;\n }\n\n try {\n return Wallet.signMessage(\n this.nonce,\n (signature, key) => {\n this.dataSignature = { signature: signature, key: key };\n this.messageSigned = true;\n },\n (error) => {\n console.error(\"Signing Error:\", error);\n return;\n }\n )\n } catch (error) {\n console.error(\"Unexpected Error:\", error);\n }\n }\n\n async requestNonce() {\n return fetch(\"/wallet_auth/nonce\", { method: \"POST\" })\n .then(response => response.json())\n .then(data => {\n return data.nonce;\n });\n }\n\n async verifyAuth() {\n return fetch(\"/wallet_auth/verify\", {\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n body: JSON.stringify({ stakeAddress: this.stakeAddress, signature: this.dataSignature.signature, key: this.dataSignature.key, nonce: this.nonce }),\n }).then(response => {\n if (!response.ok) {\n throw new Error(`Request failed with status ${response.status}`);\n }\n return response.json();\n });\n }\n\n disconnectWallet() {\n Wallet.disconnect().then(() => {\n console.log('Disconnected wallet');\n this.removeLastConnectedWallet();\n }).catch((error) => {\n console.error('Error disconnecting wallet', error);\n });\n }\n}\n","// Action Cable provides the framework to deal with WebSockets in Rails.\n// You can generate new channels where WebSocket features live using the `bin/rails generate channel` command.\n\nimport { createConsumer } from '@rails/actioncable'\n\nexport default createConsumer()\n","import { Application } from \"@hotwired/stimulus\"\nimport consumer from \"../channels/consumer\"\n\nconst application = Application.start()\n\n// Configure Stimulus development experience\napplication.debug = false\napplication.consumer = consumer\nwindow.Stimulus = application\n\nexport { application }\n","import { application } from \"./application\"\nimport { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\"\nimport ScrollTo from '@stimulus-components/scroll-to'\nimport HwComboboxController from \"@josefarias/hotwire_combobox\"\nimport PasswordVisibility from \"@stimulus-components/password-visibility\"\n\nconst controllers = definitionsFromContext(require.context(\"controllers\", true, /_controller\\.js$/))\napplication.load(controllers)\n\napplication.register('scroll-to', ScrollTo)\napplication.register(\"hw-combobox\", HwComboboxController)\napplication.register('password-visibility', PasswordVisibility)\n\ndocument.addEventListener('turbo:before-frame-render', (event) => {\n const frameUsesViewTransitions = !!event.target.dataset.viewTransition\n\t\n if (document.startViewTransition && frameUsesViewTransitions) {\n const originalRender = event.detail.render\n\n event.detail.render = (currentElement, newElement) => {\n document.startViewTransition(() => originalRender(currentElement, newElement))\n }\n }\n})\n","import consumer from \"../channels/consumer\"\nimport CableReady from \"cable_ready\"\n\nCableReady.initialize({ consumer })\n","import { application } from \"../controllers/application\"\nimport controller from \"../controllers/application_controller\"\nimport StimulusReflex from \"stimulus_reflex\"\n\nStimulusReflex.initialize(application, { controller, isolate: true })\n\nif (process.env.RAILS_ENV === 'development') {\n StimulusReflex.debug = true\n}\n","/* eslint no-console:0 */\n// This file is automatically compiled by Webpack, along with any other files\n// present in this directory. You're encouraged to place your actual application logic in\n// a relevant structure within app/javascript and only use these pack files to reference\n// that code so it'll be compiled.\n//\n// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate\n// layout file, like app/views/layouts/application.html.erb\n\n// Uncomment to copy all static images under ./images to the output folder and reference\n// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)\n// or the `imagePath` JavaScript helper below.\n//\n// const images = require.context('./images', true)\n// const imagePath = (name) => images(name, true)\n\nimport { Turbo } from \"@hotwired/turbo-rails\"\n\nimport debounced from 'debounced'\n\nimport \"controllers\"\nimport \"config\"\nimport \"channels\"\n\ndebounced.initialize(['input'], { wait: 350, leading: false, trailing: true })\n\nTurbo.session.drive = true\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","map","webpackContext","webpackContextResolve","__webpack_require__","o","Object","channels","require","forEach","Controller","connect","StimulusReflex","this","beforeReflex","element","reflex","noop","reflexQueued","reflexDelivered","reflexSuccess","reflexError","error","reflexForbidden","reflexHalted","afterReflex","finalizeReflex","static","allowToc","Boolean","default","tocWrapperClasses","String","tocLinkClasses","hasTocWrapperTarget","hasBodyTarget","collectHeadlines","shouldHaveToc","buildToc","console","allowTocValue","headlines","length","Array","from","bodyTarget","children","child","tagName","match","push","tocLinksHTML","headline","level","parseInt","slice","anchor","slugify","textContent","text","tocLinkClassesValue","tocWrapperTarget","innerHTML","tocWrapperClassesValue","highlightTocItem","currentHeadline","i","nextHeadline","getBoundingClientRect","top","currentAnchor","currentTocItem","querySelector","removeAllHighlights","classList","add","tocLinkActiveClass","querySelectorAll","tocItem","remove","swiperOptions","swiper","Swiper","stageTarget","parentNode","hasCarouselOutlet","handleForeignSlides","on","assign","slidesPerView","spaceBetween","loop","pagination","el","clickable","swiperOptionsValue","window","innerWidth","hasForeignSlideTarget","carouselOutlets","outlet","slideTargets","foreignSlide","slide","cloneNode","setAttribute","prependSlide","foreignSlideTargets","slideIndex","slides","indexOf","removeSlide","childTargets","x","checked","parentTarget","toggleChildren","toggleParent","includes","replyFormTargetConnected","replyButtonTarget","hiddenClass","expand","event","textareaTarget","focus","hasFormHeaderTarget","formHeaderTarget","cancel","replyFormTarget","optionTargets","dataset","action","join","trim","target","hasDefaultTarget","defaultTarget","optionTarget","setCurrent","current","name","currencyName","symbol","currencySymbol","document","dispatchEvent","CustomEvent","detail","switch","currentTarget","flatpickr","dateFormat","enable","Date","fp_incr","to","setSelected","setArrow","hasArrowTarget","itemListTarget","contains","arrowTarget","replace","arrowUpClass","arrowDownClass","item","replaceWith","selectedTarget","replaceChildren","toggle","activeClass","outsideClose","select","interval","type","Number","morph","refreshInterval","setInterval","reload","intervalValue","body","style","position","scrollY","openClass","handleSubmit","success","close","scrollTo","toggleMenu","ariaTargets","ariaExpanded","toggleItem","parent","parentElement","toggleSlugOverwrite","slugTarget","disabled","uploadAvatar","file","files","reader","FileReader","wrapper","closest","onloadend","getElementById","src","result","readAsDataURL","saveAvatar","formData","FormData","append","fetch","method","headers","getAttribute","ok","showSuccessMessage","showErrorMessage","snackbar","createElement","appendChild","setTimeout","open","moreText","lessText","openValue","show","hide","hiddenTargets","textLabelTarget","lessTextValue","moreTextValue","preventDefault","tabAction","preventDefaultValue","tabTargets","tab","hasCurrentTabTarget","showTab","currentTabTarget","currentTab","currentPane","paneTargets","find","pane","setActiveItem","defaultItemTarget","activate","toastTargetConnected","Toast","delay","srcs","addEventListener","toLowerCase","undefined","srcsValue","info","network","initialize","installedWallets","Wallet","getInstalledWalletExtensions","buttonTargetConnected","button","value","selectWallet","messageSigned","authenticated","spinner","statusIcon","connectToWallet","wallet","networkValue","log","stakeAddresses","getRewardAddresses","stakeAddress","signMessage","verifyAuth","then","response","redirect_url","url","toString","Turbo","visit","URL","baseURI","catch","nonce","requestNonce","signature","key","dataSignature","json","data","JSON","stringify","status","disconnectWallet","disconnect","removeLastConnectedWallet","createConsumer","application","Application","start","debug","consumer","Stimulus","controllers","definitionsFromContext","load","register","ScrollTo","HwComboboxController","PasswordVisibility","frameUsesViewTransitions","viewTransition","startViewTransition","originalRender","render","currentElement","newElement","CableReady","controller","isolate","debounced","wait","leading","trailing","drive"],"sourceRoot":""}