@aurigma/ng-design-atoms-api-client 2.39.5 → 2.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +631 -296
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/lib/design-atoms-api-client.js +285 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +285 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +72 -0
- package/package.json +1 -1
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var a=function(e,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])})(e,r)};function s(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}a(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}function p(e,r,t,n){return new(t||(t=Promise))((function(o,a){function s(e){try{i(n.next(e))}catch(e){a(e)}}function p(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(s,p)}i((n=n.apply(e,r||[])).next())}))}function i(e,r){var t,n,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function p(a){return function(p){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=r.call(e,s)}catch(e){a=[6,e],n=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,p])}}}Object.create;function u(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var c=new r.InjectionToken("API_BASE_URL"),l=function(){function e(){this.apiUrl="http://localhost:54220",this.apiKey="ApiKey",this.authorizationToken=null}return e.prototype.getAuthorizationToken=function(){return p(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.authorizationToken]}))}))},e.prototype.setAuthorizationToken=function(e){this.authorizationToken=e},e}(),f=function(){function e(e){this.configuration=e}return e.prototype.transformOptions=function(e){return p(this,void 0,void 0,(function(){var r;return i(this,(function(t){switch(t.label){case 0:return[4,this.configuration.getAuthorizationToken()];case 1:return r=t.sent(),e.headers=null!=r?e.headers.append("authorization","Bearer "+r):e.headers.append("X-API-Key",this.configuration.apiKey),[2,e]}}))}))},e.prototype.getBaseUrl=function(e){return this.configuration.apiUrl.endsWith("/")?this.configuration.apiUrl.slice(0,-1):this.configuration.apiUrl},e.prototype.transformResult=function(e,r,t){return t(r)},e}(),d=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.headInfo=function(){var e=this,r=this.baseUrl+"/api/atoms/v1/info";r=r.replace(/[?&]$/,"");var a={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(a)).pipe(t.mergeMap((function(t){return e.http.request("head",r,t)}))).pipe(t.mergeMap((function(t){return e.transformResult(r,t,(function(r){return e.processHeadInfo(r)}))}))).pipe(t.catchError((function(t){if(!(t instanceof o.HttpResponseBase))return n.throwError(t);try{return e.transformResult(r,t,(function(r){return e.processHeadInfo(r)}))}catch(e){return n.throwError(e)}})))},r.prototype.processHeadInfo=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){return n.of(null)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getInfo=function(){var e=this,r=this.baseUrl+"/api/atoms/v1/info";r=r.replace(/[?&]$/,"");var a={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(a)).pipe(t.mergeMap((function(t){return e.http.request("get",r,t)}))).pipe(t.mergeMap((function(t){return e.transformResult(r,t,(function(r){return e.processGetInfo(r)}))}))).pipe(t.catchError((function(t){if(!(t instanceof o.HttpResponseBase))return n.throwError(t);try{return e.transformResult(r,t,(function(r){return e.processGetInfo(r)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetInfo=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);d.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new d(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:d,providedIn:"root"}),d.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],d.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var v=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.cssFonts=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/cssfonts";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processCssFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processCssFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCssFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.fonts=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/fonts/{psName}";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");if(s=s.replace("{tenantId}",encodeURIComponent(""+e)),null==r)throw new Error("The parameter 'psName' must be defined.");s=(s=s.replace("{psName}",encodeURIComponent(""+r))).replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getCssFont=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetCssFont?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="fontKey="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetCssFont(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetCssFont(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetCssFont=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getFallbackFonts=function(e){var r=this,a=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetFallbackFonts";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");a=(a=a.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return r.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(a,e,(function(e){return r.processGetFallbackFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(a,e,(function(e){return r.processGetFallbackFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetFallbackFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getImageSize=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetImageSize";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetImageSize(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetImageSize(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetImageSize=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getShapeBounds=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetShapeBounds";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetShapeBounds(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetShapeBounds(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetShapeBounds=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getWatermarkItems=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetWatermarkItems";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetWatermarkItems(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetWatermarkItems(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetWatermarkItems=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.img=function(e,r,a,s,p,i,u,c,l,f,d,v,h,m,y,g,b){var R=this,I=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/img?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");I=I.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(I+="f="+encodeURIComponent(""+r)+"&"),null!=a&&(I+="w="+encodeURIComponent(""+a)+"&"),null!=s&&(I+="h="+encodeURIComponent(""+s)+"&"),null!=p&&(I+="cmyk="+encodeURIComponent(""+p)+"&"),null!=i&&(I+="rgb="+encodeURIComponent(""+i)+"&"),null!=u&&(I+="grayscale="+encodeURIComponent(""+u)+"&"),null!=c&&(I+="target="+encodeURIComponent(""+c)+"&"),null!=l&&(I+="sq="+encodeURIComponent(""+l)+"&"),null!=f&&(I+="effect="+encodeURIComponent(""+f)+"&"),null!=d&&(I+="kp="+encodeURIComponent(""+d)+"&"),null!=v&&(I+="color="+encodeURIComponent(""+v)+"&"),null!=h&&(I+="obm="+encodeURIComponent(""+h)+"&"),null!=m&&(I+="oo="+encodeURIComponent(""+m)+"&"),null!=y&&(I+="alphaMask="+encodeURIComponent(""+y)+"&"),null!=g&&(I+="page="+encodeURIComponent(""+g)+"&"),null!=b&&(I+="colorizeColor="+encodeURIComponent(""+b)+"&"),I=I.replace(/[?&]$/,"");var w={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(w)).pipe(t.mergeMap((function(e){return R.http.request("get",I,e)}))).pipe(t.mergeMap((function(e){return R.transformResult(I,e,(function(e){return R.processImg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return R.transformResult(I,e,(function(e){return R.processImg(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processImg=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?j(i).pipe(t.mergeMap((function(e){return E("Not Modified",p,e,c)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getLicense=function(e){var r=this,a=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/license";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");a=(a=a.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return r.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(a,e,(function(e){return r.processGetLicense(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(a,e,(function(e){return r.processGetLicense(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetLicense=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.pth=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/pth?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="f="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processPth(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processPth(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processPth=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?j(i).pipe(t.mergeMap((function(e){return E("Not Modified",p,e,c)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.resource=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/resource?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="image="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processResource(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processResource(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processResource=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.svg=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/svg?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="f="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processSvg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processSvg(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSvg=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?j(i).pipe(t.mergeMap((function(e){return E("Not Modified",p,e,c)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.txt=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/txt?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="f="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processTxt(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processTxt(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processTxt=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?j(i).pipe(t.mergeMap((function(e){return E("Not Modified",p,e,c)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateArchedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateArchedTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateArchedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateArchedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateArchedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateAutoScaledTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateAutoScaledTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateAutoScaledTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateAutoScaledTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateAutoScaledTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateBarcodeItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateBarcodeItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateBarcodeItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateBarcodeItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateBarcodeItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateBoundedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateBoundedTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateBoundedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateBoundedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateBoundedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateByColorData=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateByColorData";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateByColorData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateByColorData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateByColorData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateByMultiCallRequest=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateByMultiCallRequest";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateByMultiCallRequest(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateByMultiCallRequest(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateByMultiCallRequest=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateCurvedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateCurvedTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateCurvedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateCurvedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateCurvedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateImageItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateImageItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateImageItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateImageItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateImageItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updatePathBoundedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdatePathBoundedTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdatePathBoundedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdatePathBoundedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdatePathBoundedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updatePlainTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdatePlainTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdatePlainTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdatePlainTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdatePlainTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateShapeItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateShapeItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateShapeItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateShapeItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateShapeItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);v.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new v(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:v,providedIn:"root"}),v.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],v.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var h=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.renderImagePreview=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/images/render-image-preview?";if(null!=e&&(p+="attachment="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var i={body:JSON.stringify(a),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/octet-stream"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processRenderImagePreview(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return s.transformResult(p,e,(function(e){return s.processRenderImagePreview(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRenderImagePreview=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);h.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new h(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:h,providedIn:"root"}),h.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],h.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var m=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.getContentAsProtobuf=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/mockups-3d/{id}/content/as-protobuf?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(s=s.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetContentAsProtobuf(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetContentAsProtobuf(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetContentAsProtobuf=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):422===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Client Error",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getGeometryFile=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/mockups-3d/{id}/geometry/file?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(s=s.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetGeometryFile(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetGeometryFile(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetGeometryFile=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):422===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Client Error",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);m.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new m(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:m,providedIn:"root"}),m.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],m.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var y=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.convertColors=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/colorConverter?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processConvertColors(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processConvertColors(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processConvertColors=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.createDesign=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs?";if(null!=e&&(i+="privateStorage="+encodeURIComponent(""+e)+"&"),null!=r&&(i+="privateStorageOwner="+encodeURIComponent(""+r)+"&"),null===a)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==a&&(i+="tenantId="+encodeURIComponent(""+a)+"&"),i=i.replace(/[?&]$/,"");var u={body:JSON.stringify(s),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("post",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processCreateDesign(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processCreateDesign(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreateDesign=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 201===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.extractBackground=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/background?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="surfaceIndex="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processExtractBackground(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processExtractBackground(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processExtractBackground=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):422===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Client Error",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadProduct=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processLoadProduct(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processLoadProduct(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processLoadProduct=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.saveProduct=function(e,r,a,s,p){var i=this,u=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(u=u.replace("{id}",encodeURIComponent(""+e)),null!=r&&(u+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(u+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(u+="tenantId="+encodeURIComponent(""+s)+"&"),u=u.replace(/[?&]$/,"");var c={body:JSON.stringify(p),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json"})};return n.from(this.transformOptions(c)).pipe(t.mergeMap((function(e){return i.http.request("put",u,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(u,e,(function(e){return i.processSaveProduct(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(u,e,(function(e){return i.processSaveProduct(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSaveProduct=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.patchProduct=function(e,r,a,s,p,i,u,c,l,f){var d=this,v=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(v=v.replace("{id}",encodeURIComponent(""+e)),null!=r&&(v+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(v+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(v+="tenantId="+encodeURIComponent(""+s)+"&"),v=v.replace(/[?&]$/,"");var h=new FormData;if(null==p)throw new Error("The parameter 'patchType' cannot be null.");if(h.append("patchType",p.toString()),null!=i&&h.append("replaceImageItemFileInfo.itemName",i.toString()),null!=u&&h.append("replaceImageItemFileInfo.sourceFile",u.data,u.fileName?u.fileName:"replaceImageItemFileInfo.sourceFile"),null!=c&&h.append("replacePlaceholderItemContentInfo.placeholderItemName",c.toString()),null==l)throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");h.append("replacePlaceholderItemContentInfo.newContentType",l.toString()),null!=f&&h.append("replacePlaceholderItemContentInfo.sourceFile",f.data,f.fileName?f.fileName:"replacePlaceholderItemContentInfo.sourceFile");var m={body:h,observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(m)).pipe(t.mergeMap((function(e){return d.http.request("patch",v,e)}))).pipe(t.mergeMap((function(e){return d.transformResult(v,e,(function(e){return d.processPatchProduct(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return d.transformResult(v,e,(function(e){return d.processPatchProduct(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processPatchProduct=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadDataSchema=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/schema?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processLoadDataSchema(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processLoadDataSchema(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processLoadDataSchema=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):409===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Conflict",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getVariables=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processGetVariables(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processGetVariables(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetVariables=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.setVariables=function(e,r,a,s,p){var i=this,u=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(u=u.replace("{id}",encodeURIComponent(""+e)),null!=r&&(u+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(u+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(u+="tenantId="+encodeURIComponent(""+s)+"&"),u=u.replace(/[?&]$/,"");var c={body:JSON.stringify(p),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json"})};return n.from(this.transformOptions(c)).pipe(t.mergeMap((function(e){return i.http.request("put",u,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(u,e,(function(e){return i.processSetVariables(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(u,e,(function(e){return i.processSetVariables(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSetVariables=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):409===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Conflict",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadVdpData=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processLoadVdpData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processLoadVdpData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processLoadVdpData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):409===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Conflict",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.saveVdpData=function(e,r,a,s,p){var i=this,u=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(u=u.replace("{id}",encodeURIComponent(""+e)),null!=r&&(u+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(u+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(u+="tenantId="+encodeURIComponent(""+s)+"&"),u=u.replace(/[?&]$/,"");var c={body:JSON.stringify(p),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json"})};return n.from(this.transformOptions(c)).pipe(t.mergeMap((function(e){return i.http.request("put",u,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(u,e,(function(e){return i.processSaveVdpData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(u,e,(function(e){return i.processSaveVdpData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSaveVdpData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.deleteVdpData=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("delete",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processDeleteVdpData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processDeleteVdpData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processDeleteVdpData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){return n.of(null)}))):409===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Conflict",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.flattenItems=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/flatten?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processFlattenItems(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processFlattenItems(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processFlattenItems=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.createItem=function(e,r,a,s,p,i){var u=this,c=this.baseUrl+"/api/atoms/v1/itemCreator?";if(null!=e&&(c+="itemType="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(c+="tenantId="+encodeURIComponent(""+r)+"&"),c=c.replace(/[?&]$/,"");var l=new FormData;null!=a&&l.append("sourceType",a.toString()),null!=s&&l.append("sourceId",s.toString()),null!=p&&l.append("sourceOwnerId",p.toString()),null!=i&&l.append("sourceFile",i.data,i.fileName?i.fileName:"sourceFile");var f={body:l,observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(f)).pipe(t.mergeMap((function(e){return u.http.request("post",c,e)}))).pipe(t.mergeMap((function(e){return u.transformResult(c,e,(function(e){return u.processCreateItem(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return u.transformResult(c,e,(function(e){return u.processCreateItem(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreateItem=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.createPrivateDesignFromDesign=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/private-designs/from-design?";if(null!=e&&(i+="designId="+encodeURIComponent(""+e)+"&"),null!=r&&(i+="privateDesignId="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("post",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processCreatePrivateDesignFromDesign(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processCreatePrivateDesignFromDesign(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreatePrivateDesignFromDesign=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 201===p?j(i).pipe(t.mergeMap((function(e){return n.of(null)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.createPrivateDesignFromResource=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/private-designs/from-resource?";if(null!=e&&(i+="resourceId="+encodeURIComponent(""+e)+"&"),null!=r&&(i+="privateDesignId="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("post",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processCreatePrivateDesignFromResource(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processCreatePrivateDesignFromResource(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreatePrivateDesignFromResource=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 201===p?j(i).pipe(t.mergeMap((function(e){return n.of(null)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.renderDesignPreview=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/render-design-preview?";if(null!=e&&(p+="attachment="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var i={body:JSON.stringify(a),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/octet-stream"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processRenderDesignPreview(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return s.transformResult(p,e,(function(e){return s.processRenderDesignPreview(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRenderDesignPreview=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.renderDesignProof=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/render-design-proof?";if(null!=e&&(p+="attachment="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var i={body:JSON.stringify(a),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/octet-stream"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processRenderDesignProof(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return s.transformResult(p,e,(function(e){return s.processRenderDesignProof(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRenderDesignProof=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.renderProduct=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/renderer?";if(null!=e&&(p+="attachment="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var i={body:JSON.stringify(a),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/octet-stream"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processRenderProduct(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return s.transformResult(p,e,(function(e){return s.processRenderProduct(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRenderProduct=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadProductFromResource=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/resources/{id}/as-design/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processLoadProductFromResource(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processLoadProductFromResource(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processLoadProductFromResource=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):422===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Client Error",p,e,c,r)}))):401===p?j(i).pipe(t.mergeMap((function(e){return E("Unauthorized",p,e,c)}))):403===p?j(i).pipe(t.mergeMap((function(e){return E("Forbidden",p,e,c)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);y.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new y(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:y,providedIn:"root"}),y.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],y.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var g,b,R,I,w,M,H,U,x=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.cssFonts=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/cssfonts?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processCssFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processCssFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCssFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.fonts=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/fonts/{psName}?";if(null==e)throw new Error("The parameter 'psName' must be defined.");if(s=s.replace("{psName}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getCssFont=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetCssFont?";if(null!=e&&(s+="fontKey="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetCssFont(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetCssFont(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetCssFont=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getFallbackFonts=function(e){var r=this,a=this.baseUrl+"/api/atoms/v1/ccviewer/GetFallbackFonts?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(a+="tenantId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return r.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(a,e,(function(e){return r.processGetFallbackFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(a,e,(function(e){return r.processGetFallbackFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetFallbackFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getImageSize=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetImageSize?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetImageSize(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetImageSize(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetImageSize=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getShapeBounds=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetShapeBounds?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetShapeBounds(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetShapeBounds(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetShapeBounds=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getWatermarkItems=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetWatermarkItems?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetWatermarkItems(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetWatermarkItems(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetWatermarkItems=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.img=function(e,r,a,s,p,i,u,c,l,f,d,v,h,m,y,g,b){var R=this,I=this.baseUrl+"/api/atoms/v1/ccviewer/img?";if(null!=e&&(I+="f="+encodeURIComponent(""+e)+"&"),null!=r&&(I+="w="+encodeURIComponent(""+r)+"&"),null!=a&&(I+="h="+encodeURIComponent(""+a)+"&"),null!=s&&(I+="cmyk="+encodeURIComponent(""+s)+"&"),null!=p&&(I+="rgb="+encodeURIComponent(""+p)+"&"),null!=i&&(I+="grayscale="+encodeURIComponent(""+i)+"&"),null!=u&&(I+="target="+encodeURIComponent(""+u)+"&"),null!=c&&(I+="sq="+encodeURIComponent(""+c)+"&"),null!=l&&(I+="effect="+encodeURIComponent(""+l)+"&"),null!=f&&(I+="kp="+encodeURIComponent(""+f)+"&"),null!=d&&(I+="color="+encodeURIComponent(""+d)+"&"),null!=v&&(I+="obm="+encodeURIComponent(""+v)+"&"),null!=h&&(I+="oo="+encodeURIComponent(""+h)+"&"),null!=m&&(I+="alphaMask="+encodeURIComponent(""+m)+"&"),null!=y&&(I+="page="+encodeURIComponent(""+y)+"&"),null!=g&&(I+="colorizeColor="+encodeURIComponent(""+g)+"&"),null===b)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==b&&(I+="tenantId="+encodeURIComponent(""+b)+"&"),I=I.replace(/[?&]$/,"");var w={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(w)).pipe(t.mergeMap((function(e){return R.http.request("get",I,e)}))).pipe(t.mergeMap((function(e){return R.transformResult(I,e,(function(e){return R.processImg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return R.transformResult(I,e,(function(e){return R.processImg(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processImg=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?j(i).pipe(t.mergeMap((function(e){return E("Not Modified",p,e,c)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getLicense=function(e){var r=this,a=this.baseUrl+"/api/atoms/v1/ccviewer/license?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(a+="tenantId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return r.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(a,e,(function(e){return r.processGetLicense(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(a,e,(function(e){return r.processGetLicense(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetLicense=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.pth=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/pth?";if(null!=e&&(s+="f="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processPth(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processPth(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processPth=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?j(i).pipe(t.mergeMap((function(e){return E("Not Modified",p,e,c)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.resource=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/resource?";if(null!=e&&(s+="image="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processResource(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processResource(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processResource=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.svg=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/svg?";if(null!=e&&(s+="f="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processSvg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processSvg(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSvg=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?j(i).pipe(t.mergeMap((function(e){return E("Not Modified",p,e,c)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.txt=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/txt?";if(null!=e&&(s+="f="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processTxt(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processTxt(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processTxt=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?j(i).pipe(t.mergeMap((function(e){return E("Not Modified",p,e,c)}))):404===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Not Found",p,e,c,r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateArchedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateArchedTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateArchedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateArchedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateArchedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateAutoScaledTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateAutoScaledTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateAutoScaledTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateAutoScaledTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateAutoScaledTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateBarcodeItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateBarcodeItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateBarcodeItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateBarcodeItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateBarcodeItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateBoundedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateBoundedTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateBoundedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateBoundedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateBoundedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateByColorData=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateByColorData?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateByColorData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateByColorData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateByColorData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateByMultiCallRequest=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateByMultiCallRequest?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateByMultiCallRequest(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateByMultiCallRequest(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateByMultiCallRequest=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateCurvedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateCurvedTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateCurvedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateCurvedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateCurvedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateImageItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateImageItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateImageItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateImageItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateImageItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updatePathBoundedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdatePathBoundedTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdatePathBoundedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdatePathBoundedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdatePathBoundedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updatePlainTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdatePlainTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdatePlainTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdatePlainTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdatePlainTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateShapeItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateShapeItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateShapeItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateShapeItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateShapeItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?j(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),E("Internal server error",p,e,c,r)}))):200!==p&&204!==p?j(i).pipe(t.mergeMap((function(e){return E("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);x.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new x(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:x,providedIn:"root"}),x.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],x.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]},(g=e.ImagePreviewFormat||(e.ImagePreviewFormat={})).Jpeg="Jpeg",g.Png="Png",g.Tiff="Tiff",g.Pdf="Pdf",(b=e.DesignElementType||(e.DesignElementType={})).Product="Product",b.Design="Design",b.Surface="Surface",b.Container="Container",b.PrintArea="PrintArea",b.Item="Item",(R=e.ProductPatchType||(e.ProductPatchType={})).Undefined="Undefined",R.ReplaceImageItemFile="ReplaceImageItemFile",R.ReplacePlaceholderItemContent="ReplacePlaceholderItemContent",(e.PlaceholderItemContentType||(e.PlaceholderItemContentType={})).Image="Image",(I=e.ItemType||(e.ItemType={})).Image="Image",I.Shape="Shape",I.Clipart="Clipart",I.Group="Group",(w=e.ItemSourceType||(e.ItemSourceType={})).File="File",w.ImageStorage="ImageStorage",w.PrivateImageStorage="PrivateImageStorage",(M=e.ProductPreviewFormat||(e.ProductPreviewFormat={})).Jpeg="Jpeg",M.Png="Png",M.Tiff="Tiff",M.Pdf="Pdf",(H=e.ProductProofFormat||(e.ProductProofFormat={})).Jpeg="Jpeg",H.Png="Png",H.Tiff="Tiff",H.Pdf="Pdf",(U=e.ProductProofInterpolationMode||(e.ProductProofInterpolationMode={})).High="High",U.Medium="Medium",U.Low="Low",U.NearestNeighbour="NearestNeighbour",U.Linear="Linear",U.Cubic="Cubic",U.Supersampling="Supersampling",U.Lanczos="Lanczos",U.Anisotropic4="Anisotropic4",U.Anisotropic9="Anisotropic9",U.Lanczos3="Lanczos3";var C=function(e){function r(r,t,n,o,a){var s=e.call(this)||this;return s.isApiException=!0,s.message=r,s.status=t,s.response=n,s.headers=o,s.result=a,s}return s(r,e),r.isApiException=function(e){return!0===e.isApiException},r}(Error);function E(e,r,t,o,a){return null!=a?n.throwError(a):n.throwError(new C(e,r,t,o,null))}function j(e){return new n.Observable((function(r){if(e){var t=new FileReader;t.onload=function(e){r.next(e.target.result),r.complete()},t.readAsText(e)}else r.next(""),r.complete()}))}function S(e,r,t){void 0===t&&(t="ApiKey");var n=new l;return n.apiKey=t,n.apiUrl=r,n.setAuthorizationToken(e),n}var T=function(){function e(){}return e.forRoot=function(r,t,n){return void 0===n&&(n="ApiKey"),{ngModule:e,providers:[{provide:c,useValue:t},{provide:l,useFactory:S.bind(this,r,t,n)}]}},e}();T.decorators=[{type:r.NgModule,args:[{declarations:[],imports:[],exports:[]}]}],e.API_BASE_URL=c,e.ApiClientBase=f,e.ApiClientConfiguration=l,e.ApiException=C,e.BuildInfoApiClient=d,e.CreateApiClientConfiguration=S,e.DesignAtomsApiModule=T,e.DesignAtomsCompatibilityApiClient=v,e.DesignAtomsImagesApiClient=h,e.DesignAtomsMockups3dApiClient=m,e.DesignAtomsServiceApiClient=y,e.DesignAtomsViewerApiClient=x,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var a=function(e,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])})(e,r)};function s(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}a(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}function p(e,r,t,n){return new(t||(t=Promise))((function(o,a){function s(e){try{i(n.next(e))}catch(e){a(e)}}function p(e){try{i(n.throw(e))}catch(e){a(e)}}function i(e){var r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(s,p)}i((n=n.apply(e,r||[])).next())}))}function i(e,r){var t,n,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function p(a){return function(p){return function(a){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=r.call(e,s)}catch(e){a=[6,e],n=0}finally{t=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,p])}}}Object.create;function u(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}Object.create;var c=new r.InjectionToken("API_BASE_URL"),l=function(){function e(){this.apiUrl="http://localhost:54220",this.apiKey="ApiKey",this.authorizationToken=null}return e.prototype.getAuthorizationToken=function(){return p(this,void 0,void 0,(function(){return i(this,(function(e){return[2,this.authorizationToken]}))}))},e.prototype.setAuthorizationToken=function(e){this.authorizationToken=e},e}(),f=function(){function e(e){this.configuration=e}return e.prototype.transformOptions=function(e){return p(this,void 0,void 0,(function(){var r;return i(this,(function(t){switch(t.label){case 0:return[4,this.configuration.getAuthorizationToken()];case 1:return r=t.sent(),e.headers=null!=r?e.headers.append("authorization","Bearer "+r):e.headers.append("X-API-Key",this.configuration.apiKey),[2,e]}}))}))},e.prototype.getBaseUrl=function(e){return this.configuration.apiUrl.endsWith("/")?this.configuration.apiUrl.slice(0,-1):this.configuration.apiUrl},e.prototype.transformResult=function(e,r,t){return t(r)},e}(),d=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.headInfo=function(){var e=this,r=this.baseUrl+"/api/atoms/v1/info";r=r.replace(/[?&]$/,"");var a={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(a)).pipe(t.mergeMap((function(t){return e.http.request("head",r,t)}))).pipe(t.mergeMap((function(t){return e.transformResult(r,t,(function(r){return e.processHeadInfo(r)}))}))).pipe(t.catchError((function(t){if(!(t instanceof o.HttpResponseBase))return n.throwError(t);try{return e.transformResult(r,t,(function(r){return e.processHeadInfo(r)}))}catch(e){return n.throwError(e)}})))},r.prototype.processHeadInfo=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){return n.of(null)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getInfo=function(){var e=this,r=this.baseUrl+"/api/atoms/v1/info";r=r.replace(/[?&]$/,"");var a={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(a)).pipe(t.mergeMap((function(t){return e.http.request("get",r,t)}))).pipe(t.mergeMap((function(t){return e.transformResult(r,t,(function(r){return e.processGetInfo(r)}))}))).pipe(t.catchError((function(t){if(!(t instanceof o.HttpResponseBase))return n.throwError(t);try{return e.transformResult(r,t,(function(r){return e.processGetInfo(r)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetInfo=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);d.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new d(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:d,providedIn:"root"}),d.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],d.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var v=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.cssFonts=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/cssfonts";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processCssFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processCssFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCssFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.fonts=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/fonts/{psName}";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");if(s=s.replace("{tenantId}",encodeURIComponent(""+e)),null==r)throw new Error("The parameter 'psName' must be defined.");s=(s=s.replace("{psName}",encodeURIComponent(""+r))).replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getColorPreview=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetColorPreview";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetColorPreview(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetColorPreview(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetColorPreview=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getColorPreviews=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetColorPreviews";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetColorPreviews(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetColorPreviews(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetColorPreviews=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getCssFont=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetCssFont?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="fontKey="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetCssFont(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetCssFont(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetCssFont=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getFallbackFonts=function(e){var r=this,a=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetFallbackFonts";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");a=(a=a.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return r.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(a,e,(function(e){return r.processGetFallbackFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(a,e,(function(e){return r.processGetFallbackFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetFallbackFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getImageSize=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetImageSize";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetImageSize(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetImageSize(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetImageSize=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getShapeBounds=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetShapeBounds";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetShapeBounds(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetShapeBounds(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetShapeBounds=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getWatermarkItems=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetWatermarkItems";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetWatermarkItems(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetWatermarkItems(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetWatermarkItems=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.img=function(e,r,a,s,p,i,u,c,l,f,d,v,h,m,y,g,b){var R=this,I=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/img?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");I=I.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(I+="f="+encodeURIComponent(""+r)+"&"),null!=a&&(I+="w="+encodeURIComponent(""+a)+"&"),null!=s&&(I+="h="+encodeURIComponent(""+s)+"&"),null!=p&&(I+="cmyk="+encodeURIComponent(""+p)+"&"),null!=i&&(I+="rgb="+encodeURIComponent(""+i)+"&"),null!=u&&(I+="grayscale="+encodeURIComponent(""+u)+"&"),null!=c&&(I+="target="+encodeURIComponent(""+c)+"&"),null!=l&&(I+="sq="+encodeURIComponent(""+l)+"&"),null!=f&&(I+="effect="+encodeURIComponent(""+f)+"&"),null!=d&&(I+="kp="+encodeURIComponent(""+d)+"&"),null!=v&&(I+="color="+encodeURIComponent(""+v)+"&"),null!=h&&(I+="obm="+encodeURIComponent(""+h)+"&"),null!=m&&(I+="oo="+encodeURIComponent(""+m)+"&"),null!=y&&(I+="alphaMask="+encodeURIComponent(""+y)+"&"),null!=g&&(I+="page="+encodeURIComponent(""+g)+"&"),null!=b&&(I+="colorizeColor="+encodeURIComponent(""+b)+"&"),I=I.replace(/[?&]$/,"");var w={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(w)).pipe(t.mergeMap((function(e){return R.http.request("get",I,e)}))).pipe(t.mergeMap((function(e){return R.transformResult(I,e,(function(e){return R.processImg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return R.transformResult(I,e,(function(e){return R.processImg(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processImg=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?S(i).pipe(t.mergeMap((function(e){return j("Not Modified",p,e,c)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getLicense=function(e){var r=this,a=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/license";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");a=(a=a.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return r.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(a,e,(function(e){return r.processGetLicense(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(a,e,(function(e){return r.processGetLicense(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetLicense=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.pth=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/pth?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="f="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processPth(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processPth(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processPth=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?S(i).pipe(t.mergeMap((function(e){return j("Not Modified",p,e,c)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.resource=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/resource?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="image="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processResource(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processResource(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processResource=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.svg=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/svg?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="f="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processSvg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processSvg(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSvg=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?S(i).pipe(t.mergeMap((function(e){return j("Not Modified",p,e,c)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.txt=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/txt?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=s.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(s+="f="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processTxt(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processTxt(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processTxt=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?S(i).pipe(t.mergeMap((function(e){return j("Not Modified",p,e,c)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateArchedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateArchedTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateArchedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateArchedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateArchedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateAutoScaledTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateAutoScaledTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateAutoScaledTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateAutoScaledTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateAutoScaledTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateBarcodeItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateBarcodeItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateBarcodeItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateBarcodeItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateBarcodeItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateBoundedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateBoundedTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateBoundedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateBoundedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateBoundedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateByColorData=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateByColorData";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateByColorData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateByColorData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateByColorData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateByMultiCallRequest=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateByMultiCallRequest";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateByMultiCallRequest(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateByMultiCallRequest(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateByMultiCallRequest=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateCurvedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateCurvedTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateCurvedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateCurvedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateCurvedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateImageItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateImageItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateImageItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateImageItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateImageItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updatePathBoundedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdatePathBoundedTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdatePathBoundedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdatePathBoundedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdatePathBoundedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updatePlainTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdatePlainTextItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdatePlainTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdatePlainTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdatePlainTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateShapeItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/UpdateShapeItemHandler";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");s=(s=s.replace("{tenantId}",encodeURIComponent(""+e))).replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateShapeItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateShapeItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateShapeItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);v.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new v(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:v,providedIn:"root"}),v.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],v.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var h=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.renderImagePreview=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/images/render-image-preview?";if(null!=e&&(p+="attachment="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var i={body:JSON.stringify(a),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/octet-stream"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processRenderImagePreview(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return s.transformResult(p,e,(function(e){return s.processRenderImagePreview(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRenderImagePreview=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);h.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new h(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:h,providedIn:"root"}),h.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],h.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var m=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.getContentAsProtobuf=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/mockups-3d/{id}/content/as-protobuf?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(s=s.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetContentAsProtobuf(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetContentAsProtobuf(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetContentAsProtobuf=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):422===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Client Error",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getGeometryFile=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/mockups-3d/{id}/geometry/file?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(s=s.replace("{id}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetGeometryFile(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetGeometryFile(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetGeometryFile=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):422===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Client Error",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);m.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new m(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:m,providedIn:"root"}),m.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],m.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var y=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.convertColors=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/colorConverter?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processConvertColors(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processConvertColors(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processConvertColors=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.createDesign=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs?";if(null!=e&&(i+="privateStorage="+encodeURIComponent(""+e)+"&"),null!=r&&(i+="privateStorageOwner="+encodeURIComponent(""+r)+"&"),null===a)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==a&&(i+="tenantId="+encodeURIComponent(""+a)+"&"),i=i.replace(/[?&]$/,"");var u={body:JSON.stringify(s),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("post",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processCreateDesign(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processCreateDesign(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreateDesign=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 201===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.extractBackground=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/background?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="surfaceIndex="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processExtractBackground(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processExtractBackground(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processExtractBackground=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):422===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Client Error",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadProduct=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processLoadProduct(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processLoadProduct(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processLoadProduct=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.saveProduct=function(e,r,a,s,p){var i=this,u=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(u=u.replace("{id}",encodeURIComponent(""+e)),null!=r&&(u+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(u+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(u+="tenantId="+encodeURIComponent(""+s)+"&"),u=u.replace(/[?&]$/,"");var c={body:JSON.stringify(p),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json"})};return n.from(this.transformOptions(c)).pipe(t.mergeMap((function(e){return i.http.request("put",u,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(u,e,(function(e){return i.processSaveProduct(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(u,e,(function(e){return i.processSaveProduct(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSaveProduct=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.patchProduct=function(e,r,a,s,p,i,u,c,l,f){var d=this,v=this.baseUrl+"/api/atoms/v1/designs/{id}/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(v=v.replace("{id}",encodeURIComponent(""+e)),null!=r&&(v+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(v+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(v+="tenantId="+encodeURIComponent(""+s)+"&"),v=v.replace(/[?&]$/,"");var h=new FormData;if(null==p)throw new Error("The parameter 'patchType' cannot be null.");if(h.append("patchType",p.toString()),null!=i&&h.append("replaceImageItemFileInfo.itemName",i.toString()),null!=u&&h.append("replaceImageItemFileInfo.sourceFile",u.data,u.fileName?u.fileName:"replaceImageItemFileInfo.sourceFile"),null!=c&&h.append("replacePlaceholderItemContentInfo.placeholderItemName",c.toString()),null==l)throw new Error("The parameter 'replacePlaceholderItemContentInfo_newContentType' cannot be null.");h.append("replacePlaceholderItemContentInfo.newContentType",l.toString()),null!=f&&h.append("replacePlaceholderItemContentInfo.sourceFile",f.data,f.fileName?f.fileName:"replacePlaceholderItemContentInfo.sourceFile");var m={body:h,observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(m)).pipe(t.mergeMap((function(e){return d.http.request("patch",v,e)}))).pipe(t.mergeMap((function(e){return d.transformResult(v,e,(function(e){return d.processPatchProduct(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return d.transformResult(v,e,(function(e){return d.processPatchProduct(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processPatchProduct=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadDataSchema=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/schema?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processLoadDataSchema(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processLoadDataSchema(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processLoadDataSchema=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):409===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Conflict",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getVariables=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processGetVariables(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processGetVariables(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetVariables=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.setVariables=function(e,r,a,s,p){var i=this,u=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(u=u.replace("{id}",encodeURIComponent(""+e)),null!=r&&(u+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(u+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(u+="tenantId="+encodeURIComponent(""+s)+"&"),u=u.replace(/[?&]$/,"");var c={body:JSON.stringify(p),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json"})};return n.from(this.transformOptions(c)).pipe(t.mergeMap((function(e){return i.http.request("put",u,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(u,e,(function(e){return i.processSetVariables(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(u,e,(function(e){return i.processSetVariables(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSetVariables=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):409===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Conflict",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadVdpData=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processLoadVdpData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processLoadVdpData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processLoadVdpData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):409===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Conflict",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.saveVdpData=function(e,r,a,s,p){var i=this,u=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(u=u.replace("{id}",encodeURIComponent(""+e)),null!=r&&(u+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(u+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(u+="tenantId="+encodeURIComponent(""+s)+"&"),u=u.replace(/[?&]$/,"");var c={body:JSON.stringify(p),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json"})};return n.from(this.transformOptions(c)).pipe(t.mergeMap((function(e){return i.http.request("put",u,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(u,e,(function(e){return i.processSaveVdpData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return i.transformResult(u,e,(function(e){return i.processSaveVdpData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSaveVdpData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.deleteVdpData=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("delete",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processDeleteVdpData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processDeleteVdpData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processDeleteVdpData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){return n.of(null)}))):409===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Conflict",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.flattenItems=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/flatten?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processFlattenItems(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processFlattenItems(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processFlattenItems=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.createItem=function(e,r,a,s,p,i){var u=this,c=this.baseUrl+"/api/atoms/v1/itemCreator?";if(null!=e&&(c+="itemType="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(c+="tenantId="+encodeURIComponent(""+r)+"&"),c=c.replace(/[?&]$/,"");var l=new FormData;null!=a&&l.append("sourceType",a.toString()),null!=s&&l.append("sourceId",s.toString()),null!=p&&l.append("sourceOwnerId",p.toString()),null!=i&&l.append("sourceFile",i.data,i.fileName?i.fileName:"sourceFile");var f={body:l,observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(f)).pipe(t.mergeMap((function(e){return u.http.request("post",c,e)}))).pipe(t.mergeMap((function(e){return u.transformResult(c,e,(function(e){return u.processCreateItem(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return u.transformResult(c,e,(function(e){return u.processCreateItem(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreateItem=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.createPrivateDesignFromDesign=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/private-designs/from-design?";if(null!=e&&(i+="designId="+encodeURIComponent(""+e)+"&"),null!=r&&(i+="privateDesignId="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("post",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processCreatePrivateDesignFromDesign(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processCreatePrivateDesignFromDesign(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreatePrivateDesignFromDesign=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 201===p?S(i).pipe(t.mergeMap((function(e){return n.of(null)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.createPrivateDesignFromResource=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/private-designs/from-resource?";if(null!=e&&(i+="resourceId="+encodeURIComponent(""+e)+"&"),null!=r&&(i+="privateDesignId="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("post",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processCreatePrivateDesignFromResource(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processCreatePrivateDesignFromResource(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCreatePrivateDesignFromResource=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 201===p?S(i).pipe(t.mergeMap((function(e){return n.of(null)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.renderDesignPreview=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/render-design-preview?";if(null!=e&&(p+="attachment="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var i={body:JSON.stringify(a),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/octet-stream"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processRenderDesignPreview(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return s.transformResult(p,e,(function(e){return s.processRenderDesignPreview(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRenderDesignPreview=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.renderDesignProof=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/render-design-proof?";if(null!=e&&(p+="attachment="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var i={body:JSON.stringify(a),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/octet-stream"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processRenderDesignProof(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return s.transformResult(p,e,(function(e){return s.processRenderDesignProof(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRenderDesignProof=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.renderProduct=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/renderer?";if(null!=e&&(p+="attachment="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(p+="tenantId="+encodeURIComponent(""+r)+"&"),p=p.replace(/[?&]$/,"");var i={body:JSON.stringify(a),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/octet-stream"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("post",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processRenderProduct(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return s.transformResult(p,e,(function(e){return s.processRenderProduct(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processRenderProduct=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadProductFromResource=function(e,r,a,s){var p=this,i=this.baseUrl+"/api/atoms/v1/resources/{id}/as-design/model?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(i=i.replace("{id}",encodeURIComponent(""+e)),null!=r&&(i+="privateStorage="+encodeURIComponent(""+r)+"&"),null!=a&&(i+="privateStorageOwner="+encodeURIComponent(""+a)+"&"),null===s)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==s&&(i+="tenantId="+encodeURIComponent(""+s)+"&"),i=i.replace(/[?&]$/,"");var u={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(u)).pipe(t.mergeMap((function(e){return p.http.request("get",i,e)}))).pipe(t.mergeMap((function(e){return p.transformResult(i,e,(function(e){return p.processLoadProductFromResource(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return p.transformResult(i,e,(function(e){return p.processLoadProductFromResource(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processLoadProductFromResource=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):422===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Client Error",p,e,c,r)}))):401===p?S(i).pipe(t.mergeMap((function(e){return j("Unauthorized",p,e,c)}))):403===p?S(i).pipe(t.mergeMap((function(e){return j("Forbidden",p,e,c)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);y.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new y(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:y,providedIn:"root"}),y.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],y.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]};var g,b,R,I,w,M,H,U,C,x=function(e){function r(r,t,n){var o=e.call(this,r)||this;return o.jsonParseReviver=void 0,o.http=t,o.baseUrl=null!=n?n:o.getBaseUrl(""),o}return s(r,e),r.prototype.cssFonts=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/cssfonts?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processCssFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processCssFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processCssFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.fonts=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/fonts/{psName}?";if(null==e)throw new Error("The parameter 'psName' must be defined.");if(s=s.replace("{psName}",encodeURIComponent(""+e)),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/octet-stream"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getColorPreview=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetColorPreview?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetColorPreview(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetColorPreview(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetColorPreview=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getColorPreviews=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetColorPreviews?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetColorPreviews(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetColorPreviews(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetColorPreviews=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getCssFont=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetCssFont?";if(null!=e&&(s+="fontKey="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetCssFont(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetCssFont(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetCssFont=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getFallbackFonts=function(e){var r=this,a=this.baseUrl+"/api/atoms/v1/ccviewer/GetFallbackFonts?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(a+="tenantId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return r.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(a,e,(function(e){return r.processGetFallbackFonts(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(a,e,(function(e){return r.processGetFallbackFonts(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetFallbackFonts=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getImageSize=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetImageSize?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetImageSize(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetImageSize(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetImageSize=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getShapeBounds=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetShapeBounds?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetShapeBounds(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetShapeBounds(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetShapeBounds=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getWatermarkItems=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/GetWatermarkItems?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processGetWatermarkItems(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processGetWatermarkItems(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetWatermarkItems=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.img=function(e,r,a,s,p,i,u,c,l,f,d,v,h,m,y,g,b){var R=this,I=this.baseUrl+"/api/atoms/v1/ccviewer/img?";if(null!=e&&(I+="f="+encodeURIComponent(""+e)+"&"),null!=r&&(I+="w="+encodeURIComponent(""+r)+"&"),null!=a&&(I+="h="+encodeURIComponent(""+a)+"&"),null!=s&&(I+="cmyk="+encodeURIComponent(""+s)+"&"),null!=p&&(I+="rgb="+encodeURIComponent(""+p)+"&"),null!=i&&(I+="grayscale="+encodeURIComponent(""+i)+"&"),null!=u&&(I+="target="+encodeURIComponent(""+u)+"&"),null!=c&&(I+="sq="+encodeURIComponent(""+c)+"&"),null!=l&&(I+="effect="+encodeURIComponent(""+l)+"&"),null!=f&&(I+="kp="+encodeURIComponent(""+f)+"&"),null!=d&&(I+="color="+encodeURIComponent(""+d)+"&"),null!=v&&(I+="obm="+encodeURIComponent(""+v)+"&"),null!=h&&(I+="oo="+encodeURIComponent(""+h)+"&"),null!=m&&(I+="alphaMask="+encodeURIComponent(""+m)+"&"),null!=y&&(I+="page="+encodeURIComponent(""+y)+"&"),null!=g&&(I+="colorizeColor="+encodeURIComponent(""+g)+"&"),null===b)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==b&&(I+="tenantId="+encodeURIComponent(""+b)+"&"),I=I.replace(/[?&]$/,"");var w={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(w)).pipe(t.mergeMap((function(e){return R.http.request("get",I,e)}))).pipe(t.mergeMap((function(e){return R.transformResult(I,e,(function(e){return R.processImg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return R.transformResult(I,e,(function(e){return R.processImg(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processImg=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?S(i).pipe(t.mergeMap((function(e){return j("Not Modified",p,e,c)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getLicense=function(e){var r=this,a=this.baseUrl+"/api/atoms/v1/ccviewer/license?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(a+="tenantId="+encodeURIComponent(""+e)+"&"),a=a.replace(/[?&]$/,"");var s={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(s)).pipe(t.mergeMap((function(e){return r.http.request("get",a,e)}))).pipe(t.mergeMap((function(e){return r.transformResult(a,e,(function(e){return r.processGetLicense(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return r.transformResult(a,e,(function(e){return r.processGetLicense(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processGetLicense=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.pth=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/pth?";if(null!=e&&(s+="f="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processPth(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processPth(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processPth=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?S(i).pipe(t.mergeMap((function(e){return j("Not Modified",p,e,c)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.resource=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/resource?";if(null!=e&&(s+="image="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processResource(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processResource(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processResource=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.svg=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/svg?";if(null!=e&&(s+="f="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processSvg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processSvg(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processSvg=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?S(i).pipe(t.mergeMap((function(e){return j("Not Modified",p,e,c)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.txt=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/txt?";if(null!=e&&(s+="f="+encodeURIComponent(""+e)+"&"),null===r)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(s+="tenantId="+encodeURIComponent(""+r)+"&"),s=s.replace(/[?&]$/,"");var p={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("get",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processTxt(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processTxt(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processTxt=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}if(200===p||206===p){var v=e.headers?e.headers.get("content-disposition"):void 0,h=v?/filename="?([^"]*?)"?(;|$)/g.exec(v):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:i,status:p,headers:c})}return 304===p?S(i).pipe(t.mergeMap((function(e){return j("Not Modified",p,e,c)}))):404===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Not Found",p,e,c,r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateArchedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateArchedTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateArchedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateArchedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateArchedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateAutoScaledTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateAutoScaledTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateAutoScaledTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateAutoScaledTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateAutoScaledTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateBarcodeItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateBarcodeItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateBarcodeItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateBarcodeItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateBarcodeItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateBoundedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateBoundedTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateBoundedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateBoundedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateBoundedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateByColorData=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateByColorData?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateByColorData(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateByColorData(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateByColorData=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateByMultiCallRequest=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateByMultiCallRequest?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateByMultiCallRequest(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateByMultiCallRequest(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateByMultiCallRequest=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateCurvedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateCurvedTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateCurvedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateCurvedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateCurvedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateImageItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateImageItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateImageItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateImageItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateImageItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updatePathBoundedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdatePathBoundedTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdatePathBoundedTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdatePathBoundedTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdatePathBoundedTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updatePlainTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdatePlainTextItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdatePlainTextItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdatePlainTextItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdatePlainTextItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.updateShapeItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/UpdateShapeItemHandler?";if(null===e)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==e&&(s+="tenantId="+encodeURIComponent(""+e)+"&"),s=s.replace(/[?&]$/,"");var p={body:JSON.stringify(r),observe:"response",responseType:"blob",headers:new o.HttpHeaders({"Content-Type":"application/json",Accept:"application/json"})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("post",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processUpdateShapeItemHandler(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return a.transformResult(s,e,(function(e){return a.processUpdateShapeItemHandler(e)}))}catch(e){return n.throwError(e)}})))},r.prototype.processUpdateShapeItemHandler=function(e){var r,a,s=this,p=e.status,i=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,c={};if(e.headers)try{for(var l=u(e.headers.keys()),f=l.next();!f.done;f=l.next()){var d=f.value;c[d]=e.headers.get(d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return 200===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):500===p?S(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),j("Internal server error",p,e,c,r)}))):200!==p&&204!==p?S(i).pipe(t.mergeMap((function(e){return j("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);x.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new x(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:x,providedIn:"root"}),x.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],x.ctorParameters=function(){return[{type:l,decorators:[{type:r.Inject,args:[l]}]},{type:o.HttpClient,decorators:[{type:r.Inject,args:[o.HttpClient]}]},{type:String,decorators:[{type:r.Optional},{type:r.Inject,args:[c]}]}]},(g=e.ColorSpace||(e.ColorSpace={})).Rgb="Rgb",g.Cmyk="Cmyk",g.Grayscale="Grayscale",g.Lab="Lab",g.Spot="Spot",(b=e.ImagePreviewFormat||(e.ImagePreviewFormat={})).Jpeg="Jpeg",b.Png="Png",b.Tiff="Tiff",b.Pdf="Pdf",(R=e.DesignElementType||(e.DesignElementType={})).Product="Product",R.Design="Design",R.Surface="Surface",R.Container="Container",R.PrintArea="PrintArea",R.Item="Item",(I=e.ProductPatchType||(e.ProductPatchType={})).Undefined="Undefined",I.ReplaceImageItemFile="ReplaceImageItemFile",I.ReplacePlaceholderItemContent="ReplacePlaceholderItemContent",(e.PlaceholderItemContentType||(e.PlaceholderItemContentType={})).Image="Image",(w=e.ItemType||(e.ItemType={})).Image="Image",w.Shape="Shape",w.Clipart="Clipart",w.Group="Group",(M=e.ItemSourceType||(e.ItemSourceType={})).File="File",M.ImageStorage="ImageStorage",M.PrivateImageStorage="PrivateImageStorage",(H=e.ProductPreviewFormat||(e.ProductPreviewFormat={})).Jpeg="Jpeg",H.Png="Png",H.Tiff="Tiff",H.Pdf="Pdf",(U=e.ProductProofFormat||(e.ProductProofFormat={})).Jpeg="Jpeg",U.Png="Png",U.Tiff="Tiff",U.Pdf="Pdf",(C=e.ProductProofInterpolationMode||(e.ProductProofInterpolationMode={})).High="High",C.Medium="Medium",C.Low="Low",C.NearestNeighbour="NearestNeighbour",C.Linear="Linear",C.Cubic="Cubic",C.Supersampling="Supersampling",C.Lanczos="Lanczos",C.Anisotropic4="Anisotropic4",C.Anisotropic9="Anisotropic9",C.Lanczos3="Lanczos3";var E=function(e){function r(r,t,n,o,a){var s=e.call(this)||this;return s.isApiException=!0,s.message=r,s.status=t,s.response=n,s.headers=o,s.result=a,s}return s(r,e),r.isApiException=function(e){return!0===e.isApiException},r}(Error);function j(e,r,t,o,a){return null!=a?n.throwError(a):n.throwError(new E(e,r,t,o,null))}function S(e){return new n.Observable((function(r){if(e){var t=new FileReader;t.onload=function(e){r.next(e.target.result),r.complete()},t.readAsText(e)}else r.next(""),r.complete()}))}function P(e,r,t){void 0===t&&(t="ApiKey");var n=new l;return n.apiKey=t,n.apiUrl=r,n.setAuthorizationToken(e),n}var T=function(){function e(){}return e.forRoot=function(r,t,n){return void 0===n&&(n="ApiKey"),{ngModule:e,providers:[{provide:c,useValue:t},{provide:l,useFactory:P.bind(this,r,t,n)}]}},e}();T.decorators=[{type:r.NgModule,args:[{declarations:[],imports:[],exports:[]}]}],e.API_BASE_URL=c,e.ApiClientBase=f,e.ApiClientConfiguration=l,e.ApiException=E,e.BuildInfoApiClient=d,e.CreateApiClientConfiguration=P,e.DesignAtomsApiModule=T,e.DesignAtomsCompatibilityApiClient=v,e.DesignAtomsImagesApiClient=h,e.DesignAtomsMockups3dApiClient=m,e.DesignAtomsServiceApiClient=y,e.DesignAtomsViewerApiClient=x,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.umd.min.js.map
|