Plugin Directory

Changeset 2777405


Ignore:
Timestamp:
08/29/2022 08:35:22 PM (4 years ago)
Author:
saifulananda
Message:

Update plugin version 1.2.0

Location:
wpappsdev-pcbuilder/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • wpappsdev-pcbuilder/trunk/assets/js/wpadpcbu-public.js

    r2736642 r2777405  
    1 (()=>{var e={306:function(e){!function(t){"use strict";var n=function(){return{escape:function(e){return e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",o="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:o,jpeg:o,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,o},dataAsUrl:function(e,t){return"data:"+t+";base64,"+e},isDataUrl:function(e){return-1!==e.search(/^(data:)/)},canvasToBlob:function(e){return e.toBlob?new Promise((function(t){e.toBlob(t)})):function(e){return new Promise((function(t){for(var n=window.atob(e.toDataURL().split(",")[1]),r=n.length,o=new Uint8Array(r),c=0;c<r;c++)o[c]=n.charCodeAt(c);t(new Blob([o],{type:"image/png"}))}))}(e)},resolveUrl:function(e,t){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var o=n.createElement("a");return n.body.appendChild(o),r.href=t,o.href=e,o.href},getAndEncode:function(e){var t=3e4;a.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,o=new XMLHttpRequest;if(o.onreadystatechange=i,o.ontimeout=u,o.responseType="blob",o.timeout=t,o.open("GET",e,!0),o.send(),a.impl.options.imagePlaceholder){var c=a.impl.options.imagePlaceholder.split(/,/);c&&c[1]&&(r=c[1])}function i(){if(4===o.readyState)if(200===o.status){var t=new FileReader;t.onloadend=function(){var e=t.result.split(/,/)[1];n(e)},t.readAsDataURL(o.response)}else r?n(r):p("cannot fetch resource: "+e+", status: "+o.status)}function u(){r?n(r):p("timeout of "+t+"ms occured while fetching resource: "+e)}function p(e){console.error(e),n("")}}))},uid:(e=0,function(){return"u"+t()+e++;function t(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}),delay:function(e){return function(t){return new Promise((function(n){setTimeout((function(){n(t)}),e)}))}},asArray:function(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t},escapeXhtml:function(e){return e.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src=e}))},width:function(e){var t=n(e,"border-left-width"),r=n(e,"border-right-width");return e.scrollWidth+t+r},height:function(e){var t=n(e,"border-top-width"),r=n(e,"border-bottom-width");return e.scrollHeight+t+r}};var e;function t(e){var t=/\.([^\.\/]*?)$/g.exec(e);return t?t[1]:""}function n(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}}(),r=function(){var e=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(e,n,c){return i()?Promise.resolve(e):Promise.resolve(e).then(r).then((function(t){var r=Promise.resolve(e);return t.forEach((function(e){r=r.then((function(t){return o(t,e,n,c)}))})),r}));function i(){return!t(e)}},shouldProcess:t,impl:{readUrls:r,inline:o}};function t(t){return-1!==t.search(e)}function r(t){for(var r,o=[];null!==(r=e.exec(t));)o.push(r[1]);return o.filter((function(e){return!n.isDataUrl(e)}))}function o(e,t,r,o){return Promise.resolve(t).then((function(e){return r?n.resolveUrl(e,r):e})).then(o||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t))})).then((function(r){return e.replace(function(e){return new RegExp("(url\\(['\"]?)("+n.escape(e)+")(['\"]?\\))","g")}(t),"$1"+r+"$3")}))}}(),o=function(){return{resolveAll:function(){return e(document).then((function(e){return Promise.all(e.map((function(e){return e.resolve()})))})).then((function(e){return e.join("\n")}))},impl:{readAll:e}};function e(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(e){var t=[];return e.forEach((function(e){try{n.asArray(e.cssRules||[]).forEach(t.push.bind(t))}catch(t){console.log("Error while reading CSS rules from "+e.href,t.toString())}})),t})).then((function(e){return e.filter((function(e){return e.type===CSSRule.FONT_FACE_RULE})).filter((function(e){return r.shouldProcess(e.style.getPropertyValue("src"))}))})).then((function(t){return t.map(e)}));function e(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return r.inlineAll(e.cssText,t)},src:function(){return e.style.getPropertyValue("src")}}}}}(),c=function(){return{inlineAll:function t(o){return o instanceof Element?c(o).then((function(){return o instanceof HTMLImageElement?e(o).inline():Promise.all(n.asArray(o.childNodes).map((function(e){return t(e)})))})):Promise.resolve(o);function c(e){var t=e.style.getPropertyValue("background");return t?r.inlineAll(t).then((function(t){e.style.setProperty("background",t,e.style.getPropertyPriority("background"))})).then((function(){return e})):Promise.resolve(e)}},impl:{newImage:e}};function e(e){return{inline:function(t){return n.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(t||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e.src))})).then((function(t){return new Promise((function(n,r){e.onload=n,e.onerror=r,e.src=t}))}))}}}}(),i={imagePlaceholder:void 0,cacheBust:!1},a={toSvg:u,toPng:function(e,t){return p(e,t||{}).then((function(e){return e.toDataURL()}))},toJpeg:function(e,t){return p(e,t=t||{}).then((function(e){return e.toDataURL("image/jpeg",t.quality||1)}))},toBlob:function(e,t){return p(e,t||{}).then(n.canvasToBlob)},toPixelData:function(e,t){return p(e,t||{}).then((function(t){return t.getContext("2d").getImageData(0,0,n.width(e),n.height(e)).data}))},impl:{fontFaces:o,images:c,util:n,inliner:r,options:{}}};function u(e,t){return function(e){void 0===e.imagePlaceholder?a.impl.options.imagePlaceholder=i.imagePlaceholder:a.impl.options.imagePlaceholder=e.imagePlaceholder;void 0===e.cacheBust?a.impl.options.cacheBust=i.cacheBust:a.impl.options.cacheBust=e.cacheBust}(t=t||{}),Promise.resolve(e).then((function(e){return l(e,t.filter,!0)})).then(s).then(d).then((function(e){t.bgcolor&&(e.style.backgroundColor=t.bgcolor);t.width&&(e.style.width=t.width+"px");t.height&&(e.style.height=t.height+"px");t.style&&Object.keys(t.style).forEach((function(n){e.style[n]=t.style[n]}));return e})).then((function(r){return function(e,t,r){return Promise.resolve(e).then((function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)})).then(n.escapeXhtml).then((function(e){return'<foreignObject x="0" y="0" width="100%" height="100%">'+e+"</foreignObject>"})).then((function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+r+'">'+e+"</svg>"})).then((function(e){return"data:image/svg+xml;charset=utf-8,"+e}))}(r,t.width||n.width(e),t.height||n.height(e))}))}function p(e,t){return u(e,t).then(n.makeImage).then(n.delay(100)).then((function(r){var o=function(e){var r=document.createElement("canvas");if(r.width=t.width||n.width(e),r.height=t.height||n.height(e),t.bgcolor){var o=r.getContext("2d");o.fillStyle=t.bgcolor,o.fillRect(0,0,r.width,r.height)}return r}(e);return o.getContext("2d").drawImage(r,0,0),o}))}function l(e,t,r){return r||!t||t(e)?Promise.resolve(e).then((function(e){return e instanceof HTMLCanvasElement?n.makeImage(e.toDataURL()):e.cloneNode(!1)})).then((function(r){return function(e,t,r){var o=e.childNodes;return 0===o.length?Promise.resolve(t):c(t,n.asArray(o),r).then((function(){return t}));function c(e,t,n){var r=Promise.resolve();return t.forEach((function(t){r=r.then((function(){return l(t,n)})).then((function(t){t&&e.appendChild(t)}))})),r}}(e,r,t)})).then((function(t){return function(e,t){return t instanceof Element?Promise.resolve().then(r).then(o).then(c).then(i).then((function(){return t})):t;function r(){function r(e,t){function r(e,t){n.asArray(e).forEach((function(n){t.setProperty(n,e.getPropertyValue(n),e.getPropertyPriority(n))}))}e.cssText?t.cssText=e.cssText:r(e,t)}r(window.getComputedStyle(e),t.style)}function o(){function r(r){var o=window.getComputedStyle(e,r),c=o.getPropertyValue("content");if(""!==c&&"none"!==c){var i=n.uid();t.className=t.className+" "+i;var a=document.createElement("style");a.appendChild(u(i,r,o)),t.appendChild(a)}function u(e,t,r){var o="."+e+":"+t,c=r.cssText?i(r):a(r);return document.createTextNode(o+"{"+c+"}");function i(e){var t=e.getPropertyValue("content");return e.cssText+" content: "+t+";"}function a(e){return n.asArray(e).map(t).join("; ")+";";function t(t){return t+": "+e.getPropertyValue(t)+(e.getPropertyPriority(t)?" !important":"")}}}}[":before",":after"].forEach((function(e){r(e)}))}function c(){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}function i(){t instanceof SVGElement&&(t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t instanceof SVGRectElement&&["width","height"].forEach((function(e){var n=t.getAttribute(e);n&&t.style.setProperty(e,n)})))}}(e,t)})):Promise.resolve()}function s(e){return o.resolveAll().then((function(t){var n=document.createElement("style");return e.appendChild(n),n.appendChild(document.createTextNode(t)),e}))}function d(e){return c.inlineAll(e).then((function(){return e}))}e.exports=a}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var c=t[r]={exports:{}};return e[r].call(c.exports,c,c.exports,n),c.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,r,o,c,i,a,u,p,l,s,d=n(306),f=n.n(d);e=jQuery,r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"hide"==n?e(t).waitMe("hide"):e(t).waitMe({effect:"ios"})},o=function(){var t=[];return e.each(e(".wpadpcbu-filter-panel input[type='checkbox']:checked"),(function(){t.push({tax:e(this).data("tax"),val:e(this).val()})})),t},c=function(){return e("#input-search").val()},i=function(){return e("#input-sort option:selected").val()},a=function(){return e("input.wpadpcbu-price-start").val()},u=function(){return e("input.wpadpcbu-price-end").val()},p=function(t){var n=".wpadpcbu-component-products";e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:t,beforeSend:function(){r(n)},success:function(t){if(t.success){var o=t.data;e("#wpadpcbu-products-row").html(o.markup),l(o)}else"pcbucomp"==t.data.type&&(window.location.href=wpadpcbu_public.builder);r(n,"hide")}})},l=function(t){var n=t.total_items,r=t.total_pages,o=t.current_page,c=t.per_page;e(".pagination-button").hide(),r>o&&e("#next-btn").show(),o>1&&o<=r&&e("#previous-btn").show(),1==r&&e(".wpadpcbu-pagination").addClass("no-pagination"),e("span.total-products").text(n),e("span.total-pages").text(r),e("span.current-page").text(o),e('input[name="total_items"]').val(n),e('input[name="total_pages"]').val(r),e('input[name="per_page"]').val(c),e('input[name="current_page"]').val(o)},s=function(e,n){clearTimeout(t);var r={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,taxFilters:o(),searchFilter:c(),sortByFilter:i(),priceStart:e,priceEnd:n,_nonce:wpadpcbu_public.nonce};t=setTimeout((function(){p(r)}),1e3)},jQuery(document).ready((function(e){e(".wpadpcbu-search-product").on("click",(function(e){e.preventDefault();var t=jQuery(this).data("componentid");window.location.assign(wpadpcbu_public.search+"?pcbucomp="+t)})),e(".wpadpcbu-remove-product").on("click",(function(t){t.preventDefault();var n=e(this).data("componentid"),o="#componentid-"+n,c={action:"remove_component_product",componentId:n,_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:c,beforeSend:function(){r(o)},success:function(e){e.success?location.reload():console.debug(e),r(o,"hide")}})})),e(".wpadpcbu-product-cart").on("click",(function(t){t.preventDefault();var n=".wpadpcbu-component-table table",o={action:"add_components_product_to_cart",_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:o,beforeSend:function(){r(n)},success:function(t){if(t.success)e(document.body).trigger("wc_fragment_refresh");else{var o=t.data;"missing-component"==o.type&&o.missing.forEach((function(t){e("#componentid-"+t+" .required-span").addClass("missing")})),alert(t.data.message)}r(n,"hide")}})})),e(".wpadpcbu-save").on("click",(function(t){t.preventDefault();var n=".wpadpcbu-component-table table",o={action:"pcbuilder_configuration_save",_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:o,beforeSend:function(){r(n)},success:function(t){if(t.success)window.location.assign(t.data.url);else{var o=t.data;"missing-component"==o.type&&o.missing.forEach((function(t){e("#componentid-"+t+" .required-span").addClass("missing")})),alert(o.message)}r(n,"hide")}})})),e(".wpadpcbu-remove-savedpc").on("click",(function(t){t.preventDefault();var n={action:"remove_savedpc",pcId:e(this).data("id"),_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:n,beforeSend:function(){r(".my_account_savedpcs")},success:function(e){e.success?location.reload():console.debug(e),r(".my_account_savedpcs","hide")}})})),e(".wpadpcbu-screenshots").on("click",(function(e){e.preventDefault();var t=document.getElementById("wpadpcbu-component"),n=new Date,r="Pc Configuration "+n.toDateString()+" "+n.toLocaleTimeString();f().toJpeg(t).then((function(e){var t=document.createElement("a");t.download=r+".jpeg",t.href=e,t.click()}))}))})),jQuery(document).ready((function(e){e(".bclink").on("click",(function(e){e.preventDefault();var t=jQuery(this).data("page");"builder"==t&&window.location.assign(wpadpcbu_public.builder),"search"==t&&location.reload()})),e("#filter-hide").on("click",(function(t){t.preventDefault(),e(this).hide(),e("#wpadpcbu-search-filter").hide(),e("#filter-show").show()})),e("#filter-show").on("click",(function(t){t.preventDefault(),e(this).hide(),e("#wpadpcbu-search-filter").show(),e("#filter-hide").show()})),e(".back-button").on("click",(function(e){e.preventDefault(),window.location.assign(wpadpcbu_public.builder)})),e(".filter-group .toggler").on("click",(function(t){t.preventDefault();var n=jQuery(this).data("group");e("#fgp-"+n).toggleClass("show")})),e("body").on("click",".wpadpcbu-actions .choose",(function(t){t.preventDefault();var n=jQuery(this).data("componentid"),o=jQuery(this).data("productid"),c="#component-product-"+o,i={action:"add_component_product",componentId:n,productId:o,_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:i,beforeSend:function(){r(c)},success:function(e){e.success?window.location.href=wpadpcbu_public.builder:console.debug(e),r(c,"hide")}})})),e("input[type='checkbox']").click((function(){clearTimeout(t);var e={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,taxFilters:o(),searchFilter:c(),sortByFilter:i(),priceStart:a(),priceEnd:u(),_nonce:wpadpcbu_public.nonce};t=setTimeout((function(){p(e)}),1e3)})),e("#input-sort").on("change",(function(n){n.preventDefault(),clearTimeout(t);var r=e(this).val(),i={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,taxFilters:o(),searchFilter:c(),sortByFilter:r,priceStart:a(),priceEnd:u(),_nonce:wpadpcbu_public.nonce};t=setTimeout((function(){p(i)}),1e3)})),e("#input-search").keyup((function(n){n.preventDefault(),clearTimeout(t);var r=e(this).val(),c={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,taxFilters:o(),searchFilter:r,sortByFilter:i(),priceStart:a(),priceEnd:u(),_nonce:wpadpcbu_public.nonce};t=setTimeout((function(){p(c)}),1e3)})),e(".pagination-button").on("click",(function(t){t.preventDefault();var n=jQuery(this).data("pagination"),r=e('input[name="current_page"]').val(),l=r;"next"==n&&(l=parseInt(r)+1),"prev"==n&&(l=parseInt(r)-1);var s={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,paged:l,taxFilters:o(),searchFilter:c(),sortByFilter:i(),priceStart:a(),priceEnd:u(),_nonce:wpadpcbu_public.nonce};p(s)}))})),jQuery(document).ready((function(e){var t,n=e(".wpadpcbu-price-range"),r=e(".wpadpcbu-price-start"),o=e(".wpadpcbu-price-end"),c=wpadpcbu_public.start_range,i=wpadpcbu_public.end_range,p=0,l=0;function d(e){p=e.from,l=e.to,r.prop("value",p),o.prop("value",l),s(p,l)}n.ionRangeSlider({skin:"round",type:"double",min:c,max:i,from:c,to:i,onStart:d,onChange:d}),t=n.data("ionRangeSlider"),r.on("input",(function(){var n=e(this).prop("value");n<c?n=c:n>l&&(n=l),t.update({from:n}),""!=n&&s(n,u())})),o.on("input",(function(){var n=e(this).prop("value");n<p?n=p:n>i&&(n=i),t.update({to:n}),""!=n&&s(a(),n)}))}))})()})();
     1(()=>{var e={306:function(e){!function(t){"use strict";var n=function(){return{escape:function(e){return e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",o="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:o,jpeg:o,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,o},dataAsUrl:function(e,t){return"data:"+t+";base64,"+e},isDataUrl:function(e){return-1!==e.search(/^(data:)/)},canvasToBlob:function(e){return e.toBlob?new Promise((function(t){e.toBlob(t)})):function(e){return new Promise((function(t){for(var n=window.atob(e.toDataURL().split(",")[1]),r=n.length,o=new Uint8Array(r),c=0;c<r;c++)o[c]=n.charCodeAt(c);t(new Blob([o],{type:"image/png"}))}))}(e)},resolveUrl:function(e,t){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var o=n.createElement("a");return n.body.appendChild(o),r.href=t,o.href=e,o.href},getAndEncode:function(e){var t=3e4;a.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,o=new XMLHttpRequest;if(o.onreadystatechange=i,o.ontimeout=u,o.responseType="blob",o.timeout=t,o.open("GET",e,!0),o.send(),a.impl.options.imagePlaceholder){var c=a.impl.options.imagePlaceholder.split(/,/);c&&c[1]&&(r=c[1])}function i(){if(4===o.readyState)if(200===o.status){var t=new FileReader;t.onloadend=function(){var e=t.result.split(/,/)[1];n(e)},t.readAsDataURL(o.response)}else r?n(r):p("cannot fetch resource: "+e+", status: "+o.status)}function u(){r?n(r):p("timeout of "+t+"ms occured while fetching resource: "+e)}function p(e){console.error(e),n("")}}))},uid:(e=0,function(){return"u"+t()+e++;function t(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}),delay:function(e){return function(t){return new Promise((function(n){setTimeout((function(){n(t)}),e)}))}},asArray:function(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t},escapeXhtml:function(e){return e.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src=e}))},width:function(e){var t=n(e,"border-left-width"),r=n(e,"border-right-width");return e.scrollWidth+t+r},height:function(e){var t=n(e,"border-top-width"),r=n(e,"border-bottom-width");return e.scrollHeight+t+r}};var e;function t(e){var t=/\.([^\.\/]*?)$/g.exec(e);return t?t[1]:""}function n(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}}(),r=function(){var e=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(e,n,c){return i()?Promise.resolve(e):Promise.resolve(e).then(r).then((function(t){var r=Promise.resolve(e);return t.forEach((function(e){r=r.then((function(t){return o(t,e,n,c)}))})),r}));function i(){return!t(e)}},shouldProcess:t,impl:{readUrls:r,inline:o}};function t(t){return-1!==t.search(e)}function r(t){for(var r,o=[];null!==(r=e.exec(t));)o.push(r[1]);return o.filter((function(e){return!n.isDataUrl(e)}))}function o(e,t,r,o){return Promise.resolve(t).then((function(e){return r?n.resolveUrl(e,r):e})).then(o||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t))})).then((function(r){return e.replace(function(e){return new RegExp("(url\\(['\"]?)("+n.escape(e)+")(['\"]?\\))","g")}(t),"$1"+r+"$3")}))}}(),o=function(){return{resolveAll:function(){return e(document).then((function(e){return Promise.all(e.map((function(e){return e.resolve()})))})).then((function(e){return e.join("\n")}))},impl:{readAll:e}};function e(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(e){var t=[];return e.forEach((function(e){try{n.asArray(e.cssRules||[]).forEach(t.push.bind(t))}catch(t){console.log("Error while reading CSS rules from "+e.href,t.toString())}})),t})).then((function(e){return e.filter((function(e){return e.type===CSSRule.FONT_FACE_RULE})).filter((function(e){return r.shouldProcess(e.style.getPropertyValue("src"))}))})).then((function(t){return t.map(e)}));function e(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return r.inlineAll(e.cssText,t)},src:function(){return e.style.getPropertyValue("src")}}}}}(),c=function(){return{inlineAll:function t(o){return o instanceof Element?c(o).then((function(){return o instanceof HTMLImageElement?e(o).inline():Promise.all(n.asArray(o.childNodes).map((function(e){return t(e)})))})):Promise.resolve(o);function c(e){var t=e.style.getPropertyValue("background");return t?r.inlineAll(t).then((function(t){e.style.setProperty("background",t,e.style.getPropertyPriority("background"))})).then((function(){return e})):Promise.resolve(e)}},impl:{newImage:e}};function e(e){return{inline:function(t){return n.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(t||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e.src))})).then((function(t){return new Promise((function(n,r){e.onload=n,e.onerror=r,e.src=t}))}))}}}}(),i={imagePlaceholder:void 0,cacheBust:!1},a={toSvg:u,toPng:function(e,t){return p(e,t||{}).then((function(e){return e.toDataURL()}))},toJpeg:function(e,t){return p(e,t=t||{}).then((function(e){return e.toDataURL("image/jpeg",t.quality||1)}))},toBlob:function(e,t){return p(e,t||{}).then(n.canvasToBlob)},toPixelData:function(e,t){return p(e,t||{}).then((function(t){return t.getContext("2d").getImageData(0,0,n.width(e),n.height(e)).data}))},impl:{fontFaces:o,images:c,util:n,inliner:r,options:{}}};function u(e,t){return function(e){void 0===e.imagePlaceholder?a.impl.options.imagePlaceholder=i.imagePlaceholder:a.impl.options.imagePlaceholder=e.imagePlaceholder;void 0===e.cacheBust?a.impl.options.cacheBust=i.cacheBust:a.impl.options.cacheBust=e.cacheBust}(t=t||{}),Promise.resolve(e).then((function(e){return l(e,t.filter,!0)})).then(s).then(d).then((function(e){t.bgcolor&&(e.style.backgroundColor=t.bgcolor);t.width&&(e.style.width=t.width+"px");t.height&&(e.style.height=t.height+"px");t.style&&Object.keys(t.style).forEach((function(n){e.style[n]=t.style[n]}));return e})).then((function(r){return function(e,t,r){return Promise.resolve(e).then((function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)})).then(n.escapeXhtml).then((function(e){return'<foreignObject x="0" y="0" width="100%" height="100%">'+e+"</foreignObject>"})).then((function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+r+'">'+e+"</svg>"})).then((function(e){return"data:image/svg+xml;charset=utf-8,"+e}))}(r,t.width||n.width(e),t.height||n.height(e))}))}function p(e,t){return u(e,t).then(n.makeImage).then(n.delay(100)).then((function(r){var o=function(e){var r=document.createElement("canvas");if(r.width=t.width||n.width(e),r.height=t.height||n.height(e),t.bgcolor){var o=r.getContext("2d");o.fillStyle=t.bgcolor,o.fillRect(0,0,r.width,r.height)}return r}(e);return o.getContext("2d").drawImage(r,0,0),o}))}function l(e,t,r){return r||!t||t(e)?Promise.resolve(e).then((function(e){return e instanceof HTMLCanvasElement?n.makeImage(e.toDataURL()):e.cloneNode(!1)})).then((function(r){return function(e,t,r){var o=e.childNodes;return 0===o.length?Promise.resolve(t):c(t,n.asArray(o),r).then((function(){return t}));function c(e,t,n){var r=Promise.resolve();return t.forEach((function(t){r=r.then((function(){return l(t,n)})).then((function(t){t&&e.appendChild(t)}))})),r}}(e,r,t)})).then((function(t){return function(e,t){return t instanceof Element?Promise.resolve().then(r).then(o).then(c).then(i).then((function(){return t})):t;function r(){function r(e,t){function r(e,t){n.asArray(e).forEach((function(n){t.setProperty(n,e.getPropertyValue(n),e.getPropertyPriority(n))}))}e.cssText?t.cssText=e.cssText:r(e,t)}r(window.getComputedStyle(e),t.style)}function o(){function r(r){var o=window.getComputedStyle(e,r),c=o.getPropertyValue("content");if(""!==c&&"none"!==c){var i=n.uid();t.className=t.className+" "+i;var a=document.createElement("style");a.appendChild(u(i,r,o)),t.appendChild(a)}function u(e,t,r){var o="."+e+":"+t,c=r.cssText?i(r):a(r);return document.createTextNode(o+"{"+c+"}");function i(e){var t=e.getPropertyValue("content");return e.cssText+" content: "+t+";"}function a(e){return n.asArray(e).map(t).join("; ")+";";function t(t){return t+": "+e.getPropertyValue(t)+(e.getPropertyPriority(t)?" !important":"")}}}}[":before",":after"].forEach((function(e){r(e)}))}function c(){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}function i(){t instanceof SVGElement&&(t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t instanceof SVGRectElement&&["width","height"].forEach((function(e){var n=t.getAttribute(e);n&&t.style.setProperty(e,n)})))}}(e,t)})):Promise.resolve()}function s(e){return o.resolveAll().then((function(t){var n=document.createElement("style");return e.appendChild(n),n.appendChild(document.createTextNode(t)),e}))}function d(e){return c.inlineAll(e).then((function(){return e}))}e.exports=a}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var c=t[r]={exports:{}};return e[r].call(c.exports,c,c.exports,n),c.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e,t,r,o,c,i,a,u,p,l,s,d=n(306),f=n.n(d);e=jQuery,r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";"hide"==n?e(t).waitMe("hide"):e(t).waitMe({effect:"ios"})},o=function(){var t=[];return e.each(e(".wpadpcbu-filter-panel input[type='checkbox']:checked"),(function(){t.push({tax:e(this).data("tax"),val:e(this).val()})})),t},c=function(){return e("#input-search").val()},i=function(){return e("#input-sort option:selected").val()},a=function(){return e("input.wpadpcbu-price-start").val()},u=function(){return e("input.wpadpcbu-price-end").val()},p=function(t){var n=".wpadpcbu-component-products";e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:t,beforeSend:function(){r(n)},success:function(t){if(t.success){var o=t.data;e("#wpadpcbu-products-row").html(o.markup),l(o)}else"pcbucomp"==t.data.type&&(window.location.href=wpadpcbu_public.builder);r(n,"hide")}})},l=function(t){var n=t.total_items,r=t.total_pages,o=t.current_page,c=t.per_page;e(".pagination-button").hide(),r>o&&e("#next-btn").show(),o>1&&o<=r&&e("#previous-btn").show(),1==r&&e(".wpadpcbu-pagination").addClass("no-pagination"),e("span.total-products").text(n),e("span.total-pages").text(r),e("span.current-page").text(o),e('input[name="total_items"]').val(n),e('input[name="total_pages"]').val(r),e('input[name="per_page"]').val(c),e('input[name="current_page"]').val(o)},s=function(e,n){clearTimeout(t);var r={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,taxFilters:o(),searchFilter:c(),sortByFilter:i(),priceStart:e,priceEnd:n,_nonce:wpadpcbu_public.nonce};t=setTimeout((function(){p(r)}),1e3)},jQuery(document).ready((function(e){e(".wpadpcbu-search-product").on("click",(function(e){e.preventDefault();var t=jQuery(this).data("componentid");window.location.assign(wpadpcbu_public.search+"?pcbucomp="+t)})),e(".wpadpcbu-remove-product").on("click",(function(t){t.preventDefault();var n=e(this).data("componentid"),o="#componentid-"+n,c={action:"remove_component_product",componentId:n,_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:c,beforeSend:function(){r(o)},success:function(e){e.success?location.reload():console.debug(e),r(o,"hide")}})})),e(".wpadpcbu-product-cart").on("click",(function(t){t.preventDefault();var n=".wpadpcbu-component-table table",o={action:"add_components_product_to_cart",_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:o,beforeSend:function(){r(n)},success:function(t){if(t.success)e(document.body).trigger("wc_fragment_refresh"),t.data.redirect&&window.location.assign(t.data.url);else{var o=t.data;"missing-component"==o.type&&o.missing.forEach((function(t){e("#componentid-"+t+" .required-span").addClass("missing")})),alert(t.data.message)}r(n,"hide")}})})),e(".wpadpcbu-save").on("click",(function(t){t.preventDefault();var n=".wpadpcbu-component-table table",o={action:"pcbuilder_configuration_save",_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:o,beforeSend:function(){r(n)},success:function(t){if(t.success)window.location.assign(t.data.url);else{var o=t.data;"missing-component"==o.type&&o.missing.forEach((function(t){e("#componentid-"+t+" .required-span").addClass("missing")})),alert(o.message)}r(n,"hide")}})})),e(".wpadpcbu-remove-savedpc").on("click",(function(t){t.preventDefault();var n={action:"remove_savedpc",pcId:e(this).data("id"),_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:n,beforeSend:function(){r(".my_account_savedpcs")},success:function(e){e.success?location.reload():console.debug(e),r(".my_account_savedpcs","hide")}})})),e(".wpadpcbu-screenshots").on("click",(function(e){e.preventDefault();var t=document.getElementById("wpadpcbu-component"),n=new Date,r="Pc Configuration "+n.toDateString()+" "+n.toLocaleTimeString();f().toJpeg(t).then((function(e){var t=document.createElement("a");t.download=r+".jpeg",t.href=e,t.click()}))}))})),jQuery(document).ready((function(e){e(".bclink").on("click",(function(e){e.preventDefault();var t=jQuery(this).data("page");"builder"==t&&window.location.assign(wpadpcbu_public.builder),"search"==t&&location.reload()})),e("#filter-hide").on("click",(function(t){t.preventDefault(),e(this).hide(),e("#wpadpcbu-search-filter").hide(),e("#filter-show").show()})),e("#filter-show").on("click",(function(t){t.preventDefault(),e(this).hide(),e("#wpadpcbu-search-filter").show(),e("#filter-hide").show()})),e(".back-button").on("click",(function(e){e.preventDefault(),window.location.assign(wpadpcbu_public.builder)})),e(".filter-group .toggler").on("click",(function(t){t.preventDefault();var n=jQuery(this).data("group");e("#fgp-"+n).toggleClass("show")})),e("body").on("click",".wpadpcbu-actions .choose",(function(t){t.preventDefault();var n=jQuery(this).data("componentid"),o=jQuery(this).data("productid"),c="#component-product-"+o,i={action:"add_component_product",componentId:n,productId:o,_nonce:wpadpcbu_public.nonce};e.ajax(wpadpcbu_public.ajaxurl,{method:"post",data:i,beforeSend:function(){r(c)},success:function(e){e.success?window.location.href=wpadpcbu_public.builder:console.debug(e),r(c,"hide")}})})),e("input[type='checkbox']").click((function(){clearTimeout(t);var e={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,taxFilters:o(),searchFilter:c(),sortByFilter:i(),priceStart:a(),priceEnd:u(),_nonce:wpadpcbu_public.nonce};t=setTimeout((function(){p(e)}),1e3)})),e("#input-sort").on("change",(function(n){n.preventDefault(),clearTimeout(t);var r=e(this).val(),i={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,taxFilters:o(),searchFilter:c(),sortByFilter:r,priceStart:a(),priceEnd:u(),_nonce:wpadpcbu_public.nonce};t=setTimeout((function(){p(i)}),1e3)})),e("#input-search").keyup((function(n){n.preventDefault(),clearTimeout(t);var r=e(this).val(),c={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,taxFilters:o(),searchFilter:r,sortByFilter:i(),priceStart:a(),priceEnd:u(),_nonce:wpadpcbu_public.nonce};t=setTimeout((function(){p(c)}),1e3)})),e(".pagination-button").on("click",(function(t){t.preventDefault();var n=jQuery(this).data("pagination"),r=e('input[name="current_page"]').val(),l=r;"next"==n&&(l=parseInt(r)+1),"prev"==n&&(l=parseInt(r)-1);var s={action:"filter_component_product",pcbucomp:wpadpcbu_public.pcbucomp,paged:l,taxFilters:o(),searchFilter:c(),sortByFilter:i(),priceStart:a(),priceEnd:u(),_nonce:wpadpcbu_public.nonce};p(s)}))})),jQuery(document).ready((function(e){var t,n=e(".wpadpcbu-price-range"),r=e(".wpadpcbu-price-start"),o=e(".wpadpcbu-price-end"),c=wpadpcbu_public.start_range,i=wpadpcbu_public.end_range,p=0,l=0;function d(e){p=e.from,l=e.to,r.prop("value",p),o.prop("value",l),s(p,l)}n.ionRangeSlider({skin:"round",type:"double",min:c,max:i,from:c,to:i,onStart:d,onChange:d}),t=n.data("ionRangeSlider"),r.on("input",(function(){var n=e(this).prop("value");n<c?n=c:n>l&&(n=l),t.update({from:n}),""!=n&&s(n,u())})),o.on("input",(function(){var n=e(this).prop("value");n<p?n=p:n>i&&(n=i),t.update({to:n}),""!=n&&s(a(),n)}))}))})()})();
  • wpappsdev-pcbuilder/trunk/includes/Admin/Settings.php

    r2736642 r2777405  
    156156                        'type'  => 'checkbox',
    157157                    ],
     158                    [
     159                        'name'  => 'wpadpcbu_redirect_checkout_disable',
     160                        'label' => __( 'Redirect Checkout', 'wpappsdev-pcbuilder' ),
     161                        'desc'  => __( 'Enable redirect to checkout page after product added to cart.', 'wpappsdev-pcbuilder' ),
     162                        'type'  => 'checkbox',
     163                    ],
    158164                    // [
    159165                    //  'name'    => 'wpadpcbu_builder_disable_table_column',
  • wpappsdev-pcbuilder/trunk/includes/Ajax.php

    r2736642 r2777405  
    272272        }
    273273
     274        if ( wpadpcbu_process()->builder->redirect_checkout_enable() ) {
     275            $redirect = true;
     276        } else {
     277            $redirect = false;
     278        }
     279
    274280        wp_send_json_success(
    275281            [
    276                 'url' => wc_get_checkout_url(),
     282                'url'      => wc_get_checkout_url(),
     283                'redirect' => $redirect,
    277284            ]
    278285        );
     
    306313        // Get pc builder data from session.
    307314        $pcbu_data = WC()->session->get( 'wpadpcbu_pc_builder_data', [] );
    308         $items = $pcbu_data['items'] ?? [];
     315        $items     = $pcbu_data['items'] ?? [];
    309316
    310317        if ( empty( $items ) ) {
  • wpappsdev-pcbuilder/trunk/includes/Helper/BuilderManager.php

    r2736642 r2777405  
    6262
    6363    /**
     64     * Redirect checkout page enable/disable.
     65     *
     66     * @return bool
     67     */
     68    public function redirect_checkout_enable() {
     69        $option = wpadpcbu_get_option( 'wpadpcbu_redirect_checkout_disable', 'builder_page_settings', 'off' );
     70
     71        if ( 'on' === $option ) {
     72            return true;
     73        }
     74
     75        return false;
     76    }
     77
     78    /**
    6479     * Builder page actions list.
    6580     *
  • wpappsdev-pcbuilder/trunk/includes/functions-helper.php

    r2736642 r2777405  
    569569        'orderby'    => 'meta_value_num',
    570570        'order'      => 'ASC',
     571        'hide_empty' => false,
    571572        'meta_query' => [
    572             'relation' => 'AND',
    573573            [
    574574                'key'     => 'wpadpcbu_component_serial',
     
    579579            [
    580580                'key' => 'wpadpcbu_required_component',
    581                 // 'type'    => 'NUMERIC',
    582581                'compare' => '=',
    583582                'value'   => 'yes',
     
    586585    ];
    587586
    588     $components = get_tax_terms_list( 'pcbucomp', $args );
     587    $components = get_terms( $args );
    589588
    590589    foreach ( $components as $component ) {
    591         $component_list[] = (int) $component['term_id'];
     590        $component_list[] = (int) $component->term_id;
    592591    }
    593592
  • wpappsdev-pcbuilder/trunk/languages/wpappsdev-pcbuilder.pot

    r2736642 r2777405  
    1313"com>\n"
    1414"POT-Creation-Date: "
    15 "2022-06-03 01:43+0600\n"
     15"2022-08-30 02:07+0600\n"
    1616"PO-Revision-Date: \n"
    1717"Last-Translator: Your "
     
    133133
    134134#: includes/Admin/Settings.php:134
    135 #: includes/Admin/Settings.php:181
     135#: includes/Admin/Settings.php:187
    136136msgid "Disable Breadcrumb"
    137137msgstr ""
     
    161161
    162162#: includes/Admin/Settings.php:147
    163 #: includes/Admin/Settings.php:187
     163#: includes/Admin/Settings.php:193
    164164msgid "Breadcrumb Title"
    165165msgstr ""
     
    188188msgstr ""
    189189
    190 #: includes/Admin/Settings.php:175
     190#: includes/Admin/Settings.php:160
     191msgid "Redirect Checkout"
     192msgstr ""
     193
     194#: includes/Admin/Settings.php:161
     195msgid ""
     196"Enable redirect to "
     197"checkout page after "
     198"product added to cart."
     199msgstr ""
     200
     201#: includes/Admin/Settings.php:181
    191202msgid "Per Page"
    192203msgstr ""
    193204
    194 #: includes/Admin/Settings.php:182
     205#: includes/Admin/Settings.php:188
    195206msgid ""
    196207"Disable search page "
     
    198209msgstr ""
    199210
    200 #: includes/Admin/Settings.php:188
     211#: includes/Admin/Settings.php:194
    201212msgid ""
    202213"Input breadcrumb section "
     
    205216msgstr ""
    206217
    207 #: includes/Admin/Settings.php:190
     218#: includes/Admin/Settings.php:196
    208219#: includes/Helper/SearchManager.php:36
    209220msgid ""
     
    213224msgstr ""
    214225
    215 #: includes/Admin/Settings.php:194
     226#: includes/Admin/Settings.php:200
    216227msgid "Disable Top Filter"
    217228msgstr ""
    218229
    219 #: includes/Admin/Settings.php:195
     230#: includes/Admin/Settings.php:201
    220231msgid ""
    221232"Disable search page top "
     
    223234msgstr ""
    224235
    225 #: includes/Admin/Settings.php:200
     236#: includes/Admin/Settings.php:206
    226237msgid "Price range start"
    227238msgstr ""
    228239
    229 #: includes/Admin/Settings.php:206
     240#: includes/Admin/Settings.php:212
    230241msgid "Price range end"
    231242msgstr ""
    232243
    233 #: includes/Admin/Settings.php:226
     244#: includes/Admin/Settings.php:232
    234245msgid "Select Page"
    235246msgstr ""
    236247
    237 #: includes/Ajax.php:55
    238 #: includes/Ajax.php:494
     248#: includes/Ajax.php:56
     249#: includes/Ajax.php:524
    239250msgid "Are you cheating?"
    240251msgstr ""
    241252
    242 #: includes/Ajax.php:71
     253#: includes/Ajax.php:74
    243254msgid ""
    244255"Please select valid PC "
     
    246257msgstr ""
    247258
    248 #: includes/Ajax.php:90
    249 #: includes/Ajax.php:112
     259#: includes/Ajax.php:94
     260#: includes/Ajax.php:118
    250261#: wpappsdev-pcbuilder.php:245
    251262msgid "Configure"
    252263msgstr ""
    253264
    254 #: includes/Ajax.php:94
     265#: includes/Ajax.php:99
    255266msgid ""
    256267"Please assign component "
     
    258269msgstr ""
    259270
    260 #: includes/Ajax.php:116
     271#: includes/Ajax.php:123
    261272msgid ""
    262273"No filter found for this "
     
    266277msgstr ""
    267278
    268 #: includes/Ajax.php:248
     279#: includes/Ajax.php:256
    269280msgid ""
    270281"Please select components "
     
    272283msgstr ""
    273284
    274 #: includes/Ajax.php:291
     285#: includes/Ajax.php:307
    275286msgid ""
    276287"You can not save pc "
     
    279290msgstr ""
    280291
    281 #: includes/Ajax.php:304
     292#: includes/Ajax.php:321
    282293msgid ""
    283294"You can not save empty "
     
    285296msgstr ""
    286297
    287 #: includes/Ajax.php:333
     298#: includes/Ajax.php:350
    288299msgid ""
    289300"Something wrong when "
     
    291302msgstr ""
    292303
    293 #: includes/Ajax.php:361
    294 #: includes/Ajax.php:408
     304#: includes/Ajax.php:378
     305#: includes/Ajax.php:432
    295306msgid "Invalid nonce."
    296307msgstr ""
    297308
    298 #: includes/Ajax.php:373
     309#: includes/Ajax.php:391
    299310msgid ""
    300311"Saved pc configuration "
     
    302313msgstr ""
    303314
    304 #: includes/Ajax.php:385
     315#: includes/Ajax.php:406
    305316msgid ""
    306317"Something wrong when "
     
    309320msgstr ""
    310321
    311 #: includes/Ajax.php:418
     322#: includes/Ajax.php:444
    312323msgid "Invalid action."
    313324msgstr ""
    314325
    315 #: includes/Ajax.php:428
     326#: includes/Ajax.php:456
    316327msgid ""
    317328"Invalid component id."
    318329msgstr ""
    319330
    320 #: includes/Ajax.php:504
     331#: includes/Ajax.php:535
    321332msgid ""
    322333"WC session get function "
     
    324335msgstr ""
    325336
    326 #: includes/Ajax.php:528
     337#: includes/Ajax.php:559
    327338msgid ""
    328339"Please select required "
     
    431442
    432443#: includes/Frontend/CustomerDashboard.php:108
    433 #: includes/Helper/BuilderManager.php:98
     444#: includes/Helper/BuilderManager.php:113
    434445msgid "Image"
    435446msgstr ""
    436447
    437448#: includes/Frontend/CustomerDashboard.php:109
    438 #: includes/Helper/BuilderManager.php:100
     449#: includes/Helper/BuilderManager.php:115
    439450msgid "Price"
    440451msgstr ""
     
    444455msgstr ""
    445456
    446 #: includes/Helper/BuilderManager.php:71
     457#: includes/Helper/BuilderManager.php:86
    447458msgid "Add To Cart"
    448459msgstr ""
    449460
    450 #: includes/Helper/BuilderManager.php:76
     461#: includes/Helper/BuilderManager.php:91
    451462msgid ""
    452463"Saved PC Configuration"
    453464msgstr ""
    454465
    455 #: includes/Helper/BuilderManager.php:81
     466#: includes/Helper/BuilderManager.php:96
    456467msgid "Screenshots"
    457468msgstr ""
    458469
    459 #: includes/Helper/BuilderManager.php:97
     470#: includes/Helper/BuilderManager.php:112
    460471#: templates/dashboard/view-savedpc.php:33
    461472msgid "Component"
    462473msgstr ""
    463474
    464 #: includes/Helper/BuilderManager.php:99
     475#: includes/Helper/BuilderManager.php:114
    465476msgid "Product Name"
    466477msgstr ""
    467478
    468 #: includes/Helper/BuilderManager.php:101
     479#: includes/Helper/BuilderManager.php:116
    469480msgid "Action"
    470481msgstr ""
  • wpappsdev-pcbuilder/trunk/readme.txt

    r2736642 r2777405  
    77Requires at least: 5.0
    88Tested up to:      6.0
    9 Version:           1.1.0
    10 Stable tag:        1.1.0
     9Version:           1.2.0
     10Stable tag:        1.2.0
    1111License:           GPLv2 or later
    1212License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    9898== Changelog ==
    9999
     100= 1.2.0 =
     101* Fixed: Required components validation issue.
     102* Added: New settings for redirect checkout page.
     103* Updated: Localization POT file.
     104
    100105= 1.1.0 =
    101106* Added: Required component functionality.
  • wpappsdev-pcbuilder/trunk/wpappsdev-pcbuilder.php

    r2736642 r2777405  
    33 * Plugin Name:       WPAppsDev - WooCommerce PcBuilder Toolkit
    44 * Description:       Complete PC Components Selling Solution Toolkit for WooCommerce.
    5  * Version:           1.1.0
     5 * Version:           1.2.0
    66 * Author:            Saiful Islam Ananda
    77 * Author URI:        http://saifulananda.me/
     
    99 * Text Domain:       wpappsdev-pcbuilder
    1010 * Domain Path:       /languages
    11  * WC tested up to:   6.5
     11 * WC tested up to:   6.8.2
    1212 */
    1313
Note: See TracChangeset for help on using the changeset viewer.