{"version":3,"file":"elements-careers.js","mappings":"gHAcE,SAAmBA,EAAQC,EAAWC,GAChCF,EAAOG,iBACTH,EAAOG,iBAAiB,UAAWD,GAAc,GACxCF,EAAOI,aAChBJ,EAAOI,YAAY,YAAkBF,EAEzC,CAEAG,CAAUL,OAAQ,GArBlB,SAAwBM,GACtB,IACE,IAAIC,EAAUC,KAAKC,MAAMH,EAAMI,KACjC,CAAE,MAAOC,GACP,MACF,CAEA,GAAuB,aAAnBJ,EAAQK,OAAuB,CACjC,MAAMC,EAASC,SAASP,EAAQM,OAAQ,IAAM,EAC9CE,SAASC,eAAe,mBAAmBC,MAAMJ,OAASA,EAAS,IAAM,IAC3E,CACF,G","sources":["webpack://silverstripe-base/./themes/app/src/elements/careers.js"],"sourcesContent":["const hrmFrameResize = function () {\n function receiveMessage(event) {\n try {\n var request = JSON.parse(event.data);\n } catch (e) {\n return;\n }\n\n if (request.action === \"resizeMe\") {\n const height = parseInt(request.height, 10) + 0;\n document.getElementById(\"iframeHeightDiv\").style.height = height + 100 + \"px\";\n }\n }\n\n function bindEvent(window, eventName, eventHandler) {\n if (window.addEventListener) {\n window.addEventListener(\"message\", eventHandler, false);\n } else if (window.attachEvent) {\n window.attachEvent(\"on\" + eventName, eventHandler);\n }\n }\n\n bindEvent(window, \"message\", receiveMessage);\n};\n\nhrmFrameResize();\n"],"names":["window","eventName","eventHandler","addEventListener","attachEvent","bindEvent","event","request","JSON","parse","data","e","action","height","parseInt","document","getElementById","style"],"sourceRoot":""}