@arcgis/portal-components 5.2.0-next.164 → 5.2.0-next.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{2IKXUDFM.js → 25HZAERJ.js} +1 -1
- package/dist/cdn/{PO54NFLO.js → 2BW64XPI.js} +1 -1
- package/dist/cdn/2HVWEYMK.js +2 -0
- package/dist/cdn/{JIWLTMFC.js → 33KMD2KV.js} +1 -1
- package/dist/cdn/3FMXY5RA.js +2 -0
- package/dist/cdn/{PGVE7V53.js → 3U3QLHFR.js} +1 -1
- package/dist/cdn/{PS5BTYGD.js → 3WFFMXLP.js} +1 -1
- package/dist/cdn/434GUKA4.js +2 -0
- package/dist/cdn/{CWGXNX3W.js → 44BGVEI2.js} +1 -1
- package/dist/cdn/{GTD6FUPM.js → 4KELDQ5U.js} +1 -1
- package/dist/cdn/{3NTQM2R7.js → 53ODEKJY.js} +1 -1
- package/dist/cdn/5VCQSSPO.js +4 -0
- package/dist/cdn/{Y2EJ24EM.js → 5XZ2X7QF.js} +1 -1
- package/dist/cdn/{6RAOSMME.js → 63IORFWB.js} +1 -1
- package/dist/cdn/{X4E3B7EQ.js → 63SYEYNJ.js} +1 -1
- package/dist/cdn/{P2XPGJIH.js → 7C5WAARL.js} +1 -1
- package/dist/cdn/{O6KBOBTA.js → 7K6OHGZL.js} +1 -1
- package/dist/cdn/{7JRQ62JP.js → A6PCMJ5W.js} +1 -1
- package/dist/cdn/{XYH7L6WW.js → AE4IZR2S.js} +1 -1
- package/dist/cdn/AQKAKFND.js +2 -0
- package/dist/cdn/{QVWXUQZY.js → BHU46YRD.js} +1 -1
- package/dist/cdn/{QQ6MQPCH.js → BJQNTCTV.js} +1 -1
- package/dist/cdn/{QS53VF2B.js → BY6PQBOV.js} +1 -1
- package/dist/cdn/{UCE5G5TL.js → CFLKTIIF.js} +1 -1
- package/dist/cdn/CGJZ7TCO.js +2 -0
- package/dist/cdn/CHLDYOXO.js +2 -0
- package/dist/cdn/D2L3BGSD.js +2 -0
- package/dist/cdn/{3HINDHV7.js → D5YIE7S7.js} +1 -1
- package/dist/cdn/{TFGNQADN.js → D7CXMPYS.js} +1 -1
- package/dist/cdn/{3TLHOVLW.js → DH73YABO.js} +1 -1
- package/dist/cdn/{S62RRECO.js → DTXOA3YJ.js} +1 -1
- package/dist/cdn/{DITALHT7.js → EQTH5XGZ.js} +1 -1
- package/dist/cdn/{K3ROLJNC.js → EXY22JJE.js} +1 -1
- package/dist/cdn/{53GR4QVG.js → EYAISNAS.js} +1 -1
- package/dist/cdn/{FZUEX6YH.js → FUYVU3PI.js} +1 -1
- package/dist/cdn/{UQSYMUOF.js → HEGOPH46.js} +1 -1
- package/dist/cdn/IC2Y3HQB.js +2 -0
- package/dist/cdn/IKSSR2GR.js +2 -0
- package/dist/cdn/ILBJMDQJ.js +2 -0
- package/dist/cdn/{TA456NXC.js → IWPRELHF.js} +1 -1
- package/dist/cdn/{ST7YCKG6.js → JJVYB6BS.js} +1 -1
- package/dist/cdn/{Q53MAFDQ.js → K5OBB7AL.js} +1 -1
- package/dist/cdn/{UC42OQDP.js → L7XA73K5.js} +1 -1
- package/dist/cdn/{BFYTNFAM.js → LHHMU66O.js} +1 -1
- package/dist/cdn/{V4XGNCNI.js → LIHF7EWA.js} +1 -1
- package/dist/cdn/{HXDTSREX.js → LKHDQZPU.js} +1 -1
- package/dist/cdn/{DMLKGQRF.js → LKTRF45D.js} +1 -1
- package/dist/cdn/{4YPPX4Y3.js → MAW6CBNZ.js} +1 -1
- package/dist/cdn/{FD7SPNGP.js → MRW6GCHQ.js} +1 -1
- package/dist/cdn/{2IRP3ZVE.js → MWCD4AJV.js} +1 -1
- package/dist/cdn/{OUZPGGZR.js → NY3HIRUS.js} +1 -1
- package/dist/cdn/{3ZHDGFSL.js → OBQXRANK.js} +1 -1
- package/dist/cdn/{XGRVBCMF.js → ODEETVV3.js} +1 -1
- package/dist/cdn/{VPYZSDS3.js → OG7SIRKS.js} +1 -1
- package/dist/cdn/{C3W4HTWD.js → OVLGZQIP.js} +1 -1
- package/dist/cdn/{SOLQD7DU.js → P3VCVVZP.js} +1 -1
- package/dist/cdn/{MTY2ZUR2.js → PCHBGCH3.js} +1 -1
- package/dist/cdn/{AARKDW3L.js → PKDFFAYA.js} +1 -1
- package/dist/cdn/{MOJGAOYF.js → PLSCIEN2.js} +1 -1
- package/dist/cdn/{K4LOZYJF.js → QPO5ITKN.js} +1 -1
- package/dist/cdn/{P5WD6JVL.js → QVDPX7K3.js} +1 -1
- package/dist/cdn/{BKU43GE5.js → R7QKF2ZH.js} +1 -1
- package/dist/cdn/{RAAM3NQL.js → RBFK5HRE.js} +1 -1
- package/dist/cdn/{MEBV5YAO.js → RFYF3XAN.js} +1 -1
- package/dist/cdn/{453JLSJV.js → S3ZNJFNZ.js} +1 -1
- package/dist/cdn/{NKRXJF72.js → S4WRJD3R.js} +1 -1
- package/dist/cdn/{M6AFYDDU.js → S6I3TZ6Q.js} +1 -1
- package/dist/cdn/{LU7EPIPR.js → SLESYZ6I.js} +1 -1
- package/dist/cdn/{6VTAWA6R.js → SSGFE2S2.js} +1 -1
- package/dist/cdn/U64FTHLS.js +2 -0
- package/dist/cdn/{HOWXDT3E.js → UIGOQIAU.js} +1 -1
- package/dist/cdn/{UANMZWU3.js → V7DSYZPZ.js} +1 -1
- package/dist/cdn/VEDI36FS.js +2 -0
- package/dist/cdn/{CKEGCEEU.js → XYC2N5NS.js} +1 -1
- package/dist/cdn/{M7BI7QXA.js → Y2AZYYC2.js} +1 -1
- package/dist/cdn/{PPHEHA5I.js → YDOMDBYB.js} +1 -1
- package/dist/cdn/{5CBXYHFU.js → YES6DUX2.js} +1 -1
- package/dist/cdn/{2DIAUHE5.js → YIMYOCSN.js} +1 -1
- package/dist/cdn/{4Z7OQ6QY.js → YPXLEZZS.js} +1 -1
- package/dist/cdn/YX4B6VTU.js +2 -0
- package/dist/cdn/{RVZXDXUC.js → Z7RHFTU6.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +9 -0
- package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +94 -80
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -0
- package/dist/types/preact.d.ts +1 -0
- package/dist/types/react.d.ts +1 -0
- package/dist/types/stencil.d.ts +1 -0
- package/package.json +7 -7
- package/dist/cdn/42VKNALC.js +0 -2
- package/dist/cdn/57DQMVPP.js +0 -2
- package/dist/cdn/66MA5EIA.js +0 -2
- package/dist/cdn/74XEOQEV.js +0 -2
- package/dist/cdn/HT4JMB5R.js +0 -2
- package/dist/cdn/I7NJ6E6I.js +0 -2
- package/dist/cdn/J4M77DLV.js +0 -2
- package/dist/cdn/JI63K67U.js +0 -2
- package/dist/cdn/PLGWH6LA.js +0 -2
- package/dist/cdn/URZI7SU4.js +0 -2
- package/dist/cdn/VAFMKDDD.js +0 -4
- package/dist/cdn/VSNBZIZ4.js +0 -2
- package/dist/cdn/XYZFL54V.js +0 -2
- package/dist/cdn/ZM3A4O2X.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import d from"./3PK47DQP.js";import c from"./EL5IQDXK.js";import"./QDWOQBO3.js";import{a as tl,c as rl,e as nl,f as sl,g as il}from"./UZCHLKLO.js";import{$ as Uc,A as Gt,B as jn,C as ze,D as vc,E as Sc,F as yi,G as Cc,H as kc,I as Ec,J as xc,K as Ic,L as Tc,M as Ac,N as Nc,O as Mc,P as _i,Q as Pc,R as Oc,S as Rc,T as Dc,U as $c,V as jc,W as Ln,X as Lc,Y as Fc,Z as gr,_ as Vc,a as Ja,aa as wi,b as Ya,ba as Gc,c as Za,ca as We,d as uc,da as Bc,e as Hr,ea as Hc,f as pc,fa as bi,g as hc,ga as qc,h as dc,ha as zc,i as Dn,ia as Wc,j as mc,ja as Kc,k as fc,l as gc,m as mr,n as mi,o as ge,p as qr,q as yc,r as fr,s as _c,t as fi,u as wc,v as ut,w as bc,x as gi,y as K,z as $n}from"./FTKD53UG.js";import{$a as Ee,Ba as qe,Ia as ec,J as ee,La as kt,Na as tc,Oa as rc,P as ci,Pa as hr,Qa as nc,R as Pe,S as li,Sa as sc,T as Qa,Ta as ic,Ua as oc,V as Ut,Va as ac,Wa as dr,Xa as di,Y as ui,Ya as Se,Za as cc,a as N,ab as lc,b as Fa,bb as lt,c as Gr,ca as pi,d as Br,e as Va,fa as te,g as ai,h as Ua,i as Ga,ia as ur,j as Ba,ja as hi,k as Ha,l as qa,m as za,n as Me,o as Wa,q as Ka,r as Xa,ra as Ct,s as On,va as pr,wa as Rn}from"./XOFCMJBQ.js";import"./25XJ66JO.js";import"./5YDITHQA.js";import b from"./F3ODJVJC.js";import a from"./KLQ5GKNI.js";import"./WNDPRHBO.js";import"./QS3GXAIH.js";import{a as Ur,b as ja,e as Pn}from"./TNNIKT2R.js";import{a as La}from"./
|
|
2
|
+
import d from"./3PK47DQP.js";import c from"./EL5IQDXK.js";import"./QDWOQBO3.js";import{a as tl,c as rl,e as nl,f as sl,g as il}from"./UZCHLKLO.js";import{$ as Uc,A as Gt,B as jn,C as ze,D as vc,E as Sc,F as yi,G as Cc,H as kc,I as Ec,J as xc,K as Ic,L as Tc,M as Ac,N as Nc,O as Mc,P as _i,Q as Pc,R as Oc,S as Rc,T as Dc,U as $c,V as jc,W as Ln,X as Lc,Y as Fc,Z as gr,_ as Vc,a as Ja,aa as wi,b as Ya,ba as Gc,c as Za,ca as We,d as uc,da as Bc,e as Hr,ea as Hc,f as pc,fa as bi,g as hc,ga as qc,h as dc,ha as zc,i as Dn,ia as Wc,j as mc,ja as Kc,k as fc,l as gc,m as mr,n as mi,o as ge,p as qr,q as yc,r as fr,s as _c,t as fi,u as wc,v as ut,w as bc,x as gi,y as K,z as $n}from"./FTKD53UG.js";import{$a as Ee,Ba as qe,Ia as ec,J as ee,La as kt,Na as tc,Oa as rc,P as ci,Pa as hr,Qa as nc,R as Pe,S as li,Sa as sc,T as Qa,Ta as ic,Ua as oc,V as Ut,Va as ac,Wa as dr,Xa as di,Y as ui,Ya as Se,Za as cc,a as N,ab as lc,b as Fa,bb as lt,c as Gr,ca as pi,d as Br,e as Va,fa as te,g as ai,h as Ua,i as Ga,ia as ur,j as Ba,ja as hi,k as Ha,l as qa,m as za,n as Me,o as Wa,q as Ka,r as Xa,ra as Ct,s as On,va as pr,wa as Rn}from"./XOFCMJBQ.js";import"./25XJ66JO.js";import"./5YDITHQA.js";import b from"./F3ODJVJC.js";import a from"./KLQ5GKNI.js";import"./WNDPRHBO.js";import"./QS3GXAIH.js";import{a as Ur,b as ja,e as Pn}from"./TNNIKT2R.js";import{a as La}from"./R7QKF2ZH.js";import"./YPXLEZZS.js";import"./EXY22JJE.js";import{J as Fr,K as Vr,L as Da,R as $a,h as Pa,j as He,n as Oa,w as Ra}from"./5VCQSSPO.js";import{a as Jc}from"./YUQFNMEZ.js";import"./JMA56SOB.js";import"./UZLQALHY.js";export default $arcgis.t(([Nh,Mh,xg,,,{d:Zc,e:el},{a:Yc,b:Xc,c:Qc}])=>{function ol(e,t){if(e!=null){if(typeof e!="number"||Number.isNaN(e)||e<=0)throw new Error(`${t} must be greater than 0`);return e}}function Bt(e){if(e==null)return;let t=typeof e=="number"?{runTimeout:e}:e,r=t.refreshOn??"auto";if(r!=="auto"&&r!=="heartbeat")throw new Error('refreshOn must be "auto" or "heartbeat"');let n=ol(t.runTimeout,"runTimeout"),s=ol(t.idleTimeout,"idleTimeout");if(!(n===void 0&&s===void 0))return{runTimeout:n,idleTimeout:s,refreshOn:r}}var U="__start__",L="__end__",Je="__input__";var Et="__error__",Wr="__error_source_node__",Fn="__pregel_ns_writes";function al(){let e=typeof process<"u"?process.env?.LANGGRAPH_DELTA_MAX_SUPERSTEPS_SINCE_SNAPSHOT:void 0;if(e!==void 0&&e!==""){let t=Number.parseInt(e,10);if(Number.isFinite(t)&&t>0)return t}return 5e3}var ae="__pregel_send",pt="__pregel_call",ue="__pregel_read",xe="__pregel_checkpointer",qt="__pregel_resuming",yr="__pregel_task_id",Kr="__pregel_stream",_d="__pregel_resume_value",zt="__pregel_resume_map",_e="__pregel_scratchpad",Wt="__pregel_previous",wd="__pregel_durability",xt="checkpoint_id",Ce="checkpoint_ns",cl="__pregel_node_finished",Jr="__pregel_node_error",ce="checkpoint_map",Vn="__pregel_replay_state",ll="__pregel_abort_signals",H="__interrupt__",pe="__resume__",Yr="__no_writes__",It="__return__",Tt="__previous__",X="langsmith:hidden";var Si="__self__",Ye="__pregel_tasks",he="__pregel_push",Un="__pregel_pull",de="00000000-0000-0000-0000-000000000000",ul=[X,Je,H,pe,Et,Wr,Yr,ae,ue,xe,wd,Kr,qt,yr,pt,_d,_e,Wt,ce,Ce,xt,Vn],vi=Symbol.for("langgraph.command"),pl=class{[vi];constructor(e){this[vi]=e}};function Gn(e){let t=e;return t!=null&&typeof t.node=="string"&&t.args!==void 0}var Ht=class{lg_name="Send";node;args;timeout;constructor(e,t,r){this.node=e,this.args=zr(t),this.timeout=Bt(r?.timeout)}toJSON(){return{lg_name:this.lg_name,node:this.node,args:this.args,timeout:this.timeout}}};function re(e){return e instanceof Ht}var Ke="__overwrite__",bd=class{lg_name="Overwrite";[Ke];constructor(e){this[Ke]=e}get value(){return this[Ke]}toJSON(){return{[Ke]:this[Ke]}}static isInstance(e){return!e||typeof e!="object"?!1:"__overwrite__"in e||"lg_name"in e&&e.lg_name==="Overwrite"}};function Oe(e){if(typeof e=="object"&&e!==null){if("__overwrite__"in e)return[!0,e[Ke]];let t=e;if(t.type==="__overwrite__"&&"value"in t)return[!0,t.value]}return[!1,void 0]}function Kt(e){return Oe(e)[0]}function Jt(e){return!e||typeof e!="object"||!("__interrupt__"in e)?!1:Array.isArray(e[H])}var ye=class extends pl{lg_name="Command";lc_direct_tool_output=!0;graph;update;resume;goto=[];static PARENT="__parent__";constructor(e){super(e),this.resume=e.resume,this.graph=e.graph,this.update=e.update,e.goto&&(this.goto=Array.isArray(e.goto)?zr(e.goto):[zr(e.goto)])}_updateAsTuples(){return this.update&&typeof this.update=="object"&&!Array.isArray(this.update)?Object.entries(this.update):Array.isArray(this.update)&&this.update.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]=="string")?this.update:[["__root__",this.update]]}toJSON(){let e;return typeof this.goto=="string"?e=this.goto:re(this.goto)?e=this.goto.toJSON():e=this.goto?.map(t=>typeof t=="string"?t:t.toJSON()),{lg_name:this.lg_name,update:this.update,resume:this.resume,goto:e}}};function ie(e){return typeof e!="object"||e==null?!1:"lg_name"in e&&e.lg_name==="Command"}function vd(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function zr(e,t=new Map){if(e!=null&&typeof e=="object"){if(t.has(e))return t.get(e);let r;if(Array.isArray(e))r=[],t.set(e,r),e.forEach((n,s)=>{r[s]=zr(n,t)});else if(e instanceof ye||e instanceof Ht||!vd(e))r=e,t.set(e,r);else if(ie(e))r=new ye(e),t.set(e,r);else if(Gn(e))r=new Ht(e.node,e.args,e.timeout!==void 0?{timeout:e.timeout}:void 0),t.set(e,r);else if("lc_serializable"in e&&e.lc_serializable)r=e,t.set(e,r);else{r={},t.set(e,r);for(let[n,s]of Object.entries(e))r[n]=zr(s,t)}return r}return e}var Xe=class extends Error{lc_error_code;constructor(e,t){let r=e??"";t?.lc_error_code&&(r=`${r}
|
|
3
3
|
|
|
4
4
|
Troubleshooting URL: https://docs.langchain.com/oss/javascript/langgraph/${t.lc_error_code}/
|
|
5
5
|
`),super(r),this.lc_error_code=t?.lc_error_code}},Bn=class extends Xe{get is_bubble_up(){return!0}},Ci=class extends Xe{constructor(e,t){super(e,t),this.name="GraphRecursionError"}static get unminifiable_name(){return"GraphRecursionError"}},Yt=class extends Xe{constructor(e,t){super(e,t),this.name="GraphValueError"}static get unminifiable_name(){return"GraphValueError"}},Hn=class extends Bn{reason;constructor(e="shutdown",t){super(`Graph drained: ${e}`,t),this.name="GraphDrained",this.reason=e}static get unminifiable_name(){return"GraphDrained"}};function qn(e){return e!==void 0&&e.name===Hn.unminifiable_name}var ht=class extends Bn{interrupts;constructor(e,t){super(JSON.stringify(e,null,2),t),this.name="GraphInterrupt",this.interrupts=e??[]}static get unminifiable_name(){return"GraphInterrupt"}},At=class extends ht{constructor(e,t){super([{value:e}],t),this.name="NodeInterrupt"}static get unminifiable_name(){return"NodeInterrupt"}},ki=class{node;error;constructor(e,t){this.node=e,this.error=t}static get unminifiable_name(){return"NodeError"}};var zn=class extends Bn{command;constructor(e){super(),this.name="ParentCommand",this.command=e}static get unminifiable_name(){return"ParentCommand"}};function Ei(e){return e!==void 0&&e.name===zn.unminifiable_name}function Nt(e){return e!==void 0&&e.is_bubble_up===!0}function dt(e){return e!==void 0&&[ht.unminifiable_name,At.unminifiable_name].includes(e.name)}var xi=class extends Xe{node;kind;timeout;elapsed;runTimeout;idleTimeout;constructor(e,t){let{node:r,elapsed:n,kind:s,runTimeout:i,idleTimeout:o}=e,a,c;if(s==="idle"){if(o===void 0)throw new Error("idleTimeout is required when kind='idle'");c=o,a=`Node "${r}" exceeded its idle timeout of ${o}ms without making progress (elapsed: ${n}ms).`}else{if(i===void 0)throw new Error("runTimeout is required when kind='run'");c=i,a=`Node "${r}" exceeded its run timeout of ${i}ms (elapsed: ${n}ms).`}super(a,t),this.name="NodeTimeoutError",this.node=r,this.kind=s,this.timeout=c,this.elapsed=n,this.runTimeout=i,this.idleTimeout=o}static get unminifiable_name(){return"NodeTimeoutError"}};var Wn=class extends Xe{constructor(e,t){super(e,t),this.name="EmptyInputError"}static get unminifiable_name(){return"EmptyInputError"}},F=class extends Xe{constructor(e,t){let r=Error.stackTraceLimit;Error.stackTraceLimit=0,super(e,t),Error.stackTraceLimit=r,this.name="EmptyChannelError"}static get unminifiable_name(){return"EmptyChannelError"}},R=class extends Xe{constructor(e,t){super(e,t),this.name="InvalidUpdateError"}static get unminifiable_name(){return"InvalidUpdateError"}};var Ii=class extends Xe{constructor(e,t){super(e,t),this.name="UnreachableNodeError"}static get unminifiable_name(){return"UnreachableNodeError"}};var Xr=class extends Xe{constructor(e,t){super(e,t),this.name="StateGraphInputError",this.message="Invalid StateGraph input. Make sure to pass a valid StateDefinition, Annotation.Root, or Zod schema."}static get unminifiable_name(){return"StateGraphInputError"}};var Ti=0,Qr=0;function Zr(e){let t=Date.now();return t<=Ti?(Qr+=1,Qr>=1e4&&(Qr=0,t=Ti+1)):Qr=0,Ti=t,Va({clockseq:e,msecs:t,nsecs:Qr})}function Qe(e,t){let r=t.replace(/-/g,"").match(/.{2}/g).map(n=>parseInt(n,16));return Br(e,new Uint8Array(r))}var Ai="__error__",Xt="__scheduled__",Ni="__interrupt__",Mi="__resume__",_r=class{lg_name="DeltaSnapshot";value;constructor(e){this.value=e}};function Pi(e){return e!=null&&typeof e=="object"&&e.lg_name==="DeltaSnapshot"}var hl="[...]",Sd="[Circular]",Kn=[],wr=[];function Cd(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function dl(e,t,r,n){typeof n>"u"&&(n=Cd()),Ri(e,"",0,[],void 0,0,n);var s;try{wr.length===0?s=JSON.stringify(e,t,r):s=JSON.stringify(e,kd(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Kn.length!==0;){var i=Kn.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return s}function Oi(e,t,r,n){var s=Object.getOwnPropertyDescriptor(n,r);s.get!==void 0?s.configurable?(Object.defineProperty(n,r,{value:e}),Kn.push([n,r,t,s])):wr.push([t,r,e]):(n[r]=e,Kn.push([n,r,t]))}function Ri(e,t,r,n,s,i,o){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){Oi(Sd,e,t,s);return}if(typeof o.depthLimit<"u"&&i>o.depthLimit){Oi(hl,e,t,s);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Oi(hl,e,t,s);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)Ri(e[a],a,a,n,e,i,o);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var l=c[a];Ri(e[l],l,a,n,e,i,o)}}n.pop()}}function kd(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(wr.length>0)for(var n=0;n<wr.length;n++){var s=wr[n];if(s[1]===t&&s[0]===r){r=s[2],wr.splice(n,1);break}}return e.call(this,t,r)}}var ml=[];var fl=N({});var gl=N({});var yl=N({BaseChatMessageHistory:()=>Di,BaseListChatMessageHistory:()=>Jn,InMemoryChatMessageHistory:()=>Ed}),Di=class extends Me{async addMessages(e){for(let t of e)await this.addMessage(t)}},Jn=class extends Me{addUserMessage(e){return this.addMessage(new Ct(e))}addAIMessage(e){return this.addMessage(new te(e))}async addMessages(e){for(let t of e)await this.addMessage(t)}clear(){throw new Error("Not implemented.")}},Ed=class extends Jn{lc_namespace=["langchain","stores","message","in_memory"];messages=[];constructor(e){super(...arguments),this.messages=e??[]}async getMessages(){return this.messages}async addMessage(e){this.messages.push(e)}async clear(){this.messages=[]}};var ke=class{pageContent;metadata;id;constructor(e){this.pageContent=e.pageContent!==void 0?e.pageContent.toString():"",this.metadata=e.metadata??{},this.id=e.id}};var $i=class extends K{lc_namespace=["langchain_core","documents","transformers"];invoke(e,t){return this.transformDocuments(e)}},_l=class extends $i{async transformDocuments(e){let t=[];for(let r of e){let n=await this._transformDocument(r);t.push(n)}return t}};var wl=N({BaseDocumentTransformer:()=>$i,Document:()=>ke,MappingDocumentTransformer:()=>_l});var bl=N({BaseDocumentLoader:()=>ji}),ji=class{};var vl=N({LangSmithLoader:()=>xd}),xd=class extends ji{datasetId;datasetName;exampleIds;asOf;splits;inlineS3Urls;offset;limit;metadata;filter;contentKey;formatContent;client;constructor(e){if(super(),e.client&&e.clientConfig)throw new Error("client and clientConfig cannot both be provided.");this.client=e.client??new tc(e?.clientConfig),this.contentKey=e.contentKey?e.contentKey.split("."):[],this.formatContent=e.formatContent??Id,this.datasetId=e.datasetId,this.datasetName=e.datasetName,this.exampleIds=e.exampleIds,this.asOf=e.asOf,this.splits=e.splits,this.inlineS3Urls=e.inlineS3Urls,this.offset=e.offset,this.limit=e.limit,this.metadata=e.metadata,this.filter=e.filter}async load(){let e=[];for await(let t of this.client.listExamples({datasetId:this.datasetId,datasetName:this.datasetName,exampleIds:this.exampleIds,asOf:this.asOf,splits:this.splits,inlineS3Urls:this.inlineS3Urls,offset:this.offset,limit:this.limit,metadata:this.metadata,filter:this.filter})){let r=t.inputs;for(let i of this.contentKey)r=r[i];let n=this.formatContent(r),s=t;["created_at","modified_at"].forEach(i=>{i in s&&typeof s[i]=="object"&&(s[i]=s[i].toString())}),e.push({pageContent:n,metadata:s})}return e}};function Id(e){if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)}catch{return String(e)}}var br=class extends Me{lc_namespace=["langchain_core","example_selectors","base"]};var Li=class{async getPromptAsync(e,t){return this.getPrompt(e).partial(t?.partialVariables??{})}},Sl=class extends Li{defaultPrompt;conditionals;constructor(e,t=[]){super(),this.defaultPrompt=e,this.conditionals=t}getPrompt(e){for(let[t,r]of this.conditionals)if(t(e))return r;return this.defaultPrompt}};function Cl(e){return e._modelType()==="base_llm"}function kl(e){return e._modelType()==="base_chat_model"}function El(e){return e.split(/\n| /).length}var xl=class Il extends br{examples=[];examplePrompt;getTextLength=El;maxLength=2048;exampleTextLengths=[];constructor(t){super(t),this.examplePrompt=t.examplePrompt,this.maxLength=t.maxLength??2048,this.getTextLength=t.getTextLength??El}async addExample(t){this.examples.push(t);let r=await this.examplePrompt.format(t);this.exampleTextLengths.push(this.getTextLength(r))}async calculateExampleTextLengths(t,r){if(t.length>0)return t;let{examples:n,examplePrompt:s}=r;return(await Promise.all(n.map(i=>s.format(i)))).map(i=>this.getTextLength(i))}async selectExamples(t){let r=Object.values(t).join(" "),n=this.maxLength-this.getTextLength(r),s=0,i=[];for(;n>0&&s<this.examples.length;){let o=n-this.exampleTextLengths[s];if(o<0)break;i.push(this.examples[s]),n=o,s+=1}return i}static async fromExamples(t,r){let n=new Il(r);return await Promise.all(t.map(s=>n.addExample(s))),n}};function Fi(e){return Object.keys(e).sort().map(t=>e[t])}var Tl=class Al extends br{vectorStoreRetriever;exampleKeys;inputKeys;constructor(t){if(super(t),this.exampleKeys=t.exampleKeys,this.inputKeys=t.inputKeys,t.vectorStore!==void 0)this.vectorStoreRetriever=t.vectorStore.asRetriever({k:t.k??4,filter:t.filter});else if(t.vectorStoreRetriever)this.vectorStoreRetriever=t.vectorStoreRetriever;else throw new Error('You must specify one of "vectorStore" and "vectorStoreRetriever".')}async addExample(t){let r=Fi((this.inputKeys??Object.keys(t)).reduce((n,s)=>({...n,[s]:t[s]}),{})).join(" ");await this.vectorStoreRetriever.addDocuments([new ke({pageContent:r,metadata:t})])}async selectExamples(t){let r=Fi((this.inputKeys??Object.keys(t)).reduce((s,i)=>({...s,[i]:t[i]}),{})).join(" "),n=(await this.vectorStoreRetriever.invoke(r)).map(s=>s.metadata);return this.exampleKeys?n.map(s=>this.exampleKeys.reduce((i,o)=>({...i,[o]:s[o]}),{})):n}static async fromExamples(t,r,n,s={}){let i=s.inputKeys??null,o=t.map(c=>Fi(i?i.reduce((l,u)=>({...l,[u]:c[u]}),{}):c).join(" ")),a=await n.fromTexts(o,t,r,s);return new Al({vectorStore:a,k:s.k??4,exampleKeys:s.exampleKeys,inputKeys:s.inputKeys})}};var Nl=N({BaseExampleSelector:()=>br,BasePromptSelector:()=>Li,ConditionalPromptSelector:()=>Sl,LengthBasedExampleSelector:()=>xl,SemanticSimilarityExampleSelector:()=>Tl,isChatModel:()=>kl,isLLM:()=>Cl});var en="10f90ea3-90a4-4962-bf75-83a0f3c1c62a",Ml=class extends Me{lc_namespace=["langchain","recordmanagers"]};var Vi=class{uid;hash_;contentHash;metadataHash;pageContent;metadata;keyEncoder=Ja;constructor(e){this.uid=e.uid,this.pageContent=e.pageContent,this.metadata=e.metadata}makeDefaultKeyEncoder(e){this.keyEncoder=e}calculateHashes(){let e=["hash_","content_hash","metadata_hash"];for(let r of e)if(r in this.metadata)throw new Error(`Metadata cannot contain key ${r} as it is reserved for internal use. Restricted keys: [${e.join(", ")}]`);let t=this._hashStringToUUID(this.pageContent);try{let r=this._hashNestedDictToUUID(this.metadata);this.contentHash=t,this.metadataHash=r}catch(r){throw new Error(`Failed to hash metadata: ${r}. Please use a dict that can be serialized using json.`)}this.hash_=this._hashStringToUUID(this.contentHash+this.metadataHash),this.uid||(this.uid=this.hash_)}toDocument(){return new ke({pageContent:this.pageContent,metadata:this.metadata})}static fromDocument(e,t){let r=new this({pageContent:e.pageContent,metadata:e.metadata,uid:t||e.uid});return r.calculateHashes(),r}_hashStringToUUID(e){return Br(this.keyEncoder(e),en)}_hashNestedDictToUUID(e){let t=JSON.stringify(e,Object.keys(e).sort());return Br(this.keyEncoder(t),en)}};function Ui(e,t){let r=[],n=[];return t.forEach(s=>{n.push(s),n.length>=e&&(r.push(n),n=[])}),n.length>0&&r.push(n),r}function Gi(e){let t=new Set,r=[];for(let n of e){if(!n.hash_)throw new Error("Hashed document does not have a hash");t.has(n.hash_)||(t.add(n.hash_),r.push(n))}return r}function Bi(e){if(e===null)return t=>null;if(typeof e=="string")return t=>t.metadata[e];if(typeof e=="function")return e;throw new Error(`sourceIdKey should be null, a string or a function, got ${typeof e}`)}var Hi=e=>"load"in e&&typeof e.load=="function"&&"loadAndSplit"in e&&typeof e.loadAndSplit=="function";async function Pl(e){let{docsSource:t,recordManager:r,vectorStore:n,options:s}=e,{batchSize:i=100,cleanup:o,sourceIdKey:a,cleanupBatchSize:c=1e3,forceUpdate:l=!1}=s??{};if(o==="incremental"&&!a)throw new Error("sourceIdKey is required when cleanup mode is incremental. Please provide through 'options.sourceIdKey'.");let u=Hi(t)?await t.load():t,p=Bi(a??null),h=await r.getTime(),d=0,m=0,f=0,g=0,y=Ui(i??100,u);for(let _ of y){let S=Gi(_.map(x=>Vi.fromDocument(x))),C=S.map(x=>p(x));o==="incremental"&&S.forEach((x,G)=>{if(C[G]===null)throw new Error("sourceIdKey must be provided when cleanup is incremental")});let I=await r.exists(S.map(x=>x.uid)),M=[],k=[],v=[],T=new Set;if(S.forEach((x,G)=>{if(I[G])if(l)T.add(x.uid);else{v.push(x.uid);return}M.push(x.uid),k.push(x.toDocument())}),v.length>0&&(await r.update(v,{timeAtLeast:h}),g+=v.length),k.length>0&&(await n.addDocuments(k,{ids:M}),d+=k.length-T.size,f+=T.size),await r.update(S.map(x=>x.uid),{timeAtLeast:h,groupIds:C}),o==="incremental"){C.forEach(G=>{if(!G)throw new Error("Source id cannot be null")});let x=await r.listKeys({before:h,groupIds:C});x.length>0&&(await n.delete({ids:x}),await r.deleteKeys(x),m+=x.length)}}if(o==="full"){let _=await r.listKeys({before:h,limit:c});for(;_.length>0;)await n.delete({ids:_}),await r.deleteKeys(_),m+=_.length,_=await r.listKeys({before:h,limit:c})}return{numAdded:d,numDeleted:m,numUpdated:f,numSkipped:g}}var Ol=N({RecordManager:()=>Ml,UUIDV5_NAMESPACE:()=>en,_HashedDocument:()=>Vi,_batch:()=>Ui,_deduplicateInOrder:()=>Gi,_getSourceIdAssigner:()=>Bi,_isBaseDocumentLoader:()=>Hi,index:()=>Pl});var Rl=N({});var Dl=N({});var $l=N({BaseMemory:()=>Td,getInputValue:()=>Ad,getOutputValue:()=>Nd,getPromptInputKey:()=>Md}),Td=class{},jl=(e,t)=>{if(t!==void 0)return e[t];let r=Object.keys(e);if(r.length===1)return e[r[0]]},Ad=(e,t)=>{let r=jl(e,t);if(!r){let n=Object.keys(e);throw new Error(`input values have ${n.length} keys, you must specify an input key or pass only 1 key as input`)}return r},Nd=(e,t)=>{let r=jl(e,t);if(!r&&r!==""){let n=Object.keys(e);throw new Error(`output values have ${n.length} keys, you must specify an output key or pass only 1 key as output`)}return r};function Md(e,t){let r=Object.keys(e).filter(n=>!t.includes(n)&&n!=="stop");if(r.length!==1)throw new Error(`One input key expected, but got ${r.length}`);return r[0]}var qi=class extends _i{static lc_name(){return"OutputFunctionsParser"}lc_namespace=["langchain","output_parsers","openai_functions"];lc_serializable=!0;argsOnly=!0;constructor(e){super(),this.argsOnly=e?.argsOnly??this.argsOnly}async parseResult(e){if("message"in e[0]){let t=e[0].message.additional_kwargs.function_call;if(!t)throw new Error(`No function_call in message ${JSON.stringify(e)}`);if(!t.arguments)throw new Error(`No arguments in function_call ${JSON.stringify(e)}`);return this.argsOnly?t.arguments:JSON.stringify(t)}else throw new Error(`No message in generations ${JSON.stringify(e)}`)}},zi=class extends Oc{static lc_name(){return"JsonOutputFunctionsParser"}lc_namespace=["langchain","output_parsers","openai_functions"];lc_serializable=!0;outputParser;argsOnly=!0;constructor(e){super(e),this.argsOnly=e?.argsOnly??this.argsOnly,this.outputParser=new qi(e)}_diff(e,t){if(t)return pc(e??{},t)}async parsePartialResult(e){let t=e[0];if(!t.message)return;let{message:r}=t,n=r.additional_kwargs.function_call;if(n)return this.argsOnly?pi(n.arguments):{...n,arguments:pi(n.arguments)}}async parseResult(e){let t=await this.outputParser.parseResult(e);if(!t)throw new Error(`No result from "OutputFunctionsParser" ${JSON.stringify(e)}`);return this.parse(t)}async parse(e){let t=JSON.parse(e);return this.argsOnly||(t.arguments=JSON.parse(t.arguments)),t}getFormatInstructions(){return""}},Ll=class extends _i{static lc_name(){return"JsonKeyOutputFunctionsParser"}lc_namespace=["langchain","output_parsers","openai_functions"];lc_serializable=!0;outputParser=new zi;attrName;get lc_aliases(){return{attrName:"key_name"}}constructor(e){super(e),this.attrName=e.attrName}async parseResult(e){return(await this.outputParser.parseResult(e))[this.attrName]}};var Fl=N({JsonKeyOutputFunctionsParser:()=>Ll,JsonOutputFunctionsParser:()=>zi,OutputFunctionsParser:()=>qi});var Ze=class extends K{lc_serializable=!0;lc_namespace=["langchain_core","prompts",this._getPromptType()];get lc_attributes(){return{partialVariables:void 0}}inputVariables;outputParser;partialVariables;metadata;tags;constructor(e){super(e);let{inputVariables:t}=e;if(t.includes("stop"))throw new Error("Cannot have an input variable named 'stop', as it is used internally, please rename.");Object.assign(this,e)}async mergePartialAndUserVariables(e){let t=this.partialVariables??{},r={};for(let[n,s]of Object.entries(t))typeof s=="string"?r[n]=s:r[n]=await s();return{...r,...e}}async invoke(e,t){let r={...this.metadata,...t?.metadata},n=[...this.tags??[],...t?.tags??[]];return this._callWithConfig(s=>this.formatPromptValue(s),e,{...t,tags:n,metadata:r,runType:"prompt"})}};var mt=class extends Ze{async formatPromptValue(e){return new kc(await this.format(e))}};var Pd=Object.prototype.toString,Sr=Array.isArray||function(t){return Pd.call(t)==="[object Array]"};function Ki(e){return typeof e=="function"}function Od(e){return Sr(e)?"array":typeof e}function Wi(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Vl(e,t){return e!=null&&typeof e=="object"&&t in e}function Rd(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Dd=RegExp.prototype.test;function $d(e,t){return Dd.call(e,t)}var jd=/\S/;function Ld(e){return!$d(jd,e)}var Fd={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function Vd(e){return String(e).replace(/[&<>"'`=\/]/g,function(r){return Fd[r]})}var Ud=/\s*/,Gd=/\s+/,Ul=/\s*=/,Bd=/\s*\}/,Hd=/#|\^|\/|>|\{|&|=|!/;function qd(e,t){if(!e)return[];var r=!1,n=[],s=[],i=[],o=!1,a=!1,c="",l=0;function u(){if(o&&!a)for(;i.length;)delete s[i.pop()];else i=[];o=!1,a=!1}var p,h,d;function m(v){if(typeof v=="string"&&(v=v.split(Gd,2)),!Sr(v)||v.length!==2)throw new Error("Invalid tags: "+v);p=new RegExp(Wi(v[0])+"\\s*"),h=new RegExp("\\s*"+Wi(v[1])),d=new RegExp("\\s*"+Wi("}"+v[1]))}m(t||Ie.tags);for(var f=new rn(e),g,y,_,S,C,I;!f.eos();){if(g=f.pos,_=f.scanUntil(p),_)for(var M=0,k=_.length;M<k;++M)S=_.charAt(M),Ld(S)?(i.push(s.length),c+=S):(a=!0,r=!0,c+=" "),s.push(["text",S,g,g+1]),g+=1,S===`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{e as f}from"./25XJ66JO.js";import{a as m}from"./
|
|
2
|
+
import{e as f}from"./25XJ66JO.js";import{a as m}from"./NY3HIRUS.js";import{a as b}from"./R7QKF2ZH.js";import{L as p,R as u,h,j as i,w as r}from"./5VCQSSPO.js";var g={sm:640,md:768,lg:1024};var w=h`:host{display:flex;align-items:center}.status-list{display:flex;align-items:center;max-width:100%}.status-chip{max-width:100%;--calcite-color-foreground-2: var(--calcite-color-foreground-1)}.chip-group{max-width:100%;min-width:0}.status-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popover-content{max-width:28rem;padding:.75rem}.clear-button{margin-inline-start:.25rem}`,o=class extends p{constructor(){super(...arguments),this._messages=b({name:"portal-browser",blocking:!0}),this.inBounds=[],this.outOfBounds=[],this.filters={},this.hiddenFilterIds=[],this.arcgisBrowserFilterClear=r(),this.arcgisBrowserFilterRemove=r()}static{this.properties={inBounds:16,outOfBounds:16,filters:0,hiddenFilterIds:0,componentWidth:9,browserWidth:9}}static{this.styles=w}connectedCallback(){super.connectedCallback(),this.processValidFilters()}willUpdate(t){(t.has("filters")||t.has("hiddenFilterIds")||t.has("componentWidth")||t.has("browserWidth"))&&this.processValidFilters()}isFilterValid(t){return this.hiddenFilterIds.includes(t.id)?!1:t.id==="collaborations"&&"additionalParams"in t?!!(t.additionalParams&&t.label):!!(t.value&&t.label)}processValidFilters(){let t=Object.values(this.filters).filter(this.isFilterValid.bind(this)),s=this.componentWidth??0;if((this.browserWidth??s??window.innerWidth)<g.sm){this.inBounds=t,this.outOfBounds=[];return}let a=Math.max(s-460,0),e=0,n=[],c=[];t.forEach(l=>{let d=f({text:l.label});!s||e+d<=a?(n.push(l),e+=d):c.push(l)}),this.inBounds=n,this.outOfBounds=c}renderChip(t){return m(t.id,i`<calcite-chip class="status-chip" scale=s .label=${t.label} .value=${t.id} closable appearance=outline @calciteChipClose=${()=>{this.arcgisBrowserFilterRemove.emit(t.id)}}><span class="status-chip__label">${t.label}</span></calcite-chip>`)}render(){let t=this._messages.filterStatus,s=this.outOfBounds.length>0,a=this.inBounds.length+this.outOfBounds.length;return a?i`<div class="status-list"><calcite-chip-group class="chip-group" .label=${t.filters} scale=s>${this.inBounds.map(e=>this.renderChip(e))}${s&&i`<calcite-button id=popover-button round kind=neutral appearance=outline scale=s>+ ${this.outOfBounds.length}</calcite-button>`||""}</calcite-chip-group>${s&&i`<calcite-popover .label=${t.additional} reference-element=popover-button placement=bottom-end><div class="popover-content"><calcite-chip-group .label=${t.additional} scale=s>${this.outOfBounds.map(e=>this.renderChip(e))}</calcite-chip-group></div></calcite-popover>`||""}${a>1&&i`<calcite-button class="clear-button" scale=s appearance=transparent kind=brand @click=${()=>this.arcgisBrowserFilterClear.emit(null)}>${t.clearAllFilters}</calcite-button>`||""}</div>`:null}};u("arcgis-portal-browser-filter-status",o);export{g as a,o as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as b,d as k}from"./WNDPRHBO.js";import"./QS3GXAIH.js";import"./TNNIKT2R.js";import{J as c,K as h,L as g,N as f,O as $,R as d,h as m,j as l}from"./
|
|
2
|
+
import{a as b,d as k}from"./WNDPRHBO.js";import"./QS3GXAIH.js";import"./TNNIKT2R.js";import{J as c,K as h,L as g,N as f,O as $,R as d,h as m,j as l}from"./5VCQSSPO.js";import"./JMA56SOB.js";import"./UZLQALHY.js";var E=/^#[0-9a-f]{3}$/iu,x=/^#[0-9a-f]{6}$/iu;function u(o){return I(o)||v(o)}function I(o){return o?.length===4&&E.test(o)}function v(o){return o?.length===7&&x.test(o)}function O(o){if(!u(o))return null;let t=o.replace("#","");if(t.length===3){let[e,i,r]=t.split("");return{r:Number.parseInt(`${e}${e}`,16),g:Number.parseInt(`${i}${i}`,16),b:Number.parseInt(`${r}${r}`,16)}}return{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)}}function w(o){let t=0;for(let i=0;i<o.length;i++)t=o.charCodeAt(i)+((t<<5)-t);let e="#";for(let i=0;i<3;i++){let r=t>>i*8&255;e+=`00${r.toString(16)}`.slice(-2)}return e}function y(o){let{r:t,g:e,b:i}=o;t/=255,e/=255,i/=255;let r=Math.max(t,e,i),n=Math.min(t,e,i),s=r-n;if(s===0)return 0;let a=0;switch(r){case t:a=(e-i)/s+(e<i?6:0);break;case e:a=(i-t)/s+2;break;default:a=(t-e)/s+4;break}return Math.round(a*60)}function M(o){let t=O(o);return t?y(t):0}var T=m`:host{display:inline-block}:host([scale="s"]){height:1.5rem;width:1.5rem;font-size:.625rem}:host([scale="m"]){height:2rem;width:2rem;font-size:.75rem}:host([scale="l"]){font-size:1rem;height:2.75rem;width:2.75rem}:host([scale="xl"]){font-size:1.25rem;height:4rem;width:4rem}.icon{display:flex;color:var(--calcite-color-text-3)}.background{position:relative;display:flex;height:100%;width:100%;align-items:center;justify-content:center}.initials{position:absolute;font-weight:700;text-transform:uppercase;color:var(--calcite-color-text-2)}.thumbnail{height:100%;width:100%}.tooltip-text{margin:0;padding:0;font-size:.75rem;color:var(--calcite-color-text-2)}calcite-tooltip{pointer-events:none}`,p=class extends g{constructor(){super(...arguments),this.imageEl=c(),this.fallbackEl=c(),this.tooltipEl=c(),this.imageError=!1,this.tooltipOpen=!1,this.tooltip=!1,this.scale="m"}static{this.properties={imageError:16,tooltipOpen:16,group:0,portal:0,tooltip:5,scale:3}}static{this.styles=T}willUpdate(t){t.has("group")&&(this.imageError=!1)}updated(){let t=this.tooltipEl.value,e=this.imageEl.value||this.fallbackEl.value;t&&e&&(t.referenceElement=e)}isDarkMode(){return!!this.el.closest(".calcite-mode-dark")}getThumbnailURI(){let{group:t,portal:e}=this;if(!t)return null;if(t.thumbnailUrl)return t.thumbnailUrl;let i=t.thumbnail;if(!i)return null;if(i.startsWith("http"))return i;if(!e||!t.id)return null;let r=k(e),n=r?`?token=${r}`:"";return`${b(e)}community/groups/${t.id}/info/${i}${n}`}generateFillColor(){let{id:t,title:e}=this.group||{},i=t?`#${t.slice(Math.max(0,t.length-6))}`:"",r=t&&u(i)?i:w(e||"");if(!t&&!e||!u(r))return"var(--calcite-color-foreground-2)";let n=M(r),s=this.isDarkMode()?20:90;return`hsl(${n}, 60%, ${s}%)`}generateInitials(){let t=this.group?.title?.trim().charAt(0);return t?.match(/^\w+$/u)?t:null}getIconScale(){return this.scale==="xl"?"l":this.scale==="xs"?"s":this.scale}renderTooltip(){return!this.tooltip||!this.group?.title?null:l`<calcite-tooltip .open=${this.tooltipOpen} close-on-click placement=bottom-start offset-distance=6 offset-skidding=0 ${h(this.tooltipEl)}><p class="tooltip-text">${this.group.title}</p></calcite-tooltip>`}render(){let t=this.getThumbnailURI();if(t&&!this.imageError)return l`<img class="thumbnail" src=${t??$} alt @error=${()=>{this.imageError=!0}} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.imageEl)}>${this.renderTooltip()}`;let e=this.generateInitials();return l`<span class="background" style=${f({backgroundColor:this.generateFillColor()})} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.fallbackEl)}>${e?l`<span aria-hidden=true class="initials">${e}</span>`:l`<calcite-icon class="icon" icon=users .scale=${this.getIconScale()}></calcite-icon>`}</span>${this.renderTooltip()}`}};d("arcgis-portal-group-thumbnail",p);export{p as ArcgisPortalGroupThumbnail};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as L}from"./
|
|
2
|
+
import{a as L}from"./EXY22JJE.js";import{a as C,b as y,c as A,p as f,v as x,x as w}from"./5VCQSSPO.js";var H=(s,n)=>{let e=s;for(;e;){if(e===n)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},d=(s,n,e)=>{let t=M(n).subscribe;return t(o=>{o.some(r=>H(s,r.target))&&e()})},m={},M=s=>{let n=s.join(","),e=m[n];if(e!==void 0)return e;let t=new Set,o=new MutationObserver(r=>t.forEach(i=>i(r)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:s,subtree:!0});let a={subscribe:r=>(t.add(r),()=>{t.delete(r),t.size===0&&(o.disconnect(),m[n]=void 0)})};return m[n]=a,a},N=(s,n)=>{let e=s;for(;e;){let t=e.closest?.(n);if(t)return t;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};var u=(s,n,e)=>N(s,`[${n}]`)?.getAttribute(n)??e;var E=s=>{let n=u(s,"lang",globalThis.navigator?.language||g);return{lang:n,t9nLocale:P(n)}},O=(s,n,e,t)=>{let o,a=()=>D(s,n(),t).then(r=>{(o?.lang!==r.lang||o.t9nLocale!==r.t9nLocale||o.t9nStrings!==r.t9nStrings)&&e(r),o=r}).catch(r=>{f("error","intl","Error updating component locale state",{detail:{error:r}})});return queueMicrotask(a),d(s,["lang"],a)},D=async(s,n,e=s.localName.split("-").slice(1).join("-"))=>{let{lang:t,t9nLocale:o}=E(s),a=`${n}/${e}/t9n`,i=e===null?{}:await z(o,a,"messages.");return{lang:t,t9nLocale:o,t9nStrings:i}};var _="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),F=new Set(_),g="en",R={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},z=async(s,n,e="")=>{let t=`${n}/${e}`,o=`${t}${s}.json`;return $[o]??=k(s,t),await $[o]},$={},k=async(s,n)=>{let e=`${n}${s}.json`;try{let t=await fetch(e);if(t.ok)return await t.json()}catch(t){return f("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:t}}),{}}return s===g?{}:await k(g,n)},P=s=>{let[n,e]=s.split("-"),t=n.toLowerCase(),o=t;return e&&(o=`${t}-${e.toUpperCase()}`),o=R[o]??o,F.has(o)?o:e?P(t):g};var S=s=>G(void 0,s),$e=s=>n=>G(n,s),v=class extends w{constructor(n,e){super(n);let t=this.exports;try{y(this.component);let o=e(this.component,this),a=this.exports!==t;if(C(o)){a||this.setProvisionalExports(o);let r=o.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await r)}else(!a||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},G=L(v);var T="ltr",Oe=()=>S((s,n)=>{n.exports=T,n.onLifecycle(()=>{let e=()=>{let t=u(s.el,"dir",T);n.exports=t==="rtl"?"rtl":"ltr"};return e(),d(s.el,["dir"],e)})}),ke=s=>(n={})=>S((e,t)=>{let o=E(e.el),a={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},r=e;t.onLifecycle(()=>O(e.el,()=>s("./assets"),({t9nLocale:c,t9nStrings:l,lang:h})=>{let p={...l,_lang:h,_t9nLocale:c,_loading:!1};t.exports=p;let b=l.componentLabel;typeof b=="string"&&"label"in e&&e.label==null&&(e.label??=b),i(r.messageOverrides)},n.name));let i=c=>{let l=t.exports,h=l._original??l,p=j(h,c);c&&(p._original=h),t.exports=p};return"messageOverrides"in r&&t.onUpdate(c=>{c.has("messageOverrides")&&i(r.messageOverrides)}),n.blocking?(t.setProvisionalExports(a,!1),t.ready):a}),j=(s,n)=>{if(!n)return s;let e={...s};return Object.entries(n).forEach(([t,o])=>{s[t]!==void 0&&(typeof o=="object"?e[t]=j(s[t],o):e[t]=o??s[t])}),e},Pe=s=>q,V="arcgisPropertyChange",q=(...s)=>{let n=A(),e=x(V,void 0,n),t=!0;return n.manager.onUpdated(o=>{if(t||!n.el.isConnected){t=!1;return}for(let a of s)o.has(a)&&e.emit({name:a})}),e};export{N as a,S as b,$e as c,Oe as d,ke as e,Pe as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a}from"./LHHMU66O.js";import b from"./JJVYB6BS.js";import"./UZCHLKLO.js";import"./QS3GXAIH.js";import"./TNNIKT2R.js";import"./R7QKF2ZH.js";import"./YPXLEZZS.js";import"./EXY22JJE.js";import"./5VCQSSPO.js";import"./JMA56SOB.js";import"./UZLQALHY.js";export default $arcgis.t(([])=>{return a},b)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./M6AFYDDU.js";import{a as w,b as P}from"./C3W4HTWD.js";import e from"./Q75EBGI2.js";import c from"./FD7SPNGP.js";import a from"./F3ODJVJC.js";import{a as S}from"./BKU43GE5.js";import{a as E,f as I}from"./4Z7OQ6QY.js";import"./K3ROLJNC.js";import{J as d,K as m,L as b,O as C,R as y,h as g,j as n}from"./VAFMKDDD.js";import"./JMA56SOB.js";import"./UZLQALHY.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:v},,{a:f,b:c,c:p,d:R,e:V,f:_},{a:x,b:$}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await M(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function M(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function N({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var O=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):W(r,t)},W=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await J(r)).execute(e)}async function J(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var L=g`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,u=class extends b{constructor(){super(),this.classificationModel=x(this),this.messages=S(),this.formMainContentRef=d(),this.bannerRef=d(),this._classificationDataTask=$(this),this._formCreationTask=new P(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await O(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this.cleanupItemClassificationWatchHandle(),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this._itemClassificationWatchPortalItem=this.portalItem,this._itemClassificationWatchPortalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.pendingPortalItem=this.pendingPortalItem.clone(),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=_(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=p(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.formValidationErrorsSource="other",this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=I()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,formValidationErrorsSource:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=L}async destroy(){this.cleanupItemClassificationWatchHandle(),await this.destroyManagedChildren(),await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await V(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await v(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=E(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=p(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await O(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await N({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,D=e[o]?.valueExpressionResult,A=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:D,attributeValidationResult:A})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1,i="other"){let a=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([e,s])=>{s.isRequired&&!this.pendingPortalItem?.classification?.[e]&&this.pendingPortalItem?.classification?.[e]!==0&&(!t||this.isRequiredErrors.has(e))&&a.push({attribute:s.label,reason:this.messages.isrequired??"is required",category:s.attributeCategory}),this.attributeExpressionResults.get(e)?.attributeValidationResult&&a.push({attribute:s.label,reason:this.attributeExpressionResults.get(e)?.attributeValidationResult??"",category:s.attributeCategory})}),this.formValidationErrors=a,this.formValidationErrorsSource=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}cleanupItemClassificationWatchHandle(){this._itemClassificationWatchHandle?.remove(),this._itemClassificationWatchHandle=void 0,this._itemClassificationWatchPortalItem?.removeHandles("arcgis-classification-config"),this._itemClassificationWatchPortalItem=void 0}async destroyManagedChildren(){let t=this.bannerRef.value;!t?.autoDestroyDisabled||t.manager?.destroyed||await t.destroy()}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category)||this.formValidationErrorsSource==="favorite")?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(!1,"favorite"),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===w.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification} .autoDestroyDisabled=${this.autoDestroyDisabled} ${m(this.bannerRef)}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${m(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",u);return u},"arcade","core/reactiveUtils",a,c,e,f)
|
|
2
|
+
import f from"./S6I3TZ6Q.js";import{a as w,b as P}from"./OVLGZQIP.js";import e from"./Q75EBGI2.js";import c from"./MRW6GCHQ.js";import a from"./F3ODJVJC.js";import{a as S}from"./R7QKF2ZH.js";import{a as E,f as I}from"./YPXLEZZS.js";import"./EXY22JJE.js";import{J as d,K as m,L as b,O as C,R as y,h as g,j as n}from"./5VCQSSPO.js";import"./JMA56SOB.js";import"./UZLQALHY.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:v},,{a:f,b:c,c:p,d:R,e:V,f:_},{a:x,b:$}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await M(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function M(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function N({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var O=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):W(r,t)},W=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await J(r)).execute(e)}async function J(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var L=g`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,u=class extends b{constructor(){super(),this.classificationModel=x(this),this.messages=S(),this.formMainContentRef=d(),this.bannerRef=d(),this._classificationDataTask=$(this),this._formCreationTask=new P(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await O(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this.cleanupItemClassificationWatchHandle(),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this._itemClassificationWatchPortalItem=this.portalItem,this._itemClassificationWatchPortalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.pendingPortalItem=this.pendingPortalItem.clone(),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=_(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=p(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.formValidationErrorsSource="other",this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=I()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,formValidationErrorsSource:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=L}async destroy(){this.cleanupItemClassificationWatchHandle(),await this.destroyManagedChildren(),await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await V(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await v(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=E(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=p(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await O(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await N({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,D=e[o]?.valueExpressionResult,A=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:D,attributeValidationResult:A})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1,i="other"){let a=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([e,s])=>{s.isRequired&&!this.pendingPortalItem?.classification?.[e]&&this.pendingPortalItem?.classification?.[e]!==0&&(!t||this.isRequiredErrors.has(e))&&a.push({attribute:s.label,reason:this.messages.isrequired??"is required",category:s.attributeCategory}),this.attributeExpressionResults.get(e)?.attributeValidationResult&&a.push({attribute:s.label,reason:this.attributeExpressionResults.get(e)?.attributeValidationResult??"",category:s.attributeCategory})}),this.formValidationErrors=a,this.formValidationErrorsSource=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}cleanupItemClassificationWatchHandle(){this._itemClassificationWatchHandle?.remove(),this._itemClassificationWatchHandle=void 0,this._itemClassificationWatchPortalItem?.removeHandles("arcgis-classification-config"),this._itemClassificationWatchPortalItem=void 0}async destroyManagedChildren(){let t=this.bannerRef.value;!t?.autoDestroyDisabled||t.manager?.destroyed||await t.destroy()}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category)||this.formValidationErrorsSource==="favorite")?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(!1,"favorite"),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===w.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification} .autoDestroyDisabled=${this.autoDestroyDisabled} ${m(this.bannerRef)}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${m(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",u);return u},"arcade","core/reactiveUtils",a,c,e,f)
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{Q as r,z as e}from"./VAFMKDDD.js";import"./JMA56SOB.js";import"./UZLQALHY.js";var s=e(r,{"arcgis-portal-account-switcher":[()=>import("./TA456NXC.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./V4XGNCNI.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./PGVE7V53.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./K4LOZYJF.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./ZM3A4O2X.js"),"item:,itemId,messageOverrides:,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./PPHEHA5I.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./XGRVBCMF.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./42VKNALC.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./DITALHT7.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./I7NJ6E6I.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./URZI7SU4.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./VSNBZIZ4.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./3ZHDGFSL.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./HT4JMB5R.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./TFGNQADN.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./MTY2ZUR2.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./RVZXDXUC.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./UQSYMUOF.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./HOWXDT3E.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./M7BI7QXA.js"),"active,disableLinks,fieldDeleteMessages:,itemIds:,items:,messages:,portal:,user:"],"arcgis-portal-delete-items-review":[()=>import("./PLGWH6LA.js"),"items:,messages:,portal:,user:"],"arcgis-portal-entity-picker":[()=>import("./XYZFL54V.js"),"_messages:,entityType,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-extent-picker":[()=>import("./P5WD6JVL.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./PS5BTYGD.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./QVWXUQZY.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./6VTAWA6R.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./LU7EPIPR.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,hideTopBar,loading,messageOverrides:,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:,view;clearFilters,refresh"],"arcgis-portal-group-browser-card":[()=>import("./J4M77DLV.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./57DQMVPP.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./74XEOQEV.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./66MA5EIA.js"),"disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],"arcgis-portal-group-picker":[()=>import("./XYH7L6WW.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-group-thumbnail":[()=>import("./2DIAUHE5.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./CWGXNX3W.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./X4E3B7EQ.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./FZUEX6YH.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./HXDTSREX.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./JI63K67U.js"),"actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-favorite":[()=>import("./2IKXUDFM.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-picker":[()=>import("./PO54NFLO.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-item-thumbnail":[()=>import("./VPYZSDS3.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./SOLQD7DU.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./3TLHOVLW.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./DMLKGQRF.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./7JRQ62JP.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./S62RRECO.js"),"browserMessages:,deleteMessages:,messages:,portal:,relatedItems:,relatedItemsCount,showDependentItems,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./MOJGAOYF.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./UC42OQDP.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-picker":[()=>import("./CKEGCEEU.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-user-popup":[()=>import("./QS53VF2B.js"),"appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],"arcgis-portal-voice-input":[()=>import("./Q53MAFDQ.js"),"language;clearText,startListening,stopListening"]});s({resourcesUrl:import.meta.url});var a=new CSSStyleSheet;a.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-account-switcher-signout,arcgis-portal-add-gps-metadata,arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-actions,arcgis-portal-browser-filter-status,arcgis-portal-browser-pagination,arcgis-portal-browser-search,arcgis-portal-browser-sort,arcgis-portal-browser-top-bar,arcgis-portal-browser-view,arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-delete-items,arcgis-portal-delete-items-review,arcgis-portal-entity-picker,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-picker,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,arcgis-portal-item-actions,arcgis-portal-item-badges,arcgis-portal-item-badge,arcgis-portal-item-card,arcgis-portal-item-favorite,arcgis-portal-item-picker,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-picker,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,a];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
|
|
2
|
+
import{Q as r,z as e}from"./5VCQSSPO.js";import"./JMA56SOB.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./IWPRELHF.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./LIHF7EWA.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./3U3QLHFR.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./QPO5ITKN.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./VEDI36FS.js"),"canShowAddGPSMetadata:,item:,itemId,messageOverrides:,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./YDOMDBYB.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./ODEETVV3.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./CGJZ7TCO.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./EQTH5XGZ.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./ILBJMDQJ.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./IC2Y3HQB.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./U64FTHLS.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./OBQXRANK.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./CHLDYOXO.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./D7CXMPYS.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./PCHBGCH3.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./Z7RHFTU6.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./HEGOPH46.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./UIGOQIAU.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./Y2AZYYC2.js"),"active,disableLinks,fieldDeleteMessages:,itemIds:,items:,messages:,portal:,user:"],"arcgis-portal-delete-items-review":[()=>import("./3FMXY5RA.js"),"items:,messages:,portal:,user:"],"arcgis-portal-entity-picker":[()=>import("./434GUKA4.js"),"_messages:,entityType,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-extent-picker":[()=>import("./QVDPX7K3.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./3WFFMXLP.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./BHU46YRD.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./SSGFE2S2.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./SLESYZ6I.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,hideTopBar,loading,messageOverrides:,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:,view;clearFilters,refresh"],"arcgis-portal-group-browser-card":[()=>import("./YX4B6VTU.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./AQKAKFND.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./2HVWEYMK.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./D2L3BGSD.js"),"disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],"arcgis-portal-group-picker":[()=>import("./AE4IZR2S.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-group-thumbnail":[()=>import("./YIMYOCSN.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./44BGVEI2.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./63SYEYNJ.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./FUYVU3PI.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./LKHDQZPU.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./IKSSR2GR.js"),"actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-favorite":[()=>import("./25HZAERJ.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-picker":[()=>import("./2BW64XPI.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-item-thumbnail":[()=>import("./OG7SIRKS.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./P3VCVVZP.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./DH73YABO.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./LKTRF45D.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./A6PCMJ5W.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./DTXOA3YJ.js"),"browserMessages:,deleteMessages:,messages:,portal:,relatedItems:,relatedItemsCount,showDependentItems,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./PLSCIEN2.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./L7XA73K5.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-picker":[()=>import("./XYC2N5NS.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-user-popup":[()=>import("./BY6PQBOV.js"),"appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],"arcgis-portal-voice-input":[()=>import("./K5OBB7AL.js"),"language;clearText,startListening,stopListening"]});a({resourcesUrl:import.meta.url});var s=new CSSStyleSheet;s.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-account-switcher-signout,arcgis-portal-add-gps-metadata,arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-actions,arcgis-portal-browser-filter-status,arcgis-portal-browser-pagination,arcgis-portal-browser-search,arcgis-portal-browser-sort,arcgis-portal-browser-top-bar,arcgis-portal-browser-view,arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-delete-items,arcgis-portal-delete-items-review,arcgis-portal-entity-picker,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-picker,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,arcgis-portal-item-actions,arcgis-portal-item-badges,arcgis-portal-item-badge,arcgis-portal-item-card,arcgis-portal-item-favorite,arcgis-portal-item-picker,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-picker,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,s];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
|
|
@@ -21,6 +21,12 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
21
21
|
* be updated with the rangefinder fields, and the table and polygon will be ignored as those fields do not apply.
|
|
22
22
|
*/
|
|
23
23
|
export abstract class ArcgisPortalAddGpsMetadata extends LitElement {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the item supports displaying GPS metadata controls. Remains false until compatibility checks finish.
|
|
26
|
+
*
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
29
|
+
get canShowAddGPSMetadata(): false;
|
|
24
30
|
/** Takes precedence over `itemId` when both are provided. */
|
|
25
31
|
accessor item: PortalItem | null;
|
|
26
32
|
/** The ID of the item to load when an `item` is not provided. */
|
|
@@ -54,9 +60,12 @@ export abstract class ArcgisPortalAddGpsMetadata extends LitElement {
|
|
|
54
60
|
accessor portal: Portal;
|
|
55
61
|
/** Emitted when fields are successfully added/repaired. */
|
|
56
62
|
readonly arcgisGPSMetadataFieldsAdded: import("@arcgis/lumina").TargetedEvent<this, GPSMetadataFieldSet>;
|
|
63
|
+
/** Emitted when GPS metadata control visibility changes. */
|
|
64
|
+
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "canShowAddGPSMetadata"; }>;
|
|
57
65
|
readonly arcgisReadOnlyMode: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
58
66
|
readonly "@eventTypes": {
|
|
59
67
|
arcgisGPSMetadataFieldsAdded: ArcgisPortalAddGpsMetadata["arcgisGPSMetadataFieldsAdded"]["detail"];
|
|
68
|
+
arcgisPropertyChange: ArcgisPortalAddGpsMetadata["arcgisPropertyChange"]["detail"];
|
|
60
69
|
arcgisReadOnlyMode: ArcgisPortalAddGpsMetadata["arcgisReadOnlyMode"]["detail"];
|
|
61
70
|
};
|
|
62
71
|
}
|