{"version":3,"sources":["node_modules/@arcgis/core/portal/support/jsonContext.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { urlToObject as t } from \"../../core/urlUtils.js\";\nimport r from \"../Portal.js\";\nfunction e(t, r) {\n return {\n ...l(t, r),\n readResourcePaths: []\n };\n}\nfunction o(r, e, o) {\n const i = t(r.itemUrl);\n return {\n ...l(r, e),\n messages: [],\n writtenProperties: [],\n blockedRelativeUrls: [],\n verifyItemRelativeUrls: i ? {\n rootPath: i.path,\n writtenUrls: []\n } : null,\n resources: o ? {\n toAdd: [],\n toUpdate: [],\n toKeep: [],\n pendingOperations: []\n } : null\n };\n}\nfunction l(e, o) {\n return {\n origin: o,\n url: t(e.itemUrl),\n portal: e.portal || r.getDefault(),\n portalItem: e\n };\n}\nexport { e as createForItemRead, o as createForItemWrite };"],"mappings":"+HAMA,SAASA,EAAE,EAAGC,EAAG,CACf,OAAOC,EAAAC,EAAA,GACFC,EAAE,EAAGH,CAAC,GADJ,CAEL,kBAAmB,CAAC,CACtB,EACF,CACA,SAASI,EAAEJ,EAAG,EAAGI,EAAG,CAClB,IAAM,EAAIC,EAAEL,EAAE,OAAO,EACrB,OAAOC,EAAAC,EAAA,GACFC,EAAEH,EAAG,CAAC,GADJ,CAEL,SAAU,CAAC,EACX,kBAAmB,CAAC,EACpB,oBAAqB,CAAC,EACtB,uBAAwB,EAAI,CAC1B,SAAU,EAAE,KACZ,YAAa,CAAC,CAChB,EAAI,KACJ,UAAWI,EAAI,CACb,MAAO,CAAC,EACR,SAAU,CAAC,EACX,OAAQ,CAAC,EACT,kBAAmB,CAAC,CACtB,EAAI,IACN,EACF,CACA,SAASD,EAAEJ,EAAGK,EAAG,CACf,MAAO,CACL,OAAQA,EACR,IAAKC,EAAEN,EAAE,OAAO,EAChB,OAAQA,EAAE,QAAUO,EAAE,WAAW,EACjC,WAAYP,CACd,CACF","names":["e","r","__spreadProps","__spreadValues","l","o","I","b"],"x_google_ignoreList":[0]}