@aurigma/ng-design-atoms-api-client 2.13.1 → 2.16.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 +352 -245
- 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/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +224 -128
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +223 -127
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +59 -33
- 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},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=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,i={};if(e.headers)try{for(var c=u(e.headers.keys()),l=c.next();!l.done;l=c.next()){var f=l.value;i[f]=e.headers.get(f)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}return 200===s?H(p).pipe(t.mergeMap((function(e){return n.of(null)}))):200!==s&&204!==s?H(p).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",s,e,i)}))):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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 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.updateArchedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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,h,m,v,y,g,b){var w=this,R=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/img?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");R=R.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(R+="f="+encodeURIComponent(""+r)+"&"),null!=a&&(R+="w="+encodeURIComponent(""+a)+"&"),null!=s&&(R+="h="+encodeURIComponent(""+s)+"&"),null!=p&&(R+="cmyk="+encodeURIComponent(""+p)+"&"),null!=i&&(R+="rgb="+encodeURIComponent(""+i)+"&"),null!=u&&(R+="grayscale="+encodeURIComponent(""+u)+"&"),null!=c&&(R+="target="+encodeURIComponent(""+c)+"&"),null!=l&&(R+="sq="+encodeURIComponent(""+l)+"&"),null!=f&&(R+="effect="+encodeURIComponent(""+f)+"&"),null!=d&&(R+="kp="+encodeURIComponent(""+d)+"&"),null!=h&&(R+="color="+encodeURIComponent(""+h)+"&"),null!=m&&(R+="obm="+encodeURIComponent(""+m)+"&"),null!=v&&(R+="oo="+encodeURIComponent(""+v)+"&"),null!=y&&(R+="alphaMask="+encodeURIComponent(""+y)+"&"),null!=g&&(R+="page="+encodeURIComponent(""+g)+"&"),null!=b&&(R+="colorizeColor="+encodeURIComponent(""+b)+"&"),R=R.replace(/[?&]$/,"");var I={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(I)).pipe(t.mergeMap((function(e){return w.http.request("get",R,e)}))).pipe(t.mergeMap((function(e){return w.transformResult(R,e,(function(e){return w.processImg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return w.transformResult(R,e,(function(e){return w.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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?H(i).pipe(t.mergeMap((function(e){return I("Not Modified",p,e,c)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?H(i).pipe(t.mergeMap((function(e){return I("Not Modified",p,e,c)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?H(i).pipe(t.mergeMap((function(e){return I("Not Modified",p,e,c)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?H(i).pipe(t.mergeMap((function(e){return I("Not Modified",p,e,c)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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.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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadDataSchema=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/designs/{id}/schema?";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.processLoadDataSchema(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.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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):409===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Conflict",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getVariables=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";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/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.processGetVariables(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.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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.setVariables=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(p=p.replace("{id}",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/json"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("put",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processSetVariables(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.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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):409===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Conflict",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadVdpData=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";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/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.processLoadVdpData(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.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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):409===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Conflict",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.saveVdpData=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(p=p.replace("{id}",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"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("put",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processSaveVdpData(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.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?H(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.deleteVdpData=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";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({})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("delete",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processDeleteVdpData(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.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?H(i).pipe(t.mergeMap((function(e){return n.of(null)}))):409===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Conflict",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):401===p?H(i).pipe(t.mergeMap((function(e){return I("Unauthorized",p,e,c)}))):403===p?H(i).pipe(t.mergeMap((function(e){return I("Forbidden",p,e,c)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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/json"})};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=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,i={};if(e.headers)try{for(var c=u(e.headers.keys()),l=c.next();!l.done;l=c.next()){var f=l.value;i[f]=e.headers.get(f)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}if(200===s||206===s){var d=e.headers?e.headers.get("content-disposition"):void 0,h=d?/filename="?([^"]*?)"?(;|$)/g.exec(d):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:p,status:s,headers:i})}return 401===s?H(p).pipe(t.mergeMap((function(e){return I("Unauthorized",s,e,i)}))):403===s?H(p).pipe(t.mergeMap((function(e){return I("Forbidden",s,e,i)}))):200!==s&&204!==s?H(p).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",s,e,i)}))):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 v,y,g,b,w=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.updateArchedTextItemHandler=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/ccviewer/api/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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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,h,m,v,y,g,b){var w=this,R=this.baseUrl+"/api/atoms/v1/ccviewer/img?";if(null!=e&&(R+="f="+encodeURIComponent(""+e)+"&"),null!=r&&(R+="w="+encodeURIComponent(""+r)+"&"),null!=a&&(R+="h="+encodeURIComponent(""+a)+"&"),null!=s&&(R+="cmyk="+encodeURIComponent(""+s)+"&"),null!=p&&(R+="rgb="+encodeURIComponent(""+p)+"&"),null!=i&&(R+="grayscale="+encodeURIComponent(""+i)+"&"),null!=u&&(R+="target="+encodeURIComponent(""+u)+"&"),null!=c&&(R+="sq="+encodeURIComponent(""+c)+"&"),null!=l&&(R+="effect="+encodeURIComponent(""+l)+"&"),null!=f&&(R+="kp="+encodeURIComponent(""+f)+"&"),null!=d&&(R+="color="+encodeURIComponent(""+d)+"&"),null!=h&&(R+="obm="+encodeURIComponent(""+h)+"&"),null!=m&&(R+="oo="+encodeURIComponent(""+m)+"&"),null!=v&&(R+="alphaMask="+encodeURIComponent(""+v)+"&"),null!=y&&(R+="page="+encodeURIComponent(""+y)+"&"),null!=g&&(R+="colorizeColor="+encodeURIComponent(""+g)+"&"),null===b)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==b&&(R+="tenantId="+encodeURIComponent(""+b)+"&"),R=R.replace(/[?&]$/,"");var I={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(I)).pipe(t.mergeMap((function(e){return w.http.request("get",R,e)}))).pipe(t.mergeMap((function(e){return w.transformResult(R,e,(function(e){return w.processImg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return w.transformResult(R,e,(function(e){return w.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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?H(i).pipe(t.mergeMap((function(e){return I("Not Modified",p,e,c)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?H(i).pipe(t.mergeMap((function(e){return I("Not Modified",p,e,c)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?H(i).pipe(t.mergeMap((function(e){return I("Not Modified",p,e,c)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?H(i).pipe(t.mergeMap((function(e){return I("Not Modified",p,e,c)}))):404===p?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),I("Not Found",p,e,c,r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("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?H(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?H(i).pipe(t.mergeMap((function(e){return I("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);w.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new w(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:w,providedIn:"root"}),w.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],w.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]}]}]},(v=e.ItemType||(e.ItemType={})).Image="Image",v.Shape="Shape",v.Clipart="Clipart",v.Group="Group",(y=e.ItemSourceType||(e.ItemSourceType={})).File="File",y.ImageStorage="ImageStorage",y.PrivateImageStorage="PrivateImageStorage",(g=e.ProductProofFormat||(e.ProductProofFormat={})).Jpeg="Jpeg",g.Png="Png",g.Tiff="Tiff",g.Pdf="Pdf",(b=e.ProductProofInterpolationMode||(e.ProductProofInterpolationMode={})).High="High",b.Medium="Medium",b.Low="Low",b.NearestNeighbour="NearestNeighbour",b.Linear="Linear",b.Cubic="Cubic",b.Supersampling="Supersampling",b.Lanczos="Lanczos",b.Anisotropic4="Anisotropic4",b.Anisotropic9="Anisotropic9",b.Lanczos3="Lanczos3";var R=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 I(e,r,t,o,a){return null!=a?n.throwError(a):n.throwError(new R(e,r,t,o,null))}function H(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 M(e,r,t){void 0===t&&(t="ApiKey");var n=new l;return n.apiKey=t,n.apiUrl=r,n.setAuthorizationToken(e),n}var U=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:M.bind(this,r,t,n)}]}},e}();U.decorators=[{type:r.NgModule,args:[{declarations:[],imports:[],exports:[]}]}],e.API_BASE_URL=c,e.ApiClientBase=f,e.ApiClientConfiguration=l,e.ApiException=R,e.BuildInfoApiClient=d,e.CreateApiClientConfiguration=M,e.DesignAtomsApiModule=U,e.DesignAtomsCompatibilityApiClient=h,e.DesignAtomsServiceApiClient=m,e.DesignAtomsViewerApiClient=w,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},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=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,i={};if(e.headers)try{for(var c=u(e.headers.keys()),l=c.next();!l.done;l=c.next()){var f=l.value;i[f]=e.headers.get(f)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}return 200===s?M(p).pipe(t.mergeMap((function(e){return n.of(null)}))):200!==s&&204!==s?M(p).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",s,e,i)}))):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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 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.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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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,h,m,v,y,g,b){var w=this,R=this.baseUrl+"/api/atoms/v1/tenants/{tenantId}/api/ccviewer/img?";if(null==e)throw new Error("The parameter 'tenantId' must be defined.");R=R.replace("{tenantId}",encodeURIComponent(""+e)),null!=r&&(R+="f="+encodeURIComponent(""+r)+"&"),null!=a&&(R+="w="+encodeURIComponent(""+a)+"&"),null!=s&&(R+="h="+encodeURIComponent(""+s)+"&"),null!=p&&(R+="cmyk="+encodeURIComponent(""+p)+"&"),null!=i&&(R+="rgb="+encodeURIComponent(""+i)+"&"),null!=u&&(R+="grayscale="+encodeURIComponent(""+u)+"&"),null!=c&&(R+="target="+encodeURIComponent(""+c)+"&"),null!=l&&(R+="sq="+encodeURIComponent(""+l)+"&"),null!=f&&(R+="effect="+encodeURIComponent(""+f)+"&"),null!=d&&(R+="kp="+encodeURIComponent(""+d)+"&"),null!=h&&(R+="color="+encodeURIComponent(""+h)+"&"),null!=m&&(R+="obm="+encodeURIComponent(""+m)+"&"),null!=v&&(R+="oo="+encodeURIComponent(""+v)+"&"),null!=y&&(R+="alphaMask="+encodeURIComponent(""+y)+"&"),null!=g&&(R+="page="+encodeURIComponent(""+g)+"&"),null!=b&&(R+="colorizeColor="+encodeURIComponent(""+b)+"&"),R=R.replace(/[?&]$/,"");var I={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(I)).pipe(t.mergeMap((function(e){return w.http.request("get",R,e)}))).pipe(t.mergeMap((function(e){return w.transformResult(R,e,(function(e){return w.processImg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return w.transformResult(R,e,(function(e){return w.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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?M(i).pipe(t.mergeMap((function(e){return H("Not Modified",p,e,c)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?M(i).pipe(t.mergeMap((function(e){return H("Not Modified",p,e,c)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?M(i).pipe(t.mergeMap((function(e){return H("Not Modified",p,e,c)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?M(i).pipe(t.mergeMap((function(e){return H("Not Modified",p,e,c)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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.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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.patchProduct=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)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==r&&(u+="tenantId="+encodeURIComponent(""+r)+"&"),u=u.replace(/[?&]$/,"");var c=new FormData;if(null==a)throw new Error("The parameter 'patchType' cannot be null.");c.append("patchType",a.toString()),null!=s&&c.append("replaceImageItemFileInfo.itemName",s.toString()),null!=p&&c.append("replaceImageItemFileInfo.sourceFile",p.data,p.fileName?p.fileName:"replaceImageItemFileInfo.sourceFile");var l={body:c,observe:"response",responseType:"blob",headers:new o.HttpHeaders({})};return n.from(this.transformOptions(l)).pipe(t.mergeMap((function(e){return i.http.request("patch",u,e)}))).pipe(t.mergeMap((function(e){return i.transformResult(u,e,(function(e){return i.processPatchProduct(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.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?M(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadDataSchema=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/designs/{id}/schema?";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.processLoadDataSchema(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.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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):409===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Conflict",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.getVariables=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";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/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.processGetVariables(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.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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.setVariables=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/designs/{id}/variables?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(p=p.replace("{id}",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/json"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("put",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processSetVariables(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.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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):409===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Conflict",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.loadVdpData=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";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/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.processLoadVdpData(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.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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):409===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Conflict",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.saveVdpData=function(e,r,a){var s=this,p=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";if(null==e)throw new Error("The parameter 'id' must be defined.");if(p=p.replace("{id}",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"})};return n.from(this.transformOptions(i)).pipe(t.mergeMap((function(e){return s.http.request("put",p,e)}))).pipe(t.mergeMap((function(e){return s.transformResult(p,e,(function(e){return s.processSaveVdpData(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.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?M(i).pipe(t.mergeMap((function(e){return n.of(null)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r.prototype.deleteVdpData=function(e,r){var a=this,s=this.baseUrl+"/api/atoms/v1/designs/{id}/vdpData?";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({})};return n.from(this.transformOptions(p)).pipe(t.mergeMap((function(e){return a.http.request("delete",s,e)}))).pipe(t.mergeMap((function(e){return a.transformResult(s,e,(function(e){return a.processDeleteVdpData(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.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?M(i).pipe(t.mergeMap((function(e){return n.of(null)}))):409===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Conflict",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):401===p?M(i).pipe(t.mergeMap((function(e){return H("Unauthorized",p,e,c)}))):403===p?M(i).pipe(t.mergeMap((function(e){return H("Forbidden",p,e,c)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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/json"})};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=e.status,p=e instanceof o.HttpResponse?e.body:e.error instanceof Blob?e.error:void 0,i={};if(e.headers)try{for(var c=u(e.headers.keys()),l=c.next();!l.done;l=c.next()){var f=l.value;i[f]=e.headers.get(f)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}if(200===s||206===s){var d=e.headers?e.headers.get("content-disposition"):void 0,h=d?/filename="?([^"]*?)"?(;|$)/g.exec(d):void 0,m=h&&h.length>1?h[1]:void 0;return n.of({fileName:m,data:p,status:s,headers:i})}return 401===s?M(p).pipe(t.mergeMap((function(e){return H("Unauthorized",s,e,i)}))):403===s?M(p).pipe(t.mergeMap((function(e){return H("Forbidden",s,e,i)}))):200!==s&&204!==s?M(p).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",s,e,i)}))):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 v,y,g,b,w,R=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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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,h,m,v,y,g,b){var w=this,R=this.baseUrl+"/api/atoms/v1/ccviewer/img?";if(null!=e&&(R+="f="+encodeURIComponent(""+e)+"&"),null!=r&&(R+="w="+encodeURIComponent(""+r)+"&"),null!=a&&(R+="h="+encodeURIComponent(""+a)+"&"),null!=s&&(R+="cmyk="+encodeURIComponent(""+s)+"&"),null!=p&&(R+="rgb="+encodeURIComponent(""+p)+"&"),null!=i&&(R+="grayscale="+encodeURIComponent(""+i)+"&"),null!=u&&(R+="target="+encodeURIComponent(""+u)+"&"),null!=c&&(R+="sq="+encodeURIComponent(""+c)+"&"),null!=l&&(R+="effect="+encodeURIComponent(""+l)+"&"),null!=f&&(R+="kp="+encodeURIComponent(""+f)+"&"),null!=d&&(R+="color="+encodeURIComponent(""+d)+"&"),null!=h&&(R+="obm="+encodeURIComponent(""+h)+"&"),null!=m&&(R+="oo="+encodeURIComponent(""+m)+"&"),null!=v&&(R+="alphaMask="+encodeURIComponent(""+v)+"&"),null!=y&&(R+="page="+encodeURIComponent(""+y)+"&"),null!=g&&(R+="colorizeColor="+encodeURIComponent(""+g)+"&"),null===b)throw new Error("The parameter 'tenantId' cannot be null.");void 0!==b&&(R+="tenantId="+encodeURIComponent(""+b)+"&"),R=R.replace(/[?&]$/,"");var I={observe:"response",responseType:"blob",headers:new o.HttpHeaders({Accept:"application/json"})};return n.from(this.transformOptions(I)).pipe(t.mergeMap((function(e){return w.http.request("get",R,e)}))).pipe(t.mergeMap((function(e){return w.transformResult(R,e,(function(e){return w.processImg(e)}))}))).pipe(t.catchError((function(e){if(!(e instanceof o.HttpResponseBase))return n.throwError(e);try{return w.transformResult(R,e,(function(e){return w.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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?M(i).pipe(t.mergeMap((function(e){return H("Not Modified",p,e,c)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?M(i).pipe(t.mergeMap((function(e){return H("Not Modified",p,e,c)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?M(i).pipe(t.mergeMap((function(e){return H("Not Modified",p,e,c)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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 h=e.headers?e.headers.get("content-disposition"):void 0,m=h?/filename="?([^"]*?)"?(;|$)/g.exec(h):void 0,v=m&&m.length>1?m[1]:void 0;return n.of({fileName:v,data:i,status:p,headers:c})}return 304===p?M(i).pipe(t.mergeMap((function(e){return H("Not Modified",p,e,c)}))):404===p?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),H("Not Found",p,e,c,r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("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?M(i).pipe(t.mergeMap((function(e){var r;return r=""===e?null:JSON.parse(e,s.jsonParseReviver),n.of(r)}))):200!==p&&204!==p?M(i).pipe(t.mergeMap((function(e){return H("An unexpected server error occurred.",p,e,c)}))):n.of(null)},r}(f);R.ɵprov=r.ɵɵdefineInjectable({factory:function(){return new R(r.ɵɵinject(l),r.ɵɵinject(o.HttpClient),r.ɵɵinject(c,8))},token:R,providedIn:"root"}),R.decorators=[{type:r.Injectable,args:[{providedIn:"root"}]}],R.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]}]}]},(v=e.ProductPatchType||(e.ProductPatchType={})).Undefined="Undefined",v.ReplaceImageItemFile="ReplaceImageItemFile",(y=e.ItemType||(e.ItemType={})).Image="Image",y.Shape="Shape",y.Clipart="Clipart",y.Group="Group",(g=e.ItemSourceType||(e.ItemSourceType={})).File="File",g.ImageStorage="ImageStorage",g.PrivateImageStorage="PrivateImageStorage",(b=e.ProductProofFormat||(e.ProductProofFormat={})).Jpeg="Jpeg",b.Png="Png",b.Tiff="Tiff",b.Pdf="Pdf",(w=e.ProductProofInterpolationMode||(e.ProductProofInterpolationMode={})).High="High",w.Medium="Medium",w.Low="Low",w.NearestNeighbour="NearestNeighbour",w.Linear="Linear",w.Cubic="Cubic",w.Supersampling="Supersampling",w.Lanczos="Lanczos",w.Anisotropic4="Anisotropic4",w.Anisotropic9="Anisotropic9",w.Lanczos3="Lanczos3";var I=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 H(e,r,t,o,a){return null!=a?n.throwError(a):n.throwError(new I(e,r,t,o,null))}function M(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 U(e,r,t){void 0===t&&(t="ApiKey");var n=new l;return n.apiKey=t,n.apiUrl=r,n.setAuthorizationToken(e),n}var x=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:U.bind(this,r,t,n)}]}},e}();x.decorators=[{type:r.NgModule,args:[{declarations:[],imports:[],exports:[]}]}],e.API_BASE_URL=c,e.ApiClientBase=f,e.ApiClientConfiguration=l,e.ApiException=I,e.BuildInfoApiClient=d,e.CreateApiClientConfiguration=U,e.DesignAtomsApiModule=x,e.DesignAtomsCompatibilityApiClient=h,e.DesignAtomsServiceApiClient=m,e.DesignAtomsViewerApiClient=R,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.umd.min.js.map
|