diff --git a/pluginTester/scripts/framework/web.min.js b/pluginTester/scripts/framework/web.min.js index 8614c6ba..44d41932 100644 --- a/pluginTester/scripts/framework/web.min.js +++ b/pluginTester/scripts/framework/web.min.js @@ -1,4 +1,4 @@ -"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var a,i=Object.keys(t);return Object.getOwnPropertySymbols&&(a=Object.getOwnPropertySymbols(t),e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,a)),i}function _objectSpread(t){for(var e=1;e=i.scrollHeight&&e.$apply(a.scrolly)})}}}),$app.service("ImageLibService",["$http",function(n){var a=null,s=null;return{loadImages:function(i){var e,o=i.appId;function t(){return new Promise(function(t,a){var e="".concat(siteConfig.endPoints.datastoreHost,"/app/").concat(o,"/image");n.get(e,{params:i}).then(function(e){t(e?e.data:null)}).catch(function(e){a(e)})})}return void 0!==i.startIndex||i.startKey||(i.startIndex=0),0!=i.startIndex||i.startWith?t():(s&&(e=(new Date).getTime()-s.getTime(),30"+e+"",s=0,e=function(){s++;try{for(var e=r.styleSheets[r.styleSheets.length-1],t=e.rules||e.cssRules,a=[],i=0;il.generatedImages.length&&(l.activeIndex=1)},l.back=function(){l.activeIndex--,l.activeIndex<1&&(l.activeIndex=l.generatedImages.length)},l.generatedImages=[],l.activeIndex=1,l.uploadAIImageLoading=!1,l.generateAIImageStarted=!1,l.start=function(){l.createImageLoading=!0,l.aiImageGenerated=!1,l.aiImageGeneratingError=!1,l.imageLoaded=!1,g({method:"POST",url:"/api/app/".concat(imageLibCurrentApp.context.appId,"/ai/generateImage"),data:{prompt:k(),numberOfImages:1,size:"1024x1024",responseFormat:"url"}}).then(function(e){l.createImageLoading=!1,l.aiImageGenerated=!0,e&&e.data&&e.data.content&&l.generatedImages.push({url:function(e){switch(1 : \" / \\ | ? *":t&&!t.isFileExist?(o.errors=null,Object.defineProperty(o.data.newFile,"name",{writable:!0,value:a}),s.close({action:"rename",newFile:o.data.newFile})):o.errors.fileName="Name is already in use"},0!==(e=a).length&&(t="".concat(siteConfig.endPoints.datastoreHost,"/app/").concat(imageLibCurrentApp.context.appId,"/validateImage"),n.get(t,{params:{filename:e}}).success(function(e,t){i(null,e)}).error(function(e,t){console.error(e),i(e,null)})))}else o.errors.fileName="Image name cannot be empty";var e,i,t},o.replace=function(){o.close({action:"replace",newFile:o.data.newFile,existingFile:o.data.existingFile})},o.close=function(){s.close(0=i.scrollHeight&&e.$apply(a.scrolly)})}}}),$app.service("ImageLibService",["$http",function(n){var a=null,s=null;return{loadImages:function(i){var e,o=i.appId;function t(){return new Promise(function(t,a){var e="".concat(siteConfig.endPoints.datastoreHost,"/app/").concat(o,"/image");n.get(e,{params:i}).then(function(e){t(e?e.data:null)}).catch(function(e){a(e)})})}return void 0!==i.startIndex||i.startKey||(i.startIndex=0),0!=i.startIndex||i.startWith?t():(s&&(e=(new Date).getTime()-s.getTime(),30"+e+"",s=0,e=function(){s++;try{for(var e=r.styleSheets[r.styleSheets.length-1],t=e.rules||e.cssRules,a=[],i=0;il.generatedImages.length&&(l.activeIndex=1)},l.back=function(){l.activeIndex--,l.activeIndex<1&&(l.activeIndex=l.generatedImages.length)},l.generatedImages=[],l.activeIndex=1,l.uploadAIImageLoading=!1,l.generateAIImageStarted=!1,l.start=function(){l.createImageLoading=!0,l.aiImageGenerated=!1,l.aiImageGeneratingError=!1,l.imageLoaded=!1,g({method:"POST",url:"/api/app/".concat(imageLibCurrentApp.context.appId,"/ai/generateImage"),data:{prompt:k(),numberOfImages:1,size:"1024x1024",responseFormat:"url"}}).then(function(e){l.createImageLoading=!1,l.aiImageGenerated=!0,e&&e.data&&e.data.content&&l.generatedImages.push({url:function(e){switch(1 : \" / \\ | ? *":t&&!t.isFileExist?(o.errors=null,Object.defineProperty(o.data.newFile,"name",{writable:!0,value:a}),s.close({action:"rename",newFile:o.data.newFile})):o.errors.fileName="Name is already in use"},0!==(e=a).length&&(t="".concat(siteConfig.endPoints.datastoreHost,"/app/").concat(imageLibCurrentApp.context.appId,"/validateImage"),n.get(t,{params:{filename:e}}).success(function(e,t){i(null,e)}).error(function(e,t){console.error(e),i(e,null)})))}else o.errors.fileName="Image name cannot be empty";var e,i,t},o.replace=function(){o.close({action:"replace",newFile:o.data.newFile,existingFile:o.data.existingFile})},o.close=function(){s.close(0