var i=Object.defineProperty;var c=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var o=(s,l,e)=>l in s?i(s,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[l]=e,r=(s,l)=>{for(var e in l||(l={}))u.call(l,e)&&o(s,e,l[e]);if(c)for(var e of c(l))d.call(l,e)&&o(s,e,l[e]);return s};import{b as v,c as g,_ as f}from"./bi.636.93.js";const p=(s,l,e)=>{const a=r({},l),{name:t}=s.target;s.target.value!==""?a[t]=s.target.value:delete a[t],e(r({},a))},m=(s,l,e)=>{e(!0);const a=v(null,"restrict_get_all_levels",null,"GET").then(t=>{if(t&&t.success){const n=r({},s);return n.default||(n.default={}),t.data.levellists&&(n.default.levellists=t.data.levellists),l(r({},n)),e(!1),"Levels refreshed successfully"}else return e(!1),"Levels refresh failed. please try again"});g.promise(a,{success:t=>t,error:f("Error Occurred","bit-integrations"),loading:f("Loading Levels...")})};export{m as g,p as h};
