"use strict";(self.webpackChunk_descope_web_components_ui=self.webpackChunk_descope_web_components_ui||[]).push([[1505],{51953:(e,t,s)=>{s.r(t),s.d(t,{HoneypotClass:()=>h,componentName:()=>r});var n=s(88961),i=s(72270),o=s(25964),p=s(63200);const r=(0,o.xE)("ponyhot"),u="dhp-",c=(0,i.qu)({componentName:r,baseSelector:""}),h=(0,p.Zz)(n.tQ)(class extends c{get type(){return this.getAttribute("type")}get value(){return this.input?.value||""}init(){this.input=this.querySelector("input"),this.input&&(this.#e(),this.#t(),this.#s())}#e(){const e=["input","change","click","keydown","keyup","mouseover","mousedown"],t=s=>{this.input.value=`${u}${s.type}`,e.forEach(e=>{this.input.removeEventListener(e,t)})};e.forEach(e=>{this.input.addEventListener(e,t)})}#t(){const e=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(this.input,"value",{get(){return e.get.call(this)},set(t){const s=e.get.call(this);t&&!t.startsWith(u)&&t!==s?e.set.call(this,`${u}direct-set`):e.set.call(this,t)},configurable:!0})}#s(){Object.entries({position:"absolute",opacity:"0.01",width:"1px",height:"1px",pointerEvents:"none",zIndex:"-1",left:"-999999px"}).forEach(([e,t])=>{this.style[e]=t})}});customElements.define(r,h)}}]);
//# sourceMappingURL=descope-honeypot.js.map