import{c as t,S as e}from"./console.worker-C44TsZQV.js";import{print as a}from"./simple-functions-sy3-RnZB.js";const r=(t,e)=>"object"==typeof window?window.fetch(t,e):fetch(t,e),s=()=>{var a,r;null==(r=(a=t).postMessage)||r.call(a,{taskId:t.currentTaskId,data:{api:e.MrsPrintSdkCode,contextId:t.currentContext,final:!0}})},n=a=>{var r,s;null==(s=(r=t).postMessage)||s.call(r,{taskId:t.currentTaskId,data:{api:e.MrsSetCurrentService,serviceId:a,contextId:t.currentContext,final:!0}})},c=a=>{var r,s;null==(s=(r=t).postMessage)||s.call(r,{taskId:t.currentTaskId,data:{api:e.MrsEditService,serviceId:a,contextId:t.currentContext,final:!0}})},d=a=>{var r,s;null==(s=(r=t).postMessage)||s.call(r,{taskId:t.currentTaskId,data:{api:e.MrsExportServiceSdk,serviceId:a,contextId:t.currentContext,final:!0}})},l=(a,r)=>{var s,n;null==(n=(s=t).postMessage)||n.call(s,{taskId:t.currentTaskId,data:{api:e.MrsAddContentSet,serviceId:a,directory:r,contextId:t.currentContext,final:!0}})},o=a=>{var r,s;null==(s=(r=t).postMessage)||s.call(r,{taskId:t.currentTaskId,data:{api:e.MrsSetServiceUrl,serviceUrl:a,contextId:t.currentContext,final:!0}})},i=(r,s,n,c)=>{var d,l;a("Starting MRS authentication ..."),null==(l=(d=t).postMessage)||l.call(d,{taskId:t.currentTaskId,data:{api:e.MrsAuthenticate,serviceUrl:r,authPath:s,authApp:n,userName:c,contextId:t.currentContext,final:!0}})},u=a=>{var r,s;null==(s=(r=t).postMessage)||s.call(r,{taskId:t.currentTaskId,data:{api:e.MrsEditSchema,schemaId:a,contextId:t.currentContext,final:!0}})},I=a=>{var r,s;null==(s=(r=t).postMessage)||s.call(r,{taskId:t.currentTaskId,data:{api:e.MrsEditDbObject,dbObjectId:a,contextId:t.currentContext,final:!0}})},p=()=>{var a,r;null==(r=(a=t).postMessage)||r.call(a,{taskId:t.currentTaskId,data:{api:e.MrsRefreshSdkCode,contextId:t.currentContext,final:!0}})};export{l as mrsAddContentSet,i as mrsAuthenticate,I as mrsEditDbObject,u as mrsEditSchema,c as mrsEditService,d as mrsExportServiceSdk,s as mrsPrintSdkCode,p as mrsRefreshSdkCode,n as mrsSetCurrentService,o as mrsSetServiceUrl,r as webFetch};
