{
  "version": 3,
  "sources": ["../../src/document/utils/isEditingText.ts", "../../src/app/agent/hooks/useDimensionValue.ts"],
  "sourcesContent": ["export function isEditingText() {\n\tlet { activeElement } = document\n\tif (activeElement instanceof HTMLIFrameElement && activeElement.contentWindow) {\n\t\ttry {\n\t\t\t// Something in the iframe is active. Try and access the inner\n\t\t\t// active element. We use a try/catch block here because the iframe\n\t\t\t// may restrict access and throw an error.\n\t\t\tactiveElement = activeElement.contentWindow.document.activeElement\n\t\t} catch (err) {\n\t\t\t// If we can't tell what's going on in the iframe assume it's\n\t\t\t// editing text.\n\t\t\tif (err instanceof DOMException) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t\tthrow err\n\t\t}\n\t}\n\tif (!activeElement) return false\n\t// Return true if the active element owns keyboard events at the moment.\n\treturn (\n\t\tactiveElement.nodeName === \"INPUT\" ||\n\t\tactiveElement.nodeName === \"TEXTAREA\" ||\n\t\t(activeElement as HTMLElement).isContentEditable\n\t)\n}\n", "// src/app/vekter/src/app/agent/hooks/useDimensionValue.ts\n\nimport { dimensions } from \"@framerjs/fresco/tokens\"\nimport { type AgentDimensionOverrides, agentDimensionTokenOverrides } from \"app/agent/utils/dimensions.ts\"\nimport { useExperimentIsOn } from \"app/experiments.ts\"\n\n/**\n * Returns the dimension value, using agent overrides when the experiment is enabled.\n * TODO: Remove this hook once the agent experiment is removed.\n */\nexport function useDimensionValue(key: keyof AgentDimensionOverrides): number {\n\tconst isAgentExperimentOn = useExperimentIsOn(\"agent\")\n\tconst value = isAgentExperimentOn ? agentDimensionTokenOverrides[key] : dimensions.values[key]\n\treturn value ?? dimensions.values[key]\n}\n"],
  "mappings": ";;;;;;;;;;;AAAO,SAAS,gBAAgB;AAC/B,MAAI,EAAE,cAAc,IAAI;AACxB,MAAI,yBAAyB,qBAAqB,cAAc,eAAe;AAC9E,QAAI;AAIH,sBAAgB,cAAc,cAAc,SAAS;AAAA,IACtD,SAAS,KAAK;AAGb,UAAI,eAAe,cAAc;AAChC,eAAO;AAAA,MACR;AACA,YAAM;AAAA,IACP;AAAA,EACD;AACA,MAAI,CAAC,cAAe,QAAO;AAE3B,SACC,cAAc,aAAa,WAC3B,cAAc,aAAa,cAC1B,cAA8B;AAEjC;;;ACdO,SAAS,kBAAkB,KAA4C;AAC7E,QAAM,sBAAsB,kBAAkB,OAAO;AACrD,QAAM,QAAQ,sBAAsB,6BAA6B,GAAG,IAAI,WAAW,OAAO,GAAG;AAC7F,SAAO,SAAS,WAAW,OAAO,GAAG;AACtC;",
  "names": []
}
