"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.operationStore=exports.allOperations=void 0,exports.getDefaultOperationStore=getDefaultOperationStore;const jotai_1=require("jotai"),utils_1=require("jotai/utils"),deepmerge_1=__importDefault(require("deepmerge"));function getDefaultOperationStore(e,t={}){return{activeExampleName:void 0,activeOneOf:{[e]:0},requestValues:t,request:{expandedAll:void 0},response:{expandedAll:void 0}}}exports.allOperations=(0,jotai_1.atom)({}),exports.operationStore=(0,utils_1.atomFamily)((e=>(0,jotai_1.atom)((t=>{var o;return(null===(o=t(exports.allOperations))||void 0===o?void 0:o[e])||getDefaultOperationStore(e)}),((t,o,r)=>{const a=t(exports.allOperations),i=a[e]||getDefaultOperationStore(e);o(exports.allOperations,Object.assign(Object.assign({},a),{[e]:(0,deepmerge_1.default)(i,r)}))}))));
//# sourceMappingURL=operation.js.map