import{g as l,r as d}from"./index-BP8_t0zE.js";import{_ as p,a as m}from"./_isIterateeCall-D0xvKagp.js";import{e as c}from"./assertThisInitialized-ClXgY4BW.js";import{k as O}from"./identity-B2iMGpmP.js";import{u as y,a as w}from"./useAuthState-Chcbfem2.js";import{u as g}from"./useResourceContext-BI9mATY-.js";var R=p,_=c,b=m,C=O,h=Object.prototype,P=h.hasOwnProperty,x=R(function(e,t){e=Object(e);var n=-1,r=t.length,a=r>2?t[2]:void 0;for(a&&b(t[0],t[1],a)&&(r=1);++n<r;)for(var s=t[n],i=C(s),f=-1,u=i.length;++f<u;){var o=i[f],v=e[o];(v===void 0||_(v,h[o])&&!P.call(e,o))&&(e[o]=s[o])}return e}),E=x;const S=l(E);var $=function(e){var t=g(e),n=y(),r=e||{},a=r.hasCreate,s=r.hasEdit,i=r.hasList,f=r.hasShow,u=r.recordRepresentation,o=d.useMemo(function(){return S({},{hasCreate:a,hasEdit:s,hasList:i,hasShow:f,recordRepresentation:u},t?n[t]:{})},[t,n,a,s,i,f,u]);return o},D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},z=function(e){e===void 0&&(e={});var t=e.params,n=D(e,["params"]);w(t??I,!0,n)},I={};export{z as a,S as d,$ as u};
