Skip to Content

JavaScript File

URL: https://www.lifestylefoodies.com/wp-content/plugins/contact-form-7/includes/swv/js/index.js
HTTP Status: 200 OK
MIME Type: application/x-javascript
Last Modified: Sat, 10 Dec 2022 12:43:22 GMT
Download Time: Less than a second
Cookies: None
Size: 11 KB
HTTP Headers:  11 headers
Links In:  1 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1!function(){"use strict";var t={d:function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]}

2)}

3,o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}

4,r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}

5),Object.defineProperty(t,"__esModule",{value:!0}

6)}

7}

8,e={}

9;function n(t){if(this.formData={}

10,this.tree={}

11,!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,n){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,n)}

12,t}

13;this.tree=e();const n=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,i]of this.formData){const s=t.match(n);if(s)if(""===s.groups.array)this.tree.set(s.groups.name,i);else{const t=[...s.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(s.groups.name);const n=t.pop();t.reduce(((t,n)=>{if(/^[0-9]+$/.test(n)&&(n=parseInt(n)),t.get(n)instanceof Map)return t.get(n);const i=e();return t.set(n,i),i}

14),this.tree).set(n,i)}

15}

16}

17t.r(e),t.d(e,{date:function(){return f}

18,email:function(){return r}

19,enumeration:function(){return m}

20,file:function(){return d}

21,maxdate:function(){return b}

22,maxfilesize:function(){return z}

23,maxitems:function(){return h}

24,maxlength:function(){return v}

25,maxnumber:function(){return x}

26,mindate:function(){return y}

27,minfilesize:function(){return A}

28,minitems:function(){return u}

29,minlength:function(){return g}

30,minnumber:function(){return w}

31,number:function(){return c}

32,required:function(){return o}

33,requiredfile:function(){return a}

34,tel:function(){return l}

35,url:function(){return p}

36}

37),n.prototype.entries=function(){return this.tree.entries()}

38,n.prototype.get=function(t){return this.tree.get(t)}

39,n.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const n=[];if(t instanceof Map)for(const[i,s]of t)n.push(...e(s));else""!==t&&n.push(t);return n}

40;return e(this.get(t))}

...

</html>