{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/CFusrrqWumpFkCGwJnoH/WvtQK65jfoC0WLTNgfqc/Workflows.js"],
  "sourcesContent": ["/**\n * --------------------------------------------------------------------\n * Gleap: Workflows\n * --------------------------------------------------------------------\n * Distributed under the VIAL License:\n * https://www.abruptive.com/policies/vial\n *\n * Unauthorized access or use of this code will result in prosecution\n * according to the furthest extent of the law.\n *\n * \u00A9 Abruptive LLC \u00B7 All Rights Reserved\n * --------------------------------------------------------------------\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{isFramer}from\"https://framerusercontent.com/modules/xbyJH4uSP5O2i9iSVF4l/fg7F3p3RZkV7E75utsdW/core.js\";/**\n * --------------------------------------------------------------------\n * Config\n * --------------------------------------------------------------------\n */const workflows={sales:\"67a76e3b9143c6a3776d2c30\",enterprise:\"678fc6d21e3979643605d4e3\",violation:\"67a76ed1734234def7c4f79c\",requestApp:\"67c4735341efd8b024fb2629\",requestAgent:\"66a57ceb8cfd35c09c367112\",requestCreator:\"66a57fb75e5ec8db3d9e3928\",resourceRequest:\"67e6f77a2bc1f11c8b91dea3\",resourceContributor:\"67e6f82be3fde7336dd4d011\"};/**\n * --------------------------------------------------------------------\n * Functions\n * --------------------------------------------------------------------\n *//**\n * Higher-order component factory that adds a workflow-starting onClick event to a component.\n */const withWorkflow=workflowId=>Component=>{if(isFramer){return props=>/*#__PURE__*/_jsx(Component,{...props});}const onClick=e=>{window.Gleap.startBot(workflowId);e.preventDefault();return false;};return props=>/*#__PURE__*/_jsx(\"span\",{onClick:onClick,children:/*#__PURE__*/_jsx(Component,{...props})});};/**\n * --------------------------------------------------------------------\n * Overrides\n * --------------------------------------------------------------------\n *//**\n * Start the sales workflow.\n */export function startWorkflowSales(Component){return withWorkflow(workflows.sales)(Component);}/**\n * Start the Gleap Enterprise workflow.\n */export function startWorkflowEnterprise(Component){return withWorkflow(workflows.enterprise)(Component);}/**\n * Start the Gleap Enterprise workflow.\n */export function startWorkflowViolation(Component){return withWorkflow(workflows.violation)(Component);}/**\n * Start the \"Request an App\" workflow.\n */export function startWorkflowRequestApp(Component){return withWorkflow(workflows.requestApp)(Component);}/**\n * Start the \"Request an Agent\" workflow.\n */export function startWorkflowRequestAgent(Component){return withWorkflow(workflows.requestAgent)(Component);}/**\n * Start the \"Become a Creator\" workflow.\n */export function startWorkflowRequestCreator(Component){return withWorkflow(workflows.requestCreator)(Component);}/**\n * Start the \"Request a Resource\" workflow.\n */export function startWorkflowRequestResource(Component){return withWorkflow(workflows.resourceRequest)(Component);}/**\n * Start the \"Request Contributor Access\" workflow.\n */export function startWorkflowRequestResourceContributor(Component){return withWorkflow(workflows.resourceContributor)(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"startWorkflowRequestResource\":{\"type\":\"reactHoc\",\"name\":\"startWorkflowRequestResource\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startWorkflowRequestApp\":{\"type\":\"reactHoc\",\"name\":\"startWorkflowRequestApp\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startWorkflowRequestAgent\":{\"type\":\"reactHoc\",\"name\":\"startWorkflowRequestAgent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startWorkflowEnterprise\":{\"type\":\"reactHoc\",\"name\":\"startWorkflowEnterprise\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startWorkflowRequestResourceContributor\":{\"type\":\"reactHoc\",\"name\":\"startWorkflowRequestResourceContributor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startWorkflowRequestCreator\":{\"type\":\"reactHoc\",\"name\":\"startWorkflowRequestCreator\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startWorkflowSales\":{\"type\":\"reactHoc\",\"name\":\"startWorkflowSales\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"startWorkflowViolation\":{\"type\":\"reactHoc\",\"name\":\"startWorkflowViolation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "4HAgBG,IAAMA,EAAU,CAAC,MAAM,2BAA2B,WAAW,2BAA2B,UAAU,2BAA2B,WAAW,2BAA2B,aAAa,2BAA2B,eAAe,2BAA2B,gBAAgB,2BAA2B,oBAAoB,0BAA0B,EAMxUC,EAAaC,GAAYC,GAAW,CAAC,GAAGC,EAAU,OAAOC,GAAoBC,EAAKH,EAAU,CAAC,GAAGE,CAAK,CAAC,EAAG,IAAME,EAAQC,IAAIC,EAAO,MAAM,SAASP,CAAU,EAAEM,EAAE,eAAe,EAAS,IAAQ,OAAOH,GAAoBC,EAAK,OAAO,CAAC,QAAQC,EAAQ,SAAsBD,EAAKH,EAAU,CAAC,GAAGE,CAAK,CAAC,CAAC,CAAC,CAAE,EAMzS,SAASK,EAAmBP,EAAU,CAAC,OAAOF,EAAaD,EAAU,KAAK,EAAEG,CAAS,CAAE,CAEvF,SAASQ,EAAwBR,EAAU,CAAC,OAAOF,EAAaD,EAAU,UAAU,EAAEG,CAAS,CAAE,CAEjG,SAASS,EAAuBT,EAAU,CAAC,OAAOF,EAAaD,EAAU,SAAS,EAAEG,CAAS,CAAE,CAE/F,SAASU,EAAwBV,EAAU,CAAC,OAAOF,EAAaD,EAAU,UAAU,EAAEG,CAAS,CAAE,CAEjG,SAASW,EAA0BX,EAAU,CAAC,OAAOF,EAAaD,EAAU,YAAY,EAAEG,CAAS,CAAE,CAErG,SAASY,EAA4BZ,EAAU,CAAC,OAAOF,EAAaD,EAAU,cAAc,EAAEG,CAAS,CAAE,CAEzG,SAASa,EAA6Bb,EAAU,CAAC,OAAOF,EAAaD,EAAU,eAAe,EAAEG,CAAS,CAAE,CAE3G,SAASc,EAAwCd,EAAU,CAAC,OAAOF,EAAaD,EAAU,mBAAmB,EAAEG,CAAS,CAAE",
  "names": ["workflows", "withWorkflow", "workflowId", "Component", "isFramer", "props", "p", "onClick", "e", "window", "startWorkflowSales", "startWorkflowEnterprise", "startWorkflowViolation", "startWorkflowRequestApp", "startWorkflowRequestAgent", "startWorkflowRequestCreator", "startWorkflowRequestResource", "startWorkflowRequestResourceContributor"]
}
