'use strict';
import { c } from 'react/compiler-runtime';
import { useState } from 'react';
import { useAsyncEffect } from '../../../../fd-toolbox/hooks/use-async-effect.js';
import { fetchUiResourceMeta } from '../../ui-meta-providers.js';

var __defProp=Object['defineProperty'],__name=(_0x586b84,_0x16cfc2)=>__defProp(_0x586b84,'name',{'value':_0x16cfc2,'configurable':!![]});function useUiResourceMeta(_0x54ee7c){const _0x551bc1=c(-0x25ab+-0xb1c+-0x1865*-0x2),[_0x54864b,_0x68dfb2]=useState();let _0x8caebc,_0x331d50;return _0x551bc1[0xc7*-0x13+-0xa27+0x18ec]!==_0x54ee7c?(_0x8caebc=async()=>{const _0x4c9f37=await fetchUiResourceMeta(_0x54ee7c);_0x68dfb2(_0x4c9f37);},_0x331d50=[_0x54ee7c],_0x551bc1[0x142a+-0x74*0x2f+0x122]=_0x54ee7c,_0x551bc1[-0x162+-0x2178+-0x22db*-0x1]=_0x8caebc,_0x551bc1[-0xf8*0x8+-0x16f*-0x18+-0x1aa6]=_0x331d50):(_0x8caebc=_0x551bc1[0x2*0x1334+0x1dd4+-0x443b],_0x331d50=_0x551bc1[-0x917+0x97*0x1+0x2d6*0x3]),useAsyncEffect(_0x8caebc,_0x331d50),_0x54864b;}__name(useUiResourceMeta,'useUiResourceMeta');

export { useUiResourceMeta };
