1(()=>{"use strict";const e={n:t=>{const o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{if(Array.isArray(o))for(var i=0;i<o.length;){var n=o[i++],r=o[i++];e.o(t,n)?0===r&&i++:0===r?Object.defineProperty(t,n,{enumerable:!0,value:o[i++]}):Object.defineProperty(t,n,{enumerable:!0,get:r})}else for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.hasOwn(e,t)},t=window.wp.hooks,o=window.wp.apiFetch;var i=e.n(o);const n=function(e,t,o){let i=`${e}=${t}; path=/`;if(o){const e=new Date;e.setTime(e.getTime()+60*o*60*1e3),i+=`; expires=${e.toUTCString()}`}document.cookie=i},r=(e,t)=>{let o=e.getAttribute("id");o=o.replace("popup-builder-","");const{entrAnimation:i,exitAnimation:r,animationDuration:s,type:a,preventScroll:p}=t||{},l=e.querySelector(".popup-builder-container");"inline"!==a&&r&&(l.classList.remove(`${i}`),l.classList.add(`${r}`),l.classList.add("reverse")),setTimeout(()=>{["popup","full-screen"].includes(a)&&p&&(document.body.style.overflow=""),l.classList.remove(`${r}`),l.classList.remove("reverse"),n(`pbb_closed_${o}`,"true",8760),e.style.opacity=0,e.style.display="none"},1e3*("inline"!==a?s:0))},s=function(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():null},a=()=>window.parent.location.search.includes("preview=true")||window.parent.location.search.includes("subpage=templates")||"https://wpmet.com/plugin/popupkit/templates/"===window.parent.location.href,p=async(e,o)=>{let p=e.getAttribute("id");p=p.replace("popup-builder-","");const l=e.querySelector(".popup-builder-container"),c=e.querySelector(".popup-builder-close"),u=window.getComputedStyle(e),{left:d,right:b,top:y,bottom:g}=u||{},{outsideClose:w,entrAnimation:v,animationDuration:m,type:f}=o||{},h=e=>"0px"===e?0:void 0,_={display:"flex",position:"fixed","z-index":9999,border:"none",opacity:1};switch(f){case"popup":case"full-screen":_.height="100%",_.width="100%",_.top=0,_.left=0,o?.preventScroll&&(document.body.style.overflow="hidden");break;case"floating-bar":case"slide-in":_.bottom=h(g),_.left=h(d),_.right=h(b),_.top=h(y);break;case"inline":_.position="relative"}if(e.style=(k=_,Object.entries(k).map(([e,t])=>`${e}: ${t};`).join(" ")),"inline"!==f&&v&&(l.classList.add(`${v}`),l.style.setProperty("--pbb-popup-animate-duration",`${m}s`),setTimeout(()=>{l.classList.remove(`${v}`)},1e3*m)),c&&c.addEventListener("click",()=>r(e,o)),w&&e.addEventListener("click",t=>{const i=e.querySelector(".popup-builder-content");i&&i.contains(t.target)||r(e,o)}),(c||w)&&document.addEventListener("keydown",function(t){"Escape"===t.key&&r(e,o)}),!a()){let r=parseInt(s(`pbb_viewed_${p}_count`));r=isNaN(r)?0:r,n(`pbb_viewed_${p}_count`,r+1,8760),(0,t.doAction)("popup-builder.setCookie",e,o),i()({path:"/pbb/v1/popup/logs",method:"POST",data:{postId:Number(p)}}).then(e=>{if("success"===e.status){const{logId:t,userDetails:o,location:i}=e.data;n("pbb_user_info",JSON.stringify(o),168),sessionStorage.setItem("pbb_logs",t),n("pbb_location",JSON.stringify(i),168)}})}var k},l=async e=>{const{popupID:o,popupAttributes:i}=(e=>{const t=JSON.parse(e.getAttribute("data-settings"));return{popupID:e.getAttribute("id").replace("popup-builder-",""),popupAttributes:t}})(e);if(a())return void p(e,i);const r=((e,o)=>{const{scheduleDateTime:i,displayVisitor:r,adblockDetection:a}=o||{};return{adblockDetection:async()=>new Promise(e=>{a&&"function"==typeof window.parent.adblockDetect?window.parent.adblockDetect(function(t){e(!!t)}):e(!0)}),checkFrequency:()=>{const i=(()=>{let o=!1;return r?.convertionOff&&"true"===s(`pbb_conversion_${e}`)||("new"===r?.visitor?"true"!==s("pbb_new_visitor")&&"true"!==s("pbb_old_visitor")&&((0,t.addAction)("popup-builder.setCookie",`popup-${e}-visitortype`,()=>{n("pbb_new_visitor","true",24*r?.newDayCount),n("pbb_old_visitor","true",24*(r?.returnDayCount||2))}),o=!0):"return"===r?.visitor?"true"!==s("pbb_old_visitor")&&((0,t.addAction)("popup-builder.setCookie",`popup-${e}-visitortype`,()=>{n("pbb_old_visitor","true",24*(r?.returnDayCount||2))}),o=!0):("true"!==s("pbb_old_visitor")&&(0,t.addAction)("popup-builder.setCookie",`popup-${e}-visitortype`,()=>{n("pbb_old_visitor","true",24*(r?.returnDayCount||2))}),o=!0)),o})();return!!i&&(!(!i||"new"!==r?.visitor)||("once-a-day"===r?.frequency?"true"!==s(`pbb_viewed_${e}`)&&((0,t.addAction)("popup-builder.setCookie",`popup-${e}-frequency`,()=>{n(`pbb_viewed_${e}`,"true",24)}),!0):(0,t.applyFilters)("popup-builder.checkFrequency",e,o,s,n)))},scheduleDateTime:async()=>!i||await(0,t.applyFiltersAsync)("popup-builder.checkTimeAndShowPopup",o),localStorageTargeting:()=>{const{localStorageTargets:e}=o||{};if(!e||0===e.length)return!0;for(const t of e){let e=!1,o=!1;const i=window.parent.localStorage.getItem(t.keyValue);switch(t.keyCondition){case"exactly-matches":for(let o in window.parent.localStorage)if(o===t.keyValue){e=!0;break}break;case"exists":for(let o in window.parent.localStorage)if(o.includes(t.keyValue)){e=!0;break}}if(!e)return!1;switch(t.valueCondition){case"contains":i&&i.includes(t.value)&&(o=!0);break;case"starts-with":i&&i.startsWith(t.value)&&(o=!0);break;case"ends-with":i&&i.endsWith(t.value)&&(o=!0);break;case"equal":i===t.value&&(o=!0);break;case"is-empty":null!==i&&""!==i||(o=!0);break;case"is-anything":o=!0;break;case"matches-pattern":try{const e=new RegExp(t.value);i&&e.test(i)&&(o=!0)}catch(e){console.error("Invalid regex pattern:",t.value)}}if(o&&"hide"===t.showCondition)return!1;if(!o&&"show"===t.showCondition)return!1}return!0},htmlElementTargeting:()=>{const{htmlElementTargets:i}=o||{};return(0,t.applyFilters)("popup-builder.htmlElementTargeting",!0,i,e,o)},sessionTargeting:()=>{const{sessionTargets:i}=o||{};return(0,t.applyFilters)("popup-builder.sessionTargeting",!0,i,e,o)}}})(o,i),l=r.checkFrequency(),c=await r.adblockDetection(),u=await r.scheduleDateTime(),d=r.localStorageTargeting(),b=r.htmlElementTargeting(),y=r.sessionTargeting();l&&c&&u&&d&&b&&y&&function(e,o){const{openTrigger:i,pageLoadDelay:n}=o||{};"page-load"===i?setTimeout(()=>{p(e,o)},1e3*(n||0)):"click-count"===i?(()=>{let t=0;const i=()=>{t++,t>=o.clickCount&&(p(e,o),document.removeEventListener("click",i))};document.addEventListener("click",i)})():(0,t.doAction)("popup-builder.checkOpenTrigger",e,o,p)}(e,i)};var c;c="popup-builder",window.addEventListener("load",()=>{window[`__POPUPKIT_${c.toUpperCase()}_INIT`]||(window[`__POPUPKIT_${c.toUpperCase()}_INIT`]=!0,(()=>{const e=document.querySelectorAll(".popup-builder-modal");if(e.length>0)for(const t of e)l(t)})())})})();
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.