import{atom}from"jotai";import{atomFamily}from"jotai/utils";import merge from"deepmerge";export function getDefaultOperationStore(e,t={}){return{activeExampleName:void 0,activeOneOf:{[e]:0},requestValues:t,request:{expandedAll:void 0},response:{expandedAll:void 0}}}export const allOperations=atom({});export const operationStore=atomFamily((e=>atom((t=>{var o;return(null===(o=t(allOperations))||void 0===o?void 0:o[e])||getDefaultOperationStore(e)}),((t,o,a)=>{const r=t(allOperations),i=r[e]||getDefaultOperationStore(e);o(allOperations,Object.assign(Object.assign({},r),{[e]:merge(i,a)}))}))));
//# sourceMappingURL=operation.js.map