"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[1322,7463],{7463(e,l,a){a.r(l),a.d(l,{default:()=>s});var t=a(1609),d=a(6087),r=a(7723),c=a(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)(()=>a(6275)(`./${(0,c.Cv)(e,"_","")}`))),n.get(e)))(o);return(0,d.useEffect)(()=>{u.current&&u.current.querySelector(".select2-container")?.remove()},[o]),(0,t.createElement)(d.Suspense,{fallback:null},(0,t.createElement)("div",{ref:u},(0,t.createElement)(i,{field:f}),e.add_new&&(0,t.createElement)("a",{href:"#",className:"rwmb-modal-add-button"},(0,r.__)("Add new","meta-box-builder"))))}},1322(e,l,a){a.r(l),a.d(l,{default:()=>c});var t=a(1609),d=a(7723),r=a(7463);const c=({field:e})=>(0,t.createElement)(r.default,{field:e,defaultPlaceholder:(0,d.__)("Select a sidebar","meta-box-builder"),defaultItemTitle:(0,d.__)("Sidebar","meta-box-builder")})}}]);