@burdenoff/microfe-devportal 2026.915.5 → 2026.915.6

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.
@@ -303,7 +303,7 @@ var q = {
303
303
  orgId: H.id,
304
304
  canInviteMembers: F
305
305
  }),
306
- g === "settings" && A && /* @__PURE__ */ R(de, { org: H })
306
+ g === "settings" && A && /* @__PURE__ */ R(X, { org: H })
307
307
  ]
308
308
  })
309
309
  ]
@@ -547,7 +547,7 @@ var q = {
547
547
  ]
548
548
  })]
549
549
  });
550
- }, de = ({ org: e }) => {
550
+ }, X = ({ org: e }) => {
551
551
  let { t } = B(), { allowed: n } = te(ne.ORG_UPDATE), r = (e, n) => {
552
552
  let r = t(e);
553
553
  return r === e ? n : r;
@@ -565,17 +565,17 @@ var q = {
565
565
  }), [f, p] = C({
566
566
  taxId: e.taxId ?? "",
567
567
  taxCountry: e.taxCountry ?? ""
568
- }), [m, h] = C({ pickupPostalCode: e.pickupPostalCode ?? "" }), { locations: g, refetch: re } = x(), [w, T] = C(!1), [E, D] = C(null), [k, A] = C(null), [M, F] = C("manual"), [I, ie] = C(!1), [V, ae] = C(""), [G, oe] = C(""), [q, le] = C(""), [ue, J] = C(null), [Y, de] = C(!1), X = ue ?? {
568
+ }), [m, h] = C({ pickupPostalCode: e.pickupPostalCode ?? "" }), { locations: g, refetch: re } = x(), [w, T] = C(!1), [E, D] = C(null), [k, A] = C(null), [M, F] = C("manual"), [I, ie] = C(!1), [V, ae] = C(""), [G, oe] = C(""), [q, le] = C(""), [ue, J] = C(null), [Y, X] = C(!1), Z = ue ?? {
569
569
  verificationMethod: e.verificationMethod,
570
570
  verificationRequestedAt: e.verificationRequestedAt,
571
571
  verificationStatus: e.verificationStatus,
572
572
  verificationRequestNotes: e.verificationRequestNotes,
573
573
  verificationRejectedReason: e.verificationRejectedReason
574
- }, Z = [];
575
- i.contactEmail.trim() ? ce(i.contactEmail) || Z.push(r("devportal.contactEmailInvalid", "Contact email must be valid")) : Z.push(r("devportal.contactEmailRequired", "Contact email is required")), i.supportEmail.trim() && !ce(i.supportEmail) && Z.push(r("devportal.supportEmailInvalid", "Support email must be valid")), i.websiteUrl.trim() ? K(i.websiteUrl) || Z.push(r("devportal.websiteInvalid", "Website URL must be valid")) : Z.push(r("devportal.websiteRequired", "Website URL is required")), o.legalEntityName.trim() || Z.push(r("devportal.legalEntityNameRequired", "Legal entity name is required")), o.legalEntityType.trim() || Z.push(r("devportal.legalEntityTypeRequired", "Entity type is required")), f.taxId.trim() || Z.push(r("devportal.taxIdRequired", "Tax ID is required")), f.taxCountry.trim() ? /^[A-Za-z]{2}$/.test(f.taxCountry.trim()) || Z.push(r("devportal.taxCountryInvalid", "Tax country must be a 2-letter code")) : Z.push(r("devportal.taxCountryRequired", "Tax country is required"));
576
- let Q = [];
577
- M === "domain" && !se(q.trim()) && Q.push(r("devportal.verification.errors.domainRequired", "Enter a valid domain like burdenoff.com")), M === "document" && !K(G.trim()) && Q.push(r("devportal.verification.errors.evidenceUrlRequired", "Enter a valid evidence URL starting with http:// or https://")), M === "manual" && !V.trim() && Q.push(r("devportal.verification.errors.notesRequired", "Add notes so the reviewer knows what to verify"));
578
- let fe = Z.length === 0 && Q.length === 0 && !Y && n, [pe, { loading: $ }] = l({ refetchQueries: ["GetOrganization"] }), [me, { loading: he }] = s({ refetchQueries: ["GetOrganization"] }), [ge, { loading: _e }] = c({ refetchQueries: ["GetOrganization"] });
574
+ }, Q = [];
575
+ i.contactEmail.trim() ? ce(i.contactEmail) || Q.push(r("devportal.contactEmailInvalid", "Contact email must be valid")) : Q.push(r("devportal.contactEmailRequired", "Contact email is required")), i.supportEmail.trim() && !ce(i.supportEmail) && Q.push(r("devportal.supportEmailInvalid", "Support email must be valid")), i.websiteUrl.trim() ? K(i.websiteUrl) || Q.push(r("devportal.websiteInvalid", "Website URL must be valid")) : Q.push(r("devportal.websiteRequired", "Website URL is required")), o.legalEntityName.trim() || Q.push(r("devportal.legalEntityNameRequired", "Legal entity name is required")), o.legalEntityType.trim() || Q.push(r("devportal.legalEntityTypeRequired", "Entity type is required")), f.taxId.trim() || Q.push(r("devportal.taxIdRequired", "Tax ID is required")), f.taxCountry.trim() ? /^[A-Za-z]{2}$/.test(f.taxCountry.trim()) || Q.push(r("devportal.taxCountryInvalid", "Tax country must be a 2-letter code")) : Q.push(r("devportal.taxCountryRequired", "Tax country is required"));
576
+ let $ = [];
577
+ M === "domain" && !se(q.trim()) && $.push(r("devportal.verification.errors.domainRequired", "Enter a valid domain like burdenoff.com")), M === "document" && !K(G.trim()) && $.push(r("devportal.verification.errors.evidenceUrlRequired", "Enter a valid evidence URL starting with http:// or https://")), M === "manual" && !V.trim() && $.push(r("devportal.verification.errors.notesRequired", "Add notes so the reviewer knows what to verify"));
578
+ let de = Q.length === 0 && $.length === 0 && !Y && n, [fe, { loading: pe }] = l({ refetchQueries: ["GetOrganization"] }), [me, { loading: he }] = s({ refetchQueries: ["GetOrganization"] }), [ge, { loading: _e }] = c({ refetchQueries: ["GetOrganization"] });
579
579
  S(() => {
580
580
  a({
581
581
  name: e.name,
@@ -602,7 +602,7 @@ var q = {
602
602
  let ve = async () => {
603
603
  A(null), D(null);
604
604
  try {
605
- await pe({ variables: {
605
+ await fe({ variables: {
606
606
  id: e.id,
607
607
  input: {
608
608
  name: i.name.trim() || void 0,
@@ -643,12 +643,12 @@ var q = {
643
643
  } catch (e) {
644
644
  A(e instanceof Error ? e.message : r("devportal.failedToUpdateTaxInfo", "Failed to update tax information"));
645
645
  }
646
- }, xe = async () => {
646
+ }, xe = async (t) => {
647
647
  A(null), D(null);
648
648
  try {
649
- await pe({ variables: {
649
+ await fe({ variables: {
650
650
  id: e.id,
651
- input: { pickupPostalCode: m.pickupPostalCode.trim() || null }
651
+ input: { pickupPostalCode: t.trim() || null }
652
652
  } }), D(r("devportal.fulfillmentInfoUpdated", "Fulfillment settings updated"));
653
653
  } catch (e) {
654
654
  A(e instanceof Error ? e.message : r("devportal.failedToUpdateFulfillmentInfo", "Failed to update fulfillment settings"));
@@ -782,10 +782,10 @@ var q = {
782
782
  className: "flex justify-end",
783
783
  children: /* @__PURE__ */ z("button", {
784
784
  type: "button",
785
- disabled: !n || $,
785
+ disabled: !n || pe,
786
786
  onClick: () => void ve(),
787
787
  className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",
788
- children: [$ ? /* @__PURE__ */ R(j, {
788
+ children: [pe ? /* @__PURE__ */ R(j, {
789
789
  size: 14,
790
790
  className: "animate-spin"
791
791
  }) : /* @__PURE__ */ R(N, { size: 14 }), r("devportal.saveChanges", "Save Changes")]
@@ -881,65 +881,103 @@ var q = {
881
881
  }),
882
882
  e.kind === "PHYSICAL" && /* @__PURE__ */ R(d, {
883
883
  title: r("devportal.fulfillment", "Fulfillment"),
884
- children: /* @__PURE__ */ z("div", {
885
- className: "space-y-4",
886
- children: [(() => {
887
- let e = m.pickupPostalCode.trim(), t = g.find((t) => t.postalCode === e), i = g.length > 0, a = e.length > 0 && i && !t, o = e.length === 0 || !i ? void 0 : t ? `${r("devportal.pickupPostalCodeRegistered", "Registered with")} ${b(t.carrier)} — ${r("devportal.pickupPostalCodeRegisteredSuffix", "ready for automated shipping.")}` : r("devportal.pickupPostalCodeNotRegistered", "This pincode isn't registered with our shipping carrier yet — physical orders can't auto-ship until it's added.");
888
- return /* @__PURE__ */ z("div", {
889
- className: "space-y-2",
890
- children: [
891
- /* @__PURE__ */ R(v, {
892
- label: r("devportal.pickupPostalCode", "Pickup Pincode"),
893
- value: m.pickupPostalCode,
894
- onChange: (e) => h({ pickupPostalCode: e.target.value }),
895
- disabled: !n,
896
- error: t ? void 0 : o,
897
- hint: t ? o : r("devportal.pickupPostalCodeHint", "The postal code your physical orders actually ship from — used to quote real carrier shipping rates. If left blank, we fall back to your linked billing account's address.")
898
- }),
899
- a && n && /* @__PURE__ */ R("button", {
884
+ children: /* @__PURE__ */ R("div", {
885
+ className: "space-y-3",
886
+ children: (() => {
887
+ let e = m.pickupPostalCode.trim(), t = g.find((t) => t.postalCode === e), i = g.length > 0;
888
+ return /* @__PURE__ */ z(L, { children: [
889
+ e.length === 0 ? /* @__PURE__ */ z("div", {
890
+ className: "rounded-md border border-border-seam bg-bg-sunken p-4",
891
+ children: [/* @__PURE__ */ R("p", {
892
+ className: "text-sm font-medium",
893
+ children: r("devportal.noPickupAddress", "No pickup address set up yet")
894
+ }), /* @__PURE__ */ R("p", {
895
+ className: "mt-1 text-sm text-text-secondary",
896
+ children: r("devportal.noPickupAddressHint", "Buyers need to know where your physical orders actually ship from — a bare pincode isn't enough, two sellers can share one. Set up your real pickup address and we'll register it with our shipping carrier for you, free of charge.")
897
+ })]
898
+ }) : t ? /* @__PURE__ */ z("div", {
899
+ className: "rounded-md border border-status-success-border bg-status-success-bg-subtle p-4",
900
+ children: [/* @__PURE__ */ R("p", {
901
+ className: "text-sm font-medium text-status-success-text",
902
+ children: r("devportal.pickupAddressRegistered", "Pickup address registered — ready for automated shipping")
903
+ }), /* @__PURE__ */ z("p", {
904
+ className: "mt-1 text-sm text-text-secondary",
905
+ children: [
906
+ t.label,
907
+ " · ",
908
+ t.postalCode,
909
+ " ·",
910
+ " ",
911
+ b(t.carrier)
912
+ ]
913
+ })]
914
+ }) : i ? /* @__PURE__ */ z("div", {
915
+ className: "rounded-md border border-status-error-border bg-status-error-bg-subtle p-4",
916
+ children: [/* @__PURE__ */ R("p", {
917
+ className: "text-sm font-medium text-status-error-text",
918
+ children: r("devportal.pickupAddressNotRegistered", "Pickup address not registered")
919
+ }), /* @__PURE__ */ z("p", {
920
+ className: "mt-1 text-sm text-text-secondary",
921
+ children: [
922
+ r("devportal.pickupAddressNotRegisteredHint", "Your saved pincode isn't registered with our shipping carrier yet — physical orders can't auto-ship until it's added."),
923
+ " ",
924
+ "(",
925
+ e,
926
+ ")"
927
+ ]
928
+ })]
929
+ }) : /* @__PURE__ */ z("div", {
930
+ className: "rounded-md border border-border-seam bg-bg-sunken p-4",
931
+ children: [/* @__PURE__ */ R("p", {
932
+ className: "text-sm font-medium",
933
+ children: e
934
+ }), /* @__PURE__ */ R("p", {
935
+ className: "mt-1 text-sm text-text-secondary",
936
+ children: r("devportal.pickupAddressStatusUnavailable", "Couldn't check registration status right now.")
937
+ })]
938
+ }),
939
+ n && /* @__PURE__ */ z("div", {
940
+ className: "flex items-center gap-4",
941
+ children: [/* @__PURE__ */ R("button", {
900
942
  type: "button",
901
943
  onClick: () => T(!0),
902
944
  className: "text-sm font-medium text-action-primary-text hover:underline",
903
- children: r("devportal.registerPickupAddressCta", "Register this address with Shiprocket")
904
- }),
905
- w && /* @__PURE__ */ R(ee, {
906
- open: w,
907
- onOpenChange: T,
908
- postalCode: e,
909
- carrier: "shiprocket",
910
- onRegistered: re
911
- })
912
- ]
913
- });
914
- })(), /* @__PURE__ */ R("div", {
915
- className: "flex justify-end",
916
- children: /* @__PURE__ */ z("button", {
917
- type: "button",
918
- disabled: !n || $,
919
- onClick: () => void xe(),
920
- className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",
921
- children: [$ ? /* @__PURE__ */ R(j, {
922
- size: 14,
923
- className: "animate-spin"
924
- }) : null, r("devportal.saveFulfillmentInfo", "Save Fulfillment Settings")]
925
- })
926
- })]
945
+ children: e.length === 0 ? r("devportal.setUpPickupAddressCta", "Set up pickup address") : t ? r("devportal.changePickupAddressCta", "Change pickup address") : r("devportal.registerPickupAddressCta", "Register this address with Shiprocket")
946
+ }), e.length > 0 && /* @__PURE__ */ R("button", {
947
+ type: "button",
948
+ disabled: pe,
949
+ onClick: () => void xe(""),
950
+ className: "text-sm text-text-secondary hover:underline disabled:opacity-50",
951
+ children: r("devportal.removePickupAddressCta", "Use billing account address instead")
952
+ })]
953
+ }),
954
+ w && /* @__PURE__ */ R(ee, {
955
+ open: w,
956
+ onOpenChange: T,
957
+ initialPostalCode: e,
958
+ carrier: "shiprocket",
959
+ onRegistered: (e) => {
960
+ h({ pickupPostalCode: e }), xe(e), re();
961
+ }
962
+ })
963
+ ] });
964
+ })()
927
965
  })
928
966
  }),
929
967
  /* @__PURE__ */ z(d, {
930
968
  title: r("devportal.verificationStatus", "Verification Status"),
931
969
  children: [/* @__PURE__ */ R(_, { items: [{
932
970
  label: r("devportal.verifiedLabel", "Verified"),
933
- value: X.verificationStatus === "VERIFIED" ? /* @__PURE__ */ z("span", {
971
+ value: Z.verificationStatus === "VERIFIED" ? /* @__PURE__ */ z("span", {
934
972
  className: "text-status-success-text flex items-center gap-1",
935
973
  children: [
936
974
  /* @__PURE__ */ R(O, { size: 14 }),
937
975
  " ",
938
976
  r("devportal.verifiedVia", "Verified via"),
939
977
  " ",
940
- X.verificationMethod
978
+ Z.verificationMethod
941
979
  ]
942
- }) : X.verificationStatus === "PENDING" ? r("devportal.pendingVerification", "Pending verification") : X.verificationStatus === "REJECTED" ? r("devportal.verificationRejected", "Rejected") : r("devportal.notVerified", "Not verified")
980
+ }) : Z.verificationStatus === "PENDING" ? r("devportal.pendingVerification", "Pending verification") : Z.verificationStatus === "REJECTED" ? r("devportal.verificationRejected", "Rejected") : r("devportal.notVerified", "Not verified")
943
981
  }, {
944
982
  label: r("devportal.certifiedLabel", "Certified"),
945
983
  value: e.isCertified ? /* @__PURE__ */ z("span", {
@@ -952,7 +990,7 @@ var q = {
952
990
  e.certificationExpiry ? new Date(e.certificationExpiry).toLocaleDateString() : "N/A"
953
991
  ]
954
992
  }) : r("devportal.notCertified", "Not certified")
955
- }] }), X.verificationStatus !== "VERIFIED" && /* @__PURE__ */ R("div", {
993
+ }] }), Z.verificationStatus !== "VERIFIED" && /* @__PURE__ */ R("div", {
956
994
  className: "mt-4 rounded-md border border-border-subtle p-4 space-y-3",
957
995
  children: I ? /* @__PURE__ */ z("p", {
958
996
  className: "text-sm text-status-success-text flex items-center gap-2",
@@ -962,29 +1000,29 @@ var q = {
962
1000
  className: "text-sm text-text-secondary",
963
1001
  children: r("devportal.requestVerificationHint", "Get your organization verified to build trust with users. Choose a verification method:")
964
1002
  }),
965
- X.verificationStatus === "PENDING" && /* @__PURE__ */ z("div", {
1003
+ Z.verificationStatus === "PENDING" && /* @__PURE__ */ z("div", {
966
1004
  className: "rounded-md border border-border-subtle bg-bg-sunken/40 p-3 text-sm text-text-secondary",
967
1005
  children: [
968
1006
  r("devportal.pendingVerification", "Pending verification"),
969
- X.verificationMethod ? ` · ${X.verificationMethod}` : "",
970
- X.verificationRequestNotes ? ` · ${X.verificationRequestNotes}` : ""
1007
+ Z.verificationMethod ? ` · ${Z.verificationMethod}` : "",
1008
+ Z.verificationRequestNotes ? ` · ${Z.verificationRequestNotes}` : ""
971
1009
  ]
972
1010
  }),
973
- X.verificationStatus === "REJECTED" && X.verificationRejectedReason && /* @__PURE__ */ R("div", {
1011
+ Z.verificationStatus === "REJECTED" && Z.verificationRejectedReason && /* @__PURE__ */ R("div", {
974
1012
  className: "rounded-md border border-status-error-border bg-status-error-bg-subtle p-3 text-sm text-status-error-text",
975
- children: X.verificationRejectedReason
1013
+ children: Z.verificationRejectedReason
976
1014
  }),
977
- Z.length > 0 && /* @__PURE__ */ z("div", {
1015
+ Q.length > 0 && /* @__PURE__ */ z("div", {
978
1016
  className: "rounded-md border border-border-subtle bg-bg-sunken/40 p-3 text-sm text-text-secondary",
979
1017
  children: [/* @__PURE__ */ R("div", {
980
1018
  className: "font-medium text-text-primary",
981
1019
  children: r("devportal.completeBeforeVerification", "Complete these details before submitting for review")
982
1020
  }), /* @__PURE__ */ R("ul", {
983
1021
  className: "mt-2 list-disc pl-5 space-y-1",
984
- children: Z.map((e) => /* @__PURE__ */ R("li", { children: e }, e))
1022
+ children: Q.map((e) => /* @__PURE__ */ R("li", { children: e }, e))
985
1023
  })]
986
1024
  }),
987
- X.verificationStatus !== "PENDING" && /* @__PURE__ */ z(L, { children: [
1025
+ Z.verificationStatus !== "PENDING" && /* @__PURE__ */ z(L, { children: [
988
1026
  /* @__PURE__ */ R("div", {
989
1027
  className: "flex gap-2 flex-wrap",
990
1028
  children: [
@@ -1017,7 +1055,7 @@ var q = {
1017
1055
  }),
1018
1056
  /* @__PURE__ */ z("button", {
1019
1057
  type: "button",
1020
- disabled: !fe,
1058
+ disabled: !de,
1021
1059
  onClick: () => void (async () => {
1022
1060
  let t = q.trim(), n = G.trim(), a = V.trim();
1023
1061
  if (M === "domain" && !se(t)) {
@@ -1032,9 +1070,9 @@ var q = {
1032
1070
  A(r("devportal.verification.errors.notesRequired", "Add notes so the reviewer knows what to verify"));
1033
1071
  return;
1034
1072
  }
1035
- A(null), D(null), de(!0);
1073
+ A(null), D(null), X(!0);
1036
1074
  try {
1037
- await pe({ variables: {
1075
+ await fe({ variables: {
1038
1076
  id: e.id,
1039
1077
  input: {
1040
1078
  name: i.name.trim() || void 0,
@@ -1078,7 +1116,7 @@ var q = {
1078
1116
  } catch (e) {
1079
1117
  A(e instanceof Error ? e.message : r("devportal.verificationRequestFailed", "Verification request failed"));
1080
1118
  } finally {
1081
- de(!1);
1119
+ X(!1);
1082
1120
  }
1083
1121
  })(),
1084
1122
  className: "inline-flex items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text hover:bg-action-primary-bg/90 disabled:opacity-50",