(()=>{"use strict";var e={n:t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return e.d(a,{a}),a},d:(t,a)=>{for(var r in a)e.o(a,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:a[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.jQuery;var a=e.n(t),r=window,n=r.ajaxurl,s=r.VPAdminVariables;a()('select[name="vp_general[portfolio_archive_page]"]').select2({ajax:{url:n,dataType:"json",delay:250,data:function(e){return{q:e.term,selected:this[0].value,nonce:s.nonce,action:"vp_get_pages_list"}},processResults:function(e){var t=[],r=this.$element.select2("data"),n=!1;return r&&r[0]&&r[0].selected&&(n=Number(r[0].id),t.push({id:n,text:r[0].text})),e&&a().each(e,function(e,a){n&&n===a[0]||t.push({id:a[0],text:a[1]})}),{results:t}},cache:!0}})})();