zhgdyun/public/doc/h5/static/js/0.b0bad9cb0c0b3df0da7d.js

2 lines
83 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

webpackJsonp([0],{"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(t,e,n){var r=n("lOnJ");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"+tPU":function(t,e,n){n("xGkn");for(var r=n("7KvD"),o=n("hJx8"),i=n("/bQp"),a=n("dSzd")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],h=r[u],p=h&&h.prototype;p&&!p[a]&&o(p,a,u),i[u]=i.Array}},"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"/bQp":function(t,e){t.exports={}},"1kS7":function(t,e){e.f=Object.getOwnPropertySymbols},"2KxR":function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},"2SFc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAAAcCAYAAAHJvxesAAAAAXNSR0IArs4c6QAACX9JREFUaAXtWwtwlNUVPvsnJOS9m0QQhsHBB4V2OiV2aEULCGUsQUgJEK3aohGmUMBGsFYQdQrM0GqFACEiZUhDxxchDZVAoA8gBdu0ZYqAFgFhRAlMisk+k002m+Tv+e7m7v67m31kWeLW2TOTve/zvP+959x7Q9QL0zc2H5H5cNMj5xwvyr4KMtM3NKuk0hSVQTaEStH3lQO2tWIsd1ae22OtCDUoUPvYYYmiiXEukRkQCJsbiVgM0o7L39B8Xjb2Jz181lGD/orASDRayhkuEvRvuOgoxHjllYOt4Y7z6/fex50kxudvNE0W3PCPX68gFXLMc1VqlujGFRZULqwwqS/X2UR7YWnz2CA4Im5i5IkgADqgB5i71dgJhLrSP7Ue/k+jc2qjqduLwMEVOaRj8KqMQgHE8ze2UN7IQXT6ipN6WI8jDAm0o1hfIYjJDlpaN5uZoLSYoVH8d4n/xJeq7Rzt/Owt5jtWVVtaHtlmXOSFG1o5dt6hFpa1qF3dqvrRNWe/JqAXshAFngqCBmiBJgBDxCSC7QDTvppMMze10IsFGXTN1L1ruCHhcdEQpZ+6Mx01nzZ30cIKGy26P5XW77cJzFeZOS8zLJ6SKhrW7bPRML0yP0r03WhY0ELgBmyvt1PBuMEiP1yvkBcjovYm/nzS7PlCX2Kt7zvV4aamPPOOleaNTxEV88pNIsVXw+BSj6iJzs+zu01Te3HT2l7NSNqCgpgxmp+icuP16JD2x7LtSNtFDSn1wOkO/w/j2AXHr5ss/Nn0Aat/b0Vt1Bc6f1ajXzOrzIylqU/48KpTvdziXKulKoSctanlvX0l2fdBTTN6v2ZtJ+RhzgUTU8nJUy4pMfq7gC+9aJVrT3WoM7+RTDuP26n6RHufaOuws3HL6mrbnvVFmQ/pXqhpnb6uMO3g8Qud7mUGI6uWGChR0dGcrUYvRJj7+Pi+n5cS87MG6/fE0Ukkl20IUluSTbM2G+m2nAQayX+QG/D8zAxC3xmlxrVK3sgE4UqyfyAa5c9Dr5l4z/b/xNCe/3XX0ij9NKTaPPrEQh2E9AUohG1NWx7LcisEfdzyq+py3SOb/jv0rZIhTd09JDY/LZLqpQaSKy/qh+sTaOeTelq8y0Lbn9DH/ExptnWrOekKLagw0zWza6upXKinl/a69r7Wjh4ytrkMv//pHErgzW9GmfluIVhVlZowZy51ofLvFztJbphSQVIZKBfvNDVVLsweJttiPeXV9V/M43jwqVWO5Bse0L13JglPdna55fbap/SfyDZ3+th20/umth7V0t6jOpyuBXtRpRkZ16bt7vn/lckvbZkHIU5+2olENdt7VPiPJW9aGkJKAm8XgTA8XgR7fl5vSAyx24F1MQqBL6eXcEDAaXBvsb97eeyK7s9ZRP4XaywRUwmAkAfhK0IShLAyLEGbDGX9ycZuDbMtwn/wD1kgE2SDjJAVgBBPeyQgFtpIHJzYVYOHs0idUgVxIjw+7Dpajw/aGmHwfHLS0106La3IQza2c/DSwaHkHflJ7LsgHpYAmSH7oAQScTjqlfRkXSEy2m248O7B9OiEFPrKsEFocgO8P8Sy7CGucVfGaAaeOliTHivyBXmD6UyjU8TmMipFvZT9xOVOcSag3HOHv9e392QHvdngHyf87m924KC65dkjRCaGf3LS6VmwJ3lGPjVJR2a7y1kztrK36gPyEEPBtAkXWtpciHg6FsWCG68NLbR5yJObpkxFKnlG/p1/ugxd/J1U2nrYO6xBO4JdgO58U5c6emiCV9DkaiL6Lp97sa8iizRlbDL9PD8d5aV8XPqauyEGM7ge+NW8jGIcZR/9yCPD7p8Y2Cs3k73TO66TnxPOgZWcNLEBibgmlGzPfE8oBPFBaC8wFLKb3P7Z1fZVICF5Rv75mem0co+VcjMUESGjDoAwBoCYDqAr2Pz5lHd/mnsEBW2IjbIW5HkK6qBNbVus5le8bVE3/CAz6FkKeJezhLOpLFq7sq/klqNcOCEbpdZQloCgCQdMOP4v2Gq5XdbHenpPQmYion/wDhl8AbJKhSDQhUK8+vieV7p8Pc8vzi/dt0ReI2O7oL0Z80jjnQt6DnxDkWRs64aiFv3vfV/Vz9rccnbZG+LoQHVyrPA5H9wgBbRzFP7vy50idkB5fa3tKBQb4/r5UrM3YDYrKrfcyXFUc/05150dJkAk8GGj8/SDG40Tv9RWiRHhBsJmbm8DR0wPjBn0l2XTUr02XMSPO4/Z3ce+gXSDzW3BpFRx2in7XLf10JAMBZv9t3mz83YgZad4GrEGBtJmYqLwipFisqt2Q6p73oR0AYNJp3V90W8F31RfaHLOPbA8V7zuCTY23haeBgbaZrr8Laa8kVm6k6/Pdz1ngkv840rPxZEv21l8U/r0A+mEM5hXD7V6RdDavlhhfvOEXlwuyfo1lZTyi2Kd57GDbIin/dJAuDbDLeia2Rl0W67ravgWDoLHj0qiU585ac27rstALeFgNlPqntJPkJMEgzb8sTXgNnP/mCRKTtQJIm0O11mTlpA2jxtK4JIA5s60GffKcjyNXAPh2mz93Ew+zCCav8NMO/5q57cTrVRYZqQhmQo9yfGxLwSzmcJRystdGpv/45LrUYIvEpTrz3US/I5wQYtrHL87LHvUMCbcsfF+gTUQrs1WVlvphRrvlePhb6XQUJ4ofzjpfT4iqQWymXJweU5Voudeh3LSNAU5OsJUi6vVodLqGqs5QlTxYRoN9NdmufwO5dWHM+m3C/Ri28G7Gvn2RINWZAPZTOFnTI1vaO525t/nvyT5Igu3rMV13dpDSyan/DDcsfF+gTUQrs2wxdQsy6bCbw6mn+22itsLvrUJjJhbAtlMRj07HPzaONn1TxB9PmLyxY4XX9uO2gM6s/JhEMbhbmldre34usLMSb544uXINMBRT0ibvb3YQPrUvneIQx900OY/t3kRD2Yzdzw8p6y5/vXHDZPhGQNw6FER5MWp6NTHD0JjOEoS8f7TDjr0gaO2/EdZBX10j1fdgAYG0mbSnoLdpbusORZH97WVD6YnfW147/LCLQiZcfDWwI7ux7x0yZtq7Gd33ZpIEzhUxrNCPKmUwCsUR0hkLW2gW1fc63OzJDvF0xvWwBdqM17WdPy3im8K1TNXet+KckUowN0PgGP0t3BqeMNaiCMIWwOs9i/eZswE/weoJR/PTX95wFbPZTw9tXFMfpbzS65Y1LtmlJrGhS1VvONN10C0bfY/KsPf8kra5w8AAAAASUVORK5CYII="},"3Eo+":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"3fs2":function(t,e,n){var r=n("RY/4"),o=n("dSzd")("iterator"),i=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},"4mcu":function(t,e){t.exports=function(){}},"52gC":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"77Pl":function(t,e,n){var r=n("EqjI");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"7KvD":function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"82Mu":function(t,e,n){var r=n("7KvD"),o=n("L42u").set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n("R9M2")(a);t.exports=function(){var t,e,n,u=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var h=s.resolve(void 0);n=function(){h.then(u)}}else n=function(){o.call(r,u)};else{var p=!0,l=document.createTextNode("");new i(u).observe(l,{characterData:!0}),n=function(){l.data=p=!p}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},"880/":function(t,e,n){t.exports=n("hJx8")},"94VQ":function(t,e,n){"use strict";var r=n("Yobk"),o=n("X8DO"),i=n("e6n0"),a={};n("hJx8")(a,n("dSzd")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},CXw9:function(t,e,n){"use strict";var r,o,i,a,s=n("O4g8"),c=n("7KvD"),u=n("+ZMJ"),h=n("RY/4"),p=n("kM2E"),l=n("EqjI"),f=n("lOnJ"),d=n("2KxR"),v=n("NWt+"),g=n("t8x9"),m=n("L42u").set,w=n("82Mu")(),x=n("qARP"),y=n("dNDb"),b=n("iUbK"),C=n("fJUb"),L=c.TypeError,O=c.process,S=O&&O.versions,k=S&&S.v8||"",A=c.Promise,I="process"==h(O),M=function(){},E=o=x.f,T=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(M,M)};return(I||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e&&0!==k.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),P=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},_=function(t,e){if(!t._n){t._n=!0;var n=t._c;w(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,s=o?e.ok:e.fail,c=e.resolve,u=e.reject,h=e.domain;try{s?(o||(2==t._h&&D(t),t._h=1),!0===s?n=r:(h&&h.enter(),n=s(r),h&&(h.exit(),a=!0)),n===e.promise?u(L("Promise-chain cycle")):(i=P(n))?i.call(n,c,u):c(n)):u(r)}catch(t){h&&!a&&h.exit(),u(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&j(t)})}},j=function(t){m.call(c,function(){var e,n,r,o=t._v,i=X(t);if(i&&(e=y(function(){I?O.emit("unhandledRejection",o,t):(n=c.onunhandledrejection)?n({promise:t,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=I||X(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},X=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){m.call(c,function(){var e;I?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},H=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),_(e,!0))},Y=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw L("Promise can't be resolved itself");(e=P(t))?w(function(){var r={_w:n,_d:!1};try{e.call(t,u(Y,r,1),u(H,r,1))}catch(t){H.call(r,t)}}):(n._v=t,n._s=1,_(n,!1))}catch(t){H.call({_w:n,_d:!1},t)}}};T||(A=function(t){d(this,A,"Promise","_h"),f(t),r.call(this);try{t(u(Y,this,1),u(H,this,1))}catch(t){H.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(A.prototype,{then:function(t,e){var n=E(g(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=I?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&_(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=u(Y,t,1),this.reject=u(H,t,1)},x.f=E=function(t){return t===A||t===a?new i(t):o(t)}),p(p.G+p.W+p.F*!T,{Promise:A}),n("e6n0")(A,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,p(p.S+p.F*!T,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),p(p.S+p.F*(s||!T),"Promise",{resolve:function(t){return C(s&&this===a?A:this,t)}}),p(p.S+p.F*!(T&&n("dY0y")(function(t){A.all(t).catch(M)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,o=n.reject,i=y(function(){var n=[],i=0,a=1;v(t,!1,function(t){var s=i++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,o=y(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},D2L2:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},EGZi:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},EqBC:function(t,e,n){"use strict";var r=n("kM2E"),o=n("FeBl"),i=n("7KvD"),a=n("t8x9"),s=n("fJUb");r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},EqjI:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},FeBl:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},Ibhu:function(t,e,n){var r=n("D2L2"),o=n("TcQ7"),i=n("vFc/")(!1),a=n("ax3d")("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},L42u:function(t,e,n){var r,o,i,a=n("+ZMJ"),s=n("knuC"),c=n("RPLV"),u=n("ON07"),h=n("7KvD"),p=h.process,l=h.setImmediate,f=h.clearImmediate,d=h.MessageChannel,v=h.Dispatch,g=0,m={},w=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},x=function(t){w.call(t.data)};l&&f||(l=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++g]=function(){s("function"==typeof t?t:Function(t),e)},r(g),g},f=function(t){delete m[t]},"process"==n("R9M2")(p)?r=function(t){p.nextTick(a(w,t,1))}:v&&v.now?r=function(t){v.now(a(w,t,1))}:d?(i=(o=new d).port2,o.port1.onmessage=x,r=a(i.postMessage,i,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(r=function(t){h.postMessage(t+"","*")},h.addEventListener("message",x,!1)):r="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),w.call(t)}}:function(t){setTimeout(a(w,t,1),0)}),t.exports={set:l,clear:f}},M6a0:function(t,e){},MU5D:function(t,e,n){var r=n("R9M2");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},Mhyx:function(t,e,n){var r=n("/bQp"),o=n("dSzd")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},MmMw:function(t,e,n){var r=n("EqjI");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"NWt+":function(t,e,n){var r=n("+ZMJ"),o=n("msXi"),i=n("Mhyx"),a=n("77Pl"),s=n("QRG4"),c=n("3fs2"),u={},h={};(e=t.exports=function(t,e,n,p,l){var f,d,v,g,m=l?function(){return t}:c(t),w=r(n,p,e?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(f=s(t.length);f>x;x++)if((g=e?w(a(d=t[x])[0],d[1]):w(t[x]))===u||g===h)return g}else for(v=m.call(t);!(d=v.next()).done;)if((g=o(v,w,d.value,e))===u||g===h)return g}).BREAK=u,e.RETURN=h},NpIQ:function(t,e){e.f={}.propertyIsEnumerable},O4g8:function(t,e){t.exports=!0},ON07:function(t,e,n){var r=n("EqjI"),o=n("7KvD").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},PzxK:function(t,e,n){var r=n("D2L2"),o=n("sB3e"),i=n("ax3d")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},QRG4:function(t,e,n){var r=n("UuGF"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},R4wc:function(t,e,n){var r=n("kM2E");r(r.S+r.F,"Object",{assign:n("To3L")})},R9M2:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},RPLV:function(t,e,n){var r=n("7KvD").document;t.exports=r&&r.documentElement},"RY/4":function(t,e,n){var r=n("R9M2"),o=n("dSzd")("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},S82l:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},SHNa:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("mvHQ"),o=n.n(r),i=n("Xxa5"),a=n.n(i),s=n("//Fk"),c=n.n(s),u=n("exGp"),h=n.n(u),p=n("woOf"),l=n.n(p),f=n("YDP2"),d=n.n(f),v=n("YZ0n"),g={components:{VueCropper:v.VueCropper},data:function(){return{httpUrl:"",userData:{},token:"",form:{fieldAcquisitionUrl:"",personType:1,phoneNumber:"",departmentId:"",teamId:"",enterDate:"",enterpriseId:"",idCardBigPhotoUrl:"",jobType:"",jobName:""},fileList:[],fileList2:[],showPicker:!1,columns:[],columns2:[],pickerList2:[],pickerList:[],checkedIndex:"",checkedIndex2:"",showCalendar:!1,currentDate:new Date,minDate:"",companyList:[],showPicker2:!1,showLoading:!1,repetitionRender:!0,showJob:!1,showJobType:!1,jobList:[],jobList2:[],jobTypeList:[],jobTypeList2:[],checkedJobIndex:"",checkedJobTypeIndex:"",previewImage:!1,previewImages:[d.a],needAudit:0,imgClipDialog:!1,cropperOption:{outputType:"png",img:"",fixedBox:!0,centerBox:!0,autoCrop:!0,autoCropWidth:100,autoCropHeight:100}}},created:function(){this.httpUrl=rootURL;var t=JSON.parse(localStorage.getItem("infoData"));l()(this.form,t),this.userData=JSON.parse(localStorage.getItem("userData"));var e=new Date(1950,1,1);this.minDate=e,this.getToken(),this.showLoading=!0,this.form.enterDate=this.GetDateStr(0,"-"),this.getProjectSetting()},methods:{getClipImgFn:function(t){var e=this;this.$refs.cropper.startCrop(),this.$refs.cropper.getCropBlob(function(t){console.log(t),e.afterRead({file:t},1,"clip")})},getProjectSetting:function(){var t=this,e=this.httpUrl+"xmgl/projectConfig/getProjectConfigList",n={projectSn:this.userData.projectSn};this.$axios.post(e,n,{headers:{Authorization:this.token}}).then(function(e){if(t.showLoading=!1,200==e.data.code){var n=e.data.result;if(n&&0!=n.length){var r=n[0].workerAuditType;t.needAudit=r}else t.needAudit=0}else t.$toast(e.data.message)})},GetDateStr:function(t,e,n){var r=n?stringToDate(n,e):new Date;return r.setDate(r.getDate()+t),r.getFullYear()+e+(r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1)+e+(r.getDate()<10?"0"+r.getDate():r.getDate())},goback:function(){this.$router.back()},beforeRead:function(t){var e=this;return h()(a.a.mark(function n(){return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new c.a(function(n,r){e.imgClipDialog=!0,e.cropperOption.img=t.file,r()}));case 1:case"end":return n.stop()}},n,e)}))()},afterRead:function(t,e,n){var r=this;console.log(t),t.status="uploading",t.message="上传中...";var o=new FormData;o.append("files",t.file,"image.png");var i=this.httpUrl+"upload/image";this.$axios.post(i,o).then(function(o){"SUCCESS"==o.data.status?(t.status="success",1==e?r.$axios.post(r.httpUrl+"xmgl/recognition/checkFace",{fileUrl:o.data.data[0].imageUrl},{headers:{Authorization:r.token}}).then(function(t){if(200==t.data.code||0==t.data.code)if(1==t.data.result.checkType){var e=o.data.data[0].imageUrl;r.form.fieldAcquisitionUrl=e,r.imgClipDialog="clip"!=n,r.cropperOption.img=r.httpUrl+"image/"+r.form.fieldAcquisitionUrl,r.fileList=[{url:r.cropperOption.img,isImage:!0}]}else r.fileList=[],r.$toast(t.data.result.message),r.form.fieldAcquisitionUrl="";else r.$toast(t.data.message)}):r.form.idCardBigPhotoUrl=o.data.data[0].imageUrl):(t.status="failed",t.message="上传失败")})},getToken:function(){var t=this,e=this.httpUrl+"base/getToken",n={userId:this.userData.userId};this.$axios.post(e,n).then(function(e){t.showLoading=!1,200==e.data.code?(t.token="Bearer "+e.data.result.token,t.getCompanyList(),t.getSelectList(1)):t.$toast(e.message)})},getCompanyList:function(){var t=this,e=this.httpUrl+"xmgl/enterpriseInfo/list",n={projectSn:this.userData.projectSn};this.$axios.post(e,n,{headers:{Authorization:this.token}}).then(function(e){(t.showLoading=!1,200==e.data.code)?e.data.result.forEach(function(e){t.columns2.push(e.enterpriseName),t.pickerList2.push(e)}):t.$toast(e.data.message)})},getDutuiesList:function(){var t=this,e=this.httpUrl+"xmgl/dictionariesRecord/selectJobList?lang=zh_CN";this.$axios.get(e,{headers:{Authorization:t.token}}).then(function(e){if(console.log(e),200==e.data.code){var n=JSON.parse(o()(e.data.result.jobTypeList)),r=JSON.parse(o()(e.data.result.jobNameList));n.forEach(function(e){e.options.forEach(function(e){t.jobTypeList.push(e.remarks+"-"+e.dictionaryName),t.jobTypeList2.push(e)})}),t.jobList2=r,r.forEach(function(e){t.jobList.push(e.dictionaryName)})}})},getSelectList:function(t){var e=this,n="",r={projectSn:this.userData.projectSn,enterpriseId:""!==this.checkedIndex2?this.pickerList2[this.checkedIndex2].id:""};n=1==t?this.httpUrl+"xmgl/teamInfo/getProjectTeamList":this.httpUrl+"xmgl/departmentInfo/getDepartmentInfoList",this.$axios.post(n,r,{headers:{Authorization:this.token}}).then(function(n){(e.showLoading=!1,200==n.data.code)?(e.repetitionRender=!1,e.columns=[],e.pickerList=[],1==t?n.data.result.forEach(function(t){e.columns.push(t.teamName),e.pickerList.push(t)}):n.data.result.list.forEach(function(t){e.columns.push(t.departmentName),e.pickerList.push(t)})):e.$toast(n.data.message)})},changePersonType:function(t){this.form.personType=t,this.pickerList=[],1==this.form.personType?(this.form.departmentId="",this.form.jobType="",this.form.jobName=""):this.form.teamId="",this.showLoading=!0,1==t?this.getSelectList(1):(this.getSelectList(2),this.getDutuiesList())},onConfirm:function(t,e){this.checkedIndex=e,1==this.form.personType?this.form.teamId=t:this.form.departmentId=t,this.showPicker=!1},onConfirm2:function(t,e){this.form.enterpriseId=t,this.checkedIndex2=e,this.showPicker2=!1,1==this.form.personType?(this.showLoading=!0,this.getSelectList(1)):this.getSelectList(2),this.form.teamId="",this.form.departmentId=""},onConfirmJob:function(t,e){this.showJob=!1,this.form.jobName=t,this.checkedJobIndex=e},onConfirmJobType:function(t,e){this.showJobType=!1,this.form.jobType=t,this.checkedJobTypeIndex=e},onDateConfirm:function(t){var e=t.getFullYear(),n=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate();this.form.enterDate=e+"-"+n+"-"+r,this.currentDate=e+"-"+n+"-"+r,this.showCalendar=!1},onCancel:function(t){this.showCalendar=!1},onSubmit:function(t){var e=this,n=JSON.parse(o()(this.form));if(""!=n.fieldAcquisitionUrl)if(""==n.idCardBigPhotoUrl&&(n.idCardBigPhotoUrl=n.fieldAcquisitionUrl),this.checkPhone(n.phoneNumber)){n.longTerm.length>0?n.longTerm=1:n.longTerm=0,n.jobType=2==this.form.personType?this.jobTypeList2[this.checkedJobTypeIndex].id:"",n.jobName=2==this.form.personType?this.jobList2[this.checkedJobIndex].id:"",3!=t.personType&&(n.enterpriseId=this.pickerList2[this.checkedIndex2].id),1==t.personType?(n.teamId=this.pickerList[this.checkedIndex].id,delete n.departmentId,delete n.jobType,delete n.jobName):3!=t.personType?(n.departmentId=this.pickerList[this.checkedIndex].id,delete n.teamId):(delete n.teamId,delete n.departmentId);var r="";r=1==this.needAudit?this.httpUrl+"xmgl/workerInfoAuditRecord/add?lang=zh_CN":this.httpUrl+"xmgl/workerInfo/add?lang=zh_CN",n.projectSn=this.userData.projectSn,n.registerType=2,this.$axios.post(r,n,{headers:{Authorization:this.token}}).then(function(t){200==t.data.code?(e.$dialog.alert({message:"保存成功,请关闭页面",showConfirmButton:!1,showCancelButton:!1}),localStorage.clear()):e.$toast(t.data.message)})}else this.$toast("请输入正确的手机号");else this.$toast("请上传现场采集照片")},checkPhone:function(t){return!!/^1(3|4|5|6|7|8|9)\d{9}$/.test(t)}}},m={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"submitPage"},[n("div",{staticClass:"title flex2"},[n("van-icon",{staticStyle:{margin:"3px 5px","font-size":"18px"},attrs:{name:"arrow-left"},on:{click:t.goback}}),t._v(" "),n("span",{staticStyle:{"margin-left":"-26px"}},[t._v(" 人员录入 ")]),t._v(" "),n("span")],1),t._v(" "),n("div",{staticClass:"upload_wrap"},[t._m(0),t._v(" "),n("div",{staticClass:"flex",staticStyle:{margin:"15px 0"}},[n("div",{staticClass:"uploader"},[n("van-uploader",{attrs:{"after-read":function(e){return t.afterRead(e,1)},"max-count":1},model:{value:t.fileList,callback:function(e){t.fileList=e},expression:"fileList"}}),t._v(" "),n("div",{staticStyle:{"padding-right":"8px"}},[t._v("现场采集照")]),t._v(" "),n("van-icon",{staticClass:"question",attrs:{name:"question-o"},on:{click:function(e){t.previewImage=!0}}})],1),t._v(" "),n("div",{staticClass:"uploader"},[n("van-uploader",{attrs:{"after-read":function(e){return t.afterRead(e,2)},"max-count":1},model:{value:t.fileList2,callback:function(e){t.fileList2=e},expression:"fileList2"}}),t._v(" "),n("div",{staticStyle:{"padding-right":"8px"}},[t._v("身份证头像照")])],1)]),t._v(" "),n("p",{staticStyle:{color:"red","font-size":"12px"}},[t._v("注:未上传身份证头像照,系统会默认使用现场采集照")])]),t._v(" "),n("div",{staticClass:"form_center"},[n("div",{staticClass:"flex info_wrap"},[n("van-icon",{staticClass:"icon",attrs:{name:"records"}}),t._v(" "),n("span",[t._v("详细信息")])],1),t._v(" "),n("van-form",{staticStyle:{"padding-bottom":"10px"},on:{submit:t.onSubmit}},[n("van-field",{attrs:{name:"personType",rules:[{required:!0}]},scopedSlots:t._u([{key:"input",fn:function(){return[n("van-radio-group",{attrs:{direction:"horizontal",disabled:t.repetitionRender},on:{change:t.changePersonType},model:{value:t.form.personType,callback:function(e){t.$set(t.form,"personType",e)},expression:"form.personType"}},[n("van-radio",{staticClass:"sex",attrs:{name:1}},[t._v("施工人员")]),t._v(" "),n("van-radio",{staticClass:"sex",attrs:{name:2}},[t._v("管理人员")]),t._v(" "),n("van-radio",{staticClass:"sex",attrs:{name:3}},[t._v("临时人员")])],1)]},proxy:!0}])}),t._v(" "),3!=t.form.personType?n("van-field",{attrs:{readonly:"",clickable:"",name:"teamId",value:t.form.enterpriseId,label:"企业",placeholder:"点击选择企业",rules:[{required:!0}]},on:{click:function(e){t.showPicker2=!0}}}):t._e(),t._v(" "),2==t.form.personType?n("van-field",{attrs:{readonly:"",clickable:"",name:"departmentId",value:t.form.departmentId,label:"部门",placeholder:"点击选择部门",rules:[{required:!0}]},on:{click:function(e){t.showPicker=!0}}}):3!=t.form.personType?n("van-field",{attrs:{readonly:"",clickable:"",name:"teamId",value:t.form.teamId,label:"班组",placeholder:"点击选择班组",rules:[{required:!0}],disabled:""==t.form.enterpriseId},on:{click:function(e){t.showPicker=""!=t.form.enterpriseId}}}):t._e(),t._v(" "),2==t.form.personType?n("van-field",{attrs:{readonly:"",clickable:"",name:"jobType",value:t.form.jobType,label:"职务类型",placeholder:"点击选择职务类型",rules:[{required:!0}]},on:{click:function(e){t.showJobType=!0}}}):t._e(),t._v(" "),2==t.form.personType?n("van-field",{attrs:{readonly:"",clickable:"",name:"jobName",value:t.form.jobName,label:"职务",placeholder:"点击选择职务",rules:[{required:!0}]},on:{click:function(e){t.showJob=!0}}}):t._e(),t._v(" "),n("van-field",{attrs:{name:"phoneNumber",label:"手机号",placeholder:"请输入手机号",rules:[{required:!0}],maxlength:"11"},model:{value:t.form.phoneNumber,callback:function(e){t.$set(t.form,"phoneNumber",e)},expression:"form.phoneNumber"}}),t._v(" "),n("van-field",{attrs:{readonly:"",clickable:"",name:"enterDate",value:t.form.enterDate,label:"进场日期",placeholder:"点击选择进场日期",rules:[{required:!0}]},on:{click:function(e){t.showCalendar=!0}}}),t._v(" "),n("div",{staticStyle:{margin:"36px auto",width:"90%"}},[n("van-button",{attrs:{round:"",block:"",type:"info","native-type":"submit"}},[t._v("提交")])],1)],1)],1),t._v(" "),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker2,callback:function(e){t.showPicker2=e},expression:"showPicker2"}},[n("van-picker",{attrs:{"show-toolbar":"",columns:t.columns2},on:{confirm:t.onConfirm2,cancel:function(e){t.showPicker2=!1}}})],1),t._v(" "),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[n("van-picker",{attrs:{"show-toolbar":"",columns:t.columns},on:{confirm:t.onConfirm,cancel:function(e){t.showPicker=!1}}})],1),t._v(" "),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showJob,callback:function(e){t.showJob=e},expression:"showJob"}},[n("van-picker",{attrs:{"show-toolbar":"",columns:t.jobList},on:{confirm:t.onConfirmJob,cancel:function(e){t.showJob=!1}}})],1),t._v(" "),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showJobType,callback:function(e){t.showJobType=e},expression:"showJobType"}},[n("van-picker",{attrs:{"show-toolbar":"",columns:t.jobTypeList},on:{confirm:t.onConfirmJobType,cancel:function(e){t.showJobType=!1}}})],1),t._v(" "),n("van-popup",{style:{height:"50%"},attrs:{position:"bottom"},model:{value:t.showCalendar,callback:function(e){t.showCalendar=e},expression:"showCalendar"}},[n("van-datetime-picker",{attrs:{type:"date",title:"选择进场日期","min-date":t.minDate},on:{confirm:t.onDateConfirm,cancel:t.onCancel},model:{value:t.currentDate,callback:function(e){t.currentDate=e},expression:"currentDate"}})],1),t._v(" "),n("van-popup",{staticStyle:{background:"none"},model:{value:t.showLoading,callback:function(e){t.showLoading=e},expression:"showLoading"}},[n("van-loading",{attrs:{type:"spinner",color:"#1989fa"}})],1),t._v(" "),n("van-image-preview",{attrs:{images:t.previewImages},model:{value:t.previewImage,callback:function(e){t.previewImage=e},expression:"previewImage"}}),t._v(" "),n("van-dialog",{attrs:{title:"图片裁剪"},on:{confirm:t.getClipImgFn},model:{value:t.imgClipDialog,callback:function(e){t.imgClipDialog=e},expression:"imgClipDialog"}},[n("div",{staticStyle:{height:"300px"}},[n("vueCropper",{ref:"cropper",attrs:{img:t.cropperOption.img,outputType:t.cropperOption.outputType,autoCrop:!0}})],1)])],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"step"},[e("img",{staticStyle:{width:"auto",height:"28px"},attrs:{src:n("2SFc")}})])}]};var w=n("VU/8")(g,m,!1,function(t){n("olhz")},"data-v-1819c3dd",null);e.default=w.exports},SfB7:function(t,e,n){t.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},SldL:function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u="object"==typeof t,h=e.regeneratorRuntime;if(h)u&&(t.exports=h);else{(h=e.regeneratorRuntime=u?t.exports:{}).wrap=y;var p="suspendedStart",l="suspendedYield",f="executing",d="completed",v={},g={};g[a]=function(){return this};var m=Object.getPrototypeOf,w=m&&m(m(T([])));w&&w!==r&&o.call(w,a)&&(g=w);var x=O.prototype=C.prototype=Object.create(g);L.prototype=x.constructor=O,O.constructor=L,O[c]=L.displayName="GeneratorFunction",h.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===L||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},h.awrap=function(t){return{__await:t}},S(k.prototype),k.prototype[s]=function(){return this},h.AsyncIterator=k,h.async=function(t,e,n,r){var o=new k(y(t,e,n,r));return h.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},S(x),x[c]="Generator",x[a]=function(){return this},x.toString=function(){return"[object Generator]"},h.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},h.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(M),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return s.type="throw",s.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function y(t,e,n,r){var o=e&&e.prototype instanceof C?e:C,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(t,e,n){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=b(t,e,n);if("normal"===c.type){if(r=n.done?d:l,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function C(){}function L(){}function O(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function k(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,a){var s=b(t[n],t,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(u).then(function(t){c.value=t,i(c)},a)}a(s.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function A(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,A(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=b(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},TcQ7:function(t,e,n){var r=n("MU5D"),o=n("52gC");t.exports=function(t){return r(o(t))}},To3L:function(t,e,n){"use strict";var r=n("+E39"),o=n("lktj"),i=n("1kS7"),a=n("NpIQ"),s=n("sB3e"),c=n("MU5D"),u=Object.assign;t.exports=!u||n("S82l")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,h=1,p=i.f,l=a.f;u>h;)for(var f,d=c(arguments[h++]),v=p?o(d).concat(p(d)):o(d),g=v.length,m=0;g>m;)f=v[m++],r&&!l.call(d,f)||(n[f]=d[f]);return n}:u},U5ju:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),t.exports=n("FeBl").Promise},UuGF:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},V3tA:function(t,e,n){n("R4wc"),t.exports=n("FeBl").Object.assign},X8DO:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},Xxa5:function(t,e,n){t.exports=n("jyFz")},YDP2:function(t,e,n){t.exports=n.p+"static/img/example.f5cda02.png"},YZ0n:function(t,e,n){var r;window,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=6)}([function(t,e,n){var r=n(2);"string"==typeof r&&(r=[[t.i,r,""]]);n(4)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(t.exports=r.locals)},function(t,e,n){"use strict";var r=n(0);n.n(r).a},function(t,e,n){(t.exports=n(3)(!1)).push([t.i,'\n.vue-cropper[data-v-6dae58fd] {\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n direction: ltr;\n touch-action: none;\n text-align: left;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-6dae58fd],\n.cropper-box-canvas[data-v-6dae58fd],\n.cropper-drag-box[data-v-6dae58fd],\n.cropper-crop-box[data-v-6dae58fd],\n.cropper-face[data-v-6dae58fd] {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n user-select: none;\n}\n.cropper-box-canvas img[data-v-6dae58fd] {\n position: relative;\n text-align: left;\n user-select: none;\n transform: none;\n max-width: none;\n max-height: none;\n}\n.cropper-box[data-v-6dae58fd] {\n overflow: hidden;\n}\n.cropper-move[data-v-6dae58fd] {\n cursor: move;\n}\n.cropper-crop[data-v-6dae58fd] {\n cursor: crosshair;\n}\n.cropper-modal[data-v-6dae58fd] {\n background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-6dae58fd] {\n /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-6dae58fd] {\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n user-select: none;\n}\n.cropper-view-box img[data-v-6dae58fd] {\n user-select: none;\n text-align: left;\n max-width: none;\n max-height: none;\n}\n.cropper-face[data-v-6dae58fd] {\n top: 0;\n left: 0;\n background-color: #fff;\n opacity: 0.1;\n}\n.crop-info[data-v-6dae58fd] {\n position: absolute;\n left: 0px;\n min-width: 65px;\n text-align: center;\n color: white;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n}\n.crop-line[data-v-6dae58fd] {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n.line-w[data-v-6dae58fd] {\n top: -3px;\n left: 0;\n height: 5px;\n cursor: n-resize;\n}\n.line-a[data-v-6dae58fd] {\n top: 0;\n left: -3px;\n width: 5px;\n cursor: w-resize;\n}\n.line-s[data-v-6dae58fd] {\n bottom: -3px;\n left: 0;\n height: 5px;\n cursor: s-resize;\n}\n.line-d[data-v-6dae58fd] {\n top: 0;\n right: -3px;\n width: 5px;\n cursor: e-resize;\n}\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 8px;\n height: 8px;\n opacity: 0.75;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -4px;\n left: -4px;\n cursor: nw-resize;\n}\n.point2[data-v-6dae58fd] {\n top: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: n-resize;\n}\n.point3[data-v-6dae58fd] {\n top: -4px;\n right: -4px;\n cursor: ne-resize;\n}\n.point4[data-v-6dae58fd] {\n top: 50%;\n left: -4px;\n margin-top: -3px;\n cursor: w-resize;\n}\n.point5[data-v-6dae58fd] {\n top: 50%;\n right: -4px;\n margin-top: -3px;\n cursor: e-resize;\n}\n.point6[data-v-6dae58fd] {\n bottom: -5px;\n left: -4px;\n cursor: sw-resize;\n}\n.point7[data-v-6dae58fd] {\n bottom: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: s-resize;\n}\n.point8[data-v-6dae58fd] {\n bottom: -5px;\n right: -4px;\n cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 20px;\n height: 20px;\n opacity: 0.45;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -10px;\n left: -10px;\n}\n.point2[data-v-6dae58fd],\n .point4[data-v-6dae58fd],\n .point5[data-v-6dae58fd],\n .point7[data-v-6dae58fd] {\n display: none;\n}\n.point3[data-v-6dae58fd] {\n top: -10px;\n right: -10px;\n}\n.point4[data-v-6dae58fd] {\n top: 0;\n left: 0;\n}\n.point6[data-v-6dae58fd] {\n bottom: -10px;\n left: -10px;\n}\n.point8[data-v-6dae58fd] {\n bottom: -10px;\n right: -10px;\n}\n}\n',""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(r),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var r={},o=function(t){var e;return function(){return void 0===e&&(e=function(){return window&&document&&document.all&&!window.atob}.apply(this,arguments)),e}}(),i=function(t){var e={};return function(t,n){if("function"==typeof t)return t();if(void 0===e[t]){var r=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[t]=r}return e[t]}}(),a=null,s=0,c=[],u=n(5);function h(t,e){for(var n=0;n<t.length;n++){var o=t[n],i=r[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(g(o.parts[a],e))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(g(o.parts[a],e));r[o.id]={id:o.id,refs:1,parts:s}}}}function p(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function l(t,e){var n=i(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),c.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=i(t.insertAt.before,n);n.insertBefore(e,o)}}function f(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function d(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var r=n.nc;r&&(t.attrs.nonce=r)}return v(e,t.attrs),l(t,e),e}function v(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function g(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var c=s++;n=a||(a=d(e)),r=w.bind(null,n,c,!1),o=w.bind(null,n,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),l(t,e),e}(e),r=function(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=u(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),o=function(){f(n),n.href&&URL.revokeObjectURL(n.href)}):(n=d(e),r=function(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){f(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=p(t,e);return h(n,e),function(t){for(var o=[],i=0;i<n.length;i++){var a=n[i];(s=r[a.id]).refs--,o.push(s)}for(t&&h(p(t,e),e),i=0;i<o.length;i++){var s;if(0===(s=o[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete r[s.id]}}}};var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function w(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:t.scaleImg,mouseout:t.cancelScale}},[t.imgs?n("div",{staticClass:"cropper-box"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+t.x/t.scale+"px,"+t.y/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"}},[n("img",{ref:"cropperImg",attrs:{src:t.imgs,alt:"cropper-img"}})])]):t._e(),t._v(" "),n("div",{staticClass:"cropper-drag-box",class:{"cropper-move":t.move&&!t.crop,"cropper-crop":t.crop,"cropper-modal":t.cropping},on:{mousedown:t.startMove,touchstart:t.startMove}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:t.cropW+"px",height:t.cropH+"px",transform:"translate3d("+t.cropOffsertX+"px,"+t.cropOffsertY+"px,0)"}},[n("span",{staticClass:"cropper-view-box"},[n("img",{style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+(t.x-t.cropOffsertX)/t.scale+"px,"+(t.y-t.cropOffsertY)/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"},attrs:{src:t.imgs,alt:"cropper-img"}})]),t._v(" "),n("span",{staticClass:"cropper-face cropper-move",on:{mousedown:t.cropMove,touchstart:t.cropMove}}),t._v(" "),t.info?n("span",{staticClass:"crop-info",style:{top:t.cropInfo.top}},[t._v(t._s(this.cropInfo.width)+" × "+t._s(this.cropInfo.height))]):t._e(),t._v(" "),t.fixedBox?t._e():n("span",[n("span",{staticClass:"crop-line line-w",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),n("span",{staticClass:"crop-line line-a",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),n("span",{staticClass:"crop-line line-s",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),n("span",{staticClass:"crop-line line-d",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),n("span",{staticClass:"crop-point point1",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,1)}}}),t._v(" "),n("span",{staticClass:"crop-point point2",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),n("span",{staticClass:"crop-point point3",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,1)}}}),t._v(" "),n("span",{staticClass:"crop-point point4",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),n("span",{staticClass:"crop-point point5",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),n("span",{staticClass:"crop-point point6",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,2)}}}),t._v(" "),n("span",{staticClass:"crop-point point7",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),n("span",{staticClass:"crop-point point8",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,2)}}})])])])};r._withStripped=!0;var o={};o.getData=function(t){return new Promise(function(e,n){var r={};(function(t){var e=null;return new Promise(function(n,r){if(t.src)if(/^data\:/i.test(t.src))e=function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var e=atob(t),n=e.length,r=new ArrayBuffer(n),o=new Uint8Array(r),i=0;i<n;i++)o[i]=e.charCodeAt(i);return r}(t.src),n(e);else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){e=t.target.result,n(e)},function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){200!=this.status&&0!==this.status||function(t){o.readAsArrayBuffer(t)}(this.response)},n.send()}(t.src)}else{var i=new XMLHttpRequest;i.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=i.response,n(e),i=null},i.open("GET",t.src,!0),i.responseType="arraybuffer",i.send(null)}else r("img error")})})(t).then(function(t){r.arrayBuffer=t,r.orientation=function(t){var e,n,r,o,i,a,s,c,u,h=new DataView(t),p=h.byteLength;if(255===h.getUint8(0)&&216===h.getUint8(1))for(c=2;c<p;){if(255===h.getUint8(c)&&225===h.getUint8(c+1)){a=c;break}c++}if(a&&(n=a+10,"Exif"===function(t,e,n){var r,o="";for(r=e,n+=e;r<n;r++)o+=String.fromCharCode(t.getUint8(r));return o}(h,a+4,4)&&(((o=18761===(i=h.getUint16(n)))||19789===i)&&42===h.getUint16(n+2,o)&&(r=h.getUint32(n+4,o))>=8&&(s=n+r))),s)for(p=h.getUint16(s,o),u=0;u<p;u++)if(c=s+12*u+2,274===h.getUint16(c,o)){c+=8,e=h.getUint16(c,o);break}return e}(t),e(r)}).catch(function(t){n(t)})})};var i=o,a={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){var e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:function(){return navigator.userAgent,!!window.ActiveXObject||"ActiveXObject"in window},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(t){""!==t&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(t){for(var e=navigator.userAgent.split(" "),n="",r=new RegExp(t,"i"),o=0;o<e.length;o++)r.test(e[o])&&(n=e[o]);return n?n.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(t,e,n,r){var o=this;if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){var i=this.getVersion("version");i[0]>13&&i[1]>1&&(e=-1)}else{var a=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(a){var s=a[1];((s=s.split("_"))[0]>13||s[0]>=13&&s[1]>=4)&&(e=-1)}}var c=document.createElement("canvas"),u=c.getContext("2d");switch(u.save(),e){case 2:c.width=n,c.height=r,u.translate(n,0),u.scale(-1,1);break;case 3:c.width=n,c.height=r,u.translate(n/2,r/2),u.rotate(180*Math.PI/180),u.translate(-n/2,-r/2);break;case 4:c.width=n,c.height=r,u.translate(0,r),u.scale(1,-1);break;case 5:c.height=n,c.width=r,u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:c.width=r,c.height=n,u.translate(r/2,n/2),u.rotate(90*Math.PI/180),u.translate(-n/2,-r/2);break;case 7:c.height=n,c.width=r,u.rotate(.5*Math.PI),u.translate(n,-r),u.scale(-1,1);break;case 8:c.height=n,c.width=r,u.translate(r/2,n/2),u.rotate(-90*Math.PI/180),u.translate(-n/2,-r/2);break;default:c.width=n,c.height=r}u.drawImage(t,0,0,n,r),u.restore(),c.toBlob(function(t){var e=URL.createObjectURL(t);URL.revokeObjectURL(o.imgs),o.imgs=e},"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),t.$emit("img-load","error"),!1;var n=e.width,r=e.height;i.getData(e).then(function(o){t.orientation=o.orientation||1;var i=Number(t.maxImgSize);!t.orientation&&n<i&r<i?t.imgs=t.img:(n>i&&(r=r/n*i,n=i),r>i&&(n=n/r*i,r=i),t.checkOrientationImage(e,t.orientation,n,r))})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(e.crossOrigin=""),this.isIE){var n=new XMLHttpRequest;n.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},n.open("GET",this.img,!0),n.responseType="blob",n.send()}else e.src=this.img},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(t){var e=this;t.preventDefault();var n=this.scale,r=this.touches[0].clientX,o=this.touches[0].clientY,i=t.touches[0].clientX,a=t.touches[0].clientY,s=this.touches[1].clientX,c=this.touches[1].clientY,u=t.touches[1].clientX,h=t.touches[1].clientY,p=Math.sqrt(Math.pow(r-s,2)+Math.pow(o-c,2)),l=Math.sqrt(Math.pow(i-u,2)+Math.pow(a-h,2))-p,f=1,d=(f=(f=f/this.trueWidth>f/this.trueHeight?f/this.trueHeight:f/this.trueWidth)>.1?.1:f)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?n+=Math.abs(d):l<0&&n>Math.abs(d)&&(n-=Math.abs(d)),this.touches=t.touches,setTimeout(function(){e.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n}},cancelTouchScale:function(t){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(t){var e=this;if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var n,r,o="clientX"in t?t.clientX:t.touches[0].clientX,i="clientY"in t?t.clientY:t.touches[0].clientY;n=o-this.moveX,r=i-this.moveY,this.$nextTick(function(){if(e.centerBox){var t,o,i,a,s=e.getImgAxis(n,r,e.scale),c=e.getCropAxis(),u=e.trueHeight*e.scale,h=e.trueWidth*e.scale;switch(e.rotate){case 1:case-1:case 3:case-3:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2+(u-h)/2,o=e.cropOffsertY-e.trueHeight*(1-e.scale)/2+(h-u)/2,i=t-u+e.cropW,a=o-h+e.cropH;break;default:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2,o=e.cropOffsertY-e.trueHeight*(1-e.scale)/2,i=t-h+e.cropW,a=o-u+e.cropH}s.x1>=c.x1&&(n=t),s.y1>=c.y1&&(r=o),s.x2<=c.x2&&(n=i),s.y2<=c.y2&&(r=a)}e.x=n,e.y=r,e.$emit("imgMoving",{moving:!0,axis:e.getImgAxis()}),e.$emit("img-moving",{moving:!0,axis:e.getImgAxis()})})},leaveImg:function(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(t){var e=this;t.preventDefault();var n=this.scale,r=t.deltaY||t.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var o=this.coe,i=(o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)*r;i<0?n+=Math.abs(i):n>Math.abs(i)&&(n-=Math.abs(i));var a=i<0?"add":"reduce";if(a!==this.coeStatus&&(this.coeStatus=a,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){e.scaling=!1,e.coe=e.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n},changeScale:function(t){var e=this.scale;t=t||1;var n=20;if((t*=n=n/this.trueWidth>n/this.trueHeight?n/this.trueHeight:n/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop:function(t){var e=this;t.preventDefault();var n="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,r="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick(function(){var t=n-e.cropX,o=r-e.cropY;if(t>0?(e.cropW=t+e.cropChangeX>e.w?e.w-e.cropChangeX:t,e.cropOffsertX=e.cropChangeX):(e.cropW=e.w-e.cropChangeX+Math.abs(t)>e.w?e.cropChangeX:Math.abs(t),e.cropOffsertX=e.cropChangeX+t>0?e.cropChangeX+t:0),e.fixed){var i=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];i+e.cropOffsertY>e.h?(e.cropH=e.h-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0],e.cropOffsertX=t>0?e.cropChangeX:e.cropChangeX-e.cropW):e.cropH=i,e.cropOffsertY=e.cropOffsertY}else o>0?(e.cropH=o+e.cropChangeY>e.h?e.h-e.cropChangeY:o,e.cropOffsertY=e.cropChangeY):(e.cropH=e.h-e.cropChangeY+Math.abs(o)>e.h?e.cropChangeY:Math.abs(o),e.cropOffsertY=e.cropChangeY+o>0?e.cropChangeY+o:0)})},changeCropSize:function(t,e,n,r,o){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=n,this.changeCropTypeX=r,this.changeCropTypeY=o,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(t){var e=this;t.preventDefault();var n="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,r="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0,o=this.w,i=this.h,a=0,s=0;if(this.centerBox){var c=this.getImgAxis(),u=c.x2,h=c.y2;a=c.x1>0?c.x1:0,s=c.y1>0?c.y1:0,o>u&&(o=u),i>h&&(i=h)}this.$nextTick(function(){var t=n-e.cropX,c=r-e.cropY;if(e.canChangeX&&(1===e.changeCropTypeX?e.cropOldW-t>0?(e.cropW=o-e.cropChangeX-t<=o-a?e.cropOldW-t:e.cropOldW+e.cropChangeX-a,e.cropOffsertX=o-e.cropChangeX-t<=o-a?e.cropChangeX+t:a):(e.cropW=Math.abs(t)+e.cropChangeX<=o?Math.abs(t)-e.cropOldW:o-e.cropOldW-e.cropChangeX,e.cropOffsertX=e.cropChangeX+e.cropOldW):2===e.changeCropTypeX&&(e.cropOldW+t>0?(e.cropW=e.cropOldW+t+e.cropOffsertX<=o?e.cropOldW+t:o-e.cropOffsertX,e.cropOffsertX=e.cropChangeX):(e.cropW=o-e.cropChangeX+Math.abs(t+e.cropOldW)<=o-a?Math.abs(t+e.cropOldW):e.cropChangeX-a,e.cropOffsertX=o-e.cropChangeX+Math.abs(t+e.cropOldW)<=o-a?e.cropChangeX-Math.abs(t+e.cropOldW):a))),e.canChangeY&&(1===e.changeCropTypeY?e.cropOldH-c>0?(e.cropH=i-e.cropChangeY-c<=i-s?e.cropOldH-c:e.cropOldH+e.cropChangeY-s,e.cropOffsertY=i-e.cropChangeY-c<=i-s?e.cropChangeY+c:s):(e.cropH=Math.abs(c)+e.cropChangeY<=i?Math.abs(c)-e.cropOldH:i-e.cropOldH-e.cropChangeY,e.cropOffsertY=e.cropChangeY+e.cropOldH):2===e.changeCropTypeY&&(e.cropOldH+c>0?(e.cropH=e.cropOldH+c+e.cropOffsertY<=i?e.cropOldH+c:i-e.cropOffsertY,e.cropOffsertY=e.cropChangeY):(e.cropH=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-s?Math.abs(c+e.cropOldH):e.cropChangeY-s,e.cropOffsertY=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-s?e.cropChangeY-Math.abs(c+e.cropOldH):s))),e.canChangeX&&e.fixed){var u=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];u+e.cropOffsertY>i?(e.cropH=i-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0]):e.cropH=u}if(e.canChangeY&&e.fixed){var h=e.cropH/e.fixedNumber[1]*e.fixedNumber[0];h+e.cropOffsertX>o?(e.cropW=o-e.cropOffsertX,e.cropH=e.cropW/e.fixedNumber[0]*e.fixedNumber[1]):e.cropW=h}})},checkCropLimitSize:function(){this.cropW,this.cropH;var t=this.limitMinSize,e=new Array;return e=Array.isArray[t]?t:[t,t],[parseFloat(e[0]),parseFloat(e[1])]},changeCropEnd:function(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var e,n,r="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY;e=r-this.cropOffsertX,n=o-this.cropOffsertY,this.cropX=e,this.cropY=n,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(t,e){var n=this,r=0,o=0;t&&(t.preventDefault(),r="clientX"in t?t.clientX:t.touches[0].clientX,o="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick(function(){var t,i,a=r-n.cropX,s=o-n.cropY;if(e&&(a=n.cropOffsertX,s=n.cropOffsertY),t=a<=0?0:a+n.cropW>n.w?n.w-n.cropW:a,i=s<=0?0:s+n.cropH>n.h?n.h-n.cropH:s,n.centerBox){var c=n.getImgAxis();t<=c.x1&&(t=c.x1),t+n.cropW>c.x2&&(t=c.x2-n.cropW),i<=c.y1&&(i=c.y1),i+n.cropH>c.y2&&(i=c.y2-n.cropH)}n.cropOffsertX=t,n.cropOffsertY=i,n.$emit("cropMoving",{moving:!0,axis:n.getCropAxis()}),n.$emit("crop-moving",{moving:!0,axis:n.getCropAxis()})})},getImgAxis:function(t,e,n){t=t||this.x,e=e||this.y,n=n||this.scale;var r={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*n,i=this.trueHeight*n;switch(this.rotate){case 0:r.x1=t+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=e+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n;break;case 1:case-1:case 3:case-3:r.x1=t+this.trueWidth*(1-n)/2+(o-i)/2,r.x2=r.x1+this.trueHeight*n,r.y1=e+this.trueHeight*(1-n)/2+(i-o)/2,r.y2=r.y1+this.trueWidth*n;break;default:r.x1=t+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=e+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n}return r},getCropAxis:function(){var t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop:function(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(t){var e=this,n=document.createElement("canvas"),r=new Image,o=this.rotate,i=this.trueWidth,a=this.trueHeight,s=this.cropOffsertX,c=this.cropOffsertY;function u(t,e){n.width=Math.round(t),n.height=Math.round(e)}r.onload=function(){if(0!==e.cropW){var h=n.getContext("2d"),p=1;e.high&!e.full&&(p=window.devicePixelRatio),1!==e.enlarge&!e.full&&(p=Math.abs(Number(e.enlarge)));var l=e.cropW*p,f=e.cropH*p,d=i*e.scale*p,v=a*e.scale*p,g=(e.x-s+e.trueWidth*(1-e.scale)/2)*p,m=(e.y-c+e.trueHeight*(1-e.scale)/2)*p;switch(u(l,f),h.save(),o){case 0:e.full?(u(l/e.scale,f/e.scale),h.drawImage(r,g/e.scale,m/e.scale,d/e.scale,v/e.scale)):h.drawImage(r,g,m,d,v);break;case 1:case-3:e.full?(u(l/e.scale,f/e.scale),g=g/e.scale+(d/e.scale-v/e.scale)/2,m=m/e.scale+(v/e.scale-d/e.scale)/2,h.rotate(90*o*Math.PI/180),h.drawImage(r,m,-g-v/e.scale,d/e.scale,v/e.scale)):(g+=(d-v)/2,m+=(v-d)/2,h.rotate(90*o*Math.PI/180),h.drawImage(r,m,-g-v,d,v));break;case 2:case-2:e.full?(u(l/e.scale,f/e.scale),h.rotate(90*o*Math.PI/180),g/=e.scale,m/=e.scale,h.drawImage(r,-g-d/e.scale,-m-v/e.scale,d/e.scale,v/e.scale)):(h.rotate(90*o*Math.PI/180),h.drawImage(r,-g-d,-m-v,d,v));break;case 3:case-1:e.full?(u(l/e.scale,f/e.scale),g=g/e.scale+(d/e.scale-v/e.scale)/2,m=m/e.scale+(v/e.scale-d/e.scale)/2,h.rotate(90*o*Math.PI/180),h.drawImage(r,-m-d/e.scale,g,d/e.scale,v/e.scale)):(g+=(d-v)/2,m+=(v-d)/2,h.rotate(90*o*Math.PI/180),h.drawImage(r,-m-d,g,d,v));break;default:e.full?(u(l/e.scale,f/e.scale),h.drawImage(r,g/e.scale,m/e.scale,d/e.scale,v/e.scale)):h.drawImage(r,g,m,d,v)}h.restore()}else{var w=i*e.scale,x=a*e.scale,y=n.getContext("2d");switch(y.save(),o){case 0:u(w,x),y.drawImage(r,0,0,w,x);break;case 1:case-3:u(x,w),y.rotate(90*o*Math.PI/180),y.drawImage(r,0,-x,w,x);break;case 2:case-2:u(w,x),y.rotate(90*o*Math.PI/180),y.drawImage(r,-w,-x,w,x);break;case 3:case-1:u(x,w),y.rotate(90*o*Math.PI/180),y.drawImage(r,-w,0,w,x);break;default:u(w,x),y.drawImage(r,0,0,w,x)}y.restore()}t(n)},"data"!==this.img.substr(0,4)&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(t){var e=this;this.getCropChecked(function(n){t(n.toDataURL("image/"+e.outputType,e.outputSize))})},getCropBlob:function(t){var e=this;this.getCropChecked(function(n){n.toBlob(function(e){return t(e)},"image/"+e.outputType,e.outputSize)})},showPreview:function(){var t=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){t.isCanShow=!0},16);var e=this.cropW,n=this.cropH,r=this.scale,o={};o.div={width:"".concat(e,"px"),height:"".concat(n,"px")};var i=(this.x-this.cropOffsertX)/r,a=(this.y-this.cropOffsertY)/r;o.w=e,o.h=n,o.url=this.imgs,o.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(i,"px, ").concat(a,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},o.html='\n <div class="show-preview" style="width: '.concat(o.w,"px; height: ").concat(o.h,'px,; overflow: hidden">\n <div style="width: ').concat(e,"px; height: ").concat(n,'px">\n <img src=').concat(o.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,"px; transform:\n scale(").concat(r,")translate3d(").concat(i,"px, ").concat(a,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,'deg)">\n </div>\n </div>'),this.$emit("realTime",o),this.$emit("real-time",o)},reload:function(){var t=this,e=new Image;e.onload=function(){t.w=parseFloat(window.getComputedStyle(t.$refs.cropper).width),t.h=parseFloat(window.getComputedStyle(t.$refs.cropper).height),t.trueWidth=e.width,t.trueHeight=e.height,t.original?t.scale=1:t.scale=t.checkedMode(),t.$nextTick(function(){t.x=-(t.trueWidth-t.trueWidth*t.scale)/2+(t.w-t.trueWidth*t.scale)/2,t.y=-(t.trueHeight-t.trueHeight*t.scale)/2+(t.h-t.trueHeight*t.scale)/2,t.loading=!1,t.autoCrop&&t.goAutoCrop(),t.$emit("img-load","success"),t.$emit("imgLoad","success"),setTimeout(function(){t.showPreview()},20)})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},e.src=this.imgs},checkedMode:function(){var t=1,e=(this.trueWidth,this.trueHeight),n=this.mode.split(" ");switch(n[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":(e*=t=this.w/this.trueWidth)<this.h&&(t=(e=this.h)/this.trueHeight);break;default:try{var r=n[0];if(-1!==r.search("px")){r=r.replace("px","");var o=parseFloat(r)/this.trueWidth,i=1,a=n[1];-1!==a.search("px")&&(a=a.replace("px",""),i=(e=parseFloat(a))/this.trueHeight),t=Math.min(o,i)}if(-1!==r.search("%")&&(r=r.replace("%",""),t=parseFloat(r)/100*this.w/this.trueWidth),2===n.length&&"auto"===r){var s=n[1];-1!==s.search("px")&&(s=s.replace("px",""),t=(e=parseFloat(s))/this.trueHeight),-1!==s.search("%")&&(s=s.replace("%",""),t=(e=parseFloat(s)/100*this.h)/this.trueHeight)}}catch(e){t=1}}return t},goAutoCrop:function(t,e){if(""!==this.imgs&&null!==this.imgs){this.clearCrop(),this.cropping=!0;var n=this.w,r=this.h;if(this.centerBox){var o=Math.abs(this.rotate)%2>0,i=(o?this.trueHeight:this.trueWidth)*this.scale,a=(o?this.trueWidth:this.trueHeight)*this.scale;n=i<n?i:n,r=a<r?a:r}var s=t||parseFloat(this.autoCropWidth),c=e||parseFloat(this.autoCropHeight);0!==s&&0!==c||(s=.8*n,c=.8*r),s=s>n?n:s,c=c>r?r:c,this.fixed&&(c=s/this.fixedNumber[0]*this.fixedNumber[1]),c>this.h&&(s=(c=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(s,c)}},changeCrop:function(t,e){var n=this;if(this.centerBox){var r=this.getImgAxis();t>r.x2-r.x1&&(e=(t=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>r.y2-r.y1&&(t=(e=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick(function(){n.cropOffsertX=(n.w-n.cropW)/2,n.cropOffsertY=(n.h-n.cropH)/2,n.centerBox&&n.moveCrop(null,!0)})},refresh:function(){var t=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){t.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(t,e,n){t=t||this.x,e=e||this.y,n=n||this.scale;var r=!0;if(this.centerBox){var o=this.getImgAxis(t,e,n),i=this.getCropAxis();o.x1>=i.x1&&(r=!1),o.x2<=i.x2&&(r=!1),o.y1>=i.y1&&(r=!1),o.y2<=i.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var t=this,e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,n,r){for(var o=atob(this.toDataURL(n,r).split(",")[1]),i=o.length,a=new Uint8Array(i),s=0;s<i;s++)a[s]=o.charCodeAt(s);e(new Blob([a],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}};n(1);var s=function(t,e,n,r,o,i,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=[],u._compiled=!0),u._scopeId="data-v-"+i,c)if(u.functional){u._injectStyles=c;var h=u.render;u.render=function(t,e){return c.call(e),h(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}(a,r,0,0,0,"6dae58fd");s.options.__file="src/vue-cropper.vue";var c=s.exports;n.d(e,"VueCropper",function(){return c});var u=function(t){t.component("VueCropper",c)};"undefined"!=typeof window&&window.Vue&&u(window.Vue),e.default={version:"0.5.6",install:u,VueCropper:c,vueCropper:c}}])},t.exports=r()},Yobk:function(t,e,n){var r=n("77Pl"),o=n("qio6"),i=n("xnc9"),a=n("ax3d")("IE_PROTO"),s=function(){},c=function(){var t,e=n("ON07")("iframe"),r=i.length;for(e.style.display="none",n("RPLV").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},ax3d:function(t,e,n){var r=n("e8AB")("keys"),o=n("3Eo+");t.exports=function(t){return r[t]||(r[t]=o(t))}},bRrM:function(t,e,n){"use strict";var r=n("7KvD"),o=n("FeBl"),i=n("evD5"),a=n("+E39"),s=n("dSzd")("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dSzd:function(t,e,n){var r=n("e8AB")("wks"),o=n("3Eo+"),i=n("7KvD").Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},dY0y:function(t,e,n){var r=n("dSzd")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},e6n0:function(t,e,n){var r=n("evD5").f,o=n("D2L2"),i=n("dSzd")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},e8AB:function(t,e,n){var r=n("FeBl"),o=n("7KvD"),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("O4g8")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},evD5:function(t,e,n){var r=n("77Pl"),o=n("SfB7"),i=n("MmMw"),a=Object.defineProperty;e.f=n("+E39")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},exGp:function(t,e,n){"use strict";e.__esModule=!0;var r,o=n("//Fk"),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,n){return function r(o,a){try{var s=e[o](a),c=s.value}catch(t){return void n(t)}if(!s.done)return i.default.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)});t(c)}("next")})}}},fJUb:function(t,e,n){var r=n("77Pl"),o=n("EqjI"),i=n("qARP");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},fkB2:function(t,e,n){var r=n("UuGF"),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},h65t:function(t,e,n){var r=n("UuGF"),o=n("52gC");t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},hJx8:function(t,e,n){var r=n("evD5"),o=n("X8DO");t.exports=n("+E39")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},iUbK:function(t,e,n){var r=n("7KvD").navigator;t.exports=r&&r.userAgent||""},"jKW+":function(t,e,n){"use strict";var r=n("kM2E"),o=n("qARP"),i=n("dNDb");r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},jyFz:function(t,e,n){var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("SldL"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},kM2E:function(t,e,n){var r=n("7KvD"),o=n("FeBl"),i=n("+ZMJ"),a=n("hJx8"),s=n("D2L2"),c=function(t,e,n){var u,h,p,l=t&c.F,f=t&c.G,d=t&c.S,v=t&c.P,g=t&c.B,m=t&c.W,w=f?o:o[e]||(o[e]={}),x=w.prototype,y=f?r:d?r[e]:(r[e]||{}).prototype;for(u in f&&(n=e),n)(h=!l&&y&&void 0!==y[u])&&s(w,u)||(p=h?y[u]:n[u],w[u]=f&&"function"!=typeof y[u]?n[u]:g&&h?i(p,r):m&&y[u]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((w.virtual||(w.virtual={}))[u]=p,t&c.R&&x&&!x[u]&&a(x,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},knuC:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},lOnJ:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},lktj:function(t,e,n){var r=n("Ibhu"),o=n("xnc9");t.exports=Object.keys||function(t){return r(t,o)}},msXi:function(t,e,n){var r=n("77Pl");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},mvHQ:function(t,e,n){t.exports={default:n("qkKv"),__esModule:!0}},olhz:function(t,e){},qARP:function(t,e,n){"use strict";var r=n("lOnJ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},qio6:function(t,e,n){var r=n("evD5"),o=n("77Pl"),i=n("lktj");t.exports=n("+E39")?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},qkKv:function(t,e,n){var r=n("FeBl"),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},sB3e:function(t,e,n){var r=n("52gC");t.exports=function(t){return Object(r(t))}},t8x9:function(t,e,n){var r=n("77Pl"),o=n("lOnJ"),i=n("dSzd")("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},"vFc/":function(t,e,n){var r=n("TcQ7"),o=n("QRG4"),i=n("fkB2");t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),h=i(a,u);if(t&&n!=n){for(;u>h;)if((s=c[h++])!=s)return!0}else for(;u>h;h++)if((t||h in c)&&c[h]===n)return t||h||0;return!t&&-1}}},"vIB/":function(t,e,n){"use strict";var r=n("O4g8"),o=n("kM2E"),i=n("880/"),a=n("hJx8"),s=n("/bQp"),c=n("94VQ"),u=n("e6n0"),h=n("PzxK"),p=n("dSzd")("iterator"),l=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,d,v,g,m){c(n,e,d);var w,x,y,b=function(t){if(!l&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",L="values"==v,O=!1,S=t.prototype,k=S[p]||S["@@iterator"]||v&&S[v],A=k||b(v),I=v?L?b("entries"):A:void 0,M="Array"==e&&S.entries||k;if(M&&(y=h(M.call(new t)))!==Object.prototype&&y.next&&(u(y,C,!0),r||"function"==typeof y[p]||a(y,p,f)),L&&k&&"values"!==k.name&&(O=!0,A=function(){return k.call(this)}),r&&!m||!l&&!O&&S[p]||a(S,p,A),s[e]=A,s[C]=f,v)if(w={values:L?A:b("values"),keys:g?A:b("keys"),entries:I},m)for(x in w)x in S||i(S,x,w[x]);else o(o.P+o.F*(l||O),e,w);return w}},woOf:function(t,e,n){t.exports={default:n("V3tA"),__esModule:!0}},xGkn:function(t,e,n){"use strict";var r=n("4mcu"),o=n("EGZi"),i=n("/bQp"),a=n("TcQ7");t.exports=n("vIB/")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},"xH/j":function(t,e,n){var r=n("hJx8");t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},xnc9:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},zQR9:function(t,e,n){"use strict";var r=n("h65t")(!0);n("vIB/")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})}});
//# sourceMappingURL=0.b0bad9cb0c0b3df0da7d.js.map