<template>
  <div id="echoss_certification_kit" v-if="isCertificationKitInit">
		<div id="echoss_certification_kit_area" v-if="isStampInit">
			<div class="stamp_modal effect-show" id="guide_div" v-if="!isStampLoading && !isStampSuccess">
				<div id="new_stampMotion_wrap">
					<img v-if="options.closebutton !== false" id="img_btn_close_stamp" src="./assets/images/img_btn_close_stamp.png" alt="img_btn_close_stamp" @click="closeLayer(true)" />
					<div v-if="options.animation !== false" id="new_stampMotion_fr_box">
						<div id="new_stamp_box_frame">
							<img src="./assets/images/stamp_motion_fr.png" id="new_stampMotion_fr" />
							<img class="img_stamphand_new on" src="./assets/images/img_stamphand01.png" id="img_stamphand01" />
							<img class="img_stamphand_new" src="./assets/images/img_stamphand02.png" id="img_stamphand02" />
							<img class="img_stamphand_new" src="./assets/images/img_stamphand03.png" id="img_stamphand03" />
							<img class="img_stamphand_new" src="./assets/images/img_stamphand04.png" id="img_stamphand04" />
						</div>
					</div>
					<p v-if="(options.description === '' || options.description === undefined) && languageCode === 'KOREAN'" class="stamp_new_notice" id="notice_text">스탬프를 찍어주세요</p>
					<p v-else-if="(options.description === '' || options.description === undefined)" class="stamp_new_notice" id="notice_text">Anywhere you want,<br/>just take a stamp on screen</p>
					<p v-else class="stamp_new_notice" id="notice_text" v-html="options.description"></p>
				</div>
			</div>

			<div id="modal-stamp" class="stamp-modal effect-show" v-if="isStampLoading">
				<div id="stampMotion_wrap">
					<div id="stampMotion_fr_box">
						<div id="stamp_box_frame">
							<img src="./assets/images/stamp_motion_fr.png" id="stampMotion_fr" />
							<img src="./assets/images/stamping_ico.gif" id="stampMotion00" class="stamping_stampMotion00 changeImgShow0" />
						</div>
						<img src="./assets/images/stamp_motion01.png" id="stampMotion01" class="stamping_stampMotion01 scaleUpImg1" />
						<img src="./assets/images/stamp_motion02.png" id="stampMotion02" class="stamping_stampMotion02 scaleUpImg2" />
						<img src="./assets/images/stamp_motion03.png" id="stampMotion03" class="stamping_stampMotion03 scaleUpImg3" />
					</div>
				</div>
			</div>

			<div id="success-stamp" class="stamp-modal effect-show" v-if="isStampSuccess">
				<div id="stampMotion_wrap">
					<div id="stampSuccess_fr_box" class="success_frame" v-bind:style="{ backgroundColor: echossIconColor === undefined || echossIconColor === '' ? 'rgb(255, 104, 104)' : echossIconColor }">
						<div id="stamp_box_frame">
							<img src="./assets/images/stamp_motion_fr.png" id="stampMotion_fr" />
							<img src="./assets/images/img_stamp_sucsess.png" id="stampMotion00" class="success_stampMotion00 changeImgShow0" />
						</div>
						<img src="./assets/images/stamp_motion01.png" id="stampMotion01" class="success_stampMotion01 scaleUpImg1" />
						<img src="./assets/images/stamp_motion02.png" id="stampMotion02" class="success_stampMotion02 scaleUpImg2" />
						<img src="./assets/images/stamp_motion03.png" id="stampMotion03" class="success_stampMotion03 scaleUpImg3" />
					</div>
				</div>
			</div>

			<div id="echossStampLayerDim" v-bind:style="{ backgroundColor: options.backgroundcolor === undefined || options.backgroundcolor === '' ? '#000000' : options.backgroundcolor, opacity: options.opacity === undefined || options.opacity === '' ? '0.4' : options.opacity }" />
		</div>
	</div>
</template>

<script>
import echoss from '../echoss-lite/index.js'

export default {
	name: 'EchossCertificationKit',
	data () {
		return {
			isCertificationKitInit: false,
			isStampInit: false,
			isStampLoading: false,
			isStampSuccess: false,
			echossIconColor: '',
			languageCode: 'ENGLISH',
			requestUrl: '',
			uid: '',
			startStampTimestamp: 0
		}
	},
	props: {
		license: {
			type: String,
			default: ''
		},
		region: {
			type: String,
			default: ''
		},
		language: {
			type: String,
			default: 'KOREAN'
		},
		usercode: {
			type: String,
			default: ''
		},
		merchantcode: {
			type: String,
			default: ''
		},
		options: {
			type: Object,
			default: {
				backgroundcolor: '#000000',
				opacity: 0.4,
				description: '',
				loading: true,
				animation: true,
				echossicon: true,
        closebutton: true
			}
		},
		onInitializeSuccess: {
			type: Function,
			default: () => {
				//
			}
		},
		onInitializeError: {
			type: Function,
			default: (errorCode, errorMessage) => {
				//
			}
		},
		onStampError: {
			type: Function,
			default: (errorCode, errorMessage) => {
				//
			}
		},
		onStampSuccess: {
			type: Function,
			default: (response) => {
				//
			}
		},
		onBeforeStamp: {
			type: Function,
			default: () => {
				//
			}
		},
		onClose: {
			type: Function,
			default: () => {
				//
			}
		}
	},
	watch: {
		//
	},
	computed: {
		//
	},
	created () {
		var _0x7a87=["\x6C\x61\x6E\x67\x75\x61\x67\x65","\x4B\x4F\x52\x45\x41\x4E","\x45\x4E\x47\x4C\x49\x53\x48","\x4A\x41\x50\x41\x4E\x45\x53\x45","\x54\x52\x41\x44\x49\x54\x49\x4F\x4E\x41\x4C\x5F\x43\x48\x49\x4E\x45\x53\x45","\x53\x49\x4D\x50\x4C\x49\x46\x49\x45\x44\x5F\x43\x48\x49\x4E\x45\x53\x45","\x6C\x61\x6E\x67\x75\x61\x67\x65\x43\x6F\x64\x65","\x6C\x69\x63\x65\x6E\x73\x65","","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x70","\x64","\x45\x53\x31\x31","\x67\x65\x74\x45\x72\x72\x6F\x72\x4D\x65\x73\x73\x61\x67\x65","\x6F\x6E\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x45\x72\x72\x6F\x72","\x72\x65\x67\x69\x6F\x6E","\x44\x45\x56","\x4B\x4F\x52\x45\x41","\x4A\x41\x50\x41\x4E","\x43\x48\x49\x4E\x41","\x54\x41\x49\x57\x41\x4E","\x41\x50\x53\x45\x31","\x41\x50\x53\x45\x32","\x45\x55\x52\x4F\x50\x45","\x45\x53\x31\x30","\x72\x65\x71\x75\x65\x73\x74\x55\x72\x6C","\x67\x65\x74\x52\x65\x71\x75\x65\x73\x74\x55\x72\x6C","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E","\x3F","\x73\x70\x6C\x69\x74","\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x70\x61\x67\x65","\x75\x73\x65\x72\x63\x6F\x64\x65","\x75\x73\x65\x72","\x6D\x65\x72\x63\x68\x61\x6E\x74\x63\x6F\x64\x65","\x6D\x65\x72\x63\x68\x61\x6E\x74","\x7C","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x6C\x61\x74\x69\x74\x75\x64\x65","\x6C\x6F\x6E\x67\x69\x74\x75\x64\x65","\x2F\x66\x63\x6D\x2F\x67\x61\x74\x65\x77\x61\x79\x2F\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65","\x50\x4F\x53\x54","\x69\x73\x43\x65\x72\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E\x4B\x69\x74\x49\x6E\x69\x74","\x75\x69\x64","\x6C\x69\x6E\x6B\x49\x64","\x65\x63\x68\x6F\x73\x73\x5F\x63\x65\x72\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E\x5F\x6B\x69\x74","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65\x53\x75\x63\x63\x65\x73\x73","\x69\x73\x53\x74\x61\x6D\x70\x49\x6E\x69\x74","\x6F\x6E","\x63\x6F\x6E\x74\x61\x69\x6E\x73","\x63\x6C\x61\x73\x73\x4C\x69\x73\x74","\x69\x6D\x67\x5F\x73\x74\x61\x6D\x70\x68\x61\x6E\x64\x30","\x72\x65\x6D\x6F\x76\x65","\x61\x64\x64","\x65\x63\x68\x6F\x73\x73\x69\x63\x6F\x6E","\x6F\x70\x74\x69\x6F\x6E\x73","\x69\x6E\x69\x74","\x49\x63\x6F\x6E","\x65\x6E\x61\x62\x6C\x65\x53\x74\x61\x6D\x70\x69\x6E\x67\x45\x72\x72\x6F\x72\x4D\x73\x67","\x2C\x4B","\x53\x50\x46\x43\x4D","\x43\x4F\x4D\x4D\x4F\x4E\x5F\x45\x54\x43","\x4F\x54\x50\x5F\x49\x53\x53\x55\x45\x5F\x54\x59\x50\x45","\x4E","\x63\x6C\x73\x65\x47\x75\x69\x64\x65\x56\x69\x65\x77","\x6C\x69\x63\x65\x6E\x73\x65\x49\x64","\x74\x6F\x6B\x65\x6E","\x74\x79\x70\x65","\x6F\x74\x70","\x6F\x6E\x53\x74\x61\x6D\x70\x53\x75\x63\x63\x65\x73\x73","\x63\x6C\x6F\x73\x65\x4C\x61\x79\x65\x72","\x6F\x6E\x53\x74\x61\x6D\x70\x45\x72\x72\x6F\x72","\x65\x63\x68\x6F\x73\x73\x53\x65\x72\x76\x69\x63\x65\x47\x65\x74\x54\x6F\x6B\x65\x6E","\x73\x65\x74\x45\x63\x68\x6F\x73\x73\x49\x63\x6F\x6E\x44\x61\x74\x61","\x73\x68\x6F\x77\x49\x63\x6F\x6E","\x45\x53\x32\x30","\x53\x74\x61\x6D\x70","\x4C\x41\x4E\x47\x55\x41\x47\x45\x5F\x43\x4F\x44\x45\x5F\x54\x59\x50\x45","\x73\x65\x74\x4C\x61\x6E\x67\x75\x61\x67\x65\x43\x6F\x64\x65","\x61\x70\x69\x4B\x65\x79","\x52\x45\x47\x49\x4F\x4E\x5F\x43\x4F\x44\x45\x5F\x54\x59\x50\x45","\x69\x6E\x69\x74\x69\x61\x6C\x69\x7A\x65","\x6F\x6E\x45\x78\x63\x65\x70\x74\x69\x6F\x6E","\x6F\x6E\x45\x72\x72\x6F\x72","\x73\x74\x6F\x70\x53\x74\x61\x6D\x70\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x6F\x6E\x42\x65\x66\x6F\x72\x65\x53\x74\x61\x6D\x70","\x6C\x6F\x61\x64\x69\x6E\x67","\x73\x74\x61\x72\x74\x53\x74\x61\x6D\x70\x54\x69\x6D\x65\x73\x74\x61\x6D\x70","\x6E\x6F\x77","\x73\x74\x61\x72\x74\x53\x74\x61\x6D\x70\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x6F\x6E\x53\x74\x61\x6D\x70","\x73\x74\x61\x72\x74\x53\x74\x61\x6D\x70\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x53\x75\x63\x63\x65\x73\x73","\x65\x63\x68\x6F\x73\x73\x49\x63\x6F\x6E\x43\x6F\x6C\x6F\x72","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x43\x6F\x6C\x6F\x72","\x73\x74\x79\x6C\x65","\x69\x63\x6F\x6E\x20\x6F\x74\x70\x5F\x62\x61\x63\x6B\x5F\x63\x6F\x6C\x6F\x72","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x43\x6C\x61\x73\x73\x4E\x61\x6D\x65","\x72\x67\x62\x28\x32\x35\x35\x2C\x20\x31\x30\x34\x2C\x20\x31\x30\x34\x29","\x73\x74\x61\x6D\x70","\x73\x74\x6F\x70\x53\x74\x61\x6D\x70\x41\x6E\x69\x6D\x61\x74\x69\x6F\x6E\x53\x75\x63\x63\x65\x73\x73","\x41\x30\x30\x31","\x53\x54\x41\x4D\x50\x5F\x45\x52\x52\x4F\x52\x5F\x54\x59\x50\x45","\x73\x68\x6F\x77\x45\x72\x72\x6F\x72\x4D\x65\x73\x73\x61\x67\x65\x57\x69\x74\x68\x43\x6F\x64\x65","\x41\x30\x30\x32","\x65\x63\x68\x6F\x73\x73\x53\x65\x72\x76\x69\x63\x65\x43\x65\x72\x74","\x65\x63\x68\x6F\x73\x73\x48\x74\x74\x70\x53\x65\x6E\x64"];if(this[_0x7a87[0]]!== _0x7a87[1]&& this[_0x7a87[0]]!== _0x7a87[2]&& this[_0x7a87[0]]!== _0x7a87[3]&& this[_0x7a87[0]]!== _0x7a87[4]&& this[_0x7a87[0]]!== _0x7a87[5]){this[_0x7a87[6]]= _0x7a87[2]}else {this[_0x7a87[6]]= this[_0x7a87[0]]};if(this[_0x7a87[7]]=== undefined|| this[_0x7a87[7]]=== _0x7a87[8]|| (this[_0x7a87[7]][_0x7a87[9]](0,1)!== _0x7a87[10]&& this[_0x7a87[7]][_0x7a87[9]](0,1)!== _0x7a87[11])){this[_0x7a87[14]](_0x7a87[12],this[_0x7a87[13]](_0x7a87[12]));return};if(this[_0x7a87[15]]!== _0x7a87[16]&& this[_0x7a87[15]]!== _0x7a87[17]&& this[_0x7a87[15]]!== _0x7a87[18]&& this[_0x7a87[15]]!== _0x7a87[19]&& this[_0x7a87[15]]!== _0x7a87[20]&& this[_0x7a87[15]]!== _0x7a87[21]&& this[_0x7a87[15]]!== _0x7a87[22]&& this[_0x7a87[15]]!== _0x7a87[23]){this[_0x7a87[14]](_0x7a87[24],this[_0x7a87[13]](_0x7a87[24]));return};this[_0x7a87[25]]= this[_0x7a87[26]](this[_0x7a87[7]],this[_0x7a87[15]]);if(this[_0x7a87[25]]=== undefined|| this[_0x7a87[25]]=== _0x7a87[8]){this[_0x7a87[14]](_0x7a87[24],this[_0x7a87[13]](_0x7a87[24]));return};var params= new Object();params[_0x7a87[27]]= window[_0x7a87[31]][_0x7a87[30]][_0x7a87[29]](_0x7a87[28])[0];params[_0x7a87[32]]= this[_0x7a87[7]];if(this[_0x7a87[33]]!== undefined&& this[_0x7a87[33]]!== _0x7a87[8]){params[_0x7a87[34]]= this[_0x7a87[33]]};if(this[_0x7a87[35]]!== undefined&& this[_0x7a87[35]]!== _0x7a87[8]){params[_0x7a87[36]]= this[_0x7a87[35]];if(this[_0x7a87[35]][_0x7a87[38]](_0x7a87[37])){if(this[_0x7a87[35]][_0x7a87[29]](_0x7a87[37])[0]!== undefined&& this[_0x7a87[35]][_0x7a87[29]](_0x7a87[37])[1]!== undefined){this[_0x7a87[39]]= this[_0x7a87[35]][_0x7a87[29]](_0x7a87[37])[0]};this[_0x7a87[40]]= this[_0x7a87[35]][_0x7a87[29]](_0x7a87[37])[1]}};this[_0x7a87[107]](this[_0x7a87[25]]+ _0x7a87[41],params,_0x7a87[42],(_0x94ebx2)=>{this[_0x7a87[43]]= true;this[_0x7a87[44]]= _0x94ebx2[_0x7a87[45]];let _0x94ebx3=setInterval(()=>{if(document[_0x7a87[47]](_0x7a87[46])!== null){clearInterval(_0x94ebx3);_0x94ebx3= null;echoss[_0x7a87[48]]= ()=>{echoss[_0x7a87[78]][_0x7a87[58]]((_0x94ebx4)=>{this[_0x7a87[49]]= true;var _0x94ebx5=setInterval(()=>{try{for(var _0x94ebx6=1;_0x94ebx6<= 4;_0x94ebx6++){if(document[_0x7a87[47]](_0x7a87[53]+ _0x94ebx6)[_0x7a87[52]][_0x7a87[51]](_0x7a87[50])){document[_0x7a87[47]](_0x7a87[53]+ _0x94ebx6)[_0x7a87[52]][_0x7a87[54]](_0x7a87[50]);document[_0x7a87[47]](_0x7a87[53]+ ((_0x94ebx6% 4)+ 1))[_0x7a87[52]][_0x7a87[55]](_0x7a87[50]);break}}}catch(e){clearInterval(_0x94ebx5)}},800);if(this[_0x7a87[57]][_0x7a87[56]]=== undefined|| this[_0x7a87[57]][_0x7a87[56]]!== false){echoss[_0x7a87[59]][_0x7a87[58]]();echoss[_0x7a87[59]][_0x7a87[60]](true);var _0x94ebx7=this[_0x7a87[44]]+ _0x7a87[61];echoss[_0x7a87[59]][_0x7a87[75]]({aprvData:_0x94ebx7,funcCd:_0x7a87[62],isuDivCd:echoss[_0x7a87[59]][_0x7a87[64]][_0x7a87[63]],cntYn:_0x7a87[65]},()=>{echoss[_0x7a87[59]][_0x7a87[66]]();this[_0x7a87[74]]((_0x94ebx2)=>{var params= new Object();params[_0x7a87[67]]= this[_0x7a87[7]];params[_0x7a87[34]]= this[_0x7a87[33]];params[_0x7a87[68]]= _0x94ebx2[_0x7a87[68]];params[_0x7a87[69]]= _0x7a87[70];if(_0x94ebx2[_0x7a87[36]]!== undefined&& _0x94ebx2[_0x7a87[36]]!== _0x7a87[8]){params[_0x7a87[36]]= _0x94ebx2[_0x7a87[36]]};this[_0x7a87[71]](params);this[_0x7a87[72]](false)},(_0x94ebx8,_0x94ebx9)=>{this[_0x7a87[73]](_0x94ebx8,_0x94ebx9)})},(_0x94ebx8,_0x94ebx9)=>{this[_0x7a87[73]](_0x94ebx8,_0x94ebx9)});echoss[_0x7a87[59]][_0x7a87[76]]()}},(_0x94ebx8,_0x94ebx9)=>{this[_0x7a87[14]](_0x7a87[77],this[_0x7a87[13]](_0x7a87[77]))},this[_0x7a87[33]])};if(this[_0x7a87[6]]=== _0x7a87[1]){echoss[_0x7a87[80]](echoss[_0x7a87[79]].KOREAN)}else {if(this[_0x7a87[6]]=== _0x7a87[2]){echoss[_0x7a87[80]](echoss[_0x7a87[79]].ENGLISH)}else {if(this[_0x7a87[6]]=== _0x7a87[3]){echoss[_0x7a87[80]](echoss[_0x7a87[79]].JAPANESE)}else {if(this[_0x7a87[6]]=== _0x7a87[4]){echoss[_0x7a87[80]](echoss[_0x7a87[79]].TAIWAN)}else {if(this[_0x7a87[6]]=== _0x7a87[5]){echoss[_0x7a87[80]](echoss[_0x7a87[79]].CHINESE)}}}}};if(this[_0x7a87[15]]== _0x7a87[17]){echoss[_0x7a87[83]](_0x94ebx2[_0x7a87[81]],echoss[_0x7a87[82]].KOREA,_0x7a87[46])}else {if(this[_0x7a87[15]]== _0x7a87[18]){echoss[_0x7a87[83]](_0x94ebx2[_0x7a87[81]],echoss[_0x7a87[82]].JAPAN,_0x7a87[46])}else {if(this[_0x7a87[15]]== _0x7a87[19]){echoss[_0x7a87[83]](_0x94ebx2[_0x7a87[81]],echoss[_0x7a87[82]].CHINA,_0x7a87[46])}else {if(this[_0x7a87[15]]== _0x7a87[20]){echoss[_0x7a87[83]](_0x94ebx2[_0x7a87[81]],echoss[_0x7a87[82]].TAIWAN,_0x7a87[46])}else {if(this[_0x7a87[15]]== _0x7a87[21]){echoss[_0x7a87[83]](_0x94ebx2[_0x7a87[81]],echoss[_0x7a87[82]].APSE1,_0x7a87[46])}else {if(this[_0x7a87[15]]== _0x7a87[22]){echoss[_0x7a87[83]](_0x94ebx2[_0x7a87[81]],echoss[_0x7a87[82]].APSE2,_0x7a87[46])}else {if(this[_0x7a87[15]]== _0x7a87[23]){echoss[_0x7a87[83]](_0x94ebx2[_0x7a87[81]],echoss[_0x7a87[82]].EUROPE,_0x7a87[46])}else {if(this[_0x7a87[15]]== _0x7a87[16]){echoss[_0x7a87[83]](_0x94ebx2[_0x7a87[81]],echoss[_0x7a87[82]].DEV,_0x7a87[46])}}}}}}}};echoss[_0x7a87[78]][_0x7a87[84]]= (_0x94ebx8,_0x94ebx9)=>{this[_0x7a87[73]](_0x94ebx8,_0x94ebx9)};echoss[_0x7a87[78]][_0x7a87[85]]= (_0x94ebx8,_0x94ebx9)=>{this[_0x7a87[73]](_0x94ebx8,_0x94ebx9);this[_0x7a87[86]]()};echoss[_0x7a87[78]][_0x7a87[87]]= ()=>{this[_0x7a87[87]]();if(this[_0x7a87[57]][_0x7a87[88]]=== undefined|| this[_0x7a87[57]][_0x7a87[88]]!== false){this[_0x7a87[89]]= Date[_0x7a87[90]]();this[_0x7a87[91]]()}};echoss[_0x7a87[78]][_0x7a87[92]]= (_0x94ebxa)=>{if(this[_0x7a87[57]][_0x7a87[88]]=== undefined|| this[_0x7a87[57]][_0x7a87[88]]!== false){this[_0x7a87[106]](_0x94ebxa,(_0x94ebx2)=>{let _0x94ebxb=Date[_0x7a87[90]]()- this[_0x7a87[89]];setTimeout(()=>{this[_0x7a87[86]]();this[_0x7a87[93]]();if(this[_0x7a87[57]][_0x7a87[56]]=== undefined|| this[_0x7a87[57]][_0x7a87[56]]!== false){this[_0x7a87[94]]= document[_0x7a87[98]](_0x7a87[97])[0][_0x7a87[96]][_0x7a87[95]]}else {this[_0x7a87[94]]= _0x7a87[99]};setTimeout(()=>{var params= new Object();params[_0x7a87[67]]= this[_0x7a87[7]];params[_0x7a87[34]]= this[_0x7a87[33]];params[_0x7a87[68]]= _0x94ebx2[_0x7a87[68]];params[_0x7a87[69]]= _0x7a87[100];if(_0x94ebx2[_0x7a87[36]]!== undefined&& _0x94ebx2[_0x7a87[36]]!== _0x7a87[8]){params[_0x7a87[36]]= _0x94ebx2[_0x7a87[36]]};this[_0x7a87[101]]();this[_0x7a87[71]](params);this[_0x7a87[72]](false)},2000)},_0x94ebxb< 1200?1200- _0x94ebxb:1)},(_0x94ebx8,_0x94ebx9)=>{let _0x94ebxb=Date[_0x7a87[90]]()- this[_0x7a87[89]];setTimeout(()=>{this[_0x7a87[86]]();this[_0x7a87[73]](_0x94ebx8,_0x94ebx9);if(this[_0x7a87[57]][_0x7a87[56]]=== undefined|| this[_0x7a87[57]][_0x7a87[56]]!== false){if(_0x94ebx8=== _0x7a87[102]){echoss[_0x7a87[59]][_0x7a87[104]](echoss[_0x7a87[59]][_0x7a87[103]].TRY_AGAIN,_0x7a87[102])}else {if(_0x94ebx8=== _0x7a87[105]){echoss[_0x7a87[59]][_0x7a87[104]](echoss[_0x7a87[59]][_0x7a87[103]].NOT_FOUND_STORE,_0x7a87[105])}}}},_0x94ebxb< 1200?1200- _0x94ebxb:1)})}else {this[_0x7a87[106]](_0x94ebxa,(_0x94ebx2)=>{var params= new Object();params[_0x7a87[67]]= this[_0x7a87[7]];params[_0x7a87[34]]= this[_0x7a87[33]];params[_0x7a87[68]]= _0x94ebx2[_0x7a87[68]];params[_0x7a87[69]]= _0x7a87[100];if(_0x94ebx2[_0x7a87[36]]!== undefined&& _0x94ebx2[_0x7a87[36]]!== _0x7a87[8]){params[_0x7a87[36]]= _0x94ebx2[_0x7a87[36]]};this[_0x7a87[71]](params);this[_0x7a87[72]](false)},(_0x94ebx8,_0x94ebx9)=>{this[_0x7a87[73]](_0x94ebx8,_0x94ebx9);if(this[_0x7a87[57]][_0x7a87[56]]=== undefined|| this[_0x7a87[57]][_0x7a87[56]]!== false){if(_0x94ebx8=== _0x7a87[102]){echoss[_0x7a87[59]][_0x7a87[104]](echoss[_0x7a87[59]][_0x7a87[103]].TRY_AGAIN,_0x7a87[102])}else {if(_0x94ebx8=== _0x7a87[105]){echoss[_0x7a87[59]][_0x7a87[104]](echoss[_0x7a87[59]][_0x7a87[103]].NOT_FOUND_STORE,_0x7a87[105])}}}})}};if(this[_0x7a87[39]]!== _0x7a87[8]&& this[_0x7a87[39]]!== _0x7a87[8]){echoss[_0x7a87[78]][_0x7a87[92]](this[_0x7a87[39]],this[_0x7a87[39]])}};this[_0x7a87[48]]()},100)},this[_0x7a87[14]])
	},
	methods: {
		getRequestUrl (type, region) {
      var _0x18d2=["\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x70","\x4B\x4F\x52\x45\x41","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x66\x75\x6E\x63\x74\x69\x6F\x6E\x2E\x65\x63\x68\x6F\x73\x73\x2E\x63\x6F\x2E\x6B\x72","\x4A\x41\x50\x41\x4E","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x66\x75\x6E\x63\x74\x69\x6F\x6E\x2E\x31\x32\x63\x6D\x2E\x6A\x70","\x54\x41\x49\x57\x41\x4E","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x66\x75\x6E\x63\x74\x69\x6F\x6E\x2E\x31\x32\x63\x6D\x2E\x74\x77","\x43\x48\x49\x4E\x41","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x66\x75\x6E\x63\x74\x69\x6F\x6E\x2E\x65\x63\x68\x6F\x73\x73\x2E\x63\x6E","\x41\x50\x53\x45\x31","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6D\x2E\x61\x70\x73\x65\x31\x2E\x31\x32\x63\x6D\x67\x6C\x6F\x62\x61\x6C\x2E\x63\x6F\x6D","\x41\x50\x53\x45\x32","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6D\x2E\x61\x70\x73\x65\x32\x2E\x31\x32\x63\x6D\x67\x6C\x6F\x62\x61\x6C\x2E\x63\x6F\x6D","\x45\x55\x52\x4F\x50\x45","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6D\x2E\x65\x75\x72\x6F\x70\x65\x2E\x31\x32\x63\x6D\x67\x6C\x6F\x62\x61\x6C\x2E\x63\x6F\x6D","\x44\x45\x56","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6D\x64\x65\x76\x2E\x65\x63\x68\x6F\x73\x73\x2E\x63\x6F\x2E\x6B\x72","","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x66\x75\x6E\x63\x74\x69\x6F\x6E\x2D\x64\x65\x76\x2E\x65\x63\x68\x6F\x73\x73\x2E\x63\x6F\x2E\x6B\x72","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x66\x75\x6E\x63\x74\x69\x6F\x6E\x2D\x64\x65\x76\x2E\x31\x32\x63\x6D\x2E\x6A\x70","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x66\x75\x6E\x63\x74\x69\x6F\x6E\x2D\x64\x65\x76\x2E\x31\x32\x63\x6D\x2E\x74\x77","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6C\x61\x74\x66\x6F\x72\x6D\x2D\x66\x75\x6E\x63\x74\x69\x6F\x6E\x2D\x64\x65\x76\x2E\x65\x63\x68\x6F\x73\x73\x2E\x63\x6E","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6D\x2D\x73\x74\x67\x2E\x61\x70\x73\x65\x31\x2E\x31\x32\x63\x6D\x67\x6C\x6F\x62\x61\x6C\x2E\x63\x6F\x6D","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6D\x2D\x73\x74\x67\x2E\x61\x70\x73\x65\x32\x2E\x31\x32\x63\x6D\x67\x6C\x6F\x62\x61\x6C\x2E\x63\x6F\x6D","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x6D\x2D\x64\x65\x76\x2E\x65\x75\x72\x6F\x70\x65\x2E\x31\x32\x63\x6D\x67\x6C\x6F\x62\x61\x6C\x2E\x63\x6F\x6D"];if(type[_0x18d2[0]](0,1)=== _0x18d2[1]){if(region=== _0x18d2[2]){return _0x18d2[3]}else {if(region=== _0x18d2[4]){return _0x18d2[5]}else {if(region=== _0x18d2[6]){return _0x18d2[7]}else {if(region=== _0x18d2[8]){return _0x18d2[9]}else {if(region=== _0x18d2[10]){return _0x18d2[11]}else {if(region=== _0x18d2[12]){return _0x18d2[13]}else {if(region=== _0x18d2[14]){return _0x18d2[15]}else {if(region=== _0x18d2[16]){return _0x18d2[17]}else {return _0x18d2[18]}}}}}}}}}else {if(region=== _0x18d2[2]){return _0x18d2[19]}else {if(region=== _0x18d2[4]){return _0x18d2[20]}else {if(region=== _0x18d2[6]){return _0x18d2[21]}else {if(region=== _0x18d2[8]){return _0x18d2[22]}else {if(region=== _0x18d2[10]){return _0x18d2[23]}else {if(region=== _0x18d2[12]){return _0x18d2[24]}else {if(region=== _0x18d2[14]){return _0x18d2[25]}else {if(region=== _0x18d2[16]){return _0x18d2[17]}else {return _0x18d2[18]}}}}}}}}}
	  },
		echossHttpSend (url, params, method, success, failed) {
	    var _0x83cf=["\x58\x4D\x4C\x48\x74\x74\x70\x52\x65\x71\x75\x65\x73\x74","\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x2E\x58\x4D\x4C\x48\x54\x54\x50","\x6F\x6E\x72\x65\x61\x64\x79\x73\x74\x61\x74\x65\x63\x68\x61\x6E\x67\x65","\x72\x65\x61\x64\x79\x53\x74\x61\x74\x65","\x73\x74\x61\x74\x75\x73","\x72\x65\x73\x70\x6F\x6E\x73\x65","\x70\x61\x72\x73\x65","\x72\x65\x73\x43\x64","\x30\x30\x30\x30","\x72\x65\x73\x75\x6C\x74","\x72\x65\x73\x4D\x73\x67","\x45\x53\x39\x39","\x50\x6C\x65\x61\x73\x65\x20\x74\x72\x79\x20\x61\x67\x61\x69\x6E\x2E","","\x6F\x70\x65\x6E","\x43\x6F\x6E\x74\x65\x6E\x74\x2D\x74\x79\x70\x65","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E","\x73\x65\x74\x52\x65\x71\x75\x65\x73\x74\x48\x65\x61\x64\x65\x72","\x41\x63\x63\x65\x70\x74","\x41\x63\x63\x65\x70\x74\x2D\x4C\x61\x6E\x67\x75\x61\x67\x65","\x6C\x61\x6E\x67\x75\x61\x67\x65\x43\x6F\x64\x65","\x41\x75\x74\x68\x6F\x72\x69\x7A\x61\x74\x69\x6F\x6E","\x42\x61\x73\x69\x63\x20","\x32\x32\x63\x64\x39\x34\x33\x35\x2D\x63\x31\x65\x66\x2D\x34\x61\x31\x63\x2D\x61\x35\x31\x31\x2D\x37\x39\x31\x33\x30\x33\x61\x35\x61\x32\x30\x66","\x3A","\x33\x33\x36\x36\x33\x31\x36\x31\x33\x39\x33\x31\x36\x34\x36\x36\x32\x44\x33\x30\x33\x35\x33\x34\x33\x30\x32\x44\x33\x34\x33\x37\x33\x39\x33\x33\x32\x44\x33\x38\x33\x35\x36\x32\x36\x31\x32\x44\x33\x35\x36\x36\x33\x37\x36\x36\x36\x32\x36\x34\x36\x33\x36\x31\x33\x35\x36\x34\x33\x39\x33\x34","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x73\x65\x6E\x64"];var xmlhttp;if(window[_0x83cf[0]]){xmlhttp=  new XMLHttpRequest()}else {xmlhttp=  new ActiveXObject(_0x83cf[1])};if(params=== undefined){params= {}};xmlhttp[_0x83cf[2]]= function(){if(xmlhttp[_0x83cf[3]]=== 4){if(xmlhttp[_0x83cf[4]]=== 200){var _0xd7a0x2=JSON[_0x83cf[6]](xmlhttp[_0x83cf[5]]);if(_0xd7a0x2[_0x83cf[7]]=== _0x83cf[8]){success(_0xd7a0x2[_0x83cf[9]])}else {failed(_0xd7a0x2[_0x83cf[7]],_0xd7a0x2[_0x83cf[10]])}}else {var _0xd7a0x3=_0x83cf[11];var _0xd7a0x4=_0x83cf[12];if(xmlhttp[_0x83cf[5]]!== _0x83cf[13]&& xmlhttp[_0x83cf[5]]!== undefined&& xmlhttp[_0x83cf[4]]!== 404){var _0xd7a0x2=JSON[_0x83cf[6]](xmlhttp[_0x83cf[5]]);_0xd7a0x3= _0xd7a0x2[_0x83cf[7]];_0xd7a0x4= _0xd7a0x2[_0x83cf[10]]};failed(_0xd7a0x3,_0xd7a0x4)}}};xmlhttp[_0x83cf[14]](method,url,true);xmlhttp[_0x83cf[17]](_0x83cf[15],_0x83cf[16]);xmlhttp[_0x83cf[17]](_0x83cf[18],_0x83cf[16]);xmlhttp[_0x83cf[17]](_0x83cf[19],this[_0x83cf[20]]);xmlhttp[_0x83cf[17]](_0x83cf[21],_0x83cf[22]+ btoa(_0x83cf[23]+ _0x83cf[24]+ _0x83cf[25]));xmlhttp[_0x83cf[27]](JSON[_0x83cf[26]](params))
	  },
		echossServiceGetToken (succFunction, failFunction) {
	    var _0x8f3d=["\x72\x65\x71\x75\x65\x73\x74\x55\x72\x6C","\x2F\x66\x63\x6D\x2F\x67\x61\x74\x65\x77\x61\x79\x2F\x67\x65\x74\x5F\x74\x6F\x6B\x65\x6E","\x75\x69\x64","\x50\x4F\x53\x54","\x65\x63\x68\x6F\x73\x73\x48\x74\x74\x70\x53\x65\x6E\x64"];this[_0x8f3d[4]](this[_0x8f3d[0]]+ _0x8f3d[1],{uid:this[_0x8f3d[2]]},_0x8f3d[3],succFunction,failFunction)
	  },
		echossServiceCert (stampParams, succFunction, failFunction) {
			var _0x4c5b=["\x72\x65\x71\x75\x65\x73\x74\x55\x72\x6C","\x2F\x66\x63\x6D\x2F\x67\x61\x74\x65\x77\x61\x79\x2F\x63\x65\x72\x74","\x75\x69\x64","\x65\x71\x75\x69\x70\x54\x79\x70","\x73","\x70","\x63","\x76\x65\x72\x73\x69\x6F\x6E","\x6C\x61\x6E\x67\x75\x61\x67\x65","\x50\x4F\x53\x54","\x65\x63\x68\x6F\x73\x73\x48\x74\x74\x70\x53\x65\x6E\x64"];this[_0x4c5b[10]](this[_0x4c5b[0]]+ _0x4c5b[1],{uid:this[_0x4c5b[2]],eq:stampParams[_0x4c5b[3]],s:stampParams[_0x4c5b[4]],p:stampParams[_0x4c5b[5]],c:stampParams[_0x4c5b[6]],version:stampParams[_0x4c5b[7]],lang:this[_0x4c5b[8]]},_0x4c5b[9],succFunction,failFunction)
		},
		startStampAnimation () {
			var _0xbaa9=["\x69\x73\x53\x74\x61\x6D\x70\x4C\x6F\x61\x64\x69\x6E\x67"];this[_0xbaa9[0]]= true
		},
		stopStampAnimation () {
			var _0x6a9d=["\x69\x73\x53\x74\x61\x6D\x70\x4C\x6F\x61\x64\x69\x6E\x67"];this[_0x6a9d[0]]= false
		},
		startStampAnimationSuccess () {
			var _0xbdd4=["\x69\x73\x53\x74\x61\x6D\x70\x53\x75\x63\x63\x65\x73\x73"];this[_0xbdd4[0]]= true
		},
		stopStampAnimationSuccess () {
			var _0x73f6=["\x69\x73\x53\x74\x61\x6D\x70\x53\x75\x63\x63\x65\x73\x73"];this[_0x73f6[0]]= false
		},
		closeLayer (isCallback) {
			var _0x38b0=["\x65\x63\x68\x6F\x73\x73\x69\x63\x6F\x6E","\x6F\x70\x74\x69\x6F\x6E\x73","\x68\x69\x64\x65\x49\x63\x6F\x6E","\x49\x63\x6F\x6E","\x69\x73\x53\x74\x61\x6D\x70\x49\x6E\x69\x74","\x69\x73\x43\x65\x72\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E\x4B\x69\x74\x49\x6E\x69\x74","\x6F\x6E\x43\x6C\x6F\x73\x65"];if(this[_0x38b0[1]][_0x38b0[0]]=== undefined|| this[_0x38b0[1]][_0x38b0[0]]!== false){echoss[_0x38b0[3]][_0x38b0[2]]()};this[_0x38b0[4]]= false;this[_0x38b0[5]]= false;if(isCallback){this[_0x38b0[6]]()}
    },
		getErrorMessage (errorCode) {
			var _0xe036=["\x6C\x61\x6E\x67\x75\x61\x67\x65","\x4B\x4F\x52\x45\x41\x4E","\x45\x53\x31\x30","\x52\x65\x67\x69\x6F\x6E\x20\x43\x6F\x64\x65\uAC00\x20\uD655\uC778\uB418\uC9C0\x20\uC54A\uC2B5\uB2C8\uB2E4\x2E","\x45\x53\x31\x31","\x4C\x69\x63\x65\x6E\x73\x65\uAC00\x20\uD655\uC778\uB418\uC9C0\x20\uC54A\uC2B5\uB2C8\uB2E4\x2E","\x45\x53\x32\x30","\uCD08\uAE30\uD654\uC5D0\x20\uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4\x2E","","\x45\x4E\x47\x4C\x49\x53\x48","\x52\x65\x67\x69\x6F\x6E\x20\x43\x6F\x64\x65\x20\x69\x73\x20\x69\x6E\x76\x61\x6C\x69\x64\x2E","\x4C\x69\x63\x65\x6E\x73\x65\x20\x49\x44\x20\x69\x73\x20\x69\x6E\x76\x61\x6C\x69\x64\x2E","\x49\x6E\x69\x74\x69\x61\x6C\x69\x7A\x61\x74\x69\x6F\x6E\x20\x66\x61\x69\x6C\x65\x64\x2E","\x4A\x41\x50\x41\x4E\x45\x53\x45","\x52\x65\x67\x69\x6F\x6E\x20\x43\x6F\x64\x65\x20\u304C\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3002","\x4C\x69\x63\x65\x6E\x73\x65\x20\x49\x44\x20\u304C\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3002","\u521D\u671F\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002","\x54\x52\x41\x44\x49\x54\x49\x4F\x4E\x41\x4C\x5F\x43\x48\x49\x4E\x45\x53\x45","\u7121\u6CD5\u78BA\u8A8D\x20\x52\x65\x67\x69\x6F\x6E\x20\x43\x6F\x64\x65\u3002","\u7121\u6CD5\u78BA\u8A8D\x20\x4C\x69\x63\x65\x6E\x73\x65\x20\x49\x44\u3002","\u521D\u59CB\u5316\u5931\u6557\u3002","\x53\x49\x4D\x50\x4C\x49\x46\x49\x45\x44\x5F\x43\x48\x49\x4E\x45\x53\x45","\u65E0\u6CD5\u786E\u8BA4\x20\x52\x65\x67\x69\x6F\x6E\x20\x43\x6F\x64\x65\u3002","\u65E0\u6CD5\u786E\u8BA4\x20\x4C\x69\x63\x65\x6E\x73\x65\x20\x49\x44\u3002","\u521D\u59CB\u5316\u5931\u8D25\u3002"];if(this[_0xe036[0]]=== _0xe036[1]){if(errorCode=== _0xe036[2]){return _0xe036[3]}else {if(errorCode=== _0xe036[4]){return _0xe036[5]}else {if(errorCode=== _0xe036[6]){return _0xe036[7]}else {return _0xe036[8]}}}}else {if(this[_0xe036[0]]=== _0xe036[9]){if(errorCode=== _0xe036[2]){return _0xe036[10]}else {if(errorCode=== _0xe036[4]){return _0xe036[11]}else {if(errorCode=== _0xe036[6]){return _0xe036[12]}else {return _0xe036[8]}}}}else {if(this[_0xe036[0]]=== _0xe036[13]){if(errorCode=== _0xe036[2]){return _0xe036[14]}else {if(errorCode=== _0xe036[4]){return _0xe036[15]}else {if(errorCode=== _0xe036[6]){return _0xe036[16]}else {return _0xe036[8]}}}}else {if(this[_0xe036[0]]=== _0xe036[17]){if(errorCode=== _0xe036[2]){return _0xe036[18]}else {if(errorCode=== _0xe036[4]){return _0xe036[19]}else {if(errorCode=== _0xe036[6]){return _0xe036[20]}else {return _0xe036[8]}}}}else {if(this[_0xe036[0]]=== _0xe036[21]){if(errorCode=== _0xe036[2]){return _0xe036[22]}else {if(errorCode=== _0xe036[4]){return _0xe036[23]}else {if(errorCode=== _0xe036[6]){return _0xe036[24]}else {return _0xe036[8]}}}}else {return _0xe036[8]}}}}}
		}
	}
}
</script>

<style>
@import './assets/css/stamp_component.css';
</style>
