{"version":3,"sources":["jsdelivr-header.js","/npm/@aws-amplify/amplify-nodejs-function-template-provider@2.10.18/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,wCAAqC,EAC7C,MAAM,qBAAuB,QAAQ,kCAC/B,eAAiB,QAAQ,4BACzB,qBAAuB,QAAQ,kCAC/B,kBAAoB,QAAQ,+BAC5B,qBAAuB,QAAQ,kCAC/B,yBAA2B,QAAQ,sCACnC,mCAAsC,IACjC,CACH,WAAa,IACT,OAAQ,EAAQ,WACZ,IAAK,cACD,OAAO,EAAI,qBAAqB,qBAEpC,IAAK,OACD,OAAO,EAAI,eAAe,aAAa,GAE3C,IAAK,aACD,OAAO,EAAI,qBAAqB,qBAEpC,IAAK,UACD,OAAO,EAAI,kBAAkB,gBAAgB,GAEjD,IAAK,cACD,OAAO,EAAI,qBAAqB,qBAEpC,IAAK,kBACD,OAAO,EAAI,yBAAyB,gBAAgB,GAExD,QACI,MAAM,IAAI,MAAM,+BAA+B,EAAQ,cAE/D,IAIZ,QAAQ,mCAAqC","file":"/npm/@aws-amplify/amplify-nodejs-function-template-provider@2.10.18/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@aws-amplify/amplify-nodejs-function-template-provider@2.10.18/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\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.functionTemplateContributorFactory = void 0;\nconst helloWorldProvider_1 = require(\"./providers/helloWorldProvider\");\nconst crudProvider_1 = require(\"./providers/crudProvider\");\nconst serverlessProvider_1 = require(\"./providers/serverlessProvider\");\nconst triggerProvider_1 = require(\"./providers/triggerProvider\");\nconst lambdaAuthProvider_1 = require(\"./providers/lambdaAuthProvider\");\nconst graphqlRequestProvider_1 = require(\"./providers/graphqlRequestProvider\");\nconst functionTemplateContributorFactory = (context) => {\n    return {\n        contribute: (request) => {\n            switch (request.selection) {\n                case 'hello-world': {\n                    return (0, helloWorldProvider_1.provideHelloWorld)();\n                }\n                case 'crud': {\n                    return (0, crudProvider_1.provideCrud)(context);\n                }\n                case 'serverless': {\n                    return (0, serverlessProvider_1.provideServerless)();\n                }\n                case 'trigger': {\n                    return (0, triggerProvider_1.provideTrigger)(context);\n                }\n                case 'lambda-auth': {\n                    return (0, lambdaAuthProvider_1.provideLambdaAuth)();\n                }\n                case 'appsync-request': {\n                    return (0, graphqlRequestProvider_1.graphqlRequest)(context);\n                }\n                default: {\n                    throw new Error(`Unknown template selection [${request.selection}]`);\n                }\n            }\n        },\n    };\n};\nexports.functionTemplateContributorFactory = functionTemplateContributorFactory;\n"]}