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AqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEhDA;UACA;UACA;UACA;UACA","sources":["webpack://metronic/./scripts/pages/Jobs/FindJob.ts","webpack://metronic/webpack/bootstrap","webpack://metronic/webpack/runtime/chunk loaded","webpack://metronic/webpack/runtime/hasOwnProperty shorthand","webpack://metronic/webpack/runtime/node module decorator","webpack://metronic/webpack/runtime/jsonp chunk loading","webpack://metronic/webpack/before-startup","webpack://metronic/webpack/startup","webpack://metronic/webpack/after-startup"],"sourcesContent":["import { baseAPIUrl, httpPostHandleResponse, baseWebUrl, sweetAlert, AlertType, AlertTitle } from \"../../utils/common\";\r\nimport { Loader } from \"../../services/loaderService\";\r\nimport http, { GetToken } from \"../../services/httpService\";\r\nimport { AxiosResponse } from \"axios\";\r\nimport { PartialJobSearch } from \"../Jobs/_PartialJobSearch\";\r\n\r\n\r\nclass Constants {\r\n readonly controller: string = baseAPIUrl() ? `${baseAPIUrl()}/JobPosting` : '/JobPosting';\r\n readonly LoginController: string = baseWebUrl() ? `${baseWebUrl()}/Account` : '/Account';\r\n readonly controllerCandidate: string = baseAPIUrl() ? `${baseAPIUrl()}/Candidate` : '/Candidate';\r\n\r\n readonly btnjobmodal: string = \"#btnjobmodal\";\r\n readonly btnModalCross: string = \"#btnModalCross\";\r\n readonly btnJobApply: string = \"#btnJobApply\";\r\n readonly btnJobSave: string = \"#btnJobSave\";\r\n\r\n}\r\n\r\nclass FindJob {\r\n\r\n loader: Loader = new Loader();\r\n constants: Constants = new Constants();\r\n PartialJobSearch: PartialJobSearch;\r\n $btnjobmodal: JQuery;\r\n $btnModalCross: JQuery;\r\n $btnJobApply: JQuery;\r\n $btnJobSave: JQuery;\r\n\r\n constructor() {\r\n\r\n this.Init();\r\n }\r\n\r\n private Init = async () => {\r\n\r\n this.PartialJobSearch = new PartialJobSearch();\r\n this.loader.showLoader();\r\n this.BindEvent();\r\n this.loader.hideLoader()\r\n }\r\n\r\n private BindEvent = async () => {\r\n this.$btnModalCross = $(this.constants.btnModalCross);\r\n this.$btnjobmodal = $(this.constants.btnjobmodal);\r\n this.$btnJobApply = $(this.constants.btnJobApply);\r\n this.$btnJobApply.on('click', this.assignJobs);\r\n this.$btnModalCross.on('click', this.jobmodalhide);\r\n this.$btnjobmodal.on('click', this.jobmodalhide);\r\n\r\n this.$btnJobSave = $(this.constants.btnJobSave);\r\n this.$btnJobSave.on('click', this.saveJob);\r\n\r\n }\r\n\r\n private assignJobs = async () => {\r\n\r\n GetToken();\r\n\r\n const id = $('#hfJobId').val();\r\n let data: any\r\n , response: AxiosResponse;\r\n\r\n response = await http.get(this.constants.controllerCandidate + \"/CheckCandidateBasicInfoExists\");\r\n data = httpPostHandleResponse(response);\r\n\r\n if (data) {\r\n let data2: any\r\n , response2: AxiosResponse;\r\n response2 = await http.post(this.constants.controller + \"/CandidateJobs/\" + id);\r\n data2 = httpPostHandleResponse(response2);\r\n if (data2) {\r\n sweetAlert(AlertType.Success, AlertTitle.Success, \"Successfully Applied For This Job\");\r\n }\r\n }\r\n\r\n //window.location.href = (this.constants.LoginController + \"/Login?JobId=\" + $('#hfJobId').val() );\r\n }\r\n\r\n private saveJob = async () => {\r\n\r\n GetToken();\r\n const id = $('#hfJobId').val();\r\n let data: any\r\n , response: AxiosResponse;\r\n response = await http.post(this.constants.controller + \"/SavedCandidateJobs/\" + id);\r\n data = httpPostHandleResponse(response);\r\n if (data) {\r\n sweetAlert(AlertType.Success, AlertTitle.Success, \"Job Saved Successfully \");\r\n }\r\n\r\n //window.location.href = (this.constants.LoginController + \"/Login?JobId=\" + $('#hfJobId').val());\r\n }\r\n\r\n private jobmodalhide = async () => {\r\n console.log(3);\r\n const modal: any = $('#viewJobDetail');\r\n modal.modal('hide');\r\n }\r\n}\r\n\r\n$(() => new FindJob());","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"js/pages/Jobs/FindJob\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkmetronic\"] = self[\"webpackChunkmetronic\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"js/pages/shared\"], () => (__webpack_require__(\"./scripts/pages/Jobs/FindJob.ts\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}