(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["account~checkout"],{"32a4":function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("modal",{attrs:{name:"alipayModal",width:280,height:"auto",scrollable:"","click-to-close":!1}},[i("div",{staticClass:"title"},[i("button",{staticClass:"modal-close-button",on:{click:t.close}},[i("i",{staticClass:"iconfont iconclose"})])]),i("iframe",{staticStyle:{"margin-left":"40px"},attrs:{allowTransparency:"true",scrolling:"no",width:"240",height:"240",src:t.url,frameborder:"0"}}),i("div",{staticClass:"tips",domProps:{innerHTML:t._s(t.$t("Please use Alipay Scan only"))}}),i("button",{staticClass:"button-paid",attrs:{type:"button"},on:{click:function(e){return t.handlePaid()}}},[t._v(t._s(t.$t("Paid")))])])},n=[],r={props:{url:String,visible:{type:Boolean,default:!1}},methods:{showModal:function(){this.$modal.show("alipayModal")},hideModal:function(){this.$modal.hide("alipayModal")},handlePaid:function(){this.$emit("paid")},close:function(){this.$emit("close")}},mounted:function(){this.visible&&this.showModal()},watch:{visible:function(t,e){t&&!e&&this.showModal(),!t&&e&&this.hideModal()}}},a=r,o=(i("b2f0"),i("2877")),c=Object(o["a"])(a,s,n,!1,null,"379e696b",null);e["a"]=c.exports},"48bc":function(t,e,i){},"5d41":function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"qrcode-container",style:{height:t.size,width:t.size}},[i("canvas",{ref:"qrcode"}),t.centerImg?i("img",{staticClass:"qrcode-centerimg",attrs:{src:t.centerImg,height:t.centerImgHeight}}):t._e()])},n=[],r=(i("a9e3"),i("c4a7")),a=i.n(r),o={props:{size:{type:Number,default:150},padding:{type:Number,default:10},value:{type:String,required:!0},bgColor:{type:String,default:"#fff"},fgColor:{type:String,default:"#000"},imgSrc:{type:String,default:"https://flanb-data.travelflan.com.cn/marketplace/icons/icon_QR_mk.jpg"}},data:function(){var t=+this.size;return{height:t+"px",width:t+"px",centerImg:this.imgSrc,centerImgHeight:.2*t}},computed:{qrcode:function(){return this.generate()}},mounted:function(){this.generate()},methods:{generate:function(){var t={background:this.bgColor,foreground:this.fgColor,level:"H",padding:this.padding,size:+this.size};new a.a(Object.assign({element:this.$refs.qrcode,value:String(this.value)},t))}}},c=o,h=(i("77f2"),i("2877")),l=Object(h["a"])(c,s,n,!1,null,null,null);e["a"]=l.exports},"77f2":function(t,e,i){"use strict";i("48bc")},8978:function(t,e,i){},b2f0:function(t,e,i){"use strict";i("ea3f")},c4a7:function(t,e,i){(function(e,i){t.exports=i()})(0,(function(){"use strict";var t=function(){},e=Object.prototype.hasOwnProperty,i=Array.prototype.slice;function s(e,i){var s;return"function"===typeof Object.create?s=Object.create(e):(t.prototype=e,s=new t,t.prototype=null),i&&r(!0,s,i),s}function n(t,e,i,n){var a=this;return"string"!==typeof t&&(n=i,i=e,e=t,t=null),"function"!==typeof e&&(n=i,i=e,e=function(){return a.apply(this,arguments)}),r(!1,e,a,n),e.prototype=s(a.prototype,i),e.prototype.constructor=e,e.class_=t||a.class_,e.super_=a,e}function r(t,s,n){var r,a;n=i.call(arguments,2);for(var o=0,c=n.length;o>1&1,s=0;s0;e--)s[e]=s[e]?s[e-1]^k.EXPONENT[M._modN(k.LOG[s[e]]+t)]:s[e-1];s[0]=k.EXPONENT[M._modN(k.LOG[s[0]]+t)]}for(t=0;t<=i;t++)s[t]=k.LOG[s[t]]},_checkBadness:function(){var t,e,i,s,n,r=0,a=this._badness,o=this.buffer,c=this.width;for(n=0;nc*c)f-=c*c,l++;for(r+=l*M.N4,s=0;s=a-2&&(t=a-2,n>9&&t--);var o=t;if(n>9){r[o+2]=0,r[o+3]=0;while(o--)e=r[o],r[o+3]|=255&e<<4,r[o+2]=e>>4;r[2]|=255&t<<4,r[1]=t>>4,r[0]=64|t>>12}else{r[o+1]=0,r[o+2]=0;while(o--)e=r[o],r[o+2]|=255&e<<4,r[o+1]=e>>4;r[1]|=255&t<<4,r[0]=64|t>>4}o=t+3-(n<10);while(o=5&&(i+=M.N1+s[e]-5);for(e=3;et||3*s[e-3]>=4*s[e]||3*s[e+3]>=4*s[e])&&(i+=M.N3);return i},_finish:function(){var t,e;this._stringBuffer=this.buffer.slice();var i=0,s=3e4;for(e=0;e<8;e++){if(this._applyMask(e),t=this._checkBadness(),t>=1)1&s&&(n[r-1-e+8*r]=1,e<6?n[8+r*e]=1:n[8+r*(e+1)]=1);for(e=0;e<7;e++,s>>=1)1&s&&(n[8+r*(r-7+e)]=1,e?n[6-e+8*r]=1:n[7+8*r]=1)},_interleaveBlocks:function(){var t,e,i=this._dataBlock,s=this._ecc,n=this._eccBlock,r=0,a=this._calculateMaxLength(),o=this._neccBlock1,c=this._neccBlock2,h=this._stringBuffer;for(t=0;t1)for(t=v.BLOCK[s],i=n-7;;){e=n-7;while(e>t-3){if(this._addAlignment(e,i),e6)for(t=b.BLOCK[r-7],e=17,i=0;i<6;i++)for(s=0;s<3;s++,e--)1&(e>11?r>>e-12:t>>e)?(n[5-i+a*(2-s+a-11)]=1,n[2-s+a-11+a*(5-i)]=1):(this._setMask(5-i,2-s+a-11),this._setMask(2-s+a-11,5-i))},_isMasked:function(t,e){var i=M._getMaskBit(t,e);return 1===this._mask[i]},_pack:function(){var t,e,i,s=1,n=1,r=this.width,a=r-1,o=r-1,c=(this._dataBlock+this._eccBlock)*(this._neccBlock1+this._neccBlock2)+this._neccBlock2;for(e=0;ee&&(i=t,t=e,e=i),i=e,i+=e*e,i>>=1,i+=t,i},_modN:function(t){while(t>=255)t-=255,t=(t>>8)+(255&t);return t},N1:3,N2:3,N3:40,N4:10}),y=M,B=f.extend({draw:function(){this.element.src=this.qrious.toDataURL()},reset:function(){this.element.src=""},resize:function(){var t=this.element;t.width=t.height=this.qrious.size}}),C=B,O=h.extend((function(t,e,i,s){this.name=t,this.modifiable=Boolean(e),this.defaultValue=i,this._valueTransformer=s}),{transform:function(t){var e=this._valueTransformer;return"function"===typeof e?e(t,this):t}}),x=O,A=h.extend(null,{abs:function(t){return null!=t?Math.abs(t):null},hasOwn:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},noop:function(){},toUpperCase:function(t){return null!=t?t.toUpperCase():null}}),L=A,N=h.extend((function(t){this.options={},t.forEach((function(t){this.options[t.name]=t}),this)}),{exists:function(t){return null!=this.options[t]},get:function(t,e){return N._get(this.options[t],e)},getAll:function(t){var e,i=this.options,s={};for(e in i)L.hasOwn(i,e)&&(s[e]=N._get(i[e],t));return s},init:function(t,e,i){var s,n;for(s in"function"!==typeof i&&(i=L.noop),this.options)L.hasOwn(this.options,s)&&(n=this.options[s],N._set(n,n.defaultValue,e),N._createAccessor(n,e,i));this._setAll(t,e,!0)},set:function(t,e,i){return this._set(t,e,i)},setAll:function(t,e){return this._setAll(t,e)},_set:function(t,e,i,s){var n=this.options[t];if(!n)throw new Error("Invalid option: "+t);if(!n.modifiable&&!s)throw new Error("Option cannot be modified: "+t);return N._set(n,e,i)},_setAll:function(t,e,i){if(!t)return!1;var s,n=!1;for(s in t)L.hasOwn(t,s)&&this._set(s,t[s],e,i)&&(n=!0);return n}},{_createAccessor:function(t,e,i){var s={get:function(){return N._get(t,e)}};t.modifiable&&(s.set=function(s){N._set(t,s,e)&&i(s,t)}),Object.defineProperty(e,t.name,s)},_get:function(t,e){return e["_"+t.name]},_set:function(t,e,i){var s="_"+t.name,n=i[s],r=t.transform(null!=e?e:t.defaultValue);return i[s]=r,r!==n}}),S=N,E=h.extend((function(){this._services={}}),{getService:function(t){var e=this._services[t];if(!e)throw new Error("Service is not being managed with name: "+t);return e},setService:function(t,e){if(this._services[t])throw new Error("Service is already managed with name: "+t);e&&(this._services[t]=e)}}),P=E,z=new S([new x("background",!0,"white"),new x("backgroundAlpha",!0,1,L.abs),new x("element"),new x("foreground",!0,"black"),new x("foregroundAlpha",!0,1,L.abs),new x("level",!0,"L",L.toUpperCase),new x("mime",!0,"image/png"),new x("padding",!0,null,L.abs),new x("size",!0,100,L.abs),new x("value",!0,"")]),R=new P,T=h.extend((function(t){z.init(t,this,this.update.bind(this));var e=z.get("element",this),i=R.getService("element"),s=e&&i.isCanvas(e)?e:i.createCanvas(),n=e&&i.isImage(e)?e:i.createImage();this._canvasRenderer=new d(this,s,!0),this._imageRenderer=new C(this,n,n===e),this.update()}),{get:function(){return z.getAll(this)},set:function(t){z.setAll(t,this)&&this.update()},toDataURL:function(t){return this.canvas.toDataURL(t||this.mime)},update:function(){var t=new y({level:this.level,value:this.value});this._canvasRenderer.render(t),this._imageRenderer.render(t)}},{use:function(t){R.setService(t.getName(),t)}});Object.defineProperties(T.prototype,{canvas:{get:function(){return this._canvasRenderer.getElement()}},image:{get:function(){return this._imageRenderer.getElement()}}});var q=T,$=q,I=h.extend({getName:function(){}}),j=I,K=j.extend({createCanvas:function(){},createImage:function(){},getName:function(){return"element"},isCanvas:function(t){},isImage:function(t){}}),D=K,H=D.extend({createCanvas:function(){return document.createElement("canvas")},createImage:function(){return document.createElement("img")},isCanvas:function(t){return t instanceof HTMLCanvasElement},isImage:function(t){return t instanceof HTMLImageElement}}),G=H;$.use(new G);var V=$;return V}))},ce86:function(t,e,i){"use strict";i("8978")},ea3f:function(t,e,i){},ff0e:function(t,e,i){"use strict";var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("modal",{attrs:{name:"wechatpayModal",width:280,height:"auto",scrollable:"","click-to-close":!1}},[i("div",{staticClass:"title"},[i("button",{staticClass:"modal-close-button",on:{click:t.close}},[i("i",{staticClass:"iconfont iconclose"})])]),i("QRCode",{staticClass:"qrcode",attrs:{size:244,value:t.qrcode}}),i("div",{staticClass:"tips",domProps:{innerHTML:t._s(t.$t("Please use Wechat Scan
to scan the QR code for payment"))}}),i("button",{staticClass:"button-paid",attrs:{type:"button"},on:{click:function(e){return t.handlePaid()}}},[t._v(t._s(t.$t("Paid")))])],1)},n=[],r=i("5d41"),a={props:{qrcode:String,visible:{type:Boolean,default:!1}},components:{QRCode:r["a"]},methods:{showModal:function(){this.$modal.show("wechatpayModal")},hideModal:function(){this.$modal.hide("wechatpayModal")},handlePaid:function(){this.$emit("paid")},close:function(){this.$emit("close")}},mounted:function(){this.visible&&this.showModal()},watch:{visible:function(t,e){t&&!e&&this.showModal(),!t&&e&&this.hideModal()}}},o=a,c=(i("ce86"),i("2877")),h=Object(c["a"])(o,s,n,!1,null,"3c166938",null);e["a"]=h.exports}}]);