PageSourceSearch

https://www.securityinfowatch.com/_nuxt/useVueRecaptcha-C6t8A1Zv.mjs

js securityinfowatch.com collected 2026-10-02 03:02:29 UTC 9,408 bytes, 1 lines download raw bytes

vendor: 6,081 bytes, line 1
1import{t as e}from"./rolldown-runtime-B0Z9INg1.mjs";import{a as t}from"./nuxt-Dw3LQvcO.mjs";import{t as n}from"./vue-D3l4OVTZ.mjs";var r=e((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o={next:s(0),throw:s(1),return:s(2)};return typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=void 0,e.ReCaptchaInstance=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return t(this,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:e})]:[3,2];case 1:return t=n.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:e})];case 3:t=n.sent(),n.label=4;case 4:return[2,t]}})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement(`style`),this.styleContainer.innerHTML=`.grecaptcha-badge{visibility:hidden !important;}`,document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}()})),i=e((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getInstance=e.load=void 0;var n=r(),i;(function(e){e[e.NOT_LOADED=0]=`NOT_LOADED`,e[e.LOADING=1]=`LOADING`,e[e.LOADED=2]=`LOADED`})(i||={});var a=function(){function e(){}return e.load=function(t,r){if(r===void 0&&(r={}),typeof document>`u`)return Promise.reject(Error(`This is a library for the browser!`));if(e.getLoadingState()===i.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(Error(`reCAPTCHA already loaded with different site key!`));if(e.getLoadingState()===i.LOADING)return t===e.instanceSiteKey?new Promise(function(t,n){e.successfulLoadingConsumers.push(function(e){return t(e)}),e.errorLoadingRunnable.push(function(e){return n(e)})}):Promise.reject(Error(`reCAPTCHA already loaded with different site key!`));e.instanceSiteKey=t,e.setLoadingState(i.LOADING);var a=new e;return new Promise(function(o,s){a.loadScript(t,r.useRecaptchaNet||!1,r.useEnterprise||!1,r.renderParameters?r.renderParameters:{},r.customUrl).then(function(){e.setLoadingState(i.LOADED);var s=a.doExplicitRender(grecaptcha,t,r.explicitRenderParameters?r.explicitRenderParameters:{},r.useEnterprise||!1),c=new n.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(e){return e(c)}),e.successfulLoadingConsumers=[],r.autoHideBadge&&c.hideBadge(),e.instance=c,o(c)}).catch(function(t){e.errorLoadingRunnable.forEach(function(e){return e(t)}),e.errorLoadingRunnable=[],s(t)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?i.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,a,o){var s=this;n===void 0&&(n=!1),r===void 0&&(r=!1),a===void 0&&(a={}),o===void 0&&(o=``);var c=document.createElement(`script`);c.setAttribute(`recaptcha-v3-script`,``),c.setAttribute(`async`,``),c.setAttribute(`defer`,``);var l=`https://www.google.com/recaptcha/api.js`;n?l=r?`https://recaptcha.net/recaptcha/enterprise.js`:`https://recaptcha.net/recaptcha/api.js`:r&&(l=`https://www.google.com/recaptcha/enterprise.js`),o&&(l=o),a.render&&(a.render=void 0);var u=this.buildQueryString(a);return c.src=l+`?render=explicit`+u,new Promise(function(t,n){c.addEventListener(`load`,s.waitForScriptToLoad(function(){t(c)},r),!1),c.onerror=function(t){e.setLoadingState(i.NOT_LOADED),n(t)},document.head.appendChild(c)})},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?``:`&`+Object.keys(e).filter(function(t){return!!e[t]}).map(function(t){return t+`=`+e[t]}).join(`&`)},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(e,n,r,i){var a=t({sitekey:n},r);return r.container?i?e.enterprise.render(r.container,a):e.render(r.container,a):i?e.enterprise.render(a):e.render(a)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();e.load=a.load,e.getInstance=a.getInstance})),a=e((e=>
1{Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=i();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=r();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})),o=e((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},r=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o={next:s(0),throw:s(1),return:s(2)};return typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>
10&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.useReCaptcha=e.VueReCaptcha=void 0;var i=a(),o=n(),s=Symbol(`VueReCaptchaInjectKey`),c={loadedWaiters:[],error:null};e.VueReCaptcha={install:function(e,t){var n=o.ref(!1),r=o.ref(void 0);e.config.globalProperties.$recaptchaLoaded=d(n),u(t).then(function(t){n.value=!0,r.value=t,e.config.globalProperties.$recaptcha=f(r),e.config.globalProperties.$recaptchaInstance=r,c.loadedWaiters.forEach(function(e){return e.resolve(!0)})}).catch(function(e){c.error=e,c.loadedWaiters.forEach(function(t){return t.reject(e)})}),e.provide(s,{instance:r,isLoaded:n,executeRecaptcha:f(r),recaptchaLoaded:d(n)})}};function l(){return o.inject(s)}e.useReCaptcha=l;function u(e){return t(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,i.load(e.siteKey,e.loaderOptions)];case 1:return[2,t.sent()]}})})}function d(e){return function(){return new Promise(function(t,n){if(c.error!==null)return n(c.error);if(e.value)return t(!0);c.loadedWaiters.push({resolve:t,reject:n})})}}function f(e){var n=this;return function(i){return t(n,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,e.value?.execute(i)];case 1:return[2,t.sent()]}})})}}}))();function s(){let{vueApp:e,$ss:n}=t();e.__recaptcha_installed||=(e.use(o.VueReCaptcha,{siteKey:n.tenantInfo.reCAPTCHAPublicKey,loaderOptions:{autoHideBadge:!0}}),!0);let{executeRecaptcha:r,recaptchaLoaded:i}=(0,o.useReCaptcha)();return async e=>(await i(),await r(e))}export{s as 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.