1window.pwhDCFH=window.pwhDCFH||{},function(e){"use strict";const t=pwh_dcfh_obj.i10n,a=".et_pb_contact_form_container",n=".et_pb_contact_form",i=".et_pb_contact_submit",o=".et-pb-contact-message",l=e(`.${pwh_dcfh_obj.datepickerClass}`),s=e(".et_pb_contact_select2"),d=`.${pwh_dcfh_obj.uploadFileClass}`,c=new Date;pwhDCFH.init=function(){e(n).length>0&&(pwh_dcfh_obj.isSuperAdmin&&e(".et_pb_contact_form_container").length>0&&pwhDCFH.duplicateFormIDWarning(),e(".et_pb_textarea_validation").length>0&&pwhDCFH.textareaValidation(),e(d).length>0&&(pwhDCFH.uploadFiles(),pwhDCFH.removeFile()),l.length>0&&pwhDCFH.addDateTimePicker(),s.length>0&&pwhDCFH.addSelect2(),pwhDCFH.addUniqueViewCookie(),pwhDCFH.showLoadingIcon(),pwhDCFH.redirectForm(),pwhDCFH.addClassToContactMessage(),pwhDCFH.updateETPBCustom())},pwhDCFH.duplicateFormIDWarning=function(){let n=[];if(e(a).length>1){e(a).each((function(t,a){let i=e(this).attr("id"),o=e(this).data("form_unique_id");n[o]?n[o].push(i):n[o]=[i]}));for(let a in n){let i=n[a];i.length>1&&e(i).each((function(a,n){e(`#${n}`).prepend("<div class='et_pb_duplicate_form_id_warning'>"+t.duplicate_form_id_text+"</div>")}))}}},pwhDCFH.addUniqueViewCookie=function(){e(a).each((function(t,a){let n=e(this).data("form_unique_id"),i=e(this).find("form").attr("data-unique-views-cookies");if(void 0!==n&&void 0!==i&&"on"===i){let e="pwh_dcfh_uniqueviews_"+pwh_dcfh_obj.userIpAddress+"_"+n;pwhDCFH.setCookie(e,"pwh_dcfh_unique_views",364)}}))},pwhDCFH.showLoadingIcon=function(){e.fn.fadeToOrig=e.fn.fadeTo,e.fn.fadeTo=function(){const t=e(this),a=".et_pb_contact_form_overlay";return t.find(a).length&&arguments[1]<1&&t.find(a).show(),e.fn.fadeToOrig.apply(this,arguments)}},pwhDCFH.addDateTimePicker=function(){l.each((function(){let t=e(this).parents('div[class*="et_pb_contact_form_container"]').attr("class");void 0!==t&&(t=t.replace("et_pb_module","").replace("et_pb_contact_form_container","").replace("clearfix",""));let a='input[name="'+e(this).attr("name")+'"]',n=e(a).data("config"),i=n.type,o=n.show_inline,l=n.setcurrent_datetime,s=n.rtl,d=n.disabled_weeks,_=n.disabled_week_days,r=n.date_format,p=n.time_format,f=n.min_date_type,u=n.min_date,m=n.max_date_type,h=n.max_date,b=n.available_dates,v=n.unavailable_dates,g=n.min_time,w=n.max_time,C=n.available_times,x=n.available_day_times,D=n.unavailable_times,$=n.unavailable_day_times,y={inline:!1,step:n.time_steps,closeOnDateSelect:!1,dayOfWeekStart:n.week_start,className:t,todayButton:!1,validateOnBlur:!1,formatDate:"Y-m-d",scrollMonth:!1,scrollTime:!1,scrollInput:!1};if(y.format="date"===i?r:"time"===i?p:r+" "+p,y.datepicker=""!==r,""!==p?(y.timepicker=!0,y.formatTime=p):y.timepicker=!1,void 0!==o&&"on"===o&&(y.inline=!0,y.lazyInit=!0,y.allowBlank=!0),void 0!==l&&"on"===l&&(y.value=c),void 0!==s&&"on"===s&&(y.rtl=!0),"off"===d&&(y.weeks=!0),""!==_&&("string"===jQuery.type(_)?(_=_.split(",").map((function(e){return parseInt(e)})),y.disabledWeekDays=_):y.disabledWeekDays=[_]),void 0!==n.disabled_past_days&&"on"===n.disabled_past_days&&(y.minDate=c),void 0!==f){if("fixed"===f){let e=new Date(u);y.defaultDate=e,y.startDate=e,y.minDate=u}if("relative"===f){let e=c.setDate(c.getDate()+(new Date(u).getDate()-1));"-"===u.charAt(0)&&(e=c.setDate(c.getDate()-new Date(u).getDate()+2)),y.defaultDate=e,y.startDate=e,y.minDate=u}}void 0!==m&&("fixed"===m&&(y.maxDate=h),"relative"===m&&(y.maxDate=h)),void 0!==b&&(y.startDate=b.split(",",1).toString(),y.allowDates=b),void 0!==v&&(y.disabledDates=v),void 0!==g&&(y.minTime=g),void 0!==w&&(y.maxTime=w),void 0!==C&&(y.allowTimes=C.split(",")),y.onSelectDate=function(e,t){let a=new Date(e).toLocaleDateString("en",{weekday:"long"}).toLowerCase();if(void 0!==x)if(void 0!==x[`available_times_${a}`]&&x[`available_times_${a}`].length>0){let e=x[`available_times_${a}`].split(",");this.setOptions({allowTimes:e})}else this.setOptions({allowTimes:""})},y.onGenerate=function(t,i){let o=new Date(t).toLocaleDateString("en",{weekday:"long"}).toLowerCase();if(e(this).css("left",e(a).offset().left),e(this).css("width","auto"),void 0!==n.disabled_current_date&&"on"===n.disabled_current_date&&e(".xdsoft_today").removeClass("xdsoft_current").addClass("xdsoft_disabled"),void 0!==b&&setTimeout((function(){e.each(b.split(","),(function(t,a){let n=new Date(a);if(void 0!==n){const t=e(`td[data-date="${n.getDate()}"][data-month="${n.getMonth()}"]`);t.hasClass("xdsoft_disabled")&&t.removeClass("xdsoft_disabled")}}))}),100),void 0!==D){let t=D.split(",");e(".xdsoft_time").each((function(a,n){let i=e(this);-1!==e.inArray(i.text(),t)&&i.toggleClass("xdsoft_disabled")}))}if(void 0!==$&&void 0!==$[`unavailable_times_${o}`]&&$[`unavailable_times_${o}`].length>0){let t=$[`unavailable_times_${o}`].split(",");e(".xdsoft_time").each((function(a,n){let i=e(this);-1!==e.inArray(i.text(),t)&&i.toggleClass("xdsoft_disabled")}))}},e.datetimepicker.setLocale(n.locale),e(a).datetimepicker(y)}))},pwhDCFH.addSelect2=function(){s.select2(),e(document).on("select2:open",(t=>{const a=t.target.id;e(".select2-search__field[aria-controls='select2-"+a+"-results']").each((function(e,t){t.focus()}))}))};var _=null,r={},p=[];pwhDCFH.uploadFiles=function(){e(document).on("submit","form.et_pb_contact_form",(function(t){if(t.preventDefault(),null!==_){let t=e(this).parents('div[class*="et_pb_contact_form_container"]'),a=t.find(`${o}.et_pb_contact_message_top`);"none"===a.css("display")&&(a=t.find(`${o}.et_pb_contact_message_bottom`)),a.children().length>0?a.find("ul").first().append(_):a.append(`<ul>${_}</ul>`)}e.each(e(this).find(".et_pb_contact_hidden_files"),(function(t,a){let n=e(this),i=n.data("field-id");n.hasClass("et_contact_error")?void 0!==n.data("required_mark")&&"required"===n.data("required_mark")&&e(`p.et_pb_contact_field.et_pb_contact_field_${i}`).addClass("et_pb_required_border"):n.attr("novalidate")||""!==n.val()||"undefined"===n.data("required_mark")||"required"!==n.data("required_mark")?e(`p.et_pb_contact_field.et_pb_contact_field_${i}`).removeClass("et_pb_required_border"):e(`p.et_pb_contact_field.et_pb_contact_field_${i}`).addClass("et_pb_required_border")}))})),e("body").on("click",".et_pb_file_upload_button",(function(t){t.preventDefault(),e(this).parent().find(d).trigger("click")})),e("body").on("change",d,(function(){let a=new FormData,n=!1,l="",s=e(this),d=s.parent(),c=s.closest("form"),f=(c.parents('div[class^="et_pb_contact"]'),c.find(i).text()),u=c.find(i).data("wait-text"),m=s.data("field-id"),h=s.prop("files"),b=s.attr("name"),v=s.data("limit"),g=s.data("size"),w=s.data("size-formatted"),C=s[0].hasAttribute("multiple"),x=`input:file[name=${b}]`,D=`input:text[name=${b}]`,$=`input:hidden[name=${b}_file_token]`,y=e(`#et_pb_accepted_files_desc_${m}`),F=s.parents('div[class*="et_pb_contact_form_container"]'),k=F.find(`${o}.et_pb_contact_message_top`);"none"===k.css("display")&&(k=F.find(`${o}.et_pb_contact_message_bottom`));let H=e(`p.et_pb_contact_field.et_pb_contact_field_${m}`);r.hasOwnProperty(m)||(r[m]=[]),C||1!==r[m].length||(l+=`<li>${t.x_files_allow_text.replace("{allowed_files}",1)}</li>`,n=!0),h.length+r[m].length>v&&(l+=`<li>${t.x_files_allow_text.replace("{allowed_files}",v)}</li>`,n=!0);for(let e=0;e<=h.length-1;e++)h[e].size>=g&&(l+=`<li>${t.allow_filesize_text.replace("{filename}",h[e].name).replace("{allowed_filesize}",w)}</li>`,n=!0);if(n&&(_=l,e(x).val(""),e(D).addClass("et_contact_error"),e(D).attr("data-required_mark","required"),k.children().length>0?k.find("ul").first().append(l):k.append(`<ul>${l}</ul>`),H.addClass("et_pb_required_border"),k.addClass("et_pb_contact_error_meesage")),!1===n){for(let e=0;e<=h.length-1;e++){if(p.includes(h[e].name))return l+=`<li>${t.already_attached_text.replace("{filename}",h[e].name)}</li>`,k.children().length>0?k.find("ul").first().append(l):k.append(`<ul>${l}</ul>`),void H.addClass("et_pb_required_border");a.append(e,h[e]),p.push(h[e].name)}a.append("action","upload_file"),a.append("_wpnonce",pwh_dcfh_obj.ajaxNonce),a.append("token",e($).val()),e.ajax({type:"post",dataType:"json",contentType:!1,processData:!1,url:pwh_dcfh_obj.ajaxURL,data:a,xhr:function(){let e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",(function(e){if(e.lengthComputable){let a=Math.round(e.loaded/e.total*100);y.html(t.uploading_text.replace("{percentage}",a+"%"))}}),!1),e},beforeSend:function(){k.find('ul li:contains("'+d.find("label.et_pb_contact_form_label").text()+'")').remove(),H.removeClass("et_pb_required_border"),0===k.find("li").length&&k.find("p").remove(),d.find(".et_pb_contact_spinner").addClass("is-active"),e(x).prop("disabled",!0),c.find(i).prop("disabled",!0),c.find(i).text(u)}
1,success:function(a){if(!1!==a.success){if(a.data.success.length>0){let n="";e.each(a.data.success,(function(e,a){n+=`<span class="et_pb_file" data-id="${a.name}">`,n+=`<a href="${a.url}" class="et_pb_file_name" download>${a.tmp_name}</a>`,n+=`<span class="et_pb_file_size">(${a.size})</span>`,n+=`<span class="et-pb-icon et_pb_delete_file" aria-hidden="true" title="${t.delete_file_icon_hover_text}" data-field-id="${m}" data-field-name="${b}" data-file-name="${a.name}" data-file-tmp-name="${a.tmp_name}">M</span>`,n+="</span>",r.hasOwnProperty(m)||(r[m]=[]),r[m].push(a.name)})),d.find(".et_pb_files_list").append(n),e(D).val(r[m].join())}if(a.data.errors.length>0){n=!0;let t="";e.each(a.data.errors,(function(e,a){t+=`<li>${a.message}</li>`})),k.children().length>0?k.find("ul").first().append(t):k.append(`<ul>${t}</ul>`),k.addClass("et_pb_contact_error_meesage"),H.addClass("et_pb_required_border"),_=t}}else k.append(a.data)},complete:function(){e(x).val(""),y.html(y.data("description")),d.find(".et_pb_contact_spinner").removeClass("is-active"),e(x).prop("disabled",!1),c.find(i).prop("disabled",!1),c.find(i).text(f);let a=e(D).val().split(",").length,o="";t.selected_files_text.match(/\{_.+?}/g)&&(o=t.selected_files_text.match(/\{_.+?}/g).map((function(e){return e.slice(1,-1).replaceAll("_","")})),o=o.find((e=>!!e))),!1===n&&(a=1===a?t.selected_files_text.replace("{chosen_files_count}",a).replace(`{_${o}_}`,""):t.selected_files_text.replace("{chosen_files_count}",a).replace(`{_${o}_}`,o),d.find(".et_pb_file_chosen_desc").text(a))},error:function(e,t,a){}})}}))},pwhDCFH.removeFile=function(){e("body").on("click",".et_pb_delete_file",(function(){let a=e(this),n=a.closest("form"),l=n.find(i).text(),s=n.find(i).data("wait-text"),d=a.data("file-tmp-name"),c=a.data("file-name");if(confirm(t.remove_file_text.replace("{filename}",d))){let _=e(o).parent().find(o),f=a.data("field-name"),u=a.data("field-id");if(""!==f&&""!==c){let a=`input:text[name="${f}"]`;e.ajax({type:"post",dataType:"json",url:pwh_dcfh_obj.ajaxURL,data:{action:"remove_file",_wpnonce:pwh_dcfh_obj.ajaxNonce,file_name:c},beforeSend:function(){n.find(".et_pb_contact_spinner").addClass("is-active"),n.find(i).prop("disabled",!0),n.find(i).text(s)},success:function(i){if(!0===i.success){e('span[data-id="'+c+'"]').remove();let i=e(a).val().split(",").filter((function(e){return e!==c}));r[u]=i,e(a).val(i.join(",")),p=p.filter((function(e){return e.replace(/\s+/g,"-")!==d}));let o=i.length,l="";t.selected_files_text.match(/\{_.+?}/g)&&(l=t.selected_files_text.match(/\{_.+?}/g).map((function(e){return e.slice(1,-1).replaceAll("_","")}))),o=1===o?t.selected_files_text.replace("{chosen_files_count}",o).replace(`{_${l}_}`,""):o>1?t.selected_files_text.replace("{chosen_files_count}",o).replace(`{_${l}_}`,l):t.chosen_file_text,n.find(".et_pb_file_chosen_desc").text(o)}else _.html("<p>"+i.data+"</p>")},complete:function(){n.find(".et_pb_contact_spinner").removeClass("is-active"),n.find(i).prop("disabled",!1),n.find(i).text(l)},error:function(e,t,a){}})}}}))},pwhDCFH.redirectForm=function(){e(document).on("submit","form.et_pb_contact_form",(function(t){var a=e(this),n=a.parents('div[class*="et_pb_contact_form_container"]');if(void 0!==n){let t=e(n).find("form").data("redirect-url"),i=e(n).find("form").data("redirect-delay");if(void 0!==t&&void 0!==i){const e=setInterval((function(){0===a.parents('div[class*="et_pb_contact_form_container"]').find("form").length&&(clearInterval(e),setTimeout((function(){location.href=t}),i))}),1e3)}}}))},pwhDCFH.addClassToContactMessage=function(){e(document).on("submit","form.et_pb_contact_form",(function(t){let a=e(this),n=a.parents(),i=e(n.get(1)).hasClass("et_pb_recaptcha_enabled")||!1,l=a.parents('div[class*="et_pb_contact_form_container"]'),s=l.find(`${o}.et_pb_contact_message_top`);if("none"===s.css("display")&&(s=l.find(`${o}.et_pb_contact_message_bottom`)),!i&&s.children().length>0)s.addClass("et_pb_contact_error_meesage");else if(i){const e=setInterval((function(){s.children().length>0&&(clearInterval(e),s.addClass("et_pb_contact_error_meesage"))}),50)}}))},pwhDCFH.formTextareaCounter=0,pwhDCFH.textareaValidation=function(){e(document).on("submit","form.et_pb_contact_form",(function(t){var a=e(this);pwhDCFH.formTextareaCounter=pwhDCFH.formTextareaCounter+1,a.find(".et_pb_textarea_validation").each((function(t,n){let i=e(this),l=(i.closest("form"),i.data("field-name")),s=e(`#${l}`),d=i.data("title"),c=s.data("pattern"),_=s.data("message"),r=new RegExp("^"+c+"$"),p={},f=a.parents('div[class*="et_pb_contact_form_container"]'),u=f.find(`${o}.et_pb_contact_message_top`);"none"===u.css("display")&&(u=f.find(`${o}.et_pb_contact_message_bottom`)),u.has("ul").find("li").each((function(t,a){let n=e(this).text().toLowerCase();p[n]?e(this).remove():p[n]=!0})),""!==document.all[l].value&&(e.trim(document.all[l].value).match(r)?(i.val(!0),i.removeClass("et_contact_error"),i.removeAttr("data-required_mark"),u.find('ul li:contains("'+d+'")').remove(),0===u.find("li").length&&u.find("p").remove(),1===pwhDCFH.formTextareaCounter&&a.submit()):(i.val(""),i.addClass("et_contact_error"),i.attr("data-required_mark","required"),u.find('ul li:contains("'+d+'")').html(_)))}))}))},pwhDCFH.updateETPBCustom=function(){if("undefined"!=typeof et_pb_custom){let e=et_pb_custom.fill_message,t=et_pb_custom.contact_error_message;et_pb_custom.fill_message=e.replace(","," "),et_pb_custom.contact_error_message=t.replace(","," ")}},pwhDCFH.synchronizingICSURL=function(){e(document).on("click","button.ics_url_sync_btn",(function(t){t.preventDefault();let a=e(this),n=a.data("wpnonce"),i=e(this).parents('div[class*="et-fb-form__group"]').prev();if(i.length>0){let t=a.text(),o=i.find("input").val();""!==o&&""!==n?e.ajax({type:"post",dataType:"json",url:pwh_dcfh_obj.ajaxURL,data:{action:"sync_ics_url",_wpnonce:n,url:decodeURIComponent(o)},beforeSend:function(){i.prev().prev().find("input").val(""),i.prev().prev().find("input").focus(),i.prev().prev().find("input").click(),a.text("Please wait synchronizing data from url...")},success:function(t){t.success?setTimeout((function(){let a=t.data.dates_str.replace(/,(?=[^,]*$)/,"");i.prev().prev().find("input").val(a),i.prev().prev().find("input").focus(),i.prev().prev().find("input").click(),e(".et-fb-button--publish").click()}),500):alert(t.data)},complete:function(){a.text(t),i.find("input").val("")},error:function(e,t,a){}}):alert("Please add ICS Feed URL.")}}))},pwhDCFH.setCookie=function(e,t,a){if(null!==pwhDCFH.getCookie(e))return;let n="";a&&(c.setTime(c.getTime()+24*a*60*60*1e3),n="; expires="+c.toUTCString()),document.cookie=e+"="+(t||"")+n+"; path=/"},pwhDCFH.getCookie=function(e){for(var t=e+"=",a=document.cookie.split(";"),n=0;n<a.length;n++){for(var i=a[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}
1,pwhDCFH.messageConatiner=function(t){let a=e(t.parents().get(3)).find(`${o}.et_pb_contact_message_top`);return"none"===a.css("display")&&(a=e(t.parents('div[class^="et_pb_contact"]').next())),a},e(pwhDCFH.init)}(jQuery);
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.