PageSourceSearch

https://ecctis.com/wp-content/plugins/eightshift-forms/public/898-567ceef69557805cf7d9.js

js ecctis.com collected 2026-10-03 23:38:57 UTC 4,650 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkEightshiftForms=self.webpackChunkEightshiftForms||[]).push([[898],{1898:(t,e,n)=>{n.r(e),n.d(e,{Captcha:()=>c});var a=n(9328);function i(t,e,n,a,i,r,o){try{var c=t[r](o),s=c.value}catch(t){n(t);return}c.done?e(s):Promise.resolve(s).then(a,i)}function r(t){return function(){var e=this,n=arguments;return new Promise(function(a,r){var o=t.apply(e,n);function c(t){i(o,a,r,c,s,"next",t)}function s(t){i(o,a,r,c,s,"throw",t)}c(void 0)})}}function o(t,e){var n,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function c(r){return function(c){return function(r){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,a=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(t,o)}catch(t){r=[6,t],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,c])}}}var c=function(){var t;function e(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),this.utils=t,this.state=this.utils.getState(),this.publicMethods()}return t=[{key:"init",value:function(){this.initCaptchaOnLoad(),this.initHideCaptchaBadge()}},{key:"initCaptchaOnLoad",value:function(){if(this.state.getStateCaptchaIsUsed()&&this.state.getStateCaptchaLoadOnInit()){var t=this.state.getStateCaptchaInitAction(),e=this.state.getStateCaptchaSiteKey();if("undefined"!=typeof grecaptcha){if(this.state.getStateCaptchaIsEnterprise()){var n,a,i=this;null===(a=grecaptcha)||void 0===a||null===(n=a.enterprise)||void 0===n||n.ready(r(function(){var n,a,r,c;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,null===(a=grecaptcha)||void 0===a?void 0:null===(n=a.enterprise)||void 0===n?void 0:n.execute(e,{action:t})];case 1:return r=o.sent(),i.formSubmitCaptchaInvisible(r,!0,t),[3,3];case 2:throw c=o.sent(),Error('API response returned fatal error. Function used: "initCaptchaOnLoad". '.concat(c));case 3:return[2]}})}))}else{var c,s=this;null===(c=grecaptcha)||void 0===c||c.ready(r(function(){var n,a,i;return o(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,null===(n=grecaptcha)||void 0===n?void 0:n.execute(e,{action:t})];case 1:return a=r.sent(),s.formSubmitCaptchaInvisible(a,!1,t),[3,3];case 2:throw i=r.sent(),Error('API response returned fatal error. Function used: "initCaptchaOnLoad". '.concat(i));case 3:return[2]}})}))}}}}},{key:"formSubmitCaptchaInvisible",value:function(t,e,n){var a=this,i=new FormData;i.append("token",t),i.append("isEnterprise",e),i.append("action",n),fetch(this.state.getRestUrl("captcha"),{method:"POST",mode:"same-origin",headers:{Accept:"application/json"},body:i,redirect:"follow",referrer:"no-referrer"}).then(function(t){return a.utils.formSubmitErrorContentType(t,"invisibleCaptcha",null),t.text()}).then(function(t){var e,i=a.utils.formSubmitIsJsonString(t,"invisibleCaptcha",null);if((null==i?void 0:i.status)==="error"&&!(null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.isSpam))throw Error('API response returned an error. Function used: "formSubmitCaptchaInvisible". Msg: '.concat(i.message," Action: ").concat(n));a.utils.dispatchFormEventWindow(a.state.getStateEvent("afterCaptchaInit"),i)})}},{key:"initHideCaptchaBadge",value:function(){var t,e;this.state.getStateCaptchaIsUsed()&&(null===(e=document)||void 0===e||null===(t=e.body)||void 0===t||t.setAttribute(this.state.getStateAttribute("hideCaptchaBadge"),this.state.getStateCaptchaHideBadge()))}},{key:"publicMethods",value:function(){var t=this;(0,a.EF)(),!window[a.Pl].captcha&&(window[a.Pl].captcha={init:function(){t.init()}
1,initCaptchaOnLoad:function(){t.initCaptchaOnLoad()},formSubmitCaptchaInvisible:function(e,n,a){t.formSubmitCaptchaInvisible(e,n,a)},initHideCaptchaBadge:function(){t.initHideCaptchaBadge()}})}}],function(t,e){for(var n=0;n<e.length;n++){var a=e[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}(e.prototype,t),e}()}}]);

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.