Module 466472

639 characters · in 30a277b9d32d70b1.js, e2ca8aa67284d6ae.js
Dependencies
Required by (2)
Lazily required by (0)none
Requires (2)
Lazily requires (0)none
Source Raw
function(t,e,s){s.d(e,{JN:()=>i,SA:()=>n,UQ:()=>h,a8:()=>r});var l=s(73153),a=s(962052);function n(t){a.A.queryDirectory(t,(e,s)=>{null==e&&null!=s&&l.h.dispatch({type:"INSTALLATION_LOCATION_ADD",path:t,metadata:s})})}function i(t){l.h.dispatch({type:"INSTALLATION_LOCATION_REMOVE",path:t})}function r(t,e){let{label:s,isDefault:a}=e;l.h.dispatch({type:"INSTALLATION_LOCATION_UPDATE",path:t,label:s,isDefault:a})}function h(t){let e={},s=0;for(let n of t)null!=n&&"string"==typeof n&&a.A.queryDirectory(n,(a,i)=>{++s,null==a&&null!=i&&(e[n]=i),s===t.length&&l.h.dispatch({type:"INSTALLATION_LOCATION_FETCH_METADATA",metadataPayload:e})})}}