oont-contents/plugins/tamara-checkout/assets/dist/js/tamaraSuccess.js
2025-02-08 15:10:23 +01:00

1 line
No EOL
1.3 KiB
JavaScript

!function(r){var n={};function o(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=6)}({6:function(e,t,r){e.exports=r(7)},7:function(e,t,r){"use strict";function n(){o.post(tamaraCheckoutParams.ajaxUrl,{action:"tamara-authorise",wcOrderId:u},function(e){"authorise_success"===e.message&&clearInterval(a)})}var o,u,a;o=jQuery,u=new URL(window.location.href).searchParams.get("wcOrderId"),a=void 0,o(document).ready(function(){n();var e=0;a=window.setInterval(function(){n(),3==++e&&window.clearInterval(a)},5e3)})}});