HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/f/r/e/frenchy/refonte2023/wordpress/wp-content/plugins/give/build/donationFormBlockApp.js
!function(){var e={2703:function(e,n,t){"use strict";var i=t(414);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,r,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:o};return t.PropTypes=t,t}},5697:function(e,n,t){e.exports=t(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},n={};function t(i){var o=n[i];if(void 0!==o)return o.exports;var r=n[i]={exports:{}};return e[i](r,r.exports,t),r.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},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]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){"use strict";var e=window.wp.element,n=t(5697),i=t.n(n),o=window.React,r=t.n(o);function a(){return a=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},a.apply(this,arguments)}function s(e,n){if(null==e)return{};var t,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)t=r[i],n.indexOf(t)>=0||(o[t]=e[t]);return o}var c,d,u=(c=function(e){!function(n){if("undefined"!=typeof window){var t,i=0,o=!1,r=!1,a=7,s="[iFrameSizer]",c=s.length,d=null,u=window.requestAnimationFrame,l={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},m=null,g={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){x("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},h={};window.jQuery&&((t=window.jQuery).fn?t.fn.iFrameResize||(t.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,t){L(t,e)})).end()}):M("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof n&&n.amd?n([],B):e.exports=B(),window.iFrameResize=window.iFrameResize||B()}function p(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,!1)}function b(e,n,t){e.removeEventListener(n,t,!1)}function y(e){return f[e]?f[e].log:o}function v(e,n){F("log",e,n,y(e))}function M(e,n){F("info",e,n,y(e))}function x(e,n){F("warn",e,n,!0)}function F(e,n,t,i){!0===i&&"object"==typeof window.console&&console[e](function(e){return s+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),t)}function k(e){function n(){t("Height"),t("Width"),S((function(){W(j),E(A),g("onResized",j)}),j,"init")}function t(e){var n=Number(f[A]["max"+e]),t=Number(f[A]["min"+e]),i=e.toLowerCase(),o=Number(j[i]);v(A,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,v(A,"Set "+i+" to min value")),o>n&&(o=n,v(A,"Set "+i+" to max value")),j[i]=""+o}function i(e){return N.substr(N.indexOf(":")+a+e)}function o(e,n){var t,i;t=function(){var t,i;P("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),i=j.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:i.height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},h[i=n]||(h[i]=setTimeout((function(){h[i]=null,t()}),32))}function r(e){var n=e.getBoundingClientRect();return R(A),{x:Math.floor(Number(n.left)+Number(d.x)),y:Math.floor(Number(n.top)+Number(d.y))}}function u(e){var n=e?r(j.iframe):{x:0,y:0},t={x:Number(j.width)+n.x,y:Number(j.height)+n.y};v(A,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):x(A,"Unable to scroll to requested position, window.parentIFrame not found"):(d=t,l(),v(A,"--"))}function l(){!1!==g("onScroll",d)?E(A):C()}function m(e){g(e,{iframe:j.iframe,screenX:j.width,screenY:j.height,type:j.type})}function g(e,n){return z(A,e,n)}var p,y,F,k,I,L,N=e.data,j={},A=null;"[iFrameResizerChild]Ready"===N?function(){for(var e in f)P("iFrame requested init",H(e),f[e].iframe,e)}():s===(""+N).substr(0,c)&&N.substr(c).split(":")[0]in f?(k=(F=N.substr(c).split(":"))[1]?parseInt(F[1],10):0,I=f[F[0]]&&f[F[0]].iframe,L=getComputedStyle(I),j={iframe:I,id:F[0],height:k+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(L)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(L),width:F[2],type:F[3]},A=j.id,f[A]&&(f[A].loaded=!0),(y=j.type in{true:1,false:1,undefined:1})&&v(A,"Ignoring init message from meta parent page"),!y&&function(e){var n=!0;return f[e]||(n=!1,x(j.type+" No settings for "+e+". Message was: "+N)),n}(A)&&(v(A,"Received: "+N),p=!0,null===j.iframe&&(x(A,"IFrame ("+j.id+") not found"),p=!1),p&&function(){var n,t=e.origin,i=f[A]&&f[A].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(v(A,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(n=f[A]&&f[A].remoteHost,v(A,"Checking connection is from: "+n),t===n)))throw new Error("Unexpected message received from: "+t+" for "+j.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(f[A]&&f[A].firstRun&&f[A]&&(f[A].firstRun=!1),j.type){case"close":O(j.iframe);break;case"message":c=i(6),v(A,"onMessage passed: {iframe: "+j.iframe.id+", message: "+c+"}"),g("onMessage",{iframe:j.iframe,message:JSON.parse(c)}),v(A,"--");break;case"mouseenter":m("onMouseEnter");break;case"mouseleave":m("onMouseLeave");break;case"autoResize":f[A].autoResize=JSON.parse(i(9));break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":o(f[A]&&f[A].iframe,A),function(){function e(e,i){function r(){f[t]?o(f[t].iframe,t):n()}["scroll","resize"].forEach((function(n){v(t,e+n+" listener for sendPageInfo"),i(window,n,r)}))}function n(){e("Remove ",b)}var t=A;e("Add ",w),f[t]&&(f[t].stopPageInfo=n)}();break;case"pageInfoStop":f[A]&&f[A].stopPageInfo&&(f[A].stopPageInfo(),delete f[A].stopPageInfo);break;case"inPageLink":t=i(9).split("#")[1]||"",a=decodeURIComponent(t),(s=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(s),v(A,"Moving to in page link (#"+t+") at x: "+e.x+" y: "+e.y),d={x:e.x,y:e.y},l(),v(A,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(t):v(A,"In page link #"+t+" not found and window.parentIFrame not found"):v(A,"In page link #"+t+" not found");break;case"reset":T(j);break;case"init":n(),g("onInit",j.iframe);break;default:n()}var e,t,a,s,c}())):M(A,"Ignored: "+N)}function z(e,n,t){var i=null,o=null;if(f[e]){if("function"!=typeof(i=f[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=i(t)}return o}function I(e){var n=e.id;delete f[n]}function O(e){var n=e.id;if(!1!==z(n,"onClose",n)){v(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){x(e)}z(n,"onClosed",n),v(n,"--"),I(e)}else v(n,"Close iframe cancelled by onClose event")}function R(e){null===d&&v(e,"Get page position: "+(d={x:window.pageXOffset!==n?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==n?window.pageYOffset:document.documentElement.scrollTop}).x+","+d.y)}function E(e){null!==d&&(window.scrollTo(d.x,d.y),v(e,"Set page position: "+d.x+","+d.y),C())}function C(){d=null}function T(e){v(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),R(e.id),S((function(){W(e),P("reset","reset",e.iframe,e.id)}),e,"reset")}function W(e){function n(n){r||"0"!==e[n]||(r=!0,v(i,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(f).forEach((function(e){!function(e){function n(n){return"0px"===(f[e]&&f[e].iframe.style[n])}f[e]&&null!==f[e].iframe.offsetParent&&(n("height")||n("width"))&&P("Visibility change","resize",f[e].iframe,e)}(e)}))}function n(n){v("window","Mutation observed: "+n[0].target+" "+n[0].type),N(e,16)}var t,i=p();i&&(t=document.querySelector("body"),new i(n).observe(t,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function t(t){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",v(e.id,"IFrame ("+i+") "+n+" set to "+e[n]+"px")):v("undefined","messageData id not set")}(t),n(t)}var i=e.iframe.id;f[i]&&(f[i].sizeHeight&&t("height"),f[i].sizeWidth&&t("width"))}function S(e,n,t){t!==n.type&&u&&!window.jasmine?(v(n.id,"Requesting animation frame"),u(e)):e()}function P(e,n,t,i,o){var r,a=!1;i=i||t.id,f[i]&&(t&&"contentWindow"in t&&null!==t.contentWindow?(r=f[i]&&f[i].targetOrigin,v(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+r),t.contentWindow.postMessage(s+n,r)):x(i,"["+e+"] IFrame("+i+") not found"),o&&f[i]&&f[i].warningTimeout&&(f[i].msgTimeout=setTimeout((function(){!f[i]||f[i].loaded||a||(a=!0,x(i,"IFrame has not responded within "+f[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),f[i].warningTimeout)))}function H(e){return e+":"+f[e].bodyMarginV1+":"+f[e].sizeWidth+":"+f[e].log+":"+f[e].interval+":"+f[e].enablePublicMethods+":"+f[e].autoResize+":"+f[e].bodyMargin+":"+f[e].heightCalculationMethod+":"+f[e].bodyBackground+":"+f[e].bodyPadding+":"+f[e].tolerance+":"+f[e].inPageLinks+":"+f[e].resizeFrom+":"+f[e].widthCalculationMethod}function L(e,t){function r(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],x(c,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var a,s,c=function(n){var r;return""===n&&(e.id=(r=t&&t.id||g.id+i++,null!==document.getElementById(r)&&(r+=i++),n=r),o=(t||{}).log,v(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);c in f&&"iFrameResizer"in e?x(c,"Ignored iFrame, already setup."):(function(n){var t;n=n||{},f[c]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(n),Object.keys(n).forEach(r,n),function(e){for(var n in g)Object.prototype.hasOwnProperty.call(g,n)&&(f[c][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:g[n])}(n),f[c]&&(f[c].targetOrigin=!0===f[c].checkOrigin?""===(t=f[c].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*")}(t),function(){switch(v(c,"IFrame scrolling "+(f[c]&&f[c].scrolling?"enabled":"disabled")+" for "+c),e.style.overflow=!1===(f[c]&&f[c].scrolling)?"hidden":"auto",f[c]&&f[c].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=f[c]?f[c].scrolling:"no"}}(),function(){function n(n){1/0!==f[c][n]&&0!==f[c][n]&&(e.style[n]=f[c][n]+"px",v(c,"Set "+n+" = "+f[c][n]+"px"))}function t(e){if(f[c]["min"+e]>f[c]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}t("Height"),t("Width"),n("maxHeight"),n("minHeight"),n("maxWidth"),n("minWidth")}(),"number"!=typeof(f[c]&&f[c].bodyMargin)&&"0"!==(f[c]&&f[c].bodyMargin)||(f[c].bodyMarginV1=f[c].bodyMargin,f[c].bodyMargin=f[c].bodyMargin+"px"),a=H(c),(s=p())&&function(n){e.parentNode&&new n((function(n){n.forEach((function(n){Array.prototype.slice.call(n.removedNodes).forEach((function(n){n===e&&O(e)}))}))})).observe(e.parentNode,{childList:!0})}(s),w(e,"load",(function(){var t,i;P("iFrame.onload",a,e,n,!0),t=f[c]&&f[c].firstRun,i=f[c]&&f[c].heightCalculationMethod in l,!t&&i&&T({iframe:e,height:0,width:0,type:"init"})})),P("init",a,e,n,!0),f[c]&&(f[c].iframe.iFrameResizer={close:O.bind(null,f[c].iframe),removeListeners:I.bind(null,f[c].iframe),resize:P.bind(null,"Window resize","resize",f[c].iframe),moveToAnchor:function(e){P("Move to anchor","moveToAnchor:"+e,f[c].iframe,c)},sendMessage:function(e){P("Send Message","message:"+(e=JSON.stringify(e)),f[c].iframe,c)}}))}function N(e,n){null===m&&(m=setTimeout((function(){m=null,e()}),n))}function j(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visiblity change"),N((function(){A("Tab Visable","resize")}),16))}function A(e,n){Object.keys(f).forEach((function(t){(function(e){return f[e]&&"parent"===f[e].resizeFrom&&f[e].autoResize&&!f[e].firstRun})(t)&&P(e,n,f[t].iframe,t)}))}function B(){function e(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),L(n,e),t.push(n))}var t;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!u;e+=1)u=window[n[e]+"RequestAnimationFrame"];u?u=u.bind(window):v("setup","RequestAnimationFrame not supported")}(),w(window,"message",k),w(window,"resize",(function(){v("window","Trigger event: resize"),N((function(){A("Window resize","resize")}),16)})),w(document,"visibilitychange",j),w(document,"-webkit-visibilitychange",j),function(i,o){switch(t=[],function(e){e&&e.enablePublicMethods&&x("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(i),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),e.bind(n,i));break;case"object":e(i,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return t}}}()},c(d={exports:{}}),d.exports),l=function(){},f=function(e){var n=e.title,t=e.forwardRef,i=s(e,["title","forwardRef"]),c=function(e){return e.autoResize,e.bodyBackground,e.bodyMargin,e.bodyPadding,e.checkOrigin,e.inPageLinks,e.heightCalculationMethod,e.interval,e.log,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.resizeFrom,e.scrolling,e.sizeHeight,e.sizeWidth,e.warningTimeout,e.tolerance,e.widthCalculationMethod,e.onClosed,e.onInit,e.onMessage,e.onMouseEnter,e.onMouseLeave,e.onResized,s(e,["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onMouseEnter","onMouseLeave","onResized"])}(i),d=(0,o.useRef)(null),f=function(){return l(!d.current,"[iframeSizerReact]["+(d&&d.current&&d.current.id)+"] Close event ignored, to remove the iframe update your React component"),!d.current};return(0,o.useEffect)((function(){var e=d.current;return u(a({},i,{onClose:f}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}}),[]),(0,o.useImperativeHandle)(t,(function(){return{resize:function(){return d.current.iFrameResizer.resize()},moveToAnchor:function(e){return d.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,n){d.current.iFrameResizer.sendMessage(e,n)}}})),r().createElement("iframe",a({title:n},c,{ref:d}))};f.defaultProps={title:"iframe"},f.propTypes={title:i().string};var m=f;function g({dataSrc:n,embedId:t,openFormButton:i}){const[o,r]=(0,e.useState)(!1);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{className:"givewp-donation-form-display__button",onClick:()=>{r(!o)}},i),o&&(0,e.createElement)(m,{id:t,src:n,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"0"}}))}var h=window.ReactDOM;function p({dataSrc:n,embedId:t,openFormButton:i}){const[o,r]=(0,e.useState)(!1),a=(0,e.useRef)(null),s=()=>{r(!o)};return(0,e.useEffect)((()=>{const{current:e}=a;o&&e.showModal()}),[o]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("button",{className:"givewp-donation-form-display__button",onClick:s},i),o&&(0,h.createPortal)((0,e.createElement)("dialog",{className:"givewp-donation-form-modal",ref:a},(0,e.createElement)("div",{className:"givewp-donation-form-modal__close",onClick:s},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"black"}))),(0,e.createElement)(m,{id:t,src:n,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"none",overflowY:"scroll",background:"none !important"}})),document.body))}function w({formFormat:n,dataSrc:t,embedId:i,openFormButton:o}){return"reveal"===n?(0,e.createElement)(g,{openFormButton:o,dataSrc:t,embedId:i}):"modal"===n?(0,e.createElement)(p,{openFormButton:o,dataSrc:t,embedId:i}):(0,e.createElement)(m,{id:i,src:t,checkOrigin:!1,style:{width:"1px",minWidth:"100%",border:"0"}})}document.querySelectorAll(".root-data-givewp-embed").forEach((n=>{const t=n.getAttribute("data-src"),i=n.getAttribute("data-givewp-embed-id"),o=n.getAttribute("data-form-format"),r=n.getAttribute("data-open-form-button");e.createRoot?(0,e.createRoot)(n).render((0,e.createElement)(w,{openFormButton:r,formFormat:o,dataSrc:t,embedId:i})):(0,e.render)((0,e.createElement)(w,{openFormButton:r,formFormat:o,dataSrc:t,embedId:i}),n)}))}()}();