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CAACtC,SAAS,CAACG,MAAM,CAAC,mBAAmB,CAAC,CACjD,CAAC,CAAC,CACJ,CAAC,CAAC,CACJ,CAAC,CAAC;;;;;;;;ACpEF","sources":["webpack://candidate_test/./app/javascript/packs/application.ts","webpack://candidate_test/./app/javascript/packs/dropdown.ts","webpack://candidate_test/./app/javascript/packs/mediaquery.ts","webpack://candidate_test/./app/javascript/packs/modal.ts","webpack://candidate_test/./app/javascript/packs/sidebar.ts","webpack://candidate_test/./app/javascript/packs/slideover.ts","webpack://candidate_test/./app/javascript/stylesheets/application.scss?0e3b"],"sourcesContent":["import Rails from \"@rails/ujs\";\nimport * as ActiveStorage from \"@rails/activestorage\";\nimport Turbolinks from \"turbolinks\";\nimport toastr from \"toastr\";\n\nimport \"../stylesheets/application.scss\";\nimport \"./mediaquery\";\nimport \"./dropdown\";\nimport \"./slideover\";\nimport \"./sidebar\";\nimport \"./modal\";\n\nRails.start();\nActiveStorage.start();\n\nwindow.toastr = toastr;\n\ntoastr.options = {\n closeButton: true,\n debug: false,\n newestOnTop: false,\n progressBar: true,\n positionClass: \"toast-bottom-right\",\n preventDuplicates: false,\n onclick: null,\n showDuration: 1000,\n hideDuration: 500,\n timeOut: 5000,\n extendedTimeOut: 2500,\n showEasing: \"swing\",\n hideEasing: \"swing\",\n showMethod: \"fadeIn\",\n hideMethod: \"fadeOut\",\n};\n\nTurbolinks.start();\n\n// FST: This is to handle anchored links (link.com/index#fragment)\ndocument.addEventListener(\"turbolinks:before-visit\", function(e: any) {\n var parser = document.createElement(\"a\");\n\n parser.href = e.data.url;\n\n if (\n parser.host == window.location.host &&\n parser.pathname == window.location.pathname\n ) {\n e.preventDefault();\n window.location.href = e.data.url;\n }\n});\n\ndocument.addEventListener(\"turbolinks:load\", () => {\n document\n .querySelectorAll(\"[data-js-client-async]\")\n .forEach((elm: HTMLElement) => {\n var url = elm.dataset.url;\n\n Rails.ajax({\n type: \"GET\",\n url: url,\n success: function(response) {\n elm.innerText = response.result;\n },\n error: function(response) {\n toastr.error(response.error);\n },\n });\n });\n});\n","(() => {\n function addListeners(event) {\n document.addEventListener(\n \"click\",\n (event) => {\n const target = event.target as HTMLElement;\n if (\"jsDropdownToggle\" in target.dataset) {\n document\n .querySelectorAll(\".dropdown-open\")\n .forEach((el: HTMLElement) => {\n if (target == el) return;\n\n el.classList.remove(\"dropdown-open\");\n });\n target.parentElement.classList.toggle(\"dropdown-open\");\n event.stopPropagation();\n } else if (\"jsDropdownToggle\" in target.parentElement?.dataset) {\n document\n .querySelectorAll(\".dropdown-open\")\n .forEach((el: HTMLElement) => {\n if (target.parentElement.parentElement == el) return;\n\n el.classList.remove(\"dropdown-open\");\n });\n target.parentElement.parentElement.classList.toggle(\"dropdown-open\");\n event.stopPropagation();\n } else {\n document\n .querySelectorAll(\".dropdown-open\")\n .forEach((el: HTMLElement) => {\n if (target == el) return;\n\n el.classList.remove(\"dropdown-open\");\n });\n }\n },\n true\n );\n }\n\n document.addEventListener(\"turbolinks:load\", addListeners, false);\n document.addEventListener(\"turbolinks:render\", addListeners, false);\n})();\n","// `document` fires a `breakpointchange` event when the CSS breakpoint defined\n// by tailwind changes.\n(() => {\n function getMediaqueryScreen() {\n const content = window\n .getComputedStyle(document.getElementById(\"mediaquery\"), \":after\")\n .getPropertyValue(\"content\");\n\n return content.replace(/\"/g, \"\");\n }\n\n function fireEvent() {\n document.dispatchEvent(\n new CustomEvent(\"breakpointchange\", {\n detail: { screen: getMediaqueryScreen() },\n })\n );\n }\n\n document.addEventListener(\"turbolinks:load\", () => {\n const mediaquery = document.getElementById(\"mediaquery\");\n\n if (mediaquery) {\n fireEvent();\n mediaquery.addEventListener(\"transitionend\", fireEvent);\n }\n });\n})();\n","(() => {\n function addListeners(event) {\n document.querySelectorAll(\".modal\").forEach((element) => {\n window.onclick = function(event) {\n if (event.target == element) {\n document.dispatchEvent(new Event(\"modal:close\"));\n }\n };\n element.querySelector(\".close\").addEventListener(\"click\", () => {\n document.dispatchEvent(new Event(\"modal:close\"));\n });\n\n document.addEventListener(\"modal:close\", () => {\n element.classList.remove(\"show\");\n });\n });\n\n document\n .querySelectorAll(\"[data-toggle='modal']\")\n .forEach((element: HTMLElement) => {\n element.addEventListener(\"click\", () => {\n document.querySelector(element.dataset.target).classList.add(\"show\");\n });\n });\n }\n\n document.addEventListener(\"turbolinks:load\", addListeners, false);\n document.addEventListener(\"ajax:success\", addListeners, false);\n})();\n","let setup = () => {\n\tdocument.querySelectorAll(\".sidebar .closeBtn\").forEach((e) => {\n\t\te.addEventListener(\"click\", (ev: MouseEvent) => {\n\t\t\tlet target = ev.target as HTMLElement;\n\t\t\ttarget.parentElement.style.display = \"none\"\n\t\t})})\n\n\tlet button = document.getElementById(\"actionbtn\") as HTMLElement;\n\tbutton?.addEventListener(\"click\", (ev: MouseEvent) => {\n\t\tlet btn = ev.target as HTMLElement;\n\t\tlet target = document.querySelector(btn.dataset.sidebar);\n\t\ttarget.style.display = \"block\";\n\t\t\n\t});\n\n\tlet languagebutton = document.getElementById(\"languagebtn\") as HTMLElement;\n\tlanguagebutton?.addEventListener(\"click\", (ev: MouseEvent) => {\n\t\tlet languagebtn = ev.target as HTMLElement;\n\t\tlet languageTarget = document.querySelector(languagebtn.dataset.languageOptions);\n\t\tlanguageTarget.style.display = \"block\";\n\t\t\n\t});\n\n\n\n};\n\ndocument.addEventListener(\"turbolinks:load\", setup);\ndocument.addEventListener(\"ready\", setup);\n","document.addEventListener(\"turbolinks:load\", () => {\n // Overlay shows and hides when a slideover opens and closes.\n const overlay = document.querySelector(\"[data-js-overlay]\");\n\n // Fades the overlay in\n function showOverlay() {\n overlay.classList.remove(\"hidden\");\n\n window.setTimeout(() => overlay.classList.add(\"opacity-50\"), 0);\n }\n\n // Fades the overlay out\n function hideOverlay() {\n overlay.addEventListener(\n \"transitionend\",\n () => overlay.classList.add(\"hidden\"),\n { once: true }\n );\n\n overlay.classList.remove(\"opacity-50\");\n }\n\n // When we click the overlay, we want to close the open slideover and\n // hide the overlay.\n overlay?.addEventListener(\"click\", () => {\n document\n .querySelector(\".slideover-visible\")\n .classList.remove(\"slideover-visible\");\n\n hideOverlay();\n });\n\n document.querySelectorAll(\"[data-js-slideover]\").forEach(slideover => {\n // When the slideover open/close transition is finished we fire an appropiate\n // for use in other places.\n slideover.addEventListener(\"transitionend\", () => {\n if (slideover.classList.contains(\"slideover-visible\")) {\n slideover.dispatchEvent(new Event(\"slideover:open\"));\n } else {\n slideover.dispatchEvent(new Event(\"slideover:close\"));\n }\n });\n\n // When a slideover is closing, we hide the overlay.\n slideover.addEventListener(\"slideover:closing\", hideOverlay);\n\n // When a sliderover is openning, we show the overlay.\n slideover.addEventListener(\"slideover:opening\", () => showOverlay());\n });\n\n document.querySelectorAll(\"[data-js-slideover-toggle]\").forEach(element => {\n element.addEventListener(\"click\", function() {\n // The the matching slideover.\n const slideover = document.querySelector(\n `[data-js-slideover=\"${this.dataset.jsSlideoverToggle}\"]`\n );\n\n // Fire opening/closing event dependening on the slideover-visible\n // class being present.\n if (slideover.classList.contains(\"slideover-visible\")) {\n slideover.dispatchEvent(new Event(\"slideover:closing\"));\n } else {\n slideover.dispatchEvent(new Event(\"slideover:opening\"));\n }\n\n slideover.classList.toggle(\"slideover-visible\");\n });\n });\n});\n","// extracted by mini-css-extract-plugin\nexport {};"],"names":["ujs_1","__importDefault","require","ActiveStorage","__importStar","turbolinks_1","toastr_1","start","window","toastr","options","closeButton","debug","newestOnTop","progressBar","positionClass","preventDuplicates","onclick","showDuration","hideDuration","timeOut","extendedTimeOut","showEasing","hideEasing","showMethod","hideMethod","document","addEventListener","e","parser","createElement","href","data","url","host","location","pathname","preventDefault","querySelectorAll","forEach","elm","dataset","ajax","type","success","response","innerText","result","error","addListeners","event","target","el","classList","remove","parentElement","toggle","stopPropagation","_a","getMediaqueryScreen","content","getComputedStyle","getElementById","getPropertyValue","replace","fireEvent","dispatchEvent","CustomEvent","detail","screen","mediaquery","element","Event","querySelector","add","setup","ev","style","display","button","btn","sidebar","languagebutton","languagebtn","languageTarget","languageOptions","overlay","showOverlay","setTimeout","hideOverlay","once","slideover","contains","concat","jsSlideoverToggle"],"sourceRoot":""}