UNPKG

react-pp-bundle

Version:

Polaris组件库扩展包

1,486 lines (1,484 loc) 245 kB
import ee, { useRef as Et, useState as xe, useEffect as Fe, useMemo as Z, createContext as xP, useContext as SP, useCallback as FP, useLayoutEffect as $P } from "react"; import { Text as M, Button as Ze, Card as it, BlockStack as Se, InlineStack as fe, Popover as AP, ActionList as RP, Tooltip as IP, RadioButton as EP, RangeSlider as wP, Box as jP, Badge as ht, Layout as Pt, LegacyCard as ie, TextContainer as Ie, SkeletonDisplayText as Ee, SkeletonBodyText as oe } from "@shopify/polaris"; import { cloneDeep as Ke } from "lodash-es"; import Ge from "axios"; var _T = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function DP(n) { return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n; } var bt = { exports: {} }, we = {}; /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Gt; function CP() { if (Gt) return we; Gt = 1; var n = ee, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 }; function o(s, l, c) { var d, f = {}, T = null, P = null; c !== void 0 && (T = "" + c), l.key !== void 0 && (T = "" + l.key), l.ref !== void 0 && (P = l.ref); for (d in l) r.call(l, d) && !i.hasOwnProperty(d) && (f[d] = l[d]); if (s && s.defaultProps) for (d in l = s.defaultProps, l) f[d] === void 0 && (f[d] = l[d]); return { $$typeof: e, type: s, key: T, ref: P, props: f, _owner: a.current }; } return we.Fragment = t, we.jsx = o, we.jsxs = o, we; } var je = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Jt; function NP() { return Jt || (Jt = 1, process.env.NODE_ENV !== "production" && function() { var n = ee, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), v = Symbol.iterator, k = "@@iterator"; function O(u) { if (u === null || typeof u != "object") return null; var h = v && u[v] || u[k]; return typeof h == "function" ? h : null; } var m = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function b(u) { { for (var h = arguments.length, y = new Array(h > 1 ? h - 1 : 0), x = 1; x < h; x++) y[x - 1] = arguments[x]; C("error", u, y); } } function C(u, h, y) { { var x = m.ReactDebugCurrentFrame, D = x.getStackAddendum(); D !== "" && (h += "%s", y = y.concat([D])); var N = y.map(function(E) { return String(E); }); N.unshift("Warning: " + h), Function.prototype.apply.call(console[u], console, N); } } var R = !1, w = !1, j = !1, X = !1, F = !1, $; $ = Symbol.for("react.module.reference"); function A(u) { return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || F || u === a || u === c || u === d || X || u === P || R || w || j || typeof u == "object" && u !== null && (u.$$typeof === T || u.$$typeof === f || u.$$typeof === o || u.$$typeof === s || u.$$typeof === l || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. u.$$typeof === $ || u.getModuleId !== void 0)); } function q(u, h, y) { var x = u.displayName; if (x) return x; var D = h.displayName || h.name || ""; return D !== "" ? y + "(" + D + ")" : y; } function te(u) { return u.displayName || "Context"; } function L(u) { if (u == null) return null; if (typeof u.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function") return u.displayName || u.name || null; if (typeof u == "string") return u; switch (u) { case r: return "Fragment"; case t: return "Portal"; case i: return "Profiler"; case a: return "StrictMode"; case c: return "Suspense"; case d: return "SuspenseList"; } if (typeof u == "object") switch (u.$$typeof) { case s: var h = u; return te(h) + ".Consumer"; case o: var y = u; return te(y._context) + ".Provider"; case l: return q(u, u.render, "ForwardRef"); case f: var x = u.displayName || null; return x !== null ? x : L(u.type) || "Memo"; case T: { var D = u, N = D._payload, E = D._init; try { return L(E(N)); } catch { return null; } } } return null; } var B = Object.assign, le = 0, Q, G, ce, he, Ae, V, ne; function ue() { } ue.__reactDisabledLog = !0; function ze() { { if (le === 0) { Q = console.log, G = console.info, ce = console.warn, he = console.error, Ae = console.group, V = console.groupCollapsed, ne = console.groupEnd; var u = { configurable: !0, enumerable: !0, value: ue, writable: !0 }; Object.defineProperties(console, { info: u, log: u, warn: u, error: u, group: u, groupCollapsed: u, groupEnd: u }); } le++; } } function Ye() { { if (le--, le === 0) { var u = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: B({}, u, { value: Q }), info: B({}, u, { value: G }), warn: B({}, u, { value: ce }), error: B({}, u, { value: he }), group: B({}, u, { value: Ae }), groupCollapsed: B({}, u, { value: V }), groupEnd: B({}, u, { value: ne }) }); } le < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var st = m.ReactCurrentDispatcher, lt; function He(u, h, y) { { if (lt === void 0) try { throw Error(); } catch (D) { var x = D.stack.trim().match(/\n( *(at )?)/); lt = x && x[1] || ""; } return ` ` + lt + u; } } var ct = !1, Ue; { var eP = typeof WeakMap == "function" ? WeakMap : Map; Ue = new eP(); } function Ct(u, h) { if (!u || ct) return ""; { var y = Ue.get(u); if (y !== void 0) return y; } var x; ct = !0; var D = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var N; N = st.current, st.current = null, ze(); try { if (h) { var E = function() { throw Error(); }; if (Object.defineProperty(E.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(E, []); } catch (K) { x = K; } Reflect.construct(u, [], E); } else { try { E.call(); } catch (K) { x = K; } u.call(E.prototype); } } else { try { throw Error(); } catch (K) { x = K; } u(); } } catch (K) { if (K && x && typeof K.stack == "string") { for (var I = K.stack.split(` `), W = x.stack.split(` `), z = I.length - 1, Y = W.length - 1; z >= 1 && Y >= 0 && I[z] !== W[Y]; ) Y--; for (; z >= 1 && Y >= 0; z--, Y--) if (I[z] !== W[Y]) { if (z !== 1 || Y !== 1) do if (z--, Y--, Y < 0 || I[z] !== W[Y]) { var J = ` ` + I[z].replace(" at new ", " at "); return u.displayName && J.includes("<anonymous>") && (J = J.replace("<anonymous>", u.displayName)), typeof u == "function" && Ue.set(u, J), J; } while (z >= 1 && Y >= 0); break; } } } finally { ct = !1, st.current = N, Ye(), Error.prepareStackTrace = D; } var _e = u ? u.displayName || u.name : "", Pe = _e ? He(_e) : ""; return typeof u == "function" && Ue.set(u, Pe), Pe; } function tP(u, h, y) { return Ct(u, !1); } function nP(u) { var h = u.prototype; return !!(h && h.isReactComponent); } function Ve(u, h, y) { if (u == null) return ""; if (typeof u == "function") return Ct(u, nP(u)); if (typeof u == "string") return He(u); switch (u) { case c: return He("Suspense"); case d: return He("SuspenseList"); } if (typeof u == "object") switch (u.$$typeof) { case l: return tP(u.render); case f: return Ve(u.type, h, y); case T: { var x = u, D = x._payload, N = x._init; try { return Ve(N(D), h, y); } catch { } } } return ""; } var Re = Object.prototype.hasOwnProperty, Nt = {}, Mt = m.ReactDebugCurrentFrame; function We(u) { if (u) { var h = u._owner, y = Ve(u.type, u._source, h ? h.type : null); Mt.setExtraStackFrame(y); } else Mt.setExtraStackFrame(null); } function rP(u, h, y, x, D) { { var N = Function.call.bind(Re); for (var E in u) if (N(u, E)) { var I = void 0; try { if (typeof u[E] != "function") { var W = Error((x || "React class") + ": " + y + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw W.name = "Invariant Violation", W; } I = u[E](h, E, x, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (z) { I = z; } I && !(I instanceof Error) && (We(D), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", y, E, typeof I), We(null)), I instanceof Error && !(I.message in Nt) && (Nt[I.message] = !0, We(D), b("Failed %s type: %s", y, I.message), We(null)); } } } var aP = Array.isArray; function ut(u) { return aP(u); } function iP(u) { { var h = typeof Symbol == "function" && Symbol.toStringTag, y = h && u[Symbol.toStringTag] || u.constructor.name || "Object"; return y; } } function oP(u) { try { return Lt(u), !1; } catch { return !0; } } function Lt(u) { return "" + u; } function Xt(u) { if (oP(u)) return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", iP(u)), Lt(u); } var qt = m.ReactCurrentOwner, sP = { key: !0, ref: !0, __self: !0, __source: !0 }, Bt, zt; function lP(u) { if (Re.call(u, "ref")) { var h = Object.getOwnPropertyDescriptor(u, "ref").get; if (h && h.isReactWarning) return !1; } return u.ref !== void 0; } function cP(u) { if (Re.call(u, "key")) { var h = Object.getOwnPropertyDescriptor(u, "key").get; if (h && h.isReactWarning) return !1; } return u.key !== void 0; } function uP(u, h) { typeof u.ref == "string" && qt.current; } function dP(u, h) { { var y = function() { Bt || (Bt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h)); }; y.isReactWarning = !0, Object.defineProperty(u, "key", { get: y, configurable: !0 }); } } function fP(u, h) { { var y = function() { zt || (zt = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", h)); }; y.isReactWarning = !0, Object.defineProperty(u, "ref", { get: y, configurable: !0 }); } } var pP = function(u, h, y, x, D, N, E) { var I = { // This tag allows us to uniquely identify this as a React Element $$typeof: e, // Built-in properties that belong on the element type: u, key: h, ref: y, props: E, // Record the component responsible for creating this element. _owner: N }; return I._store = {}, Object.defineProperty(I._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(I, "_self", { configurable: !1, enumerable: !1, writable: !1, value: x }), Object.defineProperty(I, "_source", { configurable: !1, enumerable: !1, writable: !1, value: D }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I; }; function gP(u, h, y, x, D) { { var N, E = {}, I = null, W = null; y !== void 0 && (Xt(y), I = "" + y), cP(h) && (Xt(h.key), I = "" + h.key), lP(h) && (W = h.ref, uP(h, D)); for (N in h) Re.call(h, N) && !sP.hasOwnProperty(N) && (E[N] = h[N]); if (u && u.defaultProps) { var z = u.defaultProps; for (N in z) E[N] === void 0 && (E[N] = z[N]); } if (I || W) { var Y = typeof u == "function" ? u.displayName || u.name || "Unknown" : u; I && dP(E, Y), W && fP(E, Y); } return pP(u, I, W, D, x, qt.current, E); } } var dt = m.ReactCurrentOwner, Yt = m.ReactDebugCurrentFrame; function ye(u) { if (u) { var h = u._owner, y = Ve(u.type, u._source, h ? h.type : null); Yt.setExtraStackFrame(y); } else Yt.setExtraStackFrame(null); } var ft; ft = !1; function pt(u) { return typeof u == "object" && u !== null && u.$$typeof === e; } function Ht() { { if (dt.current) { var u = L(dt.current.type); if (u) return ` Check the render method of \`` + u + "`."; } return ""; } } function hP(u) { return ""; } var Ut = {}; function PP(u) { { var h = Ht(); if (!h) { var y = typeof u == "string" ? u : u.displayName || u.name; y && (h = ` Check the top-level render call using <` + y + ">."); } return h; } } function Vt(u, h) { { if (!u._store || u._store.validated || u.key != null) return; u._store.validated = !0; var y = PP(h); if (Ut[y]) return; Ut[y] = !0; var x = ""; u && u._owner && u._owner !== dt.current && (x = " It was passed a child from " + L(u._owner.type) + "."), ye(u), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, x), ye(null); } } function Wt(u, h) { { if (typeof u != "object") return; if (ut(u)) for (var y = 0; y < u.length; y++) { var x = u[y]; pt(x) && Vt(x, h); } else if (pt(u)) u._store && (u._store.validated = !0); else if (u) { var D = O(u); if (typeof D == "function" && D !== u.entries) for (var N = D.call(u), E; !(E = N.next()).done; ) pt(E.value) && Vt(E.value, h); } } } function vP(u) { { var h = u.type; if (h == null || typeof h == "string") return; var y; if (typeof h == "function") y = h.propTypes; else if (typeof h == "object" && (h.$$typeof === l || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. h.$$typeof === f)) y = h.propTypes; else return; if (y) { var x = L(h); rP(y, u.props, "prop", x, u); } else if (h.PropTypes !== void 0 && !ft) { ft = !0; var D = L(h); b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown"); } typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function mP(u) { { for (var h = Object.keys(u.props), y = 0; y < h.length; y++) { var x = h[y]; if (x !== "children" && x !== "key") { ye(u), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), ye(null); break; } } u.ref !== null && (ye(u), b("Invalid attribute `ref` supplied to `React.Fragment`."), ye(null)); } } var Kt = {}; function Qt(u, h, y, x, D, N) { { var E = A(u); if (!E) { var I = ""; (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var W = hP(); W ? I += W : I += Ht(); var z; u === null ? z = "null" : ut(u) ? z = "array" : u !== void 0 && u.$$typeof === e ? (z = "<" + (L(u.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : z = typeof u, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, I); } var Y = gP(u, h, y, D, N); if (Y == null) return Y; if (E) { var J = h.children; if (J !== void 0) if (x) if (ut(J)) { for (var _e = 0; _e < J.length; _e++) Wt(J[_e], u); Object.freeze && Object.freeze(J); } else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else Wt(J, u); } if (Re.call(h, "key")) { var Pe = L(u), K = Object.keys(h).filter(function(OP) { return OP !== "key"; }), gt = K.length > 0 ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!Kt[Pe + gt]) { var kP = K.length > 0 ? "{" + K.join(": ..., ") + ": ...}" : "{}"; b(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, gt, Pe, kP, Pe), Kt[Pe + gt] = !0; } } return u === r ? mP(Y) : vP(Y), Y; } } function TP(u, h, y) { return Qt(u, h, y, !0); } function yP(u, h, y) { return Qt(u, h, y, !1); } var _P = yP, bP = TP; je.Fragment = r, je.jsx = _P, je.jsxs = bP; }()), je; } process.env.NODE_ENV === "production" ? bt.exports = CP() : bt.exports = NP(); var p = bt.exports, En = { exports: {} }; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ (function(n) { (function() { var e = {}.hasOwnProperty; function t() { for (var i = "", o = 0; o < arguments.length; o++) { var s = arguments[o]; s && (i = a(i, r(s))); } return i; } function r(i) { if (typeof i == "string" || typeof i == "number") return i; if (typeof i != "object") return ""; if (Array.isArray(i)) return t.apply(null, i); if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) return i.toString(); var o = ""; for (var s in i) e.call(i, s) && i[s] && (o = a(o, s)); return o; } function a(i, o) { return o ? i ? i + " " + o : i + o : i; } n.exports ? (t.default = t, n.exports = t) : window.classNames = t; })(); })(En); var MP = En.exports; const et = /* @__PURE__ */ DP(MP), LP = "_radiosBoxBorderWrapper_1vmjb_14", XP = "_radiosBox_1vmjb_14", qP = "_radioBox_1vmjb_34", BP = "_radio_1vmjb_14", zP = "_radioActive_1vmjb_67", YP = "_radioActiveBgBox_1vmjb_72", HP = "_radioActiveBg_1vmjb_72", ve = { radiosBoxBorderWrapper: LP, radiosBox: XP, radioBox: qP, radio: BP, radioActive: zP, radioActiveBgBox: YP, radioActiveBg: HP }, UP = (n) => { const { className: e, options: t, value: r, onChange: a } = n, i = Et([]), [o, s] = xe(0); Fe(() => { if (i.current = new Array(t.length).fill(null).map((c, d) => i.current[d] || null), t.length) { let c = null; t.forEach((d, f) => { d.value === r && (c = i.current[f]); }), c && s(c.clientWidth); } }, [t]); const l = Z(() => { var d; const c = t.findIndex((f) => f.value === r); if (c !== -1) { let f = 0; for (let T = 0; T < c; T++) f += ((d = i.current[T]) == null ? void 0 : d.clientWidth) ?? 0, f !== 0 && (f += 6); return f; } return 0; }, [r, t, i.current]); return /* @__PURE__ */ p.jsx("div", { className: et(ve.radiosBoxBorderWrapper, e), children: /* @__PURE__ */ p.jsxs("div", { className: ve.radiosBox, children: [ /* @__PURE__ */ p.jsx("div", { className: ve.radioActiveBgBox, children: !!o && /* @__PURE__ */ p.jsx( "div", { className: ve.radioActiveBg, style: { width: `${o}px`, transform: `translateX(${l}px)` } } ) }), t.map((c, d) => /* @__PURE__ */ p.jsx( "div", { className: ve.radioBox, ref: (f) => i.current[d] = f, onClick: () => a(c.value), children: /* @__PURE__ */ p.jsx( "div", { className: et({ [ve.radio]: !0, [ve.radioActive]: r === c.value }), children: /* @__PURE__ */ p.jsx(M, { as: "span", variant: "bodyMd", fontWeight: "medium", children: c.label }) } ) }, c.value )) ] }) }); }, wn = (n) => function(t) { return /* @__PURE__ */ p.jsx("div", { style: n, children: /* @__PURE__ */ p.jsx(UP, { ...t }) }); }, bT = wn({ "--pb-toggle-text-color-active": "#FFFFFF", "--pb-toggle-box-bg": "linear-gradient(90deg, #68A5FE 0%, #0067FF 100%)", "--pb-toggle-bg-active": "linear-gradient(90deg, #68A5FE 0%, #68A5FE 0.01%, #0067FF 48.96%, #0067FF 100%)" }), VP = wn({ "--pb-toggle-box-bg": "linear-gradient(90deg, #B1EDFA 0%, #4DFF9E 100%)", "--pb-toggle-bg-active": "linear-gradient(90deg, #B1F5FA 0%, #B0F5FA 0.01%, #4DFF9E 48.96%, #4DFF9E 100%)" }); var jn = function(e) { return /* @__PURE__ */ ee.createElement("svg", Object.assign({ viewBox: "0 0 20 20" }, e), /* @__PURE__ */ ee.createElement("path", { d: "M11.75 4.5a.75.75 0 0 0 0 1.5h1.19l-2.72 2.72a.75.75 0 1 0 1.06 1.06l2.72-2.72v1.19a.75.75 0 0 0 1.5 0v-3a.75.75 0 0 0-.75-.75h-3Z" }), /* @__PURE__ */ ee.createElement("path", { d: "M15 11.25a.75.75 0 0 0-1.5 0v1c0 .69-.56 1.25-1.25 1.25h-4.5c-.69 0-1.25-.56-1.25-1.25v-4.5c0-.69.56-1.25 1.25-1.25h1a.75.75 0 0 0 0-1.5h-1a2.75 2.75 0 0 0-2.75 2.75v4.5a2.75 2.75 0 0 0 2.75 2.75h4.5a2.75 2.75 0 0 0 2.75-2.75v-1Z" })); }; jn.displayName = "ExternalSmallIcon"; var Dn = function(e) { return /* @__PURE__ */ ee.createElement("svg", Object.assign({ viewBox: "0 0 20 20" }, e), /* @__PURE__ */ ee.createElement("path", { d: "M6 10a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" }), /* @__PURE__ */ ee.createElement("path", { d: "M11.5 10a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" }), /* @__PURE__ */ ee.createElement("path", { d: "M17 10a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z" })); }; Dn.displayName = "MenuHorizontalIcon"; var Cn = function(e) { return /* @__PURE__ */ ee.createElement("svg", Object.assign({ viewBox: "0 0 20 20" }, e), /* @__PURE__ */ ee.createElement("path", { d: "M13.97 15.03a.75.75 0 1 0 1.06-1.06l-3.97-3.97 3.97-3.97a.75.75 0 0 0-1.06-1.06l-3.97 3.97-3.97-3.97a.75.75 0 0 0-1.06 1.06l3.97 3.97-3.97 3.97a.75.75 0 1 0 1.06 1.06l3.97-3.97 3.97 3.97Z" })); }; Cn.displayName = "XIcon"; const WP = (n) => { const { onClose: e, period: t } = n, a = { 1: "https://return-cdn.parcelpanel.com/public/pp_bundle/month_discount.png", 2: "https://return-cdn.parcelpanel.com/public/pp_bundle/year_discount.png" }[t] ?? "https://return-cdn.parcelpanel.com/public/pp_bundle/month_discount.png"; return /* @__PURE__ */ p.jsxs("div", { className: "pb-w-full pb-relative pb-mb-4 sm:pb-rounded-xl pb-overflow-hidden", children: [ /* @__PURE__ */ p.jsx("div", { className: "pb-absolute md:pb-top-4 md:pb-right-4 pb-top-1 pb-right-1", children: /* @__PURE__ */ p.jsx(Ze, { icon: Cn, variant: "plain", onClick: e }) }), /* @__PURE__ */ p.jsx("img", { className: "pb-w-full pb-flex", src: a, alt: "" }) ] }); }; var re = /* @__PURE__ */ ((n) => (n[n.Month = 1] = "Month", n[n.Year = 2] = "Year", n))(re || {}), _ = /* @__PURE__ */ ((n) => (n[n.Essential = 2] = "Essential", n[n.Professional = 3] = "Professional", n[n.Enterprise = 4] = "Enterprise", n))(_ || {}), g = /* @__PURE__ */ ((n) => (n[n.Tracking = 1] = "Tracking", n[n.Returns = 2] = "Returns", n[n.Protection = 3] = "Protection", n))(g || {}), Je = /* @__PURE__ */ ((n) => (n[n.Trial = 1] = "Trial", n[n.Normal = 2] = "Normal", n))(Je || {}); const KP = (n, e, t, r) => { var i, o, s, l; const a = [t, { code: e, ...r || {} }]; if ((o = (i = n == null ? void 0 : n.services) == null ? void 0 : i.logger) != null && o.forward) return n.services.logger.forward(a, "warn", "react-i18next::", !0); me(a[0]) && (a[0] = `react-i18next:: ${a[0]}`), (l = (s = n == null ? void 0 : n.services) == null ? void 0 : s.logger) != null && l.warn ? n.services.logger.warn(...a) : console != null && console.warn && console.warn(...a); }, Zt = {}, kt = (n, e, t, r) => { me(t) && Zt[t] || (me(t) && (Zt[t] = /* @__PURE__ */ new Date()), KP(n, e, t, r)); }, Nn = (n, e) => () => { if (n.isInitialized) e(); else { const t = () => { setTimeout(() => { n.off("initialized", t); }, 0), e(); }; n.on("initialized", t); } }, Ot = (n, e, t) => { n.loadNamespaces(e, Nn(n, t)); }, en = (n, e, t, r) => { if (me(t) && (t = [t]), n.options.preload && n.options.preload.indexOf(e) > -1) return Ot(n, t, r); t.forEach((a) => { n.options.ns.indexOf(a) < 0 && n.options.ns.push(a); }), n.loadLanguages(e, Nn(n, r)); }, QP = (n, e, t = {}) => !e.languages || !e.languages.length ? (kt(e, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: e.languages }), !0) : e.hasLoadedNamespace(n, { lng: t.lng, precheck: (r, a) => { var i; if (((i = t.bindI18n) == null ? void 0 : i.indexOf("languageChanging")) > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !a(r.isLanguageChangingTo, n)) return !1; } }), me = (n) => typeof n == "string", GP = (n) => typeof n == "object" && n !== null, JP = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ZP = { "&amp;": "&", "&#38;": "&", "&lt;": "<", "&#60;": "<", "&gt;": ">", "&#62;": ">", "&apos;": "'", "&#39;": "'", "&quot;": '"', "&#34;": '"', "&nbsp;": " ", "&#160;": " ", "&copy;": "©", "&#169;": "©", "&reg;": "®", "&#174;": "®", "&hellip;": "…", "&#8230;": "…", "&#x2F;": "/", "&#47;": "/" }, ev = (n) => ZP[n], tv = (n) => n.replace(JP, ev); let xt = { bindI18n: "languageChanged", bindI18nStore: "", transEmptyNodeValue: "", transSupportBasicHtmlNodes: !0, transWrapTextNodes: "", transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"], useSuspense: !0, unescape: tv }; const nv = (n = {}) => { xt = { ...xt, ...n }; }, rv = () => xt; let Mn; const av = (n) => { Mn = n; }, iv = () => Mn, ov = { type: "3rdParty", init(n) { nv(n.options.react), av(n); } }, sv = xP(); class lv { constructor() { this.usedNamespaces = {}; } addUsedNamespaces(e) { e.forEach((t) => { this.usedNamespaces[t] || (this.usedNamespaces[t] = !0); }); } getUsedNamespaces() { return Object.keys(this.usedNamespaces); } } const cv = (n, e) => { const t = Et(); return Fe(() => { t.current = n; }, [n, e]), t.current; }, Ln = (n, e, t, r) => n.getFixedT(e, t, r), uv = (n, e, t, r) => FP(Ln(n, e, t, r), [n, e, t, r]), Xe = (n, e = {}) => { var R, w, j, X; const { i18n: t } = e, { i18n: r, defaultNS: a } = SP(sv) || {}, i = t || r || iv(); if (i && !i.reportNamespaces && (i.reportNamespaces = new lv()), !i) { kt(i, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next"); const F = (A, q) => me(q) ? q : GP(q) && me(q.defaultValue) ? q.defaultValue : Array.isArray(A) ? A[A.length - 1] : A, $ = [F, {}, !1]; return $.t = F, $.i18n = {}, $.ready = !1, $; } (R = i.options.react) != null && R.wait && kt(i, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour."); const o = { ...rv(), ...i.options.react, ...e }, { useSuspense: s, keyPrefix: l } = o; let c = a || ((w = i.options) == null ? void 0 : w.defaultNS); c = me(c) ? [c] : c || ["translation"], (X = (j = i.reportNamespaces).addUsedNamespaces) == null || X.call(j, c); const d = (i.isInitialized || i.initializedStoreOnce) && c.every((F) => QP(F, i, o)), f = uv(i, e.lng || null, o.nsMode === "fallback" ? c : c[0], l), T = () => f, P = () => Ln(i, e.lng || null, o.nsMode === "fallback" ? c : c[0], l), [v, k] = xe(T); let O = c.join(); e.lng && (O = `${e.lng}${O}`); const m = cv(O), b = Et(!0); Fe(() => { const { bindI18n: F, bindI18nStore: $ } = o; b.current = !0, !d && !s && (e.lng ? en(i, e.lng, c, () => { b.current && k(P); }) : Ot(i, c, () => { b.current && k(P); })), d && m && m !== O && b.current && k(P); const A = () => { b.current && k(P); }; return F && (i == null || i.on(F, A)), $ && (i == null || i.store.on($, A)), () => { b.current = !1, i && (F == null || F.split(" ").forEach((q) => i.off(q, A))), $ && i && $.split(" ").forEach((q) => i.store.off(q, A)); }; }, [i, O]), Fe(() => { b.current && d && k(T); }, [i, l, d]); const C = [v, i, d]; if (C.t = v, C.i18n = i, C.ready = d, d || !d && !s) return C; throw new Promise((F) => { e.lng ? en(i, e.lng, c, () => F()) : Ot(i, c, () => F()); }); }, Xn = (n) => { const e = { [re.Year]: { [g.Tracking]: { [_.Essential]: [], [_.Professional]: [], [_.Enterprise]: [] }, [g.Returns]: { [_.Essential]: [], [_.Professional]: [], [_.Enterprise]: [] } }, [re.Month]: { [g.Tracking]: { [_.Essential]: [], [_.Professional]: [], [_.Enterprise]: [] }, [g.Returns]: { [_.Essential]: [], [_.Professional]: [], [_.Enterprise]: [] } } }; return n.pkg_list.forEach((t) => { [g.Tracking, g.Returns].forEach((r) => { t.app_id === r && t.plans.forEach((a) => { e[re.Year][r][a.kind] = a.price_year, e[re.Month][r][a.kind] = a.price_month; }); }); }), e; }, qe = (n, e) => Xn(n)[e], Be = (n, e) => { const t = qe(n, e); return { [g.Tracking]: [ ...t[g.Tracking][_.Essential], ...t[g.Tracking][_.Professional], ...t[g.Tracking][_.Enterprise] ], [g.Returns]: [ ...t[g.Returns][_.Essential], ...t[g.Returns][_.Professional], ...t[g.Returns][_.Enterprise] ] }; }, dv = (n, e, t) => { const r = Be(n, e), a = qe(n, e); return { [g.Tracking]: r[g.Tracking], [g.Returns]: a[g.Returns][t] }; }; function vt(n, e, t, r) { const a = t[g.Tracking][r]; return Be(n, e)[g.Tracking][a]; } function mt(n, e, t, r) { const a = t[g.Returns][r]; return qe(n, e)[g.Returns][r][a]; } const qn = (n, e, t) => ({ [g.Tracking]: { [_.Essential]: vt( n, e, t, _.Essential ), [_.Professional]: vt( n, e, t, _.Professional ), [_.Enterprise]: vt( n, e, t, _.Enterprise ) }, [g.Returns]: { [_.Essential]: mt( n, e, t, _.Essential ), [_.Professional]: mt( n, e, t, _.Professional ), [_.Enterprise]: mt( n, e, t, _.Enterprise ) } }), fv = (n, e, t, r) => { const a = qn(n, e, r); return { [g.Tracking]: a[g.Tracking][t[g.Tracking].kind], [g.Returns]: a[g.Returns][t[g.Returns].kind] }; }, wt = (n) => ({ [g.Tracking]: n.user_pkg.app.find( (e) => e.app_id === g.Tracking ), [g.Returns]: n.user_pkg.app.find( (e) => e.app_id === g.Returns ) }), pv = (n) => { const e = wt(n), t = Be(n, n.user_pkg.subscribe_period ?? n.user_pkg.default_plan_period); return { [g.Tracking]: t[g.Tracking].find( (r) => { var a; return r.app_plan_id === ((a = e[g.Tracking]) == null ? void 0 : a.subscribe_app_plan_id); } ), [g.Returns]: t[g.Returns].find( (r) => { var a; return r.app_plan_id === ((a = e[g.Returns]) == null ? void 0 : a.subscribe_app_plan_id); } ) }; }, gv = (n, e, t, r, a) => { const i = wt(n), o = qe(n, e), s = e === re.Month ? "default_month_plan_id" : "default_year_plan_id", l = Be(n, e), c = { [g.Tracking]: { [_.Essential]: 0, [_.Professional]: o[g.Tracking][_.Essential].length, [_.Enterprise]: o[g.Tracking][_.Essential].length + o[g.Tracking][_.Professional].length }, [g.Returns]: { [_.Essential]: 0, [_.Professional]: 0, [_.Enterprise]: 0 } }, d = { [g.Tracking]: { step: c[g.Tracking][_.Professional], kind: _.Professional }, [g.Returns]: { step: c[g.Returns][_.Professional], kind: _.Professional } }; function f() { var m; if (t === g.Tracking) { if (a) return a; if (r) { const b = l[g.Tracking].find( (C) => C.kind === r ); if (b) return b.app_plan_id; } } return ((m = i[g.Tracking]) == null ? void 0 : m[s]) ?? 0; } const T = f(), P = l[g.Tracking].find( (m) => +m.app_plan_id == +T ); if (P != null && P.kind) { const m = l[g.Tracking].findIndex( (b) => +b.app_plan_id == +T ); m > -1 && (c[g.Tracking][P.kind] = m, d[g.Tracking].kind = P.kind, d[g.Tracking].step = m); } function v() { var m; if (t === g.Returns) { if (a) return a; if (r) { const b = l[g.Returns].find( (C) => C.kind === r ); if (b) return b.app_plan_id; } } return ((m = i[g.Returns]) == null ? void 0 : m[s]) ?? 0; } const k = v(), O = l[g.Returns].find( (m) => +m.app_plan_id == +k ); if (O != null && O.kind) { const m = o[g.Returns][O.kind].findIndex( (b) => +b.app_plan_id == +k ); m > -1 && (c[g.Returns][O.kind] = m, d[g.Returns].kind = O.kind, d[g.Returns].step = m); } return { defaultInfo: d, defaultSteps: c }; }, hv = (n) => { const e = Xn(n.data), t = qe(n.data, n.period), r = Be(n.data, n.period), a = dv(n.data, n.period, n.info[g.Returns].kind), i = qn(n.data, n.period, n.steps), o = fv(n.data, n.period, n.info, n.steps), s = wt(n.data), l = pv(n.data); return { combinedData: e, pkgList: t, priceList: r, rangList: a, pkgPriceInfo: i, currentPriceInfo: o, appInfo: s, subscribePriceInfo: l }; }; function pe(n) { if (n == null || n === "") return "0"; const e = Number(n); return isNaN(e) ? String(n) : e.toLocaleString("en-US"); } const Tt = (n) => { const { title: e, price: t, originPrice: r, justShowOriginPrice: a = !1 } = n, { t: i } = Xe(); return /* @__PURE__ */ p.jsx("div", { className: "pb-page-charge-card", children: /* @__PURE__ */ p.jsx(it, { padding: "300", roundedAbove: "xs", background: "bg-surface-secondary", children: /* @__PURE__ */ p.jsxs(Se, { gap: "300", children: [ /* @__PURE__ */ p.jsx(M, { variant: "headingMd", as: "h2", children: e }), a ? /* @__PURE__ */ p.jsxs("div", { children: [ /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "headingLg", children: [ "$", pe(r) ] }), /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "bodyMd", tone: "subdued", children: [ "/", i("month") ] }) ] }) : /* @__PURE__ */ p.jsxs(fe, { gap: "200", blockAlign: "end", children: [ /* @__PURE__ */ p.jsxs( M, { as: "span", variant: "headingLg", tone: "subdued", textDecorationLine: "line-through", children: [ "$", pe(r) ] } ), /* @__PURE__ */ p.jsx("div", { className: "pb-bg-[#A4E8F2] pb-rounded-lg pb-px-2", children: /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "headingLg", children: [ "$", pe(t), /* @__PURE__ */ p.jsxs( M, { as: "span", variant: "bodyMd", fontWeight: "medium", tone: "subdued", children: [ "/", i("month") ] } ) ] }) }) ] }) ] }) }) }); }, St = { [_.Essential]: "Essential", [_.Professional]: "Professional", [_.Enterprise]: "Enterprise" }, Bn = window.PB_URL || "https://cw3-mid-api.parcelpanel.com", Pv = (n) => { const { onAction: e, currentPriceInfo: t, btnLoading: r, data: a, appInfo: i, btnDisabled: o, period: s } = n, [l, c] = xe(!1), { t: d } = Xe(), f = { [Je.Trial]: { text: "50% off + 10% off", tooltip: d("FiftyOffYourFirstMonthThen_10OffFor") }, [Je.Normal]: { text: "10% off", tooltip: d("TenOffForLife") } }, T = s === re.Year ? Je.Normal : a.user_pkg.discount_kind, P = Z(() => i[g.Tracking] && i[g.Tracking].subscribe_app_plan_id > 1 && i[g.Returns] && i[g.Returns].subscribe_app_plan_id > 1, [i]), v = Z(() => i[g.Tracking] && i[g.Tracking].next_plan_id > 0 && i[g.Returns] && i[g.Returns].next_plan_id > 0, [i]), k = Z(() => { var w, j; return ((w = i[g.Tracking]) == null ? void 0 : w.next_plan_id) === 1 && ((j = i[g.Returns]) == null ? void 0 : j.next_plan_id) === 1; }, [i, t]), O = Z(() => { var w, j; return t[g.Tracking].app_plan_id == ((w = i[g.Tracking]) == null ? void 0 : w.subscribe_app_plan_id) && t[g.Returns].app_plan_id == ((j = i[g.Returns]) == null ? void 0 : j.subscribe_app_plan_id); }, [i, t]), m = Z(() => { var w, j; return t[g.Tracking].app_plan_id == ((w = i[g.Tracking]) == null ? void 0 : w.next_plan_id) && t[g.Returns].app_plan_id == ((j = i[g.Returns]) == null ? void 0 : j.next_plan_id); }, [i, t]), b = Z(() => m ? d("NextPlan") : O ? d("CurrentPlan") : a.user_pkg.trial_days_left > 0 ? d("StartXDayFreeTrial", { x: a.user_pkg.trial_days_left }) : d("ChooseThisPlan"), [a.user_pkg.trial_days_left, O, m, d]), C = Z(() => O || m ? t[g.Tracking].origin_price + t[g.Returns].origin_price : t[g.Tracking].actual_price + t[g.Returns].actual_price, [t, O, m]), R = Z(() => { if (P || v) { let w = function() { return v ? k ? j.slice(0, 1) : j : P ? j.slice(1) : []; }; const j = [ { content: d("ResumePlan"), onAction: () => { c(!1), e == null || e("resumePlan"); } }, { content: d("CancelPlan"), destructive: !0, onAction: () => { c(!1), e == null || e("cancelPlan"); } } ], X = w(); return X.length === 0 ? null : /* @__PURE__ */ p.jsx( AP, { active: l, activator: /* @__PURE__ */ p.jsx( Ze, { onClick: () => { c(!l); }, size: "large", icon: Dn } ), onClose: () => c(!1), preferredAlignment: "left", children: /* @__PURE__ */ p.jsx(RP, { actionRole: "menuitem", items: X }) } ); } return null; }, [l, v, P, k, e, d]); return /* @__PURE__ */ p.jsx(it, { children: /* @__PURE__ */ p.jsxs(Se, { gap: "400", children: [ /* @__PURE__ */ p.jsxs(Se, { gap: "100", children: [ /* @__PURE__ */ p.jsx(M, { variant: "headingMd", as: "h2", children: "ParcelPanel Bundle" }), /* @__PURE__ */ p.jsxs(M, { as: "p", variant: "bodyMd", tone: "subdued", children: [ d("TakeTheFirstStepInDeliveringTheBe"), " " ] }) ] }), /* @__PURE__ */ p.jsx( Tt, { title: `Tracking - ${St[t[g.Tracking].kind]}`, price: t[g.Tracking].actual_price, originPrice: t[g.Tracking].origin_price, justShowOriginPrice: O } ), /* @__PURE__ */ p.jsx( Tt, { title: `Returns - ${St[t[g.Returns].kind]}`, price: t[g.Returns].actual_price, originPrice: t[g.Returns].origin_price, justShowOriginPrice: O } ), /* @__PURE__ */ p.jsx( Tt, { title: "Protection - Free", price: 0, originPrice: 0, justShowOriginPrice: !0 } ), !O && /* @__PURE__ */ p.jsxs(fe, { gap: "200", align: "space-between", children: [ /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "bodyMd", fontWeight: "medium", tone: "subdued", children: [ d("Discount"), " " ] }), /* @__PURE__ */ p.jsx(IP, { content: f[T].tooltip, hasUnderline: !0, children: /* @__PURE__ */ p.jsx( M, { as: "span", variant: "bodyMd", fontWeight: "medium", tone: "success", children: /* @__PURE__ */ p.jsx("span", { children: f[T].text }) } ) }) ] }), /* @__PURE__ */ p.jsxs(fe, { gap: "200", blockAlign: "center", align: "space-between", children: [ /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "headingLg", tone: "subdued", children: [ d("Total"), " " ] }), /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "headingXl", children: [ "$", pe(C), /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "bodyMd", tone: "subdued", children: [ "/", d("month") ] }) ] }) ] }), /* @__PURE__ */ p.jsxs( fe, { gap: "200", blockAlign: "end", wrap: !1, align: "space-between", children: [ /* @__PURE__ */ p.jsx( Ze, { variant: "primary", fullWidth: !0, size: "large", onClick: async () => { await (e == null ? void 0 : e("choosePlan")); }, loading: r, disabled: r || O || m || o, children: b } ), R ] } ) ] }) }); }, tn = ({ title: n, price: e, isHot: t, checked: r, disabled: a, onClick: i }) => { const { t: o } = Xe(); return /* @__PURE__ */ p.jsx("div", { className: "pb-w-full pb-page-plan-card", children: /* @__PURE__ */ p.jsxs(it, { padding: "300", children: [ /* @__PURE__ */ p.jsxs( fe, { gap: "200", blockAlign: "start", align: "space-between", wrap: !1, children: [ /* @__PURE__ */ p.jsx( EP, { label: /* @__PURE__ */ p.jsx(M, { as: "h4", variant: "headingMd", children: n }), checked: r, disabled: a, onChange: i } ), t && /* @__PURE__ */ p.jsx("div", { className: "pb-text-white pb-bg-[#F36A5A] pb-py-[2px] pb-px-2 pb-h-5 pb-rounded-lg pb-inline-flex", children: /* @__PURE__ */ p.jsx(M, { as: "span", variant: "bodySm", fontWeight: "medium", children: "Hot" }) }) ] } ), /* @__PURE__ */ p.jsxs("div", { className: "pb-ml-6 pb-mt-3", children: [ /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "headingLg", children: [ "$", pe(e) ] }), /* @__PURE__ */ p.jsxs(M, { as: "span", variant: "bodyMd", tone: "subdued", children: [ "/", o("month") ] }) ] }) ] }) }); }, vv = (n) => { var P, v, k, O; const { t: e } = Xe(), { info: t, setInfo: r, rangList: a, steps: i, setSteps: o, pkgPriceInfo: s, currentPriceInfo: l, installInfo: c, period: d } = n, f = [ { appId: g.Tracking, icon: "https://return-cdn.parcelpanel.com/public/pp_bundle/tracking.png", title: "ParcelPanel Tracking", desc: e("DeliverEngagingBrandOrderTrackingEx"), plans: [ _.Essential, _.Professional, _.Enterprise ], quotaText: d === re.Year ? e("quotaYear") : e("quotaMonth"), avgText: e("AvgXPerOrder", { replace: { x: `$${((P = l[g.Tracking]) == null ? void 0 : P.avg_price_per_order) ?? 0}` } }), additionalText: e("XPerAdditionalQuota", { replace: { x: `$${((v = l[g.Tracking]) == null ? void 0 : v.one_price) ?? 0}` } }) }, { appId: g.Returns, icon: "https://return-cdn.parcelpanel.com/public/pp_bundle/return.png", title: "ParcelPanel Returns", desc: e("DeliverHassleFreeReturnAndEnticing"), plans: [ _.Essential, _.Professional, _.Enterprise ], quotaText: d === re.Year ? e("returnsYear") : e("returnsMonth"), avgText: e("AvgXPerReturn", { replace: { x: `$${((k = l[g.Returns]) == null ? void 0 : k.avg_price_per_order) ?? 0}` } }), additionalText: e("XPerAdditionalReturn", { replace: { x: `$${((O = l[g.Returns]) == null ? void 0 : O.one_price) ?? 0}` } }) }, { appId: g.Protection, icon: "https://return-cdn.parcelpanel.com/public/pp_bundle/protection.png", title: "ParcelPanel Protection", desc: e("DeliverTopTierShippingProtectionSer"), plans: [] } ], T = (m) => { var b; return c ? m.appId === g.Protection ? /* @__PURE__ */ p.jsx(ht, { children: e("TheProtectionTabInParcelpanelTracki") }) : ((b = c[m.appId]) == null ? void 0 : b.is_installed) === 1 ? /* @__PURE__ */ p.jsx(ht, { tone: "success", children: e("Installed") }) : /* @__PURE__ */ p.jsx(ht, { tone: "warning", children: e("NotInstalled") }) : null; }; return /* @__PURE__ */ p.jsx(Se, { gap: "400", children: f.map((m) => { var R, w, j, X; const b = ((R = c == null ? void 0 : c[m.appId]) == null ? void 0 : R.is_installed) === 1, C = T(m); return /* @__PURE__ */ p.jsx(it, { padding: "400", children: /* @__PURE__ */ p.jsxs(Se, { gap: "400", children: [ /* @__PURE__ */ p.jsxs(Se,