diff --git a/src/server/playground/dist/bundle-css.css b/src/server/playground/dist/bundle-css.css index 751faa3a..30970a59 100644 --- a/src/server/playground/dist/bundle-css.css +++ b/src/server/playground/dist/bundle-css.css @@ -214,9 +214,28 @@ textarea { justify-content: space-between; gap: 10px; width: 100%; + border: 1px solid bisque; + border-radius: 7px; + padding: 5px 10px 0 10px; + position: relative; + margin-top: 15px; } .sidebar__section-add-capture input { width: 50%; + border: none; + border-radius: 5px; + cursor: text; +} +.section-add-capture__delete-button { + position: absolute; + z-index: 2; + top: -12px; + right: 5px; + cursor: pointer; +} +.section-add-capture__delete-button svg { + border-radius: 50%; + backdrop-filter: blur(10px); } .btn { border: none; @@ -362,9 +381,10 @@ textarea { background-color: var(--color-colonial-2); color: white; } -@media (min-width: 1024px) and (max-width: 1440px) { +@media (min-width: 768px) and (max-width: 1440px) { .sidebar__section-add-capture { flex-direction: column; + padding: 15px 8px 8px 8px; } .sidebar__section-add-capture input { margin: 0; @@ -924,6 +944,7 @@ textarea { border: 1px solid bisque; backdrop-filter: blur(10px); border-top: none; + text-decoration-line: none; } .e2e-back-button.e2e-run-botton { background-color: darkslategray; @@ -1875,15 +1896,16 @@ textarea { .pagination > :is(button, span) { display: grid; place-items: center; - width: 30px; height: 30px; - padding: 0; + padding: 1px; border: 0; background: none; color: black; font-size: 12px; cursor: pointer; border-radius: 7px; + min-width: 30px; + max-width: 45px; } .pagination > button:not(span) { cursor: pointer; diff --git a/src/server/playground/dist/bundle-es.js b/src/server/playground/dist/bundle-es.js index 3be6e7b4..c7d0fa96 100644 --- a/src/server/playground/dist/bundle-es.js +++ b/src/server/playground/dist/bundle-es.js @@ -1,4 +1,4 @@ -import{createContext as he,Fragment as q,h as e,hydrate as Ae}from"https://esm.sh/preact@10.5.15";import{useCallback as R,useContext as He,useEffect as j,useMemo as Ve,useReducer as je,useRef as Z,useState as E}from"https://esm.sh/preact@10.5.15/hooks";var h=()=>Date.now().toString(36)+Math.random().toString(36).substr(2);var ct={tabsData:[{service:"",schema:"",act:"",postFields:{},getFields:{},formData:{},response:null}],activeTab:0,setActiveTab:()=>({}),addTab:()=>({}),closeTab:()=>({}),setTabsData:()=>({})},lt={schemasObj:{},actsObj:{},setService:()=>({}),setMethod:()=>({}),setSchema:()=>({}),setAct:()=>({}),setActsObj:()=>({}),setSchemasObj:()=>({}),setPostFields:()=>({}),resetPostFields:()=>({}),setGetFields:()=>({}),resetGetFields:()=>({}),setFormData:()=>({}),setResponse:()=>({})},dt={history:[],deleteItemHistory:()=>({}),setHistory:()=>({})},pt={headers:{Authorization:""},setHeader:()=>({})},ue=()=>({id:h(),bodyHeaders:` +import{createContext as He,Fragment as H,h as e,hydrate as Ae}from"https://esm.sh/preact@10.5.15";import{useCallback as D,useContext as Ve,useEffect as h,useMemo as je,useReducer as he,useRef as J,useState as N}from"https://esm.sh/preact@10.5.15/hooks";var A=()=>Date.now().toString(36)+Math.random().toString(36).substr(2);var ct={tabsData:[{service:"",schema:"",act:"",postFields:{},getFields:{},formData:{},response:null}],activeTab:0,setActiveTab:()=>({}),addTab:()=>({}),closeTab:()=>({}),setTabsData:()=>({})},lt={schemasObj:{},actsObj:{},setService:()=>({}),setMethod:()=>({}),setSchema:()=>({}),setAct:()=>({}),setActsObj:()=>({}),setSchemasObj:()=>({}),setPostFields:()=>({}),resetPostFields:()=>({}),setGetFields:()=>({}),resetGetFields:()=>({}),setFormData:()=>({}),setResponse:()=>({})},dt={history:[],deleteItemHistory:()=>({}),setHistory:()=>({})},pt={headers:{Authorization:""},setHeader:()=>({})},me=()=>({id:A(),bodyHeaders:` { "headers": { "Content-Type": "application/json", @@ -17,17 +17,5 @@ import{createContext as he,Fragment as q,h as e,hydrate as Ae}from"https://esm.s } } } - `,repeat:1,captures:[]}),mt={e2eForms:[ue()],setE2eForms:()=>({}),addE2eForm:()=>({})},ut={modal:null,setModal:()=>({})},fe={...ct,...lt,...dt,...pt,...mt,...ut};function Be(a,t){let{type:s,payload:o}=t;switch(s){case"SET_SELECTED_SERVICE":{let i=[...a.tabsData];return i[o.index]={...i[o.index],service:o.data},{...a,tabsData:[...i]}}case"SET_SCHEMA":{let i=[...a.tabsData];return i[o.index]={...i[o.index],schema:o.data},{...a,tabsData:[...i]}}case"SET_ACT":{let i=[...a.tabsData];return i[o.index]={...i[o.index],act:o.data},{...a,tabsData:[...i]}}case"SET_POST_FIELDS":{let i=[...a.tabsData];return i[o.index]={...i[o.index],postFields:o.data},{...a,tabsData:[...i]}}case"RESET_POST_FIELDS":{let i=[...a.tabsData];return i[o]={...i[o],postFields:{}},{...a,tabsData:[...i]}}case"SET_GET_FIELDS":{let i=[...a.tabsData];return i[o.index]={...i[o.index],getFields:o.data},{...a,tabsData:[...i]}}case"RESET_GET_FIELDS":{let i=[...a.tabsData];return i[o]={...i[o],getFields:{}},{...a,tabsData:[...i]}}case"SET_FORM_DATA":{let i=[...a.tabsData];return i[o.index]={...i[o.index],formData:o.data},{...a,tabsData:[...i]}}case"SET_HEADER":return{...a,headers:o};case"ADD_HISTORY":return{...a,history:o};case"SET_TABS_DATA":return{...a,tabsData:o};case"SET_RESPONSE":{let i=[...a.tabsData];return i[o.index]={...i[o.index],response:o.data},{...a,tabsData:[...i]}}case"ADD_TAB":return{...a,tabsData:[...a.tabsData,{service:"",schema:"",act:"",postFields:{},getFields:{},formData:{},response:null}],activeTab:a.tabsData.length};case"SET_ACTIVE_TAB":return{...a,activeTab:o};case"CLOSE_TAB":{let i=[...a.tabsData];return i.length>1&&i.splice(o,1),{...a,tabsData:[...i],activeTab:i.length>=1&&a.activeTab>=o&&a.activeTab!==0?a.activeTab-1:a.activeTab}}case"DELETE_ITEM_HISTORY":return{...a,history:a.history.slice(0,o).concat(a.history.slice(o+1))};case"SET_ACTS_OBJ":return{...a,actsObj:o};case"SET_SCHEMAS_OBJ":return{...a,schemasObj:o};case"SET_E2E_FORMS":return{...a,e2eForms:o};case"ADD_E2E_FORM":return{...a,e2eForms:[...a.e2eForms,o]};case"OPEN_MODAL":return{...a,modal:o};default:throw new Error("Unhandled action type")}}var ve=he(fe),$e=a=>{let[t,s]=je(Be,fe),o=R(l=>s({type:"SET_SELECTED_SERVICE",payload:l}),[s]),i=R(l=>s({type:"SET_SCHEMA",payload:l}),[s]),f=R(l=>s({type:"SET_ACT",payload:l}),[s]),r=R(l=>s({type:"SET_POST_FIELDS",payload:l}),[s]),d=R(l=>s({type:"RESET_POST_FIELDS",payload:l}),[s]),c=R(l=>s({type:"SET_GET_FIELDS",payload:l}),[s]),v=R(l=>s({type:"RESET_GET_FIELDS",payload:l}),[s]),I=R(l=>s({type:"SET_FORM_DATA",payload:l}),[s]),y=R(l=>s({type:"SET_ACTIVE_TAB",payload:l}),[s]),S=R(l=>s({type:"ADD_TAB",payload:l}),[s]),T=R(l=>s({type:"CLOSE_TAB",payload:l}),[s]),x=R(l=>s({type:"DELETE_ITEM_HISTORY",payload:l}),[s]),P=R(l=>s({type:"SET_HEADER",payload:l}),[s]),G=R(l=>s({type:"ADD_HISTORY",payload:l}),[s]),J=R(l=>s({type:"SET_TABS_DATA",payload:l}),[s]),X=R(l=>s({type:"SET_RESPONSE",payload:l}),[s]),L=R(l=>s({type:"SET_SCHEMAS_OBJ",payload:l}),[s]),O=R(l=>s({type:"SET_ACTS_OBJ",payload:l}),[s]),$=R(l=>s({type:"SET_E2E_FORMS",payload:l}),[s]),p=R(l=>s({type:"ADD_E2E_FORM",payload:l}),[s]),u=R(l=>s({type:"OPEN_MODAL",payload:l}),[s]),N=Ve(()=>({...t,setService:o,setSchema:i,setAct:f,setPostFields:r,resetPostFields:d,setGetFields:c,resetGetFields:v,setFormData:I,setHeader:P,setHistory:G,setTabsData:J,setResponse:X,setActsObj:O,setSchemasObj:L,setActiveTab:y,addTab:S,closeTab:T,deleteItemHistory:x,setE2eForms:$,addE2eForm:p,setModal:u}),[t]);return e(ve.Provider,{value:N,...a})};var B=()=>{let a=He(ve);return a},Ge=a=>{let{children:t}=a;return e($e,null,t)};var ce=a=>{let t={get:{},set:{}};for(let s in a)if(a[s]||a[s]===0||a[s]===!1){let o=s.split("."),i=t;for(;o.length>1;){let f=o.shift();i[f]=i[f]||{},i=i[f]}i[o[0]]=a[s]}return t};var le=(a,t,s)=>{for(let o in a)typeof a[o]=="object"?le(a[o],t,s?`${s}.${o}`:o):t[`${s}.${o}`]=a[o];return t};function W(){return e("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.2501 7.06066L8.03039 10.2803L6.96973 9.21967L12.0001 4.18934L17.0304 9.21967L15.9697 10.2803L12.7501 7.06066L12.7501 16.5L11.2501 16.5L11.2501 7.06066Z",fill:"lightcoral"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function Pe(){let{actsObj:a}=B(),t=()=>{let f=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(a))}`,r=document.createElement("a");r.href=f,r.download="acts.json",r.click()},s=["color-1","color-2","color-3","color-4","color-5","color-6","color-7"],o=f=>Object.keys(f).map((r,d)=>{let c=h();return e("div",{className:"schema"},e("div",{className:"schema-name",onClick:()=>{document.getElementById(c)?.classList.toggle("open")}},e("p",{className:"schema-title"},r),e("span",null,"...")),e("div",{className:"proceed-child-container",id:c},i(a[r])))}),i=f=>Object.keys(f).map((r,d)=>{let c=h();if(f[r]||f[r]===0)return e("div",{className:`inside-schema ${s[Math.floor(Math.random()*s.length)]}`},e("div",{className:`inside ${typeof f[r]=="object"&&f[r].schema!==null&&"schema-pointer"}`,onClick:()=>{document.getElementById(c)?.classList.toggle("open")}},e("p",{className:"schema-title"},r),f[r].type&&e("p",{className:"schema-title schema-type"},f[r].type),e("div",null," ",typeof f[r]=="object"&&f[r].schema!==null&&e("span",null,"..."))),e("div",{id:c,className:"proceed-child"},typeof f[r]=="object"&&f[r]!==null&&f[r].schema!==null&&i(f[r].validator?f[r].validator.schema:f[r].schema?f[r].schema:f[r])))});return e("div",{className:"schema-modal"}," ",e("div",{className:"results-buttons"},e("button",{className:" schema-export-button btn e2e-back-button e2e-export_results-button",onClick:t},e(W,null),e("span",null,"Export"))),e("div",{className:"schema-list"},o(a)))}import{faker as St}from"https://cdn.skypack.dev/@faker-js/faker";function ae(){return e("svg",{width:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M9.00002 15.3802H13.92C15.62 15.3802 17 14.0002 17 12.3002C17 10.6002 15.62 9.22021 13.92 9.22021H7.15002",stroke:"lightcoral","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M8.57 10.7701L7 9.19012L8.57 7.62012",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}var ze=({setView:a})=>e("div",{className:"help"}," ",e("button",{className:"btn e2e-back-button",onClick:()=>{a("e2e")}},e(ae,null),e("span",null,"Back")),e("section",{className:"e2e_help-content"},e("p",null,"With E2E Test, you can test the whole application by sending a sequence of HTTP requests."),e("p",null,"In the image below, you can see the first view of the E2E test modal page, which contains a button bar at the top and two separate requests."),e("img",{src:"https://github.com/MiaadTeam/lesan/assets/6236123/829b3288-3d69-4fd0-a1fc-22d011b8d079",alt:"full screen e2e",className:"e2e_help--fullscreen-img"}),e("hr",null),e("p",null,"In the button bar, you have these buttons:",e("img",{src:"https://github.com/MiaadTeam/lesan/assets/6236123/4edd6034-d6b2-4de9-8c43-8f2fe511aa14",alt:"full screen e2e",className:"e2e_help--fullscreen-img"}),e("ul",null,e("li",null,"Add: This button adds one request section."),e("li",null,"Run E2E Test: This button runs all requests and shows their results."),e("li",null,"Import: This button stands for importing an E2E config in JSON format."),e("li",null,"Export: This button stands for exporting an existing E2E config in JSON format."),e("li",null,"Help: This button switches to the help of the E2E modal page."))),e("hr",null),e("div",null,e("p",null,"Each request section have 2 side"),e("img",{src:"https://github.com/MiaadTeam/lesan/assets/6236123/fa9ceb35-21dd-493a-82cc-cd7391f5fc79",alt:"full screen e2e",className:"e2e_help--fullscreen-img"}),e("hr",null),e("section",{className:"e2e_help--section---right-side"},e("p",null,"The right side is a set of configurations for the repeat time of each request and capturing variables of the request response. In the Capture Variables section, you can add a pair of tuple inputs for the key name of the capture variable and its value. You can capture the value of a capture variable with braces syntax. For example, if you get back this response from a request:",e("pre",null,`{ -`,` body: [ -`,` { -`,` _id: 64c6839c50adc3cb65726934, -`,` name: \u0647\u0645\u062F\u0627\u0646, -`,` enName: Hamedan, -`,` abb: HM -`,` } -`,` ], -`,` success: true -`,` } -`,`} -`),"You can capture _id with [body][0][_id] or for name: [body][0][name]."),e("img",{src:"https://github.com/MiaadTeam/lesan/assets/6236123/1cea1db3-44c2-49b5-8739-a9afa8a6e1fa",alt:"full screen e2e",className:"e2e_help--fullscreen-img"})),e("hr",null),e("section",{className:"e2e_help--section---right-side"},e("img",{src:"https://github.com/MiaadTeam/lesan/assets/6236123/5c9899fa-8be6-42d1-8f4f-8fd965264645",alt:"full screen e2e",className:"e2e_help--fullscreen-img"}),e("p",null,"The left side is a text area for writing headers and the body of the request in JSON format. In this text area, you can use a text parser to implement the captured value you captured before inside these symbols ","{}",".")),e("hr",null),e("p",null,"Also, we have some buttons on the top right side of each request section. With these buttons, you can move up and down and delete requests.",e("img",{src:"https://github.com/MiaadTeam/lesan/assets/6236123/900a5b98-3e7f-460a-a756-403ecaedcf86",alt:"full screen e2e",className:"e2e_help--fullscreen-img"}))),e("hr",null),e("div",null,e("p",null,"After clicking on the Run E2E Test button, you can see the result of each test. Also, in the result view, you can export the results in JSON format."),e("img",{src:"https://github.com/MiaadTeam/lesan/assets/6236123/8c367965-a1b7-40b8-8638-60d2d0ea2609",alt:"full screen e2e",className:"e2e_help--fullscreen-img"})),e("hr",null),e("div",null,e("p",null,"Additionally, you can go to the E2E Test modal page from the main page by clicking on the Test icon inside the response header section. This way, you can add a new test section and prepopulate the Header and Body text areas with the sent request from the main page.",e("img",{src:"https://github.com/MiaadTeam/lesan/assets/6236123/74dc9e93-2b41-4840-afc1-f4e8e83c9889",alt:"full screen e2e",className:"e2e_help--fullscreen-img"})))));function te(){return e("svg",{width:"25px",height:"28px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M11 8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H13V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V13H8C7.44771 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11H11V8Z",fill:"lightcoral"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}var vt=()=>e("svg",{width:"25px",viewBox:"-0.5 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z",stroke:"bisque","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{id:"Vector",d:"M16 16L12 12M12 12L8 8M12 12L16 8M12 12L8 16",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),K=vt;function ge(){return e("svg",{width:"25px",viewBox:"-0.5 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z",stroke:"bisque","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M16 10.99L13.13 14.05C12.9858 14.2058 12.811 14.3298 12.6166 14.4148C12.4221 14.4998 12.2122 14.5437 12 14.5437C11.7878 14.5437 11.5779 14.4998 11.3834 14.4148C11.189 14.3298 11.0142 14.2058 10.87 14.05L8 10.99",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}function ne(){return e("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12 17V16.9929M12 14.8571C12 11.6429 15 12.3571 15 9.85714C15 8.27919 13.6568 7 12 7C10.6567 7 9.51961 7.84083 9.13733 9",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function be(){return e("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.75 13.9393L15.9697 10.7197L17.0303 11.7803L12 16.8107L6.96967 11.7803L8.03033 10.7197L11.25 13.9393L11.25 4.5L12.75 4.5L12.75 13.9393Z",fill:"lightcoral"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function ye(){return e("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M13.8876 9.9348C14.9625 10.8117 15.5 11.2501 15.5 12C15.5 12.7499 14.9625 13.1883 13.8876 14.0652C13.5909 14.3073 13.2966 14.5352 13.0261 14.7251C12.7888 14.8917 12.5201 15.064 12.2419 15.2332C11.1695 15.8853 10.6333 16.2114 10.1524 15.8504C9.6715 15.4894 9.62779 14.7336 9.54038 13.2222C9.51566 12.7947 9.5 12.3757 9.5 12C9.5 11.6243 9.51566 11.2053 9.54038 10.7778C9.62779 9.26636 9.6715 8.51061 10.1524 8.1496C10.6333 7.78859 11.1695 8.11466 12.2419 8.76679C12.5201 8.93597 12.7888 9.10831 13.0261 9.27492C13.2966 9.46483 13.5909 9.69274 13.8876 9.9348Z",stroke:"lightcoral","stroke-width":"2"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function Ce(){return e("svg",{width:"25px",viewBox:"-0.5 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z",stroke:"bisque","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M8 13.8599L10.87 10.8C11.0125 10.6416 11.1868 10.5149 11.3815 10.4282C11.5761 10.3415 11.7869 10.2966 12 10.2966C12.2131 10.2966 12.4239 10.3415 12.6185 10.4282C12.8132 10.5149 12.9875 10.6416 13.13 10.8L16 13.8599",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}var Ze={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial',display:"inline-block",borderRadius:3,padding:"10px 10px",color:"#f8f8f2",textShadow:"1px 1px black",whiteSpace:"pre-wrap"};var bt=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,yt=a=>JSON.stringify(a,Ct,2).replace(/&/g,"&").replace(//g,">").replace(bt,s=>{let o="cute-number",i=s;return/^"/.test(s)?/:$/.test(s)?(o="cute-key",i=i.replace(":",':')):s==='"undefined"'?o="cute-undefined":s==='"[Function]"'?o="cute-function":o="cute-string":/true|false/.test(s)?o="cute-boolean":/null/.test(s)&&(o="cute-null"),`${i}`}),Ct=(a,t)=>typeof t=="function"?"[Function]":typeof t>"u"?"undefined":t,Je=a=>yt(a).replace(/"/g,"");var H=({jsonData:a})=>{let t=Je(a);return e(q,null,e("pre",{style:Ze,dangerouslySetInnerHTML:{__html:t}}))};function Se(){return e("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function Te(){return e("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M15 6L9 12L15 18",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function Ne(){return e("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function Ee(){return e("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M9 6L15 12L9 18",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function Ue({pageCountNumber:a,activePage:t,setActivePage:s}){let[o,i]=E([]),[f,r]=E(1),d=T=>{r(T.target.value),s(T.target.value-1)},c=()=>{s(f-1)},v=a,I=R(()=>{let T=0,x=v>5?5:v;t>3&&t5&&t>v-5&&(T=v-5,x=v-1),v<=5&&(T=0,x=v);let P=[];for(let G=T;Gs(T),S=T=>t===T?"active":"";return j(()=>I(),[t]),e("div",{className:"pagination"},v>1&&e("button",{onClick:()=>{s(0)}}," ",e(Se,null)),v>1&&e("button",{onClick:()=>{s(t===0?v-1:t-1)}},e(Te,null)),(t>=4||t>v-5)&&v>5&&e("button",{onClick:()=>y(0)},1),(t>=4||t>v-5)&&v>5&&e("span",null,"..."),o.map(T=>e("button",{key:T,className:S(T),onClick:()=>y(T)},T+1)),t5&&e("span",null,"..."),v>5&&e("button",{className:S(v-1),onClick:()=>y(v-1)},v),v>1&&e("button",{onClick:()=>s(t===v-1?0:t+1)},e(Ee,null)),v>1&&e("button",{onClick:()=>{s(v-1)}}," ",e(Ne,null)," "),v>1&&e("div",{className:"pagination--go-to"}," ",e("input",{className:"pagination--go-to--input",min:1,max:v,for:"1",type:"number",onChange:d,placeholder:"number",value:f}),e("button",{className:"pagination--go-to--button",id:"1",onClick:()=>{c()}},"Go")))}function we(){return e("svg",{fill:"#fff",height:"20px",width:"20px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452.025 452.025"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("g",null," ",e("g",null," ",e("path",{d:"M147.912,363.325c-4.7-4.7-12.3-4.7-17,0c-4.7,4.7-4.7,12.3,0,17l13.6,13.6h-55.2c-35.9,0-65-29.2-65-65v-40.3 c0-6.6-5.4-12-12-12s-12,5.4-12,12v40.3c0,49.1,39.9,89,89,89h55.2l-13.6,13.6c-4.7,4.7-4.7,12.3,0,17c2.3,2.3,5.4,3.5,8.5,3.5 s6.1-1.2,8.5-3.5l34.1-34.1c4.7-4.7,4.7-12.3,0-17L147.912,363.325z"})," ",e("path",{d:"M210.312,0.025h-197.1c-6.6,0-12,5.4-12,12v197.1c0,6.6,5.4,12,12,12h197.1c6.6,0,12-5.4,12-12v-197.1 C222.312,5.425,217.012,0.025,210.312,0.025z M198.312,197.125h-173.1v-173.1h173.1V197.125z"})," ",e("path",{d:"M362.612,34.125h-55.2l13.6-13.6c4.7-4.7,4.7-12.3,0-17s-12.3-4.7-17,0l-34,34.1c-4.7,4.7-4.7,12.3,0,17l34.1,34.1 c2.3,2.3,5.4,3.5,8.5,3.5s6.1-1.2,8.5-3.5c4.7-4.7,4.7-12.3,0-17l-13.6-13.6h55.2c35.9,0,65,29.2,65,65v40.3c0,6.6,5.4,12,12,12 s12-5.4,12-12v-40.3C451.712,74.025,411.712,34.125,362.612,34.125z"})," ",e("path",{d:"M438.812,428.025c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5C445.012,429.325,441.912,428.025,438.812,428.025z"})," ",e("path",{d:"M389.512,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S396.112,428.025,389.512,428.025z"})," ",e("path",{d:"M290.912,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S297.612,428.025,290.912,428.025z"})," ",e("path",{d:"M340.212,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S346.812,428.025,340.212,428.025z"})," ",e("path",{d:"M241.713,428.025c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5c3.1,0,6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5S244.812,428.025,241.713,428.025z"})," ",e("path",{d:"M241.713,378.725c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,378.725,241.713,378.725z"})," ",e("path",{d:"M241.713,329.425c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,329.425,241.713,329.425z"})," ",e("path",{d:"M241.713,280.125c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,280.125,241.713,280.125z"})," ",e("path",{d:"M241.713,230.925c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5c3.1,0,6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5C247.912,232.125,244.812,230.925,241.713,230.925z"})," ",e("path",{d:"M389.512,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S396.112,230.925,389.512,230.925z"})," ",e("path",{d:"M340.212,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S346.812,230.925,340.212,230.925z"})," ",e("path",{d:"M290.912,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S297.612,230.925,290.912,230.925z"})," ",e("path",{d:"M438.812,230.925c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5C445.012,232.225,441.912,230.925,438.812,230.925z"})," ",e("path",{d:"M438.812,280.125c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,280.125,438.812,280.125z"})," ",e("path",{d:"M438.812,378.725c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,378.725,438.812,378.725z"})," ",e("path",{d:"M438.812,329.425c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,329.425,438.812,329.425z"})," ")," ")," "))}function oe(){return e("svg",{width:25,height:25,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 3.25C17.4142 3.25 17.75 3.58579 17.75 4V17.75L19.4 15.55C19.6485 15.2186 20.1186 15.1515 20.45 15.4C20.7814 15.6485 20.8485 16.1186 20.6 16.45L17.6 20.45C17.4063 20.7083 17.0691 20.8136 16.7628 20.7115C16.4566 20.6094 16.25 20.3228 16.25 20V4C16.25 3.58579 16.5858 3.25 17 3.25ZM7.25 6C7.25 5.58579 7.58579 5.25 8 5.25H13C13.4142 5.25 13.75 5.58579 13.75 6C13.75 6.41421 13.4142 6.75 13 6.75H8C7.58579 6.75 7.25 6.41421 7.25 6ZM5.25 11C5.25 10.5858 5.58579 10.25 6 10.25H13C13.4142 10.25 13.75 10.5858 13.75 11C13.75 11.4142 13.4142 11.75 13 11.75H6C5.58579 11.75 5.25 11.4142 5.25 11ZM3.25 16C3.25 15.5858 3.58579 15.25 4 15.25H13C13.4142 15.25 13.75 15.5858 13.75 16C13.75 16.4142 13.4142 16.75 13 16.75H4C3.58579 16.75 3.25 16.4142 3.25 16Z",fill:"gainsboro"})," "))}var Ye=({results:a,setIsShowE2eResponse:t,index:s})=>{let[o,i]=E(0);return e("div",{className:"result-slider-container"},e("div",{className:"result-slider-wrapper",id:a[o].id},e("section",{className:"container-re"},e("div",{className:"container-re--header"},e("span",{className:"container-re--header--icon",onClick:()=>t(!0)},e(we,null)),e("div",{className:"container--re--header--icon-number"}," ",e(oe,null),e("span",null,s+1)),e("span",{className:"container-re-title"},"REQUEST")),e(H,{jsonData:a[o].request})),e("section",{className:"container-re container-response"},e("div",{className:"container-re--header"},e("span",{className:"container-re-title"},"RESPONSE"),e("span",{className:"e2e-re-timeNumber-request"},a[o].responseTime,"ms")),e(H,{jsonData:a[o].response}))),e("div",{className:"pagination-container"}," ",e(Ue,{pageCountNumber:a.length,activePage:o,setActivePage:i})," ",e("div",{className:"pagination-u1024"}," ",a.map((f,r)=>e("span",{className:"pagination-u1024--item",onClick:()=>i(r),"data-show":o===r},r+1)))))};function _e(){return e("svg",{fill:"#fff",height:"20px",width:"20px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452.025 452.025"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("g",null," ",e("g",null," ",e("path",{d:"M362.612,34.125h-55.2l13.6-13.6c4.7-4.7,4.7-12.3,0-17s-12.3-4.7-17,0l-34,34.1c-2.3,2.3-3.5,5.3-3.5,8.5 s1.3,6.2,3.5,8.5l34.1,34.1c2.3,2.3,5.4,3.5,8.5,3.5s6.1-1.2,8.5-3.5c4.7-4.7,4.7-12.3,0-17l-13.6-13.6h55.2c35.9,0,65,29.2,65,65 v40.3c0,6.6,5.4,12,12,12s12-5.4,12-12v-40.3C451.712,74.025,411.712,34.125,362.612,34.125z"})," ",e("path",{d:"M438.812,230.925h-197.1c-6.6,0-12,5.4-12,12v197.1c0,6.6,5.4,12,12,12h197.1c6.6,0,12-5.4,12-12v-197.1 C450.812,236.225,445.412,230.925,438.812,230.925z M426.812,428.025h-173.1v-173.1h173.1L426.812,428.025L426.812,428.025z"})," ",e("path",{d:"M147.912,363.325c-4.7-4.7-12.3-4.7-17,0c-4.7,4.7-4.7,12.3,0,17l13.6,13.6h-55.2c-35.9,0-65-29.2-65-65v-40.3 c0-6.6-5.4-12-12-12s-12,5.4-12,12v40.3c0,49.1,39.9,89,89,89h55.2l-13.6,13.6c-4.7,4.7-4.7,12.3,0,17c2.3,2.3,5.4,3.5,8.5,3.5 s6.1-1.2,8.5-3.5l34.1-34.1c4.7-4.7,4.7-12.3,0-17L147.912,363.325z"})," ",e("path",{d:"M13.212,24.025c3.2,0,6.3-1.3,8.5-3.5s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5s-5.3-3.5-8.5-3.5s-6.3,1.3-8.5,3.5 s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5C7.012,22.725,10.012,24.025,13.212,24.025z"})," ",e("path",{d:"M111.812,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S105.112,24.025,111.812,24.025z"})," ",e("path",{d:"M62.512,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S55.912,24.025,62.512,24.025z"})," ",e("path",{d:"M161.012,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S154.412,24.025,161.012,24.025z"})," ",e("path",{d:"M210.312,0.025c-3.1,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5S213.512,0.025,210.312,0.025z"})," ",e("path",{d:"M210.312,147.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,153.225,217.012,147.925,210.312,147.925z"})," ",e("path",{d:"M210.312,98.625c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,103.925,217.012,98.625,210.312,98.625z"})," ",e("path",{d:"M210.312,49.325c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,54.725,217.012,49.325,210.312,49.325z"})," ",e("path",{d:"M210.312,197.125c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5C216.613,198.425,213.512,197.125,210.312,197.125z"})," ",e("path",{d:"M161.012,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C149.012,215.825,154.412,221.125,161.012,221.125z"})," ",e("path",{d:"M111.812,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C99.812,215.825,105.112,221.125,111.812,221.125z"})," ",e("path",{d:"M62.512,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C50.512,215.825,55.912,221.125,62.512,221.125z"})," ",e("path",{d:"M13.212,221.125c3.2,0,6.3-1.3,8.5-3.5s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5s-5.3-3.5-8.5-3.5s-6.3,1.3-8.5,3.5 s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5C7.012,219.825,10.012,221.125,13.212,221.125z"})," ",e("path",{d:"M13.212,171.925c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S6.612,171.925,13.212,171.925z"})," ",e("path",{d:"M13.212,122.625c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C1.212,117.225,6.612,122.625,13.212,122.625z"})," ",e("path",{d:"M13.212,73.325c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S6.612,73.325,13.212,73.325z"})," ")," ")," "))}function We({sequence:a,index:t}){let[s,o]=E(!0);return e("div",{id:t.toString(),key:a.id,className:"container-detail"},s?e(q,null,e("section",{className:"sequence-re"},e("div",{className:"container-re--header"},e("span",{className:"container-re--header--icon",onClick:()=>o(!1)},e(_e,null)),e("div",{className:"container--re--header--icon-number"}," ",e(oe,null),e("span",null,t+1)),e("span",{className:"container-re-title"},"Body Header")),e(H,{jsonData:JSON.parse(a.bodyHeader)})),e("section",{className:"sequence-re sequence-response "},e("div",{className:"container-re--header"},e("span",{className:"container-re-title"},"Description")),e("div",{className:"detail-sequence"},e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Requests")," ",e("span",{className:"detail-sequence--sections--first-item"},"All Request Count: ",e("span",null,a.repeat)," "),e("span",{className:"e2e-success"},"Success:",e("span",null," ",a.success)),e("span",{className:"e2e-fail"},"Fails: ",e("span",null,a.fails)),e("span",null,"All Request Time: ",e("span",null,a.time," ms")),e("span",null,"Avrage Time For Each Request:"," ",e("span",null,(a.time/a.repeat).toFixed(1)," ms"))),e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Best")," ",e("span",{className:"detail-sequence--sections--first-item"},"Best Time: ",e("span",null,a.bestTime.time," ms")),e("span",null,"Request Number: ",e("span",null,a.bestTime.resultIdx))),e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Worst"),e("span",{className:"detail-sequence--sections--first-item"},"Worst Time: ",e("span",null,a.worstTime.time," ms")," "),e("span",null," ","Request Number: ",e("span",null,a.worstTime.resultIdx))),a.captures.length>0&&e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Capture Items")," ",a.captures.map(i=>e("ul",{className:"detail-sequence--sections--capture-items"},e("li",null,"key:"," ",e("span",{className:"information-container--request--sections--item--content"},i.key)),e("li",null,"value :"," ",e("span",{className:"information-container--request--sections--item--content"},i.value)),e("li",null,"model :"," ",e("span",{className:"information-container--request--sections--item--content"},i.model)),e("li",null,"act :"," ",e("span",{className:"information-container--request--sections--item--content"},i.act)),e("li",null,"sequnce number:"," ",e("span",{className:"information-container--request--sections--item--content"}," ",i.sequenceIdx))))),a.usedCaptures.length>0&&e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Using Capture Items")," ",a.usedCaptures.map(i=>e("ul",{className:"detail-sequence--sections--capture-items"},e("li",null,"key:"," ",e("span",{className:"information-container--request--sections--item--content"}," ",i.key)),e("li",null,"captured from:"," ",e("span",{className:"information-container--request--sections--item--content"}," ",i.captured)),e("li",null,"value:"," ",e("span",{className:"information-container--request--sections--item--content"}," ",i.value)),e("li",null," ","model :"," ",e("span",{className:"information-container--request--sections--item--content"}," ",i.model)),e("li",null," ","act :"," ",e("span",{className:"information-container--request--sections--item--content"},i.act)),e("li",null,"sequnce number:"," ",e("span",{className:"information-container--request--sections--item--content"},i.sequenceIdx)))))))):e(Ye,{results:a.results,setIsShowE2eResponse:o,index:t}))}function Ke({baseUrl:a}){let{e2eForms:t,setE2eForms:s}=B(),o={allReqPerformance:0,numberRequest:0,success:0,fails:0,bestTime:{sequenceIdx:0,resultIdx:0,time:Number.MAX_SAFE_INTEGER,act:"",model:""},worstTime:{sequenceIdx:0,resultIdx:0,act:"",model:"",time:0},sequenceDetail:[],allCaptureItems:[]},[i,f]=E(!1),[r,d]=E(o),c=(p,u)=>{if(!(p===0&&u<=0)){let N=t[p];t.splice(p,1),t.splice(u,0,N),s([...t])}},v=p=>{t[p],t.splice(p,1),s([...t])},I=p=>{let u={...t[p],id:h()};s([...t.slice(0,p),u,...t.slice(p,t.length)])},[y,S]=E("e2e"),T=()=>{let p=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(t))}`,u=document.createElement("a");u.href=p,u.download="Configdata.json",u.click()},x=p=>{let u=new FileReader;u.readAsText(p.target.files[0],"UTF-8"),u.onload=N=>{let l=JSON.parse(N.target.result);s(l)}},P=()=>{let p=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(r))}`,u=document.createElement("a");u.href=p,u.download="data.json",u.click()},G=async({baseUrl:p,options:u})=>await(await fetch(`${p}lesan`,u)).json(),J=(p,u,N)=>{for(let l in p){typeof p[l]=="object"&&J(p[l],u,N);let D=p[l];if(typeof D=="string"&&D.includes("{")){let U=[];for(let k=0;kD.slice(k+1,A[V])).forEach(k=>{if(k.startsWith("faker")){let V=k.split("."),M=St[V[1]][V[2]]();N.push({key:k,value:M}),p[l]=p[l].replace(`{${k}}`,M)}for(let V of u)V.key===k&&(N.push({key:p[l],value:p[l].replace(`{${k}}`,V.value)}),p[l]=p[l].replace(`{${k}}`,V.value))})}}return N},X=async()=>{let p=new Set;for await(let u of t){let N=JSON.parse(u.bodyHeaders),l=J(N,p,[]),D={method:"POST",headers:{"Content-Type":"application/json",...N.headers},body:JSON.stringify(N.body)},U=(M,_)=>{for(let n of _)if(n.value===M)return n},A,Y=h();for(let M=0;M{let C=b.sequenceDetail,m=C.findIndex(Q=>Q.id===Y),F=1;return m!==-1?(C[m].results.push(w),F=C[m].results.length,C[m].bestTime=C[m].bestTime.timen?C[m].worstTime:{resultIdx:F,time:n},A.success?C[m].success=C[m].success+1:C[m].fails=C[m].fails+1,C[m].time=C[m].time+n,C[m].repeat=C[m].repeat+1):C.push({id:Y,bodyHeader:u.bodyHeaders,time:n,repeat:1,success:A.success?1:0,fails:A.success?0:1,bestTime:{resultIdx:F,time:n},worstTime:{resultIdx:F,time:n},captures:u.captures.map(({key:Q,value:z})=>({key:Q,value:z,sequenceIdx:C.length+1,model:N.body.model,act:N.body.act})),usedCaptures:l.map(({key:Q,value:z})=>{let ee=U(z,p);return{key:Q,value:z,captured:ee?.captured,sequenceIdx:ee?.sequenceIdx||ee?.sequenceIdx===0?ee?.sequenceIdx+1:void 0,model:ee?.model,act:ee?.act}}),results:[w]}),{allReqPerformance:b.allReqPerformance+n,numberRequest:b.numberRequest+1,success:A.success?b.success+1:b.success,fails:A.success?b.fails:b.fails+1,bestTime:b.bestTime.timen?b.worstTime:{resultIdx:F,sequenceIdx:C.length,act:N.body.act,model:N.body.model,time:n},sequenceDetail:C,allCaptureItems:Array.from(p)}})}[...u.captures].filter(M=>M.key&&M.value).map(M=>{let _=M.value.split("["),n=[];return _.forEach(g=>{let w=g.slice(0,g.indexOf("]"));isNaN(Number(w))||(w=Number(w)),n.push(w)}),n.shift(),{key:M.key,parsedValue:n,value:M.value}}).forEach(M=>{if(M.parsedValue.length>0){let _=A;M.parsedValue.forEach(n=>{_=_[n]}),p.add({key:M.key,value:_,captured:M.value,act:N.body.act,model:N.body.model,sequenceIdx:r.sequenceDetail.length-1})}})}},L=(p,u,N)=>{let l=[...t];l[p][u]=N,s([...l])},O=Z(),$=p=>O.current.childNodes[p-1].scrollIntoView({behavior:"smooth",block:"start"});return e("div",{className:"e2e-container"},y==="result"?e("div",{className:"e2e-container--sequence-container"},e("div",{className:"results-buttons--back-export"},e("button",{className:"btn e2e-back-button",onClick:()=>{document.getElementById("modal")?.scroll({top:0,behavior:"smooth"}),d(o),S("e2e")}},e(ae,null),e("span",null,"Back")),e("button",{className:"btn e2e-back-button e2e-export_results-button",onClick:P},e(W,null),e("span",null,"Export"))),e("div",{className:"e2e-container--sequence-container--information-container"},e("span",{className:"information-container-label"},"Information"),e("div",{className:"information-container--request"},e("span",{className:"information-container-label"},"Requests")," ",e("div",{className:"information-container--request--sections"},e("p",{className:"information-container--request--sections--item"},"All Request Count:"," ",e("span",{className:"information-container--request--sections--item--content"},r.numberRequest)," ","times")," ",e("p",{className:"information-container--request--sections--item"}," ","All Request Time:"," ",e("span",{className:"information-container--request--sections--item--content"},r.allReqPerformance)," ","ms")),e("div",{className:"information-container--request--sections"},e("p",{className:"information-container--request--sections--item"},"All ",e("span",{className:"e2e-success"},"Success")," Request:"," ",e("span",{className:"information-container--request--sections--item--content"},r.success," ")," ","times"),e("p",{className:"information-container--request--sections--item"},"All ",e("span",{className:"e2e-fail"},"Fails")," Request :"," ",e("span",{className:"information-container--request--sections--item--content"},r.fails," "),"times"))),e("div",{className:"information-container--times"},e("span",{className:"information-container-label"},"Times")," ",e("ul",{className:"information-container--times--sections"},e("li",null," ",e("span",{className:"e2e-best"},"Best")," Request Time:"," ",e("span",{className:"e2e-best"},r.bestTime.time," "),"ms"," "),e("li",null," ","Seqeunce Number:"," ",e("span",{onClick:()=>{$(r.bestTime.sequenceIdx)},className:"information-container--request--sections--item--content e2e-sequensce-number"},r.bestTime.sequenceIdx," ")),e("li",null," ","Request Number:"," ",e("span",{className:"information-container--request--sections--item--content"},r.bestTime.resultIdx)," "),e("li",null,"Model:"," ",e("span",{className:"information-container--request--sections--item--content"},r.bestTime.model," ")," "),e("li",null,"Act:"," ",e("span",{className:"information-container--request--sections--item--content"},r.bestTime.act," "))),e("ul",{className:"information-container--times--sections"},e("li",null,"Worst Request Time:"," ",e("span",{className:"information-container--request--sections--item--content"},r.worstTime.time)," ","ms"," "),e("li",null," ","Seqeunce Number:"," ",e("span",{onClick:()=>{$(r.worstTime.sequenceIdx)},className:"information-container--request--sections--item--content e2e-sequensce-number"},r.worstTime.sequenceIdx," ")),e("li",null," ","Request Number:"," ",e("span",{className:"information-container--request--sections--item--content"},r.worstTime.resultIdx," ")),e("li",null,"Model:"," ",e("span",{className:"information-container--request--sections--item--content"},r.worstTime.model)),e("li",null,"act:"," ",e("span",{className:"information-container--request--sections--item--content"},r.worstTime.act)))),r.allCaptureItems.length>0&&e("div",{className:"information-container--captures"},e("span",{className:"information-container-label"},"Captures Information")," ",r.allCaptureItems.map(p=>e("ul",{className:"information-container--captures--sections",key:h()},e("span",{className:"information-container-label"},p.key),e("li",null,"Captured From:"," ",e("span",{className:"information-container--request--sections--item--content"},p.captured)),e("li",null,"Value Of"," ",e("span",{className:"information-container--request--sections--item--content"},": ",p.value)),e("li",null,"Model :"," ",e("span",{className:"information-container--request--sections--item--content"},p.model)),e("li",null,"Act :"," ",e("span",{className:"information-container--request--sections--item--content"},p.act)),e("li",null,"Captured Inside Sequnce Number:"," ",e("span",{className:"information-container--request--sections--item--content"},p.sequenceIdx)))))),e("div",{className:"e2e-sequesnce-wrapper",ref:O},r.sequenceDetail.map((p,u)=>e(We,{sequence:p,index:u})))):y==="e2e"?e(q,null,e("div",{className:"sidebar__section sidebar__section--headers"},t.map((p,u)=>e(q,{key:p.id},e("div",{className:"sidebar__input-double",key:p.id},e("div",{className:"e2e-move-buttons"},e("div",{className:"e2e-move-div",onClick:()=>I(u)},e(te,null)),t.length>1&&e(q,null,e("div",{className:"e2e-move-div",onClick:()=>c(u,u-1)},e(Ce,null)),e("div",{className:"e2e-move-div",onClick:()=>c(u,u+1)},e(ge,null)),e("div",{className:"e2e-move-div e2e-move-close",onClick:()=>v(u)},e(K,null)))),e("div",{className:"sidebar__section-body-heading"},e("div",{className:"sidebar__section-heading"},"set test body and headers"),e("textarea",{placeholder:"please paste a request body here",value:p.bodyHeaders,name:`${p.id}-body`,rows:18,onChange:N=>L(u,"bodyHeaders",N.target.value)})),e("div",{className:"sidebar__section-capture"},e("div",{className:"e2e_sidebar__section-heading"},"set repeat time"),e("div",{className:"repeat__number"},e("input",{className:"input",min:1,placeholder:"set repeat number",value:p.repeat,name:`${p.id}-repeat`,type:"number",onChange:N=>L(u,"repeat",Math.abs(N.target.value))}),e("button",{className:"e2e-back-button e2e-export_results-button",onClick:()=>L(u,"repeat",t[u].repeat+1)},"+"),e("button",{className:"e2e-back-button e2e-export_results-button",onClick:()=>L(u,"repeat",t[u].repeat>2?t[u].repeat-1:1)},"-")),e("div",{className:"e2e_sidebar__section-heading"},"capture variables"),e("button",{className:"btn btn--add e2e-back-button e2e-export_results-button e2e-add-capture ",onClick:()=>L(u,"captures",[...t[u].captures,{key:"",value:""}])},"add capture"),p.captures.map((N,l)=>e(q,{key:`${p.id}-${l}`},e("div",{className:"sidebar__section-add-capture"},e("input",{className:"input",placeholder:"set a variable name",value:N.key,onChange:D=>L(u,"captures",[...t[u].captures.slice(0,l),{key:D.target.value,value:t[u].captures[l].value},...t[u].captures.slice(l+1,t[u].captures.length)])}),e("input",{className:"input",placeholder:"set a value for variable",value:N.value,onChange:D=>L(u,"captures",[...t[u].captures.slice(0,l),{key:t[u].captures[l].key,value:D.target.value},...t[u].captures.slice(l+1,t[u].captures.length)])})),e("hr",null)))))))),e("button",{className:"btn btn-show-results-buttons ",onClick:()=>f(!i)},"show btn"),e("div",{className:"results-buttons","data-show":i===!0},e("button",{className:"btn btn-e2e-action e2e-back-button e2e-export_results-button",onClick:()=>{s([...t,ue()])}},e(te,null),e("span",null,"Add")),e("button",{className:"btn btn-e2e-action e2e-back-button e2e-run-botton e2e-export_results-button",onClick:async()=>{S("result"),await X()}},e(ye,null),e("span",null,"Run E2E Test")),e("input",{id:"actual-btn",type:"file",onChange:x,hidden:!0}),e("label",{htmlFor:"actual-btn",className:"btn btn-e2e-action e2e-back-button e2e-export_results-button"},e(be,null),e("span",null,"Import")),e("button",{className:"btn btn-e2e-action e2e-back-button e2e-export_results-button",onClick:T},e(W,null),e("span",null,"Export")),e("button",{onClick:()=>S("help"),className:"btn btn-e2e-action e2e-back-button e2e-export_results-button"},e(ne,null),e("span",null,"Help")))):y==="help"?e(ze,{setView:S}):"")}function de(a){let t=Math.floor(a/36e5),s=Math.floor(a%36e5/6e4),o=Math.floor(a%36e4%6e4/1e3);return t>0?`${t}h ${s}m ${o}s`:s>0?`${s}m ${o}s`:o>0?`${o}s`:`${a}ms`}var Xe=(a,t)=>{let s=Z(!0);j(()=>{let o=()=>{};if(s.current?s.current=!1:o=a(),o&&typeof o=="function")return o},t)};function ke(){return e("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 105.7 122.88",width:20},e("path",{fill:"white",d:"M30.46,14.57V5.22A5.18,5.18,0,0,1,32,1.55v0A5.19,5.19,0,0,1,35.68,0H70a5.22,5.22,0,0,1,3.67,1.53l0,0a5.22,5.22,0,0,1,1.53,3.67v9.35h27.08a3.36,3.36,0,0,1,3.38,3.37V29.58A3.38,3.38,0,0,1,102.32,33H98.51l-8.3,87.22a3,3,0,0,1-2.95,2.69H18.43a3,3,0,0,1-3-2.95L7.19,33H3.37A3.38,3.38,0,0,1,0,29.58V17.94a3.36,3.36,0,0,1,3.37-3.37Zm36.27,0V8.51H39v6.06ZM49.48,49.25a3.4,3.4,0,0,1,6.8,0v51.81a3.4,3.4,0,1,1-6.8,0V49.25ZM69.59,49a3.4,3.4,0,1,1,6.78.42L73,101.27a3.4,3.4,0,0,1-6.78-.43L69.59,49Zm-40.26.42A3.39,3.39,0,1,1,36.1,49l3.41,51.8a3.39,3.39,0,1,1-6.77.43L29.33,49.46ZM92.51,33.38H13.19l7.94,83.55H84.56l8-83.55Z"}))}function Qe({setFormFromHistory:a}){let{history:t,setHistory:s,deleteItemHistory:o}=B(),[i,f]=E("");return Xe(()=>{localStorage.setItem("localHistory",JSON.stringify(t))},[t]),e(q,null,t&&t?.length>0?e("div",null,e("br",null),t.map((r,d)=>e("div",{className:"container-detail",id:r.id},e("section",{className:"container-re"},e("div",{style:{position:"relative",borderBottom:"1px solid gainsboro"}},e("span",{className:"container-re-title"},"REQUEST"),e("span",{className:"history-re-detail-date"},r.reqDate)),e("div",{className:"container-re-detail"},e("div",{className:"container-re-detail-title"}," ",e(H,{jsonData:r.request.body.model}),e("span",null,"|"),e("div",null,e(H,{jsonData:r.request.body.act}))),i===r.id?e("button",{onClick:()=>f(""),className:"history-re-detail-button"},"Hide",e("span",{className:"history-re-detail-button-icon"},"\u2013")):e("button",{onClick:()=>{f(r.id),document.getElementById(r.id)?.scrollIntoView()},className:"history-re-detail-button"},"Show"," ",e("span",{className:"history-re-detail-button-icon"},"+"))),e("div",{className:"history-re-detail-complete","data-show":i===r.id}," ",e(H,{jsonData:r.request}))),e("section",{className:"container-re container-response"},e("div",{className:"history-re-title_delete",style:{position:"relative",borderBottom:"1px solid gainsboro"}},e("span",{className:"history-re-delete",onClick:c=>{c.stopPropagation(),o(d)}},e(K,null)),e("span",{className:"container-re-title history-response-title"},"RESPONSE"),e("span",{className:"history-re-detail-date history-response-took"},de(r.response.tookTime))),e("div",{className:"container-re-detail"},e("div",{className:"history-re-detail-title"},e("div",{className:"history-re-response-title"}," ",e("span",{className:"history-re-response-title-status"},"success:"),e("div",{className:"history-re-response-info"},e(H,{jsonData:r.response.success})))),e("button",{onClick:()=>a(r.request),className:"history-re-detail-button"},"Use"," ",e("span",{className:"history-re-detail-button-icon"},"\u279C"," "))),e("div",{className:"history-re-detail-complete","data-show":i===r.id}," ",e(H,{jsonData:r.response})))))):e("span",{className:"no-history"},'"There is no history to display"'),t&&t.length>0?e("div",{className:"clear-history"},e("button",{className:"btn clear-history-button tooltip",onClick:()=>{confirm("Clear All History?")==!0&&s([])}},e(ke,null),e("span",{className:"tooltip-text"},"Clear History"))):"")}function xe(){return e("svg",{width:"25px",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M4 6V19C4 20.6569 5.34315 22 7 22H17C18.6569 22 20 20.6569 20 19V9C20 7.34315 18.6569 6 17 6H4ZM4 6V5",stroke:"lightcoral","stroke-width":"1.5"})," ",e("path",{d:"M18 6.00002V6.75002H18.75V6.00002H18ZM15.7172 2.32614L15.6111 1.58368L15.7172 2.32614ZM4.91959 3.86865L4.81353 3.12619H4.81353L4.91959 3.86865ZM5.07107 6.75002H18V5.25002H5.07107V6.75002ZM18.75 6.00002V4.30604H17.25V6.00002H18.75ZM15.6111 1.58368L4.81353 3.12619L5.02566 4.61111L15.8232 3.0686L15.6111 1.58368ZM4.81353 3.12619C3.91638 3.25435 3.25 4.0227 3.25 4.92895H4.75C4.75 4.76917 4.86749 4.63371 5.02566 4.61111L4.81353 3.12619ZM18.75 4.30604C18.75 2.63253 17.2678 1.34701 15.6111 1.58368L15.8232 3.0686C16.5763 2.96103 17.25 3.54535 17.25 4.30604H18.75ZM5.07107 5.25002C4.89375 5.25002 4.75 5.10627 4.75 4.92895H3.25C3.25 5.9347 4.06532 6.75002 5.07107 6.75002V5.25002Z",fill:"lightcoral"})," ",e("path",{opacity:"0.5",d:"M8 12H16",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round"})," ",e("path",{opacity:"0.5",d:"M8 15.5H13.5",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round"})," "))}function Re(){return e("svg",{width:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd",opacity:"0.5","clip-rule":"evenodd",d:"M5.07868 5.06891C8.87402 1.27893 15.0437 1.31923 18.8622 5.13778C22.6824 8.95797 22.7211 15.1313 18.9262 18.9262C15.1312 22.7211 8.95793 22.6824 5.13774 18.8622C2.87389 16.5984 1.93904 13.5099 2.34047 10.5812C2.39672 10.1708 2.775 9.88377 3.18537 9.94002C3.59575 9.99627 3.88282 10.3745 3.82658 10.7849C3.4866 13.2652 4.27782 15.881 6.1984 17.8016C9.44288 21.0461 14.6664 21.0646 17.8655 17.8655C21.0646 14.6664 21.046 9.44292 17.8015 6.19844C14.5587 2.95561 9.33889 2.93539 6.13935 6.12957L6.88705 6.13333C7.30126 6.13541 7.63535 6.47288 7.63327 6.88709C7.63119 7.3013 7.29372 7.63539 6.87951 7.63331L4.33396 7.62052C3.92269 7.61845 3.58981 7.28556 3.58774 6.8743L3.57495 4.32874C3.57286 3.91454 3.90696 3.57707 4.32117 3.57498C4.73538 3.5729 5.07285 3.907 5.07493 4.32121L5.07868 5.06891Z",fill:"lightcoral"}),e("path",{d:"M12 7.25C12.4142 7.25 12.75 7.58579 12.75 8V11.6893L15.0303 13.9697C15.3232 14.2626 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2626 15.3232 13.9697 15.0303L11.5429 12.6036C11.3554 12.416 11.25 12.1617 11.25 11.8964V8C11.25 7.58579 11.5858 7.25 12 7.25Z",fill:"lightcoral"}))}function Me(){return e("svg",{height:"25px",width:"25px",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"#000000"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("circle",{opacity:.34,style:"fill:lightcoral;",cx:"256.602",cy:"226.267",r:"171.059"})," ",e("path",{style:"fill:lightcoral",d:"M482.195,226.196C482.195,101.471,380.725,0,256.001,0S29.804,101.471,29.804,226.196 c0,7.409,6.007,13.416,13.416,13.416s13.416-6.008,13.416-13.416c0-109.93,89.434-199.363,199.363-199.363 s199.363,89.434,199.363,199.363c0,109.928-89.434,199.362-199.363,199.362h-23.276l33.282-37.255 c4.937-5.525,4.458-14.007-1.067-18.944c-5.525-4.937-14.008-4.457-18.944,1.068l-47.576,53.255c-7.788,8.718-7.788,21.866,0,30.584 l47.576,53.255c2.651,2.968,6.322,4.478,10.01,4.478c3.181,0,6.375-1.126,8.934-3.41c5.526-4.937,6.004-13.419,1.067-18.944 l-33.282-37.255h23.276C380.725,452.39,482.195,350.919,482.195,226.196z"})," "))}function Ie(){return e("svg",{fill:"lightcoral",height:"25px",width:"25px",viewBox:"0 0 436.668 436.668"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("g",null," ",e("path",{opacity:.34,d:"M203.334,85.818v59.141c4.884-0.8,9.893-1.223,15-1.223s10.116,0.423,15,1.223V85.818c14.657-5.935,25-20.296,25-37.081 c0-22.092-17.909-40-40-40s-40,17.908-40,40C178.334,65.522,188.677,79.883,203.334,85.818z"})," ",e("path",{opacity:.34,d:"M70.642,204.021l56.242,18.274c1.539-10.139,4.732-19.74,9.292-28.525L79.912,175.49 c-1.115-15.774-11.577-30.049-27.541-35.236c-21.01-6.827-43.576,4.672-50.403,25.682c-6.827,21.01,4.672,43.576,25.682,50.403 C43.614,221.525,60.468,216.126,70.642,204.021z"})," ",e("path",{opacity:.34,d:"M152.577,301.224l-34.792,47.887c-15.346-3.813-32.156,1.725-42.022,15.305c-12.985,17.872-9.023,42.887,8.849,55.872 s42.887,9.023,55.872-8.849c9.866-13.579,9.939-31.277,1.571-44.694l34.772-47.86C167.8,314.333,159.616,308.347,152.577,301.224z"})," ",e("path",{opacity:.34,d:"M318.883,349.112l-34.792-47.887c-7.039,7.122-15.223,13.109-24.25,17.661l34.772,47.86 c-8.369,13.417-8.296,31.115,1.571,44.694c12.985,17.872,38,21.834,55.872,8.849s21.834-38,8.849-55.872 C351.038,350.837,334.229,345.298,318.883,349.112z"})," ",e("path",{opacity:.34,d:"M434.699,165.936c-6.827-21.01-29.393-32.508-50.403-25.682c-15.964,5.187-26.426,19.462-27.541,35.236l-56.263,18.281 c4.559,8.784,7.752,18.386,9.292,28.525l56.242-18.274c10.174,12.105,27.028,17.504,42.992,12.318 C430.028,209.512,441.526,186.946,434.699,165.936z"})," ",e("path",{d:"M280.834,236.237c0-34.462-28.037-62.5-62.5-62.5s-62.5,28.038-62.5,62.5s28.037,62.5,62.5,62.5 S280.834,270.7,280.834,236.237z"})," ")," "))}function De(){return e("svg",{width:"25px",height:25,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M3 9.10986V14.8799C3 16.9999 3 16.9999 5 18.3499L10.5 21.5299C11.33 22.0099 12.68 22.0099 13.5 21.5299L19 18.3499C21 16.9999 21 16.9999 21 14.8899V9.10986C21 6.99986 21 6.99986 19 5.64986L13.5 2.46986C12.68 1.98986 11.33 1.98986 10.5 2.46986L5 5.64986C3 6.99986 3 6.99986 3 9.10986Z",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",opacity:.34}),e("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}function Le(){return e("svg",{width:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{opacity:.5,d:"M9.74872 2.49415L18.1594 7.31987M9.74872 2.49415L2.65093 14.7455C1.31093 17.0584 2.10615 20.0159 4.42709 21.3513C6.74803 22.6867 9.7158 21.8942 11.0558 19.5813L12.5511 17.0003L14.1886 14.1738L15.902 11.2163L18.1594 7.31987M9.74872 2.49415L8.91283 2M18.1594 7.31987L19 7.80374",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round"}),e("path",{d:"M15.9021 11.2164L13.3441 9.74463M14.1887 14.1739L9.98577 11.7557M12.5512 17.0004L9.93848 15.4972",stroke:"lightcpral","stroke-width":"1.5","stroke-linecap":"round"}),e("path",{d:"M22 14.9166C22 16.0672 21.1046 16.9999 20 16.9999C18.8954 16.9999 18 16.0672 18 14.9166C18 14.1967 18.783 13.2358 19.3691 12.6174C19.7161 12.2512 20.2839 12.2512 20.6309 12.6174C21.217 13.2358 22 14.1967 22 14.9166Z",stroke:"lightcoral","stroke-width":"1.5"}))}function pe(){return e("svg",{width:"28px",fill:"white",viewBox:"0 0 32 32",style:"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;",version:"1.1"},e("path",{d:"M9.101,7l8.899,0c1.857,-0 3.637,0.737 4.95,2.05c1.313,1.313 2.05,3.093 2.05,4.95l0,8.899c0.953,-0.195 1.837,-0.665 2.536,-1.363c0.937,-0.938 1.464,-2.21 1.464,-3.536c0,-2.977 0,-7.023 0,-10c0,-1.326 -0.527,-2.598 -1.464,-3.536c-0.938,-0.937 -2.21,-1.464 -3.536,-1.464c-2.977,0 -7.023,0 -10,0c-1.326,-0 -2.598,0.527 -3.536,1.464c-0.698,0.699 -1.168,1.583 -1.363,2.536Z"}),e("path",{d:"M23,14c0,-1.326 -0.527,-2.598 -1.464,-3.536c-0.938,-0.937 -2.21,-1.464 -3.536,-1.464c-2.977,0 -7.023,0 -10,0c-1.326,-0 -2.598,0.527 -3.536,1.464c-0.937,0.938 -1.464,2.21 -1.464,3.536c0,2.977 0,7.023 0,10c-0,1.326 0.527,2.598 1.464,3.536c0.938,0.937 2.21,1.464 3.536,1.464c2.977,-0 7.023,-0 10,-0c1.326,0 2.598,-0.527 3.536,-1.464c0.937,-0.938 1.464,-2.21 1.464,-3.536l0,-10Zm-15,10l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm0,-4l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm0,-4l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Z"}),e("g",{id:"Icon"}))}function Fe(){return e("svg",{width:25,height:25,fill:"#ffffff",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 104.778 104.778"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("g",null," ",e("path",{d:"M96.832,88.406l-23.02-39.908V21.959c4.385-1.595,7.447-5.797,7.447-10.618C81.26,5.089,76.176,0,69.928,0H42.6 c-6.251,0-11.334,5.089-11.334,11.341c0,4.815,3.07,9.017,7.457,10.618v26.55l-2.083,3.685V30.359c0-1.546-1.257-2.802-2.803-2.802 H8.723c-1.546,0-2.801,1.256-2.801,2.802v59.557c0,7.475,5.742,13.614,13.174,14.648c0.331,0.126,0.683,0.214,1.059,0.214h67.227 c4.79,0,8.433-1.762,10.282-4.979C99.503,96.598,99.208,92.543,96.832,88.406z M11.513,89.916v-6.079h8.254 c1.546,0,2.802-1.26,2.802-2.802c0-1.549-1.256-2.802-2.802-2.802h-8.254v-9.09h8.254c1.546,0,2.802-1.263,2.802-2.801 c0-1.555-1.256-2.802-2.802-2.802h-8.254v-9.097h8.254c1.546,0,2.802-1.256,2.802-2.801c0-1.55-1.256-2.803-2.802-2.803h-8.254 V33.149h19.512v56.767c0,5.095-4.375,9.248-9.756,9.248C15.883,99.17,11.513,95.011,11.513,89.916z M92.794,96.997 c-0.799,1.379-2.779,2.178-5.432,2.178H33.189c2.118-2.55,3.439-5.734,3.439-9.259V63.19c0.245-0.207,0.476-0.443,0.645-0.743 l6.679-11.82c0.236-0.422,0.364-0.898,0.364-1.379V19.776c0-1.415-1.048-2.603-2.449-2.78c-2.859-0.364-5.015-2.796-5.015-5.655 c0-3.161,2.571-5.738,5.731-5.738H69.91c3.165,0,5.734,2.577,5.734,5.738c0,2.859-2.155,5.286-5.017,5.655 c-1.401,0.178-2.446,1.365-2.446,2.78v29.472c0,0.493,0.122,0.977,0.374,1.401l23.396,40.559 C93.292,93.506,93.593,95.617,92.794,96.997z M76.466,79.53c0,5.412-4.377,9.794-9.801,9.794c-5.411,0-9.795-4.382-9.795-9.794 c0-5.406,4.384-9.795,9.795-9.795C72.089,69.735,76.466,74.124,76.466,79.53z M54.609,68.877c0,2.665-2.146,4.799-4.802,4.799 c-2.657,0-4.802-2.156-4.802-4.799c0-2.644,2.15-4.8,4.802-4.8C52.468,64.077,54.609,66.233,54.609,68.877z M58.195,58.048 c-1.672,0-3.015-1.341-3.015-3.01c0-1.667,1.343-3.009,3.015-3.009c1.663,0,3.015,1.343,3.015,3.009 C61.21,56.707,59.853,58.048,58.195,58.048z M49.534,86.315c0,1.669-1.352,3.009-3.016,3.009c-1.665,0-3.014-1.34-3.014-3.009 c0-1.663,1.349-3.016,3.014-3.016C48.182,83.3,49.534,84.652,49.534,86.315z M54.805,46.184c-2.185,0-3.956-1.771-3.956-3.957 c0-2.186,1.771-3.957,3.956-3.957c2.183,0,3.957,1.771,3.957,3.957C58.762,44.414,56.983,46.184,54.805,46.184z"})," ")," "))}function Oe(){return e("svg",{version:"1.1",viewBox:"0 0 29.756 29.756",style:"enable-background:new 0 0 29.756 29.756;"},e("path",{d:"M29.049,5.009L28.19,4.151c-0.943-0.945-2.488-0.945-3.434,0L10.172,18.737l-5.175-5.173 c-0.943-0.944-2.489-0.944-3.432,0.001l-0.858,0.857c-0.943,0.944-0.943,2.489,0,3.433l7.744,7.752 c0.944,0.943,2.489,0.943,3.433,0L29.049,8.442C29.991,7.498,29.991,5.953,29.049,5.009z"}))}function se(a){let t=Z(null);return j(()=>{let s=o=>{t.current&&!t.current.contains(o?.target)&&a()};return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[t]),t}function ie({className:a=""}){return e("svg",{width:25,height:25,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M6 9L12 15L18 9M12 9H12.01",stroke:"lightcoral","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function re({items:a,onClickItem:t,incomeActiveItem:s,canShow:o}){let[i,f]=E(!1),[r,d]=E("");j(()=>{d(s||"")},[s]);let v=se(()=>{f(!1)});return e("div",null,e("div",{className:"select",disabled:o},e("div",{className:`select--empty ${i===!0?"active-select--empty":""}`,ref:v,onClick:()=>f(!i)},e("div",{className:"select--empty--left-side"}," ",e("span",{className:`${r?"select-empty--left-side--clear":"select-empty--left-side--clear--inactive"}`,onClick:I=>{d(""),t(""),f(!1),I.stopPropagation()}},"x"),e("span",null,r)),e(ie,null)),i&&e("div",{className:"select--sub-buttons","data-show":i},a?.map((I,y)=>e("div",{className:`option ${I===r?"active-option":""}`,onClick:()=>{d(I),t(I),f(!1)}},I)))))}var Tt=({options:a,onChange:t})=>{let[s,o]=E([]),[i,f]=E(a),[r,d]=E(!1),c=S=>{if(s.includes(S)){let T=s.filter(x=>x.value!==S.value);o(T),f([...i,S]),t(T)}else{let T=i.filter(x=>x.value!==S.value);o([...s,S]),f(T),t([...s,S])}},v=()=>{o([]),t([]),f(a)},I=()=>{d(!r)},y=se(()=>{d(!1)});return e("div",{ref:y,className:"multi-select__wrapper"},e("div",{className:"multi-select__field",onClick:I},e("div",{className:"multi-select__selected-item-wrapper"},s.map(S=>e("div",{className:"multi-select__selected-item",key:S},e("div",{className:"multi-select__selected-item-text"},S.label),e("div",{className:"multi-select__selected-item-btn",role:"button",onClick:T=>{T.stopPropagation(),c(S)}},"x")))),e("div",{className:"multi-select__icons-wrapper"},s.length?e("div",{className:"multi-select__close-icon-wrapper",role:"button",onClick:S=>{S.stopPropagation(),v()}},e("span",{className:"multi-select__close-icon"},"x")):null,e("div",{className:"multi-select__arrow-icon-wrapper",role:"button"},e(ie,{className:"multi-select__arrow-icon"})))),r?e("div",{className:"multi-select__options"},i.length?i.map(S=>e("div",{key:S.value,onClick:T=>{T.stopPropagation(),c(S)},className:"multi-select__option"},e("div",{className:"multi-select__option-label"},S.label))):e("div",{className:"multi-select__option--no-option"},"No Options!")):null)},et=Tt;var Et=({baseUrl:a,options:t})=>fetch(`${a}lesan`,t).then(s=>s.json()),tt=({urlAddress:a})=>{let{activeTab:t,tabsData:s,actsObj:o,headers:i,history:f,setService:r,setSchema:d,setAct:c,setPostFields:v,setGetFields:I,setFormData:y,setHistory:S,setResponse:T,resetGetFields:x,resetPostFields:P,addE2eForm:G,setModal:J}=B(),[X,L]=E(!1),O=(n,g,w,b)=>{for(let C in w)w[C].type==="enums"?b[`${g}.${C}`]=n:O(n,`${g}.${C}`,w[C].schema,b);return b},$=Z(null),p=n=>{let{name:g,value:w,type:b,alt:C}=n.target,m;b==="number"?m=Number(w):C==="array"||C==="boolean"?m=JSON.parse(w):m=w,y({data:{...s[t].formData,[g]:m},index:t})},u=({key:n,field:g,isMultiEnum:w=!1,formData:b})=>g.type==="array"?u({key:n,formData:b,field:g.schema,isMultiEnum:!0}):g.type==="enums"&&w?e(et,{options:Object.keys(g.schema).map(C=>({label:C,value:g.schema[C]})),onChange:C=>{let m=C.map(F=>F.value);y({data:{...b,[`set.${n}`]:m},index:t}),localStorage.setItem("localTabsData",JSON.stringify(s))}}):g.type==="enums"?e(re,{onClickItem:C=>{y({data:{...b,[`set.${n}`]:C},index:t}),localStorage.setItem("localTabsData",JSON.stringify(s))},incomeActiveItem:b[`set.${n}`],items:Object.keys(g.schema)}):e("input",{className:"input",placeholder:n,id:n,value:b[`set.${n}`],name:`set.${n}`,type:g.type==="number"?"number":"string",alt:w?"array":g.type,onChange:p}),N=({getField:n,keyName:g,margin:w})=>e("div",{style:{marginLeft:`${w+1}px`},className:"sidebar__section_container",key:`${t}.${g}`},e("div",{className:"sidebar__section-heading--subfields"},g),Object.keys(n.schema).map((b,C)=>n.schema[b].type==="enums"?e("div",{className:"input-cnt get-items",key:`${t}.${b}-${C}`},e("label",{htmlFor:b},g,".",b,":"),e("div",{className:"get-values"},e("span",{onClick:()=>{let m={...s[t].formData};delete m[`get.${g}.${b}`],y({data:m,index:t})}}),e("span",{className:s[t].formData[`get.${g}.${b}`]===0?"active":"",onClick:()=>{y({index:t,data:{...s[t].formData,[`get.${g}.${b}`]:0}})}},"0"),e("span",{className:s[t].formData[`get.${g}.${b}`]===1?"active":"",onClick:()=>{y({data:{...s[t].formData,[`get.${g}.${b}`]:1},index:t})}},"1"))):N({getField:n.schema[b],keyName:`${g}.${b}`,margin:w+1}))),l=()=>{let n=ce(s[t].formData);return{body:{method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify({service:s[t].service,model:s[t].schema,act:s[t].act,details:n})}}},D=async n=>{n.preventDefault();let g=new Date().toLocaleDateString();L(!0),setTimeout(()=>{L(!1)},450);let w=performance.now(),b=await Et({baseUrl:a,options:l().body}),m=(performance.now()-w).toFixed(1);T({data:{...b,tookTime:m},index:t});let F=[{request:{...l().body,body:JSON.parse(l().body.body)},response:{...b,tookTime:m},id:h(),reqDate:g},...f];S(F),localStorage.setItem("localHistory",JSON.stringify(F)),localStorage.setItem("localTabsData",JSON.stringify(s))},U=s[t].service&&s[t].schema&&s[t].postFields&&s[t].getFields&&s[t].act,A=s[t].service,Y=s[t].service&&s[t].schema,k=()=>{let n=JSON.stringify(s[t].response);navigator.clipboard.writeText(n)},V=()=>{let n=l();n.body.body=JSON.parse(n.body.body),navigator.clipboard.writeText(JSON.stringify(n))},M=()=>{let n=l();n.body.body=JSON.parse(n.body.body);let{method:g,...w}=n.body,b={id:h(),bodyHeaders:JSON.stringify({...w},null,2),repeat:1,captures:[]};G(b),J("E2E TEST")},_=(n,g)=>{if(g==="service"&&(r({data:n,index:t}),d({data:"",index:t})),g==="method"&&d({data:"",index:t}),g==="schema"&&d({data:n,index:t}),c({data:"",index:t}),x(t),P(t),g==="action"){let w=o[s[t].service][s[t].schema][n].validator.schema;$&&$.current&&$.current.reset(),c({data:n,index:t}),I({data:w.get.schema,index:t}),v({data:w.set.schema,index:t})}y({data:{},index:t}),localStorage.setItem("localTabsData",JSON.stringify(s))};return e(q,null,e("div",{className:"sidebar"},e("div",{className:"sidebar__sections-wrapper"},e("div",{className:"sidebar__section sidebar__section--services"},e("div",{className:"sidebar__section-heading"},"select services"),e(re,{onClickItem:n=>_(n,"service"),items:Object.keys(o),incomeActiveItem:s[t].service?s[t].service:null})),e("div",{className:"sidebar__section sidebar__section--schema"},e("div",{onClick:()=>{},className:"sidebar__section-heading"},"select schema"),e(re,{canShow:!A,onClickItem:n=>_(n,"schema"),items:A?Object.keys(o[s[t].service]):[],incomeActiveItem:s[t].schema?s[t].schema:null})),e("div",{className:"sidebar__section sidebar__section--act"},e("div",{className:"sidebar__section-heading"},"select action"),e(re,{canShow:!Y,onClickItem:n=>_(n,"action"),items:Y?Object.keys(o[s[t].service][s[t].schema]):[],incomeActiveItem:s[t].act?s[t].act:null})))),U&&e("div",{className:"sidebar sidebar--fields"},e("form",{ref:$,onSubmit:D,className:"form--fields"},e("div",{className:"sidebar__section-heading sidebar__section-heading--fields"},"SET fields"),Object.keys(s[t].postFields).map(n=>e("div",{className:"input-cnt",key:`${t}.${n}-----`},e("label",{htmlFor:n},n," :"),u({key:n,field:s[t].postFields[n],formData:s[t].formData}))),e("div",{className:"sidebar__section-heading sidebar__section-heading--fields"},"GET fields"),e("div",{className:"input-cnt get-items border-bottom"},e("label",null,"All Items :"),e("div",{className:"get-values"},e("span",{onClick:()=>{let n=O(null,"get",s[t].getFields,{});y({data:{...s[t].formData,...n},index:t})}}),e("span",{onClick:()=>{let n=O(0,"get",s[t].getFields,{});y({data:{...s[t].formData,...n},index:t})}},"0"),e("span",{onClick:()=>{let n=O(1,"get",s[t].getFields,{});y({data:{...s[t].formData,...n},index:t})}},"1"))),Object.keys(s[t].getFields).map(n=>s[t].getFields[n].type==="enums"?e("div",{className:"input-cnt get-items",key:`${t}.${n}-------`},e("label",{htmlFor:n},n,":"),e("div",{className:"get-values"},e("span",{onClick:()=>{y({data:{...s[t].formData,[`get.${n}`]:null},index:t})}}),e("span",{className:s[t].formData[`get.${n}`]===0?"active":"",onClick:()=>{y({data:{...s[t].formData,[`get.${n}`]:0},index:t})}},"0"),e("span",{className:s[t].formData[`get.${n}`]===1?"active":"",onClick:()=>{y({data:{...s[t].formData,[`get.${n}`]:1},index:t})}},"1"))):N({getField:s[t].getFields[n],keyName:n,margin:0})),e("div",{class:"wrapper"},e("button",{class:"send-button","data-active":X},e("span",null,"Send"),e("div",{class:"successe"},e(Oe,null)))))),e("div",{className:"response"},s[t].response&&e("div",{class:"response-detail"},e("div",{className:"response-detail-button_title"},e("p",{className:"response-detail-title"},"Response"),e("div",{className:"response-detail-buttons"},e("div",{className:"btn response-detail-button ",onClick:()=>V()},e(pe,null),e("span",{className:"tooltip-text"},"Copy Request")),e("div",{className:"btn response-detail-button ",onClick:()=>{k()}},e(pe,null),e("span",{className:"tooltip-text"},"Copy Response")),e("div",{className:"btn response-detail-button ",onClick:()=>{M()}},e(Fe,null),e("span",{className:"tooltip-text"},"Run E2E Test")))),e("div",{className:"response-detail-info"},e("div",{style:{display:"flex",flexDirection:"column"}}," ",e(H,{jsonData:{body:s[t].response?.body,success:s[t].response?.success}})),e("span",{className:"response-took"},"took:",de(s[t].response?.tookTime)),s[t].response&&s[t].response?.success===!0?e("div",{className:"success"}):e("div",{className:"fail"})))))};var wt=()=>e("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M20.04 10.1109L18.0252 8.09612L21.7071 4.41421C22.0976 4.02369 22.0976 3.39052 21.7071 3L21 2.29289C20.6095 1.90237 19.9763 1.90237 19.5858 2.29289L15.9039 5.9748L14.04 4.11089C13.754 3.82489 13.3239 3.73933 12.9502 3.89411C12.5765 4.04889 12.3329 4.41353 12.3329 4.81799V10.818C12.3329 11.3703 12.7806 11.818 13.3329 11.818H19.3329C19.7373 11.818 20.102 11.5744 20.2568 11.2007C20.4115 10.827 20.326 10.3969 20.04 10.1109Z",fill:"bisque"}),e("path",{d:"M3.96 13.8891L5.97478 15.9039L2.29289 19.5858C1.90237 19.9763 1.90237 20.6095 2.29289 21L3 21.7071C3.39052 22.0976 4.02369 22.0976 4.41421 21.7071L8.0961 18.0252L9.96 19.8891C10.246 20.1751 10.6761 20.2607 11.0498 20.1059C11.4235 19.9511 11.6671 19.5865 11.6671 19.182V13.182C11.6671 12.6297 11.2194 12.182 10.6671 12.182H4.66711C4.26265 12.182 3.89801 12.4256 3.74323 12.7993C3.58845 13.173 3.674 13.6031 3.96 13.8891Z",fill:"bisque"})),st=wt;var _t=()=>e("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M7.69233 18.2781L9.70711 20.2929C9.9931 20.5789 10.0787 21.009 9.92388 21.3827C9.7691 21.7564 9.40446 22 9 22H3C2.44772 22 2 21.5523 2 21V15C2 14.5955 2.24364 14.2309 2.61732 14.0761C2.99099 13.9213 3.42111 14.0069 3.70711 14.2929L5.571 16.1568L9.25289 12.4749C9.64342 12.0844 10.2766 12.0844 10.6671 12.4749L11.3742 13.182C11.7647 13.5725 11.7647 14.2057 11.3742 14.5962L7.69233 18.2781Z",fill:"bisque"}),e("path",{d:"M16.3077 5.72187L14.2929 3.70711C14.0069 3.42111 13.9213 2.99099 14.0761 2.61732C14.2309 2.24364 14.5955 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.40446 21.7564 9.7691 21.3827 9.92388C21.009 10.0787 20.5789 9.9931 20.2929 9.70711L18.429 7.84319L14.7471 11.5251C14.3566 11.9156 13.7234 11.9156 13.3329 11.5251L12.6258 10.818C12.2352 10.4275 12.2352 9.7943 12.6258 9.40378L16.3077 5.72187Z",fill:"bisque"})),at=_t;function qe(){return e("svg",{width:25,height:25,fill:"#000000",viewBox:"0 0 24 24",id:"up-direction","data-name":"Line Color",xmlns:"http://www.w3.org/2000/svg",class:"icon line-color"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"},e("path",{id:"secondary",d:"M10,9.66V20a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1V9.66",style:"fill: none; stroke: darkred; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"}),e("path",{id:"primary",d:"M14,9.66l3.4,2.92,2.6-3-7.35-6.3a1,1,0,0,0-1.3,0L4,9.54l2.6,3L10,9.66",style:"fill: none; stroke: darkred; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"})))}var kt=a=>{let[t,s]=E("myBtn none"),[o,i]=E(!1),f=Z(null),r=()=>{f.current.scroll,document.getElementById("modal")?.scroll({top:0,behavior:"smooth"})},d=c=>{c.currentTarget.scrollTop>20?s("myBtn"):s("none")};return e("div",{className:"modal-overlay",onClick:a.toggle},e("div",{className:o?"modal-box-fullscreen":"modal-box",onClick:c=>c.stopPropagation()},e("div",{className:"action-modal"},e("span",{className:"modal-close",onClick:a.toggle},e(K,null)),e("span",{className:"modal-fullscreen",onClick:()=>i(!o)},o?e(st,null):e(at,null)),e("span",{className:"modal-title"},a.title)),e("div",{className:"modal-content",id:"modal",ref:f,onScroll:d},a.children,e("div",{className:t},e("button",{className:"myBtn-active tooltip",onClick:()=>r()},e(qe,null),e("span",{className:"tooltip-text"},"Go To Top"))))))},nt=kt;var ot=()=>{let{schemasObj:a}=B(),[t,s]=E({});j(()=>{let d={};for(let c in a){d[c]={...d[c],pure:a[c].pure};for(let v in a[c].mainRelations)d[c]={...d[c],mainRelations:{...d[c].mainRelations,[v]:{type:"relation",extraDetails:a[c].mainRelations[v],schema:{...a[a[c].mainRelations[v].schemaName].pure}}}};for(let v in a[c].relatedRelations)d[c]={...d[c],relatedRelations:{...d[c].relatedRelations,[v]:{type:"relation",extraDetails:a[c].relatedRelations[v],schema:{...a[a[c].relatedRelations[v].schemaName].pure}}}}}s(d)},[]);let o=()=>{let d=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(a))}`,c=document.createElement("a");c.href=d,c.download="schemas.json",c.click()},i=["color-1","color-2","color-3","color-4","color-5","color-6","color-7"],f=d=>Object.keys(d).map(c=>{let v=h();return e("div",{className:"schema"},e("div",{className:"schema-name",onClick:()=>{document.getElementById(v)?.classList.toggle("open")}},e("p",{className:"schema-title"},c),e("span",null,"...")),e("div",{className:"proceed-child-container",id:v},r(d[c])))}),r=d=>Object.keys(d).map(c=>{let v=h();return e("div",{className:`inside-schema ${i[Math.floor(Math.random()*i.length)]}`},e("div",{className:`inside ${typeof d[c]=="object"&&d[c].schema!==null&&"schema-pointer"}`,onClick:()=>{document.getElementById(v)?.classList.toggle("open")}},e("p",{className:"schema-title"},c),e("div",{className:"schema-info"}," ",e("p",{className:"schema-title schema-type"}," ",d[c].type),e("div",{className:"schema-help"},d[c].extraDetails&&e(ne,null),d[c].extraDetails&&e("div",{className:" tooltip-text"},e(H,{jsonData:d[c].extraDetails}))),typeof d[c]=="object"&&d[c].schema!==null&&e("span",null,"..."))),e("div",{id:v,className:"proceed-child"},typeof d[c]=="object"&&d[c]!==null&&d[c].schema!==null&&r(d[c].pure?d[c].pure:d[c].relatedRelations?d[c].relatedRelations:d[c].mainRelation?d[c].mainRelation:d[c].type==="relation"?d[c].schema:d[c])))});return e("div",{className:"schema-modal"},e("div",{className:"results-buttons"},e("button",{className:" schema-export-button btn e2e-back-button e2e-export_results-button",onClick:o},e(W,null),e("span",null,"Export"))),e("div",{className:"schema-list"},f(t)))};function me(){return e("svg",{width:25,height:25,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M7.75 11.9999L10.58 14.8299L16.25 9.16992",stroke:"lightcoral","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," ",e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function it({configUrl:a}){let[t,s]=E("no"),o=()=>{setTimeout(()=>{s("no")},1e3)},i=y=>{d[y],d.splice(y,1),c([...d])},{headers:f,setHeader:r}=B(),[d,c]=E([{key:"",value:""}]),[v,I]=E("");return j(()=>{let y=[];for(let S in f)y.push({key:S,value:f[S]});c(y)},[]),e("div",{className:"setting modal-content"},e("div",{className:"url"},e("p",{className:"url-title"},"Fetch Config"),e("div",{className:"url-detail"}," ",e("input",{className:"input url-input ",placeholder:"Set URL",onChange:y=>I(y.target.value)}),e("button",{className:"setting_fetch-config--apply-button e2e-back-button e2e-add-capture ",onClick:()=>{a(v),s("yes"),o()}},e(me,null),e("span",null,t==="yes"?"Applyed!":"Apply")))),e("div",{className:"sidebar__section sidebar__section--headers"},e("div",{className:"sidebar__section-heading setting_heading"}," ",e("span",{className:"setting_heading--title"},"Set Headers"),e("button",{className:"setting_add-header--button e2e-back-button e2e-export_results-button e2e-add-capture ",onClick:()=>{c([...d,{key:"",value:""}])}},e(te,null),e("span",null,"Add Header"))),e("div",{className:"setting_container--setheaders"},e("div",{className:"setting_set-headers"},d?.map((y,S)=>e("div",{key:`${S}____`,className:"setting_set-headers--inputs"},e("div",{className:"setting__set-headers--key-value setting__set-headers--key"},e("span",null,"Key:"),e("input",{className:"setting_set-headers--inputs--key input",placeholder:"Authotization",value:y.key,onChange:T=>{c(x=>(x[S].key=T.target.value,x))}})),e("div",{className:"setting__set-headers--key-value setting__set-headers--value"},e("span",null,"Value:"),e("input",{className:"setting_set-headers--inputs--value input",placeholder:"some string ...",value:y.value,onChange:T=>{c(x=>(x[S].value=T.target.value,x))}})),d.length>1&&e("div",{className:"setting_set-headers--delete-button e2e-move-div e2e-move-close",onClick:()=>i(S)},e(K,null))))),e("button",{className:"setting_set-headers--apply-button e2e-back-button e2e-add-capture ",onClick:()=>{let y={};for(let S of d){let{key:T,value:x}=S;y[T]=x}r(y),s("yess"),o()}},e(me,null),e("span",null,t==="yess"?"Applyed!":"Apply")))))}var xt=({baseUrl:a})=>fetch(`${a}playground/static/get/schemas`).then(t=>t.json()),rt=()=>{let{tabsData:a,setTabsData:t,activeTab:s,actsObj:o,addTab:i,setActiveTab:f,setService:r,setSchema:d,setAct:c,setPostFields:v,setGetFields:I,setFormData:y,setHistory:S,setResponse:T,resetGetFields:x,closeTab:P,resetPostFields:G,setSchemasObj:J,setActsObj:X,setModal:L,modal:O}=B(),[$,p]=E(""),[u,N]=E(!1),l=()=>window&&window.location?`${new URL(window.location.href).origin}/`:"http://localhost:1366/",[D,U]=E(""),Y=se(()=>{N(!1)});j(()=>{k(l());let _=JSON.parse(localStorage.getItem("localHistory"));_&&S(_)},[]);let k=_=>{_&&U(_),r({data:"",index:s}),d({data:"",index:s}),x(s),G(s),y({data:{},index:s}),xt({baseUrl:_||D}).then(({schemas:n,acts:g})=>{X(g),J(n);let w=localStorage.getItem("localTabsData");if(w){w=JSON.parse(w);let b=[],C=m=>{b.pop();let F=ce(m.formData);for(let z in F.set)g[m.service][m.schema][m.act].validator.schema.set.schema[z]===void 0&&delete F.set[z];for(let z in F.get)g[m.service][m.schema][m.act].validator.schema.get.schema[z]===void 0&&delete F.get[z];let Q=le(F,{},"");m.postFields=g[m.service][m.schema][m.act].validator.schema.set.schema,m.getFields=g[m.service][m.schema][m.act].validator.schema.get.schema,b.push({...m,formData:Q})};for(let m of w)m.service&&m.service in g&&b.push(m),m.schema&&!(m.schema in g[m.service])&&b.pop(),m.act&&!(m.act in g[m.service][m.schema])&&b.pop(),m.service&&m.schema&&m.act&&m.act in g[m.service][m.schema]&&C(m);b.length<1&&b.push({service:"",schema:"",act:"",postFields:{},getFields:{},formData:{},response:null}),t(b)}})},V=()=>{L(null)},M=_=>{r({data:_.body.service,index:s}),d({data:_.body.model,index:s}),c({data:_.body.act,index:s});let n=o[_.body.service][_.body.model][_.body.act].validator.schema;I({data:n.get.schema,index:s}),v({data:n.set.schema,index:s}),T({data:null,index:s});let g=le(_.body.details,{},"");y({data:g,index:s}),V()};return e("div",{className:"cnt"},e("div",{className:"tabs-container",style:{display:"flex"}},a.map((_,n)=>e(q,null,e("div",{className:"tab-name","data-tab":s===n,onClick:()=>{f(n)}}," ",e("span",{title:a[n].act?`${a[n].schema} | ${a[n].act}`:a[n].schema?`${a[n].service} | ${a[n].schema}`:a[n].service?a[n].service:`Tab ${n}`}," ",a[n].act?`${a[n].schema} | ${a[n].act}`:a[n].schema?`${a[n].service} | ${a[n].schema}`:a[n].service?a[n].service:`Tab ${n}`),e("span",{className:` tab-close ${s===n?"active-tab-close":""}`,onClick:g=>{g.stopPropagation(),P(n)},title:"Close tab"},"x")))),e("span",{className:"add-tab",title:"Open a new tab",onClick:()=>{i(null),localStorage.setItem("localTabsData",JSON.stringify(a))}},"+")),e(tt,{urlAddress:D}),e("button",{ref:Y,className:"media--main-btn-wrapper ",onClick:()=>{N(!u)}},"menu"),e("div",{className:"main-btn-wrapper","data-show":u===!0},e("span",{className:"btn btn-modal ",onClick:()=>k()},e("span",{className:"btn-modal-title"},"Refetch"),e(Me,null)),e("span",{className:"btn btn-modal ",onClick:()=>L("SETTING")},e("span",{className:"btn-modal-title"},"Setting"),e(De,null)),e("span",{className:"btn btn-modal",onClick:()=>L("HISTORY")},e("span",{className:"btn-modal-title"},"History"),e(Re,null)),e("span",{className:"btn btn-modal",onClick:()=>L("E2E TEST")},e("span",{className:"btn-modal-title"},"E2E Test"),e(Le,null)),e("span",{className:" btn-modal-document","data-show":$==="document"},e("span",{className:"btn-modal-document--title","data-show":$==="document"},"Document")),e("span",{className:"btn btn-modal btn-doc",onClick:()=>L("SCHEMA"),onMouseEnter:()=>p("document"),onMouseLeave:()=>p("")},e("span",{className:"btn-modal-title"},"Schema"),e(Ie,null)),e("span",{className:"btn btn-modal btn-doc ",onClick:()=>L("ACT"),onMouseEnter:()=>p("document"),onMouseLeave:()=>p("")},e("span",{className:"btn-modal-title"},"Act"),e(xe,null))),O!==null&&e(nt,{toggle:V,title:O},O==="HISTORY"?e(Qe,{setFormFromHistory:M}):O==="SETTING"?e(it,{configUrl:k}):O==="E2E TEST"?e(Ke,{baseUrl:D}):O==="SCHEMA"?e(ot,null):O==="ACT"?e(Pe,null):e(q,null)))};Ae(e(Ge,null,e(rt,null)),document.getElementById("root")); + `,repeat:1,captures:[]}),mt={e2eForms:[me()],setE2eForms:()=>({}),addE2eForm:()=>({})},ut={modal:null,setModal:()=>({})},ue={...ct,...lt,...dt,...pt,...mt,...ut};function Be(a,t){let{type:s,payload:n}=t;switch(s){case"SET_SELECTED_SERVICE":{let o=[...a.tabsData];return o[n.index]={...o[n.index],service:n.data},{...a,tabsData:[...o]}}case"SET_SCHEMA":{let o=[...a.tabsData];return o[n.index]={...o[n.index],schema:n.data},{...a,tabsData:[...o]}}case"SET_ACT":{let o=[...a.tabsData];return o[n.index]={...o[n.index],act:n.data},{...a,tabsData:[...o]}}case"SET_POST_FIELDS":{let o=[...a.tabsData];return o[n.index]={...o[n.index],postFields:n.data},{...a,tabsData:[...o]}}case"RESET_POST_FIELDS":{let o=[...a.tabsData];return o[n]={...o[n],postFields:{}},{...a,tabsData:[...o]}}case"SET_GET_FIELDS":{let o=[...a.tabsData];return o[n.index]={...o[n.index],getFields:n.data},{...a,tabsData:[...o]}}case"RESET_GET_FIELDS":{let o=[...a.tabsData];return o[n]={...o[n],getFields:{}},{...a,tabsData:[...o]}}case"SET_FORM_DATA":{let o=[...a.tabsData];return o[n.index]={...o[n.index],formData:n.data},{...a,tabsData:[...o]}}case"SET_HEADER":return{...a,headers:n};case"ADD_HISTORY":return{...a,history:n};case"SET_TABS_DATA":return{...a,tabsData:n};case"SET_RESPONSE":{let o=[...a.tabsData];return o[n.index]={...o[n.index],response:n.data},{...a,tabsData:[...o]}}case"ADD_TAB":return{...a,tabsData:[...a.tabsData,{service:"",schema:"",act:"",postFields:{},getFields:{},formData:{},response:null}],activeTab:a.tabsData.length};case"SET_ACTIVE_TAB":return{...a,activeTab:n};case"CLOSE_TAB":{let o=[...a.tabsData];return o.length>1&&o.splice(n,1),{...a,tabsData:[...o],activeTab:o.length>=1&&a.activeTab>=n&&a.activeTab!==0?a.activeTab-1:a.activeTab}}case"DELETE_ITEM_HISTORY":return{...a,history:a.history.slice(0,n).concat(a.history.slice(n+1))};case"SET_ACTS_OBJ":return{...a,actsObj:n};case"SET_SCHEMAS_OBJ":return{...a,schemasObj:n};case"SET_E2E_FORMS":return{...a,e2eForms:n};case"ADD_E2E_FORM":return{...a,e2eForms:[...a.e2eForms,n]};case"OPEN_MODAL":return{...a,modal:n};default:throw new Error("Unhandled action type")}}var ve=He(ue),$e=a=>{let[t,s]=he(Be,ue),n=D(c=>s({type:"SET_SELECTED_SERVICE",payload:c}),[s]),o=D(c=>s({type:"SET_SCHEMA",payload:c}),[s]),f=D(c=>s({type:"SET_ACT",payload:c}),[s]),i=D(c=>s({type:"SET_POST_FIELDS",payload:c}),[s]),p=D(c=>s({type:"RESET_POST_FIELDS",payload:c}),[s]),l=D(c=>s({type:"SET_GET_FIELDS",payload:c}),[s]),g=D(c=>s({type:"RESET_GET_FIELDS",payload:c}),[s]),F=D(c=>s({type:"SET_FORM_DATA",payload:c}),[s]),b=D(c=>s({type:"SET_ACTIVE_TAB",payload:c}),[s]),S=D(c=>s({type:"ADD_TAB",payload:c}),[s]),C=D(c=>s({type:"CLOSE_TAB",payload:c}),[s]),I=D(c=>s({type:"DELETE_ITEM_HISTORY",payload:c}),[s]),Z=D(c=>s({type:"SET_HEADER",payload:c}),[s]),G=D(c=>s({type:"ADD_HISTORY",payload:c}),[s]),W=D(c=>s({type:"SET_TABS_DATA",payload:c}),[s]),Q=D(c=>s({type:"SET_RESPONSE",payload:c}),[s]),O=D(c=>s({type:"SET_SCHEMAS_OBJ",payload:c}),[s]),q=D(c=>s({type:"SET_ACTS_OBJ",payload:c}),[s]),$=D(c=>s({type:"SET_E2E_FORMS",payload:c}),[s]),u=D(c=>s({type:"ADD_E2E_FORM",payload:c}),[s]),m=D(c=>s({type:"OPEN_MODAL",payload:c}),[s]),T=je(()=>({...t,setService:n,setSchema:o,setAct:f,setPostFields:i,resetPostFields:p,setGetFields:l,resetGetFields:g,setFormData:F,setHeader:Z,setHistory:G,setTabsData:W,setResponse:Q,setActsObj:q,setSchemasObj:O,setActiveTab:b,addTab:S,closeTab:C,deleteItemHistory:I,setE2eForms:$,addE2eForm:u,setModal:m}),[t]);return e(ve.Provider,{value:T,...a})};var B=()=>{let a=Ve(ve);return a},Ge=a=>{let{children:t}=a;return e($e,null,t)};var ce=a=>{let t={get:{},set:{}};for(let s in a)if(a[s]||a[s]===0||a[s]===!1){let n=s.split("."),o=t;for(;n.length>1;){let f=n.shift();o[f]=o[f]||{},o=o[f]}o[n[0]]=a[s]}return t};var le=(a,t,s)=>{for(let n in a)typeof a[n]=="object"?le(a[n],t,s?`${s}.${n}`:n):t[`${s}.${n}`]=a[n];return t};function X(){return e("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.2501 7.06066L8.03039 10.2803L6.96973 9.21967L12.0001 4.18934L17.0304 9.21967L15.9697 10.2803L12.7501 7.06066L12.7501 16.5L11.2501 16.5L11.2501 7.06066Z",fill:"lightcoral"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function Pe(){let{actsObj:a}=B(),t=()=>{let f=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(a))}`,i=document.createElement("a");i.href=f,i.download="acts.json",i.click()},s=["color-1","color-2","color-3","color-4","color-5","color-6","color-7"],n=f=>Object.keys(f).map((i,p)=>{let l=A();return e("div",{className:"schema"},e("div",{className:"schema-name",onClick:()=>{document.getElementById(l)?.classList.toggle("open")}},e("p",{className:"schema-title"},i),e("span",null,"...")),e("div",{className:"proceed-child-container",id:l},o(a[i])))}),o=f=>Object.keys(f).map((i,p)=>{let l=A();if(f[i]||f[i]===0)return e("div",{className:`inside-schema ${s[Math.floor(Math.random()*s.length)]}`},e("div",{className:`inside ${typeof f[i]=="object"&&f[i].schema!==null&&"schema-pointer"}`,onClick:()=>{document.getElementById(l)?.classList.toggle("open")}},e("p",{className:"schema-title"},i),f[i].type&&e("p",{className:"schema-title schema-type"},f[i].type),e("div",null," ",typeof f[i]=="object"&&f[i].schema!==null&&e("span",null,"..."))),e("div",{id:l,className:"proceed-child"},typeof f[i]=="object"&&f[i]!==null&&f[i].schema!==null&&o(f[i].validator?f[i].validator.schema:f[i].schema?f[i].schema:f[i])))});return e("div",{className:"schema-modal"}," ",e("div",{className:"results-buttons"},e("button",{className:" schema-export-button btn e2e-back-button e2e-export_results-button",onClick:t},e(X,null),e("span",null,"Export"))),e("div",{className:"schema-list"},n(a)))}import{faker as St}from"https://cdn.skypack.dev/@faker-js/faker";function te(){return e("svg",{width:"25px",height:"28px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M11 8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H13V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V13H8C7.44771 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11H11V8Z",fill:"lightcoral"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}function fe(){return e("svg",{width:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M9.00002 15.3802H13.92C15.62 15.3802 17 14.0002 17 12.3002C17 10.6002 15.62 9.22021 13.92 9.22021H7.15002",stroke:"lightcoral","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M8.57 10.7701L7 9.19012L8.57 7.62012",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}var ft=()=>e("svg",{width:"25px",viewBox:"-0.5 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z",stroke:"bisque","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{id:"Vector",d:"M16 16L12 12M12 12L8 8M12 12L16 8M12 12L8 16",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})),Y=ft;function ge(){return e("svg",{width:"25px",viewBox:"-0.5 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z",stroke:"bisque","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M16 10.99L13.13 14.05C12.9858 14.2058 12.811 14.3298 12.6166 14.4148C12.4221 14.4998 12.2122 14.5437 12 14.5437C11.7878 14.5437 11.5779 14.4998 11.3834 14.4148C11.189 14.3298 11.0142 14.2058 10.87 14.05L8 10.99",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}function ae(){return e("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12 17V16.9929M12 14.8571C12 11.6429 15 12.3571 15 9.85714C15 8.27919 13.6568 7 12 7C10.6567 7 9.51961 7.84083 9.13733 9",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function be(){return e("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.75 13.9393L15.9697 10.7197L17.0303 11.7803L12 16.8107L6.96967 11.7803L8.03033 10.7197L11.25 13.9393L11.25 4.5L12.75 4.5L12.75 13.9393Z",fill:"lightcoral"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function ye(){return e("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M13.8876 9.9348C14.9625 10.8117 15.5 11.2501 15.5 12C15.5 12.7499 14.9625 13.1883 13.8876 14.0652C13.5909 14.3073 13.2966 14.5352 13.0261 14.7251C12.7888 14.8917 12.5201 15.064 12.2419 15.2332C11.1695 15.8853 10.6333 16.2114 10.1524 15.8504C9.6715 15.4894 9.62779 14.7336 9.54038 13.2222C9.51566 12.7947 9.5 12.3757 9.5 12C9.5 11.6243 9.51566 11.2053 9.54038 10.7778C9.62779 9.26636 9.6715 8.51061 10.1524 8.1496C10.6333 7.78859 11.1695 8.11466 12.2419 8.76679C12.5201 8.93597 12.7888 9.10831 13.0261 9.27492C13.2966 9.46483 13.5909 9.69274 13.8876 9.9348Z",stroke:"lightcoral","stroke-width":"2"}),e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function Ce(){return e("svg",{width:"25px",viewBox:"-0.5 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z",stroke:"bisque","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M8 13.8599L10.87 10.8C11.0125 10.6416 11.1868 10.5149 11.3815 10.4282C11.5761 10.3415 11.7869 10.2966 12 10.2966C12.2131 10.2966 12.4239 10.3415 12.6185 10.4282C12.8132 10.5149 12.9875 10.6416 13.13 10.8L16 13.8599",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}var ze={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial',display:"inline-block",borderRadius:3,padding:"10px 10px",color:"#f8f8f2",textShadow:"1px 1px black",whiteSpace:"pre-wrap"};var bt=/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,yt=a=>JSON.stringify(a,Ct,2).replace(/&/g,"&").replace(//g,">").replace(bt,s=>{let n="cute-number",o=s;return/^"/.test(s)?/:$/.test(s)?(n="cute-key",o=o.replace(":",':')):s==='"undefined"'?n="cute-undefined":s==='"[Function]"'?n="cute-function":n="cute-string":/true|false/.test(s)?n="cute-boolean":/null/.test(s)&&(n="cute-null"),`${o}`}),Ct=(a,t)=>typeof t=="function"?"[Function]":typeof t>"u"?"undefined":t,Ze=a=>yt(a).replace(/"/g,"");var j=({jsonData:a})=>{let t=Ze(a);return e(H,null,e("pre",{style:ze,dangerouslySetInnerHTML:{__html:t}}))};function Se(){return e("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function Te(){return e("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M15 6L9 12L15 18",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function Ne(){return e("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function Ee(){return e("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M9 6L15 12L9 18",stroke:"#000000","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function Je({pageCountNumber:a,activePage:t,setActivePage:s}){let[n,o]=N([]),[f,i]=N(1),p=C=>{i(C.target.value),s(C.target.value-1)},l=()=>{s(f-1)},g=a,F=D(()=>{let C=0,I=g>5?5:g;t>3&&t5&&t>g-5&&(C=g-5,I=g-1),g<=5&&(C=0,I=g);let Z=[];for(let G=C;Gs(C),S=C=>t===C?"active":"";return h(()=>F(),[t]),e("div",{className:"pagination"},g>1&&e("button",{onClick:()=>{s(0)}}," ",e(Se,null)),g>1&&e("button",{onClick:()=>{s(t===0?g-1:t-1)}},e(Te,null)),(t>=4||t>g-5)&&g>5&&e("button",{onClick:()=>b(0)},1),(t>=4||t>g-5)&&g>5&&e("span",null,"..."),n.map(C=>e("button",{key:C,className:S(C),onClick:()=>b(C)},C+1)),t5&&e("span",null,"..."),g>5&&e("button",{className:S(g-1),onClick:()=>b(g-1)},g),g>1&&e("button",{onClick:()=>s(t===g-1?0:t+1)},e(Ee,null)),g>1&&e("button",{onClick:()=>{s(g-1)}}," ",e(Ne,null)," "),g>1&&e("div",{className:"pagination--go-to"}," ",e("input",{className:"pagination--go-to--input",min:1,max:g,for:"1",type:"number",onChange:p,placeholder:"number",value:t+1}),e("button",{className:"pagination--go-to--button",id:"1",onClick:()=>{l()}},"Go")))}function we(){return e("svg",{fill:"#fff",height:"20px",width:"20px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452.025 452.025"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("g",null," ",e("g",null," ",e("path",{d:"M147.912,363.325c-4.7-4.7-12.3-4.7-17,0c-4.7,4.7-4.7,12.3,0,17l13.6,13.6h-55.2c-35.9,0-65-29.2-65-65v-40.3 c0-6.6-5.4-12-12-12s-12,5.4-12,12v40.3c0,49.1,39.9,89,89,89h55.2l-13.6,13.6c-4.7,4.7-4.7,12.3,0,17c2.3,2.3,5.4,3.5,8.5,3.5 s6.1-1.2,8.5-3.5l34.1-34.1c4.7-4.7,4.7-12.3,0-17L147.912,363.325z"})," ",e("path",{d:"M210.312,0.025h-197.1c-6.6,0-12,5.4-12,12v197.1c0,6.6,5.4,12,12,12h197.1c6.6,0,12-5.4,12-12v-197.1 C222.312,5.425,217.012,0.025,210.312,0.025z M198.312,197.125h-173.1v-173.1h173.1V197.125z"})," ",e("path",{d:"M362.612,34.125h-55.2l13.6-13.6c4.7-4.7,4.7-12.3,0-17s-12.3-4.7-17,0l-34,34.1c-4.7,4.7-4.7,12.3,0,17l34.1,34.1 c2.3,2.3,5.4,3.5,8.5,3.5s6.1-1.2,8.5-3.5c4.7-4.7,4.7-12.3,0-17l-13.6-13.6h55.2c35.9,0,65,29.2,65,65v40.3c0,6.6,5.4,12,12,12 s12-5.4,12-12v-40.3C451.712,74.025,411.712,34.125,362.612,34.125z"})," ",e("path",{d:"M438.812,428.025c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5C445.012,429.325,441.912,428.025,438.812,428.025z"})," ",e("path",{d:"M389.512,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S396.112,428.025,389.512,428.025z"})," ",e("path",{d:"M290.912,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S297.612,428.025,290.912,428.025z"})," ",e("path",{d:"M340.212,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S346.812,428.025,340.212,428.025z"})," ",e("path",{d:"M241.713,428.025c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5c3.1,0,6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5S244.812,428.025,241.713,428.025z"})," ",e("path",{d:"M241.713,378.725c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,378.725,241.713,378.725z"})," ",e("path",{d:"M241.713,329.425c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,329.425,241.713,329.425z"})," ",e("path",{d:"M241.713,280.125c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,280.125,241.713,280.125z"})," ",e("path",{d:"M241.713,230.925c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5c3.1,0,6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5C247.912,232.125,244.812,230.925,241.713,230.925z"})," ",e("path",{d:"M389.512,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S396.112,230.925,389.512,230.925z"})," ",e("path",{d:"M340.212,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S346.812,230.925,340.212,230.925z"})," ",e("path",{d:"M290.912,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S297.612,230.925,290.912,230.925z"})," ",e("path",{d:"M438.812,230.925c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5C445.012,232.225,441.912,230.925,438.812,230.925z"})," ",e("path",{d:"M438.812,280.125c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,280.125,438.812,280.125z"})," ",e("path",{d:"M438.812,378.725c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,378.725,438.812,378.725z"})," ",e("path",{d:"M438.812,329.425c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,329.425,438.812,329.425z"})," ")," ")," "))}function ne(){return e("svg",{width:25,height:25,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 3.25C17.4142 3.25 17.75 3.58579 17.75 4V17.75L19.4 15.55C19.6485 15.2186 20.1186 15.1515 20.45 15.4C20.7814 15.6485 20.8485 16.1186 20.6 16.45L17.6 20.45C17.4063 20.7083 17.0691 20.8136 16.7628 20.7115C16.4566 20.6094 16.25 20.3228 16.25 20V4C16.25 3.58579 16.5858 3.25 17 3.25ZM7.25 6C7.25 5.58579 7.58579 5.25 8 5.25H13C13.4142 5.25 13.75 5.58579 13.75 6C13.75 6.41421 13.4142 6.75 13 6.75H8C7.58579 6.75 7.25 6.41421 7.25 6ZM5.25 11C5.25 10.5858 5.58579 10.25 6 10.25H13C13.4142 10.25 13.75 10.5858 13.75 11C13.75 11.4142 13.4142 11.75 13 11.75H6C5.58579 11.75 5.25 11.4142 5.25 11ZM3.25 16C3.25 15.5858 3.58579 15.25 4 15.25H13C13.4142 15.25 13.75 15.5858 13.75 16C13.75 16.4142 13.4142 16.75 13 16.75H4C3.58579 16.75 3.25 16.4142 3.25 16Z",fill:"gainsboro"})," "))}var Ue=({results:a,setIsShowE2eResponse:t,index:s})=>{let[n,o]=N(0);return e("div",{className:"result-slider-container"},e("div",{className:"result-slider-wrapper",id:a[n].id},e("section",{className:"container-re"},e("div",{className:"container-re--header"},e("span",{className:"container-re--header--icon",onClick:()=>t(!0)},e(we,null)),e("div",{className:"container--re--header--icon-number"}," ",e(ne,null),e("span",null,s+1)),e("span",{className:"container-re-title"},"REQUEST")),e("div",{style:{maxHeight:"27rem",overflowY:"scroll"}},e(j,{jsonData:a[n].request}))),e("section",{className:"container-re container-response"},e("div",{className:"container-re--header"},e("span",{className:"container-re-title"},"RESPONSE"),e("span",{className:"e2e-re-timeNumber-request"},a[n].responseTime,"ms")),e("div",{style:{maxHeight:"27rem",overflowY:"scroll"}},e(j,{jsonData:a[n].response})))),e("div",{className:"pagination-container"}," ",e(Je,{pageCountNumber:a.length,activePage:n,setActivePage:o})," ",e("div",{className:"pagination-u1024"}," ",a.map((f,i)=>e("span",{className:"pagination-u1024--item",onClick:()=>o(i),"data-show":n===i},i+1)))))};function _e(){return e("svg",{fill:"#fff",height:"20px",width:"20px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452.025 452.025"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("g",null," ",e("g",null," ",e("path",{d:"M362.612,34.125h-55.2l13.6-13.6c4.7-4.7,4.7-12.3,0-17s-12.3-4.7-17,0l-34,34.1c-2.3,2.3-3.5,5.3-3.5,8.5 s1.3,6.2,3.5,8.5l34.1,34.1c2.3,2.3,5.4,3.5,8.5,3.5s6.1-1.2,8.5-3.5c4.7-4.7,4.7-12.3,0-17l-13.6-13.6h55.2c35.9,0,65,29.2,65,65 v40.3c0,6.6,5.4,12,12,12s12-5.4,12-12v-40.3C451.712,74.025,411.712,34.125,362.612,34.125z"})," ",e("path",{d:"M438.812,230.925h-197.1c-6.6,0-12,5.4-12,12v197.1c0,6.6,5.4,12,12,12h197.1c6.6,0,12-5.4,12-12v-197.1 C450.812,236.225,445.412,230.925,438.812,230.925z M426.812,428.025h-173.1v-173.1h173.1L426.812,428.025L426.812,428.025z"})," ",e("path",{d:"M147.912,363.325c-4.7-4.7-12.3-4.7-17,0c-4.7,4.7-4.7,12.3,0,17l13.6,13.6h-55.2c-35.9,0-65-29.2-65-65v-40.3 c0-6.6-5.4-12-12-12s-12,5.4-12,12v40.3c0,49.1,39.9,89,89,89h55.2l-13.6,13.6c-4.7,4.7-4.7,12.3,0,17c2.3,2.3,5.4,3.5,8.5,3.5 s6.1-1.2,8.5-3.5l34.1-34.1c4.7-4.7,4.7-12.3,0-17L147.912,363.325z"})," ",e("path",{d:"M13.212,24.025c3.2,0,6.3-1.3,8.5-3.5s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5s-5.3-3.5-8.5-3.5s-6.3,1.3-8.5,3.5 s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5C7.012,22.725,10.012,24.025,13.212,24.025z"})," ",e("path",{d:"M111.812,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S105.112,24.025,111.812,24.025z"})," ",e("path",{d:"M62.512,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S55.912,24.025,62.512,24.025z"})," ",e("path",{d:"M161.012,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S154.412,24.025,161.012,24.025z"})," ",e("path",{d:"M210.312,0.025c-3.1,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5S213.512,0.025,210.312,0.025z"})," ",e("path",{d:"M210.312,147.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,153.225,217.012,147.925,210.312,147.925z"})," ",e("path",{d:"M210.312,98.625c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,103.925,217.012,98.625,210.312,98.625z"})," ",e("path",{d:"M210.312,49.325c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,54.725,217.012,49.325,210.312,49.325z"})," ",e("path",{d:"M210.312,197.125c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5C216.613,198.425,213.512,197.125,210.312,197.125z"})," ",e("path",{d:"M161.012,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C149.012,215.825,154.412,221.125,161.012,221.125z"})," ",e("path",{d:"M111.812,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C99.812,215.825,105.112,221.125,111.812,221.125z"})," ",e("path",{d:"M62.512,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C50.512,215.825,55.912,221.125,62.512,221.125z"})," ",e("path",{d:"M13.212,221.125c3.2,0,6.3-1.3,8.5-3.5s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5s-5.3-3.5-8.5-3.5s-6.3,1.3-8.5,3.5 s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5C7.012,219.825,10.012,221.125,13.212,221.125z"})," ",e("path",{d:"M13.212,171.925c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S6.612,171.925,13.212,171.925z"})," ",e("path",{d:"M13.212,122.625c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C1.212,117.225,6.612,122.625,13.212,122.625z"})," ",e("path",{d:"M13.212,73.325c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S6.612,73.325,13.212,73.325z"})," ")," ")," "))}function Ye({sequence:a,index:t}){let[s,n]=N(!0);return e("div",{id:t.toString(),key:a.id,className:"container-detail"},s?e(H,null,e("section",{className:"sequence-re"},e("div",{className:"container-re--header"},e("span",{className:"container-re--header--icon",onClick:()=>n(!1)},e(_e,null)),e("div",{className:"container--re--header--icon-number"}," ",e(ne,null),e("span",null,t+1)),e("span",{className:"container-re-title"},"Body Header")),e("div",{style:{maxHeight:"27rem",overflowY:"scroll"}},e(j,{jsonData:JSON.parse(a.bodyHeader)}))),e("section",{className:"sequence-re sequence-response "},e("div",{className:"container-re--header"},e("span",{className:"container-re-title"},"Description")),e("div",{className:"detail-sequence",style:{maxHeight:"27rem",overflowY:"scroll"}},e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Requests")," ",e("span",{className:"detail-sequence--sections--first-item"},"All Request Count: ",e("span",null,a.repeat)," "),e("span",{className:"e2e-success"},"Success:",e("span",null," ",a.success)),e("span",{className:"e2e-fail"},"Fails: ",e("span",null,a.fails)),e("span",null,"All Request Time: ",e("span",null,a.time," ms")),e("span",null,"Avrage Time For Each Request:"," ",e("span",null,(a.time/a.repeat).toFixed(1)," ms"))),e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Best")," ",e("span",{className:"detail-sequence--sections--first-item"},"Best Time: ",e("span",null,a.bestTime.time," ms")),e("span",null,"Request Number: ",e("span",null,a.bestTime.resultIdx))),e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Worst"),e("span",{className:"detail-sequence--sections--first-item"},"Worst Time: ",e("span",null,a.worstTime.time," ms")," "),e("span",null," ","Request Number: ",e("span",null,a.worstTime.resultIdx))),a.captures.length>0&&e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Capture Items")," ",a.captures.map(o=>e("ul",{className:"detail-sequence--sections--capture-items"},e("li",null,"key:"," ",e("span",{className:"information-container--request--sections--item--content"},o.key)),e("li",null,"value :"," ",e("span",{className:"information-container--request--sections--item--content"},o.value)),e("li",null,"model :"," ",e("span",{className:"information-container--request--sections--item--content"},o.model)),e("li",null,"act :"," ",e("span",{className:"information-container--request--sections--item--content"},o.act)),e("li",null,"sequnce number:"," ",e("span",{className:"information-container--request--sections--item--content"}," ",o.sequenceIdx))))),a.usedCaptures.length>0&&e("div",{className:"detail-sequence--sections"},e("span",{className:"sequnce-description-label"},"Using Capture Items")," ",a.usedCaptures.map(o=>e("ul",{className:"detail-sequence--sections--capture-items"},e("li",null,"key:"," ",e("span",{className:"information-container--request--sections--item--content"}," ",o.key)),e("li",null,"captured from:"," ",e("span",{className:"information-container--request--sections--item--content"}," ",o.captured)),e("li",null,"value:"," ",e("span",{className:"information-container--request--sections--item--content"}," ",o.value)),e("li",null," ","model :"," ",e("span",{className:"information-container--request--sections--item--content"}," ",o.model)),e("li",null," ","act :"," ",e("span",{className:"information-container--request--sections--item--content"},o.act)),e("li",null,"sequnce number:"," ",e("span",{className:"information-container--request--sections--item--content"},o.sequenceIdx)))))))):e(Ue,{results:a.results,setIsShowE2eResponse:n,index:t}))}function We({baseUrl:a}){let{e2eForms:t,setE2eForms:s}=B(),n={allReqPerformance:0,numberRequest:0,success:0,fails:0,bestTime:{sequenceIdx:0,resultIdx:0,time:Number.MAX_SAFE_INTEGER,act:"",model:""},worstTime:{sequenceIdx:0,resultIdx:0,act:"",model:"",time:0},sequenceDetail:[],allCaptureItems:[]},[o,f]=N(!1),[i,p]=N(n),l=(u,m)=>{if(!(u===0&&m<=0)){let T=t[u];t.splice(u,1),t.splice(m,0,T),s([...t])}},g=u=>{t[u],t.splice(u,1),s([...t])},F=u=>{let m={...t[u],id:A()};s([...t.slice(0,u),m,...t.slice(u,t.length)])},[b,S]=N("e2e"),C=()=>{let u=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(t))}`,m=document.createElement("a");m.href=u,m.download="Configdata.json",m.click()},I=u=>{let m=new FileReader;m.readAsText(u.target.files[0],"UTF-8"),m.onload=T=>{let c=JSON.parse(T.target.result);s(c)}},Z=()=>{let u=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(i))}`,m=document.createElement("a");m.href=u,m.download="data.json",m.click()},G=async({baseUrl:u,options:m})=>await(await fetch(`${u}lesan`,m)).json(),W=(u,m,T)=>{for(let c in u){typeof u[c]=="object"&&W(u[c],m,T);let L=u[c],K=[];if(typeof L=="string"&&L.includes("{")){if(L.startsWith("{faker"))K.push(L.slice(1,L.lastIndexOf("}")));else{let V=[];for(let E=0;E{K.push(L.slice(E+1,k[R]))})}K.forEach(V=>{if(V.startsWith("faker")){let k=V.split("."),E=k[2],R=null;E.endsWith(")")&&(R=E.slice(E.indexOf("(")+1,E.indexOf(")")).replaceAll("'",'"'),E=E.slice(0,E.indexOf("(")));let P=St[k[1]][E](R&&JSON.parse(R));T.push({key:V,value:P}),u[c]=u[c].replace(`{${V}}`,P)}for(let k of m)k.key===V&&(T.push({key:u[c],value:u[c].replace(`{${V}}`,k.value)}),u[c]=u[c].replace(`{${V}}`,k.value));/^-?\d+$/.test(u[c])&&(u[c]=Number(u[c]))})}}return T},Q=async()=>{let u=new Set;for await(let m of t){let T,c=JSON.parse(m.bodyHeaders).body,L=A();for(let k=0;k{for(let _ of d)if(_.value===w)return _};T=await G({baseUrl:a,options:x});let v=performance.now()-E,y={id:A(),request:{...x,body:R.body},response:T,responseTime:v};p(w=>{let d=w.sequenceDetail,_=d.findIndex(z=>z.id===L),U=1;return _!==-1?(d[_].results.push(y),U=d[_].results.length,d[_].bestTime=d[_].bestTime.timev?d[_].worstTime:{resultIdx:U,time:v},T.success?d[_].success=d[_].success+1:d[_].fails=d[_].fails+1,d[_].time=d[_].time+v,d[_].repeat=d[_].repeat+1):d.push({id:L,bodyHeader:m.bodyHeaders,time:v,repeat:1,success:T.success?1:0,fails:T.success?0:1,bestTime:{resultIdx:U,time:v},worstTime:{resultIdx:U,time:v},captures:m.captures.map(({key:z,value:ie})=>({key:z,value:ie,sequenceIdx:d.length+1,model:R.body.model,act:R.body.act})),usedCaptures:P.map(({key:z,value:ie})=>{let ee=r(ie,u);return{key:z,value:ie,captured:ee?.captured,sequenceIdx:ee?.sequenceIdx||ee?.sequenceIdx===0?ee?.sequenceIdx+1:void 0,model:ee?.model,act:ee?.act}}),results:[y]}),{allReqPerformance:w.allReqPerformance+v,numberRequest:w.numberRequest+1,success:T.success?w.success+1:w.success,fails:T.success?w.fails:w.fails+1,bestTime:w.bestTime.timev?w.worstTime:{resultIdx:U,sequenceIdx:d.length,act:R.body.act,model:R.body.model,time:v},sequenceDetail:d,allCaptureItems:Array.from(u)}})}[...m.captures].filter(k=>k.key&&k.value).map(k=>{let E=k.value.split("["),R=[];return E.forEach(P=>{let x=P.slice(0,P.indexOf("]"));isNaN(Number(x))||(x=Number(x)),R.push(x)}),R.shift(),{key:k.key,parsedValue:R,value:k.value}}).forEach(k=>{if(k.parsedValue.length>0){let E=T;k.parsedValue.forEach(R=>{E=E[R]}),u.add({key:k.key,value:E,captured:k.value,act:c.act,model:c.model,sequenceIdx:i.sequenceDetail.length-1})}})}},O=(u,m,T)=>{let c=[...t];c[u][m]=T,s([...c])},q=J(),$=u=>q.current.childNodes[u-1].scrollIntoView({behavior:"smooth",block:"start"});return e("div",{className:"e2e-container"},b==="result"?e("div",{className:"e2e-container--sequence-container"},e("div",{className:"results-buttons--back-export"},e("button",{className:"btn e2e-back-button",onClick:()=>{document.getElementById("modal")?.scroll({top:0,behavior:"smooth"}),p(n),S("e2e")}},e(fe,null),e("span",null,"Back")),e("button",{className:"btn e2e-back-button e2e-export_results-button",onClick:Z},e(X,null),e("span",null,"Export"))),e("div",{className:"e2e-container--sequence-container--information-container"},e("span",{className:"information-container-label"},"Information"),e("div",{className:"information-container--request"},e("span",{className:"information-container-label"},"Requests")," ",e("div",{className:"information-container--request--sections"},e("p",{className:"information-container--request--sections--item"},"All Request Count:"," ",e("span",{className:"information-container--request--sections--item--content"},i.numberRequest)," ","times")," ",e("p",{className:"information-container--request--sections--item"}," ","All Request Time:"," ",e("span",{className:"information-container--request--sections--item--content"},i.allReqPerformance)," ","ms")),e("div",{className:"information-container--request--sections"},e("p",{className:"information-container--request--sections--item"},"All ",e("span",{className:"e2e-success"},"Success")," Request:"," ",e("span",{className:"information-container--request--sections--item--content"},i.success," ")," ","times"),e("p",{className:"information-container--request--sections--item"},"All ",e("span",{className:"e2e-fail"},"Fails")," Request :"," ",e("span",{className:"information-container--request--sections--item--content"},i.fails," "),"times"))),e("div",{className:"information-container--times"},e("span",{className:"information-container-label"},"Times")," ",e("ul",{className:"information-container--times--sections"},e("li",null," ",e("span",{className:"e2e-best"},"Best")," Request Time:"," ",e("span",{className:"e2e-best"},i.bestTime.time," "),"ms"," "),e("li",null," ","Seqeunce Number:"," ",e("span",{onClick:()=>{$(i.bestTime.sequenceIdx)},className:"information-container--request--sections--item--content e2e-sequensce-number"},i.bestTime.sequenceIdx," ")),e("li",null," ","Request Number:"," ",e("span",{className:"information-container--request--sections--item--content"},i.bestTime.resultIdx)," "),e("li",null,"Model:"," ",e("span",{className:"information-container--request--sections--item--content"},i.bestTime.model," ")," "),e("li",null,"Act:"," ",e("span",{className:"information-container--request--sections--item--content"},i.bestTime.act," "))),e("ul",{className:"information-container--times--sections"},e("li",null,"Worst Request Time:"," ",e("span",{className:"information-container--request--sections--item--content"},i.worstTime.time)," ","ms"," "),e("li",null," ","Seqeunce Number:"," ",e("span",{onClick:()=>{$(i.worstTime.sequenceIdx)},className:"information-container--request--sections--item--content e2e-sequensce-number"},i.worstTime.sequenceIdx," ")),e("li",null," ","Request Number:"," ",e("span",{className:"information-container--request--sections--item--content"},i.worstTime.resultIdx," ")),e("li",null,"Model:"," ",e("span",{className:"information-container--request--sections--item--content"},i.worstTime.model)),e("li",null,"act:"," ",e("span",{className:"information-container--request--sections--item--content"},i.worstTime.act)))),i.allCaptureItems.length>0&&e("div",{className:"information-container--captures"},e("span",{className:"information-container-label"},"Captures Information")," ",i.allCaptureItems.map(u=>e("ul",{className:"information-container--captures--sections",key:A()},e("span",{className:"information-container-label"},u.key),e("li",null,"Captured From:"," ",e("span",{className:"information-container--request--sections--item--content"},u.captured)),e("li",null,"Value Of"," ",e("span",{className:"information-container--request--sections--item--content"},": ",u.value)),e("li",null,"Model :"," ",e("span",{className:"information-container--request--sections--item--content"},u.model)),e("li",null,"Act :"," ",e("span",{className:"information-container--request--sections--item--content"},u.act)),e("li",null,"Captured Inside Sequnce Number:"," ",e("span",{className:"information-container--request--sections--item--content"},u.sequenceIdx)))))),e("div",{className:"e2e-sequesnce-wrapper",ref:q},i.sequenceDetail.map((u,m)=>e(Ye,{sequence:u,index:m})))):b==="e2e"?e(H,null,e("div",{className:"sidebar__section sidebar__section--headers"},t.map((u,m)=>e(H,{key:u.id},e("div",{className:"sidebar__input-double",key:u.id},e("div",{className:"e2e-move-buttons"},e("div",{className:"e2e-move-div",onClick:()=>F(m)},e(te,null)),t.length>1&&e(H,null,e("div",{className:"e2e-move-div",onClick:()=>l(m,m-1)},e(Ce,null)),e("div",{className:"e2e-move-div",onClick:()=>l(m,m+1)},e(ge,null)),e("div",{className:"e2e-move-div e2e-move-close",onClick:()=>g(m)},e(Y,null)))),e("div",{className:"sidebar__section-body-heading"},e("div",{className:"sidebar__section-heading"},"set test body and headers"),e("textarea",{placeholder:"please paste a request body here",value:u.bodyHeaders,name:`${u.id}-body`,rows:18,onChange:T=>O(m,"bodyHeaders",T.target.value)})),e("div",{className:"sidebar__section-capture"},e("div",{className:"e2e_sidebar__section-heading"},"set repeat time"),e("div",{className:"repeat__number"},e("input",{className:"input",min:1,placeholder:"set repeat number",value:u.repeat,name:`${u.id}-repeat`,type:"number",onChange:T=>O(m,"repeat",Math.abs(T.target.value))}),e("button",{className:"e2e-back-button e2e-export_results-button",onClick:()=>O(m,"repeat",t[m].repeat+1)},"+"),e("button",{className:"e2e-back-button e2e-export_results-button",onClick:()=>O(m,"repeat",t[m].repeat>2?t[m].repeat-1:1)},"-")),e("div",{className:"e2e_sidebar__section-heading"},"capture variables"),e("button",{className:"btn btn--add e2e-back-button e2e-export_results-button e2e-add-capture ",onClick:()=>O(m,"captures",[...t[m].captures,{key:"",value:""}])},"add capture"),u.captures.map((T,c)=>e(H,{key:`${u.id}-${c}`},e("div",{className:"sidebar__section-add-capture",style:{position:"relative"}},e("span",{className:"section-add-capture__delete-button",onClick:()=>O(m,"captures",[...t[m].captures.slice(0,c),...t[m].captures.slice(c+1,t[m].captures.length)]),style:{position:"absolute",zIndex:"2"}},e(Y,null)),e("input",{className:"input",placeholder:"set a variable name",value:T.key,onChange:L=>O(m,"captures",[...t[m].captures.slice(0,c),{key:L.target.value,value:t[m].captures[c].value},...t[m].captures.slice(c+1,t[m].captures.length)])}),e("input",{className:"input",placeholder:"set a value for variable",value:T.value,onChange:L=>O(m,"captures",[...t[m].captures.slice(0,c),{key:t[m].captures[c].key,value:L.target.value},...t[m].captures.slice(c+1,t[m].captures.length)])}))))))))),e("button",{className:"btn btn-show-results-buttons ",onClick:()=>f(!o)},"show btn"),e("div",{className:"results-buttons","data-show":o===!0},e("button",{className:"btn btn-e2e-action e2e-back-button e2e-export_results-button",onClick:()=>{s([...t,me()])}},e(te,null),e("span",null,"Add")),e("button",{className:"btn btn-e2e-action e2e-back-button e2e-run-botton e2e-export_results-button",onClick:async()=>{S("result"),await Q()}},e(ye,null),e("span",null,"Run E2E Test")),e("input",{id:"actual-btn",type:"file",onChange:I,hidden:!0}),e("label",{htmlFor:"actual-btn",className:"btn btn-e2e-action e2e-back-button e2e-export_results-button"},e(be,null),e("span",null,"Import")),e("button",{className:"btn btn-e2e-action e2e-back-button e2e-export_results-button",onClick:C},e(X,null),e("span",null,"Export")),e("a",{href:"https://miaadteam.github.io/lesan/playground.html",target:"_blank",className:"btn btn-e2e-action e2e-back-button e2e-export_results-button"},e(ae,null),e("span",null,"Help")))):"")}function Ke(a){let t=Math.floor(a/36e5),s=Math.floor(a%36e5/6e4),n=Math.floor(a%36e4%6e4/1e3);return t>0?`${t}h ${s}m ${n}s`:s>0?`${s}m ${n}s`:n>0?`${n}s`:`${a}ms`}var Xe=(a,t)=>{let s=J(!0);h(()=>{let n=()=>{};if(s.current?s.current=!1:n=a(),n&&typeof n=="function")return n},t)};function ke(){return e("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 105.7 122.88",width:20},e("path",{fill:"white",d:"M30.46,14.57V5.22A5.18,5.18,0,0,1,32,1.55v0A5.19,5.19,0,0,1,35.68,0H70a5.22,5.22,0,0,1,3.67,1.53l0,0a5.22,5.22,0,0,1,1.53,3.67v9.35h27.08a3.36,3.36,0,0,1,3.38,3.37V29.58A3.38,3.38,0,0,1,102.32,33H98.51l-8.3,87.22a3,3,0,0,1-2.95,2.69H18.43a3,3,0,0,1-3-2.95L7.19,33H3.37A3.38,3.38,0,0,1,0,29.58V17.94a3.36,3.36,0,0,1,3.37-3.37Zm36.27,0V8.51H39v6.06ZM49.48,49.25a3.4,3.4,0,0,1,6.8,0v51.81a3.4,3.4,0,1,1-6.8,0V49.25ZM69.59,49a3.4,3.4,0,1,1,6.78.42L73,101.27a3.4,3.4,0,0,1-6.78-.43L69.59,49Zm-40.26.42A3.39,3.39,0,1,1,36.1,49l3.41,51.8a3.39,3.39,0,1,1-6.77.43L29.33,49.46ZM92.51,33.38H13.19l7.94,83.55H84.56l8-83.55Z"}))}function Qe({setFormFromHistory:a}){let{history:t,setHistory:s,deleteItemHistory:n}=B(),[o,f]=N("");return Xe(()=>{localStorage.setItem("localHistory",JSON.stringify(t))},[t]),e(H,null,t&&t?.length>0?e("div",null,e("br",null),t.map((i,p)=>e("div",{className:"container-detail",id:i.id},e("section",{className:"container-re"},e("div",{style:{position:"relative",borderBottom:"1px solid gainsboro"}},e("span",{className:"container-re-title"},"REQUEST"),e("span",{className:"history-re-detail-date"},i.reqDate)),e("div",{className:"container-re-detail"},e("div",{className:"container-re-detail-title"}," ",e(j,{jsonData:i.request.body.model}),e("span",null,"|"),e("div",null,e(j,{jsonData:i.request.body.act}))),o===i.id?e("button",{onClick:()=>f(""),className:"history-re-detail-button"},"Hide",e("span",{className:"history-re-detail-button-icon"},"\u2013")):e("button",{onClick:()=>{f(i.id),document.getElementById(i.id)?.scrollIntoView()},className:"history-re-detail-button"},"Show"," ",e("span",{className:"history-re-detail-button-icon"},"+"))),e("div",{className:"history-re-detail-complete","data-show":o===i.id}," ",e(j,{jsonData:i.request}))),e("section",{className:"container-re container-response"},e("div",{className:"history-re-title_delete",style:{position:"relative",borderBottom:"1px solid gainsboro"}},e("span",{className:"history-re-delete",onClick:l=>{l.stopPropagation(),n(p)}},e(Y,null)),e("span",{className:"container-re-title history-response-title"},"RESPONSE"),e("span",{className:"history-re-detail-date history-response-took"},Ke(i.response.tookTime))),e("div",{className:"container-re-detail"},e("div",{className:"history-re-detail-title"},e("div",{className:"history-re-response-title"}," ",e("span",{className:"history-re-response-title-status"},"success:"),e("div",{className:"history-re-response-info"},e(j,{jsonData:i.response.success})))),e("button",{onClick:()=>a(i.request),className:"history-re-detail-button"},"Use"," ",e("span",{className:"history-re-detail-button-icon"},"\u279C"," "))),e("div",{className:"history-re-detail-complete","data-show":o===i.id}," ",e(j,{jsonData:i.response})))))):e("span",{className:"no-history"},'"There is no history to display"'),t&&t.length>0?e("div",{className:"clear-history"},e("button",{className:"btn clear-history-button tooltip",onClick:()=>{confirm("Clear All History?")==!0&&s([])}},e(ke,null),e("span",{className:"tooltip-text"},"Clear History"))):"")}function xe(){return e("svg",{width:"25px",viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M4 6V19C4 20.6569 5.34315 22 7 22H17C18.6569 22 20 20.6569 20 19V9C20 7.34315 18.6569 6 17 6H4ZM4 6V5",stroke:"lightcoral","stroke-width":"1.5"})," ",e("path",{d:"M18 6.00002V6.75002H18.75V6.00002H18ZM15.7172 2.32614L15.6111 1.58368L15.7172 2.32614ZM4.91959 3.86865L4.81353 3.12619H4.81353L4.91959 3.86865ZM5.07107 6.75002H18V5.25002H5.07107V6.75002ZM18.75 6.00002V4.30604H17.25V6.00002H18.75ZM15.6111 1.58368L4.81353 3.12619L5.02566 4.61111L15.8232 3.0686L15.6111 1.58368ZM4.81353 3.12619C3.91638 3.25435 3.25 4.0227 3.25 4.92895H4.75C4.75 4.76917 4.86749 4.63371 5.02566 4.61111L4.81353 3.12619ZM18.75 4.30604C18.75 2.63253 17.2678 1.34701 15.6111 1.58368L15.8232 3.0686C16.5763 2.96103 17.25 3.54535 17.25 4.30604H18.75ZM5.07107 5.25002C4.89375 5.25002 4.75 5.10627 4.75 4.92895H3.25C3.25 5.9347 4.06532 6.75002 5.07107 6.75002V5.25002Z",fill:"lightcoral"})," ",e("path",{opacity:"0.5",d:"M8 12H16",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round"})," ",e("path",{opacity:"0.5",d:"M8 15.5H13.5",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round"})," "))}function Re(){return e("svg",{width:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd",opacity:"0.5","clip-rule":"evenodd",d:"M5.07868 5.06891C8.87402 1.27893 15.0437 1.31923 18.8622 5.13778C22.6824 8.95797 22.7211 15.1313 18.9262 18.9262C15.1312 22.7211 8.95793 22.6824 5.13774 18.8622C2.87389 16.5984 1.93904 13.5099 2.34047 10.5812C2.39672 10.1708 2.775 9.88377 3.18537 9.94002C3.59575 9.99627 3.88282 10.3745 3.82658 10.7849C3.4866 13.2652 4.27782 15.881 6.1984 17.8016C9.44288 21.0461 14.6664 21.0646 17.8655 17.8655C21.0646 14.6664 21.046 9.44292 17.8015 6.19844C14.5587 2.95561 9.33889 2.93539 6.13935 6.12957L6.88705 6.13333C7.30126 6.13541 7.63535 6.47288 7.63327 6.88709C7.63119 7.3013 7.29372 7.63539 6.87951 7.63331L4.33396 7.62052C3.92269 7.61845 3.58981 7.28556 3.58774 6.8743L3.57495 4.32874C3.57286 3.91454 3.90696 3.57707 4.32117 3.57498C4.73538 3.5729 5.07285 3.907 5.07493 4.32121L5.07868 5.06891Z",fill:"lightcoral"}),e("path",{d:"M12 7.25C12.4142 7.25 12.75 7.58579 12.75 8V11.6893L15.0303 13.9697C15.3232 14.2626 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2626 15.3232 13.9697 15.0303L11.5429 12.6036C11.3554 12.416 11.25 12.1617 11.25 11.8964V8C11.25 7.58579 11.5858 7.25 12 7.25Z",fill:"lightcoral"}))}function Me(){return e("svg",{height:"25px",width:"25px",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"#000000"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("circle",{opacity:.34,style:"fill:lightcoral;",cx:"256.602",cy:"226.267",r:"171.059"})," ",e("path",{style:"fill:lightcoral",d:"M482.195,226.196C482.195,101.471,380.725,0,256.001,0S29.804,101.471,29.804,226.196 c0,7.409,6.007,13.416,13.416,13.416s13.416-6.008,13.416-13.416c0-109.93,89.434-199.363,199.363-199.363 s199.363,89.434,199.363,199.363c0,109.928-89.434,199.362-199.363,199.362h-23.276l33.282-37.255 c4.937-5.525,4.458-14.007-1.067-18.944c-5.525-4.937-14.008-4.457-18.944,1.068l-47.576,53.255c-7.788,8.718-7.788,21.866,0,30.584 l47.576,53.255c2.651,2.968,6.322,4.478,10.01,4.478c3.181,0,6.375-1.126,8.934-3.41c5.526-4.937,6.004-13.419,1.067-18.944 l-33.282-37.255h23.276C380.725,452.39,482.195,350.919,482.195,226.196z"})," "))}function Ie(){return e("svg",{fill:"lightcoral",height:"25px",width:"25px",viewBox:"0 0 436.668 436.668"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("g",null," ",e("path",{opacity:.34,d:"M203.334,85.818v59.141c4.884-0.8,9.893-1.223,15-1.223s10.116,0.423,15,1.223V85.818c14.657-5.935,25-20.296,25-37.081 c0-22.092-17.909-40-40-40s-40,17.908-40,40C178.334,65.522,188.677,79.883,203.334,85.818z"})," ",e("path",{opacity:.34,d:"M70.642,204.021l56.242,18.274c1.539-10.139,4.732-19.74,9.292-28.525L79.912,175.49 c-1.115-15.774-11.577-30.049-27.541-35.236c-21.01-6.827-43.576,4.672-50.403,25.682c-6.827,21.01,4.672,43.576,25.682,50.403 C43.614,221.525,60.468,216.126,70.642,204.021z"})," ",e("path",{opacity:.34,d:"M152.577,301.224l-34.792,47.887c-15.346-3.813-32.156,1.725-42.022,15.305c-12.985,17.872-9.023,42.887,8.849,55.872 s42.887,9.023,55.872-8.849c9.866-13.579,9.939-31.277,1.571-44.694l34.772-47.86C167.8,314.333,159.616,308.347,152.577,301.224z"})," ",e("path",{opacity:.34,d:"M318.883,349.112l-34.792-47.887c-7.039,7.122-15.223,13.109-24.25,17.661l34.772,47.86 c-8.369,13.417-8.296,31.115,1.571,44.694c12.985,17.872,38,21.834,55.872,8.849s21.834-38,8.849-55.872 C351.038,350.837,334.229,345.298,318.883,349.112z"})," ",e("path",{opacity:.34,d:"M434.699,165.936c-6.827-21.01-29.393-32.508-50.403-25.682c-15.964,5.187-26.426,19.462-27.541,35.236l-56.263,18.281 c4.559,8.784,7.752,18.386,9.292,28.525l56.242-18.274c10.174,12.105,27.028,17.504,42.992,12.318 C430.028,209.512,441.526,186.946,434.699,165.936z"})," ",e("path",{d:"M280.834,236.237c0-34.462-28.037-62.5-62.5-62.5s-62.5,28.038-62.5,62.5s28.037,62.5,62.5,62.5 S280.834,270.7,280.834,236.237z"})," ")," "))}function De(){return e("svg",{width:"25px",height:25,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M3 9.10986V14.8799C3 16.9999 3 16.9999 5 18.3499L10.5 21.5299C11.33 22.0099 12.68 22.0099 13.5 21.5299L19 18.3499C21 16.9999 21 16.9999 21 14.8899V9.10986C21 6.99986 21 6.99986 19 5.64986L13.5 2.46986C12.68 1.98986 11.33 1.98986 10.5 2.46986L5 5.64986C3 6.99986 3 6.99986 3 9.10986Z",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round",opacity:.34}),e("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}))}function Le(){return e("svg",{width:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{opacity:.5,d:"M9.74872 2.49415L18.1594 7.31987M9.74872 2.49415L2.65093 14.7455C1.31093 17.0584 2.10615 20.0159 4.42709 21.3513C6.74803 22.6867 9.7158 21.8942 11.0558 19.5813L12.5511 17.0003L14.1886 14.1738L15.902 11.2163L18.1594 7.31987M9.74872 2.49415L8.91283 2M18.1594 7.31987L19 7.80374",stroke:"lightcoral","stroke-width":"1.5","stroke-linecap":"round"}),e("path",{d:"M15.9021 11.2164L13.3441 9.74463M14.1887 14.1739L9.98577 11.7557M12.5512 17.0004L9.93848 15.4972",stroke:"lightcpral","stroke-width":"1.5","stroke-linecap":"round"}),e("path",{d:"M22 14.9166C22 16.0672 21.1046 16.9999 20 16.9999C18.8954 16.9999 18 16.0672 18 14.9166C18 14.1967 18.783 13.2358 19.3691 12.6174C19.7161 12.2512 20.2839 12.2512 20.6309 12.6174C21.217 13.2358 22 14.1967 22 14.9166Z",stroke:"lightcoral","stroke-width":"1.5"}))}function de(){return e("svg",{width:"28px",fill:"white",viewBox:"0 0 32 32",style:"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;",version:"1.1"},e("path",{d:"M9.101,7l8.899,0c1.857,-0 3.637,0.737 4.95,2.05c1.313,1.313 2.05,3.093 2.05,4.95l0,8.899c0.953,-0.195 1.837,-0.665 2.536,-1.363c0.937,-0.938 1.464,-2.21 1.464,-3.536c0,-2.977 0,-7.023 0,-10c0,-1.326 -0.527,-2.598 -1.464,-3.536c-0.938,-0.937 -2.21,-1.464 -3.536,-1.464c-2.977,0 -7.023,0 -10,0c-1.326,-0 -2.598,0.527 -3.536,1.464c-0.698,0.699 -1.168,1.583 -1.363,2.536Z"}),e("path",{d:"M23,14c0,-1.326 -0.527,-2.598 -1.464,-3.536c-0.938,-0.937 -2.21,-1.464 -3.536,-1.464c-2.977,0 -7.023,0 -10,0c-1.326,-0 -2.598,0.527 -3.536,1.464c-0.937,0.938 -1.464,2.21 -1.464,3.536c0,2.977 0,7.023 0,10c-0,1.326 0.527,2.598 1.464,3.536c0.938,0.937 2.21,1.464 3.536,1.464c2.977,-0 7.023,-0 10,-0c1.326,0 2.598,-0.527 3.536,-1.464c0.937,-0.938 1.464,-2.21 1.464,-3.536l0,-10Zm-15,10l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm0,-4l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm0,-4l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Z"}),e("g",{id:"Icon"}))}function Fe(){return e("svg",{width:25,height:25,fill:"#ffffff",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 104.778 104.778"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("g",null," ",e("path",{d:"M96.832,88.406l-23.02-39.908V21.959c4.385-1.595,7.447-5.797,7.447-10.618C81.26,5.089,76.176,0,69.928,0H42.6 c-6.251,0-11.334,5.089-11.334,11.341c0,4.815,3.07,9.017,7.457,10.618v26.55l-2.083,3.685V30.359c0-1.546-1.257-2.802-2.803-2.802 H8.723c-1.546,0-2.801,1.256-2.801,2.802v59.557c0,7.475,5.742,13.614,13.174,14.648c0.331,0.126,0.683,0.214,1.059,0.214h67.227 c4.79,0,8.433-1.762,10.282-4.979C99.503,96.598,99.208,92.543,96.832,88.406z M11.513,89.916v-6.079h8.254 c1.546,0,2.802-1.26,2.802-2.802c0-1.549-1.256-2.802-2.802-2.802h-8.254v-9.09h8.254c1.546,0,2.802-1.263,2.802-2.801 c0-1.555-1.256-2.802-2.802-2.802h-8.254v-9.097h8.254c1.546,0,2.802-1.256,2.802-2.801c0-1.55-1.256-2.803-2.802-2.803h-8.254 V33.149h19.512v56.767c0,5.095-4.375,9.248-9.756,9.248C15.883,99.17,11.513,95.011,11.513,89.916z M92.794,96.997 c-0.799,1.379-2.779,2.178-5.432,2.178H33.189c2.118-2.55,3.439-5.734,3.439-9.259V63.19c0.245-0.207,0.476-0.443,0.645-0.743 l6.679-11.82c0.236-0.422,0.364-0.898,0.364-1.379V19.776c0-1.415-1.048-2.603-2.449-2.78c-2.859-0.364-5.015-2.796-5.015-5.655 c0-3.161,2.571-5.738,5.731-5.738H69.91c3.165,0,5.734,2.577,5.734,5.738c0,2.859-2.155,5.286-5.017,5.655 c-1.401,0.178-2.446,1.365-2.446,2.78v29.472c0,0.493,0.122,0.977,0.374,1.401l23.396,40.559 C93.292,93.506,93.593,95.617,92.794,96.997z M76.466,79.53c0,5.412-4.377,9.794-9.801,9.794c-5.411,0-9.795-4.382-9.795-9.794 c0-5.406,4.384-9.795,9.795-9.795C72.089,69.735,76.466,74.124,76.466,79.53z M54.609,68.877c0,2.665-2.146,4.799-4.802,4.799 c-2.657,0-4.802-2.156-4.802-4.799c0-2.644,2.15-4.8,4.802-4.8C52.468,64.077,54.609,66.233,54.609,68.877z M58.195,58.048 c-1.672,0-3.015-1.341-3.015-3.01c0-1.667,1.343-3.009,3.015-3.009c1.663,0,3.015,1.343,3.015,3.009 C61.21,56.707,59.853,58.048,58.195,58.048z M49.534,86.315c0,1.669-1.352,3.009-3.016,3.009c-1.665,0-3.014-1.34-3.014-3.009 c0-1.663,1.349-3.016,3.014-3.016C48.182,83.3,49.534,84.652,49.534,86.315z M54.805,46.184c-2.185,0-3.956-1.771-3.956-3.957 c0-2.186,1.771-3.957,3.956-3.957c2.183,0,3.957,1.771,3.957,3.957C58.762,44.414,56.983,46.184,54.805,46.184z"})," ")," "))}function Oe(){return e("svg",{version:"1.1",viewBox:"0 0 29.756 29.756",style:"enable-background:new 0 0 29.756 29.756;"},e("path",{d:"M29.049,5.009L28.19,4.151c-0.943-0.945-2.488-0.945-3.434,0L10.172,18.737l-5.175-5.173 c-0.943-0.944-2.489-0.944-3.432,0.001l-0.858,0.857c-0.943,0.944-0.943,2.489,0,3.433l7.744,7.752 c0.944,0.943,2.489,0.943,3.433,0L29.049,8.442C29.991,7.498,29.991,5.953,29.049,5.009z"}))}function se(a){let t=J(null);return h(()=>{let s=n=>{t.current&&!t.current.contains(n?.target)&&a()};return document.addEventListener("click",s),()=>{document.removeEventListener("click",s)}},[t]),t}function oe({className:a=""}){return e("svg",{width:25,height:25,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"}," ",e("path",{d:"M6 9L12 15L18 9M12 9H12.01",stroke:"lightcoral","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))}function re({items:a,onClickItem:t,incomeActiveItem:s,canShow:n}){let[o,f]=N(!1),[i,p]=N("");h(()=>{p(s||"")},[s]);let g=se(()=>{f(!1)});return e("div",null,e("div",{className:"select",disabled:n},e("div",{className:`select--empty ${o===!0?"active-select--empty":""}`,ref:g,onClick:()=>f(!o)},e("div",{className:"select--empty--left-side"}," ",e("span",{className:`${i?"select-empty--left-side--clear":"select-empty--left-side--clear--inactive"}`,onClick:F=>{p(""),t(""),f(!1),F.stopPropagation()}},"x"),e("span",null,i)),e(oe,null)),o&&e("div",{className:"select--sub-buttons","data-show":o},a?.map((F,b)=>e("div",{className:`option ${F===i?"active-option":""}`,onClick:()=>{p(F),t(F),f(!1)}},F)))))}var Tt=({options:a,onChange:t})=>{let[s,n]=N([]),[o,f]=N(a),[i,p]=N(!1),l=S=>{if(s.includes(S)){let C=s.filter(I=>I.value!==S.value);n(C),f([...o,S]),t(C)}else{let C=o.filter(I=>I.value!==S.value);n([...s,S]),f(C),t([...s,S])}},g=()=>{n([]),t([]),f(a)},F=()=>{p(!i)},b=se(()=>{p(!1)});return e("div",{ref:b,className:"multi-select__wrapper"},e("div",{className:"multi-select__field",onClick:F},e("div",{className:"multi-select__selected-item-wrapper"},s.map(S=>e("div",{className:"multi-select__selected-item",key:S},e("div",{className:"multi-select__selected-item-text"},S.label),e("div",{className:"multi-select__selected-item-btn",role:"button",onClick:C=>{C.stopPropagation(),l(S)}},"x")))),e("div",{className:"multi-select__icons-wrapper"},s.length?e("div",{className:"multi-select__close-icon-wrapper",role:"button",onClick:S=>{S.stopPropagation(),g()}},e("span",{className:"multi-select__close-icon"},"x")):null,e("div",{className:"multi-select__arrow-icon-wrapper",role:"button"},e(oe,{className:"multi-select__arrow-icon"})))),i?e("div",{className:"multi-select__options"},o.length?o.map(S=>e("div",{key:S.value,onClick:C=>{C.stopPropagation(),l(S)},className:"multi-select__option"},e("div",{className:"multi-select__option-label"},S.label))):e("div",{className:"multi-select__option--no-option"},"No Options!")):null)},et=Tt;var Et=({baseUrl:a,options:t})=>fetch(`${a}lesan`,t).then(s=>s.json()),tt=({urlAddress:a})=>{let{activeTab:t,tabsData:s,actsObj:n,headers:o,history:f,setService:i,setSchema:p,setAct:l,setPostFields:g,setGetFields:F,setFormData:b,setHistory:S,setResponse:C,resetGetFields:I,resetPostFields:Z,addE2eForm:G,setModal:W}=B(),[Q,O]=N(!1),q=(r,v,M,y)=>{for(let w in M)M[w].type==="enums"?y[`${v}.${w}`]=r:q(r,`${v}.${w}`,M[w].schema,y);return y},$=J(null),u=r=>{let{name:v,value:M,type:y,alt:w}=r.target,d;y==="number"?d=Number(M):w==="array"||w==="boolean"?d=JSON.parse(M):d=M,b({data:{...s[t].formData,[v]:d},index:t})},m=({key:r,field:v,isMultiEnum:M=!1,formData:y})=>v.type==="array"?m({key:r,formData:y,field:v.schema,isMultiEnum:!0}):v.type==="enums"&&M?e(et,{options:Object.keys(v.schema).map(w=>({label:w,value:v.schema[w]})),onChange:w=>{let d=w.map(_=>_.value);b({data:{...y,[`set.${r}`]:d},index:t}),localStorage.setItem("localTabsData",JSON.stringify(s))}}):v.type==="enums"?e(re,{onClickItem:w=>{b({data:{...y,[`set.${r}`]:w},index:t}),localStorage.setItem("localTabsData",JSON.stringify(s))},incomeActiveItem:y[`set.${r}`],items:Object.keys(v.schema)}):e("input",{className:"input",placeholder:r,id:r,value:y[`set.${r}`],name:`set.${r}`,type:v.type==="number"?"number":"string",alt:M?"array":v.type,onChange:u}),T=({getField:r,keyName:v,margin:M})=>e("div",{style:{marginLeft:`${M+1}px`},className:"sidebar__section_container",key:`${t}.${v}`},e("div",{className:"sidebar__section-heading--subfields"},v),Object.keys(r.schema).map((y,w)=>r.schema[y].type==="enums"?e("div",{className:"input-cnt get-items",key:`${t}.${y}-${w}`},e("label",{htmlFor:y},v,".",y,":"),e("div",{className:"get-values"},e("span",{onClick:()=>{let d={...s[t].formData};delete d[`get.${v}.${y}`],b({data:d,index:t})}}),e("span",{className:s[t].formData[`get.${v}.${y}`]===0?"active":"",onClick:()=>{b({index:t,data:{...s[t].formData,[`get.${v}.${y}`]:0}})}},"0"),e("span",{className:s[t].formData[`get.${v}.${y}`]===1?"active":"",onClick:()=>{b({data:{...s[t].formData,[`get.${v}.${y}`]:1},index:t})}},"1"))):T({getField:r.schema[y],keyName:`${v}.${y}`,margin:M+1}))),c=()=>{let r=ce(s[t].formData);return{body:{method:"POST",headers:{"Content-Type":"application/json",...o},body:JSON.stringify({service:s[t].service,model:s[t].schema,act:s[t].act,details:r})}}},L=async r=>{r.preventDefault();let v=new Date().toLocaleDateString();O(!0),setTimeout(()=>{O(!1)},450);let M=performance.now(),y=await Et({baseUrl:a,options:c().body}),d=(performance.now()-M).toFixed(1);C({data:{...y,tookTime:d},index:t});let _=[{request:{...c().body,body:JSON.parse(c().body.body)},response:{...y,tookTime:d},id:A(),reqDate:v},...f];S(_),localStorage.setItem("localHistory",JSON.stringify(_)),localStorage.setItem("localTabsData",JSON.stringify(s))},K=s[t].service&&s[t].schema&&s[t].postFields&&s[t].getFields&&s[t].act,V=s[t].service,k=s[t].service&&s[t].schema,E=()=>{let r=JSON.stringify(s[t].response);navigator.clipboard.writeText(r)},R=()=>{let r=c();r.body.body=JSON.parse(r.body.body),navigator.clipboard.writeText(JSON.stringify(r))},P=()=>{let r=c();r.body.body=JSON.parse(r.body.body);let{method:v,...M}=r.body,y={id:A(),bodyHeaders:JSON.stringify({...M},null,2),repeat:1,captures:[]};G(y),W("E2E TEST")},x=(r,v)=>{if(v==="service"&&(i({data:r,index:t}),p({data:"",index:t})),v==="method"&&p({data:"",index:t}),v==="schema"&&p({data:r,index:t}),l({data:"",index:t}),I(t),Z(t),v==="action"){let M=n[s[t].service][s[t].schema][r].validator.schema;$&&$.current&&$.current.reset(),l({data:r,index:t}),F({data:M.get.schema,index:t}),g({data:M.set.schema,index:t})}b({data:{},index:t}),localStorage.setItem("localTabsData",JSON.stringify(s))};return e(H,null,e("div",{className:"sidebar"},e("div",{className:"sidebar__sections-wrapper"},e("div",{className:"sidebar__section sidebar__section--services"},e("div",{className:"sidebar__section-heading"},"select services"),e(re,{onClickItem:r=>x(r,"service"),items:Object.keys(n),incomeActiveItem:s[t].service?s[t].service:null})),e("div",{className:"sidebar__section sidebar__section--schema"},e("div",{onClick:()=>{},className:"sidebar__section-heading"},"select schema"),e(re,{canShow:!V,onClickItem:r=>x(r,"schema"),items:V?Object.keys(n[s[t].service]):[],incomeActiveItem:s[t].schema?s[t].schema:null})),e("div",{className:"sidebar__section sidebar__section--act"},e("div",{className:"sidebar__section-heading"},"select action"),e(re,{canShow:!k,onClickItem:r=>x(r,"action"),items:k?Object.keys(n[s[t].service][s[t].schema]):[],incomeActiveItem:s[t].act?s[t].act:null})))),K&&e("div",{className:"sidebar sidebar--fields"},e("form",{ref:$,onSubmit:L,className:"form--fields"},e("div",{className:"sidebar__section-heading sidebar__section-heading--fields"},"SET fields"),Object.keys(s[t].postFields).map(r=>e("div",{className:"input-cnt",key:`${t}.${r}-----`},e("label",{htmlFor:r},r," :"),m({key:r,field:s[t].postFields[r],formData:s[t].formData}))),e("div",{className:"sidebar__section-heading sidebar__section-heading--fields"},"GET fields"),e("div",{className:"input-cnt get-items border-bottom"},e("label",null,"All Items :"),e("div",{className:"get-values"},e("span",{onClick:()=>{let r=q(null,"get",s[t].getFields,{});b({data:{...s[t].formData,...r},index:t})}}),e("span",{onClick:()=>{let r=q(0,"get",s[t].getFields,{});b({data:{...s[t].formData,...r},index:t})}},"0"),e("span",{onClick:()=>{let r=q(1,"get",s[t].getFields,{});b({data:{...s[t].formData,...r},index:t})}},"1"))),Object.keys(s[t].getFields).map(r=>s[t].getFields[r].type==="enums"?e("div",{className:"input-cnt get-items",key:`${t}.${r}-------`},e("label",{htmlFor:r},r,":"),e("div",{className:"get-values"},e("span",{onClick:()=>{b({data:{...s[t].formData,[`get.${r}`]:null},index:t})}}),e("span",{className:s[t].formData[`get.${r}`]===0?"active":"",onClick:()=>{b({data:{...s[t].formData,[`get.${r}`]:0},index:t})}},"0"),e("span",{className:s[t].formData[`get.${r}`]===1?"active":"",onClick:()=>{b({data:{...s[t].formData,[`get.${r}`]:1},index:t})}},"1"))):T({getField:s[t].getFields[r],keyName:r,margin:0})),e("div",{class:"wrapper"},e("button",{class:"send-button","data-active":Q},e("span",null,"Send"),e("div",{class:"successe"},e(Oe,null)))))),e("div",{className:"response"},s[t].response&&e("div",{class:"response-detail"},e("div",{className:"response-detail-button_title"},e("p",{className:"response-detail-title"},"Response"),e("div",{className:"response-detail-buttons"},e("div",{className:"btn response-detail-button ",onClick:()=>R()},e(de,null),e("span",{className:"tooltip-text"},"Copy Request")),e("div",{className:"btn response-detail-button ",onClick:()=>{E()}},e(de,null),e("span",{className:"tooltip-text"},"Copy Response")),e("div",{className:"btn response-detail-button ",onClick:()=>{P()}},e(Fe,null),e("span",{className:"tooltip-text"},"Run E2E Test")))),e("div",{className:"response-detail-info"},e("div",{style:{display:"flex",flexDirection:"column"}}," ",e(j,{jsonData:{body:s[t].response?.body,success:s[t].response?.success}})),e("span",{className:"response-took"},"took:",s[t].response?.tookTime," ms"),s[t].response&&s[t].response?.success===!0?e("div",{className:"success"}):e("div",{className:"fail"})))))};var wt=()=>e("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M20.04 10.1109L18.0252 8.09612L21.7071 4.41421C22.0976 4.02369 22.0976 3.39052 21.7071 3L21 2.29289C20.6095 1.90237 19.9763 1.90237 19.5858 2.29289L15.9039 5.9748L14.04 4.11089C13.754 3.82489 13.3239 3.73933 12.9502 3.89411C12.5765 4.04889 12.3329 4.41353 12.3329 4.81799V10.818C12.3329 11.3703 12.7806 11.818 13.3329 11.818H19.3329C19.7373 11.818 20.102 11.5744 20.2568 11.2007C20.4115 10.827 20.326 10.3969 20.04 10.1109Z",fill:"bisque"}),e("path",{d:"M3.96 13.8891L5.97478 15.9039L2.29289 19.5858C1.90237 19.9763 1.90237 20.6095 2.29289 21L3 21.7071C3.39052 22.0976 4.02369 22.0976 4.41421 21.7071L8.0961 18.0252L9.96 19.8891C10.246 20.1751 10.6761 20.2607 11.0498 20.1059C11.4235 19.9511 11.6671 19.5865 11.6671 19.182V13.182C11.6671 12.6297 11.2194 12.182 10.6671 12.182H4.66711C4.26265 12.182 3.89801 12.4256 3.74323 12.7993C3.58845 13.173 3.674 13.6031 3.96 13.8891Z",fill:"bisque"})),st=wt;var _t=()=>e("svg",{width:"15px",height:"15px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M7.69233 18.2781L9.70711 20.2929C9.9931 20.5789 10.0787 21.009 9.92388 21.3827C9.7691 21.7564 9.40446 22 9 22H3C2.44772 22 2 21.5523 2 21V15C2 14.5955 2.24364 14.2309 2.61732 14.0761C2.99099 13.9213 3.42111 14.0069 3.70711 14.2929L5.571 16.1568L9.25289 12.4749C9.64342 12.0844 10.2766 12.0844 10.6671 12.4749L11.3742 13.182C11.7647 13.5725 11.7647 14.2057 11.3742 14.5962L7.69233 18.2781Z",fill:"bisque"}),e("path",{d:"M16.3077 5.72187L14.2929 3.70711C14.0069 3.42111 13.9213 2.99099 14.0761 2.61732C14.2309 2.24364 14.5955 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.40446 21.7564 9.7691 21.3827 9.92388C21.009 10.0787 20.5789 9.9931 20.2929 9.70711L18.429 7.84319L14.7471 11.5251C14.3566 11.9156 13.7234 11.9156 13.3329 11.5251L12.6258 10.818C12.2352 10.4275 12.2352 9.7943 12.6258 9.40378L16.3077 5.72187Z",fill:"bisque"})),at=_t;function qe(){return e("svg",{width:25,height:25,fill:"#000000",viewBox:"0 0 24 24",id:"up-direction","data-name":"Line Color",xmlns:"http://www.w3.org/2000/svg",class:"icon line-color"},e("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),e("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),e("g",{id:"SVGRepo_iconCarrier"},e("path",{id:"secondary",d:"M10,9.66V20a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1V9.66",style:"fill: none; stroke: darkred; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"}),e("path",{id:"primary",d:"M14,9.66l3.4,2.92,2.6-3-7.35-6.3a1,1,0,0,0-1.3,0L4,9.54l2.6,3L10,9.66",style:"fill: none; stroke: darkred; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;"})))}var kt=a=>{let[t,s]=N("myBtn none"),[n,o]=N(!1),f=J(null),i=()=>{f.current.scroll,document.getElementById("modal")?.scroll({top:0,behavior:"smooth"})},p=l=>{l.currentTarget.scrollTop>20?s("myBtn"):s("none")};return e("div",{className:"modal-overlay",onClick:a.toggle},e("div",{className:n?"modal-box-fullscreen":"modal-box",onClick:l=>l.stopPropagation()},e("div",{className:"action-modal"},e("span",{className:"modal-close",onClick:a.toggle},e(Y,null)),e("span",{className:"modal-fullscreen",onClick:()=>o(!n)},n?e(st,null):e(at,null)),e("span",{className:"modal-title"},a.title)),e("div",{className:"modal-content",id:"modal",ref:f,onScroll:p},a.children,e("div",{className:t},e("button",{className:"myBtn-active tooltip",onClick:()=>i()},e(qe,null),e("span",{className:"tooltip-text"},"Go To Top"))))))},nt=kt;var ot=()=>{let{schemasObj:a}=B(),[t,s]=N({});h(()=>{let p={};for(let l in a){p[l]={...p[l],pure:a[l].pure};for(let g in a[l].mainRelations)p[l]={...p[l],mainRelations:{...p[l].mainRelations,[g]:{type:"relation",extraDetails:a[l].mainRelations[g],schema:{...a[a[l].mainRelations[g].schemaName].pure}}}};for(let g in a[l].relatedRelations)p[l]={...p[l],relatedRelations:{...p[l].relatedRelations,[g]:{type:"relation",extraDetails:a[l].relatedRelations[g],schema:{...a[a[l].relatedRelations[g].schemaName].pure}}}}}s(p)},[]);let n=()=>{let p=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(a))}`,l=document.createElement("a");l.href=p,l.download="schemas.json",l.click()},o=["color-1","color-2","color-3","color-4","color-5","color-6","color-7"],f=p=>Object.keys(p).map(l=>{let g=A();return e("div",{className:"schema"},e("div",{className:"schema-name",onClick:()=>{document.getElementById(g)?.classList.toggle("open")}},e("p",{className:"schema-title"},l),e("span",null,"...")),e("div",{className:"proceed-child-container",id:g},i(p[l])))}),i=p=>Object.keys(p).map(l=>{let g=A();return e("div",{className:`inside-schema ${o[Math.floor(Math.random()*o.length)]}`},e("div",{className:`inside ${typeof p[l]=="object"&&p[l].schema!==null&&"schema-pointer"}`,onClick:()=>{document.getElementById(g)?.classList.toggle("open")}},e("p",{className:"schema-title"},l),e("div",{className:"schema-info"}," ",e("p",{className:"schema-title schema-type"}," ",p[l].type),e("div",{className:"schema-help"},p[l].extraDetails&&e(ae,null),p[l].extraDetails&&e("div",{className:" tooltip-text"},e(j,{jsonData:p[l].extraDetails}))),typeof p[l]=="object"&&p[l].schema!==null&&e("span",null,"..."))),e("div",{id:g,className:"proceed-child"},typeof p[l]=="object"&&p[l]!==null&&p[l].schema!==null&&i(p[l].pure?p[l].pure:p[l].relatedRelations?p[l].relatedRelations:p[l].mainRelation?p[l].mainRelation:p[l].type==="relation"?p[l].schema:p[l])))});return e("div",{className:"schema-modal"},e("div",{className:"results-buttons"},e("button",{className:" schema-export-button btn e2e-back-button e2e-export_results-button",onClick:n},e(X,null),e("span",null,"Export"))),e("div",{className:"schema-list"},f(t)))};function pe(){return e("svg",{width:25,height:25,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"M7.75 11.9999L10.58 14.8299L16.25 9.16992",stroke:"lightcoral","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," ",e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z",fill:"bisque"}))}function rt({configUrl:a}){let[t,s]=N("no"),n=()=>{setTimeout(()=>{s("no")},1e3)},o=b=>{p[b],p.splice(b,1),l([...p])},{headers:f,setHeader:i}=B(),[p,l]=N([{key:"",value:""}]),[g,F]=N("");return h(()=>{let b=[];for(let S in f)b.push({key:S,value:f[S]});l(b)},[]),e("div",{className:"setting modal-content"},e("div",{className:"url"},e("p",{className:"url-title"},"Fetch Config"),e("div",{className:"url-detail"}," ",e("input",{className:"input url-input ",placeholder:"Set URL",onChange:b=>F(b.target.value)}),e("button",{className:"setting_fetch-config--apply-button e2e-back-button e2e-add-capture ",onClick:()=>{a(g),s("yes"),n()}},e(pe,null),e("span",null,t==="yes"?"Applyed!":"Apply")))),e("div",{className:"sidebar__section sidebar__section--headers"},e("div",{className:"sidebar__section-heading setting_heading"}," ",e("span",{className:"setting_heading--title"},"Set Headers"),e("button",{className:"setting_add-header--button e2e-back-button e2e-export_results-button e2e-add-capture ",onClick:()=>{l([...p,{key:"",value:""}])}},e(te,null),e("span",null,"Add Header"))),e("div",{className:"setting_container--setheaders"},e("div",{className:"setting_set-headers"},p?.map((b,S)=>e("div",{key:`${S}____`,className:"setting_set-headers--inputs"},e("div",{className:"setting__set-headers--key-value setting__set-headers--key"},e("span",null,"Key:"),e("input",{className:"setting_set-headers--inputs--key input",placeholder:"Authotization",value:b.key,onChange:C=>{l(I=>(I[S].key=C.target.value,I))}})),e("div",{className:"setting__set-headers--key-value setting__set-headers--value"},e("span",null,"Value:"),e("input",{className:"setting_set-headers--inputs--value input",placeholder:"some string ...",value:b.value,onChange:C=>{l(I=>(I[S].value=C.target.value,I))}})),p.length>1&&e("div",{className:"setting_set-headers--delete-button e2e-move-div e2e-move-close",onClick:()=>o(S)},e(Y,null))))),e("button",{className:"setting_set-headers--apply-button e2e-back-button e2e-add-capture ",onClick:()=>{let b={};for(let S of p){let{key:C,value:I}=S;b[C]=I}i(b),s("yess"),n()}},e(pe,null),e("span",null,t==="yess"?"Applyed!":"Apply")))))}var xt=({baseUrl:a})=>fetch(`${a}playground/static/get/schemas`).then(t=>t.json()),it=()=>{let{tabsData:a,setTabsData:t,activeTab:s,actsObj:n,addTab:o,setActiveTab:f,setService:i,setSchema:p,setAct:l,setPostFields:g,setGetFields:F,setFormData:b,setHistory:S,setResponse:C,resetGetFields:I,closeTab:Z,resetPostFields:G,setSchemasObj:W,setActsObj:Q,setModal:O,modal:q}=B(),[$,u]=N(""),[m,T]=N(!1),c=()=>window&&window.location?`${new URL(window.location.href).origin}/`:"http://localhost:1366/",[L,K]=N(""),k=se(()=>{T(!1)});h(()=>{E(c());let x=JSON.parse(localStorage.getItem("localHistory"));x&&S(x)},[]);let E=x=>{x&&K(x),i({data:"",index:s}),p({data:"",index:s}),I(s),G(s),b({data:{},index:s}),xt({baseUrl:x||L}).then(({schemas:r,acts:v})=>{Q(v),W(r);let M=localStorage.getItem("localTabsData");if(M){M=JSON.parse(M);let y=[],w=d=>{y.pop();let _=ce(d.formData);for(let z in _.set)v[d.service][d.schema][d.act].validator.schema.set.schema[z]===void 0&&delete _.set[z];for(let z in _.get)v[d.service][d.schema][d.act].validator.schema.get.schema[z]===void 0&&delete _.get[z];let U=le(_,{},"");d.postFields=v[d.service][d.schema][d.act].validator.schema.set.schema,d.getFields=v[d.service][d.schema][d.act].validator.schema.get.schema,y.push({...d,formData:U})};for(let d of M)d.service&&d.service in v&&y.push(d),d.schema&&!(d.schema in v[d.service])&&y.pop(),d.act&&!(d.act in v[d.service][d.schema])&&y.pop(),d.service&&d.schema&&d.act&&d.act in v[d.service][d.schema]&&w(d);y.length<1&&y.push({service:"",schema:"",act:"",postFields:{},getFields:{},formData:{},response:null}),t(y)}})},R=()=>{O(null)},P=x=>{i({data:x.body.service,index:s}),p({data:x.body.model,index:s}),l({data:x.body.act,index:s});let r=n[x.body.service][x.body.model][x.body.act].validator.schema;F({data:r.get.schema,index:s}),g({data:r.set.schema,index:s}),C({data:null,index:s});let v=le(x.body.details,{},"");b({data:v,index:s}),R()};return e("div",{className:"cnt"},e("div",{className:"tabs-container",style:{display:"flex"}},a.map((x,r)=>e(H,null,e("div",{className:"tab-name","data-tab":s===r,onClick:()=>{f(r)}}," ",e("span",{title:a[r].act?`${a[r].schema} | ${a[r].act}`:a[r].schema?`${a[r].service} | ${a[r].schema}`:a[r].service?a[r].service:`Tab ${r}`}," ",a[r].act?`${a[r].schema} | ${a[r].act}`:a[r].schema?`${a[r].service} | ${a[r].schema}`:a[r].service?a[r].service:`Tab ${r}`),e("span",{className:` tab-close ${s===r?"active-tab-close":""}`,onClick:v=>{v.stopPropagation(),Z(r)},title:"Close tab"},"x")))),e("span",{className:"add-tab",title:"Open a new tab",onClick:()=>{o(null),localStorage.setItem("localTabsData",JSON.stringify(a))}},"+")),e(tt,{urlAddress:L}),e("button",{ref:k,className:"media--main-btn-wrapper ",onClick:()=>{T(!m)}},"menu"),e("div",{className:"main-btn-wrapper","data-show":m===!0},e("span",{className:"btn btn-modal ",onClick:()=>E()},e("span",{className:"btn-modal-title"},"Refetch"),e(Me,null)),e("span",{className:"btn btn-modal ",onClick:()=>O("SETTING")},e("span",{className:"btn-modal-title"},"Setting"),e(De,null)),e("span",{className:"btn btn-modal",onClick:()=>O("HISTORY")},e("span",{className:"btn-modal-title"},"History"),e(Re,null)),e("span",{className:"btn btn-modal",onClick:()=>O("E2E TEST")},e("span",{className:"btn-modal-title"},"E2E Test"),e(Le,null)),e("span",{className:" btn-modal-document","data-show":$==="document"},e("span",{className:"btn-modal-document--title","data-show":$==="document"},"Document")),e("span",{className:"btn btn-modal btn-doc",onClick:()=>O("SCHEMA"),onMouseEnter:()=>u("document"),onMouseLeave:()=>u("")},e("span",{className:"btn-modal-title"},"Schema"),e(Ie,null)),e("span",{className:"btn btn-modal btn-doc ",onClick:()=>O("ACT"),onMouseEnter:()=>u("document"),onMouseLeave:()=>u("")},e("span",{className:"btn-modal-title"},"Act"),e(xe,null))),q!==null&&e(nt,{toggle:R,title:q},q==="HISTORY"?e(Qe,{setFormFromHistory:P}):q==="SETTING"?e(rt,{configUrl:E}):q==="E2E TEST"?e(We,{baseUrl:L}):q==="SCHEMA"?e(ot,null):q==="ACT"?e(Pe,null):e(H,null)))};Ae(e(Ge,null,e(it,null)),document.getElementById("root")); //# sourceMappingURL=bundle-es.js.map diff --git a/src/server/playground/dist/bundle-es.js.map b/src/server/playground/dist/bundle-es.js.map index 2cc95d70..7032e75f 100644 --- a/src/server/playground/dist/bundle-es.js.map +++ b/src/server/playground/dist/bundle-es.js.map @@ -1,7 +1,7 @@ { "version": 3, - "sources": ["../reactDeps.ts", "../utils/uid.ts", "../comp/context/initials.ts", "../comp/context/reducer.ts", "../comp/context/provider.tsx", "../comp/ManagedLesanContext.tsx", "../utils/createNestedObjectsFromKeys.ts", "../utils/generateFormData.ts", "../comp/icon/ExportIcon.tsx", "../comp/Act.tsx", "../comp/E2E.tsx", "../comp/icon/BackIcon.tsx", "../comp/Help.tsx", "../comp/icon/AddIcon.tsx", "../comp/icon/DeleteIcon.tsx", "../comp/icon/DownIcon.tsx", "../comp/icon/HelpIcon.tsx", "../comp/icon/ImportIcon.tsx", "../comp/icon/RunIcon.tsx", "../comp/icon/UpIcon.tsx", "../comp/styles.ts", "../comp/cutify.ts", "../comp/JSONVeiwer.tsx", "../comp/icon/ChevronLeftDouble.tsx", "../comp/icon/ChevronLeftIcon.tsx", "../comp/icon/ChevronRightDouble.tsx", "../comp/icon/ChevronRightIcon.tsx", "../comp/Pagination.tsx", "../comp/icon/InfoIcon2.tsx", "../comp/icon/SortFromTopToBottomIcon.tsx", "../comp/ResultSlider.tsx", "../comp/icon/InfoIcon.tsx", "../comp/SequenceSlider.tsx", "../utils/convertMilliseconds.ts", "../comp/hooks/useNonInitialEffect.ts", "../comp/icon/DustbinIcon.tsx", "../comp/History.tsx", "../comp/icon/DocumentIcon.tsx", "../comp/icon/HistoryIcon.tsx", "../comp/icon/ReFetchIcon.tsx", "../comp/icon/SchemaIcon.tsx", "../comp/icon/SettingIcon.tsx", "../comp/icon/TestIcon.tsx", "../comp/icon/CopyIcon.tsx", "../comp/icon/RunTestIcon.tsx", "../comp/icon/SuccessIcon.tsx", "../comp/hooks/useOutsideClick.ts", "../comp/icon/ChevronDownIcon.tsx", "../comp/Selected.tsx", "../comp/MultiSelect.tsx", "../comp/Main.tsx", "../comp/icon/Fullscreen-exit.tsx", "../comp/icon/Fullscreen.tsx", "../comp/icon/Up2Icon.tsx", "../comp/Modal.tsx", "../comp/Schema.tsx", "../comp/icon/TickIcon.tsx", "../comp/Setting.tsx", "../comp/preact.tsx", "../hydrate.tsx"], - "sourcesContent": ["export {\n createContext,\n Fragment,\n h,\n hydrate,\n} from \"https://esm.sh/preact@10.5.15\";\nexport {\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useReducer,\n useRef,\n useState,\n \n} from \"https://esm.sh/preact@10.5.15/hooks\";\n\nexport type {\n FunctionalComponent,\n RefCallback,\n RefObject,\n} from \"https://esm.sh/preact@10.5.15\";\n\nexport type { Ref, EffectCallback, StateUpdater } from \"https://esm.sh/preact@10.5.15/hooks\";\n", "export const uid = () =>\n Date.now().toString(36) + Math.random().toString(36).substr(2);\n", "import { uid } from \"../../utils/uid.ts\";\nimport { IState } from \"./actionType.ts\";\n\nconst tabInitial = {\n tabsData: [\n {\n service: \"\",\n schema: \"\",\n act: \"\",\n postFields: {},\n getFields: {},\n formData: {},\n response: null,\n },\n ],\n activeTab: 0,\n setActiveTab: () => ({}),\n addTab: () => ({}),\n closeTab: () => ({}),\n setTabsData: () => ({}),\n};\n\nconst schemaInitial = {\n schemasObj: {},\n actsObj: {},\n\n setService: () => ({}),\n setMethod: () => ({}),\n setSchema: () => ({}),\n setAct: () => ({}),\n setActsObj: () => ({}),\n setSchemasObj: () => ({}),\n setPostFields: () => ({}),\n resetPostFields: () => ({}),\n setGetFields: () => ({}),\n resetGetFields: () => ({}),\n setFormData: () => ({}),\n setResponse: () => ({}),\n};\n\nconst historyInitial = {\n history: [],\n\n deleteItemHistory: () => ({}),\n\n setHistory: () => ({}),\n};\n\nconst headerInitial = {\n headers: { Authorization: \"\" },\n setHeader: () => ({}),\n};\n\nexport const e2eFirstInp = () => ({\n id: uid(),\n bodyHeaders: `\n{\n \"headers\": {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"\"\n },\n \"body\": {\n \"service\": \"main\",\n \"contents\": \"dynamic\",\n \"model\": \"\",\n \"act\": \"\",\n \"details\": {\n \"get\": {\n },\n \"set\": {\n }\n }\n}\n}\n `,\n repeat: 1,\n captures: [],\n});\n\nconst e2eInitial = {\n e2eForms: [e2eFirstInp()],\n\n setE2eForms: () => ({}),\n addE2eForm: () => ({}),\n};\n\nconst modalInitial = {\n modal: null,\n setModal: () => ({}),\n};\n\n// TODO: Have to Find Someway to Prevent from Rewriting Function Types\nexport const initialState: IState = {\n ...tabInitial,\n ...schemaInitial,\n ...historyInitial,\n ...headerInitial,\n ...e2eInitial,\n ...modalInitial,\n};\n", "import { ACTION_TYPE, IState, TAction } from \"./actionType.ts\";\n\nexport function lesanReducer(state: IState, action: TAction): IState {\n const { type, payload } = action;\n switch (type) {\n case ACTION_TYPE.SET_SERVICE: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n service: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_SCHEMA: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n schema: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_ACT: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n act: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_POST_FIELDS: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n postFields: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.RESET_POST_FIELDS: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload] = { ...copyTabsData[payload], postFields: {} };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_GET_FIELDS: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n getFields: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.RESET_GET_FIELDS: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload] = { ...copyTabsData[payload], getFields: {} };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_FORM_DATA: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n formData: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_HEADER: {\n return {\n ...state,\n headers: payload,\n };\n }\n case ACTION_TYPE.SET_HISTORY: {\n return {\n ...state,\n history: payload,\n };\n }\n\n case ACTION_TYPE.SET_TABS_DATA: {\n return {\n ...state,\n tabsData: payload,\n };\n }\n\n case ACTION_TYPE.SET_RESPONSE: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n response: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.ADD_TAB: {\n return {\n ...state,\n tabsData: [\n ...state.tabsData,\n {\n service: \"\",\n schema: \"\",\n act: \"\",\n postFields: {},\n getFields: {},\n formData: {},\n response: null,\n },\n ],\n activeTab: state.tabsData.length,\n };\n }\n case ACTION_TYPE.SET_ACTIVE_TAB: {\n return {\n ...state,\n activeTab: payload,\n };\n }\n case ACTION_TYPE.CLOSE_TAB: {\n const copyTabsData = [...state.tabsData];\n copyTabsData.length > 1 && copyTabsData.splice(payload, 1);\n return {\n ...state,\n tabsData: [...copyTabsData],\n activeTab: copyTabsData.length >= 1 &&\n state.activeTab >= payload &&\n state.activeTab !== 0\n ? state.activeTab - 1\n : state.activeTab,\n };\n }\n\n case ACTION_TYPE.DELETE_ITEM_HISTORY: {\n return {\n ...state,\n history: state.history\n .slice(0, payload)\n .concat(state.history.slice(payload + 1)),\n };\n }\n\n case ACTION_TYPE.SET_ACTS_OBJ: {\n return {\n ...state,\n actsObj: payload,\n };\n }\n case ACTION_TYPE.SET_SCHEMAS_OBJ: {\n return {\n ...state,\n schemasObj: payload,\n };\n }\n case ACTION_TYPE.SET_E2E_FORMS: {\n return {\n ...state,\n e2eForms: payload,\n };\n }\n case ACTION_TYPE.ADD_E2E_FORM: {\n return {\n ...state,\n e2eForms: [...state.e2eForms, payload],\n };\n }\n case ACTION_TYPE.OPEN_MODAL: {\n return {\n ...state,\n modal: payload,\n };\n }\n default:\n throw new Error(`Unhandled action type`);\n }\n}\n", "/** @jsx h */\nimport { h, useMemo } from \"../../reactDeps.ts\";\nimport { createContext } from \"../../reactDeps.ts\";\nimport { useCallback } from \"../../reactDeps.ts\";\nimport { useReducer } from \"../../reactDeps.ts\";\nimport { E2eForm, IState, MODAL_TYPES } from \"./actionType.ts\";\nimport { TObjectArray } from \"./actionType.ts\";\nimport { THistory } from \"./actionType.ts\";\nimport { TTabsData } from \"./actionType.ts\";\nimport { ACTION_TYPE } from \"./actionType.ts\";\nimport { initialState } from \"./initials.ts\";\nimport { lesanReducer } from \"./reducer.ts\";\n\nexport const LesanContext = createContext(initialState);\n\nexport const LesanProvider = (props: any) => {\n const [state, dispatch] = useReducer(lesanReducer, initialState);\n\n const setService = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_SERVICE, payload }),\n [dispatch],\n );\n\n const setSchema = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_SCHEMA, payload }),\n [dispatch],\n );\n\n const setAct = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_ACT, payload }),\n [dispatch],\n );\n\n const setPostFields = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_POST_FIELDS, payload }),\n [dispatch],\n );\n\n const resetPostFields = useCallback(\n (payload: number) =>\n dispatch({ type: ACTION_TYPE.RESET_POST_FIELDS, payload }),\n [dispatch],\n );\n\n const setGetFields = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_GET_FIELDS, payload }),\n [dispatch],\n );\n\n const resetGetFields = useCallback(\n (payload: number) =>\n dispatch({ type: ACTION_TYPE.RESET_GET_FIELDS, payload }),\n [dispatch],\n );\n\n const setFormData = useCallback(\n (payload: { data: any; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_FORM_DATA, payload }),\n [dispatch],\n );\n\n const setActiveTab = useCallback(\n (payload: number) =>\n dispatch({ type: ACTION_TYPE.SET_ACTIVE_TAB, payload }),\n [dispatch],\n );\n\n const addTab = useCallback(\n (payload: null) => dispatch({ type: ACTION_TYPE.ADD_TAB, payload }),\n [dispatch],\n );\n\n const closeTab = useCallback(\n (payload: number) => dispatch({ type: ACTION_TYPE.CLOSE_TAB, payload }),\n [dispatch],\n );\n\n const deleteItemHistory = useCallback(\n (payload: number) =>\n dispatch({ type: ACTION_TYPE.DELETE_ITEM_HISTORY, payload }),\n [dispatch],\n );\n\n const setHeader = useCallback(\n (payload: TObjectArray) =>\n dispatch({ type: ACTION_TYPE.SET_HEADER, payload }),\n [dispatch],\n );\n\n const setHistory = useCallback(\n (payload: THistory[]) =>\n dispatch({ type: ACTION_TYPE.SET_HISTORY, payload }),\n [dispatch],\n );\n\n const setTabsData = useCallback(\n (payload: TTabsData[]) =>\n dispatch({ type: ACTION_TYPE.SET_TABS_DATA, payload }),\n [dispatch],\n );\n\n const setResponse = useCallback(\n (payload: { data: any; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_RESPONSE, payload }),\n [dispatch],\n );\n\n const setSchemasObj = useCallback(\n (payload: Record) =>\n dispatch({ type: ACTION_TYPE.SET_SCHEMAS_OBJ, payload }),\n [dispatch],\n );\n const setActsObj = useCallback(\n (payload: Record) =>\n dispatch({ type: ACTION_TYPE.SET_ACTS_OBJ, payload }),\n [dispatch],\n );\n\n const setE2eForms = useCallback(\n (payload: E2eForm[]) =>\n dispatch({ type: ACTION_TYPE.SET_E2E_FORMS, payload }),\n [dispatch],\n );\n\n const addE2eForm = useCallback(\n (payload: E2eForm) => dispatch({ type: ACTION_TYPE.ADD_E2E_FORM, payload }),\n [dispatch],\n );\n const setModal = useCallback(\n (payload: MODAL_TYPES | null) =>\n dispatch({ type: ACTION_TYPE.OPEN_MODAL, payload }),\n [dispatch],\n );\n\n const value = useMemo(\n () => ({\n ...state,\n setService,\n setSchema,\n setAct,\n setPostFields,\n resetPostFields,\n setGetFields,\n resetGetFields,\n setFormData,\n setHeader,\n setHistory,\n setTabsData,\n setResponse,\n setActsObj,\n setSchemasObj,\n setActiveTab,\n addTab,\n closeTab,\n deleteItemHistory,\n setE2eForms,\n addE2eForm,\n setModal,\n }),\n [state],\n );\n\n return ;\n};\n", "/** @jsx h */\nimport { h, useContext } from \"../reactDeps.ts\";\nimport { LesanContext, LesanProvider } from \"./context/provider.tsx\";\n\nconst useLesan = () => {\n const context = useContext(LesanContext);\n if (context === undefined) {\n console.warn(`useLesan must be used within a LesanProvider`);\n }\n return context;\n};\n\nconst ManagedLesanContext = (props: { children: h.JSX.Element }) => {\n const { children } = props;\n\n return {children};\n};\n\nexport { ManagedLesanContext, useLesan };\n", "export const createNestedObjectsFromKeys = (\n obj: Record,\n): Record => {\n const result: Record = { get: {}, set: {} };\n\n // For each object path (property key) in the object\n for (const objectPath in obj) {\n if (obj[objectPath] || obj[objectPath] === 0 || obj[objectPath] === false) {\n // Split path into component parts\n const parts = objectPath.split(\".\");\n\n // Create sub-objects along path as needed\n let target: Record = result;\n while (parts.length > 1) {\n const part = parts.shift()!;\n target[part] = target[part] || {};\n target = target[part];\n }\n\n // Set value at end of path\n target[parts[0]] = obj[objectPath];\n }\n }\n\n return result;\n};\n", "export const generateFormData = (\n formData: Record,\n returnFormData: Record,\n keyname: string,\n) => {\n for (const key in formData) {\n typeof formData[key] === \"object\"\n ? generateFormData(\n formData[key],\n returnFormData,\n keyname ? `${keyname}.${key}` : key,\n )\n : (returnFormData[`${keyname}.${key}`] = formData[key]);\n }\n return returnFormData;\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ExportIcon() {\n return (\n \n \n\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../reactDeps.ts\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport Search from \"./icon/Search.tsx\";\nimport { uid } from \"../utils/uid.ts\";\nimport ExportIcon from \"./icon/ExportIcon.tsx\";\n\nexport function Act() {\n const { actsObj } = useLesan();\n const exportActs = () => {\n const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(\n JSON.stringify(actsObj)\n )}`;\n const link = document.createElement(\"a\");\n link.href = jsonString;\n link.download = \"acts.json\";\n\n link.click();\n };\n\n const rainbowClass = [\n \"color-1\",\n \"color-2\",\n \"color-3\",\n \"color-4\",\n \"color-5\",\n \"color-6\",\n \"color-7\",\n ];\n\n const proceedActs = (acts: Record) => {\n return Object.keys(acts).map((act: any, index) => {\n const newUid = uid();\n return (\n
\n {\n document.getElementById(newUid)?.classList.toggle(\"open\");\n }}\n >\n

{act}

\n ...\n
\n
\n {proceedChildActs(actsObj[act])}\n
\n \n );\n });\n };\n\n const proceedChildActs = (childActs: Record) => {\n return Object.keys(childActs).map((childAct: any, index) => {\n const newUid = uid();\n\n if (childActs[childAct] || childActs[childAct] === 0) {\n return (\n \n {\n document.getElementById(newUid)?.classList.toggle(\"open\");\n }}\n >\n

{childAct}

\n {childActs[childAct].type && (\n

\n {childActs[childAct].type}\n

\n )}\n
\n {\" \"}\n {typeof childActs[childAct] === \"object\" &&\n childActs[childAct].schema !== null && ...}\n
\n \n
\n {typeof childActs[childAct] === \"object\" &&\n childActs[childAct] !== null &&\n childActs[childAct].schema !== null &&\n proceedChildActs(\n childActs[childAct].validator\n ? childActs[childAct].validator.schema\n : childActs[childAct].schema\n ? childActs[childAct].schema\n : childActs[childAct]\n )}\n
\n \n );\n }\n });\n };\n\n return (\n
\n {\" \"}\n
\n \n \n Export\n \n
\n {/*
\n \n \n \n \n
*/}\n
{proceedActs(actsObj)}
\n
\n );\n}\n", "/** @jsx h */\nimport { Fragment, h, useState, useRef } from \"../reactDeps.ts\";\nimport { uid } from \"../utils/uid.ts\";\nimport { faker } from \"https://cdn.skypack.dev/@faker-js/faker\";\nimport { E2eForm, TRequest } from \"./context/actionType.ts\";\nimport { e2eFirstInp } from \"./context/initials.ts\";\nimport { Help } from \"./Help.tsx\";\nimport AddIcon from \"./icon/AddIcon.tsx\";\nimport BackIcon from \"./icon/BackIcon.tsx\";\nimport DeleteIcon from \"./icon/DeleteIcon.tsx\";\nimport DownIcon from \"./icon/DownIcon.tsx\";\nimport ExportIcon from \"./icon/ExportIcon.tsx\";\nimport HelpIcon from \"./icon/HelpIcon.tsx\";\nimport ImportIcon from \"./icon/ImportIcon.tsx\";\nimport RunIcon from \"./icon/RunIcon.tsx\";\nimport UpIcon from \"./icon/UpIcon.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport { SequenceSlider } from \"./SequenceSlider.tsx\";\n\nexport type TResults = {\n id: string;\n request: Record;\n response: Record;\n responseTime: number;\n};\n\nexport type captureType = {\n key: string;\n value: string;\n captured?: any;\n sequenceIdx?: number;\n model?: string;\n act?: string;\n};\n\nexport type TSequenceDetail = {\n id: string;\n bodyHeader: string;\n time: number;\n repeat: number;\n success: number;\n fails: number;\n bestTime: { resultIdx: number; time: number };\n worstTime: { resultIdx: number; time: number };\n captures: captureType[];\n usedCaptures: captureType[];\n results: TResults[];\n};\n\nexport type TReqDetails = {\n allReqPerformance: number;\n numberRequest: number;\n success: number;\n fails: number;\n bestTime: {\n sequenceIdx: number;\n resultIdx: number;\n time: number;\n act: string;\n model: string;\n };\n worstTime: {\n sequenceIdx: number;\n resultIdx: number;\n time: number;\n act: string;\n model: string;\n };\n sequenceDetail: TSequenceDetail[];\n allCaptureItems: captureType[];\n};\n\nexport function E2E({ baseUrl }: { baseUrl: string; bodyHeaders?: string }) {\n const { e2eForms, setE2eForms } = useLesan();\n\n const initialRequestDetail: TReqDetails = {\n allReqPerformance: 0,\n numberRequest: 0,\n success: 0,\n fails: 0,\n bestTime: {\n sequenceIdx: 0,\n resultIdx: 0,\n time: Number.MAX_SAFE_INTEGER,\n act: \"\",\n model: \"\",\n },\n worstTime: { sequenceIdx: 0, resultIdx: 0, act: \"\", model: \"\", time: 0 },\n sequenceDetail: [],\n allCaptureItems: [],\n };\n\n const [isShowE2eButton, setIsShowE2eButton] = useState(false);\n const [requestDetail, setRequestDetail] =\n useState(initialRequestDetail);\n\n const handleMove = (fromIndex: any, toIndex: any) => {\n if (fromIndex === 0 && toIndex <= 0) {\n return;\n } else {\n const element = e2eForms[fromIndex];\n e2eForms.splice(fromIndex, 1);\n e2eForms.splice(toIndex, 0, element);\n setE2eForms([...e2eForms]);\n }\n };\n\n const handleDelete = (fromIndex: any) => {\n e2eForms[fromIndex];\n e2eForms.splice(fromIndex, 1);\n setE2eForms([...e2eForms]);\n };\n\n const handleDuplicate = (fromIndex: any) => {\n const newForm = { ...e2eForms[fromIndex], id: uid() };\n setE2eForms([\n ...e2eForms.slice(0, fromIndex),\n newForm,\n ...e2eForms.slice(fromIndex, e2eForms.length),\n ]);\n };\n\n const [view, setView] = useState<\"help\" | \"e2e\" | \"result\">(\"e2e\");\n\n const exportForm = () => {\n const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(\n JSON.stringify(e2eForms)\n )}`;\n const link = document.createElement(\"a\");\n link.href = jsonString;\n link.download = \"Configdata.json\";\n\n link.click();\n };\n\n const jsonFileUpload = (e: any) => {\n const fileReader = new FileReader();\n fileReader.readAsText(e.target.files[0], \"UTF-8\");\n fileReader.onload = (e) => {\n const data = JSON.parse(e.target!.result as string);\n setE2eForms(data);\n };\n };\n\n const exportResults = () => {\n const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(\n JSON.stringify(requestDetail)\n )}`;\n const link = document.createElement(\"a\");\n link.href = jsonString;\n link.download = \"data.json\";\n\n link.click();\n };\n\n const lesanAPI = async ({\n baseUrl,\n options,\n }: {\n baseUrl: string;\n options: TRequest;\n }) => {\n const fetching = await fetch(`${baseUrl}lesan`, options);\n return await fetching.json();\n };\n\n const replaceCaptureString = (\n obj: Record,\n variablesSet: Set,\n returnCaptures: captureType[]\n ) => {\n for (const key in obj) {\n if (typeof obj[key] === \"object\") {\n replaceCaptureString(obj[key], variablesSet, returnCaptures);\n }\n\n const value = obj[key];\n\n if (typeof value === \"string\" && value.includes(\"{\")) {\n const openBraceIndexes: number[] = [];\n for (let index = 0; index < value.length; index++) {\n if (value[index] === \"{\") {\n openBraceIndexes.push(index);\n }\n }\n\n const closeBraceIndexes: number[] = [];\n for (let index = 0; index < value.length; index++) {\n if (value[index] === \"}\") {\n closeBraceIndexes.push(index);\n }\n }\n\n const variablesName = openBraceIndexes.map((openBrace, index) => {\n return value.slice(openBrace + 1, closeBraceIndexes[index]);\n });\n\n variablesName.forEach((variableName) => {\n if (variableName.startsWith(\"faker\")) {\n const parsedFaker = variableName.split(\".\");\n const callParsedFaker = (faker as any)[parsedFaker[1]][\n parsedFaker[2]\n ]();\n returnCaptures.push({\n key: variableName,\n value: callParsedFaker,\n });\n obj[key] = obj[key].replace(`{${variableName}}`, callParsedFaker);\n }\n for (const setValue of variablesSet) {\n if (setValue.key === variableName) {\n returnCaptures.push({\n key: obj[key],\n value: obj[key].replace(`{${variableName}}`, setValue.value),\n });\n obj[key] = obj[key].replace(`{${variableName}}`, setValue.value);\n }\n }\n });\n }\n }\n return returnCaptures;\n };\n\n const runE2eTest = async () => {\n const parsedCaptures = new Set();\n\n for await (const e2eForm of e2eForms) {\n const parsedHeaderBody = JSON.parse(e2eForm.bodyHeaders);\n\n const usedCaptures = replaceCaptureString(\n parsedHeaderBody,\n parsedCaptures,\n []\n );\n\n const body: TRequest = {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...parsedHeaderBody.headers,\n },\n body: JSON.stringify(parsedHeaderBody.body),\n };\n\n const findInParsedCaptures = (value: string, set: Set) => {\n for (const item of set) if (item.value === value) return item;\n };\n\n let jsonSendedRequest: any;\n\n const sequnceId = uid();\n for (let repeat = 0; repeat < e2eForm.repeat; repeat++) {\n const tResTime0 = performance.now();\n jsonSendedRequest = await lesanAPI({\n baseUrl: baseUrl,\n options: body,\n });\n const tResPerformance = performance.now() - tResTime0;\n\n const resultId = uid();\n const newResult = {\n id: resultId,\n request: { ...body, body: parsedHeaderBody.body },\n response: jsonSendedRequest,\n responseTime: tResPerformance,\n };\n\n setRequestDetail((preReqDetails) => {\n const sequnces = preReqDetails.sequenceDetail;\n const findedSequnceIdx = sequnces.findIndex(\n (sq) => sq.id === sequnceId\n );\n let resultIdx = 1;\n if (findedSequnceIdx !== -1) {\n sequnces[findedSequnceIdx].results.push(newResult);\n resultIdx = sequnces[findedSequnceIdx].results.length;\n sequnces[findedSequnceIdx].bestTime =\n sequnces[findedSequnceIdx].bestTime.time < tResPerformance\n ? sequnces[findedSequnceIdx].bestTime\n : { resultIdx, time: tResPerformance };\n sequnces[findedSequnceIdx].worstTime =\n sequnces[findedSequnceIdx].worstTime.time > tResPerformance\n ? sequnces[findedSequnceIdx].worstTime\n : { resultIdx, time: tResPerformance };\n if (jsonSendedRequest.success) {\n sequnces[findedSequnceIdx].success =\n sequnces[findedSequnceIdx].success + 1;\n } else {\n sequnces[findedSequnceIdx].fails =\n sequnces[findedSequnceIdx].fails + 1;\n }\n sequnces[findedSequnceIdx].time =\n sequnces[findedSequnceIdx].time + tResPerformance;\n sequnces[findedSequnceIdx].repeat =\n sequnces[findedSequnceIdx].repeat + 1;\n } else {\n sequnces.push({\n id: sequnceId,\n bodyHeader: e2eForm.bodyHeaders,\n time: tResPerformance,\n repeat: 1,\n success: jsonSendedRequest.success ? 1 : 0,\n fails: jsonSendedRequest.success ? 0 : 1,\n bestTime: { resultIdx, time: tResPerformance },\n worstTime: { resultIdx, time: tResPerformance },\n captures: e2eForm.captures.map(({ key, value }) => ({\n key,\n value,\n sequenceIdx: sequnces.length + 1,\n model: parsedHeaderBody.body.model,\n act: parsedHeaderBody.body.act,\n })),\n usedCaptures: usedCaptures.map(({ key, value }) => {\n const findedInsideParsedCapture = findInParsedCaptures(\n value,\n parsedCaptures\n );\n return {\n key,\n value,\n captured: findedInsideParsedCapture?.captured,\n sequenceIdx:\n findedInsideParsedCapture?.sequenceIdx ||\n findedInsideParsedCapture?.sequenceIdx === 0\n ? findedInsideParsedCapture?.sequenceIdx + 1\n : undefined,\n model: findedInsideParsedCapture?.model,\n act: findedInsideParsedCapture?.act,\n };\n }),\n results: [newResult],\n });\n }\n\n return {\n allReqPerformance:\n preReqDetails.allReqPerformance + tResPerformance,\n numberRequest: preReqDetails.numberRequest + 1,\n success: jsonSendedRequest.success\n ? preReqDetails.success + 1\n : preReqDetails.success,\n fails: jsonSendedRequest.success\n ? preReqDetails.fails\n : preReqDetails.fails + 1,\n bestTime:\n preReqDetails.bestTime.time < tResPerformance\n ? preReqDetails.bestTime\n : {\n resultIdx,\n sequenceIdx: sequnces.length,\n act: parsedHeaderBody.body.act,\n model: parsedHeaderBody.body.model,\n time: tResPerformance,\n },\n worstTime:\n preReqDetails.worstTime.time > tResPerformance\n ? preReqDetails.worstTime\n : {\n resultIdx,\n sequenceIdx: sequnces.length,\n act: parsedHeaderBody.body.act,\n model: parsedHeaderBody.body.model,\n time: tResPerformance,\n },\n sequenceDetail: sequnces,\n allCaptureItems: Array.from(parsedCaptures),\n };\n });\n }\n\n const captures = [...e2eForm.captures].filter(\n (capture) => capture.key && capture.value\n );\n\n const parsedCapuresValue = captures.map((capture) => {\n const parts = capture.value.split(\"[\");\n const parsedValue: (string | number)[] = [];\n\n parts.forEach((part: any) => {\n let slicedPart: string | number = part.slice(0, part.indexOf(\"]\"));\n if (!isNaN(Number(slicedPart))) {\n slicedPart = Number(slicedPart);\n }\n parsedValue.push(slicedPart);\n });\n parsedValue.shift();\n return { key: capture.key, parsedValue, value: capture.value };\n });\n // let getedValues: any;\n parsedCapuresValue.forEach((capture) => {\n if (capture.parsedValue.length > 0) {\n let getedValue: any = jsonSendedRequest;\n capture.parsedValue.forEach((capValue) => {\n getedValue = getedValue[capValue];\n });\n parsedCaptures.add({\n key: capture.key,\n value: getedValue,\n captured: capture.value,\n act: parsedHeaderBody.body.act,\n model: parsedHeaderBody.body.model,\n sequenceIdx: requestDetail.sequenceDetail.length - 1,\n });\n // getedValues = [...getedValue, ...e2eForm.captures];\n }\n });\n }\n };\n\n const handeE2eFormDetails = (\n idx: number,\n fieldName: keyof E2eForm,\n value: any\n ) => {\n const copy = [...e2eForms];\n (copy[idx] as any)[fieldName] = value;\n setE2eForms([...copy]);\n };\n\n const Ref = useRef();\n const handleClick = (id: any) =>\n Ref.current.childNodes[id - 1].scrollIntoView({\n behavior: \"smooth\",\n block: \"start\",\n });\n\n return (\n
\n {view === \"result\" ? (\n
\n
\n {\n document.getElementById(\"modal\")?.scroll({\n top: 0,\n behavior: \"smooth\",\n });\n setRequestDetail(initialRequestDetail);\n setView(\"e2e\");\n }}\n >\n \n Back\n \n \n \n Export\n \n
\n
\n Information\n
\n Requests{\" \"}\n
\n

\n All Request Count:{\" \"}\n \n {requestDetail.numberRequest}\n {\" \"}\n times\n

{\" \"}\n

\n {\" \"}\n All Request Time:{\" \"}\n \n {requestDetail.allReqPerformance}\n {\" \"}\n ms\n

\n
\n
\n

\n All Success Request:{\" \"}\n \n {requestDetail.success}{\" \"}\n {\" \"}\n times\n

\n

\n All Fails Request :{\" \"}\n \n {requestDetail.fails}{\" \"}\n \n times\n

\n
\n
\n
\n Times{\" \"}\n
    \n
  • \n {\" \"}\n Best Request Time:{\" \"}\n \n {requestDetail.bestTime.time}{\" \"}\n \n ms{\" \"}\n
  • \n
  • \n {\" \"}\n Seqeunce Number:{\" \"}\n {\n handleClick(requestDetail.bestTime.sequenceIdx);\n }}\n className=\"information-container--request--sections--item--content e2e-sequensce-number\"\n >\n {requestDetail.bestTime.sequenceIdx}{\" \"}\n \n
  • \n
  • \n {\" \"}\n Request Number:{\" \"}\n \n {requestDetail.bestTime.resultIdx}\n {\" \"}\n
  • \n
  • \n Model:{\" \"}\n \n {requestDetail.bestTime.model}{\" \"}\n {\" \"}\n
  • \n
  • \n Act:{\" \"}\n \n {requestDetail.bestTime.act}{\" \"}\n \n
  • \n
\n
    \n
  • \n Worst Request Time:{\" \"}\n \n {requestDetail.worstTime.time}\n {\" \"}\n ms{\" \"}\n
  • \n
  • \n {\" \"}\n Seqeunce Number:{\" \"}\n {\n handleClick(requestDetail.worstTime.sequenceIdx);\n }}\n className=\"information-container--request--sections--item--content e2e-sequensce-number\"\n >\n {requestDetail.worstTime.sequenceIdx}{\" \"}\n \n
  • \n
  • \n {\" \"}\n Request Number:{\" \"}\n \n {requestDetail.worstTime.resultIdx}{\" \"}\n \n
  • \n
  • \n Model:{\" \"}\n \n {requestDetail.worstTime.model}\n \n
  • \n
  • \n act:{\" \"}\n \n {requestDetail.worstTime.act}\n \n
  • \n
\n
\n {requestDetail.allCaptureItems.length > 0 && (\n
\n \n Captures Information\n {\" \"}\n {requestDetail.allCaptureItems.map((ci) => (\n \n \n {ci.key}\n \n
  • \n Captured From:{\" \"}\n \n {ci.captured}\n \n
  • \n
  • \n Value Of{\" \"}\n \n : {ci.value}\n \n
  • \n
  • \n Model :{\" \"}\n \n {ci.model}\n \n
  • \n
  • \n Act :{\" \"}\n \n {ci.act}\n \n
  • \n
  • \n Captured Inside Sequnce Number:{\" \"}\n \n {ci.sequenceIdx}\n \n
  • \n \n ))}\n
    \n )}\n
    \n\n
    \n {requestDetail.sequenceDetail.map((sequence, idx) => {\n return ;\n })}\n
    \n
    \n ) : view === \"e2e\" ? (\n \n
    \n {e2eForms.map((e2eForm, idx) => (\n \n
    \n
    \n handleDuplicate(idx)}\n >\n \n
    \n {e2eForms.length > 1 && (\n \n handleMove(idx, idx - 1)}\n >\n \n
    \n handleMove(idx, idx + 1)}\n >\n \n
    \n handleDelete(idx)}\n >\n \n
    \n \n )}\n \n
    \n
    \n set test body and headers\n
    \n \n handeE2eFormDetails(idx, \"bodyHeaders\", e.target.value)\n }\n />\n
    \n
    \n
    \n set repeat time\n
    \n
    \n \n handeE2eFormDetails(\n idx,\n \"repeat\",\n Math.abs(e.target.value)\n )\n }\n />\n \n handeE2eFormDetails(\n idx,\n \"repeat\",\n e2eForms[idx].repeat + 1\n )\n }\n >\n +\n \n \n handeE2eFormDetails(\n idx,\n \"repeat\",\n e2eForms[idx].repeat > 2\n ? e2eForms[idx].repeat - 1\n : 1\n )\n }\n >\n -\n \n
    \n
    \n capture variables\n
    \n \n handeE2eFormDetails(idx, \"captures\", [\n ...e2eForms[idx].captures,\n { key: \"\", value: \"\" },\n ])\n }\n >\n add capture\n \n\n {e2eForm.captures.map((capture, capId) => (\n \n
    \n \n handeE2eFormDetails(idx, \"captures\", [\n ...e2eForms[idx].captures.slice(0, capId),\n {\n key: e.target.value,\n value: e2eForms[idx].captures[capId].value,\n },\n ...e2eForms[idx].captures.slice(\n capId + 1,\n e2eForms[idx].captures.length\n ),\n ])\n }\n // onChange={(e: any) => {\n // const copy = [...e2eForms];\n // copy[idx].captures[capId].key = e.target.value;\n // setE2eForms([...copy]);\n // }}\n />\n \n handeE2eFormDetails(idx, \"captures\", [\n ...e2eForms[idx].captures.slice(0, capId),\n {\n key: e2eForms[idx].captures[capId].key,\n value: e.target.value,\n },\n ...e2eForms[idx].captures.slice(\n capId + 1,\n e2eForms[idx].captures.length\n ),\n ])\n }\n // onChange={(e: any) => {\n // const copy = [...e2eForms];\n // copy[idx].captures[capId].value =\n // e.target.value;\n // setE2eForms([...copy]);\n // }}\n />\n
    \n
    \n
    \n ))}\n
    \n \n \n ))}\n \n {\n setIsShowE2eButton(!isShowE2eButton)}\n >\n show btn\n \n }\n
    \n {\n setE2eForms([...e2eForms, e2eFirstInp()]);\n }}\n >\n \n Add\n \n {\n setView(\"result\");\n await runE2eTest();\n }}\n >\n \n Run E2E Test\n \n
    \n \n ) : view === \"help\" ? (\n \n ) : (\n \"\"\n )}\n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function BackIcon() {\n return (\n \n \n \n\n \n \n );\n}\n", "/** @jsx h */\n// import { StateUpdater } from \"https://esm.sh/v118/preact@10.5.15/hooks/src/index.js\";\nimport { StateUpdater, h, useState } from \"../reactDeps.ts\";\nimport BackIcon from \"./icon/BackIcon.tsx\";\n\ninterface IHelpProps {\n setView: StateUpdater<\"help\" | \"e2e\" | \"result\">;\n}\n\nexport const Help = ({setView}: IHelpProps) => {\n return (\n
    \n {\" \"}\n {\n setView(\"e2e\");\n }}\n >\n \n Back\n \n
    \n

    \n With E2E Test, you can test the whole application by sending a\n sequence of HTTP requests.\n

    \n

    \n In the image below, you can see the first view of the E2E test\n modal page, which contains a button bar at the top and two\n separate requests.\n

    \n \n\n
    \n\n

    \n In the button bar, you have these buttons:\n \n

      \n
    • Add: This button adds one request section.
    • \n
    • \n Run E2E Test: This button runs all requests and shows their\n results.\n
    • \n
    • \n Import: This button stands for importing an E2E config in JSON\n format.\n
    • \n
    • \n Export: This button stands for exporting an existing E2E\n config in JSON format.\n
    • \n
    • \n Help: This button switches to the help of the E2E modal page.\n
    • \n
    \n

    \n\n
    \n\n
    \n

    Each request section have 2 side

    \n \n\n
    \n\n
    \n

    \n The right side is a set of configurations for the repeat time\n of each request and capturing variables of the request\n response. In the Capture Variables section, you can add a pair\n of tuple inputs for the key name of the capture variable and\n its value. You can capture the value of a capture variable\n with braces syntax. For example, if you get back this response\n from a request:\n

    \n                    {\"{\\n\"}\n                    {\"  body: [\\n\"}\n                    {\"    {\\n\"}\n                    {\"      _id: 64c6839c50adc3cb65726934,\\n\"}\n                    {\"      name: \u0647\u0645\u062F\u0627\u0646,\\n\"}\n                    {\"      enName: Hamedan,\\n\"}\n                    {\"      abb: HM\\n\"}\n                    {\"    }\\n\"}\n                    {\"  ],\\n\"}\n                    {\"  success: true\\n\"}\n                    {\"  }\\n\"}\n                    {\"}\\n\"}\n                  
    \n You can capture _id with [body][0][_id] or for name:\n [body][0][name].\n

    \n \n
    \n\n
    \n\n
    \n \n

    \n The left side is a text area for writing headers and the body\n of the request in JSON format. In this text area, you can use\n a text parser to implement the captured value you captured\n before inside these symbols {\"{}\"}.\n

    \n
    \n\n
    \n\n

    \n Also, we have some buttons on the top right side of each request\n section. With these buttons, you can move up and down and delete\n requests.\n \n

    \n
    \n\n
    \n\n
    \n

    \n After clicking on the Run E2E Test button, you can see the\n result of each test. Also, in the result view, you can export\n the results in JSON format.\n

    \n \n
    \n\n
    \n\n
    \n

    \n Additionally, you can go to the E2E Test modal page from the\n main page by clicking on the Test icon inside the response\n header section. This way, you can add a new test section and\n prepopulate the Header and Body text areas with the sent request\n from the main page.\n \n

    \n
    \n
    \n
    \n )\n}", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function AddIcon() {\n return (\n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nconst DeleteIcon = () => {\n return (\n \n \n \n \n );\n};\n\nexport default DeleteIcon;\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function DownIcon() {\n return (\n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function HelpIcon() {\n return (\n \n \n\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ImportIcon() {\n return (\n \n \n\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function RunIcon() {\n return (\n \n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function UpIcon() {\n return (\n \n \n \n \n );\n}\n", "export enum ClassNames {\n string = \"cute-string\",\n undefined = \"cute-undefined\",\n function = \"cute-function\",\n number = \"cute-number\",\n boolean = \"cute-boolean\",\n null = \"cute-null\",\n colon = \"cute-colon\",\n key = \"cute-key\",\n}\n\nexport const pre = {\n fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial',\n // fontSize: 15,\n // lineHeight: \"20px\",\n display: \"inline-block\",\n borderRadius: 3,\n padding: \"10px 10px\",\n // background: \"#272822\",\n color: \"#f8f8f2\",\n textShadow: \"1px 1px black\",\n // overflow: \"auto\",\n whiteSpace: \"pre-wrap\",\n // margin:'0'\n // width:'100%',\n};\n", "import { ClassNames } from \"./styles.ts\";\n\nconst regEx =\n /(\"(\\\\u[a-zA-Z0-9]{4}|\\\\[^u]|[^\\\\\"])*\"(\\s*:)?|\\b(true|false|null)\\b|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)/g;\nconst syntaxHighlight = (json: Object): string => {\n const jsonString = JSON.stringify(json, replacer, 2)\n .replace(/&/g, \"&\")\n .replace(//g, \">\");\n\n return jsonString.replace(regEx, (match) => {\n let className = ClassNames.number;\n let text = match;\n\n if (/^\"/.test(match)) {\n if (/:$/.test(match)) {\n className = ClassNames.key;\n text = text.replace(\":\", `:`);\n } else {\n if (match === \"\\\"undefined\\\"\") {\n className = ClassNames.undefined;\n } else if (match === \"\\\"[Function]\\\"\") {\n className = ClassNames.function;\n } else {\n className = ClassNames.string;\n }\n }\n } else if (/true|false/.test(match)) {\n className = ClassNames.boolean;\n } else if (/null/.test(match)) {\n className = ClassNames.null;\n }\n\n return `${text}`;\n });\n};\n\nconst replacer = (_: string, value: any) => {\n if (typeof value === \"function\") {\n return \"[Function]\";\n }\n\n if (typeof value === \"undefined\") {\n return \"undefined\";\n }\n\n return value;\n};\n\nexport const cutify = (json: Object): string => {\n return syntaxHighlight(json)\n .replace(/\"/g, \"\");\n};\n", "/** @jsx h */\nimport { Fragment, FunctionalComponent, h } from \"../reactDeps.ts\";\nimport { cutify } from \"./cutify.ts\";\nimport * as styles from \"./styles.ts\";\n\ninterface JSONViewerProps {\n jsonData: any;\n}\n\nexport const JSONViewer: FunctionalComponent = ({\n jsonData,\n}) => {\n const cutifiedJson = cutify(jsonData);\n return (\n \n \n \n );\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronLeftDouble() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronLeftIcon() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronRightDouble() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronRightIcon() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport {\n h,\n useState,\n useCallback,\n useEffect,\n StateUpdater,\n} from \"../reactDeps.ts\";\nimport ChevronLeftDouble from \"./icon/ChevronLeftDouble.tsx\";\nimport ChevronLeftIcon from \"./icon/ChevronLeftIcon.tsx\";\nimport ChevronRightDouble from \"./icon/ChevronRightDouble.tsx\";\nimport ChevronRightIcon from \"./icon/ChevronRightIcon.tsx\";\n\nexport function Pagination({\n pageCountNumber,\n activePage,\n setActivePage,\n}: {\n activePage: number;\n pageCountNumber: number;\n setActivePage: StateUpdater;\n}) {\n const [pages, setPages] = useState([]);\n const [goTo, setGoTo] = useState(1);\n\n const handleChange = (event: any) => {\n setGoTo(event.target.value);\n setActivePage(event.target.value - 1);\n };\n const handleClick = () => {\n setActivePage(goTo - 1);\n };\n const pageCount = pageCountNumber;\n const buildPages = useCallback(() => {\n let start = 0,\n end = pageCount > 5 ? 5 : pageCount;\n\n if (activePage > 3 && activePage < pageCount - 3) {\n start = activePage - 1;\n end = activePage - 1 + 3;\n }\n\n if (pageCount > 5 && activePage > pageCount - 5) {\n start = pageCount - 5;\n end = pageCount - 1;\n }\n\n if (pageCount <= 5) {\n start = 0;\n end = pageCount;\n }\n\n const newPages = [];\n\n for (let i = start; i < end; i++) {\n newPages.push(i);\n }\n\n setPages(newPages);\n }, [activePage]);\n\n const onChange = (page: any) => setActivePage(page);\n\n const isActive = (page: any) => (activePage === page ? \"active\" : \"\");\n\n useEffect(() => buildPages(), [activePage]);\n\n return (\n
    \n {pageCount > 1 && (\n {\n setActivePage(0);\n }}\n >\n {\" \"}\n \n \n )}\n {pageCount > 1 && (\n {\n setActivePage(activePage === 0 ? pageCount - 1 : activePage - 1);\n }}\n >\n \n \n )}\n {(activePage >= 4 || activePage > pageCount - 5) && pageCount > 5 && (\n \n )}\n {(activePage >= 4 || activePage > pageCount - 5) && pageCount > 5 && (\n ...\n )}\n {pages.map((page: any) => (\n onChange(page)}\n >\n {page + 1}\n \n ))}\n {activePage < pageCount - 4 && pageCount > 5 && ...}\n {pageCount > 5 && (\n onChange(pageCount - 1)}\n >\n {pageCount}\n \n )}\n\n {pageCount > 1 && (\n \n setActivePage(activePage === pageCount - 1 ? 0 : activePage + 1)\n }\n >\n \n \n )}\n {pageCount > 1 && (\n {\n setActivePage(pageCount - 1);\n }}\n >\n {\" \"}\n {\" \"}\n \n )}\n {pageCount > 1 && (\n
    \n {\" \"}\n \n {\n handleClick();\n }}\n >\n Go\n \n
    \n )}\n
    \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function InfoIcon2() {\n return (\n \n \n \n \n {\" \"}\n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function SortFromTopToBottomIcon() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { StateUpdater, h, useState } from \"../reactDeps.ts\";\nimport { TResults } from \"./E2E.tsx\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { Pagination } from \"./Pagination.tsx\";\nimport InfoIcon2 from \"./icon/InfoIcon2.tsx\";\nimport SortFromTopToBottomIcon from \"./icon/SortFromTopToBottomIcon.tsx\";\n\nexport const ResultSlider = ({\n results,\n setIsShowE2eResponse,\n index,\n}: {\n results: TResults[];\n setIsShowE2eResponse: StateUpdater;\n index: number;\n}) => {\n const [activePage, setActivePage] = useState(0);\n\n // const [show, setShow] = useState(0);\n\n // const s: any = [];\n // results.map((e, i) => {\n // s.push(i);\n // });\n\n // pure pagination!\n // let e: [] = [];\n // if (s.length > 6) {\n // e = s.slice(\n // show === 2 ? show + 2 : show === 3 ? show + 2 : show,\n\n // show === 2\n // ? show + 4\n // : show < s.length - 3\n // ? show + 2\n // : show === s.length - 3\n // ? show + 1\n // : show\n // );\n // } else {\n // e = s;\n // }\n\n {\n /*
    \n setShow(0)}>{show === 0 ? show + 1 : 1}\n setShow(1)}>{show === 1 ? show + 1 : 2}\n setShow(2)}>{show === 2 ? show + 1 : 3}\n
    \n\n {show >= 2 && show <= results.length - 3 ? (\n \n ...{\" \"}\n {e.map((e: any) => (\n {\n setShow(e - 1);\n console.log(e);\n }}\n >\n {e}\n \n ))}\n {!(show === s.length - 3) && ...}\n \n ) : (\n ...\n )}\n
    \n setShow(results.length - 3)}>\n {results.length - 2}\n \n setShow(results.length - 2)}>\n {results.length - 1}\n \n setShow(results.length - 1)}>\n {results.length}\n \n
    */\n }\n\n // end pure pagination\n\n return (\n
    \n
    \n
    \n
    \n setIsShowE2eResponse(true)}\n >\n \n \n
    \n {\" \"}\n \n {index + 1}\n
    \n REQUEST\n
    \n \n
    \n
    \n
    \n RESPONSE\n \n {results[activePage].responseTime}ms\n \n
    \n \n
    \n
    \n
    \n {\" \"}\n {\" \"}\n
    \n {\" \"}\n {results.map((_re, index) => (\n setActivePage(index)}\n data-show={activePage === index}\n >\n {index + 1}\n \n ))}\n
    \n
    \n
    \n );\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function InfoIcon() {\n return (\n \n \n \n \n {\" \"}\n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\n\nimport { Fragment, h, useState } from \"../reactDeps.ts\";\nimport { TSequenceDetail } from \"./E2E.tsx\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { ResultSlider } from \"./ResultSlider.tsx\";\nimport InfoIcon from \"./icon/InfoIcon.tsx\";\nimport SortFromTopToBottomIcon from \"./icon/SortFromTopToBottomIcon.tsx\";\n\nexport function SequenceSlider({\n sequence,\n index,\n}: {\n sequence: TSequenceDetail;\n index: number;\n}) {\n const [isShowE2eResponse, setIsShowE2eResponse] = useState(true);\n\n return (\n
    \n {isShowE2eResponse ? (\n \n
    \n
    \n setIsShowE2eResponse(false)}\n >\n \n \n
    \n {\" \"}\n \n {index + 1}\n
    \n\n Body Header\n
    \n \n
    \n
    \n
    \n Description\n
    \n
    \n
    \n Requests{\" \"}\n \n All Request Count: {sequence.repeat}{\" \"}\n \n \n Success: {sequence.success}\n \n \n Fails: {sequence.fails}\n \n \n All Request Time: {sequence.time} ms\n \n \n Avrage Time For Each Request:{\" \"}\n {(sequence.time / sequence.repeat).toFixed(1)} ms\n \n
    \n
    \n Best{\" \"}\n \n Best Time: {sequence.bestTime.time} ms\n \n \n Request Number: {sequence.bestTime.resultIdx}\n \n
    \n
    \n Worst\n \n Worst Time: {sequence.worstTime.time} ms{\" \"}\n \n \n {\" \"}\n Request Number: {sequence.worstTime.resultIdx}\n \n
    \n {sequence.captures.length > 0 && (\n
    \n \n Capture Items\n {\" \"}\n {sequence.captures.map((ci) => (\n
      \n
    • \n key:{\" \"}\n \n {ci.key}\n \n
    • \n
    • \n value :{\" \"}\n \n {ci.value}\n \n
    • \n
    • \n model :{\" \"}\n \n {ci.model}\n \n
    • \n
    • \n act :{\" \"}\n \n {ci.act}\n \n
    • \n
    • \n sequnce number:{\" \"}\n \n {\" \"}\n {ci.sequenceIdx}\n \n
    • \n
    \n ))}\n
    \n )}\n\n {sequence.usedCaptures.length > 0 && (\n
    \n \n Using Capture Items\n {\" \"}\n {sequence.usedCaptures.map((ci) => (\n
      \n
    • \n key:{\" \"}\n \n {\" \"}\n {ci.key}\n \n
    • \n
    • \n captured from:{\" \"}\n \n {\" \"}\n {ci.captured}\n \n
    • \n
    • \n value:{\" \"}\n \n {\" \"}\n {ci.value}\n \n
    • \n
    • \n {\" \"}\n model :{\" \"}\n \n {\" \"}\n {ci.model}\n \n
    • \n
    • \n {\" \"}\n act :{\" \"}\n \n {ci.act}\n \n
    • \n
    • \n sequnce number:{\" \"}\n \n {ci.sequenceIdx}\n \n
    • \n
    \n ))}\n
    \n )}\n
    \n
    \n
    \n ) : (\n \n )}\n
    \n );\n}\n", "/** @jsx h */\n\nexport function ConvertMilliseconds(milliseconds: number) {\n const hours = Math.floor(milliseconds / 3600000);\n const minutes = Math.floor((milliseconds % 3600000) / 60000);\n const seconds = Math.floor(((milliseconds % 360000) % 60000) / 1000);\n\n return hours > 0\n ? `${hours}h ${minutes}m ${seconds}s`\n : minutes > 0\n ? `${minutes}m ${seconds}s`\n : seconds > 0\n ? `${seconds}s`\n : `${milliseconds}ms`;\n}\n", "/** @jsx h */\nimport { useEffect, EffectCallback, useRef } from \"../../reactDeps.ts\";\n\ntype useNonInitialEffectReturn = void | (() => void | undefined);\n\nexport const useNonInitialEffect = (\n effect: EffectCallback,\n deps?: any\n): useNonInitialEffectReturn => {\n const initialRender = useRef(true);\n\n useEffect(() => {\n let effectReturns: any = () => {\n /* Empty Return fallback */\n };\n\n if (initialRender.current) {\n initialRender.current = false;\n } else {\n effectReturns = effect();\n }\n\n if (effectReturns && typeof effectReturns === \"function\") {\n return effectReturns;\n }\n }, deps);\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function Dustbin() {\n return (\n \n \n \n );\n}\n", "/** @jsx h */\nimport { Fragment, h, useEffect, useState, useRef } from \"../reactDeps.ts\";\nimport { ConvertMilliseconds } from \"../utils/convertMilliseconds.ts\";\nimport { useNonInitialEffect } from \"./hooks/useNonInitialEffect.ts\";\nimport DeleteIcon from \"./icon/DeleteIcon.tsx\";\nimport DustbinIcon from \"./icon/DustbinIcon.tsx\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nexport function History({\n setFormFromHistory,\n}: // ,localHistory\n{\n setFormFromHistory: (form: any) => void;\n // localHistory:any\n}) {\n const { history, setHistory, deleteItemHistory } = useLesan();\n const [show, setShow] = useState(\"\");\n\n useNonInitialEffect(() => {\n localStorage.setItem(\"localHistory\", JSON.stringify(history));\n }, [history]);\n\n return (\n \n {history && history?.length > 0 ? (\n
    \n
    \n {history.map((hi, index) => (\n
    \n
    \n \n REQUEST\n {hi.reqDate}\n
    \n
    \n
    \n {\" \"}\n \n |\n
    \n \n
    \n
    \n {show === hi.id ? (\n setShow(\"\")}\n className=\"history-re-detail-button\"\n >\n Hide\n \n –\n \n \n ) : (\n {\n setShow(hi.id);\n document.getElementById(hi.id)?.scrollIntoView();\n }}\n className=\"history-re-detail-button\"\n >\n Show{\" \"}\n \n +\n \n \n )}\n
    \n \n {\" \"}\n \n
    \n \n
    \n \n {\n event.stopPropagation();\n deleteItemHistory(index);\n }}\n >\n \n \n \n RESPONSE\n \n \n {ConvertMilliseconds(hi.response.tookTime)}\n \n \n
    \n
    \n
    \n {\" \"}\n \n success:\n \n
    \n \n
    \n
    \n
    \n setFormFromHistory(hi.request)}\n className=\"history-re-detail-button\"\n >\n Use{\" \"}\n \n ➜{\" \"}\n \n \n
    \n \n {\" \"}\n \n \n
    \n \n ))}\n \n ) : (\n \"There is no history to display\"\n )}\n {history && history.length > 0 ? (\n
    \n {\n if (confirm(\"Clear All History?\") == true) {\n setHistory([]);\n }\n }}\n >\n \n Clear History\n \n
    \n ) : (\n \"\"\n )}\n
    \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function DocumentIcon() {\n return (\n \n \n \n \n \n {\" \"}\n \n {\" \"}\n \n {\" \"}\n \n {\" \"}\n \n \n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function HistoryIcon() {\n return (\n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ReFetchIcon() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function SchemaIcon() {\n return (\n \n \n \n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function SettingIcon() {\n return (\n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function TestIcon() {\n return (\n \n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function CopyIcon() {\n return (\n \n \n \n \n \n // \n // \n // \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function RunTestIcon() {\n return (\n \n \n \n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function SuccessIcon() {\n return (\n \n \n \n );\n}\n", "/** @jsx h */\nimport { Ref, useEffect, useRef } from \"../../reactDeps.ts\";\n\nexport function useOutsideClick(callback: any) {\n const ref = useRef(null);\n\n useEffect(() => {\n const handleClick = (event: any) => {\n if (ref.current && !ref.current.contains(event?.target)) {\n callback();\n }\n };\n\n document.addEventListener(\"click\", handleClick);\n\n return () => {\n document.removeEventListener(\"click\", handleClick);\n };\n }, [ref]);\n\n return ref;\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronDownIcon({\n className = \"\",\n}: {\n className?: string;\n}) {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h, useState, useEffect, Ref } from \"../reactDeps.ts\";\nimport { useOutsideClick } from \"./hooks/useOutsideClick.ts\";\nimport ChevronDownIcon from \"./icon/ChevronDownIcon.tsx\";\n\nexport function Selected({\n items,\n onClickItem,\n incomeActiveItem,\n canShow,\n}: {\n items: string[];\n onClickItem: (item: string) => void;\n incomeActiveItem?: string | null;\n canShow?: boolean;\n}) {\n const [show, setShow] = useState(false);\n const [activeItem, setActiveItem] = useState(\"\");\n\n useEffect(() => {\n setActiveItem(incomeActiveItem || \"\");\n }, [incomeActiveItem]);\n\n const handleClickOutside = () => {\n setShow(false);\n };\n\n const ref = useOutsideClick(handleClickOutside);\n\n return (\n
    \n
    \n setShow(!show)}\n >\n
    \n {\" \"}\n {\n setActiveItem(\"\");\n onClickItem(\"\");\n setShow(false);\n e.stopPropagation();\n }}\n >\n x\n \n {activeItem}\n
    \n\n \n
    \n\n {show && (\n
    \n {items?.map((item, index) => (\n {\n setActiveItem(item);\n onClickItem(item);\n setShow(false);\n }}\n >\n {item}\n
    \n ))}\n
    \n )}\n \n \n );\n}\n", "/** @jsx h */\nimport { h, FunctionalComponent, useState } from \"../reactDeps.ts\";\nimport ChevronDownIcon from \"./icon/ChevronDownIcon.tsx\";\nimport { useOutsideClick } from \"./hooks/useOutsideClick.ts\";\n\nexport interface IOption {\n value: string;\n label: string;\n}\n\ninterface MultiSelectProps {\n options: IOption[];\n onChange: (options: IOption[]) => void;\n}\n\nconst MultiSelect: FunctionalComponent = ({\n options,\n onChange,\n}) => {\n const [selectedOptions, setSelectedOptions] = useState([]);\n const [unselectedOptions, setUnselectedOptions] =\n useState(options);\n const [isOpen, setIsOpen] = useState(false);\n\n const handleOptionChange = (selectedOption: IOption) => {\n if (selectedOptions.includes(selectedOption)) {\n const filteredSelectedOptions = selectedOptions.filter(\n (option) => option.value !== selectedOption.value\n );\n setSelectedOptions(filteredSelectedOptions);\n setUnselectedOptions([...unselectedOptions, selectedOption]);\n onChange(filteredSelectedOptions);\n } else {\n const filteredUnselectedOptions = unselectedOptions.filter(\n (option) => option.value !== selectedOption.value\n );\n setSelectedOptions([...selectedOptions, selectedOption]);\n setUnselectedOptions(filteredUnselectedOptions);\n onChange([...selectedOptions, selectedOption]);\n }\n };\n\n const resetOptions = () => {\n setSelectedOptions([]);\n onChange([]);\n setUnselectedOptions(options);\n };\n\n const toggleDropdown = () => {\n setIsOpen(!isOpen);\n };\n\n const ref = useOutsideClick(() => {\n setIsOpen(false);\n });\n\n return (\n
    \n
    \n
    \n {selectedOptions.map((item) => (\n
    \n
    \n {item.label}\n
    \n {\n e.stopPropagation();\n handleOptionChange(item);\n }}\n >\n x\n
    \n
    \n ))}\n
    \n
    \n {selectedOptions.length ? (\n {\n e.stopPropagation();\n resetOptions();\n }}\n >\n x\n
    \n ) : null}\n\n
    \n \n
    \n
    \n \n {isOpen ? (\n
    \n {unselectedOptions.length ? (\n unselectedOptions.map((option) => (\n {\n e.stopPropagation();\n handleOptionChange(option);\n }}\n className=\"multi-select__option\"\n >\n
    {option.label}
    \n
    \n ))\n ) : (\n
    No Options!
    \n )}\n \n ) : null}\n \n );\n};\n\nexport default MultiSelect;\n", "/** @jsx h */\nimport { Fragment, h, useRef, useState } from \"../reactDeps.ts\";\nimport { createNestedObjectsFromKeys } from \"../utils/createNestedObjectsFromKeys.ts\";\nimport { uid } from \"../utils/uid.ts\";\nimport { E2eForm, MODAL_TYPES, TRequest } from \"./context/actionType.ts\";\nimport { ConvertMilliseconds } from \"../utils/convertMilliseconds.ts\";\nimport CopyIcon from \"./icon/CopyIcon.tsx\";\nimport RunTestIcon from \"./icon/RunTestIcon.tsx\";\nimport SuccessIcon from \"./icon/SuccessIcon.tsx\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport { Selected } from \"./Selected.tsx\";\nimport MultiSelect from \"./MultiSelect.tsx\";\n\nconst lesanAPI = ({\n baseUrl,\n options,\n}: {\n baseUrl: string;\n options: TRequest;\n}) => fetch(`${baseUrl}lesan`, options).then((res) => res.json());\n\nexport const Main = ({ urlAddress }: { urlAddress: string }) => {\n const {\n activeTab,\n tabsData,\n actsObj,\n headers,\n history,\n setService,\n setSchema,\n setAct,\n setPostFields,\n setGetFields,\n setFormData,\n setHistory,\n setResponse,\n resetGetFields,\n resetPostFields,\n addE2eForm,\n setModal,\n } = useLesan();\n\n const [active, setActive] = useState(false);\n\n const changeGetValue = (\n value: 0 | 1 | null,\n keyname: string,\n getObj: Record,\n returnObj: Record,\n ) => {\n for (const key in getObj) {\n getObj[key].type === \"enums\"\n ? (returnObj[`${keyname}.${key}`] = value)\n : changeGetValue(\n value,\n `${keyname}.${key}`,\n getObj[key].schema,\n returnObj,\n );\n }\n return returnObj;\n };\n\n const formRef = useRef(null);\n\n const handleChange = (event: any) => {\n const { name, value, type, alt } = event.target;\n let updatedValue: string | number | boolean | any[];\n\n if (type === \"number\") {\n updatedValue = Number(value);\n } else if (alt === \"array\" || alt === \"boolean\") {\n updatedValue = JSON.parse(value);\n } else {\n updatedValue = value;\n }\n\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [name]: updatedValue,\n },\n index: activeTab,\n });\n };\n\n const renderPostFields = ({\n key,\n field,\n isMultiEnum = false,\n formData,\n }: {\n key: string;\n field: Record;\n isMultiEnum?: boolean;\n formData?: any;\n }): h.JSX.Element => {\n if (field.type === \"array\") {\n return renderPostFields({\n key,\n formData,\n field: field[\"schema\"],\n isMultiEnum: true,\n });\n } else if (field[\"type\"] === \"enums\" && isMultiEnum) {\n return (\n ({\n label: schemaKey,\n value: field[\"schema\"][schemaKey],\n }))}\n onChange={(options) => {\n const value = options.map((item) => item.value);\n setFormData({\n data: {\n ...formData,\n [`set.${key}`]: value,\n },\n index: activeTab,\n });\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n }}\n >\n \n );\n } else if (field[\"type\"] === \"enums\") {\n return (\n {\n setFormData({\n data: {\n ...formData,\n [`set.${key}`]: value,\n },\n index: activeTab,\n });\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n }}\n incomeActiveItem={formData[`set.${key}`]}\n items={Object.keys(field[\"schema\"])}\n />\n );\n } else {\n return (\n \n );\n }\n };\n\n const renderGetFields = ({\n getField,\n keyName,\n margin,\n }: {\n getField: any;\n keyName: string;\n margin: number;\n }) => (\n \n
    {keyName}
    \n {Object.keys(getField[\"schema\"]).map((item, index) =>\n getField[\"schema\"][item].type === \"enums\"\n ? (\n \n \n
    \n {\n const copy = { ...tabsData[activeTab].formData };\n delete copy[`get.${keyName}.${item}`];\n setFormData({ data: copy, index: activeTab });\n }}\n >\n \n {\n setFormData({\n index: activeTab,\n data: {\n ...tabsData[activeTab].formData,\n [`get.${keyName}.${item}`]: 0,\n },\n });\n }}\n >\n 0\n \n {\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [`get.${keyName}.${item}`]: 1,\n },\n index: activeTab,\n });\n }}\n >\n 1\n \n
    \n \n )\n : (\n renderGetFields({\n getField: getField[\"schema\"][item],\n keyName: `${keyName}.${item}`,\n margin: margin + 1,\n })\n )\n )}\n \n );\n\n const requestFunction = () => {\n const details = createNestedObjectsFromKeys(tabsData[activeTab].formData);\n\n const body: TRequest = {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers,\n },\n body: JSON.stringify({\n service: tabsData[activeTab].service,\n model: tabsData[activeTab].schema,\n act: tabsData[activeTab].act,\n details,\n }),\n };\n return { body };\n };\n\n const handleSubmit = async (event: any) => {\n event.preventDefault();\n const sendRequest = new Date().toLocaleDateString();\n\n setActive(true);\n\n setTimeout(() => {\n setActive(false);\n }, 450);\n\n const t0 = performance.now();\n const jsonSendedRequest = await lesanAPI({\n baseUrl: urlAddress,\n options: requestFunction().body,\n });\n const t1 = performance.now();\n const tookTime = (t1 - t0).toFixed(1);\n\n /* event.target.reset(); */\n /* setFormData({}); */\n\n setResponse({ data: { ...jsonSendedRequest, tookTime }, index: activeTab });\n\n const newHistory = [\n {\n request: {\n ...requestFunction().body,\n body: JSON.parse(requestFunction().body.body),\n },\n response: { ...jsonSendedRequest, tookTime },\n id: uid(),\n reqDate: sendRequest,\n },\n ...history,\n ];\n setHistory(newHistory);\n localStorage.setItem(\"localHistory\", JSON.stringify(newHistory));\n\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n };\n\n const canShowRequestFields = tabsData[activeTab].service &&\n tabsData[activeTab].schema &&\n tabsData[activeTab].postFields &&\n tabsData[activeTab].getFields &&\n tabsData[activeTab].act;\n\n const canShowSchema = tabsData[activeTab].service;\n\n const canShowAct = tabsData[activeTab].service && tabsData[activeTab].schema;\n\n const copyResponse = () => {\n const response = JSON.stringify(tabsData[activeTab].response);\n navigator.clipboard.writeText(response);\n };\n\n const copyRequest = () => {\n const request: any = requestFunction();\n request.body.body = JSON.parse(request.body.body);\n navigator.clipboard.writeText(JSON.stringify(request));\n };\n\n const runE2eRequest = () => {\n const request: any = requestFunction();\n request.body.body = JSON.parse(request.body.body);\n const { method, ...rest } = request.body;\n const newE2eForm: E2eForm = {\n id: uid(),\n bodyHeaders: JSON.stringify({ ...rest }, null, 2),\n repeat: 1,\n captures: [],\n };\n addE2eForm(newE2eForm);\n setModal(MODAL_TYPES.E2E_TEST);\n };\n\n const onClickItem = (\n item: string,\n type: \"service\" | \"method\" | \"schema\" | \"action\",\n ) => {\n if (type === \"service\") {\n setService({\n data: item,\n index: activeTab,\n });\n setSchema({ data: \"\", index: activeTab });\n }\n if (type === \"method\") {\n setSchema({ data: \"\", index: activeTab });\n }\n if (type === \"schema\") {\n setSchema({ data: item, index: activeTab });\n }\n setAct({ data: \"\", index: activeTab });\n resetGetFields(activeTab);\n resetPostFields(activeTab);\n\n if (type === \"action\") {\n const actObj = (actsObj as any)[tabsData[activeTab].service][\n tabsData[activeTab].schema\n ][item][\"validator\"][\"schema\"];\n\n formRef && formRef.current && formRef.current.reset();\n setAct({ data: item, index: activeTab });\n setGetFields({\n data: actObj[\"get\"][\"schema\"],\n index: activeTab,\n });\n setPostFields({\n data: actObj[\"set\"][\"schema\"],\n index: activeTab,\n });\n }\n\n setFormData({ data: {}, index: activeTab });\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n };\n\n return (\n \n
    \n
    \n
    \n
    select services
    \n onClickItem(item, \"service\")}\n items={Object.keys(actsObj)}\n incomeActiveItem={tabsData[activeTab].service\n ? tabsData[activeTab].service\n : null}\n />\n
    \n\n
    \n console.log(canShowSchema)}\n className=\"sidebar__section-heading\"\n >\n select schema\n
    \n onClickItem(item, \"schema\")}\n items={canShowSchema\n ? Object.keys((actsObj as any)[tabsData[activeTab].service])\n : []}\n incomeActiveItem={tabsData[activeTab].schema\n ? tabsData[activeTab].schema\n : null}\n />\n
    \n\n
    \n
    select action
    \n onClickItem(item, \"action\")}\n items={canShowAct\n ? Object.keys(\n (actsObj as any)[tabsData[activeTab].service][\n tabsData[activeTab].schema\n ],\n )\n : []}\n incomeActiveItem={tabsData[activeTab].act\n ? tabsData[activeTab].act\n : null}\n />\n
    \n
    \n \n\n {canShowRequestFields && (\n
    \n
    \n
    \n SET fields\n
    \n {Object.keys(tabsData[activeTab].postFields).map((item) => (\n
    \n \n {renderPostFields({\n key: item,\n field: tabsData[activeTab].postFields[item],\n formData: tabsData[activeTab].formData,\n })}\n
    \n ))}\n
    \n GET fields\n
    \n\n
    \n \n
    \n {\n const copy = changeGetValue(\n null,\n \"get\",\n tabsData[activeTab].getFields,\n {},\n );\n\n setFormData({\n data: { ...tabsData[activeTab].formData, ...copy },\n index: activeTab,\n });\n }}\n >\n \n {\n const copy = changeGetValue(\n 0,\n \"get\",\n tabsData[activeTab].getFields,\n {},\n );\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n ...copy,\n },\n index: activeTab,\n });\n }}\n >\n 0\n \n {\n const copy = changeGetValue(\n 1,\n \"get\",\n tabsData[activeTab].getFields,\n {},\n );\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n ...copy,\n },\n index: activeTab,\n });\n }}\n >\n 1\n \n
    \n
    \n\n {Object.keys(tabsData[activeTab].getFields).map((item) =>\n tabsData[activeTab].getFields[item].type === \"enums\"\n ? (\n \n \n
    \n {\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [`get.${item}`]: null,\n },\n index: activeTab,\n });\n }}\n >\n \n {\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [`get.${item}`]: 0,\n },\n index: activeTab,\n });\n }}\n >\n 0\n \n {\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [`get.${item}`]: 1,\n },\n index: activeTab,\n });\n }}\n >\n 1\n \n
    \n
    \n )\n : (\n renderGetFields({\n getField: tabsData[activeTab].getFields[item],\n keyName: item,\n margin: 0,\n })\n )\n )}\n
    \n \n
    \n \n \n )}\n\n
    \n {tabsData[activeTab].response && (\n
    \n
    \n

    Response

    \n
    \n copyRequest()}\n >\n \n Copy Request\n
    \n {\n copyResponse();\n }}\n >\n \n Copy Response\n
    \n {\n runE2eRequest();\n }}\n >\n \n Run E2E Test\n
    \n
    \n \n
    \n
    \n {\" \"}\n \n
    \n\n \n took:\n {ConvertMilliseconds(tabsData[activeTab].response?.tookTime!)}\n \n {tabsData[activeTab].response &&\n tabsData[activeTab].response?.success === true\n ?
    \n :
    }\n
    \n \n )}\n \n
    \n );\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nconst FullScreenExit = () => {\n return (\n \n \n \n \n );\n};\n\nexport default FullScreenExit", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nconst FullScreen = () => {\n return (\n \n \n \n \n );\n};\n\nexport default FullScreen;\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function Up2Icon() {\n return (\n \n \n \n \n
    \n
    \n \n \n );\n}\n", "/** @jsx h */\nimport { h, useState, useRef } from \"../reactDeps.ts\";\nimport FullScreenExit from \"./icon/Fullscreen-exit.tsx\";\nimport FullScreen from \"./icon/Fullscreen.tsx\";\nimport Up2Icon from \"./icon/Up2Icon.tsx\";\nimport DeleteIcon from \"./icon/DeleteIcon.tsx\";\n\ninterface ModalType {\n children?: h.JSX.Element;\n toggle: () => void;\n title: string;\n}\n\nconst Modal = (props: ModalType) => {\n const [showBtn, setShowBtn] = useState(\"myBtn none\");\n const [toggleFullScreen, setToggleFullScreen] = useState(false);\n\n const divRef = useRef(null);\n\n const scrollToTop = () => {\n divRef.current!.scroll;\n document.getElementById(\"modal\")?.scroll({\n top: 0,\n behavior: \"smooth\",\n });\n };\n\n const handleScroll = (event: any) => {\n event.currentTarget.scrollTop > 20\n ? setShowBtn(\"myBtn\")\n : setShowBtn(\"none\");\n };\n\n return (\n
    \n e.stopPropagation()}\n >\n
    \n \n \n \n setToggleFullScreen(!toggleFullScreen)}\n >\n {toggleFullScreen ? : }\n \n {props.title}\n
    \n \n {props.children}\n
    \n scrollToTop()}\n >\n \n Go To Top\n \n
    \n
    \n \n \n );\n};\nexport default Modal;\n", "/** @jsx h */\nimport { h, useState, useEffect } from \"../reactDeps.ts\";\nimport { uid } from \"../utils/uid.ts\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport ExportIcon from \"./icon/ExportIcon.tsx\";\nimport HelpIcon from \"./icon/HelpIcon.tsx\";\nimport Search from \"./icon/Search.tsx\";\n\nexport const Schema = () => {\n const { schemasObj } = useLesan();\n const [reProduceSchemaObj, setreProduceSchemaObj] = useState<\n Record\n >({});\n\n useEffect(() => {\n const myNewObj: Record = {};\n for (const schema in schemasObj) {\n myNewObj[schema] = {\n ...myNewObj[schema],\n pure: schemasObj[schema].pure,\n };\n for (const mainRels in schemasObj[schema].mainRelations) {\n myNewObj[schema] = {\n ...myNewObj[schema],\n mainRelations: {\n ...myNewObj[schema].mainRelations,\n [mainRels]: {\n type: \"relation\",\n extraDetails: schemasObj[schema].mainRelations[mainRels],\n schema: {\n ...schemasObj[\n schemasObj[schema].mainRelations[mainRels].schemaName\n ].pure,\n },\n },\n },\n };\n }\n for (const relatedRels in schemasObj[schema].relatedRelations) {\n myNewObj[schema] = {\n ...myNewObj[schema],\n relatedRelations: {\n ...myNewObj[schema].relatedRelations,\n [relatedRels]: {\n type: \"relation\",\n extraDetails: schemasObj[schema].relatedRelations[relatedRels],\n schema: {\n ...schemasObj[\n schemasObj[schema].relatedRelations[relatedRels].schemaName\n ].pure,\n },\n },\n },\n };\n }\n }\n setreProduceSchemaObj(myNewObj);\n }, []);\n\n const exportSchemas = () => {\n const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(\n JSON.stringify(schemasObj)\n )}`;\n const link = document.createElement(\"a\");\n link.href = jsonString;\n link.download = \"schemas.json\";\n\n link.click();\n };\n\n const rainbowClass = [\n \"color-1\",\n \"color-2\",\n \"color-3\",\n \"color-4\",\n \"color-5\",\n \"color-6\",\n \"color-7\",\n ];\n\n const proceedSchemas = (schemas: Record) => {\n return Object.keys(schemas).map((schema: any) => {\n const newUid = uid();\n return (\n
    \n {\n document.getElementById(newUid)?.classList.toggle(\"open\");\n }}\n >\n

    {schema}

    \n ...\n
    \n
    \n {proceedChildSchema(schemas[schema])}\n\n {/* {proceedChildSchema(schemasObj[schema][\"pure\"])} */}\n
    \n \n );\n });\n };\n\n const proceedChildSchema = (childSchema: Record) => {\n return Object.keys(childSchema).map((childItem: any) => {\n const newUid = uid();\n return (\n \n {\n document.getElementById(newUid)?.classList.toggle(\"open\");\n }}\n >\n

    {childItem}

    \n
    \n {\" \"}\n

    \n {\" \"}\n {childSchema[childItem][\"type\"]}\n

    \n
    \n {childSchema[childItem][\"extraDetails\"] && }\n {childSchema[childItem][\"extraDetails\"] && (\n
    \n \n
    \n )}\n
    \n {typeof childSchema[childItem] === \"object\" &&\n childSchema[childItem].schema !== null && ...}\n
    \n \n
    \n {typeof childSchema[childItem] === \"object\" &&\n childSchema[childItem] !== null &&\n childSchema[childItem].schema !== null &&\n proceedChildSchema(\n childSchema[childItem].pure\n ? childSchema[childItem].pure\n : childSchema[childItem].relatedRelations\n ? childSchema[childItem].relatedRelations\n : childSchema[childItem].mainRelation\n ? childSchema[childItem].mainRelation\n : childSchema[childItem].type === \"relation\"\n ? childSchema[childItem].schema\n : childSchema[childItem]\n )}\n {/* {childSchema[childItem].type === \"object\" &&\n proceedChildSchema(childSchema[childItem].schema)} */}\n
    \n \n );\n });\n };\n\n return (\n
    \n
    \n \n \n Export\n \n
    \n {/*
    \n \n \n \n \n
    */}\n
    {proceedSchemas(reProduceSchemaObj)}
    \n
    \n );\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function TickIcon() {\n return (\n \n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { fa } from \"https://cdn.skypack.dev/@faker-js/faker\";\nimport { Fragment, h, useEffect, useState } from \"../reactDeps.ts\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport AddIcon from \"./icon/AddIcon.tsx\";\nimport TickIcon from \"./icon/TickIcon.tsx\";\nimport DeleteIcon from \"./icon/DeleteIcon.tsx\";\n\nexport function Setting({\n configUrl,\n}: {\n configUrl: (address?: string) => void;\n}) {\n const [active, setActive] = useState(\"no\");\n const handleClick = () => {\n setTimeout(() => {\n setActive(\"no\");\n }, 1000);\n };\n const handleDelete = (fromIndex: any) => {\n headersState[fromIndex];\n headersState.splice(fromIndex, 1);\n setHeadersState([...headersState]);\n };\n const { headers, setHeader } = useLesan();\n const [headersState, setHeadersState] = useState<\n { key: string; value: string }[]\n >([{ key: \"\", value: \"\" }]);\n\n const [urlAddress, setUrlAddress] = useState(\"\");\n\n useEffect(() => {\n const arrHeader = [];\n for (const key in headers) {\n arrHeader.push({ key, value: headers[key] });\n }\n setHeadersState(arrHeader);\n }, []);\n\n return (\n
    \n
    \n

    Fetch Config

    \n\n
    \n {\" \"}\n setUrlAddress(e.target.value)}\n />\n {\n configUrl(urlAddress);\n setActive(\"yes\");\n handleClick();\n }}\n >\n \n {active === \"yes\" ? \"Applyed!\" : \"Apply\"}\n \n
    \n
    \n
    \n
    \n {\" \"}\n Set Headers\n {\n setHeadersState([...headersState, { key: \"\", value: \"\" }]);\n }}\n >\n \n Add Header\n \n
    \n
    \n
    \n {headersState?.map((hst, idx) => (\n
    \n
    \n Key:\n {\n setHeadersState((prevState) => {\n prevState[idx].key = e.target.value;\n return prevState;\n });\n }}\n />\n
    \n
    \n Value:\n {\n setHeadersState((prevState) => {\n prevState[idx].value = e.target.value;\n return prevState;\n });\n }}\n />\n
    \n {headersState.length > 1 && (\n handleDelete(idx)}\n >\n \n
    \n )}\n
    \n ))}\n
    \n {\n const newHeaders: Record = {};\n for (const header of headersState) {\n const { key, value } = header;\n newHeaders[key] = value;\n }\n setHeader(newHeaders);\n setActive(\"yess\");\n handleClick();\n }}\n >\n \n {active === \"yess\" ? \"Applyed!\" : \"Apply\"}\n \n
    \n
    \n \n );\n}\n", "/** @jsx h */\nimport { Fragment, h, useEffect, useState } from \"../reactDeps.ts\";\nimport { createNestedObjectsFromKeys } from \"../utils/createNestedObjectsFromKeys.ts\";\nimport { generateFormData } from \"../utils/generateFormData.ts\";\nimport { Act } from \"./Act.tsx\";\nimport { MODAL_TYPES } from \"./context/actionType.ts\";\nimport { E2E } from \"./E2E.tsx\";\nimport { History } from \"./History.tsx\";\nimport DocumentIcon from \"./icon/DocumentIcon.tsx\";\nimport HistoryIcon from \"./icon/HistoryIcon.tsx\";\nimport ReFetchIcon from \"./icon/ReFetchIcon.tsx\";\nimport SchemaIcon from \"./icon/SchemaIcon.tsx\";\nimport SettingIcon from \"./icon/SettingIcon.tsx\";\nimport TestIcon from \"./icon/TestIcon.tsx\";\nimport { Main } from \"./Main.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport Modal from \"./Modal.tsx\";\nimport { Schema } from \"./Schema.tsx\";\nimport { Setting } from \"./Setting.tsx\";\nimport { useOutsideClick } from \"./hooks/useOutsideClick.ts\";\n\nconst getSchemasAPI = ({ baseUrl }: { baseUrl: string }) =>\n fetch(`${baseUrl}playground/static/get/schemas`).then((res) => res.json());\n\nexport const Page = () => {\n const {\n tabsData,\n setTabsData,\n activeTab,\n actsObj,\n addTab,\n setActiveTab,\n setService,\n setSchema,\n setAct,\n setPostFields,\n setGetFields,\n setFormData,\n setHistory,\n setResponse,\n resetGetFields,\n closeTab,\n resetPostFields,\n setSchemasObj,\n setActsObj,\n setModal,\n modal,\n } = useLesan();\n\n const [show, setShow] = useState(\"\");\n const [mediaShow, setMediaShow] = useState(false);\n\n const parsedWindowUrl = () => {\n return window && window.location\n ? `${new URL(window.location.href).origin}/`\n : \"http://localhost:1366/\";\n };\n\n const [urlAddress, setUrlAddress] = useState(\"\");\n const handleClickOutside = () => {\n setMediaShow(false);\n };\n const ref: any = useOutsideClick(handleClickOutside);\n\n useEffect(() => {\n configUrl(parsedWindowUrl());\n\n const localHistory = JSON.parse(localStorage.getItem(\"localHistory\")!);\n if (localHistory) setHistory(localHistory);\n }, []);\n\n const configUrl = (address?: string) => {\n address && setUrlAddress(address);\n\n setService({ data: \"\", index: activeTab });\n setSchema({ data: \"\", index: activeTab });\n resetGetFields(activeTab);\n resetPostFields(activeTab);\n setFormData({ data: {}, index: activeTab });\n\n getSchemasAPI({ baseUrl: address ? address : urlAddress }).then(\n ({ schemas, acts }) => {\n setActsObj(acts);\n setSchemasObj(schemas);\n\n let localTabsData = localStorage.getItem(\"localTabsData\");\n\n if (localTabsData) {\n localTabsData = JSON.parse(localTabsData);\n\n const parsedLocalTabData: any[] = [];\n\n const proccessTabData = (tab: any) => {\n parsedLocalTabData.pop();\n\n // form data section --- begin\n const parsedFromData = createNestedObjectsFromKeys(tab.formData);\n\n // set fileds section --- begin\n for (const setKeys in parsedFromData.set) {\n if (\n acts[tab.service][tab.schema][tab.act].validator.schema.set\n .schema[setKeys] === undefined\n ) {\n delete parsedFromData.set[setKeys];\n }\n }\n // TODO : we need to check field type also in set fields inside acts[tab.service][tab.schema][tab.act].validator.schema.set.schema[setKeys].type\n\n // set fileds section --- end\n\n // get fileds section --- begin\n for (const getKey in parsedFromData.get) {\n if (\n acts[tab.service][tab.schema][tab.act].validator.schema.get\n .schema[getKey] === undefined\n ) {\n delete parsedFromData.get[getKey];\n }\n }\n // get fileds section --- end\n\n const newGeneratedFormData = generateFormData(\n parsedFromData,\n {},\n \"\"\n );\n // form data section --- end\n\n // set fileds section --- begin\n tab.postFields =\n acts[tab.service][tab.schema][\n tab.act\n ].validator.schema.set.schema;\n // set fileds section --- end\n\n // get fileds section --- begin\n tab.getFields =\n acts[tab.service][tab.schema][\n tab.act\n ].validator.schema.get.schema;\n // get fileds section --- end\n\n parsedLocalTabData.push({\n ...tab,\n formData: newGeneratedFormData,\n });\n };\n\n for (const tab of localTabsData as any) {\n if (tab.service && tab.service in acts) {\n parsedLocalTabData.push(tab);\n }\n\n if (tab.schema && !(tab.schema in acts[tab.service])) {\n parsedLocalTabData.pop();\n }\n\n if (tab.act && !(tab.act in acts[tab.service][tab.schema])) {\n parsedLocalTabData.pop();\n }\n\n if (\n tab.service &&\n tab.schema &&\n tab.act &&\n tab.act in acts[tab.service][tab.schema]\n ) {\n proccessTabData(tab);\n }\n }\n if (parsedLocalTabData.length < 1) {\n parsedLocalTabData.push({\n service: \"\",\n schema: \"\",\n act: \"\",\n postFields: {},\n getFields: {},\n formData: {},\n response: null,\n });\n }\n setTabsData(parsedLocalTabData);\n }\n }\n );\n };\n\n const toggleModal = () => {\n setModal(null);\n };\n\n const setFormFromHistory = (request: any) => {\n setService({ data: request.body.service, index: activeTab });\n setSchema({ data: request.body.model, index: activeTab });\n setAct({ data: request.body.act, index: activeTab });\n\n const actObj = (actsObj as any)[request.body.service][request.body.model][\n request.body.act\n ][\"validator\"][\"schema\"];\n\n setGetFields({ data: actObj[\"get\"][\"schema\"], index: activeTab });\n setPostFields({ data: actObj[\"set\"][\"schema\"], index: activeTab });\n\n setResponse({ data: null, index: activeTab });\n\n const historyFromData = generateFormData(request.body.details, {}, \"\");\n\n setFormData({ data: historyFromData, index: activeTab });\n\n toggleModal();\n };\n\n return (\n setMediaShow(false)}\n >\n
    \n {tabsData.map((tab, index) => (\n \n {\n setActiveTab(index);\n }}\n >\n {\" \"}\n \n {\" \"}\n {tabsData[index].act\n ? `${tabsData[index].schema} | ${tabsData[index].act}`\n : tabsData[index].schema\n ? `${tabsData[index].service} | ${tabsData[index].schema}`\n : tabsData[index].service\n ? tabsData[index].service\n : `Tab ${index}`}\n \n {\n event.stopPropagation();\n closeTab(index);\n }}\n title=\"Close tab\"\n >\n x\n \n
    \n \n ))}\n {\n addTab(null);\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n }}\n >\n +\n \n \n
    \n\n {/* under 768px heigh button */}\n {\n setMediaShow(!mediaShow);\n }}\n >\n menu\n \n {/* */}\n\n
    \n configUrl()}>\n Refetch\n \n \n setModal(MODAL_TYPES.SETTING)}\n >\n Setting\n \n \n setModal(MODAL_TYPES.HISTORY)}\n >\n History\n \n \n setModal(MODAL_TYPES.E2E_TEST)}\n >\n E2E Test\n \n \n \n \n Document\n \n \n setModal(MODAL_TYPES.SCHEMA)}\n onMouseEnter={() => setShow(\"document\")}\n onMouseLeave={() => setShow(\"\")}\n >\n Schema\n \n \n setModal(MODAL_TYPES.ACT)}\n onMouseEnter={() => setShow(\"document\")}\n onMouseLeave={() => setShow(\"\")}\n >\n Act\n \n \n
    \n\n {modal !== null && (\n \n {modal === MODAL_TYPES.HISTORY ? (\n \n ) : modal === MODAL_TYPES.SETTING ? (\n \n ) : modal === MODAL_TYPES.E2E_TEST ? (\n \n ) : modal === MODAL_TYPES.SCHEMA ? (\n \n ) : modal === MODAL_TYPES.ACT ? (\n \n ) : (\n \n )}\n \n )}\n \n );\n};\n", "/** @jsx h */\nimport { ManagedLesanContext } from \"./comp/ManagedLesanContext.tsx\";\nimport { Page } from \"./comp/preact.tsx\";\nimport { h, hydrate } from \"./reactDeps.ts\";\n\nhydrate(\n \n \n ,\n document.getElementById(\"root\")!,\n);\n"], - "mappings": "AAAA,OACE,iBAAAA,GACA,YAAAC,EACA,KAAAC,EACA,WAAAC,OACK,gCACP,OACE,eAAAC,EACA,cAAAC,GACA,aAAAC,EACA,WAAAC,GACA,cAAAC,GACA,UAAAC,EACA,YAAAC,MAEK,sCCfA,IAAMC,EAAM,IACjB,KAAK,IAAI,EAAE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xBR,aACFiC,EAACe,GAAA,IAAO,EACNhD,UACFiC,EAACgB,GAAA,IAAI,EAELhB,EAACE,EAAA,IAAS,CAEd,CAEJ,CAEJ,ECtWAe,GACEC,EAACC,GAAA,KACCD,EAACE,GAAA,IAAK,CACR,EACA,SAAS,eAAe,MAAM,CAChC", - "names": ["createContext", "Fragment", "h", "hydrate", "useCallback", "useContext", "useEffect", "useMemo", "useReducer", "useRef", "useState", "uid", "tabInitial", "schemaInitial", "historyInitial", "headerInitial", "e2eFirstInp", "uid", "e2eInitial", "modalInitial", "initialState", "lesanReducer", "state", "action", "type", "payload", "copyTabsData", "LesanContext", "createContext", "initialState", "LesanProvider", "props", "state", "dispatch", "useReducer", "lesanReducer", "setService", "useCallback", "payload", "setSchema", "setAct", "setPostFields", "resetPostFields", "setGetFields", "resetGetFields", "setFormData", "setActiveTab", "addTab", "closeTab", "deleteItemHistory", "setHeader", "setHistory", "setTabsData", "setResponse", "setSchemasObj", "setActsObj", "setE2eForms", "addE2eForm", "setModal", "value", "useMemo", "h", "useLesan", "context", "useContext", "LesanContext", "ManagedLesanContext", "props", "children", "h", "LesanProvider", "createNestedObjectsFromKeys", "obj", "result", "objectPath", "parts", "target", "part", "generateFormData", "formData", "returnFormData", "keyname", "key", "ExportIcon", "h", "Act", "actsObj", "useLesan", "exportActs", "jsonString", "link", "rainbowClass", "proceedActs", "acts", "act", "index", "newUid", "uid", "h", "proceedChildActs", "childActs", "childAct", "ExportIcon", "faker", "BackIcon", "h", "Help", "setView", "h", "BackIcon", "AddIcon", "h", "DeleteIcon", "h", "DeleteIcon_default", "DownIcon", "h", "HelpIcon", "h", "ImportIcon", "h", "RunIcon", "h", "UpIcon", "h", "pre", "regEx", "syntaxHighlight", "json", "replacer", "match", "className", "text", "_", "value", "cutify", "JSONViewer", "jsonData", "cutifiedJson", "cutify", "h", "Fragment", "pre", "ChevronLeftDouble", "h", "ChevronLeftIcon", "h", "ChevronRightDouble", "h", "ChevronRightIcon", "h", "Pagination", "pageCountNumber", "activePage", "setActivePage", "pages", "setPages", "useState", "goTo", "setGoTo", "handleChange", "event", "handleClick", "pageCount", "buildPages", "useCallback", "start", "end", "newPages", "i", "onChange", "page", "isActive", "useEffect", "h", "ChevronLeftDouble", "ChevronLeftIcon", "ChevronRightIcon", "ChevronRightDouble", "InfoIcon2", "h", "SortFromTopToBottomIcon", "h", "ResultSlider", "results", "setIsShowE2eResponse", "index", "activePage", "setActivePage", "useState", "h", "InfoIcon2", "SortFromTopToBottomIcon", "JSONViewer", "Pagination", "_re", "InfoIcon", "h", "SequenceSlider", "sequence", "index", "isShowE2eResponse", "setIsShowE2eResponse", "useState", "h", "Fragment", "InfoIcon", "SortFromTopToBottomIcon", "JSONViewer", "ci", "ResultSlider", "E2E", "baseUrl", "e2eForms", "setE2eForms", "useLesan", "initialRequestDetail", "isShowE2eButton", "setIsShowE2eButton", "useState", "requestDetail", "setRequestDetail", "handleMove", "fromIndex", "toIndex", "element", "handleDelete", "handleDuplicate", "newForm", "uid", "view", "setView", "exportForm", "jsonString", "link", "jsonFileUpload", "e", "fileReader", "data", "exportResults", "lesanAPI", "options", "replaceCaptureString", "obj", "variablesSet", "returnCaptures", "key", "value", "openBraceIndexes", "index", "closeBraceIndexes", "openBrace", "variableName", "parsedFaker", "callParsedFaker", "faker", "setValue", "runE2eTest", "parsedCaptures", "e2eForm", "parsedHeaderBody", "usedCaptures", "body", "findInParsedCaptures", "set", "item", "jsonSendedRequest", "sequnceId", "repeat", "tResTime0", "tResPerformance", "newResult", "preReqDetails", "sequnces", "findedSequnceIdx", "sq", "resultIdx", "findedInsideParsedCapture", "capture", "parts", "parsedValue", "part", "slicedPart", "getedValue", "capValue", "handeE2eFormDetails", "idx", "fieldName", "copy", "Ref", "useRef", "handleClick", "id", "h", "BackIcon", "ExportIcon", "ci", "sequence", "SequenceSlider", "Fragment", "AddIcon", "UpIcon", "DownIcon", "DeleteIcon_default", "capId", "e2eFirstInp", "RunIcon", "ImportIcon", "HelpIcon", "Help", "ConvertMilliseconds", "milliseconds", "hours", "minutes", "seconds", "useNonInitialEffect", "effect", "deps", "initialRender", "useRef", "useEffect", "effectReturns", "Dustbin", "h", "History", "setFormFromHistory", "history", "setHistory", "deleteItemHistory", "useLesan", "show", "setShow", "useState", "useNonInitialEffect", "h", "Fragment", "hi", "index", "JSONViewer", "event", "DeleteIcon_default", "ConvertMilliseconds", "Dustbin", "DocumentIcon", "h", "HistoryIcon", "h", "ReFetchIcon", "h", "SchemaIcon", "h", "SettingIcon", "h", "TestIcon", "h", "CopyIcon", "h", "RunTestIcon", "h", "SuccessIcon", "h", "useOutsideClick", "callback", "ref", "useRef", "useEffect", "handleClick", "event", "ChevronDownIcon", "className", "h", "Selected", "items", "onClickItem", "incomeActiveItem", "canShow", "show", "setShow", "useState", "activeItem", "setActiveItem", "useEffect", "ref", "useOutsideClick", "h", "e", "ChevronDownIcon", "item", "index", "MultiSelect", "options", "onChange", "selectedOptions", "setSelectedOptions", "useState", "unselectedOptions", "setUnselectedOptions", "isOpen", "setIsOpen", "handleOptionChange", "selectedOption", "filteredSelectedOptions", "option", "filteredUnselectedOptions", "resetOptions", "toggleDropdown", "ref", "useOutsideClick", "h", "item", "e", "ChevronDownIcon", "MultiSelect_default", "lesanAPI", "baseUrl", "options", "res", "Main", "urlAddress", "activeTab", "tabsData", "actsObj", "headers", "history", "setService", "setSchema", "setAct", "setPostFields", "setGetFields", "setFormData", "setHistory", "setResponse", "resetGetFields", "resetPostFields", "addE2eForm", "setModal", "useLesan", "active", "setActive", "useState", "changeGetValue", "value", "keyname", "getObj", "returnObj", "key", "formRef", "useRef", "handleChange", "event", "name", "type", "alt", "updatedValue", "renderPostFields", "field", "isMultiEnum", "formData", "h", "MultiSelect_default", "schemaKey", "item", "Selected", "renderGetFields", "getField", "keyName", "margin", "index", "copy", "requestFunction", "details", "createNestedObjectsFromKeys", "handleSubmit", "sendRequest", "t0", "jsonSendedRequest", "tookTime", "newHistory", "uid", "canShowRequestFields", "canShowSchema", "canShowAct", "copyResponse", "response", "copyRequest", "request", "runE2eRequest", "method", "rest", "newE2eForm", "onClickItem", "actObj", "Fragment", "SuccessIcon", "CopyIcon", "RunTestIcon", "JSONViewer", "ConvertMilliseconds", "FullScreenExit", "h", "Fullscreen_exit_default", "FullScreen", "h", "Fullscreen_default", "Up2Icon", "h", "Modal", "props", "showBtn", "setShowBtn", "useState", "toggleFullScreen", "setToggleFullScreen", "divRef", "useRef", "scrollToTop", "handleScroll", "event", "h", "e", "DeleteIcon_default", "Fullscreen_exit_default", "Fullscreen_default", "Up2Icon", "Modal_default", "Schema", "schemasObj", "useLesan", "reProduceSchemaObj", "setreProduceSchemaObj", "useState", "useEffect", "myNewObj", "schema", "mainRels", "relatedRels", "exportSchemas", "jsonString", "link", "rainbowClass", "proceedSchemas", "schemas", "newUid", "uid", "h", "proceedChildSchema", "childSchema", "childItem", "HelpIcon", "JSONViewer", "ExportIcon", "TickIcon", "h", "Setting", "configUrl", "active", "setActive", "useState", "handleClick", "handleDelete", "fromIndex", "headersState", "setHeadersState", "headers", "setHeader", "useLesan", "urlAddress", "setUrlAddress", "useEffect", "arrHeader", "key", "h", "e", "TickIcon", "AddIcon", "hst", "idx", "prevState", "DeleteIcon_default", "newHeaders", "header", "value", "getSchemasAPI", "baseUrl", "res", "Page", "tabsData", "setTabsData", "activeTab", "actsObj", "addTab", "setActiveTab", "setService", "setSchema", "setAct", "setPostFields", "setGetFields", "setFormData", "setHistory", "setResponse", "resetGetFields", "closeTab", "resetPostFields", "setSchemasObj", "setActsObj", "setModal", "modal", "useLesan", "show", "setShow", "useState", "mediaShow", "setMediaShow", "parsedWindowUrl", "urlAddress", "setUrlAddress", "ref", "useOutsideClick", "useEffect", "configUrl", "localHistory", "address", "schemas", "acts", "localTabsData", "parsedLocalTabData", "proccessTabData", "tab", "parsedFromData", "createNestedObjectsFromKeys", "setKeys", "getKey", "newGeneratedFormData", "generateFormData", "toggleModal", "setFormFromHistory", "request", "actObj", "historyFromData", "h", "index", "Fragment", "event", "Main", "ReFetchIcon", "SettingIcon", "HistoryIcon", "TestIcon", "SchemaIcon", "DocumentIcon", "Modal_default", "History", "Setting", "E2E", "Schema", "Act", "hydrate", "h", "ManagedLesanContext", "Page"] + "sources": ["../reactDeps.ts", "../utils/uid.ts", "../comp/context/initials.ts", "../comp/context/reducer.ts", "../comp/context/provider.tsx", "../comp/ManagedLesanContext.tsx", "../utils/createNestedObjectsFromKeys.ts", "../utils/generateFormData.ts", "../comp/icon/ExportIcon.tsx", "../comp/Act.tsx", "../comp/E2E.tsx", "../comp/icon/AddIcon.tsx", "../comp/icon/BackIcon.tsx", "../comp/icon/DeleteIcon.tsx", "../comp/icon/DownIcon.tsx", "../comp/icon/HelpIcon.tsx", "../comp/icon/ImportIcon.tsx", "../comp/icon/RunIcon.tsx", "../comp/icon/UpIcon.tsx", "../comp/styles.ts", "../comp/cutify.ts", "../comp/JSONVeiwer.tsx", "../comp/icon/ChevronLeftDouble.tsx", "../comp/icon/ChevronLeftIcon.tsx", "../comp/icon/ChevronRightDouble.tsx", "../comp/icon/ChevronRightIcon.tsx", "../comp/Pagination.tsx", "../comp/icon/InfoIcon2.tsx", "../comp/icon/SortFromTopToBottomIcon.tsx", "../comp/ResultSlider.tsx", "../comp/icon/InfoIcon.tsx", "../comp/SequenceSlider.tsx", "../utils/convertMilliseconds.ts", "../comp/hooks/useNonInitialEffect.ts", "../comp/icon/DustbinIcon.tsx", "../comp/History.tsx", "../comp/icon/DocumentIcon.tsx", "../comp/icon/HistoryIcon.tsx", "../comp/icon/ReFetchIcon.tsx", "../comp/icon/SchemaIcon.tsx", "../comp/icon/SettingIcon.tsx", "../comp/icon/TestIcon.tsx", "../comp/icon/CopyIcon.tsx", "../comp/icon/RunTestIcon.tsx", "../comp/icon/SuccessIcon.tsx", "../comp/hooks/useOutsideClick.ts", "../comp/icon/ChevronDownIcon.tsx", "../comp/Selected.tsx", "../comp/MultiSelect.tsx", "../comp/Main.tsx", "../comp/icon/Fullscreen-exit.tsx", "../comp/icon/Fullscreen.tsx", "../comp/icon/Up2Icon.tsx", "../comp/Modal.tsx", "../comp/Schema.tsx", "../comp/icon/TickIcon.tsx", "../comp/Setting.tsx", "../comp/preact.tsx", "../hydrate.tsx"], + "sourcesContent": ["export {\n createContext,\n Fragment,\n h,\n hydrate,\n} from \"https://esm.sh/preact@10.5.15\";\nexport {\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useReducer,\n useRef,\n useState,\n \n} from \"https://esm.sh/preact@10.5.15/hooks\";\n\nexport type {\n FunctionalComponent,\n RefCallback,\n RefObject,\n} from \"https://esm.sh/preact@10.5.15\";\n\nexport type { Ref, EffectCallback, StateUpdater } from \"https://esm.sh/preact@10.5.15/hooks\";\n", "export const uid = () =>\n Date.now().toString(36) + Math.random().toString(36).substr(2);\n", "import { uid } from \"../../utils/uid.ts\";\nimport { IState } from \"./actionType.ts\";\n\nconst tabInitial = {\n tabsData: [\n {\n service: \"\",\n schema: \"\",\n act: \"\",\n postFields: {},\n getFields: {},\n formData: {},\n response: null,\n },\n ],\n activeTab: 0,\n setActiveTab: () => ({}),\n addTab: () => ({}),\n closeTab: () => ({}),\n setTabsData: () => ({}),\n};\n\nconst schemaInitial = {\n schemasObj: {},\n actsObj: {},\n\n setService: () => ({}),\n setMethod: () => ({}),\n setSchema: () => ({}),\n setAct: () => ({}),\n setActsObj: () => ({}),\n setSchemasObj: () => ({}),\n setPostFields: () => ({}),\n resetPostFields: () => ({}),\n setGetFields: () => ({}),\n resetGetFields: () => ({}),\n setFormData: () => ({}),\n setResponse: () => ({}),\n};\n\nconst historyInitial = {\n history: [],\n\n deleteItemHistory: () => ({}),\n\n setHistory: () => ({}),\n};\n\nconst headerInitial = {\n headers: { Authorization: \"\" },\n setHeader: () => ({}),\n};\n\nexport const e2eFirstInp = () => ({\n id: uid(),\n bodyHeaders: `\n{\n \"headers\": {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"\"\n },\n \"body\": {\n \"service\": \"main\",\n \"contents\": \"dynamic\",\n \"model\": \"\",\n \"act\": \"\",\n \"details\": {\n \"get\": {\n },\n \"set\": {\n }\n }\n}\n}\n `,\n repeat: 1,\n captures: [],\n});\n\nconst e2eInitial = {\n e2eForms: [e2eFirstInp()],\n\n setE2eForms: () => ({}),\n addE2eForm: () => ({}),\n};\n\nconst modalInitial = {\n modal: null,\n setModal: () => ({}),\n};\n\n// TODO: Have to Find Someway to Prevent from Rewriting Function Types\nexport const initialState: IState = {\n ...tabInitial,\n ...schemaInitial,\n ...historyInitial,\n ...headerInitial,\n ...e2eInitial,\n ...modalInitial,\n};\n", "import { ACTION_TYPE, IState, TAction } from \"./actionType.ts\";\n\nexport function lesanReducer(state: IState, action: TAction): IState {\n const { type, payload } = action;\n switch (type) {\n case ACTION_TYPE.SET_SERVICE: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n service: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_SCHEMA: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n schema: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_ACT: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n act: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_POST_FIELDS: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n postFields: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.RESET_POST_FIELDS: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload] = { ...copyTabsData[payload], postFields: {} };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_GET_FIELDS: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n getFields: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.RESET_GET_FIELDS: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload] = { ...copyTabsData[payload], getFields: {} };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_FORM_DATA: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n formData: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.SET_HEADER: {\n return {\n ...state,\n headers: payload,\n };\n }\n case ACTION_TYPE.SET_HISTORY: {\n return {\n ...state,\n history: payload,\n };\n }\n\n case ACTION_TYPE.SET_TABS_DATA: {\n return {\n ...state,\n tabsData: payload,\n };\n }\n\n case ACTION_TYPE.SET_RESPONSE: {\n const copyTabsData = [...state.tabsData];\n copyTabsData[payload.index] = {\n ...copyTabsData[payload.index],\n response: payload.data,\n };\n return {\n ...state,\n tabsData: [...copyTabsData],\n };\n }\n case ACTION_TYPE.ADD_TAB: {\n return {\n ...state,\n tabsData: [\n ...state.tabsData,\n {\n service: \"\",\n schema: \"\",\n act: \"\",\n postFields: {},\n getFields: {},\n formData: {},\n response: null,\n },\n ],\n activeTab: state.tabsData.length,\n };\n }\n case ACTION_TYPE.SET_ACTIVE_TAB: {\n return {\n ...state,\n activeTab: payload,\n };\n }\n case ACTION_TYPE.CLOSE_TAB: {\n const copyTabsData = [...state.tabsData];\n copyTabsData.length > 1 && copyTabsData.splice(payload, 1);\n return {\n ...state,\n tabsData: [...copyTabsData],\n activeTab: copyTabsData.length >= 1 &&\n state.activeTab >= payload &&\n state.activeTab !== 0\n ? state.activeTab - 1\n : state.activeTab,\n };\n }\n\n case ACTION_TYPE.DELETE_ITEM_HISTORY: {\n return {\n ...state,\n history: state.history\n .slice(0, payload)\n .concat(state.history.slice(payload + 1)),\n };\n }\n\n case ACTION_TYPE.SET_ACTS_OBJ: {\n return {\n ...state,\n actsObj: payload,\n };\n }\n case ACTION_TYPE.SET_SCHEMAS_OBJ: {\n return {\n ...state,\n schemasObj: payload,\n };\n }\n case ACTION_TYPE.SET_E2E_FORMS: {\n return {\n ...state,\n e2eForms: payload,\n };\n }\n case ACTION_TYPE.ADD_E2E_FORM: {\n return {\n ...state,\n e2eForms: [...state.e2eForms, payload],\n };\n }\n case ACTION_TYPE.OPEN_MODAL: {\n return {\n ...state,\n modal: payload,\n };\n }\n default:\n throw new Error(`Unhandled action type`);\n }\n}\n", "/** @jsx h */\nimport { h, useMemo } from \"../../reactDeps.ts\";\nimport { createContext } from \"../../reactDeps.ts\";\nimport { useCallback } from \"../../reactDeps.ts\";\nimport { useReducer } from \"../../reactDeps.ts\";\nimport { E2eForm, IState, MODAL_TYPES } from \"./actionType.ts\";\nimport { TObjectArray } from \"./actionType.ts\";\nimport { THistory } from \"./actionType.ts\";\nimport { TTabsData } from \"./actionType.ts\";\nimport { ACTION_TYPE } from \"./actionType.ts\";\nimport { initialState } from \"./initials.ts\";\nimport { lesanReducer } from \"./reducer.ts\";\n\nexport const LesanContext = createContext(initialState);\n\nexport const LesanProvider = (props: any) => {\n const [state, dispatch] = useReducer(lesanReducer, initialState);\n\n const setService = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_SERVICE, payload }),\n [dispatch],\n );\n\n const setSchema = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_SCHEMA, payload }),\n [dispatch],\n );\n\n const setAct = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_ACT, payload }),\n [dispatch],\n );\n\n const setPostFields = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_POST_FIELDS, payload }),\n [dispatch],\n );\n\n const resetPostFields = useCallback(\n (payload: number) =>\n dispatch({ type: ACTION_TYPE.RESET_POST_FIELDS, payload }),\n [dispatch],\n );\n\n const setGetFields = useCallback(\n (payload: { data: string; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_GET_FIELDS, payload }),\n [dispatch],\n );\n\n const resetGetFields = useCallback(\n (payload: number) =>\n dispatch({ type: ACTION_TYPE.RESET_GET_FIELDS, payload }),\n [dispatch],\n );\n\n const setFormData = useCallback(\n (payload: { data: any; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_FORM_DATA, payload }),\n [dispatch],\n );\n\n const setActiveTab = useCallback(\n (payload: number) =>\n dispatch({ type: ACTION_TYPE.SET_ACTIVE_TAB, payload }),\n [dispatch],\n );\n\n const addTab = useCallback(\n (payload: null) => dispatch({ type: ACTION_TYPE.ADD_TAB, payload }),\n [dispatch],\n );\n\n const closeTab = useCallback(\n (payload: number) => dispatch({ type: ACTION_TYPE.CLOSE_TAB, payload }),\n [dispatch],\n );\n\n const deleteItemHistory = useCallback(\n (payload: number) =>\n dispatch({ type: ACTION_TYPE.DELETE_ITEM_HISTORY, payload }),\n [dispatch],\n );\n\n const setHeader = useCallback(\n (payload: TObjectArray) =>\n dispatch({ type: ACTION_TYPE.SET_HEADER, payload }),\n [dispatch],\n );\n\n const setHistory = useCallback(\n (payload: THistory[]) =>\n dispatch({ type: ACTION_TYPE.SET_HISTORY, payload }),\n [dispatch],\n );\n\n const setTabsData = useCallback(\n (payload: TTabsData[]) =>\n dispatch({ type: ACTION_TYPE.SET_TABS_DATA, payload }),\n [dispatch],\n );\n\n const setResponse = useCallback(\n (payload: { data: any; index: number }) =>\n dispatch({ type: ACTION_TYPE.SET_RESPONSE, payload }),\n [dispatch],\n );\n\n const setSchemasObj = useCallback(\n (payload: Record) =>\n dispatch({ type: ACTION_TYPE.SET_SCHEMAS_OBJ, payload }),\n [dispatch],\n );\n const setActsObj = useCallback(\n (payload: Record) =>\n dispatch({ type: ACTION_TYPE.SET_ACTS_OBJ, payload }),\n [dispatch],\n );\n\n const setE2eForms = useCallback(\n (payload: E2eForm[]) =>\n dispatch({ type: ACTION_TYPE.SET_E2E_FORMS, payload }),\n [dispatch],\n );\n\n const addE2eForm = useCallback(\n (payload: E2eForm) => dispatch({ type: ACTION_TYPE.ADD_E2E_FORM, payload }),\n [dispatch],\n );\n const setModal = useCallback(\n (payload: MODAL_TYPES | null) =>\n dispatch({ type: ACTION_TYPE.OPEN_MODAL, payload }),\n [dispatch],\n );\n\n const value = useMemo(\n () => ({\n ...state,\n setService,\n setSchema,\n setAct,\n setPostFields,\n resetPostFields,\n setGetFields,\n resetGetFields,\n setFormData,\n setHeader,\n setHistory,\n setTabsData,\n setResponse,\n setActsObj,\n setSchemasObj,\n setActiveTab,\n addTab,\n closeTab,\n deleteItemHistory,\n setE2eForms,\n addE2eForm,\n setModal,\n }),\n [state],\n );\n\n return ;\n};\n", "/** @jsx h */\nimport { h, useContext } from \"../reactDeps.ts\";\nimport { LesanContext, LesanProvider } from \"./context/provider.tsx\";\n\nconst useLesan = () => {\n const context = useContext(LesanContext);\n if (context === undefined) {\n console.warn(`useLesan must be used within a LesanProvider`);\n }\n return context;\n};\n\nconst ManagedLesanContext = (props: { children: h.JSX.Element }) => {\n const { children } = props;\n\n return {children};\n};\n\nexport { ManagedLesanContext, useLesan };\n", "export const createNestedObjectsFromKeys = (\n obj: Record,\n): Record => {\n const result: Record = { get: {}, set: {} };\n\n // For each object path (property key) in the object\n for (const objectPath in obj) {\n if (obj[objectPath] || obj[objectPath] === 0 || obj[objectPath] === false) {\n // Split path into component parts\n const parts = objectPath.split(\".\");\n\n // Create sub-objects along path as needed\n let target: Record = result;\n while (parts.length > 1) {\n const part = parts.shift()!;\n target[part] = target[part] || {};\n target = target[part];\n }\n\n // Set value at end of path\n target[parts[0]] = obj[objectPath];\n }\n }\n\n return result;\n};\n", "export const generateFormData = (\n formData: Record,\n returnFormData: Record,\n keyname: string,\n) => {\n for (const key in formData) {\n typeof formData[key] === \"object\"\n ? generateFormData(\n formData[key],\n returnFormData,\n keyname ? `${keyname}.${key}` : key,\n )\n : (returnFormData[`${keyname}.${key}`] = formData[key]);\n }\n return returnFormData;\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ExportIcon() {\n return (\n \n \n\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../reactDeps.ts\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport Search from \"./icon/Search.tsx\";\nimport { uid } from \"../utils/uid.ts\";\nimport ExportIcon from \"./icon/ExportIcon.tsx\";\n\nexport function Act() {\n const { actsObj } = useLesan();\n const exportActs = () => {\n const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(\n JSON.stringify(actsObj)\n )}`;\n const link = document.createElement(\"a\");\n link.href = jsonString;\n link.download = \"acts.json\";\n\n link.click();\n };\n\n const rainbowClass = [\n \"color-1\",\n \"color-2\",\n \"color-3\",\n \"color-4\",\n \"color-5\",\n \"color-6\",\n \"color-7\",\n ];\n\n const proceedActs = (acts: Record) => {\n return Object.keys(acts).map((act: any, index) => {\n const newUid = uid();\n return (\n
    \n {\n document.getElementById(newUid)?.classList.toggle(\"open\");\n }}\n >\n

    {act}

    \n ...\n
    \n
    \n {proceedChildActs(actsObj[act])}\n
    \n \n );\n });\n };\n\n const proceedChildActs = (childActs: Record) => {\n return Object.keys(childActs).map((childAct: any, index) => {\n const newUid = uid();\n\n if (childActs[childAct] || childActs[childAct] === 0) {\n return (\n \n {\n document.getElementById(newUid)?.classList.toggle(\"open\");\n }}\n >\n

    {childAct}

    \n {childActs[childAct].type && (\n

    \n {childActs[childAct].type}\n

    \n )}\n
    \n {\" \"}\n {typeof childActs[childAct] === \"object\" &&\n childActs[childAct].schema !== null && ...}\n
    \n \n
    \n {typeof childActs[childAct] === \"object\" &&\n childActs[childAct] !== null &&\n childActs[childAct].schema !== null &&\n proceedChildActs(\n childActs[childAct].validator\n ? childActs[childAct].validator.schema\n : childActs[childAct].schema\n ? childActs[childAct].schema\n : childActs[childAct]\n )}\n
    \n \n );\n }\n });\n };\n\n return (\n
    \n {\" \"}\n
    \n \n \n Export\n \n
    \n {/*
    \n \n \n \n \n
    */}\n
    {proceedActs(actsObj)}
    \n
    \n );\n}\n", "/** @jsx h */\nimport { Fragment, h, useRef, useState } from \"../reactDeps.ts\";\nimport { uid } from \"../utils/uid.ts\";\nimport { faker } from \"https://cdn.skypack.dev/@faker-js/faker\";\nimport { E2eForm, TRequest } from \"./context/actionType.ts\";\nimport { e2eFirstInp } from \"./context/initials.ts\";\nimport { Help } from \"./Help.tsx\";\nimport AddIcon from \"./icon/AddIcon.tsx\";\nimport BackIcon from \"./icon/BackIcon.tsx\";\nimport DeleteIcon from \"./icon/DeleteIcon.tsx\";\nimport DownIcon from \"./icon/DownIcon.tsx\";\nimport ExportIcon from \"./icon/ExportIcon.tsx\";\nimport HelpIcon from \"./icon/HelpIcon.tsx\";\nimport ImportIcon from \"./icon/ImportIcon.tsx\";\nimport RunIcon from \"./icon/RunIcon.tsx\";\nimport UpIcon from \"./icon/UpIcon.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport { SequenceSlider } from \"./SequenceSlider.tsx\";\n\nexport type TResults = {\n id: string;\n request: Record;\n response: Record;\n responseTime: number;\n};\n\nexport type captureType = {\n key: string;\n value: string;\n captured?: any;\n sequenceIdx?: number;\n model?: string;\n act?: string;\n};\n\nexport type TSequenceDetail = {\n id: string;\n bodyHeader: string;\n time: number;\n repeat: number;\n success: number;\n fails: number;\n bestTime: { resultIdx: number; time: number };\n worstTime: { resultIdx: number; time: number };\n captures: captureType[];\n usedCaptures: captureType[];\n results: TResults[];\n};\n\nexport type TReqDetails = {\n allReqPerformance: number;\n numberRequest: number;\n success: number;\n fails: number;\n bestTime: {\n sequenceIdx: number;\n resultIdx: number;\n time: number;\n act: string;\n model: string;\n };\n worstTime: {\n sequenceIdx: number;\n resultIdx: number;\n time: number;\n act: string;\n model: string;\n };\n sequenceDetail: TSequenceDetail[];\n allCaptureItems: captureType[];\n};\n\nexport function E2E({ baseUrl }: { baseUrl: string; bodyHeaders?: string }) {\n const { e2eForms, setE2eForms } = useLesan();\n\n const initialRequestDetail: TReqDetails = {\n allReqPerformance: 0,\n numberRequest: 0,\n success: 0,\n fails: 0,\n bestTime: {\n sequenceIdx: 0,\n resultIdx: 0,\n time: Number.MAX_SAFE_INTEGER,\n act: \"\",\n model: \"\",\n },\n worstTime: { sequenceIdx: 0, resultIdx: 0, act: \"\", model: \"\", time: 0 },\n sequenceDetail: [],\n allCaptureItems: [],\n };\n\n const [isShowE2eButton, setIsShowE2eButton] = useState(false);\n const [requestDetail, setRequestDetail] =\n useState(initialRequestDetail);\n\n const handleMove = (fromIndex: any, toIndex: any) => {\n if (fromIndex === 0 && toIndex <= 0) {\n return;\n } else {\n const element = e2eForms[fromIndex];\n e2eForms.splice(fromIndex, 1);\n e2eForms.splice(toIndex, 0, element);\n setE2eForms([...e2eForms]);\n }\n };\n\n const handleDelete = (fromIndex: any) => {\n e2eForms[fromIndex];\n e2eForms.splice(fromIndex, 1);\n setE2eForms([...e2eForms]);\n };\n\n const handleDuplicate = (fromIndex: any) => {\n const newForm = { ...e2eForms[fromIndex], id: uid() };\n setE2eForms([\n ...e2eForms.slice(0, fromIndex),\n newForm,\n ...e2eForms.slice(fromIndex, e2eForms.length),\n ]);\n };\n\n const [view, setView] = useState<\"help\" | \"e2e\" | \"result\">(\"e2e\");\n\n const exportForm = () => {\n const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(\n JSON.stringify(e2eForms)\n )}`;\n const link = document.createElement(\"a\");\n link.href = jsonString;\n link.download = \"Configdata.json\";\n\n link.click();\n };\n\n const jsonFileUpload = (e: any) => {\n const fileReader = new FileReader();\n fileReader.readAsText(e.target.files[0], \"UTF-8\");\n fileReader.onload = (e) => {\n const data = JSON.parse(e.target!.result as string);\n setE2eForms(data);\n };\n };\n\n const exportResults = () => {\n const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(\n JSON.stringify(requestDetail)\n )}`;\n const link = document.createElement(\"a\");\n link.href = jsonString;\n link.download = \"data.json\";\n\n link.click();\n };\n\n const lesanAPI = async ({\n baseUrl,\n options,\n }: {\n baseUrl: string;\n options: TRequest;\n }) => {\n const fetching = await fetch(`${baseUrl}lesan`, options);\n return await fetching.json();\n };\n\n const replaceCaptureString = (\n obj: Record,\n variablesSet: Set,\n returnCaptures: captureType[]\n ) => {\n for (const key in obj) {\n if (typeof obj[key] === \"object\") {\n replaceCaptureString(obj[key], variablesSet, returnCaptures);\n }\n\n const value = obj[key];\n\n const variablesName: string[] = [];\n if (typeof value === \"string\" && value.includes(\"{\")) {\n if (value.startsWith(\"{faker\")) {\n variablesName.push(value.slice(1, value.lastIndexOf(\"}\")));\n } else {\n const openBraceIndexes: number[] = [];\n for (let index = 0; index < value.length; index++) {\n if (value[index] === \"{\") {\n openBraceIndexes.push(index);\n }\n }\n\n const closeBraceIndexes: number[] = [];\n for (let index = 0; index < value.length; index++) {\n if (value[index] === \"}\") {\n closeBraceIndexes.push(index);\n }\n }\n\n openBraceIndexes.forEach((openBrace, index) => {\n variablesName.push(\n value.slice(openBrace + 1, closeBraceIndexes[index])\n );\n });\n }\n\n variablesName.forEach((variableName) => {\n if (variableName.startsWith(\"faker\")) {\n const parsedFaker = variableName.split(\".\");\n let secondSection = parsedFaker[2];\n let fnInputs = null;\n\n if (secondSection.endsWith(\")\")) {\n fnInputs = secondSection\n .slice(\n secondSection.indexOf(\"(\") + 1,\n secondSection.indexOf(\")\")\n )\n .replaceAll(\"'\", '\"');\n secondSection = secondSection.slice(\n 0,\n secondSection.indexOf(\"(\")\n );\n }\n const callParsedFaker = (faker as any)[parsedFaker[1]][\n secondSection\n ](fnInputs && JSON.parse(fnInputs));\n\n returnCaptures.push({\n key: variableName,\n value: callParsedFaker,\n });\n\n obj[key] = obj[key].replace(`{${variableName}}`, callParsedFaker);\n }\n for (const setValue of variablesSet) {\n if (setValue.key === variableName) {\n returnCaptures.push({\n key: obj[key],\n value: obj[key].replace(`{${variableName}}`, setValue.value),\n });\n obj[key] = obj[key].replace(`{${variableName}}`, setValue.value);\n }\n }\n /^-?\\d+$/.test(obj[key]) && (obj[key] = Number(obj[key]));\n });\n }\n }\n return returnCaptures;\n };\n\n const runE2eTest = async () => {\n const parsedCaptures = new Set();\n\n for await (const e2eForm of e2eForms) {\n let jsonSendedRequest: any;\n\n const parsedBody = JSON.parse(e2eForm.bodyHeaders).body;\n\n const sequnceId = uid();\n for (let repeat = 0; repeat < e2eForm.repeat; repeat++) {\n const tResTime0 = performance.now();\n\n const parsedHeaderBody = JSON.parse(e2eForm.bodyHeaders);\n\n const usedCaptures = replaceCaptureString(\n parsedHeaderBody,\n parsedCaptures,\n []\n );\n\n const body: TRequest = {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...parsedHeaderBody.headers,\n },\n body: JSON.stringify(parsedHeaderBody.body),\n };\n\n const findInParsedCaptures = (value: string, set: Set) => {\n for (const item of set) if (item.value === value) return item;\n };\n jsonSendedRequest = await lesanAPI({\n baseUrl: baseUrl,\n options: body,\n });\n const tResPerformance = performance.now() - tResTime0;\n\n const resultId = uid();\n const newResult = {\n id: resultId,\n request: { ...body, body: parsedHeaderBody.body },\n response: jsonSendedRequest,\n responseTime: tResPerformance,\n };\n\n setRequestDetail((preReqDetails) => {\n const sequnces = preReqDetails.sequenceDetail;\n const findedSequnceIdx = sequnces.findIndex(\n (sq) => sq.id === sequnceId\n );\n let resultIdx = 1;\n if (findedSequnceIdx !== -1) {\n sequnces[findedSequnceIdx].results.push(newResult);\n resultIdx = sequnces[findedSequnceIdx].results.length;\n sequnces[findedSequnceIdx].bestTime =\n sequnces[findedSequnceIdx].bestTime.time < tResPerformance\n ? sequnces[findedSequnceIdx].bestTime\n : { resultIdx, time: tResPerformance };\n sequnces[findedSequnceIdx].worstTime =\n sequnces[findedSequnceIdx].worstTime.time > tResPerformance\n ? sequnces[findedSequnceIdx].worstTime\n : { resultIdx, time: tResPerformance };\n if (jsonSendedRequest.success) {\n sequnces[findedSequnceIdx].success =\n sequnces[findedSequnceIdx].success + 1;\n } else {\n sequnces[findedSequnceIdx].fails =\n sequnces[findedSequnceIdx].fails + 1;\n }\n sequnces[findedSequnceIdx].time =\n sequnces[findedSequnceIdx].time + tResPerformance;\n sequnces[findedSequnceIdx].repeat =\n sequnces[findedSequnceIdx].repeat + 1;\n } else {\n sequnces.push({\n id: sequnceId,\n bodyHeader: e2eForm.bodyHeaders,\n time: tResPerformance,\n repeat: 1,\n success: jsonSendedRequest.success ? 1 : 0,\n fails: jsonSendedRequest.success ? 0 : 1,\n bestTime: { resultIdx, time: tResPerformance },\n worstTime: { resultIdx, time: tResPerformance },\n captures: e2eForm.captures.map(({ key, value }) => ({\n key,\n value,\n sequenceIdx: sequnces.length + 1,\n model: parsedHeaderBody.body.model,\n act: parsedHeaderBody.body.act,\n })),\n usedCaptures: usedCaptures.map(({ key, value }) => {\n const findedInsideParsedCapture = findInParsedCaptures(\n value,\n parsedCaptures\n );\n return {\n key,\n value,\n captured: findedInsideParsedCapture?.captured,\n sequenceIdx:\n findedInsideParsedCapture?.sequenceIdx ||\n findedInsideParsedCapture?.sequenceIdx === 0\n ? findedInsideParsedCapture?.sequenceIdx + 1\n : undefined,\n model: findedInsideParsedCapture?.model,\n act: findedInsideParsedCapture?.act,\n };\n }),\n results: [newResult],\n });\n }\n\n return {\n allReqPerformance:\n preReqDetails.allReqPerformance + tResPerformance,\n numberRequest: preReqDetails.numberRequest + 1,\n success: jsonSendedRequest.success\n ? preReqDetails.success + 1\n : preReqDetails.success,\n fails: jsonSendedRequest.success\n ? preReqDetails.fails\n : preReqDetails.fails + 1,\n bestTime:\n preReqDetails.bestTime.time < tResPerformance\n ? preReqDetails.bestTime\n : {\n resultIdx,\n sequenceIdx: sequnces.length,\n act: parsedHeaderBody.body.act,\n model: parsedHeaderBody.body.model,\n time: tResPerformance,\n },\n worstTime:\n preReqDetails.worstTime.time > tResPerformance\n ? preReqDetails.worstTime\n : {\n resultIdx,\n sequenceIdx: sequnces.length,\n act: parsedHeaderBody.body.act,\n model: parsedHeaderBody.body.model,\n time: tResPerformance,\n },\n sequenceDetail: sequnces,\n allCaptureItems: Array.from(parsedCaptures),\n };\n });\n }\n\n const captures = [...e2eForm.captures].filter(\n (capture) => capture.key && capture.value\n );\n\n const parsedCapuresValue = captures.map((capture) => {\n const parts = capture.value.split(\"[\");\n const parsedValue: (string | number)[] = [];\n\n parts.forEach((part: any) => {\n let slicedPart: string | number = part.slice(0, part.indexOf(\"]\"));\n if (!isNaN(Number(slicedPart))) {\n slicedPart = Number(slicedPart);\n }\n parsedValue.push(slicedPart);\n });\n parsedValue.shift();\n return { key: capture.key, parsedValue, value: capture.value };\n });\n // let getedValues: any;\n parsedCapuresValue.forEach((capture) => {\n if (capture.parsedValue.length > 0) {\n let getedValue: any = jsonSendedRequest;\n capture.parsedValue.forEach((capValue) => {\n getedValue = getedValue[capValue];\n });\n parsedCaptures.add({\n key: capture.key,\n value: getedValue,\n captured: capture.value,\n act: parsedBody.act,\n model: parsedBody.model,\n sequenceIdx: requestDetail.sequenceDetail.length - 1,\n });\n // getedValues = [...getedValue, ...e2eForm.captures];\n }\n });\n }\n };\n\n const handeE2eFormDetails = (\n idx: number,\n fieldName: keyof E2eForm,\n value: any\n ) => {\n const copy = [...e2eForms];\n (copy[idx] as any)[fieldName] = value;\n setE2eForms([...copy]);\n };\n\n const Ref = useRef();\n const handleClick = (id: any) =>\n Ref.current.childNodes[id - 1].scrollIntoView({\n behavior: \"smooth\",\n block: \"start\",\n });\n\n return (\n
    \n {view === \"result\" ? (\n
    \n
    \n {\n document.getElementById(\"modal\")?.scroll({\n top: 0,\n behavior: \"smooth\",\n });\n setRequestDetail(initialRequestDetail);\n setView(\"e2e\");\n }}\n >\n \n Back\n \n \n \n Export\n \n
    \n
    \n Information\n
    \n Requests{\" \"}\n
    \n

    \n All Request Count:{\" \"}\n \n {requestDetail.numberRequest}\n {\" \"}\n times\n

    {\" \"}\n

    \n {\" \"}\n All Request Time:{\" \"}\n \n {requestDetail.allReqPerformance}\n {\" \"}\n ms\n

    \n
    \n
    \n

    \n All Success Request:{\" \"}\n \n {requestDetail.success}{\" \"}\n {\" \"}\n times\n

    \n

    \n All Fails Request :{\" \"}\n \n {requestDetail.fails}{\" \"}\n \n times\n

    \n
    \n
    \n
    \n Times{\" \"}\n
      \n
    • \n {\" \"}\n Best Request Time:{\" \"}\n \n {requestDetail.bestTime.time}{\" \"}\n \n ms{\" \"}\n
    • \n
    • \n {\" \"}\n Seqeunce Number:{\" \"}\n {\n handleClick(requestDetail.bestTime.sequenceIdx);\n }}\n className=\"information-container--request--sections--item--content e2e-sequensce-number\"\n >\n {requestDetail.bestTime.sequenceIdx}{\" \"}\n \n
    • \n
    • \n {\" \"}\n Request Number:{\" \"}\n \n {requestDetail.bestTime.resultIdx}\n {\" \"}\n
    • \n
    • \n Model:{\" \"}\n \n {requestDetail.bestTime.model}{\" \"}\n {\" \"}\n
    • \n
    • \n Act:{\" \"}\n \n {requestDetail.bestTime.act}{\" \"}\n \n
    • \n
    \n
      \n
    • \n Worst Request Time:{\" \"}\n \n {requestDetail.worstTime.time}\n {\" \"}\n ms{\" \"}\n
    • \n
    • \n {\" \"}\n Seqeunce Number:{\" \"}\n {\n handleClick(requestDetail.worstTime.sequenceIdx);\n }}\n className=\"information-container--request--sections--item--content e2e-sequensce-number\"\n >\n {requestDetail.worstTime.sequenceIdx}{\" \"}\n \n
    • \n
    • \n {\" \"}\n Request Number:{\" \"}\n \n {requestDetail.worstTime.resultIdx}{\" \"}\n \n
    • \n
    • \n Model:{\" \"}\n \n {requestDetail.worstTime.model}\n \n
    • \n
    • \n act:{\" \"}\n \n {requestDetail.worstTime.act}\n \n
    • \n
    \n
    \n {requestDetail.allCaptureItems.length > 0 && (\n
    \n \n Captures Information\n {\" \"}\n {requestDetail.allCaptureItems.map((ci) => (\n \n \n {ci.key}\n \n
  • \n Captured From:{\" \"}\n \n {ci.captured}\n \n
  • \n
  • \n Value Of{\" \"}\n \n : {ci.value}\n \n
  • \n
  • \n Model :{\" \"}\n \n {ci.model}\n \n
  • \n
  • \n Act :{\" \"}\n \n {ci.act}\n \n
  • \n
  • \n Captured Inside Sequnce Number:{\" \"}\n \n {ci.sequenceIdx}\n \n
  • \n \n ))}\n
    \n )}\n
    \n\n
    \n {requestDetail.sequenceDetail.map((sequence, idx) => {\n return ;\n })}\n
    \n
    \n ) : view === \"e2e\" ? (\n \n
    \n {e2eForms.map((e2eForm, idx) => (\n \n
    \n
    \n handleDuplicate(idx)}\n >\n \n
    \n {e2eForms.length > 1 && (\n \n handleMove(idx, idx - 1)}\n >\n \n
    \n handleMove(idx, idx + 1)}\n >\n \n
    \n handleDelete(idx)}\n >\n \n
    \n \n )}\n \n
    \n
    \n set test body and headers\n
    \n \n handeE2eFormDetails(idx, \"bodyHeaders\", e.target.value)\n }\n />\n
    \n
    \n
    \n set repeat time\n
    \n
    \n \n handeE2eFormDetails(\n idx,\n \"repeat\",\n Math.abs(e.target.value)\n )\n }\n />\n \n handeE2eFormDetails(\n idx,\n \"repeat\",\n e2eForms[idx].repeat + 1\n )\n }\n >\n +\n \n \n handeE2eFormDetails(\n idx,\n \"repeat\",\n e2eForms[idx].repeat > 2\n ? e2eForms[idx].repeat - 1\n : 1\n )\n }\n >\n -\n \n
    \n
    \n capture variables\n
    \n \n handeE2eFormDetails(idx, \"captures\", [\n ...e2eForms[idx].captures,\n { key: \"\", value: \"\" },\n ])\n }\n >\n add capture\n \n\n {e2eForm.captures.map((capture, capId) => (\n \n \n \n handeE2eFormDetails(idx, \"captures\", [\n ...e2eForms[idx].captures.slice(0, capId),\n ...e2eForms[idx].captures.slice(\n capId + 1,\n e2eForms[idx].captures.length\n ),\n ])\n }\n style={{ position: \"absolute\", zIndex: \"2\" }}\n >\n \n \n \n handeE2eFormDetails(idx, \"captures\", [\n ...e2eForms[idx].captures.slice(0, capId),\n {\n key: e.target.value,\n value: e2eForms[idx].captures[capId].value,\n },\n ...e2eForms[idx].captures.slice(\n capId + 1,\n e2eForms[idx].captures.length\n ),\n ])\n }\n // onChange={(e: any) => {\n // const copy = [...e2eForms];\n // copy[idx].captures[capId].key = e.target.value;\n // setE2eForms([...copy]);\n // }}\n />\n \n handeE2eFormDetails(idx, \"captures\", [\n ...e2eForms[idx].captures.slice(0, capId),\n {\n key: e2eForms[idx].captures[capId].key,\n value: e.target.value,\n },\n ...e2eForms[idx].captures.slice(\n capId + 1,\n e2eForms[idx].captures.length\n ),\n ])\n }\n // onChange={(e: any) => {\n // const copy = [...e2eForms];\n // copy[idx].captures[capId].value =\n // e.target.value;\n // setE2eForms([...copy]);\n // }}\n />\n
    \n \n ))}\n \n \n \n ))}\n \n {\n setIsShowE2eButton(!isShowE2eButton)}\n >\n show btn\n \n }\n
    \n {\n setE2eForms([...e2eForms, e2eFirstInp()]);\n }}\n >\n \n Add\n \n {\n setView(\"result\");\n await runE2eTest();\n }}\n >\n \n Run E2E Test\n \n
    \n \n ) : (\n \"\"\n )}\n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function AddIcon() {\n return (\n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function BackIcon() {\n return (\n \n \n \n\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nconst DeleteIcon = () => {\n return (\n \n \n \n \n );\n};\n\nexport default DeleteIcon;\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function DownIcon() {\n return (\n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function HelpIcon() {\n return (\n \n \n\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ImportIcon() {\n return (\n \n \n\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function RunIcon() {\n return (\n \n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function UpIcon() {\n return (\n \n \n \n \n );\n}\n", "export enum ClassNames {\n string = \"cute-string\",\n undefined = \"cute-undefined\",\n function = \"cute-function\",\n number = \"cute-number\",\n boolean = \"cute-boolean\",\n null = \"cute-null\",\n colon = \"cute-colon\",\n key = \"cute-key\",\n}\n\nexport const pre = {\n fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial',\n // fontSize: 15,\n // lineHeight: \"20px\",\n display: \"inline-block\",\n borderRadius: 3,\n padding: \"10px 10px\",\n // background: \"#272822\",\n color: \"#f8f8f2\",\n textShadow: \"1px 1px black\",\n // overflow: \"auto\",\n whiteSpace: \"pre-wrap\",\n // margin:'0'\n // width:'100%',\n};\n", "import { ClassNames } from \"./styles.ts\";\n\nconst regEx =\n /(\"(\\\\u[a-zA-Z0-9]{4}|\\\\[^u]|[^\\\\\"])*\"(\\s*:)?|\\b(true|false|null)\\b|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)/g;\nconst syntaxHighlight = (json: Object): string => {\n const jsonString = JSON.stringify(json, replacer, 2)\n .replace(/&/g, \"&\")\n .replace(//g, \">\");\n\n return jsonString.replace(regEx, (match) => {\n let className = ClassNames.number;\n let text = match;\n\n if (/^\"/.test(match)) {\n if (/:$/.test(match)) {\n className = ClassNames.key;\n text = text.replace(\":\", `:`);\n } else {\n if (match === \"\\\"undefined\\\"\") {\n className = ClassNames.undefined;\n } else if (match === \"\\\"[Function]\\\"\") {\n className = ClassNames.function;\n } else {\n className = ClassNames.string;\n }\n }\n } else if (/true|false/.test(match)) {\n className = ClassNames.boolean;\n } else if (/null/.test(match)) {\n className = ClassNames.null;\n }\n\n return `${text}`;\n });\n};\n\nconst replacer = (_: string, value: any) => {\n if (typeof value === \"function\") {\n return \"[Function]\";\n }\n\n if (typeof value === \"undefined\") {\n return \"undefined\";\n }\n\n return value;\n};\n\nexport const cutify = (json: Object): string => {\n return syntaxHighlight(json)\n .replace(/\"/g, \"\");\n};\n", "/** @jsx h */\nimport { Fragment, FunctionalComponent, h } from \"../reactDeps.ts\";\nimport { cutify } from \"./cutify.ts\";\nimport * as styles from \"./styles.ts\";\n\ninterface JSONViewerProps {\n jsonData: any;\n}\n\nexport const JSONViewer: FunctionalComponent = ({\n jsonData,\n}) => {\n const cutifiedJson = cutify(jsonData);\n return (\n \n \n \n );\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronLeftDouble() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronLeftIcon() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronRightDouble() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronRightIcon() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport {\n h,\n useState,\n useCallback,\n useEffect,\n StateUpdater,\n} from \"../reactDeps.ts\";\nimport ChevronLeftDouble from \"./icon/ChevronLeftDouble.tsx\";\nimport ChevronLeftIcon from \"./icon/ChevronLeftIcon.tsx\";\nimport ChevronRightDouble from \"./icon/ChevronRightDouble.tsx\";\nimport ChevronRightIcon from \"./icon/ChevronRightIcon.tsx\";\n\nexport function Pagination({\n pageCountNumber,\n activePage,\n setActivePage,\n}: {\n activePage: number;\n pageCountNumber: number;\n setActivePage: StateUpdater;\n}) {\n const [pages, setPages] = useState([]);\n const [goTo, setGoTo] = useState(1);\n\n const handleChange = (event: any) => {\n setGoTo(event.target.value);\n setActivePage(event.target.value - 1);\n };\n const handleClick = () => {\n setActivePage(goTo - 1);\n };\n const pageCount = pageCountNumber;\n const buildPages = useCallback(() => {\n let start = 0,\n end = pageCount > 5 ? 5 : pageCount;\n\n if (activePage > 3 && activePage < pageCount - 3) {\n start = activePage - 1;\n end = activePage - 1 + 3;\n }\n\n if (pageCount > 5 && activePage > pageCount - 5) {\n start = pageCount - 5;\n end = pageCount - 1;\n }\n\n if (pageCount <= 5) {\n start = 0;\n end = pageCount;\n }\n\n const newPages = [];\n\n for (let i = start; i < end; i++) {\n newPages.push(i);\n }\n\n setPages(newPages);\n }, [activePage]);\n\n const onChange = (page: any) => setActivePage(page);\n\n const isActive = (page: any) => (activePage === page ? \"active\" : \"\");\n\n useEffect(() => buildPages(), [activePage]);\n\n return (\n
    \n {pageCount > 1 && (\n {\n setActivePage(0);\n }}\n >\n {\" \"}\n \n \n )}\n {pageCount > 1 && (\n {\n setActivePage(activePage === 0 ? pageCount - 1 : activePage - 1);\n }}\n >\n \n \n )}\n {(activePage >= 4 || activePage > pageCount - 5) && pageCount > 5 && (\n \n )}\n {(activePage >= 4 || activePage > pageCount - 5) && pageCount > 5 && (\n ...\n )}\n {pages.map((page: any) => (\n onChange(page)}\n >\n {page + 1}\n \n ))}\n {activePage < pageCount - 4 && pageCount > 5 && ...}\n {pageCount > 5 && (\n onChange(pageCount - 1)}\n >\n {pageCount}\n \n )}\n\n {pageCount > 1 && (\n \n setActivePage(activePage === pageCount - 1 ? 0 : activePage + 1)\n }\n >\n \n \n )}\n {pageCount > 1 && (\n {\n setActivePage(pageCount - 1);\n }}\n >\n {\" \"}\n {\" \"}\n \n )}\n {pageCount > 1 && (\n
    \n {\" \"}\n \n {\n handleClick();\n }}\n >\n Go\n \n
    \n )}\n
    \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function InfoIcon2() {\n return (\n \n \n \n \n {\" \"}\n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function SortFromTopToBottomIcon() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { StateUpdater, h, useState } from \"../reactDeps.ts\";\nimport { TResults } from \"./E2E.tsx\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { Pagination } from \"./Pagination.tsx\";\nimport InfoIcon2 from \"./icon/InfoIcon2.tsx\";\nimport SortFromTopToBottomIcon from \"./icon/SortFromTopToBottomIcon.tsx\";\n\nexport const ResultSlider = ({\n results,\n setIsShowE2eResponse,\n index,\n}: {\n results: TResults[];\n setIsShowE2eResponse: StateUpdater;\n index: number;\n}) => {\n const [activePage, setActivePage] = useState(0);\n\n // const [show, setShow] = useState(0);\n\n // const s: any = [];\n // results.map((e, i) => {\n // s.push(i);\n // });\n\n // pure pagination!\n // let e: [] = [];\n // if (s.length > 6) {\n // e = s.slice(\n // show === 2 ? show + 2 : show === 3 ? show + 2 : show,\n\n // show === 2\n // ? show + 4\n // : show < s.length - 3\n // ? show + 2\n // : show === s.length - 3\n // ? show + 1\n // : show\n // );\n // } else {\n // e = s;\n // }\n\n {\n /*
    \n setShow(0)}>{show === 0 ? show + 1 : 1}\n setShow(1)}>{show === 1 ? show + 1 : 2}\n setShow(2)}>{show === 2 ? show + 1 : 3}\n
    \n\n {show >= 2 && show <= results.length - 3 ? (\n \n ...{\" \"}\n {e.map((e: any) => (\n {\n setShow(e - 1);\n console.log(e);\n }}\n >\n {e}\n \n ))}\n {!(show === s.length - 3) && ...}\n \n ) : (\n ...\n )}\n
    \n setShow(results.length - 3)}>\n {results.length - 2}\n \n setShow(results.length - 2)}>\n {results.length - 1}\n \n setShow(results.length - 1)}>\n {results.length}\n \n
    */\n }\n\n // end pure pagination\n\n return (\n
    \n
    \n
    \n
    \n setIsShowE2eResponse(true)}\n >\n \n \n
    \n {\" \"}\n \n {index + 1}\n
    \n REQUEST\n
    \n
    \n \n
    \n
    \n
    \n
    \n RESPONSE\n \n {results[activePage].responseTime}ms\n \n
    \n
    \n \n
    \n
    \n
    \n
    \n {\" \"}\n {\" \"}\n
    \n {\" \"}\n {results.map((_re, index) => (\n setActivePage(index)}\n data-show={activePage === index}\n >\n {index + 1}\n \n ))}\n
    \n
    \n
    \n );\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function InfoIcon() {\n return (\n \n \n \n \n {\" \"}\n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\n\nimport { Fragment, h, useState } from \"../reactDeps.ts\";\nimport { TSequenceDetail } from \"./E2E.tsx\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { ResultSlider } from \"./ResultSlider.tsx\";\nimport InfoIcon from \"./icon/InfoIcon.tsx\";\nimport SortFromTopToBottomIcon from \"./icon/SortFromTopToBottomIcon.tsx\";\n\nexport function SequenceSlider({\n sequence,\n index,\n}: {\n sequence: TSequenceDetail;\n index: number;\n}) {\n const [isShowE2eResponse, setIsShowE2eResponse] = useState(true);\n\n return (\n
    \n {isShowE2eResponse ? (\n \n
    \n
    \n setIsShowE2eResponse(false)}\n >\n \n \n
    \n {\" \"}\n \n {index + 1}\n
    \n\n Body Header\n
    \n
    \n \n
    \n
    \n
    \n
    \n Description\n
    \n \n
    \n Requests{\" \"}\n \n All Request Count: {sequence.repeat}{\" \"}\n \n \n Success: {sequence.success}\n \n \n Fails: {sequence.fails}\n \n \n All Request Time: {sequence.time} ms\n \n \n Avrage Time For Each Request:{\" \"}\n {(sequence.time / sequence.repeat).toFixed(1)} ms\n \n
    \n
    \n Best{\" \"}\n \n Best Time: {sequence.bestTime.time} ms\n \n \n Request Number: {sequence.bestTime.resultIdx}\n \n
    \n
    \n Worst\n \n Worst Time: {sequence.worstTime.time} ms{\" \"}\n \n \n {\" \"}\n Request Number: {sequence.worstTime.resultIdx}\n \n
    \n {sequence.captures.length > 0 && (\n
    \n \n Capture Items\n {\" \"}\n {sequence.captures.map((ci) => (\n
      \n
    • \n key:{\" \"}\n \n {ci.key}\n \n
    • \n
    • \n value :{\" \"}\n \n {ci.value}\n \n
    • \n
    • \n model :{\" \"}\n \n {ci.model}\n \n
    • \n
    • \n act :{\" \"}\n \n {ci.act}\n \n
    • \n
    • \n sequnce number:{\" \"}\n \n {\" \"}\n {ci.sequenceIdx}\n \n
    • \n
    \n ))}\n
    \n )}\n\n {sequence.usedCaptures.length > 0 && (\n
    \n \n Using Capture Items\n {\" \"}\n {sequence.usedCaptures.map((ci) => (\n
      \n
    • \n key:{\" \"}\n \n {\" \"}\n {ci.key}\n \n
    • \n
    • \n captured from:{\" \"}\n \n {\" \"}\n {ci.captured}\n \n
    • \n
    • \n value:{\" \"}\n \n {\" \"}\n {ci.value}\n \n
    • \n
    • \n {\" \"}\n model :{\" \"}\n \n {\" \"}\n {ci.model}\n \n
    • \n
    • \n {\" \"}\n act :{\" \"}\n \n {ci.act}\n \n
    • \n
    • \n sequnce number:{\" \"}\n \n {ci.sequenceIdx}\n \n
    • \n
    \n ))}\n
    \n )}\n
    \n \n \n ) : (\n \n )}\n \n );\n}\n", "/** @jsx h */\n\nexport function ConvertMilliseconds(milliseconds: number) {\n const hours = Math.floor(milliseconds / 3600000);\n const minutes = Math.floor((milliseconds % 3600000) / 60000);\n const seconds = Math.floor(((milliseconds % 360000) % 60000) / 1000);\n\n return hours > 0\n ? `${hours}h ${minutes}m ${seconds}s`\n : minutes > 0\n ? `${minutes}m ${seconds}s`\n : seconds > 0\n ? `${seconds}s`\n : `${milliseconds}ms`;\n}\n", "/** @jsx h */\nimport { useEffect, EffectCallback, useRef } from \"../../reactDeps.ts\";\n\ntype useNonInitialEffectReturn = void | (() => void | undefined);\n\nexport const useNonInitialEffect = (\n effect: EffectCallback,\n deps?: any\n): useNonInitialEffectReturn => {\n const initialRender = useRef(true);\n\n useEffect(() => {\n let effectReturns: any = () => {\n /* Empty Return fallback */\n };\n\n if (initialRender.current) {\n initialRender.current = false;\n } else {\n effectReturns = effect();\n }\n\n if (effectReturns && typeof effectReturns === \"function\") {\n return effectReturns;\n }\n }, deps);\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function Dustbin() {\n return (\n \n \n \n );\n}\n", "/** @jsx h */\nimport { Fragment, h, useEffect, useState, useRef } from \"../reactDeps.ts\";\nimport { ConvertMilliseconds } from \"../utils/convertMilliseconds.ts\";\nimport { useNonInitialEffect } from \"./hooks/useNonInitialEffect.ts\";\nimport DeleteIcon from \"./icon/DeleteIcon.tsx\";\nimport DustbinIcon from \"./icon/DustbinIcon.tsx\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nexport function History({\n setFormFromHistory,\n}: // ,localHistory\n{\n setFormFromHistory: (form: any) => void;\n // localHistory:any\n}) {\n const { history, setHistory, deleteItemHistory } = useLesan();\n const [show, setShow] = useState(\"\");\n\n useNonInitialEffect(() => {\n localStorage.setItem(\"localHistory\", JSON.stringify(history));\n }, [history]);\n\n return (\n \n {history && history?.length > 0 ? (\n
    \n
    \n {history.map((hi, index) => (\n
    \n
    \n \n REQUEST\n {hi.reqDate}\n
    \n
    \n
    \n {\" \"}\n \n |\n
    \n \n
    \n
    \n {show === hi.id ? (\n setShow(\"\")}\n className=\"history-re-detail-button\"\n >\n Hide\n \n –\n \n \n ) : (\n {\n setShow(hi.id);\n document.getElementById(hi.id)?.scrollIntoView();\n }}\n className=\"history-re-detail-button\"\n >\n Show{\" \"}\n \n +\n \n \n )}\n
    \n \n {\" \"}\n \n
    \n \n
    \n \n {\n event.stopPropagation();\n deleteItemHistory(index);\n }}\n >\n \n \n \n RESPONSE\n \n \n {ConvertMilliseconds(hi.response.tookTime)}\n \n \n
    \n
    \n
    \n {\" \"}\n \n success:\n \n
    \n \n
    \n
    \n
    \n setFormFromHistory(hi.request)}\n className=\"history-re-detail-button\"\n >\n Use{\" \"}\n \n ➜{\" \"}\n \n \n
    \n \n {\" \"}\n \n \n
    \n \n ))}\n \n ) : (\n \"There is no history to display\"\n )}\n {history && history.length > 0 ? (\n
    \n {\n if (confirm(\"Clear All History?\") == true) {\n setHistory([]);\n }\n }}\n >\n \n Clear History\n \n
    \n ) : (\n \"\"\n )}\n
    \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function DocumentIcon() {\n return (\n \n \n \n \n \n {\" \"}\n \n {\" \"}\n \n {\" \"}\n \n {\" \"}\n \n \n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function HistoryIcon() {\n return (\n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ReFetchIcon() {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function SchemaIcon() {\n return (\n \n \n \n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function SettingIcon() {\n return (\n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function TestIcon() {\n return (\n \n \n \n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function CopyIcon() {\n return (\n \n \n \n \n \n // \n // \n // \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function RunTestIcon() {\n return (\n \n \n \n \n {\" \"}\n \n {\" \"}\n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function SuccessIcon() {\n return (\n \n \n \n );\n}\n", "/** @jsx h */\nimport { Ref, useEffect, useRef } from \"../../reactDeps.ts\";\n\nexport function useOutsideClick(callback: any) {\n const ref = useRef(null);\n\n useEffect(() => {\n const handleClick = (event: any) => {\n if (ref.current && !ref.current.contains(event?.target)) {\n callback();\n }\n };\n\n document.addEventListener(\"click\", handleClick);\n\n return () => {\n document.removeEventListener(\"click\", handleClick);\n };\n }, [ref]);\n\n return ref;\n}\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function ChevronDownIcon({\n className = \"\",\n}: {\n className?: string;\n}) {\n return (\n \n \n \n \n {\" \"}\n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { h, useState, useEffect, Ref } from \"../reactDeps.ts\";\nimport { useOutsideClick } from \"./hooks/useOutsideClick.ts\";\nimport ChevronDownIcon from \"./icon/ChevronDownIcon.tsx\";\n\nexport function Selected({\n items,\n onClickItem,\n incomeActiveItem,\n canShow,\n}: {\n items: string[];\n onClickItem: (item: string) => void;\n incomeActiveItem?: string | null;\n canShow?: boolean;\n}) {\n const [show, setShow] = useState(false);\n const [activeItem, setActiveItem] = useState(\"\");\n\n useEffect(() => {\n setActiveItem(incomeActiveItem || \"\");\n }, [incomeActiveItem]);\n\n const handleClickOutside = () => {\n setShow(false);\n };\n\n const ref = useOutsideClick(handleClickOutside);\n\n return (\n
    \n
    \n setShow(!show)}\n >\n
    \n {\" \"}\n {\n setActiveItem(\"\");\n onClickItem(\"\");\n setShow(false);\n e.stopPropagation();\n }}\n >\n x\n \n {activeItem}\n
    \n\n \n
    \n\n {show && (\n
    \n {items?.map((item, index) => (\n {\n setActiveItem(item);\n onClickItem(item);\n setShow(false);\n }}\n >\n {item}\n
    \n ))}\n
    \n )}\n \n \n );\n}\n", "/** @jsx h */\nimport { h, FunctionalComponent, useState } from \"../reactDeps.ts\";\nimport ChevronDownIcon from \"./icon/ChevronDownIcon.tsx\";\nimport { useOutsideClick } from \"./hooks/useOutsideClick.ts\";\n\nexport interface IOption {\n value: string;\n label: string;\n}\n\ninterface MultiSelectProps {\n options: IOption[];\n onChange: (options: IOption[]) => void;\n}\n\nconst MultiSelect: FunctionalComponent = ({\n options,\n onChange,\n}) => {\n const [selectedOptions, setSelectedOptions] = useState([]);\n const [unselectedOptions, setUnselectedOptions] =\n useState(options);\n const [isOpen, setIsOpen] = useState(false);\n\n const handleOptionChange = (selectedOption: IOption) => {\n if (selectedOptions.includes(selectedOption)) {\n const filteredSelectedOptions = selectedOptions.filter(\n (option) => option.value !== selectedOption.value\n );\n setSelectedOptions(filteredSelectedOptions);\n setUnselectedOptions([...unselectedOptions, selectedOption]);\n onChange(filteredSelectedOptions);\n } else {\n const filteredUnselectedOptions = unselectedOptions.filter(\n (option) => option.value !== selectedOption.value\n );\n setSelectedOptions([...selectedOptions, selectedOption]);\n setUnselectedOptions(filteredUnselectedOptions);\n onChange([...selectedOptions, selectedOption]);\n }\n };\n\n const resetOptions = () => {\n setSelectedOptions([]);\n onChange([]);\n setUnselectedOptions(options);\n };\n\n const toggleDropdown = () => {\n setIsOpen(!isOpen);\n };\n\n const ref = useOutsideClick(() => {\n setIsOpen(false);\n });\n\n return (\n
    \n
    \n
    \n {selectedOptions.map((item) => (\n
    \n
    \n {item.label}\n
    \n {\n e.stopPropagation();\n handleOptionChange(item);\n }}\n >\n x\n
    \n
    \n ))}\n
    \n
    \n {selectedOptions.length ? (\n {\n e.stopPropagation();\n resetOptions();\n }}\n >\n x\n
    \n ) : null}\n\n
    \n \n
    \n
    \n \n {isOpen ? (\n
    \n {unselectedOptions.length ? (\n unselectedOptions.map((option) => (\n {\n e.stopPropagation();\n handleOptionChange(option);\n }}\n className=\"multi-select__option\"\n >\n
    {option.label}
    \n
    \n ))\n ) : (\n
    No Options!
    \n )}\n \n ) : null}\n \n );\n};\n\nexport default MultiSelect;\n", "/** @jsx h */\nimport { Fragment, h, useRef, useState } from \"../reactDeps.ts\";\nimport { createNestedObjectsFromKeys } from \"../utils/createNestedObjectsFromKeys.ts\";\nimport { uid } from \"../utils/uid.ts\";\nimport { E2eForm, MODAL_TYPES, TRequest } from \"./context/actionType.ts\";\nimport { ConvertMilliseconds } from \"../utils/convertMilliseconds.ts\";\nimport CopyIcon from \"./icon/CopyIcon.tsx\";\nimport RunTestIcon from \"./icon/RunTestIcon.tsx\";\nimport SuccessIcon from \"./icon/SuccessIcon.tsx\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport { Selected } from \"./Selected.tsx\";\nimport MultiSelect from \"./MultiSelect.tsx\";\n\nconst lesanAPI = ({\n baseUrl,\n options,\n}: {\n baseUrl: string;\n options: TRequest;\n}) => fetch(`${baseUrl}lesan`, options).then((res) => res.json());\n\nexport const Main = ({ urlAddress }: { urlAddress: string }) => {\n const {\n activeTab,\n tabsData,\n actsObj,\n headers,\n history,\n setService,\n setSchema,\n setAct,\n setPostFields,\n setGetFields,\n setFormData,\n setHistory,\n setResponse,\n resetGetFields,\n resetPostFields,\n addE2eForm,\n setModal,\n } = useLesan();\n\n const [active, setActive] = useState(false);\n\n const changeGetValue = (\n value: 0 | 1 | null,\n keyname: string,\n getObj: Record,\n returnObj: Record,\n ) => {\n for (const key in getObj) {\n getObj[key].type === \"enums\"\n ? (returnObj[`${keyname}.${key}`] = value)\n : changeGetValue(\n value,\n `${keyname}.${key}`,\n getObj[key].schema,\n returnObj,\n );\n }\n return returnObj;\n };\n\n const formRef = useRef(null);\n\n const handleChange = (event: any) => {\n const { name, value, type, alt } = event.target;\n let updatedValue: string | number | boolean | any[];\n\n if (type === \"number\") {\n updatedValue = Number(value);\n } else if (alt === \"array\" || alt === \"boolean\") {\n updatedValue = JSON.parse(value);\n } else {\n updatedValue = value;\n }\n\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [name]: updatedValue,\n },\n index: activeTab,\n });\n };\n\n const renderPostFields = ({\n key,\n field,\n isMultiEnum = false,\n formData,\n }: {\n key: string;\n field: Record;\n isMultiEnum?: boolean;\n formData?: any;\n }): h.JSX.Element => {\n if (field.type === \"array\") {\n return renderPostFields({\n key,\n formData,\n field: field[\"schema\"],\n isMultiEnum: true,\n });\n } else if (field[\"type\"] === \"enums\" && isMultiEnum) {\n return (\n ({\n label: schemaKey,\n value: field[\"schema\"][schemaKey],\n }))}\n onChange={(options) => {\n const value = options.map((item) => item.value);\n setFormData({\n data: {\n ...formData,\n [`set.${key}`]: value,\n },\n index: activeTab,\n });\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n }}\n >\n \n );\n } else if (field[\"type\"] === \"enums\") {\n return (\n {\n setFormData({\n data: {\n ...formData,\n [`set.${key}`]: value,\n },\n index: activeTab,\n });\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n }}\n incomeActiveItem={formData[`set.${key}`]}\n items={Object.keys(field[\"schema\"])}\n />\n );\n } else {\n return (\n \n );\n }\n };\n\n const renderGetFields = ({\n getField,\n keyName,\n margin,\n }: {\n getField: any;\n keyName: string;\n margin: number;\n }) => (\n \n
    {keyName}
    \n {Object.keys(getField[\"schema\"]).map((item, index) =>\n getField[\"schema\"][item].type === \"enums\"\n ? (\n \n \n
    \n {\n const copy = { ...tabsData[activeTab].formData };\n delete copy[`get.${keyName}.${item}`];\n setFormData({ data: copy, index: activeTab });\n }}\n >\n \n {\n setFormData({\n index: activeTab,\n data: {\n ...tabsData[activeTab].formData,\n [`get.${keyName}.${item}`]: 0,\n },\n });\n }}\n >\n 0\n \n {\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [`get.${keyName}.${item}`]: 1,\n },\n index: activeTab,\n });\n }}\n >\n 1\n \n
    \n \n )\n : (\n renderGetFields({\n getField: getField[\"schema\"][item],\n keyName: `${keyName}.${item}`,\n margin: margin + 1,\n })\n )\n )}\n \n );\n\n const requestFunction = () => {\n const details = createNestedObjectsFromKeys(tabsData[activeTab].formData);\n\n const body: TRequest = {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...headers,\n },\n body: JSON.stringify({\n service: tabsData[activeTab].service,\n model: tabsData[activeTab].schema,\n act: tabsData[activeTab].act,\n details,\n }),\n };\n return { body };\n };\n\n const handleSubmit = async (event: any) => {\n event.preventDefault();\n const sendRequest = new Date().toLocaleDateString();\n\n setActive(true);\n\n setTimeout(() => {\n setActive(false);\n }, 450);\n\n const t0 = performance.now();\n const jsonSendedRequest = await lesanAPI({\n baseUrl: urlAddress,\n options: requestFunction().body,\n });\n const t1 = performance.now();\n const tookTime = (t1 - t0).toFixed(1);\n\n /* event.target.reset(); */\n /* setFormData({}); */\n\n setResponse({ data: { ...jsonSendedRequest, tookTime }, index: activeTab });\n\n const newHistory = [\n {\n request: {\n ...requestFunction().body,\n body: JSON.parse(requestFunction().body.body),\n },\n response: { ...jsonSendedRequest, tookTime },\n id: uid(),\n reqDate: sendRequest,\n },\n ...history,\n ];\n setHistory(newHistory);\n localStorage.setItem(\"localHistory\", JSON.stringify(newHistory));\n\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n };\n\n const canShowRequestFields = tabsData[activeTab].service &&\n tabsData[activeTab].schema &&\n tabsData[activeTab].postFields &&\n tabsData[activeTab].getFields &&\n tabsData[activeTab].act;\n\n const canShowSchema = tabsData[activeTab].service;\n\n const canShowAct = tabsData[activeTab].service && tabsData[activeTab].schema;\n\n const copyResponse = () => {\n const response = JSON.stringify(tabsData[activeTab].response);\n navigator.clipboard.writeText(response);\n };\n\n const copyRequest = () => {\n const request: any = requestFunction();\n request.body.body = JSON.parse(request.body.body);\n navigator.clipboard.writeText(JSON.stringify(request));\n };\n\n const runE2eRequest = () => {\n const request: any = requestFunction();\n request.body.body = JSON.parse(request.body.body);\n const { method, ...rest } = request.body;\n const newE2eForm: E2eForm = {\n id: uid(),\n bodyHeaders: JSON.stringify({ ...rest }, null, 2),\n repeat: 1,\n captures: [],\n };\n addE2eForm(newE2eForm);\n setModal(MODAL_TYPES.E2E_TEST);\n };\n\n const onClickItem = (\n item: string,\n type: \"service\" | \"method\" | \"schema\" | \"action\",\n ) => {\n if (type === \"service\") {\n setService({\n data: item,\n index: activeTab,\n });\n setSchema({ data: \"\", index: activeTab });\n }\n if (type === \"method\") {\n setSchema({ data: \"\", index: activeTab });\n }\n if (type === \"schema\") {\n setSchema({ data: item, index: activeTab });\n }\n setAct({ data: \"\", index: activeTab });\n resetGetFields(activeTab);\n resetPostFields(activeTab);\n\n if (type === \"action\") {\n const actObj = (actsObj as any)[tabsData[activeTab].service][\n tabsData[activeTab].schema\n ][item][\"validator\"][\"schema\"];\n\n formRef && formRef.current && formRef.current.reset();\n setAct({ data: item, index: activeTab });\n setGetFields({\n data: actObj[\"get\"][\"schema\"],\n index: activeTab,\n });\n setPostFields({\n data: actObj[\"set\"][\"schema\"],\n index: activeTab,\n });\n }\n\n setFormData({ data: {}, index: activeTab });\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n };\n\n return (\n \n
    \n
    \n
    \n
    select services
    \n onClickItem(item, \"service\")}\n items={Object.keys(actsObj)}\n incomeActiveItem={tabsData[activeTab].service\n ? tabsData[activeTab].service\n : null}\n />\n
    \n\n
    \n console.log(canShowSchema)}\n className=\"sidebar__section-heading\"\n >\n select schema\n
    \n onClickItem(item, \"schema\")}\n items={canShowSchema\n ? Object.keys((actsObj as any)[tabsData[activeTab].service])\n : []}\n incomeActiveItem={tabsData[activeTab].schema\n ? tabsData[activeTab].schema\n : null}\n />\n
    \n\n
    \n
    select action
    \n onClickItem(item, \"action\")}\n items={canShowAct\n ? Object.keys(\n (actsObj as any)[tabsData[activeTab].service][\n tabsData[activeTab].schema\n ],\n )\n : []}\n incomeActiveItem={tabsData[activeTab].act\n ? tabsData[activeTab].act\n : null}\n />\n
    \n
    \n \n\n {canShowRequestFields && (\n
    \n
    \n
    \n SET fields\n
    \n {Object.keys(tabsData[activeTab].postFields).map((item) => (\n
    \n \n {renderPostFields({\n key: item,\n field: tabsData[activeTab].postFields[item],\n formData: tabsData[activeTab].formData,\n })}\n
    \n ))}\n
    \n GET fields\n
    \n\n
    \n \n
    \n {\n const copy = changeGetValue(\n null,\n \"get\",\n tabsData[activeTab].getFields,\n {},\n );\n\n setFormData({\n data: { ...tabsData[activeTab].formData, ...copy },\n index: activeTab,\n });\n }}\n >\n \n {\n const copy = changeGetValue(\n 0,\n \"get\",\n tabsData[activeTab].getFields,\n {},\n );\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n ...copy,\n },\n index: activeTab,\n });\n }}\n >\n 0\n \n {\n const copy = changeGetValue(\n 1,\n \"get\",\n tabsData[activeTab].getFields,\n {},\n );\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n ...copy,\n },\n index: activeTab,\n });\n }}\n >\n 1\n \n
    \n
    \n\n {Object.keys(tabsData[activeTab].getFields).map((item) =>\n tabsData[activeTab].getFields[item].type === \"enums\"\n ? (\n \n \n
    \n {\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [`get.${item}`]: null,\n },\n index: activeTab,\n });\n }}\n >\n \n {\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [`get.${item}`]: 0,\n },\n index: activeTab,\n });\n }}\n >\n 0\n \n {\n setFormData({\n data: {\n ...tabsData[activeTab].formData,\n [`get.${item}`]: 1,\n },\n index: activeTab,\n });\n }}\n >\n 1\n \n
    \n
    \n )\n : (\n renderGetFields({\n getField: tabsData[activeTab].getFields[item],\n keyName: item,\n margin: 0,\n })\n )\n )}\n
    \n \n
    \n \n \n )}\n\n
    \n {tabsData[activeTab].response && (\n
    \n
    \n

    Response

    \n
    \n copyRequest()}\n >\n \n Copy Request\n
    \n {\n copyResponse();\n }}\n >\n \n Copy Response\n
    \n {\n runE2eRequest();\n }}\n >\n \n Run E2E Test\n
    \n
    \n \n
    \n
    \n {\" \"}\n \n
    \n\n \n took:\n {tabsData[activeTab].response?.tookTime!} ms\n \n {tabsData[activeTab].response &&\n tabsData[activeTab].response?.success === true\n ?
    \n :
    }\n
    \n \n )}\n \n
    \n );\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nconst FullScreenExit = () => {\n return (\n \n \n \n \n );\n};\n\nexport default FullScreenExit", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nconst FullScreen = () => {\n return (\n \n \n \n \n );\n};\n\nexport default FullScreen;\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function Up2Icon() {\n return (\n \n \n \n \n
    \n
    \n \n \n );\n}\n", "/** @jsx h */\nimport { h, useState, useRef } from \"../reactDeps.ts\";\nimport FullScreenExit from \"./icon/Fullscreen-exit.tsx\";\nimport FullScreen from \"./icon/Fullscreen.tsx\";\nimport Up2Icon from \"./icon/Up2Icon.tsx\";\nimport DeleteIcon from \"./icon/DeleteIcon.tsx\";\n\ninterface ModalType {\n children?: h.JSX.Element;\n toggle: () => void;\n title: string;\n}\n\nconst Modal = (props: ModalType) => {\n const [showBtn, setShowBtn] = useState(\"myBtn none\");\n const [toggleFullScreen, setToggleFullScreen] = useState(false);\n\n const divRef = useRef(null);\n\n const scrollToTop = () => {\n divRef.current!.scroll;\n document.getElementById(\"modal\")?.scroll({\n top: 0,\n behavior: \"smooth\",\n });\n };\n\n const handleScroll = (event: any) => {\n event.currentTarget.scrollTop > 20\n ? setShowBtn(\"myBtn\")\n : setShowBtn(\"none\");\n };\n\n return (\n
    \n e.stopPropagation()}\n >\n
    \n \n \n \n setToggleFullScreen(!toggleFullScreen)}\n >\n {toggleFullScreen ? : }\n \n {props.title}\n
    \n \n {props.children}\n
    \n scrollToTop()}\n >\n \n Go To Top\n \n
    \n
    \n \n \n );\n};\nexport default Modal;\n", "/** @jsx h */\nimport { h, useState, useEffect } from \"../reactDeps.ts\";\nimport { uid } from \"../utils/uid.ts\";\nimport { JSONViewer } from \"./JSONVeiwer.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport ExportIcon from \"./icon/ExportIcon.tsx\";\nimport HelpIcon from \"./icon/HelpIcon.tsx\";\nimport Search from \"./icon/Search.tsx\";\n\nexport const Schema = () => {\n const { schemasObj } = useLesan();\n const [reProduceSchemaObj, setreProduceSchemaObj] = useState<\n Record\n >({});\n\n useEffect(() => {\n const myNewObj: Record = {};\n for (const schema in schemasObj) {\n myNewObj[schema] = {\n ...myNewObj[schema],\n pure: schemasObj[schema].pure,\n };\n for (const mainRels in schemasObj[schema].mainRelations) {\n myNewObj[schema] = {\n ...myNewObj[schema],\n mainRelations: {\n ...myNewObj[schema].mainRelations,\n [mainRels]: {\n type: \"relation\",\n extraDetails: schemasObj[schema].mainRelations[mainRels],\n schema: {\n ...schemasObj[\n schemasObj[schema].mainRelations[mainRels].schemaName\n ].pure,\n },\n },\n },\n };\n }\n for (const relatedRels in schemasObj[schema].relatedRelations) {\n myNewObj[schema] = {\n ...myNewObj[schema],\n relatedRelations: {\n ...myNewObj[schema].relatedRelations,\n [relatedRels]: {\n type: \"relation\",\n extraDetails: schemasObj[schema].relatedRelations[relatedRels],\n schema: {\n ...schemasObj[\n schemasObj[schema].relatedRelations[relatedRels].schemaName\n ].pure,\n },\n },\n },\n };\n }\n }\n setreProduceSchemaObj(myNewObj);\n }, []);\n\n const exportSchemas = () => {\n const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(\n JSON.stringify(schemasObj)\n )}`;\n const link = document.createElement(\"a\");\n link.href = jsonString;\n link.download = \"schemas.json\";\n\n link.click();\n };\n\n const rainbowClass = [\n \"color-1\",\n \"color-2\",\n \"color-3\",\n \"color-4\",\n \"color-5\",\n \"color-6\",\n \"color-7\",\n ];\n\n const proceedSchemas = (schemas: Record) => {\n return Object.keys(schemas).map((schema: any) => {\n const newUid = uid();\n return (\n
    \n {\n document.getElementById(newUid)?.classList.toggle(\"open\");\n }}\n >\n

    {schema}

    \n ...\n
    \n
    \n {proceedChildSchema(schemas[schema])}\n\n {/* {proceedChildSchema(schemasObj[schema][\"pure\"])} */}\n
    \n \n );\n });\n };\n\n const proceedChildSchema = (childSchema: Record) => {\n return Object.keys(childSchema).map((childItem: any) => {\n const newUid = uid();\n return (\n \n {\n document.getElementById(newUid)?.classList.toggle(\"open\");\n }}\n >\n

    {childItem}

    \n
    \n {\" \"}\n

    \n {\" \"}\n {childSchema[childItem][\"type\"]}\n

    \n
    \n {childSchema[childItem][\"extraDetails\"] && }\n {childSchema[childItem][\"extraDetails\"] && (\n
    \n \n
    \n )}\n
    \n {typeof childSchema[childItem] === \"object\" &&\n childSchema[childItem].schema !== null && ...}\n
    \n \n
    \n {typeof childSchema[childItem] === \"object\" &&\n childSchema[childItem] !== null &&\n childSchema[childItem].schema !== null &&\n proceedChildSchema(\n childSchema[childItem].pure\n ? childSchema[childItem].pure\n : childSchema[childItem].relatedRelations\n ? childSchema[childItem].relatedRelations\n : childSchema[childItem].mainRelation\n ? childSchema[childItem].mainRelation\n : childSchema[childItem].type === \"relation\"\n ? childSchema[childItem].schema\n : childSchema[childItem]\n )}\n {/* {childSchema[childItem].type === \"object\" &&\n proceedChildSchema(childSchema[childItem].schema)} */}\n
    \n \n );\n });\n };\n\n return (\n
    \n
    \n \n \n Export\n \n
    \n {/*
    \n \n \n \n \n
    */}\n
    {proceedSchemas(reProduceSchemaObj)}
    \n
    \n );\n};\n", "/** @jsx h */\nimport { h } from \"../../reactDeps.ts\";\n\nexport default function TickIcon() {\n return (\n \n {\" \"}\n \n \n );\n}\n", "/** @jsx h */\nimport { fa } from \"https://cdn.skypack.dev/@faker-js/faker\";\nimport { Fragment, h, useEffect, useState } from \"../reactDeps.ts\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport AddIcon from \"./icon/AddIcon.tsx\";\nimport TickIcon from \"./icon/TickIcon.tsx\";\nimport DeleteIcon from \"./icon/DeleteIcon.tsx\";\n\nexport function Setting({\n configUrl,\n}: {\n configUrl: (address?: string) => void;\n}) {\n const [active, setActive] = useState(\"no\");\n const handleClick = () => {\n setTimeout(() => {\n setActive(\"no\");\n }, 1000);\n };\n const handleDelete = (fromIndex: any) => {\n headersState[fromIndex];\n headersState.splice(fromIndex, 1);\n setHeadersState([...headersState]);\n };\n const { headers, setHeader } = useLesan();\n const [headersState, setHeadersState] = useState<\n { key: string; value: string }[]\n >([{ key: \"\", value: \"\" }]);\n\n const [urlAddress, setUrlAddress] = useState(\"\");\n\n useEffect(() => {\n const arrHeader = [];\n for (const key in headers) {\n arrHeader.push({ key, value: headers[key] });\n }\n setHeadersState(arrHeader);\n }, []);\n\n return (\n
    \n
    \n

    Fetch Config

    \n\n
    \n {\" \"}\n setUrlAddress(e.target.value)}\n />\n {\n configUrl(urlAddress);\n setActive(\"yes\");\n handleClick();\n }}\n >\n \n {active === \"yes\" ? \"Applyed!\" : \"Apply\"}\n \n
    \n
    \n
    \n
    \n {\" \"}\n Set Headers\n {\n setHeadersState([...headersState, { key: \"\", value: \"\" }]);\n }}\n >\n \n Add Header\n \n
    \n
    \n
    \n {headersState?.map((hst, idx) => (\n
    \n
    \n Key:\n {\n setHeadersState((prevState) => {\n prevState[idx].key = e.target.value;\n return prevState;\n });\n }}\n />\n
    \n
    \n Value:\n {\n setHeadersState((prevState) => {\n prevState[idx].value = e.target.value;\n return prevState;\n });\n }}\n />\n
    \n {headersState.length > 1 && (\n handleDelete(idx)}\n >\n \n
    \n )}\n
    \n ))}\n
    \n {\n const newHeaders: Record = {};\n for (const header of headersState) {\n const { key, value } = header;\n newHeaders[key] = value;\n }\n setHeader(newHeaders);\n setActive(\"yess\");\n handleClick();\n }}\n >\n \n {active === \"yess\" ? \"Applyed!\" : \"Apply\"}\n \n
    \n
    \n \n );\n}\n", "/** @jsx h */\nimport { Fragment, h, useEffect, useState } from \"../reactDeps.ts\";\nimport { createNestedObjectsFromKeys } from \"../utils/createNestedObjectsFromKeys.ts\";\nimport { generateFormData } from \"../utils/generateFormData.ts\";\nimport { Act } from \"./Act.tsx\";\nimport { MODAL_TYPES } from \"./context/actionType.ts\";\nimport { E2E } from \"./E2E.tsx\";\nimport { History } from \"./History.tsx\";\nimport DocumentIcon from \"./icon/DocumentIcon.tsx\";\nimport HistoryIcon from \"./icon/HistoryIcon.tsx\";\nimport ReFetchIcon from \"./icon/ReFetchIcon.tsx\";\nimport SchemaIcon from \"./icon/SchemaIcon.tsx\";\nimport SettingIcon from \"./icon/SettingIcon.tsx\";\nimport TestIcon from \"./icon/TestIcon.tsx\";\nimport { Main } from \"./Main.tsx\";\nimport { useLesan } from \"./ManagedLesanContext.tsx\";\nimport Modal from \"./Modal.tsx\";\nimport { Schema } from \"./Schema.tsx\";\nimport { Setting } from \"./Setting.tsx\";\nimport { useOutsideClick } from \"./hooks/useOutsideClick.ts\";\n\nconst getSchemasAPI = ({ baseUrl }: { baseUrl: string }) =>\n fetch(`${baseUrl}playground/static/get/schemas`).then((res) => res.json());\n\nexport const Page = () => {\n const {\n tabsData,\n setTabsData,\n activeTab,\n actsObj,\n addTab,\n setActiveTab,\n setService,\n setSchema,\n setAct,\n setPostFields,\n setGetFields,\n setFormData,\n setHistory,\n setResponse,\n resetGetFields,\n closeTab,\n resetPostFields,\n setSchemasObj,\n setActsObj,\n setModal,\n modal,\n } = useLesan();\n\n const [show, setShow] = useState(\"\");\n const [mediaShow, setMediaShow] = useState(false);\n\n const parsedWindowUrl = () => {\n return window && window.location\n ? `${new URL(window.location.href).origin}/`\n : \"http://localhost:1366/\";\n };\n\n const [urlAddress, setUrlAddress] = useState(\"\");\n const handleClickOutside = () => {\n setMediaShow(false);\n };\n const ref: any = useOutsideClick(handleClickOutside);\n\n useEffect(() => {\n configUrl(parsedWindowUrl());\n\n const localHistory = JSON.parse(localStorage.getItem(\"localHistory\")!);\n if (localHistory) setHistory(localHistory);\n }, []);\n\n const configUrl = (address?: string) => {\n address && setUrlAddress(address);\n\n setService({ data: \"\", index: activeTab });\n setSchema({ data: \"\", index: activeTab });\n resetGetFields(activeTab);\n resetPostFields(activeTab);\n setFormData({ data: {}, index: activeTab });\n\n getSchemasAPI({ baseUrl: address ? address : urlAddress }).then(\n ({ schemas, acts }) => {\n setActsObj(acts);\n setSchemasObj(schemas);\n\n let localTabsData = localStorage.getItem(\"localTabsData\");\n\n if (localTabsData) {\n localTabsData = JSON.parse(localTabsData);\n\n const parsedLocalTabData: any[] = [];\n\n const proccessTabData = (tab: any) => {\n parsedLocalTabData.pop();\n\n // form data section --- begin\n const parsedFromData = createNestedObjectsFromKeys(tab.formData);\n\n // set fileds section --- begin\n for (const setKeys in parsedFromData.set) {\n if (\n acts[tab.service][tab.schema][tab.act].validator.schema.set\n .schema[setKeys] === undefined\n ) {\n delete parsedFromData.set[setKeys];\n }\n }\n // TODO : we need to check field type also in set fields inside acts[tab.service][tab.schema][tab.act].validator.schema.set.schema[setKeys].type\n\n // set fileds section --- end\n\n // get fileds section --- begin\n for (const getKey in parsedFromData.get) {\n if (\n acts[tab.service][tab.schema][tab.act].validator.schema.get\n .schema[getKey] === undefined\n ) {\n delete parsedFromData.get[getKey];\n }\n }\n // get fileds section --- end\n\n const newGeneratedFormData = generateFormData(\n parsedFromData,\n {},\n \"\"\n );\n // form data section --- end\n\n // set fileds section --- begin\n tab.postFields =\n acts[tab.service][tab.schema][\n tab.act\n ].validator.schema.set.schema;\n // set fileds section --- end\n\n // get fileds section --- begin\n tab.getFields =\n acts[tab.service][tab.schema][\n tab.act\n ].validator.schema.get.schema;\n // get fileds section --- end\n\n parsedLocalTabData.push({\n ...tab,\n formData: newGeneratedFormData,\n });\n };\n\n for (const tab of localTabsData as any) {\n if (tab.service && tab.service in acts) {\n parsedLocalTabData.push(tab);\n }\n\n if (tab.schema && !(tab.schema in acts[tab.service])) {\n parsedLocalTabData.pop();\n }\n\n if (tab.act && !(tab.act in acts[tab.service][tab.schema])) {\n parsedLocalTabData.pop();\n }\n\n if (\n tab.service &&\n tab.schema &&\n tab.act &&\n tab.act in acts[tab.service][tab.schema]\n ) {\n proccessTabData(tab);\n }\n }\n if (parsedLocalTabData.length < 1) {\n parsedLocalTabData.push({\n service: \"\",\n schema: \"\",\n act: \"\",\n postFields: {},\n getFields: {},\n formData: {},\n response: null,\n });\n }\n setTabsData(parsedLocalTabData);\n }\n }\n );\n };\n\n const toggleModal = () => {\n setModal(null);\n };\n\n const setFormFromHistory = (request: any) => {\n setService({ data: request.body.service, index: activeTab });\n setSchema({ data: request.body.model, index: activeTab });\n setAct({ data: request.body.act, index: activeTab });\n\n const actObj = (actsObj as any)[request.body.service][request.body.model][\n request.body.act\n ][\"validator\"][\"schema\"];\n\n setGetFields({ data: actObj[\"get\"][\"schema\"], index: activeTab });\n setPostFields({ data: actObj[\"set\"][\"schema\"], index: activeTab });\n\n setResponse({ data: null, index: activeTab });\n\n const historyFromData = generateFormData(request.body.details, {}, \"\");\n\n setFormData({ data: historyFromData, index: activeTab });\n\n toggleModal();\n };\n\n return (\n setMediaShow(false)}\n >\n
    \n {tabsData.map((tab, index) => (\n \n {\n setActiveTab(index);\n }}\n >\n {\" \"}\n \n {\" \"}\n {tabsData[index].act\n ? `${tabsData[index].schema} | ${tabsData[index].act}`\n : tabsData[index].schema\n ? `${tabsData[index].service} | ${tabsData[index].schema}`\n : tabsData[index].service\n ? tabsData[index].service\n : `Tab ${index}`}\n \n {\n event.stopPropagation();\n closeTab(index);\n }}\n title=\"Close tab\"\n >\n x\n \n
    \n \n ))}\n {\n addTab(null);\n localStorage.setItem(\"localTabsData\", JSON.stringify(tabsData));\n }}\n >\n +\n \n \n
    \n\n {/* under 768px heigh button */}\n {\n setMediaShow(!mediaShow);\n }}\n >\n menu\n \n {/* */}\n\n
    \n configUrl()}>\n Refetch\n \n \n setModal(MODAL_TYPES.SETTING)}\n >\n Setting\n \n \n setModal(MODAL_TYPES.HISTORY)}\n >\n History\n \n \n setModal(MODAL_TYPES.E2E_TEST)}\n >\n E2E Test\n \n \n \n \n Document\n \n \n setModal(MODAL_TYPES.SCHEMA)}\n onMouseEnter={() => setShow(\"document\")}\n onMouseLeave={() => setShow(\"\")}\n >\n Schema\n \n \n setModal(MODAL_TYPES.ACT)}\n onMouseEnter={() => setShow(\"document\")}\n onMouseLeave={() => setShow(\"\")}\n >\n Act\n \n \n
    \n\n {modal !== null && (\n \n {modal === MODAL_TYPES.HISTORY ? (\n \n ) : modal === MODAL_TYPES.SETTING ? (\n \n ) : modal === MODAL_TYPES.E2E_TEST ? (\n \n ) : modal === MODAL_TYPES.SCHEMA ? (\n \n ) : modal === MODAL_TYPES.ACT ? (\n \n ) : (\n \n )}\n \n )}\n \n );\n};\n", "/** @jsx h */\nimport { ManagedLesanContext } from \"./comp/ManagedLesanContext.tsx\";\nimport { Page } from \"./comp/preact.tsx\";\nimport { h, hydrate } from \"./reactDeps.ts\";\n\nhydrate(\n \n \n ,\n document.getElementById(\"root\")!,\n);\n"], + "mappings": "AAAA,OACE,iBAAAA,GACA,YAAAC,EACA,KAAAC,EACA,WAAAC,OACK,gCACP,OACE,eAAAC,EACA,cAAAC,GACA,aAAAC,EACA,WAAAC,GACA,cAAAC,GACA,UAAAC,EACA,YAAAC,MAEK,sCCfA,IAAMC,EAAM,IACjB,KAAK,IAAI,EAAE,SAAS,EAAE,EAAI,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,OAAO,CAAC,ECE/D,IAAMC,GAAa,CACjB,SAAU,CACR,CACE,QAAS,GACT,OAAQ,GACR,IAAK,GACL,WAAY,CAAC,EACb,UAAW,CAAC,EACZ,SAAU,CAAC,EACX,SAAU,IACZ,CACF,EACA,UAAW,EACX,aAAc,KAAO,CAAC,GACtB,OAAQ,KAAO,CAAC,GAChB,SAAU,KAAO,CAAC,GAClB,YAAa,KAAO,CAAC,EACvB,EAEMC,GAAgB,CACpB,WAAY,CAAC,EACb,QAAS,CAAC,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,EACAT,EAAC,QACC,UAAU,yBACV,QAAS,IAAMlC,OAAwB,EACvC,aAAc,IAAMI,EAAQ,UAAU,EACtC,aAAc,IAAMA,EAAQ,EAAE,GAE9B8B,EAAC,QAAK,UAAU,mBAAkB,KAAG,EACrCA,EAACU,GAAA,IAAa,CAChB,CACF,EAEC3C,IAAU,MACTiC,EAACW,GAAA,CAAM,OAAQhB,EAAa,MAAO5B,GAChCA,cACCiC,EAACY,GAAA,CAAQ,mBAAoBhB,EAAoB,EAC/C7B,cACFiC,EAACa,GAAA,CAAQ,UAAWjC,EAAW,EAC7Bb,eACFiC,EAACc,GAAA,CAAI,QAASvC,EAAY,EACxBR,aACFiC,EAACe,GAAA,IAAO,EACNhD,UACFiC,EAACgB,GAAA,IAAI,EAELhB,EAACE,EAAA,IAAS,CAEd,CAEJ,CAEJ,ECtWAe,GACEC,EAACC,GAAA,KACCD,EAACE,GAAA,IAAK,CACR,EACA,SAAS,eAAe,MAAM,CAChC", + "names": ["createContext", "Fragment", "h", "hydrate", "useCallback", "useContext", "useEffect", "useMemo", "useReducer", "useRef", "useState", "uid", "tabInitial", "schemaInitial", "historyInitial", "headerInitial", "e2eFirstInp", "uid", "e2eInitial", "modalInitial", "initialState", "lesanReducer", "state", "action", "type", "payload", "copyTabsData", "LesanContext", "createContext", "initialState", "LesanProvider", "props", "state", "dispatch", "useReducer", "lesanReducer", "setService", "useCallback", "payload", "setSchema", "setAct", "setPostFields", "resetPostFields", "setGetFields", "resetGetFields", "setFormData", "setActiveTab", "addTab", "closeTab", "deleteItemHistory", "setHeader", "setHistory", "setTabsData", "setResponse", "setSchemasObj", "setActsObj", "setE2eForms", "addE2eForm", "setModal", "value", "useMemo", "h", "useLesan", "context", "useContext", "LesanContext", "ManagedLesanContext", "props", "children", "h", "LesanProvider", "createNestedObjectsFromKeys", "obj", "result", "objectPath", "parts", "target", "part", "generateFormData", "formData", "returnFormData", "keyname", "key", "ExportIcon", "h", "Act", "actsObj", "useLesan", "exportActs", "jsonString", "link", "rainbowClass", "proceedActs", "acts", "act", "index", "newUid", "uid", "h", "proceedChildActs", "childActs", "childAct", "ExportIcon", "faker", "AddIcon", "h", "BackIcon", "h", "DeleteIcon", "h", "DeleteIcon_default", "DownIcon", "h", "HelpIcon", "h", "ImportIcon", "h", "RunIcon", "h", "UpIcon", "h", "pre", "regEx", "syntaxHighlight", "json", "replacer", "match", "className", "text", "_", "value", "cutify", "JSONViewer", "jsonData", "cutifiedJson", "cutify", "h", "Fragment", "pre", "ChevronLeftDouble", "h", "ChevronLeftIcon", "h", "ChevronRightDouble", "h", "ChevronRightIcon", "h", "Pagination", "pageCountNumber", "activePage", "setActivePage", "pages", "setPages", "useState", "goTo", "setGoTo", "handleChange", "event", "handleClick", "pageCount", "buildPages", "useCallback", "start", "end", "newPages", "i", "onChange", "page", "isActive", "useEffect", "h", "ChevronLeftDouble", "ChevronLeftIcon", "ChevronRightIcon", "ChevronRightDouble", "InfoIcon2", "h", "SortFromTopToBottomIcon", "h", "ResultSlider", "results", "setIsShowE2eResponse", "index", "activePage", "setActivePage", "useState", "h", "InfoIcon2", "SortFromTopToBottomIcon", "JSONViewer", "Pagination", "_re", "InfoIcon", "h", "SequenceSlider", "sequence", "index", "isShowE2eResponse", "setIsShowE2eResponse", "useState", "h", "Fragment", "InfoIcon", "SortFromTopToBottomIcon", "JSONViewer", "ci", "ResultSlider", "E2E", "baseUrl", "e2eForms", "setE2eForms", "useLesan", "initialRequestDetail", "isShowE2eButton", "setIsShowE2eButton", "useState", "requestDetail", "setRequestDetail", "handleMove", "fromIndex", "toIndex", "element", "handleDelete", "handleDuplicate", "newForm", "uid", "view", "setView", "exportForm", "jsonString", "link", "jsonFileUpload", "e", "fileReader", "data", "exportResults", "lesanAPI", "options", "replaceCaptureString", "obj", "variablesSet", "returnCaptures", "key", "value", "variablesName", "openBraceIndexes", "index", "closeBraceIndexes", "openBrace", "variableName", "parsedFaker", "secondSection", "fnInputs", "callParsedFaker", "faker", "setValue", "runE2eTest", "parsedCaptures", "e2eForm", "jsonSendedRequest", "parsedBody", "sequnceId", "repeat", "tResTime0", "parsedHeaderBody", "usedCaptures", "body", "findInParsedCaptures", "set", "item", "tResPerformance", "newResult", "preReqDetails", "sequnces", "findedSequnceIdx", "sq", "resultIdx", "findedInsideParsedCapture", "capture", "parts", "parsedValue", "part", "slicedPart", "getedValue", "capValue", "handeE2eFormDetails", "idx", "fieldName", "copy", "Ref", "useRef", "handleClick", "id", "h", "BackIcon", "ExportIcon", "ci", "sequence", "SequenceSlider", "Fragment", "AddIcon", "UpIcon", "DownIcon", "DeleteIcon_default", "capId", "e2eFirstInp", "RunIcon", "ImportIcon", "HelpIcon", "ConvertMilliseconds", "milliseconds", "hours", "minutes", "seconds", "useNonInitialEffect", "effect", "deps", "initialRender", "useRef", "useEffect", "effectReturns", "Dustbin", "h", "History", "setFormFromHistory", "history", "setHistory", "deleteItemHistory", "useLesan", "show", "setShow", "useState", "useNonInitialEffect", "h", "Fragment", "hi", "index", "JSONViewer", "event", "DeleteIcon_default", "ConvertMilliseconds", "Dustbin", "DocumentIcon", "h", "HistoryIcon", "h", "ReFetchIcon", "h", "SchemaIcon", "h", "SettingIcon", "h", "TestIcon", "h", "CopyIcon", "h", "RunTestIcon", "h", "SuccessIcon", "h", "useOutsideClick", "callback", "ref", "useRef", "useEffect", "handleClick", "event", "ChevronDownIcon", "className", "h", "Selected", "items", "onClickItem", "incomeActiveItem", "canShow", "show", "setShow", "useState", "activeItem", "setActiveItem", "useEffect", "ref", "useOutsideClick", "h", "e", "ChevronDownIcon", "item", "index", "MultiSelect", "options", "onChange", "selectedOptions", "setSelectedOptions", "useState", "unselectedOptions", "setUnselectedOptions", "isOpen", "setIsOpen", "handleOptionChange", "selectedOption", "filteredSelectedOptions", "option", "filteredUnselectedOptions", "resetOptions", "toggleDropdown", "ref", "useOutsideClick", "h", "item", "e", "ChevronDownIcon", "MultiSelect_default", "lesanAPI", "baseUrl", "options", "res", "Main", "urlAddress", "activeTab", "tabsData", "actsObj", "headers", "history", "setService", "setSchema", "setAct", "setPostFields", "setGetFields", "setFormData", "setHistory", "setResponse", "resetGetFields", "resetPostFields", "addE2eForm", "setModal", "useLesan", "active", "setActive", "useState", "changeGetValue", "value", "keyname", "getObj", "returnObj", "key", "formRef", "useRef", "handleChange", "event", "name", "type", "alt", "updatedValue", "renderPostFields", "field", "isMultiEnum", "formData", "h", "MultiSelect_default", "schemaKey", "item", "Selected", "renderGetFields", "getField", "keyName", "margin", "index", "copy", "requestFunction", "details", "createNestedObjectsFromKeys", "handleSubmit", "sendRequest", "t0", "jsonSendedRequest", "tookTime", "newHistory", "uid", "canShowRequestFields", "canShowSchema", "canShowAct", "copyResponse", "response", "copyRequest", "request", "runE2eRequest", "method", "rest", "newE2eForm", "onClickItem", "actObj", "Fragment", "SuccessIcon", "CopyIcon", "RunTestIcon", "JSONViewer", "FullScreenExit", "h", "Fullscreen_exit_default", "FullScreen", "h", "Fullscreen_default", "Up2Icon", "h", "Modal", "props", "showBtn", "setShowBtn", "useState", "toggleFullScreen", "setToggleFullScreen", "divRef", "useRef", "scrollToTop", "handleScroll", "event", "h", "e", "DeleteIcon_default", "Fullscreen_exit_default", "Fullscreen_default", "Up2Icon", "Modal_default", "Schema", "schemasObj", "useLesan", "reProduceSchemaObj", "setreProduceSchemaObj", "useState", "useEffect", "myNewObj", "schema", "mainRels", "relatedRels", "exportSchemas", "jsonString", "link", "rainbowClass", "proceedSchemas", "schemas", "newUid", "uid", "h", "proceedChildSchema", "childSchema", "childItem", "HelpIcon", "JSONViewer", "ExportIcon", "TickIcon", "h", "Setting", "configUrl", "active", "setActive", "useState", "handleClick", "handleDelete", "fromIndex", "headersState", "setHeadersState", "headers", "setHeader", "useLesan", "urlAddress", "setUrlAddress", "useEffect", "arrHeader", "key", "h", "e", "TickIcon", "AddIcon", "hst", "idx", "prevState", "DeleteIcon_default", "newHeaders", "header", "value", "getSchemasAPI", "baseUrl", "res", "Page", "tabsData", "setTabsData", "activeTab", "actsObj", "addTab", "setActiveTab", "setService", "setSchema", "setAct", "setPostFields", "setGetFields", "setFormData", "setHistory", "setResponse", "resetGetFields", "closeTab", "resetPostFields", "setSchemasObj", "setActsObj", "setModal", "modal", "useLesan", "show", "setShow", "useState", "mediaShow", "setMediaShow", "parsedWindowUrl", "urlAddress", "setUrlAddress", "ref", "useOutsideClick", "useEffect", "configUrl", "localHistory", "address", "schemas", "acts", "localTabsData", "parsedLocalTabData", "proccessTabData", "tab", "parsedFromData", "createNestedObjectsFromKeys", "setKeys", "getKey", "newGeneratedFormData", "generateFormData", "toggleModal", "setFormFromHistory", "request", "actObj", "historyFromData", "h", "index", "Fragment", "event", "Main", "ReFetchIcon", "SettingIcon", "HistoryIcon", "TestIcon", "SchemaIcon", "DocumentIcon", "Modal_default", "History", "Setting", "E2E", "Schema", "Act", "hydrate", "h", "ManagedLesanContext", "Page"] } diff --git a/src/server/playground/dist/bundleContent.ts b/src/server/playground/dist/bundleContent.ts index de96b748..e565956e 100644 --- a/src/server/playground/dist/bundleContent.ts +++ b/src/server/playground/dist/bundleContent.ts @@ -1,5 +1,5 @@ - export const bundleTs = "import{createContext as he,Fragment as q,h as e,hydrate as Ae}from\"https://esm.sh/preact@10.5.15\";import{useCallback as R,useContext as He,useEffect as j,useMemo as Ve,useReducer as je,useRef as Z,useState as E}from\"https://esm.sh/preact@10.5.15/hooks\";var h=()=>Date.now().toString(36)+Math.random().toString(36).substr(2);var ct={tabsData:[{service:\"\",schema:\"\",act:\"\",postFields:{},getFields:{},formData:{},response:null}],activeTab:0,setActiveTab:()=>({}),addTab:()=>({}),closeTab:()=>({}),setTabsData:()=>({})},lt={schemasObj:{},actsObj:{},setService:()=>({}),setMethod:()=>({}),setSchema:()=>({}),setAct:()=>({}),setActsObj:()=>({}),setSchemasObj:()=>({}),setPostFields:()=>({}),resetPostFields:()=>({}),setGetFields:()=>({}),resetGetFields:()=>({}),setFormData:()=>({}),setResponse:()=>({})},dt={history:[],deleteItemHistory:()=>({}),setHistory:()=>({})},pt={headers:{Authorization:\"\"},setHeader:()=>({})},ue=()=>({id:h(),bodyHeaders:`\n{\n \"headers\": {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"\"\n },\n \"body\": {\n \"service\": \"main\",\n \"contents\": \"dynamic\",\n \"model\": \"\",\n \"act\": \"\",\n \"details\": {\n \"get\": {\n },\n \"set\": {\n }\n }\n}\n}\n `,repeat:1,captures:[]}),mt={e2eForms:[ue()],setE2eForms:()=>({}),addE2eForm:()=>({})},ut={modal:null,setModal:()=>({})},fe={...ct,...lt,...dt,...pt,...mt,...ut};function Be(a,t){let{type:s,payload:o}=t;switch(s){case\"SET_SELECTED_SERVICE\":{let i=[...a.tabsData];return i[o.index]={...i[o.index],service:o.data},{...a,tabsData:[...i]}}case\"SET_SCHEMA\":{let i=[...a.tabsData];return i[o.index]={...i[o.index],schema:o.data},{...a,tabsData:[...i]}}case\"SET_ACT\":{let i=[...a.tabsData];return i[o.index]={...i[o.index],act:o.data},{...a,tabsData:[...i]}}case\"SET_POST_FIELDS\":{let i=[...a.tabsData];return i[o.index]={...i[o.index],postFields:o.data},{...a,tabsData:[...i]}}case\"RESET_POST_FIELDS\":{let i=[...a.tabsData];return i[o]={...i[o],postFields:{}},{...a,tabsData:[...i]}}case\"SET_GET_FIELDS\":{let i=[...a.tabsData];return i[o.index]={...i[o.index],getFields:o.data},{...a,tabsData:[...i]}}case\"RESET_GET_FIELDS\":{let i=[...a.tabsData];return i[o]={...i[o],getFields:{}},{...a,tabsData:[...i]}}case\"SET_FORM_DATA\":{let i=[...a.tabsData];return i[o.index]={...i[o.index],formData:o.data},{...a,tabsData:[...i]}}case\"SET_HEADER\":return{...a,headers:o};case\"ADD_HISTORY\":return{...a,history:o};case\"SET_TABS_DATA\":return{...a,tabsData:o};case\"SET_RESPONSE\":{let i=[...a.tabsData];return i[o.index]={...i[o.index],response:o.data},{...a,tabsData:[...i]}}case\"ADD_TAB\":return{...a,tabsData:[...a.tabsData,{service:\"\",schema:\"\",act:\"\",postFields:{},getFields:{},formData:{},response:null}],activeTab:a.tabsData.length};case\"SET_ACTIVE_TAB\":return{...a,activeTab:o};case\"CLOSE_TAB\":{let i=[...a.tabsData];return i.length>1&&i.splice(o,1),{...a,tabsData:[...i],activeTab:i.length>=1&&a.activeTab>=o&&a.activeTab!==0?a.activeTab-1:a.activeTab}}case\"DELETE_ITEM_HISTORY\":return{...a,history:a.history.slice(0,o).concat(a.history.slice(o+1))};case\"SET_ACTS_OBJ\":return{...a,actsObj:o};case\"SET_SCHEMAS_OBJ\":return{...a,schemasObj:o};case\"SET_E2E_FORMS\":return{...a,e2eForms:o};case\"ADD_E2E_FORM\":return{...a,e2eForms:[...a.e2eForms,o]};case\"OPEN_MODAL\":return{...a,modal:o};default:throw new Error(\"Unhandled action type\")}}var ve=he(fe),$e=a=>{let[t,s]=je(Be,fe),o=R(l=>s({type:\"SET_SELECTED_SERVICE\",payload:l}),[s]),i=R(l=>s({type:\"SET_SCHEMA\",payload:l}),[s]),f=R(l=>s({type:\"SET_ACT\",payload:l}),[s]),r=R(l=>s({type:\"SET_POST_FIELDS\",payload:l}),[s]),d=R(l=>s({type:\"RESET_POST_FIELDS\",payload:l}),[s]),c=R(l=>s({type:\"SET_GET_FIELDS\",payload:l}),[s]),v=R(l=>s({type:\"RESET_GET_FIELDS\",payload:l}),[s]),I=R(l=>s({type:\"SET_FORM_DATA\",payload:l}),[s]),y=R(l=>s({type:\"SET_ACTIVE_TAB\",payload:l}),[s]),S=R(l=>s({type:\"ADD_TAB\",payload:l}),[s]),T=R(l=>s({type:\"CLOSE_TAB\",payload:l}),[s]),x=R(l=>s({type:\"DELETE_ITEM_HISTORY\",payload:l}),[s]),P=R(l=>s({type:\"SET_HEADER\",payload:l}),[s]),G=R(l=>s({type:\"ADD_HISTORY\",payload:l}),[s]),J=R(l=>s({type:\"SET_TABS_DATA\",payload:l}),[s]),X=R(l=>s({type:\"SET_RESPONSE\",payload:l}),[s]),L=R(l=>s({type:\"SET_SCHEMAS_OBJ\",payload:l}),[s]),O=R(l=>s({type:\"SET_ACTS_OBJ\",payload:l}),[s]),$=R(l=>s({type:\"SET_E2E_FORMS\",payload:l}),[s]),p=R(l=>s({type:\"ADD_E2E_FORM\",payload:l}),[s]),u=R(l=>s({type:\"OPEN_MODAL\",payload:l}),[s]),N=Ve(()=>({...t,setService:o,setSchema:i,setAct:f,setPostFields:r,resetPostFields:d,setGetFields:c,resetGetFields:v,setFormData:I,setHeader:P,setHistory:G,setTabsData:J,setResponse:X,setActsObj:O,setSchemasObj:L,setActiveTab:y,addTab:S,closeTab:T,deleteItemHistory:x,setE2eForms:$,addE2eForm:p,setModal:u}),[t]);return e(ve.Provider,{value:N,...a})};var B=()=>{let a=He(ve);return a},Ge=a=>{let{children:t}=a;return e($e,null,t)};var ce=a=>{let t={get:{},set:{}};for(let s in a)if(a[s]||a[s]===0||a[s]===!1){let o=s.split(\".\"),i=t;for(;o.length>1;){let f=o.shift();i[f]=i[f]||{},i=i[f]}i[o[0]]=a[s]}return t};var le=(a,t,s)=>{for(let o in a)typeof a[o]==\"object\"?le(a[o],t,s?`${s}.${o}`:o):t[`${s}.${o}`]=a[o];return t};function W(){return e(\"svg\",{width:\"25px\",height:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M11.2501 7.06066L8.03039 10.2803L6.96973 9.21967L12.0001 4.18934L17.0304 9.21967L15.9697 10.2803L12.7501 7.06066L12.7501 16.5L11.2501 16.5L11.2501 7.06066Z\",fill:\"lightcoral\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function Pe(){let{actsObj:a}=B(),t=()=>{let f=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(a))}`,r=document.createElement(\"a\");r.href=f,r.download=\"acts.json\",r.click()},s=[\"color-1\",\"color-2\",\"color-3\",\"color-4\",\"color-5\",\"color-6\",\"color-7\"],o=f=>Object.keys(f).map((r,d)=>{let c=h();return e(\"div\",{className:\"schema\"},e(\"div\",{className:\"schema-name\",onClick:()=>{document.getElementById(c)?.classList.toggle(\"open\")}},e(\"p\",{className:\"schema-title\"},r),e(\"span\",null,\"...\")),e(\"div\",{className:\"proceed-child-container\",id:c},i(a[r])))}),i=f=>Object.keys(f).map((r,d)=>{let c=h();if(f[r]||f[r]===0)return e(\"div\",{className:`inside-schema ${s[Math.floor(Math.random()*s.length)]}`},e(\"div\",{className:`inside ${typeof f[r]==\"object\"&&f[r].schema!==null&&\"schema-pointer\"}`,onClick:()=>{document.getElementById(c)?.classList.toggle(\"open\")}},e(\"p\",{className:\"schema-title\"},r),f[r].type&&e(\"p\",{className:\"schema-title schema-type\"},f[r].type),e(\"div\",null,\" \",typeof f[r]==\"object\"&&f[r].schema!==null&&e(\"span\",null,\"...\"))),e(\"div\",{id:c,className:\"proceed-child\"},typeof f[r]==\"object\"&&f[r]!==null&&f[r].schema!==null&&i(f[r].validator?f[r].validator.schema:f[r].schema?f[r].schema:f[r])))});return e(\"div\",{className:\"schema-modal\"},\" \",e(\"div\",{className:\"results-buttons\"},e(\"button\",{className:\" schema-export-button btn e2e-back-button e2e-export_results-button\",onClick:t},e(W,null),e(\"span\",null,\"Export\"))),e(\"div\",{className:\"schema-list\"},o(a)))}import{faker as St}from\"https://cdn.skypack.dev/@faker-js/faker\";function ae(){return e(\"svg\",{width:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M9.00002 15.3802H13.92C15.62 15.3802 17 14.0002 17 12.3002C17 10.6002 15.62 9.22021 13.92 9.22021H7.15002\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-miterlimit\":\"10\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{d:\"M8.57 10.7701L7 9.19012L8.57 7.62012\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}var ze=({setView:a})=>e(\"div\",{className:\"help\"},\" \",e(\"button\",{className:\"btn e2e-back-button\",onClick:()=>{a(\"e2e\")}},e(ae,null),e(\"span\",null,\"Back\")),e(\"section\",{className:\"e2e_help-content\"},e(\"p\",null,\"With E2E Test, you can test the whole application by sending a sequence of HTTP requests.\"),e(\"p\",null,\"In the image below, you can see the first view of the E2E test modal page, which contains a button bar at the top and two separate requests.\"),e(\"img\",{src:\"https://github.com/MiaadTeam/lesan/assets/6236123/829b3288-3d69-4fd0-a1fc-22d011b8d079\",alt:\"full screen e2e\",className:\"e2e_help--fullscreen-img\"}),e(\"hr\",null),e(\"p\",null,\"In the button bar, you have these buttons:\",e(\"img\",{src:\"https://github.com/MiaadTeam/lesan/assets/6236123/4edd6034-d6b2-4de9-8c43-8f2fe511aa14\",alt:\"full screen e2e\",className:\"e2e_help--fullscreen-img\"}),e(\"ul\",null,e(\"li\",null,\"Add: This button adds one request section.\"),e(\"li\",null,\"Run E2E Test: This button runs all requests and shows their results.\"),e(\"li\",null,\"Import: This button stands for importing an E2E config in JSON format.\"),e(\"li\",null,\"Export: This button stands for exporting an existing E2E config in JSON format.\"),e(\"li\",null,\"Help: This button switches to the help of the E2E modal page.\"))),e(\"hr\",null),e(\"div\",null,e(\"p\",null,\"Each request section have 2 side\"),e(\"img\",{src:\"https://github.com/MiaadTeam/lesan/assets/6236123/fa9ceb35-21dd-493a-82cc-cd7391f5fc79\",alt:\"full screen e2e\",className:\"e2e_help--fullscreen-img\"}),e(\"hr\",null),e(\"section\",{className:\"e2e_help--section---right-side\"},e(\"p\",null,\"The right side is a set of configurations for the repeat time of each request and capturing variables of the request response. In the Capture Variables section, you can add a pair of tuple inputs for the key name of the capture variable and its value. You can capture the value of a capture variable with braces syntax. For example, if you get back this response from a request:\",e(\"pre\",null,`{\n`,` body: [\n`,` {\n`,` _id: 64c6839c50adc3cb65726934,\n`,` name: \\u0647\\u0645\\u062F\\u0627\\u0646,\n`,` enName: Hamedan,\n`,` abb: HM\n`,` }\n`,` ],\n`,` success: true\n`,` }\n`,`}\n`),\"You can capture _id with [body][0][_id] or for name: [body][0][name].\"),e(\"img\",{src:\"https://github.com/MiaadTeam/lesan/assets/6236123/1cea1db3-44c2-49b5-8739-a9afa8a6e1fa\",alt:\"full screen e2e\",className:\"e2e_help--fullscreen-img\"})),e(\"hr\",null),e(\"section\",{className:\"e2e_help--section---right-side\"},e(\"img\",{src:\"https://github.com/MiaadTeam/lesan/assets/6236123/5c9899fa-8be6-42d1-8f4f-8fd965264645\",alt:\"full screen e2e\",className:\"e2e_help--fullscreen-img\"}),e(\"p\",null,\"The left side is a text area for writing headers and the body of the request in JSON format. In this text area, you can use a text parser to implement the captured value you captured before inside these symbols \",\"{}\",\".\")),e(\"hr\",null),e(\"p\",null,\"Also, we have some buttons on the top right side of each request section. With these buttons, you can move up and down and delete requests.\",e(\"img\",{src:\"https://github.com/MiaadTeam/lesan/assets/6236123/900a5b98-3e7f-460a-a756-403ecaedcf86\",alt:\"full screen e2e\",className:\"e2e_help--fullscreen-img\"}))),e(\"hr\",null),e(\"div\",null,e(\"p\",null,\"After clicking on the Run E2E Test button, you can see the result of each test. Also, in the result view, you can export the results in JSON format.\"),e(\"img\",{src:\"https://github.com/MiaadTeam/lesan/assets/6236123/8c367965-a1b7-40b8-8638-60d2d0ea2609\",alt:\"full screen e2e\",className:\"e2e_help--fullscreen-img\"})),e(\"hr\",null),e(\"div\",null,e(\"p\",null,\"Additionally, you can go to the E2E Test modal page from the main page by clicking on the Test icon inside the response header section. This way, you can add a new test section and prepopulate the Header and Body text areas with the sent request from the main page.\",e(\"img\",{src:\"https://github.com/MiaadTeam/lesan/assets/6236123/74dc9e93-2b41-4840-afc1-f4e8e83c9889\",alt:\"full screen e2e\",className:\"e2e_help--fullscreen-img\"})))));function te(){return e(\"svg\",{width:\"25px\",height:\"28px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M11 8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H13V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V13H8C7.44771 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11H11V8Z\",fill:\"lightcoral\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}))}var vt=()=>e(\"svg\",{width:\"25px\",viewBox:\"-0.5 0 25 25\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z\",stroke:\"bisque\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{id:\"Vector\",d:\"M16 16L12 12M12 12L8 8M12 12L16 8M12 12L8 16\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})),K=vt;function ge(){return e(\"svg\",{width:\"25px\",viewBox:\"-0.5 0 25 25\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z\",stroke:\"bisque\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{d:\"M16 10.99L13.13 14.05C12.9858 14.2058 12.811 14.3298 12.6166 14.4148C12.4221 14.4998 12.2122 14.5437 12 14.5437C11.7878 14.5437 11.5779 14.4998 11.3834 14.4148C11.189 14.3298 11.0142 14.2058 10.87 14.05L8 10.99\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}))}function ne(){return e(\"svg\",{width:\"25px\",height:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M12 17V16.9929M12 14.8571C12 11.6429 15 12.3571 15 9.85714C15 8.27919 13.6568 7 12 7C10.6567 7 9.51961 7.84083 9.13733 9\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function be(){return e(\"svg\",{width:\"25px\",height:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M12.75 13.9393L15.9697 10.7197L17.0303 11.7803L12 16.8107L6.96967 11.7803L8.03033 10.7197L11.25 13.9393L11.25 4.5L12.75 4.5L12.75 13.9393Z\",fill:\"lightcoral\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function ye(){return e(\"svg\",{width:\"25px\",height:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M13.8876 9.9348C14.9625 10.8117 15.5 11.2501 15.5 12C15.5 12.7499 14.9625 13.1883 13.8876 14.0652C13.5909 14.3073 13.2966 14.5352 13.0261 14.7251C12.7888 14.8917 12.5201 15.064 12.2419 15.2332C11.1695 15.8853 10.6333 16.2114 10.1524 15.8504C9.6715 15.4894 9.62779 14.7336 9.54038 13.2222C9.51566 12.7947 9.5 12.3757 9.5 12C9.5 11.6243 9.51566 11.2053 9.54038 10.7778C9.62779 9.26636 9.6715 8.51061 10.1524 8.1496C10.6333 7.78859 11.1695 8.11466 12.2419 8.76679C12.5201 8.93597 12.7888 9.10831 13.0261 9.27492C13.2966 9.46483 13.5909 9.69274 13.8876 9.9348Z\",stroke:\"lightcoral\",\"stroke-width\":\"2\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function Ce(){return e(\"svg\",{width:\"25px\",viewBox:\"-0.5 0 25 25\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z\",stroke:\"bisque\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{d:\"M8 13.8599L10.87 10.8C11.0125 10.6416 11.1868 10.5149 11.3815 10.4282C11.5761 10.3415 11.7869 10.2966 12 10.2966C12.2131 10.2966 12.4239 10.3415 12.6185 10.4282C12.8132 10.5149 12.9875 10.6416 13.13 10.8L16 13.8599\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}))}var Ze={fontFamily:'-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial',display:\"inline-block\",borderRadius:3,padding:\"10px 10px\",color:\"#f8f8f2\",textShadow:\"1px 1px black\",whiteSpace:\"pre-wrap\"};var bt=/(\"(\\\\u[a-zA-Z0-9]{4}|\\\\[^u]|[^\\\\\"])*\"(\\s*:)?|\\b(true|false|null)\\b|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)/g,yt=a=>JSON.stringify(a,Ct,2).replace(/&/g,\"&\").replace(//g,\">\").replace(bt,s=>{let o=\"cute-number\",i=s;return/^\"/.test(s)?/:$/.test(s)?(o=\"cute-key\",i=i.replace(\":\",':')):s==='\"undefined\"'?o=\"cute-undefined\":s==='\"[Function]\"'?o=\"cute-function\":o=\"cute-string\":/true|false/.test(s)?o=\"cute-boolean\":/null/.test(s)&&(o=\"cute-null\"),`${i}`}),Ct=(a,t)=>typeof t==\"function\"?\"[Function]\":typeof t>\"u\"?\"undefined\":t,Je=a=>yt(a).replace(/\"/g,\"\");var H=({jsonData:a})=>{let t=Je(a);return e(q,null,e(\"pre\",{style:Ze,dangerouslySetInnerHTML:{__html:t}}))};function Se(){return e(\"svg\",{width:\"20px\",height:\"20px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M18 17L13 12L18 7M11 17L6 12L11 7\",stroke:\"#000000\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function Te(){return e(\"svg\",{width:\"20px\",height:\"20px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M15 6L9 12L15 18\",stroke:\"#000000\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function Ne(){return e(\"svg\",{width:\"20px\",height:\"20px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M6 17L11 12L6 7M13 17L18 12L13 7\",stroke:\"#000000\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function Ee(){return e(\"svg\",{width:\"20px\",height:\"20px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M9 6L15 12L9 18\",stroke:\"#000000\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function Ue({pageCountNumber:a,activePage:t,setActivePage:s}){let[o,i]=E([]),[f,r]=E(1),d=T=>{r(T.target.value),s(T.target.value-1)},c=()=>{s(f-1)},v=a,I=R(()=>{let T=0,x=v>5?5:v;t>3&&t5&&t>v-5&&(T=v-5,x=v-1),v<=5&&(T=0,x=v);let P=[];for(let G=T;Gs(T),S=T=>t===T?\"active\":\"\";return j(()=>I(),[t]),e(\"div\",{className:\"pagination\"},v>1&&e(\"button\",{onClick:()=>{s(0)}},\" \",e(Se,null)),v>1&&e(\"button\",{onClick:()=>{s(t===0?v-1:t-1)}},e(Te,null)),(t>=4||t>v-5)&&v>5&&e(\"button\",{onClick:()=>y(0)},1),(t>=4||t>v-5)&&v>5&&e(\"span\",null,\"...\"),o.map(T=>e(\"button\",{key:T,className:S(T),onClick:()=>y(T)},T+1)),t5&&e(\"span\",null,\"...\"),v>5&&e(\"button\",{className:S(v-1),onClick:()=>y(v-1)},v),v>1&&e(\"button\",{onClick:()=>s(t===v-1?0:t+1)},e(Ee,null)),v>1&&e(\"button\",{onClick:()=>{s(v-1)}},\" \",e(Ne,null),\" \"),v>1&&e(\"div\",{className:\"pagination--go-to\"},\" \",e(\"input\",{className:\"pagination--go-to--input\",min:1,max:v,for:\"1\",type:\"number\",onChange:d,placeholder:\"number\",value:f}),e(\"button\",{className:\"pagination--go-to--button\",id:\"1\",onClick:()=>{c()}},\"Go\")))}function we(){return e(\"svg\",{fill:\"#fff\",height:\"20px\",width:\"20px\",version:\"1.1\",id:\"Capa_1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 452.025 452.025\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"g\",null,\" \",e(\"g\",null,\" \",e(\"path\",{d:\"M147.912,363.325c-4.7-4.7-12.3-4.7-17,0c-4.7,4.7-4.7,12.3,0,17l13.6,13.6h-55.2c-35.9,0-65-29.2-65-65v-40.3 c0-6.6-5.4-12-12-12s-12,5.4-12,12v40.3c0,49.1,39.9,89,89,89h55.2l-13.6,13.6c-4.7,4.7-4.7,12.3,0,17c2.3,2.3,5.4,3.5,8.5,3.5 s6.1-1.2,8.5-3.5l34.1-34.1c4.7-4.7,4.7-12.3,0-17L147.912,363.325z\"}),\" \",e(\"path\",{d:\"M210.312,0.025h-197.1c-6.6,0-12,5.4-12,12v197.1c0,6.6,5.4,12,12,12h197.1c6.6,0,12-5.4,12-12v-197.1 C222.312,5.425,217.012,0.025,210.312,0.025z M198.312,197.125h-173.1v-173.1h173.1V197.125z\"}),\" \",e(\"path\",{d:\"M362.612,34.125h-55.2l13.6-13.6c4.7-4.7,4.7-12.3,0-17s-12.3-4.7-17,0l-34,34.1c-4.7,4.7-4.7,12.3,0,17l34.1,34.1 c2.3,2.3,5.4,3.5,8.5,3.5s6.1-1.2,8.5-3.5c4.7-4.7,4.7-12.3,0-17l-13.6-13.6h55.2c35.9,0,65,29.2,65,65v40.3c0,6.6,5.4,12,12,12 s12-5.4,12-12v-40.3C451.712,74.025,411.712,34.125,362.612,34.125z\"}),\" \",e(\"path\",{d:\"M438.812,428.025c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5C445.012,429.325,441.912,428.025,438.812,428.025z\"}),\" \",e(\"path\",{d:\"M389.512,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S396.112,428.025,389.512,428.025z\"}),\" \",e(\"path\",{d:\"M290.912,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S297.612,428.025,290.912,428.025z\"}),\" \",e(\"path\",{d:\"M340.212,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S346.812,428.025,340.212,428.025z\"}),\" \",e(\"path\",{d:\"M241.713,428.025c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5c3.1,0,6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5S244.812,428.025,241.713,428.025z\"}),\" \",e(\"path\",{d:\"M241.713,378.725c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,378.725,241.713,378.725z\"}),\" \",e(\"path\",{d:\"M241.713,329.425c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,329.425,241.713,329.425z\"}),\" \",e(\"path\",{d:\"M241.713,280.125c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,280.125,241.713,280.125z\"}),\" \",e(\"path\",{d:\"M241.713,230.925c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5c3.1,0,6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5C247.912,232.125,244.812,230.925,241.713,230.925z\"}),\" \",e(\"path\",{d:\"M389.512,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S396.112,230.925,389.512,230.925z\"}),\" \",e(\"path\",{d:\"M340.212,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S346.812,230.925,340.212,230.925z\"}),\" \",e(\"path\",{d:\"M290.912,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S297.612,230.925,290.912,230.925z\"}),\" \",e(\"path\",{d:\"M438.812,230.925c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5C445.012,232.225,441.912,230.925,438.812,230.925z\"}),\" \",e(\"path\",{d:\"M438.812,280.125c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,280.125,438.812,280.125z\"}),\" \",e(\"path\",{d:\"M438.812,378.725c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,378.725,438.812,378.725z\"}),\" \",e(\"path\",{d:\"M438.812,329.425c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,329.425,438.812,329.425z\"}),\" \"),\" \"),\" \"))}function oe(){return e(\"svg\",{width:25,height:25,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M17 3.25C17.4142 3.25 17.75 3.58579 17.75 4V17.75L19.4 15.55C19.6485 15.2186 20.1186 15.1515 20.45 15.4C20.7814 15.6485 20.8485 16.1186 20.6 16.45L17.6 20.45C17.4063 20.7083 17.0691 20.8136 16.7628 20.7115C16.4566 20.6094 16.25 20.3228 16.25 20V4C16.25 3.58579 16.5858 3.25 17 3.25ZM7.25 6C7.25 5.58579 7.58579 5.25 8 5.25H13C13.4142 5.25 13.75 5.58579 13.75 6C13.75 6.41421 13.4142 6.75 13 6.75H8C7.58579 6.75 7.25 6.41421 7.25 6ZM5.25 11C5.25 10.5858 5.58579 10.25 6 10.25H13C13.4142 10.25 13.75 10.5858 13.75 11C13.75 11.4142 13.4142 11.75 13 11.75H6C5.58579 11.75 5.25 11.4142 5.25 11ZM3.25 16C3.25 15.5858 3.58579 15.25 4 15.25H13C13.4142 15.25 13.75 15.5858 13.75 16C13.75 16.4142 13.4142 16.75 13 16.75H4C3.58579 16.75 3.25 16.4142 3.25 16Z\",fill:\"gainsboro\"}),\" \"))}var Ye=({results:a,setIsShowE2eResponse:t,index:s})=>{let[o,i]=E(0);return e(\"div\",{className:\"result-slider-container\"},e(\"div\",{className:\"result-slider-wrapper\",id:a[o].id},e(\"section\",{className:\"container-re\"},e(\"div\",{className:\"container-re--header\"},e(\"span\",{className:\"container-re--header--icon\",onClick:()=>t(!0)},e(we,null)),e(\"div\",{className:\"container--re--header--icon-number\"},\" \",e(oe,null),e(\"span\",null,s+1)),e(\"span\",{className:\"container-re-title\"},\"REQUEST\")),e(H,{jsonData:a[o].request})),e(\"section\",{className:\"container-re container-response\"},e(\"div\",{className:\"container-re--header\"},e(\"span\",{className:\"container-re-title\"},\"RESPONSE\"),e(\"span\",{className:\"e2e-re-timeNumber-request\"},a[o].responseTime,\"ms\")),e(H,{jsonData:a[o].response}))),e(\"div\",{className:\"pagination-container\"},\" \",e(Ue,{pageCountNumber:a.length,activePage:o,setActivePage:i}),\" \",e(\"div\",{className:\"pagination-u1024\"},\" \",a.map((f,r)=>e(\"span\",{className:\"pagination-u1024--item\",onClick:()=>i(r),\"data-show\":o===r},r+1)))))};function _e(){return e(\"svg\",{fill:\"#fff\",height:\"20px\",width:\"20px\",version:\"1.1\",id:\"Capa_1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 452.025 452.025\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"g\",null,\" \",e(\"g\",null,\" \",e(\"path\",{d:\"M362.612,34.125h-55.2l13.6-13.6c4.7-4.7,4.7-12.3,0-17s-12.3-4.7-17,0l-34,34.1c-2.3,2.3-3.5,5.3-3.5,8.5 s1.3,6.2,3.5,8.5l34.1,34.1c2.3,2.3,5.4,3.5,8.5,3.5s6.1-1.2,8.5-3.5c4.7-4.7,4.7-12.3,0-17l-13.6-13.6h55.2c35.9,0,65,29.2,65,65 v40.3c0,6.6,5.4,12,12,12s12-5.4,12-12v-40.3C451.712,74.025,411.712,34.125,362.612,34.125z\"}),\" \",e(\"path\",{d:\"M438.812,230.925h-197.1c-6.6,0-12,5.4-12,12v197.1c0,6.6,5.4,12,12,12h197.1c6.6,0,12-5.4,12-12v-197.1 C450.812,236.225,445.412,230.925,438.812,230.925z M426.812,428.025h-173.1v-173.1h173.1L426.812,428.025L426.812,428.025z\"}),\" \",e(\"path\",{d:\"M147.912,363.325c-4.7-4.7-12.3-4.7-17,0c-4.7,4.7-4.7,12.3,0,17l13.6,13.6h-55.2c-35.9,0-65-29.2-65-65v-40.3 c0-6.6-5.4-12-12-12s-12,5.4-12,12v40.3c0,49.1,39.9,89,89,89h55.2l-13.6,13.6c-4.7,4.7-4.7,12.3,0,17c2.3,2.3,5.4,3.5,8.5,3.5 s6.1-1.2,8.5-3.5l34.1-34.1c4.7-4.7,4.7-12.3,0-17L147.912,363.325z\"}),\" \",e(\"path\",{d:\"M13.212,24.025c3.2,0,6.3-1.3,8.5-3.5s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5s-5.3-3.5-8.5-3.5s-6.3,1.3-8.5,3.5 s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5C7.012,22.725,10.012,24.025,13.212,24.025z\"}),\" \",e(\"path\",{d:\"M111.812,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S105.112,24.025,111.812,24.025z\"}),\" \",e(\"path\",{d:\"M62.512,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S55.912,24.025,62.512,24.025z\"}),\" \",e(\"path\",{d:\"M161.012,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S154.412,24.025,161.012,24.025z\"}),\" \",e(\"path\",{d:\"M210.312,0.025c-3.1,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5S213.512,0.025,210.312,0.025z\"}),\" \",e(\"path\",{d:\"M210.312,147.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,153.225,217.012,147.925,210.312,147.925z\"}),\" \",e(\"path\",{d:\"M210.312,98.625c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,103.925,217.012,98.625,210.312,98.625z\"}),\" \",e(\"path\",{d:\"M210.312,49.325c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,54.725,217.012,49.325,210.312,49.325z\"}),\" \",e(\"path\",{d:\"M210.312,197.125c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5C216.613,198.425,213.512,197.125,210.312,197.125z\"}),\" \",e(\"path\",{d:\"M161.012,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C149.012,215.825,154.412,221.125,161.012,221.125z\"}),\" \",e(\"path\",{d:\"M111.812,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C99.812,215.825,105.112,221.125,111.812,221.125z\"}),\" \",e(\"path\",{d:\"M62.512,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C50.512,215.825,55.912,221.125,62.512,221.125z\"}),\" \",e(\"path\",{d:\"M13.212,221.125c3.2,0,6.3-1.3,8.5-3.5s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5s-5.3-3.5-8.5-3.5s-6.3,1.3-8.5,3.5 s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5C7.012,219.825,10.012,221.125,13.212,221.125z\"}),\" \",e(\"path\",{d:\"M13.212,171.925c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S6.612,171.925,13.212,171.925z\"}),\" \",e(\"path\",{d:\"M13.212,122.625c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C1.212,117.225,6.612,122.625,13.212,122.625z\"}),\" \",e(\"path\",{d:\"M13.212,73.325c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S6.612,73.325,13.212,73.325z\"}),\" \"),\" \"),\" \"))}function We({sequence:a,index:t}){let[s,o]=E(!0);return e(\"div\",{id:t.toString(),key:a.id,className:\"container-detail\"},s?e(q,null,e(\"section\",{className:\"sequence-re\"},e(\"div\",{className:\"container-re--header\"},e(\"span\",{className:\"container-re--header--icon\",onClick:()=>o(!1)},e(_e,null)),e(\"div\",{className:\"container--re--header--icon-number\"},\" \",e(oe,null),e(\"span\",null,t+1)),e(\"span\",{className:\"container-re-title\"},\"Body Header\")),e(H,{jsonData:JSON.parse(a.bodyHeader)})),e(\"section\",{className:\"sequence-re sequence-response \"},e(\"div\",{className:\"container-re--header\"},e(\"span\",{className:\"container-re-title\"},\"Description\")),e(\"div\",{className:\"detail-sequence\"},e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Requests\"),\" \",e(\"span\",{className:\"detail-sequence--sections--first-item\"},\"All Request Count: \",e(\"span\",null,a.repeat),\" \"),e(\"span\",{className:\"e2e-success\"},\"Success:\",e(\"span\",null,\" \",a.success)),e(\"span\",{className:\"e2e-fail\"},\"Fails: \",e(\"span\",null,a.fails)),e(\"span\",null,\"All Request Time: \",e(\"span\",null,a.time,\" ms\")),e(\"span\",null,\"Avrage Time For Each Request:\",\" \",e(\"span\",null,(a.time/a.repeat).toFixed(1),\" ms\"))),e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Best\"),\" \",e(\"span\",{className:\"detail-sequence--sections--first-item\"},\"Best Time: \",e(\"span\",null,a.bestTime.time,\" ms\")),e(\"span\",null,\"Request Number: \",e(\"span\",null,a.bestTime.resultIdx))),e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Worst\"),e(\"span\",{className:\"detail-sequence--sections--first-item\"},\"Worst Time: \",e(\"span\",null,a.worstTime.time,\" ms\"),\" \"),e(\"span\",null,\" \",\"Request Number: \",e(\"span\",null,a.worstTime.resultIdx))),a.captures.length>0&&e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Capture Items\"),\" \",a.captures.map(i=>e(\"ul\",{className:\"detail-sequence--sections--capture-items\"},e(\"li\",null,\"key:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.key)),e(\"li\",null,\"value :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.value)),e(\"li\",null,\"model :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.model)),e(\"li\",null,\"act :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.act)),e(\"li\",null,\"sequnce number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",i.sequenceIdx))))),a.usedCaptures.length>0&&e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Using Capture Items\"),\" \",a.usedCaptures.map(i=>e(\"ul\",{className:\"detail-sequence--sections--capture-items\"},e(\"li\",null,\"key:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",i.key)),e(\"li\",null,\"captured from:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",i.captured)),e(\"li\",null,\"value:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",i.value)),e(\"li\",null,\" \",\"model :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",i.model)),e(\"li\",null,\" \",\"act :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.act)),e(\"li\",null,\"sequnce number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.sequenceIdx)))))))):e(Ye,{results:a.results,setIsShowE2eResponse:o,index:t}))}function Ke({baseUrl:a}){let{e2eForms:t,setE2eForms:s}=B(),o={allReqPerformance:0,numberRequest:0,success:0,fails:0,bestTime:{sequenceIdx:0,resultIdx:0,time:Number.MAX_SAFE_INTEGER,act:\"\",model:\"\"},worstTime:{sequenceIdx:0,resultIdx:0,act:\"\",model:\"\",time:0},sequenceDetail:[],allCaptureItems:[]},[i,f]=E(!1),[r,d]=E(o),c=(p,u)=>{if(!(p===0&&u<=0)){let N=t[p];t.splice(p,1),t.splice(u,0,N),s([...t])}},v=p=>{t[p],t.splice(p,1),s([...t])},I=p=>{let u={...t[p],id:h()};s([...t.slice(0,p),u,...t.slice(p,t.length)])},[y,S]=E(\"e2e\"),T=()=>{let p=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(t))}`,u=document.createElement(\"a\");u.href=p,u.download=\"Configdata.json\",u.click()},x=p=>{let u=new FileReader;u.readAsText(p.target.files[0],\"UTF-8\"),u.onload=N=>{let l=JSON.parse(N.target.result);s(l)}},P=()=>{let p=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(r))}`,u=document.createElement(\"a\");u.href=p,u.download=\"data.json\",u.click()},G=async({baseUrl:p,options:u})=>await(await fetch(`${p}lesan`,u)).json(),J=(p,u,N)=>{for(let l in p){typeof p[l]==\"object\"&&J(p[l],u,N);let D=p[l];if(typeof D==\"string\"&&D.includes(\"{\")){let U=[];for(let k=0;kD.slice(k+1,A[V])).forEach(k=>{if(k.startsWith(\"faker\")){let V=k.split(\".\"),M=St[V[1]][V[2]]();N.push({key:k,value:M}),p[l]=p[l].replace(`{${k}}`,M)}for(let V of u)V.key===k&&(N.push({key:p[l],value:p[l].replace(`{${k}}`,V.value)}),p[l]=p[l].replace(`{${k}}`,V.value))})}}return N},X=async()=>{let p=new Set;for await(let u of t){let N=JSON.parse(u.bodyHeaders),l=J(N,p,[]),D={method:\"POST\",headers:{\"Content-Type\":\"application/json\",...N.headers},body:JSON.stringify(N.body)},U=(M,_)=>{for(let n of _)if(n.value===M)return n},A,Y=h();for(let M=0;M{let C=b.sequenceDetail,m=C.findIndex(Q=>Q.id===Y),F=1;return m!==-1?(C[m].results.push(w),F=C[m].results.length,C[m].bestTime=C[m].bestTime.timen?C[m].worstTime:{resultIdx:F,time:n},A.success?C[m].success=C[m].success+1:C[m].fails=C[m].fails+1,C[m].time=C[m].time+n,C[m].repeat=C[m].repeat+1):C.push({id:Y,bodyHeader:u.bodyHeaders,time:n,repeat:1,success:A.success?1:0,fails:A.success?0:1,bestTime:{resultIdx:F,time:n},worstTime:{resultIdx:F,time:n},captures:u.captures.map(({key:Q,value:z})=>({key:Q,value:z,sequenceIdx:C.length+1,model:N.body.model,act:N.body.act})),usedCaptures:l.map(({key:Q,value:z})=>{let ee=U(z,p);return{key:Q,value:z,captured:ee?.captured,sequenceIdx:ee?.sequenceIdx||ee?.sequenceIdx===0?ee?.sequenceIdx+1:void 0,model:ee?.model,act:ee?.act}}),results:[w]}),{allReqPerformance:b.allReqPerformance+n,numberRequest:b.numberRequest+1,success:A.success?b.success+1:b.success,fails:A.success?b.fails:b.fails+1,bestTime:b.bestTime.timen?b.worstTime:{resultIdx:F,sequenceIdx:C.length,act:N.body.act,model:N.body.model,time:n},sequenceDetail:C,allCaptureItems:Array.from(p)}})}[...u.captures].filter(M=>M.key&&M.value).map(M=>{let _=M.value.split(\"[\"),n=[];return _.forEach(g=>{let w=g.slice(0,g.indexOf(\"]\"));isNaN(Number(w))||(w=Number(w)),n.push(w)}),n.shift(),{key:M.key,parsedValue:n,value:M.value}}).forEach(M=>{if(M.parsedValue.length>0){let _=A;M.parsedValue.forEach(n=>{_=_[n]}),p.add({key:M.key,value:_,captured:M.value,act:N.body.act,model:N.body.model,sequenceIdx:r.sequenceDetail.length-1})}})}},L=(p,u,N)=>{let l=[...t];l[p][u]=N,s([...l])},O=Z(),$=p=>O.current.childNodes[p-1].scrollIntoView({behavior:\"smooth\",block:\"start\"});return e(\"div\",{className:\"e2e-container\"},y===\"result\"?e(\"div\",{className:\"e2e-container--sequence-container\"},e(\"div\",{className:\"results-buttons--back-export\"},e(\"button\",{className:\"btn e2e-back-button\",onClick:()=>{document.getElementById(\"modal\")?.scroll({top:0,behavior:\"smooth\"}),d(o),S(\"e2e\")}},e(ae,null),e(\"span\",null,\"Back\")),e(\"button\",{className:\"btn e2e-back-button e2e-export_results-button\",onClick:P},e(W,null),e(\"span\",null,\"Export\"))),e(\"div\",{className:\"e2e-container--sequence-container--information-container\"},e(\"span\",{className:\"information-container-label\"},\"Information\"),e(\"div\",{className:\"information-container--request\"},e(\"span\",{className:\"information-container-label\"},\"Requests\"),\" \",e(\"div\",{className:\"information-container--request--sections\"},e(\"p\",{className:\"information-container--request--sections--item\"},\"All Request Count:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.numberRequest),\" \",\"times\"),\" \",e(\"p\",{className:\"information-container--request--sections--item\"},\" \",\"All Request Time:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.allReqPerformance),\" \",\"ms\")),e(\"div\",{className:\"information-container--request--sections\"},e(\"p\",{className:\"information-container--request--sections--item\"},\"All \",e(\"span\",{className:\"e2e-success\"},\"Success\"),\" Request:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.success,\" \"),\" \",\"times\"),e(\"p\",{className:\"information-container--request--sections--item\"},\"All \",e(\"span\",{className:\"e2e-fail\"},\"Fails\"),\" Request :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.fails,\" \"),\"times\"))),e(\"div\",{className:\"information-container--times\"},e(\"span\",{className:\"information-container-label\"},\"Times\"),\" \",e(\"ul\",{className:\"information-container--times--sections\"},e(\"li\",null,\" \",e(\"span\",{className:\"e2e-best\"},\"Best\"),\" Request Time:\",\" \",e(\"span\",{className:\"e2e-best\"},r.bestTime.time,\" \"),\"ms\",\" \"),e(\"li\",null,\" \",\"Seqeunce Number:\",\" \",e(\"span\",{onClick:()=>{$(r.bestTime.sequenceIdx)},className:\"information-container--request--sections--item--content e2e-sequensce-number\"},r.bestTime.sequenceIdx,\" \")),e(\"li\",null,\" \",\"Request Number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.bestTime.resultIdx),\" \"),e(\"li\",null,\"Model:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.bestTime.model,\" \"),\" \"),e(\"li\",null,\"Act:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.bestTime.act,\" \"))),e(\"ul\",{className:\"information-container--times--sections\"},e(\"li\",null,\"Worst Request Time:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.worstTime.time),\" \",\"ms\",\" \"),e(\"li\",null,\" \",\"Seqeunce Number:\",\" \",e(\"span\",{onClick:()=>{$(r.worstTime.sequenceIdx)},className:\"information-container--request--sections--item--content e2e-sequensce-number\"},r.worstTime.sequenceIdx,\" \")),e(\"li\",null,\" \",\"Request Number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.worstTime.resultIdx,\" \")),e(\"li\",null,\"Model:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.worstTime.model)),e(\"li\",null,\"act:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},r.worstTime.act)))),r.allCaptureItems.length>0&&e(\"div\",{className:\"information-container--captures\"},e(\"span\",{className:\"information-container-label\"},\"Captures Information\"),\" \",r.allCaptureItems.map(p=>e(\"ul\",{className:\"information-container--captures--sections\",key:h()},e(\"span\",{className:\"information-container-label\"},p.key),e(\"li\",null,\"Captured From:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},p.captured)),e(\"li\",null,\"Value Of\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\": \",p.value)),e(\"li\",null,\"Model :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},p.model)),e(\"li\",null,\"Act :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},p.act)),e(\"li\",null,\"Captured Inside Sequnce Number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},p.sequenceIdx)))))),e(\"div\",{className:\"e2e-sequesnce-wrapper\",ref:O},r.sequenceDetail.map((p,u)=>e(We,{sequence:p,index:u})))):y===\"e2e\"?e(q,null,e(\"div\",{className:\"sidebar__section sidebar__section--headers\"},t.map((p,u)=>e(q,{key:p.id},e(\"div\",{className:\"sidebar__input-double\",key:p.id},e(\"div\",{className:\"e2e-move-buttons\"},e(\"div\",{className:\"e2e-move-div\",onClick:()=>I(u)},e(te,null)),t.length>1&&e(q,null,e(\"div\",{className:\"e2e-move-div\",onClick:()=>c(u,u-1)},e(Ce,null)),e(\"div\",{className:\"e2e-move-div\",onClick:()=>c(u,u+1)},e(ge,null)),e(\"div\",{className:\"e2e-move-div e2e-move-close\",onClick:()=>v(u)},e(K,null)))),e(\"div\",{className:\"sidebar__section-body-heading\"},e(\"div\",{className:\"sidebar__section-heading\"},\"set test body and headers\"),e(\"textarea\",{placeholder:\"please paste a request body here\",value:p.bodyHeaders,name:`${p.id}-body`,rows:18,onChange:N=>L(u,\"bodyHeaders\",N.target.value)})),e(\"div\",{className:\"sidebar__section-capture\"},e(\"div\",{className:\"e2e_sidebar__section-heading\"},\"set repeat time\"),e(\"div\",{className:\"repeat__number\"},e(\"input\",{className:\"input\",min:1,placeholder:\"set repeat number\",value:p.repeat,name:`${p.id}-repeat`,type:\"number\",onChange:N=>L(u,\"repeat\",Math.abs(N.target.value))}),e(\"button\",{className:\"e2e-back-button e2e-export_results-button\",onClick:()=>L(u,\"repeat\",t[u].repeat+1)},\"+\"),e(\"button\",{className:\"e2e-back-button e2e-export_results-button\",onClick:()=>L(u,\"repeat\",t[u].repeat>2?t[u].repeat-1:1)},\"-\")),e(\"div\",{className:\"e2e_sidebar__section-heading\"},\"capture variables\"),e(\"button\",{className:\"btn btn--add e2e-back-button e2e-export_results-button e2e-add-capture \",onClick:()=>L(u,\"captures\",[...t[u].captures,{key:\"\",value:\"\"}])},\"add capture\"),p.captures.map((N,l)=>e(q,{key:`${p.id}-${l}`},e(\"div\",{className:\"sidebar__section-add-capture\"},e(\"input\",{className:\"input\",placeholder:\"set a variable name\",value:N.key,onChange:D=>L(u,\"captures\",[...t[u].captures.slice(0,l),{key:D.target.value,value:t[u].captures[l].value},...t[u].captures.slice(l+1,t[u].captures.length)])}),e(\"input\",{className:\"input\",placeholder:\"set a value for variable\",value:N.value,onChange:D=>L(u,\"captures\",[...t[u].captures.slice(0,l),{key:t[u].captures[l].key,value:D.target.value},...t[u].captures.slice(l+1,t[u].captures.length)])})),e(\"hr\",null)))))))),e(\"button\",{className:\"btn btn-show-results-buttons \",onClick:()=>f(!i)},\"show btn\"),e(\"div\",{className:\"results-buttons\",\"data-show\":i===!0},e(\"button\",{className:\"btn btn-e2e-action e2e-back-button e2e-export_results-button\",onClick:()=>{s([...t,ue()])}},e(te,null),e(\"span\",null,\"Add\")),e(\"button\",{className:\"btn btn-e2e-action e2e-back-button e2e-run-botton e2e-export_results-button\",onClick:async()=>{S(\"result\"),await X()}},e(ye,null),e(\"span\",null,\"Run E2E Test\")),e(\"input\",{id:\"actual-btn\",type:\"file\",onChange:x,hidden:!0}),e(\"label\",{htmlFor:\"actual-btn\",className:\"btn btn-e2e-action e2e-back-button e2e-export_results-button\"},e(be,null),e(\"span\",null,\"Import\")),e(\"button\",{className:\"btn btn-e2e-action e2e-back-button e2e-export_results-button\",onClick:T},e(W,null),e(\"span\",null,\"Export\")),e(\"button\",{onClick:()=>S(\"help\"),className:\"btn btn-e2e-action e2e-back-button e2e-export_results-button\"},e(ne,null),e(\"span\",null,\"Help\")))):y===\"help\"?e(ze,{setView:S}):\"\")}function de(a){let t=Math.floor(a/36e5),s=Math.floor(a%36e5/6e4),o=Math.floor(a%36e4%6e4/1e3);return t>0?`${t}h ${s}m ${o}s`:s>0?`${s}m ${o}s`:o>0?`${o}s`:`${a}ms`}var Xe=(a,t)=>{let s=Z(!0);j(()=>{let o=()=>{};if(s.current?s.current=!1:o=a(),o&&typeof o==\"function\")return o},t)};function ke(){return e(\"svg\",{id:\"Layer_1\",\"data-name\":\"Layer 1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 105.7 122.88\",width:20},e(\"path\",{fill:\"white\",d:\"M30.46,14.57V5.22A5.18,5.18,0,0,1,32,1.55v0A5.19,5.19,0,0,1,35.68,0H70a5.22,5.22,0,0,1,3.67,1.53l0,0a5.22,5.22,0,0,1,1.53,3.67v9.35h27.08a3.36,3.36,0,0,1,3.38,3.37V29.58A3.38,3.38,0,0,1,102.32,33H98.51l-8.3,87.22a3,3,0,0,1-2.95,2.69H18.43a3,3,0,0,1-3-2.95L7.19,33H3.37A3.38,3.38,0,0,1,0,29.58V17.94a3.36,3.36,0,0,1,3.37-3.37Zm36.27,0V8.51H39v6.06ZM49.48,49.25a3.4,3.4,0,0,1,6.8,0v51.81a3.4,3.4,0,1,1-6.8,0V49.25ZM69.59,49a3.4,3.4,0,1,1,6.78.42L73,101.27a3.4,3.4,0,0,1-6.78-.43L69.59,49Zm-40.26.42A3.39,3.39,0,1,1,36.1,49l3.41,51.8a3.39,3.39,0,1,1-6.77.43L29.33,49.46ZM92.51,33.38H13.19l7.94,83.55H84.56l8-83.55Z\"}))}function Qe({setFormFromHistory:a}){let{history:t,setHistory:s,deleteItemHistory:o}=B(),[i,f]=E(\"\");return Xe(()=>{localStorage.setItem(\"localHistory\",JSON.stringify(t))},[t]),e(q,null,t&&t?.length>0?e(\"div\",null,e(\"br\",null),t.map((r,d)=>e(\"div\",{className:\"container-detail\",id:r.id},e(\"section\",{className:\"container-re\"},e(\"div\",{style:{position:\"relative\",borderBottom:\"1px solid gainsboro\"}},e(\"span\",{className:\"container-re-title\"},\"REQUEST\"),e(\"span\",{className:\"history-re-detail-date\"},r.reqDate)),e(\"div\",{className:\"container-re-detail\"},e(\"div\",{className:\"container-re-detail-title\"},\" \",e(H,{jsonData:r.request.body.model}),e(\"span\",null,\"|\"),e(\"div\",null,e(H,{jsonData:r.request.body.act}))),i===r.id?e(\"button\",{onClick:()=>f(\"\"),className:\"history-re-detail-button\"},\"Hide\",e(\"span\",{className:\"history-re-detail-button-icon\"},\"\\u2013\")):e(\"button\",{onClick:()=>{f(r.id),document.getElementById(r.id)?.scrollIntoView()},className:\"history-re-detail-button\"},\"Show\",\" \",e(\"span\",{className:\"history-re-detail-button-icon\"},\"+\"))),e(\"div\",{className:\"history-re-detail-complete\",\"data-show\":i===r.id},\" \",e(H,{jsonData:r.request}))),e(\"section\",{className:\"container-re container-response\"},e(\"div\",{className:\"history-re-title_delete\",style:{position:\"relative\",borderBottom:\"1px solid gainsboro\"}},e(\"span\",{className:\"history-re-delete\",onClick:c=>{c.stopPropagation(),o(d)}},e(K,null)),e(\"span\",{className:\"container-re-title history-response-title\"},\"RESPONSE\"),e(\"span\",{className:\"history-re-detail-date history-response-took\"},de(r.response.tookTime))),e(\"div\",{className:\"container-re-detail\"},e(\"div\",{className:\"history-re-detail-title\"},e(\"div\",{className:\"history-re-response-title\"},\" \",e(\"span\",{className:\"history-re-response-title-status\"},\"success:\"),e(\"div\",{className:\"history-re-response-info\"},e(H,{jsonData:r.response.success})))),e(\"button\",{onClick:()=>a(r.request),className:\"history-re-detail-button\"},\"Use\",\" \",e(\"span\",{className:\"history-re-detail-button-icon\"},\"\\u279C\",\" \"))),e(\"div\",{className:\"history-re-detail-complete\",\"data-show\":i===r.id},\" \",e(H,{jsonData:r.response})))))):e(\"span\",{className:\"no-history\"},'\"There is no history to display\"'),t&&t.length>0?e(\"div\",{className:\"clear-history\"},e(\"button\",{className:\"btn clear-history-button tooltip\",onClick:()=>{confirm(\"Clear All History?\")==!0&&s([])}},e(ke,null),e(\"span\",{className:\"tooltip-text\"},\"Clear History\"))):\"\")}function xe(){return e(\"svg\",{width:\"25px\",viewBox:\"0 0 26 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M4 6V19C4 20.6569 5.34315 22 7 22H17C18.6569 22 20 20.6569 20 19V9C20 7.34315 18.6569 6 17 6H4ZM4 6V5\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\"}),\" \",e(\"path\",{d:\"M18 6.00002V6.75002H18.75V6.00002H18ZM15.7172 2.32614L15.6111 1.58368L15.7172 2.32614ZM4.91959 3.86865L4.81353 3.12619H4.81353L4.91959 3.86865ZM5.07107 6.75002H18V5.25002H5.07107V6.75002ZM18.75 6.00002V4.30604H17.25V6.00002H18.75ZM15.6111 1.58368L4.81353 3.12619L5.02566 4.61111L15.8232 3.0686L15.6111 1.58368ZM4.81353 3.12619C3.91638 3.25435 3.25 4.0227 3.25 4.92895H4.75C4.75 4.76917 4.86749 4.63371 5.02566 4.61111L4.81353 3.12619ZM18.75 4.30604C18.75 2.63253 17.2678 1.34701 15.6111 1.58368L15.8232 3.0686C16.5763 2.96103 17.25 3.54535 17.25 4.30604H18.75ZM5.07107 5.25002C4.89375 5.25002 4.75 5.10627 4.75 4.92895H3.25C3.25 5.9347 4.06532 6.75002 5.07107 6.75002V5.25002Z\",fill:\"lightcoral\"}),\" \",e(\"path\",{opacity:\"0.5\",d:\"M8 12H16\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}),\" \",e(\"path\",{opacity:\"0.5\",d:\"M8 15.5H13.5\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}),\" \"))}function Re(){return e(\"svg\",{width:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{\"fill-rule\":\"evenodd\",opacity:\"0.5\",\"clip-rule\":\"evenodd\",d:\"M5.07868 5.06891C8.87402 1.27893 15.0437 1.31923 18.8622 5.13778C22.6824 8.95797 22.7211 15.1313 18.9262 18.9262C15.1312 22.7211 8.95793 22.6824 5.13774 18.8622C2.87389 16.5984 1.93904 13.5099 2.34047 10.5812C2.39672 10.1708 2.775 9.88377 3.18537 9.94002C3.59575 9.99627 3.88282 10.3745 3.82658 10.7849C3.4866 13.2652 4.27782 15.881 6.1984 17.8016C9.44288 21.0461 14.6664 21.0646 17.8655 17.8655C21.0646 14.6664 21.046 9.44292 17.8015 6.19844C14.5587 2.95561 9.33889 2.93539 6.13935 6.12957L6.88705 6.13333C7.30126 6.13541 7.63535 6.47288 7.63327 6.88709C7.63119 7.3013 7.29372 7.63539 6.87951 7.63331L4.33396 7.62052C3.92269 7.61845 3.58981 7.28556 3.58774 6.8743L3.57495 4.32874C3.57286 3.91454 3.90696 3.57707 4.32117 3.57498C4.73538 3.5729 5.07285 3.907 5.07493 4.32121L5.07868 5.06891Z\",fill:\"lightcoral\"}),e(\"path\",{d:\"M12 7.25C12.4142 7.25 12.75 7.58579 12.75 8V11.6893L15.0303 13.9697C15.3232 14.2626 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2626 15.3232 13.9697 15.0303L11.5429 12.6036C11.3554 12.416 11.25 12.1617 11.25 11.8964V8C11.25 7.58579 11.5858 7.25 12 7.25Z\",fill:\"lightcoral\"}))}function Me(){return e(\"svg\",{height:\"25px\",width:\"25px\",version:\"1.1\",id:\"Layer_1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 512 512\",fill:\"#000000\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"circle\",{opacity:.34,style:\"fill:lightcoral;\",cx:\"256.602\",cy:\"226.267\",r:\"171.059\"}),\" \",e(\"path\",{style:\"fill:lightcoral\",d:\"M482.195,226.196C482.195,101.471,380.725,0,256.001,0S29.804,101.471,29.804,226.196 c0,7.409,6.007,13.416,13.416,13.416s13.416-6.008,13.416-13.416c0-109.93,89.434-199.363,199.363-199.363 s199.363,89.434,199.363,199.363c0,109.928-89.434,199.362-199.363,199.362h-23.276l33.282-37.255 c4.937-5.525,4.458-14.007-1.067-18.944c-5.525-4.937-14.008-4.457-18.944,1.068l-47.576,53.255c-7.788,8.718-7.788,21.866,0,30.584 l47.576,53.255c2.651,2.968,6.322,4.478,10.01,4.478c3.181,0,6.375-1.126,8.934-3.41c5.526-4.937,6.004-13.419,1.067-18.944 l-33.282-37.255h23.276C380.725,452.39,482.195,350.919,482.195,226.196z\"}),\" \"))}function Ie(){return e(\"svg\",{fill:\"lightcoral\",height:\"25px\",width:\"25px\",viewBox:\"0 0 436.668 436.668\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"g\",null,\" \",e(\"path\",{opacity:.34,d:\"M203.334,85.818v59.141c4.884-0.8,9.893-1.223,15-1.223s10.116,0.423,15,1.223V85.818c14.657-5.935,25-20.296,25-37.081 c0-22.092-17.909-40-40-40s-40,17.908-40,40C178.334,65.522,188.677,79.883,203.334,85.818z\"}),\" \",e(\"path\",{opacity:.34,d:\"M70.642,204.021l56.242,18.274c1.539-10.139,4.732-19.74,9.292-28.525L79.912,175.49 c-1.115-15.774-11.577-30.049-27.541-35.236c-21.01-6.827-43.576,4.672-50.403,25.682c-6.827,21.01,4.672,43.576,25.682,50.403 C43.614,221.525,60.468,216.126,70.642,204.021z\"}),\" \",e(\"path\",{opacity:.34,d:\"M152.577,301.224l-34.792,47.887c-15.346-3.813-32.156,1.725-42.022,15.305c-12.985,17.872-9.023,42.887,8.849,55.872 s42.887,9.023,55.872-8.849c9.866-13.579,9.939-31.277,1.571-44.694l34.772-47.86C167.8,314.333,159.616,308.347,152.577,301.224z\"}),\" \",e(\"path\",{opacity:.34,d:\"M318.883,349.112l-34.792-47.887c-7.039,7.122-15.223,13.109-24.25,17.661l34.772,47.86 c-8.369,13.417-8.296,31.115,1.571,44.694c12.985,17.872,38,21.834,55.872,8.849s21.834-38,8.849-55.872 C351.038,350.837,334.229,345.298,318.883,349.112z\"}),\" \",e(\"path\",{opacity:.34,d:\"M434.699,165.936c-6.827-21.01-29.393-32.508-50.403-25.682c-15.964,5.187-26.426,19.462-27.541,35.236l-56.263,18.281 c4.559,8.784,7.752,18.386,9.292,28.525l56.242-18.274c10.174,12.105,27.028,17.504,42.992,12.318 C430.028,209.512,441.526,186.946,434.699,165.936z\"}),\" \",e(\"path\",{d:\"M280.834,236.237c0-34.462-28.037-62.5-62.5-62.5s-62.5,28.038-62.5,62.5s28.037,62.5,62.5,62.5 S280.834,270.7,280.834,236.237z\"}),\" \"),\" \"))}function De(){return e(\"svg\",{width:\"25px\",height:25,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M3 9.10986V14.8799C3 16.9999 3 16.9999 5 18.3499L10.5 21.5299C11.33 22.0099 12.68 22.0099 13.5 21.5299L19 18.3499C21 16.9999 21 16.9999 21 14.8899V9.10986C21 6.99986 21 6.99986 19 5.64986L13.5 2.46986C12.68 1.98986 11.33 1.98986 10.5 2.46986L5 5.64986C3 6.99986 3 6.99986 3 9.10986Z\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",opacity:.34}),e(\"path\",{d:\"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}))}function Le(){return e(\"svg\",{width:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{opacity:.5,d:\"M9.74872 2.49415L18.1594 7.31987M9.74872 2.49415L2.65093 14.7455C1.31093 17.0584 2.10615 20.0159 4.42709 21.3513C6.74803 22.6867 9.7158 21.8942 11.0558 19.5813L12.5511 17.0003L14.1886 14.1738L15.902 11.2163L18.1594 7.31987M9.74872 2.49415L8.91283 2M18.1594 7.31987L19 7.80374\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}),e(\"path\",{d:\"M15.9021 11.2164L13.3441 9.74463M14.1887 14.1739L9.98577 11.7557M12.5512 17.0004L9.93848 15.4972\",stroke:\"lightcpral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}),e(\"path\",{d:\"M22 14.9166C22 16.0672 21.1046 16.9999 20 16.9999C18.8954 16.9999 18 16.0672 18 14.9166C18 14.1967 18.783 13.2358 19.3691 12.6174C19.7161 12.2512 20.2839 12.2512 20.6309 12.6174C21.217 13.2358 22 14.1967 22 14.9166Z\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\"}))}function pe(){return e(\"svg\",{width:\"28px\",fill:\"white\",viewBox:\"0 0 32 32\",style:\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;\",version:\"1.1\"},e(\"path\",{d:\"M9.101,7l8.899,0c1.857,-0 3.637,0.737 4.95,2.05c1.313,1.313 2.05,3.093 2.05,4.95l0,8.899c0.953,-0.195 1.837,-0.665 2.536,-1.363c0.937,-0.938 1.464,-2.21 1.464,-3.536c0,-2.977 0,-7.023 0,-10c0,-1.326 -0.527,-2.598 -1.464,-3.536c-0.938,-0.937 -2.21,-1.464 -3.536,-1.464c-2.977,0 -7.023,0 -10,0c-1.326,-0 -2.598,0.527 -3.536,1.464c-0.698,0.699 -1.168,1.583 -1.363,2.536Z\"}),e(\"path\",{d:\"M23,14c0,-1.326 -0.527,-2.598 -1.464,-3.536c-0.938,-0.937 -2.21,-1.464 -3.536,-1.464c-2.977,0 -7.023,0 -10,0c-1.326,-0 -2.598,0.527 -3.536,1.464c-0.937,0.938 -1.464,2.21 -1.464,3.536c0,2.977 0,7.023 0,10c-0,1.326 0.527,2.598 1.464,3.536c0.938,0.937 2.21,1.464 3.536,1.464c2.977,-0 7.023,-0 10,-0c1.326,0 2.598,-0.527 3.536,-1.464c0.937,-0.938 1.464,-2.21 1.464,-3.536l0,-10Zm-15,10l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm0,-4l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm0,-4l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Z\"}),e(\"g\",{id:\"Icon\"}))}function Fe(){return e(\"svg\",{width:25,height:25,fill:\"#ffffff\",version:\"1.1\",id:\"Capa_1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 104.778 104.778\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"g\",null,\" \",e(\"path\",{d:\"M96.832,88.406l-23.02-39.908V21.959c4.385-1.595,7.447-5.797,7.447-10.618C81.26,5.089,76.176,0,69.928,0H42.6 c-6.251,0-11.334,5.089-11.334,11.341c0,4.815,3.07,9.017,7.457,10.618v26.55l-2.083,3.685V30.359c0-1.546-1.257-2.802-2.803-2.802 H8.723c-1.546,0-2.801,1.256-2.801,2.802v59.557c0,7.475,5.742,13.614,13.174,14.648c0.331,0.126,0.683,0.214,1.059,0.214h67.227 c4.79,0,8.433-1.762,10.282-4.979C99.503,96.598,99.208,92.543,96.832,88.406z M11.513,89.916v-6.079h8.254 c1.546,0,2.802-1.26,2.802-2.802c0-1.549-1.256-2.802-2.802-2.802h-8.254v-9.09h8.254c1.546,0,2.802-1.263,2.802-2.801 c0-1.555-1.256-2.802-2.802-2.802h-8.254v-9.097h8.254c1.546,0,2.802-1.256,2.802-2.801c0-1.55-1.256-2.803-2.802-2.803h-8.254 V33.149h19.512v56.767c0,5.095-4.375,9.248-9.756,9.248C15.883,99.17,11.513,95.011,11.513,89.916z M92.794,96.997 c-0.799,1.379-2.779,2.178-5.432,2.178H33.189c2.118-2.55,3.439-5.734,3.439-9.259V63.19c0.245-0.207,0.476-0.443,0.645-0.743 l6.679-11.82c0.236-0.422,0.364-0.898,0.364-1.379V19.776c0-1.415-1.048-2.603-2.449-2.78c-2.859-0.364-5.015-2.796-5.015-5.655 c0-3.161,2.571-5.738,5.731-5.738H69.91c3.165,0,5.734,2.577,5.734,5.738c0,2.859-2.155,5.286-5.017,5.655 c-1.401,0.178-2.446,1.365-2.446,2.78v29.472c0,0.493,0.122,0.977,0.374,1.401l23.396,40.559 C93.292,93.506,93.593,95.617,92.794,96.997z M76.466,79.53c0,5.412-4.377,9.794-9.801,9.794c-5.411,0-9.795-4.382-9.795-9.794 c0-5.406,4.384-9.795,9.795-9.795C72.089,69.735,76.466,74.124,76.466,79.53z M54.609,68.877c0,2.665-2.146,4.799-4.802,4.799 c-2.657,0-4.802-2.156-4.802-4.799c0-2.644,2.15-4.8,4.802-4.8C52.468,64.077,54.609,66.233,54.609,68.877z M58.195,58.048 c-1.672,0-3.015-1.341-3.015-3.01c0-1.667,1.343-3.009,3.015-3.009c1.663,0,3.015,1.343,3.015,3.009 C61.21,56.707,59.853,58.048,58.195,58.048z M49.534,86.315c0,1.669-1.352,3.009-3.016,3.009c-1.665,0-3.014-1.34-3.014-3.009 c0-1.663,1.349-3.016,3.014-3.016C48.182,83.3,49.534,84.652,49.534,86.315z M54.805,46.184c-2.185,0-3.956-1.771-3.956-3.957 c0-2.186,1.771-3.957,3.956-3.957c2.183,0,3.957,1.771,3.957,3.957C58.762,44.414,56.983,46.184,54.805,46.184z\"}),\" \"),\" \"))}function Oe(){return e(\"svg\",{version:\"1.1\",viewBox:\"0 0 29.756 29.756\",style:\"enable-background:new 0 0 29.756 29.756;\"},e(\"path\",{d:\"M29.049,5.009L28.19,4.151c-0.943-0.945-2.488-0.945-3.434,0L10.172,18.737l-5.175-5.173 c-0.943-0.944-2.489-0.944-3.432,0.001l-0.858,0.857c-0.943,0.944-0.943,2.489,0,3.433l7.744,7.752 c0.944,0.943,2.489,0.943,3.433,0L29.049,8.442C29.991,7.498,29.991,5.953,29.049,5.009z\"}))}function se(a){let t=Z(null);return j(()=>{let s=o=>{t.current&&!t.current.contains(o?.target)&&a()};return document.addEventListener(\"click\",s),()=>{document.removeEventListener(\"click\",s)}},[t]),t}function ie({className:a=\"\"}){return e(\"svg\",{width:25,height:25,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:a},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M6 9L12 15L18 9M12 9H12.01\",stroke:\"lightcoral\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function re({items:a,onClickItem:t,incomeActiveItem:s,canShow:o}){let[i,f]=E(!1),[r,d]=E(\"\");j(()=>{d(s||\"\")},[s]);let v=se(()=>{f(!1)});return e(\"div\",null,e(\"div\",{className:\"select\",disabled:o},e(\"div\",{className:`select--empty ${i===!0?\"active-select--empty\":\"\"}`,ref:v,onClick:()=>f(!i)},e(\"div\",{className:\"select--empty--left-side\"},\" \",e(\"span\",{className:`${r?\"select-empty--left-side--clear\":\"select-empty--left-side--clear--inactive\"}`,onClick:I=>{d(\"\"),t(\"\"),f(!1),I.stopPropagation()}},\"x\"),e(\"span\",null,r)),e(ie,null)),i&&e(\"div\",{className:\"select--sub-buttons\",\"data-show\":i},a?.map((I,y)=>e(\"div\",{className:`option ${I===r?\"active-option\":\"\"}`,onClick:()=>{d(I),t(I),f(!1)}},I)))))}var Tt=({options:a,onChange:t})=>{let[s,o]=E([]),[i,f]=E(a),[r,d]=E(!1),c=S=>{if(s.includes(S)){let T=s.filter(x=>x.value!==S.value);o(T),f([...i,S]),t(T)}else{let T=i.filter(x=>x.value!==S.value);o([...s,S]),f(T),t([...s,S])}},v=()=>{o([]),t([]),f(a)},I=()=>{d(!r)},y=se(()=>{d(!1)});return e(\"div\",{ref:y,className:\"multi-select__wrapper\"},e(\"div\",{className:\"multi-select__field\",onClick:I},e(\"div\",{className:\"multi-select__selected-item-wrapper\"},s.map(S=>e(\"div\",{className:\"multi-select__selected-item\",key:S},e(\"div\",{className:\"multi-select__selected-item-text\"},S.label),e(\"div\",{className:\"multi-select__selected-item-btn\",role:\"button\",onClick:T=>{T.stopPropagation(),c(S)}},\"x\")))),e(\"div\",{className:\"multi-select__icons-wrapper\"},s.length?e(\"div\",{className:\"multi-select__close-icon-wrapper\",role:\"button\",onClick:S=>{S.stopPropagation(),v()}},e(\"span\",{className:\"multi-select__close-icon\"},\"x\")):null,e(\"div\",{className:\"multi-select__arrow-icon-wrapper\",role:\"button\"},e(ie,{className:\"multi-select__arrow-icon\"})))),r?e(\"div\",{className:\"multi-select__options\"},i.length?i.map(S=>e(\"div\",{key:S.value,onClick:T=>{T.stopPropagation(),c(S)},className:\"multi-select__option\"},e(\"div\",{className:\"multi-select__option-label\"},S.label))):e(\"div\",{className:\"multi-select__option--no-option\"},\"No Options!\")):null)},et=Tt;var Et=({baseUrl:a,options:t})=>fetch(`${a}lesan`,t).then(s=>s.json()),tt=({urlAddress:a})=>{let{activeTab:t,tabsData:s,actsObj:o,headers:i,history:f,setService:r,setSchema:d,setAct:c,setPostFields:v,setGetFields:I,setFormData:y,setHistory:S,setResponse:T,resetGetFields:x,resetPostFields:P,addE2eForm:G,setModal:J}=B(),[X,L]=E(!1),O=(n,g,w,b)=>{for(let C in w)w[C].type===\"enums\"?b[`${g}.${C}`]=n:O(n,`${g}.${C}`,w[C].schema,b);return b},$=Z(null),p=n=>{let{name:g,value:w,type:b,alt:C}=n.target,m;b===\"number\"?m=Number(w):C===\"array\"||C===\"boolean\"?m=JSON.parse(w):m=w,y({data:{...s[t].formData,[g]:m},index:t})},u=({key:n,field:g,isMultiEnum:w=!1,formData:b})=>g.type===\"array\"?u({key:n,formData:b,field:g.schema,isMultiEnum:!0}):g.type===\"enums\"&&w?e(et,{options:Object.keys(g.schema).map(C=>({label:C,value:g.schema[C]})),onChange:C=>{let m=C.map(F=>F.value);y({data:{...b,[`set.${n}`]:m},index:t}),localStorage.setItem(\"localTabsData\",JSON.stringify(s))}}):g.type===\"enums\"?e(re,{onClickItem:C=>{y({data:{...b,[`set.${n}`]:C},index:t}),localStorage.setItem(\"localTabsData\",JSON.stringify(s))},incomeActiveItem:b[`set.${n}`],items:Object.keys(g.schema)}):e(\"input\",{className:\"input\",placeholder:n,id:n,value:b[`set.${n}`],name:`set.${n}`,type:g.type===\"number\"?\"number\":\"string\",alt:w?\"array\":g.type,onChange:p}),N=({getField:n,keyName:g,margin:w})=>e(\"div\",{style:{marginLeft:`${w+1}px`},className:\"sidebar__section_container\",key:`${t}.${g}`},e(\"div\",{className:\"sidebar__section-heading--subfields\"},g),Object.keys(n.schema).map((b,C)=>n.schema[b].type===\"enums\"?e(\"div\",{className:\"input-cnt get-items\",key:`${t}.${b}-${C}`},e(\"label\",{htmlFor:b},g,\".\",b,\":\"),e(\"div\",{className:\"get-values\"},e(\"span\",{onClick:()=>{let m={...s[t].formData};delete m[`get.${g}.${b}`],y({data:m,index:t})}}),e(\"span\",{className:s[t].formData[`get.${g}.${b}`]===0?\"active\":\"\",onClick:()=>{y({index:t,data:{...s[t].formData,[`get.${g}.${b}`]:0}})}},\"0\"),e(\"span\",{className:s[t].formData[`get.${g}.${b}`]===1?\"active\":\"\",onClick:()=>{y({data:{...s[t].formData,[`get.${g}.${b}`]:1},index:t})}},\"1\"))):N({getField:n.schema[b],keyName:`${g}.${b}`,margin:w+1}))),l=()=>{let n=ce(s[t].formData);return{body:{method:\"POST\",headers:{\"Content-Type\":\"application/json\",...i},body:JSON.stringify({service:s[t].service,model:s[t].schema,act:s[t].act,details:n})}}},D=async n=>{n.preventDefault();let g=new Date().toLocaleDateString();L(!0),setTimeout(()=>{L(!1)},450);let w=performance.now(),b=await Et({baseUrl:a,options:l().body}),m=(performance.now()-w).toFixed(1);T({data:{...b,tookTime:m},index:t});let F=[{request:{...l().body,body:JSON.parse(l().body.body)},response:{...b,tookTime:m},id:h(),reqDate:g},...f];S(F),localStorage.setItem(\"localHistory\",JSON.stringify(F)),localStorage.setItem(\"localTabsData\",JSON.stringify(s))},U=s[t].service&&s[t].schema&&s[t].postFields&&s[t].getFields&&s[t].act,A=s[t].service,Y=s[t].service&&s[t].schema,k=()=>{let n=JSON.stringify(s[t].response);navigator.clipboard.writeText(n)},V=()=>{let n=l();n.body.body=JSON.parse(n.body.body),navigator.clipboard.writeText(JSON.stringify(n))},M=()=>{let n=l();n.body.body=JSON.parse(n.body.body);let{method:g,...w}=n.body,b={id:h(),bodyHeaders:JSON.stringify({...w},null,2),repeat:1,captures:[]};G(b),J(\"E2E TEST\")},_=(n,g)=>{if(g===\"service\"&&(r({data:n,index:t}),d({data:\"\",index:t})),g===\"method\"&&d({data:\"\",index:t}),g===\"schema\"&&d({data:n,index:t}),c({data:\"\",index:t}),x(t),P(t),g===\"action\"){let w=o[s[t].service][s[t].schema][n].validator.schema;$&&$.current&&$.current.reset(),c({data:n,index:t}),I({data:w.get.schema,index:t}),v({data:w.set.schema,index:t})}y({data:{},index:t}),localStorage.setItem(\"localTabsData\",JSON.stringify(s))};return e(q,null,e(\"div\",{className:\"sidebar\"},e(\"div\",{className:\"sidebar__sections-wrapper\"},e(\"div\",{className:\"sidebar__section sidebar__section--services\"},e(\"div\",{className:\"sidebar__section-heading\"},\"select services\"),e(re,{onClickItem:n=>_(n,\"service\"),items:Object.keys(o),incomeActiveItem:s[t].service?s[t].service:null})),e(\"div\",{className:\"sidebar__section sidebar__section--schema\"},e(\"div\",{onClick:()=>{},className:\"sidebar__section-heading\"},\"select schema\"),e(re,{canShow:!A,onClickItem:n=>_(n,\"schema\"),items:A?Object.keys(o[s[t].service]):[],incomeActiveItem:s[t].schema?s[t].schema:null})),e(\"div\",{className:\"sidebar__section sidebar__section--act\"},e(\"div\",{className:\"sidebar__section-heading\"},\"select action\"),e(re,{canShow:!Y,onClickItem:n=>_(n,\"action\"),items:Y?Object.keys(o[s[t].service][s[t].schema]):[],incomeActiveItem:s[t].act?s[t].act:null})))),U&&e(\"div\",{className:\"sidebar sidebar--fields\"},e(\"form\",{ref:$,onSubmit:D,className:\"form--fields\"},e(\"div\",{className:\"sidebar__section-heading sidebar__section-heading--fields\"},\"SET fields\"),Object.keys(s[t].postFields).map(n=>e(\"div\",{className:\"input-cnt\",key:`${t}.${n}-----`},e(\"label\",{htmlFor:n},n,\" :\"),u({key:n,field:s[t].postFields[n],formData:s[t].formData}))),e(\"div\",{className:\"sidebar__section-heading sidebar__section-heading--fields\"},\"GET fields\"),e(\"div\",{className:\"input-cnt get-items border-bottom\"},e(\"label\",null,\"All Items :\"),e(\"div\",{className:\"get-values\"},e(\"span\",{onClick:()=>{let n=O(null,\"get\",s[t].getFields,{});y({data:{...s[t].formData,...n},index:t})}}),e(\"span\",{onClick:()=>{let n=O(0,\"get\",s[t].getFields,{});y({data:{...s[t].formData,...n},index:t})}},\"0\"),e(\"span\",{onClick:()=>{let n=O(1,\"get\",s[t].getFields,{});y({data:{...s[t].formData,...n},index:t})}},\"1\"))),Object.keys(s[t].getFields).map(n=>s[t].getFields[n].type===\"enums\"?e(\"div\",{className:\"input-cnt get-items\",key:`${t}.${n}-------`},e(\"label\",{htmlFor:n},n,\":\"),e(\"div\",{className:\"get-values\"},e(\"span\",{onClick:()=>{y({data:{...s[t].formData,[`get.${n}`]:null},index:t})}}),e(\"span\",{className:s[t].formData[`get.${n}`]===0?\"active\":\"\",onClick:()=>{y({data:{...s[t].formData,[`get.${n}`]:0},index:t})}},\"0\"),e(\"span\",{className:s[t].formData[`get.${n}`]===1?\"active\":\"\",onClick:()=>{y({data:{...s[t].formData,[`get.${n}`]:1},index:t})}},\"1\"))):N({getField:s[t].getFields[n],keyName:n,margin:0})),e(\"div\",{class:\"wrapper\"},e(\"button\",{class:\"send-button\",\"data-active\":X},e(\"span\",null,\"Send\"),e(\"div\",{class:\"successe\"},e(Oe,null)))))),e(\"div\",{className:\"response\"},s[t].response&&e(\"div\",{class:\"response-detail\"},e(\"div\",{className:\"response-detail-button_title\"},e(\"p\",{className:\"response-detail-title\"},\"Response\"),e(\"div\",{className:\"response-detail-buttons\"},e(\"div\",{className:\"btn response-detail-button \",onClick:()=>V()},e(pe,null),e(\"span\",{className:\"tooltip-text\"},\"Copy Request\")),e(\"div\",{className:\"btn response-detail-button \",onClick:()=>{k()}},e(pe,null),e(\"span\",{className:\"tooltip-text\"},\"Copy Response\")),e(\"div\",{className:\"btn response-detail-button \",onClick:()=>{M()}},e(Fe,null),e(\"span\",{className:\"tooltip-text\"},\"Run E2E Test\")))),e(\"div\",{className:\"response-detail-info\"},e(\"div\",{style:{display:\"flex\",flexDirection:\"column\"}},\" \",e(H,{jsonData:{body:s[t].response?.body,success:s[t].response?.success}})),e(\"span\",{className:\"response-took\"},\"took:\",de(s[t].response?.tookTime)),s[t].response&&s[t].response?.success===!0?e(\"div\",{className:\"success\"}):e(\"div\",{className:\"fail\"})))))};var wt=()=>e(\"svg\",{width:\"15px\",height:\"15px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M20.04 10.1109L18.0252 8.09612L21.7071 4.41421C22.0976 4.02369 22.0976 3.39052 21.7071 3L21 2.29289C20.6095 1.90237 19.9763 1.90237 19.5858 2.29289L15.9039 5.9748L14.04 4.11089C13.754 3.82489 13.3239 3.73933 12.9502 3.89411C12.5765 4.04889 12.3329 4.41353 12.3329 4.81799V10.818C12.3329 11.3703 12.7806 11.818 13.3329 11.818H19.3329C19.7373 11.818 20.102 11.5744 20.2568 11.2007C20.4115 10.827 20.326 10.3969 20.04 10.1109Z\",fill:\"bisque\"}),e(\"path\",{d:\"M3.96 13.8891L5.97478 15.9039L2.29289 19.5858C1.90237 19.9763 1.90237 20.6095 2.29289 21L3 21.7071C3.39052 22.0976 4.02369 22.0976 4.41421 21.7071L8.0961 18.0252L9.96 19.8891C10.246 20.1751 10.6761 20.2607 11.0498 20.1059C11.4235 19.9511 11.6671 19.5865 11.6671 19.182V13.182C11.6671 12.6297 11.2194 12.182 10.6671 12.182H4.66711C4.26265 12.182 3.89801 12.4256 3.74323 12.7993C3.58845 13.173 3.674 13.6031 3.96 13.8891Z\",fill:\"bisque\"})),st=wt;var _t=()=>e(\"svg\",{width:\"15px\",height:\"15px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M7.69233 18.2781L9.70711 20.2929C9.9931 20.5789 10.0787 21.009 9.92388 21.3827C9.7691 21.7564 9.40446 22 9 22H3C2.44772 22 2 21.5523 2 21V15C2 14.5955 2.24364 14.2309 2.61732 14.0761C2.99099 13.9213 3.42111 14.0069 3.70711 14.2929L5.571 16.1568L9.25289 12.4749C9.64342 12.0844 10.2766 12.0844 10.6671 12.4749L11.3742 13.182C11.7647 13.5725 11.7647 14.2057 11.3742 14.5962L7.69233 18.2781Z\",fill:\"bisque\"}),e(\"path\",{d:\"M16.3077 5.72187L14.2929 3.70711C14.0069 3.42111 13.9213 2.99099 14.0761 2.61732C14.2309 2.24364 14.5955 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.40446 21.7564 9.7691 21.3827 9.92388C21.009 10.0787 20.5789 9.9931 20.2929 9.70711L18.429 7.84319L14.7471 11.5251C14.3566 11.9156 13.7234 11.9156 13.3329 11.5251L12.6258 10.818C12.2352 10.4275 12.2352 9.7943 12.6258 9.40378L16.3077 5.72187Z\",fill:\"bisque\"})),at=_t;function qe(){return e(\"svg\",{width:25,height:25,fill:\"#000000\",viewBox:\"0 0 24 24\",id:\"up-direction\",\"data-name\":\"Line Color\",xmlns:\"http://www.w3.org/2000/svg\",class:\"icon line-color\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},e(\"path\",{id:\"secondary\",d:\"M10,9.66V20a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1V9.66\",style:\"fill: none; stroke: darkred; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;\"}),e(\"path\",{id:\"primary\",d:\"M14,9.66l3.4,2.92,2.6-3-7.35-6.3a1,1,0,0,0-1.3,0L4,9.54l2.6,3L10,9.66\",style:\"fill: none; stroke: darkred; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;\"})))}var kt=a=>{let[t,s]=E(\"myBtn none\"),[o,i]=E(!1),f=Z(null),r=()=>{f.current.scroll,document.getElementById(\"modal\")?.scroll({top:0,behavior:\"smooth\"})},d=c=>{c.currentTarget.scrollTop>20?s(\"myBtn\"):s(\"none\")};return e(\"div\",{className:\"modal-overlay\",onClick:a.toggle},e(\"div\",{className:o?\"modal-box-fullscreen\":\"modal-box\",onClick:c=>c.stopPropagation()},e(\"div\",{className:\"action-modal\"},e(\"span\",{className:\"modal-close\",onClick:a.toggle},e(K,null)),e(\"span\",{className:\"modal-fullscreen\",onClick:()=>i(!o)},o?e(st,null):e(at,null)),e(\"span\",{className:\"modal-title\"},a.title)),e(\"div\",{className:\"modal-content\",id:\"modal\",ref:f,onScroll:d},a.children,e(\"div\",{className:t},e(\"button\",{className:\"myBtn-active tooltip\",onClick:()=>r()},e(qe,null),e(\"span\",{className:\"tooltip-text\"},\"Go To Top\"))))))},nt=kt;var ot=()=>{let{schemasObj:a}=B(),[t,s]=E({});j(()=>{let d={};for(let c in a){d[c]={...d[c],pure:a[c].pure};for(let v in a[c].mainRelations)d[c]={...d[c],mainRelations:{...d[c].mainRelations,[v]:{type:\"relation\",extraDetails:a[c].mainRelations[v],schema:{...a[a[c].mainRelations[v].schemaName].pure}}}};for(let v in a[c].relatedRelations)d[c]={...d[c],relatedRelations:{...d[c].relatedRelations,[v]:{type:\"relation\",extraDetails:a[c].relatedRelations[v],schema:{...a[a[c].relatedRelations[v].schemaName].pure}}}}}s(d)},[]);let o=()=>{let d=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(a))}`,c=document.createElement(\"a\");c.href=d,c.download=\"schemas.json\",c.click()},i=[\"color-1\",\"color-2\",\"color-3\",\"color-4\",\"color-5\",\"color-6\",\"color-7\"],f=d=>Object.keys(d).map(c=>{let v=h();return e(\"div\",{className:\"schema\"},e(\"div\",{className:\"schema-name\",onClick:()=>{document.getElementById(v)?.classList.toggle(\"open\")}},e(\"p\",{className:\"schema-title\"},c),e(\"span\",null,\"...\")),e(\"div\",{className:\"proceed-child-container\",id:v},r(d[c])))}),r=d=>Object.keys(d).map(c=>{let v=h();return e(\"div\",{className:`inside-schema ${i[Math.floor(Math.random()*i.length)]}`},e(\"div\",{className:`inside ${typeof d[c]==\"object\"&&d[c].schema!==null&&\"schema-pointer\"}`,onClick:()=>{document.getElementById(v)?.classList.toggle(\"open\")}},e(\"p\",{className:\"schema-title\"},c),e(\"div\",{className:\"schema-info\"},\" \",e(\"p\",{className:\"schema-title schema-type\"},\" \",d[c].type),e(\"div\",{className:\"schema-help\"},d[c].extraDetails&&e(ne,null),d[c].extraDetails&&e(\"div\",{className:\" tooltip-text\"},e(H,{jsonData:d[c].extraDetails}))),typeof d[c]==\"object\"&&d[c].schema!==null&&e(\"span\",null,\"...\"))),e(\"div\",{id:v,className:\"proceed-child\"},typeof d[c]==\"object\"&&d[c]!==null&&d[c].schema!==null&&r(d[c].pure?d[c].pure:d[c].relatedRelations?d[c].relatedRelations:d[c].mainRelation?d[c].mainRelation:d[c].type===\"relation\"?d[c].schema:d[c])))});return e(\"div\",{className:\"schema-modal\"},e(\"div\",{className:\"results-buttons\"},e(\"button\",{className:\" schema-export-button btn e2e-back-button e2e-export_results-button\",onClick:o},e(W,null),e(\"span\",null,\"Export\"))),e(\"div\",{className:\"schema-list\"},f(t)))};function me(){return e(\"svg\",{width:25,height:25,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M7.75 11.9999L10.58 14.8299L16.25 9.16992\",stroke:\"lightcoral\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \",e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function it({configUrl:a}){let[t,s]=E(\"no\"),o=()=>{setTimeout(()=>{s(\"no\")},1e3)},i=y=>{d[y],d.splice(y,1),c([...d])},{headers:f,setHeader:r}=B(),[d,c]=E([{key:\"\",value:\"\"}]),[v,I]=E(\"\");return j(()=>{let y=[];for(let S in f)y.push({key:S,value:f[S]});c(y)},[]),e(\"div\",{className:\"setting modal-content\"},e(\"div\",{className:\"url\"},e(\"p\",{className:\"url-title\"},\"Fetch Config\"),e(\"div\",{className:\"url-detail\"},\" \",e(\"input\",{className:\"input url-input \",placeholder:\"Set URL\",onChange:y=>I(y.target.value)}),e(\"button\",{className:\"setting_fetch-config--apply-button e2e-back-button e2e-add-capture \",onClick:()=>{a(v),s(\"yes\"),o()}},e(me,null),e(\"span\",null,t===\"yes\"?\"Applyed!\":\"Apply\")))),e(\"div\",{className:\"sidebar__section sidebar__section--headers\"},e(\"div\",{className:\"sidebar__section-heading setting_heading\"},\" \",e(\"span\",{className:\"setting_heading--title\"},\"Set Headers\"),e(\"button\",{className:\"setting_add-header--button e2e-back-button e2e-export_results-button e2e-add-capture \",onClick:()=>{c([...d,{key:\"\",value:\"\"}])}},e(te,null),e(\"span\",null,\"Add Header\"))),e(\"div\",{className:\"setting_container--setheaders\"},e(\"div\",{className:\"setting_set-headers\"},d?.map((y,S)=>e(\"div\",{key:`${S}____`,className:\"setting_set-headers--inputs\"},e(\"div\",{className:\"setting__set-headers--key-value setting__set-headers--key\"},e(\"span\",null,\"Key:\"),e(\"input\",{className:\"setting_set-headers--inputs--key input\",placeholder:\"Authotization\",value:y.key,onChange:T=>{c(x=>(x[S].key=T.target.value,x))}})),e(\"div\",{className:\"setting__set-headers--key-value setting__set-headers--value\"},e(\"span\",null,\"Value:\"),e(\"input\",{className:\"setting_set-headers--inputs--value input\",placeholder:\"some string ...\",value:y.value,onChange:T=>{c(x=>(x[S].value=T.target.value,x))}})),d.length>1&&e(\"div\",{className:\"setting_set-headers--delete-button e2e-move-div e2e-move-close\",onClick:()=>i(S)},e(K,null))))),e(\"button\",{className:\"setting_set-headers--apply-button e2e-back-button e2e-add-capture \",onClick:()=>{let y={};for(let S of d){let{key:T,value:x}=S;y[T]=x}r(y),s(\"yess\"),o()}},e(me,null),e(\"span\",null,t===\"yess\"?\"Applyed!\":\"Apply\")))))}var xt=({baseUrl:a})=>fetch(`${a}playground/static/get/schemas`).then(t=>t.json()),rt=()=>{let{tabsData:a,setTabsData:t,activeTab:s,actsObj:o,addTab:i,setActiveTab:f,setService:r,setSchema:d,setAct:c,setPostFields:v,setGetFields:I,setFormData:y,setHistory:S,setResponse:T,resetGetFields:x,closeTab:P,resetPostFields:G,setSchemasObj:J,setActsObj:X,setModal:L,modal:O}=B(),[$,p]=E(\"\"),[u,N]=E(!1),l=()=>window&&window.location?`${new URL(window.location.href).origin}/`:\"http://localhost:1366/\",[D,U]=E(\"\"),Y=se(()=>{N(!1)});j(()=>{k(l());let _=JSON.parse(localStorage.getItem(\"localHistory\"));_&&S(_)},[]);let k=_=>{_&&U(_),r({data:\"\",index:s}),d({data:\"\",index:s}),x(s),G(s),y({data:{},index:s}),xt({baseUrl:_||D}).then(({schemas:n,acts:g})=>{X(g),J(n);let w=localStorage.getItem(\"localTabsData\");if(w){w=JSON.parse(w);let b=[],C=m=>{b.pop();let F=ce(m.formData);for(let z in F.set)g[m.service][m.schema][m.act].validator.schema.set.schema[z]===void 0&&delete F.set[z];for(let z in F.get)g[m.service][m.schema][m.act].validator.schema.get.schema[z]===void 0&&delete F.get[z];let Q=le(F,{},\"\");m.postFields=g[m.service][m.schema][m.act].validator.schema.set.schema,m.getFields=g[m.service][m.schema][m.act].validator.schema.get.schema,b.push({...m,formData:Q})};for(let m of w)m.service&&m.service in g&&b.push(m),m.schema&&!(m.schema in g[m.service])&&b.pop(),m.act&&!(m.act in g[m.service][m.schema])&&b.pop(),m.service&&m.schema&&m.act&&m.act in g[m.service][m.schema]&&C(m);b.length<1&&b.push({service:\"\",schema:\"\",act:\"\",postFields:{},getFields:{},formData:{},response:null}),t(b)}})},V=()=>{L(null)},M=_=>{r({data:_.body.service,index:s}),d({data:_.body.model,index:s}),c({data:_.body.act,index:s});let n=o[_.body.service][_.body.model][_.body.act].validator.schema;I({data:n.get.schema,index:s}),v({data:n.set.schema,index:s}),T({data:null,index:s});let g=le(_.body.details,{},\"\");y({data:g,index:s}),V()};return e(\"div\",{className:\"cnt\"},e(\"div\",{className:\"tabs-container\",style:{display:\"flex\"}},a.map((_,n)=>e(q,null,e(\"div\",{className:\"tab-name\",\"data-tab\":s===n,onClick:()=>{f(n)}},\" \",e(\"span\",{title:a[n].act?`${a[n].schema} | ${a[n].act}`:a[n].schema?`${a[n].service} | ${a[n].schema}`:a[n].service?a[n].service:`Tab ${n}`},\" \",a[n].act?`${a[n].schema} | ${a[n].act}`:a[n].schema?`${a[n].service} | ${a[n].schema}`:a[n].service?a[n].service:`Tab ${n}`),e(\"span\",{className:` tab-close ${s===n?\"active-tab-close\":\"\"}`,onClick:g=>{g.stopPropagation(),P(n)},title:\"Close tab\"},\"x\")))),e(\"span\",{className:\"add-tab\",title:\"Open a new tab\",onClick:()=>{i(null),localStorage.setItem(\"localTabsData\",JSON.stringify(a))}},\"+\")),e(tt,{urlAddress:D}),e(\"button\",{ref:Y,className:\"media--main-btn-wrapper \",onClick:()=>{N(!u)}},\"menu\"),e(\"div\",{className:\"main-btn-wrapper\",\"data-show\":u===!0},e(\"span\",{className:\"btn btn-modal \",onClick:()=>k()},e(\"span\",{className:\"btn-modal-title\"},\"Refetch\"),e(Me,null)),e(\"span\",{className:\"btn btn-modal \",onClick:()=>L(\"SETTING\")},e(\"span\",{className:\"btn-modal-title\"},\"Setting\"),e(De,null)),e(\"span\",{className:\"btn btn-modal\",onClick:()=>L(\"HISTORY\")},e(\"span\",{className:\"btn-modal-title\"},\"History\"),e(Re,null)),e(\"span\",{className:\"btn btn-modal\",onClick:()=>L(\"E2E TEST\")},e(\"span\",{className:\"btn-modal-title\"},\"E2E Test\"),e(Le,null)),e(\"span\",{className:\" btn-modal-document\",\"data-show\":$===\"document\"},e(\"span\",{className:\"btn-modal-document--title\",\"data-show\":$===\"document\"},\"Document\")),e(\"span\",{className:\"btn btn-modal btn-doc\",onClick:()=>L(\"SCHEMA\"),onMouseEnter:()=>p(\"document\"),onMouseLeave:()=>p(\"\")},e(\"span\",{className:\"btn-modal-title\"},\"Schema\"),e(Ie,null)),e(\"span\",{className:\"btn btn-modal btn-doc \",onClick:()=>L(\"ACT\"),onMouseEnter:()=>p(\"document\"),onMouseLeave:()=>p(\"\")},e(\"span\",{className:\"btn-modal-title\"},\"Act\"),e(xe,null))),O!==null&&e(nt,{toggle:V,title:O},O===\"HISTORY\"?e(Qe,{setFormFromHistory:M}):O===\"SETTING\"?e(it,{configUrl:k}):O===\"E2E TEST\"?e(Ke,{baseUrl:D}):O===\"SCHEMA\"?e(ot,null):O===\"ACT\"?e(Pe,null):e(q,null)))};Ae(e(Ge,null,e(rt,null)),document.getElementById(\"root\"));\n//# sourceMappingURL=bundle-es.js.map\n"; + export const bundleTs = "import{createContext as He,Fragment as H,h as e,hydrate as Ae}from\"https://esm.sh/preact@10.5.15\";import{useCallback as D,useContext as Ve,useEffect as h,useMemo as je,useReducer as he,useRef as J,useState as N}from\"https://esm.sh/preact@10.5.15/hooks\";var A=()=>Date.now().toString(36)+Math.random().toString(36).substr(2);var ct={tabsData:[{service:\"\",schema:\"\",act:\"\",postFields:{},getFields:{},formData:{},response:null}],activeTab:0,setActiveTab:()=>({}),addTab:()=>({}),closeTab:()=>({}),setTabsData:()=>({})},lt={schemasObj:{},actsObj:{},setService:()=>({}),setMethod:()=>({}),setSchema:()=>({}),setAct:()=>({}),setActsObj:()=>({}),setSchemasObj:()=>({}),setPostFields:()=>({}),resetPostFields:()=>({}),setGetFields:()=>({}),resetGetFields:()=>({}),setFormData:()=>({}),setResponse:()=>({})},dt={history:[],deleteItemHistory:()=>({}),setHistory:()=>({})},pt={headers:{Authorization:\"\"},setHeader:()=>({})},me=()=>({id:A(),bodyHeaders:`\n{\n \"headers\": {\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"\"\n },\n \"body\": {\n \"service\": \"main\",\n \"contents\": \"dynamic\",\n \"model\": \"\",\n \"act\": \"\",\n \"details\": {\n \"get\": {\n },\n \"set\": {\n }\n }\n}\n}\n `,repeat:1,captures:[]}),mt={e2eForms:[me()],setE2eForms:()=>({}),addE2eForm:()=>({})},ut={modal:null,setModal:()=>({})},ue={...ct,...lt,...dt,...pt,...mt,...ut};function Be(a,t){let{type:s,payload:n}=t;switch(s){case\"SET_SELECTED_SERVICE\":{let o=[...a.tabsData];return o[n.index]={...o[n.index],service:n.data},{...a,tabsData:[...o]}}case\"SET_SCHEMA\":{let o=[...a.tabsData];return o[n.index]={...o[n.index],schema:n.data},{...a,tabsData:[...o]}}case\"SET_ACT\":{let o=[...a.tabsData];return o[n.index]={...o[n.index],act:n.data},{...a,tabsData:[...o]}}case\"SET_POST_FIELDS\":{let o=[...a.tabsData];return o[n.index]={...o[n.index],postFields:n.data},{...a,tabsData:[...o]}}case\"RESET_POST_FIELDS\":{let o=[...a.tabsData];return o[n]={...o[n],postFields:{}},{...a,tabsData:[...o]}}case\"SET_GET_FIELDS\":{let o=[...a.tabsData];return o[n.index]={...o[n.index],getFields:n.data},{...a,tabsData:[...o]}}case\"RESET_GET_FIELDS\":{let o=[...a.tabsData];return o[n]={...o[n],getFields:{}},{...a,tabsData:[...o]}}case\"SET_FORM_DATA\":{let o=[...a.tabsData];return o[n.index]={...o[n.index],formData:n.data},{...a,tabsData:[...o]}}case\"SET_HEADER\":return{...a,headers:n};case\"ADD_HISTORY\":return{...a,history:n};case\"SET_TABS_DATA\":return{...a,tabsData:n};case\"SET_RESPONSE\":{let o=[...a.tabsData];return o[n.index]={...o[n.index],response:n.data},{...a,tabsData:[...o]}}case\"ADD_TAB\":return{...a,tabsData:[...a.tabsData,{service:\"\",schema:\"\",act:\"\",postFields:{},getFields:{},formData:{},response:null}],activeTab:a.tabsData.length};case\"SET_ACTIVE_TAB\":return{...a,activeTab:n};case\"CLOSE_TAB\":{let o=[...a.tabsData];return o.length>1&&o.splice(n,1),{...a,tabsData:[...o],activeTab:o.length>=1&&a.activeTab>=n&&a.activeTab!==0?a.activeTab-1:a.activeTab}}case\"DELETE_ITEM_HISTORY\":return{...a,history:a.history.slice(0,n).concat(a.history.slice(n+1))};case\"SET_ACTS_OBJ\":return{...a,actsObj:n};case\"SET_SCHEMAS_OBJ\":return{...a,schemasObj:n};case\"SET_E2E_FORMS\":return{...a,e2eForms:n};case\"ADD_E2E_FORM\":return{...a,e2eForms:[...a.e2eForms,n]};case\"OPEN_MODAL\":return{...a,modal:n};default:throw new Error(\"Unhandled action type\")}}var ve=He(ue),$e=a=>{let[t,s]=he(Be,ue),n=D(c=>s({type:\"SET_SELECTED_SERVICE\",payload:c}),[s]),o=D(c=>s({type:\"SET_SCHEMA\",payload:c}),[s]),f=D(c=>s({type:\"SET_ACT\",payload:c}),[s]),i=D(c=>s({type:\"SET_POST_FIELDS\",payload:c}),[s]),p=D(c=>s({type:\"RESET_POST_FIELDS\",payload:c}),[s]),l=D(c=>s({type:\"SET_GET_FIELDS\",payload:c}),[s]),g=D(c=>s({type:\"RESET_GET_FIELDS\",payload:c}),[s]),F=D(c=>s({type:\"SET_FORM_DATA\",payload:c}),[s]),b=D(c=>s({type:\"SET_ACTIVE_TAB\",payload:c}),[s]),S=D(c=>s({type:\"ADD_TAB\",payload:c}),[s]),C=D(c=>s({type:\"CLOSE_TAB\",payload:c}),[s]),I=D(c=>s({type:\"DELETE_ITEM_HISTORY\",payload:c}),[s]),Z=D(c=>s({type:\"SET_HEADER\",payload:c}),[s]),G=D(c=>s({type:\"ADD_HISTORY\",payload:c}),[s]),W=D(c=>s({type:\"SET_TABS_DATA\",payload:c}),[s]),Q=D(c=>s({type:\"SET_RESPONSE\",payload:c}),[s]),O=D(c=>s({type:\"SET_SCHEMAS_OBJ\",payload:c}),[s]),q=D(c=>s({type:\"SET_ACTS_OBJ\",payload:c}),[s]),$=D(c=>s({type:\"SET_E2E_FORMS\",payload:c}),[s]),u=D(c=>s({type:\"ADD_E2E_FORM\",payload:c}),[s]),m=D(c=>s({type:\"OPEN_MODAL\",payload:c}),[s]),T=je(()=>({...t,setService:n,setSchema:o,setAct:f,setPostFields:i,resetPostFields:p,setGetFields:l,resetGetFields:g,setFormData:F,setHeader:Z,setHistory:G,setTabsData:W,setResponse:Q,setActsObj:q,setSchemasObj:O,setActiveTab:b,addTab:S,closeTab:C,deleteItemHistory:I,setE2eForms:$,addE2eForm:u,setModal:m}),[t]);return e(ve.Provider,{value:T,...a})};var B=()=>{let a=Ve(ve);return a},Ge=a=>{let{children:t}=a;return e($e,null,t)};var ce=a=>{let t={get:{},set:{}};for(let s in a)if(a[s]||a[s]===0||a[s]===!1){let n=s.split(\".\"),o=t;for(;n.length>1;){let f=n.shift();o[f]=o[f]||{},o=o[f]}o[n[0]]=a[s]}return t};var le=(a,t,s)=>{for(let n in a)typeof a[n]==\"object\"?le(a[n],t,s?`${s}.${n}`:n):t[`${s}.${n}`]=a[n];return t};function X(){return e(\"svg\",{width:\"25px\",height:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M11.2501 7.06066L8.03039 10.2803L6.96973 9.21967L12.0001 4.18934L17.0304 9.21967L15.9697 10.2803L12.7501 7.06066L12.7501 16.5L11.2501 16.5L11.2501 7.06066Z\",fill:\"lightcoral\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function Pe(){let{actsObj:a}=B(),t=()=>{let f=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(a))}`,i=document.createElement(\"a\");i.href=f,i.download=\"acts.json\",i.click()},s=[\"color-1\",\"color-2\",\"color-3\",\"color-4\",\"color-5\",\"color-6\",\"color-7\"],n=f=>Object.keys(f).map((i,p)=>{let l=A();return e(\"div\",{className:\"schema\"},e(\"div\",{className:\"schema-name\",onClick:()=>{document.getElementById(l)?.classList.toggle(\"open\")}},e(\"p\",{className:\"schema-title\"},i),e(\"span\",null,\"...\")),e(\"div\",{className:\"proceed-child-container\",id:l},o(a[i])))}),o=f=>Object.keys(f).map((i,p)=>{let l=A();if(f[i]||f[i]===0)return e(\"div\",{className:`inside-schema ${s[Math.floor(Math.random()*s.length)]}`},e(\"div\",{className:`inside ${typeof f[i]==\"object\"&&f[i].schema!==null&&\"schema-pointer\"}`,onClick:()=>{document.getElementById(l)?.classList.toggle(\"open\")}},e(\"p\",{className:\"schema-title\"},i),f[i].type&&e(\"p\",{className:\"schema-title schema-type\"},f[i].type),e(\"div\",null,\" \",typeof f[i]==\"object\"&&f[i].schema!==null&&e(\"span\",null,\"...\"))),e(\"div\",{id:l,className:\"proceed-child\"},typeof f[i]==\"object\"&&f[i]!==null&&f[i].schema!==null&&o(f[i].validator?f[i].validator.schema:f[i].schema?f[i].schema:f[i])))});return e(\"div\",{className:\"schema-modal\"},\" \",e(\"div\",{className:\"results-buttons\"},e(\"button\",{className:\" schema-export-button btn e2e-back-button e2e-export_results-button\",onClick:t},e(X,null),e(\"span\",null,\"Export\"))),e(\"div\",{className:\"schema-list\"},n(a)))}import{faker as St}from\"https://cdn.skypack.dev/@faker-js/faker\";function te(){return e(\"svg\",{width:\"25px\",height:\"28px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M11 8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H13V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V13H8C7.44771 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11H11V8Z\",fill:\"lightcoral\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}))}function fe(){return e(\"svg\",{width:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M9.00002 15.3802H13.92C15.62 15.3802 17 14.0002 17 12.3002C17 10.6002 15.62 9.22021 13.92 9.22021H7.15002\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-miterlimit\":\"10\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{d:\"M8.57 10.7701L7 9.19012L8.57 7.62012\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}var ft=()=>e(\"svg\",{width:\"25px\",viewBox:\"-0.5 0 25 25\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z\",stroke:\"bisque\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{id:\"Vector\",d:\"M16 16L12 12M12 12L8 8M12 12L16 8M12 12L8 16\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"})),Y=ft;function ge(){return e(\"svg\",{width:\"25px\",viewBox:\"-0.5 0 25 25\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z\",stroke:\"bisque\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{d:\"M16 10.99L13.13 14.05C12.9858 14.2058 12.811 14.3298 12.6166 14.4148C12.4221 14.4998 12.2122 14.5437 12 14.5437C11.7878 14.5437 11.5779 14.4998 11.3834 14.4148C11.189 14.3298 11.0142 14.2058 10.87 14.05L8 10.99\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}))}function ae(){return e(\"svg\",{width:\"25px\",height:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M12 17V16.9929M12 14.8571C12 11.6429 15 12.3571 15 9.85714C15 8.27919 13.6568 7 12 7C10.6567 7 9.51961 7.84083 9.13733 9\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function be(){return e(\"svg\",{width:\"25px\",height:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M12.75 13.9393L15.9697 10.7197L17.0303 11.7803L12 16.8107L6.96967 11.7803L8.03033 10.7197L11.25 13.9393L11.25 4.5L12.75 4.5L12.75 13.9393Z\",fill:\"lightcoral\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function ye(){return e(\"svg\",{width:\"25px\",height:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M13.8876 9.9348C14.9625 10.8117 15.5 11.2501 15.5 12C15.5 12.7499 14.9625 13.1883 13.8876 14.0652C13.5909 14.3073 13.2966 14.5352 13.0261 14.7251C12.7888 14.8917 12.5201 15.064 12.2419 15.2332C11.1695 15.8853 10.6333 16.2114 10.1524 15.8504C9.6715 15.4894 9.62779 14.7336 9.54038 13.2222C9.51566 12.7947 9.5 12.3757 9.5 12C9.5 11.6243 9.51566 11.2053 9.54038 10.7778C9.62779 9.26636 9.6715 8.51061 10.1524 8.1496C10.6333 7.78859 11.1695 8.11466 12.2419 8.76679C12.5201 8.93597 12.7888 9.10831 13.0261 9.27492C13.2966 9.46483 13.5909 9.69274 13.8876 9.9348Z\",stroke:\"lightcoral\",\"stroke-width\":\"2\"}),e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function Ce(){return e(\"svg\",{width:\"25px\",viewBox:\"-0.5 0 25 25\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M12 22.4199C17.5228 22.4199 22 17.9428 22 12.4199C22 6.89707 17.5228 2.41992 12 2.41992C6.47715 2.41992 2 6.89707 2 12.4199C2 17.9428 6.47715 22.4199 12 22.4199Z\",stroke:\"bisque\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"path\",{d:\"M8 13.8599L10.87 10.8C11.0125 10.6416 11.1868 10.5149 11.3815 10.4282C11.5761 10.3415 11.7869 10.2966 12 10.2966C12.2131 10.2966 12.4239 10.3415 12.6185 10.4282C12.8132 10.5149 12.9875 10.6416 13.13 10.8L16 13.8599\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}))}var ze={fontFamily:'-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial',display:\"inline-block\",borderRadius:3,padding:\"10px 10px\",color:\"#f8f8f2\",textShadow:\"1px 1px black\",whiteSpace:\"pre-wrap\"};var bt=/(\"(\\\\u[a-zA-Z0-9]{4}|\\\\[^u]|[^\\\\\"])*\"(\\s*:)?|\\b(true|false|null)\\b|-?\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d+)?)/g,yt=a=>JSON.stringify(a,Ct,2).replace(/&/g,\"&\").replace(//g,\">\").replace(bt,s=>{let n=\"cute-number\",o=s;return/^\"/.test(s)?/:$/.test(s)?(n=\"cute-key\",o=o.replace(\":\",':')):s==='\"undefined\"'?n=\"cute-undefined\":s==='\"[Function]\"'?n=\"cute-function\":n=\"cute-string\":/true|false/.test(s)?n=\"cute-boolean\":/null/.test(s)&&(n=\"cute-null\"),`${o}`}),Ct=(a,t)=>typeof t==\"function\"?\"[Function]\":typeof t>\"u\"?\"undefined\":t,Ze=a=>yt(a).replace(/\"/g,\"\");var j=({jsonData:a})=>{let t=Ze(a);return e(H,null,e(\"pre\",{style:ze,dangerouslySetInnerHTML:{__html:t}}))};function Se(){return e(\"svg\",{width:\"20px\",height:\"20px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M18 17L13 12L18 7M11 17L6 12L11 7\",stroke:\"#000000\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function Te(){return e(\"svg\",{width:\"20px\",height:\"20px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M15 6L9 12L15 18\",stroke:\"#000000\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function Ne(){return e(\"svg\",{width:\"20px\",height:\"20px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M6 17L11 12L6 7M13 17L18 12L13 7\",stroke:\"#000000\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function Ee(){return e(\"svg\",{width:\"20px\",height:\"20px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M9 6L15 12L9 18\",stroke:\"#000000\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function Je({pageCountNumber:a,activePage:t,setActivePage:s}){let[n,o]=N([]),[f,i]=N(1),p=C=>{i(C.target.value),s(C.target.value-1)},l=()=>{s(f-1)},g=a,F=D(()=>{let C=0,I=g>5?5:g;t>3&&t5&&t>g-5&&(C=g-5,I=g-1),g<=5&&(C=0,I=g);let Z=[];for(let G=C;Gs(C),S=C=>t===C?\"active\":\"\";return h(()=>F(),[t]),e(\"div\",{className:\"pagination\"},g>1&&e(\"button\",{onClick:()=>{s(0)}},\" \",e(Se,null)),g>1&&e(\"button\",{onClick:()=>{s(t===0?g-1:t-1)}},e(Te,null)),(t>=4||t>g-5)&&g>5&&e(\"button\",{onClick:()=>b(0)},1),(t>=4||t>g-5)&&g>5&&e(\"span\",null,\"...\"),n.map(C=>e(\"button\",{key:C,className:S(C),onClick:()=>b(C)},C+1)),t5&&e(\"span\",null,\"...\"),g>5&&e(\"button\",{className:S(g-1),onClick:()=>b(g-1)},g),g>1&&e(\"button\",{onClick:()=>s(t===g-1?0:t+1)},e(Ee,null)),g>1&&e(\"button\",{onClick:()=>{s(g-1)}},\" \",e(Ne,null),\" \"),g>1&&e(\"div\",{className:\"pagination--go-to\"},\" \",e(\"input\",{className:\"pagination--go-to--input\",min:1,max:g,for:\"1\",type:\"number\",onChange:p,placeholder:\"number\",value:t+1}),e(\"button\",{className:\"pagination--go-to--button\",id:\"1\",onClick:()=>{l()}},\"Go\")))}function we(){return e(\"svg\",{fill:\"#fff\",height:\"20px\",width:\"20px\",version:\"1.1\",id:\"Capa_1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 452.025 452.025\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"g\",null,\" \",e(\"g\",null,\" \",e(\"path\",{d:\"M147.912,363.325c-4.7-4.7-12.3-4.7-17,0c-4.7,4.7-4.7,12.3,0,17l13.6,13.6h-55.2c-35.9,0-65-29.2-65-65v-40.3 c0-6.6-5.4-12-12-12s-12,5.4-12,12v40.3c0,49.1,39.9,89,89,89h55.2l-13.6,13.6c-4.7,4.7-4.7,12.3,0,17c2.3,2.3,5.4,3.5,8.5,3.5 s6.1-1.2,8.5-3.5l34.1-34.1c4.7-4.7,4.7-12.3,0-17L147.912,363.325z\"}),\" \",e(\"path\",{d:\"M210.312,0.025h-197.1c-6.6,0-12,5.4-12,12v197.1c0,6.6,5.4,12,12,12h197.1c6.6,0,12-5.4,12-12v-197.1 C222.312,5.425,217.012,0.025,210.312,0.025z M198.312,197.125h-173.1v-173.1h173.1V197.125z\"}),\" \",e(\"path\",{d:\"M362.612,34.125h-55.2l13.6-13.6c4.7-4.7,4.7-12.3,0-17s-12.3-4.7-17,0l-34,34.1c-4.7,4.7-4.7,12.3,0,17l34.1,34.1 c2.3,2.3,5.4,3.5,8.5,3.5s6.1-1.2,8.5-3.5c4.7-4.7,4.7-12.3,0-17l-13.6-13.6h55.2c35.9,0,65,29.2,65,65v40.3c0,6.6,5.4,12,12,12 s12-5.4,12-12v-40.3C451.712,74.025,411.712,34.125,362.612,34.125z\"}),\" \",e(\"path\",{d:\"M438.812,428.025c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5C445.012,429.325,441.912,428.025,438.812,428.025z\"}),\" \",e(\"path\",{d:\"M389.512,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S396.112,428.025,389.512,428.025z\"}),\" \",e(\"path\",{d:\"M290.912,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S297.612,428.025,290.912,428.025z\"}),\" \",e(\"path\",{d:\"M340.212,428.025c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S346.812,428.025,340.212,428.025z\"}),\" \",e(\"path\",{d:\"M241.713,428.025c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5c3.1,0,6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5S244.812,428.025,241.713,428.025z\"}),\" \",e(\"path\",{d:\"M241.713,378.725c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,378.725,241.713,378.725z\"}),\" \",e(\"path\",{d:\"M241.713,329.425c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,329.425,241.713,329.425z\"}),\" \",e(\"path\",{d:\"M241.713,280.125c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S248.312,280.125,241.713,280.125z\"}),\" \",e(\"path\",{d:\"M241.713,230.925c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5c3.1,0,6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5C247.912,232.125,244.812,230.925,241.713,230.925z\"}),\" \",e(\"path\",{d:\"M389.512,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S396.112,230.925,389.512,230.925z\"}),\" \",e(\"path\",{d:\"M340.212,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S346.812,230.925,340.212,230.925z\"}),\" \",e(\"path\",{d:\"M290.912,230.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S297.612,230.925,290.912,230.925z\"}),\" \",e(\"path\",{d:\"M438.812,230.925c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5C445.012,232.225,441.912,230.925,438.812,230.925z\"}),\" \",e(\"path\",{d:\"M438.812,280.125c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,280.125,438.812,280.125z\"}),\" \",e(\"path\",{d:\"M438.812,378.725c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,378.725,438.812,378.725z\"}),\" \",e(\"path\",{d:\"M438.812,329.425c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S445.412,329.425,438.812,329.425z\"}),\" \"),\" \"),\" \"))}function ne(){return e(\"svg\",{width:25,height:25,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M17 3.25C17.4142 3.25 17.75 3.58579 17.75 4V17.75L19.4 15.55C19.6485 15.2186 20.1186 15.1515 20.45 15.4C20.7814 15.6485 20.8485 16.1186 20.6 16.45L17.6 20.45C17.4063 20.7083 17.0691 20.8136 16.7628 20.7115C16.4566 20.6094 16.25 20.3228 16.25 20V4C16.25 3.58579 16.5858 3.25 17 3.25ZM7.25 6C7.25 5.58579 7.58579 5.25 8 5.25H13C13.4142 5.25 13.75 5.58579 13.75 6C13.75 6.41421 13.4142 6.75 13 6.75H8C7.58579 6.75 7.25 6.41421 7.25 6ZM5.25 11C5.25 10.5858 5.58579 10.25 6 10.25H13C13.4142 10.25 13.75 10.5858 13.75 11C13.75 11.4142 13.4142 11.75 13 11.75H6C5.58579 11.75 5.25 11.4142 5.25 11ZM3.25 16C3.25 15.5858 3.58579 15.25 4 15.25H13C13.4142 15.25 13.75 15.5858 13.75 16C13.75 16.4142 13.4142 16.75 13 16.75H4C3.58579 16.75 3.25 16.4142 3.25 16Z\",fill:\"gainsboro\"}),\" \"))}var Ue=({results:a,setIsShowE2eResponse:t,index:s})=>{let[n,o]=N(0);return e(\"div\",{className:\"result-slider-container\"},e(\"div\",{className:\"result-slider-wrapper\",id:a[n].id},e(\"section\",{className:\"container-re\"},e(\"div\",{className:\"container-re--header\"},e(\"span\",{className:\"container-re--header--icon\",onClick:()=>t(!0)},e(we,null)),e(\"div\",{className:\"container--re--header--icon-number\"},\" \",e(ne,null),e(\"span\",null,s+1)),e(\"span\",{className:\"container-re-title\"},\"REQUEST\")),e(\"div\",{style:{maxHeight:\"27rem\",overflowY:\"scroll\"}},e(j,{jsonData:a[n].request}))),e(\"section\",{className:\"container-re container-response\"},e(\"div\",{className:\"container-re--header\"},e(\"span\",{className:\"container-re-title\"},\"RESPONSE\"),e(\"span\",{className:\"e2e-re-timeNumber-request\"},a[n].responseTime,\"ms\")),e(\"div\",{style:{maxHeight:\"27rem\",overflowY:\"scroll\"}},e(j,{jsonData:a[n].response})))),e(\"div\",{className:\"pagination-container\"},\" \",e(Je,{pageCountNumber:a.length,activePage:n,setActivePage:o}),\" \",e(\"div\",{className:\"pagination-u1024\"},\" \",a.map((f,i)=>e(\"span\",{className:\"pagination-u1024--item\",onClick:()=>o(i),\"data-show\":n===i},i+1)))))};function _e(){return e(\"svg\",{fill:\"#fff\",height:\"20px\",width:\"20px\",version:\"1.1\",id:\"Capa_1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 452.025 452.025\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"g\",null,\" \",e(\"g\",null,\" \",e(\"path\",{d:\"M362.612,34.125h-55.2l13.6-13.6c4.7-4.7,4.7-12.3,0-17s-12.3-4.7-17,0l-34,34.1c-2.3,2.3-3.5,5.3-3.5,8.5 s1.3,6.2,3.5,8.5l34.1,34.1c2.3,2.3,5.4,3.5,8.5,3.5s6.1-1.2,8.5-3.5c4.7-4.7,4.7-12.3,0-17l-13.6-13.6h55.2c35.9,0,65,29.2,65,65 v40.3c0,6.6,5.4,12,12,12s12-5.4,12-12v-40.3C451.712,74.025,411.712,34.125,362.612,34.125z\"}),\" \",e(\"path\",{d:\"M438.812,230.925h-197.1c-6.6,0-12,5.4-12,12v197.1c0,6.6,5.4,12,12,12h197.1c6.6,0,12-5.4,12-12v-197.1 C450.812,236.225,445.412,230.925,438.812,230.925z M426.812,428.025h-173.1v-173.1h173.1L426.812,428.025L426.812,428.025z\"}),\" \",e(\"path\",{d:\"M147.912,363.325c-4.7-4.7-12.3-4.7-17,0c-4.7,4.7-4.7,12.3,0,17l13.6,13.6h-55.2c-35.9,0-65-29.2-65-65v-40.3 c0-6.6-5.4-12-12-12s-12,5.4-12,12v40.3c0,49.1,39.9,89,89,89h55.2l-13.6,13.6c-4.7,4.7-4.7,12.3,0,17c2.3,2.3,5.4,3.5,8.5,3.5 s6.1-1.2,8.5-3.5l34.1-34.1c4.7-4.7,4.7-12.3,0-17L147.912,363.325z\"}),\" \",e(\"path\",{d:\"M13.212,24.025c3.2,0,6.3-1.3,8.5-3.5s3.5-5.3,3.5-8.5c0-3.1-1.3-6.3-3.5-8.5s-5.3-3.5-8.5-3.5s-6.3,1.3-8.5,3.5 s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5C7.012,22.725,10.012,24.025,13.212,24.025z\"}),\" \",e(\"path\",{d:\"M111.812,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S105.112,24.025,111.812,24.025z\"}),\" \",e(\"path\",{d:\"M62.512,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S55.912,24.025,62.512,24.025z\"}),\" \",e(\"path\",{d:\"M161.012,24.025c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S154.412,24.025,161.012,24.025z\"}),\" \",e(\"path\",{d:\"M210.312,0.025c-3.1,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5s1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5S213.512,0.025,210.312,0.025z\"}),\" \",e(\"path\",{d:\"M210.312,147.925c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,153.225,217.012,147.925,210.312,147.925z\"}),\" \",e(\"path\",{d:\"M210.312,98.625c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,103.925,217.012,98.625,210.312,98.625z\"}),\" \",e(\"path\",{d:\"M210.312,49.325c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12C222.312,54.725,217.012,49.325,210.312,49.325z\"}),\" \",e(\"path\",{d:\"M210.312,197.125c-3.2,0-6.3,1.3-8.5,3.5s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5s5.3,3.5,8.5,3.5s6.3-1.3,8.5-3.5 s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5C216.613,198.425,213.512,197.125,210.312,197.125z\"}),\" \",e(\"path\",{d:\"M161.012,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C149.012,215.825,154.412,221.125,161.012,221.125z\"}),\" \",e(\"path\",{d:\"M111.812,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C99.812,215.825,105.112,221.125,111.812,221.125z\"}),\" \",e(\"path\",{d:\"M62.512,221.125c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C50.512,215.825,55.912,221.125,62.512,221.125z\"}),\" \",e(\"path\",{d:\"M13.212,221.125c3.2,0,6.3-1.3,8.5-3.5s3.5-5.3,3.5-8.5s-1.3-6.3-3.5-8.5s-5.3-3.5-8.5-3.5s-6.3,1.3-8.5,3.5 s-3.5,5.3-3.5,8.5c0,3.1,1.3,6.3,3.5,8.5C7.012,219.825,10.012,221.125,13.212,221.125z\"}),\" \",e(\"path\",{d:\"M13.212,171.925c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S6.612,171.925,13.212,171.925z\"}),\" \",e(\"path\",{d:\"M13.212,122.625c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12C1.212,117.225,6.612,122.625,13.212,122.625z\"}),\" \",e(\"path\",{d:\"M13.212,73.325c6.6,0,12-5.4,12-12s-5.4-12-12-12s-12,5.4-12,12S6.612,73.325,13.212,73.325z\"}),\" \"),\" \"),\" \"))}function Ye({sequence:a,index:t}){let[s,n]=N(!0);return e(\"div\",{id:t.toString(),key:a.id,className:\"container-detail\"},s?e(H,null,e(\"section\",{className:\"sequence-re\"},e(\"div\",{className:\"container-re--header\"},e(\"span\",{className:\"container-re--header--icon\",onClick:()=>n(!1)},e(_e,null)),e(\"div\",{className:\"container--re--header--icon-number\"},\" \",e(ne,null),e(\"span\",null,t+1)),e(\"span\",{className:\"container-re-title\"},\"Body Header\")),e(\"div\",{style:{maxHeight:\"27rem\",overflowY:\"scroll\"}},e(j,{jsonData:JSON.parse(a.bodyHeader)}))),e(\"section\",{className:\"sequence-re sequence-response \"},e(\"div\",{className:\"container-re--header\"},e(\"span\",{className:\"container-re-title\"},\"Description\")),e(\"div\",{className:\"detail-sequence\",style:{maxHeight:\"27rem\",overflowY:\"scroll\"}},e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Requests\"),\" \",e(\"span\",{className:\"detail-sequence--sections--first-item\"},\"All Request Count: \",e(\"span\",null,a.repeat),\" \"),e(\"span\",{className:\"e2e-success\"},\"Success:\",e(\"span\",null,\" \",a.success)),e(\"span\",{className:\"e2e-fail\"},\"Fails: \",e(\"span\",null,a.fails)),e(\"span\",null,\"All Request Time: \",e(\"span\",null,a.time,\" ms\")),e(\"span\",null,\"Avrage Time For Each Request:\",\" \",e(\"span\",null,(a.time/a.repeat).toFixed(1),\" ms\"))),e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Best\"),\" \",e(\"span\",{className:\"detail-sequence--sections--first-item\"},\"Best Time: \",e(\"span\",null,a.bestTime.time,\" ms\")),e(\"span\",null,\"Request Number: \",e(\"span\",null,a.bestTime.resultIdx))),e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Worst\"),e(\"span\",{className:\"detail-sequence--sections--first-item\"},\"Worst Time: \",e(\"span\",null,a.worstTime.time,\" ms\"),\" \"),e(\"span\",null,\" \",\"Request Number: \",e(\"span\",null,a.worstTime.resultIdx))),a.captures.length>0&&e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Capture Items\"),\" \",a.captures.map(o=>e(\"ul\",{className:\"detail-sequence--sections--capture-items\"},e(\"li\",null,\"key:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},o.key)),e(\"li\",null,\"value :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},o.value)),e(\"li\",null,\"model :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},o.model)),e(\"li\",null,\"act :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},o.act)),e(\"li\",null,\"sequnce number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",o.sequenceIdx))))),a.usedCaptures.length>0&&e(\"div\",{className:\"detail-sequence--sections\"},e(\"span\",{className:\"sequnce-description-label\"},\"Using Capture Items\"),\" \",a.usedCaptures.map(o=>e(\"ul\",{className:\"detail-sequence--sections--capture-items\"},e(\"li\",null,\"key:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",o.key)),e(\"li\",null,\"captured from:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",o.captured)),e(\"li\",null,\"value:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",o.value)),e(\"li\",null,\" \",\"model :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\" \",o.model)),e(\"li\",null,\" \",\"act :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},o.act)),e(\"li\",null,\"sequnce number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},o.sequenceIdx)))))))):e(Ue,{results:a.results,setIsShowE2eResponse:n,index:t}))}function We({baseUrl:a}){let{e2eForms:t,setE2eForms:s}=B(),n={allReqPerformance:0,numberRequest:0,success:0,fails:0,bestTime:{sequenceIdx:0,resultIdx:0,time:Number.MAX_SAFE_INTEGER,act:\"\",model:\"\"},worstTime:{sequenceIdx:0,resultIdx:0,act:\"\",model:\"\",time:0},sequenceDetail:[],allCaptureItems:[]},[o,f]=N(!1),[i,p]=N(n),l=(u,m)=>{if(!(u===0&&m<=0)){let T=t[u];t.splice(u,1),t.splice(m,0,T),s([...t])}},g=u=>{t[u],t.splice(u,1),s([...t])},F=u=>{let m={...t[u],id:A()};s([...t.slice(0,u),m,...t.slice(u,t.length)])},[b,S]=N(\"e2e\"),C=()=>{let u=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(t))}`,m=document.createElement(\"a\");m.href=u,m.download=\"Configdata.json\",m.click()},I=u=>{let m=new FileReader;m.readAsText(u.target.files[0],\"UTF-8\"),m.onload=T=>{let c=JSON.parse(T.target.result);s(c)}},Z=()=>{let u=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(i))}`,m=document.createElement(\"a\");m.href=u,m.download=\"data.json\",m.click()},G=async({baseUrl:u,options:m})=>await(await fetch(`${u}lesan`,m)).json(),W=(u,m,T)=>{for(let c in u){typeof u[c]==\"object\"&&W(u[c],m,T);let L=u[c],K=[];if(typeof L==\"string\"&&L.includes(\"{\")){if(L.startsWith(\"{faker\"))K.push(L.slice(1,L.lastIndexOf(\"}\")));else{let V=[];for(let E=0;E{K.push(L.slice(E+1,k[R]))})}K.forEach(V=>{if(V.startsWith(\"faker\")){let k=V.split(\".\"),E=k[2],R=null;E.endsWith(\")\")&&(R=E.slice(E.indexOf(\"(\")+1,E.indexOf(\")\")).replaceAll(\"'\",'\"'),E=E.slice(0,E.indexOf(\"(\")));let P=St[k[1]][E](R&&JSON.parse(R));T.push({key:V,value:P}),u[c]=u[c].replace(`{${V}}`,P)}for(let k of m)k.key===V&&(T.push({key:u[c],value:u[c].replace(`{${V}}`,k.value)}),u[c]=u[c].replace(`{${V}}`,k.value));/^-?\\d+$/.test(u[c])&&(u[c]=Number(u[c]))})}}return T},Q=async()=>{let u=new Set;for await(let m of t){let T,c=JSON.parse(m.bodyHeaders).body,L=A();for(let k=0;k{for(let _ of d)if(_.value===w)return _};T=await G({baseUrl:a,options:x});let v=performance.now()-E,y={id:A(),request:{...x,body:R.body},response:T,responseTime:v};p(w=>{let d=w.sequenceDetail,_=d.findIndex(z=>z.id===L),U=1;return _!==-1?(d[_].results.push(y),U=d[_].results.length,d[_].bestTime=d[_].bestTime.timev?d[_].worstTime:{resultIdx:U,time:v},T.success?d[_].success=d[_].success+1:d[_].fails=d[_].fails+1,d[_].time=d[_].time+v,d[_].repeat=d[_].repeat+1):d.push({id:L,bodyHeader:m.bodyHeaders,time:v,repeat:1,success:T.success?1:0,fails:T.success?0:1,bestTime:{resultIdx:U,time:v},worstTime:{resultIdx:U,time:v},captures:m.captures.map(({key:z,value:ie})=>({key:z,value:ie,sequenceIdx:d.length+1,model:R.body.model,act:R.body.act})),usedCaptures:P.map(({key:z,value:ie})=>{let ee=r(ie,u);return{key:z,value:ie,captured:ee?.captured,sequenceIdx:ee?.sequenceIdx||ee?.sequenceIdx===0?ee?.sequenceIdx+1:void 0,model:ee?.model,act:ee?.act}}),results:[y]}),{allReqPerformance:w.allReqPerformance+v,numberRequest:w.numberRequest+1,success:T.success?w.success+1:w.success,fails:T.success?w.fails:w.fails+1,bestTime:w.bestTime.timev?w.worstTime:{resultIdx:U,sequenceIdx:d.length,act:R.body.act,model:R.body.model,time:v},sequenceDetail:d,allCaptureItems:Array.from(u)}})}[...m.captures].filter(k=>k.key&&k.value).map(k=>{let E=k.value.split(\"[\"),R=[];return E.forEach(P=>{let x=P.slice(0,P.indexOf(\"]\"));isNaN(Number(x))||(x=Number(x)),R.push(x)}),R.shift(),{key:k.key,parsedValue:R,value:k.value}}).forEach(k=>{if(k.parsedValue.length>0){let E=T;k.parsedValue.forEach(R=>{E=E[R]}),u.add({key:k.key,value:E,captured:k.value,act:c.act,model:c.model,sequenceIdx:i.sequenceDetail.length-1})}})}},O=(u,m,T)=>{let c=[...t];c[u][m]=T,s([...c])},q=J(),$=u=>q.current.childNodes[u-1].scrollIntoView({behavior:\"smooth\",block:\"start\"});return e(\"div\",{className:\"e2e-container\"},b===\"result\"?e(\"div\",{className:\"e2e-container--sequence-container\"},e(\"div\",{className:\"results-buttons--back-export\"},e(\"button\",{className:\"btn e2e-back-button\",onClick:()=>{document.getElementById(\"modal\")?.scroll({top:0,behavior:\"smooth\"}),p(n),S(\"e2e\")}},e(fe,null),e(\"span\",null,\"Back\")),e(\"button\",{className:\"btn e2e-back-button e2e-export_results-button\",onClick:Z},e(X,null),e(\"span\",null,\"Export\"))),e(\"div\",{className:\"e2e-container--sequence-container--information-container\"},e(\"span\",{className:\"information-container-label\"},\"Information\"),e(\"div\",{className:\"information-container--request\"},e(\"span\",{className:\"information-container-label\"},\"Requests\"),\" \",e(\"div\",{className:\"information-container--request--sections\"},e(\"p\",{className:\"information-container--request--sections--item\"},\"All Request Count:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.numberRequest),\" \",\"times\"),\" \",e(\"p\",{className:\"information-container--request--sections--item\"},\" \",\"All Request Time:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.allReqPerformance),\" \",\"ms\")),e(\"div\",{className:\"information-container--request--sections\"},e(\"p\",{className:\"information-container--request--sections--item\"},\"All \",e(\"span\",{className:\"e2e-success\"},\"Success\"),\" Request:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.success,\" \"),\" \",\"times\"),e(\"p\",{className:\"information-container--request--sections--item\"},\"All \",e(\"span\",{className:\"e2e-fail\"},\"Fails\"),\" Request :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.fails,\" \"),\"times\"))),e(\"div\",{className:\"information-container--times\"},e(\"span\",{className:\"information-container-label\"},\"Times\"),\" \",e(\"ul\",{className:\"information-container--times--sections\"},e(\"li\",null,\" \",e(\"span\",{className:\"e2e-best\"},\"Best\"),\" Request Time:\",\" \",e(\"span\",{className:\"e2e-best\"},i.bestTime.time,\" \"),\"ms\",\" \"),e(\"li\",null,\" \",\"Seqeunce Number:\",\" \",e(\"span\",{onClick:()=>{$(i.bestTime.sequenceIdx)},className:\"information-container--request--sections--item--content e2e-sequensce-number\"},i.bestTime.sequenceIdx,\" \")),e(\"li\",null,\" \",\"Request Number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.bestTime.resultIdx),\" \"),e(\"li\",null,\"Model:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.bestTime.model,\" \"),\" \"),e(\"li\",null,\"Act:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.bestTime.act,\" \"))),e(\"ul\",{className:\"information-container--times--sections\"},e(\"li\",null,\"Worst Request Time:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.worstTime.time),\" \",\"ms\",\" \"),e(\"li\",null,\" \",\"Seqeunce Number:\",\" \",e(\"span\",{onClick:()=>{$(i.worstTime.sequenceIdx)},className:\"information-container--request--sections--item--content e2e-sequensce-number\"},i.worstTime.sequenceIdx,\" \")),e(\"li\",null,\" \",\"Request Number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.worstTime.resultIdx,\" \")),e(\"li\",null,\"Model:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.worstTime.model)),e(\"li\",null,\"act:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},i.worstTime.act)))),i.allCaptureItems.length>0&&e(\"div\",{className:\"information-container--captures\"},e(\"span\",{className:\"information-container-label\"},\"Captures Information\"),\" \",i.allCaptureItems.map(u=>e(\"ul\",{className:\"information-container--captures--sections\",key:A()},e(\"span\",{className:\"information-container-label\"},u.key),e(\"li\",null,\"Captured From:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},u.captured)),e(\"li\",null,\"Value Of\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},\": \",u.value)),e(\"li\",null,\"Model :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},u.model)),e(\"li\",null,\"Act :\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},u.act)),e(\"li\",null,\"Captured Inside Sequnce Number:\",\" \",e(\"span\",{className:\"information-container--request--sections--item--content\"},u.sequenceIdx)))))),e(\"div\",{className:\"e2e-sequesnce-wrapper\",ref:q},i.sequenceDetail.map((u,m)=>e(Ye,{sequence:u,index:m})))):b===\"e2e\"?e(H,null,e(\"div\",{className:\"sidebar__section sidebar__section--headers\"},t.map((u,m)=>e(H,{key:u.id},e(\"div\",{className:\"sidebar__input-double\",key:u.id},e(\"div\",{className:\"e2e-move-buttons\"},e(\"div\",{className:\"e2e-move-div\",onClick:()=>F(m)},e(te,null)),t.length>1&&e(H,null,e(\"div\",{className:\"e2e-move-div\",onClick:()=>l(m,m-1)},e(Ce,null)),e(\"div\",{className:\"e2e-move-div\",onClick:()=>l(m,m+1)},e(ge,null)),e(\"div\",{className:\"e2e-move-div e2e-move-close\",onClick:()=>g(m)},e(Y,null)))),e(\"div\",{className:\"sidebar__section-body-heading\"},e(\"div\",{className:\"sidebar__section-heading\"},\"set test body and headers\"),e(\"textarea\",{placeholder:\"please paste a request body here\",value:u.bodyHeaders,name:`${u.id}-body`,rows:18,onChange:T=>O(m,\"bodyHeaders\",T.target.value)})),e(\"div\",{className:\"sidebar__section-capture\"},e(\"div\",{className:\"e2e_sidebar__section-heading\"},\"set repeat time\"),e(\"div\",{className:\"repeat__number\"},e(\"input\",{className:\"input\",min:1,placeholder:\"set repeat number\",value:u.repeat,name:`${u.id}-repeat`,type:\"number\",onChange:T=>O(m,\"repeat\",Math.abs(T.target.value))}),e(\"button\",{className:\"e2e-back-button e2e-export_results-button\",onClick:()=>O(m,\"repeat\",t[m].repeat+1)},\"+\"),e(\"button\",{className:\"e2e-back-button e2e-export_results-button\",onClick:()=>O(m,\"repeat\",t[m].repeat>2?t[m].repeat-1:1)},\"-\")),e(\"div\",{className:\"e2e_sidebar__section-heading\"},\"capture variables\"),e(\"button\",{className:\"btn btn--add e2e-back-button e2e-export_results-button e2e-add-capture \",onClick:()=>O(m,\"captures\",[...t[m].captures,{key:\"\",value:\"\"}])},\"add capture\"),u.captures.map((T,c)=>e(H,{key:`${u.id}-${c}`},e(\"div\",{className:\"sidebar__section-add-capture\",style:{position:\"relative\"}},e(\"span\",{className:\"section-add-capture__delete-button\",onClick:()=>O(m,\"captures\",[...t[m].captures.slice(0,c),...t[m].captures.slice(c+1,t[m].captures.length)]),style:{position:\"absolute\",zIndex:\"2\"}},e(Y,null)),e(\"input\",{className:\"input\",placeholder:\"set a variable name\",value:T.key,onChange:L=>O(m,\"captures\",[...t[m].captures.slice(0,c),{key:L.target.value,value:t[m].captures[c].value},...t[m].captures.slice(c+1,t[m].captures.length)])}),e(\"input\",{className:\"input\",placeholder:\"set a value for variable\",value:T.value,onChange:L=>O(m,\"captures\",[...t[m].captures.slice(0,c),{key:t[m].captures[c].key,value:L.target.value},...t[m].captures.slice(c+1,t[m].captures.length)])}))))))))),e(\"button\",{className:\"btn btn-show-results-buttons \",onClick:()=>f(!o)},\"show btn\"),e(\"div\",{className:\"results-buttons\",\"data-show\":o===!0},e(\"button\",{className:\"btn btn-e2e-action e2e-back-button e2e-export_results-button\",onClick:()=>{s([...t,me()])}},e(te,null),e(\"span\",null,\"Add\")),e(\"button\",{className:\"btn btn-e2e-action e2e-back-button e2e-run-botton e2e-export_results-button\",onClick:async()=>{S(\"result\"),await Q()}},e(ye,null),e(\"span\",null,\"Run E2E Test\")),e(\"input\",{id:\"actual-btn\",type:\"file\",onChange:I,hidden:!0}),e(\"label\",{htmlFor:\"actual-btn\",className:\"btn btn-e2e-action e2e-back-button e2e-export_results-button\"},e(be,null),e(\"span\",null,\"Import\")),e(\"button\",{className:\"btn btn-e2e-action e2e-back-button e2e-export_results-button\",onClick:C},e(X,null),e(\"span\",null,\"Export\")),e(\"a\",{href:\"https://miaadteam.github.io/lesan/playground.html\",target:\"_blank\",className:\"btn btn-e2e-action e2e-back-button e2e-export_results-button\"},e(ae,null),e(\"span\",null,\"Help\")))):\"\")}function Ke(a){let t=Math.floor(a/36e5),s=Math.floor(a%36e5/6e4),n=Math.floor(a%36e4%6e4/1e3);return t>0?`${t}h ${s}m ${n}s`:s>0?`${s}m ${n}s`:n>0?`${n}s`:`${a}ms`}var Xe=(a,t)=>{let s=J(!0);h(()=>{let n=()=>{};if(s.current?s.current=!1:n=a(),n&&typeof n==\"function\")return n},t)};function ke(){return e(\"svg\",{id:\"Layer_1\",\"data-name\":\"Layer 1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 105.7 122.88\",width:20},e(\"path\",{fill:\"white\",d:\"M30.46,14.57V5.22A5.18,5.18,0,0,1,32,1.55v0A5.19,5.19,0,0,1,35.68,0H70a5.22,5.22,0,0,1,3.67,1.53l0,0a5.22,5.22,0,0,1,1.53,3.67v9.35h27.08a3.36,3.36,0,0,1,3.38,3.37V29.58A3.38,3.38,0,0,1,102.32,33H98.51l-8.3,87.22a3,3,0,0,1-2.95,2.69H18.43a3,3,0,0,1-3-2.95L7.19,33H3.37A3.38,3.38,0,0,1,0,29.58V17.94a3.36,3.36,0,0,1,3.37-3.37Zm36.27,0V8.51H39v6.06ZM49.48,49.25a3.4,3.4,0,0,1,6.8,0v51.81a3.4,3.4,0,1,1-6.8,0V49.25ZM69.59,49a3.4,3.4,0,1,1,6.78.42L73,101.27a3.4,3.4,0,0,1-6.78-.43L69.59,49Zm-40.26.42A3.39,3.39,0,1,1,36.1,49l3.41,51.8a3.39,3.39,0,1,1-6.77.43L29.33,49.46ZM92.51,33.38H13.19l7.94,83.55H84.56l8-83.55Z\"}))}function Qe({setFormFromHistory:a}){let{history:t,setHistory:s,deleteItemHistory:n}=B(),[o,f]=N(\"\");return Xe(()=>{localStorage.setItem(\"localHistory\",JSON.stringify(t))},[t]),e(H,null,t&&t?.length>0?e(\"div\",null,e(\"br\",null),t.map((i,p)=>e(\"div\",{className:\"container-detail\",id:i.id},e(\"section\",{className:\"container-re\"},e(\"div\",{style:{position:\"relative\",borderBottom:\"1px solid gainsboro\"}},e(\"span\",{className:\"container-re-title\"},\"REQUEST\"),e(\"span\",{className:\"history-re-detail-date\"},i.reqDate)),e(\"div\",{className:\"container-re-detail\"},e(\"div\",{className:\"container-re-detail-title\"},\" \",e(j,{jsonData:i.request.body.model}),e(\"span\",null,\"|\"),e(\"div\",null,e(j,{jsonData:i.request.body.act}))),o===i.id?e(\"button\",{onClick:()=>f(\"\"),className:\"history-re-detail-button\"},\"Hide\",e(\"span\",{className:\"history-re-detail-button-icon\"},\"\\u2013\")):e(\"button\",{onClick:()=>{f(i.id),document.getElementById(i.id)?.scrollIntoView()},className:\"history-re-detail-button\"},\"Show\",\" \",e(\"span\",{className:\"history-re-detail-button-icon\"},\"+\"))),e(\"div\",{className:\"history-re-detail-complete\",\"data-show\":o===i.id},\" \",e(j,{jsonData:i.request}))),e(\"section\",{className:\"container-re container-response\"},e(\"div\",{className:\"history-re-title_delete\",style:{position:\"relative\",borderBottom:\"1px solid gainsboro\"}},e(\"span\",{className:\"history-re-delete\",onClick:l=>{l.stopPropagation(),n(p)}},e(Y,null)),e(\"span\",{className:\"container-re-title history-response-title\"},\"RESPONSE\"),e(\"span\",{className:\"history-re-detail-date history-response-took\"},Ke(i.response.tookTime))),e(\"div\",{className:\"container-re-detail\"},e(\"div\",{className:\"history-re-detail-title\"},e(\"div\",{className:\"history-re-response-title\"},\" \",e(\"span\",{className:\"history-re-response-title-status\"},\"success:\"),e(\"div\",{className:\"history-re-response-info\"},e(j,{jsonData:i.response.success})))),e(\"button\",{onClick:()=>a(i.request),className:\"history-re-detail-button\"},\"Use\",\" \",e(\"span\",{className:\"history-re-detail-button-icon\"},\"\\u279C\",\" \"))),e(\"div\",{className:\"history-re-detail-complete\",\"data-show\":o===i.id},\" \",e(j,{jsonData:i.response})))))):e(\"span\",{className:\"no-history\"},'\"There is no history to display\"'),t&&t.length>0?e(\"div\",{className:\"clear-history\"},e(\"button\",{className:\"btn clear-history-button tooltip\",onClick:()=>{confirm(\"Clear All History?\")==!0&&s([])}},e(ke,null),e(\"span\",{className:\"tooltip-text\"},\"Clear History\"))):\"\")}function xe(){return e(\"svg\",{width:\"25px\",viewBox:\"0 0 26 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M4 6V19C4 20.6569 5.34315 22 7 22H17C18.6569 22 20 20.6569 20 19V9C20 7.34315 18.6569 6 17 6H4ZM4 6V5\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\"}),\" \",e(\"path\",{d:\"M18 6.00002V6.75002H18.75V6.00002H18ZM15.7172 2.32614L15.6111 1.58368L15.7172 2.32614ZM4.91959 3.86865L4.81353 3.12619H4.81353L4.91959 3.86865ZM5.07107 6.75002H18V5.25002H5.07107V6.75002ZM18.75 6.00002V4.30604H17.25V6.00002H18.75ZM15.6111 1.58368L4.81353 3.12619L5.02566 4.61111L15.8232 3.0686L15.6111 1.58368ZM4.81353 3.12619C3.91638 3.25435 3.25 4.0227 3.25 4.92895H4.75C4.75 4.76917 4.86749 4.63371 5.02566 4.61111L4.81353 3.12619ZM18.75 4.30604C18.75 2.63253 17.2678 1.34701 15.6111 1.58368L15.8232 3.0686C16.5763 2.96103 17.25 3.54535 17.25 4.30604H18.75ZM5.07107 5.25002C4.89375 5.25002 4.75 5.10627 4.75 4.92895H3.25C3.25 5.9347 4.06532 6.75002 5.07107 6.75002V5.25002Z\",fill:\"lightcoral\"}),\" \",e(\"path\",{opacity:\"0.5\",d:\"M8 12H16\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}),\" \",e(\"path\",{opacity:\"0.5\",d:\"M8 15.5H13.5\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}),\" \"))}function Re(){return e(\"svg\",{width:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{\"fill-rule\":\"evenodd\",opacity:\"0.5\",\"clip-rule\":\"evenodd\",d:\"M5.07868 5.06891C8.87402 1.27893 15.0437 1.31923 18.8622 5.13778C22.6824 8.95797 22.7211 15.1313 18.9262 18.9262C15.1312 22.7211 8.95793 22.6824 5.13774 18.8622C2.87389 16.5984 1.93904 13.5099 2.34047 10.5812C2.39672 10.1708 2.775 9.88377 3.18537 9.94002C3.59575 9.99627 3.88282 10.3745 3.82658 10.7849C3.4866 13.2652 4.27782 15.881 6.1984 17.8016C9.44288 21.0461 14.6664 21.0646 17.8655 17.8655C21.0646 14.6664 21.046 9.44292 17.8015 6.19844C14.5587 2.95561 9.33889 2.93539 6.13935 6.12957L6.88705 6.13333C7.30126 6.13541 7.63535 6.47288 7.63327 6.88709C7.63119 7.3013 7.29372 7.63539 6.87951 7.63331L4.33396 7.62052C3.92269 7.61845 3.58981 7.28556 3.58774 6.8743L3.57495 4.32874C3.57286 3.91454 3.90696 3.57707 4.32117 3.57498C4.73538 3.5729 5.07285 3.907 5.07493 4.32121L5.07868 5.06891Z\",fill:\"lightcoral\"}),e(\"path\",{d:\"M12 7.25C12.4142 7.25 12.75 7.58579 12.75 8V11.6893L15.0303 13.9697C15.3232 14.2626 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2626 15.3232 13.9697 15.0303L11.5429 12.6036C11.3554 12.416 11.25 12.1617 11.25 11.8964V8C11.25 7.58579 11.5858 7.25 12 7.25Z\",fill:\"lightcoral\"}))}function Me(){return e(\"svg\",{height:\"25px\",width:\"25px\",version:\"1.1\",id:\"Layer_1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 512 512\",fill:\"#000000\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"circle\",{opacity:.34,style:\"fill:lightcoral;\",cx:\"256.602\",cy:\"226.267\",r:\"171.059\"}),\" \",e(\"path\",{style:\"fill:lightcoral\",d:\"M482.195,226.196C482.195,101.471,380.725,0,256.001,0S29.804,101.471,29.804,226.196 c0,7.409,6.007,13.416,13.416,13.416s13.416-6.008,13.416-13.416c0-109.93,89.434-199.363,199.363-199.363 s199.363,89.434,199.363,199.363c0,109.928-89.434,199.362-199.363,199.362h-23.276l33.282-37.255 c4.937-5.525,4.458-14.007-1.067-18.944c-5.525-4.937-14.008-4.457-18.944,1.068l-47.576,53.255c-7.788,8.718-7.788,21.866,0,30.584 l47.576,53.255c2.651,2.968,6.322,4.478,10.01,4.478c3.181,0,6.375-1.126,8.934-3.41c5.526-4.937,6.004-13.419,1.067-18.944 l-33.282-37.255h23.276C380.725,452.39,482.195,350.919,482.195,226.196z\"}),\" \"))}function Ie(){return e(\"svg\",{fill:\"lightcoral\",height:\"25px\",width:\"25px\",viewBox:\"0 0 436.668 436.668\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"g\",null,\" \",e(\"path\",{opacity:.34,d:\"M203.334,85.818v59.141c4.884-0.8,9.893-1.223,15-1.223s10.116,0.423,15,1.223V85.818c14.657-5.935,25-20.296,25-37.081 c0-22.092-17.909-40-40-40s-40,17.908-40,40C178.334,65.522,188.677,79.883,203.334,85.818z\"}),\" \",e(\"path\",{opacity:.34,d:\"M70.642,204.021l56.242,18.274c1.539-10.139,4.732-19.74,9.292-28.525L79.912,175.49 c-1.115-15.774-11.577-30.049-27.541-35.236c-21.01-6.827-43.576,4.672-50.403,25.682c-6.827,21.01,4.672,43.576,25.682,50.403 C43.614,221.525,60.468,216.126,70.642,204.021z\"}),\" \",e(\"path\",{opacity:.34,d:\"M152.577,301.224l-34.792,47.887c-15.346-3.813-32.156,1.725-42.022,15.305c-12.985,17.872-9.023,42.887,8.849,55.872 s42.887,9.023,55.872-8.849c9.866-13.579,9.939-31.277,1.571-44.694l34.772-47.86C167.8,314.333,159.616,308.347,152.577,301.224z\"}),\" \",e(\"path\",{opacity:.34,d:\"M318.883,349.112l-34.792-47.887c-7.039,7.122-15.223,13.109-24.25,17.661l34.772,47.86 c-8.369,13.417-8.296,31.115,1.571,44.694c12.985,17.872,38,21.834,55.872,8.849s21.834-38,8.849-55.872 C351.038,350.837,334.229,345.298,318.883,349.112z\"}),\" \",e(\"path\",{opacity:.34,d:\"M434.699,165.936c-6.827-21.01-29.393-32.508-50.403-25.682c-15.964,5.187-26.426,19.462-27.541,35.236l-56.263,18.281 c4.559,8.784,7.752,18.386,9.292,28.525l56.242-18.274c10.174,12.105,27.028,17.504,42.992,12.318 C430.028,209.512,441.526,186.946,434.699,165.936z\"}),\" \",e(\"path\",{d:\"M280.834,236.237c0-34.462-28.037-62.5-62.5-62.5s-62.5,28.038-62.5,62.5s28.037,62.5,62.5,62.5 S280.834,270.7,280.834,236.237z\"}),\" \"),\" \"))}function De(){return e(\"svg\",{width:\"25px\",height:25,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M3 9.10986V14.8799C3 16.9999 3 16.9999 5 18.3499L10.5 21.5299C11.33 22.0099 12.68 22.0099 13.5 21.5299L19 18.3499C21 16.9999 21 16.9999 21 14.8899V9.10986C21 6.99986 21 6.99986 19 5.64986L13.5 2.46986C12.68 1.98986 11.33 1.98986 10.5 2.46986L5 5.64986C3 6.99986 3 6.99986 3 9.10986Z\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\",opacity:.34}),e(\"path\",{d:\"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}))}function Le(){return e(\"svg\",{width:\"25px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{opacity:.5,d:\"M9.74872 2.49415L18.1594 7.31987M9.74872 2.49415L2.65093 14.7455C1.31093 17.0584 2.10615 20.0159 4.42709 21.3513C6.74803 22.6867 9.7158 21.8942 11.0558 19.5813L12.5511 17.0003L14.1886 14.1738L15.902 11.2163L18.1594 7.31987M9.74872 2.49415L8.91283 2M18.1594 7.31987L19 7.80374\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}),e(\"path\",{d:\"M15.9021 11.2164L13.3441 9.74463M14.1887 14.1739L9.98577 11.7557M12.5512 17.0004L9.93848 15.4972\",stroke:\"lightcpral\",\"stroke-width\":\"1.5\",\"stroke-linecap\":\"round\"}),e(\"path\",{d:\"M22 14.9166C22 16.0672 21.1046 16.9999 20 16.9999C18.8954 16.9999 18 16.0672 18 14.9166C18 14.1967 18.783 13.2358 19.3691 12.6174C19.7161 12.2512 20.2839 12.2512 20.6309 12.6174C21.217 13.2358 22 14.1967 22 14.9166Z\",stroke:\"lightcoral\",\"stroke-width\":\"1.5\"}))}function de(){return e(\"svg\",{width:\"28px\",fill:\"white\",viewBox:\"0 0 32 32\",style:\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;\",version:\"1.1\"},e(\"path\",{d:\"M9.101,7l8.899,0c1.857,-0 3.637,0.737 4.95,2.05c1.313,1.313 2.05,3.093 2.05,4.95l0,8.899c0.953,-0.195 1.837,-0.665 2.536,-1.363c0.937,-0.938 1.464,-2.21 1.464,-3.536c0,-2.977 0,-7.023 0,-10c0,-1.326 -0.527,-2.598 -1.464,-3.536c-0.938,-0.937 -2.21,-1.464 -3.536,-1.464c-2.977,0 -7.023,0 -10,0c-1.326,-0 -2.598,0.527 -3.536,1.464c-0.698,0.699 -1.168,1.583 -1.363,2.536Z\"}),e(\"path\",{d:\"M23,14c0,-1.326 -0.527,-2.598 -1.464,-3.536c-0.938,-0.937 -2.21,-1.464 -3.536,-1.464c-2.977,0 -7.023,0 -10,0c-1.326,-0 -2.598,0.527 -3.536,1.464c-0.937,0.938 -1.464,2.21 -1.464,3.536c0,2.977 0,7.023 0,10c-0,1.326 0.527,2.598 1.464,3.536c0.938,0.937 2.21,1.464 3.536,1.464c2.977,-0 7.023,-0 10,-0c1.326,0 2.598,-0.527 3.536,-1.464c0.937,-0.938 1.464,-2.21 1.464,-3.536l0,-10Zm-15,10l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm0,-4l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Zm0,-4l10,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1l-10,0c-0.552,0 -1,0.448 -1,1c0,0.552 0.448,1 1,1Z\"}),e(\"g\",{id:\"Icon\"}))}function Fe(){return e(\"svg\",{width:25,height:25,fill:\"#ffffff\",version:\"1.1\",id:\"Capa_1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 104.778 104.778\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"g\",null,\" \",e(\"path\",{d:\"M96.832,88.406l-23.02-39.908V21.959c4.385-1.595,7.447-5.797,7.447-10.618C81.26,5.089,76.176,0,69.928,0H42.6 c-6.251,0-11.334,5.089-11.334,11.341c0,4.815,3.07,9.017,7.457,10.618v26.55l-2.083,3.685V30.359c0-1.546-1.257-2.802-2.803-2.802 H8.723c-1.546,0-2.801,1.256-2.801,2.802v59.557c0,7.475,5.742,13.614,13.174,14.648c0.331,0.126,0.683,0.214,1.059,0.214h67.227 c4.79,0,8.433-1.762,10.282-4.979C99.503,96.598,99.208,92.543,96.832,88.406z M11.513,89.916v-6.079h8.254 c1.546,0,2.802-1.26,2.802-2.802c0-1.549-1.256-2.802-2.802-2.802h-8.254v-9.09h8.254c1.546,0,2.802-1.263,2.802-2.801 c0-1.555-1.256-2.802-2.802-2.802h-8.254v-9.097h8.254c1.546,0,2.802-1.256,2.802-2.801c0-1.55-1.256-2.803-2.802-2.803h-8.254 V33.149h19.512v56.767c0,5.095-4.375,9.248-9.756,9.248C15.883,99.17,11.513,95.011,11.513,89.916z M92.794,96.997 c-0.799,1.379-2.779,2.178-5.432,2.178H33.189c2.118-2.55,3.439-5.734,3.439-9.259V63.19c0.245-0.207,0.476-0.443,0.645-0.743 l6.679-11.82c0.236-0.422,0.364-0.898,0.364-1.379V19.776c0-1.415-1.048-2.603-2.449-2.78c-2.859-0.364-5.015-2.796-5.015-5.655 c0-3.161,2.571-5.738,5.731-5.738H69.91c3.165,0,5.734,2.577,5.734,5.738c0,2.859-2.155,5.286-5.017,5.655 c-1.401,0.178-2.446,1.365-2.446,2.78v29.472c0,0.493,0.122,0.977,0.374,1.401l23.396,40.559 C93.292,93.506,93.593,95.617,92.794,96.997z M76.466,79.53c0,5.412-4.377,9.794-9.801,9.794c-5.411,0-9.795-4.382-9.795-9.794 c0-5.406,4.384-9.795,9.795-9.795C72.089,69.735,76.466,74.124,76.466,79.53z M54.609,68.877c0,2.665-2.146,4.799-4.802,4.799 c-2.657,0-4.802-2.156-4.802-4.799c0-2.644,2.15-4.8,4.802-4.8C52.468,64.077,54.609,66.233,54.609,68.877z M58.195,58.048 c-1.672,0-3.015-1.341-3.015-3.01c0-1.667,1.343-3.009,3.015-3.009c1.663,0,3.015,1.343,3.015,3.009 C61.21,56.707,59.853,58.048,58.195,58.048z M49.534,86.315c0,1.669-1.352,3.009-3.016,3.009c-1.665,0-3.014-1.34-3.014-3.009 c0-1.663,1.349-3.016,3.014-3.016C48.182,83.3,49.534,84.652,49.534,86.315z M54.805,46.184c-2.185,0-3.956-1.771-3.956-3.957 c0-2.186,1.771-3.957,3.956-3.957c2.183,0,3.957,1.771,3.957,3.957C58.762,44.414,56.983,46.184,54.805,46.184z\"}),\" \"),\" \"))}function Oe(){return e(\"svg\",{version:\"1.1\",viewBox:\"0 0 29.756 29.756\",style:\"enable-background:new 0 0 29.756 29.756;\"},e(\"path\",{d:\"M29.049,5.009L28.19,4.151c-0.943-0.945-2.488-0.945-3.434,0L10.172,18.737l-5.175-5.173 c-0.943-0.944-2.489-0.944-3.432,0.001l-0.858,0.857c-0.943,0.944-0.943,2.489,0,3.433l7.744,7.752 c0.944,0.943,2.489,0.943,3.433,0L29.049,8.442C29.991,7.498,29.991,5.953,29.049,5.009z\"}))}function se(a){let t=J(null);return h(()=>{let s=n=>{t.current&&!t.current.contains(n?.target)&&a()};return document.addEventListener(\"click\",s),()=>{document.removeEventListener(\"click\",s)}},[t]),t}function oe({className:a=\"\"}){return e(\"svg\",{width:25,height:25,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",className:a},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},\" \",e(\"path\",{d:\"M6 9L12 15L18 9M12 9H12.01\",stroke:\"lightcoral\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \"))}function re({items:a,onClickItem:t,incomeActiveItem:s,canShow:n}){let[o,f]=N(!1),[i,p]=N(\"\");h(()=>{p(s||\"\")},[s]);let g=se(()=>{f(!1)});return e(\"div\",null,e(\"div\",{className:\"select\",disabled:n},e(\"div\",{className:`select--empty ${o===!0?\"active-select--empty\":\"\"}`,ref:g,onClick:()=>f(!o)},e(\"div\",{className:\"select--empty--left-side\"},\" \",e(\"span\",{className:`${i?\"select-empty--left-side--clear\":\"select-empty--left-side--clear--inactive\"}`,onClick:F=>{p(\"\"),t(\"\"),f(!1),F.stopPropagation()}},\"x\"),e(\"span\",null,i)),e(oe,null)),o&&e(\"div\",{className:\"select--sub-buttons\",\"data-show\":o},a?.map((F,b)=>e(\"div\",{className:`option ${F===i?\"active-option\":\"\"}`,onClick:()=>{p(F),t(F),f(!1)}},F)))))}var Tt=({options:a,onChange:t})=>{let[s,n]=N([]),[o,f]=N(a),[i,p]=N(!1),l=S=>{if(s.includes(S)){let C=s.filter(I=>I.value!==S.value);n(C),f([...o,S]),t(C)}else{let C=o.filter(I=>I.value!==S.value);n([...s,S]),f(C),t([...s,S])}},g=()=>{n([]),t([]),f(a)},F=()=>{p(!i)},b=se(()=>{p(!1)});return e(\"div\",{ref:b,className:\"multi-select__wrapper\"},e(\"div\",{className:\"multi-select__field\",onClick:F},e(\"div\",{className:\"multi-select__selected-item-wrapper\"},s.map(S=>e(\"div\",{className:\"multi-select__selected-item\",key:S},e(\"div\",{className:\"multi-select__selected-item-text\"},S.label),e(\"div\",{className:\"multi-select__selected-item-btn\",role:\"button\",onClick:C=>{C.stopPropagation(),l(S)}},\"x\")))),e(\"div\",{className:\"multi-select__icons-wrapper\"},s.length?e(\"div\",{className:\"multi-select__close-icon-wrapper\",role:\"button\",onClick:S=>{S.stopPropagation(),g()}},e(\"span\",{className:\"multi-select__close-icon\"},\"x\")):null,e(\"div\",{className:\"multi-select__arrow-icon-wrapper\",role:\"button\"},e(oe,{className:\"multi-select__arrow-icon\"})))),i?e(\"div\",{className:\"multi-select__options\"},o.length?o.map(S=>e(\"div\",{key:S.value,onClick:C=>{C.stopPropagation(),l(S)},className:\"multi-select__option\"},e(\"div\",{className:\"multi-select__option-label\"},S.label))):e(\"div\",{className:\"multi-select__option--no-option\"},\"No Options!\")):null)},et=Tt;var Et=({baseUrl:a,options:t})=>fetch(`${a}lesan`,t).then(s=>s.json()),tt=({urlAddress:a})=>{let{activeTab:t,tabsData:s,actsObj:n,headers:o,history:f,setService:i,setSchema:p,setAct:l,setPostFields:g,setGetFields:F,setFormData:b,setHistory:S,setResponse:C,resetGetFields:I,resetPostFields:Z,addE2eForm:G,setModal:W}=B(),[Q,O]=N(!1),q=(r,v,M,y)=>{for(let w in M)M[w].type===\"enums\"?y[`${v}.${w}`]=r:q(r,`${v}.${w}`,M[w].schema,y);return y},$=J(null),u=r=>{let{name:v,value:M,type:y,alt:w}=r.target,d;y===\"number\"?d=Number(M):w===\"array\"||w===\"boolean\"?d=JSON.parse(M):d=M,b({data:{...s[t].formData,[v]:d},index:t})},m=({key:r,field:v,isMultiEnum:M=!1,formData:y})=>v.type===\"array\"?m({key:r,formData:y,field:v.schema,isMultiEnum:!0}):v.type===\"enums\"&&M?e(et,{options:Object.keys(v.schema).map(w=>({label:w,value:v.schema[w]})),onChange:w=>{let d=w.map(_=>_.value);b({data:{...y,[`set.${r}`]:d},index:t}),localStorage.setItem(\"localTabsData\",JSON.stringify(s))}}):v.type===\"enums\"?e(re,{onClickItem:w=>{b({data:{...y,[`set.${r}`]:w},index:t}),localStorage.setItem(\"localTabsData\",JSON.stringify(s))},incomeActiveItem:y[`set.${r}`],items:Object.keys(v.schema)}):e(\"input\",{className:\"input\",placeholder:r,id:r,value:y[`set.${r}`],name:`set.${r}`,type:v.type===\"number\"?\"number\":\"string\",alt:M?\"array\":v.type,onChange:u}),T=({getField:r,keyName:v,margin:M})=>e(\"div\",{style:{marginLeft:`${M+1}px`},className:\"sidebar__section_container\",key:`${t}.${v}`},e(\"div\",{className:\"sidebar__section-heading--subfields\"},v),Object.keys(r.schema).map((y,w)=>r.schema[y].type===\"enums\"?e(\"div\",{className:\"input-cnt get-items\",key:`${t}.${y}-${w}`},e(\"label\",{htmlFor:y},v,\".\",y,\":\"),e(\"div\",{className:\"get-values\"},e(\"span\",{onClick:()=>{let d={...s[t].formData};delete d[`get.${v}.${y}`],b({data:d,index:t})}}),e(\"span\",{className:s[t].formData[`get.${v}.${y}`]===0?\"active\":\"\",onClick:()=>{b({index:t,data:{...s[t].formData,[`get.${v}.${y}`]:0}})}},\"0\"),e(\"span\",{className:s[t].formData[`get.${v}.${y}`]===1?\"active\":\"\",onClick:()=>{b({data:{...s[t].formData,[`get.${v}.${y}`]:1},index:t})}},\"1\"))):T({getField:r.schema[y],keyName:`${v}.${y}`,margin:M+1}))),c=()=>{let r=ce(s[t].formData);return{body:{method:\"POST\",headers:{\"Content-Type\":\"application/json\",...o},body:JSON.stringify({service:s[t].service,model:s[t].schema,act:s[t].act,details:r})}}},L=async r=>{r.preventDefault();let v=new Date().toLocaleDateString();O(!0),setTimeout(()=>{O(!1)},450);let M=performance.now(),y=await Et({baseUrl:a,options:c().body}),d=(performance.now()-M).toFixed(1);C({data:{...y,tookTime:d},index:t});let _=[{request:{...c().body,body:JSON.parse(c().body.body)},response:{...y,tookTime:d},id:A(),reqDate:v},...f];S(_),localStorage.setItem(\"localHistory\",JSON.stringify(_)),localStorage.setItem(\"localTabsData\",JSON.stringify(s))},K=s[t].service&&s[t].schema&&s[t].postFields&&s[t].getFields&&s[t].act,V=s[t].service,k=s[t].service&&s[t].schema,E=()=>{let r=JSON.stringify(s[t].response);navigator.clipboard.writeText(r)},R=()=>{let r=c();r.body.body=JSON.parse(r.body.body),navigator.clipboard.writeText(JSON.stringify(r))},P=()=>{let r=c();r.body.body=JSON.parse(r.body.body);let{method:v,...M}=r.body,y={id:A(),bodyHeaders:JSON.stringify({...M},null,2),repeat:1,captures:[]};G(y),W(\"E2E TEST\")},x=(r,v)=>{if(v===\"service\"&&(i({data:r,index:t}),p({data:\"\",index:t})),v===\"method\"&&p({data:\"\",index:t}),v===\"schema\"&&p({data:r,index:t}),l({data:\"\",index:t}),I(t),Z(t),v===\"action\"){let M=n[s[t].service][s[t].schema][r].validator.schema;$&&$.current&&$.current.reset(),l({data:r,index:t}),F({data:M.get.schema,index:t}),g({data:M.set.schema,index:t})}b({data:{},index:t}),localStorage.setItem(\"localTabsData\",JSON.stringify(s))};return e(H,null,e(\"div\",{className:\"sidebar\"},e(\"div\",{className:\"sidebar__sections-wrapper\"},e(\"div\",{className:\"sidebar__section sidebar__section--services\"},e(\"div\",{className:\"sidebar__section-heading\"},\"select services\"),e(re,{onClickItem:r=>x(r,\"service\"),items:Object.keys(n),incomeActiveItem:s[t].service?s[t].service:null})),e(\"div\",{className:\"sidebar__section sidebar__section--schema\"},e(\"div\",{onClick:()=>{},className:\"sidebar__section-heading\"},\"select schema\"),e(re,{canShow:!V,onClickItem:r=>x(r,\"schema\"),items:V?Object.keys(n[s[t].service]):[],incomeActiveItem:s[t].schema?s[t].schema:null})),e(\"div\",{className:\"sidebar__section sidebar__section--act\"},e(\"div\",{className:\"sidebar__section-heading\"},\"select action\"),e(re,{canShow:!k,onClickItem:r=>x(r,\"action\"),items:k?Object.keys(n[s[t].service][s[t].schema]):[],incomeActiveItem:s[t].act?s[t].act:null})))),K&&e(\"div\",{className:\"sidebar sidebar--fields\"},e(\"form\",{ref:$,onSubmit:L,className:\"form--fields\"},e(\"div\",{className:\"sidebar__section-heading sidebar__section-heading--fields\"},\"SET fields\"),Object.keys(s[t].postFields).map(r=>e(\"div\",{className:\"input-cnt\",key:`${t}.${r}-----`},e(\"label\",{htmlFor:r},r,\" :\"),m({key:r,field:s[t].postFields[r],formData:s[t].formData}))),e(\"div\",{className:\"sidebar__section-heading sidebar__section-heading--fields\"},\"GET fields\"),e(\"div\",{className:\"input-cnt get-items border-bottom\"},e(\"label\",null,\"All Items :\"),e(\"div\",{className:\"get-values\"},e(\"span\",{onClick:()=>{let r=q(null,\"get\",s[t].getFields,{});b({data:{...s[t].formData,...r},index:t})}}),e(\"span\",{onClick:()=>{let r=q(0,\"get\",s[t].getFields,{});b({data:{...s[t].formData,...r},index:t})}},\"0\"),e(\"span\",{onClick:()=>{let r=q(1,\"get\",s[t].getFields,{});b({data:{...s[t].formData,...r},index:t})}},\"1\"))),Object.keys(s[t].getFields).map(r=>s[t].getFields[r].type===\"enums\"?e(\"div\",{className:\"input-cnt get-items\",key:`${t}.${r}-------`},e(\"label\",{htmlFor:r},r,\":\"),e(\"div\",{className:\"get-values\"},e(\"span\",{onClick:()=>{b({data:{...s[t].formData,[`get.${r}`]:null},index:t})}}),e(\"span\",{className:s[t].formData[`get.${r}`]===0?\"active\":\"\",onClick:()=>{b({data:{...s[t].formData,[`get.${r}`]:0},index:t})}},\"0\"),e(\"span\",{className:s[t].formData[`get.${r}`]===1?\"active\":\"\",onClick:()=>{b({data:{...s[t].formData,[`get.${r}`]:1},index:t})}},\"1\"))):T({getField:s[t].getFields[r],keyName:r,margin:0})),e(\"div\",{class:\"wrapper\"},e(\"button\",{class:\"send-button\",\"data-active\":Q},e(\"span\",null,\"Send\"),e(\"div\",{class:\"successe\"},e(Oe,null)))))),e(\"div\",{className:\"response\"},s[t].response&&e(\"div\",{class:\"response-detail\"},e(\"div\",{className:\"response-detail-button_title\"},e(\"p\",{className:\"response-detail-title\"},\"Response\"),e(\"div\",{className:\"response-detail-buttons\"},e(\"div\",{className:\"btn response-detail-button \",onClick:()=>R()},e(de,null),e(\"span\",{className:\"tooltip-text\"},\"Copy Request\")),e(\"div\",{className:\"btn response-detail-button \",onClick:()=>{E()}},e(de,null),e(\"span\",{className:\"tooltip-text\"},\"Copy Response\")),e(\"div\",{className:\"btn response-detail-button \",onClick:()=>{P()}},e(Fe,null),e(\"span\",{className:\"tooltip-text\"},\"Run E2E Test\")))),e(\"div\",{className:\"response-detail-info\"},e(\"div\",{style:{display:\"flex\",flexDirection:\"column\"}},\" \",e(j,{jsonData:{body:s[t].response?.body,success:s[t].response?.success}})),e(\"span\",{className:\"response-took\"},\"took:\",s[t].response?.tookTime,\" ms\"),s[t].response&&s[t].response?.success===!0?e(\"div\",{className:\"success\"}):e(\"div\",{className:\"fail\"})))))};var wt=()=>e(\"svg\",{width:\"15px\",height:\"15px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M20.04 10.1109L18.0252 8.09612L21.7071 4.41421C22.0976 4.02369 22.0976 3.39052 21.7071 3L21 2.29289C20.6095 1.90237 19.9763 1.90237 19.5858 2.29289L15.9039 5.9748L14.04 4.11089C13.754 3.82489 13.3239 3.73933 12.9502 3.89411C12.5765 4.04889 12.3329 4.41353 12.3329 4.81799V10.818C12.3329 11.3703 12.7806 11.818 13.3329 11.818H19.3329C19.7373 11.818 20.102 11.5744 20.2568 11.2007C20.4115 10.827 20.326 10.3969 20.04 10.1109Z\",fill:\"bisque\"}),e(\"path\",{d:\"M3.96 13.8891L5.97478 15.9039L2.29289 19.5858C1.90237 19.9763 1.90237 20.6095 2.29289 21L3 21.7071C3.39052 22.0976 4.02369 22.0976 4.41421 21.7071L8.0961 18.0252L9.96 19.8891C10.246 20.1751 10.6761 20.2607 11.0498 20.1059C11.4235 19.9511 11.6671 19.5865 11.6671 19.182V13.182C11.6671 12.6297 11.2194 12.182 10.6671 12.182H4.66711C4.26265 12.182 3.89801 12.4256 3.74323 12.7993C3.58845 13.173 3.674 13.6031 3.96 13.8891Z\",fill:\"bisque\"})),st=wt;var _t=()=>e(\"svg\",{width:\"15px\",height:\"15px\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M7.69233 18.2781L9.70711 20.2929C9.9931 20.5789 10.0787 21.009 9.92388 21.3827C9.7691 21.7564 9.40446 22 9 22H3C2.44772 22 2 21.5523 2 21V15C2 14.5955 2.24364 14.2309 2.61732 14.0761C2.99099 13.9213 3.42111 14.0069 3.70711 14.2929L5.571 16.1568L9.25289 12.4749C9.64342 12.0844 10.2766 12.0844 10.6671 12.4749L11.3742 13.182C11.7647 13.5725 11.7647 14.2057 11.3742 14.5962L7.69233 18.2781Z\",fill:\"bisque\"}),e(\"path\",{d:\"M16.3077 5.72187L14.2929 3.70711C14.0069 3.42111 13.9213 2.99099 14.0761 2.61732C14.2309 2.24364 14.5955 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.40446 21.7564 9.7691 21.3827 9.92388C21.009 10.0787 20.5789 9.9931 20.2929 9.70711L18.429 7.84319L14.7471 11.5251C14.3566 11.9156 13.7234 11.9156 13.3329 11.5251L12.6258 10.818C12.2352 10.4275 12.2352 9.7943 12.6258 9.40378L16.3077 5.72187Z\",fill:\"bisque\"})),at=_t;function qe(){return e(\"svg\",{width:25,height:25,fill:\"#000000\",viewBox:\"0 0 24 24\",id:\"up-direction\",\"data-name\":\"Line Color\",xmlns:\"http://www.w3.org/2000/svg\",class:\"icon line-color\"},e(\"g\",{id:\"SVGRepo_bgCarrier\",\"stroke-width\":\"0\"}),e(\"g\",{id:\"SVGRepo_tracerCarrier\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),e(\"g\",{id:\"SVGRepo_iconCarrier\"},e(\"path\",{id:\"secondary\",d:\"M10,9.66V20a1,1,0,0,0,1,1h2a1,1,0,0,0,1-1V9.66\",style:\"fill: none; stroke: darkred; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;\"}),e(\"path\",{id:\"primary\",d:\"M14,9.66l3.4,2.92,2.6-3-7.35-6.3a1,1,0,0,0-1.3,0L4,9.54l2.6,3L10,9.66\",style:\"fill: none; stroke: darkred; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2;\"})))}var kt=a=>{let[t,s]=N(\"myBtn none\"),[n,o]=N(!1),f=J(null),i=()=>{f.current.scroll,document.getElementById(\"modal\")?.scroll({top:0,behavior:\"smooth\"})},p=l=>{l.currentTarget.scrollTop>20?s(\"myBtn\"):s(\"none\")};return e(\"div\",{className:\"modal-overlay\",onClick:a.toggle},e(\"div\",{className:n?\"modal-box-fullscreen\":\"modal-box\",onClick:l=>l.stopPropagation()},e(\"div\",{className:\"action-modal\"},e(\"span\",{className:\"modal-close\",onClick:a.toggle},e(Y,null)),e(\"span\",{className:\"modal-fullscreen\",onClick:()=>o(!n)},n?e(st,null):e(at,null)),e(\"span\",{className:\"modal-title\"},a.title)),e(\"div\",{className:\"modal-content\",id:\"modal\",ref:f,onScroll:p},a.children,e(\"div\",{className:t},e(\"button\",{className:\"myBtn-active tooltip\",onClick:()=>i()},e(qe,null),e(\"span\",{className:\"tooltip-text\"},\"Go To Top\"))))))},nt=kt;var ot=()=>{let{schemasObj:a}=B(),[t,s]=N({});h(()=>{let p={};for(let l in a){p[l]={...p[l],pure:a[l].pure};for(let g in a[l].mainRelations)p[l]={...p[l],mainRelations:{...p[l].mainRelations,[g]:{type:\"relation\",extraDetails:a[l].mainRelations[g],schema:{...a[a[l].mainRelations[g].schemaName].pure}}}};for(let g in a[l].relatedRelations)p[l]={...p[l],relatedRelations:{...p[l].relatedRelations,[g]:{type:\"relation\",extraDetails:a[l].relatedRelations[g],schema:{...a[a[l].relatedRelations[g].schemaName].pure}}}}}s(p)},[]);let n=()=>{let p=`data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(a))}`,l=document.createElement(\"a\");l.href=p,l.download=\"schemas.json\",l.click()},o=[\"color-1\",\"color-2\",\"color-3\",\"color-4\",\"color-5\",\"color-6\",\"color-7\"],f=p=>Object.keys(p).map(l=>{let g=A();return e(\"div\",{className:\"schema\"},e(\"div\",{className:\"schema-name\",onClick:()=>{document.getElementById(g)?.classList.toggle(\"open\")}},e(\"p\",{className:\"schema-title\"},l),e(\"span\",null,\"...\")),e(\"div\",{className:\"proceed-child-container\",id:g},i(p[l])))}),i=p=>Object.keys(p).map(l=>{let g=A();return e(\"div\",{className:`inside-schema ${o[Math.floor(Math.random()*o.length)]}`},e(\"div\",{className:`inside ${typeof p[l]==\"object\"&&p[l].schema!==null&&\"schema-pointer\"}`,onClick:()=>{document.getElementById(g)?.classList.toggle(\"open\")}},e(\"p\",{className:\"schema-title\"},l),e(\"div\",{className:\"schema-info\"},\" \",e(\"p\",{className:\"schema-title schema-type\"},\" \",p[l].type),e(\"div\",{className:\"schema-help\"},p[l].extraDetails&&e(ae,null),p[l].extraDetails&&e(\"div\",{className:\" tooltip-text\"},e(j,{jsonData:p[l].extraDetails}))),typeof p[l]==\"object\"&&p[l].schema!==null&&e(\"span\",null,\"...\"))),e(\"div\",{id:g,className:\"proceed-child\"},typeof p[l]==\"object\"&&p[l]!==null&&p[l].schema!==null&&i(p[l].pure?p[l].pure:p[l].relatedRelations?p[l].relatedRelations:p[l].mainRelation?p[l].mainRelation:p[l].type===\"relation\"?p[l].schema:p[l])))});return e(\"div\",{className:\"schema-modal\"},e(\"div\",{className:\"results-buttons\"},e(\"button\",{className:\" schema-export-button btn e2e-back-button e2e-export_results-button\",onClick:n},e(X,null),e(\"span\",null,\"Export\"))),e(\"div\",{className:\"schema-list\"},f(t)))};function pe(){return e(\"svg\",{width:25,height:25,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},e(\"path\",{d:\"M7.75 11.9999L10.58 14.8299L16.25 9.16992\",stroke:\"lightcoral\",\"stroke-width\":\"2\",\"stroke-linecap\":\"round\",\"stroke-linejoin\":\"round\"}),\" \",e(\"path\",{\"fill-rule\":\"evenodd\",\"clip-rule\":\"evenodd\",d:\"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM3.00683 12C3.00683 16.9668 7.03321 20.9932 12 20.9932C16.9668 20.9932 20.9932 16.9668 20.9932 12C20.9932 7.03321 16.9668 3.00683 12 3.00683C7.03321 3.00683 3.00683 7.03321 3.00683 12Z\",fill:\"bisque\"}))}function rt({configUrl:a}){let[t,s]=N(\"no\"),n=()=>{setTimeout(()=>{s(\"no\")},1e3)},o=b=>{p[b],p.splice(b,1),l([...p])},{headers:f,setHeader:i}=B(),[p,l]=N([{key:\"\",value:\"\"}]),[g,F]=N(\"\");return h(()=>{let b=[];for(let S in f)b.push({key:S,value:f[S]});l(b)},[]),e(\"div\",{className:\"setting modal-content\"},e(\"div\",{className:\"url\"},e(\"p\",{className:\"url-title\"},\"Fetch Config\"),e(\"div\",{className:\"url-detail\"},\" \",e(\"input\",{className:\"input url-input \",placeholder:\"Set URL\",onChange:b=>F(b.target.value)}),e(\"button\",{className:\"setting_fetch-config--apply-button e2e-back-button e2e-add-capture \",onClick:()=>{a(g),s(\"yes\"),n()}},e(pe,null),e(\"span\",null,t===\"yes\"?\"Applyed!\":\"Apply\")))),e(\"div\",{className:\"sidebar__section sidebar__section--headers\"},e(\"div\",{className:\"sidebar__section-heading setting_heading\"},\" \",e(\"span\",{className:\"setting_heading--title\"},\"Set Headers\"),e(\"button\",{className:\"setting_add-header--button e2e-back-button e2e-export_results-button e2e-add-capture \",onClick:()=>{l([...p,{key:\"\",value:\"\"}])}},e(te,null),e(\"span\",null,\"Add Header\"))),e(\"div\",{className:\"setting_container--setheaders\"},e(\"div\",{className:\"setting_set-headers\"},p?.map((b,S)=>e(\"div\",{key:`${S}____`,className:\"setting_set-headers--inputs\"},e(\"div\",{className:\"setting__set-headers--key-value setting__set-headers--key\"},e(\"span\",null,\"Key:\"),e(\"input\",{className:\"setting_set-headers--inputs--key input\",placeholder:\"Authotization\",value:b.key,onChange:C=>{l(I=>(I[S].key=C.target.value,I))}})),e(\"div\",{className:\"setting__set-headers--key-value setting__set-headers--value\"},e(\"span\",null,\"Value:\"),e(\"input\",{className:\"setting_set-headers--inputs--value input\",placeholder:\"some string ...\",value:b.value,onChange:C=>{l(I=>(I[S].value=C.target.value,I))}})),p.length>1&&e(\"div\",{className:\"setting_set-headers--delete-button e2e-move-div e2e-move-close\",onClick:()=>o(S)},e(Y,null))))),e(\"button\",{className:\"setting_set-headers--apply-button e2e-back-button e2e-add-capture \",onClick:()=>{let b={};for(let S of p){let{key:C,value:I}=S;b[C]=I}i(b),s(\"yess\"),n()}},e(pe,null),e(\"span\",null,t===\"yess\"?\"Applyed!\":\"Apply\")))))}var xt=({baseUrl:a})=>fetch(`${a}playground/static/get/schemas`).then(t=>t.json()),it=()=>{let{tabsData:a,setTabsData:t,activeTab:s,actsObj:n,addTab:o,setActiveTab:f,setService:i,setSchema:p,setAct:l,setPostFields:g,setGetFields:F,setFormData:b,setHistory:S,setResponse:C,resetGetFields:I,closeTab:Z,resetPostFields:G,setSchemasObj:W,setActsObj:Q,setModal:O,modal:q}=B(),[$,u]=N(\"\"),[m,T]=N(!1),c=()=>window&&window.location?`${new URL(window.location.href).origin}/`:\"http://localhost:1366/\",[L,K]=N(\"\"),k=se(()=>{T(!1)});h(()=>{E(c());let x=JSON.parse(localStorage.getItem(\"localHistory\"));x&&S(x)},[]);let E=x=>{x&&K(x),i({data:\"\",index:s}),p({data:\"\",index:s}),I(s),G(s),b({data:{},index:s}),xt({baseUrl:x||L}).then(({schemas:r,acts:v})=>{Q(v),W(r);let M=localStorage.getItem(\"localTabsData\");if(M){M=JSON.parse(M);let y=[],w=d=>{y.pop();let _=ce(d.formData);for(let z in _.set)v[d.service][d.schema][d.act].validator.schema.set.schema[z]===void 0&&delete _.set[z];for(let z in _.get)v[d.service][d.schema][d.act].validator.schema.get.schema[z]===void 0&&delete _.get[z];let U=le(_,{},\"\");d.postFields=v[d.service][d.schema][d.act].validator.schema.set.schema,d.getFields=v[d.service][d.schema][d.act].validator.schema.get.schema,y.push({...d,formData:U})};for(let d of M)d.service&&d.service in v&&y.push(d),d.schema&&!(d.schema in v[d.service])&&y.pop(),d.act&&!(d.act in v[d.service][d.schema])&&y.pop(),d.service&&d.schema&&d.act&&d.act in v[d.service][d.schema]&&w(d);y.length<1&&y.push({service:\"\",schema:\"\",act:\"\",postFields:{},getFields:{},formData:{},response:null}),t(y)}})},R=()=>{O(null)},P=x=>{i({data:x.body.service,index:s}),p({data:x.body.model,index:s}),l({data:x.body.act,index:s});let r=n[x.body.service][x.body.model][x.body.act].validator.schema;F({data:r.get.schema,index:s}),g({data:r.set.schema,index:s}),C({data:null,index:s});let v=le(x.body.details,{},\"\");b({data:v,index:s}),R()};return e(\"div\",{className:\"cnt\"},e(\"div\",{className:\"tabs-container\",style:{display:\"flex\"}},a.map((x,r)=>e(H,null,e(\"div\",{className:\"tab-name\",\"data-tab\":s===r,onClick:()=>{f(r)}},\" \",e(\"span\",{title:a[r].act?`${a[r].schema} | ${a[r].act}`:a[r].schema?`${a[r].service} | ${a[r].schema}`:a[r].service?a[r].service:`Tab ${r}`},\" \",a[r].act?`${a[r].schema} | ${a[r].act}`:a[r].schema?`${a[r].service} | ${a[r].schema}`:a[r].service?a[r].service:`Tab ${r}`),e(\"span\",{className:` tab-close ${s===r?\"active-tab-close\":\"\"}`,onClick:v=>{v.stopPropagation(),Z(r)},title:\"Close tab\"},\"x\")))),e(\"span\",{className:\"add-tab\",title:\"Open a new tab\",onClick:()=>{o(null),localStorage.setItem(\"localTabsData\",JSON.stringify(a))}},\"+\")),e(tt,{urlAddress:L}),e(\"button\",{ref:k,className:\"media--main-btn-wrapper \",onClick:()=>{T(!m)}},\"menu\"),e(\"div\",{className:\"main-btn-wrapper\",\"data-show\":m===!0},e(\"span\",{className:\"btn btn-modal \",onClick:()=>E()},e(\"span\",{className:\"btn-modal-title\"},\"Refetch\"),e(Me,null)),e(\"span\",{className:\"btn btn-modal \",onClick:()=>O(\"SETTING\")},e(\"span\",{className:\"btn-modal-title\"},\"Setting\"),e(De,null)),e(\"span\",{className:\"btn btn-modal\",onClick:()=>O(\"HISTORY\")},e(\"span\",{className:\"btn-modal-title\"},\"History\"),e(Re,null)),e(\"span\",{className:\"btn btn-modal\",onClick:()=>O(\"E2E TEST\")},e(\"span\",{className:\"btn-modal-title\"},\"E2E Test\"),e(Le,null)),e(\"span\",{className:\" btn-modal-document\",\"data-show\":$===\"document\"},e(\"span\",{className:\"btn-modal-document--title\",\"data-show\":$===\"document\"},\"Document\")),e(\"span\",{className:\"btn btn-modal btn-doc\",onClick:()=>O(\"SCHEMA\"),onMouseEnter:()=>u(\"document\"),onMouseLeave:()=>u(\"\")},e(\"span\",{className:\"btn-modal-title\"},\"Schema\"),e(Ie,null)),e(\"span\",{className:\"btn btn-modal btn-doc \",onClick:()=>O(\"ACT\"),onMouseEnter:()=>u(\"document\"),onMouseLeave:()=>u(\"\")},e(\"span\",{className:\"btn-modal-title\"},\"Act\"),e(xe,null))),q!==null&&e(nt,{toggle:R,title:q},q===\"HISTORY\"?e(Qe,{setFormFromHistory:P}):q===\"SETTING\"?e(rt,{configUrl:E}):q===\"E2E TEST\"?e(We,{baseUrl:L}):q===\"SCHEMA\"?e(ot,null):q===\"ACT\"?e(Pe,null):e(H,null)))};Ae(e(Ge,null,e(it,null)),document.getElementById(\"root\"));\n//# sourceMappingURL=bundle-es.js.map\n"; export const bundleCss = `/* css/index.css */ :root { @@ -217,9 +217,28 @@ textarea { justify-content: space-between; gap: 10px; width: 100%; + border: 1px solid bisque; + border-radius: 7px; + padding: 5px 10px 0 10px; + position: relative; + margin-top: 15px; } .sidebar__section-add-capture input { width: 50%; + border: none; + border-radius: 5px; + cursor: text; +} +.section-add-capture__delete-button { + position: absolute; + z-index: 2; + top: -12px; + right: 5px; + cursor: pointer; +} +.section-add-capture__delete-button svg { + border-radius: 50%; + backdrop-filter: blur(10px); } .btn { border: none; @@ -365,9 +384,10 @@ textarea { background-color: var(--color-colonial-2); color: white; } -@media (min-width: 1024px) and (max-width: 1440px) { +@media (min-width: 768px) and (max-width: 1440px) { .sidebar__section-add-capture { flex-direction: column; + padding: 15px 8px 8px 8px; } .sidebar__section-add-capture input { margin: 0; @@ -927,6 +947,7 @@ textarea { border: 1px solid bisque; backdrop-filter: blur(10px); border-top: none; + text-decoration-line: none; } .e2e-back-button.e2e-run-botton { background-color: darkslategray; @@ -1878,15 +1899,16 @@ textarea { .pagination > :is(button, span) { display: grid; place-items: center; - width: 30px; height: 30px; - padding: 0; + padding: 1px; border: 0; background: none; color: black; font-size: 12px; cursor: pointer; border-radius: 7px; + min-width: 30px; + max-width: 45px; } .pagination > button:not(span) { cursor: pointer;