PATH:
home
/
ajwellnessmassag
/
angelictravels.online
/
wp-content
/
plugins
/
old-gravityformsstripe
/
js
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"Headers",(function(){return h})),r.d(t,"Request",(function(){return v})),r.d(t,"Response",(function(){return E})),r.d(t,"DOMException",(function(){return j})),r.d(t,"fetch",(function(){return x}));var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==e&&e||{},o="URLSearchParams"in n,i="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in n,d="ArrayBuffer"in n;if(d)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function y(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function _(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function m(e){var t=new FileReader,r=_(t);return t.readAsArrayBuffer(e),r}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():d&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=y(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=y(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(s)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=y(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=_(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(A)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=f(e),t=c(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},h.prototype.delete=function(e){delete this.map[f(e)]},h.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},h.prototype.set=function(e,t){this.map[f(e)]=c(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),p(e)},i&&(h.prototype[Symbol.iterator]=h.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function v(e,t){if(!(this instanceof v))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=t.method||this.method||"GET",o=r.toUpperCase(),w.indexOf(o)>-1?o:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},g.call(v.prototype),g.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var T=[301,302,303,307,308];E.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})};var j=n.DOMException;try{new j}catch(e){(j=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),j.prototype.constructor=j}function x(e,t){return new Promise((function(r,o){var i=new v(e,t);if(i.signal&&i.signal.aborted)return o(new j("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}if(a.onload=function(){var e,t,n={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};0===i.url.indexOf("file://")&&(a.status<200||a.status>599)?n.status=200:n.status=a.status,n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout((function(){r(new E(o,n))}),0)},a.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},a.onabort=function(){setTimeout((function(){o(new j("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(s?a.responseType="blob":d&&(a.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof h||n.Headers&&t.headers instanceof n.Headers)){var u=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){u.push(f(e)),a.setRequestHeader(e,c(t.headers[e]))})),i.headers.forEach((function(e,t){-1===u.indexOf(t)&&a.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){a.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",l)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}x.polyfill=!0,n.fetch||(n.fetch=x,n.Headers=h,n.Request=v,n.Response=E)}.call(this,r(1))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},,,function(e,t,r){r(0),e.exports=r(5)},function(e,t){const r=()=>{if(jQuery(".stripe-payment-element-container").length<=0||"1"!==gform_stripe_payment_element_form_editor_strings.stripe_connect_enabled)return;const e=Stripe(gform_stripe_payment_element_form_editor_strings.api_key);if(e){e.elements({amount:Math.round(gform_stripe_payment_element_form_editor_strings.payment_element_amount),currency:gform_stripe_payment_element_form_editor_strings.payment_element_currency,mode:"payment",payment_method_types:["card"]}).create("payment",{readOnly:!0}).mount(".stripe-payment-element-container"),jQuery(".stripe-payment-element-container").prepend('<div id="stripe-field-top-layer" style="position:absolute; height:100%; width:100%; z-index:100; opacity:0"></div>')}else jQuery(".stripe-payment-element-container").text(gform_stripe_payment_element_form_editor_strings.payment_element_error)},n=(e=null)=>{null===e&&"1"===gform_stripe_payment_element_form_editor_strings.stripe_connect_enabled&&(e=!1,form.fields.forEach(t=>{"stripe_creditcard"===t.type&&(e=t.enableMultiplePaymentMethods)}));const t=jQuery(".stripe-payment-element-container"),r=jQuery(".ginput_stripe_creditcard"),n=e?"block":"none",o=e?"none":"flex",i=jQuery("#link_email_field_container");e?i.show():i.hide(),t.length&&(t.get(0).style.display=n),r.length&&(r.get(0).style.display=o)},o=()=>{jQuery(".field_setting").hide();let e=getAllFieldSettings(GetSelectedField());jQuery(e).show()},i=(e,t)=>{if("stripe_creditcard"!==t.type)return e;return jQuery("#field_enable_multiple_payment_methods").is(":checked")?e=e.filter(e=>![".sub_label_placement_setting",".sub_labels_setting",".input_placeholders_setting"].includes(e)):e.push(".sub_labels_setting",".sub_label_placement_setting",".input_placeholders_setting"),e},s=(e,t,r,n)=>{const o=t.fields.findLastIndex(e=>"page"===e.type),i=t.fields.findIndex(e=>"stripe_creditcard"===e.type&&!0===e.enableMultiplePaymentMethods);return-1===o||-1===i||i<o&&(e=gform_stripe_payment_element_form_editor_strings.field_position_validation_error),e},a=e=>{const t=form.fields.findIndex(e=>"stripe_creditcard"===e.type&&!0===e.enableMultiplePaymentMethods);t<0||form.fields[t].id!=e||(n(),r())},d=()=>{gform.addAction("gform_after_refresh_field_preview",a),gform.addFilter("gform_editor_field_settings",i),gform.addFilter("gform_validation_error_form_editor",s),jQuery(document).bind("gform_load_field_settings",(function(e,t,r){if("stripe_creditcard"!==t.type)return;const n="1"===gform_stripe_payment_element_form_editor_strings.payment_element_supported;"1"===gform_stripe_payment_element_form_editor_strings.stripe_connect_enabled&&n||(jQuery(".enable_multiple_payment_methods_setting").addClass("gform-stripe--disabled"),jQuery("#field_enable_multiple_payment_methods").prop("disabled",!0).prop("checked",!1),jQuery("#link_email_field").prop("disabled",!0)),n||setFieldError("enable_multiple_payment_methods_setting","below",gform_stripe_payment_element_form_editor_strings.payment_element_disabled_message);const i=gform.utils.getNode("#link_email_field",document,!0),s=i.value;gform.utils.getNodes("gform-stripe-link-email-ids").forEach(e=>{e.remove()}),r.fields.forEach((e,t)=>{if("email"===e.type){const t=document.createElement("option");t.value=e.id,t.setAttribute("data-js","gform-stripe-link-email-ids"),t.textContent=`${e.label} - ${gform_stripe_payment_element_form_editor_strings.email_field_id_text}: ${e.id}`,i.appendChild(t)}}),i.value=s,jQuery("#field_enable_multiple_payment_methods").prop("checked",!!t.enableMultiplePaymentMethods),jQuery("#link_email_field").val("linkEmailFieldId"in t?t.linkEmailFieldId:0),o()})),jQuery("#field_enable_multiple_payment_methods").on("change",(function(e){n(jQuery(this).is(":checked")),o()})),jQuery("#link_email_field").on("change",(function(e){GetSelectedField().linkEmailFieldId=jQuery(this).val()}))};jQuery(document).ready((function(){d(),n(),r()})),jQuery(document).on("gform_field_added",(function(e,t,o){"stripe_creditcard"===o.type&&(n(),r())}))}]);
[-] payment_element_form_editor.js
[edit]
[-] admin.min.js
[edit]
[-] frontend.js.map
[edit]
[-] frontend.js
[edit]
[-] payment_element_form_editor.min.js
[edit]
[-] payment_element_form_editor.js.map
[edit]
[+]
..
[-] admin.js
[edit]
[-] frontend.min.js
[edit]
[-] admin.js.map
[edit]