@hievilmath/browser-formidavim 1.4.1 → 1.4.2

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -3295,4 +3295,4 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
3295
3295
  position: relative;
3296
3296
  `,bw=({$isPreview:e,children:o})=>_.jsx(hp.Provider,{store:Gj,children:_.jsx(me.ThemeProvider,{theme:Hj,children:_.jsx(Wj,{$isPreview:e,children:_.jsx(Yj,{children:o})})})}),HA=({flowForm:e,isPreview:o,evaluatedFormComponents:i})=>!e||!e.form?null:_.jsx(WA,{form:e.form,isPreview:o,evaluatedFormComponents:i}),xw=class xw{static register(o,i){this.registry[o]=i}static getComponent(o){return this.registry[o]||null}static hasComponent(o){return o in this.registry}static getRegisteredComponents(){return Object.keys(this.registry)}};xw.registry={...Nj};let W0=xw;const GA=({formComponent:e,isPreview:o,boundary:i,isVisible:s=!0})=>{var p;const c=d=>{const v=d.componentId;if(!v)return _.jsx(xp,{errors:["Missing componentId"]});const b=W0.getComponent(v);return b?_.jsx(b,{formComponent:d}):_.jsx(xp,{errors:[`Unknown component type: ${v}`]})};return _.jsx(Y0,{children:_.jsx(iv,{$span:"12",children:_.jsx(Z6,{$margin:(p=e.props)==null?void 0:p.margin,$boundary:i,children:c(e)})})})},WA=({form:e,isPreview:o,evaluatedFormComponents:i})=>{const s=o?i:i.filter(p=>p.shouldRender),c=s.length;return _.jsx(_.Fragment,{children:s.map((p,d)=>{const v=d===0?"first":c===d+1?"last":null,b=p.isVisible;return _.jsx(GA,{formComponent:p,isPreview:o,boundary:v,isVisible:b},p.id)})})},qj=me.form`
3297
3297
  padding: 20px 0px 20px;
3298
- `,YA=({children:e,$bgColor:o})=>_.jsx(gp,{$overflow:"visible",$position:"static",$xSmall:!0,id:"MainFlowContainer",$bgColor:o||"white",$bRad:"0px",$marginBottom:"80px",$marginBottomMd:"0px",children:_.jsx(qj,{onSubmit:i=>i.preventDefault(),children:e})});function Qj(e){const{onError:o,on401:i,on403:s,on400:c,on500:p,addHeaders:d,onRequest:v,onResponse:b,modifyRequest:S}=e,T=lt.create();return T.interceptors.request.use(E=>(E.headers||(E.headers={}),typeof d=="function"&&Object.entries(d(E)||{}).forEach(([R,k])=>E.headers[R]=k),typeof v=="function"&&v(E),typeof S=="function"?S(E):E)),T.interceptors.response.use(E=>(typeof b=="function"&&b(E),E),E=>{var k,M,P,B;const R={config:{}};if(typeof o=="function"&&o((E==null?void 0:E.response)||R),((k=E==null?void 0:E.response)==null?void 0:k.status)===400)typeof c=="function"&&c((E==null?void 0:E.response)||R);else if(((M=E==null?void 0:E.response)==null?void 0:M.status)===401)typeof i=="function"&&i((E==null?void 0:E.response)||R);else if(((P=E==null?void 0:E.response)==null?void 0:P.status)===403)typeof s=="function"&&s((E==null?void 0:E.response)||R);else if(((B=E==null?void 0:E.response)==null?void 0:B.status)===500)typeof p=="function"&&p((E==null?void 0:E.response)||R);else throw E}),T}function Xj(e,o){const{apiUrl:i}=o;return new e({basePath:i},i,Qj(o))}const ut="http://localhost".replace(/\/+$/,"");class Kj{constructor(o,i=ut,s=lt){this.basePath=i,this.axios=s,o&&(this.configuration=o,this.basePath=o.basePath||this.basePath)}}class Zj extends Error{constructor(o,i){super(i),this.field=o,this.name="RequiredError"}}const ct="https://example.com",ft=function(e,o,i){if(i==null)throw new Zj(o,`Required parameter ${o} was null or undefined when calling ${e}.`)};function BC(e,o,i=""){o!=null&&(typeof o=="object"?Array.isArray(o)?o.forEach(s=>BC(e,s,i)):Object.keys(o).forEach(s=>BC(e,o[s],`${i}${i!==""?".":""}${s}`)):e.has(i)?e.append(i,o):e.set(i,o))}const dt=function(e,...o){const i=new URLSearchParams(e.search);BC(i,o),e.search=i.toString()},vn=function(e,o,i){const s=typeof e!="string";return(s&&i&&i.isJsonMime?i.isJsonMime(o.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},pt=function(e){return e.pathname+e.search+e.hash},ht=function(e,o,i,s){return(c=o,p=i)=>{const d={...e.options,url:((s==null?void 0:s.basePath)||p)+e.url};return c.request(d)}},Jj=function(e){return{abTestControllerDelete:async(o,i={})=>{ft("abTestControllerDelete","id",o);const s="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},abTestControllerGet:async(o,i={})=>{ft("abTestControllerGet","id",o);const s="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},abTestControllerGetBySlug:async(o,i={})=>{ft("abTestControllerGetBySlug","slug",o);const s="/api/ab-test/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},abTestControllerIndex:async(o={})=>{const i="/api/ab-test",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},abTestControllerPatch:async(o,i,s={})=>{ft("abTestControllerPatch","id",o),ft("abTestControllerPatch","abTest",i);const c="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},abTestControllerPost:async(o,i={})=>{ft("abTestControllerPost","abTest",o);const s="/api/ab-test",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},abTestSearchControllerPost:async(o,i,s,c={})=>{ft("abTestSearchControllerPost","abTest",o);const p="/api/ab-test-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},componentControllerDelete:async(o,i={})=>{ft("componentControllerDelete","id",o);const s="/api/component/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},componentControllerGet:async(o,i={})=>{ft("componentControllerGet","id",o);const s="/api/component/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},componentControllerIndex:async(o={})=>{const i="/api/component",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},componentControllerPatch:async(o,i,s={})=>{ft("componentControllerPatch","id",o),ft("componentControllerPatch","component",i);const c="/api/component/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},componentControllerPost:async(o,i={})=>{ft("componentControllerPost","component",o);const s="/api/component",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},componentSearchControllerPost:async(o,i,s,c={})=>{ft("componentSearchControllerPost","component",o);const p="/api/component-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},conditionControllerDelete:async(o,i={})=>{ft("conditionControllerDelete","id",o);const s="/api/condition/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},conditionControllerGet:async(o,i={})=>{ft("conditionControllerGet","id",o);const s="/api/condition/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},conditionControllerIndex:async(o={})=>{const i="/api/condition",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},conditionControllerPatch:async(o,i,s={})=>{ft("conditionControllerPatch","id",o),ft("conditionControllerPatch","condition",i);const c="/api/condition/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},conditionControllerPost:async(o,i={})=>{ft("conditionControllerPost","condition",o);const s="/api/condition",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},conditionSearchControllerPost:async(o,i,s,c={})=>{ft("conditionSearchControllerPost","condition",o);const p="/api/condition-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},flowControllerCopy:async(o,i={})=>{ft("flowControllerCopy","flowCopyDto",o);const s="/api/flow/copy",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},flowControllerDelete:async(o,i={})=>{ft("flowControllerDelete","id",o);const s="/api/flow/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},flowControllerGet:async(o,i={})=>{ft("flowControllerGet","id",o);const s="/api/flow/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},flowControllerGetBySlug:async(o,i,s={})=>{ft("flowControllerGetBySlug","slug",o);const c="/api/flow/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={},S={};i!==void 0&&(S.version=i),dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},flowControllerGetFull:async(o,i={})=>{ft("flowControllerGetFull","id",o);const s="/api/flow/{id}/full".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},flowControllerIndex:async(o={})=>{const i="/api/flow",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},flowControllerPatch:async(o,i,s={})=>{ft("flowControllerPatch","id",o),ft("flowControllerPatch","flow",i);const c="/api/flow/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},flowControllerPost:async(o,i={})=>{ft("flowControllerPost","flow",o);const s="/api/flow",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},flowFormControllerCopyReplaceForm:async(o,i,s,c={})=>{ft("flowFormControllerCopyReplaceForm","flowId",o),ft("flowFormControllerCopyReplaceForm","formId",i),ft("flowFormControllerCopyReplaceForm","flowFormCopyDto",s);const p="/api/flow-form/{flowId}/{formId}/copy-replace-form".replace("{flowId}",encodeURIComponent(String(o))).replace("{formId}",encodeURIComponent(String(i))),d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(s,b,e),{url:pt(d),options:b}},flowFormControllerDelete:async(o,i,s={})=>{ft("flowFormControllerDelete","flowId",o),ft("flowFormControllerDelete","formId",i);const c="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(o))).replace("{formId}",encodeURIComponent(String(i))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"DELETE",...d,...s},b={};dt(p,{});let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},flowFormControllerGet:async(o,i,s={})=>{ft("flowFormControllerGet","flowId",o),ft("flowFormControllerGet","formId",i);const c="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(o))).replace("{formId}",encodeURIComponent(String(i))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={};dt(p,{});let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},flowFormControllerIndex:async(o={})=>{const i="/api/flow-form",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},flowFormControllerPatch:async(o,i,s,c={})=>{ft("flowFormControllerPatch","flowId",o),ft("flowFormControllerPatch","formId",i),ft("flowFormControllerPatch","flowForm",s);const p="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(o))).replace("{formId}",encodeURIComponent(String(i))),d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"PATCH",...v,...c},S={},T={};S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(s,b,e),{url:pt(d),options:b}},flowFormControllerPost:async(o,i={})=>{ft("flowFormControllerPost","flowForm",o);const s="/api/flow-form",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},flowFormSearchControllerPost:async(o,i,s,c={})=>{ft("flowFormSearchControllerPost","flowForm",o);const p="/api/flow-form-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},flowSearchControllerPost:async(o,i,s,c={})=>{ft("flowSearchControllerPost","flow",o);const p="/api/flow-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},formComponentControllerDelete:async(o,i={})=>{ft("formComponentControllerDelete","id",o);const s="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},formComponentControllerGetById:async(o,i={})=>{ft("formComponentControllerGetById","id",o);const s="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},formComponentControllerIndex:async(o={})=>{const i="/api/form-component",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},formComponentControllerPatch:async(o,i,s={})=>{ft("formComponentControllerPatch","id",o),ft("formComponentControllerPatch","formComponent",i);const c="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},formComponentControllerPost:async(o,i={})=>{ft("formComponentControllerPost","formComponent",o);const s="/api/form-component",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},formComponentSearchControllerPost:async(o,i,s,c={})=>{ft("formComponentSearchControllerPost","formComponent",o);const p="/api/form-component-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},formControllerCopy:async(o,i={})=>{ft("formControllerCopy","formCopyDto",o);const s="/api/form/copy",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},formControllerDelete:async(o,i={})=>{ft("formControllerDelete","id",o);const s="/api/form/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},formControllerGet:async(o,i={})=>{ft("formControllerGet","id",o);const s="/api/form/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},formControllerIndex:async(o={})=>{const i="/api/form",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},formControllerPatch:async(o,i,s={})=>{ft("formControllerPatch","id",o),ft("formControllerPatch","form",i);const c="/api/form/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},formControllerPost:async(o,i={})=>{ft("formControllerPost","form",o);const s="/api/form",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},formSearchControllerPost:async(o,i,s,c={})=>{ft("formSearchControllerPost","form",o);const p="/api/form-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},healthControllerGet:async(o={})=>{const i="/api/health",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},oidcConfigControllerGetClient:async(o,i={})=>{ft("oidcConfigControllerGetClient","redirectUri",o);const s="/api/oidc-config/client/{redirectUri}".replace("{redirectUri}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},oidcConfigControllerGetEntra:async(o={})=>{const i="/api/oidc-config/entra",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},oidcCookieControllerPost:async(o,i,s={})=>{ft("oidcCookieControllerPost","origin",o),ft("oidcCookieControllerPost","tokensDto",i);const c="/api/oidc-cookie/{origin}".replace("{origin}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"POST",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},otpControllerSendOtp:async(o,i={})=>{ft("otpControllerSendOtp","body",o);const s="/api/otp/send",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},otpControllerVerifyOtp:async(o,i={})=>{ft("otpControllerVerifyOtp","body",o);const s="/api/otp/verify",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},patientControllerDelete:async(o,i={})=>{ft("patientControllerDelete","id",o);const s="/api/patient/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},patientControllerGet:async(o,i={})=>{ft("patientControllerGet","id",o);const s="/api/patient/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},patientControllerIndex:async(o={})=>{const i="/api/patient",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},patientControllerPatch:async(o,i,s={})=>{ft("patientControllerPatch","id",o),ft("patientControllerPatch","patient",i);const c="/api/patient/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},patientControllerPost:async(o,i={})=>{ft("patientControllerPost","patient",o);const s="/api/patient",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},patientSearchControllerPost:async(o,i,s,c={})=>{ft("patientSearchControllerPost","patient",o);const p="/api/patient-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},pipelineControllerCopy:async(o,i={})=>{ft("pipelineControllerCopy","pipelineCopyDto",o);const s="/api/pipeline/copy",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},pipelineControllerDelete:async(o,i={})=>{ft("pipelineControllerDelete","id",o);const s="/api/pipeline/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},pipelineControllerGet:async(o,i={})=>{ft("pipelineControllerGet","id",o);const s="/api/pipeline/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},pipelineControllerGetBySlug:async(o,i,s={})=>{ft("pipelineControllerGetBySlug","slug",o);const c="/api/pipeline/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={},S={};i!==void 0&&(S.version=i),dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},pipelineControllerIndex:async(o={})=>{const i="/api/pipeline",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},pipelineControllerPatch:async(o,i,s={})=>{ft("pipelineControllerPatch","id",o),ft("pipelineControllerPatch","pipeline",i);const c="/api/pipeline/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},pipelineControllerPost:async(o,i={})=>{ft("pipelineControllerPost","pipeline",o);const s="/api/pipeline",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},pipelineFlowControllerDelete:async(o,i={})=>{ft("pipelineFlowControllerDelete","id",o);const s="/api/pipeline-flow/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},pipelineFlowControllerGetById:async(o,i={})=>{ft("pipelineFlowControllerGetById","id",o);const s="/api/pipeline-flow/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},pipelineFlowControllerIndex:async(o={})=>{const i="/api/pipeline-flow",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},pipelineFlowControllerPatch:async(o,i,s={})=>{ft("pipelineFlowControllerPatch","id",o),ft("pipelineFlowControllerPatch","pipelineFlow",i);const c="/api/pipeline-flow/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},pipelineFlowControllerPost:async(o,i={})=>{ft("pipelineFlowControllerPost","pipelineFlow",o);const s="/api/pipeline-flow",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},pipelineFlowSearchControllerPost:async(o,i,s,c={})=>{ft("pipelineFlowSearchControllerPost","pipelineFlow",o);const p="/api/pipeline-flow-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},pipelineSearchControllerPost:async(o,i,s,c={})=>{ft("pipelineSearchControllerPost","pipeline",o);const p="/api/pipeline-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},previewFlowControllerGetBySlug:async(o,i,s={})=>{ft("previewFlowControllerGetBySlug","slug",o);const c="/api/preview-flow/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={},S={};i!==void 0&&(S.version=i),dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},previewPipelineControllerGetBySlug:async(o,i,s={})=>{ft("previewPipelineControllerGetBySlug","slug",o);const c="/api/preview-pipeline/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={},S={};i!==void 0&&(S.version=i),dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},propertyControllerDelete:async(o,i={})=>{ft("propertyControllerDelete","id",o);const s="/api/property/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},propertyControllerGet:async(o,i={})=>{ft("propertyControllerGet","id",o);const s="/api/property/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},propertyControllerIndex:async(o={})=>{const i="/api/property",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},propertyControllerPatch:async(o,i,s={})=>{ft("propertyControllerPatch","id",o),ft("propertyControllerPatch","property",i);const c="/api/property/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},propertyControllerPost:async(o,i={})=>{ft("propertyControllerPost","property",o);const s="/api/property",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},propertySearchControllerPost:async(o,i,s,c={})=>{ft("propertySearchControllerPost","property",o);const p="/api/property-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},tokenValidationControllerPost:async(o,i={})=>{ft("tokenValidationControllerPost","valueDto",o);const s="/api/token-validation",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},uploadControllerListImages:async(o={})=>{const i="/api/upload/images",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},uploadControllerListVideos:async(o={})=>{const i="/api/upload/videos",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},uploadControllerUploadImage:async(o,i={})=>{const s="/api/upload/image",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={},S=new(e&&e.formDataCtor||FormData);o!==void 0&&S.append("file",o),v["Content-Type"]="multipart/form-data",dt(c,b);let T=p&&p.headers?p.headers:{};return d.headers={...v,...T,...i.headers},d.data=S,{url:pt(c),options:d}},uploadControllerUploadVideo:async(o,i={})=>{const s="/api/upload/video",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={},S=new(e&&e.formDataCtor||FormData);o!==void 0&&S.append("file",o),v["Content-Type"]="multipart/form-data",dt(c,b);let T=p&&p.headers?p.headers:{};return d.headers={...v,...T,...i.headers},d.data=S,{url:pt(c),options:d}}}},mt=function(e){const o=Jj(e);return{async abTestControllerDelete(i,s){const c=await o.abTestControllerDelete(i,s);return ht(c,lt,ut,e)},async abTestControllerGet(i,s){const c=await o.abTestControllerGet(i,s);return ht(c,lt,ut,e)},async abTestControllerGetBySlug(i,s){const c=await o.abTestControllerGetBySlug(i,s);return ht(c,lt,ut,e)},async abTestControllerIndex(i){const s=await o.abTestControllerIndex(i);return ht(s,lt,ut,e)},async abTestControllerPatch(i,s,c){const p=await o.abTestControllerPatch(i,s,c);return ht(p,lt,ut,e)},async abTestControllerPost(i,s){const c=await o.abTestControllerPost(i,s);return ht(c,lt,ut,e)},async abTestSearchControllerPost(i,s,c,p){const d=await o.abTestSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async componentControllerDelete(i,s){const c=await o.componentControllerDelete(i,s);return ht(c,lt,ut,e)},async componentControllerGet(i,s){const c=await o.componentControllerGet(i,s);return ht(c,lt,ut,e)},async componentControllerIndex(i){const s=await o.componentControllerIndex(i);return ht(s,lt,ut,e)},async componentControllerPatch(i,s,c){const p=await o.componentControllerPatch(i,s,c);return ht(p,lt,ut,e)},async componentControllerPost(i,s){const c=await o.componentControllerPost(i,s);return ht(c,lt,ut,e)},async componentSearchControllerPost(i,s,c,p){const d=await o.componentSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async conditionControllerDelete(i,s){const c=await o.conditionControllerDelete(i,s);return ht(c,lt,ut,e)},async conditionControllerGet(i,s){const c=await o.conditionControllerGet(i,s);return ht(c,lt,ut,e)},async conditionControllerIndex(i){const s=await o.conditionControllerIndex(i);return ht(s,lt,ut,e)},async conditionControllerPatch(i,s,c){const p=await o.conditionControllerPatch(i,s,c);return ht(p,lt,ut,e)},async conditionControllerPost(i,s){const c=await o.conditionControllerPost(i,s);return ht(c,lt,ut,e)},async conditionSearchControllerPost(i,s,c,p){const d=await o.conditionSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async flowControllerCopy(i,s){const c=await o.flowControllerCopy(i,s);return ht(c,lt,ut,e)},async flowControllerDelete(i,s){const c=await o.flowControllerDelete(i,s);return ht(c,lt,ut,e)},async flowControllerGet(i,s){const c=await o.flowControllerGet(i,s);return ht(c,lt,ut,e)},async flowControllerGetBySlug(i,s,c){const p=await o.flowControllerGetBySlug(i,s,c);return ht(p,lt,ut,e)},async flowControllerGetFull(i,s){const c=await o.flowControllerGetFull(i,s);return ht(c,lt,ut,e)},async flowControllerIndex(i){const s=await o.flowControllerIndex(i);return ht(s,lt,ut,e)},async flowControllerPatch(i,s,c){const p=await o.flowControllerPatch(i,s,c);return ht(p,lt,ut,e)},async flowControllerPost(i,s){const c=await o.flowControllerPost(i,s);return ht(c,lt,ut,e)},async flowFormControllerCopyReplaceForm(i,s,c,p){const d=await o.flowFormControllerCopyReplaceForm(i,s,c,p);return ht(d,lt,ut,e)},async flowFormControllerDelete(i,s,c){const p=await o.flowFormControllerDelete(i,s,c);return ht(p,lt,ut,e)},async flowFormControllerGet(i,s,c){const p=await o.flowFormControllerGet(i,s,c);return ht(p,lt,ut,e)},async flowFormControllerIndex(i){const s=await o.flowFormControllerIndex(i);return ht(s,lt,ut,e)},async flowFormControllerPatch(i,s,c,p){const d=await o.flowFormControllerPatch(i,s,c,p);return ht(d,lt,ut,e)},async flowFormControllerPost(i,s){const c=await o.flowFormControllerPost(i,s);return ht(c,lt,ut,e)},async flowFormSearchControllerPost(i,s,c,p){const d=await o.flowFormSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async flowSearchControllerPost(i,s,c,p){const d=await o.flowSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async formComponentControllerDelete(i,s){const c=await o.formComponentControllerDelete(i,s);return ht(c,lt,ut,e)},async formComponentControllerGetById(i,s){const c=await o.formComponentControllerGetById(i,s);return ht(c,lt,ut,e)},async formComponentControllerIndex(i){const s=await o.formComponentControllerIndex(i);return ht(s,lt,ut,e)},async formComponentControllerPatch(i,s,c){const p=await o.formComponentControllerPatch(i,s,c);return ht(p,lt,ut,e)},async formComponentControllerPost(i,s){const c=await o.formComponentControllerPost(i,s);return ht(c,lt,ut,e)},async formComponentSearchControllerPost(i,s,c,p){const d=await o.formComponentSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async formControllerCopy(i,s){const c=await o.formControllerCopy(i,s);return ht(c,lt,ut,e)},async formControllerDelete(i,s){const c=await o.formControllerDelete(i,s);return ht(c,lt,ut,e)},async formControllerGet(i,s){const c=await o.formControllerGet(i,s);return ht(c,lt,ut,e)},async formControllerIndex(i){const s=await o.formControllerIndex(i);return ht(s,lt,ut,e)},async formControllerPatch(i,s,c){const p=await o.formControllerPatch(i,s,c);return ht(p,lt,ut,e)},async formControllerPost(i,s){const c=await o.formControllerPost(i,s);return ht(c,lt,ut,e)},async formSearchControllerPost(i,s,c,p){const d=await o.formSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async healthControllerGet(i){const s=await o.healthControllerGet(i);return ht(s,lt,ut,e)},async oidcConfigControllerGetClient(i,s){const c=await o.oidcConfigControllerGetClient(i,s);return ht(c,lt,ut,e)},async oidcConfigControllerGetEntra(i){const s=await o.oidcConfigControllerGetEntra(i);return ht(s,lt,ut,e)},async oidcCookieControllerPost(i,s,c){const p=await o.oidcCookieControllerPost(i,s,c);return ht(p,lt,ut,e)},async otpControllerSendOtp(i,s){const c=await o.otpControllerSendOtp(i,s);return ht(c,lt,ut,e)},async otpControllerVerifyOtp(i,s){const c=await o.otpControllerVerifyOtp(i,s);return ht(c,lt,ut,e)},async patientControllerDelete(i,s){const c=await o.patientControllerDelete(i,s);return ht(c,lt,ut,e)},async patientControllerGet(i,s){const c=await o.patientControllerGet(i,s);return ht(c,lt,ut,e)},async patientControllerIndex(i){const s=await o.patientControllerIndex(i);return ht(s,lt,ut,e)},async patientControllerPatch(i,s,c){const p=await o.patientControllerPatch(i,s,c);return ht(p,lt,ut,e)},async patientControllerPost(i,s){const c=await o.patientControllerPost(i,s);return ht(c,lt,ut,e)},async patientSearchControllerPost(i,s,c,p){const d=await o.patientSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async pipelineControllerCopy(i,s){const c=await o.pipelineControllerCopy(i,s);return ht(c,lt,ut,e)},async pipelineControllerDelete(i,s){const c=await o.pipelineControllerDelete(i,s);return ht(c,lt,ut,e)},async pipelineControllerGet(i,s){const c=await o.pipelineControllerGet(i,s);return ht(c,lt,ut,e)},async pipelineControllerGetBySlug(i,s,c){const p=await o.pipelineControllerGetBySlug(i,s,c);return ht(p,lt,ut,e)},async pipelineControllerIndex(i){const s=await o.pipelineControllerIndex(i);return ht(s,lt,ut,e)},async pipelineControllerPatch(i,s,c){const p=await o.pipelineControllerPatch(i,s,c);return ht(p,lt,ut,e)},async pipelineControllerPost(i,s){const c=await o.pipelineControllerPost(i,s);return ht(c,lt,ut,e)},async pipelineFlowControllerDelete(i,s){const c=await o.pipelineFlowControllerDelete(i,s);return ht(c,lt,ut,e)},async pipelineFlowControllerGetById(i,s){const c=await o.pipelineFlowControllerGetById(i,s);return ht(c,lt,ut,e)},async pipelineFlowControllerIndex(i){const s=await o.pipelineFlowControllerIndex(i);return ht(s,lt,ut,e)},async pipelineFlowControllerPatch(i,s,c){const p=await o.pipelineFlowControllerPatch(i,s,c);return ht(p,lt,ut,e)},async pipelineFlowControllerPost(i,s){const c=await o.pipelineFlowControllerPost(i,s);return ht(c,lt,ut,e)},async pipelineFlowSearchControllerPost(i,s,c,p){const d=await o.pipelineFlowSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async pipelineSearchControllerPost(i,s,c,p){const d=await o.pipelineSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async previewFlowControllerGetBySlug(i,s,c){const p=await o.previewFlowControllerGetBySlug(i,s,c);return ht(p,lt,ut,e)},async previewPipelineControllerGetBySlug(i,s,c){const p=await o.previewPipelineControllerGetBySlug(i,s,c);return ht(p,lt,ut,e)},async propertyControllerDelete(i,s){const c=await o.propertyControllerDelete(i,s);return ht(c,lt,ut,e)},async propertyControllerGet(i,s){const c=await o.propertyControllerGet(i,s);return ht(c,lt,ut,e)},async propertyControllerIndex(i){const s=await o.propertyControllerIndex(i);return ht(s,lt,ut,e)},async propertyControllerPatch(i,s,c){const p=await o.propertyControllerPatch(i,s,c);return ht(p,lt,ut,e)},async propertyControllerPost(i,s){const c=await o.propertyControllerPost(i,s);return ht(c,lt,ut,e)},async propertySearchControllerPost(i,s,c,p){const d=await o.propertySearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async tokenValidationControllerPost(i,s){const c=await o.tokenValidationControllerPost(i,s);return ht(c,lt,ut,e)},async uploadControllerListImages(i){const s=await o.uploadControllerListImages(i);return ht(s,lt,ut,e)},async uploadControllerListVideos(i){const s=await o.uploadControllerListVideos(i);return ht(s,lt,ut,e)},async uploadControllerUploadImage(i,s){const c=await o.uploadControllerUploadImage(i,s);return ht(c,lt,ut,e)},async uploadControllerUploadVideo(i,s){const c=await o.uploadControllerUploadVideo(i,s);return ht(c,lt,ut,e)}}};class eU extends Kj{abTestControllerDelete(o,i){return mt(this.configuration).abTestControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}abTestControllerGet(o,i){return mt(this.configuration).abTestControllerGet(o,i).then(s=>s(this.axios,this.basePath))}abTestControllerGetBySlug(o,i){return mt(this.configuration).abTestControllerGetBySlug(o,i).then(s=>s(this.axios,this.basePath))}abTestControllerIndex(o){return mt(this.configuration).abTestControllerIndex(o).then(i=>i(this.axios,this.basePath))}abTestControllerPatch(o,i,s){return mt(this.configuration).abTestControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}abTestControllerPost(o,i){return mt(this.configuration).abTestControllerPost(o,i).then(s=>s(this.axios,this.basePath))}abTestSearchControllerPost(o,i,s,c){return mt(this.configuration).abTestSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}componentControllerDelete(o,i){return mt(this.configuration).componentControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}componentControllerGet(o,i){return mt(this.configuration).componentControllerGet(o,i).then(s=>s(this.axios,this.basePath))}componentControllerIndex(o){return mt(this.configuration).componentControllerIndex(o).then(i=>i(this.axios,this.basePath))}componentControllerPatch(o,i,s){return mt(this.configuration).componentControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}componentControllerPost(o,i){return mt(this.configuration).componentControllerPost(o,i).then(s=>s(this.axios,this.basePath))}componentSearchControllerPost(o,i,s,c){return mt(this.configuration).componentSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}conditionControllerDelete(o,i){return mt(this.configuration).conditionControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}conditionControllerGet(o,i){return mt(this.configuration).conditionControllerGet(o,i).then(s=>s(this.axios,this.basePath))}conditionControllerIndex(o){return mt(this.configuration).conditionControllerIndex(o).then(i=>i(this.axios,this.basePath))}conditionControllerPatch(o,i,s){return mt(this.configuration).conditionControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}conditionControllerPost(o,i){return mt(this.configuration).conditionControllerPost(o,i).then(s=>s(this.axios,this.basePath))}conditionSearchControllerPost(o,i,s,c){return mt(this.configuration).conditionSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}flowControllerCopy(o,i){return mt(this.configuration).flowControllerCopy(o,i).then(s=>s(this.axios,this.basePath))}flowControllerDelete(o,i){return mt(this.configuration).flowControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}flowControllerGet(o,i){return mt(this.configuration).flowControllerGet(o,i).then(s=>s(this.axios,this.basePath))}flowControllerGetBySlug(o,i,s){return mt(this.configuration).flowControllerGetBySlug(o,i,s).then(c=>c(this.axios,this.basePath))}flowControllerGetFull(o,i){return mt(this.configuration).flowControllerGetFull(o,i).then(s=>s(this.axios,this.basePath))}flowControllerIndex(o){return mt(this.configuration).flowControllerIndex(o).then(i=>i(this.axios,this.basePath))}flowControllerPatch(o,i,s){return mt(this.configuration).flowControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}flowControllerPost(o,i){return mt(this.configuration).flowControllerPost(o,i).then(s=>s(this.axios,this.basePath))}flowFormControllerCopyReplaceForm(o,i,s,c){return mt(this.configuration).flowFormControllerCopyReplaceForm(o,i,s,c).then(p=>p(this.axios,this.basePath))}flowFormControllerDelete(o,i,s){return mt(this.configuration).flowFormControllerDelete(o,i,s).then(c=>c(this.axios,this.basePath))}flowFormControllerGet(o,i,s){return mt(this.configuration).flowFormControllerGet(o,i,s).then(c=>c(this.axios,this.basePath))}flowFormControllerIndex(o){return mt(this.configuration).flowFormControllerIndex(o).then(i=>i(this.axios,this.basePath))}flowFormControllerPatch(o,i,s,c){return mt(this.configuration).flowFormControllerPatch(o,i,s,c).then(p=>p(this.axios,this.basePath))}flowFormControllerPost(o,i){return mt(this.configuration).flowFormControllerPost(o,i).then(s=>s(this.axios,this.basePath))}flowFormSearchControllerPost(o,i,s,c){return mt(this.configuration).flowFormSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}flowSearchControllerPost(o,i,s,c){return mt(this.configuration).flowSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}formComponentControllerDelete(o,i){return mt(this.configuration).formComponentControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}formComponentControllerGetById(o,i){return mt(this.configuration).formComponentControllerGetById(o,i).then(s=>s(this.axios,this.basePath))}formComponentControllerIndex(o){return mt(this.configuration).formComponentControllerIndex(o).then(i=>i(this.axios,this.basePath))}formComponentControllerPatch(o,i,s){return mt(this.configuration).formComponentControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}formComponentControllerPost(o,i){return mt(this.configuration).formComponentControllerPost(o,i).then(s=>s(this.axios,this.basePath))}formComponentSearchControllerPost(o,i,s,c){return mt(this.configuration).formComponentSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}formControllerCopy(o,i){return mt(this.configuration).formControllerCopy(o,i).then(s=>s(this.axios,this.basePath))}formControllerDelete(o,i){return mt(this.configuration).formControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}formControllerGet(o,i){return mt(this.configuration).formControllerGet(o,i).then(s=>s(this.axios,this.basePath))}formControllerIndex(o){return mt(this.configuration).formControllerIndex(o).then(i=>i(this.axios,this.basePath))}formControllerPatch(o,i,s){return mt(this.configuration).formControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}formControllerPost(o,i){return mt(this.configuration).formControllerPost(o,i).then(s=>s(this.axios,this.basePath))}formSearchControllerPost(o,i,s,c){return mt(this.configuration).formSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}healthControllerGet(o){return mt(this.configuration).healthControllerGet(o).then(i=>i(this.axios,this.basePath))}oidcConfigControllerGetClient(o,i){return mt(this.configuration).oidcConfigControllerGetClient(o,i).then(s=>s(this.axios,this.basePath))}oidcConfigControllerGetEntra(o){return mt(this.configuration).oidcConfigControllerGetEntra(o).then(i=>i(this.axios,this.basePath))}oidcCookieControllerPost(o,i,s){return mt(this.configuration).oidcCookieControllerPost(o,i,s).then(c=>c(this.axios,this.basePath))}otpControllerSendOtp(o,i){return mt(this.configuration).otpControllerSendOtp(o,i).then(s=>s(this.axios,this.basePath))}otpControllerVerifyOtp(o,i){return mt(this.configuration).otpControllerVerifyOtp(o,i).then(s=>s(this.axios,this.basePath))}patientControllerDelete(o,i){return mt(this.configuration).patientControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}patientControllerGet(o,i){return mt(this.configuration).patientControllerGet(o,i).then(s=>s(this.axios,this.basePath))}patientControllerIndex(o){return mt(this.configuration).patientControllerIndex(o).then(i=>i(this.axios,this.basePath))}patientControllerPatch(o,i,s){return mt(this.configuration).patientControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}patientControllerPost(o,i){return mt(this.configuration).patientControllerPost(o,i).then(s=>s(this.axios,this.basePath))}patientSearchControllerPost(o,i,s,c){return mt(this.configuration).patientSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}pipelineControllerCopy(o,i){return mt(this.configuration).pipelineControllerCopy(o,i).then(s=>s(this.axios,this.basePath))}pipelineControllerDelete(o,i){return mt(this.configuration).pipelineControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}pipelineControllerGet(o,i){return mt(this.configuration).pipelineControllerGet(o,i).then(s=>s(this.axios,this.basePath))}pipelineControllerGetBySlug(o,i,s){return mt(this.configuration).pipelineControllerGetBySlug(o,i,s).then(c=>c(this.axios,this.basePath))}pipelineControllerIndex(o){return mt(this.configuration).pipelineControllerIndex(o).then(i=>i(this.axios,this.basePath))}pipelineControllerPatch(o,i,s){return mt(this.configuration).pipelineControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}pipelineControllerPost(o,i){return mt(this.configuration).pipelineControllerPost(o,i).then(s=>s(this.axios,this.basePath))}pipelineFlowControllerDelete(o,i){return mt(this.configuration).pipelineFlowControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}pipelineFlowControllerGetById(o,i){return mt(this.configuration).pipelineFlowControllerGetById(o,i).then(s=>s(this.axios,this.basePath))}pipelineFlowControllerIndex(o){return mt(this.configuration).pipelineFlowControllerIndex(o).then(i=>i(this.axios,this.basePath))}pipelineFlowControllerPatch(o,i,s){return mt(this.configuration).pipelineFlowControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}pipelineFlowControllerPost(o,i){return mt(this.configuration).pipelineFlowControllerPost(o,i).then(s=>s(this.axios,this.basePath))}pipelineFlowSearchControllerPost(o,i,s,c){return mt(this.configuration).pipelineFlowSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}pipelineSearchControllerPost(o,i,s,c){return mt(this.configuration).pipelineSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}previewFlowControllerGetBySlug(o,i,s){return mt(this.configuration).previewFlowControllerGetBySlug(o,i,s).then(c=>c(this.axios,this.basePath))}previewPipelineControllerGetBySlug(o,i,s){return mt(this.configuration).previewPipelineControllerGetBySlug(o,i,s).then(c=>c(this.axios,this.basePath))}propertyControllerDelete(o,i){return mt(this.configuration).propertyControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}propertyControllerGet(o,i){return mt(this.configuration).propertyControllerGet(o,i).then(s=>s(this.axios,this.basePath))}propertyControllerIndex(o){return mt(this.configuration).propertyControllerIndex(o).then(i=>i(this.axios,this.basePath))}propertyControllerPatch(o,i,s){return mt(this.configuration).propertyControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}propertyControllerPost(o,i){return mt(this.configuration).propertyControllerPost(o,i).then(s=>s(this.axios,this.basePath))}propertySearchControllerPost(o,i,s,c){return mt(this.configuration).propertySearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}tokenValidationControllerPost(o,i){return mt(this.configuration).tokenValidationControllerPost(o,i).then(s=>s(this.axios,this.basePath))}uploadControllerListImages(o){return mt(this.configuration).uploadControllerListImages(o).then(i=>i(this.axios,this.basePath))}uploadControllerListVideos(o){return mt(this.configuration).uploadControllerListVideos(o).then(i=>i(this.axios,this.basePath))}uploadControllerUploadImage(o,i){return mt(this.configuration).uploadControllerUploadImage(o,i).then(s=>s(this.axios,this.basePath))}uploadControllerUploadVideo(o,i){return mt(this.configuration).uploadControllerUploadVideo(o,i).then(s=>s(this.axios,this.basePath))}}function tU(e,o=""){return{api:o||(!location.port||location.port==="80"?"":e),ui:location.origin}}const qA=e=>{const o=tU("http://localhost:3129",e);return Xj(eU,{apiUrl:o.api})},QA=({dataFetcher:e=()=>{},children:o,configFetcher:i,isPreview:s=!1,onSubmit:c=()=>Promise.resolve(),formidavimHost:p,version:d,flowName:v="",onNextStep:b,onPrevStep:S,onFlowInit:T,onConfigFetchError:E,shouldRedirect:R})=>{const k=qA(p),[M,P]=Je.useState({config:null,data:null}),[B,W]=Je.useState(!0);return Je.useEffect(()=>{(i?i():k.flowControllerGetBySlug(v,d).then(({data:A})=>A)).then(async A=>{const L=e?await e():null;P({config:A,data:L}),T&&T(A),W(!1)}).catch(A=>{console.warn("configFetcher failed",A),E&&E(A),W(!1)})},[v,d]),B?null:M.config?_.jsx(bw,{children:_.jsx(gw,{data:M.data,isPreview:s,config:M.config,onSubmit:c,onNextStep:b,onPrevStep:S,shouldRedirect:R})}):_.jsx(_.Fragment,{children:o})},nU=({dataFetcher:e=()=>Promise.resolve(null),children:o,configFetcher:i,pipelineFetcher:s,isPreview:c=!1,onSubmit:p=()=>Promise.resolve(),formidavimHost:d,version:v,flowName:b="",onNextStep:S,onPrevStep:T,onFlowInit:E,onPipelineInit:R,onNoFlowsAvailable:k,onConfigFetchError:M})=>{const P=qA(d),[B,W]=Je.useState({config:null,data:null}),[Y,A]=Je.useState(0),[L,D]=Je.useState([]),[U,K]=Je.useState(!0),[ce,xe]=Je.useState(!1);Je.useEffect(()=>{(s?s():P.previewPipelineControllerGetBySlug(b,v).then(({data:ge})=>ge)).then(async ge=>{const be=e?await e():null;if(W({config:ge,data:be}),ge!=null&&ge.pipelineFlows&&(await V(ge.pipelineFlows,be)).length===0){k&&k();return}R&&R(ge.pipelineFlows),K(!1)}).catch(ge=>{console.warn("configFetcher failed",ge),M&&M(ge),K(!1)})},[b,v]);const V=async(we,ge)=>{var re;const be=[],Fe=Ee=>{var z;return(z=ge==null?void 0:ge.data)==null?void 0:z[Ee]},Pe=()=>ge,ve=(Ee,z)=>{var ye;const H=(ye=ge==null?void 0:ge.data)==null?void 0:ye.flowSubmissions;return!(!H||!H[Ee])};for(const Ee of we)ve(Ee.flowSlug,(re=Ee.flow)==null?void 0:re.version)||Ee.condition&&!await BA(Ee.condition,Fe,Pe)||be.push(Ee);return D(be),be};if(U)return null;if(!B.config)return _.jsx(QA,{dataFetcher:e,configFetcher:i,flowName:b,formidavimHost:d,onSubmit:p,isPreview:!1,onNextStep:S,onPrevStep:T,children:o});const he=()=>{var we;return((we=L==null?void 0:L[Y])==null?void 0:we.flow)||{}},Ae=()=>Y<((L==null?void 0:L.length)||0)-1,ie=async we=>{var ge;if(!ce){xe(!0);try{const be=!Ae();await p(we,he(),be);const Fe=e?await e():null;W(Pe=>({...Pe,data:Fe})),(ge=B.config)!=null&&ge.pipelineFlows&&(await V(B.config.pipelineFlows,Fe)).length>0&&A(0)}finally{xe(!1)}}};return _.jsx(bw,{children:_.jsx(gw,{data:B.data,isPreview:c,config:he(),onSubmit:ie,onNextStep:S,onPrevStep:T,shouldRedirect:!1})})};exports.ComponentFactory=W0;exports.DataRenderer=QA;exports.FlowFormRenderer=HA;exports.FlowProgressTracker=X$;exports.FlowRenderer=zA;exports.FormComponentRenderer=GA;exports.FormRenderer=WA;exports.FormWrapper=YA;exports.PipelineProcessor=nU;exports.Renderer=gw;exports.RendererWrapper=bw;
3298
+ `,YA=({children:e,$bgColor:o})=>_.jsx(gp,{$overflow:"visible",$position:"static",$xSmall:!0,id:"MainFlowContainer",$bgColor:o||"white",$bRad:"0px",$marginBottom:"80px",$marginBottomMd:"0px",children:_.jsx(qj,{onSubmit:i=>i.preventDefault(),children:e})});function Qj(e){const{onError:o,on401:i,on403:s,on400:c,on500:p,addHeaders:d,onRequest:v,onResponse:b,modifyRequest:S}=e,T=lt.create();return T.interceptors.request.use(E=>(E.headers||(E.headers={}),typeof d=="function"&&Object.entries(d(E)||{}).forEach(([R,k])=>E.headers[R]=k),typeof v=="function"&&v(E),typeof S=="function"?S(E):E)),T.interceptors.response.use(E=>(typeof b=="function"&&b(E),E),E=>{var k,M,P,B;const R={config:{}};if(typeof o=="function"&&o((E==null?void 0:E.response)||R),((k=E==null?void 0:E.response)==null?void 0:k.status)===400)typeof c=="function"&&c((E==null?void 0:E.response)||R);else if(((M=E==null?void 0:E.response)==null?void 0:M.status)===401)typeof i=="function"&&i((E==null?void 0:E.response)||R);else if(((P=E==null?void 0:E.response)==null?void 0:P.status)===403)typeof s=="function"&&s((E==null?void 0:E.response)||R);else if(((B=E==null?void 0:E.response)==null?void 0:B.status)===500)typeof p=="function"&&p((E==null?void 0:E.response)||R);else throw E}),T}function Xj(e,o){const{apiUrl:i}=o;return new e({basePath:i},i,Qj(o))}const ut="http://localhost".replace(/\/+$/,"");class Kj{constructor(o,i=ut,s=lt){this.basePath=i,this.axios=s,o&&(this.configuration=o,this.basePath=o.basePath||this.basePath)}}class Zj extends Error{constructor(o,i){super(i),this.field=o,this.name="RequiredError"}}const ct="https://example.com",ft=function(e,o,i){if(i==null)throw new Zj(o,`Required parameter ${o} was null or undefined when calling ${e}.`)};function BC(e,o,i=""){o!=null&&(typeof o=="object"?Array.isArray(o)?o.forEach(s=>BC(e,s,i)):Object.keys(o).forEach(s=>BC(e,o[s],`${i}${i!==""?".":""}${s}`)):e.has(i)?e.append(i,o):e.set(i,o))}const dt=function(e,...o){const i=new URLSearchParams(e.search);BC(i,o),e.search=i.toString()},vn=function(e,o,i){const s=typeof e!="string";return(s&&i&&i.isJsonMime?i.isJsonMime(o.headers["Content-Type"]):s)?JSON.stringify(e!==void 0?e:{}):e||""},pt=function(e){return e.pathname+e.search+e.hash},ht=function(e,o,i,s){return(c=o,p=i)=>{const d={...e.options,url:((s==null?void 0:s.basePath)||p)+e.url};return c.request(d)}},Jj=function(e){return{abTestControllerDelete:async(o,i={})=>{ft("abTestControllerDelete","id",o);const s="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},abTestControllerGet:async(o,i={})=>{ft("abTestControllerGet","id",o);const s="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},abTestControllerGetBySlug:async(o,i={})=>{ft("abTestControllerGetBySlug","slug",o);const s="/api/ab-test/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},abTestControllerIndex:async(o={})=>{const i="/api/ab-test",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},abTestControllerPatch:async(o,i,s={})=>{ft("abTestControllerPatch","id",o),ft("abTestControllerPatch","abTest",i);const c="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},abTestControllerPost:async(o,i={})=>{ft("abTestControllerPost","abTest",o);const s="/api/ab-test",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},abTestSearchControllerPost:async(o,i,s,c={})=>{ft("abTestSearchControllerPost","abTest",o);const p="/api/ab-test-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},componentControllerDelete:async(o,i={})=>{ft("componentControllerDelete","id",o);const s="/api/component/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},componentControllerGet:async(o,i={})=>{ft("componentControllerGet","id",o);const s="/api/component/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},componentControllerIndex:async(o={})=>{const i="/api/component",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},componentControllerPatch:async(o,i,s={})=>{ft("componentControllerPatch","id",o),ft("componentControllerPatch","component",i);const c="/api/component/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},componentControllerPost:async(o,i={})=>{ft("componentControllerPost","component",o);const s="/api/component",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},componentSearchControllerPost:async(o,i,s,c={})=>{ft("componentSearchControllerPost","component",o);const p="/api/component-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},conditionControllerDelete:async(o,i={})=>{ft("conditionControllerDelete","id",o);const s="/api/condition/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},conditionControllerGet:async(o,i={})=>{ft("conditionControllerGet","id",o);const s="/api/condition/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},conditionControllerIndex:async(o={})=>{const i="/api/condition",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},conditionControllerPatch:async(o,i,s={})=>{ft("conditionControllerPatch","id",o),ft("conditionControllerPatch","condition",i);const c="/api/condition/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},conditionControllerPost:async(o,i={})=>{ft("conditionControllerPost","condition",o);const s="/api/condition",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},conditionSearchControllerPost:async(o,i,s,c={})=>{ft("conditionSearchControllerPost","condition",o);const p="/api/condition-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},flowControllerCopy:async(o,i={})=>{ft("flowControllerCopy","flowCopyDto",o);const s="/api/flow/copy",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},flowControllerDelete:async(o,i={})=>{ft("flowControllerDelete","id",o);const s="/api/flow/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},flowControllerGet:async(o,i={})=>{ft("flowControllerGet","id",o);const s="/api/flow/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},flowControllerGetBySlug:async(o,i,s={})=>{ft("flowControllerGetBySlug","slug",o);const c="/api/flow/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={},S={};i!==void 0&&(S.version=i),dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},flowControllerGetFull:async(o,i={})=>{ft("flowControllerGetFull","id",o);const s="/api/flow/{id}/full".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},flowControllerIndex:async(o={})=>{const i="/api/flow",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},flowControllerPatch:async(o,i,s={})=>{ft("flowControllerPatch","id",o),ft("flowControllerPatch","flow",i);const c="/api/flow/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},flowControllerPost:async(o,i={})=>{ft("flowControllerPost","flow",o);const s="/api/flow",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},flowFormControllerCopyReplaceForm:async(o,i,s,c={})=>{ft("flowFormControllerCopyReplaceForm","flowId",o),ft("flowFormControllerCopyReplaceForm","formId",i),ft("flowFormControllerCopyReplaceForm","flowFormCopyDto",s);const p="/api/flow-form/{flowId}/{formId}/copy-replace-form".replace("{flowId}",encodeURIComponent(String(o))).replace("{formId}",encodeURIComponent(String(i))),d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(s,b,e),{url:pt(d),options:b}},flowFormControllerDelete:async(o,i,s={})=>{ft("flowFormControllerDelete","flowId",o),ft("flowFormControllerDelete","formId",i);const c="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(o))).replace("{formId}",encodeURIComponent(String(i))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"DELETE",...d,...s},b={};dt(p,{});let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},flowFormControllerGet:async(o,i,s={})=>{ft("flowFormControllerGet","flowId",o),ft("flowFormControllerGet","formId",i);const c="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(o))).replace("{formId}",encodeURIComponent(String(i))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={};dt(p,{});let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},flowFormControllerIndex:async(o={})=>{const i="/api/flow-form",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},flowFormControllerPatch:async(o,i,s,c={})=>{ft("flowFormControllerPatch","flowId",o),ft("flowFormControllerPatch","formId",i),ft("flowFormControllerPatch","flowForm",s);const p="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(o))).replace("{formId}",encodeURIComponent(String(i))),d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"PATCH",...v,...c},S={},T={};S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(s,b,e),{url:pt(d),options:b}},flowFormControllerPost:async(o,i={})=>{ft("flowFormControllerPost","flowForm",o);const s="/api/flow-form",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},flowFormSearchControllerPost:async(o,i,s,c={})=>{ft("flowFormSearchControllerPost","flowForm",o);const p="/api/flow-form-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},flowSearchControllerPost:async(o,i,s,c={})=>{ft("flowSearchControllerPost","flow",o);const p="/api/flow-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},formComponentControllerDelete:async(o,i={})=>{ft("formComponentControllerDelete","id",o);const s="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},formComponentControllerGetById:async(o,i={})=>{ft("formComponentControllerGetById","id",o);const s="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},formComponentControllerIndex:async(o={})=>{const i="/api/form-component",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},formComponentControllerPatch:async(o,i,s={})=>{ft("formComponentControllerPatch","id",o),ft("formComponentControllerPatch","formComponent",i);const c="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},formComponentControllerPost:async(o,i={})=>{ft("formComponentControllerPost","formComponent",o);const s="/api/form-component",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},formComponentSearchControllerPost:async(o,i,s,c={})=>{ft("formComponentSearchControllerPost","formComponent",o);const p="/api/form-component-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},formControllerCopy:async(o,i={})=>{ft("formControllerCopy","formCopyDto",o);const s="/api/form/copy",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},formControllerDelete:async(o,i={})=>{ft("formControllerDelete","id",o);const s="/api/form/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},formControllerGet:async(o,i={})=>{ft("formControllerGet","id",o);const s="/api/form/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},formControllerIndex:async(o={})=>{const i="/api/form",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},formControllerPatch:async(o,i,s={})=>{ft("formControllerPatch","id",o),ft("formControllerPatch","form",i);const c="/api/form/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},formControllerPost:async(o,i={})=>{ft("formControllerPost","form",o);const s="/api/form",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},formSearchControllerPost:async(o,i,s,c={})=>{ft("formSearchControllerPost","form",o);const p="/api/form-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},healthControllerGet:async(o={})=>{const i="/api/health",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},oidcConfigControllerGetClient:async(o,i={})=>{ft("oidcConfigControllerGetClient","redirectUri",o);const s="/api/oidc-config/client/{redirectUri}".replace("{redirectUri}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},oidcConfigControllerGetEntra:async(o={})=>{const i="/api/oidc-config/entra",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},oidcCookieControllerPost:async(o,i,s={})=>{ft("oidcCookieControllerPost","origin",o),ft("oidcCookieControllerPost","tokensDto",i);const c="/api/oidc-cookie/{origin}".replace("{origin}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"POST",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},otpControllerSendOtp:async(o,i={})=>{ft("otpControllerSendOtp","body",o);const s="/api/otp/send",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},otpControllerVerifyOtp:async(o,i={})=>{ft("otpControllerVerifyOtp","body",o);const s="/api/otp/verify",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},patientControllerDelete:async(o,i={})=>{ft("patientControllerDelete","id",o);const s="/api/patient/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},patientControllerGet:async(o,i={})=>{ft("patientControllerGet","id",o);const s="/api/patient/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},patientControllerIndex:async(o={})=>{const i="/api/patient",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},patientControllerPatch:async(o,i,s={})=>{ft("patientControllerPatch","id",o),ft("patientControllerPatch","patient",i);const c="/api/patient/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},patientControllerPost:async(o,i={})=>{ft("patientControllerPost","patient",o);const s="/api/patient",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},patientSearchControllerPost:async(o,i,s,c={})=>{ft("patientSearchControllerPost","patient",o);const p="/api/patient-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},pipelineControllerCopy:async(o,i={})=>{ft("pipelineControllerCopy","pipelineCopyDto",o);const s="/api/pipeline/copy",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},pipelineControllerDelete:async(o,i={})=>{ft("pipelineControllerDelete","id",o);const s="/api/pipeline/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},pipelineControllerGet:async(o,i={})=>{ft("pipelineControllerGet","id",o);const s="/api/pipeline/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},pipelineControllerGetBySlug:async(o,i,s={})=>{ft("pipelineControllerGetBySlug","slug",o);const c="/api/pipeline/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={},S={};i!==void 0&&(S.version=i),dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},pipelineControllerIndex:async(o={})=>{const i="/api/pipeline",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},pipelineControllerPatch:async(o,i,s={})=>{ft("pipelineControllerPatch","id",o),ft("pipelineControllerPatch","pipeline",i);const c="/api/pipeline/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},pipelineControllerPost:async(o,i={})=>{ft("pipelineControllerPost","pipeline",o);const s="/api/pipeline",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},pipelineFlowControllerDelete:async(o,i={})=>{ft("pipelineFlowControllerDelete","id",o);const s="/api/pipeline-flow/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},pipelineFlowControllerGetById:async(o,i={})=>{ft("pipelineFlowControllerGetById","id",o);const s="/api/pipeline-flow/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},pipelineFlowControllerIndex:async(o={})=>{const i="/api/pipeline-flow",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},pipelineFlowControllerPatch:async(o,i,s={})=>{ft("pipelineFlowControllerPatch","id",o),ft("pipelineFlowControllerPatch","pipelineFlow",i);const c="/api/pipeline-flow/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},pipelineFlowControllerPost:async(o,i={})=>{ft("pipelineFlowControllerPost","pipelineFlow",o);const s="/api/pipeline-flow",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},pipelineFlowSearchControllerPost:async(o,i,s,c={})=>{ft("pipelineFlowSearchControllerPost","pipelineFlow",o);const p="/api/pipeline-flow-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},pipelineSearchControllerPost:async(o,i,s,c={})=>{ft("pipelineSearchControllerPost","pipeline",o);const p="/api/pipeline-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},previewFlowControllerGetBySlug:async(o,i,s={})=>{ft("previewFlowControllerGetBySlug","slug",o);const c="/api/preview-flow/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={},S={};i!==void 0&&(S.version=i),dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},previewPipelineControllerGetBySlug:async(o,i,s={})=>{ft("previewPipelineControllerGetBySlug","slug",o);const c="/api/preview-pipeline/slug/{slug}".replace("{slug}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"GET",...d,...s},b={},S={};i!==void 0&&(S.version=i),dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},{url:pt(p),options:v}},propertyControllerDelete:async(o,i={})=>{ft("propertyControllerDelete","id",o);const s="/api/property/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"DELETE",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},propertyControllerGet:async(o,i={})=>{ft("propertyControllerGet","id",o);const s="/api/property/{id}".replace("{id}",encodeURIComponent(String(o))),c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"GET",...p,...i},v={};dt(c,{});let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},{url:pt(c),options:d}},propertyControllerIndex:async(o={})=>{const i="/api/property",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},propertyControllerPatch:async(o,i,s={})=>{ft("propertyControllerPatch","id",o),ft("propertyControllerPatch","property",i);const c="/api/property/{id}".replace("{id}",encodeURIComponent(String(o))),p=new URL(c,ct);let d;e&&(d=e.baseOptions);const v={method:"PATCH",...d,...s},b={},S={};b["Content-Type"]="application/json",dt(p,S);let T=d&&d.headers?d.headers:{};return v.headers={...b,...T,...s.headers},v.data=vn(i,v,e),{url:pt(p),options:v}},propertyControllerPost:async(o,i={})=>{ft("propertyControllerPost","property",o);const s="/api/property",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},propertySearchControllerPost:async(o,i,s,c={})=>{ft("propertySearchControllerPost","property",o);const p="/api/property-search",d=new URL(p,ct);let v;e&&(v=e.baseOptions);const b={method:"POST",...v,...c},S={},T={};i!==void 0&&(T.pagingKey=i),s!==void 0&&(T.pageSize=s),S["Content-Type"]="application/json",dt(d,T);let E=v&&v.headers?v.headers:{};return b.headers={...S,...E,...c.headers},b.data=vn(o,b,e),{url:pt(d),options:b}},tokenValidationControllerPost:async(o,i={})=>{ft("tokenValidationControllerPost","valueDto",o);const s="/api/token-validation",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={};v["Content-Type"]="application/json",dt(c,b);let S=p&&p.headers?p.headers:{};return d.headers={...v,...S,...i.headers},d.data=vn(o,d,e),{url:pt(c),options:d}},uploadControllerListImages:async(o={})=>{const i="/api/upload/images",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},uploadControllerListVideos:async(o={})=>{const i="/api/upload/videos",s=new URL(i,ct);let c;e&&(c=e.baseOptions);const p={method:"GET",...c,...o},d={};dt(s,{});let b=c&&c.headers?c.headers:{};return p.headers={...d,...b,...o.headers},{url:pt(s),options:p}},uploadControllerUploadImage:async(o,i={})=>{const s="/api/upload/image",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={},S=new(e&&e.formDataCtor||FormData);o!==void 0&&S.append("file",o),v["Content-Type"]="multipart/form-data",dt(c,b);let T=p&&p.headers?p.headers:{};return d.headers={...v,...T,...i.headers},d.data=S,{url:pt(c),options:d}},uploadControllerUploadVideo:async(o,i={})=>{const s="/api/upload/video",c=new URL(s,ct);let p;e&&(p=e.baseOptions);const d={method:"POST",...p,...i},v={},b={},S=new(e&&e.formDataCtor||FormData);o!==void 0&&S.append("file",o),v["Content-Type"]="multipart/form-data",dt(c,b);let T=p&&p.headers?p.headers:{};return d.headers={...v,...T,...i.headers},d.data=S,{url:pt(c),options:d}}}},mt=function(e){const o=Jj(e);return{async abTestControllerDelete(i,s){const c=await o.abTestControllerDelete(i,s);return ht(c,lt,ut,e)},async abTestControllerGet(i,s){const c=await o.abTestControllerGet(i,s);return ht(c,lt,ut,e)},async abTestControllerGetBySlug(i,s){const c=await o.abTestControllerGetBySlug(i,s);return ht(c,lt,ut,e)},async abTestControllerIndex(i){const s=await o.abTestControllerIndex(i);return ht(s,lt,ut,e)},async abTestControllerPatch(i,s,c){const p=await o.abTestControllerPatch(i,s,c);return ht(p,lt,ut,e)},async abTestControllerPost(i,s){const c=await o.abTestControllerPost(i,s);return ht(c,lt,ut,e)},async abTestSearchControllerPost(i,s,c,p){const d=await o.abTestSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async componentControllerDelete(i,s){const c=await o.componentControllerDelete(i,s);return ht(c,lt,ut,e)},async componentControllerGet(i,s){const c=await o.componentControllerGet(i,s);return ht(c,lt,ut,e)},async componentControllerIndex(i){const s=await o.componentControllerIndex(i);return ht(s,lt,ut,e)},async componentControllerPatch(i,s,c){const p=await o.componentControllerPatch(i,s,c);return ht(p,lt,ut,e)},async componentControllerPost(i,s){const c=await o.componentControllerPost(i,s);return ht(c,lt,ut,e)},async componentSearchControllerPost(i,s,c,p){const d=await o.componentSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async conditionControllerDelete(i,s){const c=await o.conditionControllerDelete(i,s);return ht(c,lt,ut,e)},async conditionControllerGet(i,s){const c=await o.conditionControllerGet(i,s);return ht(c,lt,ut,e)},async conditionControllerIndex(i){const s=await o.conditionControllerIndex(i);return ht(s,lt,ut,e)},async conditionControllerPatch(i,s,c){const p=await o.conditionControllerPatch(i,s,c);return ht(p,lt,ut,e)},async conditionControllerPost(i,s){const c=await o.conditionControllerPost(i,s);return ht(c,lt,ut,e)},async conditionSearchControllerPost(i,s,c,p){const d=await o.conditionSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async flowControllerCopy(i,s){const c=await o.flowControllerCopy(i,s);return ht(c,lt,ut,e)},async flowControllerDelete(i,s){const c=await o.flowControllerDelete(i,s);return ht(c,lt,ut,e)},async flowControllerGet(i,s){const c=await o.flowControllerGet(i,s);return ht(c,lt,ut,e)},async flowControllerGetBySlug(i,s,c){const p=await o.flowControllerGetBySlug(i,s,c);return ht(p,lt,ut,e)},async flowControllerGetFull(i,s){const c=await o.flowControllerGetFull(i,s);return ht(c,lt,ut,e)},async flowControllerIndex(i){const s=await o.flowControllerIndex(i);return ht(s,lt,ut,e)},async flowControllerPatch(i,s,c){const p=await o.flowControllerPatch(i,s,c);return ht(p,lt,ut,e)},async flowControllerPost(i,s){const c=await o.flowControllerPost(i,s);return ht(c,lt,ut,e)},async flowFormControllerCopyReplaceForm(i,s,c,p){const d=await o.flowFormControllerCopyReplaceForm(i,s,c,p);return ht(d,lt,ut,e)},async flowFormControllerDelete(i,s,c){const p=await o.flowFormControllerDelete(i,s,c);return ht(p,lt,ut,e)},async flowFormControllerGet(i,s,c){const p=await o.flowFormControllerGet(i,s,c);return ht(p,lt,ut,e)},async flowFormControllerIndex(i){const s=await o.flowFormControllerIndex(i);return ht(s,lt,ut,e)},async flowFormControllerPatch(i,s,c,p){const d=await o.flowFormControllerPatch(i,s,c,p);return ht(d,lt,ut,e)},async flowFormControllerPost(i,s){const c=await o.flowFormControllerPost(i,s);return ht(c,lt,ut,e)},async flowFormSearchControllerPost(i,s,c,p){const d=await o.flowFormSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async flowSearchControllerPost(i,s,c,p){const d=await o.flowSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async formComponentControllerDelete(i,s){const c=await o.formComponentControllerDelete(i,s);return ht(c,lt,ut,e)},async formComponentControllerGetById(i,s){const c=await o.formComponentControllerGetById(i,s);return ht(c,lt,ut,e)},async formComponentControllerIndex(i){const s=await o.formComponentControllerIndex(i);return ht(s,lt,ut,e)},async formComponentControllerPatch(i,s,c){const p=await o.formComponentControllerPatch(i,s,c);return ht(p,lt,ut,e)},async formComponentControllerPost(i,s){const c=await o.formComponentControllerPost(i,s);return ht(c,lt,ut,e)},async formComponentSearchControllerPost(i,s,c,p){const d=await o.formComponentSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async formControllerCopy(i,s){const c=await o.formControllerCopy(i,s);return ht(c,lt,ut,e)},async formControllerDelete(i,s){const c=await o.formControllerDelete(i,s);return ht(c,lt,ut,e)},async formControllerGet(i,s){const c=await o.formControllerGet(i,s);return ht(c,lt,ut,e)},async formControllerIndex(i){const s=await o.formControllerIndex(i);return ht(s,lt,ut,e)},async formControllerPatch(i,s,c){const p=await o.formControllerPatch(i,s,c);return ht(p,lt,ut,e)},async formControllerPost(i,s){const c=await o.formControllerPost(i,s);return ht(c,lt,ut,e)},async formSearchControllerPost(i,s,c,p){const d=await o.formSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async healthControllerGet(i){const s=await o.healthControllerGet(i);return ht(s,lt,ut,e)},async oidcConfigControllerGetClient(i,s){const c=await o.oidcConfigControllerGetClient(i,s);return ht(c,lt,ut,e)},async oidcConfigControllerGetEntra(i){const s=await o.oidcConfigControllerGetEntra(i);return ht(s,lt,ut,e)},async oidcCookieControllerPost(i,s,c){const p=await o.oidcCookieControllerPost(i,s,c);return ht(p,lt,ut,e)},async otpControllerSendOtp(i,s){const c=await o.otpControllerSendOtp(i,s);return ht(c,lt,ut,e)},async otpControllerVerifyOtp(i,s){const c=await o.otpControllerVerifyOtp(i,s);return ht(c,lt,ut,e)},async patientControllerDelete(i,s){const c=await o.patientControllerDelete(i,s);return ht(c,lt,ut,e)},async patientControllerGet(i,s){const c=await o.patientControllerGet(i,s);return ht(c,lt,ut,e)},async patientControllerIndex(i){const s=await o.patientControllerIndex(i);return ht(s,lt,ut,e)},async patientControllerPatch(i,s,c){const p=await o.patientControllerPatch(i,s,c);return ht(p,lt,ut,e)},async patientControllerPost(i,s){const c=await o.patientControllerPost(i,s);return ht(c,lt,ut,e)},async patientSearchControllerPost(i,s,c,p){const d=await o.patientSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async pipelineControllerCopy(i,s){const c=await o.pipelineControllerCopy(i,s);return ht(c,lt,ut,e)},async pipelineControllerDelete(i,s){const c=await o.pipelineControllerDelete(i,s);return ht(c,lt,ut,e)},async pipelineControllerGet(i,s){const c=await o.pipelineControllerGet(i,s);return ht(c,lt,ut,e)},async pipelineControllerGetBySlug(i,s,c){const p=await o.pipelineControllerGetBySlug(i,s,c);return ht(p,lt,ut,e)},async pipelineControllerIndex(i){const s=await o.pipelineControllerIndex(i);return ht(s,lt,ut,e)},async pipelineControllerPatch(i,s,c){const p=await o.pipelineControllerPatch(i,s,c);return ht(p,lt,ut,e)},async pipelineControllerPost(i,s){const c=await o.pipelineControllerPost(i,s);return ht(c,lt,ut,e)},async pipelineFlowControllerDelete(i,s){const c=await o.pipelineFlowControllerDelete(i,s);return ht(c,lt,ut,e)},async pipelineFlowControllerGetById(i,s){const c=await o.pipelineFlowControllerGetById(i,s);return ht(c,lt,ut,e)},async pipelineFlowControllerIndex(i){const s=await o.pipelineFlowControllerIndex(i);return ht(s,lt,ut,e)},async pipelineFlowControllerPatch(i,s,c){const p=await o.pipelineFlowControllerPatch(i,s,c);return ht(p,lt,ut,e)},async pipelineFlowControllerPost(i,s){const c=await o.pipelineFlowControllerPost(i,s);return ht(c,lt,ut,e)},async pipelineFlowSearchControllerPost(i,s,c,p){const d=await o.pipelineFlowSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async pipelineSearchControllerPost(i,s,c,p){const d=await o.pipelineSearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async previewFlowControllerGetBySlug(i,s,c){const p=await o.previewFlowControllerGetBySlug(i,s,c);return ht(p,lt,ut,e)},async previewPipelineControllerGetBySlug(i,s,c){const p=await o.previewPipelineControllerGetBySlug(i,s,c);return ht(p,lt,ut,e)},async propertyControllerDelete(i,s){const c=await o.propertyControllerDelete(i,s);return ht(c,lt,ut,e)},async propertyControllerGet(i,s){const c=await o.propertyControllerGet(i,s);return ht(c,lt,ut,e)},async propertyControllerIndex(i){const s=await o.propertyControllerIndex(i);return ht(s,lt,ut,e)},async propertyControllerPatch(i,s,c){const p=await o.propertyControllerPatch(i,s,c);return ht(p,lt,ut,e)},async propertyControllerPost(i,s){const c=await o.propertyControllerPost(i,s);return ht(c,lt,ut,e)},async propertySearchControllerPost(i,s,c,p){const d=await o.propertySearchControllerPost(i,s,c,p);return ht(d,lt,ut,e)},async tokenValidationControllerPost(i,s){const c=await o.tokenValidationControllerPost(i,s);return ht(c,lt,ut,e)},async uploadControllerListImages(i){const s=await o.uploadControllerListImages(i);return ht(s,lt,ut,e)},async uploadControllerListVideos(i){const s=await o.uploadControllerListVideos(i);return ht(s,lt,ut,e)},async uploadControllerUploadImage(i,s){const c=await o.uploadControllerUploadImage(i,s);return ht(c,lt,ut,e)},async uploadControllerUploadVideo(i,s){const c=await o.uploadControllerUploadVideo(i,s);return ht(c,lt,ut,e)}}};class eU extends Kj{abTestControllerDelete(o,i){return mt(this.configuration).abTestControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}abTestControllerGet(o,i){return mt(this.configuration).abTestControllerGet(o,i).then(s=>s(this.axios,this.basePath))}abTestControllerGetBySlug(o,i){return mt(this.configuration).abTestControllerGetBySlug(o,i).then(s=>s(this.axios,this.basePath))}abTestControllerIndex(o){return mt(this.configuration).abTestControllerIndex(o).then(i=>i(this.axios,this.basePath))}abTestControllerPatch(o,i,s){return mt(this.configuration).abTestControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}abTestControllerPost(o,i){return mt(this.configuration).abTestControllerPost(o,i).then(s=>s(this.axios,this.basePath))}abTestSearchControllerPost(o,i,s,c){return mt(this.configuration).abTestSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}componentControllerDelete(o,i){return mt(this.configuration).componentControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}componentControllerGet(o,i){return mt(this.configuration).componentControllerGet(o,i).then(s=>s(this.axios,this.basePath))}componentControllerIndex(o){return mt(this.configuration).componentControllerIndex(o).then(i=>i(this.axios,this.basePath))}componentControllerPatch(o,i,s){return mt(this.configuration).componentControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}componentControllerPost(o,i){return mt(this.configuration).componentControllerPost(o,i).then(s=>s(this.axios,this.basePath))}componentSearchControllerPost(o,i,s,c){return mt(this.configuration).componentSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}conditionControllerDelete(o,i){return mt(this.configuration).conditionControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}conditionControllerGet(o,i){return mt(this.configuration).conditionControllerGet(o,i).then(s=>s(this.axios,this.basePath))}conditionControllerIndex(o){return mt(this.configuration).conditionControllerIndex(o).then(i=>i(this.axios,this.basePath))}conditionControllerPatch(o,i,s){return mt(this.configuration).conditionControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}conditionControllerPost(o,i){return mt(this.configuration).conditionControllerPost(o,i).then(s=>s(this.axios,this.basePath))}conditionSearchControllerPost(o,i,s,c){return mt(this.configuration).conditionSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}flowControllerCopy(o,i){return mt(this.configuration).flowControllerCopy(o,i).then(s=>s(this.axios,this.basePath))}flowControllerDelete(o,i){return mt(this.configuration).flowControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}flowControllerGet(o,i){return mt(this.configuration).flowControllerGet(o,i).then(s=>s(this.axios,this.basePath))}flowControllerGetBySlug(o,i,s){return mt(this.configuration).flowControllerGetBySlug(o,i,s).then(c=>c(this.axios,this.basePath))}flowControllerGetFull(o,i){return mt(this.configuration).flowControllerGetFull(o,i).then(s=>s(this.axios,this.basePath))}flowControllerIndex(o){return mt(this.configuration).flowControllerIndex(o).then(i=>i(this.axios,this.basePath))}flowControllerPatch(o,i,s){return mt(this.configuration).flowControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}flowControllerPost(o,i){return mt(this.configuration).flowControllerPost(o,i).then(s=>s(this.axios,this.basePath))}flowFormControllerCopyReplaceForm(o,i,s,c){return mt(this.configuration).flowFormControllerCopyReplaceForm(o,i,s,c).then(p=>p(this.axios,this.basePath))}flowFormControllerDelete(o,i,s){return mt(this.configuration).flowFormControllerDelete(o,i,s).then(c=>c(this.axios,this.basePath))}flowFormControllerGet(o,i,s){return mt(this.configuration).flowFormControllerGet(o,i,s).then(c=>c(this.axios,this.basePath))}flowFormControllerIndex(o){return mt(this.configuration).flowFormControllerIndex(o).then(i=>i(this.axios,this.basePath))}flowFormControllerPatch(o,i,s,c){return mt(this.configuration).flowFormControllerPatch(o,i,s,c).then(p=>p(this.axios,this.basePath))}flowFormControllerPost(o,i){return mt(this.configuration).flowFormControllerPost(o,i).then(s=>s(this.axios,this.basePath))}flowFormSearchControllerPost(o,i,s,c){return mt(this.configuration).flowFormSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}flowSearchControllerPost(o,i,s,c){return mt(this.configuration).flowSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}formComponentControllerDelete(o,i){return mt(this.configuration).formComponentControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}formComponentControllerGetById(o,i){return mt(this.configuration).formComponentControllerGetById(o,i).then(s=>s(this.axios,this.basePath))}formComponentControllerIndex(o){return mt(this.configuration).formComponentControllerIndex(o).then(i=>i(this.axios,this.basePath))}formComponentControllerPatch(o,i,s){return mt(this.configuration).formComponentControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}formComponentControllerPost(o,i){return mt(this.configuration).formComponentControllerPost(o,i).then(s=>s(this.axios,this.basePath))}formComponentSearchControllerPost(o,i,s,c){return mt(this.configuration).formComponentSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}formControllerCopy(o,i){return mt(this.configuration).formControllerCopy(o,i).then(s=>s(this.axios,this.basePath))}formControllerDelete(o,i){return mt(this.configuration).formControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}formControllerGet(o,i){return mt(this.configuration).formControllerGet(o,i).then(s=>s(this.axios,this.basePath))}formControllerIndex(o){return mt(this.configuration).formControllerIndex(o).then(i=>i(this.axios,this.basePath))}formControllerPatch(o,i,s){return mt(this.configuration).formControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}formControllerPost(o,i){return mt(this.configuration).formControllerPost(o,i).then(s=>s(this.axios,this.basePath))}formSearchControllerPost(o,i,s,c){return mt(this.configuration).formSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}healthControllerGet(o){return mt(this.configuration).healthControllerGet(o).then(i=>i(this.axios,this.basePath))}oidcConfigControllerGetClient(o,i){return mt(this.configuration).oidcConfigControllerGetClient(o,i).then(s=>s(this.axios,this.basePath))}oidcConfigControllerGetEntra(o){return mt(this.configuration).oidcConfigControllerGetEntra(o).then(i=>i(this.axios,this.basePath))}oidcCookieControllerPost(o,i,s){return mt(this.configuration).oidcCookieControllerPost(o,i,s).then(c=>c(this.axios,this.basePath))}otpControllerSendOtp(o,i){return mt(this.configuration).otpControllerSendOtp(o,i).then(s=>s(this.axios,this.basePath))}otpControllerVerifyOtp(o,i){return mt(this.configuration).otpControllerVerifyOtp(o,i).then(s=>s(this.axios,this.basePath))}patientControllerDelete(o,i){return mt(this.configuration).patientControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}patientControllerGet(o,i){return mt(this.configuration).patientControllerGet(o,i).then(s=>s(this.axios,this.basePath))}patientControllerIndex(o){return mt(this.configuration).patientControllerIndex(o).then(i=>i(this.axios,this.basePath))}patientControllerPatch(o,i,s){return mt(this.configuration).patientControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}patientControllerPost(o,i){return mt(this.configuration).patientControllerPost(o,i).then(s=>s(this.axios,this.basePath))}patientSearchControllerPost(o,i,s,c){return mt(this.configuration).patientSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}pipelineControllerCopy(o,i){return mt(this.configuration).pipelineControllerCopy(o,i).then(s=>s(this.axios,this.basePath))}pipelineControllerDelete(o,i){return mt(this.configuration).pipelineControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}pipelineControllerGet(o,i){return mt(this.configuration).pipelineControllerGet(o,i).then(s=>s(this.axios,this.basePath))}pipelineControllerGetBySlug(o,i,s){return mt(this.configuration).pipelineControllerGetBySlug(o,i,s).then(c=>c(this.axios,this.basePath))}pipelineControllerIndex(o){return mt(this.configuration).pipelineControllerIndex(o).then(i=>i(this.axios,this.basePath))}pipelineControllerPatch(o,i,s){return mt(this.configuration).pipelineControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}pipelineControllerPost(o,i){return mt(this.configuration).pipelineControllerPost(o,i).then(s=>s(this.axios,this.basePath))}pipelineFlowControllerDelete(o,i){return mt(this.configuration).pipelineFlowControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}pipelineFlowControllerGetById(o,i){return mt(this.configuration).pipelineFlowControllerGetById(o,i).then(s=>s(this.axios,this.basePath))}pipelineFlowControllerIndex(o){return mt(this.configuration).pipelineFlowControllerIndex(o).then(i=>i(this.axios,this.basePath))}pipelineFlowControllerPatch(o,i,s){return mt(this.configuration).pipelineFlowControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}pipelineFlowControllerPost(o,i){return mt(this.configuration).pipelineFlowControllerPost(o,i).then(s=>s(this.axios,this.basePath))}pipelineFlowSearchControllerPost(o,i,s,c){return mt(this.configuration).pipelineFlowSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}pipelineSearchControllerPost(o,i,s,c){return mt(this.configuration).pipelineSearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}previewFlowControllerGetBySlug(o,i,s){return mt(this.configuration).previewFlowControllerGetBySlug(o,i,s).then(c=>c(this.axios,this.basePath))}previewPipelineControllerGetBySlug(o,i,s){return mt(this.configuration).previewPipelineControllerGetBySlug(o,i,s).then(c=>c(this.axios,this.basePath))}propertyControllerDelete(o,i){return mt(this.configuration).propertyControllerDelete(o,i).then(s=>s(this.axios,this.basePath))}propertyControllerGet(o,i){return mt(this.configuration).propertyControllerGet(o,i).then(s=>s(this.axios,this.basePath))}propertyControllerIndex(o){return mt(this.configuration).propertyControllerIndex(o).then(i=>i(this.axios,this.basePath))}propertyControllerPatch(o,i,s){return mt(this.configuration).propertyControllerPatch(o,i,s).then(c=>c(this.axios,this.basePath))}propertyControllerPost(o,i){return mt(this.configuration).propertyControllerPost(o,i).then(s=>s(this.axios,this.basePath))}propertySearchControllerPost(o,i,s,c){return mt(this.configuration).propertySearchControllerPost(o,i,s,c).then(p=>p(this.axios,this.basePath))}tokenValidationControllerPost(o,i){return mt(this.configuration).tokenValidationControllerPost(o,i).then(s=>s(this.axios,this.basePath))}uploadControllerListImages(o){return mt(this.configuration).uploadControllerListImages(o).then(i=>i(this.axios,this.basePath))}uploadControllerListVideos(o){return mt(this.configuration).uploadControllerListVideos(o).then(i=>i(this.axios,this.basePath))}uploadControllerUploadImage(o,i){return mt(this.configuration).uploadControllerUploadImage(o,i).then(s=>s(this.axios,this.basePath))}uploadControllerUploadVideo(o,i){return mt(this.configuration).uploadControllerUploadVideo(o,i).then(s=>s(this.axios,this.basePath))}}function tU(e,o=""){return{api:o||(!location.port||location.port==="80"?"":e),ui:location.origin}}const qA=e=>{const o=tU("http://localhost:3129",e);return Xj(eU,{apiUrl:o.api})},QA=({dataFetcher:e=()=>{},children:o,configFetcher:i,isPreview:s=!1,onSubmit:c=()=>Promise.resolve(),formidavimHost:p,version:d,flowName:v="",onNextStep:b,onPrevStep:S,onFlowInit:T,onConfigFetchError:E,shouldRedirect:R})=>{const k=qA(p),[M,P]=Je.useState({config:null,data:null}),[B,W]=Je.useState(!0);return Je.useEffect(()=>{(i?i():k.flowControllerGetBySlug(v,d).then(({data:A})=>A)).then(async A=>{const L=e?await e():null;P({config:A,data:L}),T&&T(A),W(!1)}).catch(A=>{console.warn("configFetcher failed",A),E&&E(A),W(!1)})},[v,d]),B?null:M.config?_.jsx(bw,{children:_.jsx(gw,{data:M.data,isPreview:s,config:M.config,onSubmit:c,onNextStep:b,onPrevStep:S,shouldRedirect:R})}):_.jsx(_.Fragment,{children:o})},nU=({dataFetcher:e=()=>Promise.resolve(null),children:o,configFetcher:i,pipelineFetcher:s,isPreview:c=!1,onSubmit:p=()=>Promise.resolve(),formidavimHost:d,version:v,flowName:b="",onNextStep:S,onPrevStep:T,onFlowInit:E,onPipelineInit:R,onNoFlowsAvailable:k,onConfigFetchError:M})=>{const P=qA(d),[B,W]=Je.useState({config:null,data:null}),[Y,A]=Je.useState(0),[L,D]=Je.useState([]),[U,K]=Je.useState(!0),[ce,xe]=Je.useState(!1);Je.useEffect(()=>{(s?s():P.pipelineControllerGetBySlug(b,v).then(({data:ge})=>ge)).then(async ge=>{const be=e?await e():null;if(W({config:ge,data:be}),ge!=null&&ge.pipelineFlows&&(await V(ge.pipelineFlows,be)).length===0){k&&k();return}R&&R(ge.pipelineFlows),K(!1)}).catch(ge=>{console.warn("configFetcher failed",ge),M&&M(ge),K(!1)})},[b,v]);const V=async(we,ge)=>{var re;const be=[],Fe=Ee=>{var z;return(z=ge==null?void 0:ge.data)==null?void 0:z[Ee]},Pe=()=>ge,ve=(Ee,z)=>{var ye;const H=(ye=ge==null?void 0:ge.data)==null?void 0:ye.flowSubmissions;return!(!H||!H[Ee])};for(const Ee of we)ve(Ee.flowSlug,(re=Ee.flow)==null?void 0:re.version)||Ee.condition&&!await BA(Ee.condition,Fe,Pe)||be.push(Ee);return D(be),be};if(U)return null;if(!B.config)return _.jsx(QA,{dataFetcher:e,configFetcher:i,flowName:b,formidavimHost:d,onSubmit:p,isPreview:!1,onNextStep:S,onPrevStep:T,children:o});const he=()=>{var we;return((we=L==null?void 0:L[Y])==null?void 0:we.flow)||{}},Ae=()=>Y<((L==null?void 0:L.length)||0)-1,ie=async we=>{var ge;if(!ce){xe(!0);try{const be=!Ae();await p(we,he(),be);const Fe=e?await e():null;W(Pe=>({...Pe,data:Fe})),(ge=B.config)!=null&&ge.pipelineFlows&&(await V(B.config.pipelineFlows,Fe)).length>0&&A(0)}finally{xe(!1)}}};return _.jsx(bw,{children:_.jsx(gw,{data:B.data,isPreview:c,config:he(),onSubmit:ie,onNextStep:S,onPrevStep:T,shouldRedirect:!1})})};exports.ComponentFactory=W0;exports.DataRenderer=QA;exports.FlowFormRenderer=HA;exports.FlowProgressTracker=X$;exports.FlowRenderer=zA;exports.FormComponentRenderer=GA;exports.FormRenderer=WA;exports.FormWrapper=YA;exports.PipelineProcessor=nU;exports.Renderer=gw;exports.RendererWrapper=bw;
package/index.mjs CHANGED
@@ -47698,7 +47698,7 @@ const WA = (e) => {
47698
47698
  }, xU = ({ dataFetcher: e = () => Promise.resolve(null), children: o, configFetcher: i, pipelineFetcher: s, isPreview: c = !1, onSubmit: p = () => Promise.resolve(), formidavimHost: d, version: v, flowName: b = "", onNextStep: S, onPrevStep: T, onFlowInit: E, onPipelineInit: R, onNoFlowsAvailable: k, onConfigFetchError: M }) => {
47699
47699
  const P = WA(d), [B, W] = bn({ config: null, data: null }), [Y, A] = bn(0), [L, D] = bn([]), [U, K] = bn(!0), [ce, be] = bn(!1);
47700
47700
  hr(() => {
47701
- (s ? s() : P.previewPipelineControllerGetBySlug(b, v).then(({ data: ye }) => ye)).then(async (ye) => {
47701
+ (s ? s() : P.pipelineControllerGetBySlug(b, v).then(({ data: ye }) => ye)).then(async (ye) => {
47702
47702
  const ge = e ? await e() : null;
47703
47703
  if (W({ config: ye, data: ge }), ye != null && ye.pipelineFlows && (await V(ye.pipelineFlows, ge)).length === 0) {
47704
47704
  k && k();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hievilmath/browser-formidavim",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
6
  "typings": "./index.d.ts",