1(()=>{(function(){try{var u=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},s=new u.Error().stack;s&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[s]="1de27af5-13a1-4239-a5c1-370c9035ee02",u._sentryDebugIdIdentifier="sentry-dbid-1de27af5-13a1-4239-a5c1-370c9035ee02")}catch(r){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[18654,22149,93131],{18654:((u,s,r)=>{r.r(s),r.d(s,{WebSdkAdapter:()=>E,WebSdkEvent:()=>p});var m=Object.defineProperty,n=(a,t,e)=>t in a?m(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,l=(a,t,e)=>(n(a,typeof t!="symbol"?t+"":t,e),e);const A=class _{constructor(t,e){l(this,"pageOrigin"),l(this,"orderId"),l(this,"options"),l(this,"iframe"),l(this,"callbacks",{payment_complete:void 0,"3ds_redirect":void 0,submit_available_changed:void 0,cardholder_required_changed:void 0,payment_begin:void 0,form_layout_changed:void 0}),this.orderId=t,this.options=e,this.pageOrigin=e.devMode?_.devPageOrigin:_.pageOrigin,this.onMessage=this.onMessage.bind(this)}render(t){if(this.iframe)throw new Error("RENDER_ALREADY_EXECUTED");const e=typeof t=="string"?document.querySelector(t):t;if(!e)throw new Error("TARGET_NOT_FOUND");const i=new URL(this.pageOrigin);i.pathname=_.pagePathname,i.search=_._getIframeSourceSearchParameters(this.orderId,this.options).toString(),this.iframe=_._getConfiguredIframe(i,this.options),e==null||e.appendChild(this.iframe),window.addEventListener("message",this.onMessage)}disconnect(){var t;if(!this.iframe)throw new Error("IFRAME_NOT_INITIALIZED");window.removeEventListener("message",this.onMessage),(t=this.iframe)==null||t.remove()}move(t){if(!this.iframe)throw new Error("IFRAME_NOT_INITIALIZED");t.appendChild(this.iframe)}resize(t,e){if(!this.iframe)throw new Error("IFRAME_NOT_INITIALIZED");t&&(this.iframe.width=t),e&&(this.iframe.height=e)}on(t,e){this.callbacks[t]=e}triggerPayment(){var t,e;(e=(t=this.iframe)==null?void 0:t.contentWindow)==null||e.postMessage({type:"begin_payment"},this.pageOrigin)}static _getIframeSourceSearchParameters(t,e){for(const[y,c]of Object.entries(e))typeof c=="object"?JSON.stringify(c):c.toString();const i=new URLSearchParams;i.append("order_id",t),i.append("theme",e.theme||"light");const o=e.lang==="ka"?"ka":"en";return i.append("lang",o),i.append("options",JSON.stringify(e)),i}static _getConfiguredIframe(t,e){const i=document.createElement("iframe");return i.src=t.toString(),i.setAttribute("sandbox","allow-forms allow-scripts allow-popups allow-same-origin"),i.width=e.width.toString(),i.height=e.height.toString(),i.style.border="none",i.referrerPolicy="origin",i}onMessage(t){var e,i,o,y,c,g,I,O,N,T,R,L;if(t.origin!==this.pageOrigin)return;const d=t.data;d.type==="payment_complete"?(i=(e=this.callbacks).payment_complete)==null||i.call(e,d.payload):d.type==="3ds_redirect"?(y=(o=this.callbacks)["3ds_redirect"])==null||y.call(o):d.type==="submit_available_changed"?(g=(c=this.callbacks).submit_available_changed)==null||g.call(c,d.payload):d.type==="form_layout_changed"?(O=(I=this.callbacks).form_layout_changed)==null||O.call(I,d.payload):d.type==="cardholder_required_changed"?(T=(N=this.callbacks).cardholder_required_changed)==null||T.call(N,d.payload):d.type==="payment_begin"&&((L=(R=this.callbacks).payment_begin)==null||L.call(R))}};l(A,"pageOrigin","https://payment.bog.ge"),l(A,"devPageOrigin","https://payment-test.bog.ge"),l(A,"pagePathname","/iframe");let P=A;var h=r(49475),p=(a=>(a._3DS_REDIRECT="3ds_redirect",a.CARDHOLDER_REQUIRED_CHANGED="cardholder_required_changed",a.FORM_LAYOUT_CHANGED="form_layout_changed",a.PAYMENT_BEGIN="payment_begin",a.PAYMENT_COMPLETE="payment_complete",a.SUBMIT_AVAILABLE_CHANGED="submit_available_changed",a))(p||{}),f=(a=>(a._3DS_FAILURE="3DS_FAILURE",a.ORDER_NOT_FOUND="ORDER_NOT_FOUND",a.ORDER_REJECTED="ORDER_REJECTED",a.PAYMENT_ERROR="PAYMENT_ERROR",a))(f||{});class E{constructor(){this.initialize=()=>{if(!this.orderId||!this.options)throw new ReferenceError(`BoG Payment Provider (BoG FE SDK Adapter): ${this.orderId?"Options":"Order ID"} not yet configured while initialising`);this.session=new P(this.orderId,this.options)},this.listenForPaymentBeginning=()=>{this.session.on("payment_begin",()=>{this.onPaymentBeginningSuccessListener&&this.onPaymentBeginningSuccessListener()})},this.listenForChangesOfPaymentAuthorisationAvailability=()=>{this.session.on("submit_available_changed",t=>{if(t.canPay){this.onPaymentAuthorisationAllowedListener&&this.onPaymentAuthorisationAllowedListener();return}this.onPaymentAuthorisationDisallowedListener&&this.onPaymentAuthorisationDisallowedListener()})},this.listenForChangesOfCardHolderRequirement=()=>{this.session.on("cardholder_required_changed",t=>{if(t.display){this.onPaymentAuthorisationDisallowedListener&&this.onPaymentAuthorisationDisallowedListener();return}this.onPaymentAuthorisationAllowedListener&&this.onPaymentAuthorisationAllowedListener()})},this.listenForPaymentCompletion=()=>{this.session.on("payment_complete",t=>{if(t&&t.error&&(t.error.message==="ORDER_NOT_FOUND"||t.error.message==="ORDER_REJECTED")&&this.onPaymentConfigurationFailureListener&&this.onPaymentConfigurationFailureListener(new Error(t.error.message)),t&&t.error&&(t.error.message==="3DS_FAILURE"||t.error.message==="PAYMENT_ERROR")&&this.onPaymentProcessingFailureListener&&this.onPaymentProcessingFailureListener(new Error(t.error.message)),t&&t.error){const e=new Error(t.error.message);this.onPaymentAuthorisationFailureListener&&this.onPaymentAuthorisationFailureListener(e),this.onPaymentAuthorisationFailureFirstAdditionalNotificationListener&&this.onPaymentAuthorisationFailureFirstAdditionalNotificationListener(e),this.onPaymentAuthorisationFailureSecondAdditionalNotificationListener&&this.onPaymentAuthorisationFailureSecondAdditionalNotificationListener(e);return}this.onPaymentAuthorisationSuccessListener&&this.onPaymentAuthorisationSuccessListener()})},this.listenForLayoutChanges=()=>{this.session.on("form_layout_changed",t=>{this.onFormLayoutChangeListener&&this.onFormLayoutChangeListener({height:t.preferredMinHeight}),this.onFormLayoutChangeFirstAdditionalNotificationListener&&this.onFormLayoutChangeFirstAdditionalNotificationListener({height:t.preferredMinHeight})})},this.authorisePayment=()=>{if(!this.session)throw new ReferenceError("BoG Payment Provider (BoG FE SDK Adapter): Session not yet created while attempting to authorise payment");this.session.triggerPayment()},this.on=(t,e)=>{switch(t){case h.c.PAYMENT_AUTHORISATION_PERMISSION_GRANTED:this.onPaymentAuthorisationAllowedListener=e;break;case h.c.PAYMENT_AUTHORISATION_PERMISSION_REVOKED:this.onPaymentAuthorisationDisallowedListener=e;break;case h.c.PAYMENT_AUTHORISATION_SUCCESS:this.onPaymentAuthorisationSuccessListener=e;break;case h.c.PAYMENT_AUTHORISATION_FAILURE:this.onPaymentAuthorisationFailureListener=e;break;case h.c.PAYMENT_AUTHORISATION_FAILURE_FIRST_ADDITIONAL_NOTIFICATION:this.onPaymentAuthorisationFailureFirstAdditionalNotificationListener=e;break;case h.c.PAYMENT_AUTHORISATION_FAILURE_SECOND_ADDITIONAL_NOTIFICATION:this.onPaymentAuthorisationFailureSecondAdditionalNotificationListener=e;break;case h.c.PAYMENT_BEGINNING_SUCCESS:this.onPaymentBeginningSuccessListener=e;break;case h.c.PAYMENT_CONFIGURATION_FAILURE:this.onPaymentConfigurationFailureListener=e;break;case h.c.PAYMENT_FORM_LAYOUT_CHANGED:this.onFormLayoutChangeListener=e;break;case h.c.PAYMENT_PROCESSING_FAILURE:this.onPaymentProcessingFailureListener=e}},this.startSession=()=>
1{if(!this.mountPoint)throw new ReferenceError("BoG Payment Provider (BoG FE SDK Adapter): Mount points not yet created while attempting to render");this.initialize(),this.listenForPaymentBeginning(),this.listenForChangesOfPaymentAuthorisationAvailability(),this.listenForChangesOfCardHolderRequirement(),this.listenForPaymentCompletion(),this.listenForLayoutChanges(),this.session.render(this.mountPoint)},this.cleanListeners=()=>{this.onFormLayoutChangeListener=null,this.onFormLayoutChangeFirstAdditionalNotificationListener=null,this.onPaymentAuthorisationAllowedListener=null,this.onPaymentAuthorisationDisallowedListener=null,this.onPaymentAuthorisationFailureListener=null,this.onPaymentAuthorisationFailureFirstAdditionalNotificationListener=null,this.onPaymentAuthorisationFailureSecondAdditionalNotificationListener=null,this.onPaymentAuthorisationSuccessListener=null,this.onPaymentBeginningSuccessListener=null,this.onPaymentConfigurationFailureListener=null,this.onPaymentProcessingFailureListener=null},this.closeSession=()=>{this.session&&this.session.disconnect()},this.setMountPoint=t=>{this.mountPoint=t},this.setOptions=t=>{t&&(this.options=t)},this.setOrderId=t=>{t&&(this.orderId=t)}}}}),41781:((u,s,r)=>{r.r(s),r.d(s,{PaymentApiAdapter:()=>m.PaymentApiAdapter,WebSdkAdapter:()=>n.WebSdkAdapter,WebSdkEvent:()=>n.WebSdkEvent});var m=r(93131),n=r(18654)}),49475:((u,s,r)=>{r.d(s,{c:()=>m});var m=(n=>(n.PAYMENT_AUTHORISATION_PERMISSION_GRANTED="payment-authorisation-granted",n.PAYMENT_AUTHORISATION_PERMISSION_REVOKED="payment-authorisation-revoked",n.PAYMENT_AUTHORISATION_3DS_REQUESTED="payment-authorisation-3ds-requested",n.PAYMENT_AUTHORISATION_SUCCESS="payment-authorisation-success",n.PAYMENT_AUTHORISATION_FAILURE="payment-authorisation-failure",n.PAYMENT_AUTHORISATION_FAILURE_FIRST_ADDITIONAL_NOTIFICATION="payment-authorisation-failure-first-additional-notification",n.PAYMENT_AUTHORISATION_FAILURE_SECOND_ADDITIONAL_NOTIFICATION="payment-authorisation-failure-second-additional-notification",n.PAYMENT_BEGINNING_SUCCESS="payment-beginning-success",n.PAYMENT_CONFIGURATION_FAILURE="payment-configuration-failure",n.PAYMENT_FORM_CARD_HOLDER_REQUESTED="payment-form-card-holder-requested",n.PAYMENT_FORM_LAYOUT_CHANGED="payment-form-layout-changed",n.PAYMENT_PROCESSING_FAILURE="payment-processing-failure",n))(m||{})}),93131:((u,s,r)=>{r.r(s),r.d(s,{PaymentApiAdapter:()=>a});var m=r(21904),n=r(16505),l=r(71404),A=Object.defineProperty,P=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,f=(t,e,i)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,E=(t,e)=>{for(var i in e||(e={}))h.call(e,i)&&f(t,i,e[i]);if(P)for(var i of P(e))p.call(e,i)&&f(t,i,e[i]);return t};class a{constructor(){this.isOrderInitialisationDetailsValid=e=>!!(Object.values(m.Rq).includes(e.primaryPaymentDetails.paymentProviderType)&&Object.values(m.eq).includes(e.primaryPaymentDetails.paymentMethodDetails.paymentMethodType)),this.prepareOrderInitialisationDetails=({paymentMethodType:e,paymentProviderType:i,targetPaymentProvider:o},y)=>({primaryPaymentDetails:{targetPaymentProvider:o,paymentProviderType:i,paymentMethodDetails:{paymentMethodType:e,currency:y}}}),this.retrievePrimaryPaymentDetails=async e=>{if(!this.isOrderInitialisationDetailsValid(e))throw new TypeError("BoG Payment Provider (Vesper BE API Adapter): Order initialisation details not prepared correctly");const i=n.LV.baseUrl.replace("/api/v2","/api/v4");return(await n.LV.post(`${i}${l.tl.PAYMENT_METHOD_INIT}`,e)).primaryPaymentDetails},this.extractBasketPaymentReference=e=>({paymentArrangement:{primaryPaymentDetailsAttributes:{paymentDetailsExternalId:e.paymentDetailsExid,targetPaymentProvider:e.targetPaymentProvider,paymentMethodType:e.paymentMethodDetails.paymentMethodType}}}),this.confirmBasketSuccessfulPayment=async(e,i,o)=>{const y=n.LV.baseUrl,c={queryParams:{acknowledgeNoFreeTrial:i.toString()}},g=E(E({},e),o!=null?o:{});return await n.LV.post(`${y}${l.tl.PAY}`,g,c)},this.payForBasketThroughSavedPaymentMethod=async(e,i,o)=>{const y=n.LV.baseUrl,c={queryParams:{acknowledgeNoFreeTrial:i.toString()}};return(await n.LV.post(`${y}${l.tl.PAY}/${e}`,o!=null?o:{},c)).primaryPaymentDetails}}}})}]);})(); 2 3//# sourceMappingURL=payment.service.bank_of_georgia.eb289a597b31aa0572e8.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.