PageSourceSearch

https://smartpost.global/_next/static/chunks/9967-29e81a5ca5699f3df60d.js

js smartpost.global collected 2026-10-04 16:06:26 UTC 12,723 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9967],{12694:function(e,n,r){"use strict";r.d(n,{p:function(){return d}});var t=r(85893),a=r(67294),o=r(84751),i=r(4987),c=r(38964),s=r(50522),u={en:"en-US",ru:"ru-RU",ua:"ru-RU",el:"el-GR"},d=function(e){var n=e.provider,r=e.shipmentID,d=e.linkID,l=(0,a.useRef)(null),p=(0,o.v9)(i.GM),f=c.ag.language,m=u[f]||u.en,y=(0,s.J)(f);return(0,a.useEffect)((function(){p&&l.current&&l.current.submit()}),[p,l]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("form",{hidden:!0,ref:l,action:"https://paycenter.piraeusbank.gr/redirection/pay.aspx",method:"POST",children:[(0,t.jsx)("input",{name:"AcquirerId",type:"hidden",value:"14"}),(0,t.jsx)("input",{name:"MerchantId",type:"hidden",value:"142444777"}),(0,t.jsx)("input",{name:"PosId",type:"hidden",value:y}),(0,t.jsx)("input",{name:"Username",type:"hidden",value:"SM323250"}),(0,t.jsx)("input",{name:"Password",type:"hidden",value:"fbc4a1f2c695d7ea99e5dc0e159273a4"}),(0,t.jsx)("input",{name:"LanguageCode",type:"hidden",value:m}),(0,t.jsx)("input",{name:"MerchantReference",type:"hidden",value:r?"".concat(n).concat(r):d}),(0,t.jsx)("button",{type:"submit",children:"submit"})]})})}},75496:function(e,n,r){"use strict";r.d(n,{UU:function(){return G},M5:function(){return _},OP:function(){return w},Te:function(){return P},kJ:function(){return b},vl:function(){return U},xS:function(){return j}});var t=r(85893),a=r(32292),o=r(67294),i=r(86295),c=r(11526),s=r(29163),u=r(72054),d=(0,s.ZP)(u.Zb).withConfig({displayName:"card__PayBlock",componentId:"sc-1arnpla-0"})(["min-height:180px;display:flex;align-items:center;& .el-card__body{flex:1;}"]),l=s.ZP.div.withConfig({displayName:"styled__PayPrice",componentId:"sc-1i9dat8-0"})(["font-weight:700;text-align:center;margin-bottom:5px;"]),p=s.ZP.div.withConfig({displayName:"styled__PayPriceCommission",componentId:"sc-1i9dat8-1"})(["text-align:center;margin-bottom:10px;"]),f=(0,s.ZP)(u.zx).withConfig({displayName:"styled__PayButton",componentId:"sc-1i9dat8-2"})(["width:100%;height:55px;& img{width:45px;}"]),m=r(82120),y=function(e){return(e/.98+.5-e).toFixed(2)},h=function(e){return(.03*e+.25).toFixed(2)},x=r(72659),v=r(38964),g={label:"checkout",shape:"rect",color:"gold",layout:"horizontal",tagline:!0},b=function(e){var n=e.price,r=e.currency,s=e.onPay,u=e.onError,f=(0,v.$G)("rates"),y=(0,a.Z)(f,1)[0],h=(0,m.$$)(r),b=function(e){return(e/.96+1-e).toFixed(2)}(Number(n)),j=(0,o.useMemo)((function(){return(0,x.W6)([n,b])}),[b,n]);return(0,t.jsxs)(d,{className:"is-hover-shadow",children:[(0,t.jsxs)(l,{children:[n," ",h]}),(0,t.jsxs)(p,{children:["(+",y("rates.payments.commission")," ",b," ",h,")"]}),(0,t.jsx)(i.q,{amount:j,options:{clientId:c.vc.payPal.clientID,currency:r,locale:"en_US"},style:g,onSuccess:s,onError:u})]})},j=function(e){var n=e.price,r=e.currency,o=e.onPay,i=(0,v.$G)("rates"),c=(0,a.Z)(i,1)[0],s=(0,m.$$)(r);return(0,t.jsxs)(d,{className:"is-hover-shadow",children:[(0,t.jsxs)(l,{children:[n," ",s]}),(0,t.jsxs)(p,{children:["(+",c("rates.payments.commission")," ",y(Number(n))," ",s,")"]}),(0,t.jsx)(f,{onClick:function(){return o&&o()},children:(0,t.jsx)("img",{src:"/static/img/pay/visa.svg",alt:"visa"})})]})},P=function(e){var n=e.price,r=e.currency,o=e.onPay,i=(0,v.$G)("rates"),c=(0,a.Z)(i,1)[0],s=(0,m.$$)(r);return(0,t.jsxs)(d,{className:"is-hover-shadow",children:[(0,t.jsxs)(l,{children:[n," ",s]}),(0,t.jsxs)(p,{children:["(+",c("rates.payments.commission")," ",y(Number(n))," ",s,")"]})," ",(0,t.jsx)(f,{onClick:function(){return o&&o()},children:(0,t.jsx)("img",{src:"/static/img/pay/mastercard.svg",alt:"mastercard"})})]})},w=function(e){var n=e.price,r=e.currency,o=e.onPay,i=(0,v.$G)("rates"),c=(0,a.Z)(i,1)[0],s=(0,m.$$)(r);return(0,t.jsxs)(d,{className:"is-hover-shadow",children:[(0,t.jsxs)(l,{children:[n," ",s]}),(0,t.jsxs)(p,{children:["(+",c("rates.payments.commission")," ",y(Number(n))," ",s,")"]}),(0,t.jsx)(f,{onClick:function(){return o&&o()},children:(0,t.jsx)("img",{src:"/static/img/pay/maestrocard.svg",alt:"maestrocard"})})]})},_=function(e){var n=e.price,r=e.currency,a=e.orderID,i=e.onPay,c=e.onError,s=(0,m.$$)(r),u=Number(n);return(0,o.useEffect)((function(){!function(){var e=window.cryptopay;e&&e.Button({createPayment:function(e){return e.payment.create({env:"production",currency:"EUR",amount:Math.floor(100*u),description:'Pay for the: "'.concat(a,'"'),order_id:a})},onApprove:function(e,n){"function"===typeof i&&i(n,e)},onError:function(){"function"===typeof c&&c()}}).render("#pay-button")}()}),[u,a,i,c]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(d,{className:"is-hover-shadow",children:[(0,t.jsxs)(l,{children:[n," ",s]}),(0,t.jsx)("div",{id:"pay-button",className:"text-center"})]})})},S=r(809),N=r.n(S),k=r(92447),C=r(86664),E=r(52911),I=r(83598),Z=r(51704),$=r(29006),M=function(e){var n=e.amount,r=e.currency,a=e.label,i=e.onNotSupported,c=e.onPay,s=e.onError,u=(0,C.useStripe)(),d=(0,o.useState)(null),l=d[0],p=d[1],f=(0,E.qm)(),m=(0,I.rx)();return(0,o.useEffect)((function(){function e(){return(e=(0,k.Z)(N().mark((function e(){var t;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u&&((t=u.paymentRequest({country:f,currency:String(r).toLowerCase(),total:{label:a,amount:n}
1,requestShipping:!1,requestPayerName:!0,requestPayerEmail:!0})).on("paymentmethod",function(){var e=(0,k.Z)(N().mark((function e(t){var a,o,i,d,l;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,Z.createStripeIntent)({currency:r,amount:n,provider:m});case 3:return a=e.sent,e.next=6,u.confirmCardPayment(a.client_secret,{payment_method:t.paymentMethod.id},{handleActions:!1});case 6:if(o=e.sent,i=o.paymentIntent,d=o.error,i){e.next=12;break}return t.complete("fail"),e.abrupt("return");case 12:if(!d){e.next=16;break}t.complete("fail"),e.next=26;break;case 16:if(t.complete("success"),"requires_action"!==i.status){e.next=25;break}return e.next=20,u.confirmCardPayment(a.client_secret);case 20:l=e.sent,l.error?"function"===typeof s&&s():"function"===typeof c&&c(i),e.next=26;break;case 25:"function"===typeof c&&c(i);case 26:e.next=32;break;case 28:e.prev=28,e.t0=e.catch(0),console.error(e.t0),(0,$.Kp)("Stripe confirm payment error");case 32:case"end":return e.stop()}}),e,null,[[0,28]])})));return function(n){return e.apply(this,arguments)}}()),t.canMakePayment().then((function(e){e?p(t):"function"===typeof i&&i()})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(function(){return e.apply(this,arguments)})().catch((function(e){console.error(e),(0,$.Kp)("Stripe error")}))}),[u,f,m]),l?(0,t.jsx)(C.PaymentRequestButtonElement,{options:{paymentRequest:l}}):null},G=function(e){var n=e.price,r=e.currency,i=e.orderID,c=e.onPay,s=e.onError,u=e.onNotSupported,f=(0,v.$G)("rates"),y=(0,a.Z)(f,1)[0],g=(0,o.useState)(!0),b=g[0],j=g[1],P=(0,m.$$)(r),w=h(Number(n)),_=(0,o.useMemo)((function(){return Math.floor(100*(0,x.W6)([n,w]))}),[w,n]);return b?(0,t.jsxs)(d,{className:"is-hover-shadow",children:[(0,t.jsxs)(l,{children:[n," ",P]}),(0,t.jsxs)(p,{children:["(+",y("rates.payments.commission")," ",w," ",P,")"]}),(0,t.jsx)(M,{amount:_,currency:r,label:'Pay for the "'.concat(i,'"'),onPay:c,onError:s,onNotSupported:function(){j(!1),"function"===typeof u&&u()}})]}):null},q={hidePostalCode:!0,style:{base:{color:"#32325d",fontFamily:"Arial, sans-serif",fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#32325d"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}},z=s.ZP.div.withConfig({displayName:"styled__CardPaySystemLogo",componentId:"zy7fdh-0"})(["display:flex;justify-content:center;align-items:center;img{width:45px;}"]),R=s.ZP.div.withConfig({displayName:"styled__StyledStripeCard",componentId:"zy7fdh-1"})(["box-shadow:0 1px 3px 0 rgb(50 50 93 / 15%),0 4px 6px 0 rgb(112 157 199 / 15%);border-radius:4px;border:none;font-size:0;padding:10px 15px;"]),D=s.ZP.button.withConfig({displayName:"styled__StyledStripeSubmit",componentId:"zy7fdh-2"})(["display:block;background:#666ee8;color:#fff;box-shadow:0 4px 6px rgb(50 50 93 / 11%),0 1px 3px rgb(0 0 0 / 8%);border-radius:4px;border:0;font-weight:700;width:100%;height:40px;outline:none;cursor:pointer;transition:all 0.15s ease;&:focus{background:#555abf;}&:active{background:#43458b;}&[disabled]{background:#8287c5;cursor:not-allowed;}"]),B=function(e){var n=e.amount,r=e.currency,i=e.onError,c=e.onPay,s=(0,o.useState)(!1),d=s[0],l=s[1],p=(0,o.useState)(null),f=p[0],m=p[1],y=(0,o.useState)(!1),h=y[0],x=y[1],g=(0,o.useState)(!0),b=g[0],j=g[1],P=(0,o.useState)(""),w=P[0],_=P[1],S=(0,v.$G)("rates"),E=(0,a.Z)(S,1)[0],$=(0,C.useStripe)(),M=(0,C.useElements)(),G=(0,I.rx)();(0,o.useEffect)((function(){(0,Z.createStripeIntent)({currency:r,amount:n,provider:G}).then((function(e){_(e.client_secret)}))}),[]);var B=function(){var e=(0,k.Z)(N().mark((function e(n){return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j(n.empty),m(n.error?n.error.message:"");case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),U=function(){var e=(0,k.Z)(N().mark((function e(n){var r,t;return N().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if($&&M){e.next=2;break}return e.abrupt("return");case 2:return n.preventDefault(),x(!0),e.next=6,$.confirmCardPayment(w,{payment_method:{card:M.getElement(C.CardElement)}});case 6:(r=e.sent).error?(t=r.error.message,"function"===typeof i&&i(),m("Payment failed ".concat(t)),x(!1)):(m(null),x(!1),l(!0),"function"===typeof c&&c(r.paymentIntent));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,t.jsxs)("form",{id:"payment-form",onSubmit:U,children:[(0,t.jsxs)("div",{className:"mb-20",children:[(0,t.jsxs)(z,{children:[(0,t.jsx)("img",{src:"/static/img/pay/visa.svg",alt:"visa"}),(0,t.jsx)("img",{src:"/static/img/pay/mastercard.svg",alt:"visa"}),(0,t.jsx)("img",{src:"/static/img/pay/maestrocard.svg",alt:"visa"})]}),(0,t.jsx)(R,{children:(0,t.jsx)(C.CardElement,{id:"card-element",options:q,onCh
1ange:B})})]}),f&&(0,t.jsx)(u.bZ,{type:"error",showIcon:!0,title:f,closable:!0,className:"is-light mb-20"}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(D,{type:"submit",disabled:Boolean(h||b||d),children:h?"...":E("rates.payments.pay_now_btn")})})]})},U=function(e){var n=e.price,r=e.currency,i=e.orderID,c=e.onPay,s=e.onError,u=(0,v.$G)("rates"),f=(0,a.Z)(u,1)[0],y=(0,m.$$)(r),g=h(Number(n)),b=(0,o.useMemo)((function(){return Math.floor(100*(0,x.W6)([n,g]))}),[g,n]);return(0,t.jsxs)(d,{className:"is-hover-shadow",children:[(0,t.jsxs)(l,{children:[n," ",y]}),(0,t.jsxs)(p,{children:["(+",f("rates.payments.commission")," ",g," ",y,")"]}),(0,t.jsx)(B,{amount:b,currency:r,label:'Pay for the "'.concat(i,'"'),onPay:c,onError:s})]})}},82270:function(e,n,r){"use strict";r.d(n,{x:function(){return p}});var t=r(85893),a=r(67294),o=r(86664),i=r(32292),c=r(54465),s=r(38964),u=r(52911);function d(e){return["en","ru","el"].includes(e)?e:"en"}function l(){var e=(0,s.$G)(),n=(0,i.Z)(e,2)[1],r=(0,u.G9)();return(0,a.useMemo)((function(){return e=r,t=n.language,(0,c.J)(e,{apiVersion:"2020-08-27",locale:d(t)});var e,t}),[r,n.language])}var p=function(e){var n=e.children,r=l();return(0,t.jsx)(o.Elements,{stripe:r,children:n})}},48074:function(e,n,r){"use strict";r.d(n,{N:function(){return o}});var t=r(85893),a=(r(67294),r(11526)),o=function(){return(0,t.jsx)("script",{src:"https://js.crypto.com/sdk?publishable-key=".concat(a.vc.crpyto.publishable)})}},42278:function(e,n,r){"use strict";var t;r.d(n,{a:function(){return t}}),function(e){e.PayPal="pay_paypal",e.CreditCard="pay_creditcard",e.Crypto="pay_crypto",e.ApplePay="pay_applepay",e.StripeCard="pay_stripe_card"}(t||(t={}))},52911:function(e,n,r){"use strict";r.d(n,{G9:function(){return c},qm:function(){return s},ZO:function(){return u}});var t=r(67294),a=r(11526),o=r(5062),i=r(83598);function c(){var e=(0,i.rx)();return(0,t.useMemo)((function(){var n=e===o.Cl.InPostGB?a.Dw:a.k4;return a.fN?n.production:n.sandbox}),[e])}function s(){var e=(0,i.rx)();return(0,t.useMemo)((function(){return e===o.Cl.InPostGB?"GB":"GR"}),[e])}function u(){return!0}},50522:function(e,n,r){"use strict";r.d(n,{J:function(){return a}});var t={en:"81444771",ru:"81444772",ua:"81444773",el:"81444770"},a=function(e){return t[e]}},83598:function(e,n,r){"use strict";r.d(n,{Dj:function(){return u},yL:function(){return c},rx:function(){return s}});var t=r(67294),a=r(84751),o=r(4987),i=r(5062),c=function(e){var n=(0,a.v9)("sender"===e?o.Hz:o.dc);return(0,t.useMemo)((function(){return(0,i.qA)(n)}),[n])},s=function(){return(0,a.v9)(o.Hz).provider},u=function(e){return(0,a.v9)("sender"===e?o.Hz:o.dc)}}}]);
2//# sourceMappingURL=9967-29e81a5ca5699f3df60d.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.