"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[6242,7463],{7463(e,l,t){t.r(l),t.d(l,{default:()=>s});var a=t(1609),d=t(6087),r=t(7723),c=t(6723);const n=new Map,s=({field:e,defaultPlaceholder:l,defaultItemTitle:s})=>{const u=(0,d.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,d.lazy)(()=>t(6275)(`./${(0,c.Cv)(e,"_","")}`))),n.get(e)))(o);return(0,d.useEffect)(()=>{u.current&&u.current.querySelector(".select2-container")?.remove()},[o]),(0,a.createElement)(d.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,r.__)("Add new","meta-box-builder"))))}},6242(e,l,t){t.r(l),t.d(l,{default:()=>c});var a=t(1609),d=t(7723),r=t(7463);const c=({field:e})=>(0,a.createElement)(r.default,{field:e,defaultPlaceholder:(0,d.__)("Select a post","meta-box-builder"),defaultItemTitle:(0,d.__)("Post title","meta-box-builder")})}}]);