chunk-A6WD5XTM.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import {
  2. t
  3. } from "./chunk-OP2HNSVZ.js";
  4. import {
  5. S,
  6. l,
  7. o
  8. } from "./chunk-ZSW35JPD.js";
  9. import {
  10. has,
  11. y
  12. } from "./chunk-SPWQ3AWG.js";
  13. // node_modules/@arcgis/core/layers/graphics/sources/support/clientSideDefaults.js
  14. function o2(t2) {
  15. return { renderer: { type: "simple", symbol: "esriGeometryPoint" === t2 || "esriGeometryMultipoint" === t2 ? l : "esriGeometryPolyline" === t2 ? o : S } };
  16. }
  17. var u = /^[_$a-zA-Z][_$a-zA-Z0-9]*$/;
  18. var n = 1;
  19. function i(t2, s) {
  20. if (has("esri-csp-restrictions"))
  21. return () => ({ [s]: null, ...t2 });
  22. try {
  23. let e = `this.${s} = null;`;
  24. for (const s2 in t2) {
  25. e += `this${u.test(s2) ? `.${s2}` : `["${s2}"]`} = ${JSON.stringify(t2[s2])};`;
  26. }
  27. const r = new Function(`
  28. return class AttributesClass$${n++} {
  29. constructor() {
  30. ${e};
  31. }
  32. }
  33. `)();
  34. return () => new r();
  35. } catch (e) {
  36. return () => ({ [s]: null, ...t2 });
  37. }
  38. }
  39. function a(s = {}) {
  40. return [{ name: "New Feature", description: "", prototype: { attributes: y(s) } }];
  41. }
  42. function l2(t2, e) {
  43. return { analytics: { supportsCacheHint: false }, attachment: null, data: { isVersioned: false, supportsAttachment: false, supportsM: false, supportsZ: t2 }, metadata: { supportsAdvancedFieldProperties: false }, operations: { supportsCalculate: false, supportsTruncate: false, supportsValidateSql: false, supportsAdd: e, supportsDelete: e, supportsEditing: e, supportsChangeTracking: false, supportsQuery: true, supportsQueryAnalytics: false, supportsQueryAttachments: false, supportsQueryTopFeatures: false, supportsResizeAttachments: false, supportsSync: false, supportsUpdate: e, supportsExceedsLimitStatistics: true }, query: t, queryRelated: { supportsCount: true, supportsOrderBy: true, supportsPagination: true, supportsCacheHint: false }, queryTopFeatures: { supportsCacheHint: false }, editing: { supportsGeometryUpdate: e, supportsGlobalId: false, supportsReturnServiceEditsInSourceSpatialReference: false, supportsRollbackOnFailure: false, supportsUpdateWithoutM: false, supportsUploadWithItemId: false, supportsDeleteByAnonymous: false, supportsDeleteByOthers: false, supportsUpdateByAnonymous: false, supportsUpdateByOthers: false } };
  44. }
  45. export {
  46. o2 as o,
  47. i,
  48. a,
  49. l2 as l
  50. };
  51. //# sourceMappingURL=chunk-A6WD5XTM.js.map