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AMrN,SAER,IHoDFP,EAAYkN,SAAS,kBAAmBmB,GAGxCrO,EAAYkN,SAAS,gBAAiBoB,GAGtCtO,EAAYkN,SAAS,YAAaqB,GAGlCvO,EAAYkN,SAAS,wBAAyBsB,G,sBIhE9C5O,GAAWG,WAAW,CAAET,SAAS,MCCjCkB,EAAAA,GAAAA,WAA0BR,EAAa,CAAEyO,WAAU,EAAEC,SAAS,IAC9DlO,EAAAA,GAAeL,OAAQwO,E,gBCUQ,qBAApBC,iBAEP,uCAQJC,EAAAA,QAAcC,OAAQ,EACtBC,EAAAA,GAAAA,WAAsBF,EAAAA,eACtBzO,OAAOiG,aAAeA,EAAAA,EAEtB2I,EAAQ,MACRA,EAAQ,MAERC,EAAAA,I,4CC7BA,MAAMC,EAA4BA,KAChC,MAAMC,EAAkB,IAAIvK,MAAM,sBAE5BwK,EAAW,IAAIC,kBAAiB,KACpC5M,SAASqC,cAAcqK,EAAgB,IAGnCG,EAAc7M,SAASmK,iBAAiB,eACxC2C,EAAkB,CACtBC,WAAW,EACXC,YAAY,EACZC,SAAS,GAEXJ,EAAYhN,SAASqN,GAAeP,EAASQ,QAAQD,EAAYJ,IAAiB,EAGpFnP,OAAOkK,iBAAiB,QAAQ,KAC9B4E,GAA2B,IAG7BzM,SAAS6H,iBAAiB,cAAc,KACtC4E,GAA2B,IAG7BW,EAAAA,cAAcC,eAAiB,WAC7B,MAAMC,EAAetN,SAAS+C,eAAe/E,KAAKuP,aAAa,OAE3DD,GAAsD,oBAA/BA,EAAaE,eACtCF,EAAaE,eAEjB,EAEAJ,EAAAA,cAAcK,eAAiB,WAC7B,IAAI7J,EAAAA,EAAa,MAAO5F,KAAKuP,aAAa,MAAO,CAC/CzJ,aAAc,iBACb1G,SACL,C","sources":["webpack://svitlaid/./app/javascript/channels/consumer.js","webpack://svitlaid/./app/javascript/channels/user_channel.js","webpack://svitlaid/./app/javascript/channels/index.js","webpack://svitlaid/./app/javascript/controllers/application.js","webpack://svitlaid/./app/javascript/controllers/application_controller.js","webpack://svitlaid/./app/javascript/controllers/dependent_select_controller.js","webpack://svitlaid/./app/javascript/controllers/disable_buttons_controller.js","webpack://svitlaid/./app/javascript/controllers/filterable_controller.js","webpack://svitlaid/./app/javascript/controllers/new_employee_notifications/countries_controller.js","webpack://svitlaid/./app/javascript/controllers/new_employee_notifications/form_controller.js","webpack://svitlaid/./app/javascript/controllers/notification_controller.js","webpack://svitlaid/./app/javascript/controllers/onboardings/cs_select_controller.js","webpack://svitlaid/./app/javascript/controllers/onboardings/emergency_contact_controller.js","webpack://svitlaid/./app/javascript/controllers/performance_appraisal/group_creation_controller.js","webpack://svitlaid/./app/javascript/controllers/performance_appraisal/question_form_controller.js","webpack://svitlaid/./app/javascript/controllers/radio_toggle_controller.js","webpack://svitlaid/./app/javascript/controllers/signature_controller.js","webpack://svitlaid/./app/javascript/controllers/steps_controller.js","webpack://svitlaid/./app/javascript/controllers/user/documents_controller.js","webpack://svitlaid/./app/javascript/controllers/user/restore_controller.js","webpack://svitlaid/./app/javascript/controllers/vacations_controller.js","webpack://svitlaid/./app/javascript/controllers/workflow/assignments_controller.js","webpack://svitlaid/./app/javascript/controllers/index.js","webpack://svitlaid/./app/javascript/controllers/onboardings_controller.js","webpack://svitlaid/./app/javascript/controllers/questions_controller.js","webpack://svitlaid/./app/javascript/controllers/training_controller.js","webpack://svitlaid/./app/javascript/config/cable_ready.js","webpack://svitlaid/./app/javascript/config/stimulus_reflex.js","webpack://svitlaid/./app/javascript/packs/application.js","webpack://svitlaid/./app/javascript/packs/turbo_load.js"],"sourcesContent":["// Action Cable provides the framework to deal with WebSockets in Rails.\n// You can generate new channels where WebSocket features live using the `rails generate channel` command.\n\nimport { createConsumer } from \"@rails/actioncable\"\n\nexport default createConsumer()\n","import CableReady from \"cable_ready\";\nimport consumer from \"./consumer\";\n\nconsumer.subscriptions.create(\"UserChannel\", {\n received: (data) => {\n if (data.cableReady) {\n CableReady.perform(data.operations);\n }\n },\n});\n","import CableReady from \"cable_ready\";\nimport consumer from \"./consumer\";\n\nimport \"./user_channel\";\n\nCableReady.initialize({ consumer });\n","import { Application } from \"@hotwired/stimulus\";\n\nconst application = Application.start();\n\napplication.debug = false;\nwindow.Stimulus = application;\n\nexport { application };\n","import { Controller } from '@hotwired/stimulus'\nimport StimulusReflex from 'stimulus_reflex'\n\n/* This is your 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 */\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 concerns for the entire application.\n * Using the lifecycle is optional, so feel free to delete these stubs 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 * reflexId - a UUID4 or developer-provided unique identifier for each Reflex\n */\n\n beforeReflex (element, reflex, noop, reflexId) {\n // document.body.classList.add('wait')\n }\n\n reflexSuccess (element, reflex, noop, reflexId) {\n // show success message etc...\n }\n\n reflexError (element, reflex, error, reflexId) {\n // show error message etc...\n }\n\n afterReflex (element, reflex, noop, reflexId) {\n // document.body.classList.remove('wait')\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [ \"source\", \"target\" ];\n\n initialize() {\n let fieldValue = this.targetTarget.dataset.field\n this.populateSelect(this.sourceTarget.value, fieldValue ? fieldValue : null)\n }\n\n handleSelectChange() {\n this.populateSelect(this.sourceTarget.value);\n }\n\n populateSelect(sourceId, targetId = null) {\n if (!sourceId) { return }\n\n fetch(`/${this.data.get(\"sourceRoutePart\")}/${this.data.get(\"targetRoutePart\")}/${sourceId}`, {\n credentials: \"same-origin\"\n })\n .then(response => response.json())\n .then(data => {\n const selectBox = this.targetTarget\n selectBox.innerHTML = \"\"\n data.forEach(item => {\n const opt = document.createElement(\"option\")\n opt.value = item\n opt.innerHTML = item\n opt.selected = targetId == item\n selectBox.appendChild(opt)\n })\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n disableGroup() {\n let btnGroup = this.element\n let buttons = btnGroup.getElementsByTagName('a')\n\n buttons.forEach(button => {\n button.classList.add(\"disabled\")\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n setFilter(event) {\n event.preventDefault();\n let value = event.target.value;\n let params = (new URL(window.location)).searchParams;\n let search = event.target.name;\n (value === undefined || value === '') ? params.delete(search) : params.set(search, value);\n window.location.search = params.toString();\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [ \"currentCountry\" ]\n static values = {\n country: String\n }\n\n connect() {\n import(\"country-state-city/lib/country\").then(country => {\n this.countryLib = country.default;\n this.start()\n });\n }\n\n start() {\n for (const element of this.countryLib.getAllCountries()) {\n const option = document.createElement(\"option\")\n option.value = element.name\n option.text = `${element.name} ${element.flag}`\n this.currentCountryTarget.add(option)\n }\n\n if (this.countryValue) {\n this.currentCountryTarget.value = this.countryValue\n } else {\n this.currentCountryTarget.value = \"Ukraine\" // default value for new records\n }\n\n $(\"#new_employee_notification_current_country\").on(\"select2:select\", function () {\n let event = new Event('change', { bubbles: true })\n this.dispatchEvent(event)\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"comment\", \"project\"]\n static values = {\n projects: Array,\n country: String\n }\n\n connect() {\n const country = this.countryValue\n $(\"#new_employee_notification_project_id\").on(\"select2:select\", function () {\n let event = new Event('change', { bubbles: true })\n this.dispatchEvent(event)\n })\n if (country === \"UA\") {\n this.handleHardware()\n }\n }\n\n handleHardware() {\n const project = this.projectTarget\n const projects = this.projectsValue\n const comment = this.commentTarget\n const yesButton = document.getElementById(\"new_employee_notification_hardware_true\")\n const noButton = document.getElementById(\"new_employee_notification_hardware_false\")\n\n for (let index = 0; index < projects.length; index++) {\n if (Object.keys(projects[index])[0] == project.value) {\n yesButton.checked = true\n noButton.disabled = true\n comment.disabled = false\n comment.readOnly = true\n comment.value = Object.values(projects[index])[0]\n return\n }\n }\n comment.readOnly = false\n noButton.disabled = false\n comment.value = \"\"\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { FetchRequest } from \"@rails/request.js\";\n\nexport default class extends Controller {\n static values = {\n url: String,\n };\n\n connect() {}\n\n read() {\n const target = this.element;\n if (target.classList.contains(\"read\")) {\n return;\n }\n\n const request = new FetchRequest(\"get\", this.urlValue, {\n responseKind: \"turbo-stream\",\n });\n\n request.perform().then(() => {\n target.classList.add(\"read\");\n if (target.querySelector(\".font-weight-bolder\")) {\n target.querySelector(\".font-weight-bolder\").classList.remove(\"font-weight-bolder\");\n }\n });\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nimport Select2 from \"select2\"\n\nexport default class extends Controller {\n static targets = [ \"source\", \"target\", \"city\", \"street\"]\n\n initialize() {\n let regionValue = this.targetTarget.dataset.region\n $(`#${this.sourceTarget.id}`).select2({\n theme: \"bootstrap\"\n })\n $(`#${this.sourceTarget.id}`).on(\"select2:select\", function () {\n let event = new Event(\"change\", { bubbles: true })\n this.dispatchEvent(event);\n })\n this.populateSelect(this.sourceTarget.value, regionValue ? regionValue : null)\n }\n\n handleSelectChange() {\n this.populateSelect(this.sourceTarget.value)\n }\n\n populateSelect(sourceId, targetId = null) {\n if (!sourceId) { return }\n fetch(`/regions/${sourceId}`, {\n credentials: \"same-origin\"\n })\n .then(response => response.json())\n .then(data => {\n if (!Object.keys(data).length) {\n data[sourceId] = this.sourceTarget.options[this.sourceTarget.selectedIndex].text\n }\n const selectBox = this.targetTarget\n selectBox.innerHTML = \"\"\n\n for(let key in data) {\n const opt = document.createElement(\"option\")\n opt.value = data[key]\n opt.innerHTML = data[key]\n opt.selected = targetId == data[key]\n\n selectBox.appendChild(opt)\n }\n })\n if (sourceId == \"UA\") {\n this.cityTarget.placeholder = \"Назва населеного пункту українською\"\n this.streetTarget.placeholder = \"Назва вулиці українською\"\n } else {\n this.cityTarget.placeholder = \"\"\n this.streetTarget.placeholder = \"\"\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"relationship\", \"other_relationship\"]\n\n handleSelectChange() {\n let relationship = this.relationshipTarget\n let otherRelationship = this.other_relationshipTarget\n\n if (!relationship.value) {\n return\n } else if (relationship.value == \"Other...\") {\n otherRelationship.disabled = false\n } else {\n otherRelationship.disabled = true\n otherRelationship.value = \"\"\n }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"list\", \"project\", \"reviewer\", \"modal\"]\n\n connect() {\n $(\"[data-toggle='tooltip']\").tooltip()\n }\n\n saveChanges() {\n const modal = this.modalTarget\n const user = this.element.dataset[\"user\"]\n const project = this.projectTarget\n const reviewer = this.reviewerTarget\n let object = JSON.parse(this.listTarget.value)\n\n $.ajax({\n url: \"/reviews/update_reviewer\",\n type: \"PATCH\",\n data: {\n user_id: user,\n manager_id: object.manager_id,\n manager: object.manager,\n project: object.project\n },\n success: () => {\n console.log(\"Success\")\n reviewer.innerHTML = object.manager\n project.innerHTML = object.project\n },\n error: () => { console.log(\"Error\") }\n })\n $(`#${modal.id}`).modal(\"hide\")\n $('body').on('hidden.bs.modal', '.modal', function() {\n $('.btn').blur()\n });\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"inputType\", \"range\"]\n\n connect() {\n this.showRange();\n }\n\n showRange() {\n const type = this.inputTypeTarget;\n const range = this.rangeTarget;\n if (type.value === \"range\") {\n range.classList.remove(\"hidden\");\n } else { range.classList.add(\"hidden\"); }\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"button\"]\n\n toggleButton() {\n const button = this.buttonTarget\n\n button.checked = true\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"sample\", \"source\"]\n\n connect() {\n const sample = this.sampleTarget\n const source = this.sourceTarget\n\n source.value = sample.innerHTML\n }\n\n copyToClipboard() {\n const source = this.sourceTarget\n\n source.select()\n source.setSelectionRange(0, 99999)\n document.execCommand(\"copy\")\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport Sortable from 'sortablejs'\n\nexport default class extends Controller {\n connect() {\n this.sortable = Sortable.create(this.element, {\n onEnd: this.end.bind(this)\n })\n }\n\n end(event) {\n let id = event.item.dataset.id\n let data = new FormData()\n\n data.append(\"position\", event.newIndex + 1)\n $.ajax({\n url: this.data.get(\"url\").replace(\":id\", id),\n type: \"PATCH\",\n data: {\n position: event.newIndex + 1\n }\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\nimport StimulusReflex from 'stimulus_reflex'\n\nimport { DirectUpload } from \"@rails/activestorage\"\n\nexport default class extends Controller {\n static targets = ['overlay', 'uploads', '']\n\n connect () {\n StimulusReflex.register(this)\n\n // console.log('documents connect', this.element, this.overlayTarget)\n\n this.input = document.createElement('input');\n this.input.setAttribute('type', 'file');\n\n window.addEventListener('drop', (event) => { event.preventDefault() })\n\n this.element.addEventListener('dragover', this.onDragover)\n this.element.addEventListener('dragleave', this.onDragleave)\n this.element.addEventListener('drop', this.onDrop)\n }\n\n onDragover = (event) => {\n event.preventDefault()\n this.element.classList.add('dragover')\n }\n\n onDragleave = (event) => {\n event.preventDefault()\n this.element.classList.remove('dragover')\n }\n\n onDrop = (event) => {\n event.preventDefault()\n this.element.classList.remove('dragover')\n\n const files = event.dataTransfer.files;\n // console.log(files)\n Array.from(files).forEach(file => this.uploadFile(file))\n }\n\n uploadFile = (file) => {\n console.log(file)\n this.stimulate('Document#before_upload',\n this.element, { attrs: {}},\n { filename: file.name, content_type: file.type, byte_size: file.size })\n // your form needs the file_field direct_upload: true, which\n // provides data-direct-upload-url\n const url = this.element.dataset.directUploadUrl\n const upload = new DirectUpload(file, url)\n\n upload.create((error, blob) => {\n if (error) {\n // Handle the error\n console.error(error)\n } else {\n this.stimulate('Document#after_upload', this.element, { attrs: {}}, {id: blob.id })\n }\n })\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"date\", \"notification\"]\n\n changeStartDate() {\n const dateField = this.dateTarget\n const notification = this.notificationTarget\n const selected = notification.options[notification.options.selectedIndex]\n\n if (notification.options.selectedIndex == 0) { return }\n\n let words = selected.innerHTML.split(\" \")\n let date = words[words.length - 1]\n\n dateField.value = date\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n connect() {\n console.log('stimulus')\n $('[data-toggle=\"tooltip\"]').tooltip();\n }\n}\n","import { Controller } from '@hotwired/stimulus'\n\nexport default class extends Controller {\n static targets = [\"tbody\", \"loadbox\"]\n static values = {\n year: String,\n month: String,\n count: Number\n }\n\n fetchData() {\n const count = this.countValue\n\n if (count === 0) { return }\n\n const year = this.yearValue\n const month = this.monthValue\n const tbody = this.tbodyTarget\n const loader = this.loadboxTarget\n\n if (document.querySelectorAll(`.assignment-item-${month}`).length == 0) {\n loader.classList.remove(\"hidden\")\n fetch(`/workflow/assignments/assignments_by_month.json?month=${month}&year=${year}`, {\n credentials: \"same-origin\"\n }).then(response => response.json())\n .then(assignments => {\n assignments.forEach(assignment => {\n let elem = document.createElement(\"tr\")\n elem.className = `assignment-item-${month}`\n elem.innerHTML = assignment.template\n tbody.appendChild(elem)\n })\n loader.classList.add(\"hidden\")\n })\n }\n }\n}\n","// This file is auto-generated by ./bin/rails stimulus:manifest:update\n// Run that command whenever you add a new controller or create them with\n// ./bin/rails generate stimulus controllerName\n\nimport { application } from \"./application\"\n\nimport ApplicationController from \"./application_controller\"\napplication.register(\"application\", ApplicationController)\n\nimport DependentSelectController from \"./dependent_select_controller\"\napplication.register(\"dependent-select\", DependentSelectController)\n\nimport DisableButtonsController from \"./disable_buttons_controller\"\napplication.register(\"disable-buttons\", DisableButtonsController)\n\nimport FilterableController from \"./filterable_controller\"\napplication.register(\"filterable\", FilterableController)\n\nimport NewEmployeeNotifications__CountriesController from \"./new_employee_notifications/countries_controller\"\napplication.register(\"new-employee-notifications--countries\", NewEmployeeNotifications__CountriesController)\n\nimport NewEmployeeNotifications__FormController from \"./new_employee_notifications/form_controller\"\napplication.register(\"new-employee-notifications--form\", NewEmployeeNotifications__FormController)\n\nimport NotificationController from \"./notification_controller\"\napplication.register(\"notification\", NotificationController)\n\nimport Onboardings__CsSelectController from \"./onboardings/cs_select_controller\"\napplication.register(\"onboardings--cs-select\", Onboardings__CsSelectController)\n\nimport Onboardings__EmergencyContactController from \"./onboardings/emergency_contact_controller\"\napplication.register(\"onboardings--emergency-contact\", Onboardings__EmergencyContactController)\n\nimport OnboardingsController from \"./onboardings_controller\"\napplication.register(\"onboardings\", OnboardingsController)\n\nimport PerformanceAppraisal__GroupCreationController from \"./performance_appraisal/group_creation_controller\"\napplication.register(\"performance-appraisal--group-creation\", PerformanceAppraisal__GroupCreationController)\n\nimport PerformanceAppraisal__QuestionFormController from \"./performance_appraisal/question_form_controller\"\napplication.register(\"performance-appraisal--question-form\", PerformanceAppraisal__QuestionFormController)\n\nimport QuestionsController from \"./questions_controller\"\napplication.register(\"questions\", QuestionsController)\n\nimport RadioToggleController from \"./radio_toggle_controller\"\napplication.register(\"radio-toggle\", RadioToggleController)\n\nimport SignatureController from \"./signature_controller\"\napplication.register(\"signature\", SignatureController)\n\nimport StepsController from \"./steps_controller\"\napplication.register(\"steps\", StepsController)\n\nimport TrainingController from \"./training_controller\"\napplication.register(\"training\", TrainingController)\n\nimport User__DocumentsController from \"./user/documents_controller\"\napplication.register(\"user--documents\", User__DocumentsController)\n\nimport User__RestoreController from \"./user/restore_controller\"\napplication.register(\"user--restore\", User__RestoreController)\n\nimport VacationsController from \"./vacations_controller\"\napplication.register(\"vacations\", VacationsController)\n\nimport Workflow__AssignmentsController from \"./workflow/assignments_controller\"\napplication.register(\"workflow--assignments\", Workflow__AssignmentsController)\n","import ApplicationController from './application_controller'\n\nexport default class extends ApplicationController {\n connect () {\n super.connect()\n // add your code here, if applicable\n }\n}\n","import ApplicationController from './application_controller'\nimport Sortable from 'sortablejs'\n\nexport default class extends ApplicationController {\n connect() {\n this.sortable = Sortable.create(this.element, {\n handle: \".fa-arrows\",\n animation: 150,\n onEnd: this.end.bind(this)\n })\n }\n\n end(event) {\n let id = event.item.dataset.id\n let data = new FormData()\n\n data.append(\"ordinal\", event.newIndex + 1)\n $.ajax({\n url: this.data.get(\"url\").replace(\":id\", id),\n type: \"PATCH\",\n data: {\n ordinal: event.newIndex + 1\n }\n })\n }\n}\n","import ApplicationController from './application_controller'\n\nexport default class extends ApplicationController {\n connect () {\n super.connect()\n // add your code here, if applicable\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 });\nStimulusReflex.debug = process.env.RAILS_ENV === 'development'\n","import \"core-js/stable\"\nimport \"regenerator-runtime/runtime\"\nimport \"@hotwired/turbo-rails\";\nimport * as Turbo from \"@hotwired/turbo\";\nimport TurboPower from \"turbo_power\";\nimport * as ActiveStorage from \"@rails/activestorage\"\nimport \"tempusdominus-bootstrap-4\"\n\nimport \"../controllers\"\nimport \"../config\"\nimport \"../channels\"\n\n// import consumer from '../channels/consumer'\n// import controller from './application_controller'\n\nif (typeof CURRENT_USER_ID !== \"undefined\") {\n // eslint-disable-next-line global-require\n import('../channels');\n}\n\n// const application = Application.start()\n\nimport { FetchRequest } from \"@rails/request.js\";\nimport \"./turbo_load\";\n\nTurbo.session.drive = false\nTurboPower.initialize(Turbo.StreamActions);\nwindow.FetchRequest = FetchRequest;\n\nrequire(\"trix\")\nrequire(\"@rails/actiontext\")\n\nActiveStorage.start()\n","import { StreamActions } from \"@hotwired/turbo\";\nimport { FetchRequest } from \"@rails/request.js\";\n\nconst initializeTurboFrameEvent = () => {\n const turboFrameEvent = new Event(\"turbo:frame-loaded\");\n\n const observer = new MutationObserver(() => {\n document.dispatchEvent(turboFrameEvent);\n });\n\n const targetNodes = document.querySelectorAll(\"turbo-frame\");\n const observerOptions = {\n childList: true,\n attributes: false,\n subtree: true,\n };\n targetNodes.forEach((targetNode) => observer.observe(targetNode, observerOptions));\n};\n\nwindow.addEventListener(\"load\", () => {\n initializeTurboFrameEvent();\n});\n\ndocument.addEventListener(\"turbo:load\", () => {\n initializeTurboFrameEvent();\n});\n\nStreamActions.request_submit = function requestSubmit() {\n const formToSubmit = document.getElementById(this.getAttribute(\"id\"));\n\n if (formToSubmit && typeof formToSubmit.requestSubmit === \"function\") {\n formToSubmit.requestSubmit();\n }\n};\n\nStreamActions.request_stream = function requestStream() {\n new FetchRequest(\"get\", this.getAttribute(\"id\"), {\n responseKind: \"turbo-stream\",\n }).perform();\n};\n"],"names":["createConsumer","consumer","subscriptions","create","received","data","cableReady","CableReady","perform","operations","initialize","application","Application","start","debug","window","Stimulus","Controller","connect","StimulusReflex","this","beforeReflex","element","reflex","noop","reflexId","reflexSuccess","reflexError","error","afterReflex","static","fieldValue","targetTarget","dataset","field","populateSelect","sourceTarget","value","handleSelectChange","sourceId","targetId","fetch","get","credentials","then","response","json","selectBox","innerHTML","forEach","item","opt","document","createElement","selected","appendChild","disableGroup","getElementsByTagName","button","classList","add","setFilter","event","preventDefault","target","params","URL","location","searchParams","search","name","undefined","delete","set","toString","country","String","countryLib","default","getAllCountries","option","text","flag","currentCountryTarget","countryValue","$","on","Event","bubbles","dispatchEvent","projects","Array","handleHardware","project","projectTarget","projectsValue","comment","commentTarget","yesButton","getElementById","noButton","index","length","Object","keys","checked","disabled","readOnly","values","url","read","contains","FetchRequest","urlValue","responseKind","querySelector","remove","regionValue","region","id","select2","theme","options","selectedIndex","key","cityTarget","placeholder","streetTarget","relationship","relationshipTarget","otherRelationship","other_relationshipTarget","tooltip","saveChanges","modal","modalTarget","user","reviewer","reviewerTarget","object","JSON","parse","listTarget","ajax","type","user_id","manager_id","manager","success","console","log","blur","showRange","inputTypeTarget","range","rangeTarget","toggleButton","buttonTarget","sample","sampleTarget","copyToClipboard","source","select","setSelectionRange","execCommand","sortable","Sortable","onEnd","end","bind","FormData","append","newIndex","replace","position","input","setAttribute","addEventListener","onDragover","onDragleave","onDrop","files","dataTransfer","from","file","uploadFile","stimulate","attrs","filename","content_type","byte_size","size","directUploadUrl","DirectUpload","blob","changeStartDate","dateField","dateTarget","notification","notificationTarget","words","split","date","year","month","count","Number","fetchData","countValue","yearValue","monthValue","tbody","tbodyTarget","loader","loadboxTarget","querySelectorAll","assignments","assignment","elem","className","template","register","ApplicationController","DependentSelectController","DisableButtonsController","FilterableController","NewEmployeeNotifications__CountriesController","NewEmployeeNotifications__FormController","NotificationController","Onboardings__CsSelectController","Onboardings__EmergencyContactController","super","PerformanceAppraisal__GroupCreationController","PerformanceAppraisal__QuestionFormController","handle","animation","ordinal","RadioToggleController","SignatureController","StepsController","User__DocumentsController","User__RestoreController","VacationsController","Workflow__AssignmentsController","controller","isolate","process","CURRENT_USER_ID","Turbo","drive","TurboPower","require","ActiveStorage","initializeTurboFrameEvent","turboFrameEvent","observer","MutationObserver","targetNodes","observerOptions","childList","attributes","subtree","targetNode","observe","StreamActions","request_submit","formToSubmit","getAttribute","requestSubmit","request_stream"],"sourceRoot":""}