File "useSlot-1.0.13-62ad37b6.js"

Full Path: /home/vantageo/public_html/cache/cache/cache/.wp-cli/wp-content/plugins/wp-data-access/assets/dist/useSlot-1.0.13-62ad37b6.js
File size: 863 bytes
MIME-type: text/x-java
Charset: utf-8

import{a as s,r as v,m as b,_ as n,d as j,f as k}from"./iconBase-1.0.13-98e06aa9.js";const E=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],L=["component","slots","slotProps"],N=["component"];function W(e,o){const{className:x,elementType:_,ownerState:l,externalForwardedProps:p,getSlotOwnerState:d,internalForwardedProps:a}=o,F=s(o,E),{component:c,slots:t={[e]:void 0},slotProps:O={[e]:void 0}}=p,g=s(p,L),P=t[e]||_,r=v(O[e],l),i=b(n({className:x},F,{externalForwardedProps:e==="root"?g:void 0,externalSlotProps:r})),{props:{component:f},internalRef:y}=i,u=s(i.props,N),C=j(y,r==null?void 0:r.ref,o.ref),S=d?d(u):{},T=n({},l,S),w=e==="root"?f||c:f,m=k(P,n({},e==="root"&&!c&&!t[e]&&a,e!=="root"&&!t[e]&&a,u,w&&{as:w},{ref:C}),T);return Object.keys(S).forEach(h=>{delete m[h]}),[P,m]}export{W as u};