{"version":3,"file":"../Static/bundles//scripts/disclosure-checkbox-block.js","mappings":"iCAACA,SAASC,iBAAiB,oBAAoB,SAAUC,GAC3B,oBAAfC,YAEPA,WAAWH,UAAUI,OAAM,WACCC,EAAE,2BACRC,KAAK,aAAaC,QAAO,WACnCC,KAAKC,QACLC,OAAOC,kBAAkB,OAGzBD,OAAOC,kBAAkB,KAEjC,GAEJ,GAER,IAEAD,OAAOE,mBAAqB,SAASC,GAEjC,IAAIC,EAAsBT,EAAE,6BACxBU,EAAsBV,EAAE,6BAEP,OAAjBQ,GACAE,EAAoBC,OACpBD,EAAoBT,KAAK,aAAaW,KAAK,WAAW,GACtDP,OAAOC,kBAAkB,MACzBG,EAAoBI,SAEpBJ,EAAoBE,OACpBF,EAAoBR,KAAK,aAAaW,KAAK,WAAW,GACtDP,OAAOC,kBAAkB,MACzBI,EAAoBG,OAE5B,EAEAR,OAAOS,kBAAoB,WACvB,IAAIC,EAAoBf,EAAE,2BAC1Be,EAAkBd,KAAK,aAAaW,KAAK,YAAY,GACrDG,EAAkBd,KAAK,aAAaW,KAAK,WAAW,GACpDP,OAAOC,kBAAkB,KAC7B,EAEAD,OAAOW,iBAAmB,WACEhB,EAAE,2BACRC,KAAK,aAAaW,KAAK,YAAY,EACzD,EAEAP,OAAOC,kBAAoB,SAASW,GACJjB,EAAE,wCACRkB,IAAID,EAC9B,C,GClDIE,EAA2B,CAAC,GAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCtBA,CAAQ,G","sources":["webpack://vaneckweb/../static/js/forms-disclosure-checkbox.js","webpack://vaneckweb/webpack/bootstrap","webpack://vaneckweb/../Bundles/cache/scripts/disclosure-checkbox-block.js"],"sourcesContent":["document.addEventListener(\"DOMContentLoaded\", function (event) {\r\n if (typeof $$epiforms !== 'undefined') {\r\n\r\n $$epiforms(document).ready(function myfunction() {\r\n var disclosureElement = $('.js-form .js-Disclosure');\r\n disclosureElement.find(\":checkbox\").change(function () {\r\n if (this.checked) {\r\n window.setDisclosureDate(\"now\");\r\n }\r\n else {\r\n window.setDisclosureDate(null);\r\n }\r\n });\r\n \r\n }); \r\n }\r\n});\r\n\r\nwindow.showDisclosureType = function(investorType) {\r\n\r\n var disclosureIIElement = $('.js-form .js-DisclosureII');\r\n var disclosureFPElement = $('.js-form .js-DisclosureFP');\r\n\r\n if (investorType === \"II\") {\r\n disclosureFPElement.hide();\r\n disclosureFPElement.find(\":checkbox\").prop(\"checked\", false);\r\n window.setDisclosureDate(null);\r\n disclosureIIElement.show();\r\n } else {\r\n disclosureIIElement.hide();\r\n disclosureIIElement.find(\":checkbox\").prop(\"checked\", false);\r\n window.setDisclosureDate(null);\r\n disclosureFPElement.show();\r\n }\r\n}\r\n\r\nwindow.disableDisclosure = function() {\r\n var disclosureElement = $('.js-form .js-Disclosure');\r\n disclosureElement.find(\":checkbox\").prop(\"disabled\", true);\r\n disclosureElement.find(\":checkbox\").prop(\"checked\", true);\r\n window.setDisclosureDate(null);\r\n}\r\n\r\nwindow.enableDisclosure = function() {\r\n var disclosureElement = $('.js-form .js-Disclosure');\r\n disclosureElement.find(\":checkbox\").prop(\"disabled\", false);\r\n}\r\n\r\nwindow.setDisclosureDate = function(dateTime) {\r\n var disclosureDateElement = $('.js-form .DisclosureConfirmationDate');\r\n disclosureDateElement.val(dateTime);\r\n}","// 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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","require(\"../../../static/js/forms-disclosure-checkbox.js\");\n"],"names":["document","addEventListener","event","$$epiforms","ready","$","find","change","this","checked","window","setDisclosureDate","showDisclosureType","investorType","disclosureIIElement","disclosureFPElement","hide","prop","show","disableDisclosure","disclosureElement","enableDisclosure","dateTime","val","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__"],"sourceRoot":""}