@hievilmath/browser-formidavim 1.2.1 → 1.2.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.
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2498,4 +2498,4 @@ Take a look at the reducer(s) handling this action type: ${$.type}.
|
|
|
2498
2498
|
position: relative;
|
|
2499
2499
|
`,Gr=({$isPreview:e,children:t})=>T.jsx(Ht.Provider,{store:Un,children:T.jsx(V.ThemeProvider,{theme:Si,children:T.jsx(Oi,{$isPreview:e,children:T.jsx(Ei,{children:t})})})}),Mn=({flowForm:e,isPreview:t,evaluatedFormComponents:r})=>!e||!e.form?null:T.jsx(Gn,{form:e.form,isPreview:t,evaluatedFormComponents:r}),Lr=class Lr{static register(t,r){this.registry[t]=r}static getComponent(t){return this.registry[t]||null}static hasComponent(t){return t in this.registry}static getRegisteredComponents(){return Object.keys(this.registry)}};Lr.registry={...hi};let hr=Lr;const zn=({formComponent:e,isPreview:t,boundary:r,isVisible:n=!0})=>{var a;const o=i=>{const l=i.componentId;if(!l)return T.jsx(fr,{errors:["Missing componentId"]});const u=hr.getComponent(l);return u?T.jsx(u,{formComponent:i}):T.jsx(fr,{errors:[`Unknown component type: ${l}`]})};return T.jsx(pr,{children:T.jsx(Xt,{$span:"12",children:T.jsx(so,{$margin:(a=e.props)!=null&&a.margin?e.props.margin:r!=="first"?"25px 0px 0px":"0px",children:o(e)})})})},Gn=({form:e,isPreview:t,evaluatedFormComponents:r})=>{const n=t?r:r.filter(a=>a.shouldRender),o=n.length;return T.jsx(T.Fragment,{children:n.map((a,i)=>{const l=i===0?"first":o===i+1?"last":null,u=a.isVisible;return T.jsx(zn,{formComponent:a,isPreview:t,boundary:l,isVisible:u},a.id)})})},Vi=V.form`
|
|
2500
2500
|
padding: 20px 0px 20px;
|
|
2501
|
-
`,Ln=({children:e,$bgColor:t})=>T.jsx(zt,{$overflow:"hidden",$position:"static",$xSmall:!0,id:"MainFlowContainer",$bgColor:t||"white",$bRad:"0px",$marginBottom:"0px",$marginBottomMd:"0px",children:T.jsx(Vi,{children:e})});function Ai(e){const{onError:t,on401:r,on403:n,on400:o,on500:a,addHeaders:i,onRequest:l,onResponse:u,modifyRequest:h}=e,b=Z.create();return b.interceptors.request.use(m=>(m.headers||(m.headers={}),typeof i=="function"&&Object.entries(i(m)||{}).forEach(([x,$])=>m.headers[x]=$),typeof l=="function"&&l(m),typeof h=="function"?h(m):m)),b.interceptors.response.use(m=>(typeof u=="function"&&u(m),m),m=>{var $,S,I,L;const x={config:{}};if(typeof t=="function"&&t((m==null?void 0:m.response)||x),(($=m==null?void 0:m.response)==null?void 0:$.status)===400)typeof o=="function"&&o((m==null?void 0:m.response)||x);else if(((S=m==null?void 0:m.response)==null?void 0:S.status)===401)typeof r=="function"&&r((m==null?void 0:m.response)||x);else if(((I=m==null?void 0:m.response)==null?void 0:I.status)===403)typeof n=="function"&&n((m==null?void 0:m.response)||x);else if(((L=m==null?void 0:m.response)==null?void 0:L.status)===500)typeof a=="function"&&a((m==null?void 0:m.response)||x);else throw m}),b}function Ti(e,t){const{apiUrl:r}=t;return new e({basePath:r},r,Ai(t))}const te="http://localhost".replace(/\/+$/,"");class Di{constructor(t,r=te,n=Z){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class Ri extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const ne="https://example.com",K=function(e,t,r){if(r==null)throw new Ri(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function jr(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>jr(e,n,r)):Object.keys(t).forEach(n=>jr(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const oe=function(e,...t){const r=new URLSearchParams(e.search);jr(r,t),e.search=r.toString()},Me=function(e,t,r){const n=typeof e!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(e!==void 0?e:{}):e||""},ae=function(e){return e.pathname+e.search+e.hash},ie=function(e,t,r,n){return(o=t,a=r)=>{const i={...e.options,url:((n==null?void 0:n.basePath)||a)+e.url};return o.request(i)}},ji=function(e){return{abTestControllerDelete:async(t,r={})=>{K("abTestControllerDelete","id",t);const n="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerGet:async(t,r={})=>{K("abTestControllerGet","id",t);const n="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerGetBySlug:async(t,r={})=>{K("abTestControllerGetBySlug","slug",t);const n="/api/ab-test/slug/{slug}".replace("{slug}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerIndex:async(t={})=>{const r="/api/ab-test",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},abTestControllerPatch:async(t,r,n={})=>{K("abTestControllerPatch","id",t),K("abTestControllerPatch","abTest",r);const o="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},abTestControllerPost:async(t,r={})=>{K("abTestControllerPost","abTest",t);const n="/api/ab-test",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},abTestSearchControllerPost:async(t,r,n,o={})=>{K("abTestSearchControllerPost","abTest",t);const a="/api/ab-test-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},componentControllerDelete:async(t,r={})=>{K("componentControllerDelete","id",t);const n="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},componentControllerGet:async(t,r={})=>{K("componentControllerGet","id",t);const n="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},componentControllerIndex:async(t={})=>{const r="/api/component",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},componentControllerPatch:async(t,r,n={})=>{K("componentControllerPatch","id",t),K("componentControllerPatch","component",r);const o="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},componentControllerPost:async(t,r={})=>{K("componentControllerPost","component",t);const n="/api/component",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},componentSearchControllerPost:async(t,r,n,o={})=>{K("componentSearchControllerPost","component",t);const a="/api/component-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},conditionControllerDelete:async(t,r={})=>{K("conditionControllerDelete","id",t);const n="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},conditionControllerGet:async(t,r={})=>{K("conditionControllerGet","id",t);const n="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},conditionControllerIndex:async(t={})=>{const r="/api/condition",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},conditionControllerPatch:async(t,r,n={})=>{K("conditionControllerPatch","id",t),K("conditionControllerPatch","condition",r);const o="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},conditionControllerPost:async(t,r={})=>{K("conditionControllerPost","condition",t);const n="/api/condition",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},conditionSearchControllerPost:async(t,r,n,o={})=>{K("conditionSearchControllerPost","condition",t);const a="/api/condition-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},flowControllerCopy:async(t,r={})=>{K("flowControllerCopy","flowCopyDto",t);const n="/api/flow/copy",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowControllerDelete:async(t,r={})=>{K("flowControllerDelete","id",t);const n="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerGet:async(t,r={})=>{K("flowControllerGet","id",t);const n="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerGetBySlug:async(t,r,n={})=>{K("flowControllerGetBySlug","slug",t),K("flowControllerGetBySlug","version",r);const o="/api/flow/slug/{slug}".replace("{slug}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},u={},h={};r!==void 0&&(h.version=r),oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowControllerGetFull:async(t,r={})=>{K("flowControllerGetFull","id",t);const n="/api/flow/{id}/full".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerIndex:async(t={})=>{const r="/api/flow",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},flowControllerPatch:async(t,r,n={})=>{K("flowControllerPatch","id",t),K("flowControllerPatch","flow",r);const o="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},flowControllerPost:async(t,r={})=>{K("flowControllerPost","flow",t);const n="/api/flow",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowFormControllerDelete:async(t,r,n={})=>{K("flowFormControllerDelete","flowId",t),K("flowFormControllerDelete","formId",r);const o="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},u={};oe(a,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowFormControllerGet:async(t,r,n={})=>{K("flowFormControllerGet","flowId",t),K("flowFormControllerGet","formId",r);const o="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},u={};oe(a,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowFormControllerIndex:async(t={})=>{const r="/api/flow-form",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},flowFormControllerPatch:async(t,r,n,o={})=>{K("flowFormControllerPatch","flowId",t),K("flowFormControllerPatch","formId",r),K("flowFormControllerPatch","flowForm",n);const a="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},h={},b={};h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(n,u,e),{url:ae(i),options:u}},flowFormControllerPost:async(t,r={})=>{K("flowFormControllerPost","flowForm",t);const n="/api/flow-form",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowFormSearchControllerPost:async(t,r,n,o={})=>{K("flowFormSearchControllerPost","flowForm",t);const a="/api/flow-form-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},flowSearchControllerPost:async(t,r,n,o={})=>{K("flowSearchControllerPost","flow",t);const a="/api/flow-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},formComponentControllerDelete:async(t,r={})=>{K("formComponentControllerDelete","id",t);const n="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formComponentControllerGetById:async(t,r={})=>{K("formComponentControllerGetById","id",t);const n="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formComponentControllerIndex:async(t={})=>{const r="/api/form-component",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},formComponentControllerPatch:async(t,r,n={})=>{K("formComponentControllerPatch","id",t),K("formComponentControllerPatch","formComponent",r);const o="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},formComponentControllerPost:async(t,r={})=>{K("formComponentControllerPost","formComponent",t);const n="/api/form-component",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formComponentSearchControllerPost:async(t,r,n,o={})=>{K("formComponentSearchControllerPost","formComponent",t);const a="/api/form-component-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},formControllerCopy:async(t,r={})=>{K("formControllerCopy","formCopyDto",t);const n="/api/form/copy",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formControllerDelete:async(t,r={})=>{K("formControllerDelete","id",t);const n="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formControllerGet:async(t,r={})=>{K("formControllerGet","id",t);const n="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formControllerIndex:async(t={})=>{const r="/api/form",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},formControllerPatch:async(t,r,n={})=>{K("formControllerPatch","id",t),K("formControllerPatch","form",r);const o="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},formControllerPost:async(t,r={})=>{K("formControllerPost","form",t);const n="/api/form",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formSearchControllerPost:async(t,r,n,o={})=>{K("formSearchControllerPost","form",t);const a="/api/form-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},healthControllerGet:async(t={})=>{const r="/api/health",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},oidcConfigControllerGetClient:async(t,r={})=>{K("oidcConfigControllerGetClient","redirectUri",t);const n="/api/oidc-config/client/{redirectUri}".replace("{redirectUri}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},oidcConfigControllerGetEntra:async(t={})=>{const r="/api/oidc-config/entra",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},oidcCookieControllerPost:async(t,r,n={})=>{K("oidcCookieControllerPost","origin",t),K("oidcCookieControllerPost","tokensDto",r);const o="/api/oidc-cookie/{origin}".replace("{origin}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},patientControllerDelete:async(t,r={})=>{K("patientControllerDelete","id",t);const n="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},patientControllerGet:async(t,r={})=>{K("patientControllerGet","id",t);const n="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},patientControllerIndex:async(t={})=>{const r="/api/patient",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},patientControllerPatch:async(t,r,n={})=>{K("patientControllerPatch","id",t),K("patientControllerPatch","patient",r);const o="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},patientControllerPost:async(t,r={})=>{K("patientControllerPost","patient",t);const n="/api/patient",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},patientSearchControllerPost:async(t,r,n,o={})=>{K("patientSearchControllerPost","patient",t);const a="/api/patient-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},propertyControllerDelete:async(t,r={})=>{K("propertyControllerDelete","id",t);const n="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},propertyControllerGet:async(t,r={})=>{K("propertyControllerGet","id",t);const n="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},propertyControllerIndex:async(t={})=>{const r="/api/property",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},propertyControllerPatch:async(t,r,n={})=>{K("propertyControllerPatch","id",t),K("propertyControllerPatch","property",r);const o="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},propertyControllerPost:async(t,r={})=>{K("propertyControllerPost","property",t);const n="/api/property",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},propertySearchControllerPost:async(t,r,n,o={})=>{K("propertySearchControllerPost","property",t);const a="/api/property-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},tokenValidationControllerPost:async(t,r={})=>{K("tokenValidationControllerPost","valueDto",t);const n="/api/token-validation",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}}}},se=function(e){const t=ji(e);return{async abTestControllerDelete(r,n){const o=await t.abTestControllerDelete(r,n);return ie(o,Z,te,e)},async abTestControllerGet(r,n){const o=await t.abTestControllerGet(r,n);return ie(o,Z,te,e)},async abTestControllerGetBySlug(r,n){const o=await t.abTestControllerGetBySlug(r,n);return ie(o,Z,te,e)},async abTestControllerIndex(r){const n=await t.abTestControllerIndex(r);return ie(n,Z,te,e)},async abTestControllerPatch(r,n,o){const a=await t.abTestControllerPatch(r,n,o);return ie(a,Z,te,e)},async abTestControllerPost(r,n){const o=await t.abTestControllerPost(r,n);return ie(o,Z,te,e)},async abTestSearchControllerPost(r,n,o,a){const i=await t.abTestSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async componentControllerDelete(r,n){const o=await t.componentControllerDelete(r,n);return ie(o,Z,te,e)},async componentControllerGet(r,n){const o=await t.componentControllerGet(r,n);return ie(o,Z,te,e)},async componentControllerIndex(r){const n=await t.componentControllerIndex(r);return ie(n,Z,te,e)},async componentControllerPatch(r,n,o){const a=await t.componentControllerPatch(r,n,o);return ie(a,Z,te,e)},async componentControllerPost(r,n){const o=await t.componentControllerPost(r,n);return ie(o,Z,te,e)},async componentSearchControllerPost(r,n,o,a){const i=await t.componentSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async conditionControllerDelete(r,n){const o=await t.conditionControllerDelete(r,n);return ie(o,Z,te,e)},async conditionControllerGet(r,n){const o=await t.conditionControllerGet(r,n);return ie(o,Z,te,e)},async conditionControllerIndex(r){const n=await t.conditionControllerIndex(r);return ie(n,Z,te,e)},async conditionControllerPatch(r,n,o){const a=await t.conditionControllerPatch(r,n,o);return ie(a,Z,te,e)},async conditionControllerPost(r,n){const o=await t.conditionControllerPost(r,n);return ie(o,Z,te,e)},async conditionSearchControllerPost(r,n,o,a){const i=await t.conditionSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async flowControllerCopy(r,n){const o=await t.flowControllerCopy(r,n);return ie(o,Z,te,e)},async flowControllerDelete(r,n){const o=await t.flowControllerDelete(r,n);return ie(o,Z,te,e)},async flowControllerGet(r,n){const o=await t.flowControllerGet(r,n);return ie(o,Z,te,e)},async flowControllerGetBySlug(r,n,o){const a=await t.flowControllerGetBySlug(r,n,o);return ie(a,Z,te,e)},async flowControllerGetFull(r,n){const o=await t.flowControllerGetFull(r,n);return ie(o,Z,te,e)},async flowControllerIndex(r){const n=await t.flowControllerIndex(r);return ie(n,Z,te,e)},async flowControllerPatch(r,n,o){const a=await t.flowControllerPatch(r,n,o);return ie(a,Z,te,e)},async flowControllerPost(r,n){const o=await t.flowControllerPost(r,n);return ie(o,Z,te,e)},async flowFormControllerDelete(r,n,o){const a=await t.flowFormControllerDelete(r,n,o);return ie(a,Z,te,e)},async flowFormControllerGet(r,n,o){const a=await t.flowFormControllerGet(r,n,o);return ie(a,Z,te,e)},async flowFormControllerIndex(r){const n=await t.flowFormControllerIndex(r);return ie(n,Z,te,e)},async flowFormControllerPatch(r,n,o,a){const i=await t.flowFormControllerPatch(r,n,o,a);return ie(i,Z,te,e)},async flowFormControllerPost(r,n){const o=await t.flowFormControllerPost(r,n);return ie(o,Z,te,e)},async flowFormSearchControllerPost(r,n,o,a){const i=await t.flowFormSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async flowSearchControllerPost(r,n,o,a){const i=await t.flowSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async formComponentControllerDelete(r,n){const o=await t.formComponentControllerDelete(r,n);return ie(o,Z,te,e)},async formComponentControllerGetById(r,n){const o=await t.formComponentControllerGetById(r,n);return ie(o,Z,te,e)},async formComponentControllerIndex(r){const n=await t.formComponentControllerIndex(r);return ie(n,Z,te,e)},async formComponentControllerPatch(r,n,o){const a=await t.formComponentControllerPatch(r,n,o);return ie(a,Z,te,e)},async formComponentControllerPost(r,n){const o=await t.formComponentControllerPost(r,n);return ie(o,Z,te,e)},async formComponentSearchControllerPost(r,n,o,a){const i=await t.formComponentSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async formControllerCopy(r,n){const o=await t.formControllerCopy(r,n);return ie(o,Z,te,e)},async formControllerDelete(r,n){const o=await t.formControllerDelete(r,n);return ie(o,Z,te,e)},async formControllerGet(r,n){const o=await t.formControllerGet(r,n);return ie(o,Z,te,e)},async formControllerIndex(r){const n=await t.formControllerIndex(r);return ie(n,Z,te,e)},async formControllerPatch(r,n,o){const a=await t.formControllerPatch(r,n,o);return ie(a,Z,te,e)},async formControllerPost(r,n){const o=await t.formControllerPost(r,n);return ie(o,Z,te,e)},async formSearchControllerPost(r,n,o,a){const i=await t.formSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async healthControllerGet(r){const n=await t.healthControllerGet(r);return ie(n,Z,te,e)},async oidcConfigControllerGetClient(r,n){const o=await t.oidcConfigControllerGetClient(r,n);return ie(o,Z,te,e)},async oidcConfigControllerGetEntra(r){const n=await t.oidcConfigControllerGetEntra(r);return ie(n,Z,te,e)},async oidcCookieControllerPost(r,n,o){const a=await t.oidcCookieControllerPost(r,n,o);return ie(a,Z,te,e)},async patientControllerDelete(r,n){const o=await t.patientControllerDelete(r,n);return ie(o,Z,te,e)},async patientControllerGet(r,n){const o=await t.patientControllerGet(r,n);return ie(o,Z,te,e)},async patientControllerIndex(r){const n=await t.patientControllerIndex(r);return ie(n,Z,te,e)},async patientControllerPatch(r,n,o){const a=await t.patientControllerPatch(r,n,o);return ie(a,Z,te,e)},async patientControllerPost(r,n){const o=await t.patientControllerPost(r,n);return ie(o,Z,te,e)},async patientSearchControllerPost(r,n,o,a){const i=await t.patientSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async propertyControllerDelete(r,n){const o=await t.propertyControllerDelete(r,n);return ie(o,Z,te,e)},async propertyControllerGet(r,n){const o=await t.propertyControllerGet(r,n);return ie(o,Z,te,e)},async propertyControllerIndex(r){const n=await t.propertyControllerIndex(r);return ie(n,Z,te,e)},async propertyControllerPatch(r,n,o){const a=await t.propertyControllerPatch(r,n,o);return ie(a,Z,te,e)},async propertyControllerPost(r,n){const o=await t.propertyControllerPost(r,n);return ie(o,Z,te,e)},async propertySearchControllerPost(r,n,o,a){const i=await t.propertySearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async tokenValidationControllerPost(r,n){const o=await t.tokenValidationControllerPost(r,n);return ie(o,Z,te,e)}}};class Fi extends Di{abTestControllerDelete(t,r){return se(this.configuration).abTestControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerGet(t,r){return se(this.configuration).abTestControllerGet(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerGetBySlug(t,r){return se(this.configuration).abTestControllerGetBySlug(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerIndex(t){return se(this.configuration).abTestControllerIndex(t).then(r=>r(this.axios,this.basePath))}abTestControllerPatch(t,r,n){return se(this.configuration).abTestControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}abTestControllerPost(t,r){return se(this.configuration).abTestControllerPost(t,r).then(n=>n(this.axios,this.basePath))}abTestSearchControllerPost(t,r,n,o){return se(this.configuration).abTestSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}componentControllerDelete(t,r){return se(this.configuration).componentControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}componentControllerGet(t,r){return se(this.configuration).componentControllerGet(t,r).then(n=>n(this.axios,this.basePath))}componentControllerIndex(t){return se(this.configuration).componentControllerIndex(t).then(r=>r(this.axios,this.basePath))}componentControllerPatch(t,r,n){return se(this.configuration).componentControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}componentControllerPost(t,r){return se(this.configuration).componentControllerPost(t,r).then(n=>n(this.axios,this.basePath))}componentSearchControllerPost(t,r,n,o){return se(this.configuration).componentSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}conditionControllerDelete(t,r){return se(this.configuration).conditionControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}conditionControllerGet(t,r){return se(this.configuration).conditionControllerGet(t,r).then(n=>n(this.axios,this.basePath))}conditionControllerIndex(t){return se(this.configuration).conditionControllerIndex(t).then(r=>r(this.axios,this.basePath))}conditionControllerPatch(t,r,n){return se(this.configuration).conditionControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}conditionControllerPost(t,r){return se(this.configuration).conditionControllerPost(t,r).then(n=>n(this.axios,this.basePath))}conditionSearchControllerPost(t,r,n,o){return se(this.configuration).conditionSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowControllerCopy(t,r){return se(this.configuration).flowControllerCopy(t,r).then(n=>n(this.axios,this.basePath))}flowControllerDelete(t,r){return se(this.configuration).flowControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}flowControllerGet(t,r){return se(this.configuration).flowControllerGet(t,r).then(n=>n(this.axios,this.basePath))}flowControllerGetBySlug(t,r,n){return se(this.configuration).flowControllerGetBySlug(t,r,n).then(o=>o(this.axios,this.basePath))}flowControllerGetFull(t,r){return se(this.configuration).flowControllerGetFull(t,r).then(n=>n(this.axios,this.basePath))}flowControllerIndex(t){return se(this.configuration).flowControllerIndex(t).then(r=>r(this.axios,this.basePath))}flowControllerPatch(t,r,n){return se(this.configuration).flowControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}flowControllerPost(t,r){return se(this.configuration).flowControllerPost(t,r).then(n=>n(this.axios,this.basePath))}flowFormControllerDelete(t,r,n){return se(this.configuration).flowFormControllerDelete(t,r,n).then(o=>o(this.axios,this.basePath))}flowFormControllerGet(t,r,n){return se(this.configuration).flowFormControllerGet(t,r,n).then(o=>o(this.axios,this.basePath))}flowFormControllerIndex(t){return se(this.configuration).flowFormControllerIndex(t).then(r=>r(this.axios,this.basePath))}flowFormControllerPatch(t,r,n,o){return se(this.configuration).flowFormControllerPatch(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowFormControllerPost(t,r){return se(this.configuration).flowFormControllerPost(t,r).then(n=>n(this.axios,this.basePath))}flowFormSearchControllerPost(t,r,n,o){return se(this.configuration).flowFormSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowSearchControllerPost(t,r,n,o){return se(this.configuration).flowSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}formComponentControllerDelete(t,r){return se(this.configuration).formComponentControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}formComponentControllerGetById(t,r){return se(this.configuration).formComponentControllerGetById(t,r).then(n=>n(this.axios,this.basePath))}formComponentControllerIndex(t){return se(this.configuration).formComponentControllerIndex(t).then(r=>r(this.axios,this.basePath))}formComponentControllerPatch(t,r,n){return se(this.configuration).formComponentControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}formComponentControllerPost(t,r){return se(this.configuration).formComponentControllerPost(t,r).then(n=>n(this.axios,this.basePath))}formComponentSearchControllerPost(t,r,n,o){return se(this.configuration).formComponentSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}formControllerCopy(t,r){return se(this.configuration).formControllerCopy(t,r).then(n=>n(this.axios,this.basePath))}formControllerDelete(t,r){return se(this.configuration).formControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}formControllerGet(t,r){return se(this.configuration).formControllerGet(t,r).then(n=>n(this.axios,this.basePath))}formControllerIndex(t){return se(this.configuration).formControllerIndex(t).then(r=>r(this.axios,this.basePath))}formControllerPatch(t,r,n){return se(this.configuration).formControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}formControllerPost(t,r){return se(this.configuration).formControllerPost(t,r).then(n=>n(this.axios,this.basePath))}formSearchControllerPost(t,r,n,o){return se(this.configuration).formSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}healthControllerGet(t){return se(this.configuration).healthControllerGet(t).then(r=>r(this.axios,this.basePath))}oidcConfigControllerGetClient(t,r){return se(this.configuration).oidcConfigControllerGetClient(t,r).then(n=>n(this.axios,this.basePath))}oidcConfigControllerGetEntra(t){return se(this.configuration).oidcConfigControllerGetEntra(t).then(r=>r(this.axios,this.basePath))}oidcCookieControllerPost(t,r,n){return se(this.configuration).oidcCookieControllerPost(t,r,n).then(o=>o(this.axios,this.basePath))}patientControllerDelete(t,r){return se(this.configuration).patientControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}patientControllerGet(t,r){return se(this.configuration).patientControllerGet(t,r).then(n=>n(this.axios,this.basePath))}patientControllerIndex(t){return se(this.configuration).patientControllerIndex(t).then(r=>r(this.axios,this.basePath))}patientControllerPatch(t,r,n){return se(this.configuration).patientControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}patientControllerPost(t,r){return se(this.configuration).patientControllerPost(t,r).then(n=>n(this.axios,this.basePath))}patientSearchControllerPost(t,r,n,o){return se(this.configuration).patientSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}propertyControllerDelete(t,r){return se(this.configuration).propertyControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}propertyControllerGet(t,r){return se(this.configuration).propertyControllerGet(t,r).then(n=>n(this.axios,this.basePath))}propertyControllerIndex(t){return se(this.configuration).propertyControllerIndex(t).then(r=>r(this.axios,this.basePath))}propertyControllerPatch(t,r,n){return se(this.configuration).propertyControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}propertyControllerPost(t,r){return se(this.configuration).propertyControllerPost(t,r).then(n=>n(this.axios,this.basePath))}propertySearchControllerPost(t,r,n,o){return se(this.configuration).propertySearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}tokenValidationControllerPost(t,r){return se(this.configuration).tokenValidationControllerPost(t,r).then(n=>n(this.axios,this.basePath))}}function _i(e,t=""){return{api:t||(!location.port||location.port==="80"?"":e),ui:location.origin}}const Bn=e=>{const t=_i("http://localhost:3129",e);return Ti(Fi,{apiUrl:t.api})},Ii=({dataFetcher:e=()=>{},children:t,configFetcher:r,isPreview:n=!1,onSubmit:o=()=>Promise.resolve(),formidavimHost:a,version:i="1.0",flowName:l=""})=>{const u=Bn(a),[h,b]=Ne.useState({config:null,data:null}),[m,x]=Ne.useState(!0);return Ne.useEffect(()=>{Promise.all([r?r():u.flowControllerGetBySlug(l,i).then(({data:$})=>$).catch($=>console.warn("DemoConsumer configFetcher failed",$)),e?e():null]).then(([$,S])=>{b({config:$,data:S}),x(!1)}).catch($=>{x(!1)})},[]),m?null:h.config?T.jsx(Gr,{children:T.jsx(zr,{data:h.data,isPreview:n,config:h.config,onSubmit:o})}):T.jsx(T.Fragment,{children:t})},Ni=({flowName:e,dataFetcher:t,children:r,onSubmit:n,configFetcher:o,formidavimHost:a,version:i})=>{const[l,u]=Ne.useState({}),h=Bn(a);return Ne.useEffect(()=>{Promise.all([o?o():h.flowControllerGetBySlug(e,i).then(({data:b})=>b).catch(b=>console.warn("DemoConsumer configFetcher failed",b)),t().catch(b=>console.warn("DemoConsumer dataFetcher failed",b))]).then(([b,m])=>{console.warn({config:b,data:m,detail:"DemoConsumer"}),u({config:b,data:m})})},[]),l.config?T.jsx(Ht.Provider,{store:Un,children:T.jsx(Gr,{children:T.jsx(zr,{onSubmit:n,data:l.data,isPreview:!1,config:l.config})})}):T.jsx(T.Fragment,{children:r})};exports.ComponentFactory=hr;exports.DataRenderer=Ii;exports.DemoConsumer=Ni;exports.FlowFormRenderer=Mn;exports.FlowProgressTracker=hn;exports.FlowRenderer=Nn;exports.FormComponentRenderer=zn;exports.FormRenderer=Gn;exports.FormWrapper=Ln;exports.Renderer=zr;exports.RendererWrapper=Gr;
|
|
2501
|
+
`,Ln=({children:e,$bgColor:t})=>T.jsx(zt,{$overflow:"hidden",$position:"static",$xSmall:!0,id:"MainFlowContainer",$bgColor:t||"white",$bRad:"0px",$marginBottom:"0px",$marginBottomMd:"0px",children:T.jsx(Vi,{children:e})});function Ai(e){const{onError:t,on401:r,on403:n,on400:o,on500:a,addHeaders:i,onRequest:l,onResponse:u,modifyRequest:h}=e,b=Z.create();return b.interceptors.request.use(m=>(m.headers||(m.headers={}),typeof i=="function"&&Object.entries(i(m)||{}).forEach(([x,$])=>m.headers[x]=$),typeof l=="function"&&l(m),typeof h=="function"?h(m):m)),b.interceptors.response.use(m=>(typeof u=="function"&&u(m),m),m=>{var $,S,I,L;const x={config:{}};if(typeof t=="function"&&t((m==null?void 0:m.response)||x),(($=m==null?void 0:m.response)==null?void 0:$.status)===400)typeof o=="function"&&o((m==null?void 0:m.response)||x);else if(((S=m==null?void 0:m.response)==null?void 0:S.status)===401)typeof r=="function"&&r((m==null?void 0:m.response)||x);else if(((I=m==null?void 0:m.response)==null?void 0:I.status)===403)typeof n=="function"&&n((m==null?void 0:m.response)||x);else if(((L=m==null?void 0:m.response)==null?void 0:L.status)===500)typeof a=="function"&&a((m==null?void 0:m.response)||x);else throw m}),b}function Ti(e,t){const{apiUrl:r}=t;return new e({basePath:r},r,Ai(t))}const te="http://localhost".replace(/\/+$/,"");class Di{constructor(t,r=te,n=Z){this.basePath=r,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class Ri extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const ne="https://example.com",K=function(e,t,r){if(r==null)throw new Ri(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function jr(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(n=>jr(e,n,r)):Object.keys(t).forEach(n=>jr(e,t[n],`${r}${r!==""?".":""}${n}`)):e.has(r)?e.append(r,t):e.set(r,t))}const oe=function(e,...t){const r=new URLSearchParams(e.search);jr(r,t),e.search=r.toString()},Me=function(e,t,r){const n=typeof e!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(e!==void 0?e:{}):e||""},ae=function(e){return e.pathname+e.search+e.hash},ie=function(e,t,r,n){return(o=t,a=r)=>{const i={...e.options,url:((n==null?void 0:n.basePath)||a)+e.url};return o.request(i)}},ji=function(e){return{abTestControllerDelete:async(t,r={})=>{K("abTestControllerDelete","id",t);const n="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerGet:async(t,r={})=>{K("abTestControllerGet","id",t);const n="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerGetBySlug:async(t,r={})=>{K("abTestControllerGetBySlug","slug",t);const n="/api/ab-test/slug/{slug}".replace("{slug}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},abTestControllerIndex:async(t={})=>{const r="/api/ab-test",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},abTestControllerPatch:async(t,r,n={})=>{K("abTestControllerPatch","id",t),K("abTestControllerPatch","abTest",r);const o="/api/ab-test/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},abTestControllerPost:async(t,r={})=>{K("abTestControllerPost","abTest",t);const n="/api/ab-test",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},abTestSearchControllerPost:async(t,r,n,o={})=>{K("abTestSearchControllerPost","abTest",t);const a="/api/ab-test-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},componentControllerDelete:async(t,r={})=>{K("componentControllerDelete","id",t);const n="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},componentControllerGet:async(t,r={})=>{K("componentControllerGet","id",t);const n="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},componentControllerIndex:async(t={})=>{const r="/api/component",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},componentControllerPatch:async(t,r,n={})=>{K("componentControllerPatch","id",t),K("componentControllerPatch","component",r);const o="/api/component/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},componentControllerPost:async(t,r={})=>{K("componentControllerPost","component",t);const n="/api/component",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},componentSearchControllerPost:async(t,r,n,o={})=>{K("componentSearchControllerPost","component",t);const a="/api/component-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},conditionControllerDelete:async(t,r={})=>{K("conditionControllerDelete","id",t);const n="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},conditionControllerGet:async(t,r={})=>{K("conditionControllerGet","id",t);const n="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},conditionControllerIndex:async(t={})=>{const r="/api/condition",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},conditionControllerPatch:async(t,r,n={})=>{K("conditionControllerPatch","id",t),K("conditionControllerPatch","condition",r);const o="/api/condition/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},conditionControllerPost:async(t,r={})=>{K("conditionControllerPost","condition",t);const n="/api/condition",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},conditionSearchControllerPost:async(t,r,n,o={})=>{K("conditionSearchControllerPost","condition",t);const a="/api/condition-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},flowControllerCopy:async(t,r={})=>{K("flowControllerCopy","flowCopyDto",t);const n="/api/flow/copy",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowControllerDelete:async(t,r={})=>{K("flowControllerDelete","id",t);const n="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerGet:async(t,r={})=>{K("flowControllerGet","id",t);const n="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerGetBySlug:async(t,r,n={})=>{K("flowControllerGetBySlug","slug",t),K("flowControllerGetBySlug","version",r);const o="/api/flow/slug/{slug}".replace("{slug}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},u={},h={};r!==void 0&&(h.version=r),oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowControllerGetFull:async(t,r={})=>{K("flowControllerGetFull","id",t);const n="/api/flow/{id}/full".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},flowControllerIndex:async(t={})=>{const r="/api/flow",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},flowControllerPatch:async(t,r,n={})=>{K("flowControllerPatch","id",t),K("flowControllerPatch","flow",r);const o="/api/flow/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},flowControllerPost:async(t,r={})=>{K("flowControllerPost","flow",t);const n="/api/flow",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowFormControllerDelete:async(t,r,n={})=>{K("flowFormControllerDelete","flowId",t),K("flowFormControllerDelete","formId",r);const o="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"DELETE",...i,...n},u={};oe(a,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowFormControllerGet:async(t,r,n={})=>{K("flowFormControllerGet","flowId",t),K("flowFormControllerGet","formId",r);const o="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...n},u={};oe(a,{});let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},{url:ae(a),options:l}},flowFormControllerIndex:async(t={})=>{const r="/api/flow-form",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},flowFormControllerPatch:async(t,r,n,o={})=>{K("flowFormControllerPatch","flowId",t),K("flowFormControllerPatch","formId",r),K("flowFormControllerPatch","flowForm",n);const a="/api/flow-form/{flowId}/{formId}".replace("{flowId}",encodeURIComponent(String(t))).replace("{formId}",encodeURIComponent(String(r))),i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"PATCH",...l,...o},h={},b={};h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(n,u,e),{url:ae(i),options:u}},flowFormControllerPost:async(t,r={})=>{K("flowFormControllerPost","flowForm",t);const n="/api/flow-form",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},flowFormSearchControllerPost:async(t,r,n,o={})=>{K("flowFormSearchControllerPost","flowForm",t);const a="/api/flow-form-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},flowSearchControllerPost:async(t,r,n,o={})=>{K("flowSearchControllerPost","flow",t);const a="/api/flow-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},formComponentControllerDelete:async(t,r={})=>{K("formComponentControllerDelete","id",t);const n="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formComponentControllerGetById:async(t,r={})=>{K("formComponentControllerGetById","id",t);const n="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formComponentControllerIndex:async(t={})=>{const r="/api/form-component",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},formComponentControllerPatch:async(t,r,n={})=>{K("formComponentControllerPatch","id",t),K("formComponentControllerPatch","formComponent",r);const o="/api/form-component/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},formComponentControllerPost:async(t,r={})=>{K("formComponentControllerPost","formComponent",t);const n="/api/form-component",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formComponentSearchControllerPost:async(t,r,n,o={})=>{K("formComponentSearchControllerPost","formComponent",t);const a="/api/form-component-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},formControllerCopy:async(t,r={})=>{K("formControllerCopy","formCopyDto",t);const n="/api/form/copy",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formControllerDelete:async(t,r={})=>{K("formControllerDelete","id",t);const n="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formControllerGet:async(t,r={})=>{K("formControllerGet","id",t);const n="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},formControllerIndex:async(t={})=>{const r="/api/form",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},formControllerPatch:async(t,r,n={})=>{K("formControllerPatch","id",t),K("formControllerPatch","form",r);const o="/api/form/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},formControllerPost:async(t,r={})=>{K("formControllerPost","form",t);const n="/api/form",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},formSearchControllerPost:async(t,r,n,o={})=>{K("formSearchControllerPost","form",t);const a="/api/form-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},healthControllerGet:async(t={})=>{const r="/api/health",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},oidcConfigControllerGetClient:async(t,r={})=>{K("oidcConfigControllerGetClient","redirectUri",t);const n="/api/oidc-config/client/{redirectUri}".replace("{redirectUri}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},oidcConfigControllerGetEntra:async(t={})=>{const r="/api/oidc-config/entra",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},oidcCookieControllerPost:async(t,r,n={})=>{K("oidcCookieControllerPost","origin",t),K("oidcCookieControllerPost","tokensDto",r);const o="/api/oidc-cookie/{origin}".replace("{origin}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},patientControllerDelete:async(t,r={})=>{K("patientControllerDelete","id",t);const n="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},patientControllerGet:async(t,r={})=>{K("patientControllerGet","id",t);const n="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},patientControllerIndex:async(t={})=>{const r="/api/patient",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},patientControllerPatch:async(t,r,n={})=>{K("patientControllerPatch","id",t),K("patientControllerPatch","patient",r);const o="/api/patient/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},patientControllerPost:async(t,r={})=>{K("patientControllerPost","patient",t);const n="/api/patient",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},patientSearchControllerPost:async(t,r,n,o={})=>{K("patientSearchControllerPost","patient",t);const a="/api/patient-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},propertyControllerDelete:async(t,r={})=>{K("propertyControllerDelete","id",t);const n="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"DELETE",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},propertyControllerGet:async(t,r={})=>{K("propertyControllerGet","id",t);const n="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"GET",...a,...r},l={};oe(o,{});let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},{url:ae(o),options:i}},propertyControllerIndex:async(t={})=>{const r="/api/property",n=new URL(r,ne);let o;e&&(o=e.baseOptions);const a={method:"GET",...o,...t},i={};oe(n,{});let u=o&&o.headers?o.headers:{};return a.headers={...i,...u,...t.headers},{url:ae(n),options:a}},propertyControllerPatch:async(t,r,n={})=>{K("propertyControllerPatch","id",t),K("propertyControllerPatch","property",r);const o="/api/property/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(o,ne);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...n},u={},h={};u["Content-Type"]="application/json",oe(a,h);let b=i&&i.headers?i.headers:{};return l.headers={...u,...b,...n.headers},l.data=Me(r,l,e),{url:ae(a),options:l}},propertyControllerPost:async(t,r={})=>{K("propertyControllerPost","property",t);const n="/api/property",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}},propertySearchControllerPost:async(t,r,n,o={})=>{K("propertySearchControllerPost","property",t);const a="/api/property-search",i=new URL(a,ne);let l;e&&(l=e.baseOptions);const u={method:"POST",...l,...o},h={},b={};r!==void 0&&(b.pagingKey=r),n!==void 0&&(b.pageSize=n),h["Content-Type"]="application/json",oe(i,b);let m=l&&l.headers?l.headers:{};return u.headers={...h,...m,...o.headers},u.data=Me(t,u,e),{url:ae(i),options:u}},tokenValidationControllerPost:async(t,r={})=>{K("tokenValidationControllerPost","valueDto",t);const n="/api/token-validation",o=new URL(n,ne);let a;e&&(a=e.baseOptions);const i={method:"POST",...a,...r},l={},u={};l["Content-Type"]="application/json",oe(o,u);let h=a&&a.headers?a.headers:{};return i.headers={...l,...h,...r.headers},i.data=Me(t,i,e),{url:ae(o),options:i}}}},se=function(e){const t=ji(e);return{async abTestControllerDelete(r,n){const o=await t.abTestControllerDelete(r,n);return ie(o,Z,te,e)},async abTestControllerGet(r,n){const o=await t.abTestControllerGet(r,n);return ie(o,Z,te,e)},async abTestControllerGetBySlug(r,n){const o=await t.abTestControllerGetBySlug(r,n);return ie(o,Z,te,e)},async abTestControllerIndex(r){const n=await t.abTestControllerIndex(r);return ie(n,Z,te,e)},async abTestControllerPatch(r,n,o){const a=await t.abTestControllerPatch(r,n,o);return ie(a,Z,te,e)},async abTestControllerPost(r,n){const o=await t.abTestControllerPost(r,n);return ie(o,Z,te,e)},async abTestSearchControllerPost(r,n,o,a){const i=await t.abTestSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async componentControllerDelete(r,n){const o=await t.componentControllerDelete(r,n);return ie(o,Z,te,e)},async componentControllerGet(r,n){const o=await t.componentControllerGet(r,n);return ie(o,Z,te,e)},async componentControllerIndex(r){const n=await t.componentControllerIndex(r);return ie(n,Z,te,e)},async componentControllerPatch(r,n,o){const a=await t.componentControllerPatch(r,n,o);return ie(a,Z,te,e)},async componentControllerPost(r,n){const o=await t.componentControllerPost(r,n);return ie(o,Z,te,e)},async componentSearchControllerPost(r,n,o,a){const i=await t.componentSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async conditionControllerDelete(r,n){const o=await t.conditionControllerDelete(r,n);return ie(o,Z,te,e)},async conditionControllerGet(r,n){const o=await t.conditionControllerGet(r,n);return ie(o,Z,te,e)},async conditionControllerIndex(r){const n=await t.conditionControllerIndex(r);return ie(n,Z,te,e)},async conditionControllerPatch(r,n,o){const a=await t.conditionControllerPatch(r,n,o);return ie(a,Z,te,e)},async conditionControllerPost(r,n){const o=await t.conditionControllerPost(r,n);return ie(o,Z,te,e)},async conditionSearchControllerPost(r,n,o,a){const i=await t.conditionSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async flowControllerCopy(r,n){const o=await t.flowControllerCopy(r,n);return ie(o,Z,te,e)},async flowControllerDelete(r,n){const o=await t.flowControllerDelete(r,n);return ie(o,Z,te,e)},async flowControllerGet(r,n){const o=await t.flowControllerGet(r,n);return ie(o,Z,te,e)},async flowControllerGetBySlug(r,n,o){const a=await t.flowControllerGetBySlug(r,n,o);return ie(a,Z,te,e)},async flowControllerGetFull(r,n){const o=await t.flowControllerGetFull(r,n);return ie(o,Z,te,e)},async flowControllerIndex(r){const n=await t.flowControllerIndex(r);return ie(n,Z,te,e)},async flowControllerPatch(r,n,o){const a=await t.flowControllerPatch(r,n,o);return ie(a,Z,te,e)},async flowControllerPost(r,n){const o=await t.flowControllerPost(r,n);return ie(o,Z,te,e)},async flowFormControllerDelete(r,n,o){const a=await t.flowFormControllerDelete(r,n,o);return ie(a,Z,te,e)},async flowFormControllerGet(r,n,o){const a=await t.flowFormControllerGet(r,n,o);return ie(a,Z,te,e)},async flowFormControllerIndex(r){const n=await t.flowFormControllerIndex(r);return ie(n,Z,te,e)},async flowFormControllerPatch(r,n,o,a){const i=await t.flowFormControllerPatch(r,n,o,a);return ie(i,Z,te,e)},async flowFormControllerPost(r,n){const o=await t.flowFormControllerPost(r,n);return ie(o,Z,te,e)},async flowFormSearchControllerPost(r,n,o,a){const i=await t.flowFormSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async flowSearchControllerPost(r,n,o,a){const i=await t.flowSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async formComponentControllerDelete(r,n){const o=await t.formComponentControllerDelete(r,n);return ie(o,Z,te,e)},async formComponentControllerGetById(r,n){const o=await t.formComponentControllerGetById(r,n);return ie(o,Z,te,e)},async formComponentControllerIndex(r){const n=await t.formComponentControllerIndex(r);return ie(n,Z,te,e)},async formComponentControllerPatch(r,n,o){const a=await t.formComponentControllerPatch(r,n,o);return ie(a,Z,te,e)},async formComponentControllerPost(r,n){const o=await t.formComponentControllerPost(r,n);return ie(o,Z,te,e)},async formComponentSearchControllerPost(r,n,o,a){const i=await t.formComponentSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async formControllerCopy(r,n){const o=await t.formControllerCopy(r,n);return ie(o,Z,te,e)},async formControllerDelete(r,n){const o=await t.formControllerDelete(r,n);return ie(o,Z,te,e)},async formControllerGet(r,n){const o=await t.formControllerGet(r,n);return ie(o,Z,te,e)},async formControllerIndex(r){const n=await t.formControllerIndex(r);return ie(n,Z,te,e)},async formControllerPatch(r,n,o){const a=await t.formControllerPatch(r,n,o);return ie(a,Z,te,e)},async formControllerPost(r,n){const o=await t.formControllerPost(r,n);return ie(o,Z,te,e)},async formSearchControllerPost(r,n,o,a){const i=await t.formSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async healthControllerGet(r){const n=await t.healthControllerGet(r);return ie(n,Z,te,e)},async oidcConfigControllerGetClient(r,n){const o=await t.oidcConfigControllerGetClient(r,n);return ie(o,Z,te,e)},async oidcConfigControllerGetEntra(r){const n=await t.oidcConfigControllerGetEntra(r);return ie(n,Z,te,e)},async oidcCookieControllerPost(r,n,o){const a=await t.oidcCookieControllerPost(r,n,o);return ie(a,Z,te,e)},async patientControllerDelete(r,n){const o=await t.patientControllerDelete(r,n);return ie(o,Z,te,e)},async patientControllerGet(r,n){const o=await t.patientControllerGet(r,n);return ie(o,Z,te,e)},async patientControllerIndex(r){const n=await t.patientControllerIndex(r);return ie(n,Z,te,e)},async patientControllerPatch(r,n,o){const a=await t.patientControllerPatch(r,n,o);return ie(a,Z,te,e)},async patientControllerPost(r,n){const o=await t.patientControllerPost(r,n);return ie(o,Z,te,e)},async patientSearchControllerPost(r,n,o,a){const i=await t.patientSearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async propertyControllerDelete(r,n){const o=await t.propertyControllerDelete(r,n);return ie(o,Z,te,e)},async propertyControllerGet(r,n){const o=await t.propertyControllerGet(r,n);return ie(o,Z,te,e)},async propertyControllerIndex(r){const n=await t.propertyControllerIndex(r);return ie(n,Z,te,e)},async propertyControllerPatch(r,n,o){const a=await t.propertyControllerPatch(r,n,o);return ie(a,Z,te,e)},async propertyControllerPost(r,n){const o=await t.propertyControllerPost(r,n);return ie(o,Z,te,e)},async propertySearchControllerPost(r,n,o,a){const i=await t.propertySearchControllerPost(r,n,o,a);return ie(i,Z,te,e)},async tokenValidationControllerPost(r,n){const o=await t.tokenValidationControllerPost(r,n);return ie(o,Z,te,e)}}};class Fi extends Di{abTestControllerDelete(t,r){return se(this.configuration).abTestControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerGet(t,r){return se(this.configuration).abTestControllerGet(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerGetBySlug(t,r){return se(this.configuration).abTestControllerGetBySlug(t,r).then(n=>n(this.axios,this.basePath))}abTestControllerIndex(t){return se(this.configuration).abTestControllerIndex(t).then(r=>r(this.axios,this.basePath))}abTestControllerPatch(t,r,n){return se(this.configuration).abTestControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}abTestControllerPost(t,r){return se(this.configuration).abTestControllerPost(t,r).then(n=>n(this.axios,this.basePath))}abTestSearchControllerPost(t,r,n,o){return se(this.configuration).abTestSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}componentControllerDelete(t,r){return se(this.configuration).componentControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}componentControllerGet(t,r){return se(this.configuration).componentControllerGet(t,r).then(n=>n(this.axios,this.basePath))}componentControllerIndex(t){return se(this.configuration).componentControllerIndex(t).then(r=>r(this.axios,this.basePath))}componentControllerPatch(t,r,n){return se(this.configuration).componentControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}componentControllerPost(t,r){return se(this.configuration).componentControllerPost(t,r).then(n=>n(this.axios,this.basePath))}componentSearchControllerPost(t,r,n,o){return se(this.configuration).componentSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}conditionControllerDelete(t,r){return se(this.configuration).conditionControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}conditionControllerGet(t,r){return se(this.configuration).conditionControllerGet(t,r).then(n=>n(this.axios,this.basePath))}conditionControllerIndex(t){return se(this.configuration).conditionControllerIndex(t).then(r=>r(this.axios,this.basePath))}conditionControllerPatch(t,r,n){return se(this.configuration).conditionControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}conditionControllerPost(t,r){return se(this.configuration).conditionControllerPost(t,r).then(n=>n(this.axios,this.basePath))}conditionSearchControllerPost(t,r,n,o){return se(this.configuration).conditionSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowControllerCopy(t,r){return se(this.configuration).flowControllerCopy(t,r).then(n=>n(this.axios,this.basePath))}flowControllerDelete(t,r){return se(this.configuration).flowControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}flowControllerGet(t,r){return se(this.configuration).flowControllerGet(t,r).then(n=>n(this.axios,this.basePath))}flowControllerGetBySlug(t,r,n){return se(this.configuration).flowControllerGetBySlug(t,r,n).then(o=>o(this.axios,this.basePath))}flowControllerGetFull(t,r){return se(this.configuration).flowControllerGetFull(t,r).then(n=>n(this.axios,this.basePath))}flowControllerIndex(t){return se(this.configuration).flowControllerIndex(t).then(r=>r(this.axios,this.basePath))}flowControllerPatch(t,r,n){return se(this.configuration).flowControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}flowControllerPost(t,r){return se(this.configuration).flowControllerPost(t,r).then(n=>n(this.axios,this.basePath))}flowFormControllerDelete(t,r,n){return se(this.configuration).flowFormControllerDelete(t,r,n).then(o=>o(this.axios,this.basePath))}flowFormControllerGet(t,r,n){return se(this.configuration).flowFormControllerGet(t,r,n).then(o=>o(this.axios,this.basePath))}flowFormControllerIndex(t){return se(this.configuration).flowFormControllerIndex(t).then(r=>r(this.axios,this.basePath))}flowFormControllerPatch(t,r,n,o){return se(this.configuration).flowFormControllerPatch(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowFormControllerPost(t,r){return se(this.configuration).flowFormControllerPost(t,r).then(n=>n(this.axios,this.basePath))}flowFormSearchControllerPost(t,r,n,o){return se(this.configuration).flowFormSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}flowSearchControllerPost(t,r,n,o){return se(this.configuration).flowSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}formComponentControllerDelete(t,r){return se(this.configuration).formComponentControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}formComponentControllerGetById(t,r){return se(this.configuration).formComponentControllerGetById(t,r).then(n=>n(this.axios,this.basePath))}formComponentControllerIndex(t){return se(this.configuration).formComponentControllerIndex(t).then(r=>r(this.axios,this.basePath))}formComponentControllerPatch(t,r,n){return se(this.configuration).formComponentControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}formComponentControllerPost(t,r){return se(this.configuration).formComponentControllerPost(t,r).then(n=>n(this.axios,this.basePath))}formComponentSearchControllerPost(t,r,n,o){return se(this.configuration).formComponentSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}formControllerCopy(t,r){return se(this.configuration).formControllerCopy(t,r).then(n=>n(this.axios,this.basePath))}formControllerDelete(t,r){return se(this.configuration).formControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}formControllerGet(t,r){return se(this.configuration).formControllerGet(t,r).then(n=>n(this.axios,this.basePath))}formControllerIndex(t){return se(this.configuration).formControllerIndex(t).then(r=>r(this.axios,this.basePath))}formControllerPatch(t,r,n){return se(this.configuration).formControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}formControllerPost(t,r){return se(this.configuration).formControllerPost(t,r).then(n=>n(this.axios,this.basePath))}formSearchControllerPost(t,r,n,o){return se(this.configuration).formSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}healthControllerGet(t){return se(this.configuration).healthControllerGet(t).then(r=>r(this.axios,this.basePath))}oidcConfigControllerGetClient(t,r){return se(this.configuration).oidcConfigControllerGetClient(t,r).then(n=>n(this.axios,this.basePath))}oidcConfigControllerGetEntra(t){return se(this.configuration).oidcConfigControllerGetEntra(t).then(r=>r(this.axios,this.basePath))}oidcCookieControllerPost(t,r,n){return se(this.configuration).oidcCookieControllerPost(t,r,n).then(o=>o(this.axios,this.basePath))}patientControllerDelete(t,r){return se(this.configuration).patientControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}patientControllerGet(t,r){return se(this.configuration).patientControllerGet(t,r).then(n=>n(this.axios,this.basePath))}patientControllerIndex(t){return se(this.configuration).patientControllerIndex(t).then(r=>r(this.axios,this.basePath))}patientControllerPatch(t,r,n){return se(this.configuration).patientControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}patientControllerPost(t,r){return se(this.configuration).patientControllerPost(t,r).then(n=>n(this.axios,this.basePath))}patientSearchControllerPost(t,r,n,o){return se(this.configuration).patientSearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}propertyControllerDelete(t,r){return se(this.configuration).propertyControllerDelete(t,r).then(n=>n(this.axios,this.basePath))}propertyControllerGet(t,r){return se(this.configuration).propertyControllerGet(t,r).then(n=>n(this.axios,this.basePath))}propertyControllerIndex(t){return se(this.configuration).propertyControllerIndex(t).then(r=>r(this.axios,this.basePath))}propertyControllerPatch(t,r,n){return se(this.configuration).propertyControllerPatch(t,r,n).then(o=>o(this.axios,this.basePath))}propertyControllerPost(t,r){return se(this.configuration).propertyControllerPost(t,r).then(n=>n(this.axios,this.basePath))}propertySearchControllerPost(t,r,n,o){return se(this.configuration).propertySearchControllerPost(t,r,n,o).then(a=>a(this.axios,this.basePath))}tokenValidationControllerPost(t,r){return se(this.configuration).tokenValidationControllerPost(t,r).then(n=>n(this.axios,this.basePath))}}function _i(e,t=""){return{api:t||(!location.port||location.port==="80"?"":e),ui:location.origin}}const Bn=e=>{const t=_i("http://localhost:3129",e);return Ti(Fi,{apiUrl:t.api})},Ii=({dataFetcher:e=()=>{},children:t,configFetcher:r,isPreview:n=!1,onSubmit:o=()=>Promise.resolve(),formidavimHost:a,version:i="1.0",flowName:l=""})=>{const u=Bn(a),[h,b]=Ne.useState({config:null,data:null}),[m,x]=Ne.useState(!0);return Ne.useEffect(()=>{Promise.all([r?r():u.flowControllerGetBySlug(l,i).then(({data:$})=>$).catch($=>console.warn("DemoConsumer configFetcher failed",$)),e?e():null]).then(([$,S])=>{b({config:$,data:S}),x(!1)}).catch($=>{x(!1)})},[l,i]),m?null:h.config?T.jsx(Gr,{children:T.jsx(zr,{data:h.data,isPreview:n,config:h.config,onSubmit:o})}):T.jsx(T.Fragment,{children:t})},Ni=({flowName:e,dataFetcher:t,children:r,onSubmit:n,configFetcher:o,formidavimHost:a,version:i})=>{const[l,u]=Ne.useState({}),h=Bn(a);return Ne.useEffect(()=>{Promise.all([o?o():h.flowControllerGetBySlug(e,i).then(({data:b})=>b).catch(b=>console.warn("DemoConsumer configFetcher failed",b)),t().catch(b=>console.warn("DemoConsumer dataFetcher failed",b))]).then(([b,m])=>{console.warn({config:b,data:m,detail:"DemoConsumer"}),u({config:b,data:m})})},[]),l.config?T.jsx(Ht.Provider,{store:Un,children:T.jsx(Gr,{children:T.jsx(zr,{onSubmit:n,data:l.data,isPreview:!1,config:l.config})})}):T.jsx(T.Fragment,{children:r})};exports.ComponentFactory=hr;exports.DataRenderer=Ii;exports.DemoConsumer=Ni;exports.FlowFormRenderer=Mn;exports.FlowProgressTracker=hn;exports.FlowRenderer=Nn;exports.FormComponentRenderer=zn;exports.FormRenderer=Gn;exports.FormWrapper=Ln;exports.Renderer=zr;exports.RendererWrapper=Gr;
|
package/index.mjs
CHANGED
|
@@ -11764,7 +11764,7 @@ const Ln = (e) => {
|
|
|
11764
11764
|
}).catch(($) => {
|
|
11765
11765
|
x(!1);
|
|
11766
11766
|
});
|
|
11767
|
-
}, []), m ? null : h.config ? /* @__PURE__ */ A.jsx(Gn, { children: /* @__PURE__ */ A.jsx(
|
|
11767
|
+
}, [l, i]), m ? null : h.config ? /* @__PURE__ */ A.jsx(Gn, { children: /* @__PURE__ */ A.jsx(
|
|
11768
11768
|
Mn,
|
|
11769
11769
|
{
|
|
11770
11770
|
data: h.data,
|