PageSourceSearch

https://engosoft.com/payment_tamara/static/src/js/tamara-product-widget-v1.d364c1b7e39771b570ad.chunk.js

js engosoft.com collected 2026-10-02 23:46:42 UTC 13,654 bytes, 2 lines download raw bytes

1/*! For license information please see tamara-product-widget-v1.d364c1b7e39771b570ad.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunk_tamara_solution_widgets=self.webpackChunk_tamara_solution_widgets||[]).push([[449],{8047:(t,e,r)=>{r.r(e),r.d(e,{default:()=>C});var n=r(7255),o=r(8962),i=r(4551),a=r(6189),u=r(7505),c=function(){return window.TAMARA_WIDGET_LOCAL?window.TAMARA_WIDGET_MERCHANT_DOMAIN||"":window.location.host};window.ASSETS=[];var l=function(t,e){var r=function(r){window.ASSETS[t]=!0,"function"==typeof e&&e(r)};if(window.ASSETS[t])return r();var n=document.createElement("script");return n.src=t,n.type="text/javascript",n.addEventListener("load",r),n};function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=e[0];return(t={},s(t,a.Z.pay_later,"paylater"),s(t,a.Z.pay_next_month,"pay-next-month"),s(t,a.Z.pay_installments,"installment"),t)[r]||""},d=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(null===(t=e[0])||void 0===t?void 0:t.instalments)||3},y=r(5993),h=r(9657);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function v(){v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,a=Object.create(i.prototype),u=new A(n||[]);return o(a,"_invoke",{value:L(t,r,u)}),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",d="executing",y="completed",h={};function g(){}function b(){}function w(){}var _={};l(_,a,(function(){return this}));var E=Object.getPrototypeOf,P=E&&E(E(N([])));P&&P!==r&&n.call(P,a)&&(_=P);var S=w.prototype=g.prototype=Object.create(_);function O(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==m(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=s(e,r,n);if("normal"===l.type){if(o=n.done?y:"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,844 bytes, line 2
2(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=s(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,h;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(m(e)+" is not iterable")}return b.prototype=w,o(S,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},O(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}function g(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){g(i,n,o,a,u,"next",t)}function u(t){g(i,n,o,a,u,"throw",t)}a(void 0)}))}}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,j(n.key),n)}}
2function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=x(t);if(e){var o=x(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return S(this,r)}}function S(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return O(t)}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}function L(t,e,r){return(e=j(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(t){var e=function(t,e){if("object"!==m(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===m(e)?e:String(e)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(s,t);var e,r,n,f=P(s);function s(){var t;w(this,s);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return L(O(t=f.call.apply(f,[this].concat(r))),"_getWidgetCss",(function(){return""})),L(O(t),"_getPopupCss",(function(){return""})),L(O(t),"_getScriptProductWidgetV1",(function(){return l(o.Z.tamaraProductWidgetV1Path,(function(){window.TamaraProductWidget.init({publicKey:t.config.publicKey})}))})),L(O(t),"_getElementAttributes",(function(e){var r,n,o,i,u,l=(e.paymentTypes||[])[0],f=d(e.supportedInstalments),s=(0,y.vq)(null===(r=t.merchantConfig)||void 0===r?void 0:r.paymentTypeConfig);return{id:"product-widget-v1-".concat(t.config.uuid),class:"tamara-product-widget",dataUuid:t.config.uuid,dataLang:e.lang,dataPrice:e.amount,dataDomain:c(),dataCurrency:e.currency,dataCountryCode:e.countryCodes,dataPublicKey:t.config.publicKey,dataPaymentType:p(e.paymentTypes),dataNumberOfInstallments:f,dataDisableInstallment:l!==a.Z.pay_installments,dataDisablePaylater:l!==a.Z.pay_later,dataInstallmentAvailableAmount:e.orderMinimumAmount,dataInstallmentMinimumAmount:null==s||null===(n=s.minLimit)||void 0===n?void 0:n.amount,dataInstallmentMaximumAmount:null==s||null===(o=s.maxLimit)||void 0===o?void 0:o.amount,dataTagScale:(null===(i=t.config)||void 0===i||null===(u=i.style)||void 0===u?void 0:u.badgeRatio)||1}})),L(O(t),"_appendV1Element",(function(t,e){t.parentNode&&t.parentNode.insertBefore(e,t)})),L(O(t),"_removeChildElement",(function(t,e){t&&e&&t.removeChild(e)})),L(O(t),"_removeV1Element",(function(e){e.parentNode&&(t._removeChildElement(e.parentNode,document.getElementById("product-widget-v1-".concat(t.config.prevUuid))),t._removeChildElement(e.parentNode,document.getElementById("product-widget-v1-".concat(t.config.uuid))))})),L(O(t),"triggerRenderV1",(function(e){window.TamaraProductWidget&&("webview"!==t.config.browser?window.TamaraProductWidget.render():window.TamaraProductWidget.render(e))})),L(O(t),"render",function(){var e=b(v().mark((function e(r){var n,o,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,i.A)(r,s.PROP_TYPES),o=(0,u.az)("div"),e.next=4,t.getMerchantWidgetConfig();case 4:return t.merchantConfig=e.sent,t._normalizeProperties(r,n),a=t._getElementAttributes(n),(0,u.fr)(o,a),t._removeV1Element(r),t._appendV1Element(r,o),t._hideCustomElement(r),e.abrupt("return",{container:(0,u.az)("div"),containerCss:t._getWidgetCss(n),popupCss:t._getPopupCss(n),script:t._getScriptProductWidgetV1(),render:function(){t.triggerRe
2nderV1(o)}});case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t}return e=s,(r=[{key:"_hideCustomElement",value:function(t){t&&(0,h.Z)(t,{display:"none"})}}])&&_(e.prototype,r),n&&_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),s}(n.Z);L(T,"PROP_TYPES",{amount:{type:"number",default:0}});const C=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.