@burdenoff/microfe-store 2026.915.2 → 2026.916.1

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.
@@ -527,7 +527,7 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
527
527
  ]
528
528
  });
529
529
  }, I = () => {
530
- let r = oe(), { basePath: f, user: se } = e(), m = a(), ce = ie(), ue = Ee(), { cartOpen: de, closeCart: fe, itemCount: h, cartItems: g, subtotal: _, tax: Se, total: Oe, updateQuantity: C, removeProduct: w } = n(), [T, E] = u(""), [D, A] = u("all"), [j, M] = u("all"), [N, P] = u("any"), [I, Ne] = u("all"), [L, Pe] = u("all"), [R, Fe] = u("all"), [z, Ie] = u(!1), [B, Le] = u("relevance"), [Re, ze] = u(!1), V = De(T, 1500), Be = [
530
+ let r = oe(), { basePath: f, user: se } = e(), m = a(), ce = ie(), ue = Ee(), { cart: de, cartOpen: fe, closeCart: h, itemCount: g, cartItems: _, subtotal: Se, tax: Oe, total: C, updateQuantity: w, removeProduct: T } = n(), [E, D] = u(""), [A, j] = u("all"), [M, N] = u("all"), [P, I] = u("any"), [L, Ne] = u("all"), [R, Pe] = u("all"), [z, Fe] = u("all"), [B, Ie] = u(!1), [V, Le] = u("relevance"), [Re, ze] = u(!1), H = De(E, 1500), Be = [
531
531
  {
532
532
  value: "all",
533
533
  label: m("pages.marketplace.pricingAll", "All Prices")
@@ -621,72 +621,72 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
621
621
  paid: o.PaidOnetime,
622
622
  subscription: o.Subscription
623
623
  }[e];
624
- }, H = V.trim() !== "" || j !== "all" || N !== "any" || I !== "all" || L !== "all" || R !== "all" || z || D !== "all" || B !== "relevance", Ke = T.trim() !== "" && T !== V, qe = () => {
625
- E(""), M("all"), P("any"), Ne("all"), Pe("all"), Fe("all"), Ie(!1), Le("relevance"), A("all");
626
- }, U = (j === "all" ? 0 : 1) + (N === "any" ? 0 : 1) + (I === "all" ? 0 : 1) + (L === "all" ? 0 : 1) + (R === "all" ? 0 : 1) + +!!z + (D === "all" ? 0 : 1), Je = l(() => {
624
+ }, U = H.trim() !== "" || M !== "all" || P !== "any" || L !== "all" || R !== "all" || z !== "all" || B || A !== "all" || V !== "relevance", Ke = E.trim() !== "" && E !== H, qe = () => {
625
+ D(""), N("all"), I("any"), Ne("all"), Pe("all"), Fe("all"), Ie(!1), Le("relevance"), j("all");
626
+ }, W = (M === "all" ? 0 : 1) + (P === "any" ? 0 : 1) + (L === "all" ? 0 : 1) + (R === "all" ? 0 : 1) + (z === "all" ? 0 : 1) + +!!B + (A === "all" ? 0 : 1), Je = l(() => {
627
627
  let e = {
628
- sortBy: We(B),
628
+ sortBy: We(V),
629
629
  pagination: { limit: 50 }
630
630
  };
631
- if (H) {
632
- e.filter = {}, V.trim() && (e.filter.search = V.trim()), D !== "all" && (e.filter.type = D), L !== "all" && (e.filter.category = L), I !== "all" && (e.filter.nature = I === "digital" ? s.Digital : s.Physical);
633
- let t = Ge(j);
634
- t && (e.filter.pricingModel = t), N !== "any" && (e.filter.minRating = parseFloat(N)), z && (e.filter.featured = !0), R !== "all" && (e.filter.license = R);
631
+ if (U) {
632
+ e.filter = {}, H.trim() && (e.filter.search = H.trim()), A !== "all" && (e.filter.type = A), R !== "all" && (e.filter.category = R), L !== "all" && (e.filter.nature = L === "digital" ? s.Digital : s.Physical);
633
+ let t = Ge(M);
634
+ t && (e.filter.pricingModel = t), P !== "any" && (e.filter.minRating = parseFloat(P)), B && (e.filter.featured = !0), z !== "all" && (e.filter.license = z);
635
635
  }
636
636
  return e;
637
637
  }, [
638
- V,
639
- D,
640
- L,
641
- I,
642
- j,
643
- N,
644
- z,
638
+ H,
639
+ A,
645
640
  R,
641
+ L,
642
+ M,
643
+ P,
646
644
  B,
647
- H
648
- ]), { featured: W, mostDownloaded: G, recentlyAdded: K, freeItems: q, loading: Ye, error: Xe, refetch: Ze } = ee({ skip: H }), { products: Qe, totalCount: J, facets: Y, loading: X, error: $e, refetch: et } = i(H ? Je : {}, { skip: !H }), tt = H ? X : Ye, Z = H ? $e : Xe, nt = H ? et : Ze, rt = H ? Qe : [], it = ae(J);
649
- it.current = J;
650
- let at = ae(ue);
651
- at.current = ue, re(() => {
652
- !V.trim() || X || at.current.emit("store.marketplace.searched", {
653
- query: V,
654
- resultCount: it.current
645
+ z,
646
+ V,
647
+ U
648
+ ]), { featured: G, mostDownloaded: K, recentlyAdded: q, freeItems: J, loading: Ye, error: Xe, refetch: Ze } = ee({ skip: U }), { products: Qe, totalCount: Y, facets: X, loading: Z, error: $e, refetch: et } = i(U ? Je : {}, { skip: !U }), tt = U ? Z : Ye, nt = U ? $e : Xe, rt = U ? et : Ze, it = U ? Qe : [], at = ae(Y);
649
+ at.current = Y;
650
+ let ot = ae(ue);
651
+ ot.current = ue, re(() => {
652
+ !H.trim() || Z || ot.current.emit("store.marketplace.searched", {
653
+ query: H,
654
+ resultCount: at.current
655
655
  });
656
- }, [V, X]);
656
+ }, [H, Z]);
657
657
  let Q = ne((e) => {
658
658
  r(`${f}/marketplace/product/${e.id}`);
659
- }, [r, f]), ot = () => {
660
- fe(), r(`${f}/cart`);
659
+ }, [r, f]), st = () => {
660
+ h(), r(`${f}/cart`);
661
661
  }, $ = l(() => [...new Map([
662
- ...W,
663
662
  ...G,
664
663
  ...K,
665
- ...q
664
+ ...q,
665
+ ...J
666
666
  ].map((e) => [e.id, e])).values()], [
667
- W,
668
667
  G,
669
668
  K,
670
- q
671
- ]), st = !!se?.id, { data: ct } = t({
669
+ q,
670
+ J
671
+ ]), ct = !!se?.id, { data: lt } = t({
672
672
  variables: { limit: 100 },
673
- skip: !st,
673
+ skip: !ct,
674
674
  fetchPolicy: "cache-and-network"
675
- }), lt = l(() => {
676
- if (!ct?.myStoreAppInstallations?.items) return [];
675
+ }), ut = l(() => {
676
+ if (!lt?.myStoreAppInstallations?.items) return [];
677
677
  let e = /* @__PURE__ */ new Set(), t = [];
678
- for (let n of ct.myStoreAppInstallations.items) n.productStatus === "UNLISTED" && !e.has(n.productId) && (e.add(n.productId), t.push({
678
+ for (let n of lt.myStoreAppInstallations.items) n.productStatus === "UNLISTED" && !e.has(n.productId) && (e.add(n.productId), t.push({
679
679
  id: n.productId,
680
680
  name: n.productName ?? "Unknown App",
681
681
  icon: n.productIcon ?? void 0
682
682
  }));
683
683
  return t;
684
- }, [ct]), ut = l(() => {
685
- if (Y?.types && Y.types.length > 0) return [{
684
+ }, [lt]), dt = l(() => {
685
+ if (X?.types && X.types.length > 0) return [{
686
686
  id: "all",
687
687
  name: m("pages.marketplace.typeAll", "All Apps"),
688
- count: J
689
- }, ...Y.types.map((e) => ({
688
+ count: Y
689
+ }, ...X.types.map((e) => ({
690
690
  id: e.value,
691
691
  name: e.value.charAt(0) + e.value.slice(1).toLowerCase().replace(/_/g, " "),
692
692
  count: e.count
@@ -702,14 +702,14 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
702
702
  count: $.length
703
703
  }, ...t];
704
704
  }, [
705
- Y,
705
+ X,
706
706
  $,
707
- J,
707
+ Y,
708
708
  m
709
- ]), dt = l(() => Y?.categories && Y.categories.length > 0 ? [{
709
+ ]), ft = l(() => X?.categories && X.categories.length > 0 ? [{
710
710
  value: "all",
711
711
  label: m("pages.marketplace.allCategories", "All Categories")
712
- }, ...Y.categories.map((e) => ({
712
+ }, ...X.categories.map((e) => ({
713
713
  value: e.value,
714
714
  label: e.value
715
715
  }))] : [{
@@ -719,19 +719,19 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
719
719
  value: e,
720
720
  label: e
721
721
  })).sort((e, t) => e.label.localeCompare(t.label))], [
722
- Y,
722
+ X,
723
723
  $,
724
724
  m
725
- ]), ft = l(() => Y?.licenses && Y.licenses.length > 0 ? [{
725
+ ]), pt = l(() => X?.licenses && X.licenses.length > 0 ? [{
726
726
  value: "all",
727
727
  label: m("pages.marketplace.allLicenses", "All Licenses")
728
- }, ...Y.licenses.map((e) => ({
728
+ }, ...X.licenses.map((e) => ({
729
729
  value: e.value,
730
730
  label: e.value
731
731
  }))] : [{
732
732
  value: "all",
733
733
  label: m("pages.marketplace.allLicenses", "All Licenses")
734
- }], [Y, m]);
734
+ }], [X, m]);
735
735
  return /* @__PURE__ */ S("div", {
736
736
  className: "flex h-full flex-col",
737
737
  children: [
@@ -759,9 +759,9 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
759
759
  children: [
760
760
  /* @__PURE__ */ x(_e, { className: "size-5" }),
761
761
  m("pages.marketplace.cart", "Cart"),
762
- h > 0 && /* @__PURE__ */ x("span", {
762
+ g > 0 && /* @__PURE__ */ x("span", {
763
763
  className: "absolute -right-2 -top-2 flex size-5 items-center justify-center rounded-full bg-action-primary-bg text-xs font-bold text-action-primary-text",
764
- children: h
764
+ children: g
765
765
  })
766
766
  ]
767
767
  })]
@@ -782,14 +782,14 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
782
782
  "data-tour": "store-marketplace-search-input",
783
783
  "aria-label": m("pages.marketplace.search.label", "Search marketplace products"),
784
784
  type: "text",
785
- value: T,
786
- onChange: (e) => E(e.target.value),
785
+ value: E,
786
+ onChange: (e) => D(e.target.value),
787
787
  placeholder: m("pages.marketplace.search.placeholder", "Search apps, workflows, integrations..."),
788
788
  className: "w-full rounded-xl border border-border-default bg-bg-sunken py-3 pl-12 pr-4 text-text-primary placeholder-text-muted focus:border-action-primary-border focus:bg-bg-surface focus:outline-none focus:ring-2 focus:ring-action-primary-border/20"
789
789
  }),
790
- T && /* @__PURE__ */ x("button", {
790
+ E && /* @__PURE__ */ x("button", {
791
791
  type: "button",
792
- onClick: () => E(""),
792
+ onClick: () => D(""),
793
793
  "aria-label": m("pages.marketplace.search.clear", "Clear search"),
794
794
  className: "cursor-pointer absolute right-4 top-1/2 -translate-y-1/2 text-text-muted transition-colors hover:text-text-primary",
795
795
  children: /* @__PURE__ */ x(b, {
@@ -798,13 +798,13 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
798
798
  })
799
799
  })
800
800
  ]
801
- }), T.trim() && /* @__PURE__ */ x("div", {
801
+ }), E.trim() && /* @__PURE__ */ x("div", {
802
802
  "aria-live": "polite",
803
803
  className: "mt-2 flex items-center gap-2 text-sm text-text-muted",
804
- children: Ke || X ? /* @__PURE__ */ S(be, { children: [/* @__PURE__ */ x(he, { className: "size-4 animate-spin" }), /* @__PURE__ */ x("span", { children: m("pages.marketplace.search.searching", "Searching...") })] }) : /* @__PURE__ */ x("span", { children: m("pages.marketplace.search.resultCount", "{{count}} result{{plural}} for \"{{query}}\"", {
805
- count: J,
806
- plural: J === 1 ? "" : "s",
807
- query: V
804
+ children: Ke || Z ? /* @__PURE__ */ S(be, { children: [/* @__PURE__ */ x(he, { className: "size-4 animate-spin" }), /* @__PURE__ */ x("span", { children: m("pages.marketplace.search.searching", "Searching...") })] }) : /* @__PURE__ */ x("span", { children: m("pages.marketplace.search.resultCount", "{{count}} result{{plural}} for \"{{query}}\"", {
805
+ count: Y,
806
+ plural: Y === 1 ? "" : "s",
807
+ query: H
808
808
  }) })
809
809
  })]
810
810
  }),
@@ -815,13 +815,13 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
815
815
  type: "button",
816
816
  "data-tour": "store-marketplace-filters-button",
817
817
  onClick: () => ze(!Re),
818
- className: `cursor-pointer flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${Re || U > 0 ? "border-action-primary-border bg-action-primary-bg/10 text-text-link" : "border-border-default bg-bg-surface text-text-primary transition-colors hover:bg-bg-sunken"}`,
818
+ className: `cursor-pointer flex items-center gap-2 rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${Re || W > 0 ? "border-action-primary-border bg-action-primary-bg/10 text-text-link" : "border-border-default bg-bg-surface text-text-primary transition-colors hover:bg-bg-sunken"}`,
819
819
  children: [
820
820
  /* @__PURE__ */ x(ve, { className: "size-4" }),
821
821
  m("pages.marketplace.filters", "Filters"),
822
- U > 0 && /* @__PURE__ */ x("span", {
822
+ W > 0 && /* @__PURE__ */ x("span", {
823
823
  className: "flex size-5 items-center justify-center rounded-full bg-action-primary-bg text-xs text-action-primary-text",
824
- children: U
824
+ children: W
825
825
  })
826
826
  ]
827
827
  }),
@@ -831,25 +831,25 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
831
831
  children: [
832
832
  /* @__PURE__ */ S("button", {
833
833
  type: "button",
834
- onClick: () => M(j === "free" ? "all" : "free"),
835
- className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${j === "free" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
834
+ onClick: () => N(M === "free" ? "all" : "free"),
835
+ className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${M === "free" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
836
836
  children: [/* @__PURE__ */ x(me, { className: "size-3.5" }), m("pages.marketplace.quickFilterFree", "Free")]
837
837
  }),
838
838
  /* @__PURE__ */ S("button", {
839
839
  type: "button",
840
- onClick: () => P(N === "4" ? "any" : "4"),
841
- className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${N === "4" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
840
+ onClick: () => I(P === "4" ? "any" : "4"),
841
+ className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${P === "4" ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
842
842
  children: [/* @__PURE__ */ x(y, { className: "size-3.5" }), m("pages.marketplace.quickFilterRating", "4+ Stars")]
843
843
  }),
844
844
  /* @__PURE__ */ S("button", {
845
845
  type: "button",
846
- onClick: () => Ie(!z),
847
- className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${z ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
846
+ onClick: () => Ie(!B),
847
+ className: `cursor-pointer flex items-center gap-1.5 rounded-full px-3 py-1.5 text-sm font-medium transition-colors ${B ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-primary transition-colors hover:bg-bg-surface"}`,
848
848
  children: [/* @__PURE__ */ x(v, { className: "size-3.5" }), m("pages.marketplace.quickFilterFeatured", "Featured")]
849
849
  })
850
850
  ]
851
851
  }),
852
- H && /* @__PURE__ */ S("button", {
852
+ U && /* @__PURE__ */ S("button", {
853
853
  type: "button",
854
854
  onClick: qe,
855
855
  className: "cursor-pointer flex items-center gap-1 text-sm text-text-muted transition-colors hover:text-text-primary",
@@ -863,7 +863,7 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
863
863
  "data-tour": "store-marketplace-section-sort",
864
864
  children: /* @__PURE__ */ x(F, {
865
865
  label: m("pages.marketplace.sortLabel", "Sort"),
866
- value: B,
866
+ value: V,
867
867
  options: Ue,
868
868
  onChange: (e) => Le(e)
869
869
  })
@@ -882,9 +882,9 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
882
882
  children: m("pages.marketplace.filterPricing", "Pricing")
883
883
  }), /* @__PURE__ */ x(F, {
884
884
  label: m("pages.marketplace.filterPrice", "Price"),
885
- value: j,
885
+ value: M,
886
886
  options: Be,
887
- onChange: (e) => M(e)
887
+ onChange: (e) => N(e)
888
888
  })]
889
889
  }),
890
890
  /* @__PURE__ */ S("div", {
@@ -894,20 +894,20 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
894
894
  children: m("pages.marketplace.filterMinRating", "Min Rating")
895
895
  }), /* @__PURE__ */ x(F, {
896
896
  label: m("pages.marketplace.filterRating", "Rating"),
897
- value: N,
897
+ value: P,
898
898
  options: Ve,
899
- onChange: (e) => P(e)
899
+ onChange: (e) => I(e)
900
900
  })]
901
901
  }),
902
- dt.length > 1 && /* @__PURE__ */ S("div", {
902
+ ft.length > 1 && /* @__PURE__ */ S("div", {
903
903
  className: "flex flex-col gap-2",
904
904
  children: [/* @__PURE__ */ x("span", {
905
905
  className: "text-xs font-medium uppercase tracking-wider text-text-muted",
906
906
  children: m("pages.marketplace.filterCategory", "Category")
907
907
  }), /* @__PURE__ */ x(F, {
908
908
  label: m("pages.marketplace.filterCategory", "Category"),
909
- value: L,
910
- options: dt,
909
+ value: R,
910
+ options: ft,
911
911
  onChange: Pe
912
912
  })]
913
913
  }),
@@ -918,34 +918,34 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
918
918
  children: m("pages.marketplace.filterNature", "Nature")
919
919
  }), /* @__PURE__ */ x(F, {
920
920
  label: m("pages.marketplace.filterNature", "Nature"),
921
- value: I,
921
+ value: L,
922
922
  options: He,
923
923
  onChange: (e) => Ne(e)
924
924
  })]
925
925
  }),
926
- ft.length > 1 && /* @__PURE__ */ S("div", {
926
+ pt.length > 1 && /* @__PURE__ */ S("div", {
927
927
  className: "flex flex-col gap-2",
928
928
  children: [/* @__PURE__ */ x("span", {
929
929
  className: "text-xs font-medium uppercase tracking-wider text-text-muted",
930
930
  children: m("pages.marketplace.filterLicense", "License")
931
931
  }), /* @__PURE__ */ x(F, {
932
932
  label: m("pages.marketplace.filterLicense", "License"),
933
- value: R,
934
- options: ft,
933
+ value: z,
934
+ options: pt,
935
935
  onChange: Fe
936
936
  })]
937
937
  })
938
938
  ]
939
- }), U > 0 && /* @__PURE__ */ S("div", {
939
+ }), W > 0 && /* @__PURE__ */ S("div", {
940
940
  className: "mt-4 flex flex-wrap items-center gap-2 border-t border-border-default pt-4",
941
941
  children: [
942
942
  /* @__PURE__ */ x("span", {
943
943
  className: "text-xs font-medium text-text-muted",
944
944
  children: m("pages.marketplace.activeFilters", "Active filters:")
945
945
  }),
946
- D !== "all" && /* @__PURE__ */ S("button", {
946
+ A !== "all" && /* @__PURE__ */ S("button", {
947
947
  type: "button",
948
- onClick: () => A("all"),
948
+ onClick: () => j("all"),
949
949
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
950
950
  children: [
951
951
  /* @__PURE__ */ x("span", {
@@ -953,16 +953,16 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
953
953
  children: m("pages.marketplace.activeFilterType", "Type:")
954
954
  }),
955
955
  " ",
956
- D,
956
+ A,
957
957
  /* @__PURE__ */ x(b, {
958
958
  className: "size-3",
959
959
  "aria-hidden": "true"
960
960
  })
961
961
  ]
962
962
  }),
963
- j !== "all" && /* @__PURE__ */ S("button", {
963
+ M !== "all" && /* @__PURE__ */ S("button", {
964
964
  type: "button",
965
- onClick: () => M("all"),
965
+ onClick: () => N("all"),
966
966
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
967
967
  children: [
968
968
  /* @__PURE__ */ x("span", {
@@ -970,16 +970,16 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
970
970
  children: m("pages.marketplace.activeFilterPrice", "Price:")
971
971
  }),
972
972
  " ",
973
- Be.find((e) => e.value === j)?.label,
973
+ Be.find((e) => e.value === M)?.label,
974
974
  /* @__PURE__ */ x(b, {
975
975
  className: "size-3",
976
976
  "aria-hidden": "true"
977
977
  })
978
978
  ]
979
979
  }),
980
- N !== "any" && /* @__PURE__ */ S("button", {
980
+ P !== "any" && /* @__PURE__ */ S("button", {
981
981
  type: "button",
982
- onClick: () => P("any"),
982
+ onClick: () => I("any"),
983
983
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
984
984
  children: [
985
985
  /* @__PURE__ */ x("span", {
@@ -987,14 +987,14 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
987
987
  children: m("pages.marketplace.activeFilterRating", "Rating:")
988
988
  }),
989
989
  " ",
990
- Ve.find((e) => e.value === N)?.label,
990
+ Ve.find((e) => e.value === P)?.label,
991
991
  /* @__PURE__ */ x(b, {
992
992
  className: "size-3",
993
993
  "aria-hidden": "true"
994
994
  })
995
995
  ]
996
996
  }),
997
- L !== "all" && /* @__PURE__ */ S("button", {
997
+ R !== "all" && /* @__PURE__ */ S("button", {
998
998
  type: "button",
999
999
  onClick: () => Pe("all"),
1000
1000
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
@@ -1004,14 +1004,14 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1004
1004
  children: m("pages.marketplace.activeFilterCategory", "Category:")
1005
1005
  }),
1006
1006
  " ",
1007
- L,
1007
+ R,
1008
1008
  /* @__PURE__ */ x(b, {
1009
1009
  className: "size-3",
1010
1010
  "aria-hidden": "true"
1011
1011
  })
1012
1012
  ]
1013
1013
  }),
1014
- I !== "all" && /* @__PURE__ */ S("button", {
1014
+ L !== "all" && /* @__PURE__ */ S("button", {
1015
1015
  type: "button",
1016
1016
  onClick: () => Ne("all"),
1017
1017
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
@@ -1021,14 +1021,14 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1021
1021
  children: m("pages.marketplace.activeFilterNature", "Nature:")
1022
1022
  }),
1023
1023
  " ",
1024
- He.find((e) => e.value === I)?.label,
1024
+ He.find((e) => e.value === L)?.label,
1025
1025
  /* @__PURE__ */ x(b, {
1026
1026
  className: "size-3",
1027
1027
  "aria-hidden": "true"
1028
1028
  })
1029
1029
  ]
1030
1030
  }),
1031
- R !== "all" && /* @__PURE__ */ S("button", {
1031
+ z !== "all" && /* @__PURE__ */ S("button", {
1032
1032
  type: "button",
1033
1033
  onClick: () => Fe("all"),
1034
1034
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
@@ -1038,14 +1038,14 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1038
1038
  children: m("pages.marketplace.activeFilterLicense", "License:")
1039
1039
  }),
1040
1040
  " ",
1041
- ft.find((e) => e.value === R)?.label,
1041
+ pt.find((e) => e.value === z)?.label,
1042
1042
  /* @__PURE__ */ x(b, {
1043
1043
  className: "size-3",
1044
1044
  "aria-hidden": "true"
1045
1045
  })
1046
1046
  ]
1047
1047
  }),
1048
- z && /* @__PURE__ */ S("button", {
1048
+ B && /* @__PURE__ */ S("button", {
1049
1049
  type: "button",
1050
1050
  onClick: () => Ie(!1),
1051
1051
  className: "inline-flex cursor-pointer items-center gap-1.5 rounded-full border border-action-primary-border bg-action-primary-bg/5 px-3 py-1.5 text-xs font-medium text-text-link shadow-sm transition-colors hover:bg-action-primary-bg/15",
@@ -1069,7 +1069,7 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1069
1069
  className: "mx-auto max-w-7xl space-y-8 p-6",
1070
1070
  children: [
1071
1071
  /* @__PURE__ */ x(Te, { children: m("pages.marketplace.pagePurpose", "The marketplace is where you discover and install apps, agents, workflows, nodes and widgets that extend your workspaces. Browse featured and trending picks, filter by type or category, search for something specific, then open any product to view pricing and reviews before adding it to your cart.") }),
1072
- Z && /* @__PURE__ */ S("div", {
1072
+ nt && /* @__PURE__ */ S("div", {
1073
1073
  role: "alert",
1074
1074
  className: "flex flex-col items-center justify-center rounded-xl border border-status-error-border bg-status-error-bg-subtle p-8 text-center",
1075
1075
  children: [
@@ -1080,48 +1080,48 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1080
1080
  }),
1081
1081
  /* @__PURE__ */ x("p", {
1082
1082
  className: "mb-4 text-sm text-status-error-text",
1083
- children: Z.message || m("pages.marketplace.errorDescription", "An error occurred while fetching products")
1083
+ children: nt.message || m("pages.marketplace.errorDescription", "An error occurred while fetching products")
1084
1084
  }),
1085
1085
  /* @__PURE__ */ x("button", {
1086
1086
  type: "button",
1087
- onClick: () => nt(),
1087
+ onClick: () => rt(),
1088
1088
  className: "cursor-pointer rounded-lg bg-status-error-bg px-4 py-2 text-sm font-medium text-status-error-text transition-colors hover:bg-status-error-bg-emphasis",
1089
1089
  children: m("common.tryAgain", "Try Again")
1090
1090
  })
1091
1091
  ]
1092
1092
  }),
1093
- tt && !Z && /* @__PURE__ */ x(Me, {}),
1094
- !tt && !Z && /* @__PURE__ */ S(be, { children: [
1095
- !H && D === "all" && W.length > 0 && /* @__PURE__ */ x(je, {
1093
+ tt && !nt && /* @__PURE__ */ x(Me, {}),
1094
+ !tt && !nt && /* @__PURE__ */ S(be, { children: [
1095
+ !U && A === "all" && G.length > 0 && /* @__PURE__ */ x(je, {
1096
1096
  dataTour: "store-marketplace-hero-section",
1097
- featuredProducts: W,
1097
+ featuredProducts: G,
1098
1098
  onProductClick: Q
1099
1099
  }),
1100
- ut.length > 1 && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h2", {
1100
+ dt.length > 1 && /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h2", {
1101
1101
  className: "mb-4 text-lg font-semibold text-text-primary",
1102
1102
  children: m("pages.marketplace.browseByType", "Browse by Type")
1103
1103
  }), /* @__PURE__ */ x("div", {
1104
1104
  className: "flex flex-wrap gap-2",
1105
1105
  "data-tour": "store-marketplace-type-categories",
1106
- children: ut.map((e) => /* @__PURE__ */ x(Ae, {
1106
+ children: dt.map((e) => /* @__PURE__ */ x(Ae, {
1107
1107
  typeId: e.id,
1108
1108
  name: e.name,
1109
1109
  count: e.count,
1110
- active: D === e.id,
1111
- onClick: () => A(e.id)
1110
+ active: A === e.id,
1111
+ onClick: () => j(e.id)
1112
1112
  }, e.id))
1113
1113
  })] }),
1114
- H && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1114
+ U && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1115
1115
  icon: pe,
1116
- title: V ? m("pages.marketplace.searchResults", "Search Results") : m("pages.marketplace.filteredResults", "Filtered Results"),
1116
+ title: H ? m("pages.marketplace.searchResults", "Search Results") : m("pages.marketplace.filteredResults", "Filtered Results"),
1117
1117
  subtitle: m("pages.marketplace.appsFound", "{{count}} app{{plural}} found", {
1118
- count: J,
1119
- plural: J === 1 ? "" : "s"
1118
+ count: Y,
1119
+ plural: Y === 1 ? "" : "s"
1120
1120
  })
1121
- }), rt.length > 0 ? /* @__PURE__ */ x("div", {
1121
+ }), it.length > 0 ? /* @__PURE__ */ x("div", {
1122
1122
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
1123
1123
  "data-tour": "store-marketplace-product-grid",
1124
- children: rt.map((e) => /* @__PURE__ */ x(O, {
1124
+ children: it.map((e) => /* @__PURE__ */ x(O, {
1125
1125
  product: e,
1126
1126
  onClick: () => Q(e)
1127
1127
  }, e.id))
@@ -1136,37 +1136,37 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1136
1136
  children: m("pages.marketplace.clearAllFilters", "Clear All Filters")
1137
1137
  })
1138
1138
  })] }),
1139
- !H && D === "all" && /* @__PURE__ */ S(be, { children: [
1140
- G.length > 0 && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1139
+ !U && A === "all" && /* @__PURE__ */ S(be, { children: [
1140
+ K.length > 0 && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1141
1141
  icon: ye,
1142
1142
  title: m("pages.marketplace.mostDownloaded", "Most Downloaded"),
1143
1143
  subtitle: m("pages.marketplace.mostDownloadedSubtitle", "Top picks by our community")
1144
1144
  }), /* @__PURE__ */ x("div", {
1145
1145
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
1146
1146
  "data-tour": "store-marketplace-most-downloaded",
1147
- children: G.slice(0, 6).map((e) => /* @__PURE__ */ x(O, {
1147
+ children: K.slice(0, 6).map((e) => /* @__PURE__ */ x(O, {
1148
1148
  product: e,
1149
1149
  onClick: () => Q(e)
1150
1150
  }, e.id))
1151
1151
  })] }),
1152
- K.length > 0 && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1152
+ q.length > 0 && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1153
1153
  icon: le,
1154
1154
  title: m("pages.marketplace.newReleases", "New Releases"),
1155
1155
  subtitle: m("pages.marketplace.newReleasesSubtitle", "Recently published apps")
1156
1156
  }), /* @__PURE__ */ x("div", {
1157
1157
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
1158
- children: K.slice(0, 6).map((e) => /* @__PURE__ */ x(O, {
1158
+ children: q.slice(0, 6).map((e) => /* @__PURE__ */ x(O, {
1159
1159
  product: e,
1160
1160
  onClick: () => Q(e)
1161
1161
  }, e.id))
1162
1162
  })] }),
1163
- q.length > 0 && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1163
+ J.length > 0 && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1164
1164
  icon: me,
1165
1165
  title: m("pages.marketplace.freeApps", "Free Apps"),
1166
1166
  subtitle: m("pages.marketplace.freeAppsSubtitle", "No cost, full functionality")
1167
1167
  }), /* @__PURE__ */ x("div", {
1168
1168
  className: "grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6",
1169
- children: q.slice(0, 6).map((e) => /* @__PURE__ */ x(O, {
1169
+ children: J.slice(0, 6).map((e) => /* @__PURE__ */ x(O, {
1170
1170
  product: e,
1171
1171
  onClick: () => Q(e),
1172
1172
  variant: "compact"
@@ -1184,13 +1184,13 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1184
1184
  }, e.id))
1185
1185
  })] })
1186
1186
  ] }),
1187
- st && lt.length > 0 && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1187
+ ct && ut.length > 0 && /* @__PURE__ */ S("section", { children: [/* @__PURE__ */ x(k, {
1188
1188
  icon: d,
1189
1189
  title: m("pages.marketplace.deprecatedApps", "Deprecated Apps You've Installed"),
1190
1190
  subtitle: m("pages.marketplace.deprecatedAppsSubtitle", "These apps are no longer supported — hover the badge for details")
1191
1191
  }), /* @__PURE__ */ x("div", {
1192
1192
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
1193
- children: lt.map((e) => /* @__PURE__ */ x(ke, {
1193
+ children: ut.map((e) => /* @__PURE__ */ x(ke, {
1194
1194
  product: e,
1195
1195
  onClick: () => r(`${f}/marketplace/product/${e.id}`)
1196
1196
  }, e.id))
@@ -1205,16 +1205,17 @@ var Oe = (e) => e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).
1205
1205
  })
1206
1206
  }),
1207
1207
  /* @__PURE__ */ x(te, {
1208
- isOpen: de,
1209
- onClose: fe,
1210
- onCheckout: ot,
1211
- cartItems: g,
1212
- itemCount: h,
1213
- subtotal: _,
1214
- tax: Se,
1215
- total: Oe,
1216
- updateQuantity: C,
1217
- removeProduct: w
1208
+ isOpen: fe,
1209
+ onClose: h,
1210
+ onCheckout: st,
1211
+ cartItems: _,
1212
+ itemCount: g,
1213
+ currency: de?.currency || "USD",
1214
+ subtotal: Se,
1215
+ tax: Oe,
1216
+ total: C,
1217
+ updateQuantity: w,
1218
+ removeProduct: T
1218
1219
  })
1219
1220
  ]
1220
1221
  });