PageSourceSearch

https://superbee.co.kr/wp-content/uploads/bitforms/form-scripts/1636/bitform-js-1636.js?bfv=536&ver=536

js superbee.co.kr collected 2026-10-05 21:58:10 UTC 28,558 bytes, 1 lines download raw bytes

1 if(!window.bf_globals){ window.bf_globals={};}["bitforms_1_1636_1"].forEach(function(contentId){const form=document.getElementById(contentId);if(!form){ delete window.bf_globals[contentId];return;}if(!window.bf_globals[contentId]){window.bf_globals[contentId]={inits:{},contentId: contentId};}else{ window.bf_globals[contentId].inits={};window.bf_globals[contentId].contentId=contentId;}});var bfSelect=function(){"use strict";return function(e,t){return(t||document).querySelector(e)}}();var bfReset=function(){"use strict";return function(e,t=!1){if(t){const t=new CustomEvent("bf-form-reset",{detail:{formId:e}});bfSelect(`#form-${e}`).dispatchEvent(t)}const s=window.bf_globals[e];"undefined"!=typeof resetPlaceholders&&resetPlaceholders(s),"undefined"!=typeof bfResetDefaultValue&&bfResetDefaultValue(s),"undefined"!=typeof customFieldsReset&&customFieldsReset(s),"undefined"!=typeof resetOtherOpt&&resetOtherOpt(e),bfSelect(`#form-${e}`).reset(),localStorage.setItem("bf-entry-id",""),window.bf_globals[e].modifiedFields=s.fields,Object.keys(s.fields).forEach((t=>{const s=bfSelect(`#form-${e} .${t}-err-wrp`);s&&(setStyleProperty(s,"height","0px"),setStyleProperty(s,"opacity",0),setStyleProperty(bfSelect(`.${t}-err-msg`,s),"display","none"))})),s.gRecaptchaSiteKey&&"v2"===s.gRecaptchaVersion&&window?.grecaptcha?.reset(),s.turnstileSiteKey&&window?.turnstile?.reset(),s.hCaptchaSiteKey&&window?.hcaptcha?.reset()}}();var setBFMsg=function(){"use strict";return function(e){if("undefined"!=typeof handleConversationalFormMsg&&handleConversationalFormMsg(e))return;let t=bfSelect(`#bf-form-msg-wrp-${e.contentId}`);t.innerHTML=`<div class="bf-form-msg deactive ${e.type} scroll">${e.msg}</div>`,t=bfSelect(".bf-form-msg",t);let s=5e3;e.msgId&&(t=bfSelect(`.msg-content-${e.msgId} .msg-content`,bfSelect(`#${e.contentId}`)),t.innerHTML=e.msg,t=bfSelect(`.msg-container-${e.msgId}`,bfSelect(`#${e.contentId}`)),s=e.duration),t&&t.classList.replace("active","deactive"),t.classList.contains("scroll")&&scrollToElm(t),t&&(setTimeout((()=>{t.classList.replace("deactive","active")}),100),s&&setTimeout((()=>{t.classList.replace("active","deactive")}),s))}}();var bfSplit=function(){"use strict";return function(t,n,i=","){const r=n?.configs?.bf_separator||"__bf__";return t.includes(r)?t.split(r):t.split(i)}}();var scrollToElm=function(){"use strict";const t=function(t){(function(t,e=10){const n=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return n.top>=e&&n.left>=e&&n.bottom<=o-e&&n.right<=i-e})(t)||(function(t){let e=t.parentElement;for(;e&&e!==document.body;){if(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth){e.scrollIntoView({behavior:"smooth"});break}e=e.parentElement}}(t),t.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))},e=function(t){let e;const n=function(...n){clearTimeout(e),e=setTimeout((()=>t(...n)),300)};return n.cancel=function(){clearTimeout(e)},n}(t);return function(n,{immediate:o=!1}={}){e.cancel(),o?t(n):e(n)}}();var getFldKeyAndRowIndx=function(){"use strict";return function(n){const t=n.match(/([^\[]+)(?:\[(\d+)\])?/);return t?[t[1],t[2]||""]:[n]}}();var moveToFirstErrFld=function(){"use strict";return function(t,e=[]){const r=t?.layout||{},n=t?.nestedLayout||{},o=Array.isArray(r)&&r.length>1,i=Array.isArray(r)?r:[{layout:r}];let s=-1;const c=i.reduce(((t,r,o)=>{const i=r.layout.lg.reduce(((t,e)=>{const r=e.i;if(r in n){const e=n[r].lg.map((t=>t.i));return[...t,r,...e]}return[...t,r]}),[]),c=i.find((t=>e.includes(t)));return-1===s&&c&&(s=o),[...t,...i]}),[]);o&&s>-1&&t.inits.multi_step_form.step!==s+1&&(t.inits.multi_step_form.step=s+1),t.inits?.conversational_form&&(t.inits.conversational_form.activeFieldStep=e[0]),c.some((r=>e.some((e=>{const[n,o]=getFldKeyAndRowIndx(e);if(r===n){const e=o?`.rpt-index-${o}`:"",n=bfSelect(`#form-${t.contentId} ${e} .btcd-fld-itm.${r}`);return setTimeout((()=>scrollToElm(n)),0),!0}return!1}))))}}();var bfValidationErrMsg=function(){"use strict";return function(e,t){const{data:r}=e;r&&"string"==typeof r?setBFMsg({contentId:t,msg:r,error:!0,show:!0,type:"error"}):r&&(void 0!==r.$form&&(setBFMsg({contentId:t,msg:r.$form.message,msgId:r.$form.msg_id,duration:r.$form.msg_duration,type:"error"}),delete r.$form),Object.keys(r).length>0&&function(e,t){const r=Object.keys(e);r.forEach((r=>{const[o,s]=getFldKeyAndRowIndx(r),y=bfSelect(`#form-${t} ${s?`.rpt-index-${s}`:""} .${o}-err-wrp`),i=bfSelect(`.${o}-err-txt`,y),n=bfSelect(`.${o}-err-msg`,y);let l=!1;try{l="grid"===getComputedStyle(y).display,l&&(y.style.removeProperty("opacity"),y.style.removeProperty("height"),n.style.removeProperty("display"))}catch(e){l=!1}i.innerHTML=e[r],l?setStyleProperty(y,"grid-template-rows","1fr"):setTimeout((()=>{n.style.removeProperty("display"),setStyleProperty(y,"height",`${i.offsetHeight}px`),setStyleProperty(y,"opacity",1)}),100)})),moveToFirstErrFld(window?.bf_globals?.[t],r)}(r,t))}}();var setHiddenFld=function(){"use strict";return function e(t,n){let a=bfSelect(`input[name="${t.name}"]`,n);return a||(a=document.createElement("input"),a.type="text",a.className="d-none",n.append(a)),"b_h_t"===t.name&&(bfSelect(`input[name="${a.value}"]`,n)?.remove(),e({name:t.value,required:""},n)),Object.keys(t).forEach((e=>{a.setAttribute(e,t[e])})),a}}();var submit_form=function(){"use strict";function e(e,t){const n=new URL(e?.ajaxURL),o=e?.entryId?"bitforms_update_form_entry":"bitforms_submit_form";return n.searchParams.append("action",o),e?.entryId&&(n.searchParams.append("_ajax_nonce",e.nonce||""),n.searchParams.append("entryID",e.entryId),n.searchParams.append("formID",e.formId),n.searchParams.append("entryToken",e.entryToken||"")),fetch(n,{method:"POST",body:t})}function t(e,t,o){e.then((e=>new Promise(((n,o)=>
1{if(e.staus>400){const n=new CustomEvent("bf-form-submit-error",{detail:{formId:t,errors:e.data}});bfSelect(`#form-${t}`).dispatchEvent(n),500===e.staus?o(new Error("Mayebe Internal Server Error")):o(e.json())}else n(e.json())})))).then((e=>{const a=new CustomEvent("bf-form-submit-success",{detail:{formId:t,entryId:e.data.entry_id,formData:o}});bfSelect(`#form-${t}`).dispatchEvent(a);let r=null,s=null,d="",c=1e3;const i=window.bf_globals[t];if(void 0!==e&&e.success){const n=bfSelect(`#form-${t}`);bfReset(t),"object"==typeof e.data?(n&&e?.data?.hidden_fields?.map((e=>{setHiddenFld(e,n)})),r=e.data.redirectPage,e.data.cron&&(s=e.data.cron),e.data.cronNotOk&&(s=e.data.cronNotOk),e.data.new_nonce&&(d=e.data.new_nonce,i.nonce=d),setBFMsg({contentId:t,msgId:e.data.msg_id,msg:e.data.message,duration:e.data.msg_duration,show:!0,type:"success",error:!1}),c=Number(e.data.msg_duration||1e3)):setBFMsg({contentId:t,msg:e.data,type:"success",show:!0,error:!1}),localStorage.removeItem(`bitform-partial-form-${i.formId}`);const o=bfSelect('input[name="entryID"]',n);o&&o.remove(),delete i.entryId}else{const n=new CustomEvent("bf-form-submit-error",{detail:{formId:t,errors:e.data}});bfSelect(`#form-${t}`).dispatchEvent(n),bfValidationErrMsg(e,t)}if(function(e,t,n){const o=window.bf_globals[n];if(e)if("string"==typeof e){const t=new URL(e);t.protocol!==window.location.protocol&&(t.protocol=window.location.protocol),fetch(t)}else{const n=new URL(o.ajaxURL);n.searchParams.append("action","bitforms_trigger_workflow");const a={cronNotOk:e,token:t||o.nonce,id:o.appID};fetch(n,{method:"POST",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}}).then((e=>e.json()))}}(s,d,t),r){const e=setTimeout((()=>{window.location=decodeURI(r),e&&clearTimeout(e)}),c)}n(t,!1)})).catch((e=>{const o=e?.message?e.message:"Unknown Error";setBFMsg({contentId:t,msg:o,show:!0,type:"error",error:!0}),n(t,!1)}))}function n(e,t){const n=bfSelect('button[type="submit"]',bfSelect(`#form-${e}`));n&&(n.disabled=t);const o=bfSelect('button[type="submit"] span',bfSelect(`#form-${e}`));o&&o.classList.toggle("d-none")}return function(o=null){(o?[o]:Object.keys(window.bf_globals)).forEach((o=>{const a=bfSelect(`#form-${o}`);a&&(a.addEventListener("submit",(o=>{!function(o){o.preventDefault();const a=o.target.id.slice(o.target.id.indexOf("-")+1);if("undefined"!=typeof validateForm&&!validateForm({form:a})){const e=new CustomEvent("bf-form-validation-error",{detail:{formId:a,fieldId:"",error:""}});return void o.target.dispatchEvent(e)}n(a,!0);let r=new FormData(o.target);const s=window.bf_globals[a];"undefined"!=typeof advancedFileHandle&&(r=advancedFileHandle(s,r)),"undefined"!=typeof decisionFldHandle&&(r=decisionFldHandle(s,r)),"undefined"!=typeof hideChildFldHandle&&(r=hideChildFldHandle(s,r)),s.GCLID&&r.set("GCLID",s.GCLID);const d=[];Object.entries(s?.fields||{}).forEach((e=>{e[1]?.valid?.hide&&d.push(e[0])})),d.length&&r.append("hidden_fields",d),"v3"===s?.gRecaptchaVersion&&s?.gRecaptchaSiteKey?grecaptcha.ready((()=>{grecaptcha.execute(s.gRecaptchaSiteKey,{action:"submit"}).then((n=>{r.append("g-recaptcha-response",n),t(e(s,r),a,r)}))})):t(e(s,r),a,r)}(o)})),bfSelect('button[type="reset"]',a)?.addEventListener("click",(()=>bfReset(a.id.replace("form-",""),!0))))})),document.querySelectorAll(".msg-backdrop,.bf-msg-close").forEach((e=>{e.addEventListener("click",(t=>{t.target===e&&(t.stopPropagation(),bfSelect(`#${e.dataset.contentid} .msg-container-${e.dataset.msgid}`).classList.replace("active","deactive"))}))})),localStorage.setItem("bf-entry-id","")}}();var setStyleProperty=function(){"use strict";return function(t,e,r){t?.style&&t.style.setProperty(e,r,"important")}}();var decisionFldHandle=function(){"use strict";return(e,c)=>(Object.entries(e.fields).forEach((([,e])=>{["decision-box","gdpr"].includes(e.typ)&&bfSelect(`input[name="${e.fieldName}"]`).checked?c.set(e.fieldName,e.msg.checked):["decision-box","gdpr"].includes(e.typ)&&c.set(e.fieldName,e.msg.unchecked)})),c)}();var hideChildFldHandle=function(){"use strict";return function(e,i){return Object.entries(e?.fields||{}
1).forEach((([i,d])=>{if(["section","repeater"].includes(d?.typ)&&d?.valid?.hide){const t=e.nestedLayout[i]?.lg?.map((e=>e.i));t?.forEach((i=>{e.fields?.[i]?.valid&&(e.fields[i].valid.hide=d?.valid?.hide)}))}})),i}}();var customFieldsReset=function(){"use strict";return function(e){Object.entries(e.inits||{}).map((([t,s])=>{if(s?.reset){const i=t.replace(/\[\w+\]/g,""),n=e.fields[i];s.reset(n?.val)}}))}}();var bit_file_up_field=function(){"use strict";return class{#e=null;#t=null;#s=null;#i=null;#l=null;#a=null;#c=null;#r=null;#n=null;#h={};#o=[];#f=null;#d={};#p="";#u={};#m={};#v="";#g="";#b=[];#w={id:"upload",name:"upload",required:!0,multiple:!1,maxSize:0,sizeUnit:"KB",isItTotalMax:!1,showMaxSize:!1,showSelectStatus:!0,fileSelectStatus:"No Choosen File",allowedFileType:"",showFileList:!1,showFilePreview:!1,showFileSize:!1,accept:".pdf,.exe,.msi",duplicateAllow:!1,capture:"",minFile:0,maxFile:0,onchange:()=>{},oninput:()=>{}};constructor(e,t){Object.assign(this.#w,t),this.#f=t.document?t.document:document,this.#d=t.window?t.window:window,this.#u=t.attributes||{},this.#m=t.classNames||{},this.#p=t.contentId||"",this.#e="string"==typeof e?this.#f.querySelector(e):e,this.#v=this.#w.fieldKey,this.fieldKey=this.#v,this.#g=t.assetsURL||"",this.init()}init(){this.#t=this.#C(`.${this.#v}-label`),this.#s=this.#C(`.${this.#v}-inp-btn`),this.#i=this.#C(`.${this.#v}-file-select-status`),this.#l=this.#C(`.${this.#v}-file-input-wrpr`),this.#a=this.#C(`.${this.#v}-max-size-lbl`),this.#c=this.#C(`.${this.#v}-file-upload-input`),this.#n=this.#C(`.${this.#v}-file-input-wrpr .err-wrp`);const{multiple:e,allowedFileType:t,accept:s,showSelectStatus:i,fileSelectStatus:l,oldFiles:a}=this.#w;this.#c.multiple=e,this.#c.accept=t?`${t},${s}`:s,i&&this.#i?this.#i.innerHTML=l:this.#i?.remove(),this.#h={},this.#L(),a&&this.#F(a),this.#S(this.#c,"change",(e=>this.#y(e))),this.#S(this.#s,"click",(()=>this.#c.click()))}#x(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return Array.isArray(e)?e:[]}#F(e){const t=this.#x(e);this.#b=t,this.#r||this.#A(),t.forEach((e=>{this.#E(e)}));const s=this.#$("input");s.type="hidden",s.name=this.#z(),s.value=this.#b.toString(),this.#l.appendChild(s)}#E(e){const t=this.#$("div"),s=e.replace(/( |\.|\(|\))/g,"");if(t.id=`file-wrp-${s}`,this.#U(t,"file-wrpr"),"file-wrpr"in this.#m){const e=this.#m["file-wrpr"];e&&this.#I(t,e)}if("file-wrpr"in this.#u){const e=this.#u["file-wrpr"];this.#T(t,e)}const i=this.#$("div");this.#U(i,"file-details");const l=this.#$("a");if(this.#U(l,"file-title"),"file-title"in this.#m){const e=this.#m["file-title"];e&&this.#I(l,e)}if("file-title"in this.#w.attributes){const e=this.#w.attributes["file-title"];this.#T(l,e)}this.#N(l,"target","_blank"),this.#N(l,"href",`${this.#w.baseDLURL}&fileID=${e}`),this.#K(l,e),i.append(l),t.append(i);const a=this.#$("button");if(this.#U(a,"cross-btn"),"cross-btn"in this.#m){const e=this.#m["cross-btn"];e&&this.#I(a,e)}if(this.#N(a,"data-file-id",s),this.#N(a,"data-file-name",e),this.#N(a,"type","button"),"cross-btn"in this.#w.attributes){const e=this.#w.attributes["cross-btn"];this.#T(a,e)}this.#K(a,"×"),this.#S(a,"click",(e=>this.#k(e))),t.append(a),this.#r.appendChild(t)}#y(e){const{files:t}=this.#c,{sizeUnit:s,allowMaxSize:i,maxSize:l,maxSizeErrMsg:a,isItTotalMax:c,multiple:r,showFileList:n,fileExistMsg:h,showFilePreview:o,showFileSize:f,showSelectStatus:d,fileSelectStatus:p,minFile:u,minFileErrMsg:m,maxFile:v,maxFileErrMsg:g}=this.#w,b=this.#M(s,l);let w=0;const C=[];this.#j(this.#n,"active"),c&&Object.values(this.#h).forEach((e=>{w+=e.size})),!r&&t.length>0&&(this.#h={},this.#r&&this.#K(this.#r,""));for(let e=0;e<t.length;e+=1){const s=t[e],r=s.name.replace(/( |\.|\(|\))/g,"");if(this.#h[r])C.push(h);else if(!i||!l||s.size+w<=b)if(!(v>0)||Object.keys(this.#h).length<v){if(this.#h[r]=s,n){this.#r||this.#A();const e=this.#$("div");if(e.id=`file-wrp-${r}`,this.#U(e,"file-wrpr"),"file-wrpr"in this.#m){const t=this.#m["file-wrpr"];t&&this.#I(e,t)}if("file-wrpr"in this.#u){const t=this.#u["file-wrpr"];this.#T(e,t)}if(o){const t=this.#$("img");if(t.src=this.#O(s),t.alt="Image Uploaded",this.#U(t,"file-preview"),"file-preview"in this.#m){const e=this.#m["file-preview"];e&&this.#I(t,e)}if("file-preview"in this.#u){const e=this.#u["file-preview"];this.#T(t,e)}e.append(t)}const t=this.#$("div");this.#U(t,"file-details");const i=this.#$("span");if(this.#U(i,"file-title"),"file-title"in this.#m){const e=this.#m["file-title"];e&&this.#I(i,e)}if("file-title"in this.#w.attributes){const e=this.#w.attributes["file-title"];this.#T(i,e)}if(this.#K(i,s.name),t.append(i),f){const e=this.#$("span");if(this.#U(e,"file-size"),"file-size"in this.#m){const t=this.#m["file-size"];t&&this.#I(e,t)}if("file-size"in this.#w.attributes){const t=this.#w.attributes["file-size"];this.#T(e,t)}this.#K(e,this.#W(s.size)),t.append(e)}e.append(t);const l=this.#$("button");if(this.#U(l,"cross-btn"),"cross-btn"in this.#m){const e=this.#m["cross-btn"];e&&this.#I(l,e)}if(this.#N(l,"data-file-id",r),"cross-btn"in this.#w.attributes){const e=this.#w.attributes["cross-btn"];this.#T(l,e)}this.#K(l,"×"),e.append(l),this.#r.append(e)}c&&(w+=s.size)}else this.#n.innerHTML=g,this.#U(this.#n,"active"),setTimeout((()=>{this.#j(this.#n,"active")}),3e3);else C.push(a)}this.#R(`.${this.#v}-file-input-wrpr .cross-btn`).forEach((e=>{this.#S(e,"click",(e=>this.#B(e)))}));const L=Object.keys(this.#h).length;this.#H(),L&&d?this.#i.innerText=`${L} file${L>1?"s":""} selected`:d&&(this.#i.innerHTML=p),u>0&&L<u&&(this.#n.innerHTML=m,this.#U(this.#n,"active")),!this.#r&&C.length>
10&&this.#A(),C.map(((e,t)=>{this.#r.insertAdjacentHTML("afterbegin",`\n <div id='err-${t}' class="err-wrp">\n ${e}\n </div>`);const s=this.#C(`#err-${t}`);this.#U(s,"active"),setTimeout((()=>{this.#j(s,"active")}),3e3),setTimeout((()=>{s?.remove(),Object.keys(this.#h).length||this.#L()}),5e3)}))}#A(){if(this.#r=this.#$("div"),this.#U(this.#r,"files-list"),"files-list"in this.#m){const e=this.#m["files-list"];e&&this.#I(this.#r,e)}if("files-list"in this.#u){const e=this.#u["files-list"];this.#T(this.#r,e)}this.#l.append(this.#r)}#L(){this.#r?.remove(),this.#r=null}#H(){const e=new DataTransfer;Object.values(this.#h)?.forEach((t=>{e.items.add(t)})),this.#c.files=e.files}#k(e){const t=e.target.getAttribute("data-file-id"),s=e.target.getAttribute("data-file-name");this.#_(`#file-wrp-${t}`),this.#b=this.#b.filter((e=>e!==s)),this.#C(`input[name="${this.#z()}"]`).value=this.#b.toString()}#B=e=>{const t=e.target.getAttribute("data-file-id");this.#_(`#file-wrp-${t}`),delete this.#h[t];const s=Object.keys(this.#h).length;s?this.#i.innerText=`${s} file${s>1?"s":""} selected`:(this.#i.innerHTML=this.#w.fileSelectStatus,this.#L()),this.#H()};#C(e){return this.#e.querySelector(e)}#R(e){return this.#e.querySelectorAll(e)}#_(e){this.#C(e)?.remove()}#$(e){return this.#f.createElement(e)}#O(e){switch(e.name.substring(e.name.lastIndexOf(".")+1)){case"xbm":case"tif":case"pjp":case"pjpeg":case"svgz":case"jpg":case"jpeg":case"ico":case"tiff":case"gif":case"svg":case"bmp":case"png":case"jfif":case"webp":return URL.createObjectURL(e);case"7z":case"arj":case"deb":case"pkg":case"rar":case".rpm":case".gz":case"z":case"zip":return`${this.#g}/zip-compressed.svg`;case"key":case"odp":case"pps":case"ppt":case"pptx":return`${this.#g}/presentation.svg`;case"_RF_":case"doc":case"docx":case"odt":case"pdf":case"rtf":case"tex":case"txt":case"wks":case"wps":case"wpd":return`${this.#g}/document.svg`;case"csv":case"dat":case"db":case"dbf":case"log":case"mdb":case"sav":case"sql":case"tar":case"sqlite":case"xml":return`${this.#g}/database.svg`;case"opus":case"flac":case"webm":case"weba":case"wav":case"ogg":case"m4a":case"mp3":case"oga":case"mid":case"amr":case"aiff":case"wma":case"au":case"acc":case"wpl":case"ogm":case"wmv":case"mpg":case"ogv":case"mov":case"asx":case"mpeg":case"mp4":case"m4v":case"avi":case"3gp":case"flv":case"mkv":case"swf":return`${this.#g}/file-audio.svg`;default:return`${this.#g}/paperclip.svg`}}#S(e,t,s){e.addEventListener(t,s),this.#o.push({element:e,eventType:t,eventAction:s})}#U(e,t){e.classList.add(t)}#j(e,t){e.classList.remove(t)}#K(e,t){e.textContent=t}#N(e,t,s){e?.setAttribute?.(t,s)}#I(e,t){t.trim().split(/\b\s+\b/g).forEach((t=>this.#U(e,t)))}#T(e,t){const s=t.length;if(s)for(let i=0;i<s;i+=1)this.#N(e,t[i].key,t[i].value)}#W(e){return e<1024?`${e}Bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)}KB`:e>=1048576&&e<1073741824?`${(e/1048576).toFixed(1)}MB`:e>=1073741824?`${(e/1073741824).toFixed(1)}GB`:void 0}#M(e,t){switch(e){case"Bytes":return t;case"KB":return 1024*t;case"MB":return 1048576*t;case"GB":return 1073741824*t;default:return 0}}#q(){this.#o.forEach((({element:e,eventType:t,eventAction:s})=>{e.removeEventListener(t,s)}))}#z(){return"undefined"!=typeof checkRepeatedField&&checkRepeatedField(this.#v,this.#d?.bf_globals?.[this.#p])?`${this.#v}_old[]`:`${this.#v}_old`}checkValidate(){return 0===this.#b.length&&0===Object.keys(this.#h).length?"req":""}set value(e){this.#F(e)}get value(){return this.#h}destroy(){this.#r&&(this.#r.innerHTML=""),this.#q()}reset(){this.destroy(),this.init()}}}();var requiredFldValidation=function(){"use strict";return r=>r?.valid?.req?"req":""}();var generateBackslashPattern=function(){"use strict";return t=>(t||"").split("$_bf_$").join("\\")}();var dcsnbxFldValidation=function(){"use strict";return(e,r)=>r.valid.req&&e!==r.msg.checked?"req":""}();var emailFldValidation=function(){"use strict";return(e,t)=>t.err.invalid.show?new RegExp(generateBackslashPattern(t.pattern)).test(e)?"":"invalid":""}();var validateForm=function(){"use strict";let e,t,i={},n=[];const l=t=>window?.bf_globals?.[e].inits?.[t],r=(e,t,i)=>{const n=Number(i)>1?`${e}[${i}]`:e;return t.inits&&!t.inits[n]?e:n},d=e=>{const n=e.replace(/\[\d*\]/g,"");if(i[n])return i[n];const l=Object.entries(t);for(let e=0;e<l.length;e+=1){const[t,r]=l[e];
1if(r?.fieldName===n)return i[n]=t,t}return""},o=()=>{const n=new FormData(bfSelect(`#form-${e}`)),l={},r=Array.from(n.entries());return i={},r.forEach((([e,i])=>{const n=d(e),r=e.replace("[]","");n in t&&(l[r]?(Array.isArray(l[r])||(l[r]=[l[r]]),l[r].push(i)):l[r]=i)})),l},a=(t,i,l,r="")=>{const d=bfSelect(`#form-${e} ${r} .${i}-err-wrp`),o=bfSelect(`.${i}-err-txt`,d),a=bfSelect(`.${i}-err-msg`,d);let s=!1;try{s="grid"===getComputedStyle(d).display,s&&(d.style.removeProperty("opacity"),d.style.removeProperty("height"),a.style.removeProperty("display"))}catch(e){s=!1}o&&"err"in(l||{})&&(t&&l?.err?.[t]?.show?(o.innerHTML=l.err[t].custom?l.err[t].msg:l.err[t].dflt,s?setStyleProperty(d,"grid-template-rows","1fr"):setTimeout((()=>{a.style.removeProperty("display"),setStyleProperty(d,"height",`${o.offsetHeight}px`),setStyleProperty(d,"opacity",1)}),100),n.push(i)):(o.innerHTML="",s?setStyleProperty(d,"grid-template-rows","0fr"):(setStyleProperty(d,"height",0),setStyleProperty(d,"opacity",0),setStyleProperty(a,"display","none"))))};return function({form:i,input:s},{step:f,otherOptions:c}={}){i?e=i:s?.form?.id&&([,e]=s.form.id.split("form-"));const p=window?.bf_globals?.[e];if(void 0===p)return!1;let u={};n=[];const y=p.configs.bf_separator;if(f){let e=p.layout[f-1];if(!e)return!1;e=e?.layout||e;const i=e.lg.map((e=>e.i)),n=p.nestedLayout||{};Object.entries(n).forEach((([e,t])=>{if(i.includes(e)){const e=t.lg.map((e=>e.i));i.push(...e)}})),t=i.reduce(((e,t)=>({...e,[t]:p.fields[t]})),{})}else t=p.fields;const{modifiedFields:m}=p;if(m&&Object.assign(t,m),i)u=o();else if(s){if(!p.validateFocusLost&&!c?.validateOnInput)return!0;const e=d(s.name);u=o(),t={[e]:t[e]}}let h=!0;const F=Object.entries(t);let{length:V}=F;for(;V--;){const[t,i]=F[V];let n=[""];if("undefined"!=typeof checkRepeatedField){const e=checkRepeatedField(t,p);n=getRepeatedIndexes(e,p,s)}for(let d=0;d<n.length;d+=1){const o=n[d],s=o?`${i.fieldName}[${o}]`:i.fieldName,f=`#form-${e}`,c=o?`.rpt-index-${o}`:"",m=i.typ,F="string"==typeof u[s]?u[s].trim():u[s],V=r(t,p,o);if(bfSelect(`${f} ${c} .${t}.fld-hide,${f} .fld-hide ${c} .${t}`)){a("",t,i,c);continue}let g="";"check"!==m&&"image-select"!==m||(g="undefined"!=typeof checkFldValidation?checkFldValidation(F,i):""),"check"!==m&&"radio"!==m||g||"undefined"==typeof customOptionValidation||(g=customOptionValidation(e,t,i)),F||g||"0"===F||(g="undefined"!=typeof requiredFldValidation?requiredFldValidation(i):null),a(g,t,i,c),g?h=!1:F&&("number"===m&&"undefined"!=typeof nmbrFldValidation?g=nmbrFldValidation(F,i):"email"===m&&"undefined"!=typeof emailFldValidation?g=emailFldValidation(F,i):"url"===m&&"undefined"!=typeof urlFldValidation?g=urlFldValidation(F,i):["decision-box","gdpr"].includes(m)&&"undefined"!=typeof dcsnbxFldValidation?g=dcsnbxFldValidation(F,i):["check","select","image-select"].includes(m)&&"undefined"!=typeof checkMinMaxOptions?g=checkMinMaxOptions(F,i,y):"range"===m&&"undefined"!=typeof checkMinMaxValue?g=checkMinMaxValue(F,i):"file-up"===m&&"undefined"!=typeof fileupFldValidation?g=fileupFldValidation(l(V),F,i):"advanced-file-up"===m&&"undefined"!=typeof advanceFileUpFldValidation?g=advanceFileUpFldValidation(l(V),i):"phone-number"===m&&"undefined"!=typeof phoneNumberFldValidation?g=phoneNumberFldValidation(l(V),i):"currency"===m&&"undefined"!=typeof currencyFldValidation&&(g=currencyFldValidation(l(V),i)),g||"undefined"==typeof bfDatetimeFldValidation||(g=bfDatetimeFldValidation(l(V),F,i)),i?.valid?.inputMask&&!g&&(g="undefined"!=typeof inputMaskValidation?inputMaskValidation(e,t,F,i):null),i?.valid?.regexr&&!g&&(g="undefined"!=typeof regexPatternValidation?regexPatternValidation(F,i):null),a(g,t,i,c),g&&(h=!1))}}return moveToFirstErrFld(p,n),h}}(); const customFldConfigPaths={"file-up":{"config":{},"fieldKey":{"var":"fieldKey"},"formID":{"var":"formId"},"maxSizeErrMsg":{"path":["err->maxSize->msg","err->maxSize->dflt"]},"minFileErrMsg":{"path":["err->minFile->msg","err->minFile->dflt"]},"maxFileErrMsg":{"path":["err->maxFile->msg","err->maxFile->dflt"]},"assetsURL":{"val":"https:\/\/superbee.co.kr\/wp-content\/plugins\/bit-form\/static\/file-upload\/"},"classNames":{"path":"customClasses"},"attributes":{"path":"customAttributes"},"fieldName":{"path":"fieldName"},"contentId":{"var":"contentId"},"multiple":{"path":"config->multiple","val":false},"allowMaxSize":{"path":"config->allowMaxSize","val":false},"maxSize":{"path":"config->maxSize","val":0},"sizeUnit":{"path":"config->sizeUnit","val":"KB"},"isItTotalMax":{"path":"config->isItTotalMax","val":false},"allowedFileType":{"path":"config->allowedFileType","val":""},"minFile":{"path":"config->minFile","val":0},"maxFile":{"path":"config->maxFile","val":0},"showSelectStatus":{"path":"config->showSelectStatus","val":false},"fileSelectStatus":{"path":"config->fileSelectStatus","val":"No File Selected"},"fileExistMsg":{"val":"A file already exist"}}};const fldContainers={"file-up":".__$fk__-file-up-wrpr"};function initAllCustomFlds(formContentId=null){const allContendIds=formContentId? [formContentId]: Object.keys(bf_globals);allContendIds.forEach((contentId)=>{const contentData=bf_globals[contentId];if(!contentData?.inits) contentData.inits={};const flds=bf_globals[contentId]?.fields ||{};const fldKeys=Object.keys(flds).reverse();fldKeys.forEach((fldKey)=>{const fldData=flds[fldKey];const fldType=fldData.typ;if(fldType==='paypal'){initPaypalFld(contentId,fldKey,fldData,fldType);} else if(fldType==='razorpay'){initRazorpayFld(contentId,fldKey,fldType);} else if(fldType==='recaptcha'){initRecaptchaFld(contentId,fldKey,fldType);} else if(fldType==='turnstile'){initTurnstileFld(contentId,fldKey);} else if(fldType==='hcaptcha'){initHCaptchaFld(contentId,fldKey,fldType);} else if(fldType==='stripe' || fldType==='mollie'){initStripeFld(contentId,fldKey,fldType);} else if(customFldConfigPaths[fldType]){contentData.inits[fldKey]=getFldInstance(contentId,fldKey,fldType);}});if(contentData.gRecaptchaVersion==='v3' && contentData.gRecaptchaSiteKey){initRecaptchaV3Fld(contentId,contentData);}});};function getFldInstance(contentId,fldKey,fldTyp,nestedSelector=''){const fldClass=this['bit_'+fldTyp.replace(/-/g,'_')+'_field'];const selector='#form-'+contentId+' '+nestedSelector+fldContainers[fldTyp].replace("__$fk__",fldKey);if(!fldClass || !bfSelect(selector)) return;return new fldClass(selector,getFldConf(contentId,fldKey,fldTyp));};function getFldConf(contentId,fieldKey,fldTyp){const fldData=bf_globals[contentId].fields[fieldKey];const fldConfPaths=Object.entries(customFldConfigPaths[fldTyp]);let fldConf={};const{ formId }=bf_globals[contentId];if(!("config" in customFldConfigPaths[fldTyp]) && "config" in fldData) fldConf=fldData.config;const varData={ contentId,fieldKey,formId };fldConfPaths.forEach(([ confPath,fldPath ])=>{let value="";if(fldPath.var) value=varData[fldPath.var];if(!value && fldPath.path){if(Array.isArray(fldPath.path)){fldPath.path.forEach((path)=>{if(!value) value=getDataFromNestedPath(fldData,path);});} else{value=getDataFromNestedPath(fldData,fldPath.path);}}if(!value && "val" in fldPath){value=fldPath.val;
1if(typeof value==='string'){Object.entries(varData).forEach(([key,val])=>{value=value.replace("__$"+key+"__",val);});}}fldConf=setDataToNestedPath(fldConf,confPath,value);});return fldConf;};function getDataFromNestedPath(data,key){const keys=key.split("->");const lastKey=keys.pop();let current={...data};for(const k of keys){if(!(k in current)) return null;current=current[k];}return current[lastKey] || null;}function setDataToNestedPath(data,key,value){const keys=key.split("->");const lastKey=keys.pop();let current={...data};keys.forEach((k)=>{if(!current[k]) current[k]={};current=current[k];});current[lastKey]=value;return current;}var bitform_init=function(){"use strict";function e(e=null){"undefined"!=typeof hidden_token_field&&hidden_token_field(e),"undefined"!=typeof initAllCustomFlds&&initAllCustomFlds(e),"undefined"!=typeof initAddOtherOpt&&initAddOtherOpt(e),"undefined"!=typeof setSliderFieldValue&&setSliderFieldValue(e),"undefined"!=typeof setBitInputMaskToInput&&setBitInputMaskToInput(e),"undefined"!=typeof initCheckDisableOnMax&&initCheckDisableOnMax(e),"undefined"!=typeof validate_focus&&validate_focus(e),"undefined"!=typeof submit_form&&submit_form(e),"undefined"!=typeof bit_form_abandonment&&bit_form_abandonment(e),"undefined"!=typeof setFieldValues&&setFieldValues(e),"undefined"!=typeof bit_multi_step_form&&bit_multi_step_form(e),"undefined"!=typeof bit_conversational_form&&bit_conversational_form(e)}return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{e()})):e(),e}();let bfContentId="",bfSlNo="1",bfVars="";

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.