"use strict";(self.webpackChunk_components_admin_1_1_41=self.webpackChunk_components_admin_1_1_41||[]).push([[2331,4712],{72331(e,n,a){a.r(n),a.d(n,{default:()=>o});var u=a(5544),t=a(13732),l=a(97584);const o=function(e,n){n=Object.assign({},{defaultValue:"defaultValue",value:"value",onChange:"onChange"},n);var a=(0,t.useRef)(n.value in e),o=(0,t.useState)(e[n.defaultValue]),c=(0,u.A)(o,2),r=c[0],f=c[1],s=a.current?e[n.value]:r;return[s,(0,l.default)(function(u){for(var t="function"===typeof u?s=u(s):u,l=arguments.length,o=new Array(l>1?l-1:0),c=1;c<l;c++)o[c-1]=arguments[c];e[n.onChange]&&e[n.onChange].apply(e,[t].concat(o)),a.current||f(t)})]}}}]);
//# sourceMappingURL=4712.a4f8051a.chunk.js.map