{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./frontend/pages/html/jobs/jobs_show.js","webpack:///./frontend/components/html/mixpanel/mixpanel_message.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","document","addEventListener","sidebarApply","stickyApply","footer","pageWrapper","querySelector","submitButtons","querySelectorAll","submitApplicationUrl","dataset","url","jobContentId","jobType","selectedCollegeId","redirectToApplication","mixpanelMessage","location","href","buttonInView","entries","observer","forEach","entry","isIntersecting","classList","add","remove","footerInView","window","mobileWidth","innerWidth","IntersectionObserver","observe","btn","message","options","arguments","length","undefined","mixpanel","track"],"mappings":"aACE,IAAIA,EAAmB,CAAC,EAGxB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,CAAC,GAUX,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,OACf,CAIAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,GAEhE,EAGAZ,EAAoBkB,EAAI,SAAShB,GACX,qBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,GACvD,EAOArB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/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,SAAQ,SAAAC,GACVA,EAAMC,eACRrB,EAAYsB,UAAUC,IAAI,aAE1BvB,EAAYsB,UAAUE,OAAO,YAEjC,GACF,CAtCItB,IACFwB,OAAO5B,iBAAiB,UAuC1B,WACE,IAAM6B,EAAc,IAEpB,GADiBD,OAAOE,YAAcD,EACxB,CACK,IAAIE,qBAAqBb,GACjCc,QAAQ/B,GACM,IAAI8B,qBAAqBJ,GACjCK,QAAQ7B,EACzB,CACF,IA/CEF,EAAeG,EAAYC,cAAc,gEACzCH,EAAcE,EAAYC,cAAc,gCACxCF,EAASJ,SAASM,cAAc,4BAGlCC,EAAce,SAAQ,SAACY,GACrBA,EAAIjC,iBAAiB,QAASc,EAChC,GAyCF,G,iCC/DO,SAASC,EAAgBmB,GAA0B,IAAjBC,EAAOC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,KACzB,qBAAbG,UACTA,SAASC,MAAMN,EAASC,EAE5B,CANA,iC","file":"js/job_show_page-ad3148b70824c007813d.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 324);\n","import './jobs_show.scss';\nimport { mixpanelMessage } from '../../../components/html/mixpanel/mixpanel_message.js'\n\n\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n  const pageWrapper = document.querySelector('.jobs');\n  const submitButtons = document.querySelectorAll('#submit-application');\n  const submitApplicationUrl = pageWrapper.dataset.url;\n  const jobContentId = pageWrapper.dataset.jobContentId;\n  const jobType = pageWrapper.dataset.jobType;\n  const selectedCollegeId = pageWrapper.dataset.selectedCollegeId;\n  let sidebarApply,\n      stickyApply,\n      footer;\n\n  if (pageWrapper) {\n    window.addEventListener('scroll', checkWindowWidth);\n    sidebarApply = pageWrapper.querySelector('.mobile .jobs--wrapper--sidebar--wrapper--item--button.first');\n    stickyApply = pageWrapper.querySelector('.jobs--wrapper--apply-button');\n    footer = document.querySelector('#main-wrapper > .footer');\n  }\n\n  submitButtons.forEach((btn) => {\n    btn.addEventListener('click', redirectToApplication)\n  })\n\n  function redirectToApplication() {\n    mixpanelMessage('Jobs --> Click Apply Now',\n      {\n        jobContentId, jobType, selectedCollegeId\n      }\n    );\n    location.href = submitApplicationUrl;\n  }\n\n  function buttonInView(entries, observer) {\n    entries.forEach(entry => {\n      if (entry.isIntersecting) {\n        stickyApply.classList.add('hide');\n      } else {\n        stickyApply.classList.remove('hide');\n      }\n    });\n  }\n\n  function footerInView(entries, observer) {\n    entries.forEach(entry => {\n      if (entry.isIntersecting) {\n        stickyApply.classList.add('hard-hide');\n      } else {\n        stickyApply.classList.remove('hard-hide');\n      }\n    });\n  }\n\n  function checkWindowWidth() {\n    const mobileWidth = 991;\n    const isMobile = window.innerWidth <= mobileWidth;\n    if (isMobile) {\n      const observer = new IntersectionObserver(buttonInView);\n      observer.observe(sidebarApply);\n      const footerObserver = new IntersectionObserver(footerInView);\n      footerObserver.observe(footer);\n    }\n  }\n});\n","// import './mixpanel.js'\n\nexport function mixpanelMessage(message, options = null) {\n  if (typeof mixpanel !== \"undefined\") {\n    mixpanel.track(message, options);\n  }\n}"],"sourceRoot":""}