PageSourceSearch

https://webapp.wisestamp.com/assets-ws1/1790235839988/survey-management/survey-management-plugin.js

js wisestamp.com collected 2026-09-24 08:49:55 UTC 1,538 bytes, 49 lines download raw bytes

1import { navigateTo as i, registerApp as s, Priority as o, registerRoutingRule as m, RoutingInstruction as p } from "@mfl/framework";
2import { navigationItems as u } from "@mfe/core-navigation";
3import { reportUserAnalyticEvent as a, PURCHASE_PLANS_URL as c, currentUser as n } from "@mfl/platform-shell";
4import { S as d, b as _, t as R } from "./surveys.strings-Bx9OPkuX.js";
5import { prompt as g, PromptResult as E } from "@mfl/common-components";
6const T = "Upgrade account", f = "Upgrade your account to access this feature";
7async function l(t) {
8  a({
9    eventName: "upgrade_modal_shown",
10    metadata: { origin: t }
11  });
12  const e = await g({
13    aid: "UPGRADE_PROMPT_FROM_NAV_BAR",
14    header: T,
15    question: f,
16    primaryButtonText: "Upgrade",
17    secondaryButtonText: "Cancel"
18  });
19  return a({
20    eventName: "navigated_to_pricing_page",
21    metadata: { origin: t, confirmResult: e }
22  }), e === E.Primary && i(c), !1;
23}
24const r = "/v1/surveys";
25async function P() {
26  if (!n.isAllowedTo(d))
27    return;
28  const t = n.isEntitledTo(_);
29  t && await s("survey-management", (e) => e.pathname.startsWith(r)), u.register(
30    {
31      key: "SURVEYS",
32      text: R.header,
33      fontAwesomeIcon: "ballot-check",
34      ...t ? { route: r } : {
35        ornaments: [{ type: "pro" }],
36        handler: () => l("surveys_nav")
37      }
38    },
39    { priority: o.Medium - 108 }
40  ), t && m({
41    from: p.ROOT,
42    to: r,
43    priority: o.High - 20
44  });
45}
46export {
47  P as register
48};
49//# sourceMappingURL=survey-management-plugin.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.