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,MAXwB,kBAAZ6S,IACX+W,EAAW/W,GAEY,kBAAZA,IACX8W,EAAS9W,GAIV8W,EAASA,GAAU9W,EAAQ8W,QAAUlF,EAAQkF,OAC7CC,EAAWA,GAAY/W,EAAQ+W,UAAYnF,EAAQmF,SAE7Cb,EAAO3oB,OAGP0oB,EAAO1oB,QAIbspB,EAAQZ,EAAOpf,OAAOoe,cACtBiB,EAAOtE,QAASjlB,KAAKylB,UAAW,CAC/B2E,SAAUA,EACVD,OAAQA,EACRM,KAAM,SAAUC,EAAKC,GACpBA,EAAGD,IAAM5J,KAAKvP,MAAOmZ,EACtB,SAEDpB,EACE7nB,OACAwjB,QAASjlB,KAAK8lB,UAAW,CACzBsE,SAAUA,EACVD,OAAQA,EACRrW,SAAUA,EACV2W,KAAM,SAAUC,EAAKC,GACpBA,EAAGD,IAAM5J,KAAKvP,MAAOmZ,GACJ,WAAZC,EAAGjb,KACY,gBAAd6a,IACJD,GAAUK,EAAGD,KAE0B,YAA7BL,EAAKhX,QAAQ+R,cACxBuF,EAAGD,IAAM5J,KAAKvP,MAAO2Y,EAAQX,EAAOjB,cAAgBgC,GACpDA,EAAS,EAEX,KA3BMf,EAAOtE,QAASjlB,KAAKylB,UAAW2E,EAAUD,EAAQrW,GAHlDwV,EAAOrE,QAASjlB,KAAK8lB,UAAWsE,EAAUD,EAAQrW,EAgC3D,EAEAkW,gBAAiB,SAAUxpB,GAC1B,IAAI+oB,EAAS/oB,EAAKkpB,SACjBtG,EAAOmG,EAAOnG,OAEfpjB,KAAK0mB,aAAc6C,EAAQ,+BAC3BvpB,KAAK0mB,aAActD,EAAM,8BACvB8C,UAAW9C,EAAM,iCAEnBpjB,KAAK6pB,SAAU,WAAY,KAAMrpB,EAClC,GAGD,GA7kBY,8BAMV,CAlBF","sources":["webpack://app/./node_modules/jquery-ui/ui/keycode.js","webpack://app/./app/javascript/frontend/companies.js","webpack://app/./node_modules/webpack-jquery-ui/accordion.js","webpack://app/./app/javascript/frontend/ideas.js","webpack://app/./app/javascript/frontend/review.js","webpack://app/./app/javascript/frontend/score_types.js","webpack://app/./app/javascript/frontend/missions.js","webpack://app/./app/javascript/frontend/boards.js","webpack://app/./app/javascript/frontend/tribute_user_reply.js","webpack://app/./app/javascript/packs/frontend.js","webpack://app/./node_modules/jquery-ui/ui/unique-id.js","webpack://app/./app/javascript/frontend/advance_selection_rounds.js","webpack://app/./app/javascript/frontend/invites.js","webpack://app/./app/javascript/frontend/selections.js","webpack://app/./app/javascript/frontend/comments.js","webpack://app/./node_modules/jquery-ui/ui/widgets/accordion.js"],"sourcesContent":["/*!\n * jQuery UI Keycode 1.14.1\n * https://jqueryui.com\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license.\n * https://jquery.org/license\n */\n\n//>>label: Keycode\n//>>group: Core\n//>>description: Provide keycodes as keynames\n//>>docs: https://api.jqueryui.com/jQuery.ui.keyCode/\n\n( function( factory ) {\n\t\"use strict\";\n\n\tif ( typeof define === \"function\" && define.amd ) {\n\n\t\t// AMD. Register as an anonymous module.\n\t\tdefine( [ \"jquery\", \"./version\" ], factory );\n\t} else {\n\n\t\t// Browser globals\n\t\tfactory( jQuery );\n\t}\n} )( function( $ ) {\n\"use strict\";\n\nreturn $.ui.keyCode = {\n\tBACKSPACE: 8,\n\tCOMMA: 188,\n\tDELETE: 46,\n\tDOWN: 40,\n\tEND: 35,\n\tENTER: 13,\n\tESCAPE: 27,\n\tHOME: 36,\n\tLEFT: 37,\n\tPAGE_DOWN: 34,\n\tPAGE_UP: 33,\n\tPERIOD: 190,\n\tRIGHT: 39,\n\tSPACE: 32,\n\tTAB: 9,\n\tUP: 38\n};\n\n} );\n","/*\n * decaffeinate suggestions:\n * DS102: Remove unnecessary code created because of implicit returns\n * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md\n */\n// Place all the behaviors and hooks related to the matching controller here.\n// All this logic will automatically be available in application.js.\n// You can use CoffeeScript in this file: http://coffeescript.org/\n$(function() {\n $('#package-dropdown').on('click', '.init', function() {\n return $(this).closest('#package-dropdown').children('li:not(.init)').toggle();\n }); \n \n var allOptions = $('#package-dropdown').children('li:not(.init)');\n $('#package-dropdown').on('click', 'li:not(.init)', function() {\n allOptions.removeClass('selected');\n $(this).addClass('selected');\n $('#selected-package').val($(this).data('value'));\n $('#package-dropdown').children('.init').html($(this).html());\n return allOptions.toggle();\n });\n});\n\n\n\n\n// $(\"#shahjji\").on(\"click\", \".init\", function() {\n// $(this).closest(\"#shahjji\").children('li:not(.init)').toggle();\n// });\n// var allOptions = $(\"#shahjji\").children('li:not(.init)');\n// $(\"#shahjji\").on(\"click\", \"li:not(.init)\", function() {\n// allOptions.removeClass('selected');\n// $(this).addClass('selected');\n// $(\"#shahjji\").children('.init').html($(this).html());\n// allOptions.toggle();\n// });\n","require('jquery-ui/ui/widget');\r\nrequire('jquery-ui/ui/keycode');\r\nrequire('jquery-ui/ui/unique-id');\r\nrequire('jquery-ui/ui/widgets/accordion');\r\nrequire('jquery-ui/themes/base/core.css');\r\nrequire('jquery-ui/themes/base/accordion.css');","import { start_timers } from \"./common\";\n\nimport { disable_default_form_submit } from \"./common\";\n\n$(function () {\n var autosize, textarea;\n if ($('select').length > 0 && $.fn.material_select) {\n $('select').material_select();\n }\n $(\".delete-icon\").off(\"click\");\n $(document).on(\"click\", \".delete-icon\", function () {\n var comment_id, idea_id, mission_id;\n mission_id = $(\"#mission_id\").val();\n idea_id = $(\"#idea_id\").val();\n comment_id = this.id;\n return $.ajax({\n url: \"/ideas/\" + idea_id + \"/delete_comment\",\n method: \"POST\",\n data: {\n comment_id: comment_id,\n tailwind: true\n },\n success: function (data) {\n },\n });\n });\n $(document).on(\"click\", \".close-icon\", function () {\n return $(\".card-border-reply\").hide();\n });\n $(document).on(\"click\", \".bookmarked\", function (e) {\n e.preventDefault();\n return $.ajax({\n type: \"POST\",\n url: $(this).data(\"idea-url\"),\n dataType: \"script\",\n });\n });\n $(document).on(\"click\", \"#close-btn\", function () {\n return $(\"#open-board\").css(\"display\", \"none\");\n });\n $(\".open-idea-board\").on(\"click\", function () {\n var element;\n $(\".time-disposeable\").countdown(\"destroy\");\n element = $(this);\n return $.ajax({\n url: element.data(\"edit-url\"),\n data: {},\n success: function (data) {\n $(\"#brain-modal\").find(\".idea-board-content\").html(data);\n start_timers();\n disable_default_form_submit();\n return setTimeout(function () {\n $(\".modal\").modal();\n $(\"#open-board.modal\").modal(\"open\");\n if ($('select').length > 0 && $.fn.material_select) {\n $('select').material_select();\n }\n }, 50);\n },\n });\n });\n $('body').on(\"click\", \".select-wrapper\", function (event) {\n return event.stopPropagation();\n });\n $('body').on(\"click\", \".open-idea-dialogue\", function (e) {\n var element;\n e.preventDefault();\n element = $(this);\n $(\".idea_id\").val(element.data(\"id\"));\n return $.ajax({\n url: element.data(\"view-url\"),\n data: {},\n success: function (data) {\n $(\"#add-idea-choice\").remove();\n $(\"#idea-view-modal\").find(\".idea-view-content\").html(data);\n $(\".modal\").modal();\n return setTimeout(function () {\n if ($(\"#card-description\").length > 0) {\n $(\"#card-description.modal\").modal(\"open\");\n } else if ($(\"#add-idea-choice\").length > 0) {\n $(\"#add-idea-choice.modal\").moda(\"open\");\n }\n if ($('select').length > 0 && $.fn.material_select) {\n $('select').material_select();\n }\n }, 50);\n },\n });\n });\n if (window.cordova) {\n textarea = document.querySelector(\"#chatbox-teaxtarea\");\n autosize = function () {\n var el;\n el = this;\n setTimeout(function () {\n el.style.cssText = \"height:auto; padding:0\";\n el.style.cssText = \"height:\" + el.scrollHeight + \"px\";\n }, 0);\n };\n if (textarea) {\n textarea.style.cssText = \"height:auto; padding:0\";\n textarea.style.cssText = \"height:\" + textarea.scrollHeight + \"px\";\n textarea.addEventListener(\"keydown\", autosize);\n }\n }\n $(\"#submit-idea\").on(\"click\", function (e) {\n e.preventDefault();\n if ($(\".idea_title\").val() === \"\") {\n $(\".toast\").remove();\n return Materialize.toast(\"All the fields need to be filled.\", 2000);\n } else {\n Appcues.track(\"idea added\");\n return $(\"form.idea_submission_form\").submit();\n }\n });\n\n $(document).on(\"click\", \".new-submit-idea\", function(e) {\n e.preventDefault();\n \n var form = $(this).parents(\"form\");\n \n if ($(\".idea_title\").val() === \"\") {\n $(\".toast\").remove();\n return Materialize.toast(\"All the fields need to be filled.\", 2000);\n } else if ($(\"#idea_ideation_idea_category_id\").length > 0 && $(\"#idea_ideation_idea_category_id\").val() === \"\") {\n $(\".toast\").remove();\n return Materialize.toast(\"Please make sure to select a category.\", 2000);\n } else {\n $(\".submit-idea\").attr(\"disabled\", true);\n $(\".submit-idea\").attr(\"background\", \"#dddddd\");\n // Appcues.track(\"idea added\");\n \n var formData = new FormData(form[0]);\n \n $.ajax({\n method: \"POST\",\n url: form.attr(\"action\"),\n data: formData,\n dataType: \"script\",\n contentType: false,\n processData: false,\n success: function(data) {\n $(\"#add-idea-close.modal-close\").click();\n $(\"#filetype\").val(\"\");\n $(\"#filename\").val(\"\");\n $(\"#image\").val(\"\");\n $('#close-btn').click();\n $(\".open-idea-board\").click();\n },\n });\n }\n });\n\n $(document).on(\"click\", \".submit-idea\", function (e) {\n var datastring, form;\n e.preventDefault();\n if ($(\".idea_title\").val() === \"\") {\n $(\".toast\").remove();\n return Materialize.toast(\"All the fields need to be filled.\", 2000);\n } else if (\n $(\"#idea_ideation_idea_category_id\").length > 0 &&\n $(\"#idea_ideation_idea_category_id\").val() === \"\"\n ) {\n $(\".toast\").remove();\n return Materialize.toast(\"Please make sure to select a category.\", 2000);\n } else {\n $(\".submit-idea\").attr(\"disabled\", true);\n $(\".submit-idea\").attr(\"background\", \"#dddddd\");\n // Appcues.track(\"idea added\");\n form = $(this).parents(\"form\");\n datastring = form.serialize();\n return $.ajax({\n method: \"POST\",\n url: form.attr(\"action\"),\n data: datastring,\n dataType: \"script\",\n success: function (data) {\n $(\"#add-idea-close.modal-close\").click();\n $(\"#filetype\").val(\"\");\n $(\"#filename\").val(\"\");\n return $(\"#image\").val(\"\");\n },\n });\n }\n });\n return $(document).on(\"change\", \"#idea_image\", function (event) {\n const $upload_section = $('.js-upload-section');\n $upload_section.addClass('is-loading');\n\n var file, fileObject, input, reader;\n file = void 0;\n input = void 0;\n reader = void 0;\n fileObject = {};\n input = $(event.currentTarget);\n file = input[0].files[0];\n if (!file) {\n return;\n }\n fileObject.filetype = file.type;\n fileObject.filename = file.name;\n reader = new FileReader();\n reader.onload = function (e) {\n var image_base64;\n image_base64 = e.target.result;\n fileObject.filecontent = image_base64;\n $(\"#filetype\").val(fileObject.filetype);\n $(\"#filename\").val(fileObject.filename);\n $(\"#image\").val(\n fileObject.filecontent.replace(\n /^data:image\\/(png|jpg|jpeg|gif);base64,/,\n \"\"\n )\n );\n };\n reader.readAsDataURL(file);\n return console.log(fileObject);\n });\n});\n","var get_score_data, is_score_given;\n\nimport {\n start_timers\n} from './common';\n\nis_score_given = false;\n\n$(document).on('click', '.open-review-board', function(e) {\n var element, index;\n e.preventDefault();\n $('.time-disposeable').countdown('destroy');\n index = 0;\n element = $(this);\n return $.ajax({\n url: element.data(\"round-idea-review\"),\n data: {\n index: index\n },\n success: function(data) {\n $('#review-board').modal('open');\n return start_timers();\n }\n });\n});\n\n$(document).on('click', '.star', function(e) {\n is_score_given = true;\n $('.selected-btn').removeClass('selected-btn');\n return $(this).addClass('selected-btn');\n});\n\n$(document).on(\"click\", '.idea-questions.simple>.btn', function() {\n var active_element, element;\n element = $(this);\n active_element = $('.idea-questions.simple .selected-btn');\n if (active_element) {\n active_element.removeClass('selected-btn');\n }\n if (active_element) {\n active_element.css(\"background\", \"white\");\n }\n element.addClass('selected-btn');\n element.css(\"background\", \"#8dc63f\");\n return is_score_given = true;\n});\n\n$('a#mobile-next-idea').on(\"click\", function(e) {\n var _href, data, score_data;\n if (is_score_given) {\n score_data = get_score_data($('.selected-btn'));\n data = {\n idea_score_params: score_data,\n index: 1\n };\n _href = $(this).attr(\"href\");\n return $(this).attr(\"href\", _href + (\"?\" + ($.param(data))));\n } else {\n e.preventDefault();\n $('.toast').remove();\n return Materialize.toast(\"Please reviewe this idea before going to next\", 5000);\n }\n});\n\n$(document).on(\"click\", '.idea-questions >.red-hover', function() {\n var active_element, element;\n element = $(this);\n active_element = $('.idea-questions .selected-btn');\n if (active_element) {\n active_element.removeClass('selected-btn');\n }\n if (active_element) {\n active_element.css(\"background\", \"white\");\n }\n element.addClass('selected-btn');\n element.css(\"background\", \"#ff0000\");\n return is_score_given = $('.selected-btn').length === 2;\n});\n\n$(document).on(\"click\", '.idea-questions >.yellow-hover', function() {\n var active_element, element;\n element = $(this);\n active_element = $('.idea-questions .selected-btn');\n if (active_element) {\n active_element.removeClass('selected-btn');\n }\n if (active_element) {\n active_element.css(\"background\", \"white\");\n }\n element.addClass('selected-btn');\n element.css(\"background\", \"rgb(255, 224, 0)\");\n return is_score_given = $('.selected-btn').length === 2;\n});\n\n$(document).on(\"click\", '.idea-questions >.green-hover', function() {\n var active_element, element;\n element = $(this);\n active_element = $('.idea-questions .selected-btn');\n if (active_element) {\n active_element.removeClass('selected-btn');\n }\n if (active_element) {\n active_element.css(\"background\", \"white\");\n }\n element.addClass('selected-btn');\n element.css(\"background\", \"rgb(141, 198, 63)\");\n return is_score_given = $('.selected-btn').length === 2;\n});\n\n$(document).on(\"click\", '.investment-questions>.red-hover', function() {\n var active_element, element;\n element = $(this);\n active_element = $('.investment-questions .selected-btn');\n if (active_element) {\n active_element.removeClass('selected-btn');\n }\n if (active_element) {\n active_element.css(\"background\", \"white\");\n }\n element.addClass('selected-btn');\n element.css(\"background\", \"#ff0000\");\n return is_score_given = $('.selected-btn').length === 2;\n});\n\n$(document).on(\"click\", '.investment-questions>.yellow-hover', function() {\n var active_element, element;\n element = $(this);\n active_element = $('.investment-questions .selected-btn');\n if (active_element) {\n active_element.removeClass('selected-btn');\n }\n if (active_element) {\n active_element.css(\"background\", \"white\");\n }\n element.addClass('selected-btn');\n element.css(\"background\", \"rgb(255, 224, 0)\");\n return is_score_given = $('.selected-btn').length === 2;\n});\n\n$(document).on(\"click\", '.investment-questions>.green-hover', function() {\n var active_element, element;\n element = $(this);\n active_element = $('.investment-questions .selected-btn');\n if (active_element) {\n active_element.removeClass('selected-btn');\n }\n if (active_element) {\n active_element.css(\"background\", \"white\");\n }\n element.addClass('selected-btn');\n element.css(\"background\", \"rgb(141, 198, 63)\");\n return is_score_given = $('.selected-btn').length === 2;\n});\n\n$(document).on('click', '#next-idea-btn', function(e) {\n var element, score_data;\n e.preventDefault();\n if (is_score_given) {\n if ($(this).hasClass('clicked')) {\n return;\n }\n $(this).addClass('clicked');\n score_data = get_score_data($('.selected-btn'));\n $('.time-disposeable').countdown('destroy');\n element = $(this);\n return $.ajax({\n url: element.data(\"round-idea-review\"),\n data: {\n idea_score_params: score_data,\n index: element.data('index') + 1\n },\n success: function(data) {\n $(this).removeClass('clicked');\n is_score_given = false;\n start_timers();\n return Materialize.toast(\"Score is recorded successfully\", 3000);\n }\n });\n } else {\n $('.toast').remove();\n return Materialize.toast(\"Please review this idea before going to next\", 5000);\n }\n});\n\nget_score_data = function(element) {\n var call_url, columns, id, score_data, selected_btns, type;\n id = element.data(\"idea-id\");\n call_url = element.data(\"url\");\n type = element.data('score-type');\n columns = [];\n selected_btns = $('.selected-btn');\n if (selected_btns.length > 0) {\n selected_btns.each(function() {\n var column_data;\n column_data = {\n column_name: $(this).data('column'),\n column_value: $(this).data('value')\n };\n return columns.push(column_data);\n });\n }\n score_data = {\n idea_id: id,\n score_type: type,\n columns_data: columns,\n review_comment: $('#review_comment').val()\n };\n return score_data;\n};\n","var get_score_data, is_score_given, start_timers;\n\nimport 'kbw-countdown/dist/js/jquery.plugin';\n\nimport 'kbw-countdown/dist/js/jquery.countdown';\n\nis_score_given = false;\n\nstart_timers = function() {\n return $('.time-disposeable').each(function() {\n var diff, newtime;\n newtime = new Date(parseFloat($(this).data('time')));\n diff = (newtime - new Date()) / 1000;\n if (diff >= 259200) {\n return $(this).countdown({\n until: diff,\n compact: true,\n layout: '{dn}d {hnn}h {mnn}m {desc}',\n format: 'dHM',\n description: ''\n });\n } else {\n return $(this).countdown({\n until: diff,\n compact: true,\n layout: '{hnn}h {mnn}m {snn}s {desc}',\n format: 'HMS',\n description: ''\n });\n }\n });\n};\n\n$('.idea-questions >.btn.selected-btn').css(\"background\", \"#8dc63f\");\n\n$('.investment-questions >.btn.selected-btn.impact').css(\"background\", \"#8dc63f\");\n\n$('.investment-questions >.btn.selected-btn.investment').css(\"background\", \"#f75c1d\");\n\n$('.scored-star').addClass('fill-star');\n\n$('#previous-idea-btn').on(\"click\", function() {\n var element;\n $('.time-disposeable').countdown('destroy');\n element = $(this);\n return $.ajax({\n url: element.data(\"round-idea-review\"),\n data: {\n index: element.data('index') - 1\n },\n success: function(data) {\n start_timers();\n return $(document).trigger('ajax:complete');\n }\n });\n});\n\nget_score_data = function(element) {\n var call_url, columns, id, score_data, selected_btns, type;\n id = element.data(\"idea-id\");\n call_url = element.data(\"url\");\n type = element.data('score-type');\n columns = [];\n selected_btns = $('.selected-btn');\n if (selected_btns.length > 0) {\n selected_btns.each(function() {\n var column_data;\n column_data = {\n column_name: $(this).data('column'),\n column_value: $(this).data('value')\n };\n return columns.push(column_data);\n });\n }\n score_data = {\n idea_id: id,\n score_type: type,\n columns_data: columns,\n review_comment: $('#review_comment').val()\n };\n return score_data;\n};\n","var $, application_ready, countdown;\n\n$ = jQuery;\n\nimport 'materialize-css/dist/js/materialize';\n\nimport 'webpack-jquery-ui/draggable';\n\nimport 'kbw-countdown/dist/js/jquery.plugin';\n\nimport 'kbw-countdown/dist/js/jquery.countdown';\n\ncountdown = $.fn.countdown = jQuery.fn.countdown;\n\napplication_ready = function() {\n var ajax_ready, element, on_input, set_date_end, set_date_start, toggle_user_invite_select, validateEmail;\n if ($('.red-button-review-area:visible').length > 0) {\n $(\".review-now\").last().get(0).scrollIntoView();\n } else if ($('#current-active-round').length > 0) {\n window.location.hash = '';\n window.location.hash = '#current-active-round';\n }\n if ($('#open-end-note-btn').length > 0) {\n Appcues.track(\"Mission ended\");\n }\n if ($('.open-mission-leader-board').length > 0) {\n if (window.location.href.indexOf(\"leaderboard\") > -1) {\n element = $('.open-mission-leader-board').last();\n $.ajax({\n url: element.data(\"url\"),\n data: {},\n success: function(data) {\n $(\"#mission-leaderboard\").modal('open');\n $(\"#mission-leaderboard.modal\").html(data);\n var tabsElement = $(\"#mission-leaderboard.modal\").find('ul.tabs');\n if (tabsElement.length) {\n tabsElement.tabs();\n } else {\n console.log(\"ul.tabs not found in #mission-leaderboard.modal, skipping tabs initialization.\");\n }\n return $(\"#mission-leaderboard.modal\").find($(\".modal-close\")).click(function() {\n return $(\"#mission-leaderboard\").modal('close');\n });\n }\n });\n }\n }\n $(\"a#refresh.action-timeline-refresh\").on('click', function() {\n window.location.reload(false);\n });\n $('#copy-invite-url').on('click', function() {\n var range;\n if (document.selection) {\n range = document.body.createTextRange();\n range.moveToElementText($('#invite-url-area').get(0));\n } else if (window.getSelection) {\n range = document.createRange();\n range.selectNode($('#invite-url-area').get(0));\n window.getSelection().addRange(range);\n }\n return document.execCommand('copy');\n });\n $('#open-end-note-btn').off(\"click\");\n $('#open-end-note-btn').on(\"click\", function(e) {\n e.preventDefault();\n element = $(this);\n if (element.data(\"can-review\")) {\n return $.ajax({\n url: element.data(\"url\"),\n data: {},\n success: function(data) {\n if (data[\"has_reviewed\"] !== void 0 && data[\"has_reviewed\"] === true) {\n return $('#open-end-note.modal').modal('open');\n } else if (data[\"has_reviewed\"] !== void 0 && data[\"has_reviewed\"] === false) {\n $('.toast').remove();\n return Materialize.toast(\"Please complete the review of previous round to proceed\", 5000);\n } else {\n return $('#open-end-note.modal').modal('open');\n }\n },\n error: function(data) {}\n });\n } else {\n return $('#open-end-note.modal').modal('open');\n }\n });\n ajax_ready = function() {\n var date, i, n, str;\n $('.disabled-mission').click(function() {\n var max_missions;\n max_missions = $(this).data('max-missions');\n $('.toast').remove();\n return Materialize.toast(\"You have only \" + max_missions + \" mission(s) in your package.\", 10000);\n });\n $('.disabled-agents').click(function() {\n var max_agents;\n max_agents = $(this).data('max-agents');\n $('.toast').remove();\n return Materialize.toast(\"Your current plan only accepts max \" + max_agents + \" invited agents\", 10000);\n });\n $('#mission_ending_note').on(\"input\", function() {\n return $('#end-note-area').text($('#mission_ending_note').val());\n });\n $('#mission_ending_note').trigger('input');\n $('.draggable').draggable({\n cancel: \"menue\",\n revert: \"invalid\",\n containment: \"document\",\n helper: \"clone\",\n cursor: \"move\",\n start: function(event, ui) {\n return $(ui.helper).width(ui.helper.prevObject.width());\n }\n });\n $('.template').on(\"click\", function() {\n $('.mb-select').addClass('template-unselected');\n return $(this).find('.mb-select').removeClass('template-unselected');\n });\n $('#save-as-template').on(\"click\", function() {\n element = $(this);\n return $.ajax({\n type: 'POST',\n url: element.data(\"url\"),\n data: {},\n success: function(data) {\n if (data[\"is_template\"]) {\n return $('#save-as-template').find('.drag-box-template').text(\"Saved as template\");\n } else {\n return $('#save-as-template').find('.drag-box-template').text(\"Save as template\");\n }\n },\n error: function(data) {}\n });\n });\n $('#create-mission').on(\"click\", function() {\n var template_url;\n if ($('#from-scratch:visible').length > 0) {\n if (!$(\".mission_title\").val()) {\n $('.toast').remove();\n Materialize.toast(\"Mission Title can not be empty.\", 2000);\n $(\".mission_title\").focus();\n return;\n }\n if (!$(\".desc_area\").val()) {\n $('.toast').remove();\n Materialize.toast(\"Description can not be empty.\", 2000);\n $(\".desc_area\").focus();\n return;\n }\n if (!$(\".from_name\").val()) {\n $('.toast').remove();\n Materialize.toast(\"From Name can not be empty.\", 2000);\n $(\".from_name\").focus();\n return;\n }\n return $('.new_mission_form').submit();\n } else {\n template_url = $('.mb-select').not('.template-unselected').data('url');\n if (!template_url) {\n $('.toast').remove();\n return Materialize.toast(\"No template selected\", 2000);\n } else {\n console.log(template_url);\n return $.ajax({\n type: 'POST',\n url: template_url,\n data: {\n company_id: $('#company').val()\n },\n success: function(data) {},\n error: function(data) {}\n });\n }\n }\n });\n $('#open-preview').on(\"click\", function() {\n element = $(this);\n return $.ajax({\n url: element.data(\"preview-url\"),\n data: {},\n success: function() {}\n });\n });\n $('.mission-management-tabs .switch input').off('change');\n $('.mission-management-tabs .switch input').on('change', function(event) {\n if (this.checked) {\n if ($('a.publishing_link').text() !== 'Published') {\n return $('a.publishing_link').click();\n }\n } else {\n if ($('a.publishing_link').text() === 'Published') {\n return $('a.publishing_link').click();\n }\n }\n });\n $('.mission_options').hide();\n $('.time_options').hide();\n if (window.location.search) {\n str = window.location.search;\n str = str.split('=');\n if (str[0] === '?manager') {\n $('.mission_options').show();\n $('#manager_options').val(str[1]);\n $(\"#filter_options\").val('By Mission Manager');\n } else if (str[0] === '?start_date') {\n n = str[1].search('&end_date');\n if (n === 10) {\n date = str[1].split('&');\n $('.time_options').show();\n set_date_start(date[0]);\n set_date_end(str[2]);\n } else {\n $('.time_options').show();\n set_date_start(str[1]);\n }\n } else if (str[0] === '?end_date') {\n $('.time_options').show();\n set_date_end(str[1]);\n }\n }\n $(\".apply\").click(function() {\n var end_date, start_date, url;\n if ($(\"#start_date\").val()) {\n start_date = $(\"#start_date\").val();\n }\n if ($(\"#end_date\").val()) {\n end_date = $(\"#end_date\").val();\n }\n if (start_date && end_date) {\n url = '/commander_dashboard?start_date=' + start_date + '&end_date=' + end_date;\n } else if (start_date) {\n url = '/commander_dashboard?start_date=' + start_date;\n } else if (end_date) {\n url = '/commander_dashboard?end_date=' + end_date;\n }\n return window.location.replace(url);\n });\n $(\"#filter_options\").change(function() {\n if (!this.selectedOptions[0].value) {\n $('.mission_options').hide();\n $('.time_options').hide();\n }\n if (this.selectedOptions[0].value === \"By Mission Manager\") {\n $('.mission_options').show();\n return $('.time_options').hide();\n } else if (this.selectedOptions[0].value === \"By Date\") {\n $('.mission_options').hide();\n return $('.time_options').show();\n }\n });\n $(\"#manager_options\").change(function() {\n var manager, url;\n if (this.selectedOptions[0].value) {\n manager = this.selectedOptions[0].value;\n url = '/commander_dashboard?manager=' + manager;\n return window.location.replace(url);\n }\n });\n $('.time-caps').each(function() {\n var diff, newtime;\n newtime = new Date(parseFloat($(this).data('time')));\n diff = (newtime - new Date()) / 1000;\n return $(this).countdown({\n until: diff,\n compact: true,\n layout: '{dn}D : {hnn}H{sep}{mnn}M{sep}{snn}S {desc}',\n description: ''\n });\n });\n $('.time').each(function() {\n var diff, newtime;\n newtime = new Date(parseFloat($(this).data('time')));\n diff = (newtime - new Date()) / 1000;\n return $(this).countdown({\n until: diff,\n compact: true,\n layout: '{dn}d {hnn}h{sep}{mnn}m{sep}{snn}s {desc}',\n description: ''\n });\n });\n console.log(\"Running timers\");\n i = 0;\n $('div[id^=\\'timer-active-\\']').each(function() {\n var diff, id, newtime;\n id = this.id;\n newtime = new Date($('#time-val-active-' + i)[0].value);\n diff = new Date(newtime.getFullYear(), newtime.getMonth(), newtime.getDate(), newtime.getHours(), newtime.getMinutes());\n $('#' + id).countdown({\n until: diff,\n compact: true,\n layout: '{dn}d {hnn}h {mnn}m {snn}s {desc}',\n description: ''\n });\n return i++;\n });\n i = 0;\n $('div[id^=\\'timer-future-\\']').each(function() {\n var diff, id, newtime;\n id = this.id;\n newtime = new Date($('#time-val-future-' + i)[0].value);\n diff = new Date(newtime.getFullYear(), newtime.getMonth(), newtime.getDate(), newtime.getHours(), newtime.getMinutes());\n $('#' + id).countdown({\n until: diff,\n compact: true,\n layout: '{dn}d {hnn}h {mnn}m {snn}s {desc}',\n description: ''\n });\n return i++;\n });\n i = 0;\n $('div[id^=\\'current-timer-\\']').each(function() {\n var diff, id, newtime;\n id = this.id;\n newtime = new Date(parseFloat($('#current-round-timer-' + i)[0].value));\n diff = (newtime - new Date()) / 1000;\n if (diff >= 259200) {\n $(this).countdown({\n until: diff,\n compact: true,\n layout: '{dn}d {hnn}h {mnn}m {desc}',\n format: 'dHM',\n description: '',\n onExpiry: function(event) {\n var avatar_name;\n if ($(\"#add-idea:visible\").length > 0) {\n $(\"#timeline-refresh\").modal('open', {\n dismissible: true\n });\n $(\"a#cancel.action-timeline-refresh\").show();\n $('.refresh-message').text(\"Continue to the next round or close this message if you want to finish your current action first.\");\n } else {\n $(\"#timeline-refresh\").modal('open', {\n dismissible: false\n });\n $(\"a#cancel.action-timeline-refresh\").hide();\n avatar_name = $('.refresh-message').data('profile-name');\n $('.refresh-message').text(\"Well done \" + avatar_name + \". Time's up for this mission round. Press continue to start your next objective for this mission. Good luck agent!\");\n }\n }\n });\n } else {\n $(this).countdown({\n until: diff,\n compact: true,\n layout: '{hnn}h {mnn}m {snn}s {desc}',\n format: 'HMS',\n description: '',\n onExpiry: function(event) {\n var avatar_name;\n if ($(\"#add-idea:visible\").length > 0) {\n $(\"#timeline-refresh\").modal('open', {\n dismissible: true\n });\n $(\"a#cancel.action-timeline-refresh\").show();\n $('.refresh-message').text(\"Continue to the next round or close this message if you want to finish your current action first.\");\n } else {\n $(\"#timeline-refresh\").modal('open', {\n dismissible: false\n });\n $(\"a#cancel.action-timeline-refresh\").hide();\n avatar_name = $('.refresh-message').data('profile-name');\n $('.refresh-message').text(\"Well done \" + avatar_name + \". Time's up for this mission round. Press continue to start your next objective for this mission. Good luck agent!\");\n }\n }\n });\n }\n return i++;\n });\n return i = 0;\n };\n toggle_user_invite_select = function() {\n var dummy, id, ref;\n element = $(this);\n ref = element.attr('id').split('-'), dummy = ref[0], id = ref[1];\n if (element.text() === \"add_circle_outline\") {\n element.text(\"check_circle\");\n element.parent().append(\"\");\n element.parent().append(\"\");\n } else {\n element.text(\"add_circle_outline\");\n $(\"#user-name-\" + id).remove();\n $(\"#user-email-\" + id).remove();\n }\n };\n on_input = function(input) {\n var end, start;\n start = input.selectionStart;\n end = input.selectionEnd;\n input.value = input.value.toLowerCase();\n input.setSelectionRange(start, end);\n };\n $(\"#Email\").on('input', function() {\n return on_input($(this)[0]);\n });\n $.expr[\":\"].contains = $.expr.createPseudo(function(arg) {\n return function(elem) {\n return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;\n };\n });\n $(\"#am-search-user\").keyup(function() {\n var filter;\n filter = $(this).val();\n $('table#invited-table tr').not(\":contains(\" + filter + \")\").fadeOut();\n $(\"table#invited-table tr:contains(\" + filter + \")\").show();\n });\n $('#close-btn').on(\"click\", function() {\n return $('#open-board').css(\"display\", \"none\");\n });\n $(\"#add-invite\").on(\"click\", function() {\n var cell1, cell2, cell3, elems, email, id, length, name, row;\n name = $(\"#Name\").val();\n email = $(\"#Email\").val().toLowerCase();\n email = email.toLowerCase();\n if (name && email) {\n console.log(name + \" \" + email);\n $(\"#Name\").val(\"\");\n $(\"#Email\").val(\"\");\n id = length = $(\"#invited-table tr\").length;\n row = $(\"#invited-table\").find('tbody')[0].insertRow();\n cell1 = row.insertCell(0);\n cell2 = row.insertCell(1);\n cell3 = row.insertCell(2);\n cell1.innerHTML = name;\n cell2.innerHTML = email;\n elems = [\"check_circle\"];\n elems.push(\"\");\n elems.push(\"\");\n cell3.innerHTML = elems.join('');\n return $(\"#usernew-\" + length).click(toggle_user_invite_select);\n } else {\n $('.toast').remove();\n return Materialize.toast(\"Please enter Name and Email.\", 2000);\n }\n });\n $('.user-invite-add').click(toggle_user_invite_select);\n $(\"#add-csv\").change(function() {\n var file, reader;\n file = $('#add-csv')[0].files[0];\n reader = new FileReader();\n reader.readAsText(file);\n return reader.onload = function(ee) {\n var cell1, cell2, cell3, data, elems, email, id, imported_data, length, name, results, row;\n imported_data = Papa.parse(ee.target.result, {}).data;\n data = 1;\n results = [];\n while (data) {\n data = imported_data.shift();\n if (validateEmail(data[0]) || validateEmail(data[1])) {\n id = length = $(\"#invited-table tr\").length;\n row = $(\"#invited-table\").find('tbody')[0].insertRow();\n cell1 = row.insertCell(0);\n cell2 = row.insertCell(1);\n cell3 = row.insertCell(2);\n name = data[0];\n email = data[1].toLowerCase();\n cell1.innerHTML = name;\n cell2.innerHTML = email;\n elems = [\"check_circle\"];\n elems.push(\"\");\n elems.push(\"\");\n cell3.innerHTML = elems.join('');\n results.push($(\"#usernew-\" + length).click(toggle_user_invite_select));\n } else {\n results.push(void 0);\n }\n }\n return results;\n };\n });\n validateEmail = function(email) {\n var re;\n re = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n return re.test(email);\n };\n set_date_start = function(date) {\n return $(\"#start_date\").pickadate({\n format: 'dd/mm/yyyy',\n selectMonths: true,\n selectYears: 15,\n firstDay: 1\n }).val(date);\n };\n set_date_end = function(date) {\n return $(\"#end_date\").pickadate({\n format: 'dd/mm/yyyy',\n selectMonths: true,\n selectYears: 15,\n firstDay: 1\n }).val(date);\n };\n ajax_ready();\n return document.addEventListener('ajax:complete', ajax_ready);\n};\n\n$(document).ready(application_ready);\n","import Tribute from \"tributejs\";\nimport tablesorter from 'tablesorter';\nimport { tinymce_settings } from \"../shared/tinymce\";\n\nvar calcForColumnWidth = () => {\n const windowWidth = window.innerWidth;\n const sideDrawerWidth = $(\".sideDrawer\").innerWidth();\n const addingColWidth = $(\".addingCol\").innerWidth();\n const mainColsWidth = windowWidth - (sideDrawerWidth + addingColWidth);\n $(\".overflowCol\").width(mainColsWidth);\n};\n\nvar columnName = {\n \"category-column-2\": \"Category B\",\n \"category-column-3\": \"Category C\",\n \"category-column-4\": \"Category D\",\n \"category-column-5\": \"Category E\",\n};\nvar tmpColDelete = [];\n\nwindow.toggle_user_new_invite_select = function () {\n var dummy, id, ref;\n (ref = $(this).attr(\"id\").split(\"_\")),\n (dummy = ref[0]),\n (dummy = ref[1]),\n (id = ref[2]);\n if ($(this).prop(\"checked\") === true) {\n $(this).text(\"check_circle\");\n $(this)\n .parent()\n .append(\n \"\"\n );\n $(this)\n .parent()\n .append(\n \"\"\n );\n } else {\n $(\"#user-name-\" + id).remove();\n $(\"#user-email-\" + id).remove();\n }\n};\n\nfunction tribute_mention() {\n var outer_div = $(\"#idea-view-modal\");\n var tribute = new Tribute({\n values: function (search, cb) {\n getUsernames(search, (users) => cb(users));\n },\n selectClass: \"element-hover\",\n itemClass: \"main_tribute_li\",\n menuItemTemplate: function (item) {\n return (\n '' +\n \" \" +\n \" @\" +\n item.original.key +\n \"\"\n );\n },\n });\n if (outer_div.find(\".mention\").length > 0) {\n tribute.attach(outer_div.find(\".mention\"));\n }\n}\n\nfunction getUsernames(query, callback) {\n if (query.length < 1) {\n return false;\n } else {\n return $.getJSON(\n \"/mentions\",\n {\n q: query,\n board: $(\".mention\").data(\"mission-id\"),\n },\n function (data) {\n if (data) {\n callback(data);\n } else {\n callback([]);\n }\n }\n );\n }\n}\n\nfunction updateCols() {\n const columnWidth = 270;\n //const columnWidth = 100;\n const latestChildern = $(\".number-row\").children();\n for (var i = 0; i <= latestChildern.length; i++) {\n const ele = latestChildern[i];\n if (ele && !(ele instanceof HTMLScriptElement)) {\n $(ele).addClass(\"boards-category-column\");\n $(ele).fadeIn(1000);\n } else if(ele instanceof HTMLScriptElement) {\n ele.style.display = \"none\";\n }\n }\n}\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n board_ready();\n tribute_mention();\n if ($(\"#mission_funnel_id\").val() == \"\") {\n $(\".modal\").modal();\n return setTimeout(function () {\n $(\"#setting-modal.modal\").modal(\"open\");\n }, 50);\n }\n});\n\nwindow.board_ready = function () {\n $(document).mouseup(function (e) {\n var container = $(\"#setting-modal.modal\");\n if (!container.is(e.target) && container.has(e.target).length === 0) {\n if ($(\"#mission_funnel_id\").val() == \"\") {\n $(\".toast\").remove();\n Materialize.toast(\"Please select funnel\", 2000);\n $(\".modal\").modal();\n return setTimeout(function () {\n if ($(\"#setting-modal\").length > 0) {\n $(\"#setting-modal.modal\").modal(\"open\");\n }\n }, 50);\n }\n // else if ($(\"#mission_department_id\").val() == \"\") {\n // $(\".toast\").remove();\n // //Materialize.toast(\"Department can not be empty!.\", 2000);\n // $(\".modal\").modal();\n // return setTimeout(function () {\n // if ($(\"#setting-modal\").length > 0) {\n // $(\"#setting-modal.modal\").modal(\"open\");\n // }\n // }, 50);\n // }\n }\n });\n\n $(document).on(\"click\", \"#myCheckbox-main-Section1\", function (e) {\n if (this.checked === false) {\n $(\"#mission-table-Section1 input:checkbox:checked\").each(function () {\n this.checked = false;\n });\n } else {\n $(\"#mission-table-Section1 input:visible:checkbox:not(:checked)\").each(\n function () {\n this.checked = true;\n }\n );\n }\n });\n\n $(\"#myCheckbox-main-Section-manage-agents\").on(\"click\", function () {\n if (this.checked === false) {\n $(\"#mission-table-Section-manage-agents input:checkbox:checked\").each(\n function () {\n this.checked = false;\n }\n );\n } else {\n $(\n \"#mission-table-Section-manage-agents input:visible:checkbox:not(:checked)\"\n ).each(function () {\n this.checked = true;\n });\n }\n });\n\n $(\"#mission-table-Section1\").tablesorter();\n $(\"#mission-table-Section2\").tablesorter();\n\n $(\".edit-board-category\").off(\"click\");\n $(\".edit-board-category\").click(function () {\n var category_value = $(this).parent().data(\"category\");\n $(this).parent().next().css(\"display\", \"flex\");\n $(this).parent().next().css(\"align-items\", \"center\");\n $(this).parent().next().find(\".category_title\").val(category_value);\n $(this).parent().css(\"display\", \"none\");\n });\n\n $(\".close-category\").off(\"click\");\n $(\".close-category\").click(function () {\n $(this).parent().css(\"display\", \"none\");\n $(this).parent().parent().find(\".category-drag\").css(\"display\", \"flex\");\n });\n\n $(\".board-idea-item\").off(\"click\");\n $(\".board-idea-item\").click(function () {\n event.stopPropagation();\n });\n\n $(\"#copy-to-inbox-button\").off(\"change\");\n $(\"#copy-to-inbox-button\").click(function () {\n var inbox_id = $(\"#copy-to-inbox-select-tag\").val();\n var selected_ids;\n var board_id = $(\"#board_id\").val();\n var action_url = \"/boards/\" + board_id + \"/ideas/copy_to_inbox\";\n selected_ids = $(\".card-check:checked\").map(function () {\n return $(this).data(\"idea-id\");\n });\n return $.ajax({\n type: \"POST\",\n url: action_url,\n data: {\n board: { inbox_id: inbox_id, idea_ids: selected_ids.toArray() },\n },\n success: function (data) {\n Materialize.toast(\"Ideas are copied successfully\", 2000);\n return window.location.reload();\n },\n error: function (data) {},\n });\n });\n\n $(\"#copy-to-funnel-select-tag\").off(\"change\");\n $(\"#copy-to-funnel-select-tag\").change(function () {\n var funnel_id = $(this).val();\n var action_url = \"/funnels/funnel_stages\";\n return $.ajax({\n type: \"POST\",\n url: action_url,\n data: {\n funnel: { id: funnel_id},\n },\n success: function (data) {},\n error: function (data) {},\n });\n });\n $(\"#copy-to-funnel-button\").off(\"change\");\n $(\"#copy-to-funnel-button\").click(function () {\n var funnel_id = $(\"#copy-to-funnel-select-tag\").val();\n var funnel_lane_id = $(\"#copy-to-funnel-lane-select-tag\").val();\n if(!funnel_id || !funnel_lane_id) return;\n var selected_ids;\n var board_id = $(\"#board_id\").val();\n var action_url = \"/boards/\" + board_id + \"/ideas/copy_to_funnel\";\n selected_ids = $(\".card-check:checked\").map(function () {\n return $(this).data(\"idea-id\");\n });\n return $.ajax({\n type: \"POST\",\n url: action_url,\n data: {\n board: { funnel_id: funnel_id, funnel_lane_id: funnel_lane_id, idea_ids: selected_ids.toArray() },\n },\n success: function (data) {\n Materialize.toast(\"Ideas are copied successfully\", 2000);\n return window.location.reload();\n },\n error: function (data) {},\n });\n });\n\n $(\".add-idea-icon\").off(\"click\");\n $(\".add-idea-icon\").on(\"click\", function (e) {\n var text, comment_url;\n text = $(this)\n .parent()\n .parent()\n .children(\".category-title\")\n .children(\".category-drag\")\n .children(\".title\")\n .text();\n e.preventDefault();\n comment_url = $(\".idea-add\").data(\"url\");\n return $.ajax({\n type: \"GET\",\n url: comment_url,\n dataType: \"script\",\n data: { text_value: text },\n });\n });\n\n $(\"#board_action_dropdown\").off(\"change\");\n $(\"#board_action_dropdown\").change(function () {\n if ($(this).val() != \"\") {\n var selected_ids;\n var board_id = $(\"#board_id\").val();\n selected_ids = $(\".card-check:checked\").map(function () {\n return $(this).data(\"idea-id\");\n });\n var all_deletable = $(\".card-check:checked\").map(function () {\n return $(this).data(\"deletable\");\n });\n if (selected_ids.length > 0) {\n if ($(this).val() == 0) {\n $(\"#copy-to-inbox-list\").modal(\"open\");\n } else if ($(this).val() == 1) {\n if (confirm(\"Are you sure want to delete?\")) {\n ideas_actions(\n \"/boards/\" + board_id + \"/ideas/delete_board_ideas\",\n selected_ids,\n \"DELETE\"\n );\n }\n // if (all_deletable.toArray().includes(false)) {\n // Materialize.toast(\n // \"You have selected ideas of other users, you cant delete those\",\n // 5000\n // );\n // } else if (confirm(\"Are you sure want to delete?\")) {\n // ideas_actions(\n // \"/boards/\" + board_id + \"/ideas/delete_board_ideas\",\n // selected_ids,\n // \"DELETE\"\n // );\n // }\n } else if ($(this).val() == 2) {\n $(\"#copy-to-funnel-list\").modal(\"open\");\n }\n } else Materialize.toast(\"Please select items first\", 5000);\n }\n });\n\n $(\".edit-board-title\").off(\"click\");\n $(\".edit-board-title\").click(function () {\n var title_value = $(this).parent().find(\"h6\").data(\"title\");\n $(this).parent().next().css(\"display\", \"block\");\n $(this).parent().next().find(\".board_title\").val(title_value);\n $(this).parent().css(\"display\", \"none\");\n });\n\n $(\".sidenav-edit-board-description\").off(\"click\");\n $(\".sidenav-edit-board-description\").click(function () {\n $(this).parent().next().css(\"display\", \"block\");\n $(this).parent().css(\"display\", \"none\");\n });\n\n $(\".sidenav-edit-board-title\").off(\"click\");\n $(\".sidenav-edit-board-title\").click(function () {\n title_value = $(this).parent().find(\"p\").data(\"sidenav-board-title\");\n $(this).parent().next().css(\"display\", \"block\");\n $(this).parent().next().find(\".sidenav_board_title\").val(title_value);\n $(this).parent().css(\"display\", \"none\");\n });\n\n $(\".save-close\").off(\"click\");\n $(\".save-close\").click(function () {\n if ($(\"#mission_funnel_id\").val() == \"\") {\n $(\".toast\").remove();\n Materialize.toast(\"Funnel can not be empty.\", 2000);\n $(\".modal\").modal();\n return setTimeout(function () {\n if ($(\"#setting-modal\").length > 0) {\n $(\"#setting-modal.modal\").modal(\"open\", {\n dismissible: false,\n });\n }\n }, 50);\n }\n // else if ($(\"#mission_department_id\").val() == \"\") {\n // $(\".toast\").remove();\n // Materialize.toast(\"Department can not be empty.\", 2000);\n // $(\".modal\").modal();\n // return setTimeout(function () {\n // if ($(\"#setting-modal\").length > 0) {\n // $(\"#setting-modal.modal\").modal(\"open\", {\n // dismissible: false,\n // });\n // }\n // }, 50);}\n else {\n $(\".edit_board_form\").submit();\n setTimeout(function() {\n window.location.reload();\n }, 1000); // Reload after 1 second (1000 milliseconds)\n }\n });\n\n $(\".sidenav_board_title\").off(\"change\");\n $(\".sidenav_board_title\").change(function () {\n element = $(this);\n $.ajax({\n type: \"PUT\",\n url: element.data(\"url\"),\n data: {\n board: { title: element.val() },\n },\n success: function (data) {\n element\n .parent()\n .parent()\n .find(\".sidenav-board-title\")\n .css(\"display\", \"flex\");\n element.parent().css(\"display\", \"none\");\n element\n .parent()\n .parent()\n .find(\".sidenav-board-title\")\n .find(\"p\")\n .text(element.val());\n },\n error: function (data) {},\n });\n });\n\n $(\".save-sidenav-board-description\").off(\"click\");\n $(\".save-sidenav-board-description\").click(function () {\n element = $(this);\n value = $(\"#board-description\").val();\n $.ajax({\n type: \"PUT\",\n url: element.data(\"url\"),\n data: {\n description: value,\n },\n success: function (data) {\n element\n .parent()\n .parent()\n .find(\".sidenav-board-description\")\n .css(\"display\", \"flex\");\n element.parent().css(\"display\", \"none\");\n element\n .parent()\n .parent()\n .find(\".sidenav-board-description\")\n .find(\"span\")\n .text(value);\n },\n error: function (data) {},\n });\n });\n\n $(\".edit-round-title\").off(\"click\");\n $(\".edit-round-title\").click(function () {\n title_value = $(this).parent().find(\"h6\").data(\"title\");\n $(this).parent().next().css(\"display\", \"block\");\n $(this).parent().next().find(\".round_title\").val(title_value);\n $(this).parent().css(\"display\", \"none\");\n });\n\n $(\".category_title\").off(\"change\");\n $(\".category_title\").change(function () {\n var element = $(this);\n var mission_board_id = $(\"#board_id\").val();\n $.ajax({\n type: \"PUT\",\n url: element.data(\"url\"),\n data: {\n title: element.val(),\n board_id: mission_board_id,\n },\n success: function (data) {\n element.parent().parent().find(\".category-drag\").css(\"display\", \"flex\");\n element.parent().css(\"display\", \"none\");\n element\n .parent()\n .parent()\n .find(\".category-drag\")\n .data(\"category\", element.val());\n element\n .parent()\n .parent()\n .find(\".category-drag\")\n .find(\".title\")\n .text(element.val());\n element\n .parent()\n .parent()\n .find(\".category-drag\")\n .find(\"h6\")\n .addClass(\"truncate-column-text\");\n },\n error: function (data) {},\n });\n });\n\n $(\".round_title\").off(\"change\");\n $(\".round_title\").change(function () {\n var element = $(this);\n mission_board_id = $(\"#board_id\").val();\n $.ajax({\n type: \"PUT\",\n url: element.data(\"url\"),\n dataType: \"script\",\n data: { round: { title: element.val() }, board_id: mission_board_id },\n success: function (data) {\n element\n .parent()\n .parent()\n .find(\".category-heading\")\n .css(\"display\", \"flex\");\n element.parent().css(\"display\", \"none\");\n element\n .parent()\n .parent()\n .find(\".category-heading\")\n .find(\"h6\")\n .text(element.val());\n },\n error: function (data) {},\n });\n });\n\n $(\".sortable-cats\").sortable({\n //connectWith: '.overflowCol',\n tolerance: \"pointer\",\n start: function (event, ui) {\n $(ui.item).removeClass(\"boards-category-column\");\n $(ui.item).css(\"width\", \"100px\");\n },\n stop: function (event, ui) {\n $(ui.item).addClass(\"boards-category-column\");\n var all_elements,\n board_id,\n i,\n idea_id,\n cat_with_position,\n cats_with_positions;\n board_id = $(\"#board_id\").val();\n cats_with_positions = [];\n all_elements = ui.item.parent().children();\n i = 0;\n while (i < all_elements.length) {\n cat_with_position = [];\n cat_with_position.push(i);\n cat_with_position.push(all_elements[i].dataset.id);\n cats_with_positions.push(cat_with_position);\n i++;\n }\n return $.ajax({\n type: \"POST\",\n url: \"/boards/\" + board_id + \"/sort_board_cats\",\n data: {\n id: board_id,\n cats_with_positions: cats_with_positions,\n },\n success: function (data) {},\n });\n },\n });\n\n $(\".sortable-ideas\").sortable({\n connectWith: \".idea-column-body\",\n placeholder: \"placeholder\",\n tolerance: \"pointer\",\n scroll: true,\n stop: function (event, ui) {\n var all_elements,\n board_id,\n i,\n idea_id,\n idea_with_position,\n ideas_with_positions,\n category_id;\n category_id = ui.item.parent().data(\"category-id\");\n idea_id = ui.item.data(\"idea-id\");\n board_id = $(\"#board_id\").val();\n ideas_with_positions = [];\n all_elements = ui.item.parent().children();\n i = 0;\n while (i < all_elements.length) {\n idea_with_position = [];\n idea_with_position.push(i);\n idea_with_position.push(all_elements[i].dataset.ideaId);\n ideas_with_positions.push(idea_with_position);\n i++;\n }\n return $.ajax({\n type: \"POST\",\n url: \"/boards/\" + board_id + \"/sort_board_ideas\",\n data: {\n category_id: category_id,\n idea_id: idea_id,\n ideas_with_positions: ideas_with_positions,\n },\n headers: {\n \"X-CSRF-Token\": $(\"meta[name='csrf-token']\").attr(\"content\") // Add CSRF token here\n },\n success: function (data) {\n // Handle success\n },\n error: function (xhr, status, error) {\n console.error(error); // Handle error\n },\n });\n },\n });\n\n $(\".sort-icon\").off(\"click\");\n $(\".sort-icon\").on(\"click\", function () {\n var all_elements,\n board_id,\n i,\n idea_id,\n category_text,\n ideas_with_positions,\n category_id,\n category_text;\n category_id = $(\".board-li\").data(\"category-id\");\n idea_id = $(\".board-li\").data(\"idea-id\");\n board_id = $(\"#board_id\").val();\n category_text = $(this)\n .first()\n .parent()\n .parent()\n .children(\".category-drag\")\n .find(\".title\")\n .text();\n ideas_with_positions = [];\n all_elements = $(this)\n .parents(\".category-column-width\")\n .find(\".sortable-ideas li\");\n i = 0;\n while (i < all_elements.length) {\n ideas_with_positions.push(all_elements[i].dataset.ideaId);\n i++;\n }\n return $.ajax({\n type: \"POST\",\n url: \"/boards/\" + board_id + \"/sort_idea_on_likes\",\n data: {\n sort_params: \"sort_desc\",\n category_id: category_id,\n category_text: category_text,\n idea_id: idea_id,\n ideas_with_positions: ideas_with_positions,\n },\n success: function (data) {},\n });\n });\n\n $(\".reverse_sort\").off(\"click\");\n $(\".reverse_sort\").on(\"click\", function () {\n var all_elements,\n board_id,\n i,\n idea_id,\n category_text,\n ideas_with_positions,\n category_id,\n category_text;\n category_id = $(\".board-li\").data(\"category-id\");\n idea_id = $(\".board-li\").data(\"idea-id\");\n board_id = $(\"#board_id\").val();\n category_text = $(this)\n .first()\n .parent()\n .parent()\n .children(\".category-drag\")\n .find(\".title\")\n .text();\n ideas_with_positions = [];\n all_elements = $(this)\n .parents(\".category-column-width\")\n .find(\".sortable-ideas li\");\n i = 0;\n while (i < all_elements.length) {\n ideas_with_positions.push(all_elements[i].dataset.ideaId);\n i++;\n }\n return $.ajax({\n type: \"POST\",\n url: \"/boards/\" + board_id + \"/sort_idea_on_likes\",\n data: {\n sort_params: \"sort_asc\",\n category_id: category_id,\n category_text: category_text,\n idea_id: idea_id,\n ideas_with_positions: ideas_with_positions,\n },\n success: function (data) {},\n });\n });\n\n $(\".board_title\").off(\"change\");\n $(\".board_title\").change(function () {\n var element = $(this);\n $.ajax({\n type: \"PUT\",\n url: element.data(\"url\"),\n data: {\n //board: {title: element.val()}\n mission: { title: element.val() },\n },\n success: function (data) {\n element\n .parent()\n .parent()\n .find(\".category-heading\")\n .css(\"display\", \"flex\");\n element.parent().css(\"display\", \"none\");\n element\n .parent()\n .parent()\n .find(\".category-heading\")\n .find(\"h6\")\n .text(element.val());\n element\n .parent()\n .parent()\n .find(\".category-heading\")\n .find(\"h6\")\n .addClass(\"truncate-text\");\n },\n error: function (data) {},\n });\n });\n\n $(\".update-status-checkbox\").off(\"change\");\n $(\".update-status-checkbox\").on(\"change\", function () {\n $(this).parents(\"form:first\").submit();\n });\n\n $(\".remove-agents-btn\").off(\"click\");\n $(\".remove-agents-btn\").on(\"click\", function () {\n var board_id, selected_ids;\n selected_ids = $(\".filled-in:checkbox:checked\").map(function () {\n return $(this).val();\n });\n if (selected_ids.length > 0) {\n if (\n confirm(\n \"The users/groups you have selected will be removed from the board.\\n Do you want to continue?\"\n )\n ) {\n board_id = $(\"#board_id\").val();\n $.ajax({\n type: \"DELETE\",\n url: \"/boards/\" + board_id + \"/board_invites/remove_board_invites\",\n data: {\n invite_ids: selected_ids.toArray(),\n },\n success: function (data) {},\n error: function (data) {},\n });\n }\n } else {\n return Materialize.toast(\"You need to select agents first\", 5000);\n }\n });\n\n $(\"#board_agent_actions\").off(\"change\");\n $(\"#board_agent_actions\").on(\"change\", function (e) {\n var force_accept_path, root_path, board_action, selected_ids;\n //$(document).find('#mission-table-Section1').remove()\n if (\n $(\"#mission-table-Section5 input:checkbox:checked:visible\").length > 0\n ) {\n selected_ids = $(\"#mission-table-Section5 input:checkbox:checked\").map(\n function () {\n return $(this).val();\n }\n );\n board_action = $(\"#board_agent_actions\").val();\n board_id = $(\"#board_id\").val();\n if ($(\"#board_agent_actions\").val() === \"0\") {\n //return $('#modal-send-message').modal('open');\n } else if ($(\"#board_agent_actions\").val() === \"1\") {\n return remove_selection_agents(\n \"/boards/\" + board_id + \"/board_invites/resend_invites\",\n selected_ids.toArray(),\n \"POST\"\n );\n } else if ($(\"#board_agent_actions\").val() === \"2\") {\n return remove_selection_agents(\n \"/boards/\" + board_id + \"/board_invites/force_accept_all\",\n selected_ids.toArray(),\n \"POST\"\n );\n } else if ($(\"#board_agent_actions\").val() === \"3\") {\n if (\n confirm(\n \"The users/groups you have selected will be removed from the inbox.\\n Do you want to continue?\"\n )\n )\n return remove_selection_agents(\n \"/boards/\" + board_id + \"/board_invites/remove_board_invites\",\n selected_ids.toArray(),\n \"DELETE\"\n );\n }\n } else {\n return Materialize.toast(\"Please Select Agents.\", 2000);\n }\n });\n\n $(document).on(\"keyup\", \"#search-participant\", function () {\n var filter;\n filter = $(this).val();\n $(\"table#mission-table-Section2 tbody tr\")\n .not(\":contains(\" + filter + \")\")\n .fadeOut();\n $(\"table#mission-table-Section2 tbody tr:contains(\" + filter + \")\").show();\n });\n\n $(\"#add-board-invite\").off(\"click\");\n $(\"#add-board-invite\").on(\"click\", function () {\n var cell1, cell2, cell3, cell4, elems, email, id, length, name, row;\n name = $(\"#Name\").val();\n email = $(\"#Email\").val().toLowerCase();\n email = email.toLowerCase();\n if (!!name && !!email) {\n console.log(name + \" \" + email);\n $(\"#Name\").val(\"\");\n $(\"#Email\").val(\"\");\n id = length = $(\"#mission-table-Section2 tr\").length;\n row = $(\"#mission-table-Section2\").find(\"tbody\")[0].insertRow();\n row.className = \"table-row\";\n cell1 = row.insertCell(0);\n cell2 = row.insertCell(1);\n cell3 = row.insertCell(2);\n cell4 = row.insertCell(3);\n cell2.innerHTML = name;\n cell3.className = \"center\";\n cell3.innerHTML = email;\n cell4.className = \"center\";\n cell4.innerHTML = \"Pending\";\n elems = [\n \" \",\n ];\n elems.push(\n \"\"\n );\n elems.push(\n \"\"\n );\n cell1.innerHTML = elems.join(\"\");\n return $(\"#checkbox_section1_\" + id).click(toggle_user_new_invite_select);\n } else {\n $(\".toast\").remove();\n return Materialize.toast(\"Please enter Name and Email.\", 2000);\n }\n });\n\n $(\".user-board-invite-new-add\").off(\"click\");\n $(\".user-board-invite-new-add\").click(toggle_user_new_invite_select);\n\n $(\".like-board-idea\").off(\"click\");\n $(\".like-board-idea\").click(function (e) {\n e.stopPropagation();\n var board_id, id, idea, inbox_id, mission, url;\n inbox_id = $(\"#mission_id\").val();\n board_id = $(\"#board_id\").val();\n id = $(\"#idea_id\").val();\n if (!inbox_id && !id) {\n mission = this.getElementsByClassName(\"mission_id\")[0];\n idea = this.getElementsByClassName(\"idea_id\")[0];\n if (!!mission) {\n inbox_id = mission.value;\n }\n if (!!idea) {\n id = idea.value;\n }\n }\n if (!!inbox_id) {\n url = \"/inbox/\" + inbox_id + \"/ideas/\" + id + \"/like_idea\";\n } else {\n url = \"/boards/\" + board_id + \"/ideas/\" + id + \"/like_idea\";\n }\n return $.ajax({\n type: \"POST\",\n url: url,\n data: {},\n success: function (data) {},\n });\n });\n\n $(\".delete-round\").off(\"click\");\n $(\".delete-round\").click(function () {\n number_of_items = $(\"#items-number\").val();\n if (number_of_items >= 1) {\n if (\n confirm(\"This Round has items, do you really want to delete ROUND?\")\n ) {\n }\n }\n });\n\n var readURL;\n\n readURL = function (input) {\n var reader;\n if (input.files && input.files[0]) {\n reader = new FileReader();\n reader.onload = function (e) {\n $(\"#img_prev_settings\").css(\n \"background-image\",\n \"url(\" + e.target.result + \")\"\n );\n };\n reader.readAsDataURL(input.files[0]);\n }\n };\n\n $(\".board-settings\").change(function () {\n $(\"#img_prev_settings\").removeClass(\"hidden\");\n readURL(this);\n });\n\n var readURLNew;\n\n readURLNew = function (input) {\n var reader;\n if (input.files && input.files[0]) {\n reader = new FileReader();\n reader.onload = function (e) {\n $(\"#img_prev_new\").css(\n \"background-image\",\n \"url(\" + e.target.result + \")\"\n );\n };\n reader.readAsDataURL(input.files[0]);\n }\n };\n\n $(\".idea-image-new\").change(function () {\n $(\"#img_prev_new\").removeClass(\"hidden\");\n readURLNew(this);\n });\n\n var readURLEdit;\n\n readURLEdit = function (input) {\n var reader;\n if (input.files && input.files[0]) {\n reader = new FileReader();\n reader.onload = function (e) {\n $(\"#img_prev_edit\").css(\n \"background-image\",\n \"url(\" + e.target.result + \")\"\n );\n };\n reader.readAsDataURL(input.files[0]);\n }\n };\n\n $(\".idea-image-edit\").on(\"change\", function () {\n $(\"#img_prev_edit\").removeClass(\"hidden\");\n readURLEdit(this);\n });\n\n $(\".category_item\").off(\"click\");\n $(\".category_item\").on(\"click\", function (e) {\n var element;\n e.preventDefault();\n const target = e.target;\n if (\n target.matches('.category-likes.black-text.idea-like') ||\n target.matches('.icon.like-funnel-idea.like-idea-blue') ||\n target.matches('.icon.like-funnel-idea.like-idea-blue i')\n ) return;\n element = $(this);\n $(this).find(\".idea_id\").val(element.data(\"id\"));\n return $.ajax({\n url: element.data(\"view-url\"),\n data: {},\n success: function (data) {\n const modalEl = document.querySelector(\"#idea-view-modal\");\n modalEl.querySelector(\".idea-view-content\").innerHTML = data; \n const options = {\n onOpenEnd: (modal, trigger) => {\n $(\"#submit-idea-edit\").on(\"click\", function (e) {\n e.preventDefault();\n if ($(\".idea_title_from_icon\").val() === \"\") {\n $(\".toast\").remove();\n return Materialize.toast(\"All the fields need to be filled.\", 2000);\n } else {\n return $(\"form.idea_submission_form_edit\").trigger(\"submit\");\n }\n });\n $(\".idea-image-edit\").on(\"change\", function () {\n $(\"#img_prev_edit\").removeClass(\"hidden\");\n readURLEdit(this);\n });\n if(modal.querySelector('.tinymce')) {\n tinymce.remove();\n tinymce.init(tinymce_settings);\n }\n } \n }\n \n return setTimeout(function () {\n if ($(\"#card-description\").length > 0) {\n $(\"#add-idea\").css(\"width\", \"80%\");\n // $(\"#card-description.modal\").modal(\"open\");\n const modals = M.Modal.init(document.querySelectorAll(\"#card-description.modal\"), options); \n modals[0].open()\n }\n if ($('select').length > 0 && $.fn.material_select) {\n $('select').material_select();\n }\n }, 50);\n },\n complete: function () {\n tribute_mention();\n },\n });\n });\n\n $(\"#board_users\").off(\"change\");\n $(\"#board_users\").change(function () {\n var element = $(this);\n board_id = $(\"#board_id\").val();\n return $.ajax({\n url: \"/boards/\" + board_id + \"/user_filter\",\n data: { user_id: element.val() },\n success: function (data) {\n return;\n },\n });\n });\n\n $(\".category_item_comments\").off(\"click\");\n $(\".category_item_comments\").on(\"click\", function (e) {\n e.stopPropagation();\n var element;\n e.preventDefault();\n element = $(this);\n $(this).find(\".idea_id\").val(element.data(\"id\"));\n return $.ajax({\n url: element.data(\"view-url\"),\n data: {},\n success: function (data) {\n $(\"#idea-view-modal\").find(\".idea-view-content\").html(data);\n $(\".modal\").modal();\n return setTimeout(function () {\n if ($(\"#card-description\").length > 0) {\n $(\"#card-description.modal\").modal(\"open\");\n }\n if ($('select').length > 0 && $.fn.material_select) {\n $('select').material_select();\n }\n }, 50);\n },\n });\n });\n\n $(\".add-column-button\").off(\"click\");\n $(\".add-column-button\").on(\"click\", function () {\n document.querySelector(\"#addingCategory\").click()\n });\n\n $(\".view-board-from-setting\").off(\"click\");\n $(\".view-board-from-setting\").click(function () {\n $(\".list-div\").hide();\n $(\"#categories_columns\").show();\n $(\".baords-list-view i\").text(\"view_list\");\n $(\"#setting-modal\").modal(\"close\");\n });\n\n $(\".baords-list-view\").off(\"click\");\n $(\".baords-list-view\").click(function () {\n if ($(\".baords-list-view i\").text().trim() == \"view_list\") {\n $(\".list-div\").show();\n $(\"#categories_columns\").hide();\n $(\".baords-list-view i\").text(\"view_module\");\n } else {\n $(\".list-div\").hide();\n $(\"#categories_columns\").show();\n $(\".baords-list-view i\").text(\"view_list\");\n }\n });\n\n $(\".addingCol\").off(\"click\");\n $(\".addingCol\").click(function () {\n const allowedColumn = 30;\n const parentForAppendNewCol = $(\".number-row\");\n const parentForAppendNewColChildern = parentForAppendNewCol.children();\n var length = parentForAppendNewColChildern.length;\n const currentIndex = length;\n let columnId = `category-column-${currentIndex + 1}`;\n \n // Validate tmpColDelete and get the correct columnId\n if (tmpColDelete.length) {\n const deleteId = tmpColDelete[0].split(\"#\")[1];\n if (deleteId) {\n columnId = deleteId;\n }\n }\n \n // Generate the column HTML\n const column = `
0
John Doe
30/9/2020
0
0