PageSourceSearch

https://www.philips.no/c-e/shop/checkout/assets/CustomCard-jNjX-aFM.js

js philips.no collected 2026-09-24 22:30:58 UTC 2,673 bytes, 1 lines download raw bytes

1import{o as e,k as t,y as a,f as n,m as o,d as i}from"./vendor-CV6ISSGl.js";import{g as r}from"./adyen-2xVWhjfd.js";import{_ as s}from"./index-DSlA2-3H.js";const d={name:"CustomCard",props:{brands:{type:Array,required:!0}},data:()=>({checkout:null,cardUiElement:null,hasError:!1}),computed:{...i("config",["getDefaultConfig"]),...o("config",["payButtonWasClicked"]),...o("payments",["adyen"]),adyenCoreConfiguration(){return{locale:this.getDefaultConfig("localeId"),environment:this.adyen.environment,clientKey:this.adyen.clientKey,paymentMethodsConfiguration:{card:{styles:{base:{caretColor:"#212121"},placeholder:{color:"transparent"}}}},onAdditionalDetails:this.handleOnAdditionalDetails}}},watch:{payButtonWasClicked(){this.payButtonWasClicked&&this.validateCard()}},async mounted(){const e=await r(this.adyenCoreConfiguration);this.checkout=e,this.cardUiElement=e.create("card",this.getCardFormConfiguration()).mount(this.$refs.formEl),this._on("adyen3dscall",this.adyen3dsCall)},unmounted(){this._off("adyen3dscall",this.adyen3dsCall)},methods:{adyen3dsCall(e){if("threeDS2"===e.type){const t={challengeWindowSize:window.innerWidth>960||window.innerWidth>=518&&window.innerWidth<=700?"03":"01"};this.checkout.createFromAction(e,t).mount(this.$refs.formEl)}else this.checkout.createFromAction(e).mount(this.$refs.formEl)},validateCard(){this.cardUiElement.showValidation()},handleOnAdditionalDetails(e){localStorage.setItem("threeDSResult",e?.data?.details?.threeDSResult),e?.data?.details?.threeDSResult?window.location.href=`${this.getDefaultConfig("orderConfirmationUrl")}?threeDSResult=token`:(this.$store.dispatch("notification/updateErrorNotifications",{text:this.i18n("checkoutoverview.payment.failed.title")},{root:!0}),this.$store.dispatch("payments/updateIsPayButtonDisabled",!1),this._emit("disablePaymentMethods",!1))},onChangeHandler(e){this.$store.commit("payments/updateBankCardDetails",{...e.data.paymentMethod}),this.$store.commit("payments/updateBrowserInfo",{...e.data.browserInfo}),this.$store.dispatch("payments/updateOtherPaymentSelected",!1),this.$store.dispatch("payments/updateAdyenWebComponentValidated",e.isValid)},getCardFormConfiguration(){return{type:"card",brands:this.brands,showBrandsUnderCardNumber:!1,enableStoreDetails:this.adyen.storedCards,onChange:this.onChangeHandler,hasHolderName:!0,holderNameRequired:!0}}}},l={class:"pv-bank-card-form"},h={key:0,class:"p-ec01-checkout-input--error p-ec01-form__error-msg"},c={ref:"formEl",class:"pv-margin--20 p-ec01-checkout-adyen"};const m=s(d,[["render",function(o,i,r,s,d,m){return e(),t("section",l,[d.hasError?(e(),t("div",h)):a("",!0),n("div",c,null,512)])}]]);export{m as default};

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.