"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[5659,7463],{7463(e,l,t){t.r(l),t.d(l,{default:()=>s});var a=t(1609),r=t(6087),d=t(7723),c=t(6723);const n=new Map,s=({field:e,defaultPlaceholder:l,defaultItemTitle:s})=>{const u=(0,r.useRef)(),o=e.field_type||"select_advanced",f={...e,class:`${e.class||""} rwmb-${o}`,placeholder:e.placeholder||l,options:`${s} 1 \n${s} 2 \n${s} 3`},i=(e=>(n.has(e)||n.set(e,(0,r.lazy)(()=>t(6275)(`./${(0,c.Cv)(e,"_","")}`))),n.get(e)))(o);return(0,r.useEffect)(()=>{u.current&&u.current.querySelector(".select2-container")?.remove()},[o]),(0,a.createElement)(r.Suspense,{fallback:null},(0,a.createElement)("div",{ref:u},(0,a.createElement)(i,{field:f}),e.add_new&&(0,a.createElement)("a",{href:"#",className:"rwmb-modal-add-button"},(0,d.__)("Add new","meta-box-builder"))))}},5659(e,l,t){t.r(l),t.d(l,{default:()=>c});var a=t(1609),r=t(7723),d=t(7463);const c=({field:e})=>(0,a.createElement)(d.default,{field:e,defaultPlaceholder:(0,r.__)("Select a user","meta-box-builder"),defaultItemTitle:(0,r.__)("User","meta-box-builder")})}}]);