{"version":3,"sources":["jsdelivr-header.js","/npm/gqlgen@0.1.17/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,MAAM,UAAY,QAAQ,kBACpB,OAAS,QAAQ,QACjB,MAAQ,QAAQ,SACtB,MAAM,eAAe,UAAU,QAC3B,SAAM,GACF,MAAM,MAAE,GAAU,KAAK,MAAM,SACvB,OAAE,GAAW,EACnB,IAAK,EACD,MAAM,IAAI,MAAM,uBACpB,MAAM,EAAa,OAAO,WAAW,GAAU,EAAS,OAAO,KAAK,QAAQ,MAAO,GACnF,IACI,MAAM,EAAY,QAAQ,IACpB,kBAAE,EAAiB,WAAE,EAAa,gBAAe,cAAE,GAAgB,EAAI,gBAAE,GAAkB,EAAK,iBAAE,GAAmB,EAAK,MAAE,EAAK,SAAE,EAAQ,UAAE,EAAS,QAAE,EAAO,UAAE,EAAS,UAAE,EAAY,GAAE,kBAAE,EAAoB,GAAO,EACzN,GACA,MAAM,YAAY,EAAW,GACjC,MAAM,kBAAkB,GACxB,MAAM,cAAc,EAAY,EAAmB,IAAI,KAAa,GAAY,GAChF,MAAM,YAAY,EAAY,EAAmB,EAAO,GACxD,MAAM,kBAAkB,EAAY,EAAmB,EAAS,GAChE,MAAM,gBACF,IACA,MAAM,yBACN,MAAM,wBAEN,IACA,MAAM,0BACN,MAAM,wBAEd,CACA,MAAO,GACH,QAAQ,IAAI,SAAU,EAC1B,CACJ,EAEJ,OAAO,YAAc,4BACrB,OAAO,MAAQ,CAEX,QAAS,UAAU,MAAM,QAAQ,CAAE,KAAM,MACzC,KAAM,UAAU,MAAM,KAAK,CAAE,KAAM,MAEnC,OAAQ,UAAU,MAAM,OAAO,CAAE,KAAM,IAAK,YAAa,sBAE7D,OAAO,QAAU","file":"/npm/gqlgen@0.1.17/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/gqlgen@0.1.17/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nconst command_1 = require(\"@oclif/command\");\nconst path_1 = require(\"path\");\nconst lib_1 = require(\"./lib\");\nclass Gqlgen extends command_1.Command {\n    async run() {\n        const { flags } = this.parse(Gqlgen);\n        const { config } = flags;\n        if (!config)\n            throw new Error('Require config file');\n        const configPath = path_1.isAbsolute(config) ? config : path_1.join(process.cwd(), config);\n        try {\n            const useConfig = require(configPath);\n            const { gqlConstantModule, httpModule = 'stook-graphql', isGenerateGql = true, isGenerateModal = false, isGenerateDrawer = false, query, useQuery, useMutate, refetch, customGql, commonGql = [], defaultDepthLimit = 2, } = useConfig;\n            if (isGenerateGql)\n                lib_1.generateGql(commonGql, defaultDepthLimit);\n            lib_1.generateCustomGql(customGql);\n            lib_1.generateHooks(httpModule, gqlConstantModule, [...useQuery, ...useMutate], customGql);\n            lib_1.generateApi(httpModule, gqlConstantModule, query, customGql);\n            lib_1.generateRefetcher(httpModule, gqlConstantModule, refetch, customGql);\n            lib_1.generateStore();\n            if (isGenerateModal) {\n                lib_1.generateModalContainer();\n                lib_1.generateModalService();\n            }\n            if (isGenerateDrawer) {\n                lib_1.generateDrawerContainer();\n                lib_1.generateDrawerService();\n            }\n        }\n        catch (error) {\n            console.log('error:', error);\n        }\n    }\n}\nGqlgen.description = 'describe the command here';\nGqlgen.flags = {\n    // add --version flag to show CLI version\n    version: command_1.flags.version({ char: 'v' }),\n    help: command_1.flags.help({ char: 'h' }),\n    // flag with a value (-n, --name=VALUE)\n    config: command_1.flags.string({ char: 'c', description: 'config file path' }),\n};\nmodule.exports = Gqlgen;\n"]}