(()=>{"use strict";var e,t={894(e,t,n){const a=window.wp.domReady;n.n(a)()(()=>{const e=jQuery("#product-type");if(e){const t=e.val(),n=NewfoldSolutionsUpsell||[];let a=[];for(let n of e.find("option"))a.push(new Option(n.text,n.value,t===n.value));for(let e of n)a.push(new Option(e.option_label,e.basename));e.html(a).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 a=n.find(e=>t.params.args.data.id===e.basename);if(a){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",a.ctbId).attr("data-nfd-installer-plugin-activate",!a.ctbId||void 0).attr("data-nfd-installer-download-url",a.ctbId?void 0:a.download).attr("data-nfd-installer-plugin-basename",a.ctbId?void 0:a.basename).attr("data-nfd-installer-plugin-name",a.ctbId?void 0:a?.name).attr("data-nfd-installer-pls-provider",a.ctbId?void 0:a.plsProviderName).attr("data-nfd-installer-pls-slug",a.ctbId?void 0:a.plsSlug).attr("data-nfd-installer-plugin-dependency",!a.ctbId&&a.dependency?a.dependency:void 0),jQuery(document.body).append(n),document.querySelector(".nfd-solution-upsell-trigger").click()}})}})}},n={};function a(e){var o=n[e];if(void 0!==o)return o.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,a),l.exports}a.m=t,e=[],a.O=(t,n,o,l)=>{if(!n){var r=1/0;for(p=0;p<e.length;p++){for(var[n,o,l]=e[p],d=!0,s=0;s<n.length;s++)(!1&l||r>=l)&&Object.keys(a.O).every(e=>a.O[e](n[s]))?n.splice(s--,1):(d=!1,l<r&&(r=l));if(d){e.splice(p--,1);var i=o();void 0!==i&&(t=i)}}return t}l=l||0;for(var p=e.length;p>0&&e[p-1][2]>l;p--)e[p]=e[p-1];e[p]=[n,o,l]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={557:0,124:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var o,l,[r,d,s]=n,i=0;if(r.some(t=>0!==e[t])){for(o in d)a.o(d,o)&&(a.m[o]=d[o]);if(s)var p=s(a)}for(t&&t(n);i<r.length;i++)l=r[i],a.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return a.O(p)},n=globalThis.webpackChunk_newfold_labs_wp_module_solutions=globalThis.webpackChunk_newfold_labs_wp_module_solutions||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=a.O(void 0,[124],()=>a(894));o=a.O(o)})();