/*! * * filerobot-uploader v2.15.3 * https://github.com/scaleflex/filerobot-uploader * * Copyright (c) 2019 scaleflex * Released under the MIT license * * Date: 2020-11-10T09:12:28.716Z * */ (window.webpackJsonp1604999548717=window.webpackJsonp1604999548717||[]).push([[5],{681:function(e,r,t){"use strict";t.r(r);var o=t(1),n=t.n(o),i=t(826),l=t.n(i),a=t(700);function u(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],o=!0,n=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(o=(l=a.next()).done)&&(t.push(l.value),!r||t.length!==r);o=!0);}catch(e){n=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(n)throw i}}return t}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return c(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return c(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;t.closeOnEdit?o():"TAGGING"===e?r(!0,"TAGGING","IMAGE_EDITOR"):r(!1)},b=function(e,r,t,o,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,c=[p(p({},t),{},{public_link:Object(a.c)(t)})];if(u(c,{stage:"edit"}),i.closeOnEdit)l();else if("TAGGING"===e){var s=[p(p({},t),{},{public_link:Object(a.c)(t)})];o(s),n(!0,"TAGGING")}else n(!1)},g=function(e){var r=e.appState,t=e.files,o=u(t=void 0===t?{}:t,1)[0],i=void 0===o?{}:o,c=e.path,s=e.saveUploadedFiles,d=e.setPostUpload,g=e.options,_=e.closeModal,O=r.prevTab,m=r.config,j=r.modifyURL,y=m.uploadKey,v=m.baseAPI,A=m.container,E=m.uploadParams,P=m.cloudimageToken,h=m.uploadHandler,k=m.language,T=m.imageEditorConfig,w=void 0===T?{}:T,D="gif"===Object(a.c)(i).slice(-3).toLowerCase(),I=Object(a.a)(i);return n.a.createElement(l.a,{show:!0,config:p(p({isLowQualityPreview:!0,colorScheme:"dark",language:k,processWithCloudimage:D||j,uploadWithCloudimageLink:j?!j:D},w),{},{filerobot:p({baseAPI:v,token:A,uploadKey:y,container:A,uploadParams:p(p({},E),{},{dir:c||E.dir},w.filerobot&&w.filerobot.uploadParams)},w.filerobot),cloudimage:p({token:P},w.cloudimage),showGoBackBtn:!0}),closeOnLoad:!1,src:I,onComplete:function(e){if(j){var r=[p(p({},i),{},{modified_url:e,public_link:Object(a.c)(i)})];h(r,{stage:"modify"}),_()}else b(O,e,i,s,d,g,_,h)},onClose:function(){f(O,d,g,_)},showInModal:!1})};r.default=g;"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(f,"goBack","D:\\Work\\Projects\\filerobot-uploader\\projects\\react-plugin\\components\\imageEditor\\ImageEditorWrapper.js"),__REACT_HOT_LOADER__.register(b,"uploadFiles","D:\\Work\\Projects\\filerobot-uploader\\projects\\react-plugin\\components\\imageEditor\\ImageEditorWrapper.js"),__REACT_HOT_LOADER__.register(g,"default","D:\\Work\\Projects\\filerobot-uploader\\projects\\react-plugin\\components\\imageEditor\\ImageEditorWrapper.js"))},700:function(e,r,t){"use strict";t.d(r,"b",(function(){return o})),t.d(r,"c",(function(){return n})),t.d(r,"a",(function(){return i}));var o=function(e){return e.url&&e.url.permalink?e.url.permalink:e.url_permalink?e.url_permalink:""},n=function(e){return e.url&&e.url.public?e.url.public:e.url_public?e.url_public:""},i=function(e){return e.url&&e.url.cdn?e.url.cdn:""};"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(o,"getPermalink","D:\\Work\\Projects\\filerobot-uploader\\projects\\react-plugin\\utils\\adjustAPI.utils.js"),__REACT_HOT_LOADER__.register(n,"getPubliclink","D:\\Work\\Projects\\filerobot-uploader\\projects\\react-plugin\\utils\\adjustAPI.utils.js"),__REACT_HOT_LOADER__.register(i,"getCDNlink","D:\\Work\\Projects\\filerobot-uploader\\projects\\react-plugin\\utils\\adjustAPI.utils.js"))}}]); //# sourceMappingURL=image-editor.min.js.map