{"version":3,"sources":["jsdelivr-header.js","/npm/sp-context-helper@1.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,aACA,SAAS,cAAc,EAAQ,GAC3B,IAAI,EAAM,KACN,EAAO,KACP,EAAgB,KAChB,EAAiB,KAgBrB,OAdI,GADC,GAAU,EACK,GAAG,cAAc,cAGjB,IAAI,GAAG,cAAc,GAErC,GAEA,GADA,EAAiB,IAAI,GAAG,eAAe,EAAe,IACjC,UACrB,EAAO,EAAe,aAGtB,EAAM,EAAc,UACpB,EAAO,EAAc,YAElB,CACH,IAAK,EACL,KAAM,EACN,cAAe,EACf,eAAgB,EAExB,CACA,QAAQ,cAAgB","file":"/npm/sp-context-helper@1.0.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/sp-context-helper@1.0.3/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","/// <reference path=\"./typings/index.d.ts\"/>\r\n\"use strict\";\r\nfunction contextHelper(webUrl, isAppContextSite) {\r\n    var web = null;\r\n    var site = null;\r\n    var clientContext = null;\r\n    var appContextSite = null;\r\n    if (!webUrl || isAppContextSite) {\r\n        clientContext = SP.ClientContext.get_current();\r\n    }\r\n    else {\r\n        clientContext = new SP.ClientContext(webUrl);\r\n    }\r\n    if (isAppContextSite) {\r\n        appContextSite = new SP.AppContextSite(clientContext, webUrl);\r\n        web = appContextSite.get_web();\r\n        site = appContextSite.get_site();\r\n    }\r\n    else {\r\n        web = clientContext.get_web();\r\n        site = clientContext.get_site();\r\n    }\r\n    return {\r\n        web: web,\r\n        site: site,\r\n        clientContext: clientContext,\r\n        appContextSite: appContextSite\r\n    };\r\n}\r\nexports.contextHelper = contextHelper;\r\n"]}