(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/additionalFeatures/takePhoto"],{3473:function(e,t,n){"use strict";n.r(t);var r=n("8fce"),c=n("e66d");for(var a in c)"default"!==a&&function(e){n.d(t,e,(function(){return c[e]}))}(a);n("c79c");var o,u=n("f0c5"),i=Object(u["a"])(c["default"],r["b"],r["c"],!1,null,"e5304f46",null,!1,r["a"],o);t["default"]=i.exports},"545c":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("2f62");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={data:function(){return{src:""}},methods:a(a({},(0,r.mapMutations)(["setPhoto"])),{},{error:function(e){console.log(e)},takePhoto:function(){var t=this;if(this.src)this.backPage();else{var n=e.createCameraContext();n.takePhoto({quality:"low",success:function(e){t.src=e.tempImagePath}})}},backPage:function(){var t=this;e.getFileSystemManager().readFile({filePath:this.src,encoding:"base64",success:function(n){var r=n.data.replace(/\+/gi,"%2B");t.setPhoto(r),e.navigateBack({delta:1})}})}})};t.default=u}).call(this,n("543d")["default"])},"61f2":function(e,t,n){"use strict";(function(e){n("40da");r(n("66fd"));var t=r(n("3473"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"8fce":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var c=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.src=null})},a=[]},c5a3:function(e,t,n){},c79c:function(e,t,n){"use strict";var r=n("c5a3"),c=n.n(r);c.a},e66d:function(e,t,n){"use strict";n.r(t);var r=n("545c"),c=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=c.a}},[["61f2","common/runtime","common/vendor"]]]);