1import { 2 H, 3 sn 4} from "./chunk-NQLHHYUA.js"; 5import { 6 S as S2 7} from "./chunk-LHIYHMNQ.js"; 8import { 9 S 10} from "./chunk-A6ZWGOMF.js"; 11import { 12 __async 13} from "./chunk-A3K3H554.js"; 14 15// node_modules/@arcgis/core/portal/support/portalItemUtils.js 16function n(n2) { 17 return __async(this, null, function* () { 18 const i2 = n2.spatialReference; 19 if (i2.isWGS84) return n2.clone(); 20 if (i2.isWebMercator) return S2(n2); 21 const a2 = S.WGS84; 22 return yield sn(i2, a2), H(n2, a2); 23 }); 24} 25function i(e, t) { 26 if (!a(e, t)) { 27 const r = e.typeKeywords; 28 r ? r.push(t) : e.typeKeywords = [t]; 29 } 30} 31function a(e, t) { 32 return !!e.typeKeywords?.includes(t); 33} 34function s(e) { 35 return a(e, E.HOSTED_SERVICE); 36} 37function c(e, t) { 38 const r = e.typeKeywords; 39 if (r) { 40 const e2 = r.indexOf(t); 41 e2 > -1 && r.splice(e2, 1); 42 } 43} 44function u(e, t, r) { 45 r ? i(e, t) : c(e, t); 46} 47function l(e) { 48 return __async(this, null, function* () { 49 const t = e.clone().normalize(); 50 let r; 51 if (t.length > 1) for (const o of t) r ? o.width > r.width && (r = o) : r = o; 52 else r = t[0]; 53 return n(r); 54 }); 55} 56var E = { CHARTS: "Charts", CATALOG_LAYER: "CatalogLayer", DYNAMIC: "Dynamic", DEVELOPER_BASEMAP: "DeveloperBasemap", GROUP_LAYER_MAP: "Map", HOSTED_SERVICE: "Hosted Service", JSAPI: "ArcGIS API for JavaScript", LOCAL_SCENE: "ViewingMode-Local", METADATA: "Metadata", MULTI_LAYER: "Multilayer", ORIENTED_IMAGERY_LAYER: "OrientedImageryLayer", PARCEL_FABRIC: "ParcelFabric", SINGLE_LAYER: "Singlelayer", SUBTYPE_GROUP_LAYER: "SubtypeGroupLayer", SUBTYPE_GROUP_TABLE: "SubtypeGroupTable", TABLE: "Table", TILED_IMAGERY: "Tiled Imagery", UTILITY_NETWORK: "UtilityNetwork" }; 57function f(e) { 58 const { portal: t, isOrgItem: r, itemControl: o } = e, n2 = t.user?.privileges; 59 let i2 = !n2 || n2.includes("features:user:edit"), a2 = !!r && !!n2?.includes("features:user:fullEdit"); 60 const s2 = "update" === o || "admin" === o; 61 return s2 ? a2 = i2 = true : a2 && (i2 = true), { features: { edit: i2, fullEdit: a2 }, content: { updateItem: s2 } }; 62} 63 64export { 65 i, 66 a, 67 s, 68 c, 69 u, 70 l, 71 E, 72 f 73}; 74//# sourceMappingURL=chunk-GW7VY2RO.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.