2017-05-04 08:09:21 +00:00
|
|
|
/* eslint-disable no-new */
|
2017-12-19 10:12:32 +00:00
|
|
|
import _ from 'underscore';
|
2017-10-02 12:32:53 +00:00
|
|
|
import Flash from './flash';
|
2017-05-04 08:09:21 +00:00
|
|
|
import DropLab from './droplab/drop_lab';
|
|
|
|
import ISetter from './droplab/plugins/input_setter';
|
2017-11-25 11:33:05 +00:00
|
|
|
import { __, sprintf } from './locale';
|
2017-05-04 08:09:21 +00:00
|
|
|
|
|
|
|
// Todo: Remove this when fixing issue in input_setter plugin
|
|
|
|
const InputSetter = Object.assign({}, ISetter);
|
|
|
|
|
|
|
|
const CREATE_MERGE_REQUEST = 'create-mr';
|
|
|
|
const CREATE_BRANCH = 'create-branch';
|
|
|
|
|
|
|
|
export default class CreateMergeRequestDropdown {
|
|
|
|
constructor(wrapperEl) {
|
|
|
|
this.wrapperEl = wrapperEl;
|
2017-11-25 11:33:05 +00:00
|
|
|
this.availableButton = this.wrapperEl.querySelector('.available');
|
|
|
|
this.branchInput = this.wrapperEl.querySelector('.js-branch-name');
|
|
|
|
this.branchMessage = this.wrapperEl.querySelector('.js-branch-message');
|
2017-05-04 08:09:21 +00:00
|
|
|
this.createMergeRequestButton = this.wrapperEl.querySelector('.js-create-merge-request');
|
2017-11-25 11:33:05 +00:00
|
|
|
this.createTargetButton = this.wrapperEl.querySelector('.js-create-target');
|
2017-05-04 08:09:21 +00:00
|
|
|
this.dropdownList = this.wrapperEl.querySelector('.dropdown-menu');
|
2017-11-25 11:33:05 +00:00
|
|
|
this.dropdownToggle = this.wrapperEl.querySelector('.js-dropdown-toggle');
|
|
|
|
this.refInput = this.wrapperEl.querySelector('.js-ref');
|
|
|
|
this.refMessage = this.wrapperEl.querySelector('.js-ref-message');
|
2017-05-04 08:09:21 +00:00
|
|
|
this.unavailableButton = this.wrapperEl.querySelector('.unavailable');
|
|
|
|
this.unavailableButtonArrow = this.unavailableButton.querySelector('.fa');
|
|
|
|
this.unavailableButtonText = this.unavailableButton.querySelector('.text');
|
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
this.branchCreated = false;
|
|
|
|
this.branchIsValid = true;
|
2017-05-04 08:09:21 +00:00
|
|
|
this.canCreatePath = this.wrapperEl.dataset.canCreatePath;
|
2017-11-25 11:33:05 +00:00
|
|
|
this.createBranchPath = this.wrapperEl.dataset.createBranchPath;
|
2017-05-04 08:09:21 +00:00
|
|
|
this.createMrPath = this.wrapperEl.dataset.createMrPath;
|
|
|
|
this.droplabInitialized = false;
|
2017-11-25 11:33:05 +00:00
|
|
|
this.isCreatingBranch = false;
|
2017-05-04 08:09:21 +00:00
|
|
|
this.isCreatingMergeRequest = false;
|
2017-11-25 11:33:05 +00:00
|
|
|
this.isGettingRef = false;
|
2017-05-04 08:09:21 +00:00
|
|
|
this.mergeRequestCreated = false;
|
2017-11-25 11:33:05 +00:00
|
|
|
this.refDebounce = _.debounce((value, target) => this.getRef(value, target), 500);
|
|
|
|
this.refIsValid = true;
|
|
|
|
this.refsPath = this.wrapperEl.dataset.refsPath;
|
|
|
|
this.suggestedRef = this.refInput.value;
|
2017-05-04 08:09:21 +00:00
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
// These regexps are used to replace
|
|
|
|
// a backend generated new branch name and its source (ref)
|
|
|
|
// with user's inputs.
|
|
|
|
this.regexps = {
|
|
|
|
branch: {
|
|
|
|
createBranchPath: new RegExp('(branch_name=)(.+?)(?=&issue)'),
|
|
|
|
createMrPath: new RegExp('(branch_name=)(.+?)(?=&ref)'),
|
|
|
|
},
|
|
|
|
ref: {
|
|
|
|
createBranchPath: new RegExp('(ref=)(.+?)$'),
|
|
|
|
createMrPath: new RegExp('(ref=)(.+?)$'),
|
|
|
|
},
|
|
|
|
};
|
2017-05-04 08:09:21 +00:00
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
this.init();
|
2017-05-04 08:09:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
available() {
|
|
|
|
this.availableButton.classList.remove('hide');
|
|
|
|
this.unavailableButton.classList.add('hide');
|
|
|
|
}
|
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
bindEvents() {
|
|
|
|
this.createMergeRequestButton.addEventListener('click', this.onClickCreateMergeRequestButton.bind(this));
|
|
|
|
this.createTargetButton.addEventListener('click', this.onClickCreateMergeRequestButton.bind(this));
|
|
|
|
this.branchInput.addEventListener('keyup', this.onChangeInput.bind(this));
|
|
|
|
this.dropdownToggle.addEventListener('click', this.onClickSetFocusOnBranchNameInput.bind(this));
|
|
|
|
this.refInput.addEventListener('keyup', this.onChangeInput.bind(this));
|
|
|
|
this.refInput.addEventListener('keydown', CreateMergeRequestDropdown.processTab.bind(this));
|
2017-05-04 08:09:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
checkAbilityToCreateBranch() {
|
|
|
|
return $.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
dataType: 'json',
|
|
|
|
url: this.canCreatePath,
|
|
|
|
beforeSend: () => this.setUnavailableButtonState(),
|
|
|
|
})
|
|
|
|
.done((data) => {
|
|
|
|
this.setUnavailableButtonState(false);
|
|
|
|
|
|
|
|
if (data.can_create_branch) {
|
|
|
|
this.available();
|
|
|
|
this.enable();
|
|
|
|
|
|
|
|
if (!this.droplabInitialized) {
|
|
|
|
this.droplabInitialized = true;
|
|
|
|
this.initDroplab();
|
|
|
|
this.bindEvents();
|
|
|
|
}
|
|
|
|
} else if (data.has_related_branch) {
|
|
|
|
this.hide();
|
|
|
|
}
|
|
|
|
}).fail(() => {
|
|
|
|
this.unavailable();
|
|
|
|
this.disable();
|
|
|
|
new Flash('Failed to check if a new branch can be created.');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
createBranch() {
|
|
|
|
return $.ajax({
|
|
|
|
method: 'POST',
|
|
|
|
dataType: 'json',
|
|
|
|
url: this.createBranchPath,
|
|
|
|
beforeSend: () => (this.isCreatingBranch = true),
|
|
|
|
})
|
|
|
|
.done((data) => {
|
|
|
|
this.branchCreated = true;
|
|
|
|
window.location.href = data.url;
|
|
|
|
})
|
|
|
|
.fail(() => new Flash('Failed to create a branch for this issue. Please try again.'));
|
|
|
|
}
|
2017-05-04 08:09:21 +00:00
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
createMergeRequest() {
|
|
|
|
return $.ajax({
|
|
|
|
method: 'POST',
|
|
|
|
dataType: 'json',
|
|
|
|
url: this.createMrPath,
|
|
|
|
beforeSend: () => (this.isCreatingMergeRequest = true),
|
|
|
|
})
|
|
|
|
.done((data) => {
|
|
|
|
this.mergeRequestCreated = true;
|
|
|
|
window.location.href = data.url;
|
|
|
|
})
|
|
|
|
.fail(() => new Flash('Failed to create Merge Request. Please try again.'));
|
|
|
|
}
|
|
|
|
|
|
|
|
disable() {
|
|
|
|
this.disableCreateAction();
|
|
|
|
|
|
|
|
this.dropdownToggle.classList.add('disabled');
|
|
|
|
this.dropdownToggle.setAttribute('disabled', 'disabled');
|
|
|
|
}
|
|
|
|
|
|
|
|
disableCreateAction() {
|
|
|
|
this.createMergeRequestButton.classList.add('disabled');
|
|
|
|
this.createMergeRequestButton.setAttribute('disabled', 'disabled');
|
|
|
|
|
|
|
|
this.createTargetButton.classList.add('disabled');
|
|
|
|
this.createTargetButton.setAttribute('disabled', 'disabled');
|
|
|
|
}
|
|
|
|
|
|
|
|
enable() {
|
|
|
|
this.createMergeRequestButton.classList.remove('disabled');
|
|
|
|
this.createMergeRequestButton.removeAttribute('disabled');
|
|
|
|
|
|
|
|
this.createTargetButton.classList.remove('disabled');
|
|
|
|
this.createTargetButton.removeAttribute('disabled');
|
|
|
|
|
|
|
|
this.dropdownToggle.classList.remove('disabled');
|
|
|
|
this.dropdownToggle.removeAttribute('disabled');
|
|
|
|
}
|
|
|
|
|
|
|
|
static findByValue(objects, ref, returnFirstMatch = false) {
|
|
|
|
if (!objects || !objects.length) return false;
|
|
|
|
if (objects.indexOf(ref) > -1) return ref;
|
|
|
|
if (returnFirstMatch) return objects.find(item => new RegExp(`^${ref}`).test(item));
|
|
|
|
|
|
|
|
return false;
|
2017-05-04 08:09:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
getDroplabConfig() {
|
|
|
|
return {
|
2017-11-25 11:33:05 +00:00
|
|
|
addActiveClassToDropdownButton: true,
|
|
|
|
InputSetter: [
|
|
|
|
{
|
|
|
|
input: this.createMergeRequestButton,
|
|
|
|
valueAttribute: 'data-value',
|
|
|
|
inputAttribute: 'data-action',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
input: this.createMergeRequestButton,
|
|
|
|
valueAttribute: 'data-text',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
input: this.createTargetButton,
|
|
|
|
valueAttribute: 'data-value',
|
|
|
|
inputAttribute: 'data-action',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
input: this.createTargetButton,
|
|
|
|
valueAttribute: 'data-text',
|
|
|
|
},
|
|
|
|
],
|
2017-05-04 08:09:21 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
static getInputSelectedText(input) {
|
|
|
|
const start = input.selectionStart;
|
|
|
|
const end = input.selectionEnd;
|
|
|
|
|
|
|
|
return input.value.substr(start, end - start);
|
|
|
|
}
|
|
|
|
|
|
|
|
getRef(ref, target = 'all') {
|
|
|
|
if (!ref) return false;
|
|
|
|
|
|
|
|
return $.ajax({
|
|
|
|
method: 'GET',
|
|
|
|
dataType: 'json',
|
|
|
|
url: this.refsPath + ref,
|
|
|
|
beforeSend: () => {
|
|
|
|
this.isGettingRef = true;
|
|
|
|
},
|
|
|
|
})
|
|
|
|
.always(() => {
|
|
|
|
this.isGettingRef = false;
|
|
|
|
})
|
|
|
|
.done((data) => {
|
|
|
|
const branches = data[Object.keys(data)[0]];
|
|
|
|
const tags = data[Object.keys(data)[1]];
|
|
|
|
let result;
|
|
|
|
|
|
|
|
if (target === 'branch') {
|
|
|
|
result = CreateMergeRequestDropdown.findByValue(branches, ref);
|
|
|
|
} else {
|
|
|
|
result = CreateMergeRequestDropdown.findByValue(branches, ref, true) ||
|
|
|
|
CreateMergeRequestDropdown.findByValue(tags, ref, true);
|
|
|
|
this.suggestedRef = result;
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.updateInputState(target, ref, result);
|
|
|
|
})
|
|
|
|
.fail(() => {
|
|
|
|
this.unavailable();
|
|
|
|
this.disable();
|
|
|
|
new Flash('Failed to get ref.');
|
|
|
|
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
getTargetData(target) {
|
|
|
|
return {
|
|
|
|
input: this[`${target}Input`],
|
|
|
|
message: this[`${target}Message`],
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
hide() {
|
|
|
|
this.wrapperEl.classList.add('hide');
|
|
|
|
}
|
|
|
|
|
|
|
|
init() {
|
|
|
|
this.checkAbilityToCreateBranch();
|
|
|
|
}
|
|
|
|
|
|
|
|
initDroplab() {
|
|
|
|
this.droplab = new DropLab();
|
|
|
|
|
|
|
|
this.droplab.init(
|
|
|
|
this.dropdownToggle,
|
|
|
|
this.dropdownList,
|
|
|
|
[InputSetter],
|
|
|
|
this.getDroplabConfig(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
inputsAreValid() {
|
|
|
|
return this.branchIsValid && this.refIsValid;
|
2017-05-04 08:09:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
isBusy() {
|
|
|
|
return this.isCreatingMergeRequest ||
|
|
|
|
this.mergeRequestCreated ||
|
|
|
|
this.isCreatingBranch ||
|
2017-11-25 11:33:05 +00:00
|
|
|
this.branchCreated ||
|
|
|
|
this.isGettingRef;
|
2017-05-04 08:09:21 +00:00
|
|
|
}
|
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
onChangeInput(event) {
|
|
|
|
let target;
|
|
|
|
let value;
|
|
|
|
|
2018-01-04 22:15:09 +00:00
|
|
|
if (event.target === this.branchInput) {
|
2017-11-25 11:33:05 +00:00
|
|
|
target = 'branch';
|
|
|
|
value = this.branchInput.value;
|
2018-01-04 22:15:09 +00:00
|
|
|
} else if (event.target === this.refInput) {
|
2017-11-25 11:33:05 +00:00
|
|
|
target = 'ref';
|
2018-01-04 22:15:09 +00:00
|
|
|
value = event.target.value.slice(0, event.target.selectionStart) +
|
|
|
|
event.target.value.slice(event.target.selectionEnd);
|
2017-11-25 11:33:05 +00:00
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.isGettingRef) return false;
|
|
|
|
|
|
|
|
// `ENTER` key submits the data.
|
|
|
|
if (event.keyCode === 13 && this.inputsAreValid()) {
|
|
|
|
event.preventDefault();
|
|
|
|
return this.createMergeRequestButton.click();
|
|
|
|
}
|
|
|
|
|
|
|
|
// If the input is empty, use the original value generated by the backend.
|
|
|
|
if (!value) {
|
|
|
|
this.createBranchPath = this.wrapperEl.dataset.createBranchPath;
|
|
|
|
this.createMrPath = this.wrapperEl.dataset.createMrPath;
|
|
|
|
|
|
|
|
if (target === 'branch') {
|
|
|
|
this.branchIsValid = true;
|
|
|
|
} else {
|
|
|
|
this.refIsValid = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.enable();
|
|
|
|
this.showAvailableMessage(target);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.showCheckingMessage(target);
|
|
|
|
this.refDebounce(value, target);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
onClickCreateMergeRequestButton(event) {
|
2017-05-04 08:09:21 +00:00
|
|
|
let xhr = null;
|
2017-11-25 11:33:05 +00:00
|
|
|
event.preventDefault();
|
2017-05-04 08:09:21 +00:00
|
|
|
|
|
|
|
if (this.isBusy()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
if (event.target.dataset.action === CREATE_MERGE_REQUEST) {
|
2017-05-04 08:09:21 +00:00
|
|
|
xhr = this.createMergeRequest();
|
2017-11-25 11:33:05 +00:00
|
|
|
} else if (event.target.dataset.action === CREATE_BRANCH) {
|
2017-05-04 08:09:21 +00:00
|
|
|
xhr = this.createBranch();
|
|
|
|
}
|
|
|
|
|
|
|
|
xhr.fail(() => {
|
|
|
|
this.isCreatingMergeRequest = false;
|
|
|
|
this.isCreatingBranch = false;
|
|
|
|
});
|
|
|
|
|
|
|
|
xhr.always(() => this.enable());
|
|
|
|
|
|
|
|
this.disable();
|
|
|
|
}
|
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
onClickSetFocusOnBranchNameInput() {
|
|
|
|
this.branchInput.focus();
|
2017-05-04 08:09:21 +00:00
|
|
|
}
|
|
|
|
|
2017-11-25 11:33:05 +00:00
|
|
|
// `TAB` autocompletes the source.
|
|
|
|
static processTab(event) {
|
|
|
|
if (event.keyCode !== 9 || this.isGettingRef) return;
|
|
|
|
|
|
|
|
const selectedText = CreateMergeRequestDropdown.getInputSelectedText(this.refInput);
|
|
|
|
|
|
|
|
// if nothing selected, we don't need to autocomplete anything. Do the default TAB action.
|
|
|
|
// If a user manually selected text, don't autocomplete anything. Do the default TAB action.
|
|
|
|
if (!selectedText || this.refInput.dataset.value === this.suggestedRef) return;
|
|
|
|
|
|
|
|
event.preventDefault();
|
|
|
|
window.getSelection().removeAllRanges();
|
|
|
|
}
|
|
|
|
|
|
|
|
removeMessage(target) {
|
|
|
|
const { input, message } = this.getTargetData(target);
|
|
|
|
const inputClasses = ['gl-field-error-outline', 'gl-field-success-outline'];
|
|
|
|
const messageClasses = ['gl-field-hint', 'gl-field-error-message', 'gl-field-success-message'];
|
|
|
|
|
|
|
|
inputClasses.forEach(cssClass => input.classList.remove(cssClass));
|
|
|
|
messageClasses.forEach(cssClass => message.classList.remove(cssClass));
|
|
|
|
message.style.display = 'none';
|
|
|
|
}
|
|
|
|
|
|
|
|
setUnavailableButtonState(isLoading = true) {
|
|
|
|
if (isLoading) {
|
|
|
|
this.unavailableButtonArrow.classList.add('fa-spin');
|
|
|
|
this.unavailableButtonArrow.classList.add('fa-spinner');
|
|
|
|
this.unavailableButtonArrow.classList.remove('fa-exclamation-triangle');
|
|
|
|
this.unavailableButtonText.textContent = __('Checking branch availability...');
|
|
|
|
} else {
|
|
|
|
this.unavailableButtonArrow.classList.remove('fa-spin');
|
|
|
|
this.unavailableButtonArrow.classList.remove('fa-spinner');
|
|
|
|
this.unavailableButtonArrow.classList.add('fa-exclamation-triangle');
|
|
|
|
this.unavailableButtonText.textContent = __('New branch unavailable');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
showAvailableMessage(target) {
|
|
|
|
const { input, message } = this.getTargetData(target);
|
|
|
|
const text = target === 'branch' ? __('Branch name') : __('Source');
|
|
|
|
|
|
|
|
this.removeMessage(target);
|
|
|
|
input.classList.add('gl-field-success-outline');
|
|
|
|
message.classList.add('gl-field-success-message');
|
|
|
|
message.textContent = sprintf(__('%{text} is available'), { text });
|
|
|
|
message.style.display = 'inline-block';
|
|
|
|
}
|
|
|
|
|
|
|
|
showCheckingMessage(target) {
|
|
|
|
const { message } = this.getTargetData(target);
|
|
|
|
const text = target === 'branch' ? __('branch name') : __('source');
|
|
|
|
|
|
|
|
this.removeMessage(target);
|
|
|
|
message.classList.add('gl-field-hint');
|
|
|
|
message.textContent = sprintf(__('Checking %{text} availability…'), { text });
|
|
|
|
message.style.display = 'inline-block';
|
|
|
|
}
|
|
|
|
|
|
|
|
showNotAvailableMessage(target) {
|
|
|
|
const { input, message } = this.getTargetData(target);
|
|
|
|
const text = target === 'branch' ? __('Branch is already taken') : __('Source is not available');
|
|
|
|
|
|
|
|
this.removeMessage(target);
|
|
|
|
input.classList.add('gl-field-error-outline');
|
|
|
|
message.classList.add('gl-field-error-message');
|
|
|
|
message.textContent = text;
|
|
|
|
message.style.display = 'inline-block';
|
|
|
|
}
|
|
|
|
|
|
|
|
unavailable() {
|
|
|
|
this.availableButton.classList.add('hide');
|
|
|
|
this.unavailableButton.classList.remove('hide');
|
|
|
|
}
|
|
|
|
|
|
|
|
updateInputState(target, ref, result) {
|
|
|
|
// target - 'branch' or 'ref' - which the input field we are searching a ref for.
|
|
|
|
// ref - string - what a user typed.
|
|
|
|
// result - string - what has been found on backend.
|
|
|
|
|
|
|
|
const pathReplacement = `$1${ref}`;
|
|
|
|
|
|
|
|
// If a found branch equals exact the same text a user typed,
|
|
|
|
// that means a new branch cannot be created as it already exists.
|
|
|
|
if (ref === result) {
|
|
|
|
if (target === 'branch') {
|
|
|
|
this.branchIsValid = false;
|
|
|
|
this.showNotAvailableMessage('branch');
|
|
|
|
} else {
|
|
|
|
this.refIsValid = true;
|
|
|
|
this.refInput.dataset.value = ref;
|
|
|
|
this.showAvailableMessage('ref');
|
|
|
|
this.createBranchPath = this.createBranchPath.replace(this.regexps.ref.createBranchPath,
|
|
|
|
pathReplacement);
|
|
|
|
this.createMrPath = this.createMrPath.replace(this.regexps.ref.createMrPath,
|
|
|
|
pathReplacement);
|
|
|
|
}
|
|
|
|
} else if (target === 'branch') {
|
|
|
|
this.branchIsValid = true;
|
|
|
|
this.showAvailableMessage('branch');
|
|
|
|
this.createBranchPath = this.createBranchPath.replace(this.regexps.branch.createBranchPath,
|
|
|
|
pathReplacement);
|
|
|
|
this.createMrPath = this.createMrPath.replace(this.regexps.branch.createMrPath,
|
|
|
|
pathReplacement);
|
|
|
|
} else {
|
|
|
|
this.refIsValid = false;
|
|
|
|
this.refInput.dataset.value = ref;
|
|
|
|
this.disableCreateAction();
|
|
|
|
this.showNotAvailableMessage('ref');
|
|
|
|
|
|
|
|
// Show ref hint.
|
|
|
|
if (result) {
|
|
|
|
this.refInput.value = result;
|
|
|
|
this.refInput.setSelectionRange(ref.length, result.length);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.inputsAreValid()) {
|
|
|
|
this.enable();
|
|
|
|
} else {
|
|
|
|
this.disableCreateAction();
|
|
|
|
}
|
2017-05-04 08:09:21 +00:00
|
|
|
}
|
|
|
|
}
|