@burdenoff/microfe-healthybowl 2026.710.16 → 2026.710.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { useCallback as t } from "react";
3
3
  import { gql as n } from "@apollo/client";
4
4
  import { useMutation as r, useQuery as i } from "@apollo/client/react";
5
5
  //#region src/healthybowl/hooks/usePlantCatalog.ts
6
- var a = "\n id\n name\n category\n variety\n plantSpacingCm\n rowSpacingCm\n daysToMaturity\n notes\n", o = n`
6
+ var a = "\n id\n name\n category\n variety\n plantSpacingCm\n rowSpacingCm\n daysToMaturity\n seedsPerGram\n germinationRate\n seedsPerCell\n organicSuitable\n notes\n", o = n`
7
7
  query HealthyBowlPlantCatalog($context: ContextInput!) {
8
8
  healthyBowlPlantCatalog(context: $context) {
9
9
  ${a}
@@ -1 +1 @@
1
- {"version":3,"file":"usePlantCatalog.js","names":[],"sources":["../../../src/healthybowl/hooks/usePlantCatalog.ts"],"sourcesContent":["/**\n * Master Plant List (variety catalog) data hook.\n *\n * The offline codegen doesn't type the PlantCatalog operations, so — mirroring\n * the raw-gql pattern used for `updateHealthyBowlField` in `FieldMap.tsx` — these\n * are hand-written `gql` documents executed directly against the live gateway.\n * @module healthybowl\n */\nimport { useCallback } from 'react';\nimport { gql } from '@apollo/client';\nimport { useMutation, useQuery } from '@apollo/client/react';\nimport { useHealthyBowl } from '../context/HealthyBowlContext';\n\n/** A single entry in the Master Plant List (editable variety catalog with spacing). */\nexport interface PlantCatalogEntry {\n id: string;\n name: string;\n category?: string | null;\n variety?: string | null;\n plantSpacingCm?: number | null;\n rowSpacingCm?: number | null;\n daysToMaturity?: number | null;\n notes?: string | null;\n}\n\n/** Editable fields for create/update (context is attached from the hook). */\nexport interface PlantCatalogInput {\n name: string;\n category?: string | null;\n variety?: string | null;\n plantSpacingCm?: number | null;\n rowSpacingCm?: number | null;\n daysToMaturity?: number | null;\n notes?: string | null;\n}\n\nconst CATALOG_FIELDS = `\n id\n name\n category\n variety\n plantSpacingCm\n rowSpacingCm\n daysToMaturity\n notes\n`;\n\nconst PLANT_CATALOG_QUERY = gql`\n query HealthyBowlPlantCatalog($context: ContextInput!) {\n healthyBowlPlantCatalog(context: $context) {\n ${CATALOG_FIELDS}\n }\n }\n`;\n\nconst CREATE_PLANT_CATALOG = gql`\n mutation CreateHealthyBowlPlantCatalogEntry($input: CreateHealthyBowlPlantCatalogInput!) {\n createHealthyBowlPlantCatalogEntry(input: $input) {\n ${CATALOG_FIELDS}\n }\n }\n`;\n\nconst UPDATE_PLANT_CATALOG = gql`\n mutation UpdateHealthyBowlPlantCatalogEntry($input: UpdateHealthyBowlPlantCatalogInput!) {\n updateHealthyBowlPlantCatalogEntry(input: $input) {\n ${CATALOG_FIELDS}\n }\n }\n`;\n\nconst DELETE_PLANT_CATALOG = gql`\n mutation DeleteHealthyBowlPlantCatalogEntry($id: ID!, $context: ContextInput!) {\n deleteHealthyBowlPlantCatalogEntry(id: $id, context: $context)\n }\n`;\n\ninterface CatalogQueryData {\n healthyBowlPlantCatalog: PlantCatalogEntry[];\n}\n\n/**\n * Loads the Master Plant List for the active workspace and exposes create /\n * update / delete helpers. Mutations refetch the list so the caller's view stays\n * in sync without hand-managing the cache.\n */\nexport function usePlantCatalog() {\n const { workspaceId } = useHealthyBowl();\n const context = { workspaceId };\n\n const { data, loading, error, refetch } = useQuery<CatalogQueryData>(PLANT_CATALOG_QUERY, {\n variables: { context },\n skip: !workspaceId,\n fetchPolicy: 'cache-and-network',\n notifyOnNetworkStatusChange: true,\n });\n\n const [createMutation] = useMutation(CREATE_PLANT_CATALOG);\n const [updateMutation] = useMutation(UPDATE_PLANT_CATALOG);\n const [deleteMutation] = useMutation(DELETE_PLANT_CATALOG);\n\n const createEntry = useCallback(\n async (input: PlantCatalogInput) => {\n await createMutation({ variables: { input: { ...input, context } } });\n await refetch();\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [createMutation, refetch, workspaceId]\n );\n\n const updateEntry = useCallback(\n async (id: string, input: PlantCatalogInput) => {\n await updateMutation({ variables: { input: { id, ...input, context } } });\n await refetch();\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [updateMutation, refetch, workspaceId]\n );\n\n const deleteEntry = useCallback(\n async (id: string) => {\n await deleteMutation({ variables: { id, context } });\n await refetch();\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [deleteMutation, refetch, workspaceId]\n );\n\n return {\n entries: data?.healthyBowlPlantCatalog ?? [],\n loading,\n error,\n refetch,\n createEntry,\n updateEntry,\n deleteEntry,\n };\n}\n"],"mappings":";;;;;AAoCA,IAAM,IAAiB,wGAWjB,IAAsB,CAAG;;;QAGvB,EAAe;;;GAKjB,IAAuB,CAAG;;;QAGxB,EAAe;;;GAKjB,IAAuB,CAAG;;;QAGxB,EAAe;;;GAKjB,IAAuB,CAAG;;;;;AAehC,SAAgB,IAAkB;CAChC,IAAM,EAAE,mBAAgB,GAAgB,EAClC,IAAU,EAAE,gBAAa,EAEzB,EAAE,SAAM,YAAS,UAAO,eAAY,EAA2B,GAAqB;EACxF,WAAW,EAAE,YAAS;EACtB,MAAM,CAAC;EACP,aAAa;EACb,6BAA6B;EAC9B,CAAC,EAEI,CAAC,KAAkB,EAAY,EAAqB,EACpD,CAAC,KAAkB,EAAY,EAAqB,EACpD,CAAC,KAAkB,EAAY,EAAqB,EAEpD,IAAc,EAClB,OAAO,MAA6B;AAElC,EADA,MAAM,EAAe,EAAE,WAAW,EAAE,OAAO;GAAE,GAAG;GAAO;GAAS,EAAE,EAAE,CAAC,EACrE,MAAM,GAAS;IAGjB;EAAC;EAAgB;EAAS;EAAY,CACvC,EAEK,IAAc,EAClB,OAAO,GAAY,MAA6B;AAE9C,EADA,MAAM,EAAe,EAAE,WAAW,EAAE,OAAO;GAAE;GAAI,GAAG;GAAO;GAAS,EAAE,EAAE,CAAC,EACzE,MAAM,GAAS;IAGjB;EAAC;EAAgB;EAAS;EAAY,CACvC,EAEK,IAAc,EAClB,OAAO,MAAe;AAEpB,EADA,MAAM,EAAe,EAAE,WAAW;GAAE;GAAI;GAAS,EAAE,CAAC,EACpD,MAAM,GAAS;IAGjB;EAAC;EAAgB;EAAS;EAAY,CACvC;AAED,QAAO;EACL,SAAS,GAAM,2BAA2B,EAAE;EAC5C;EACA;EACA;EACA;EACA;EACA;EACD"}
1
+ {"version":3,"file":"usePlantCatalog.js","names":[],"sources":["../../../src/healthybowl/hooks/usePlantCatalog.ts"],"sourcesContent":["/**\n * Master Plant List (variety catalog) data hook.\n *\n * The offline codegen doesn't type the PlantCatalog operations, so — mirroring\n * the raw-gql pattern used for `updateHealthyBowlField` in `FieldMap.tsx` — these\n * are hand-written `gql` documents executed directly against the live gateway.\n * @module healthybowl\n */\nimport { useCallback } from 'react';\nimport { gql } from '@apollo/client';\nimport { useMutation, useQuery } from '@apollo/client/react';\nimport { useHealthyBowl } from '../context/HealthyBowlContext';\n\n/** A single entry in the Master Plant List (editable variety catalog with spacing). */\nexport interface PlantCatalogEntry {\n id: string;\n name: string;\n category?: string | null;\n variety?: string | null;\n plantSpacingCm?: number | null;\n rowSpacingCm?: number | null;\n daysToMaturity?: number | null;\n /** Approximate seed count per gram (seed-rate input). */\n seedsPerGram?: number | null;\n /** Germination rate as a fraction in [0, 1] (e.g. 0.85 = 85%). */\n germinationRate?: number | null;\n /** Seeds sown per nursery cell/plug when raising transplants. */\n seedsPerCell?: number | null;\n /** Whether the variety is suitable for organic production. */\n organicSuitable?: boolean | null;\n notes?: string | null;\n}\n\n/** Editable fields for create/update (context is attached from the hook). */\nexport interface PlantCatalogInput {\n name: string;\n category?: string | null;\n variety?: string | null;\n plantSpacingCm?: number | null;\n rowSpacingCm?: number | null;\n daysToMaturity?: number | null;\n seedsPerGram?: number | null;\n germinationRate?: number | null;\n seedsPerCell?: number | null;\n organicSuitable?: boolean | null;\n notes?: string | null;\n}\n\nconst CATALOG_FIELDS = `\n id\n name\n category\n variety\n plantSpacingCm\n rowSpacingCm\n daysToMaturity\n seedsPerGram\n germinationRate\n seedsPerCell\n organicSuitable\n notes\n`;\n\nconst PLANT_CATALOG_QUERY = gql`\n query HealthyBowlPlantCatalog($context: ContextInput!) {\n healthyBowlPlantCatalog(context: $context) {\n ${CATALOG_FIELDS}\n }\n }\n`;\n\nconst CREATE_PLANT_CATALOG = gql`\n mutation CreateHealthyBowlPlantCatalogEntry($input: CreateHealthyBowlPlantCatalogInput!) {\n createHealthyBowlPlantCatalogEntry(input: $input) {\n ${CATALOG_FIELDS}\n }\n }\n`;\n\nconst UPDATE_PLANT_CATALOG = gql`\n mutation UpdateHealthyBowlPlantCatalogEntry($input: UpdateHealthyBowlPlantCatalogInput!) {\n updateHealthyBowlPlantCatalogEntry(input: $input) {\n ${CATALOG_FIELDS}\n }\n }\n`;\n\nconst DELETE_PLANT_CATALOG = gql`\n mutation DeleteHealthyBowlPlantCatalogEntry($id: ID!, $context: ContextInput!) {\n deleteHealthyBowlPlantCatalogEntry(id: $id, context: $context)\n }\n`;\n\ninterface CatalogQueryData {\n healthyBowlPlantCatalog: PlantCatalogEntry[];\n}\n\n/**\n * Loads the Master Plant List for the active workspace and exposes create /\n * update / delete helpers. Mutations refetch the list so the caller's view stays\n * in sync without hand-managing the cache.\n */\nexport function usePlantCatalog() {\n const { workspaceId } = useHealthyBowl();\n const context = { workspaceId };\n\n const { data, loading, error, refetch } = useQuery<CatalogQueryData>(PLANT_CATALOG_QUERY, {\n variables: { context },\n skip: !workspaceId,\n fetchPolicy: 'cache-and-network',\n notifyOnNetworkStatusChange: true,\n });\n\n const [createMutation] = useMutation(CREATE_PLANT_CATALOG);\n const [updateMutation] = useMutation(UPDATE_PLANT_CATALOG);\n const [deleteMutation] = useMutation(DELETE_PLANT_CATALOG);\n\n const createEntry = useCallback(\n async (input: PlantCatalogInput) => {\n await createMutation({ variables: { input: { ...input, context } } });\n await refetch();\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [createMutation, refetch, workspaceId]\n );\n\n const updateEntry = useCallback(\n async (id: string, input: PlantCatalogInput) => {\n await updateMutation({ variables: { input: { id, ...input, context } } });\n await refetch();\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [updateMutation, refetch, workspaceId]\n );\n\n const deleteEntry = useCallback(\n async (id: string) => {\n await deleteMutation({ variables: { id, context } });\n await refetch();\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [deleteMutation, refetch, workspaceId]\n );\n\n return {\n entries: data?.healthyBowlPlantCatalog ?? [],\n loading,\n error,\n refetch,\n createEntry,\n updateEntry,\n deleteEntry,\n };\n}\n"],"mappings":";;;;;AAgDA,IAAM,IAAiB,8KAejB,IAAsB,CAAG;;;QAGvB,EAAe;;;GAKjB,IAAuB,CAAG;;;QAGxB,EAAe;;;GAKjB,IAAuB,CAAG;;;QAGxB,EAAe;;;GAKjB,IAAuB,CAAG;;;;;AAehC,SAAgB,IAAkB;CAChC,IAAM,EAAE,mBAAgB,GAAgB,EAClC,IAAU,EAAE,gBAAa,EAEzB,EAAE,SAAM,YAAS,UAAO,eAAY,EAA2B,GAAqB;EACxF,WAAW,EAAE,YAAS;EACtB,MAAM,CAAC;EACP,aAAa;EACb,6BAA6B;EAC9B,CAAC,EAEI,CAAC,KAAkB,EAAY,EAAqB,EACpD,CAAC,KAAkB,EAAY,EAAqB,EACpD,CAAC,KAAkB,EAAY,EAAqB,EAEpD,IAAc,EAClB,OAAO,MAA6B;AAElC,EADA,MAAM,EAAe,EAAE,WAAW,EAAE,OAAO;GAAE,GAAG;GAAO;GAAS,EAAE,EAAE,CAAC,EACrE,MAAM,GAAS;IAGjB;EAAC;EAAgB;EAAS;EAAY,CACvC,EAEK,IAAc,EAClB,OAAO,GAAY,MAA6B;AAE9C,EADA,MAAM,EAAe,EAAE,WAAW,EAAE,OAAO;GAAE;GAAI,GAAG;GAAO;GAAS,EAAE,EAAE,CAAC,EACzE,MAAM,GAAS;IAGjB;EAAC;EAAgB;EAAS;EAAY,CACvC,EAEK,IAAc,EAClB,OAAO,MAAe;AAEpB,EADA,MAAM,EAAe,EAAE,WAAW;GAAE;GAAI;GAAS,EAAE,CAAC,EACpD,MAAM,GAAS;IAGjB;EAAC;EAAgB;EAAS;EAAY,CACvC;AAED,QAAO;EACL,SAAS,GAAM,2BAA2B,EAAE;EAC5C;EACA;EACA;EACA;EACA;EACA;EACD"}
@@ -0,0 +1,81 @@
1
+ import { useHealthyBowl as e } from "../context/HealthyBowlContext.js";
2
+ import { useCallback as t, useMemo as n } from "react";
3
+ import { gql as r } from "@apollo/client";
4
+ import { useMutation as i, useQuery as a } from "@apollo/client/react";
5
+ //#region src/healthybowl/hooks/useSuccessionPlanning.ts
6
+ var o = "\n id\n cropId\n fieldId\n cropName\n season\n startDate\n sowDate\n status\n bedId\n plantCatalogId\n plantsNeeded\n seedGrams\n seedlingsToRaise\n successionGroupId\n successionIndex\n", s = r`
7
+ query HealthyBowlSuccessionPlans($context: ContextInput!) {
8
+ getHealthyBowlCropsData(context: $context) {
9
+ plantingPlans {
10
+ ${o}
11
+ }
12
+ }
13
+ }
14
+ `, c = r`
15
+ query HealthyBowlBedsForSuccession($context: ContextInput!, $fieldId: ID) {
16
+ healthyBowlBeds(context: $context, fieldId: $fieldId) {
17
+ id
18
+ name
19
+ }
20
+ }
21
+ `, l = r`
22
+ mutation CreateHealthyBowlSuccessionPlan($input: CreateHealthyBowlSuccessionPlanInput!) {
23
+ createHealthyBowlSuccessionPlan(input: $input) {
24
+ ${o}
25
+ }
26
+ }
27
+ `, u = r`
28
+ mutation DeleteHealthyBowlPlantingPlanFromSuccession($id: ID!, $context: ContextInput!) {
29
+ deleteHealthyBowlPlantingPlan(id: $id, context: $context)
30
+ }
31
+ `;
32
+ function d(r) {
33
+ let { workspaceId: o } = e(), d = { workspaceId: o }, { data: f, loading: p, error: m, refetch: h } = a(s, {
34
+ variables: { context: d },
35
+ skip: !o,
36
+ fetchPolicy: "cache-and-network",
37
+ notifyOnNetworkStatusChange: !0
38
+ }), { data: g } = a(c, {
39
+ variables: {
40
+ context: d,
41
+ fieldId: r
42
+ },
43
+ skip: !o || !r,
44
+ fetchPolicy: "cache-and-network"
45
+ }), [_] = i(l), [v] = i(u), y = n(() => (f?.getHealthyBowlCropsData?.plantingPlans ?? []).filter((e) => e.fieldId === r && e.successionGroupId != null).sort((e, t) => {
46
+ let n = String(e.successionGroupId).localeCompare(String(t.successionGroupId));
47
+ return n === 0 ? (e.successionIndex ?? 0) - (t.successionIndex ?? 0) : n;
48
+ }), [f, r]), b = t(async (e) => {
49
+ let t = await _({ variables: { input: {
50
+ ...e,
51
+ context: d
52
+ } } });
53
+ return await h(), t.data?.createHealthyBowlSuccessionPlan ?? [];
54
+ }, [
55
+ _,
56
+ h,
57
+ o
58
+ ]), x = t(async (e) => {
59
+ await v({ variables: {
60
+ id: e,
61
+ context: d
62
+ } }), await h();
63
+ }, [
64
+ v,
65
+ h,
66
+ o
67
+ ]);
68
+ return {
69
+ successionPlans: y,
70
+ beds: g?.healthyBowlBeds ?? [],
71
+ loading: p,
72
+ error: m,
73
+ refetch: h,
74
+ createSuccession: b,
75
+ deletePlan: x
76
+ };
77
+ }
78
+ //#endregion
79
+ export { d as useSuccessionPlanning };
80
+
81
+ //# sourceMappingURL=useSuccessionPlanning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSuccessionPlanning.js","names":[],"sources":["../../../src/healthybowl/hooks/useSuccessionPlanning.ts"],"sourcesContent":["/**\n * Succession-planting data hook (roadmap I-6).\n *\n * The offline codegen doesn't type the succession/bed operations, so — mirroring\n * the raw-gql pattern used for the Master Plant List and field boundaries — these\n * are hand-written `gql` documents executed directly against the live gateway.\n *\n * Existing plans are read from `getHealthyBowlCropsData.plantingPlans` (the only\n * place plantingPlans is exposed) and filtered to this field client-side.\n * @module healthybowl\n */\nimport { useCallback, useMemo } from 'react';\nimport { gql } from '@apollo/client';\nimport { useMutation, useQuery } from '@apollo/client/react';\nimport { useHealthyBowl } from '../context/HealthyBowlContext';\n\n/** A planting plan row with the succession + seed-rate fields we care about. */\nexport interface SuccessionPlan {\n id: string;\n cropId?: string | null;\n fieldId?: string | null;\n cropName: string;\n season: string;\n startDate: string;\n sowDate?: string | null;\n status: string;\n bedId?: string | null;\n plantCatalogId?: string | null;\n plantsNeeded?: number | null;\n seedGrams?: number | null;\n seedlingsToRaise?: number | null;\n successionGroupId?: string | null;\n successionIndex?: number | null;\n}\n\n/** A bed on this field, for the optional succession bed selector. */\nexport interface FieldBed {\n id: string;\n name: string;\n}\n\n/** Input for a succession series (context is attached from the hook). */\nexport interface SuccessionInput {\n fieldId: string;\n bedId?: string | null;\n cropId?: string | null;\n plantCatalogId?: string | null;\n season?: string | null;\n year: number;\n startDate: string;\n intervalDays: number;\n count: number;\n plantsNeeded?: number | null;\n seedGrams?: number | null;\n seedlingsToRaise?: number | null;\n density?: number | null;\n notes?: string | null;\n}\n\nconst PLAN_FIELDS = `\n id\n cropId\n fieldId\n cropName\n season\n startDate\n sowDate\n status\n bedId\n plantCatalogId\n plantsNeeded\n seedGrams\n seedlingsToRaise\n successionGroupId\n successionIndex\n`;\n\nconst PLANS_QUERY = gql`\n query HealthyBowlSuccessionPlans($context: ContextInput!) {\n getHealthyBowlCropsData(context: $context) {\n plantingPlans {\n ${PLAN_FIELDS}\n }\n }\n }\n`;\n\nconst BEDS_QUERY = gql`\n query HealthyBowlBedsForSuccession($context: ContextInput!, $fieldId: ID) {\n healthyBowlBeds(context: $context, fieldId: $fieldId) {\n id\n name\n }\n }\n`;\n\nconst CREATE_SUCCESSION = gql`\n mutation CreateHealthyBowlSuccessionPlan($input: CreateHealthyBowlSuccessionPlanInput!) {\n createHealthyBowlSuccessionPlan(input: $input) {\n ${PLAN_FIELDS}\n }\n }\n`;\n\nconst DELETE_PLAN = gql`\n mutation DeleteHealthyBowlPlantingPlanFromSuccession($id: ID!, $context: ContextInput!) {\n deleteHealthyBowlPlantingPlan(id: $id, context: $context)\n }\n`;\n\ninterface PlansQueryData {\n getHealthyBowlCropsData: { plantingPlans: SuccessionPlan[] };\n}\ninterface BedsQueryData {\n healthyBowlBeds: FieldBed[];\n}\n\n/**\n * Loads succession plans + beds for one field and exposes create/delete helpers.\n * Only plans with a `successionGroupId` that belong to `fieldId` are returned,\n * already sorted by group then by succession index.\n */\nexport function useSuccessionPlanning(fieldId: string | undefined) {\n const { workspaceId } = useHealthyBowl();\n const context = { workspaceId };\n\n const {\n data: plansData,\n loading,\n error,\n refetch,\n } = useQuery<PlansQueryData>(PLANS_QUERY, {\n variables: { context },\n skip: !workspaceId,\n fetchPolicy: 'cache-and-network',\n notifyOnNetworkStatusChange: true,\n });\n\n const { data: bedsData } = useQuery<BedsQueryData>(BEDS_QUERY, {\n variables: { context, fieldId },\n skip: !workspaceId || !fieldId,\n fetchPolicy: 'cache-and-network',\n });\n\n const [createMutation] = useMutation(CREATE_SUCCESSION);\n const [deleteMutation] = useMutation(DELETE_PLAN);\n\n const successionPlans = useMemo(() => {\n const all = plansData?.getHealthyBowlCropsData?.plantingPlans ?? [];\n return all\n .filter((p) => p.fieldId === fieldId && p.successionGroupId != null)\n .sort((a, b) => {\n const group = String(a.successionGroupId).localeCompare(String(b.successionGroupId));\n if (group !== 0) return group;\n return (a.successionIndex ?? 0) - (b.successionIndex ?? 0);\n });\n }, [plansData, fieldId]);\n\n const createSuccession = useCallback(\n async (input: SuccessionInput): Promise<SuccessionPlan[]> => {\n const result = await createMutation({ variables: { input: { ...input, context } } });\n await refetch();\n const data = result.data as { createHealthyBowlSuccessionPlan?: SuccessionPlan[] } | null | undefined;\n return data?.createHealthyBowlSuccessionPlan ?? [];\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [createMutation, refetch, workspaceId]\n );\n\n const deletePlan = useCallback(\n async (id: string) => {\n await deleteMutation({ variables: { id, context } });\n await refetch();\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [deleteMutation, refetch, workspaceId]\n );\n\n return {\n successionPlans,\n beds: bedsData?.healthyBowlBeds ?? [],\n loading,\n error,\n refetch,\n createSuccession,\n deletePlan,\n };\n}\n"],"mappings":";;;;;AA2DA,IAAM,IAAc,6MAkBd,IAAc,CAAG;;;;UAIb,EAAY;;;;GAMhB,IAAa,CAAG;;;;;;;GAShB,IAAoB,CAAG;;;QAGrB,EAAY;;;GAKd,IAAc,CAAG;;;;;AAkBvB,SAAgB,EAAsB,GAA6B;CACjE,IAAM,EAAE,mBAAgB,GAAgB,EAClC,IAAU,EAAE,gBAAa,EAEzB,EACJ,MAAM,GACN,YACA,UACA,eACE,EAAyB,GAAa;EACxC,WAAW,EAAE,YAAS;EACtB,MAAM,CAAC;EACP,aAAa;EACb,6BAA6B;EAC9B,CAAC,EAEI,EAAE,MAAM,MAAa,EAAwB,GAAY;EAC7D,WAAW;GAAE;GAAS;GAAS;EAC/B,MAAM,CAAC,KAAe,CAAC;EACvB,aAAa;EACd,CAAC,EAEI,CAAC,KAAkB,EAAY,EAAkB,EACjD,CAAC,KAAkB,EAAY,EAAY,EAE3C,IAAkB,SACV,GAAW,yBAAyB,iBAAiB,EAAE,EAEhE,QAAQ,MAAM,EAAE,YAAY,KAAW,EAAE,qBAAqB,KAAK,CACnE,MAAM,GAAG,MAAM;EACd,IAAM,IAAQ,OAAO,EAAE,kBAAkB,CAAC,cAAc,OAAO,EAAE,kBAAkB,CAAC;AAEpF,SADI,MAAU,KACN,EAAE,mBAAmB,MAAM,EAAE,mBAAmB,KADhC;GAExB,EACH,CAAC,GAAW,EAAQ,CAAC,EAElB,IAAmB,EACvB,OAAO,MAAsD;EAC3D,IAAM,IAAS,MAAM,EAAe,EAAE,WAAW,EAAE,OAAO;GAAE,GAAG;GAAO;GAAS,EAAE,EAAE,CAAC;AAGpF,SAFA,MAAM,GAAS,EACF,EAAO,MACP,mCAAmC,EAAE;IAGpD;EAAC;EAAgB;EAAS;EAAY,CACvC,EAEK,IAAa,EACjB,OAAO,MAAe;AAEpB,EADA,MAAM,EAAe,EAAE,WAAW;GAAE;GAAI;GAAS,EAAE,CAAC,EACpD,MAAM,GAAS;IAGjB;EAAC;EAAgB;EAAS;EAAY,CACvC;AAED,QAAO;EACL;EACA,MAAM,GAAU,mBAAmB,EAAE;EACrC;EACA;EACA;EACA;EACA;EACD"}