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KAAKD,QAAQuF,UAAUG,IAAI,UAC3BpD,SAAS8F,KAAK7C,UAAUC,OAAO,mBAE/B,MAAM6C,EAAQ/F,SAASgG,eAAe,SACtCD,EAAME,gBAAgB,OACtBF,EAAMG,UAAY,EACtB,CAEAR,gBAAAA,GACI1F,SAAS8F,KAAK7C,UAAUC,OAAO,kBACnC,CAEAiD,YAAAA,CAAa1H,GACLA,EAAME,SAAWhB,KAAKD,SACtBC,KAAKkI,OAEb,E","sources":["webpack://app/./app/javascript/controllers/index.js","webpack://app/./app/javascript/lib/youtube.js","webpack://app/./app/javascript/packs/application.js","webpack://app/./app/javascript/controllers/ sync ^\\.\\/.*$","webpack://app/./app/javascript/controllers/pricing_controller.js","webpack://app/./app/javascript/controllers/hello_controller.js","webpack://app/./app/javascript/controllers/application.js","webpack://app/./app/javascript/controllers/countdown_controller.js","webpack://app/./node_modules/@hotwired/turbo/ sync ^\\.\\/.*$","webpack://app/./app/javascript/controllers/dialog_controller.js"],"sourcesContent":["// Import and register all your controllers from the importmap via controllers/**/*_controller\nimport { application } from \"./application\"\n\nimport HelloController from \"./hello_controller\"\nimport DialogController from \"./dialog_controller\"\nimport PricingController from \"./pricing_controller\"\nimport Clipboard from '@stimulus-components/clipboard'\nimport CountDownController from './countdown_controller'\n\napplication.register(\"hello\", HelloController)\napplication.register(\"dialog\", DialogController)\napplication.register(\"pricing\", PricingController)\napplication.register('clipboard', Clipboard)\napplication.register('countdown', CountDownController)\n","import Trix from \"trix\"\nimport Rails from \"@rails/ujs\"\n\nlet lang = Trix.config.lang;\nTrix.config.toolbar.getDefaultHTML = function() {\n return `\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n \n
\n \n
\n
\n
\n `\n}\n\nclass EmbedController {\n constructor(element) {\n this.pattern = /^https:\\/\\/([^\\.]+\\.)?youtube\\.com\\/watch\\?v=(.*)/\n\n this.element = element\n this.editor = element.editor\n this.toolbar = element.toolbarElement\n this.hrefElement = this.toolbar.querySelector(\"[data-trix-input][name='href']\")\n this.embedContainerElement = this.toolbar.querySelector(\"[data-behavior='embed_container']\")\n this.embedElement = this.toolbar.querySelector(\"[data-behavior='embed_url']\")\n\n this.reset()\n this.installEventHandlers()\n }\n\n installEventHandlers() {\n this.hrefElement.addEventListener(\"input\", this.didInput.bind(this))\n this.hrefElement.addEventListener(\"focusin\", this.didInput.bind(this))\n this.embedElement.addEventListener(\"click\", this.embed.bind(this))\n }\n\n didInput(event) {\n let value = event.target.value.trim()\n let matches = value.match(this.pattern)\n console.log(value,matches)\n\n // When patterns are loaded, we can just fetch the embed code\n if (matches != null) {\n this.fetch(matches[2])\n\n // No embed code, just reset the form\n } else {\n this.reset()\n }\n }\n\n fetch(value) {\n Rails.ajax({\n url: `/youtube/${encodeURIComponent(value)}`,\n type: 'get',\n error: this.reset.bind(this),\n success: this.showEmbed.bind(this)\n })\n }\n\n embed(event) {\n if (this.currentEmbed == null) { return }\n\n let attachment = new Trix.Attachment(this.currentEmbed)\n this.editor.insertAttachment(attachment)\n this.element.focus()\n }\n\n showEmbed(embed) {\n this.currentEmbed = embed\n this.embedContainerElement.style.display = \"block\"\n }\n\n reset() {\n this.embedContainerElement.style.display = \"none\"\n this.currentEmbed = null\n }\n}\n\ndocument.addEventListener(\"trix-initialize\", function(event) {\n new EmbedController(event.target)\n})","\n// Import Rails UJS and ActiveStorage\nvar componentRequireContext = require.context(\"components\", true);\nvar ReactRailsUJS = require(\"react_ujs\");\nReactRailsUJS.useContext(componentRequireContext);\n\nvar turboRailsContext = require.context(\"@hotwired/turbo\", true);\nturboRailsContext.keys().forEach(turboRailsContext);\n\nimport \"flowbite/dist/flowbite.turbo.js\";\nimport \"trix\";\nimport \"@rails/actiontext\"\nimport \"../lib/youtube.js\";\nimport { initFlowbite } from 'flowbite'\nimport { Turbo } from \"@hotwired/turbo-rails\";\n\n// Import contents of the controller folder\nvar controllerContext = require.context(\"../controllers\", true);\ncontrollerContext.keys().forEach(controllerContext);\n\nimport * as ActionCable from '@rails/actioncable'\n\nActionCable.logger.enabled = false;\n\n\n// on turbo load\ndocument.addEventListener(\"turbo:load\", function () {\n initFlowbite();\n});\n\nimport LocalTime from \"local-time\"\nLocalTime.start()\n\nTrix.config.blockAttributes.heading1.tagName = \"h2\"\n\nReactRailsUJS.handleEvent('turbo:load', ReactRailsUJS.handleMount);\nReactRailsUJS.handleEvent('turbo:frame-load', ReactRailsUJS.handleMount, false);\nReactRailsUJS.handleEvent('turbo:before-render', ReactRailsUJS.handleUnmount);\n\nTurbo.StreamActions.redirect = function () {\n Turbo.visit(this.target);\n};\n\ndocument.addEventListener(\"turbo:before-stream-render\", (event) => {\n const fallbackToDefaultActions = event.detail.render;\n event.detail.render = function (streamElement) {\n if (streamElement.action == \"redirect\") {\n Turbo.visit(streamElement.target);\n } else {\n fallbackToDefaultActions(streamElement);\n }\n };\n});\n\n\n\n\n","var map = {\n\t\"./\": 424,\n\t\"./application\": 7046,\n\t\"./application.js\": 7046,\n\t\"./countdown_controller\": 7130,\n\t\"./countdown_controller.js\": 7130,\n\t\"./dialog_controller\": 9245,\n\t\"./dialog_controller.js\": 9245,\n\t\"./hello_controller\": 6123,\n\t\"./hello_controller.js\": 6123,\n\t\"./index\": 424,\n\t\"./index.js\": 424,\n\t\"./pricing_controller\": 5497,\n\t\"./pricing_controller.js\": 5497\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 = 3187;","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static targets = [\"monthlyPlan\", \"yearlyPlan\", \"toggle\"]\n\n connect() {\n this.togglePlan();\n }\n\n togglePlan() {\n const planToggle = this.toggleTarget.checked\n\n if (planToggle) {\n this.showYearlyPlans();\n } else {\n this.showMonthlyPlans();\n }\n }\n\n showMonthlyPlans() {\n this.monthlyPlanTargets.forEach(plan => plan.classList.remove(\"hidden\"))\n this.yearlyPlanTargets.forEach(plan => plan.classList.add(\"hidden\"))\n }\n\n showYearlyPlans() {\n this.monthlyPlanTargets.forEach(plan => plan.classList.add(\"hidden\"))\n this.yearlyPlanTargets.forEach(plan => plan.classList.remove(\"hidden\"))\n }\n}\n","import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n connect() {\n this.element.textContent = \"Hello World!\"\n }\n}\n","import { Application } from \"@hotwired/stimulus\"\n\nconst application = Application.start()\n\n// Configure Stimulus development experience\napplication.debug = false\nwindow.Stimulus = application\n\nexport { application }\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"time\"];\n\n connect() {\n this.updateCountdown();\n this.timer = setInterval(() => this.updateCountdown(), 1000);\n }\n\n disconnect() {\n clearInterval(this.timer);\n }\n\n updateCountdown() {\n const now = new Date();\n const dropDate = this.getNextDropDate();\n const diff = dropDate - now;\n\n if (diff <= 0) {\n this.timeTarget.textContent = \"Drop is live!\";\n return;\n }\n\n const totalSeconds = Math.floor(diff / 1000);\n const days = Math.floor(totalSeconds / (3600 * 24));\n const hours = Math.floor((totalSeconds % (3600 * 24)) / 3600);\n const minutes = Math.floor((totalSeconds % 3600) / 60);\n const seconds = totalSeconds % 60;\n\n // Format hours, minutes, and seconds with leading zeros\n const hoursFormatted = String(hours).padStart(2, \"0\");\n const minutesFormatted = String(minutes).padStart(2, \"0\");\n const secondsFormatted = String(seconds).padStart(2, \"0\");\n\n this.timeTarget.textContent = `${days} day${days !== 1 ? \"s\" : \"\"} ${hoursFormatted}:${minutesFormatted}:${secondsFormatted}`;\n }\n\n // Calculates the next drop date (Saturday at 8 PM IST)\n getNextDropDate() {\n // 8 PM IST equals 14:30 UTC (IST = UTC+5:30)\n const dropDay = 6; // Saturday (0=Sunday, 6=Saturday)\n const dropHourUTC = 14;\n const dropMinuteUTC = 30;\n\n const now = new Date();\n const nowUTC = new Date(now.getTime() + now.getTimezoneOffset() * 60000);\n\n let dropDateUTC = new Date(nowUTC);\n dropDateUTC.setUTCHours(dropHourUTC, dropMinuteUTC, 0, 0);\n\n const currentUTCDay = nowUTC.getUTCDay();\n let daysUntilDrop = (dropDay - currentUTCDay + 7) % 7;\n // If today is Saturday and drop time has passed, set for next week\n if (daysUntilDrop === 0 && nowUTC >= dropDateUTC) {\n daysUntilDrop = 7;\n }\n\n dropDateUTC.setUTCDate(dropDateUTC.getUTCDate() + daysUntilDrop);\n return dropDateUTC;\n }\n}\n","var map = {\n\t\"./README.md\": 8417,\n\t\"./dist/turbo.es2017-esm\": 89,\n\t\"./dist/turbo.es2017-esm.js\": 89,\n\t\"./dist/turbo.es2017-umd\": 4140,\n\t\"./dist/turbo.es2017-umd.js\": 4140,\n\t\"./package.json\": 65\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 = 7636;","import { Controller } from \"@hotwired/stimulus\"\n\n// Connects to data-controller=\"dialog\"\nexport default class extends Controller {\n connect() {\n this.open()\n // needed because ESC key does not trigger close event\n this.element.addEventListener(\"close\", this.enableBodyScroll.bind(this))\n }\n\n disconnect() {\n this.element.removeEventListener(\"close\", this.enableBodyScroll.bind(this))\n }\n\n // hide modal on successful form submission\n // data-action=\"turbo:submit-end->turbo-modal#submitEnd\"\n submitEnd(e) {\n if (e.detail.success) {\n this.close()\n }\n }\n\n open() {\n this.element.classList.remove('hidden')\n document.body.classList.add('overflow-hidden')\n }\n\n close() {\n this.element.classList.add('hidden')\n document.body.classList.remove('overflow-hidden')\n // clean up modal content\n const frame = document.getElementById('modal')\n frame.removeAttribute(\"src\")\n frame.innerHTML = \"\"\n }\n\n enableBodyScroll() {\n document.body.classList.remove('overflow-hidden')\n }\n\n clickOutside(event) {\n if (event.target === this.element) {\n this.close()\n }\n }\n}"],"names":["application","register","HelloController","DialogController","PricingController","Clipboard","CountDownController","lang","Trix","config","toolbar","getDefaultHTML","bold","italic","strike","link","heading1","quote","code","bullets","numbers","outdent","indent","attachFiles","undo","redo","urlPlaceholder","url","unlink","EmbedController","constructor","element","this","pattern","editor","toolbarElement","hrefElement","querySelector","embedContainerElement","embedElement","reset","installEventHandlers","addEventListener","didInput","bind","embed","event","value","target","trim","matches","match","console","log","fetch","Rails","ajax","encodeURIComponent","type","error","success","showEmbed","currentEmbed","attachment","Attachment","insertAttachment","focus","style","display","document","componentRequireContext","require","ReactRailsUJS","useContext","turboRailsContext","keys","forEach","controllerContext","ActionCable","enabled","initFlowbite","LocalTime","start","blockAttributes","tagName","handleEvent","handleMount","handleUnmount","Turbo","redirect","fallbackToDefaultActions","detail","render","streamElement","action","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","Object","resolve","module","exports","Controller","static","connect","togglePlan","toggleTarget","checked","showYearlyPlans","showMonthlyPlans","monthlyPlanTargets","plan","classList","remove","yearlyPlanTargets","add","textContent","Application","debug","window","Stimulus","updateCountdown","timer","setInterval","disconnect","clearInterval","now","Date","diff","getNextDropDate","timeTarget","totalSeconds","Math","floor","days","hours","minutes","seconds","hoursFormatted","String","padStart","minutesFormatted","secondsFormatted","nowUTC","getTime","getTimezoneOffset","dropDateUTC","setUTCHours","daysUntilDrop","getUTCDay","setUTCDate","getUTCDate","open","enableBodyScroll","removeEventListener","submitEnd","close","body","frame","getElementById","removeAttribute","innerHTML","clickOutside"],"sourceRoot":""}