(()=>{"use strict";var e={894(e,t,n){const o=window.wp.domReady;n.n(o)()(()=>{const e=jQuery("#product-type");if(e){const t=e.val(),n=NewfoldSolutionsUpsell||[];let o=[];for(let n of e.find("option"))o.push(new Option(n.text,n.value,t===n.value));for(let e of n)o.push(new Option(e.option_label,e.basename));e.html(o).val(t),e.selectWoo({minimumResultsForSearch:1/0,templateResult:e=>n.find(t=>e.id===t.basename)?jQuery("<span>"+e.text+'<span class="premium-plugin-icon"></span></span>'):e.text}),e.next(".select2").on("click",e=>e.stopPropagation()),e.on("select2:selecting",t=>{const o=n.find(e=>t.params.args.data.id===e.basename);if(o){t.preventDefault(),t.stopPropagation(),e.selectWoo("close"),jQuery(document.body).find(".nfd-solution-upsell-trigger").remove();const n=jQuery('<a href="#" class="nfd-solution-upsell-trigger"></a>');n.attr("data-ctb-id",o.ctbId).attr("data-nfd-installer-plugin-activate",!o.ctbId||void 0).attr("data-nfd-installer-download-url",o.ctbId?void 0:o.download).attr("data-nfd-installer-plugin-basename",o.ctbId?void 0:o.basename).attr("data-nfd-installer-plugin-name",o.ctbId?void 0:o?.name).attr("data-nfd-installer-pls-provider",o.ctbId?void 0:o.plsProviderName).attr("data-nfd-installer-pls-slug",o.ctbId?void 0:o.plsSlug).attr("data-nfd-installer-plugin-dependency",!o.ctbId&&o.dependency?o.dependency:void 0),jQuery(document.body).append(n),document.querySelector(".nfd-solution-upsell-trigger").click()}})}})}};const t={};function n(o){const a=t[o];if(void 0!==a)return a.exports;const l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}n.m=e,(()=>{const e=[];n.O=(t,o,a,l)=>{if(o){l=l||0;for(var r=e.length;r>0&&e[r-1][2]>l;r--)e[r]=e[r-1];return void(e[r]=[o,a,l])}let s=1/0;for(r=0;r<e.length;r++){let[o,a,l]=e[r],i=!0;for(var d=0;d<o.length;d++)(!1&l||s>=l)&&Object.keys(n.O).every(e=>n.O[e](o[d]))?o.splice(d--,1):(i=!1,l<s&&(s=l));if(i){e.splice(r--,1);const n=a();void 0!==n&&(t=n)}}return t}})(),n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var a=t[o++],l=t[o++];n.o(e,a)?0===l&&o++:0===l?Object.defineProperty(e,a,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,a,{enumerable:!0,get:l})}else for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.hasOwn(e,t),(()=>{const e={557:0,124:0};n.O.j=t=>0===e[t];const t=(t,o)=>{let[a,l,r]=o;var s,d,i=0;if(a.some(t=>0!==e[t])){for(s in l)n.o(l,s)&&(n.m[s]=l[s]);if(r)var c=r(n)}for(t&&t(o);i<a.length;i++)d=a[i],n.o(e,d)&&e[d]&&e[d][0](),e[d]=0;return n.O(c)},o=globalThis.webpackChunk_newfold_labs_wp_module_solutions||=[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();let o=n.O(void 0,[124],()=>n(894));o=n.O(o)})();