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