PageSourceSearch

https://www.unionevaldenza.it/static/js/hcaptcha-react-hcaptcha.b540ff6c.chunk.js

js unionevaldenza.it collected 2026-10-07 03:00:17 UTC 8,268 bytes, 2 lines download raw bytes

1(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[91582],{46702:(e,t,r)=>{"use strict";var o=r(64836),n=o(r(18698)),a=o(r(56690)),s=o(r(89728)),i=o(r(66115)),c=o(r(61655)),p=o(r(94993)),u=o(r(73808));function d(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=(0,u.default)(e);if(t){var n=(0,u.default)(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return(0,p.default)(this,r)}}var l=r(67294),f=r(99309).generateQuery,h=[],v=!1,y=function(e){(0,c.default)(r,e);var t=d(r);function r(e){var o;(0,a.default)(this,r),(o=t.call(this,e)).renderCaptcha=o.renderCaptcha.bind((0,i.default)(o)),o.resetCaptcha=o.resetCaptcha.bind((0,i.default)(o)),o.removeCaptcha=o.removeCaptcha.bind((0,i.default)(o)),o.handleOnLoad=o.handleOnLoad.bind((0,i.default)(o)),o.handleSubmit=o.handleSubmit.bind((0,i.default)(o)),o.handleExpire=o.handleExpire.bind((0,i.default)(o)),o.handleError=o.handleError.bind((0,i.default)(o));var n="undefined"!==typeof hcaptcha;return o.ref=l.createRef(),o.state={isApiReady:n,isRemoved:!1,elementId:e.id,captchaId:""},o}return(0,s.default)(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.apihost,r=e.assethost,o=e.endpoint,n=e.host,a=e.imghost,s=e.languageOverride,i=e.reCaptchaCompat,c=e.reportapi,p=e.sentry,u=e.custom;this.state.isApiReady?this.renderCaptcha():(v||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v=!0,window.hcaptchaOnLoad=function(){h=h.filter((function(e){return e(),!1}))};var t=e.apihost||"https://hcaptcha.com";delete e.apihost;var r=document.createElement("script");r.src="".concat(t,"/1/api.js?render=explicit&onload=hcaptchaOnLoad"),r.async=!0;var o=f(e);r.src+=""!==o?"&".concat(o):"",document.head.appendChild(r)}({apihost:t,assethost:r,endpoint:o,hl:s,host:n,imghost:a,recaptchacompat:!1===i?"off":null,reportapi:c,sentry:p,custom:u}),h.push(this.handleOnLoad))}},{key:"componentWillUnmount",value:function(){var e=this.state,t=e.isApiReady,r=e.isRemoved,o=e.captchaId;t&&!r&&(hcaptcha.reset(o),hcaptcha.remove(o))}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.isApiReady===t.isApiReady&&this.state.isRemoved===t.isRemoved}},{key:"componentDidUpdate",value:function(e){var t=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every((function(r){return e[r]===t.props[r]}))||this.removeCaptcha((function(){t.renderCaptcha()}))}},{key:"renderCaptcha",value:function(e){if(this.state.isApiReady){var t=Object.assign({"error-callback":this.handleError,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),r=hcaptcha.render(this.ref.current,t);this.setState({isRemoved:!1,captchaId:r},(function(){e&&e()}))}}},{key:"resetCaptcha",value:function(){var e=this.state,t=e.isApiReady,r=e.isRemoved,o=e.captchaId;t&&!r&&hcaptcha.reset(o)}},{key:"removeCaptcha",value:function(e){var t=this.state,r=t.isApiReady,o=t.isRemoved,n=t.captchaId;r&&!o&&this.setState({isRemoved:!0},(function(){hcaptcha.remove(n),e&&e()}))}},{key:"handleOnLoad",value:function(){var e=this;this.setState({isApiReady:!0},(function(){e.renderCaptcha((function(){var t=e.props.onLoad;t&&t()}))}))}},{key:"handleSubmit",value:function(e){var t=this.props.onVerify,r=this.state,o=r.isRemoved,n=r.captchaId;"undefined"===typeof hcaptcha||o||t(hcaptcha.getResponse(n),hcaptcha.getRespKey(n))}},{key:"handleExpire",value:function(){var e=this.props.onExpire,t=this.state,r=t.isApiReady,o=t.isRemoved,n=t.captchaId;r&&!o&&(hcaptcha.reset(n),e&&e())}},{key:"handleError",value:function(e){var t=this.props.onError,r=this.state,o=r.isApiReady,n=r.isRemoved,a=r.captchaId;o&&!n&&(hcaptcha.reset(a),t&&t(e))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.state,r=t.isApiReady,o=t.isRemoved,a=t.captchaId;if(r&&!o)return e&&"object"!==(0,n.default)(e)&&(e=null),hcaptcha.execute(a,e)}},{key:"render",value:function(){var e=this.state.elementId;return l.createElement("div",{ref:this.ref,id:e})}}]),r}(l.Component);e.exports=y},99309:(e,t,r)=>{"use strict";var o=r(64836)(r(27424));e.exports={generateQuery:function(e){return Object.entries(e).filter((function(e){var t=(0,o.default)(e,2),r=(t[0],t[1]);return r||!1===r})).map((function(e){var t=(0,o.default)(e,2),r=t[0],n=t[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(n))})).join("&")}}},73897:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o},e.exports.__esModule=!0,e.exports.default=e.exports},85372:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},66115:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},56690:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},89728:(e,t,r)=>{var o=r(64062);function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},73808:e=>{function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},61655:(e,t,r)=>{var o=r(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},68872:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,s,i=[],c=!0,p=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=a.call(r)).done)&&(i.push(o.value),i.length!==t);c=!0);}catch(u){p=!0,n=u}
1finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(p)throw n}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},12218:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},94993:(e,t,r)=>{var o=r(18698).default,n=r(66115);e.exports=function(e,t){if(t&&("object"===o(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},6015:e=>{function t(r,o){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:(e,t,r)=>{var o=r(85372),n=r(68872),a=r(86116),s=r(12218);e.exports=function(e,t){return o(e)||n(e,t)||a(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},86116:(e,t,r)=>{var o=r(73897);e.exports=function(e,t){if(e){if("string"===typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);
2//# sourceMappingURL=hcaptcha-react-hcaptcha.b540ff6c.chunk.js.map

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.