티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“marketing-form-validator”],{39126:(e,t,r)=>{function l(e){let t=e.checkValidity(),r=e.getAttribute(“data-validity-check”),l={};return(l[“business-email”]=/.*@(gmail|yahoo|hotmail|aol|msn|orange|comcast|live|outlook|yandex|me|icloud|verizon|fastmail)\.(com|co.uk|fr|net|fm|ru)/,r&&l[r])?t&&!l[r].test(e.value):t}function o(e){let t=e.closest(“.form-group”),r=!l(e);return t&&t.classList.toggle(“errored”,r),r}(0,r(21403).lB)(“.js-form-validator”,e=>{for(let t of e.querySelectorAll(“.js-form-validator-submit”))t.addEventListener(“click”,()=>{for(let t of e.querySelectorAll(“.js-validity-check”))o(t)});for(let t of(e.addEventListener(“submit”,t=>{for(let r of e.querySelectorAll(“.js-validity-check”))o(r)&&r.matches(“[data-validity-check]”)&&(t.preventDefault(),r.focus())}),e.querySelectorAll(“.js-validity-check”)))t.addEventListener(“blur”,e=>{o(e.currentTarget)}),t.addEventListener(“keyup”,e=>{!function(e){let t=e.closest(“.form-group”);t&&t.classList.contains(“errored”)&&t.classList.toggle(“errored”,!l(e))}(e.currentTarget)}),t.matches(‘[type=”checkbox”], select’)&&t.addEventListener(“change”,e=>{o(e.currentTarget)})})}},e=>{e.O(0,[“vendors-node_modules_github_selector-observer_dist_index_esm_js”],()=>e(e.s=39126)),e.O()}]);
//# sourceMappingURL=marketing-form-validator-94b7c36641e0.js.map