import { CheckOutStore } from '../services/store'
export const checkOutStoreInjectKey = Symbol('checkOutStore')
export const StorePlugin = {
install (Vue: any): void {
Vue.mixin({
inject: {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DomHelpers from './Utility/DomHelpers.js' | |
// ... | |
methods: { | |
click (event) { | |
DomHelpers.isChild(this.$el, event.target) || this.hide() | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="click-target-modal"> | |
<div class="click-target-modal__content" | |
v-if="isDisplayed" | |
> | |
<slot></slot> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
methods: { | |
show () { | |
this.isDisplayed = true | |
this.$emit('input', true) | |
this.listen(true) | |
}, | |
hide () { | |
this.isDisplayed = false | |
this.$emit('input', false) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="document-event-modal"> | |
<div class="document-event-modal__content" | |
@click.stop | |
v-if="isDisplayed" | |
> | |
<slot></slot> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.full-screen-overlay-modal { | |
&__background { | |
position: fixed; | |
z-index: 1000; | |
left: 0; | |
top: 0; | |
width: 100%; | |
height: 100%; | |
} | |
&__content { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="full-screen-overlay-modal"> | |
<div class="background" | |
@click="hide()" | |
v-if="isDisplayed" | |
/> | |
<div class="content" | |
v-if="isDisplayed" | |
> | |
<slot></slot> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Field from '../Domain/Entity/Field.js' | |
import FieldMapper from '../Domain/Mapper/FieldMapper.js' | |
import repoBus from '../../oop-store/repoBus' | |
import axios from '../../plugins/internal/axios-instance.js' | |
import MappingHelpers from '../Utility/Static/MappingHelpers.js' | |
export const FIELD_UPDATED = 'Field updated' | |
export const FIELD_CREATED = 'Field created' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let promise | |
export async function getMy2c2p () { | |
promise || (promise = new Promise((resolve, reject) => { | |
const script = document.createElement('script') | |
script.src = 'https://demo2.2c2p.com/2C2PFrontEnd/SecurePayment/api/my2c2p.1.6.9.min.js' | |
script.async = true | |
script.onload = () => { | |
resolve(My2c2p) | |
} |
NewerOlder