Plugin Directory

Changeset 3390175


Ignore:
Timestamp:
11/05/2025 06:52:48 AM (3 months ago)
Author:
storeapps
Message:

Preparing for 8.74.0 release

Location:
smart-manager-for-wp-e-commerce/trunk
Files:
2 added
14 edited

Legend:

Unmodified
Added
Removed
  • smart-manager-for-wp-e-commerce/trunk/assets/js/admin.js

    r3385169 r3390175  
    1 !function(e){function t(t){for(var a,i,s=t[0],l=t[1],c=t[2],m=0,d=[];m<s.length;m++)i=s[m],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&d.push(n[i][0]),n[i]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(u&&u(t);d.length;)d.shift()();return o.push.apply(o,c||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],a=!0,s=1;s<r.length;s++){var l=r[s];0!==n[l]&&(a=!1)}a&&(o.splice(t--,1),e=i(i.s=r[0]))}return e}var a={},n={0:0},o=[];function i(t){if(a[t])return a[t].exports;var r=a[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=a,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(r,a,function(t){return e[t]}.bind(null,a));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;o.push([1,1]),r()}([,function(e,t,r){"use strict";r.r(t);r(0);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,l(a.key),a)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{var r=t.ruleGroups||[];e.data.ruleGroups=r.map((function(t){return t.key=e.generateKey(),t.rules=t.rules.map((function(t){return t.key=e.generateKey(),t})),t})),e.data.fields=t.fields||{},e.data.possibleOperators=t.possibleOperators||{}}catch(e){SaErrorHandler.log("In DashboardModel constructor:: ",e)}}return t=e,a=[{key:"data",get:function(){return e._data},set:function(t){e._data=t}},{key:"flags",get:function(){return e._flags.isPrivilegeSettings="/privilegeSettings"==m.route.get()?1:0,e._flags},set:function(t){e._flags=t}},{key:"generateKey",value:function(){try{return Math.random().toString(36).substr(7)}catch(e){SaErrorHandler.log("In DashboardModel generateKey:: ",e)}}},{key:"add",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;try{var r=o({},e.data.default.rule)||{};if(r.key=e.generateKey(),t>=0){var a=e.data.ruleGroups[t]||[];a&&a.rules.push(r)}else{var n=o({},e.data.default.ruleGroup)||{};n.rules=[r],n.key=e.generateKey(),e.data.ruleGroups.push(n)}}catch(e){SaErrorHandler.log("In DashboardModel add:: ",e)}}},{key:"delete",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;try{if(r>=0){var a=e.data.ruleGroups[t]||[],n=a.rules||[];n.splice(r,1)}else e.data.ruleGroups.splice(t,1)}catch(e){SaErrorHandler.log("In DashboardModel delete:: ",e)}}},{key:"loadData",value:function(e,t,r){try{window[pluginKey].commonManagerAjaxUrl||(window[pluginKey].commonManagerAjaxUrl=-1!==ajaxurl.indexOf("?")?ajaxurl+"&action=sa_manager_include_file":ajaxurl+"?action=sa_manager_include_file"),m.request({method:"POST",url:window[pluginKey].commonManagerAjaxUrl,body:e,responseType:"json"}).then((function(e){void 0!==r?t(r,e):t(e)}))}catch(e){SaErrorHandler.log("In DashboardModel generateKey:: ",e)}}},{key:"accessPrivilegeSettings",value:function(e,t,r){this.loadData(e,t,r)}}],(r=null)&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}(),u={type:"",operator:"",value:""};function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function v(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,x(a.key),a)}}function x(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=d(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}c.data={ruleGroups:{},default:{ruleGroup:{condition:"AND",rules:[u]},rule:u},fields:{},possibleOperators:{}},c.flags={};var _=function(){return function(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize(t)}catch(e){SaErrorHandler.log("In Rule constructor:: ",e)}}),[{key:"initialize",value:function(e){try{var t;this.ruleGroupId=e.attrs.ruleGroupId,this.ruleId=e.attrs.id,this.key=e.attrs.key,this.isOnlyChild=e.attrs.isOnlyChild||0,this.showAddRule=e.attrs.showAddRule||0,this.extraDateOperators=["increase_date_by","decrease_date_by"],this.multiValueOperators=["anyOf","notAnyOf"],this.dateDurations={days:_x("days","bulk edit action - date duration","smart-manager-for-wp-e-commerce"),weeks:_x("weeks","bulk edit action - date duration","smart-manager-for-wp-e-commerce"),months:_x("months","bulk edit action - date duration","smart-manager-for-wp-e-commerce"),years:_x("years","bulk edit action - date duration","smart-manager-for-wp-e-commerce")},this.timeDurations={hours:_x("hours","bulk edit action - time duration","smart-manager-for-wp-e-commerce"),minutes:_x("minutes","bulk edit action - time duration","smart-manager-for-wp-e-commerce")},this.additionalValues=[],this.multiListOperators=["add_to","remove_from"],this.setCurrentRule(),this.refreshValues(),this.lineItemOperators=Object.keys((null===(t=window)||void 0===t||null===(t=t[pluginKey])||void 0===t||null===(t=t[window[pluginKey].pluginSlug])||void 0===t||null===(t=t.columnNamesBatchUpdate)||void 0===t||null===(t=t["custom/line_items"])||void 0===t?void 0:t.actions)||{})||[]}catch(e){SaErrorHandler.log("In Rule initialize:: ",e)}}},{key:"oncreate",value:function(){try{this.intializeSelectwoo(),this.initializeCurrentValueField()}catch(e){SaErrorHandler.log("In Rule oncreate:: ",e)}}},{key:"onupdate",value:function(){try{this.intializeSelectwoo(),this.initializeCurrentValueField()}catch(e){SaErrorHandler.log("In Rule onupdate:: ",e)}}},{key:"initializeCurrentValueField",value:function(){try{var e=jQuery("input[rule-id="+this.ruleId+"]").data("Zebra_DatePicker");if(e&&(e.destroy(),jQuery("input[rule-id="+this.ruleId+"]").removeAttr("readonly").attr("placeholder",this.valuePlaceholder)),"datetime"==this.fieldType||"date"==this.fieldType||this.fieldType==window[pluginKey].pluginSlug+".datetime"||"time"==this.fieldType||this.fieldType==window[pluginKey].pluginSlug+".time")if(1==this.extraDateOperators.includes(this.op))this.valuePlaceholder=_x("Enter value","placeholder","smart-manager-for-wp-e-commerce");else{var t=this,r="YYYY-MM-DD"+("set_datetime_to"==this.op||this.fieldType==window[pluginKey].pluginSlug+".datetime"||"datetime"==this.fieldType&&"set_date_to"!=this.op?" HH:MM:SS":"");r="set_time_to"==this.op?"HH:MM":r;var a="Y-m-d"+("set_datetime_to"==this.op||this.fieldType==window[pluginKey].pluginSlug+".datetime"||"datetime"==this.fieldType&&"set_date_to"!=this.op?" H:i:s":"");a="set_time_to"==this.op?"H:i":a,jQuery("input[rule-id="+this.ruleId+"]").Zebra_DatePicker({format:a,show_icon:!1,show_select_today:!1,default_position:"below",readonly_element:!1,onSelect:function(e,r){t.value=e,t.refreshRule()}}).attr("placeholder",r)}}catch(e){SaErrorHandler.log("In Rule initializeCurrentValueField:: ",e)}}},{key:"showWPMediaLib",value:function(){try{var e,t=this,r="multipleImage"===this.fieldType;if(e)return void e.open();(e=wp.media.frames.file_frame=wp.media({multiple:r})).on("select",(function(){var a=!0===r?e.state().get("selection").toJSON():e.state().get("selection").first().toJSON(),n=new Set;a&&(t.value=a.id||"",t.meta.attachmentURL=a.url||"",!0===r&&a.length>0&&(Object.values(a).forEach((function(e){n.add(e.id)})),t.value=h(n).join(",")),t.refreshRule(),m.redraw())})),e.open()}catch(e){SaErrorHandler.log("In Rule showWPMediaLib:: ",e)}}},{key:"setCurrentRule",value:function(){try{this.ruleGroup=c.data.ruleGroups[this.ruleGroupId]||[],this.rules=this.ruleGroup.rules||[],this.rule=this.rules[this.ruleId]||{},this.field=this.rule.type||"",this.op=this.rule.operator||"",this.value=this.rule.value||"",this.meta=f({},this.rule.meta)||{},""==this.field&&(this.field=Object.keys(c.data.fields)[0]||[])}catch(e){SaErrorHandler.log("In Rule setCurrentRule:: ",e)}}},{key:"refreshRule",value:function(e){try{var t=e||this;this.rules[t.ruleId]={type:t.field,operator:t.op,value:t.value,key:t.key,meta:t.meta}}catch(e){SaErrorHandler.log("In Rule refreshRule:: ",e)}}},{key:"refreshValues",value:function(){try{this.fieldObj=c.data.fields[this.field]||{},this.meta.displayTitles=this.meta.displayTitles?this.meta.displayTitles:{},this.fieldType=this.fieldObj.type||"text",this.field_src=this.fieldObj.src,this.possibleValues=this.fieldObj.values||[];var e=this.fieldType.indexOf(window[pluginKey].pluginSlug+".");if(e>=0&&(this.fieldType=this.fieldType.substr(e+3)),this.possibleOperators=f({},c.data.possibleOperators[this.fieldType])||{},this.fieldObj.custom_actions&&(this.possibleOperators=f(f({},Object.fromEntries(Object.entries(this.fieldObj.custom_actions).map((function(e){var t=p(e,2),r=t[0],a=t[1];return[r,"object"===d(a)?a.label:a]})))),this.possibleOperators)),this.possibleOperators=1===c.flags.isPrivilegeSettings?{has_access:"has access",no_access:"no access"}:this.possibleOperators,this.fieldObj.actions&&(this.possibleOperators=this.fieldObj.actions||{},this.possibleValues=[]),0===Object.keys(this.possibleOperators).length&&(this.fieldType=this.possibleValues.length>0?" ":"text",this.possibleOperators=c.data.possibleOperators[this.fieldType]||{}),""==this.op&&Object.keys(this.possibleOperators).length>0&&(this.op=Object.keys(this.possibleOperators)[0]||"",this.meta.displayTitles.operator||(this.meta.displayTitles.field=this.fieldObj.title||this.field),this.meta.displayTitles.operator=Object.values(this.possibleOperators)[0]||this.op,this.refreshRule()),this.fieldObj.actions&&""!=this.op&&(this.possibleValues=this.fieldObj.values[this.op]||[]),this.fieldObj.additionalValues&&(this.additionalValues=this.fieldObj.additionalValues,"remove_from"===this.op?delete this.additionalValues.custom:"add_to"!==this.op||this.additionalValues.hasOwnProperty("custom")||(this.additionalValues.custom="Custom"),this.currentOp=Object.keys(this.additionalValues)[0],this.possibleValues=this.fieldObj.values[this.currentOp]||[],this.meta.attributeName?this.meta.attributeName?this.possibleValues=this.fieldObj.values[this.meta.attributeName]||[]:"custom"===this.meta.attributeName&&(this.possibleValues=[]):this.meta.attributeName=this.currentOp),""==this.value&&this.possibleValues.length>0){var t=this.possibleValues[0]||{};this.value=t.key||"",this.refreshRule()}"datetime"!=this.fieldType&&this.fieldType!=window[pluginKey].pluginSlug+".datetime"||1!=this.extraDateOperators.includes(this.op)||(this.dateDurations=Object.assign(this.dateDurations,this.timeDurations)),"time"!=this.fieldType&&this.fieldType!=window[pluginKey].pluginSlug+".time"||1!=this.extraDateOperators.includes(this.op)||(this.dateDurations=this.timeDurations)}catch(e){SaErrorHandler.log("In Rule refreshValues:: ",e)}}},{key:"intializeSelectwoo",value:function(){try{var e=this,t="/bulkEdit"===m.route.get()&&window[pluginKey].hasOwnProperty("bulkEditFields")?window[pluginKey].bulkEditFields:"/advancedSearch"===m.route.get()&&window[pluginKey].hasOwnProperty("advancedSearchFields")?window[pluginKey].advancedSearchFields:[];jQuery("."+window[pluginKey].pluginSlug+"-advanced-search-select").each((function(r){try{var a=jQuery(this).attr("rule-id"),n="",o="";jQuery(".".concat(window[pluginKey].pluginSlug,"-advanced-search-select.select-op")).each((function(e){parseInt(jQuery(this).attr("rule-id"))===parseInt(a)&&(n=jQuery(this).val())})),jQuery(".".concat(window[pluginKey].pluginSlug,"-advanced-search-select.select-field")).each((function(e){parseInt(jQuery(this).attr("rule-id"))===parseInt(a)&&(o=jQuery(this).val())}));var i={width:"15em",dropdownCssClass:window[pluginKey].pluginSlug+"_advanced_search_select2_dropdown"};if(window[pluginKey].hasOwnProperty("select2RulesDropdownParent")&&(i.dropdownParent=jQuery(window[pluginKey].select2RulesDropdownParent)),jQuery(this).hasClass("select-field")&&(i.ajax={transport:function(e,r,a){var n,o=t.filter((function(t){return null==t?void 0:t.text.toLowerCase().includes((e.data.term||"").toLowerCase())})),i=20*(parseInt((null==e||null===(n=e.data)||void 0===n?void 0:n.page)||1)-1),s=i+20;r({results:o.slice(i,s),pagination:{more:s<o.length}})}}),jQuery(this).hasClass("select-value")&&([].concat(h(null==e?void 0:e.lineItemOperators),["copy_from"]).includes(n)||"remove_from"===e.op&&["custom_note_for_customer"].includes(e.field_src)||o&&o.includes("plan")&&"wc_user_membership"===window[pluginKey].dashboardKey)){var s="",l={cmd:"get_batch_update_copy_from_record_ids",active_module:window[pluginKey].dashboardKey,security:window[pluginKey].saCommonNonce,is_taxonomy:window[pluginKey].hasOwnProperty("taxonomyDashboards")&&window[pluginKey].taxonomyDashboards[window[pluginKey].dashboardKey]?1:0};switch("product"===window[pluginKey].dashboardKey&&(l.load_variations=!0),!0){case["copy_from","copy_coupon_from","copy_product_from"].includes(n):s=sprintf(_x("Select %s","placeholder","smart-manager-for-wp-e-commerce"),window[pluginKey].dashboardDisplayName);break;case["add_product","remove_product"].includes(n):l.active_module="product",l.load_variations=l.skip_variation_parent=!0,s=_x("Select Product","placeholder","smart-manager-for-wp-e-commerce"),l.load_published_only=!0;break;case["add_coupon","remove_coupon"].includes(n):l.active_module="shop_coupon",s=_x("Select Coupon","placeholder","smart-manager-for-wp-e-commerce"),l.load_published_only=!0;break;case"remove_from"===e.op:s=_x("Select Notes","placeholder","smart-manager-for-wp-e-commerce"),l.cmd="get_order_notes_for_customer";break;case o.includes("plan")&&"wc_user_membership"===window[pluginKey].dashboardKey:l.active_module="wc_membership_plan",s=_x("Select Plan","placeholder","smart-manager-for-wp-e-commerce")}i=Object.assign({placeholder:s,ajax:{url:window[pluginKey].commonManagerAjaxUrl,dataType:"json",delay:250,data:function(e){return l.search_term=e.term,l},processResults:function(e){var t=[];return e&&jQuery.each(e,(function(e,r){t.push({id:e,text:r})})),{results:t}},cache:!0}},i)}else if(jQuery(this).hasClass("restrict-by-roles")||jQuery(this).hasClass("restrict-by-users")){var u=jQuery(this).hasClass("restrict-by-roles")?"get_user_roles":"get_users";i=Object.assign({placeholder:jQuery(this).hasClass("restrict-by-roles")?_x("Search user roles","placeholder","smart-manager-for-wp-e-commerce"):_x("Search user","placeholder","smart-manager-for-wp-e-commerce"),ajax:{url:window[pluginKey].commonManagerAjaxUrl,dataType:"json",delay:250,data:function(e){return{term:e.term,cmd:u,active_module:"access-privilege",security:window[pluginKey].saCommonNonce,page:e.page||1,offset:e.offset||0,previous_roles:e.previous_roles||[]}},processResults:function(e,t){return e.hasOwnProperty("additional_params")&&(t.offset=e.additional_params.offset||0,t.previous_roles=e.additional_params.previous_roles||[]),t.page=t.page||1,{results:e.data.results||[],pagination:e.data.pagination||[]}},cache:!0}},i)}else jQuery(this).hasClass("dashboard-names")&&(i=Object.assign({placeholder:_x("Select Dashboards","placeholder","smart-manager-for-wp-e-commerce"),multiple:!0,ajax:{url:window[pluginKey].commonManagerAjaxUrl,dataType:"json",delay:250,data:function(e){return{term:e.term,cmd:"get_dashboards",active_module:"access-privilege",security:window[pluginKey].saCommonNonce,page:e.page||1}},processResults:function(e,t){return t.page=t.page||1,{results:e.data.results||[]}},cache:!0}},i));var g=jQuery(this).parent().find(".dashboard-names option");if(g&&g.length)for(var f=new Set,w=0;w<g.length;w++){var b=g[w];f.has(b.value)?b.remove():f.add(b.value)}if(jQuery(this).addClass(window[pluginKey].pluginSlug+"-select2").select2(i).off("change").on("change",(function(t){try{var r=t.target.value||"",a=t.target.options&&t.target.selectedIndex>0&&t.target.options.hasOwnProperty(t.target.selectedIndex)?t.target.options[t.target.selectedIndex].text:r;e.ruleGroupId=t.target.getAttribute("rule-group-id"),e.ruleId=t.target.getAttribute("rule-id"),jQuery(this).parent().find(".select-op, .select-value, .select-copy-from-field-value, .select-attrName").select2("destroy"),e.setCurrentRule(),jQuery(this).hasClass("select-field")||jQuery(this).hasClass("restrict-by-roles")||jQuery(this).hasClass("restrict-by-users")?(e.op="",e.value="",jQuery(this).hasClass("restrict-by-roles")?e.meta.hasOwnProperty("user_roles")||(e.meta.user_roles={}):jQuery(this).hasClass("restrict-by-users")&&(e.meta.hasOwnProperty("user_emails")||(e.meta.user_emails={})),e.meta.hasOwnProperty("displayTitles")||(e.meta.displayTitles={}),e.meta.displayTitles.field=a||"",e.field=r,e.fieldObj=c.data.fields[e.field]||{title:a,type:"text",values:{}},e.refreshRule(e),e.handleCustomActions(e)):jQuery(this).hasClass("select-op")?(0==window[pluginKey].sm_beta_pro&&window[pluginKey].proAdvancedSearchOperators&&window[pluginKey].proAdvancedSearchOperators.hasOwnProperty(r)&&void 0!==window[pluginKey].showNotification&&"function"==typeof window[pluginKey].showNotification?(e.value="",window[pluginKey].notification={message:sprintf(_x("This feature is available only in the %s version","modal content","smart-manager-for-wp-e-commerce"),'<a href="'+window[pluginKey].pricingPageURL+'" target="_blank">'+_x("Pro","modal content","smart-manager-for-wp-e-commerce")+"</a>"),hideDelay:window[pluginKey].notificationHideDelayInMs},window[pluginKey].showNotification()):(e.op=r,e.value="",e.meta.hideValue=!1,e.meta.displayTitles&&(e.meta.displayTitles.operator=e.meta.displayTitles.operator?a:""),e.fieldObj=c.data.fields[e.field]||{},e.handleCustomActions(e),e.meta.attributeName="",e.meta["attribute-values"]="",e.meta.replace_value=""),e.refreshRule()):jQuery(this).hasClass("select-value")||jQuery(this).hasClass("select-copy-from-field-value")?e.updateRuleValue(t):jQuery(this).hasClass("dashboard-names")?(jQuery(this).off("select2:select").on("select2:select",(function(t){var r=t.params.data.optgroup||"",a=t.params.data.id||"";"string"==typeof r&&r.trim().length>0&&"string"==typeof a&&a.trim().length>0&&(e.meta.hasOwnProperty("user_roles")&&!e.meta.user_roles[r]&&(e.meta.user_roles[r]={}),e.meta.hasOwnProperty("user_roles")&&!e.meta.user_roles[r].hasOwnProperty(t.params.data.id)&&(e.meta.user_roles[r]=Object.assign(y({},t.params.data.id,t.params.data.text),e.meta.user_roles[r]),e.value=e.meta.user_roles),e.meta.hasOwnProperty("user_emails")&&!e.meta.user_emails[r]&&(e.meta.user_emails[r]={}),e.meta.hasOwnProperty("user_emails")&&!e.meta.user_emails[r].hasOwnProperty(t.params.data.id)&&(e.meta.user_emails[r]=Object.assign(y({},t.params.data.id,t.params.data.text),e.meta.user_emails[r]),e.value=e.meta.user_emails),e.refreshRule())})),jQuery(this).off("select2:unselect").on("select2:unselect",(function(t){(e.meta.user_roles||e.meta.user_emails)&&(e.meta.user_roles&&Object.entries(e.meta.user_roles).forEach((function(e){var r=p(e,2),a=(r[0],r[1]);if("object"===d(a)&&null!==a)for(var n in a)a.hasOwnProperty(n)&&n===t.params.data.id&&delete a[n]})),e.meta.user_emails&&Object.entries(e.meta.user_emails).forEach((function(e){var r=p(e,2),a=(r[0],r[1]);if("object"===d(a)&&null!==a)for(var n in a)a.hasOwnProperty(n)&&n===t.params.data.id&&delete a[n]})))})),e.refreshRule()):jQuery(this).hasClass("select-attrName")&&(e.value="",e.updateRuleValue(t)),m.redraw()}catch(t){SaErrorHandler.log("In Rule on-change:: ",t)}})),e.field&&jQuery(this).hasClass("select-field")&&parseInt(e.ruleGroupId)===parseInt(jQuery(this).attr("rule-group-id"))&&parseInt(a)===parseInt(jQuery(this).attr("rule-id"))&&t.length){var v=t.find((function(t){return t.id===e.rules[a].type}));v&&jQuery(this).append(new Option(v.text,v.id,!0,!0))}}catch(r){SaErrorHandler.log("In Rule advanced-search-select jquery:: ",r)}}))}catch(e){SaErrorHandler.log("In Rule intializeSelectwoo:: ",e)}}},{key:"renderFieldSelect",value:function(){try{return m("[",null," ",1===c.flags.isPrivilegeSettings?m("[",null," ",m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:(0===this.ruleGroupId?"restrict-by-users":"restrict-by-roles")+" py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select "+"".concat(window[pluginKey].pluginSlug,"-advanced-search-select")},m("option",{value:this.field,selected:"selected"},this.meta.hasOwnProperty("displayTitles")&&this.meta.displayTitles.hasOwnProperty("field")?this.meta.displayTitles.field:this.field))," "):m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:"select-field py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select"),"data-placeholder":"Select"})," ")}catch(e){SaErrorHandler.log("In Rule renderFieldSelect:: ",e)}}},{key:"renderOperatorSelect",value:function(){var e=this;try{return m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select select-op")},Object.entries(this.possibleOperators).map((function(t){var r=p(t,2),a=r[0],n=r[1];return m("option",{value:a,selected:e.op===a?"selected":""},n||a)})))}catch(e){SaErrorHandler.log("In Rule renderOperatorSelect:: ",e)}}},{key:"updateRuleValue",value:function(e){try{var t=e.target.getAttribute("meta-key")||"";""!=t?this.meta[t]=e.target.value||"":this.value=e.target.value||"","custom"===this.meta[t]&&(this.value=""),this.ruleGroupId=e.target.getAttribute("rule-group-id"),this.ruleId=e.target.getAttribute("rule-id"),this.refreshRule()}catch(e){SaErrorHandler.log("In Rule updateRuleValue:: ",e)}}},{key:"renderValues",value:function(){var e=this;try{var t=!0===this.multiValueOperators.includes(this.op)?_x('Enter "|" separated values',"placeholder","smart-manager-for-wp-e-commerce"):_x("Enter value","placeholder","smart-manager-for-wp-e-commerce");if(this.valuePlaceholder=t,0==this.extraDateOperators.includes(this.op))switch(this.fieldType){case"date":this.valuePlaceholder="yyyy-mm-dd";break;case window[pluginKey].pluginSlug+".datetime":this.valuePlaceholder="yyyy-mm-dd hh:mm:ss";break;case window[pluginKey].pluginSlug+".time":this.valuePlaceholder="hh:mm";break;default:this.valuePlaceholder=t}var r="",a="";switch(""!=this.op){case"search_and_replace"===this.op:r="replace_value";break;case 1==this.extraDateOperators.includes(this.op):r="dateDuration",a=" flex items-center gap-2";break;case 1==this.multiListOperators.includes(this.op)&&"custom_product_attributes"===this.field_src:r="attributeName",a=" flex items-center gap-2";break;case 1===c.flags.isPrivilegeSettings:a=" dashboard-names";default:r="attribute_values"}var n="copy_from_field"===this.op?"select-copy-from-field-value":"select-value",o=["copy_from","copy_from_field"],i=["image","multipleImage"];return 1===c.flags.isPrivilegeSettings&&(this.possibleValues=this.meta.hasOwnProperty("user_roles")?this.meta.user_roles:this.meta.hasOwnProperty("user_emails")?this.meta.user_emails:this.possibleValues),m("div",{class:"flex-1 relative"+a},1===c.flags.isPrivilegeSettings?m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:"py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select dashboard-names"),name:"dashboards[]",multiple:"multiple"},Object.keys(this.possibleValues).length>0?Object.entries(this.possibleValues).map((function(e){var t=p(e,2),r=t[0],a=t[1];return"displayTitles"!==r?Object.entries(a).map((function(e){var t=p(e,2),r=t[0],a=t[1];return m("option",{value:r,selected:"selected"},a)})):""})):""):!(this.possibleValues.length>0||!0===o.includes(this.op)||this.field.includes("plan")&&"wc_user_membership"===window[pluginKey].dashboardKey||!0===this.lineItemOperators.includes(this.op)||"remove_from"===this.op&&["custom_note_for_customer"].includes(this.field_src))||!0===this.multiListOperators.includes(this.op)&&"custom_product_attributes"===this.field_src?function(){switch(""!=e.fieldType&&""!=e.op){case!0===i.includes(e.fieldType):return m("button",{type:"button",onclick:function(){e.showWPMediaLib()},class:"flex items-center justify-center p-1 text-xs leading-5 text-indigo-500 transition duration-150 ease-in-out border border-transparent rounded-md focus:outline-none"},e.meta.attachmentURL&&"multipleImage"!==e.fieldType?m("img",{src:e.meta.attachmentURL,class:"w-9 h-9"}):m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"}))));case 1==e.extraDateOperators.includes(e.op):return m("[",null,m("input",{type:"number",onkeydown:function(e){return"."===e.key?e.preventDefault():""},"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,placeholder:e.valuePlaceholder,class:"w-full max-w-full text-sm leading-5 text-gray-700 form-input",value:e.value,oninput:function(t){return e.updateRuleValue(t)}}),m("select",{"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,"meta-key":r,class:"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select select-value")},m("[",null," ",Object.entries(e.dateDurations).map((function(t){var a=p(t,2),n=a[0],o=a[1];return m("[",null,m("option",{value:n,selected:e.meta[r]===n?"selected":""},o||n))}))," ")));case"search_and_replace"===e.op||"custom"===e.meta[r]:return m("[",null,"custom"===e.meta[r]?m("select",{"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select select-attrName"),"meta-key":r},Object.entries(e.additionalValues).map((function(t){var a=p(t,2),n=a[0],o=a[1];return m("option",{value:n,selected:e.meta[r]===n?"selected":""},o||n)}))):"",m("input",{type:"text","rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"w-full max-w-full text-sm leading-5 text-gray-700 form-input",placeholder:"search_and_replace"===e.op?_x("Search for...","placeholder","smart-manager-for-wp-e-commerce"):_x("Enter attribute name...","placeholder","smart-manager-for-wp-e-commerce"),value:e.value,oninput:function(t){return e.updateRuleValue(t)}}),m("input",{type:"text","rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,"meta-key":"search_and_replace"===e.op?r:"attribute_values",class:"w-full max-w-full text-sm leading-5 text-gray-700 form-input",placeholder:"search_and_replace"===e.op?_x("Replace with...","placeholder","smart-manager-for-wp-e-commerce"):_x("Enter values...","placeholder","smart-manager-for-wp-e-commerce"),value:"search_and_replace"===e.op?e.meta.replace_value:e.meta.attribute_values,oninput:function(t){return e.updateRuleValue(t)}}));case!0===e.multiListOperators.includes(e.op)&&"custom_product_attributes"===e.field_src:return m("[",null,m("select",{"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select select-attrName"),"meta-key":r},Object.entries(e.additionalValues).map((function(t){var a=p(t,2),n=a[0],o=a[1];return m("option",{value:n,selected:e.meta[r]===n?"selected":""},o||n)}))),m("select",{"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select ").concat(n)},e.possibleValues.map((function(t){return m("option",{value:t.key,selected:e.value===t.key?"selected":""},t.value||t.key)}))));default:return m("input",{type:"numeric"==e.fieldType?"number":"text","rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"w-full max-w-full text-sm leading-5 text-gray-700 form-input",placeholder:e.valuePlaceholder,value:e.value,oninput:function(t){return e.updateRuleValue(t)}})}}():m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:"py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select ").concat(n)},!1===o.includes(this.op)?this.possibleValues.map((function(t){return m("option",{value:t.key,selected:e.value===t.key?"selected":""},t.value||t.key)})):"copy_from_field"===this.op?Object.entries(c.data.fields).map((function(t){var r=p(t,2),a=r[0],n=r[1];return m("option",{value:a,selected:e.value===a?"selected":""},n.title||a)})):""))}catch(e){SaErrorHandler.log("In Rule renderValues:: ",e)}}},{key:"addConditionRow",value:function(e){var t=this;try{var r=this.meta.hideValue||!1;return m("div",{class:"flex items-center gap-2 w-full mb-3"},this.renderFieldSelect(),this.renderOperatorSelect(),r?"":this.renderValues(),m("button",{type:"button",onclick:function(){return c.add(t.ruleGroupId)},class:(this.showAddRule?"":"invisible")+" flex items-center justify-center p-1 text-xs leading-5 text-gray-300 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-green-600 hover:border-green-600 focus:outline-none focus:shadow-outline-red focus:border-green-600"},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-add-condition","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})))),m("button",{type:"button",onclick:function(){return c.delete(t.ruleGroupId,t.ruleId)},class:(this.isOnlyChild?"invisible":"")+" flex items-center justify-center p-1 text-xs leading-5 text-gray-300 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-red-600 hover:border-red-600 focus:outline-none focus:shadow-outline-red focus:border-red-600"},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-remove-condition","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})))))}catch(e){SaErrorHandler.log("In Rule addConditionRow:: ",e)}}},{key:"view",value:function(e){try{return this.initialize(e),m("[",null,this.addConditionRow(this.ruleRow))}catch(e){SaErrorHandler.log("In Rule view:: ",e)}}},{key:"handleCustomActions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e&&e.fieldObj.custom_actions&&e.fieldObj.custom_actions[e.op]&&(e.meta.hideValue=void 0===e.fieldObj.custom_actions[e.op].hide_value||e.fieldObj.custom_actions[e.op].hide_value)}}])}();function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,O(a.key),a)}}function O(e){var t=function(e,t){if("object"!=k(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=k(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k(t)?t:t+""}var j=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize(t)}catch(e){SaErrorHandler.log("In RuleGroup construct:: ",e)}},(t=[{key:"initialize",value:function(e){try{this.ruleGroupKey=e.attrs.key,this.ruleGroupId=e.attrs.id,this.isOnlyChild=e.attrs.isOnlyChild||0,this.ruleGroup=c.data.ruleGroups[this.ruleGroupId]||[],this.ruleGroupCondition=this.ruleGroup.condition||"AND",this.rules=this.ruleGroup.rules||[]}catch(e){SaErrorHandler.log("In RuleGroup initialize:: ",e)}}},{key:"view",value:function(e){var t=this;try{return this.initialize(e),m("div",{class:"px-4 pt-3 pb-2 mb-6 space-y-3 bg-gray-100 border-gray-200 rounded-md"},1==c.flags.isPrivilegeSettings?0==this.ruleGroupId?m("div",{class:"mb-3 font-medium text-gray-700"},_x("Restrict by users","group title","smart-manager-for-wp-e-commerce")):m("div",{class:"mb-3 font-medium text-gray-700"},_x("Restrict by user roles","group title","smart-manager-for-wp-e-commerce")):m("div",{class:"flex items-center gap-1 text-xs text-gray-400"},m("span",null,_x('This group is a "pass" when',"rule content","smart-manager-for-wp-e-commerce")),m("span",{class:"text-gray-700"},_x("all","rule option","smart-manager-for-wp-e-commerce")),m("span",null,_x("of the following conditions is true.","group content","smart-manager-for-wp-e-commerce"))),this.rules.map((function(e,r){return m(_,{key:e.key,id:r,ruleGroupId:t.ruleGroupId,showAddRule:1==c.flags.isPrivilegeSettings?t.rules.length-1==r?1:0:"",isOnlyChild:1==t.rules.length?1:0})})),m("div",{class:(1==c.flags.isPrivilegeSettings?"invisible":"")+" flex items-center gap-6 pt-1"},m("button",{type:"button",class:"flex items-center gap-1 justify-center px-1 py-0.5 text-xs leading-5 text-gray-400 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-green-600 hover:border-green-600 focus:outline-none focus:shadow-outline-green focus:border-green-600",onclick:function(){c.add(t.ruleGroupId)}},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-add-condition","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})))," ",_x("Add a condition","button","smart-manager-for-wp-e-commerce")," ")," ",m("span",{class:"flex-1"}),m("button",{type:"button",class:"flex items-center gap-1 justify-center px-1 py-0.5 text-xs leading-5 text-gray-400 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-indigo-600 hover:border-indigo-600 focus:outline-none focus:shadow-outline-indigo focus:border-indigo-600",onclick:function(){1==window[pluginKey].sm_beta_pro?c.add():void 0!==window[pluginKey].showNotification&&"function"==typeof window[pluginKey].showNotification&&(window[pluginKey].notification={message:sprintf(_x("This feature is available only in the %s version","modal content","smart-manager-for-wp-e-commerce"),'<a href="'+window[pluginKey].pricingPageURL+'" target="_blank">'+_x("Pro","modal content","smart-manager-for-wp-e-commerce")+"</a>"),hideDelay:window[pluginKey].notificationHideDelayInMs},window[pluginKey].showNotification())}},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-add-group","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})))," ",_x("Add another group","button","smart-manager-for-wp-e-commerce")," "),this.isOnlyChild?"":m("button",{type:"button",class:"flex items-center gap-1 justify-center px-1 py-0.5 text-xs leading-5 text-gray-400 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-red-600 hover:border-red-600 focus:outline-none focus:shadow-outline-red focus:border-red-600",onclick:function(){c.delete(t.ruleGroupId)}},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-remove-group","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6M3 17V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})))," ",_x("Remove this group","button","smart-manager-for-wp-e-commerce")," ")))}catch(e){SaErrorHandler.log("In RuleGroup view:: ",e)}}}])&&S(e.prototype,t),r&&S(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,C(a.key),a)}}function C(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=P(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}var I=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize()},(t=[{key:"initialize",value:function(){try{this.notification=Object.assign({status:"warning",autoHide:!0,hideDelay:8e3,message:""},window[pluginKey].notification||{}),this.showNotification=Object.keys(window[pluginKey].notification||{}).length>0&&""!==this.notification.message,this.icons={success:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>',error:'<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" /></svg>',warning:'<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>'}}catch(e){SaErrorHandler.log("In Notifications initialize:: ",e)}}},{key:"render",value:function(e){return window[pluginKey].parseHTML(e)}},{key:"view",value:function(){var e=this;try{var t,r;return this.initialize(),setTimeout((function(){try{if(e.showNotification&&e.notification.autoHide){var t=document.getElementsByClassName(window[pluginKey].pluginSlug+"-notification-close");t.length>0&&t[0].click()}}catch(e){SaErrorHandler.log("In Notifications auto close:: ",e)}}),this.notification.hideDelay),this.showNotification?m("div",{class:"fixed inset-0 flex items-end justify-center px-4 py-6 pointer-events-none sm:p-6 sm:items-start sm:justify-end",style:"z-index: 121000;"},m("div",{class:"w-full max-w-sm bg-white rounded-lg shadow-lg pointer-events-auto bottom-2 fixed ".concat(window[pluginKey].pluginSlug,"-custom-notification-width ").concat((null===(t=this.notification)||void 0===t?void 0:t.customClass)||"")},m("div",{class:"overflow-hidden rounded-lg shadow-xs text-gray-700"},m("div",{class:("bg-"+this.notification.status||!1)+" p-3"},m("div",{class:"flex items-center"},m("div",{class:"flex-shrink-0"},null!==(r=this.notification)&&void 0!==r&&r.hideIcon?"":m.trust(this.icons[this.notification.status||"warning"]||"")),m("div",{class:"ml-3 flex-1"},m("p",{class:"text-sm leading-5"},m.trust(this.notification.message))),m("div",{class:"flex flex-shrink-0 ml-2"},m("button",{type:"button",class:"".concat(window[pluginKey].pluginSlug,"-notification-close inline-flex p-1 rounded-md hover:text-gray-700 focus:outline-none transition duration-150 ease-in-out"),onclick:function(){setTimeout((function(){try{var t;window[pluginKey].notification={},m.route.get()==="/"+window[pluginKey].advancedSearchRoute||m.route.get()==="/"+window[pluginKey].bulkEditRoute||m.route.get()==="/"+window[pluginKey].columnManagerRoute||void 0===window[pluginKey].showPannelDialog||"function"!=typeof window[pluginKey].showPannelDialog||void 0===window[pluginKey].getDefaultRoute||"function"!=typeof window[pluginKey].getDefaultRoute||window[pluginKey].hidePannelDialog||window[pluginKey].showPannelDialog((null==e||null===(t=e.notification)||void 0===t?void 0:t.route)||"",window[pluginKey].getDefaultRoute(!0))}catch(e){SaErrorHandler.log("In Notifications close:: ",e)}}),200)}},m("svg",{class:"h-4 w-4 text-gray-400",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}))))))))):""}catch(e){SaErrorHandler.log("In Notifications view:: ",e)}}}])&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,T(a.key),a)}}function T(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=K(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}var H=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize()}catch(e){SaErrorHandler.log("In AdvancedSearchDialog construct:: ",e)}},(t=[{key:"initialize",value:function(){try{this.savedSearch=window.smart_manager.advancedSearchQuery||[],this.savedSearchGroups=this.savedSearch[0]||{condition:"OR",rules:[A({},c.data.default.ruleGroup)]},this.searchRuleGroups=this.savedSearchGroups.rules||[],this.noticeMsgForCustomViews=_x("Conditions cannot be edited when using Custom Views","advanced search notice for custom views","smart-manager-for-wp-e-commerce"),new c({ruleGroups:this.searchRuleGroups,fields:window.smart_manager.colModelSearch,possibleOperators:window.smart_manager.possibleOperators})}catch(e){SaErrorHandler.log("In AdvancedSearchDialog construct:: ",e)}}},{key:"closeDialog",value:function(){try{void 0!==window.smart_manager.showPannelDialog&&"function"==typeof window.smart_manager.showPannelDialog&&window.smart_manager.showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In AdvancedSearchDialog closeDialog:: ",e)}}},{key:"getRuleGroups",value:function(){var e=this;if(c.data.ruleGroups.length){var t=[];return this.ruleCount=0,c.data.ruleGroups.map((function(r){var a=[];r.rules.map((function(t){var r=A({},t);delete r.key,r.meta&&delete r.meta,a.push(r),e.ruleCount++})),t.push({condition:r.condition,rules:a})})),t}}},{key:"updateRuleCountView",value:function(){try{window.smart_manager.advancedSearchRuleCount=this.ruleCount,jQuery("#sm_advanced_search_content").html(sprintf(_x("%1$d condition%2$s","advanced search conditions","smart-manager-for-wp-e-commerce"),window.smart_manager.advancedSearchRuleCount,window.smart_manager.advancedSearchRuleCount>1?_x("s","advanced search conditions","smart-manager-for-wp-e-commerce"):""))}catch(e){SaErrorHandler.log("In AdvancedSearchDialog updateRuleCountView:: ",e)}}},{key:"view",value:function(){var e=this;try{return m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-4xl max-h-full mt-12 overflow-auto transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Advanced Search","side pannel - modal title","smart-manager-for-wp-e-commerce")," ")),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("button",{onclick:function(){try{if(window.smart_manager.isViewContainSearchParams&&void 0!==window.smart_manager.showNotification&&"function"==typeof window.smart_manager.showNotification)return window.smart_manager.notification={message:e.noticeMsgForCustomViews,hideDelay:window.smart_manager.notificationHideDelayInMs},void window.smart_manager.showNotification();if(c.data.ruleGroups.length>0){var t=e.getRuleGroups();window.smart_manager.advancedSearchQuery=[{condition:"OR",rules:t}],e.updateRuleCountView(),void 0!==window.smart_manager.loadDashboard&&"function"==typeof window.smart_manager.loadDashboard&&window.smart_manager.loadDashboard()}e.closeDialog()}catch(e){SaErrorHandler.log("In AdvancedSearchDialog search:: ",e)}},type:"button",class:"sm-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo",title:_x("Search [ENTER]","advanced search button title","smart-manager-for-wp-e-commerce")},_x("Search","advanced search button","smart-manager-for-wp-e-commerce"))),m("span",{class:"rounded-md"},m("button",{onclick:function(){try{if(1!==parseInt(window.smart_manager.sm_beta_pro))return window.smart_manager.notification={message:sprintf(_x("Saved Searches available (Only in %s)","notification","smart-manager-for-wp-e-commerce"),'<a href="'+window.smart_manager.pricingPageURL+'" target="_blank">'+_x("Pro","notification","smart-manager-for-wp-e-commerce")+"</a>"),hideDelay:window.smart_manager.notificationHideDelayInMs},void window.smart_manager.showNotification();if(window.smart_manager.isViewContainSearchParams&&void 0!==window.smart_manager.showNotification&&"function"==typeof window.smart_manager.showNotification)return window.smart_manager.notification={message:e.noticeMsgForCustomViews,hideDelay:window.smart_manager.notificationHideDelayInMs},void window.smart_manager.showNotification();if(c.data.ruleGroups.length>0){var t=e.getRuleGroups();window.smart_manager.advancedSearchQuery=[{condition:"OR",rules:t}],e.updateRuleCountView(),void 0!==window.smart_manager.createUpdateViewDialog&&"function"==typeof window.smart_manager.createUpdateViewDialog&&window.smart_manager.createUpdateViewDialog("create",{dashboardChecked:!1,advancedSearchChecked:!0})}}catch(e){SaErrorHandler.log("In AdvancedSearchDialog save:: ",e)}},type:"button",class:"sm-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo save_advance_search_btn",title:_x("Save","advanced search save button title","smart-manager-for-wp-e-commerce")},_x("Save","advanced search save button","smart-manager-for-wp-e-commerce"))),m("button",{onclick:function(){try{if(window.smart_manager.isViewContainSearchParams&&void 0!==window.smart_manager.showNotification&&"function"==typeof window.smart_manager.showNotification)return window.smart_manager.notification={message:e.noticeMsgForCustomViews,hideDelay:window.smart_manager.notificationHideDelayInMs},void window.smart_manager.showNotification();if(window.smart_manager.advancedSearchQuery=[],e.ruleCount=0,e.initialize(),e.updateRuleCountView(),window.smart_manager.findSavedSearchBySlug(jQuery("#sm_dashboard_select").val()))return jQuery("#sm_dashboard_select").val(window.smart_manager.dashboardKey).trigger("change"),void e.closeDialog();void 0!==window.smart_manager.loadDashboard&&"function"==typeof window.smart_manager.loadDashboard&&window.smart_manager.loadDashboard()}catch(e){SaErrorHandler.log("In AdvancedSearchDialog clear:: ",e)}},type:"button",class:"inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-gray-500 transition duration-150 ease-in-out bg-gray-200 border border-transparent rounded-md hover:bg-gray-300 focus:outline-none"},_x("Clear","advanced search button","smart-manager-for-wp-e-commerce")),m("button",{onclick:function(){try{e.closeDialog(),0==window.smart_manager.advancedSearchRuleCount&&jQuery("#search_switch").prop("checked",!1).trigger("change")}catch(e){SaErrorHandler.log("In AdvancedSearchDialog close:: ",e)}},class:"sm-button-close p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100",title:_x("Close [ESC]","advanced search close button title","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},window.smart_manager.isViewContainSearchParams?m("div",{class:"w-full text-sm leading-5 text-gray-500 bg-warning p-2"},this.noticeMsgForCustomViews):"",m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline gap-1 mb-3 font-medium text-gray-500 -mt-1"},m("span",{class:"uppercase"},_x("When","advanced search content","smart-manager-for-wp-e-commerce")),m("span",{class:"text-gray-700"},_x("at least one","advanced search option","smart-manager-for-wp-e-commerce")," "),m("span",null,_x("condition groups pass","advanced search content","smart-manager-for-wp-e-commerce"))),c.data.ruleGroups.map((function(e,t){return m(j,{id:t,key:e.key,isOnlyChild:1==c.data.ruleGroups.length?1:0})}))))),Object.keys(window.smart_manager.notification||{}).length>0?m(I,null):null)}catch(e){SaErrorHandler.log("In AdvancedSearchDialog view:: ",e)}}}])&&M(e.prototype,t),r&&M(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,G(a.key),a)}}function G(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=R(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}var N=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize(t)}catch(e){SaErrorHandler.log("In BulkEditSavedActions constructor:: ",e)}},(t=[{key:"initialize",value:function(e){try{this.bulkEditDialogObj=e.attrs.bulkEditDialogObj,this.BulkEditSavedActions=e.attrs.BulkEditSavedActions}catch(e){SaErrorHandler.log("In BulkEditSavedActions initialize:: ",e)}}},{key:"setSelectedBulkEditItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e&&(null==e?void 0:e.length)>0){var t=document.querySelectorAll(".saved-bulk-edit-item");t.forEach((function(t){t.classList.remove("selected"),t.getAttribute("slug")===e&&t.classList.add("selected")})),this.bulkEditDialogObj.selectedSavedBulkEdit=""}}},{key:"oncreate",value:function(){try{var e,t=(null===(e=this.bulkEditDialogObj)||void 0===e?void 0:e.selectedSavedBulkEdit)||"";this.setSelectedBulkEditItem(t)}catch(e){SaErrorHandler.log("In BulkEditSavedActions oncreate:: ",e)}}},{key:"onupdate",value:function(){try{var e,t=(null===(e=this.bulkEditDialogObj)||void 0===e?void 0:e.selectedSavedBulkEdit)||"";this.setSelectedBulkEditItem(t)}catch(e){SaErrorHandler.log("In BulkEditSavedActions onupdate:: ",e)}}},{key:"view",value:function(e){var t=this;try{return this.initialize(e),m("[",null,m("div",{class:"saved-bulk-edit-list"},this.BulkEditSavedActions.length?this.BulkEditSavedActions.map((function(e,r){return m("div",{class:"saved-bulk-edit-item",slug:null==e?void 0:e.slug,onclick:function(r){return t.bulkEditDialogObj.renderBulkEditConditions(r,null==e?void 0:e.slug)}},m("div",null,m("div",null,m("span",null,null==e?void 0:e.title)),m("div",null,m("svg",{class:"".concat(window[pluginKey].pluginSlug,"-error-icon"),onclick:function(r){return t.bulkEditDialogObj.deleteSavedAction(r,null==e?void 0:e.slug,null==e?void 0:e.title)},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:"width: 20px; height: 20px;"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})))))})):""))}catch(e){SaErrorHandler.log("In BulkEditSavedActions view:: ",e)}}}])&&V(e.prototype,t),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||Q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){if(e){if("string"==typeof e)return F(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function $(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){Y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t,r){return(t=J(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,J(a.key),a)}}function J(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=U(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}var Z=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize()}catch(e){SaErrorHandler.log("In BulkEditDialog constructor:: ",e)}},(t=[{key:"initialize",value:function(){try{var e,t,r;this.ruleGroups=[$({},c.data.default.ruleGroup)],this.updateAll=!!window[pluginKey].selectAll,this.BulkEditSavedActions=(null===(e=window[pluginKey])||void 0===e?void 0:e.saved_bulk_edits)||[],this.selectedSavedBulkEdit=(null===(t=window[pluginKey])||void 0===t?void 0:t.selectedSavedBulkEdit)||"",this.fetchingSavedBulkEdits=!1,window[pluginKey].updateProductSubscriptions=!1,window[pluginKey].subscriptionProductIds=[],window[pluginKey].subscriptionUpdateActions=[],window[pluginKey].savedBulkEditConditions.length>0&&window[pluginKey].savedBulkEditConditions[0]&&(this.ruleGroups=window[pluginKey].savedBulkEditConditions[0].rules||this.ruleGroups,this.updateAll=(void 0===(null===(r=window[pluginKey].savedBulkEditConditions[0])||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.updateAll)||!1!==window[pluginKey].savedBulkEditConditions[0].meta.updateAll)&&this.updateAll),new c({ruleGroups:this.ruleGroups,fields:window[pluginKey].columnNamesBatchUpdate||{},possibleOperators:window[pluginKey].batch_update_actions||{}}),window[pluginKey].hasOwnProperty("saved_bulk_edits")&&!1!==window[pluginKey].saved_bulk_edits||this.getSavedBulkEdits()}catch(e){SaErrorHandler.log("In BulkEditDialog initialize:: ",e)}}},{key:"closeDialog",value:function(){try{void 0!==window[pluginKey].showPannelDialog&&"function"==typeof window[pluginKey].showPannelDialog&&window[pluginKey].showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In BulkEditDialog closeDialog:: ",e)}}},{key:"getSavedBulkEdits",value:function(){try{var e=new FormData,t=window[pluginKey].getViewSlug(window[pluginKey].dashboardName),r={cmd:"get_saved_bulk_edits",module:"custom_views",active_module:window[pluginKey].viewPostTypes.hasOwnProperty(t)?window[pluginKey].viewPostTypes[t]:window[pluginKey].dashboardKey,security:window[pluginKey].saCommonNonce||""};for(var a in r)e.append(a,r[a]);this.fetchingSavedBulkEdits=!0,c.loadData(e,(function(e,t){e.fetchingSavedBulkEdits=!1,"Success"===(null==t?void 0:t.ACK)&&null!=t&&t.data&&(e.BulkEditSavedActions=window[pluginKey].saved_bulk_edits=t.data)}),this)}catch(e){SaErrorHandler.log("In BulkEditDialog getSavedBulkEdits:: ",e)}}},{key:"disableUpdateAllFlagInBulkEditConditions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)&&e.length?(e.forEach((function(e){e.hasOwnProperty("meta")&&e.meta.hasOwnProperty("updateAll")&&(e.meta.updateAll=!1)})),e):[]}},{key:"saveBulkEditParams",value:function(){try{var e,t,r=document.getElementById("bulk_edit_title");this.prepareBulkEditParams();var a=this.disableUpdateAllFlagInBulkEditConditions((null===(e=window[pluginKey])||void 0===e?void 0:e.savedBulkEditConditions)||[]);if(null==r||null===(t=r.value)||void 0===t||!t.trim()||!a.length)return;var n=this;window[pluginKey].saveView({action:"create",name:r.value.trim(),type:"saved_bulk_edits",bulk_edit_params:a,onSuccess:function(e){var t;window[pluginKey].saved_bulk_edits=(null===(t=window[pluginKey])||void 0===t?void 0:t.saved_bulk_edits)||[],window[pluginKey].saved_bulk_edits.unshift({title:r.value.trim(),slug:(null==e?void 0:e.slug)||"",params:JSON.stringify(a)}),document.getElementById(window[pluginKey].pluginSlug+"-bulk-edit-save-floating-box").classList.add("hidden"),r.value="",n.selectedSavedBulkEdit=(null==e?void 0:e.slug)||"",window[pluginKey].selectedSavedBulkEdit=(null==e?void 0:e.slug)||"",window[pluginKey].notification={status:"success",message:_x("Bulk Edit saved successfully!","notification","smart-manager-for-wp-e-commerce")},window[pluginKey].showNotification(),window[pluginKey].showPannelDialog("bulkEdit",m.route.get())},onError:function(e){var t=document.getElementById(window[pluginKey].pluginSlug+"-saved-bulk-edit-validation");t&&(t.textContent=e.msg,t.classList.remove("hidden","text-error"),t.classList.add("text-error"))}})}catch(e){SaErrorHandler.log("In saveBulkEditParams:: ",e)}}},{key:"prepareBulkEditParams",value:function(){var e=this;try{var t=[];return this.ruleCount=0,c.data.ruleGroups.map((function(r){var a=[];r.rules.map((function(t){var r=$({},t);delete r.key,a.push(r),e.ruleCount++})),t.push({condition:r.condition,rules:a})})),window[pluginKey].savedBulkEditConditions=[{condition:"AND",rules:t,meta:{updateAll:this.updateAll}}],t}catch(e){SaErrorHandler.log("In BulkEditDialog prepareBulkEditParams:: ",e)}}},{key:"renderBulkEditConditions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t.length)try{var r=this.getBulkEditParamsBySlug(t);if(r){var a,n;r.forEach((function(e){var t;e.meta.updateAll="entire_store"===(null===(t=document.querySelector('input[name="batch_update_storewide"]:checked'))||void 0===t?void 0:t.value)})),window[pluginKey].savedBulkEditConditions=r,this.initialize();var o=null==e||null===(a=e.target)||void 0===a?void 0:a.closest(".saved-bulk-edit-item");o&&(this.selectedSavedBulkEdit=(null==o?void 0:o.getAttribute("slug"))||"",window[pluginKey].selectedSavedBulkEdit=this.selectedSavedBulkEdit),this.updateAll="entire_store"===(null===(n=document.querySelector('input[name="batch_update_storewide"]:checked'))||void 0===n?void 0:n.value)}}catch(e){SaErrorHandler.log("In BulkEditDialog renderBulkEditConditions:: ",e)}}},{key:"deleteSavedAction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(t.length&&r.length){e.stopPropagation();var a=this;try{void 0!==window[pluginKey].showConfirmDialog&&"function"==typeof window[pluginKey].showConfirmDialog&&window[pluginKey].showConfirmDialog({title:'<span class="'.concat(window[pluginKey].pluginSlug,'-error-icon"><span class="dashicons dashicons-warning" style="vertical-align: text-bottom;"></span>&nbsp;').concat(_x("Attention!","modal title","smart-manager-for-wp-e-commerce"),"</span>"),content:'<span style="font-size: 1.2em;">'.concat(_x("Do you really want to","modal content","smart-manager-for-wp-e-commerce"),'<span class="').concat(window[pluginKey].pluginSlug,'-error-icon"> <strong>').concat(_x("delete","modal content","smart-manager-for-wp-e-commerce"),"</strong> </span> ").concat(_x('"'.concat(r,'" saved action?'),"modal content","smart-manager-for-wp-e-commerce")," </span>"),showCloseIcon:!1,btnParams:{yesText:"Yes",noText:"No",hideOnYes:!0,yesCallback:function(){void 0!==window[pluginKey].deleteView&&"function"==typeof window[pluginKey].deleteView&&window[pluginKey].deleteView({view_slug:t,type:"saved_bulk_edits",event:e,success_msg:_x("Bulk Edit saved action deleted successfully!","notification","smart-manager-for-wp-e-commerce")},a)}},route:"bulkEdit"})}catch(e){SaErrorHandler.log("In deleteSavedAction::showConfirmDialog:",e)}}}},{key:"getBulkEditParamsBySlug",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e.length||!window[pluginKey]||!Array.isArray(window[pluginKey].saved_bulk_edits))return!1;var t=window[pluginKey].saved_bulk_edits.find((function(t){return t.slug===e}));if(t&&t.params)try{return JSON.parse(t.params)}catch(e){SaErrorHandler.log("In BulkEditDialog getBulkEditParamsBySlug:: ",e)}return!1}},{key:"showWarningWhenUpdateAllRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e.length&&void 0!==this.processBulkUpdate&&"function"==typeof this.processBulkUpdate&&void 0!==window[pluginKey].showConfirmDialog&&"function"==typeof window[pluginKey].showConfirmDialog){var t=jQuery('input[name="batch_update_storewide"]:checked').closest("label").find("span").text(),r=this;window[pluginKey].showConfirmDialog({title:'<span class="'.concat(window[pluginKey].pluginSlug,'-error-icon"><span class="dashicons dashicons-warning" style="vertical-align: text-bottom;"></span>&nbsp;').concat(_x("Attention!","modal title","smart-manager-for-wp-e-commerce"),"</span>"),content:'<span style="font-size: 1.2em;">'.concat(_x("Are you sure you want to ".concat("schedule"===e?" schedule bulk edit for":"bulk edit"),"modal content","smart-manager-for-wp-e-commerce")," <strong>").concat(_x(t,"modal content","smart-manager-for-wp-e-commerce"),"</strong>? </span>"),showCloseIcon:!1,btnParams:{yesText:"Yes",noText:"No",hideOnYes:!1,yesCallback:function(){r.handleBulkEditAction(e,r)}},route:"bulkEdit"})}}},{key:"handleBulkEditAction",value:function(e,t){switch(e){case"edit":window[pluginKey].scheduledActionContent="",window[pluginKey].isScheduled=!1,t.processBulkUpdate(),void 0!==window[pluginKey].showTitleModal&&"function"==typeof window[pluginKey].showTitleModal&&window[pluginKey].showTitleModal({btnParams:{hideOnYes:!1}});break;case"schedule":t.processBulkUpdate(),window[pluginKey].isScheduled=!0,void 0!==window[pluginKey].showScheduleModal&&"function"==typeof window[pluginKey].showScheduleModal&&window[pluginKey].showScheduleModal({btnParams:{hideOnYes:!1}})}}},{key:"showModalToUpdateProductRelatedSubscriptions",value:function(e){var t=this;try{void 0!==window[pluginKey].showConfirmDialog&&"function"==typeof window[pluginKey].showConfirmDialog&&window[pluginKey].showConfirmDialog({modalClass:"sm-be-update-subscription-price-modal",title:'<span><span class="dashicons dashicons-warning" style="vertical-align: text-bottom;"></span>&nbsp;'.concat(_x("Update Prices for Existing Subscriptions?","modal title","smart-manager-for-wp-e-commerce"),"</span>"),content:'\n                        <div id="sm-be-update-subscription-price-modal-content">\n                            <p class="heading-text">'.concat(_x("Apply the new product prices to existing subscriptions that meet all of the following:","subscription update conditions heading","smart-manager-for-wp-e-commerce"),"</p>\n                            <ul>\n                                <li>").concat(_x("Have <strong>auto-renewal enabled</strong>","auto-renewal condition","smart-manager-for-wp-e-commerce"),"</li>\n                                <li>").concat(_x("Use <strong>Stripe</strong> as the payment method","stripe payment condition","smart-manager-for-wp-e-commerce"),"</li>\n                                <li>").concat(_x("Are in <strong>Active</strong>, <strong>On hold</strong>, <strong>Pending</strong> or <strong>Pending Cancellation</strong> status","subscription status condition","smart-manager-for-wp-e-commerce"),"</li>\n                            </ul>\n                        </div>\n                        "),showCloseIcon:!1,btnParams:{yesText:"Yes",noText:"No",hideOnYes:!1,yesCallback:function(){var r;window[pluginKey].updateProductSubscriptions=!0,window[pluginKey].subscriptionProductIds=(null===(r=window[pluginKey])||void 0===r?void 0:r.getSelectedSubscriptionProductIds())||[],t.handleBulkEditAction(e,t)},noCallback:function(){setTimeout((function(){window[pluginKey].showPannelDialog("bulkEdit"),t.handleBulkEditAction(e,t)}),205)}},route:"bulkEdit"})}catch(e){SaErrorHandler.log("In deleteSavedAction::showConfirmDialog:",e)}}},{key:"rulesHasPriceField",value:function(e){if(!Array.isArray(e))return!1;var t=e[0].rules||[];if(!Array.isArray(t))return!1;var r=["postmeta/meta_key=_regular_price/meta_value=_regular_price","postmeta/meta_key=_sale_price/meta_value=_sale_price","postmeta/meta_key=_price/meta_value=_price","postmeta/meta_key=_subscription_price_meta_value__subscription_price"],a=t.filter((function(e){return r.includes(e.type)}))||[];return!!a.length&&(window[pluginKey].subscriptionUpdateActions=a,!0)}},{key:"canShowUpdateSubscriptionsModal",value:function(){return"product"===window[pluginKey].dashboardKey&&"1"===window[pluginKey].isSubscriptionPluginActive&&"1"===window[pluginKey].subscriptionsExist&&"1"===window[pluginKey].subscriptionsAcceptManualRenewals&&"1"===window[pluginKey].isStripeGatewayActive&&!1!==this.rulesHasPriceField(this.prepareBulkEditParams())&&("entire_store"===jQuery('input[name="batch_update_storewide"]:checked').val()||!!(window[pluginKey].getSelectedSubscriptionProductIds()||[]).length)}},{key:"view",value:function(){var e=this;try{var t=""!=window[pluginKey].simpleSearchText&&"simple"==window[pluginKey].searchType||window[pluginKey].advancedSearchQuery.length>0&&"simple"!=window[pluginKey].searchType?_x("All Items In Search Results","bulk edit option","smart-manager-for-wp-e-commerce"):_x("All Items In Store","bulk edit option","smart-manager-for-wp-e-commerce");return this.ruleGroup=c.data.ruleGroups[0]||[],this.ruleGroupCondition=this.ruleGroup.condition||"AND",this.rules=this.ruleGroup.rules||[],m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-4xl max-h-full mt-12 overflow-auto transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Bulk Edit","side pannel - modal title","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("div",{id:"update_".concat(window[pluginKey].pluginSlug,"_editor_grid"),class:"".concat(window[pluginKey].pluginSlug,"_beta_dropdown")},m("button",{type:"button",class:"".concat(window[pluginKey].pluginSlug,"-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo"),title:_x("Update","bulk edit button title","smart-manager-for-wp-e-commerce")},_x("Update","bulk edit button","smart-manager-for-wp-e-commerce")),m("div",{class:"".concat(window[pluginKey].pluginSlug,"_beta_dropdown_content ").concat(window[pluginKey].pluginSlug,"_bulk_edit_dropdown_content"),style:"display: none;"},m("a",{id:"".concat(window[pluginKey].pluginSlug,"_update_now"),href:"javascript:void(null)",onclick:function(){try{if(!0===e.canShowUpdateSubscriptionsModal())return void e.showModalToUpdateProductRelatedSubscriptions("edit");if("entire_store"===jQuery('input[name="batch_update_storewide"]:checked').val())return void e.showWarningWhenUpdateAllRecords("edit");window[pluginKey].scheduledActionContent="",window[pluginKey].isScheduled=!1,void 0!==e.processBulkUpdate&&"function"==typeof e.processBulkUpdate&&e.processBulkUpdate(),void 0!==window[pluginKey].showTitleModal&&"function"==typeof window[pluginKey].showTitleModal&&window[pluginKey].showTitleModal({btnParams:{hideOnYes:!1}}),e.closeDialog()}catch(e){SaErrorHandler.log("In BulkEditDialog Update click:: ",e)}}},_x("Now","bulk edit button","smart-manager-for-wp-e-commerce")),m("a",{id:"".concat(window[pluginKey].pluginSlug,"_schedule_update_for_later"),href:"#",onclick:function(){try{if(!0===e.canShowUpdateSubscriptionsModal())return void e.showModalToUpdateProductRelatedSubscriptions("schedule");if("entire_store"===jQuery('input[name="batch_update_storewide"]:checked').val())return void e.showWarningWhenUpdateAllRecords("schedule");void 0!==e.processBulkUpdate&&"function"==typeof e.processBulkUpdate&&e.processBulkUpdate(),window[pluginKey].isScheduled=!0,void 0!==window[pluginKey].showScheduleModal&&"function"==typeof window[pluginKey].showScheduleModal&&window[pluginKey].showScheduleModal({btnParams:{hideOnYes:!1}}),e.closeDialog()}catch(e){SaErrorHandler.log("In BulkEditDialog Update click:: ",e)}}},_x("Schedule for later","bulk edit button","smart-manager-for-wp-e-commerce"))))),m("div",{class:"".concat(window[pluginKey].pluginSlug,"-bulk-edit-save")},m("button",{type:"button",id:"".concat(window[pluginKey].pluginSlug,"_bulk_edit_save_btn"),title:_x("Save","bulk edit save button","smart-manager-for-wp-e-commerce"),class:"".concat(window[pluginKey].pluginSlug,"-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo")},_x("Save","bulk edit save button","smart-manager-for-wp-e-commerce")),m("div",{id:"".concat(window[pluginKey].pluginSlug,"-bulk-edit-save-floating-box"),class:"hidden"},m("div",{class:"icons-and-fields"},m("input",{type:"text",id:"bulk_edit_title",placeholder:_x("Enter name of saved action","bulk edit name field","smart-manager-for-wp-e-commerce")}),m("div",{class:"save-bulk-edit-actions"},m("button",{type:"button",id:"".concat(window[pluginKey].pluginSlug,"-saved-bulk-edit-create"),title:_x("Confirm Save","bulk edit save button","smart-manager-for-wp-e-commerce"),class:"icon-button",onclick:function(t){return e.saveBulkEditParams(t)}},m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25px",height:"25px",viewBox:"0 0 24.00 24.00",fill:"none",transform:"matrix(1, 0, 0, 1, 0, 0)rotate(0)",stroke:"#429453"},m("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),m("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),m("g",{id:"SVGRepo_iconCarrier"}," ",m("path",{d:"M4 12.6111L8.92308 17.5L20 6.5",stroke:"#508991","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"})," "))),m("button",{class:"icon-button be-save-close",title:_x("Close","saved bulk edit close button","smart-manager-for-wp-e-commerce")},m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none"},m("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),m("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),m("g",{id:"SVGRepo_iconCarrier"}," ",m("path",{d:"M16 8L8 16M8.00001 8L16 16",stroke:"#ff5b5e","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))))),m("div",{id:"".concat(window[pluginKey].pluginSlug,"-saved-bulk-edit-validation"),class:"hidden"}))),m("button",{onclick:function(){try{window[pluginKey].savedBulkEditConditions=[],document.querySelectorAll(".saved-bulk-edit-item.selected").forEach((function(e){e.classList.remove("selected")})),window[pluginKey].selectedSavedBulkEdit="",e.initialize()}catch(e){SaErrorHandler.log("In BulkEditDialog clear click:: ",e)}},type:"button",class:"inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-gray-500 transition duration-150 ease-in-out bg-gray-200 border border-transparent rounded-md hover:bg-gray-300 focus:outline-none"},_x("Clear","bulk edit button","smart-manager-for-wp-e-commerce")),m("button",{onclick:function(){try{e.closeDialog()}catch(e){SaErrorHandler.log("In BulkEditDialog close click:: ",e)}},class:"".concat(window[pluginKey].pluginSlug,"-button-close p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100"),title:_x("Close [ESC]","bulk edit close button title","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline"},m("div",{class:"flex items-center gap-2 bulk-edit-select-items mt-1"},m("span",{class:"bulk-edit-update-options-text"},_x("Apply changes on","bulk edit actions","smart-manager-for-wp-e-commerce"),": "),!1===window[pluginKey].selectAll&&m("label",null,m("input",{type:"radio",class:(this.updateAll?"bg-transparent":"bg-indigo-600")+" form-radio mr-2 -mt-1",name:"batch_update_storewide",value:"selected_ids",checked:this.updateAll?"":"checked",onchange:function(t){e.updateAll=!t.target.checked}}),m("span",{class:"mt-1"},_x("Selected Items","bulk edit option","smart-manager-for-wp-e-commerce"))),m("label",null,m("input",{type:"radio",class:(this.updateAll?"bg-indigo-600":"bg-transparent")+" form-radio mr-2 -mt-1",name:"batch_update_storewide",value:"entire_store",checked:this.updateAll?"checked":"",onchange:function(t){e.updateAll=!!t.target.checked}}),m("span",{class:"mt-1"},t)))),m("div",{id:"".concat(window[pluginKey].pluginSlug,"-saved-bulk-edit-section")},m("div",{class:"saved-actions-heading"},m("label",{class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Saved Actions","bulk edit saved actions","smart-manager-for-wp-e-commerce"),":")),this.BulkEditSavedActions.length>0&&m(N,{bulkEditDialogObj:this,BulkEditSavedActions:this.BulkEditSavedActions}),this.BulkEditSavedActions.length<=0&&!1===this.fetchingSavedBulkEdits&&m("div",{class:"saved-bulk-edit-not-found"},_x("No saved actions found. Start adding actions below.","bulk edit saved actions not found","smart-manager-for-wp-e-commerce")),!0===this.fetchingSavedBulkEdits&&m("div",{class:"sa-manager-be-loader-container"},m("div",{class:"sa-manager-placeholder m-2 h-8 w-1/4"}),m("div",{class:"sa-manager-placeholder m-2 h-8 w-1/4"}),m("div",{class:"sa-manager-placeholder m-2 h-8 w-1/4"}))),m("div",{class:"saved-actions-heading"},m("label",{class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Actions","bulk edit actions","smart-manager-for-wp-e-commerce"),":")),this.rules.map((function(t,r){return m(_,{key:t.key,id:r,ruleGroupId:"0",showAddRule:e.rules.length-1==r?1:0,isOnlyChild:1==e.rules.length?1:0})}))))),Object.keys(window[pluginKey].notification||{}).length>0?m(I,null):null)}catch(e){SaErrorHandler.log("In BulkEditDialog view:: ",e)}}},{key:"processBulkUpdate",value:function(){var e=this.prepareBulkEditParams();if(!(e.length<=0)){var t=e[0].rules||[],r=new Set;Object.values(t).length>0&&c.data.fields&&Object.values(t).forEach((function(e){Object.entries(c.data.fields).map((function(t){var a=L(t,2),n=a[0],o=a[1];e.type===n&&o.title&&r.add(o.title)}))})),window[pluginKey].processName=_x("Bulk Edit","process name","smart-manager-for-wp-e-commerce"),window[pluginKey].processContent=z(r).join(", "),void 0!==window[pluginKey].processBatchUpdate&&"function"==typeof window[pluginKey].processBatchUpdate&&(window[pluginKey].processCallback=window[pluginKey].processBatchUpdate)}}}])&&q(e.prototype,t),r&&q(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,te(a.key),a)}}function te(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=X(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}var re=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"closeDialog",value:function(){try{void 0!==window.smart_manager.showPannelDialog&&"function"==typeof window.smart_manager.showPannelDialog&&window.smart_manager.showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In ColumnManagerDialog closeDialog:: ",e)}}},{key:"oncreate",value:function(){try{window.smart_manager.createColumnVisibilityDialog()}catch(e){SaErrorHandler.log("In ColumnManagerDialog oncreate:: ",e)}}},{key:"onupdate",value:function(){try{window.smart_manager.createColumnVisibilityDialog()}catch(e){SaErrorHandler.log("In ColumnManagerDialog onupdate:: ",e)}}},{key:"view",value:function(){var e=this;try{return m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-4xl max-h-full mt-12 overflow-scroll transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Column Manager - Show/Hide Columns","side panel - modal title","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("button",{onclick:function(){try{window.smart_manager.processColumnVisibility(),e.closeDialog()}catch(e){SaErrorHandler.log("In ColumnManagerDialog Update click:: ",e)}},type:"button",class:"sm-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo",title:_x("Update [ENTER]","column manager button title","smart-manager-for-wp-e-commerce")},_x("Update","column manager button","smart-manager-for-wp-e-commerce"))),m("button",{onclick:function(){try{e.closeDialog()}catch(e){SaErrorHandler.log("In ColumnManagerDialog close click:: ",e)}},class:"sm-button-close p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100",title:_x("Close [ESC]","column manager close button title","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline gap-2 mb-3 -mt-1"}),m("div",{id:"column-settings"})))),Object.keys(window.smart_manager.notification||{}).length>0?m(I,null):null)}catch(e){SaErrorHandler.log("In ColumnManagerDialog view:: ",e)}}}])&&ee(e.prototype,t),r&&ee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ce(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function se(e,t,r){return(t=de(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||ce(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){if(e){if("string"==typeof e)return ue(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function me(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,de(a.key),a)}}function de(e){var t=function(e,t){if("object"!=ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=ae(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ae(t)?t:t+""}var pe=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.settingsInputType={numeric:"number",toggle:"checkbox",image:"image",select:"select"},this.initialize()}catch(e){SaErrorHandler.log("In SettingsDialog constructor:: ",e)}},(t=[{key:"initialize",value:function(){var e=this;try{this.generalSettings={},window.smart_manager.allSettings.hasOwnProperty("general")&&Object.entries(window.smart_manager.allSettings.general).map((function(t){var r=le(t,2),a=r[0],n=r[1];e.generalSettings[a]=ie({},n)}))}catch(e){SaErrorHandler.log("In SettingsDialog initialize:: ",e)}}},{key:"closeDialog",value:function(){try{this.initialize(),void 0!==window.smart_manager.showPannelDialog&&"function"==typeof window.smart_manager.showPannelDialog&&window.smart_manager.showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In SettingsDialog closeDialog:: ",e)}}},{key:"format",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{switch(e){case"generate_sku":e=_x("Automatically generate SKUs for WooCommerce products with blank values during CSV import","setting label","smart-manager-for-wp-e-commerce");break;case"ai_integration_settings":e=_x("AI Integration","setting label","smart-manager-for-wp-e-commerce");break;default:e=e.toLowerCase().replace(/(_)|(wp)/gi," ").replace(/( or )/gi,"/").trim()}return e.charAt(0).toUpperCase()+e.slice(1)}catch(e){SaErrorHandler.log("In SettingsDialog format:: ",e)}}},{key:"sanitize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";try{return"number"===t?parseInt(e):e}catch(e){SaErrorHandler.log("In SettingsDialog sanitize:: ",e)}}},{key:"showWPMediaLib",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{var r,a=this,n="multipleImage"===e;if(r)return void r.open();(r=wp.media.frames.file_frame=wp.media({multiple:n})).on("select",(function(){var o=!0===n?r.state().get("selection").toJSON():r.state().get("selection").first().toJSON(),i=new Set;o&&a.generalSettings[e].hasOwnProperty(t)&&(a.generalSettings[e][t]={id:o.id||"",url:o.url||""},!0===n&&o.length>0&&(Object.values(o).forEach((function(e){i.add(e.id)})),a.generalSettings[e][t]={id:ne(i).join(",")}),m.redraw())})),r.open()}catch(e){SaErrorHandler.log("In SettingsDialog showWPMediaLib:: ",e)}}},{key:"getSettingValueHTML",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"text",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{switch(this.settingsInputType[t]||"text"){case"checkbox":return m("input",{type:"checkbox",class:"w-5 h-5 text-left border border-gray-400",checked:"yes"===a,onchange:function(a){e.generalSettings[t][r]=a.target.checked?"yes":"no"}});case"image":return m("div",{class:" flex items-center gap-2"},m("button",{type:"button",onclick:function(){e.showWPMediaLib("image",r)},class:"flex items-center justify-center p-1 text-xs leading-5 text-indigo-500 transition duration-150 ease-in-out border border-transparent rounded-md focus:outline-none"},"object"===ae(a)&&a.hasOwnProperty("url")&&"multipleImage"!==t?m("img",{src:a.url,class:"w-24 h-24"}):m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})))),"object"===ae(a)&&a.hasOwnProperty("url")&&"multipleImage"!==t?m("button",{type:"button",onclick:function(){e.generalSettings[t][r]=""},class:"flex items-center justify-center p-1 text-xs leading-5 text-gray-300 transition duration-150 ease-in-out hover:text-red-600 border border-transparent rounded-md focus:outline-none",title:_x("Remove image","delete button for image type settings","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))):"");default:return m("input",{type:this.settingsInputType[t]||"text",class:"p-1 w-20 sm:text-sm sm:leading-5 border border-gray-400",value:this.sanitize(a),onfocusout:function(n){e.generalSettings[t][r]="checkbox"!==e.settingsInputType[t]?e.sanitize(n.target.value,t):a}})}}catch(e){SaErrorHandler.log("In SettingsDialog getSettingValueHTML:: ",e)}}},{key:"renderAIIntegrationSettingsHTML",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"text",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return m("[",null,m("tr",{class:"bg-transparent border-t p-4 pl-0"},m("th",{scope:"row",class:"bg-transparent p-4 pl-0"},m("label",{class:"cursor-default font-medium text-indigo-600 text-lg"},this.format(r))),m("td",{class:"p-4 alignright"})),m("tr",{class:"bg-transparent"},m("th",{scope:"row",class:"bg-transparent p-4 pl-0"},m("label",null,_x("Model","AI modals settings field","smart-manager-for-wp-e-commerce"))),m("td",{class:"p-4 alignright"},m("select",{class:"w-20 p-1 sm:text-sm sm:leading-5 border border-gray-400 rounded",value:(null==a?void 0:a.selectedModel)||"",onchange:function(a){var n;e.generalSettings[t][r]=ie(ie({},e.generalSettings[t][r]),{},{selectedModel:!(!a.target.value||""===a.target.value)&&a.target.value,apiKey:(null===(n=e.generalSettings[t][r][a.target.value])||void 0===n?void 0:n.api_key)||!1})}},m("option",{value:""},_x("Select","AI modals settings field","smart-manager-for-wp-e-commerce")),Object.keys(a).map((function(e){var t;return null!==(t=a[e])&&void 0!==t&&t.label?m("option",{value:e},a[e].label):null}))))),(null==a?void 0:a.selectedModel)&&m("tr",{class:"bg-transparent"},m("th",{scope:"row",class:"bg-transparent p-4 pl-0"},m("label",null,_x("API key","AI modals settings field","smart-manager-for-wp-e-commerce")),m("div",{class:"font-medium mt-1",style:"font-style: italic; color:#8c8c8c"},_x("Click","AI modals settings field","smart-manager-for-wp-e-commerce")," ",m("a",{target:"_blank",href:"https://docs.aicontentlabs.com/articles/cohere-api-key/"},_x("here","AI modals settings field","smart-manager-for-wp-e-commerce"))," ",_x("to know more.","AI modals settings field","smart-manager-for-wp-e-commerce"))),m("td",{class:"p-4 alignright"},m("div",null,m("input",{type:"text",class:"sm-ai-api-key p-1 sm:text-sm sm:leading-5 border border-gray-400 rounded",placeholder:_x("Enter API key...","AI modals settings field","smart-manager-for-wp-e-commerce"),value:(null==a?void 0:a.apiKey)||"",onfocusout:function(n){if(null!=a&&a.selectedModel){var o=e.sanitize(n.target.value);e.generalSettings[t][r]=ie(ie({},e.generalSettings[t][r]),{},{apiKey:o}),e.generalSettings[t][r][a.selectedModel].api_key=o}}})))))}},{key:"view",value:function(){var e=this;try{return m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-lg max-h-full mt-12 overflow-scroll transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Settings","side pannel - modal title","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("button",{onclick:function(){try{void 0!==window.smart_manager.saveSettings&&"function"==typeof window.smart_manager.saveSettings&&window.smart_manager.saveSettings({general:e.generalSettings},e)}catch(e){SaErrorHandler.log("In SettingsDialog Update click:: ",e)}},type:"button",class:"sm-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo",title:_x("Save [ENTER]","settings button title","smart-manager-for-wp-e-commerce")},_x("Save","settings button","smart-manager-for-wp-e-commerce"))),m("button",{onclick:function(){try{e.closeDialog()}catch(e){SaErrorHandler.log("In SettingsDialog close click:: ",e)}},class:"sm-button-close p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100",title:_x("Close [ESC]","settings close button title","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline"},m("table",{class:"sm-settings-table table-auto text-left"},m("tbody",null,Object.entries(this.generalSettings).map((function(t){var r=le(t,2),a=r[0],n=r[1];return Object.entries(n).map((function(t){var r=le(t,2),n=r[0],o=r[1];return"ai_integration_settings"===n?e.renderAIIntegrationSettingsHTML(a,n,o):m("tr",{class:"bg-transparent"},m("th",{scope:"row",class:"bg-transparent p-4 pl-0"},m("label",null,_x(e.format(n),"setting label","smart-manager-for-wp-e-commerce"))),m("td",{class:"p-4 alignright"},e.getSettingValueHTML(a,n,o)))}))})))))))),Object.keys(window.smart_manager.notification||{}).length>0?m(I,null):null)}catch(e){SaErrorHandler.log("In SettingsDialog view:: ",e)}}}])&&me(e.prototype,t),r&&me(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ye(a.key),a)}}function ye(e){var t=function(e,t){if("object"!=ge(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=ge(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ge(t)?t:t+""}var he=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"scrollToAnchor",value:function(e){if(e){m.route.set("/pricing",{a:e});var t=function(e){return null!=e},r=t(e)?document.getElementById(e):document.body,a=window.scrollY||document.documentElement.scrollTop,n=t(r)?r.getBoundingClientRect().top:0;window.scroll({top:n+a-70,left:0,behavior:"smooth"})}}},{key:"view",value:function(){var e=this;try{var t,r,a,n=m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"h-6 w-6 m-auto ","stroke-width":"3",stroke:"currentColor"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"})),o=m("div",{class:"mt-12 lg:text-center"},m("p",{class:"text-base font-semibold leading-6 tracking-wide text-indigo-600 uppercase"},_x("Limited Period Offer","banner heading","smart-manager-for-wp-e-commerce")),m("h2",{class:"mt-2 text-3xl font-extrabold leading-8 tracking-tight text-gray-900 sm:text-4xl sm:leading-10"},sm_beta_params.isSAOfferVisible?_x("Get 50% off on Smart Manager Pro","banner content","smart-manager-for-wp-e-commerce"):_x("Get 60% off on 3-year and 25% off on annual plans on Smart Manager Pro","banner content","smart-manager-for-wp-e-commerce")),m("p",{class:"max-w-2xl mt-4 text-xl leading-7 text-gray-500 lg:mx-auto"},_x("Upgrade now and take your productivity to the next level!","banner content","smart-manager-for-wp-e-commerce"))),i=m("div",{className:"sm_design_notice man-hrs-section-pricing-page"},m("div",{className:"sm_container"},m("div",{className:"sm_main_headline"},m("div",{className:"dashicons dashicons-awards"}),m("div",{className:"sm_main_content"},m("span",null,_x("Hey ".concat(sm_beta_params.userName,", you’ve just saved "),"User message introduction for saved production hours","smart-manager-for-wp-e-commerce"),m("strong",null,null===(t=sm_beta_params)||void 0===t||null===(t=t.manHoursData)||void 0===t?void 0:t.man_hours_saved," ",_x("production hours","User message introduction for saved production hours","smart-manager-for-wp-e-commerce"))," ",_x("with Smart Manager! 🎉","User message conclusion for saved production hours","smart-manager-for-wp-e-commerce")),m("div",{className:"sm_claim_discount"},_x("Claim your ","Discount message introduction","smart-manager-for-wp-e-commerce"),m("span",{className:"discount-text"},_x("25%","Discount message introduction","smart-manager-for-wp-e-commerce"))," ",_x("to save additional ","Discount message middle part","smart-manager-for-wp-e-commerce"),m("strong",null,null===(r=sm_beta_params)||void 0===r||null===(r=r.manHoursData)||void 0===r?void 0:r.additional_savings," ",_x("hours","Discount message middle part","smart-manager-for-wp-e-commerce"))," ",_x("and unlock even more features!","Discount message conclusion","smart-manager-for-wp-e-commerce"))))));return m("[",null,m("section",{class:"mt-12 sm:mt-12 lg:mt-12"},m("div",{class:"mt-8 max-w-screen-xl px-4 mx-auto sm:px-6 lg:px-8"},sm_beta_params.isSAOfferVisible&&sm_beta_params.isSAOfferBannerVisible?"":null!==(a=sm_beta_params)&&void 0!==a&&null!==(a=a.manHoursData)&&void 0!==a&&a.display_man_hours?i:o,m("div",{id:"sm_price_column_container",class:"pb-8 mt-8 sm:mt-8 sm:pb-8 lg:mt-8 lg:pb-8 lg:pt-2"},m("div",{class:"max-w-md mx-auto lg:max-w-5xl lg:grid lg:grid-cols-4 lg:gap-5"},m("div",{class:"mt-4 overflow-hidden rounded-lg shadow-lg"},m("div",{class:"px-6 py-8 bg-gray-50 sm:p-10 sm:pb-6"},m("div",null,m("span",{class:"inline-flex px-4 py-1 text-sm font-semibold leading-5 tracking-wide text-indigo-600 uppercase bg-indigo-100 rounded-full"},_x("Popular","pricing table badge","smart-manager-for-wp-e-commerce"))),m("p",{class:"mt-5 text-xl leading-7 text-gray-500"},_x("1 site (Annual)","pricing license type","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-baseline mt-4 text-4xl text-gray-500 leading-none"},m("s",null,_x("$199","pricing license price","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline mt-2 text-4xl leading-none"},sm_beta_params.isSAOfferVisible?_x("$99","pricing license discounted price","smart-manager-for-wp-e-commerce"):_x("$149","pricing license discounted price","smart-manager-for-wp-e-commerce")),m("div",{class:"mt-6 rounded-md shadow"},m("a",{href:"https://www.storeapps.org/?buy-now=18694&qty=1".concat(sm_beta_params.isSAOfferVisible?"":"&coupon=sm-25off","&page=722&with-cart=1&utm_source=sm&utm_medium=in_app_pricing&utm_campaign=single_annual"),class:"flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline"},_x("Buy Now →","pricing table cta text","smart-manager-for-wp-e-commerce"))))),m("div",{class:"mt-4 overflow-hidden rounded-lg shadow-lg"},m("div",{class:"px-6 py-8 bg-indigo-100 sm:p-10 sm:pb-6"},m("div",null,m("span",{class:"inline-flex px-4 py-1 text-sm font-semibold leading-5 tracking-wide text-gray-50 uppercase bg-indigo-600 rounded-full"},_x("Best Seller","pricing table badge","smart-manager-for-wp-e-commerce"))),m("p",{class:"mt-5 text-xl leading-7 text-gray-500"},_x("5 sites (Annual)","pricing license type","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-baseline mt-4 text-4xl text-gray-500 leading-none"},m("s",null,_x("$249","pricing license price","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline mt-2 text-4xl leading-none"},sm_beta_params.isSAOfferVisible?_x("$125","pricing license discounted price","smart-manager-for-wp-e-commerce"):_x("$187","pricing license discounted price","smart-manager-for-wp-e-commerce")),m("div",{class:"mt-6 rounded-md shadow"},m("a",{href:"https://www.storeapps.org/?buy-now=18693&qty=1".concat(sm_beta_params.isSAOfferVisible?"":"&coupon=sm-25off","&page=722&with-cart=1&utm_source=sm&utm_medium=in_app_pricing&utm_campaign=multi_annual"),class:"flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline"},_x("Buy Now →","pricing table cta text","smart-manager-for-wp-e-commerce"))))),m("div",{class:"mt-4 overflow-hidden rounded-lg shadow-lg"},m("div",{class:"px-6 py-8 bg-gray-50 sm:p-10 sm:pb-6"},m("div",null,m("span",{class:"inline-flex px-4 py-1 text-sm font-semibold leading-5 tracking-wide text-indigo-600 uppercase bg-indigo-100 rounded-full"},_x("Trending","pricing table badge","smart-manager-for-wp-e-commerce"))),m("p",{class:"mt-5 text-xl leading-7 text-gray-500"},_x("1 site (Lifetime)","pricing license type","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-baseline mt-4 text-4xl text-gray-500 leading-none"},m("s",null,_x("$549","pricing license price","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline mt-2 text-4xl leading-none"},sm_beta_params.isSAOfferVisible?_x("$355","pricing license discounted price","smart-manager-for-wp-e-commerce"):_x("$412","pricing license discounted price","smart-manager-for-wp-e-commerce")),m("div",{class:"mt-6 rounded-md shadow"},m("a",{href:"https://www.storeapps.org/?buy-now=86835&qty=1".concat(sm_beta_params.isSAOfferVisible?"":"&coupon=sm-25off-l","&page=722&with-cart=1&utm_source=sm&utm_medium=in_app_pricing&utm_campaign=single_lifetime"),class:"flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline"},_x("Buy Now →","pricing table cta text","smart-manager-for-wp-e-commerce"))))),m("div",{class:"mt-4 overflow-hidden rounded-lg shadow-lg"},m("div",{class:"px-6 py-8 bg-gray-50 sm:p-10 sm:pb-6"},m("div",null,m("span",{class:"inline-flex px-4 py-1 text-sm font-semibold leading-5 tracking-wide text-indigo-600 uppercase bg-indigo-100 rounded-full"},_x("Trending","pricing table badge","smart-manager-for-wp-e-commerce"))),m("p",{class:"mt-5 text-xl leading-7 text-gray-500"},_x("5 sites (Lifetime)","pricing license type","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-baseline mt-4 text-4xl text-gray-500 leading-none"},m("s",null,_x("$599","pricing license price","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline mt-2 text-4xl leading-none"},sm_beta_params.isSAOfferVisible?_x("$389","pricing license discounted price","smart-manager-for-wp-e-commerce"):_x("$449","pricing license discounted price","smart-manager-for-wp-e-commerce")),m("div",{class:"mt-6 rounded-md shadow"},m("a",{href:"https://www.storeapps.org/?buy-now=86836&qty=1".concat(sm_beta_params.isSAOfferVisible?"":"&coupon=sm-25off-l","&page=722&with-cart=1&utm_source=sm&utm_medium=in_app_pricing&utm_campaign=multi_lifetime"),class:"flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline"},_x("Buy Now →","pricing table cta text","smart-manager-for-wp-e-commerce"))))))))),m("section",{class:"mt-8 max-w-3xl pt-12 pb-16 mx-auto sm:pt-16 sm:pb-20 lg:pt-12 lg:pb-12 lg:mt-8 bg-indigo-50"},m("div",{class:"max-w-2xl px-4 mx-auto sm:px-6 lg:px-8"},m("p",{class:"text-2xl font-semibold text-gray-800"},_x("I would happily pay five times for this product!","testimonial heading","smart-manager-for-wp-e-commerce")),m("img",{class:"w-48 m-3 sm:float-right",src:"https://www.storeapps.org/wp-content/uploads/2020/04/[email protected]",alt:_x("Premium Top Rated WooCommerce Plugin","testimonial content alt text","smart-manager-for-wp-e-commerce")}),m("p",{class:"mt-2 text-base text-gray-600"},_x("What really sold me on Smart Manager Pro was Bulk Edit. My assistant does not have to do any complex math now (earlier, I always feared she would make mistakes)! With Smart Manager, she has more free time at hand, so I asked her to set up auto responder emails. The response was phenomenal. Repeat sales were up by 19.5%.","testimonial content","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-center mt-2 text-base text-gray-800"},m("img",{class:"w-15 h-15 mr-3 rounded-full",src:"https://www.storeapps.org/wp-content/uploads/2019/04/jeff-smith.png",alt:_x("Jeff","testimonial customer name alt text","smart-manager-for-wp-e-commerce")}),m("span",null,_x("Jeff Smith","testimonial customer name","smart-manager-for-wp-e-commerce"))))),m("section",{class:"mt-12 sm:mt-16 lg:mt-16"},m("div",{class:"mt-8 max-w-screen-xl px-4 mx-auto sm:px-6 lg:px-8"},m("div",{class:"lg:text-center"},m("h2",{class:"mt-2 text-3xl font-extrabold leading-8 tracking-tight text-gray-900 sm:text-4xl sm:leading-10"}," ",_x("Smart Manager Pro: Packed with Tons of Powerful Features","pro features heading","smart-manager-for-wp-e-commerce")),m("p",{class:"max-w-3xl mt-4 text-xl leading-7 text-gray-500 lg:mx-auto"},_x("Upgrade now to enjoy advanced capabilities, enhanced features, improved performance, and premium support on demand.","pro features content","smart-manager-for-wp-e-commerce"))),m("div",{class:"text-center pt-4 mx-auto lg:pt-8 max-w-4xl"},m("div",{class:"py-2 align-center sm:px-6 lg:px-8"},m("div",{class:"overflow-hidden border border-gray-200 rounded"},m("table",{class:"bg-gray-50 md:min-w-full divide-y divide-gray-200"},m("thead",null,m("tr",null,m("th",{class:"px-3 py-3 xl:px-4 text-center"},_x("FEATURES","comparison table heading","smart-manager-for-wp-e-commerce")),m("th",{class:"px-3 py-3 xl:px-4 text-center"},_x("LITE (FREE)","comparison table heading","smart-manager-for-wp-e-commerce")),m("th",{class:"px-3 py-3 xl:px-4 text-center"},_x("PRO","comparison table heading","smart-manager-for-wp-e-commerce")))),m("tbody",{class:"bg-gray-50 leading-5 text-gray-700 divide-y divide-gray-200"},m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Supported Post Types","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("WordPress Posts, WooCommerce Products, Product Variations, Orders, Coupons","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Everything in Lite + WordPress Pages, Media, Users, SEO plugins, WooCommerce Subscriptions, Bookings, Memberships, Product Add-ons, Brands...","comparison table features data","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("all custom post types and their custom fields","comparison table features data","smart-manager-for-wp-e-commerce")),".")),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Inline (Direct) editing","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Upto three records without saving","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Unlimited","comparison table features data","smart-manager-for-wp-e-commerce"))),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Add or Delete Records","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Import products CSV","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Columns (Show / Hide / Sort)","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("WooCommerce Product Stock Log (Product History)","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Simple Search","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Advanced Search Using “AND” Filter","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Advanced Search Using “OR” Filter","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Saved Searches","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Bulk Edit / Batch Update","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6"},_x("Set to, Append, Prepend, Increase / Decrease by %, Increase / Decrease by number, Set datetime to, Set date to, Set time to, Upload images and many more...","comparison table features data","smart-manager-for-wp-e-commerce"))),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Undo Inline & Bulk Edits","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Schedule Bulk Edits","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Saved Bulk Edits","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Export All / Selected / Filtered Records As CSV","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Only WooCommerce Products Stock Columns","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("All Columns","comparison table features data","smart-manager-for-wp-e-commerce"))),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Scheduled CSV Exports for WooCommerce Orders","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Duplicate Single / Multiple Records","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Duplicate All Records In A Single Click","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Create Column Sets / Custom Views","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Print PDF Invoices","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Print Packing Slips For WooCommerce Orders In Bulk","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Manage WordPress User Roles","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("User-role / user based dashboard restrictions\t","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("View Customer Lifetime Value (LTV)","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Manage Custom Taxonomies","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Rename Column Headers","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Support","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("WordPress Forum","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Email, Phone, Video Calls","comparison table features data","smart-manager-for-wp-e-commerce"))),m("tr",null,m("td",{class:"px-3 py-8 font-medium xl:px-6"},_x("Pricing","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"–"),m("td",{class:"px-3 py-4 xl:px-6"},m("a",{href:"#",class:" px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline",onclick:function(t){t.preventDefault(),e.scrollToAnchor("sm_price_column_container")}},_x("Buy Smart Manager Pro →","comparison table features data","smart-manager-for-wp-e-commerce")))))))))),m("div",{class:"mx-auto mt-2 text-gray-500 sm:w-3/4 lg:w-3/4 lg:mt-16 lg:grid lg:grid-cols-3 lg:col-gap-8"},m("div",null,m("p",{class:"font-semibold text-gray-800"},_x('"This is a life-saver!"',"testimonial heading","smart-manager-for-wp-e-commerce")),m("p",{class:"mt-2 text-sm"},_x("The plugin has saved me HOURS (maybe even days) of work! It","testimonial content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("makes tedious tasks really simple and quick","testimonial content","smart-manager-for-wp-e-commerce")),". ",_x("The support team is fantastic too. Totally worth purchasing the premium version.","testimonial content","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-center mt-2 text-sm text-gray-800"},m("img",{class:"w-8 h-8 mr-3 rounded-full",src:"https://www.storeapps.org/wp-content/uploads/2019/04/bbcreamgirl.png",alt:_x("The BBCream Girl","testimonial customer name alt text","smart-manager-for-wp-e-commerce")}),m("span",null,_x("The BBCream Girl","testimonial customer name","smart-manager-for-wp-e-commerce")))),m("div",{class:"mt-6 lg:mt-0"},m("p",{class:"font-semibold text-gray-800"},_x('"A whole afternoon’s work in seconds"',"testimonial heading","smart-manager-for-wp-e-commerce")),m("p",{class:"mt-2 text-sm"},_x("We recommend Smart Manager Pro to everyone who is looking for an","testimonial content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("extremely multi-functional store manager","testimonial content","smart-manager-for-wp-e-commerce")),". ",_x("The plugin is absolutely worth it. Never again without Smart Manager.","testimonial content","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-center mt-2 text-sm text-gray-800"},m("img",{class:"w-8 h-8 mr-3 rounded-full",src:"https://www.storeapps.org/wp-content/uploads/2019/04/acrom.png",alt:_x("Acrom","testimonial customer name alt text","smart-manager-for-wp-e-commerce")}),m("span",null,_x("Acrom","testimonial customer name","smart-manager-for-wp-e-commerce")))),m("div",{class:"mt-6 lg:mt-0"},m("p",{class:"font-semibold text-gray-800"},_x('"20 or 30 times quicker store management"',"testimonial heading","smart-manager-for-wp-e-commerce")),m("p",{class:"mt-2 text-sm"},_x("I've got over 200 products and dreaded managing them one by one. Smart Manager Pro plugin lets me do this so much quicker, probably 20 or 30 times quicker. It is an absolutely invaluable tool.","testimonial content","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-center mt-2 text-sm text-gray-800"},m("img",{class:"w-8 h-8 mr-3 rounded-full",src:"https://www.storeapps.org/wp-content/uploads/2019/04/bryan-batcher.jpeg",alt:_x("Brian Batcher","testimonial customer name alt text","smart-manager-for-wp-e-commerce")}),m("span",null,_x("Brian Batcher","testimonial customer name","smart-manager-for-wp-e-commerce"))))),m("div",{class:"mt-12 max-w-screen-xl px-4 mx-auto sm:px-6 lg:px-8"},m("div",{class:"lg:text-center"},m("p",{class:"text-base font-semibold leading-6 tracking-wide text-indigo-600 uppercase"},_x("Get your precious time back","section content","smart-manager-for-wp-e-commerce")),m("h2",{class:"mt-2 text-3xl font-extrabold leading-8 tracking-tight text-gray-900 sm:text-4xl sm:leading-10"},_x("60 hours of work = 6 minutes with Smart Manager Pro","section heading","smart-manager-for-wp-e-commerce")),m("p",{class:"max-w-3xl mt-4 text-xl leading-7 text-gray-500 lg:mx-auto"},_x("Stop opening each product to edit price, stock, category, description, and other data.","section content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("Switch to Smart Manager Pro and spend your time wisely.","section content","smart-manager-for-wp-e-commerce"))," ",_x("Say goodbye to frustration, stress, and calculation errors that keep piling up.","section content","smart-manager-for-wp-e-commerce"))),m("div",{class:"mt-8 max-w-md mx-auto lg:max-w-5xl lg:grid lg:grid-cols-3 lg:col-gap-8"},m("div",{class:"relative lg:col-span-2"},m("div",{class:"mt-4 overflow-hidden"},m("div",{class:"px-6 pt-6 pb-8 bg-gray-50 sm:p-10 sm:pt-6"},m("p",{class:"my-3 text-lg leading-7 text-gray-500"},_x("Mundane store tasks without using Smart Manager","time spent using traditional way section heading","smart-manager-for-wp-e-commerce")),m("ul",{class:"text-base leading-6 text-gray-700 list-disc my-3"},m("li",null,_x("Add one new product or edit details → 3 mins","time spent using traditional way section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("Open and edit 1000s of products one-by-one → 3 hours – 30 hours","time spent using traditional way section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("Search any record to make edits → 3 mins","time spent using traditional way section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("Create 1000s of duplicates → 3 hours – 30 hours","time spent using traditional way section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("Search and delete products → 3 mins","time spent using traditional way section content","smart-manager-for-wp-e-commerce"))),m("span",{class:"mr-3 text-gray-700 text-sm text-lg font-medium"},_x("Total ≈ 6 hours – 60 hours","time spent using traditional way section content","smart-manager-for-wp-e-commerce"))))),m("div",{class:"lg:col-span-1"},m("div",{class:"mt-4 overflow-hidden"},m("div",{class:"px-6 pt-6 pb-8 bg-gray-50 sm:p-10 sm:pt-6"},m("p",{class:"my-3 text-lg leading-7 text-gray-500"},_x("Using Smart Manager","time spent using smart manager section heading","smart-manager-for-wp-e-commerce")),m("ul",{class:"text-base leading-6 text-gray-700 list-disc my-3"},m("li",null,_x("30 seconds (Inline edit)","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("2 mins (Bulk edit)","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("1 min (Search & Edit)","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("2 mins (Duplicate)","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("1 min (Search & Delete)","time spent using smart manager section content","smart-manager-for-wp-e-commerce"))),m("span",{class:"mr-3 text-gray-700 text-sm text-lg font-medium"},_x("≈ 6 minutes","time spent using smart manager section content","smart-manager-for-wp-e-commerce")))))),m("div",{class:"space-y-2"},m("p",{class:"mt-8 max-w-xl mx-auto text-lg text-gray-600"},_x("And it's not just products –","time spent using smart manager section content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("save time in editing orders, coupons, blog posts, users, WordPress post types, WordPress taxonomies and more.","time spent using smart manager section content","smart-manager-for-wp-e-commerce"))," ",_x("Experience a 10x productivity boost and massive time-savings with Smart Manager Pro!","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("p",{class:"max-w-xl mx-auto text-lg text-gray-600"},m("strong",null,_x("Reclaim precious time.","time spent using smart manager section content","smart-manager-for-wp-e-commerce"))," ",_x("to nurture your business and cherish moments with loved ones. If you're ready for a life with","time spent using smart manager section content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("more freedom and fulfillment","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),_x(", Smart Manager is your solution.","time spent using smart manager section content","smart-manager-for-wp-e-commerce"),m("a",{href:"#",class:"mt-4 flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline",onclick:function(t){t.preventDefault(),e.scrollToAnchor("sm_price_column_container")}},_x("Select a Plan Now →","pricing page cta","smart-manager-for-wp-e-commerce"))))),m("div",{class:"max-w-screen-xl px-4 pt-12 pb-16 mx-auto sm:pt-16 sm:pb-20 sm:px-6 lg:pt-12 lg:pb-28 lg:px-8"},m("h2",{class:"text-3xl font-extrabold leading-9 text-gray-900"},_x("Still hesitant? Buy with confidence – you’re in good hands","footer heading","smart-manager-for-wp-e-commerce")),m("div",{class:"pt-10 mt-6 border-t-2 border-gray-100"},m("dl",{class:"md:grid md:grid-cols-2 md:gap-8"},m("div",null,m("dt",{class:"text-lg font-medium leading-6 text-gray-900"},_x("You’re buying from the best!","footer content","smart-manager-for-wp-e-commerce")),m("dd",{class:"mt-2 text-base leading-6 text-gray-500"},m("p",null,_x("Rest assured that you will be well taken care of when you buy from StoreApps.","footer content","smart-manager-for-wp-e-commerce")),m("ul",{class:"mt-2 list-disc"},m("li",null,_x("Top selling plugins for marketing and store management","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,m("strong",null,_x("Official WooCommerce","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce"))," ",_x("and GoDaddy partner","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,_x("Founded in 2011, one of the early Woo third party developers","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,m("strong",null,"$",_x("40k+ customers","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce"),", "),_x("300k+ users, millions of downloads","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,_x("Consistent 5 star review ratings","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,_x("WordPress","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("community contributor","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),", ",_x("sponsor, speaker.","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce"))),m("p",null,m("img",{class:"mt-6",src:"https://www.storeapps.org/wp-content/uploads/2018/11/trust-badge-guaranteed-safe-checkout-300-grey.png",alt:_x("Guaranteed Safe Checkout","footer content - trust badge alt text","smart-manager-for-wp-e-commerce"),width:"300",height:"96"})))),m("div",{class:"relative mt-12 md:mt-0"},m("dt",{class:"text-lg font-medium leading-6 text-gray-900"},_x("Friendly support from top quality developers","footer content - trust badge alt text","smart-manager-for-wp-e-commerce")),m("dd",{class:"mt-2 text-base leading-6 text-gray-500"},m("p",null,_x("Our plugins are easy to use. We also have ample documentation. But whenever you need further assistance, you will get support from the same people who develop these plugins! We make sure you succeed!","footer content","smart-manager-for-wp-e-commerce")),m("p",null,m("img",{src:"https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-1024x402.png",alt:_x("StoreApps team is on your side","footer content - storeapps team image alt text","smart-manager-for-wp-e-commerce"),width:"980",height:"385",class:"mt-6 lg:absolute lg:bottom-0",srcset:"\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-1024x402.png 1024w,\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-450x177.png   450w,\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-300x118.png   300w,\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-768x301.png   768w,\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful.png          1491w\r ",sizes:"(max-width: 980px) 100vw, 980px"})))))))))}catch(e){SaErrorHandler.log("In PricingPage view:: ",e)}}}])&&fe(e.prototype,t),r&&fe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,ve(a.key),a)}}function ve(e){var t=function(e,t){if("object"!=we(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=we(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==we(t)?t:t+""}var xe=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize()},(t=[{key:"initialize",value:function(){try{this.modal=Object.assign({title:"",content:"",autoHide:!1,hideDelay:-1,width:"w-1/4",isFooterItemsCenterAligned:!1,hideFooter:!1,cta:{title:_x("Ok","button","smart-manager-for-wp-e-commerce"),callback:this.close},closeCTA:{title:_x("Cancel","button","smart-manager-for-wp-e-commerce"),callback:this.close},contentClass:"",route:""},window[pluginKey].modal||{}),this.showModal=Object.keys(window[pluginKey].modal||{}).length>0&&""!==this.modal.title&&""!==this.modal.content,this.showCloseCTA=Object.keys(window[pluginKey].modal||{}).length>0&&Object.keys(window[pluginKey].modal.closeCTA||{}).length>0,this.showCloseIcon=!(Object.keys(window[pluginKey].modal||{}).length>0&&window[pluginKey].modal.hasOwnProperty("showCloseIcon"))||window[pluginKey].modal.showCloseIcon}catch(e){SaErrorHandler.log("In Modal initialize:: ",e)}}},{key:"close",value:function(){var e=this;try{setTimeout((function(){try{var t;window[pluginKey].modal={},void 0!==window[pluginKey].showPannelDialog&&"function"==typeof window[pluginKey].showPannelDialog&&void 0!==window[pluginKey].getDefaultRoute&&"function"==typeof window[pluginKey].getDefaultRoute&&window[pluginKey].showPannelDialog(null===(t=e.modal)||void 0===t?void 0:t.route,window[pluginKey].getDefaultRoute(!0))}catch(e){SaErrorHandler.log("In Modal close:: ",e)}}),200)}catch(e){SaErrorHandler.log("In Modal close:: ",e)}}},{key:"oncreate",value:function(){try{this.modal.hasOwnProperty("onCreate")&&"function"==typeof this.modal.onCreate&&this.modal.onCreate()}catch(e){SaErrorHandler.log("In Modal oncreate:: ",e)}}},{key:"onupdate",value:function(){try{this.modal.hasOwnProperty("onUpdate")&&"function"==typeof this.modal.onUpdate&&this.modal.onUpdate()}catch(e){SaErrorHandler.log("In Modal onUpdate:: ",e)}}},{key:"view",value:function(){var e=this;try{var t;return this.initialize(),this.modal.hideDelay>0&&setTimeout((function(){try{if(e.showModal&&e.modal.autoHide){var t=document.getElementsByClassName(window[pluginKey].pluginSlug+"-modal-close");t.length>0&&t[0].click()}}catch(e){SaErrorHandler.log("In Modal auto close:: ",e)}}),this.modal.hideDelay),this.showModal?m("div",{class:"modal fade fixed top-0 left-0 w-full h-full flex items-center justify-center bg-gray-800 bg-opacity-75 z-50",id:"".concat(window[pluginKey].pluginSlug,"_modal"),"data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"staticBackdropLabel","aria-modal":"true",role:"dialog"},m("div",{class:"modal-dialog relative w-1/3 max-w-2xl mx-auto ".concat((null===(t=this.modal)||void 0===t?void 0:t.modalClass)||"")},m("div",{class:"modal-content bg-white rounded-lg shadow-xl overflow-hidden pointer-events-auto ".concat(this.modal.contentClass)},m("div",{class:"modal-header flex items-center justify-between px-5 py-3 border-b border-gray-200"},m("h5",{class:"text-lg font-semibold text-gray-800"},m.trust(this.modal.title||"")),this.showCloseIcon?m("button",{type:"button",class:"".concat(window[pluginKey].pluginSlug,"-button-close ").concat(window[pluginKey].pluginSlug,"-modal-close focus:outline-none"),"data-bs-dismiss":"modal","aria-label":"Close",onclick:this.close,title:_x("Close [ESC]","modal close button title","smart-manager-for-wp-e-commerce")},m("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500 hover:text-gray-700",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"}))):""),m("div",{class:"modal-body px-5 py-4 max-h-96 overflow-y-auto text-sm text-gray-700"},m.trust(this.modal.content||"")),!this.modal.hideFooter&&m("div",{class:"modal-footer flex items-center px-5 py-3 border-t border-gray-200 ".concat(this.modal.isFooterItemsCenterAligned?"justify-center":"justify-end")},this.modal.cta.title?m("button",{type:"button",class:"px-5 py-2 bg-indigo-600 text-white text-sm font-medium rounded-md shadow hover:bg-indigo-500 focus:outline-none",onclick:function(){e.modal.cta.callback&&"function"==typeof e.modal.cta.callback&&e.modal.cta.callback(),(!e.modal.cta.hasOwnProperty("closeModalOnClick")||e.modal.cta.closeModalOnClick)&&e.close()}},this.modal.cta.title):"",this.showCloseCTA&&this.modal.closeCTA.title?m("button",{type:"button",class:"ml-2 px-5 py-2 bg-gray-200 text-gray-600 text-sm font-medium rounded-md hover:bg-gray-300 focus:outline-none","data-bs-dismiss":"modal",onclick:function(){e.modal.closeCTA.callback&&"function"==typeof e.modal.closeCTA.callback&&e.modal.closeCTA.callback(),(!e.modal.closeCTA.hasOwnProperty("closeModalOnClick")||e.modal.closeCTA.closeModalOnClick)&&e.close()}},this.modal.closeCTA.title):"")))):""}catch(e){SaErrorHandler.log("In Modal view:: ",e)}}}])&&be(e.prototype,t),r&&be(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function _e(e){return(_e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(r),!0).forEach((function(t){Oe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Oe(e,t,r){return(t=Pe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Pe(a.key),a)}}function Pe(e){var t=function(e,t){if("object"!=_e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=_e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_e(t)?t:t+""}var Ee=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize()}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog constructor:: ",e)}},(t=[{key:"initialize",value:function(){try{var e=new FormData,t={cmd:"get_all_privileges",active_module:"access-privilege",security:window.smart_manager.saCommonNonce||""};for(var r in t)e.append(r,t[r]);new c({ruleGroups:[Se({},c.data.default.ruleGroup),Se({},c.data.default.ruleGroup)],fields:{},possibleOperators:{}}),c.accessPrivilegeSettings(e,(function(e,t){e.ruleGroups={condition:"AND",rules:t}||{condition:"AND",rules:[Se({},c.data.default.ruleGroup),Se({},c.data.default.ruleGroup)]},e.privilegeRuleGroups=e.ruleGroups.rules||[],new c({ruleGroups:e.privilegeRuleGroups,fields:{},possibleOperators:{}})}),this)}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog initialize:: ",e)}}},{key:"closeDialog",value:function(){try{void 0!==window.smart_manager.showPannelDialog&&"function"==typeof window.smart_manager.showPannelDialog&&window.smart_manager.showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog closeDialog:: ",e)}}},{key:"view",value:function(){var e=this;try{return m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-4xl max-h-full mt-12 overflow-auto transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Privilege Settings","access privilege settings side pannel - modal title","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("button",{onclick:function(){try{if(c.data.ruleGroups.length>0){var t=[];e.ruleCount=0,c.data.ruleGroups.map((function(r){var a=[];r.rules.map((function(t){var r=Se({},t);delete r.key,a.push(r),e.ruleCount++})),t.push({condition:r.condition,rules:a})})),window.smart_manager.privilegeSettingsRules=t,window.smart_manager.privilegeSettingsUpdate()}e.closeDialog()}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog Update click:: ",e)}},type:"button",class:"inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo"},"Save")),m("button",{onclick:function(){try{e.closeDialog()}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog close click:: ",e)}},class:"p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100"},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline gap-2 mb-3 -mt-1"},m("span",{class:"mb-3 font-medium text-gray-700"},_x("Manage dashboards access for user roles and users","access privilege settings description","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline gap-2 mb-3 -mt-1"},m("span",{class:"text-gray-700"},m("i",null,_x("Note: The privilege setting for a user email will always take precedence over a user role","access privilege settings description","smart-manager-for-wp-e-commerce")))),c.data.ruleGroups?c.data.ruleGroups.map((function(e,t){return m(j,{id:t,key:e.key,isOnlyChild:1==c.data.ruleGroups.length?1:0})})):""))))}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog view:: ",e)}}}])&&je(e.prototype,t),r&&je(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Ce=document.getElementById("sa_manager_main"),Ie=function(e){try{return[m(I,e.attrs),m(xe,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/":: ',e)}},Ke={"/advancedSearch":{view:function(e){try{if(Object.keys(window.smart_manager.colModelSearch).length>0)return[m(I,e.attrs),m(H,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/advancedSearch":: ',e)}}},"/bulkEdit":{view:function(e){try{if(window.smart_manager.columnNamesBatchUpdate&&Object.keys(window.smart_manager.columnNamesBatchUpdate).length>0&&1==window.smart_manager.sm_beta_pro)return[m(xe,e.attrs),m(I,e.attrs),m(Z,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/bulkEdit":: ',e)}}},"/columnManager":{view:function(e){try{if(window.smart_manager.currentColModel&&Object.keys(window.smart_manager.currentColModel).length>0)return[m(I,e.attrs),m(re,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/columnManager":: ',e)}}},"/settings":{view:function(e){try{if(window.smart_manager.allSettings&&Object.keys(window.smart_manager.allSettings).length>0)return[m(I,e.attrs),m(pe,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/settings":: ',e)}}},"/pricing":{view:function(e){try{return[m(I,e.attrs),m(he,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/pricing":: ',e)}}},"/privilegeSettings":{view:function(e){try{if(0==window.smart_manager.gettingData)return[m(I,e.attrs),m(Ee,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/privilegeSettings":: ',e)}}},"/dashboard":{view:function(e){return Ie(e)}},"/":{view:function(e){return Ie(e)}}};m.route(Ce,"/",Ke),jQuery(document).on("smart_manager_post_load_grid","#sm_editor_grid",(function(){m.route(Ce,"/",Ke)})),document.addEventListener("keyup",(function(e){if(0!=window.smart_manager.sm_beta_pro&&("Enter"===e.key||"Escape"===e.key)){var t=document.getElementsByClassName("Enter"===e.key?"sm-button-primary":"sm-button-close")[0]||"";t&&t.click()}}))}]);
     1!function(e){function t(t){for(var a,i,s=t[0],l=t[1],c=t[2],m=0,d=[];m<s.length;m++)i=s[m],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&d.push(n[i][0]),n[i]=0;for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(e[a]=l[a]);for(u&&u(t);d.length;)d.shift()();return o.push.apply(o,c||[]),r()}function r(){for(var e,t=0;t<o.length;t++){for(var r=o[t],a=!0,s=1;s<r.length;s++){var l=r[s];0!==n[l]&&(a=!1)}a&&(o.splice(t--,1),e=i(i.s=r[0]))}return e}var a={},n={0:0},o=[];function i(t){if(a[t])return a[t].exports;var r=a[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=a,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(r,a,function(t){return e[t]}.bind(null,a));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var s=window.webpackJsonp=window.webpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;o.push([1,1]),r()}([,function(e,t,r){"use strict";r.r(t);r(0);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,l(a.key),a)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{var r=t.ruleGroups||[];e.data.ruleGroups=r.map((function(t){return t.key=e.generateKey(),t.rules=t.rules.map((function(t){return t.key=e.generateKey(),t})),t})),e.data.fields=t.fields||{},e.data.possibleOperators=t.possibleOperators||{}}catch(e){SaErrorHandler.log("In DashboardModel constructor:: ",e)}}return t=e,a=[{key:"data",get:function(){return e._data},set:function(t){e._data=t}},{key:"flags",get:function(){return e._flags.isPrivilegeSettings="/privilegeSettings"==m.route.get()?1:0,e._flags},set:function(t){e._flags=t}},{key:"generateKey",value:function(){try{return Math.random().toString(36).substr(7)}catch(e){SaErrorHandler.log("In DashboardModel generateKey:: ",e)}}},{key:"add",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;try{var r=o({},e.data.default.rule)||{};if(r.key=e.generateKey(),t>=0){var a=e.data.ruleGroups[t]||[];a&&a.rules.push(r)}else{var n=o({},e.data.default.ruleGroup)||{};n.rules=[r],n.key=e.generateKey(),e.data.ruleGroups.push(n)}}catch(e){SaErrorHandler.log("In DashboardModel add:: ",e)}}},{key:"delete",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;try{if(r>=0){var a=e.data.ruleGroups[t]||[],n=a.rules||[];n.splice(r,1)}else e.data.ruleGroups.splice(t,1)}catch(e){SaErrorHandler.log("In DashboardModel delete:: ",e)}}},{key:"loadData",value:function(e,t,r){try{window[pluginKey].commonManagerAjaxUrl||(window[pluginKey].commonManagerAjaxUrl=-1!==ajaxurl.indexOf("?")?ajaxurl+"&action=sa_manager_include_file":ajaxurl+"?action=sa_manager_include_file"),m.request({method:"POST",url:window[pluginKey].commonManagerAjaxUrl,body:e,responseType:"json"}).then((function(e){void 0!==r?t(r,e):t(e)}))}catch(e){SaErrorHandler.log("In DashboardModel generateKey:: ",e)}}},{key:"accessPrivilegeSettings",value:function(e,t,r){this.loadData(e,t,r)}}],(r=null)&&s(t.prototype,r),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}(),u={type:"",operator:"",value:""};function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return b(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function v(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,x(a.key),a)}}function x(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=d(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}c.data={ruleGroups:{},default:{ruleGroup:{condition:"AND",rules:[u]},rule:u},fields:{},possibleOperators:{}},c.flags={};var _=function(){return function(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize(t)}catch(e){SaErrorHandler.log("In Rule constructor:: ",e)}}),[{key:"initialize",value:function(e){try{var t;this.ruleGroupId=e.attrs.ruleGroupId,this.ruleId=e.attrs.id,this.key=e.attrs.key,this.isOnlyChild=e.attrs.isOnlyChild||0,this.showAddRule=e.attrs.showAddRule||0,this.extraDateOperators=["increase_date_by","decrease_date_by"],this.multiValueOperators=["anyOf","notAnyOf"],this.dateDurations={days:_x("days","bulk edit action - date duration","smart-manager-for-wp-e-commerce"),weeks:_x("weeks","bulk edit action - date duration","smart-manager-for-wp-e-commerce"),months:_x("months","bulk edit action - date duration","smart-manager-for-wp-e-commerce"),years:_x("years","bulk edit action - date duration","smart-manager-for-wp-e-commerce")},this.timeDurations={hours:_x("hours","bulk edit action - time duration","smart-manager-for-wp-e-commerce"),minutes:_x("minutes","bulk edit action - time duration","smart-manager-for-wp-e-commerce")},this.additionalValues=[],this.multiListOperators=["add_to","remove_from"],this.setCurrentRule(),this.refreshValues(),this.lineItemOperators=Object.keys((null===(t=window)||void 0===t||null===(t=t[pluginKey])||void 0===t||null===(t=t[window[pluginKey].pluginSlug])||void 0===t||null===(t=t.columnNamesBatchUpdate)||void 0===t||null===(t=t["custom/line_items"])||void 0===t?void 0:t.actions)||{})||[]}catch(e){SaErrorHandler.log("In Rule initialize:: ",e)}}},{key:"oncreate",value:function(){try{this.intializeSelectwoo(),this.initializeCurrentValueField()}catch(e){SaErrorHandler.log("In Rule oncreate:: ",e)}}},{key:"onupdate",value:function(){try{this.intializeSelectwoo(),this.initializeCurrentValueField()}catch(e){SaErrorHandler.log("In Rule onupdate:: ",e)}}},{key:"initializeCurrentValueField",value:function(){try{var e=jQuery("input[rule-id="+this.ruleId+"]").data("Zebra_DatePicker");if(e&&(e.destroy(),jQuery("input[rule-id="+this.ruleId+"]").removeAttr("readonly").attr("placeholder",this.valuePlaceholder)),"datetime"==this.fieldType||"date"==this.fieldType||this.fieldType==window[pluginKey].pluginSlug+".datetime"||"time"==this.fieldType||this.fieldType==window[pluginKey].pluginSlug+".time")if(1==this.extraDateOperators.includes(this.op))this.valuePlaceholder=_x("Enter value","placeholder","smart-manager-for-wp-e-commerce");else{var t=this,r="YYYY-MM-DD"+("set_datetime_to"==this.op||this.fieldType==window[pluginKey].pluginSlug+".datetime"||"datetime"==this.fieldType&&"set_date_to"!=this.op?" HH:MM:SS":"");r="set_time_to"==this.op?"HH:MM":r;var a="Y-m-d"+("set_datetime_to"==this.op||this.fieldType==window[pluginKey].pluginSlug+".datetime"||"datetime"==this.fieldType&&"set_date_to"!=this.op?" H:i:s":"");a="set_time_to"==this.op?"H:i":a,jQuery("input[rule-id="+this.ruleId+"]").Zebra_DatePicker({format:a,show_icon:!1,show_select_today:!1,default_position:"below",readonly_element:!1,onSelect:function(e,r){t.value=e,t.refreshRule()}}).attr("placeholder",r)}}catch(e){SaErrorHandler.log("In Rule initializeCurrentValueField:: ",e)}}},{key:"showWPMediaLib",value:function(){try{var e,t=this,r="multipleImage"===this.fieldType;if(e)return void e.open();(e=wp.media.frames.file_frame=wp.media({multiple:r})).on("select",(function(){var a=!0===r?e.state().get("selection").toJSON():e.state().get("selection").first().toJSON(),n=new Set;a&&(t.value=a.id||"",t.meta.attachmentURL=a.url||"",!0===r&&a.length>0&&(Object.values(a).forEach((function(e){n.add(e.id)})),t.value=w(n).join(",")),t.refreshRule(),m.redraw())})),e.open()}catch(e){SaErrorHandler.log("In Rule showWPMediaLib:: ",e)}}},{key:"setCurrentRule",value:function(){try{this.ruleGroup=c.data.ruleGroups[this.ruleGroupId]||[],this.rules=this.ruleGroup.rules||[],this.rule=this.rules[this.ruleId]||{},this.field=this.rule.type||"",this.op=this.rule.operator||"",this.value=this.rule.value||"",this.meta=f({},this.rule.meta)||{},""==this.field&&(this.field=Object.keys(c.data.fields)[0]||[])}catch(e){SaErrorHandler.log("In Rule setCurrentRule:: ",e)}}},{key:"refreshRule",value:function(e){try{var t=e||this;this.rules[t.ruleId]={type:t.field,operator:t.op,value:t.value,key:t.key,meta:t.meta}}catch(e){SaErrorHandler.log("In Rule refreshRule:: ",e)}}},{key:"refreshValues",value:function(){try{this.fieldObj=c.data.fields[this.field]||{},this.meta.displayTitles=this.meta.displayTitles?this.meta.displayTitles:{},this.fieldType=this.fieldObj.type||"text",this.field_src=this.fieldObj.src,this.possibleValues=this.fieldObj.values||[];var e=this.fieldType.indexOf(window[pluginKey].pluginSlug+".");if(e>=0&&(this.fieldType=this.fieldType.substr(e+3)),this.possibleOperators=f({},c.data.possibleOperators[this.fieldType])||{},this.fieldObj.custom_actions&&(this.possibleOperators=f(f({},Object.fromEntries(Object.entries(this.fieldObj.custom_actions).map((function(e){var t=p(e,2),r=t[0],a=t[1];return[r,"object"===d(a)?a.label:a]})))),this.possibleOperators)),this.possibleOperators=1===c.flags.isPrivilegeSettings?{has_access:"has access",no_access:"no access"}:this.possibleOperators,this.fieldObj.actions&&(this.possibleOperators=this.fieldObj.actions||{},this.possibleValues=[]),0===Object.keys(this.possibleOperators).length&&(this.fieldType=this.possibleValues.length>0?" ":"text",this.possibleOperators=c.data.possibleOperators[this.fieldType]||{}),""==this.op&&Object.keys(this.possibleOperators).length>0&&(this.op=Object.keys(this.possibleOperators)[0]||"",this.meta.displayTitles.operator||(this.meta.displayTitles.field=this.fieldObj.title||this.field),this.meta.displayTitles.operator=Object.values(this.possibleOperators)[0]||this.op,this.refreshRule()),this.fieldObj.actions&&""!=this.op&&(this.possibleValues=this.fieldObj.values[this.op]||[]),this.fieldObj.additionalValues&&(this.additionalValues=this.fieldObj.additionalValues,"remove_from"===this.op?delete this.additionalValues.custom:"add_to"!==this.op||this.additionalValues.hasOwnProperty("custom")||(this.additionalValues.custom="Custom"),this.currentOp=Object.keys(this.additionalValues)[0],this.possibleValues=this.fieldObj.values[this.currentOp]||[],this.meta.attributeName?this.meta.attributeName?this.possibleValues=this.fieldObj.values[this.meta.attributeName]||[]:"custom"===this.meta.attributeName&&(this.possibleValues=[]):this.meta.attributeName=this.currentOp),""==this.value&&this.possibleValues.length>0){var t=this.possibleValues[0]||{};this.value=t.key||"",this.refreshRule()}"datetime"!=this.fieldType&&this.fieldType!=window[pluginKey].pluginSlug+".datetime"||1!=this.extraDateOperators.includes(this.op)||(this.dateDurations=Object.assign(this.dateDurations,this.timeDurations)),"time"!=this.fieldType&&this.fieldType!=window[pluginKey].pluginSlug+".time"||1!=this.extraDateOperators.includes(this.op)||(this.dateDurations=this.timeDurations)}catch(e){SaErrorHandler.log("In Rule refreshValues:: ",e)}}},{key:"intializeSelectwoo",value:function(){try{var e=this,t="/bulkEdit"===m.route.get()&&window[pluginKey].hasOwnProperty("bulkEditFields")?window[pluginKey].bulkEditFields:"/advancedSearch"===m.route.get()&&window[pluginKey].hasOwnProperty("advancedSearchFields")?window[pluginKey].advancedSearchFields:[];jQuery("."+window[pluginKey].pluginSlug+"-advanced-search-select").each((function(r){try{var a=jQuery(this).attr("rule-id"),n="",o="";jQuery(".".concat(window[pluginKey].pluginSlug,"-advanced-search-select.select-op")).each((function(e){parseInt(jQuery(this).attr("rule-id"))===parseInt(a)&&(n=jQuery(this).val())})),jQuery(".".concat(window[pluginKey].pluginSlug,"-advanced-search-select.select-field")).each((function(e){parseInt(jQuery(this).attr("rule-id"))===parseInt(a)&&(o=jQuery(this).val())}));var i={width:"15em",dropdownCssClass:window[pluginKey].pluginSlug+"_advanced_search_select2_dropdown"};if(window[pluginKey].hasOwnProperty("select2RulesDropdownParent")&&(i.dropdownParent=jQuery(window[pluginKey].select2RulesDropdownParent)),jQuery(this).hasClass("select-field")&&(i.ajax={transport:function(e,r,a){var n,o=t.filter((function(t){return null==t?void 0:t.text.toLowerCase().includes((e.data.term||"").toLowerCase())})),i=20*(parseInt((null==e||null===(n=e.data)||void 0===n?void 0:n.page)||1)-1),s=i+20;r({results:o.slice(i,s),pagination:{more:s<o.length}})}}),jQuery(this).hasClass("select-value")&&([].concat(w(null==e?void 0:e.lineItemOperators),["copy_from"]).includes(n)||"remove_from"===e.op&&["custom_note_for_customer"].includes(e.field_src)||o&&o.includes("plan")&&"wc_user_membership"===window[pluginKey].dashboardKey)){var s="",l={cmd:"get_batch_update_copy_from_record_ids",active_module:window[pluginKey].dashboardKey,security:window[pluginKey].saCommonNonce,is_taxonomy:window[pluginKey].hasOwnProperty("taxonomyDashboards")&&window[pluginKey].taxonomyDashboards[window[pluginKey].dashboardKey]?1:0};switch("product"===window[pluginKey].dashboardKey&&(l.load_variations=!0),!0){case["copy_from","copy_coupon_from","copy_product_from"].includes(n):s=sprintf(_x("Select %s","placeholder","smart-manager-for-wp-e-commerce"),window[pluginKey].dashboardDisplayName);break;case["add_product","remove_product"].includes(n):l.active_module="product",l.load_variations=l.skip_variation_parent=!0,s=_x("Select Product","placeholder","smart-manager-for-wp-e-commerce"),l.load_published_only=!0;break;case["add_coupon","remove_coupon"].includes(n):l.active_module="shop_coupon",s=_x("Select Coupon","placeholder","smart-manager-for-wp-e-commerce"),l.load_published_only=!0;break;case"remove_from"===e.op:s=_x("Select Notes","placeholder","smart-manager-for-wp-e-commerce"),l.cmd="get_order_notes_for_customer";break;case o.includes("plan")&&"wc_user_membership"===window[pluginKey].dashboardKey:l.active_module="wc_membership_plan",s=_x("Select Plan","placeholder","smart-manager-for-wp-e-commerce")}i=Object.assign({placeholder:s,ajax:{url:window[pluginKey].commonManagerAjaxUrl,dataType:"json",delay:250,data:function(e){return l.search_term=e.term,l},processResults:function(e){var t=[];return e&&jQuery.each(e,(function(e,r){t.push({id:e,text:r})})),{results:t}},cache:!0}},i)}else if(jQuery(this).hasClass("restrict-by-roles")||jQuery(this).hasClass("restrict-by-users")){var u=jQuery(this).hasClass("restrict-by-roles")?"get_user_roles":"get_users";i=Object.assign({placeholder:jQuery(this).hasClass("restrict-by-roles")?_x("Search user roles","placeholder","smart-manager-for-wp-e-commerce"):_x("Search user","placeholder","smart-manager-for-wp-e-commerce"),ajax:{url:window[pluginKey].commonManagerAjaxUrl,dataType:"json",delay:250,data:function(e){return{term:e.term,cmd:u,active_module:"access-privilege",security:window[pluginKey].saCommonNonce,page:e.page||1,offset:e.offset||0,previous_roles:e.previous_roles||[]}},processResults:function(e,t){return e.hasOwnProperty("additional_params")&&(t.offset=e.additional_params.offset||0,t.previous_roles=e.additional_params.previous_roles||[]),t.page=t.page||1,{results:e.data.results||[],pagination:e.data.pagination||[]}},cache:!0}},i)}else jQuery(this).hasClass("dashboard-names")&&(i=Object.assign({placeholder:_x("Select Dashboards","placeholder","smart-manager-for-wp-e-commerce"),multiple:!0,ajax:{url:window[pluginKey].commonManagerAjaxUrl,dataType:"json",delay:250,data:function(e){return{term:e.term,cmd:"get_dashboards",active_module:"access-privilege",security:window[pluginKey].saCommonNonce,page:e.page||1}},processResults:function(e,t){return t.page=t.page||1,{results:e.data.results||[]}},cache:!0}},i));var g=jQuery(this).parent().find(".dashboard-names option");if(g&&g.length)for(var f=new Set,h=0;h<g.length;h++){var b=g[h];f.has(b.value)?b.remove():f.add(b.value)}if(jQuery(this).addClass(window[pluginKey].pluginSlug+"-select2").select2(i).off("change").on("change",(function(t){try{var r=t.target.value||"",a=t.target.options&&t.target.selectedIndex>0&&t.target.options.hasOwnProperty(t.target.selectedIndex)?t.target.options[t.target.selectedIndex].text:r;e.ruleGroupId=t.target.getAttribute("rule-group-id"),e.ruleId=t.target.getAttribute("rule-id"),jQuery(this).parent().find(".select-op, .select-value, .select-copy-from-field-value, .select-attrName").select2("destroy"),e.setCurrentRule(),jQuery(this).hasClass("select-field")||jQuery(this).hasClass("restrict-by-roles")||jQuery(this).hasClass("restrict-by-users")?(e.op="",e.value="",jQuery(this).hasClass("restrict-by-roles")?e.meta.hasOwnProperty("user_roles")||(e.meta.user_roles={}):jQuery(this).hasClass("restrict-by-users")&&(e.meta.hasOwnProperty("user_emails")||(e.meta.user_emails={})),e.meta.hasOwnProperty("displayTitles")||(e.meta.displayTitles={}),e.meta.displayTitles.field=a||"",e.field=r,e.fieldObj=c.data.fields[e.field]||{title:a,type:"text",values:{}},e.refreshRule(e),e.handleCustomActions(e)):jQuery(this).hasClass("select-op")?(0==window[pluginKey].sm_beta_pro&&window[pluginKey].proAdvancedSearchOperators&&window[pluginKey].proAdvancedSearchOperators.hasOwnProperty(r)&&void 0!==window[pluginKey].showNotification&&"function"==typeof window[pluginKey].showNotification?(e.value="",window[pluginKey].notification={message:sprintf(_x("This feature is available only in the %s version","modal content","smart-manager-for-wp-e-commerce"),'<a href="'+window[pluginKey].pricingPageURL+'" target="_blank">'+_x("Pro","modal content","smart-manager-for-wp-e-commerce")+"</a>"),hideDelay:window[pluginKey].notificationHideDelayInMs},window[pluginKey].showNotification()):(e.op=r,e.value="",e.meta.hideValue=!1,e.meta.displayTitles&&(e.meta.displayTitles.operator=e.meta.displayTitles.operator?a:""),e.fieldObj=c.data.fields[e.field]||{},e.handleCustomActions(e),e.meta.attributeName="",e.meta["attribute-values"]="",e.meta.replace_value=""),e.refreshRule()):jQuery(this).hasClass("select-value")||jQuery(this).hasClass("select-copy-from-field-value")?e.updateRuleValue(t):jQuery(this).hasClass("dashboard-names")?(jQuery(this).off("select2:select").on("select2:select",(function(t){var r=t.params.data.optgroup||"",a=t.params.data.id||"";"string"==typeof r&&r.trim().length>0&&"string"==typeof a&&a.trim().length>0&&(e.meta.hasOwnProperty("user_roles")&&!e.meta.user_roles[r]&&(e.meta.user_roles[r]={}),e.meta.hasOwnProperty("user_roles")&&!e.meta.user_roles[r].hasOwnProperty(t.params.data.id)&&(e.meta.user_roles[r]=Object.assign(y({},t.params.data.id,t.params.data.text),e.meta.user_roles[r]),e.value=e.meta.user_roles),e.meta.hasOwnProperty("user_emails")&&!e.meta.user_emails[r]&&(e.meta.user_emails[r]={}),e.meta.hasOwnProperty("user_emails")&&!e.meta.user_emails[r].hasOwnProperty(t.params.data.id)&&(e.meta.user_emails[r]=Object.assign(y({},t.params.data.id,t.params.data.text),e.meta.user_emails[r]),e.value=e.meta.user_emails),e.refreshRule())})),jQuery(this).off("select2:unselect").on("select2:unselect",(function(t){(e.meta.user_roles||e.meta.user_emails)&&(e.meta.user_roles&&Object.entries(e.meta.user_roles).forEach((function(e){var r=p(e,2),a=(r[0],r[1]);if("object"===d(a)&&null!==a)for(var n in a)a.hasOwnProperty(n)&&n===t.params.data.id&&delete a[n]})),e.meta.user_emails&&Object.entries(e.meta.user_emails).forEach((function(e){var r=p(e,2),a=(r[0],r[1]);if("object"===d(a)&&null!==a)for(var n in a)a.hasOwnProperty(n)&&n===t.params.data.id&&delete a[n]})))})),e.refreshRule()):jQuery(this).hasClass("select-attrName")&&(e.value="",e.updateRuleValue(t)),m.redraw()}catch(t){SaErrorHandler.log("In Rule on-change:: ",t)}})),e.field&&jQuery(this).hasClass("select-field")&&parseInt(e.ruleGroupId)===parseInt(jQuery(this).attr("rule-group-id"))&&parseInt(a)===parseInt(jQuery(this).attr("rule-id"))&&t.length){var v=t.find((function(t){return t.id===e.rules[a].type}));v&&jQuery(this).append(new Option(v.text,v.id,!0,!0))}}catch(r){SaErrorHandler.log("In Rule advanced-search-select jquery:: ",r)}}))}catch(e){SaErrorHandler.log("In Rule intializeSelectwoo:: ",e)}}},{key:"renderFieldSelect",value:function(){try{return m("[",null," ",1===c.flags.isPrivilegeSettings?m("[",null," ",m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:(0===this.ruleGroupId?"restrict-by-users":"restrict-by-roles")+" py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select "+"".concat(window[pluginKey].pluginSlug,"-advanced-search-select")},m("option",{value:this.field,selected:"selected"},this.meta.hasOwnProperty("displayTitles")&&this.meta.displayTitles.hasOwnProperty("field")?this.meta.displayTitles.field:this.field))," "):m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:"select-field py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select"),"data-placeholder":"Select"})," ")}catch(e){SaErrorHandler.log("In Rule renderFieldSelect:: ",e)}}},{key:"renderOperatorSelect",value:function(){var e=this;try{return m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select select-op")},Object.entries(this.possibleOperators).map((function(t){var r=p(t,2),a=r[0],n=r[1];return m("option",{value:a,selected:e.op===a?"selected":""},n||a)})))}catch(e){SaErrorHandler.log("In Rule renderOperatorSelect:: ",e)}}},{key:"updateRuleValue",value:function(e){try{var t=e.target.getAttribute("meta-key")||"";""!=t?this.meta[t]=e.target.value||"":this.value=e.target.value||"","custom"===this.meta[t]&&(this.value=""),this.ruleGroupId=e.target.getAttribute("rule-group-id"),this.ruleId=e.target.getAttribute("rule-id"),this.refreshRule()}catch(e){SaErrorHandler.log("In Rule updateRuleValue:: ",e)}}},{key:"renderValues",value:function(){var e=this;try{var t=!0===this.multiValueOperators.includes(this.op)?_x('Enter "|" separated values',"placeholder","smart-manager-for-wp-e-commerce"):_x("Enter value","placeholder","smart-manager-for-wp-e-commerce");if(this.valuePlaceholder=t,0==this.extraDateOperators.includes(this.op))switch(this.fieldType){case"date":this.valuePlaceholder="yyyy-mm-dd";break;case window[pluginKey].pluginSlug+".datetime":this.valuePlaceholder="yyyy-mm-dd hh:mm:ss";break;case window[pluginKey].pluginSlug+".time":this.valuePlaceholder="hh:mm";break;default:this.valuePlaceholder=t}var r="",a="";switch(""!=this.op){case"search_and_replace"===this.op:r="replace_value";break;case 1==this.extraDateOperators.includes(this.op):r="dateDuration",a=" flex items-center gap-2";break;case 1==this.multiListOperators.includes(this.op)&&"custom_product_attributes"===this.field_src:r="attributeName",a=" flex items-center gap-2";break;case 1===c.flags.isPrivilegeSettings:a=" dashboard-names";default:r="attribute_values"}var n="copy_from_field"===this.op?"select-copy-from-field-value":"select-value",o=["copy_from","copy_from_field"],i=["image","multipleImage"];return 1===c.flags.isPrivilegeSettings&&(this.possibleValues=this.meta.hasOwnProperty("user_roles")?this.meta.user_roles:this.meta.hasOwnProperty("user_emails")?this.meta.user_emails:this.possibleValues),m("div",{class:"flex-1 relative"+a},1===c.flags.isPrivilegeSettings?m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:"py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select dashboard-names"),name:"dashboards[]",multiple:"multiple"},Object.keys(this.possibleValues).length>0?Object.entries(this.possibleValues).map((function(e){var t=p(e,2),r=t[0],a=t[1];return"displayTitles"!==r?Object.entries(a).map((function(e){var t=p(e,2),r=t[0],a=t[1];return m("option",{value:r,selected:"selected"},a)})):""})):""):!(this.possibleValues.length>0||!0===o.includes(this.op)||this.field.includes("plan")&&"wc_user_membership"===window[pluginKey].dashboardKey||!0===this.lineItemOperators.includes(this.op)||"remove_from"===this.op&&["custom_note_for_customer"].includes(this.field_src))||!0===this.multiListOperators.includes(this.op)&&"custom_product_attributes"===this.field_src?function(){switch(""!=e.fieldType&&""!=e.op){case!0===i.includes(e.fieldType):return m("button",{type:"button",onclick:function(){e.showWPMediaLib()},class:"flex items-center justify-center p-1 text-xs leading-5 text-indigo-500 transition duration-150 ease-in-out border border-transparent rounded-md focus:outline-none"},e.meta.attachmentURL&&"multipleImage"!==e.fieldType?m("img",{src:e.meta.attachmentURL,class:"w-9 h-9"}):m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"}))));case 1==e.extraDateOperators.includes(e.op):return m("[",null,m("input",{type:"number",onkeydown:function(e){return"."===e.key?e.preventDefault():""},"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,placeholder:e.valuePlaceholder,class:"w-full max-w-full text-sm leading-5 text-gray-700 form-input",value:e.value,oninput:function(t){return e.updateRuleValue(t)}}),m("select",{"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,"meta-key":r,class:"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select select-value")},m("[",null," ",Object.entries(e.dateDurations).map((function(t){var a=p(t,2),n=a[0],o=a[1];return m("[",null,m("option",{value:n,selected:e.meta[r]===n?"selected":""},o||n))}))," ")));case"search_and_replace"===e.op||"custom"===e.meta[r]:return m("[",null,"custom"===e.meta[r]?m("select",{"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select select-attrName"),"meta-key":r},Object.entries(e.additionalValues).map((function(t){var a=p(t,2),n=a[0],o=a[1];return m("option",{value:n,selected:e.meta[r]===n?"selected":""},o||n)}))):"",m("input",{type:"text","rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"w-full max-w-full text-sm leading-5 text-gray-700 form-input",placeholder:"search_and_replace"===e.op?_x("Search for...","placeholder","smart-manager-for-wp-e-commerce"):_x("Enter attribute name...","placeholder","smart-manager-for-wp-e-commerce"),value:e.value,oninput:function(t){return e.updateRuleValue(t)}}),m("input",{type:"text","rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,"meta-key":"search_and_replace"===e.op?r:"attribute_values",class:"w-full max-w-full text-sm leading-5 text-gray-700 form-input",placeholder:"search_and_replace"===e.op?_x("Replace with...","placeholder","smart-manager-for-wp-e-commerce"):_x("Enter values...","placeholder","smart-manager-for-wp-e-commerce"),value:"search_and_replace"===e.op?e.meta.replace_value:e.meta.attribute_values,oninput:function(t){return e.updateRuleValue(t)}}));case!0===e.multiListOperators.includes(e.op)&&"custom_product_attributes"===e.field_src:return m("[",null,m("select",{"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"py-1 pl-3 pr-8 text-sm leading-5 text-gray-500 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select select-attrName"),"meta-key":r},Object.entries(e.additionalValues).map((function(t){var a=p(t,2),n=a[0],o=a[1];return m("option",{value:n,selected:e.meta[r]===n?"selected":""},o||n)}))),m("select",{"rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select ").concat(n)},e.possibleValues.map((function(t){return m("option",{value:t.key,selected:e.value===t.key?"selected":""},t.value||t.key)}))));default:return m("input",{type:"numeric"==e.fieldType?"number":"text","rule-group-id":e.ruleGroupId,"rule-id":e.ruleId,class:"w-full max-w-full text-sm leading-5 text-gray-700 form-input",placeholder:e.valuePlaceholder,value:e.value,oninput:function(t){return e.updateRuleValue(t)}})}}():m("select",{"rule-group-id":this.ruleGroupId,"rule-id":this.ruleId,class:"py-1 pl-3 pr-8 text-sm font-medium leading-5 capitalize text-gray-700 bg-transparent form-select ".concat(window[pluginKey].pluginSlug,"-advanced-search-select ").concat(n)},!1===o.includes(this.op)?this.possibleValues.map((function(t){return m("option",{value:t.key,selected:e.value===t.key?"selected":""},t.value||t.key)})):"copy_from_field"===this.op?Object.entries(c.data.fields).map((function(t){var r=p(t,2),a=r[0],n=r[1];return m("option",{value:a,selected:e.value===a?"selected":""},n.title||a)})):""))}catch(e){SaErrorHandler.log("In Rule renderValues:: ",e)}}},{key:"addConditionRow",value:function(e){var t=this;try{var r=this.meta.hideValue||!1;return m("div",{class:"flex items-center gap-2 w-full mb-3"},this.renderFieldSelect(),this.renderOperatorSelect(),r?"":this.renderValues(),m("button",{type:"button",onclick:function(){return c.add(t.ruleGroupId)},class:(this.showAddRule?"":"invisible")+" flex items-center justify-center p-1 text-xs leading-5 text-gray-300 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-green-600 hover:border-green-600 focus:outline-none focus:shadow-outline-red focus:border-green-600"},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-add-condition","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})))),m("button",{type:"button",onclick:function(){return c.delete(t.ruleGroupId,t.ruleId)},class:(this.isOnlyChild?"invisible":"")+" flex items-center justify-center p-1 text-xs leading-5 text-gray-300 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-red-600 hover:border-red-600 focus:outline-none focus:shadow-outline-red focus:border-red-600"},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-remove-condition","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})))))}catch(e){SaErrorHandler.log("In Rule addConditionRow:: ",e)}}},{key:"view",value:function(e){try{return this.initialize(e),m("[",null,this.addConditionRow(this.ruleRow))}catch(e){SaErrorHandler.log("In Rule view:: ",e)}}},{key:"handleCustomActions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e&&e.fieldObj.custom_actions&&e.fieldObj.custom_actions[e.op]&&(e.meta.hideValue=void 0===e.fieldObj.custom_actions[e.op].hide_value||e.fieldObj.custom_actions[e.op].hide_value)}}])}();function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,j(a.key),a)}}function j(e){var t=function(e,t){if("object"!=k(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=k(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==k(t)?t:t+""}var O=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize(t)}catch(e){SaErrorHandler.log("In RuleGroup construct:: ",e)}},(t=[{key:"initialize",value:function(e){try{this.ruleGroupKey=e.attrs.key,this.ruleGroupId=e.attrs.id,this.isOnlyChild=e.attrs.isOnlyChild||0,this.ruleGroup=c.data.ruleGroups[this.ruleGroupId]||[],this.ruleGroupCondition=this.ruleGroup.condition||"AND",this.rules=this.ruleGroup.rules||[]}catch(e){SaErrorHandler.log("In RuleGroup initialize:: ",e)}}},{key:"view",value:function(e){var t=this;try{return this.initialize(e),m("div",{class:"px-4 pt-3 pb-2 mb-6 space-y-3 bg-gray-100 border-gray-200 rounded-md"},1==c.flags.isPrivilegeSettings?0==this.ruleGroupId?m("div",{class:"mb-3 font-medium text-gray-700"},_x("Restrict by users","group title","smart-manager-for-wp-e-commerce")):m("div",{class:"mb-3 font-medium text-gray-700"},_x("Restrict by user roles","group title","smart-manager-for-wp-e-commerce")):m("div",{class:"flex items-center gap-1 text-xs text-gray-400"},m("span",null,_x('This group is a "pass" when',"rule content","smart-manager-for-wp-e-commerce")),m("span",{class:"text-gray-700"},_x("all","rule option","smart-manager-for-wp-e-commerce")),m("span",null,_x("of the following conditions is true.","group content","smart-manager-for-wp-e-commerce"))),this.rules.map((function(e,r){return m(_,{key:e.key,id:r,ruleGroupId:t.ruleGroupId,showAddRule:1==c.flags.isPrivilegeSettings?t.rules.length-1==r?1:0:"",isOnlyChild:1==t.rules.length?1:0})})),m("div",{class:(1==c.flags.isPrivilegeSettings?"invisible":"")+" flex items-center gap-6 pt-1"},m("button",{type:"button",class:"flex items-center gap-1 justify-center px-1 py-0.5 text-xs leading-5 text-gray-400 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-green-600 hover:border-green-600 focus:outline-none focus:shadow-outline-green focus:border-green-600",onclick:function(){c.add(t.ruleGroupId)}},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-add-condition","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})))," ",_x("Add a condition","button","smart-manager-for-wp-e-commerce")," ")," ",m("span",{class:"flex-1"}),m("button",{type:"button",class:"flex items-center gap-1 justify-center px-1 py-0.5 text-xs leading-5 text-gray-400 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-indigo-600 hover:border-indigo-600 focus:outline-none focus:shadow-outline-indigo focus:border-indigo-600",onclick:function(){1==window[pluginKey].sm_beta_pro?c.add():void 0!==window[pluginKey].showNotification&&"function"==typeof window[pluginKey].showNotification&&(window[pluginKey].notification={message:sprintf(_x("This feature is available only in the %s version","modal content","smart-manager-for-wp-e-commerce"),'<a href="'+window[pluginKey].pricingPageURL+'" target="_blank">'+_x("Pro","modal content","smart-manager-for-wp-e-commerce")+"</a>"),hideDelay:window[pluginKey].notificationHideDelayInMs},window[pluginKey].showNotification())}},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-add-group","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})))," ",_x("Add another group","button","smart-manager-for-wp-e-commerce")," "),this.isOnlyChild?"":m("button",{type:"button",class:"flex items-center gap-1 justify-center px-1 py-0.5 text-xs leading-5 text-gray-400 transition duration-150 ease-in-out border border-transparent rounded-md hover:text-red-600 hover:border-red-600 focus:outline-none focus:shadow-outline-red focus:border-red-600",onclick:function(){c.delete(t.ruleGroupId)}},m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{id:"icon-remove-group","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 13h6M3 17V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})))," ",_x("Remove this group","button","smart-manager-for-wp-e-commerce")," ")))}catch(e){SaErrorHandler.log("In RuleGroup view:: ",e)}}}])&&S(e.prototype,t),r&&S(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,C(a.key),a)}}function C(e){var t=function(e,t){if("object"!=P(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=P(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P(t)?t:t+""}var I=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize()},(t=[{key:"initialize",value:function(){try{this.notification=Object.assign({status:"warning",autoHide:!0,hideDelay:8e3,message:""},window[pluginKey].notification||{}),this.showNotification=Object.keys(window[pluginKey].notification||{}).length>0&&""!==this.notification.message,this.icons={success:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>',error:'<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" /></svg>',warning:'<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>'}}catch(e){SaErrorHandler.log("In Notifications initialize:: ",e)}}},{key:"render",value:function(e){return window[pluginKey].parseHTML(e)}},{key:"view",value:function(){var e=this;try{var t,r;return this.initialize(),setTimeout((function(){try{if(e.showNotification&&e.notification.autoHide){var t=document.getElementsByClassName(window[pluginKey].pluginSlug+"-notification-close");t.length>0&&t[0].click()}}catch(e){SaErrorHandler.log("In Notifications auto close:: ",e)}}),this.notification.hideDelay),this.showNotification?m("div",{class:"fixed inset-0 flex items-end justify-center px-4 py-6 pointer-events-none sm:p-6 sm:items-start sm:justify-end",style:"z-index: 121000;"},m("div",{class:"w-full max-w-sm bg-white rounded-lg shadow-lg pointer-events-auto bottom-2 fixed ".concat(window[pluginKey].pluginSlug,"-custom-notification-width ").concat((null===(t=this.notification)||void 0===t?void 0:t.customClass)||"")},m("div",{class:"overflow-hidden rounded-lg shadow-xs text-gray-700"},m("div",{class:("bg-"+this.notification.status||!1)+" p-3"},m("div",{class:"flex items-center"},m("div",{class:"flex-shrink-0"},null!==(r=this.notification)&&void 0!==r&&r.hideIcon?"":m.trust(this.icons[this.notification.status||"warning"]||"")),m("div",{class:"ml-3 flex-1"},m("p",{class:"text-sm leading-5"},m.trust(this.notification.message))),m("div",{class:"flex flex-shrink-0 ml-2"},m("button",{type:"button",class:"".concat(window[pluginKey].pluginSlug,"-notification-close inline-flex p-1 rounded-md hover:text-gray-700 focus:outline-none transition duration-150 ease-in-out"),onclick:function(){setTimeout((function(){try{var t;window[pluginKey].notification={},m.route.get()==="/"+window[pluginKey].advancedSearchRoute||m.route.get()==="/"+window[pluginKey].bulkEditRoute||m.route.get()==="/"+window[pluginKey].columnManagerRoute||void 0===window[pluginKey].showPannelDialog||"function"!=typeof window[pluginKey].showPannelDialog||void 0===window[pluginKey].getDefaultRoute||"function"!=typeof window[pluginKey].getDefaultRoute||window[pluginKey].hidePannelDialog||window[pluginKey].showPannelDialog((null==e||null===(t=e.notification)||void 0===t?void 0:t.route)||"",window[pluginKey].getDefaultRoute(!0))}catch(e){SaErrorHandler.log("In Notifications close:: ",e)}}),200)}},m("svg",{class:"h-4 w-4 text-gray-400",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}))))))))):""}catch(e){SaErrorHandler.log("In Notifications view:: ",e)}}}])&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,T(a.key),a)}}function T(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=K(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}var H=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize()}catch(e){SaErrorHandler.log("In AdvancedSearchDialog construct:: ",e)}},(t=[{key:"initialize",value:function(){try{this.savedSearch=window.smart_manager.advancedSearchQuery||[],this.savedSearchGroups=this.savedSearch[0]||{condition:"OR",rules:[D({},c.data.default.ruleGroup)]},this.searchRuleGroups=this.savedSearchGroups.rules||[],this.noticeMsgForCustomViews=_x("Conditions cannot be edited when using Custom Views","advanced search notice for custom views","smart-manager-for-wp-e-commerce"),new c({ruleGroups:this.searchRuleGroups,fields:window.smart_manager.colModelSearch,possibleOperators:window.smart_manager.possibleOperators})}catch(e){SaErrorHandler.log("In AdvancedSearchDialog construct:: ",e)}}},{key:"closeDialog",value:function(){try{void 0!==window.smart_manager.showPannelDialog&&"function"==typeof window.smart_manager.showPannelDialog&&window.smart_manager.showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In AdvancedSearchDialog closeDialog:: ",e)}}},{key:"getRuleGroups",value:function(){var e=this;if(c.data.ruleGroups.length){var t=[];return this.ruleCount=0,c.data.ruleGroups.map((function(r){var a=[];r.rules.map((function(t){var r=D({},t);delete r.key,r.meta&&delete r.meta,a.push(r),e.ruleCount++})),t.push({condition:r.condition,rules:a})})),t}}},{key:"updateRuleCountView",value:function(){try{window.smart_manager.advancedSearchRuleCount=this.ruleCount,jQuery("#sm_advanced_search_content").html(sprintf(_x("%1$d condition%2$s","advanced search conditions","smart-manager-for-wp-e-commerce"),window.smart_manager.advancedSearchRuleCount,window.smart_manager.advancedSearchRuleCount>1?_x("s","advanced search conditions","smart-manager-for-wp-e-commerce"):""))}catch(e){SaErrorHandler.log("In AdvancedSearchDialog updateRuleCountView:: ",e)}}},{key:"view",value:function(){var e=this;try{return m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-4xl max-h-full mt-12 overflow-auto transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Advanced Search","side pannel - modal title","smart-manager-for-wp-e-commerce")," ")),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("button",{onclick:function(){try{if(window.smart_manager.isViewContainSearchParams&&void 0!==window.smart_manager.showNotification&&"function"==typeof window.smart_manager.showNotification)return window.smart_manager.notification={message:e.noticeMsgForCustomViews,hideDelay:window.smart_manager.notificationHideDelayInMs},void window.smart_manager.showNotification();if(c.data.ruleGroups.length>0){var t=e.getRuleGroups();window.smart_manager.advancedSearchQuery=[{condition:"OR",rules:t}],e.updateRuleCountView(),void 0!==window.smart_manager.loadDashboard&&"function"==typeof window.smart_manager.loadDashboard&&window.smart_manager.loadDashboard()}e.closeDialog()}catch(e){SaErrorHandler.log("In AdvancedSearchDialog search:: ",e)}},type:"button",class:"sm-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo",title:_x("Search [ENTER]","advanced search button title","smart-manager-for-wp-e-commerce")},_x("Search","advanced search button","smart-manager-for-wp-e-commerce"))),m("span",{class:"rounded-md"},m("button",{onclick:function(){try{if(1!==parseInt(window.smart_manager.sm_beta_pro))return window.smart_manager.notification={message:sprintf(_x("Saved Searches available (Only in %s)","notification","smart-manager-for-wp-e-commerce"),'<a href="'+window.smart_manager.pricingPageURL+'" target="_blank">'+_x("Pro","notification","smart-manager-for-wp-e-commerce")+"</a>"),hideDelay:window.smart_manager.notificationHideDelayInMs},void window.smart_manager.showNotification();if(window.smart_manager.isViewContainSearchParams&&void 0!==window.smart_manager.showNotification&&"function"==typeof window.smart_manager.showNotification)return window.smart_manager.notification={message:e.noticeMsgForCustomViews,hideDelay:window.smart_manager.notificationHideDelayInMs},void window.smart_manager.showNotification();if(c.data.ruleGroups.length>0){var t=e.getRuleGroups();window.smart_manager.advancedSearchQuery=[{condition:"OR",rules:t}],e.updateRuleCountView(),void 0!==window.smart_manager.createUpdateViewDialog&&"function"==typeof window.smart_manager.createUpdateViewDialog&&window.smart_manager.createUpdateViewDialog("create",{dashboardChecked:!1,advancedSearchChecked:!0})}}catch(e){SaErrorHandler.log("In AdvancedSearchDialog save:: ",e)}},type:"button",class:"sm-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo save_advance_search_btn",title:_x("Save","advanced search save button title","smart-manager-for-wp-e-commerce")},_x("Save","advanced search save button","smart-manager-for-wp-e-commerce"))),m("button",{onclick:function(){try{if(window.smart_manager.isViewContainSearchParams&&void 0!==window.smart_manager.showNotification&&"function"==typeof window.smart_manager.showNotification)return window.smart_manager.notification={message:e.noticeMsgForCustomViews,hideDelay:window.smart_manager.notificationHideDelayInMs},void window.smart_manager.showNotification();if(window.smart_manager.advancedSearchQuery=[],e.ruleCount=0,e.initialize(),e.updateRuleCountView(),window.smart_manager.findSavedSearchBySlug(jQuery("#sm_dashboard_select").val()))return jQuery("#sm_dashboard_select").val(window.smart_manager.dashboardKey).trigger("change"),void e.closeDialog();void 0!==window.smart_manager.loadDashboard&&"function"==typeof window.smart_manager.loadDashboard&&window.smart_manager.loadDashboard()}catch(e){SaErrorHandler.log("In AdvancedSearchDialog clear:: ",e)}},type:"button",class:"inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-gray-500 transition duration-150 ease-in-out bg-gray-200 border border-transparent rounded-md hover:bg-gray-300 focus:outline-none"},_x("Clear","advanced search button","smart-manager-for-wp-e-commerce")),m("button",{onclick:function(){try{e.closeDialog(),0==window.smart_manager.advancedSearchRuleCount&&jQuery("#search_switch").prop("checked",!1).trigger("change")}catch(e){SaErrorHandler.log("In AdvancedSearchDialog close:: ",e)}},class:"sm-button-close p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100",title:_x("Close [ESC]","advanced search close button title","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},window.smart_manager.isViewContainSearchParams?m("div",{class:"w-full text-sm leading-5 text-gray-500 bg-warning p-2"},this.noticeMsgForCustomViews):"",m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline gap-1 mb-3 font-medium text-gray-500 -mt-1"},m("span",{class:"uppercase"},_x("When","advanced search content","smart-manager-for-wp-e-commerce")),m("span",{class:"text-gray-700"},_x("at least one","advanced search option","smart-manager-for-wp-e-commerce")," "),m("span",null,_x("condition groups pass","advanced search content","smart-manager-for-wp-e-commerce"))),c.data.ruleGroups.map((function(e,t){return m(O,{id:t,key:e.key,isOnlyChild:1==c.data.ruleGroups.length?1:0})}))))),Object.keys(window.smart_manager.notification||{}).length>0?m(I,null):null)}catch(e){SaErrorHandler.log("In AdvancedSearchDialog view:: ",e)}}}])&&B(e.prototype,t),r&&B(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,G(a.key),a)}}function G(e){var t=function(e,t){if("object"!=R(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=R(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==R(t)?t:t+""}var N=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize(t)}catch(e){SaErrorHandler.log("In BulkEditSavedActions constructor:: ",e)}},(t=[{key:"initialize",value:function(e){try{this.bulkEditDialogObj=e.attrs.bulkEditDialogObj,this.BulkEditSavedActions=e.attrs.BulkEditSavedActions}catch(e){SaErrorHandler.log("In BulkEditSavedActions initialize:: ",e)}}},{key:"setSelectedBulkEditItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e&&(null==e?void 0:e.length)>0){var t=document.querySelectorAll(".saved-bulk-edit-item");t.forEach((function(t){t.classList.remove("selected"),t.getAttribute("slug")===e&&t.classList.add("selected")})),this.bulkEditDialogObj.selectedSavedBulkEdit=""}}},{key:"oncreate",value:function(){try{var e,t=(null===(e=this.bulkEditDialogObj)||void 0===e?void 0:e.selectedSavedBulkEdit)||"";this.setSelectedBulkEditItem(t)}catch(e){SaErrorHandler.log("In BulkEditSavedActions oncreate:: ",e)}}},{key:"onupdate",value:function(){try{var e,t=(null===(e=this.bulkEditDialogObj)||void 0===e?void 0:e.selectedSavedBulkEdit)||"";this.setSelectedBulkEditItem(t)}catch(e){SaErrorHandler.log("In BulkEditSavedActions onupdate:: ",e)}}},{key:"view",value:function(e){var t=this;try{return this.initialize(e),m("[",null,m("div",{class:"saved-bulk-edit-list"},this.BulkEditSavedActions.length?this.BulkEditSavedActions.map((function(e,r){return m("div",{class:"saved-bulk-edit-item",slug:null==e?void 0:e.slug,onclick:function(r){return t.bulkEditDialogObj.renderBulkEditConditions(r,null==e?void 0:e.slug)}},m("div",null,m("div",null,m("span",null,null==e?void 0:e.title)),m("div",null,m("svg",{class:"".concat(window[pluginKey].pluginSlug,"-error-icon"),onclick:function(r){return t.bulkEditDialogObj.deleteSavedAction(r,null==e?void 0:e.slug,null==e?void 0:e.title)},fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:"width: 20px; height: 20px;"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})))))})):""))}catch(e){SaErrorHandler.log("In BulkEditSavedActions view:: ",e)}}}])&&V(e.prototype,t),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e){return function(e){if(Array.isArray(e))return Q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){if(e){if("string"==typeof e)return Q(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Q(e,t):void 0}}function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){$(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $(e,t,r){return(t=J(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,J(a.key),a)}}function J(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=U(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U(t)?t:t+""}var Z=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize()}catch(e){SaErrorHandler.log("In BulkEditDialog constructor:: ",e)}},(t=[{key:"initialize",value:function(){try{var e,t,r;this.ruleGroups=[Y({},c.data.default.ruleGroup)],this.updateAll=!!window[pluginKey].selectAll,this.BulkEditSavedActions=(null===(e=window[pluginKey])||void 0===e?void 0:e.saved_bulk_edits)||[],this.selectedSavedBulkEdit=(null===(t=window[pluginKey])||void 0===t?void 0:t.selectedSavedBulkEdit)||"",this.fetchingSavedBulkEdits=!1,window[pluginKey].updateProductSubscriptions=!1,window[pluginKey].subscriptionProductIds=[],window[pluginKey].subscriptionUpdateActions=[],window[pluginKey].savedBulkEditConditions.length>0&&window[pluginKey].savedBulkEditConditions[0]&&(this.ruleGroups=window[pluginKey].savedBulkEditConditions[0].rules||this.ruleGroups,this.updateAll=(void 0===(null===(r=window[pluginKey].savedBulkEditConditions[0])||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.updateAll)||!1!==window[pluginKey].savedBulkEditConditions[0].meta.updateAll)&&this.updateAll),new c({ruleGroups:this.ruleGroups,fields:window[pluginKey].columnNamesBatchUpdate||{},possibleOperators:window[pluginKey].batch_update_actions||{}}),window[pluginKey].hasOwnProperty("saved_bulk_edits")&&!1!==window[pluginKey].saved_bulk_edits||this.getSavedBulkEdits()}catch(e){SaErrorHandler.log("In BulkEditDialog initialize:: ",e)}}},{key:"closeDialog",value:function(){try{void 0!==window[pluginKey].showPannelDialog&&"function"==typeof window[pluginKey].showPannelDialog&&window[pluginKey].showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In BulkEditDialog closeDialog:: ",e)}}},{key:"getSavedBulkEdits",value:function(){try{var e=new FormData,t=window[pluginKey].getViewSlug(window[pluginKey].dashboardName),r={cmd:"get_saved_bulk_edits",module:"custom_views",active_module:window[pluginKey].viewPostTypes.hasOwnProperty(t)?window[pluginKey].viewPostTypes[t]:window[pluginKey].dashboardKey,security:window[pluginKey].saCommonNonce||""};for(var a in r)e.append(a,r[a]);this.fetchingSavedBulkEdits=!0,c.loadData(e,(function(e,t){e.fetchingSavedBulkEdits=!1,"Success"===(null==t?void 0:t.ACK)&&null!=t&&t.data&&(e.BulkEditSavedActions=window[pluginKey].saved_bulk_edits=t.data)}),this)}catch(e){SaErrorHandler.log("In BulkEditDialog getSavedBulkEdits:: ",e)}}},{key:"disableUpdateAllFlagInBulkEditConditions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)&&e.length?(e.forEach((function(e){e.hasOwnProperty("meta")&&e.meta.hasOwnProperty("updateAll")&&(e.meta.updateAll=!1)})),e):[]}},{key:"saveBulkEditParams",value:function(){try{var e,t,r=document.getElementById("bulk_edit_title");this.prepareBulkEditParams();var a=this.disableUpdateAllFlagInBulkEditConditions((null===(e=window[pluginKey])||void 0===e?void 0:e.savedBulkEditConditions)||[]);if(null==r||null===(t=r.value)||void 0===t||!t.trim()||!a.length)return;var n=this;window[pluginKey].saveView({action:"create",name:r.value.trim(),type:"saved_bulk_edits",bulk_edit_params:a,onSuccess:function(e){var t;window[pluginKey].saved_bulk_edits=(null===(t=window[pluginKey])||void 0===t?void 0:t.saved_bulk_edits)||[],window[pluginKey].saved_bulk_edits.unshift({title:r.value.trim(),slug:(null==e?void 0:e.slug)||"",params:JSON.stringify(a)}),document.getElementById(window[pluginKey].pluginSlug+"-bulk-edit-save-floating-box").classList.add("hidden"),r.value="",n.selectedSavedBulkEdit=(null==e?void 0:e.slug)||"",window[pluginKey].selectedSavedBulkEdit=(null==e?void 0:e.slug)||"",window[pluginKey].notification={status:"success",message:_x("Bulk Edit saved successfully!","notification","smart-manager-for-wp-e-commerce")},window[pluginKey].showNotification(),window[pluginKey].showPannelDialog("bulkEdit",m.route.get())},onError:function(e){var t=document.getElementById(window[pluginKey].pluginSlug+"-saved-bulk-edit-validation");t&&(t.textContent=e.msg,t.classList.remove("hidden","text-error"),t.classList.add("text-error"))}})}catch(e){SaErrorHandler.log("In saveBulkEditParams:: ",e)}}},{key:"prepareBulkEditParams",value:function(){var e=this;try{var t=[];return this.ruleCount=0,c.data.ruleGroups.map((function(r){var a=[];r.rules.map((function(t){var r=Y({},t);delete r.key,a.push(r),e.ruleCount++})),t.push({condition:r.condition,rules:a})})),window[pluginKey].savedBulkEditConditions=[{condition:"AND",rules:t,meta:{updateAll:this.updateAll}}],t}catch(e){SaErrorHandler.log("In BulkEditDialog prepareBulkEditParams:: ",e)}}},{key:"renderBulkEditConditions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t.length)try{var r=this.getBulkEditParamsBySlug(t);if(r){var a,n;r.forEach((function(e){var t;e.meta.updateAll="entire_store"===(null===(t=document.querySelector('input[name="batch_update_storewide"]:checked'))||void 0===t?void 0:t.value)})),window[pluginKey].savedBulkEditConditions=r,this.initialize();var o=null==e||null===(a=e.target)||void 0===a?void 0:a.closest(".saved-bulk-edit-item");o&&(this.selectedSavedBulkEdit=(null==o?void 0:o.getAttribute("slug"))||"",window[pluginKey].selectedSavedBulkEdit=this.selectedSavedBulkEdit),this.updateAll="entire_store"===(null===(n=document.querySelector('input[name="batch_update_storewide"]:checked'))||void 0===n?void 0:n.value)}}catch(e){SaErrorHandler.log("In BulkEditDialog renderBulkEditConditions:: ",e)}}},{key:"deleteSavedAction",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(t.length&&r.length){e.stopPropagation();var a=this;try{void 0!==window[pluginKey].showConfirmDialog&&"function"==typeof window[pluginKey].showConfirmDialog&&window[pluginKey].showConfirmDialog({title:'<span class="'.concat(window[pluginKey].pluginSlug,'-error-icon"><span class="dashicons dashicons-warning" style="vertical-align: text-bottom;"></span>&nbsp;').concat(_x("Attention!","modal title","smart-manager-for-wp-e-commerce"),"</span>"),content:'<span style="font-size: 1.2em;">'.concat(_x("Do you really want to","modal content","smart-manager-for-wp-e-commerce"),'<span class="').concat(window[pluginKey].pluginSlug,'-error-icon"> <strong>').concat(_x("delete","modal content","smart-manager-for-wp-e-commerce"),"</strong> </span> ").concat(_x('"'.concat(r,'" saved action?'),"modal content","smart-manager-for-wp-e-commerce")," </span>"),showCloseIcon:!1,btnParams:{yesText:"Yes",noText:"No",hideOnYes:!0,yesCallback:function(){void 0!==window[pluginKey].deleteView&&"function"==typeof window[pluginKey].deleteView&&window[pluginKey].deleteView({view_slug:t,type:"saved_bulk_edits",event:e,success_msg:_x("Bulk Edit saved action deleted successfully!","notification","smart-manager-for-wp-e-commerce")},a)}},route:"bulkEdit"})}catch(e){SaErrorHandler.log("In deleteSavedAction::showConfirmDialog:",e)}}}},{key:"getBulkEditParamsBySlug",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e.length||!window[pluginKey]||!Array.isArray(window[pluginKey].saved_bulk_edits))return!1;var t=window[pluginKey].saved_bulk_edits.find((function(t){return t.slug===e}));if(t&&t.params)try{return JSON.parse(t.params)}catch(e){SaErrorHandler.log("In BulkEditDialog getBulkEditParamsBySlug:: ",e)}return!1}},{key:"showWarningWhenUpdateAllRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e.length&&void 0!==this.processBulkUpdate&&"function"==typeof this.processBulkUpdate&&void 0!==window[pluginKey].showConfirmDialog&&"function"==typeof window[pluginKey].showConfirmDialog){var t=jQuery('input[name="batch_update_storewide"]:checked').closest("label").find("span").text(),r=this;window[pluginKey].showConfirmDialog({title:'<span class="'.concat(window[pluginKey].pluginSlug,'-error-icon"><span class="dashicons dashicons-warning" style="vertical-align: text-bottom;"></span>&nbsp;').concat(_x("Attention!","modal title","smart-manager-for-wp-e-commerce"),"</span>"),content:'<span style="font-size: 1.2em;">'.concat(_x("Are you sure you want to ".concat("schedule"===e?" schedule bulk edit for":"bulk edit"),"modal content","smart-manager-for-wp-e-commerce")," <strong>").concat(_x(t,"modal content","smart-manager-for-wp-e-commerce"),"</strong>? </span>"),showCloseIcon:!1,btnParams:{yesText:"Yes",noText:"No",hideOnYes:!1,yesCallback:function(){r.handleBulkEditAction(e,r)}},route:"bulkEdit"})}}},{key:"handleBulkEditAction",value:function(e,t){switch(e){case"edit":window[pluginKey].scheduledActionContent="",window[pluginKey].isScheduled=!1,t.processBulkUpdate(),void 0!==window[pluginKey].showTitleModal&&"function"==typeof window[pluginKey].showTitleModal&&window[pluginKey].showTitleModal({btnParams:{hideOnYes:!1}});break;case"schedule":t.processBulkUpdate(),window[pluginKey].isScheduled=!0,void 0!==window[pluginKey].showScheduleModal&&"function"==typeof window[pluginKey].showScheduleModal&&window[pluginKey].showScheduleModal({btnParams:{hideOnYes:!1}})}}},{key:"showModalToUpdateProductRelatedSubscriptions",value:function(e){var t=this;try{void 0!==window[pluginKey].showConfirmDialog&&"function"==typeof window[pluginKey].showConfirmDialog&&window[pluginKey].showConfirmDialog({modalClass:"sm-be-update-subscription-price-modal",title:'<span><span class="dashicons dashicons-warning" style="vertical-align: text-bottom;"></span>&nbsp;'.concat(_x("Update Prices for Existing Subscriptions?","modal title","smart-manager-for-wp-e-commerce"),"</span>"),content:'\n                        <div id="sm-be-update-subscription-price-modal-content">\n                            <p class="heading-text">'.concat(_x("Apply the new product prices to existing subscriptions that meet all of the following:","subscription update conditions heading","smart-manager-for-wp-e-commerce"),"</p>\n                            <ul>\n                                <li>").concat(_x("Have <strong>auto-renewal enabled</strong>","auto-renewal condition","smart-manager-for-wp-e-commerce"),"</li>\n                                <li>").concat(_x("Use <strong>Stripe</strong> as the payment method","stripe payment condition","smart-manager-for-wp-e-commerce"),"</li>\n                                <li>").concat(_x("Are in <strong>Active</strong>, <strong>On hold</strong>, <strong>Pending</strong> or <strong>Pending Cancellation</strong> status","subscription status condition","smart-manager-for-wp-e-commerce"),"</li>\n                            </ul>\n                        </div>\n                        "),showCloseIcon:!1,btnParams:{yesText:"Yes",noText:"No",hideOnYes:!1,yesCallback:function(){var r;window[pluginKey].updateProductSubscriptions=!0,window[pluginKey].subscriptionProductIds=(null===(r=window[pluginKey])||void 0===r?void 0:r.getSelectedSubscriptionProductIds())||[],t.handleBulkEditAction(e,t)},noCallback:function(){setTimeout((function(){window[pluginKey].showPannelDialog("bulkEdit"),t.handleBulkEditAction(e,t)}),205)}},route:"bulkEdit"})}catch(e){SaErrorHandler.log("In deleteSavedAction::showConfirmDialog:",e)}}},{key:"rulesHasPriceField",value:function(e){if(!Array.isArray(e))return!1;var t=e[0].rules||[];if(!Array.isArray(t))return!1;var r=["postmeta/meta_key=_regular_price/meta_value=_regular_price","postmeta/meta_key=_sale_price/meta_value=_sale_price","postmeta/meta_key=_price/meta_value=_price","postmeta/meta_key=_subscription_price_meta_value__subscription_price"],a=t.filter((function(e){return r.includes(e.type)}))||[];return!!a.length&&(window[pluginKey].subscriptionUpdateActions=a,!0)}},{key:"canShowUpdateSubscriptionsModal",value:function(){return"product"===window[pluginKey].dashboardKey&&"1"===window[pluginKey].isSubscriptionPluginActive&&"1"===window[pluginKey].subscriptionsExist&&"1"===window[pluginKey].subscriptionsAcceptManualRenewals&&"1"===window[pluginKey].isStripeGatewayActive&&!1!==this.rulesHasPriceField(this.prepareBulkEditParams())&&("entire_store"===jQuery('input[name="batch_update_storewide"]:checked').val()||!!(window[pluginKey].getSelectedSubscriptionProductIds()||[]).length)}},{key:"view",value:function(){var e=this;try{var t=""!=window[pluginKey].simpleSearchText&&"simple"==window[pluginKey].searchType||window[pluginKey].advancedSearchQuery.length>0&&"simple"!=window[pluginKey].searchType?_x("All Items In Search Results","bulk edit option","smart-manager-for-wp-e-commerce"):_x("All Items In Store","bulk edit option","smart-manager-for-wp-e-commerce");return this.ruleGroup=c.data.ruleGroups[0]||[],this.ruleGroupCondition=this.ruleGroup.condition||"AND",this.rules=this.ruleGroup.rules||[],m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-4xl max-h-full mt-12 overflow-auto transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Bulk Edit","side pannel - modal title","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("div",{id:"update_".concat(window[pluginKey].pluginSlug,"_editor_grid"),class:"".concat(window[pluginKey].pluginSlug,"_beta_dropdown")},m("button",{type:"button",class:"".concat(window[pluginKey].pluginSlug,"-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo"),title:_x("Update","bulk edit button title","smart-manager-for-wp-e-commerce")},_x("Update","bulk edit button","smart-manager-for-wp-e-commerce")),m("div",{class:"".concat(window[pluginKey].pluginSlug,"_beta_dropdown_content ").concat(window[pluginKey].pluginSlug,"_bulk_edit_dropdown_content"),style:"display: none;"},m("a",{id:"".concat(window[pluginKey].pluginSlug,"_update_now"),href:"javascript:void(null)",onclick:function(){try{if(!0===e.canShowUpdateSubscriptionsModal())return void e.showModalToUpdateProductRelatedSubscriptions("edit");if("entire_store"===jQuery('input[name="batch_update_storewide"]:checked').val())return void e.showWarningWhenUpdateAllRecords("edit");window[pluginKey].scheduledActionContent="",window[pluginKey].isScheduled=!1,void 0!==e.processBulkUpdate&&"function"==typeof e.processBulkUpdate&&e.processBulkUpdate(),void 0!==window[pluginKey].showTitleModal&&"function"==typeof window[pluginKey].showTitleModal&&window[pluginKey].showTitleModal({btnParams:{hideOnYes:!1}}),e.closeDialog()}catch(e){SaErrorHandler.log("In BulkEditDialog Update click:: ",e)}}},_x("Now","bulk edit button","smart-manager-for-wp-e-commerce")),m("a",{id:"".concat(window[pluginKey].pluginSlug,"_schedule_update_for_later"),href:"#",onclick:function(){try{if(!0===e.canShowUpdateSubscriptionsModal())return void e.showModalToUpdateProductRelatedSubscriptions("schedule");if("entire_store"===jQuery('input[name="batch_update_storewide"]:checked').val())return void e.showWarningWhenUpdateAllRecords("schedule");void 0!==e.processBulkUpdate&&"function"==typeof e.processBulkUpdate&&e.processBulkUpdate(),window[pluginKey].isScheduled=!0,void 0!==window[pluginKey].showScheduleModal&&"function"==typeof window[pluginKey].showScheduleModal&&window[pluginKey].showScheduleModal({btnParams:{hideOnYes:!1}}),e.closeDialog()}catch(e){SaErrorHandler.log("In BulkEditDialog Update click:: ",e)}}},_x("Schedule for later","bulk edit button","smart-manager-for-wp-e-commerce"))))),m("div",{class:"".concat(window[pluginKey].pluginSlug,"-bulk-edit-save")},m("button",{type:"button",id:"".concat(window[pluginKey].pluginSlug,"_bulk_edit_save_btn"),title:_x("Save","bulk edit save button","smart-manager-for-wp-e-commerce"),class:"".concat(window[pluginKey].pluginSlug,"-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo")},_x("Save","bulk edit save button","smart-manager-for-wp-e-commerce")),m("div",{id:"".concat(window[pluginKey].pluginSlug,"-bulk-edit-save-floating-box"),class:"hidden"},m("div",{class:"icons-and-fields"},m("input",{type:"text",id:"bulk_edit_title",placeholder:_x("Enter name of saved action","bulk edit name field","smart-manager-for-wp-e-commerce")}),m("div",{class:"save-bulk-edit-actions"},m("button",{type:"button",id:"".concat(window[pluginKey].pluginSlug,"-saved-bulk-edit-create"),title:_x("Confirm Save","bulk edit save button","smart-manager-for-wp-e-commerce"),class:"icon-button",onclick:function(t){return e.saveBulkEditParams(t)}},m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25px",height:"25px",viewBox:"0 0 24.00 24.00",fill:"none",transform:"matrix(1, 0, 0, 1, 0, 0)rotate(0)",stroke:"#429453"},m("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),m("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),m("g",{id:"SVGRepo_iconCarrier"}," ",m("path",{d:"M4 12.6111L8.92308 17.5L20 6.5",stroke:"#508991","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"})," "))),m("button",{class:"icon-button be-save-close",title:_x("Close","saved bulk edit close button","smart-manager-for-wp-e-commerce")},m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none"},m("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),m("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),m("g",{id:"SVGRepo_iconCarrier"}," ",m("path",{d:"M16 8L8 16M8.00001 8L16 16",stroke:"#ff5b5e","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})," "))))),m("div",{id:"".concat(window[pluginKey].pluginSlug,"-saved-bulk-edit-validation"),class:"hidden"}))),m("button",{onclick:function(){try{window[pluginKey].savedBulkEditConditions=[],document.querySelectorAll(".saved-bulk-edit-item.selected").forEach((function(e){e.classList.remove("selected")})),window[pluginKey].selectedSavedBulkEdit="",e.initialize()}catch(e){SaErrorHandler.log("In BulkEditDialog clear click:: ",e)}},type:"button",class:"inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-gray-500 transition duration-150 ease-in-out bg-gray-200 border border-transparent rounded-md hover:bg-gray-300 focus:outline-none"},_x("Clear","bulk edit button","smart-manager-for-wp-e-commerce")),m("button",{onclick:function(){try{e.closeDialog()}catch(e){SaErrorHandler.log("In BulkEditDialog close click:: ",e)}},class:"".concat(window[pluginKey].pluginSlug,"-button-close p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100"),title:_x("Close [ESC]","bulk edit close button title","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline"},m("div",{class:"flex items-center gap-2 bulk-edit-select-items mt-1"},m("span",{class:"bulk-edit-update-options-text"},_x("Apply changes on","bulk edit actions","smart-manager-for-wp-e-commerce"),": "),!1===window[pluginKey].selectAll&&m("label",null,m("input",{type:"radio",class:(this.updateAll?"bg-transparent":"bg-indigo-600")+" form-radio mr-2 -mt-1",name:"batch_update_storewide",value:"selected_ids",checked:this.updateAll?"":"checked",onchange:function(t){e.updateAll=!t.target.checked}}),m("span",{class:"mt-1"},_x("Selected Items","bulk edit option","smart-manager-for-wp-e-commerce"))),m("label",null,m("input",{type:"radio",class:(this.updateAll?"bg-indigo-600":"bg-transparent")+" form-radio mr-2 -mt-1",name:"batch_update_storewide",value:"entire_store",checked:this.updateAll?"checked":"",onchange:function(t){e.updateAll=!!t.target.checked}}),m("span",{class:"mt-1"},t)))),m("div",{id:"".concat(window[pluginKey].pluginSlug,"-saved-bulk-edit-section")},m("div",{class:"saved-actions-heading"},m("label",{class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Saved Actions","bulk edit saved actions","smart-manager-for-wp-e-commerce"),":")),this.BulkEditSavedActions.length>0&&m(N,{bulkEditDialogObj:this,BulkEditSavedActions:this.BulkEditSavedActions}),this.BulkEditSavedActions.length<=0&&!1===this.fetchingSavedBulkEdits&&m("div",{class:"saved-bulk-edit-not-found"},_x("No saved actions found. Start adding actions below.","bulk edit saved actions not found","smart-manager-for-wp-e-commerce")),!0===this.fetchingSavedBulkEdits&&m("div",{class:"sa-manager-be-loader-container"},m("div",{class:"sa-manager-placeholder m-2 h-8 w-1/4"}),m("div",{class:"sa-manager-placeholder m-2 h-8 w-1/4"}),m("div",{class:"sa-manager-placeholder m-2 h-8 w-1/4"}))),m("div",{class:"saved-actions-heading"},m("label",{class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Actions","bulk edit actions","smart-manager-for-wp-e-commerce"),":")),this.rules.map((function(t,r){return m(_,{key:t.key,id:r,ruleGroupId:"0",showAddRule:e.rules.length-1==r?1:0,isOnlyChild:1==e.rules.length?1:0})}))))),Object.keys(window[pluginKey].notification||{}).length>0?m(I,null):null)}catch(e){SaErrorHandler.log("In BulkEditDialog view:: ",e)}}},{key:"processBulkUpdate",value:function(){var e=this.prepareBulkEditParams();if(!(e.length<=0)){var t=e[0].rules||[],r=new Set;Object.values(t).length>0&&c.data.fields&&Object.values(t).forEach((function(e){Object.entries(c.data.fields).map((function(t){var a=L(t,2),n=a[0],o=a[1];e.type===n&&o.title&&r.add(o.title)}))})),window[pluginKey].processName=_x("Bulk Edit","process name","smart-manager-for-wp-e-commerce"),window[pluginKey].processContent=z(r).join(", "),void 0!==window[pluginKey].processBatchUpdate&&"function"==typeof window[pluginKey].processBatchUpdate&&(window[pluginKey].processCallback=window[pluginKey].processBatchUpdate)}}}])&&q(e.prototype,t),r&&q(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function X(e){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,te(a.key),a)}}function te(e){var t=function(e,t){if("object"!=X(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=X(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==X(t)?t:t+""}var re=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"closeDialog",value:function(){try{void 0!==window.smart_manager.showPannelDialog&&"function"==typeof window.smart_manager.showPannelDialog&&window.smart_manager.showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In ColumnManagerDialog closeDialog:: ",e)}}},{key:"oncreate",value:function(){try{window.smart_manager.createColumnVisibilityDialog()}catch(e){SaErrorHandler.log("In ColumnManagerDialog oncreate:: ",e)}}},{key:"onupdate",value:function(){try{window.smart_manager.createColumnVisibilityDialog()}catch(e){SaErrorHandler.log("In ColumnManagerDialog onupdate:: ",e)}}},{key:"view",value:function(){var e=this;try{return m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-4xl max-h-full mt-12 overflow-scroll transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Column Manager - Show/Hide Columns","side panel - modal title","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("button",{onclick:function(){try{window.smart_manager.processColumnVisibility(),e.closeDialog()}catch(e){SaErrorHandler.log("In ColumnManagerDialog Update click:: ",e)}},type:"button",class:"sm-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo",title:_x("Update [ENTER]","column manager button title","smart-manager-for-wp-e-commerce")},_x("Update","column manager button","smart-manager-for-wp-e-commerce"))),m("button",{onclick:function(){try{e.closeDialog()}catch(e){SaErrorHandler.log("In ColumnManagerDialog close click:: ",e)}},class:"sm-button-close p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100",title:_x("Close [ESC]","column manager close button title","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline gap-2 mb-3 -mt-1"}),m("div",{id:"column-settings"})))),Object.keys(window.smart_manager.notification||{}).length>0?m(I,null):null)}catch(e){SaErrorHandler.log("In ColumnManagerDialog view:: ",e)}}}])&&ee(e.prototype,t),r&&ee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,oe(a.key),a)}}function oe(e){var t=function(e,t){if("object"!=ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=ae(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ae(t)?t:t+""}var ie=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e.initialize()}return t=e,a=[{key:"initialize",value:function(){e.flags={processing:!1},e.data={screen:"initial",update_action:""}}},{key:"updateFeedback",value:function(){var t,r,a;window[pluginKey].can_ask_for_feedback=0;var n=new FormData,o={cmd:"update_feedback",security:(null===(t=window[pluginKey])||void 0===t?void 0:t.saCommonNonce)||"",update_action:e.data.update_action||"",active_module:(null===(r=window[pluginKey])||void 0===r?void 0:r.dashboardKey)||""};for(var i in o)n.append(i,o[i]);m.request({method:"POST",url:(null===(a=window[pluginKey])||void 0===a?void 0:a.commonManagerAjaxUrl)||"",body:n}).then((function(t){e.flags.processing=!1,"Success"!==(null==t?void 0:t.ACK)&&console.error(t)})).catch((function(t){e.flags.processing=!1,console.error(t)}))}}],(r=null)&&ne(t.prototype,r),a&&ne(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,a}();function se(e){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ce(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ce(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function ue(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,me(a.key),a)}}function me(e){var t=function(e,t){if("object"!=se(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=se(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==se(t)?t:t+""}ie.initialize();var de=function(){return e=function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.showFeedback=(null===(t=window[pluginKey])||void 0===t?void 0:t.can_ask_for_feedback)||0},(t=[{key:"positiveFeedback",value:function(){ie.data.screen="positive",ie.data.update_action="positive",ie.updateFeedback()}},{key:"negativeFeedback",value:function(){ie.data.screen="negative",ie.data.update_action="negative",ie.updateFeedback()}},{key:"closeFeedback",value:function(){this.showFeedback=0,ie.data.update_action="close",ie.updateFeedback()}},{key:"addReview",value:function(){ie.flags.processing||(ie.flags.processing=!0,this.showFeedback=0,ie.data.update_action="review",window[pluginKey].review_link&&window.open(window[pluginKey].review_link),ie.updateFeedback())}},{key:"contactSupport",value:function(){ie.flags.processing||(ie.flags.processing=!0,window[pluginKey].support_link&&window.open(window[pluginKey].support_link),this.closeFeedback())}},{key:"initialScreen",value:function(){var e=this;return m("[",null,m("div",null,m("div",{class:"mb-2 text-center text-lg font-medium text-white"},_x("Happy with the Smart Manager plugin?","Question asking user opinion about plugin","smart-manager-for-wp-e-commerce")),m("p",{class:"text-justify text-base text-gray-200"},_x("Is our plugin doing what it promised - helping you manage your store effortlessly?","Asking how plugin is doing","smart-manager-for-wp-e-commerce"))),m("div",{class:"mt-4 flex gap-4"},m("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-2 rounded-md border border-transparent bg-green-600 px-4 py-2 text-sm font-medium text-white transition duration-150 ease-in-out hover:bg-green-500 focus:outline-none focus:ring-2 focus:ring-offset-2",onclick:function(){e.positiveFeedback()}},m("svg",{class:"w-5 h-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"})),m("span",null,_x("Yes, all good","Positive response button","smart-manager-for-wp-e-commerce"))),m("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-2 rounded-md border border-transparent bg-gray-600 px-3 py-2 text-sm font-medium text-white transition duration-150 ease-in-out hover:bg-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2",onclick:function(){e.negativeFeedback()}},m("svg",{class:"w-5 h-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"})),m("span",null,_x("Could be better","Negative response button","smart-manager-for-wp-e-commerce")))))}},{key:"positiveResponseScreen",value:function(){var e=this;return m("[",null,m("div",null,m("div",{class:"mb-2 text-center text-lg font-medium text-white"},"🎉 ",_x("Thanks for the love!","Thank you message for positive feedback","smart-manager-for-wp-e-commerce")),m("p",{class:"text-justify text-base text-gray-200"},_x("Awesome! Mind leaving us a 5-star review? It really motivates us to keep improving and reach more store owners like you.","Request the user to leave a review","smart-manager-for-wp-e-commerce"))),m("div",{class:"mt-4"},m("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-2 rounded-md border border-transparent bg-white px-4 py-2 text-sm font-medium text-blue-700 transition duration-150 ease-in-out hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2",onclick:function(){e.addReview()},disabled:ie.flags.processing},m("span",{class:"inline-flex"},le(Array(parseInt(5))).map((function(){return m("svg",{class:"w-5 h-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"0",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round",fill:"#f0c930","stroke-linejoin":"round",d:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z"}))}))),m("span",null,_x("Yes, I'll rate now!","Review response button","smart-manager-for-wp-e-commerce")))))}},{key:"negativeResponseScreen",value:function(){var e=this;return m("[",null,m("div",null,m("div",{class:"mb-2 text-center text-lg font-medium text-white"},"🛠️ ",_x("We hear you - let's make it better!","Apology message for negative feedback","smart-manager-for-wp-e-commerce")),m("p",{class:"text-justify text-base text-gray-200"},_x("Thanks for your honesty. Let our support team assist you so you can get back to managing your store effortlessly.","Support offer message","smart-manager-for-wp-e-commerce"))),m("div",{class:"mt-4"},m("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-2 rounded-md border border-transparent bg-gray-600 px-3 py-2 text-sm font-medium text-white transition duration-150 ease-in-out hover:bg-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2",onclick:function(){e.contactSupport()},disabled:ie.flags.processing},m("svg",{class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"})),m("span",null,_x("Contact support","Support contact button","smart-manager-for-wp-e-commerce")))))}},{key:"view",value:function(){var e=this;return m("div",{class:"pointer-events-none fixed inset-0 ".concat(window[pluginKey].forceCollapseAdminMenu?"ml-8":"ml-40"," ").concat(0===this.showFeedback?"hidden":""),style:"z-index: 200000;"},m("div",{class:"fixed bottom-0 m-2 w-96 rounded-lg bg-transparent shadow-lg"+(ie.flags.processing?"":" pointer-events-auto")},m("div",{class:"overflow-hidden rounded-lg bg-gray-800 p-6"},"initial"===ie.data.screen&&this.initialScreen(),"positive"===ie.data.screen&&this.positiveResponseScreen(),"negative"===ie.data.screen&&this.negativeResponseScreen()),"initial"!==ie.data.screen&&m("button",{type:"button",class:"absolute right-0 top-0 m-1 inline-flex rounded-md p-1 opacity-50 transition duration-150 ease-in-out hover:bg-gray-700 hover:opacity-100 focus:outline-none",onclick:function(){e.closeFeedback()}},m("svg",{class:"w-4 text-white",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})))))}}])&&ue(e.prototype,t),r&&ue(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||be(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){we(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function we(e,t,r){return(t=_e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function he(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,i,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=o.call(r)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw n}}return s}}(e,t)||be(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(e,t){if(e){if("string"==typeof e)return ve(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(e,t):void 0}}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function xe(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,_e(a.key),a)}}function _e(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=pe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:t+""}var ke=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.settingsInputType={numeric:"number",toggle:"checkbox",image:"image",select:"select"},this.initialize()}catch(e){SaErrorHandler.log("In SettingsDialog constructor:: ",e)}},(t=[{key:"initialize",value:function(){var e=this;try{this.generalSettings={},window.smart_manager.allSettings.hasOwnProperty("general")&&Object.entries(window.smart_manager.allSettings.general).map((function(t){var r=he(t,2),a=r[0],n=r[1];e.generalSettings[a]=ye({},n)}))}catch(e){SaErrorHandler.log("In SettingsDialog initialize:: ",e)}}},{key:"closeDialog",value:function(){try{this.initialize(),void 0!==window.smart_manager.showPannelDialog&&"function"==typeof window.smart_manager.showPannelDialog&&window.smart_manager.showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In SettingsDialog closeDialog:: ",e)}}},{key:"format",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{switch(e){case"generate_sku":e=_x("Automatically generate SKUs for WooCommerce products with blank values during CSV import","setting label","smart-manager-for-wp-e-commerce");break;case"ai_integration_settings":e=_x("AI Integration","setting label","smart-manager-for-wp-e-commerce");break;default:e=e.toLowerCase().replace(/(_)|(wp)/gi," ").replace(/( or )/gi,"/").trim()}return e.charAt(0).toUpperCase()+e.slice(1)}catch(e){SaErrorHandler.log("In SettingsDialog format:: ",e)}}},{key:"sanitize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";try{return"number"===t?parseInt(e):e}catch(e){SaErrorHandler.log("In SettingsDialog sanitize:: ",e)}}},{key:"showWPMediaLib",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{var r,a=this,n="multipleImage"===e;if(r)return void r.open();(r=wp.media.frames.file_frame=wp.media({multiple:n})).on("select",(function(){var o=!0===n?r.state().get("selection").toJSON():r.state().get("selection").first().toJSON(),i=new Set;o&&a.generalSettings[e].hasOwnProperty(t)&&(a.generalSettings[e][t]={id:o.id||"",url:o.url||""},!0===n&&o.length>0&&(Object.values(o).forEach((function(e){i.add(e.id)})),a.generalSettings[e][t]={id:ge(i).join(",")}),m.redraw())})),r.open()}catch(e){SaErrorHandler.log("In SettingsDialog showWPMediaLib:: ",e)}}},{key:"getSettingValueHTML",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"text",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{switch(this.settingsInputType[t]||"text"){case"checkbox":return m("input",{type:"checkbox",class:"w-5 h-5 text-left border border-gray-400",checked:"yes"===a,onchange:function(a){e.generalSettings[t][r]=a.target.checked?"yes":"no"}});case"image":return m("div",{class:" flex items-center gap-2"},m("button",{type:"button",onclick:function(){e.showWPMediaLib("image",r)},class:"flex items-center justify-center p-1 text-xs leading-5 text-indigo-500 transition duration-150 ease-in-out border border-transparent rounded-md focus:outline-none"},"object"===pe(a)&&a.hasOwnProperty("url")&&"multipleImage"!==t?m("img",{src:a.url,class:"w-24 h-24"}):m("svg",{fill:"none",stroke:"currentColor",class:"w-5 h-5"},m("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"}),m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 11-6 0 3 3 0 016 0z"})))),"object"===pe(a)&&a.hasOwnProperty("url")&&"multipleImage"!==t?m("button",{type:"button",onclick:function(){e.generalSettings[t][r]=""},class:"flex items-center justify-center p-1 text-xs leading-5 text-gray-300 transition duration-150 ease-in-out hover:text-red-600 border border-transparent rounded-md focus:outline-none",title:_x("Remove image","delete button for image type settings","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))):"");default:return m("input",{type:this.settingsInputType[t]||"text",class:"p-1 w-20 sm:text-sm sm:leading-5 border border-gray-400",value:this.sanitize(a),onfocusout:function(n){e.generalSettings[t][r]="checkbox"!==e.settingsInputType[t]?e.sanitize(n.target.value,t):a}})}}catch(e){SaErrorHandler.log("In SettingsDialog getSettingValueHTML:: ",e)}}},{key:"renderAIIntegrationSettingsHTML",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"text",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return m("[",null,m("tr",{class:"bg-transparent border-t p-4 pl-0"},m("th",{scope:"row",class:"bg-transparent p-4 pl-0"},m("label",{class:"cursor-default font-medium text-indigo-600 text-lg"},this.format(r))),m("td",{class:"p-4 alignright"})),m("tr",{class:"bg-transparent"},m("th",{scope:"row",class:"bg-transparent p-4 pl-0"},m("label",null,_x("Model","AI modals settings field","smart-manager-for-wp-e-commerce"))),m("td",{class:"p-4 alignright"},m("select",{class:"w-20 p-1 sm:text-sm sm:leading-5 border border-gray-400 rounded",value:(null==a?void 0:a.selectedModel)||"",onchange:function(a){var n;e.generalSettings[t][r]=ye(ye({},e.generalSettings[t][r]),{},{selectedModel:!(!a.target.value||""===a.target.value)&&a.target.value,apiKey:(null===(n=e.generalSettings[t][r][a.target.value])||void 0===n?void 0:n.api_key)||!1})}},m("option",{value:""},_x("Select","AI modals settings field","smart-manager-for-wp-e-commerce")),Object.keys(a).map((function(e){var t;return null!==(t=a[e])&&void 0!==t&&t.label?m("option",{value:e},a[e].label):null}))))),(null==a?void 0:a.selectedModel)&&m("tr",{class:"bg-transparent"},m("th",{scope:"row",class:"bg-transparent p-4 pl-0"},m("label",null,_x("API key","AI modals settings field","smart-manager-for-wp-e-commerce")),m("div",{class:"font-medium mt-1",style:"font-style: italic; color:#8c8c8c"},_x("Click","AI modals settings field","smart-manager-for-wp-e-commerce")," ",m("a",{target:"_blank",href:"https://docs.aicontentlabs.com/articles/cohere-api-key/"},_x("here","AI modals settings field","smart-manager-for-wp-e-commerce"))," ",_x("to know more.","AI modals settings field","smart-manager-for-wp-e-commerce"))),m("td",{class:"p-4 alignright"},m("div",null,m("input",{type:"text",class:"sm-ai-api-key p-1 sm:text-sm sm:leading-5 border border-gray-400 rounded",placeholder:_x("Enter API key...","AI modals settings field","smart-manager-for-wp-e-commerce"),value:(null==a?void 0:a.apiKey)||"",onfocusout:function(n){if(null!=a&&a.selectedModel){var o=e.sanitize(n.target.value);e.generalSettings[t][r]=ye(ye({},e.generalSettings[t][r]),{},{apiKey:o}),e.generalSettings[t][r][a.selectedModel].api_key=o}}})))))}},{key:"view",value:function(){var e=this;try{return m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-lg max-h-full mt-12 overflow-scroll transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Settings","side pannel - modal title","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("button",{onclick:function(){try{void 0!==window.smart_manager.saveSettings&&"function"==typeof window.smart_manager.saveSettings&&window.smart_manager.saveSettings({general:e.generalSettings},e)}catch(e){SaErrorHandler.log("In SettingsDialog Update click:: ",e)}},type:"button",class:"sm-button-primary inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo",title:_x("Save [ENTER]","settings button title","smart-manager-for-wp-e-commerce")},_x("Save","settings button","smart-manager-for-wp-e-commerce"))),m("button",{onclick:function(){try{e.closeDialog()}catch(e){SaErrorHandler.log("In SettingsDialog close click:: ",e)}},class:"sm-button-close p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100",title:_x("Close [ESC]","settings close button title","smart-manager-for-wp-e-commerce")},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline"},m("table",{class:"sm-settings-table table-auto text-left"},m("tbody",null,Object.entries(this.generalSettings).map((function(t){var r=he(t,2),a=r[0],n=r[1];return Object.entries(n).map((function(t){var r=he(t,2),n=r[0],o=r[1];return"ai_integration_settings"===n?e.renderAIIntegrationSettingsHTML(a,n,o):m("tr",{class:"bg-transparent"},m("th",{scope:"row",class:"bg-transparent p-4 pl-0"},m("label",null,_x(e.format(n),"setting label","smart-manager-for-wp-e-commerce"))),m("td",{class:"p-4 alignright"},e.getSettingValueHTML(a,n,o)))}))})))))))),Object.keys(window.smart_manager.notification||{}).length>0?m(I,null):null)}catch(e){SaErrorHandler.log("In SettingsDialog view:: ",e)}}}])&&xe(e.prototype,t),r&&xe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Oe(a.key),a)}}function Oe(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=Se(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Se(t)?t:t+""}var Pe=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"scrollToAnchor",value:function(e){if(e){m.route.set("/pricing",{a:e});var t=function(e){return null!=e},r=t(e)?document.getElementById(e):document.body,a=window.scrollY||document.documentElement.scrollTop,n=t(r)?r.getBoundingClientRect().top:0;window.scroll({top:n+a-70,left:0,behavior:"smooth"})}}},{key:"view",value:function(){var e=this;try{var t,r,a,n=m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"h-6 w-6 m-auto ","stroke-width":"3",stroke:"currentColor"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5 13l4 4L19 7"})),o=m("div",{class:"mt-12 lg:text-center"},m("p",{class:"text-base font-semibold leading-6 tracking-wide text-indigo-600 uppercase"},_x("Limited Period Offer","banner heading","smart-manager-for-wp-e-commerce")),m("h2",{class:"mt-2 text-3xl font-extrabold leading-8 tracking-tight text-gray-900 sm:text-4xl sm:leading-10"},sm_beta_params.isSAOfferVisible?_x("Get 50% off on Smart Manager Pro","banner content","smart-manager-for-wp-e-commerce"):_x("Get 60% off on 3-year and 25% off on annual plans on Smart Manager Pro","banner content","smart-manager-for-wp-e-commerce")),m("p",{class:"max-w-2xl mt-4 text-xl leading-7 text-gray-500 lg:mx-auto"},_x("Upgrade now and take your productivity to the next level!","banner content","smart-manager-for-wp-e-commerce"))),i=m("div",{className:"sm_design_notice man-hrs-section-pricing-page"},m("div",{className:"sm_container"},m("div",{className:"sm_main_headline"},m("div",{className:"dashicons dashicons-awards"}),m("div",{className:"sm_main_content"},m("span",null,_x("Hey ".concat(sm_beta_params.userName,", you’ve just saved "),"User message introduction for saved production hours","smart-manager-for-wp-e-commerce"),m("strong",null,null===(t=sm_beta_params)||void 0===t||null===(t=t.manHoursData)||void 0===t?void 0:t.man_hours_saved," ",_x("production hours","User message introduction for saved production hours","smart-manager-for-wp-e-commerce"))," ",_x("with Smart Manager! 🎉","User message conclusion for saved production hours","smart-manager-for-wp-e-commerce")),m("div",{className:"sm_claim_discount"},_x("Claim your ","Discount message introduction","smart-manager-for-wp-e-commerce"),m("span",{className:"discount-text"},_x("25%","Discount message introduction","smart-manager-for-wp-e-commerce"))," ",_x("to save additional ","Discount message middle part","smart-manager-for-wp-e-commerce"),m("strong",null,null===(r=sm_beta_params)||void 0===r||null===(r=r.manHoursData)||void 0===r?void 0:r.additional_savings," ",_x("hours","Discount message middle part","smart-manager-for-wp-e-commerce"))," ",_x("and unlock even more features!","Discount message conclusion","smart-manager-for-wp-e-commerce"))))));return m("[",null,m("section",{class:"mt-12 sm:mt-12 lg:mt-12"},m("div",{class:"mt-8 max-w-screen-xl px-4 mx-auto sm:px-6 lg:px-8"},sm_beta_params.isSAOfferVisible&&sm_beta_params.isSAOfferBannerVisible?"":null!==(a=sm_beta_params)&&void 0!==a&&null!==(a=a.manHoursData)&&void 0!==a&&a.display_man_hours?i:o,m("div",{id:"sm_price_column_container",class:"pb-8 mt-8 sm:mt-8 sm:pb-8 lg:mt-8 lg:pb-8 lg:pt-2"},m("div",{class:"max-w-md mx-auto lg:max-w-5xl lg:grid lg:grid-cols-4 lg:gap-5"},m("div",{class:"mt-4 overflow-hidden rounded-lg shadow-lg"},m("div",{class:"px-6 py-8 bg-gray-50 sm:p-10 sm:pb-6"},m("div",null,m("span",{class:"inline-flex px-4 py-1 text-sm font-semibold leading-5 tracking-wide text-indigo-600 uppercase bg-indigo-100 rounded-full"},_x("Popular","pricing table badge","smart-manager-for-wp-e-commerce"))),m("p",{class:"mt-5 text-xl leading-7 text-gray-500"},_x("1 site (Annual)","pricing license type","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-baseline mt-4 text-4xl text-gray-500 leading-none"},m("s",null,_x("$199","pricing license price","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline mt-2 text-4xl leading-none"},sm_beta_params.isSAOfferVisible?_x("$99","pricing license discounted price","smart-manager-for-wp-e-commerce"):_x("$149","pricing license discounted price","smart-manager-for-wp-e-commerce")),m("div",{class:"mt-6 rounded-md shadow"},m("a",{href:"https://www.storeapps.org/?buy-now=18694&qty=1".concat(sm_beta_params.isSAOfferVisible?"":"&coupon=sm-25off","&page=722&with-cart=1&utm_source=sm&utm_medium=in_app_pricing&utm_campaign=single_annual"),class:"flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline"},_x("Buy Now →","pricing table cta text","smart-manager-for-wp-e-commerce"))))),m("div",{class:"mt-4 overflow-hidden rounded-lg shadow-lg"},m("div",{class:"px-6 py-8 bg-indigo-100 sm:p-10 sm:pb-6"},m("div",null,m("span",{class:"inline-flex px-4 py-1 text-sm font-semibold leading-5 tracking-wide text-gray-50 uppercase bg-indigo-600 rounded-full"},_x("Best Seller","pricing table badge","smart-manager-for-wp-e-commerce"))),m("p",{class:"mt-5 text-xl leading-7 text-gray-500"},_x("5 sites (Annual)","pricing license type","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-baseline mt-4 text-4xl text-gray-500 leading-none"},m("s",null,_x("$249","pricing license price","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline mt-2 text-4xl leading-none"},sm_beta_params.isSAOfferVisible?_x("$125","pricing license discounted price","smart-manager-for-wp-e-commerce"):_x("$187","pricing license discounted price","smart-manager-for-wp-e-commerce")),m("div",{class:"mt-6 rounded-md shadow"},m("a",{href:"https://www.storeapps.org/?buy-now=18693&qty=1".concat(sm_beta_params.isSAOfferVisible?"":"&coupon=sm-25off","&page=722&with-cart=1&utm_source=sm&utm_medium=in_app_pricing&utm_campaign=multi_annual"),class:"flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline"},_x("Buy Now →","pricing table cta text","smart-manager-for-wp-e-commerce"))))),m("div",{class:"mt-4 overflow-hidden rounded-lg shadow-lg"},m("div",{class:"px-6 py-8 bg-gray-50 sm:p-10 sm:pb-6"},m("div",null,m("span",{class:"inline-flex px-4 py-1 text-sm font-semibold leading-5 tracking-wide text-indigo-600 uppercase bg-indigo-100 rounded-full"},_x("Trending","pricing table badge","smart-manager-for-wp-e-commerce"))),m("p",{class:"mt-5 text-xl leading-7 text-gray-500"},_x("1 site (Lifetime)","pricing license type","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-baseline mt-4 text-4xl text-gray-500 leading-none"},m("s",null,_x("$549","pricing license price","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline mt-2 text-4xl leading-none"},sm_beta_params.isSAOfferVisible?_x("$355","pricing license discounted price","smart-manager-for-wp-e-commerce"):_x("$412","pricing license discounted price","smart-manager-for-wp-e-commerce")),m("div",{class:"mt-6 rounded-md shadow"},m("a",{href:"https://www.storeapps.org/?buy-now=86835&qty=1".concat(sm_beta_params.isSAOfferVisible?"":"&coupon=sm-25off-l","&page=722&with-cart=1&utm_source=sm&utm_medium=in_app_pricing&utm_campaign=single_lifetime"),class:"flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline"},_x("Buy Now →","pricing table cta text","smart-manager-for-wp-e-commerce"))))),m("div",{class:"mt-4 overflow-hidden rounded-lg shadow-lg"},m("div",{class:"px-6 py-8 bg-gray-50 sm:p-10 sm:pb-6"},m("div",null,m("span",{class:"inline-flex px-4 py-1 text-sm font-semibold leading-5 tracking-wide text-indigo-600 uppercase bg-indigo-100 rounded-full"},_x("Trending","pricing table badge","smart-manager-for-wp-e-commerce"))),m("p",{class:"mt-5 text-xl leading-7 text-gray-500"},_x("5 sites (Lifetime)","pricing license type","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-baseline mt-4 text-4xl text-gray-500 leading-none"},m("s",null,_x("$599","pricing license price","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline mt-2 text-4xl leading-none"},sm_beta_params.isSAOfferVisible?_x("$389","pricing license discounted price","smart-manager-for-wp-e-commerce"):_x("$449","pricing license discounted price","smart-manager-for-wp-e-commerce")),m("div",{class:"mt-6 rounded-md shadow"},m("a",{href:"https://www.storeapps.org/?buy-now=86836&qty=1".concat(sm_beta_params.isSAOfferVisible?"":"&coupon=sm-25off-l","&page=722&with-cart=1&utm_source=sm&utm_medium=in_app_pricing&utm_campaign=multi_lifetime"),class:"flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline"},_x("Buy Now →","pricing table cta text","smart-manager-for-wp-e-commerce"))))))))),m("section",{class:"mt-8 max-w-3xl pt-12 pb-16 mx-auto sm:pt-16 sm:pb-20 lg:pt-12 lg:pb-12 lg:mt-8 bg-indigo-50"},m("div",{class:"max-w-2xl px-4 mx-auto sm:px-6 lg:px-8"},m("p",{class:"text-2xl font-semibold text-gray-800"},_x("I would happily pay five times for this product!","testimonial heading","smart-manager-for-wp-e-commerce")),m("img",{class:"w-48 m-3 sm:float-right",src:"https://www.storeapps.org/wp-content/uploads/2020/04/[email protected]",alt:_x("Premium Top Rated WooCommerce Plugin","testimonial content alt text","smart-manager-for-wp-e-commerce")}),m("p",{class:"mt-2 text-base text-gray-600"},_x("What really sold me on Smart Manager Pro was Bulk Edit. My assistant does not have to do any complex math now (earlier, I always feared she would make mistakes)! With Smart Manager, she has more free time at hand, so I asked her to set up auto responder emails. The response was phenomenal. Repeat sales were up by 19.5%.","testimonial content","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-center mt-2 text-base text-gray-800"},m("img",{class:"w-15 h-15 mr-3 rounded-full",src:"https://www.storeapps.org/wp-content/uploads/2019/04/jeff-smith.png",alt:_x("Jeff","testimonial customer name alt text","smart-manager-for-wp-e-commerce")}),m("span",null,_x("Jeff Smith","testimonial customer name","smart-manager-for-wp-e-commerce"))))),m("section",{class:"mt-12 sm:mt-16 lg:mt-16"},m("div",{class:"mt-8 max-w-screen-xl px-4 mx-auto sm:px-6 lg:px-8"},m("div",{class:"lg:text-center"},m("h2",{class:"mt-2 text-3xl font-extrabold leading-8 tracking-tight text-gray-900 sm:text-4xl sm:leading-10"}," ",_x("Smart Manager Pro: Packed with Tons of Powerful Features","pro features heading","smart-manager-for-wp-e-commerce")),m("p",{class:"max-w-3xl mt-4 text-xl leading-7 text-gray-500 lg:mx-auto"},_x("Upgrade now to enjoy advanced capabilities, enhanced features, improved performance, and premium support on demand.","pro features content","smart-manager-for-wp-e-commerce"))),m("div",{class:"text-center pt-4 mx-auto lg:pt-8 max-w-4xl"},m("div",{class:"py-2 align-center sm:px-6 lg:px-8"},m("div",{class:"overflow-hidden border border-gray-200 rounded"},m("table",{class:"bg-gray-50 md:min-w-full divide-y divide-gray-200"},m("thead",null,m("tr",null,m("th",{class:"px-3 py-3 xl:px-4 text-center"},_x("FEATURES","comparison table heading","smart-manager-for-wp-e-commerce")),m("th",{class:"px-3 py-3 xl:px-4 text-center"},_x("LITE (FREE)","comparison table heading","smart-manager-for-wp-e-commerce")),m("th",{class:"px-3 py-3 xl:px-4 text-center"},_x("PRO","comparison table heading","smart-manager-for-wp-e-commerce")))),m("tbody",{class:"bg-gray-50 leading-5 text-gray-700 divide-y divide-gray-200"},m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Supported Post Types","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("WordPress Posts, WooCommerce Products, Product Variations, Orders, Coupons","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Everything in Lite + WordPress Pages, Media, Users, SEO plugins, WooCommerce Subscriptions, Bookings, Memberships, Product Add-ons, Brands...","comparison table features data","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("all custom post types and their custom fields","comparison table features data","smart-manager-for-wp-e-commerce")),".")),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Inline (Direct) editing","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Upto three records without saving","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Unlimited","comparison table features data","smart-manager-for-wp-e-commerce"))),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Add or Delete Records","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Import products CSV","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Columns (Show / Hide / Sort)","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("WooCommerce Product Stock Log (Product History)","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Simple Search","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Advanced Search Using “AND” Filter","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Advanced Search Using “OR” Filter","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Saved Searches","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Bulk Edit / Batch Update","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6"},_x("Set to, Append, Prepend, Increase / Decrease by %, Increase / Decrease by number, Set datetime to, Set date to, Set time to, Upload images and many more...","comparison table features data","smart-manager-for-wp-e-commerce"))),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Undo Inline & Bulk Edits","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Schedule Bulk Edits","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Saved Bulk Edits","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Export All / Selected / Filtered Records As CSV","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Only WooCommerce Products Stock Columns","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("All Columns","comparison table features data","smart-manager-for-wp-e-commerce"))),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Scheduled CSV Exports for WooCommerce Orders","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Duplicate Single / Multiple Records","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Duplicate All Records In A Single Click","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Create Column Sets / Custom Views","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Print PDF Invoices","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Print Packing Slips For WooCommerce Orders In Bulk","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Manage WordPress User Roles","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("User-role / user based dashboard restrictions\t","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("View Customer Lifetime Value (LTV)","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},m("strong",null,_x("Manage Custom Taxonomies","comparison table features data","smart-manager-for-wp-e-commerce"))),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Rename Column Headers","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"-"),m("td",{class:"px-3 py-4 xl:px-6 text-green-500"},n)),m("tr",null,m("td",{class:"px-3 py-4 xl:px-6"},_x("Support","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("WordPress Forum","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},_x("Email, Phone, Video Calls","comparison table features data","smart-manager-for-wp-e-commerce"))),m("tr",null,m("td",{class:"px-3 py-8 font-medium xl:px-6"},_x("Pricing","comparison table features data","smart-manager-for-wp-e-commerce")),m("td",{class:"px-3 py-4 xl:px-6"},"–"),m("td",{class:"px-3 py-4 xl:px-6"},m("a",{href:"#",class:" px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline",onclick:function(t){t.preventDefault(),e.scrollToAnchor("sm_price_column_container")}},_x("Buy Smart Manager Pro →","comparison table features data","smart-manager-for-wp-e-commerce")))))))))),m("div",{class:"mx-auto mt-2 text-gray-500 sm:w-3/4 lg:w-3/4 lg:mt-16 lg:grid lg:grid-cols-3 lg:col-gap-8"},m("div",null,m("p",{class:"font-semibold text-gray-800"},_x('"This is a life-saver!"',"testimonial heading","smart-manager-for-wp-e-commerce")),m("p",{class:"mt-2 text-sm"},_x("The plugin has saved me HOURS (maybe even days) of work! It","testimonial content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("makes tedious tasks really simple and quick","testimonial content","smart-manager-for-wp-e-commerce")),". ",_x("The support team is fantastic too. Totally worth purchasing the premium version.","testimonial content","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-center mt-2 text-sm text-gray-800"},m("img",{class:"w-8 h-8 mr-3 rounded-full",src:"https://www.storeapps.org/wp-content/uploads/2019/04/bbcreamgirl.png",alt:_x("The BBCream Girl","testimonial customer name alt text","smart-manager-for-wp-e-commerce")}),m("span",null,_x("The BBCream Girl","testimonial customer name","smart-manager-for-wp-e-commerce")))),m("div",{class:"mt-6 lg:mt-0"},m("p",{class:"font-semibold text-gray-800"},_x('"A whole afternoon’s work in seconds"',"testimonial heading","smart-manager-for-wp-e-commerce")),m("p",{class:"mt-2 text-sm"},_x("We recommend Smart Manager Pro to everyone who is looking for an","testimonial content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("extremely multi-functional store manager","testimonial content","smart-manager-for-wp-e-commerce")),". ",_x("The plugin is absolutely worth it. Never again without Smart Manager.","testimonial content","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-center mt-2 text-sm text-gray-800"},m("img",{class:"w-8 h-8 mr-3 rounded-full",src:"https://www.storeapps.org/wp-content/uploads/2019/04/acrom.png",alt:_x("Acrom","testimonial customer name alt text","smart-manager-for-wp-e-commerce")}),m("span",null,_x("Acrom","testimonial customer name","smart-manager-for-wp-e-commerce")))),m("div",{class:"mt-6 lg:mt-0"},m("p",{class:"font-semibold text-gray-800"},_x('"20 or 30 times quicker store management"',"testimonial heading","smart-manager-for-wp-e-commerce")),m("p",{class:"mt-2 text-sm"},_x("I've got over 200 products and dreaded managing them one by one. Smart Manager Pro plugin lets me do this so much quicker, probably 20 or 30 times quicker. It is an absolutely invaluable tool.","testimonial content","smart-manager-for-wp-e-commerce")),m("div",{class:"flex items-center mt-2 text-sm text-gray-800"},m("img",{class:"w-8 h-8 mr-3 rounded-full",src:"https://www.storeapps.org/wp-content/uploads/2019/04/bryan-batcher.jpeg",alt:_x("Brian Batcher","testimonial customer name alt text","smart-manager-for-wp-e-commerce")}),m("span",null,_x("Brian Batcher","testimonial customer name","smart-manager-for-wp-e-commerce"))))),m("div",{class:"mt-12 max-w-screen-xl px-4 mx-auto sm:px-6 lg:px-8"},m("div",{class:"lg:text-center"},m("p",{class:"text-base font-semibold leading-6 tracking-wide text-indigo-600 uppercase"},_x("Get your precious time back","section content","smart-manager-for-wp-e-commerce")),m("h2",{class:"mt-2 text-3xl font-extrabold leading-8 tracking-tight text-gray-900 sm:text-4xl sm:leading-10"},_x("60 hours of work = 6 minutes with Smart Manager Pro","section heading","smart-manager-for-wp-e-commerce")),m("p",{class:"max-w-3xl mt-4 text-xl leading-7 text-gray-500 lg:mx-auto"},_x("Stop opening each product to edit price, stock, category, description, and other data.","section content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("Switch to Smart Manager Pro and spend your time wisely.","section content","smart-manager-for-wp-e-commerce"))," ",_x("Say goodbye to frustration, stress, and calculation errors that keep piling up.","section content","smart-manager-for-wp-e-commerce"))),m("div",{class:"mt-8 max-w-md mx-auto lg:max-w-5xl lg:grid lg:grid-cols-3 lg:col-gap-8"},m("div",{class:"relative lg:col-span-2"},m("div",{class:"mt-4 overflow-hidden"},m("div",{class:"px-6 pt-6 pb-8 bg-gray-50 sm:p-10 sm:pt-6"},m("p",{class:"my-3 text-lg leading-7 text-gray-500"},_x("Mundane store tasks without using Smart Manager","time spent using traditional way section heading","smart-manager-for-wp-e-commerce")),m("ul",{class:"text-base leading-6 text-gray-700 list-disc my-3"},m("li",null,_x("Add one new product or edit details → 3 mins","time spent using traditional way section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("Open and edit 1000s of products one-by-one → 3 hours – 30 hours","time spent using traditional way section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("Search any record to make edits → 3 mins","time spent using traditional way section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("Create 1000s of duplicates → 3 hours – 30 hours","time spent using traditional way section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("Search and delete products → 3 mins","time spent using traditional way section content","smart-manager-for-wp-e-commerce"))),m("span",{class:"mr-3 text-gray-700 text-sm text-lg font-medium"},_x("Total ≈ 6 hours – 60 hours","time spent using traditional way section content","smart-manager-for-wp-e-commerce"))))),m("div",{class:"lg:col-span-1"},m("div",{class:"mt-4 overflow-hidden"},m("div",{class:"px-6 pt-6 pb-8 bg-gray-50 sm:p-10 sm:pt-6"},m("p",{class:"my-3 text-lg leading-7 text-gray-500"},_x("Using Smart Manager","time spent using smart manager section heading","smart-manager-for-wp-e-commerce")),m("ul",{class:"text-base leading-6 text-gray-700 list-disc my-3"},m("li",null,_x("30 seconds (Inline edit)","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("2 mins (Bulk edit)","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("1 min (Search & Edit)","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("2 mins (Duplicate)","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("li",null,_x("1 min (Search & Delete)","time spent using smart manager section content","smart-manager-for-wp-e-commerce"))),m("span",{class:"mr-3 text-gray-700 text-sm text-lg font-medium"},_x("≈ 6 minutes","time spent using smart manager section content","smart-manager-for-wp-e-commerce")))))),m("div",{class:"space-y-2"},m("p",{class:"mt-8 max-w-xl mx-auto text-lg text-gray-600"},_x("And it's not just products –","time spent using smart manager section content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("save time in editing orders, coupons, blog posts, users, WordPress post types, WordPress taxonomies and more.","time spent using smart manager section content","smart-manager-for-wp-e-commerce"))," ",_x("Experience a 10x productivity boost and massive time-savings with Smart Manager Pro!","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),m("p",{class:"max-w-xl mx-auto text-lg text-gray-600"},m("strong",null,_x("Reclaim precious time.","time spent using smart manager section content","smart-manager-for-wp-e-commerce"))," ",_x("to nurture your business and cherish moments with loved ones. If you're ready for a life with","time spent using smart manager section content","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("more freedom and fulfillment","time spent using smart manager section content","smart-manager-for-wp-e-commerce")),_x(", Smart Manager is your solution.","time spent using smart manager section content","smart-manager-for-wp-e-commerce"),m("a",{href:"#",class:"mt-4 flex items-center justify-center px-5 py-3 text-base font-medium leading-6 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline",onclick:function(t){t.preventDefault(),e.scrollToAnchor("sm_price_column_container")}},_x("Select a Plan Now →","pricing page cta","smart-manager-for-wp-e-commerce"))))),m("div",{class:"max-w-screen-xl px-4 pt-12 pb-16 mx-auto sm:pt-16 sm:pb-20 sm:px-6 lg:pt-12 lg:pb-28 lg:px-8"},m("h2",{class:"text-3xl font-extrabold leading-9 text-gray-900"},_x("Still hesitant? Buy with confidence – you’re in good hands","footer heading","smart-manager-for-wp-e-commerce")),m("div",{class:"pt-10 mt-6 border-t-2 border-gray-100"},m("dl",{class:"md:grid md:grid-cols-2 md:gap-8"},m("div",null,m("dt",{class:"text-lg font-medium leading-6 text-gray-900"},_x("You’re buying from the best!","footer content","smart-manager-for-wp-e-commerce")),m("dd",{class:"mt-2 text-base leading-6 text-gray-500"},m("p",null,_x("Rest assured that you will be well taken care of when you buy from StoreApps.","footer content","smart-manager-for-wp-e-commerce")),m("ul",{class:"mt-2 list-disc"},m("li",null,_x("Top selling plugins for marketing and store management","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,m("strong",null,_x("Official WooCommerce","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce"))," ",_x("and GoDaddy partner","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,_x("Founded in 2011, one of the early Woo third party developers","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,m("strong",null,"$",_x("40k+ customers","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce"),", "),_x("300k+ users, millions of downloads","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,_x("Consistent 5 star review ratings","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),m("li",null,_x("WordPress","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")," ",m("strong",null,_x("community contributor","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce")),", ",_x("sponsor, speaker.","footer content - storeapps benefits list","smart-manager-for-wp-e-commerce"))),m("p",null,m("img",{class:"mt-6",src:"https://www.storeapps.org/wp-content/uploads/2018/11/trust-badge-guaranteed-safe-checkout-300-grey.png",alt:_x("Guaranteed Safe Checkout","footer content - trust badge alt text","smart-manager-for-wp-e-commerce"),width:"300",height:"96"})))),m("div",{class:"relative mt-12 md:mt-0"},m("dt",{class:"text-lg font-medium leading-6 text-gray-900"},_x("Friendly support from top quality developers","footer content - trust badge alt text","smart-manager-for-wp-e-commerce")),m("dd",{class:"mt-2 text-base leading-6 text-gray-500"},m("p",null,_x("Our plugins are easy to use. We also have ample documentation. But whenever you need further assistance, you will get support from the same people who develop these plugins! We make sure you succeed!","footer content","smart-manager-for-wp-e-commerce")),m("p",null,m("img",{src:"https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-1024x402.png",alt:_x("StoreApps team is on your side","footer content - storeapps team image alt text","smart-manager-for-wp-e-commerce"),width:"980",height:"385",class:"mt-6 lg:absolute lg:bottom-0",srcset:"\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-1024x402.png 1024w,\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-450x177.png   450w,\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-300x118.png   300w,\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful-768x301.png   768w,\r https://www.storeapps.org/wp-content/uploads/2018/01/storeapps-team-support-options-chat-helpful.png          1491w\r ",sizes:"(max-width: 980px) 100vw, 980px"})))))))))}catch(e){SaErrorHandler.log("In PricingPage view:: ",e)}}}])&&je(e.prototype,t),r&&je(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,Ie(a.key),a)}}function Ie(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=Ee(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}var Ke=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initialize()},(t=[{key:"initialize",value:function(){try{this.modal=Object.assign({title:"",content:"",autoHide:!1,hideDelay:-1,width:"w-1/4",isFooterItemsCenterAligned:!1,hideFooter:!1,cta:{title:_x("Ok","button","smart-manager-for-wp-e-commerce"),callback:this.close},closeCTA:{title:_x("Cancel","button","smart-manager-for-wp-e-commerce"),callback:this.close},contentClass:"",route:""},window[pluginKey].modal||{}),this.showModal=Object.keys(window[pluginKey].modal||{}).length>0&&""!==this.modal.title&&""!==this.modal.content,this.showCloseCTA=Object.keys(window[pluginKey].modal||{}).length>0&&Object.keys(window[pluginKey].modal.closeCTA||{}).length>0,this.showCloseIcon=!(Object.keys(window[pluginKey].modal||{}).length>0&&window[pluginKey].modal.hasOwnProperty("showCloseIcon"))||window[pluginKey].modal.showCloseIcon}catch(e){SaErrorHandler.log("In Modal initialize:: ",e)}}},{key:"close",value:function(){var e=this;try{setTimeout((function(){try{var t;window[pluginKey].modal={},void 0!==window[pluginKey].showPannelDialog&&"function"==typeof window[pluginKey].showPannelDialog&&void 0!==window[pluginKey].getDefaultRoute&&"function"==typeof window[pluginKey].getDefaultRoute&&window[pluginKey].showPannelDialog(null===(t=e.modal)||void 0===t?void 0:t.route,window[pluginKey].getDefaultRoute(!0))}catch(e){SaErrorHandler.log("In Modal close:: ",e)}}),200)}catch(e){SaErrorHandler.log("In Modal close:: ",e)}}},{key:"oncreate",value:function(){try{this.modal.hasOwnProperty("onCreate")&&"function"==typeof this.modal.onCreate&&this.modal.onCreate()}catch(e){SaErrorHandler.log("In Modal oncreate:: ",e)}}},{key:"onupdate",value:function(){try{this.modal.hasOwnProperty("onUpdate")&&"function"==typeof this.modal.onUpdate&&this.modal.onUpdate()}catch(e){SaErrorHandler.log("In Modal onUpdate:: ",e)}}},{key:"view",value:function(){var e=this;try{var t;return this.initialize(),this.modal.hideDelay>0&&setTimeout((function(){try{if(e.showModal&&e.modal.autoHide){var t=document.getElementsByClassName(window[pluginKey].pluginSlug+"-modal-close");t.length>0&&t[0].click()}}catch(e){SaErrorHandler.log("In Modal auto close:: ",e)}}),this.modal.hideDelay),this.showModal?m("div",{class:"modal fade fixed top-0 left-0 w-full h-full flex items-center justify-center bg-gray-800 bg-opacity-75 z-50",id:"".concat(window[pluginKey].pluginSlug,"_modal"),"data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"staticBackdropLabel","aria-modal":"true",role:"dialog"},m("div",{class:"modal-dialog relative w-1/3 max-w-2xl mx-auto ".concat((null===(t=this.modal)||void 0===t?void 0:t.modalClass)||"")},m("div",{class:"modal-content bg-white rounded-lg shadow-xl overflow-hidden pointer-events-auto ".concat(this.modal.contentClass)},m("div",{class:"modal-header flex items-center justify-between px-5 py-3 border-b border-gray-200"},m("h5",{class:"text-lg font-semibold text-gray-800"},m.trust(this.modal.title||"")),this.showCloseIcon?m("button",{type:"button",class:"".concat(window[pluginKey].pluginSlug,"-button-close ").concat(window[pluginKey].pluginSlug,"-modal-close focus:outline-none"),"data-bs-dismiss":"modal","aria-label":"Close",onclick:this.close,title:_x("Close [ESC]","modal close button title","smart-manager-for-wp-e-commerce")},m("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 text-gray-500 hover:text-gray-700",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},m("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"}))):""),m("div",{class:"modal-body px-5 py-4 max-h-96 overflow-y-auto text-sm text-gray-700"},m.trust(this.modal.content||"")),!this.modal.hideFooter&&m("div",{class:"modal-footer flex items-center px-5 py-3 border-t border-gray-200 ".concat(this.modal.isFooterItemsCenterAligned?"justify-center":"justify-end")},this.modal.cta.title?m("button",{type:"button",class:"px-5 py-2 bg-indigo-600 text-white text-sm font-medium rounded-md shadow hover:bg-indigo-500 focus:outline-none",onclick:function(){e.modal.cta.callback&&"function"==typeof e.modal.cta.callback&&e.modal.cta.callback(),(!e.modal.cta.hasOwnProperty("closeModalOnClick")||e.modal.cta.closeModalOnClick)&&e.close()}},this.modal.cta.title):"",this.showCloseCTA&&this.modal.closeCTA.title?m("button",{type:"button",class:"ml-2 px-5 py-2 bg-gray-200 text-gray-600 text-sm font-medium rounded-md hover:bg-gray-300 focus:outline-none","data-bs-dismiss":"modal",onclick:function(){e.modal.closeCTA.callback&&"function"==typeof e.modal.closeCTA.callback&&e.modal.closeCTA.callback(),(!e.modal.closeCTA.hasOwnProperty("closeModalOnClick")||e.modal.closeCTA.closeModalOnClick)&&e.close()}},this.modal.closeCTA.title):"")))):""}catch(e){SaErrorHandler.log("In Modal view:: ",e)}}}])&&Ce(e.prototype,t),r&&Ce(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?De(Object(r),!0).forEach((function(t){Be(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):De(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Be(e,t,r){return(t=He(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,He(a.key),a)}}function He(e){var t=function(e,t){if("object"!=Ae(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=Ae(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ae(t)?t:t+""}var Re=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);try{this.initialize()}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog constructor:: ",e)}},(t=[{key:"initialize",value:function(){try{var e=new FormData,t={cmd:"get_all_privileges",active_module:"access-privilege",security:window.smart_manager.saCommonNonce||""};for(var r in t)e.append(r,t[r]);new c({ruleGroups:[Me({},c.data.default.ruleGroup),Me({},c.data.default.ruleGroup)],fields:{},possibleOperators:{}}),c.accessPrivilegeSettings(e,(function(e,t){e.ruleGroups={condition:"AND",rules:t}||{condition:"AND",rules:[Me({},c.data.default.ruleGroup),Me({},c.data.default.ruleGroup)]},e.privilegeRuleGroups=e.ruleGroups.rules||[],new c({ruleGroups:e.privilegeRuleGroups,fields:{},possibleOperators:{}})}),this)}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog initialize:: ",e)}}},{key:"closeDialog",value:function(){try{void 0!==window.smart_manager.showPannelDialog&&"function"==typeof window.smart_manager.showPannelDialog&&window.smart_manager.showPannelDialog("",m.route.get())}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog closeDialog:: ",e)}}},{key:"view",value:function(){var e=this;try{return m("aside",{style:"z-index: 120000;",class:"fixed inset-x-0 bottom-0 lg:inset-0 lg:flex lg:items-center lg:justify-end"},m("div",{class:"fixed inset-0 transition-opacity"},m("div",{class:"absolute inset-0 bg-gray-800 opacity-75"})),m("section",{class:"w-full h-full max-w-4xl max-h-full mt-12 overflow-auto transition-all transform bg-gray-50 lg:ml-1/6 lg:mt-0"},m("div",{class:"sticky top-0 z-10 w-full bg-gray-100"},m("nav",{class:"px-4 py-2 xl:px-4 lg:py-2"},m("div",{class:"flex items-center justify-between"},m("div",{class:"flex items-center flex-1 gap-2"},m("label",{for:"name",class:"text-xl font-medium text-indigo-600 cursor-default"},_x("Privilege Settings","access privilege settings side pannel - modal title","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-center mt-2 text-right lg:mt-0"},m("div",{class:"flex items-center gap-4 ml-4 lg:ml-2"},m("span",{class:"rounded-md"},m("button",{onclick:function(){try{if(c.data.ruleGroups.length>0){var t=[];e.ruleCount=0,c.data.ruleGroups.map((function(r){var a=[];r.rules.map((function(t){var r=Me({},t);delete r.key,a.push(r),e.ruleCount++})),t.push({condition:r.condition,rules:a})})),window.smart_manager.privilegeSettingsRules=t,window.smart_manager.privilegeSettingsUpdate()}e.closeDialog()}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog Update click:: ",e)}},type:"button",class:"inline-flex justify-center w-full px-4 py-1 text-sm font-medium leading-5 text-white transition duration-150 ease-in-out bg-indigo-600 border border-transparent rounded-md hover:bg-indigo-500 focus:outline-none focus:shadow-outline-indigo"},"Save")),m("button",{onclick:function(){try{e.closeDialog()}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog close click:: ",e)}},class:"p-1 text-gray-400 transition duration-150 ease-in-out border-transparent rounded-full hover:text-gray-500 focus:outline-none focus:text-gray-500 focus:bg-gray-100"},m("svg",{class:"w-6 h-6",stroke:"currentColor","stroke-width":"2",fill:"none",viewBox:"0 0 24 24"},m("path",{d:"M6 18L18 6M6 6l12 12"})))))))),m("div",{class:"grid w-full gap-8 p-8 text-gray-600"},m("div",{class:"w-full text-sm leading-5 text-gray-500"},m("div",{class:"flex items-baseline gap-2 mb-3 -mt-1"},m("span",{class:"mb-3 font-medium text-gray-700"},_x("Manage dashboards access for user roles and users","access privilege settings description","smart-manager-for-wp-e-commerce"))),m("div",{class:"flex items-baseline gap-2 mb-3 -mt-1"},m("span",{class:"text-gray-700"},m("i",null,_x("Note: The privilege setting for a user email will always take precedence over a user role","access privilege settings description","smart-manager-for-wp-e-commerce")))),c.data.ruleGroups?c.data.ruleGroups.map((function(e,t){return m(O,{id:t,key:e.key,isOnlyChild:1==c.data.ruleGroups.length?1:0})})):""))))}catch(e){SaErrorHandler.log("In PrivilegeSettingsDialog view:: ",e)}}}])&&Te(e.prototype,t),r&&Te(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),Ve=document.getElementById("sa_manager_main"),Ge=function(e){try{return[m(I,e.attrs),m(Ke,e.attrs),m(de,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/":: ',e)}},Ne={"/advancedSearch":{view:function(e){try{if(Object.keys(window.smart_manager.colModelSearch).length>0)return[m(I,e.attrs),m(H,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/advancedSearch":: ',e)}}},"/bulkEdit":{view:function(e){try{if(window.smart_manager.columnNamesBatchUpdate&&Object.keys(window.smart_manager.columnNamesBatchUpdate).length>0&&1==window.smart_manager.sm_beta_pro)return[m(Ke,e.attrs),m(I,e.attrs),m(Z,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/bulkEdit":: ',e)}}},"/columnManager":{view:function(e){try{if(window.smart_manager.currentColModel&&Object.keys(window.smart_manager.currentColModel).length>0)return[m(I,e.attrs),m(re,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/columnManager":: ',e)}}},"/settings":{view:function(e){try{if(window.smart_manager.allSettings&&Object.keys(window.smart_manager.allSettings).length>0)return[m(I,e.attrs),m(ke,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/settings":: ',e)}}},"/pricing":{view:function(e){try{return[m(I,e.attrs),m(Pe,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/pricing":: ',e)}}},"/privilegeSettings":{view:function(e){try{if(0==window.smart_manager.gettingData)return[m(I,e.attrs),m(Re,e.attrs)]}catch(e){SaErrorHandler.log('In dashboard route "/privilegeSettings":: ',e)}}},"/dashboard":{view:function(e){return Ge(e)}},"/":{view:function(e){return Ge(e)}}};m.route(Ve,"/",Ne),jQuery(document).on("smart_manager_post_load_grid","#sm_editor_grid",(function(){m.route(Ve,"/",Ne)})),document.addEventListener("keyup",(function(e){if(0!=window.smart_manager.sm_beta_pro&&("Enter"===e.key||"Escape"===e.key)){var t=document.getElementsByClassName("Enter"===e.key?"sm-button-primary":"sm-button-close")[0]||"";t&&t.click()}}))}]);
  • smart-manager-for-wp-e-commerce/trunk/assets/js/smart-manager-product.js

    r3368494 r3390175  
    2121    }
    2222
    23     SmartManagerProduct.prototype.setProductTypeValuesFromColModel = function() {
     23    SmartManager.prototype.setProductTypeValuesFromColModel = function() {
    2424        if (!window.smart_manager.currentColModel){
    2525            return;
     
    3232    }
    3333
    34     SmartManagerProduct.prototype.getSelectedSubscriptionProductIds = function() {
     34    SmartManager.prototype.getSelectedSubscriptionProductIds = function() {
    3535        window.smart_manager.setProductTypeValuesFromColModel();
    3636        if ( !window.smart_manager.selectedRows || !window.smart_manager.currentDashboardData || !window.smart_manager.productTypeValues ) {
  • smart-manager-for-wp-e-commerce/trunk/assets/js/smart-manager.js

    r3385169 r3390175  
    236236        this.pluginSlug = 'sm';
    237237        this.proConstName = 'SmartManagerPro';
     238        this.support_link = sm_beta_params?.support_link || '';
     239        this.review_link = sm_beta_params?.review_link || '';
    238240        this.pluginParams = sm_beta_params;
    239241        //Function to set all the states on unload
     
    891893                if (res && res.hasOwnProperty('meta')) {
    892894                    window.smart_manager.isViewContainSearchParams = (res.meta.hasOwnProperty('is_view_contain_search_params') && (true === res.meta.is_view_contain_search_params || 'true' === res.meta.is_view_contain_search_params)) ? true : false;
     895                    //Show feedback modal when Advanced Search show some results.
     896                    if(res.meta.hasOwnProperty('show_feedback') && true === res.meta.show_feedback && parseInt(res.total_count)){
     897                        window.smart_manager.showFeedbackModal();
     898                    }
    893899                }
    894900
     
    10641070            table_model: (window.smart_manager.currentDashboardModel.hasOwnProperty('tables')) ? window.smart_manager.currentDashboardModel.tables : '',
    10651071            search_text: (window.smart_manager.searchType == 'simple') ? window.smart_manager.simpleSearchText : '',
    1066             advanced_search_query: JSON.stringify((window.smart_manager.searchType != 'simple' || window.smart_manager.loadingDashboardForsavedSearch === true) ? window.smart_manager.advancedSearchQuery : [])
     1072            advanced_search_query: JSON.stringify((window.smart_manager.searchType != 'simple' || window.smart_manager.loadingDashboardForsavedSearch === true) ? window.smart_manager.advancedSearchQuery : []),
     1073            show_variations: jQuery('#sm_products_show_variations').is(":checked"),
    10671074        };
    10681075
     
    13761383        params.data = ("undefined" !== typeof (window.smart_manager.addTasksParams) && "function" === typeof (window.smart_manager.addTasksParams) && 1 == window.smart_manager.sm_beta_pro) ? window.smart_manager.addTasksParams(params.data) : params.data;
    13771384        window.smart_manager.sendRequest(params, function (response) {
     1385            if (window.smart_manager.isJSON(response)) {
     1386                response = JSON.parse(response);
     1387                if(response?.show_feedback){
     1388                    window[pluginKey].showFeedbackModal()
     1389                }
     1390            }
    13781391            if (galleryImages.hasOwnProperty('rowNo')) {
    13791392                window.smart_manager.getData({ refreshPage: (Math.ceil((parseInt(galleryImages.rowNo) / window.smart_manager.limit))) });
     
    31623175                    let title = 'success'
    31633176                    if (window.smart_manager.isJSON(response)) {
    3164                         // title = 'note'
    31653177                        response = JSON.parse(response);
    31663178                        msg = response.msg;
     3179                        if(response?.show_feedback){
     3180                            window[pluginKey].showFeedbackModal()
     3181                        }
    31673182                    } else {
    31683183                        msg = response;
     
    35563571        }
    35573572        window.smart_manager.showNotification();
     3573    }
     3574    //Function to show Feedback modal.
     3575    SmartManager.prototype.showFeedbackModal = function () {
     3576        window[pluginKey].can_ask_for_feedback = 1
     3577        window[pluginKey].showPannelDialog(this.getDefaultRoute());
    35583578    }
    35593579    let instance = new SmartManager();
     
    40634083        window.smart_manager.sendRequest(params, function(response){
    40644084            if('failed' !== response){
     4085                if(window.smart_manager.isJSON(response)){
     4086                    response = JSON.parse(response);
     4087                }
    40654088                window.smart_manager.hot.setDataAtCell(imageParams.row, imageParams.col, imageParams.value, imageParams.source);
    4066                 if(window.smart_manager.isJSON(response) && ('undefined' === typeof(window.smart_manager.sm_beta_pro) || ('undefined' !== typeof(window.smart_manager.sm_beta_pro) && 1 != window.smart_manager.sm_beta_pro))){
    4067                     response = JSON.parse(response);
     4089                if(('undefined' === typeof(window.smart_manager.sm_beta_pro) || ('undefined' !== typeof(window.smart_manager.sm_beta_pro) && 1 != window.smart_manager.sm_beta_pro))){
    40684090                    msg = response.msg;
    40694091                    if('undefined' !== typeof(response.sm_inline_update_count)){
     
    40744096                }else{
    40754097                    msg = response;
     4098                }
     4099                if(response?.show_feedback){
     4100                    window[pluginKey].showFeedbackModal()
    40764101                }
    40774102            }
  • smart-manager-for-wp-e-commerce/trunk/class-smart-manager.php

    r3385169 r3390175  
    192192        }
    193193
     194        // Set plugin review link.
     195        if ( ! defined( 'SM_REVIEW_URL' ) ) {
     196            define( 'SM_REVIEW_URL', 'https://wordpress.org/support/plugin/smart-manager-for-wp-e-commerce/reviews/?filter=5#new-post' );
     197        }
     198        // Set contact human support link.
     199        if ( ! defined( 'SM_CONTACT_SUPPORT_URL' ) ) {
     200            define( 'SM_CONTACT_SUPPORT_URL', 'https://www.storeapps.org/support/contact-us/' );
     201        }
    194202        if ( ! defined( 'SMPRO' ) ) {
    195203            if (file_exists ( (dirname ( SM_PLUGIN_FILE )) . '/pro/assets/js/smart-manager.js' )) {
     
    344352        if( file_exists( $this->plugin_path . '/classes/class-smart-manager-install.php' ) ) {
    345353            include_once $this->plugin_path . '/classes/class-smart-manager-install.php';
     354        }
     355        if( file_exists( $this->plugin_path . '/classes/class-smart-manager-install.php' ) ) {
     356            include_once $this->plugin_path . '/classes/class-smart-manager-uninstall.php';
    346357        }
    347358        if( file_exists( $this->plugin_path . '/classes/class-smart-manager-utils.php' ) ) {
     
    916927    function add_admin_notices() {
    917928        if ( ( ! empty( $_GET['page'] ) ) && ( defined('SMPRO') ) && ( SMPRO === true ) && ( 'sm-storeapps-plugins' === $_GET['page'] || ( ( 'smart-manager' === $_GET['page'] ) && ( ! empty( $_GET['landing-page'] ) && ( 'sm-about' ===  $_GET['landing-page'] ) ) ) ) ) {
    918             $this->add_feature_notice(
    919                 'ai_based_advanced_search_for_products',
    920                 _x( '<strong>AI-Powered Advanced Product Search!</strong>', 'admin notice description for new feature', 'smart-manager-for-wp-e-commerce' ),
    921                 _x( 'Enable it via <strong>Settings > General Settings > AI Integration</strong>.', 'admin notice instructions for new feature', 'smart-manager-for-wp-e-commerce' )
    922             );
     929            $this->add_feature_notice( 'link_to_view_product_edit_history' );
    923930        }
    924931        if( !( !empty( $_GET['page'] ) && ( 'smart-manager' === $_GET['page'] ) ) ) {
     
    14111418                            'subscriptionsExist' => ( class_exists( 'WC_Subscriptions' ) && function_exists( 'wcs_do_subscriptions_exist' ) ) ? wcs_do_subscriptions_exist() : false,
    14121419                            'isStripeGatewayActive' => sm_is_stripe_gateway_active(),
    1413                             'is_ai_integration_enabled' => self::is_ai_integration_enabled()
     1420                            'is_ai_integration_enabled' => self::is_ai_integration_enabled(),
     1421                            'review_link'  => SM_REVIEW_URL,
     1422                            'support_link' => SM_CONTACT_SUPPORT_URL
    14141423                        );
    14151424
     
    15491558            ?>
    15501559                <style type="text/css">
     1560                    /* Hide common notice/alert patterns */
     1561                    #wpbody-content > div[class*="-notice"],
     1562                    #wpbody-content > div[class*="-alert"],
     1563                    #wpbody-content > div[class*="-message"],
     1564                    #wpbody-content > div[class*="notice-"],
     1565                    #wpbody-content > div[class*="alert-"],
     1566                    #wpbody-content > div[id*="-notice"],
     1567                    #wpbody-content > div[id*="-alert"] {
     1568                        display: none !important;
     1569                    }
     1570
    15511571                    .notice {
    15521572                        display: none !important;
     
    17801800            }
    17811801            if( is_callable( array( $this, 'add_feature_notice' ) ) ) {
    1782                 $this->add_feature_notice(
    1783                     'ai_based_advanced_search_for_products',
    1784                     _x( '<strong>AI-Powered Advanced Product Search!</strong>', 'admin notice description for new feature', 'smart-manager-for-wp-e-commerce' ),
    1785                     _x( 'Enable it via <strong>Settings > General Settings > AI Integration</strong>.', 'admin notice instructions for new feature', 'smart-manager-for-wp-e-commerce' )
    1786                 );
     1802                $this->add_feature_notice( 'link_to_view_product_edit_history' );
    17871803            }
    17881804            if( ! $is_pricing_page ) {
     
    18971913                        /* translators: 1: open the anchor tag for plugin review link 2: five star symbol 3: close the anchor tag for plugin review link */
    18981914                        esc_html_x( 'If you like it, please give us %1$s %2$s rating%3$s.', 'text for plugin review in footer', 'smart-manager-for-wp-e-commerce' ),
    1899                         '<a target="_blank" href="https://wordpress.org/support/plugin/smart-manager-for-wp-e-commerce/reviews/?filter=5#new-post">',
     1915                        '<a target="_blank" href="'.SM_REVIEW_URL.'">',
    19001916                        '<span class="sm-star">&starf;&starf;&starf;&starf;&starf;</span>',
    19011917                        '</a>'
     
    19091925                        /* translators: 1: open the anchor tag for plugin feature request link 2: close the anchor tag for plugin feature request link */
    19101926                        esc_html_x( 'Do you have a feature request? Tell us %1$shere%2$s.', 'text for plugin feature request in footer', 'smart-manager-for-wp-e-commerce' ),
    1911                         '<a target="_blank" href="https://www.storeapps.org/support/contact-us/?utm_source=sm&utm_medium=in_app_footer&utm_campaign=feature_request">',
     1927                        '<a target="_blank" href="'.SM_CONTACT_SUPPORT_URL.'?utm_source=sm&utm_medium=in_app_footer&utm_campaign=feature_request">',
    19121928                        '</a>'
    19131929                    );
     
    23342350     *
    23352351     * @param string $feature_key Unique identifier for the feature (e.g., 'sku_generation', 'bulk_edit').
    2336      * @param string $description The main description of the feature.
    2337      * @param string $instructions Optional instructions on how to use the feature.
    23382352     * @return void
    23392353     */
    2340     public function add_feature_notice( $feature_key = '', $description = '', $instructions = '' ) {
    2341         if ( ( empty( $feature_key ) ) || ( empty( $description ) ) || ( empty( $instructions ) ) ) {
     2354    public function add_feature_notice( $feature_key = '' ) {
     2355        $description = _x( 'Access WooCommerce product edit history directly from the product\'s row actions on the Products admin list page, as well as from the Product Edit page.', 'admin notice description for new feature', 'smart-manager-for-wp-e-commerce' );
     2356
     2357        if ( ( empty( $feature_key ) ) || ( empty( $description ) ) ) {
    23422358            return;
    23432359        }
    2344         $this->clear_previous_feature_notices( array( 'generate_sku_feature' ) );
     2360        //Remove previous feature notice DB options.
     2361        $this->clear_previous_feature_notices( array( 'ai_based_advanced_search_for_products' ) );
     2362       
    23452363        $feature_key = sanitize_key( $feature_key );
    23462364        if ( ( ! defined('SMPRO') ) || ( SMPRO !== true ) || ( empty( $_GET['page'] ) ) || ( ! in_array( sanitize_text_field( wp_unslash( $_GET['page'] ) ), array( 'smart-manager', 'sm-storeapps-plugins', 'sm-about' ), true ) ) || get_option( "sa_sm_hide_{$feature_key}_notice" ) ) {
     
    23652383       
    23662384        printf(
    2367             '<div class="sm_feature_notice notice notice-%s is-dismissible" id="sm_%s_notice" style="display:block !important;"><p>✨ <strong>%s</strong> %s %s</p></div>',
     2385            '<div class="sm_feature_notice notice notice-%s is-dismissible" id="sm_%s_notice" style="display:block !important;"><p>🚀 <strong>%s</strong> %s </p></div>',
    23682386            'success',
    23692387            esc_attr( $feature_key ),
    2370             'Introducing:',
    2371             wp_kses_post( $description ),
    2372             wp_kses_post( $instructions )
     2388            'Feature Update:',
     2389            wp_kses_post( $description )
    23732390        );
    23742391    }
  • smart-manager-for-wp-e-commerce/trunk/classes/class-smart-manager-base.php

    r3385169 r3390175  
    8888            add_filter( 'sm_modify_store_model_for_trash_status', array( $this, 'modify_store_model_for_trash_status' ) );
    8989            add_filter( 'sm_modify_store_model_search_params', array( $this, 'modify_store_model_search_params' ), 10, 2 );
     90            add_filter( 'sm_data_model', array( $this, 'on_data_model_load' ), 10, 2 );
    9091        }
    9192
     
    21922193            //Update man-hrs data in DB
    21932194            Smart_Manager::sm_update_man_hours_data( $is_advanced_search ? 'advanced_search_inline' : 'inline', sizeof( $edited_data ) );
     2195            $resp = array();
     2196            if ( ( defined( 'SM_SKU' ) ) && ( class_exists( 'SA_Manager_Feedback' ) ) && ( is_callable( array( 'SA_Manager_Feedback', 'handle_feedback_tracking' ) ) ) ) {
     2197                SA_Manager_Feedback::handle_feedback_tracking( SM_SKU, 'inline_edit' );
     2198                $resp['show_feedback'] = ( is_callable( array( 'SA_Manager_Feedback', 'show_feedback' ) ) ) ? SA_Manager_Feedback::show_feedback( SM_SKU ) : false;
     2199            }
    21942200            if( isset( $this->req_params['pro'] ) && empty( $this->req_params['pro'] ) ) {
    21952201                $sm_inline_update_count = get_option( 'sm_inline_update_count', 0 );
     
    22232229                            );
    22242230                }
    2225                 $resp = array(
    2226                             'sm_inline_update_count' => $sm_inline_update_count,
    2227                             'modal_message' => $modal_message,
    2228                             'msg' => sprintf(
    2229                                     /* translators: %1$d: number of updated record %2$s: record update message */
    2230                                     esc_html__( '%1$d record%2$s updated successfully!', 'smart-manager-for-wp-e-commerce'), sizeof( $edited_data ), $msg_str
    2231                                 ),
    2232                         );
    2233 
    2234                 $msg = json_encode($resp);
     2231                $resp['msg'] = sprintf(
     2232                    /* translators: %1$d: number of updated record %2$s: record update message */
     2233                    esc_html__( '%1$d record%2$s updated successfully!', 'smart-manager-for-wp-e-commerce'), sizeof( $edited_data ), $msg_str
     2234                );
     2235                $resp['sm_inline_update_count'] = $sm_inline_update_count;
     2236                $resp['modal_message'] = $modal_message;
    22352237            } else {
    2236                 $msg = sprintf(
     2238                $resp['msg'] = sprintf(
    22372239                    /* translators: %1$d: number of updated record %2$s: record update message */
    22382240                    esc_html__( '%1$d record%2$s updated successfully! %3$s', 'smart-manager-for-wp-e-commerce' ), sizeof( $edited_data ), $msg_str, '<a href="#" id="undo_action" data-task-id="'.$this->task_id.'">Undo last update.</a>');
    22392241            }
    2240 
     2242            $msg = json_encode($resp);
    22412243            echo $msg;
    22422244            exit;
     
    37343736            return $params['order_by'];
    37353737        }
     3738
     3739        /**
     3740         * Handle data model load event and trigger feedback tracking based on request parameters.
     3741         *
     3742         * @param array $data_model      Data model array.
     3743         * @param array $data_col_params Data column parameters.
     3744         * @return array Modified data model.
     3745         */
     3746        public function on_data_model_load( $data_model = array(), $data_col_params = array() ) {
     3747            if ( ! empty( $data_model ) && is_array( $data_model ) && ! empty( $this->req_params ) && is_array( $this->req_params ) && defined( 'SM_SKU' ) && class_exists( 'SA_Manager_Feedback' ) && is_callable( array( 'SA_Manager_Feedback', 'handle_feedback_tracking' ) ) ) {
     3748                $action = ( ! empty( $this->req_params['advanced_search_query'] ) && is_array( $this->req_params['advanced_search_query'] ) ) ? 'advanced_search' : ( ( ! empty( $this->req_params['show_variations'] ) && 'true' === $this->req_params['show_variations'] ) ? 'show_variations' : '' );
     3749                if ( ! empty( $action ) ) {
     3750                    SA_Manager_Feedback::handle_feedback_tracking( SM_SKU, $action );
     3751                    if ( ( 'advanced_search' === $action ) && ( is_callable( array( 'SA_Manager_Feedback', 'show_feedback' ) ) ) ) {
     3752                        $data_model['meta']['show_feedback'] = SA_Manager_Feedback::show_feedback( SM_SKU );
     3753                    }
     3754                   
     3755                }
     3756            }
     3757            return $data_model;
     3758        }
     3759
    37363760    }
    37373761}
  • smart-manager-for-wp-e-commerce/trunk/classes/class-smart-manager-install.php

    r3348144 r3390175  
    5252        '8.69.0' => array(
    5353            'update_869_alter_table'
     54        ),
     55        '8.74.0' => array(
     56            'update_874_add_options'
    5457        )
    5558    );
     
    611614        }
    612615    }
     616
     617    /**
     618     * Add new feedback-related options during plugin update (version 8.7.4).
     619     *
     620     * @return void
     621    */
     622    public static function update_874_add_options() {
     623        //Check if fresh install.
     624        if ( empty( get_option( 'sa_sm_db_version', null ) ) ) {
     625            return;
     626        }
     627        // For existing installs, add feedback start date option if not exists.
     628        if ( empty( get_option( 'sa_sm_feedback_start_date', false ) ) ) {
     629            update_option( 'sa_sm_feedback_start_date', gmdate( 'Y-m-d', sa_get_offset_timestamp() ), 'no' );
     630        }
     631    }
    613632}
    614633
  • smart-manager-for-wp-e-commerce/trunk/common-core/assets/css/styles.css

    r3368494 r3390175  
    11#sa_manager_main html{line-height:1.15;-webkit-text-size-adjust:100%}#sa_manager_main body{margin:0}#sa_manager_main a{background-color:transparent}#sa_manager_main strong{font-weight:bolder}#sa_manager_main code{font-family:monospace,monospace;font-size:1em}#sa_manager_main img{border-style:none}#sa_manager_main button,#sa_manager_main input,#sa_manager_main select{font-family:inherit;font-size:100%;line-height:1.15;margin:0}#sa_manager_main button,#sa_manager_main input{overflow:visible}#sa_manager_main button,#sa_manager_main select{text-transform:none}#sa_manager_main [type=button],#sa_manager_main button{-webkit-appearance:button}#sa_manager_main [type=button]::-moz-focus-inner,#sa_manager_main button::-moz-focus-inner{border-style:none;padding:0}#sa_manager_main [type=button]:-moz-focusring,#sa_manager_main button:-moz-focusring{outline:1px dotted ButtonText}#sa_manager_main [type=checkbox],#sa_manager_main [type=radio]{box-sizing:border-box;padding:0}#sa_manager_main [type=number]::-webkit-inner-spin-button,#sa_manager_main [type=number]::-webkit-outer-spin-button{height:auto}#sa_manager_main [type=search]{-webkit-appearance:textfield;outline-offset:-2px}#sa_manager_main [type=search]::-webkit-search-decoration{-webkit-appearance:none}#sa_manager_main ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}#sa_manager_main details{display:block}#sa_manager_main [hidden]{display:none}#sa_manager_main dd,#sa_manager_main dl,#sa_manager_main h2,#sa_manager_main h5,#sa_manager_main p{margin:0}#sa_manager_main button{background-color:transparent;background-image:none}#sa_manager_main button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}#sa_manager_main ul{list-style:none;margin:0;padding:0}#sa_manager_main html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}#sa_manager_main *,#sa_manager_main :after,#sa_manager_main :before{box-sizing:border-box;border:0 solid #d2d6dc}#sa_manager_main img{border-style:solid}#sa_manager_main input::-moz-placeholder{color:#a0aec0}#sa_manager_main input::placeholder{color:#a0aec0}#sa_manager_main [role=button],#sa_manager_main button{cursor:pointer}#sa_manager_main table{border-collapse:collapse}
    2   /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */#sa_manager_main h2,#sa_manager_main h5{font-size:inherit;font-weight:inherit}#sa_manager_main a{color:inherit;text-decoration:inherit}#sa_manager_main button,#sa_manager_main input,#sa_manager_main select{padding:0;line-height:inherit;color:inherit}#sa_manager_main code{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}#sa_manager_main img,#sa_manager_main object,#sa_manager_main svg{display:block;vertical-align:middle}#sa_manager_main img{max-width:100%;height:auto}#sa_manager_main,#sa_manager_main body,#sa_manager_main html{-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;margin:0}#sa_manager_main .form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}#sa_manager_main .form-input::-moz-placeholder{color:#9fa6b2;opacity:1}#sa_manager_main .form-input::placeholder{color:#9fa6b2;opacity:1}#sa_manager_main .form-input:focus{outline:none;box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}#sa_manager_main .form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239fa6b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;background-repeat:no-repeat;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem 2.5rem .5rem .75rem;font-size:1rem;line-height:1.5;background-position:right .5rem center;background-size:1.5em 1.5em}#sa_manager_main .form-select::-ms-expand{color:#9fa6b2;border:none}@media not print{#sa_manager_main .form-select::-ms-expand{display:none}}@media print and (-ms-high-contrast:active),print and (-ms-high-contrast:none){#sa_manager_main .form-select{padding-right:.75rem}}#sa_manager_main .form-select:focus{outline:none;box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}#sa_manager_main .form-radio:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{#sa_manager_main .form-radio::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}#sa_manager_main .form-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;border-radius:100%;height:1rem;width:1rem;color:#3f83f8;background-color:#fff;border-color:#d2d6dc;border-width:1px}#sa_manager_main .form-radio:focus{outline:none;box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}#sa_manager_main .form-radio:checked:focus{border-color:transparent}#sa_manager_main .space-y-2>:not(template)~:not(template){--space-y-reverse:0!important;margin-top:calc(0.5rem*(1 - var(--space-y-reverse)))!important;margin-bottom:calc(0.5rem*var(--space-y-reverse))!important}#sa_manager_main .space-y-3>:not(template)~:not(template){--space-y-reverse:0!important;margin-top:calc(0.75rem*(1 - var(--space-y-reverse)))!important;margin-bottom:calc(0.75rem*var(--space-y-reverse))!important}#sa_manager_main .divide-y>:not(template)~:not(template){--divide-y-reverse:0!important;border-top-width:calc(1px*(1 - var(--divide-y-reverse)))!important;border-bottom-width:calc(1px*var(--divide-y-reverse))!important}#sa_manager_main .divide-gray-200>:not(template)~:not(template){--divide-opacity:1!important;border-color:#e5e7eb!important;border-color:rgba(229,231,235,var(--divide-opacity))!important}#sa_manager_main .bg-transparent{background-color:transparent!important}#sa_manager_main .bg-white{--bg-opacity:1!important;background-color:#fff!important;background-color:rgba(255,255,255,var(--bg-opacity))!important}#sa_manager_main .bg-gray-50{--bg-opacity:1!important;background-color:#f9fafb!important;background-color:rgba(249,250,251,var(--bg-opacity))!important}#sa_manager_main .bg-gray-100{--bg-opacity:1!important;background-color:#f4f5f7!important;background-color:rgba(244,245,247,var(--bg-opacity))!important}#sa_manager_main .bg-gray-200{--bg-opacity:1!important;background-color:#e5e7eb!important;background-color:rgba(229,231,235,var(--bg-opacity))!important}#sa_manager_main .bg-gray-800{--bg-opacity:1!important;background-color:#252f3f!important;background-color:rgba(37,47,63,var(--bg-opacity))!important}#sa_manager_main .bg-indigo-50{--bg-opacity:1!important;background-color:#f0f5ff!important;background-color:rgba(240,245,255,var(--bg-opacity))!important}#sa_manager_main .bg-indigo-100{--bg-opacity:1!important;background-color:#e5edff!important;background-color:rgba(229,237,255,var(--bg-opacity))!important}#sa_manager_main .bg-indigo-600{--bg-opacity:1!important;background-color:#5850ec!important;background-color:rgba(88,80,236,var(--bg-opacity))!important}#sa_manager_main .bg-warning{--bg-opacity:1!important;background-color:#fbe7c6!important;background-color:rgba(251,231,198,var(--bg-opacity))!important}#sa_manager_main .bg-success{--bg-opacity:1!important;background-color:#b7f7c4!important;background-color:rgba(183,247,196,var(--bg-opacity))!important}#sa_manager_main .bg-error{--bg-opacity:1!important;background-color:#ffb7b6!important;background-color:rgba(255,183,182,var(--bg-opacity))!important}#sa_manager_main .bg-warning400{background-color:rgba(255,246,230,.7098039215686275)!important}#sa_manager_main .hover\:bg-gray-300:hover{--bg-opacity:1!important;background-color:#d2d6dc!important;background-color:rgba(210,214,220,var(--bg-opacity))!important}#sa_manager_main .hover\:bg-indigo-500:hover{--bg-opacity:1!important;background-color:#6875f5!important;background-color:rgba(104,117,245,var(--bg-opacity))!important}#sa_manager_main .focus\:bg-gray-100:focus{--bg-opacity:1!important;background-color:#f4f5f7!important;background-color:rgba(244,245,247,var(--bg-opacity))!important}#sa_manager_main .bg-opacity-75{--bg-opacity:0.75!important}#sa_manager_main .border-transparent{border-color:transparent!important}#sa_manager_main .border-gray-100{--border-opacity:1!important;border-color:#f4f5f7!important;border-color:rgba(244,245,247,var(--border-opacity))!important}#sa_manager_main .border-gray-200{--border-opacity:1!important;border-color:#e5e7eb!important;border-color:rgba(229,231,235,var(--border-opacity))!important}#sa_manager_main .border-gray-400{--border-opacity:1!important;border-color:#9fa6b2!important;border-color:rgba(159,166,178,var(--border-opacity))!important}#sa_manager_main .hover\:border-red-600:hover{--border-opacity:1!important;border-color:#e02424!important;border-color:rgba(224,36,36,var(--border-opacity))!important}#sa_manager_main .hover\:border-green-600:hover{--border-opacity:1!important;border-color:#057a55!important;border-color:rgba(5,122,85,var(--border-opacity))!important}#sa_manager_main .hover\:border-indigo-600:hover{--border-opacity:1!important;border-color:#5850ec!important;border-color:rgba(88,80,236,var(--border-opacity))!important}#sa_manager_main .focus\:border-red-600:focus{--border-opacity:1!important;border-color:#e02424!important;border-color:rgba(224,36,36,var(--border-opacity))!important}#sa_manager_main .focus\:border-green-600:focus{--border-opacity:1!important;border-color:#057a55!important;border-color:rgba(5,122,85,var(--border-opacity))!important}#sa_manager_main .focus\:border-indigo-600:focus{--border-opacity:1!important;border-color:#5850ec!important;border-color:rgba(88,80,236,var(--border-opacity))!important}#sa_manager_main .rounded{border-radius:.25rem!important}#sa_manager_main .rounded-md{border-radius:.375rem!important}#sa_manager_main .rounded-lg{border-radius:.5rem!important}#sa_manager_main .rounded-full{border-radius:9999px!important}#sa_manager_main .border{border-width:1px!important}#sa_manager_main .border-t-2{border-top-width:2px!important}#sa_manager_main .border-t{border-top-width:1px!important}#sa_manager_main .border-b{border-bottom-width:1px!important}#sa_manager_main .cursor-default{cursor:default!important}#sa_manager_main .flex{display:flex!important}#sa_manager_main .inline-flex{display:inline-flex!important}#sa_manager_main .table{display:table!important}#sa_manager_main .grid{display:grid!important}#sa_manager_main .hidden{display:none!important}#sa_manager_main .items-end{align-items:flex-end!important}#sa_manager_main .items-center{align-items:center!important}#sa_manager_main .items-baseline{align-items:baseline!important}#sa_manager_main .justify-end{justify-content:flex-end!important}#sa_manager_main .justify-center{justify-content:center!important}#sa_manager_main .justify-between{justify-content:space-between!important}#sa_manager_main .flex-1{flex:1 1 0%!important}#sa_manager_main .flex-shrink-0{flex-shrink:0!important}#sa_manager_main .font-medium{font-weight:500!important}#sa_manager_main .font-semibold{font-weight:600!important}#sa_manager_main .font-extrabold{font-weight:800!important}#sa_manager_main .h-4{height:1rem!important}#sa_manager_main .h-5{height:1.25rem!important}#sa_manager_main .h-6{height:1.5rem!important}#sa_manager_main .h-8{height:2rem!important}#sa_manager_main .h-9{height:2.25rem!important}#sa_manager_main .h-15{height:3.75rem!important}#sa_manager_main .h-24{height:6rem!important}#sa_manager_main .h-full{height:100%!important}#sa_manager_main .text-xs{font-size:.75rem!important}#sa_manager_main .text-sm{font-size:.875rem!important}#sa_manager_main .text-base{font-size:1rem!important}#sa_manager_main .text-lg{font-size:1.125rem!important}#sa_manager_main .text-xl{font-size:1.25rem!important}#sa_manager_main .text-2xl{font-size:1.5rem!important}#sa_manager_main .text-3xl{font-size:1.875rem!important}#sa_manager_main .text-4xl{font-size:2.25rem!important}#sa_manager_main .leading-5{line-height:1.25rem!important}#sa_manager_main .leading-6{line-height:1.5rem!important}#sa_manager_main .leading-7{line-height:1.75rem!important}#sa_manager_main .leading-8{line-height:2rem!important}#sa_manager_main .leading-9{line-height:2.25rem!important}#sa_manager_main .leading-none{line-height:1!important}#sa_manager_main .list-disc{list-style-type:disc!important}#sa_manager_main .m-2{margin:.5rem!important}#sa_manager_main .m-3{margin:.75rem!important}#sa_manager_main .m-auto{margin:auto!important}#sa_manager_main .my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}#sa_manager_main .mx-auto{margin-left:auto!important;margin-right:auto!important}#sa_manager_main .mt-1{margin-top:.25rem!important}#sa_manager_main .mt-2{margin-top:.5rem!important}#sa_manager_main .mr-2{margin-right:.5rem!important}#sa_manager_main .ml-2{margin-left:.5rem!important}#sa_manager_main .mr-3{margin-right:.75rem!important}#sa_manager_main .mb-3{margin-bottom:.75rem!important}#sa_manager_main .ml-3{margin-left:.75rem!important}#sa_manager_main .mt-4{margin-top:1rem!important}#sa_manager_main .ml-4{margin-left:1rem!important}#sa_manager_main .mt-5{margin-top:1.25rem!important}#sa_manager_main .mt-6{margin-top:1.5rem!important}#sa_manager_main .mb-6{margin-bottom:1.5rem!important}#sa_manager_main .mt-8{margin-top:2rem!important}#sa_manager_main .mt-12{margin-top:3rem!important}#sa_manager_main .-mt-1{margin-top:-.25rem!important}#sa_manager_main .max-h-96{max-height:24rem!important}#sa_manager_main .max-h-full{max-height:100%!important}#sa_manager_main .max-w-sm{max-width:24rem!important}#sa_manager_main .max-w-md{max-width:28rem!important}#sa_manager_main .max-w-lg{max-width:32rem!important}#sa_manager_main .max-w-xl{max-width:36rem!important}#sa_manager_main .max-w-2xl{max-width:42rem!important}#sa_manager_main .max-w-3xl{max-width:48rem!important}#sa_manager_main .max-w-4xl{max-width:56rem!important}#sa_manager_main .max-w-full{max-width:100%!important}#sa_manager_main .max-w-screen-xl{max-width:1280px!important}#sa_manager_main .opacity-75{opacity:.75!important}#sa_manager_main .focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}#sa_manager_main .overflow-auto{overflow:auto!important}#sa_manager_main .overflow-hidden{overflow:hidden!important}#sa_manager_main .overflow-scroll{overflow:scroll!important}#sa_manager_main .overflow-y-auto{overflow-y:auto!important}#sa_manager_main .p-1{padding:.25rem!important}#sa_manager_main .p-2{padding:.5rem!important}#sa_manager_main .p-3{padding:.75rem!important}#sa_manager_main .p-4{padding:1rem!important}#sa_manager_main .p-8{padding:2rem!important}#sa_manager_main .py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}#sa_manager_main .px-1{padding-left:.25rem!important;padding-right:.25rem!important}#sa_manager_main .py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}#sa_manager_main .py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}#sa_manager_main .px-3{padding-left:.75rem!important;padding-right:.75rem!important}#sa_manager_main .py-4{padding-top:1rem!important;padding-bottom:1rem!important}#sa_manager_main .px-4{padding-left:1rem!important;padding-right:1rem!important}#sa_manager_main .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}#sa_manager_main .py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}#sa_manager_main .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}#sa_manager_main .py-8{padding-top:2rem!important;padding-bottom:2rem!important}#sa_manager_main .py-0\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}#sa_manager_main .pl-0{padding-left:0!important}#sa_manager_main .pt-1{padding-top:.25rem!important}#sa_manager_main .pb-2{padding-bottom:.5rem!important}#sa_manager_main .pt-3{padding-top:.75rem!important}#sa_manager_main .pl-3{padding-left:.75rem!important}#sa_manager_main .pt-4{padding-top:1rem!important}#sa_manager_main .pt-6{padding-top:1.5rem!important}#sa_manager_main .pr-8{padding-right:2rem!important}#sa_manager_main .pb-8{padding-bottom:2rem!important}#sa_manager_main .pt-10{padding-top:2.5rem!important}#sa_manager_main .pt-12{padding-top:3rem!important}#sa_manager_main .pb-16{padding-bottom:4rem!important}#sa_manager_main .pointer-events-none{pointer-events:none!important}#sa_manager_main .pointer-events-auto{pointer-events:auto!important}#sa_manager_main .static{position:static!important}#sa_manager_main .fixed{position:fixed!important}#sa_manager_main .absolute{position:absolute!important}#sa_manager_main .relative{position:relative!important}#sa_manager_main .sticky{position:sticky!important}#sa_manager_main .inset-0{top:0!important;bottom:0!important}#sa_manager_main .inset-0,#sa_manager_main .inset-x-0{right:0!important;left:0!important}#sa_manager_main .top-0{top:0!important}#sa_manager_main .bottom-0{bottom:0!important}#sa_manager_main .left-0{left:0!important}#sa_manager_main .bottom-2{bottom:.5rem!important}#sa_manager_main .shadow-xs{box-shadow:0 0 0 1px rgba(0,0,0,.05)!important}#sa_manager_main .shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06)!important}#sa_manager_main .shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)!important}#sa_manager_main .shadow-xl{box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)!important}#sa_manager_main .focus\:shadow-outline:focus{box-shadow:0 0 0 3px rgba(118,169,250,.45)!important}#sa_manager_main .focus\:shadow-outline-green:focus{box-shadow:0 0 0 3px rgba(132,225,188,.45)!important}#sa_manager_main .focus\:shadow-outline-red:focus{box-shadow:0 0 0 3px rgba(248,180,180,.45)!important}#sa_manager_main .focus\:shadow-outline-indigo:focus{box-shadow:0 0 0 3px rgba(180,198,252,.45)!important}#sa_manager_main .table-auto{table-layout:auto!important}#sa_manager_main .text-left{text-align:left!important}#sa_manager_main .text-center{text-align:center!important}#sa_manager_main .text-right{text-align:right!important}#sa_manager_main .text-white{--text-opacity:1!important;color:#fff!important;color:rgba(255,255,255,var(--text-opacity))!important}#sa_manager_main .text-gray-50{--text-opacity:1!important;color:#f9fafb!important;color:rgba(249,250,251,var(--text-opacity))!important}#sa_manager_main .text-gray-300{--text-opacity:1!important;color:#d2d6dc!important;color:rgba(210,214,220,var(--text-opacity))!important}#sa_manager_main .text-gray-400{--text-opacity:1!important;color:#9fa6b2!important;color:rgba(159,166,178,var(--text-opacity))!important}#sa_manager_main .text-gray-500{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}#sa_manager_main .text-gray-600{--text-opacity:1!important;color:#4b5563!important;color:rgba(75,85,99,var(--text-opacity))!important}#sa_manager_main .text-gray-700{--text-opacity:1!important;color:#374151!important;color:rgba(55,65,81,var(--text-opacity))!important}#sa_manager_main .text-gray-800{--text-opacity:1!important;color:#252f3f!important;color:rgba(37,47,63,var(--text-opacity))!important}#sa_manager_main .text-gray-900{--text-opacity:1!important;color:#161e2e!important;color:rgba(22,30,46,var(--text-opacity))!important}#sa_manager_main .text-green-500{--text-opacity:1!important;color:#0e9f6e!important;color:rgba(14,159,110,var(--text-opacity))!important}#sa_manager_main .text-indigo-500{--text-opacity:1!important;color:#6875f5!important;color:rgba(104,117,245,var(--text-opacity))!important}#sa_manager_main .text-indigo-600{--text-opacity:1!important;color:#5850ec!important;color:rgba(88,80,236,var(--text-opacity))!important}#sa_manager_main .text-error{--text-opacity:1!important;color:#ffb7b6!important;color:rgba(255,183,182,var(--text-opacity))!important}#sa_manager_main .hover\:text-gray-500:hover{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}#sa_manager_main .hover\:text-gray-700:hover{--text-opacity:1!important;color:#374151!important;color:rgba(55,65,81,var(--text-opacity))!important}#sa_manager_main .hover\:text-red-600:hover{--text-opacity:1!important;color:#e02424!important;color:rgba(224,36,36,var(--text-opacity))!important}#sa_manager_main .hover\:text-green-600:hover{--text-opacity:1!important;color:#057a55!important;color:rgba(5,122,85,var(--text-opacity))!important}#sa_manager_main .hover\:text-indigo-600:hover{--text-opacity:1!important;color:#5850ec!important;color:rgba(88,80,236,var(--text-opacity))!important}#sa_manager_main .focus\:text-gray-500:focus{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}#sa_manager_main .uppercase{text-transform:uppercase!important}#sa_manager_main .capitalize{text-transform:capitalize!important}#sa_manager_main .tracking-tight{letter-spacing:-.025em!important}#sa_manager_main .tracking-wide{letter-spacing:.025em!important}#sa_manager_main .invisible{visibility:hidden!important}#sa_manager_main .w-4{width:1rem!important}#sa_manager_main .w-5{width:1.25rem!important}#sa_manager_main .w-6{width:1.5rem!important}#sa_manager_main .w-8{width:2rem!important}#sa_manager_main .w-9{width:2.25rem!important}#sa_manager_main .w-15{width:3.75rem!important}#sa_manager_main .w-20{width:5rem!important}#sa_manager_main .w-24{width:6rem!important}#sa_manager_main .w-48{width:12rem!important}#sa_manager_main .w-1\/3{width:33.333333%!important}#sa_manager_main .w-1\/4{width:25%!important}#sa_manager_main .w-2\/6{width:33.333333%!important}#sa_manager_main .w-full{width:100%!important}#sa_manager_main .z-10{z-index:10!important}#sa_manager_main .z-50{z-index:50!important}#sa_manager_main .gap-1{grid-gap:.25rem!important;gap:.25rem!important}#sa_manager_main .gap-2{grid-gap:.5rem!important;gap:.5rem!important}#sa_manager_main .gap-4{grid-gap:1rem!important;gap:1rem!important}#sa_manager_main .gap-6{grid-gap:1.5rem!important;gap:1.5rem!important}#sa_manager_main .gap-8{grid-gap:2rem!important;gap:2rem!important}#sa_manager_main .transform{--transform-translate-x:0!important;--transform-translate-y:0!important;--transform-rotate:0!important;--transform-skew-x:0!important;--transform-skew-y:0!important;--transform-scale-x:1!important;--transform-scale-y:1!important;transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))!important}#sa_manager_main .transition-all{transition-property:all!important}#sa_manager_main .transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform!important}#sa_manager_main .transition-opacity{transition-property:opacity!important}#sa_manager_main .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}#sa_manager_main .duration-150{transition-duration:.15s!important}@keyframes spin{to{transform:rotate(1turn)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){#sa_manager_main .sm\:items-start{align-items:flex-start!important}#sa_manager_main .sm\:justify-end{justify-content:flex-end!important}#sa_manager_main .sm\:float-right{float:right!important}#sa_manager_main .sm\:text-sm{font-size:.875rem!important}#sa_manager_main .sm\:text-4xl{font-size:2.25rem!important}#sa_manager_main .sm\:leading-5{line-height:1.25rem!important}#sa_manager_main .sm\:leading-10{line-height:2.5rem!important}#sa_manager_main .sm\:mt-8{margin-top:2rem!important}#sa_manager_main .sm\:mt-12{margin-top:3rem!important}#sa_manager_main .sm\:mt-16{margin-top:4rem!important}#sa_manager_main .sm\:p-6{padding:1.5rem!important}#sa_manager_main .sm\:p-10{padding:2.5rem!important}#sa_manager_main .sm\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}#sa_manager_main .sm\:pt-6{padding-top:1.5rem!important}#sa_manager_main .sm\:pb-6{padding-bottom:1.5rem!important}#sa_manager_main .sm\:pb-8{padding-bottom:2rem!important}#sa_manager_main .sm\:pt-16{padding-top:4rem!important}#sa_manager_main .sm\:pb-20{padding-bottom:5rem!important}#sa_manager_main .sm\:w-3\/4{width:75%!important}}@media (min-width:768px){#sa_manager_main .md\:grid{display:grid!important}#sa_manager_main .md\:mt-0{margin-top:0!important}#sa_manager_main .md\:min-w-full{min-width:100%!important}#sa_manager_main .md\:gap-8{grid-gap:2rem!important;gap:2rem!important}#sa_manager_main .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media (min-width:1024px){#sa_manager_main .lg\:flex{display:flex!important}#sa_manager_main .lg\:grid{display:grid!important}#sa_manager_main .lg\:items-center{align-items:center!important}#sa_manager_main .lg\:justify-end{justify-content:flex-end!important}#sa_manager_main .lg\:mx-auto{margin-left:auto!important;margin-right:auto!important}#sa_manager_main .lg\:mt-0{margin-top:0!important}#sa_manager_main .lg\:ml-2{margin-left:.5rem!important}#sa_manager_main .lg\:mt-8{margin-top:2rem!important}#sa_manager_main .lg\:mt-12{margin-top:3rem!important}#sa_manager_main .lg\:mt-16{margin-top:4rem!important}#sa_manager_main .lg\:ml-1\/6{margin-left:16.666667%!important}#sa_manager_main .lg\:max-w-5xl{max-width:64rem!important}#sa_manager_main .lg\:py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}#sa_manager_main .lg\:px-8{padding-left:2rem!important;padding-right:2rem!important}#sa_manager_main .lg\:pt-2{padding-top:.5rem!important}#sa_manager_main .lg\:pt-8{padding-top:2rem!important}#sa_manager_main .lg\:pb-8{padding-bottom:2rem!important}#sa_manager_main .lg\:pt-12{padding-top:3rem!important}#sa_manager_main .lg\:pb-12{padding-bottom:3rem!important}#sa_manager_main .lg\:pb-28{padding-bottom:7rem!important}#sa_manager_main .lg\:absolute{position:absolute!important}#sa_manager_main .lg\:inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}#sa_manager_main .lg\:bottom-0{bottom:0!important}#sa_manager_main .lg\:text-center{text-align:center!important}#sa_manager_main .lg\:w-3\/4{width:75%!important}#sa_manager_main .lg\:gap-5{grid-gap:1.25rem!important;gap:1.25rem!important}#sa_manager_main .lg\:col-gap-8{grid-column-gap:2rem!important;-moz-column-gap:2rem!important;column-gap:2rem!important}#sa_manager_main .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}#sa_manager_main .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}#sa_manager_main .lg\:col-span-1{grid-column:span 1/span 1!important}#sa_manager_main .lg\:col-span-2{grid-column:span 2/span 2!important}}@media (min-width:1280px){#sa_manager_main .xl\:px-4{padding-left:1rem!important;padding-right:1rem!important}#sa_manager_main .xl\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}}#sa_manager_main input[type=checkbox]:checked:before,#sa_manager_main input[type=radio]:checked:before{display:none}#sa_manager_main .select2-container--default.select2-container--focus .select2-selection--multiple,#sa_manager_main .select2-container--default.select2-container--focus .select2-selection--single,#sa_manager_main .select2-container--default .select2-selection--multiple,#sa_manager_main .select2-container--default .select2-selection--single{border:1px solid #d2d6dc!important}#sa_manager_main .select2-selection__rendered{line-height:36px!important}#sa_manager_main .select2-container .select2-selection--single{height:38px!important;border:1px solid #d2d6dc!important}#sa_manager_main .select2-selection__arrow{height:34px!important}#sa_manager_main .select2-selection__arrow b{border-color:#d2d6dc transparent transparent!important;border-style:solid!important;border-width:5px 4px 0!important}#sa_manager_main .select2-search__field{border:1px solid #d2d6dc!important}#sa_manager_main .dashboard-names .select2-search__field{border:none!important}#sa_manager_main a{color:#2271b1;text-decoration:underline}#sa_manager_main .modal{z-index:120001!important;display:flex!important}#sa_manager_main .modal-dialog{margin:.5rem}#sa_manager_main .modal.fade .modal-dialog{transition:transform .3s ease-out!important;transform:translateY(-50px)!important}#sa_manager_main .modal.show .modal-dialog{transform:none!important}#sa_manager_main .modal.modal-static .modal-dialog{transform:scale(1.02)!important}#sa_manager_main .modal-dialog-scrollable{height:calc(100% - 1rem)!important}#sa_manager_main .modal-dialog-scrollable .modal-content{max-height:100%!important;overflow:hidden!important}#sa_manager_main .modal-dialog-scrollable .modal-body{overflow-y:auto!important}#sa_manager_main .modal-dialog-centered{display:flex!important;align-items:center!important;min-height:calc(100% - 1rem)!important}#sa_manager_main .modal-backdrop{position:fixed!important;top:0!important;left:0!important;z-index:1050!important;width:100vw!important;height:100vh!important;background-color:#000!important}#sa_manager_main .modal-backdrop.fade{opacity:0!important}#sa_manager_main .modal-backdrop.show{opacity:.5!important}#sa_manager_main .modal-header .btn-close{padding:.5rem!important;margin:-.5rem -.5rem -.5rem auto!important}#sa_manager_main .modal-body{flex:1 1 auto!important}#sa_manager_main .flex-1.relative.dashboard-names span.select2-selection.select2-selection--multiple{margin:0}#sa_manager_main .flex-1.relative.dashboard-names .select2-selection__rendered{line-height:2em!important;padding:0 .4em}#sa_manager_main .flex-1.relative.dashboard-names .select2-selection__rendered li.select2-search.select2-search--inline{margin:.19em .19em 0 0}#sa_manager_main .flex-1.relative.dashboard-names input.select2-search__field{min-height:1.8em}.man-hrs-section-pricing-page{display:block!important;width:70%!important}
     2  /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */#sa_manager_main h2,#sa_manager_main h5{font-size:inherit;font-weight:inherit}#sa_manager_main a{color:inherit;text-decoration:inherit}#sa_manager_main button,#sa_manager_main input,#sa_manager_main select{padding:0;line-height:inherit;color:inherit}#sa_manager_main code{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}#sa_manager_main img,#sa_manager_main object,#sa_manager_main svg{display:block;vertical-align:middle}#sa_manager_main img{max-width:100%;height:auto}#sa_manager_main,#sa_manager_main body,#sa_manager_main html{-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;margin:0}#sa_manager_main .form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.5}#sa_manager_main .form-input::-moz-placeholder{color:#9fa6b2;opacity:1}#sa_manager_main .form-input::placeholder{color:#9fa6b2;opacity:1}#sa_manager_main .form-input:focus{outline:none;box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}#sa_manager_main .form-select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239fa6b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;background-repeat:no-repeat;background-color:#fff;border-color:#d2d6dc;border-width:1px;border-radius:.375rem;padding:.5rem 2.5rem .5rem .75rem;font-size:1rem;line-height:1.5;background-position:right .5rem center;background-size:1.5em 1.5em}#sa_manager_main .form-select::-ms-expand{color:#9fa6b2;border:none}@media not print{#sa_manager_main .form-select::-ms-expand{display:none}}@media print and (-ms-high-contrast:active),print and (-ms-high-contrast:none){#sa_manager_main .form-select{padding-right:.75rem}}#sa_manager_main .form-select:focus{outline:none;box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}#sa_manager_main .form-radio:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:50%;background-repeat:no-repeat}@media not print{#sa_manager_main .form-radio::-ms-check{border-width:1px;color:transparent;background:inherit;border-color:inherit;border-radius:inherit}}#sa_manager_main .form-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;border-radius:100%;height:1rem;width:1rem;color:#3f83f8;background-color:#fff;border-color:#d2d6dc;border-width:1px}#sa_manager_main .form-radio:focus{outline:none;box-shadow:0 0 0 3px rgba(164,202,254,.45);border-color:#a4cafe}#sa_manager_main .form-radio:checked:focus{border-color:transparent}#sa_manager_main .space-y-2>:not(template)~:not(template){--space-y-reverse:0!important;margin-top:calc(0.5rem*(1 - var(--space-y-reverse)))!important;margin-bottom:calc(0.5rem*var(--space-y-reverse))!important}#sa_manager_main .space-y-3>:not(template)~:not(template){--space-y-reverse:0!important;margin-top:calc(0.75rem*(1 - var(--space-y-reverse)))!important;margin-bottom:calc(0.75rem*var(--space-y-reverse))!important}#sa_manager_main .divide-y>:not(template)~:not(template){--divide-y-reverse:0!important;border-top-width:calc(1px*(1 - var(--divide-y-reverse)))!important;border-bottom-width:calc(1px*var(--divide-y-reverse))!important}#sa_manager_main .divide-gray-200>:not(template)~:not(template){--divide-opacity:1!important;border-color:#e5e7eb!important;border-color:rgba(229,231,235,var(--divide-opacity))!important}#sa_manager_main .bg-transparent{background-color:transparent!important}#sa_manager_main .bg-white{--bg-opacity:1!important;background-color:#fff!important;background-color:rgba(255,255,255,var(--bg-opacity))!important}#sa_manager_main .bg-gray-50{--bg-opacity:1!important;background-color:#f9fafb!important;background-color:rgba(249,250,251,var(--bg-opacity))!important}#sa_manager_main .bg-gray-100{--bg-opacity:1!important;background-color:#f4f5f7!important;background-color:rgba(244,245,247,var(--bg-opacity))!important}#sa_manager_main .bg-gray-200{--bg-opacity:1!important;background-color:#e5e7eb!important;background-color:rgba(229,231,235,var(--bg-opacity))!important}#sa_manager_main .bg-gray-600{--bg-opacity:1!important;background-color:#4b5563!important;background-color:rgba(75,85,99,var(--bg-opacity))!important}#sa_manager_main .bg-gray-800{--bg-opacity:1!important;background-color:#252f3f!important;background-color:rgba(37,47,63,var(--bg-opacity))!important}#sa_manager_main .bg-green-600{--bg-opacity:1!important;background-color:#057a55!important;background-color:rgba(5,122,85,var(--bg-opacity))!important}#sa_manager_main .bg-indigo-50{--bg-opacity:1!important;background-color:#f0f5ff!important;background-color:rgba(240,245,255,var(--bg-opacity))!important}#sa_manager_main .bg-indigo-100{--bg-opacity:1!important;background-color:#e5edff!important;background-color:rgba(229,237,255,var(--bg-opacity))!important}#sa_manager_main .bg-indigo-600{--bg-opacity:1!important;background-color:#5850ec!important;background-color:rgba(88,80,236,var(--bg-opacity))!important}#sa_manager_main .bg-warning{--bg-opacity:1!important;background-color:#fbe7c6!important;background-color:rgba(251,231,198,var(--bg-opacity))!important}#sa_manager_main .bg-success{--bg-opacity:1!important;background-color:#b7f7c4!important;background-color:rgba(183,247,196,var(--bg-opacity))!important}#sa_manager_main .bg-error{--bg-opacity:1!important;background-color:#ffb7b6!important;background-color:rgba(255,183,182,var(--bg-opacity))!important}#sa_manager_main .bg-warning400{background-color:rgba(255,246,230,.7098039215686275)!important}#sa_manager_main .hover\:bg-gray-50:hover{--bg-opacity:1!important;background-color:#f9fafb!important;background-color:rgba(249,250,251,var(--bg-opacity))!important}#sa_manager_main .hover\:bg-gray-300:hover{--bg-opacity:1!important;background-color:#d2d6dc!important;background-color:rgba(210,214,220,var(--bg-opacity))!important}#sa_manager_main .hover\:bg-gray-500:hover{--bg-opacity:1!important;background-color:#6b7280!important;background-color:rgba(107,114,128,var(--bg-opacity))!important}#sa_manager_main .hover\:bg-gray-700:hover{--bg-opacity:1!important;background-color:#374151!important;background-color:rgba(55,65,81,var(--bg-opacity))!important}#sa_manager_main .hover\:bg-green-500:hover{--bg-opacity:1!important;background-color:#0e9f6e!important;background-color:rgba(14,159,110,var(--bg-opacity))!important}#sa_manager_main .hover\:bg-indigo-500:hover{--bg-opacity:1!important;background-color:#6875f5!important;background-color:rgba(104,117,245,var(--bg-opacity))!important}#sa_manager_main .focus\:bg-gray-100:focus{--bg-opacity:1!important;background-color:#f4f5f7!important;background-color:rgba(244,245,247,var(--bg-opacity))!important}#sa_manager_main .bg-opacity-75{--bg-opacity:0.75!important}#sa_manager_main .border-transparent{border-color:transparent!important}#sa_manager_main .border-gray-100{--border-opacity:1!important;border-color:#f4f5f7!important;border-color:rgba(244,245,247,var(--border-opacity))!important}#sa_manager_main .border-gray-200{--border-opacity:1!important;border-color:#e5e7eb!important;border-color:rgba(229,231,235,var(--border-opacity))!important}#sa_manager_main .border-gray-400{--border-opacity:1!important;border-color:#9fa6b2!important;border-color:rgba(159,166,178,var(--border-opacity))!important}#sa_manager_main .hover\:border-red-600:hover{--border-opacity:1!important;border-color:#e02424!important;border-color:rgba(224,36,36,var(--border-opacity))!important}#sa_manager_main .hover\:border-green-600:hover{--border-opacity:1!important;border-color:#057a55!important;border-color:rgba(5,122,85,var(--border-opacity))!important}#sa_manager_main .hover\:border-indigo-600:hover{--border-opacity:1!important;border-color:#5850ec!important;border-color:rgba(88,80,236,var(--border-opacity))!important}#sa_manager_main .focus\:border-red-600:focus{--border-opacity:1!important;border-color:#e02424!important;border-color:rgba(224,36,36,var(--border-opacity))!important}#sa_manager_main .focus\:border-green-600:focus{--border-opacity:1!important;border-color:#057a55!important;border-color:rgba(5,122,85,var(--border-opacity))!important}#sa_manager_main .focus\:border-indigo-600:focus{--border-opacity:1!important;border-color:#5850ec!important;border-color:rgba(88,80,236,var(--border-opacity))!important}#sa_manager_main .rounded{border-radius:.25rem!important}#sa_manager_main .rounded-md{border-radius:.375rem!important}#sa_manager_main .rounded-lg{border-radius:.5rem!important}#sa_manager_main .rounded-full{border-radius:9999px!important}#sa_manager_main .border{border-width:1px!important}#sa_manager_main .border-t-2{border-top-width:2px!important}#sa_manager_main .border-t{border-top-width:1px!important}#sa_manager_main .border-b{border-bottom-width:1px!important}#sa_manager_main .cursor-default{cursor:default!important}#sa_manager_main .flex{display:flex!important}#sa_manager_main .inline-flex{display:inline-flex!important}#sa_manager_main .table{display:table!important}#sa_manager_main .grid{display:grid!important}#sa_manager_main .hidden{display:none!important}#sa_manager_main .items-end{align-items:flex-end!important}#sa_manager_main .items-center{align-items:center!important}#sa_manager_main .items-baseline{align-items:baseline!important}#sa_manager_main .justify-end{justify-content:flex-end!important}#sa_manager_main .justify-center{justify-content:center!important}#sa_manager_main .justify-between{justify-content:space-between!important}#sa_manager_main .flex-1{flex:1 1 0%!important}#sa_manager_main .flex-shrink-0{flex-shrink:0!important}#sa_manager_main .font-medium{font-weight:500!important}#sa_manager_main .font-semibold{font-weight:600!important}#sa_manager_main .font-extrabold{font-weight:800!important}#sa_manager_main .h-4{height:1rem!important}#sa_manager_main .h-5{height:1.25rem!important}#sa_manager_main .h-6{height:1.5rem!important}#sa_manager_main .h-8{height:2rem!important}#sa_manager_main .h-9{height:2.25rem!important}#sa_manager_main .h-15{height:3.75rem!important}#sa_manager_main .h-24{height:6rem!important}#sa_manager_main .h-full{height:100%!important}#sa_manager_main .text-xs{font-size:.75rem!important}#sa_manager_main .text-sm{font-size:.875rem!important}#sa_manager_main .text-base{font-size:1rem!important}#sa_manager_main .text-lg{font-size:1.125rem!important}#sa_manager_main .text-xl{font-size:1.25rem!important}#sa_manager_main .text-2xl{font-size:1.5rem!important}#sa_manager_main .text-3xl{font-size:1.875rem!important}#sa_manager_main .text-4xl{font-size:2.25rem!important}#sa_manager_main .leading-5{line-height:1.25rem!important}#sa_manager_main .leading-6{line-height:1.5rem!important}#sa_manager_main .leading-7{line-height:1.75rem!important}#sa_manager_main .leading-8{line-height:2rem!important}#sa_manager_main .leading-9{line-height:2.25rem!important}#sa_manager_main .leading-none{line-height:1!important}#sa_manager_main .list-disc{list-style-type:disc!important}#sa_manager_main .m-1{margin:.25rem!important}#sa_manager_main .m-2{margin:.5rem!important}#sa_manager_main .m-3{margin:.75rem!important}#sa_manager_main .m-auto{margin:auto!important}#sa_manager_main .my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}#sa_manager_main .mx-auto{margin-left:auto!important;margin-right:auto!important}#sa_manager_main .mt-1{margin-top:.25rem!important}#sa_manager_main .mt-2{margin-top:.5rem!important}#sa_manager_main .mr-2{margin-right:.5rem!important}#sa_manager_main .mb-2{margin-bottom:.5rem!important}#sa_manager_main .ml-2{margin-left:.5rem!important}#sa_manager_main .mr-3{margin-right:.75rem!important}#sa_manager_main .mb-3{margin-bottom:.75rem!important}#sa_manager_main .ml-3{margin-left:.75rem!important}#sa_manager_main .mt-4{margin-top:1rem!important}#sa_manager_main .ml-4{margin-left:1rem!important}#sa_manager_main .mt-5{margin-top:1.25rem!important}#sa_manager_main .mt-6{margin-top:1.5rem!important}#sa_manager_main .mb-6{margin-bottom:1.5rem!important}#sa_manager_main .mt-8{margin-top:2rem!important}#sa_manager_main .ml-8{margin-left:2rem!important}#sa_manager_main .mt-12{margin-top:3rem!important}#sa_manager_main .ml-40{margin-left:10rem!important}#sa_manager_main .-mt-1{margin-top:-.25rem!important}#sa_manager_main .max-h-96{max-height:24rem!important}#sa_manager_main .max-h-full{max-height:100%!important}#sa_manager_main .max-w-sm{max-width:24rem!important}#sa_manager_main .max-w-md{max-width:28rem!important}#sa_manager_main .max-w-lg{max-width:32rem!important}#sa_manager_main .max-w-xl{max-width:36rem!important}#sa_manager_main .max-w-2xl{max-width:42rem!important}#sa_manager_main .max-w-3xl{max-width:48rem!important}#sa_manager_main .max-w-4xl{max-width:56rem!important}#sa_manager_main .max-w-full{max-width:100%!important}#sa_manager_main .max-w-screen-xl{max-width:1280px!important}#sa_manager_main .opacity-50{opacity:.5!important}#sa_manager_main .opacity-75{opacity:.75!important}#sa_manager_main .hover\:opacity-100:hover{opacity:1!important}#sa_manager_main .focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}#sa_manager_main .overflow-auto{overflow:auto!important}#sa_manager_main .overflow-hidden{overflow:hidden!important}#sa_manager_main .overflow-scroll{overflow:scroll!important}#sa_manager_main .overflow-y-auto{overflow-y:auto!important}#sa_manager_main .p-1{padding:.25rem!important}#sa_manager_main .p-2{padding:.5rem!important}#sa_manager_main .p-3{padding:.75rem!important}#sa_manager_main .p-4{padding:1rem!important}#sa_manager_main .p-6{padding:1.5rem!important}#sa_manager_main .p-8{padding:2rem!important}#sa_manager_main .py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}#sa_manager_main .px-1{padding-left:.25rem!important;padding-right:.25rem!important}#sa_manager_main .py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}#sa_manager_main .py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}#sa_manager_main .px-3{padding-left:.75rem!important;padding-right:.75rem!important}#sa_manager_main .py-4{padding-top:1rem!important;padding-bottom:1rem!important}#sa_manager_main .px-4{padding-left:1rem!important;padding-right:1rem!important}#sa_manager_main .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}#sa_manager_main .py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}#sa_manager_main .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}#sa_manager_main .py-8{padding-top:2rem!important;padding-bottom:2rem!important}#sa_manager_main .py-0\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}#sa_manager_main .pl-0{padding-left:0!important}#sa_manager_main .pt-1{padding-top:.25rem!important}#sa_manager_main .pb-2{padding-bottom:.5rem!important}#sa_manager_main .pt-3{padding-top:.75rem!important}#sa_manager_main .pl-3{padding-left:.75rem!important}#sa_manager_main .pt-4{padding-top:1rem!important}#sa_manager_main .pt-6{padding-top:1.5rem!important}#sa_manager_main .pr-8{padding-right:2rem!important}#sa_manager_main .pb-8{padding-bottom:2rem!important}#sa_manager_main .pt-10{padding-top:2.5rem!important}#sa_manager_main .pt-12{padding-top:3rem!important}#sa_manager_main .pb-16{padding-bottom:4rem!important}#sa_manager_main .pointer-events-none{pointer-events:none!important}#sa_manager_main .pointer-events-auto{pointer-events:auto!important}#sa_manager_main .static{position:static!important}#sa_manager_main .fixed{position:fixed!important}#sa_manager_main .absolute{position:absolute!important}#sa_manager_main .relative{position:relative!important}#sa_manager_main .sticky{position:sticky!important}#sa_manager_main .inset-0{top:0!important;bottom:0!important}#sa_manager_main .inset-0,#sa_manager_main .inset-x-0{right:0!important;left:0!important}#sa_manager_main .top-0{top:0!important}#sa_manager_main .right-0{right:0!important}#sa_manager_main .bottom-0{bottom:0!important}#sa_manager_main .left-0{left:0!important}#sa_manager_main .bottom-2{bottom:.5rem!important}#sa_manager_main .shadow-xs{box-shadow:0 0 0 1px rgba(0,0,0,.05)!important}#sa_manager_main .shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06)!important}#sa_manager_main .shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05)!important}#sa_manager_main .shadow-xl{box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04)!important}#sa_manager_main .focus\:shadow-outline:focus{box-shadow:0 0 0 3px rgba(118,169,250,.45)!important}#sa_manager_main .focus\:shadow-outline-green:focus{box-shadow:0 0 0 3px rgba(132,225,188,.45)!important}#sa_manager_main .focus\:shadow-outline-red:focus{box-shadow:0 0 0 3px rgba(248,180,180,.45)!important}#sa_manager_main .focus\:shadow-outline-indigo:focus{box-shadow:0 0 0 3px rgba(180,198,252,.45)!important}#sa_manager_main .table-auto{table-layout:auto!important}#sa_manager_main .text-left{text-align:left!important}#sa_manager_main .text-center{text-align:center!important}#sa_manager_main .text-right{text-align:right!important}#sa_manager_main .text-justify{text-align:justify!important}#sa_manager_main .text-white{--text-opacity:1!important;color:#fff!important;color:rgba(255,255,255,var(--text-opacity))!important}#sa_manager_main .text-gray-50{--text-opacity:1!important;color:#f9fafb!important;color:rgba(249,250,251,var(--text-opacity))!important}#sa_manager_main .text-gray-200{--text-opacity:1!important;color:#e5e7eb!important;color:rgba(229,231,235,var(--text-opacity))!important}#sa_manager_main .text-gray-300{--text-opacity:1!important;color:#d2d6dc!important;color:rgba(210,214,220,var(--text-opacity))!important}#sa_manager_main .text-gray-400{--text-opacity:1!important;color:#9fa6b2!important;color:rgba(159,166,178,var(--text-opacity))!important}#sa_manager_main .text-gray-500{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}#sa_manager_main .text-gray-600{--text-opacity:1!important;color:#4b5563!important;color:rgba(75,85,99,var(--text-opacity))!important}#sa_manager_main .text-gray-700{--text-opacity:1!important;color:#374151!important;color:rgba(55,65,81,var(--text-opacity))!important}#sa_manager_main .text-gray-800{--text-opacity:1!important;color:#252f3f!important;color:rgba(37,47,63,var(--text-opacity))!important}#sa_manager_main .text-gray-900{--text-opacity:1!important;color:#161e2e!important;color:rgba(22,30,46,var(--text-opacity))!important}#sa_manager_main .text-green-500{--text-opacity:1!important;color:#0e9f6e!important;color:rgba(14,159,110,var(--text-opacity))!important}#sa_manager_main .text-blue-700{--text-opacity:1!important;color:#1a56db!important;color:rgba(26,86,219,var(--text-opacity))!important}#sa_manager_main .text-indigo-500{--text-opacity:1!important;color:#6875f5!important;color:rgba(104,117,245,var(--text-opacity))!important}#sa_manager_main .text-indigo-600{--text-opacity:1!important;color:#5850ec!important;color:rgba(88,80,236,var(--text-opacity))!important}#sa_manager_main .text-error{--text-opacity:1!important;color:#ffb7b6!important;color:rgba(255,183,182,var(--text-opacity))!important}#sa_manager_main .hover\:text-gray-500:hover{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}#sa_manager_main .hover\:text-gray-700:hover{--text-opacity:1!important;color:#374151!important;color:rgba(55,65,81,var(--text-opacity))!important}#sa_manager_main .hover\:text-red-600:hover{--text-opacity:1!important;color:#e02424!important;color:rgba(224,36,36,var(--text-opacity))!important}#sa_manager_main .hover\:text-green-600:hover{--text-opacity:1!important;color:#057a55!important;color:rgba(5,122,85,var(--text-opacity))!important}#sa_manager_main .hover\:text-indigo-600:hover{--text-opacity:1!important;color:#5850ec!important;color:rgba(88,80,236,var(--text-opacity))!important}#sa_manager_main .focus\:text-gray-500:focus{--text-opacity:1!important;color:#6b7280!important;color:rgba(107,114,128,var(--text-opacity))!important}#sa_manager_main .uppercase{text-transform:uppercase!important}#sa_manager_main .capitalize{text-transform:capitalize!important}#sa_manager_main .tracking-tight{letter-spacing:-.025em!important}#sa_manager_main .tracking-wide{letter-spacing:.025em!important}#sa_manager_main .invisible{visibility:hidden!important}#sa_manager_main .w-4{width:1rem!important}#sa_manager_main .w-5{width:1.25rem!important}#sa_manager_main .w-6{width:1.5rem!important}#sa_manager_main .w-8{width:2rem!important}#sa_manager_main .w-9{width:2.25rem!important}#sa_manager_main .w-15{width:3.75rem!important}#sa_manager_main .w-20{width:5rem!important}#sa_manager_main .w-24{width:6rem!important}#sa_manager_main .w-48{width:12rem!important}#sa_manager_main .w-96{width:24rem!important}#sa_manager_main .w-1\/3{width:33.333333%!important}#sa_manager_main .w-1\/4{width:25%!important}#sa_manager_main .w-2\/6{width:33.333333%!important}#sa_manager_main .w-full{width:100%!important}#sa_manager_main .z-10{z-index:10!important}#sa_manager_main .z-50{z-index:50!important}#sa_manager_main .gap-1{grid-gap:.25rem!important;gap:.25rem!important}#sa_manager_main .gap-2{grid-gap:.5rem!important;gap:.5rem!important}#sa_manager_main .gap-4{grid-gap:1rem!important;gap:1rem!important}#sa_manager_main .gap-6{grid-gap:1.5rem!important;gap:1.5rem!important}#sa_manager_main .gap-8{grid-gap:2rem!important;gap:2rem!important}#sa_manager_main .transform{--transform-translate-x:0!important;--transform-translate-y:0!important;--transform-rotate:0!important;--transform-skew-x:0!important;--transform-skew-y:0!important;--transform-scale-x:1!important;--transform-scale-y:1!important;transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))!important}#sa_manager_main .transition-all{transition-property:all!important}#sa_manager_main .transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform!important}#sa_manager_main .transition-opacity{transition-property:opacity!important}#sa_manager_main .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}#sa_manager_main .duration-150{transition-duration:.15s!important}@keyframes spin{to{transform:rotate(1turn)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}@media (min-width:640px){#sa_manager_main .sm\:items-start{align-items:flex-start!important}#sa_manager_main .sm\:justify-end{justify-content:flex-end!important}#sa_manager_main .sm\:float-right{float:right!important}#sa_manager_main .sm\:text-sm{font-size:.875rem!important}#sa_manager_main .sm\:text-4xl{font-size:2.25rem!important}#sa_manager_main .sm\:leading-5{line-height:1.25rem!important}#sa_manager_main .sm\:leading-10{line-height:2.5rem!important}#sa_manager_main .sm\:mt-8{margin-top:2rem!important}#sa_manager_main .sm\:mt-12{margin-top:3rem!important}#sa_manager_main .sm\:mt-16{margin-top:4rem!important}#sa_manager_main .sm\:p-6{padding:1.5rem!important}#sa_manager_main .sm\:p-10{padding:2.5rem!important}#sa_manager_main .sm\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}#sa_manager_main .sm\:pt-6{padding-top:1.5rem!important}#sa_manager_main .sm\:pb-6{padding-bottom:1.5rem!important}#sa_manager_main .sm\:pb-8{padding-bottom:2rem!important}#sa_manager_main .sm\:pt-16{padding-top:4rem!important}#sa_manager_main .sm\:pb-20{padding-bottom:5rem!important}#sa_manager_main .sm\:w-3\/4{width:75%!important}}@media (min-width:768px){#sa_manager_main .md\:grid{display:grid!important}#sa_manager_main .md\:mt-0{margin-top:0!important}#sa_manager_main .md\:min-w-full{min-width:100%!important}#sa_manager_main .md\:gap-8{grid-gap:2rem!important;gap:2rem!important}#sa_manager_main .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media (min-width:1024px){#sa_manager_main .lg\:flex{display:flex!important}#sa_manager_main .lg\:grid{display:grid!important}#sa_manager_main .lg\:items-center{align-items:center!important}#sa_manager_main .lg\:justify-end{justify-content:flex-end!important}#sa_manager_main .lg\:mx-auto{margin-left:auto!important;margin-right:auto!important}#sa_manager_main .lg\:mt-0{margin-top:0!important}#sa_manager_main .lg\:ml-2{margin-left:.5rem!important}#sa_manager_main .lg\:mt-8{margin-top:2rem!important}#sa_manager_main .lg\:mt-12{margin-top:3rem!important}#sa_manager_main .lg\:mt-16{margin-top:4rem!important}#sa_manager_main .lg\:ml-1\/6{margin-left:16.666667%!important}#sa_manager_main .lg\:max-w-5xl{max-width:64rem!important}#sa_manager_main .lg\:py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}#sa_manager_main .lg\:px-8{padding-left:2rem!important;padding-right:2rem!important}#sa_manager_main .lg\:pt-2{padding-top:.5rem!important}#sa_manager_main .lg\:pt-8{padding-top:2rem!important}#sa_manager_main .lg\:pb-8{padding-bottom:2rem!important}#sa_manager_main .lg\:pt-12{padding-top:3rem!important}#sa_manager_main .lg\:pb-12{padding-bottom:3rem!important}#sa_manager_main .lg\:pb-28{padding-bottom:7rem!important}#sa_manager_main .lg\:absolute{position:absolute!important}#sa_manager_main .lg\:inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}#sa_manager_main .lg\:bottom-0{bottom:0!important}#sa_manager_main .lg\:text-center{text-align:center!important}#sa_manager_main .lg\:w-3\/4{width:75%!important}#sa_manager_main .lg\:gap-5{grid-gap:1.25rem!important;gap:1.25rem!important}#sa_manager_main .lg\:col-gap-8{grid-column-gap:2rem!important;-moz-column-gap:2rem!important;column-gap:2rem!important}#sa_manager_main .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}#sa_manager_main .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}#sa_manager_main .lg\:col-span-1{grid-column:span 1/span 1!important}#sa_manager_main .lg\:col-span-2{grid-column:span 2/span 2!important}}@media (min-width:1280px){#sa_manager_main .xl\:px-4{padding-left:1rem!important;padding-right:1rem!important}#sa_manager_main .xl\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}}#sa_manager_main input[type=checkbox]:checked:before,#sa_manager_main input[type=radio]:checked:before{display:none}#sa_manager_main .select2-container--default.select2-container--focus .select2-selection--multiple,#sa_manager_main .select2-container--default.select2-container--focus .select2-selection--single,#sa_manager_main .select2-container--default .select2-selection--multiple,#sa_manager_main .select2-container--default .select2-selection--single{border:1px solid #d2d6dc!important}#sa_manager_main .select2-selection__rendered{line-height:36px!important}#sa_manager_main .select2-container .select2-selection--single{height:38px!important;border:1px solid #d2d6dc!important}#sa_manager_main .select2-selection__arrow{height:34px!important}#sa_manager_main .select2-selection__arrow b{border-color:#d2d6dc transparent transparent!important;border-style:solid!important;border-width:5px 4px 0!important}#sa_manager_main .select2-search__field{border:1px solid #d2d6dc!important}#sa_manager_main .dashboard-names .select2-search__field{border:none!important}#sa_manager_main a{color:#2271b1;text-decoration:underline}#sa_manager_main .modal{z-index:120001!important;display:flex!important}#sa_manager_main .modal-dialog{margin:.5rem}#sa_manager_main .modal.fade .modal-dialog{transition:transform .3s ease-out!important;transform:translateY(-50px)!important}#sa_manager_main .modal.show .modal-dialog{transform:none!important}#sa_manager_main .modal.modal-static .modal-dialog{transform:scale(1.02)!important}#sa_manager_main .modal-dialog-scrollable{height:calc(100% - 1rem)!important}#sa_manager_main .modal-dialog-scrollable .modal-content{max-height:100%!important;overflow:hidden!important}#sa_manager_main .modal-dialog-scrollable .modal-body{overflow-y:auto!important}#sa_manager_main .modal-dialog-centered{display:flex!important;align-items:center!important;min-height:calc(100% - 1rem)!important}#sa_manager_main .modal-backdrop{position:fixed!important;top:0!important;left:0!important;z-index:1050!important;width:100vw!important;height:100vh!important;background-color:#000!important}#sa_manager_main .modal-backdrop.fade{opacity:0!important}#sa_manager_main .modal-backdrop.show{opacity:.5!important}#sa_manager_main .modal-header .btn-close{padding:.5rem!important;margin:-.5rem -.5rem -.5rem auto!important}#sa_manager_main .modal-body{flex:1 1 auto!important}#sa_manager_main .flex-1.relative.dashboard-names span.select2-selection.select2-selection--multiple{margin:0}#sa_manager_main .flex-1.relative.dashboard-names .select2-selection__rendered{line-height:2em!important;padding:0 .4em}#sa_manager_main .flex-1.relative.dashboard-names .select2-selection__rendered li.select2-search.select2-search--inline{margin:.19em .19em 0 0}#sa_manager_main .flex-1.relative.dashboard-names input.select2-search__field{min-height:1.8em}.man-hrs-section-pricing-page{display:block!important;width:70%!important}
  • smart-manager-for-wp-e-commerce/trunk/common-core/classes/class-sa-manager-base.php

    r3368494 r3390175  
    110110            $this->dashboard_title                     = ( ! empty( $this->req_params['active_module_title'] ) ) ? $this->req_params['active_module_title'] : '';
    111111            $this->store_col_model_transient_option_nm = 'sa_' . $this->plugin_sku . '_' . $this->dashboard_key;
     112            $plugin_dir_path                           = ( ! empty( $plugin_data['plugin_dir'] ) ) ? $plugin_data['plugin_dir'] : '';
     113            $folder_flag                               = ( ! empty( $plugin_data['folder_flag'] ) && '/lib' === $plugin_data['folder_flag'] ) ? $plugin_data['folder_flag'] : '';
     114            ( ( class_exists( 'SA_Manager_Pro_Background_Updater' ) ) && ( is_callable( array( 'SA_Manager_Pro_Background_Updater', 'sa_manager_file_safe_include' ) ) ) ) ? SA_Manager_Pro_Background_Updater::sa_manager_file_safe_include( $plugin_dir_path . $folder_flag . '/common-core/classes/', 'class-sa-manager-feedback.php' ) : '';
     115            if ( class_exists( 'SA_Manager_Feedback' ) && is_callable( array( 'SA_Manager_Feedback', 'instance' ) ) ) {
     116                SA_Manager_Feedback::instance( $plugin_data );
     117            }
    112118        }
    113119
     
    871877            );
    872878        }
     879       
     880        /**
     881         * Method to update feedback-related options based on user action.
     882         *
     883         * @return void
     884         */
     885        public function update_feedback( ) {
     886            if ( ( empty( $_POST['update_action'] ) ) ) {
     887                wp_send_json_error( _x( 'Parameter is missing.', 'error message for missing update action', 'smart-manager-for-wp-e-commerce' ) );
     888            }
     889            if ( ( ! class_exists( 'SA_Manager_Feedback' ) ) || ( ! is_callable( array( 'SA_Manager_Feedback', 'update_feedback' ) ) ) ) {
     890                return;
     891            }
     892            SA_Manager_Feedback::update_feedback(
     893                array( 'update_action' => sanitize_text_field( $_POST['update_action'] ), 'plugin_sku' => $this->plugin_sku )
     894            );
     895            wp_send_json(
     896                array(
     897                    'ACK' => 'Success',
     898                    'msg' => _x( 'Feedback option updated', 'success message on feedback option update', 'smart-manager-for-wp-e-commerce' ),
     899                )
     900            );
     901        }
    873902    }
    874903}
  • smart-manager-for-wp-e-commerce/trunk/common-core/classes/class-sa-manager-controller.php

    r3334081 r3390175  
    198198                    if ( $is_in_allowed_dir && ( is_file( $real_path ) ) ) {
    199199                        include_once $real_path; // nosemgrep: audit.php.lang.security.file.inclusion-arg, scanner.php.lang.security.file.inclusion .
     200                        if ( ( 'class-sa-manager-product.php' === $basename ) && ( class_exists( 'SA_Manager_Product' ) ) && ( is_callable( array( 'SA_Manager_Product', 'instance' ) ) ) ) {
     201                            SA_Manager_Product::instance( $this->sa_manager_common_params );
     202                        }
    200203                    }
    201204                }
  • smart-manager-for-wp-e-commerce/trunk/common-core/classes/class-sa-manager-product.php

    r3334081 r3390175  
    477477                    $column_model [ $index ]                   = array();
    478478                    $column_model [ $index ]['src']            = 'terms/attribute_' . $key;
    479                     $column_model [ $index ]['data']           = sanitize_title( str_replace( '/', '_', $column_model [ $index ]['src'] ) ); // generate slug using the WordPress function if not given.
    480                     $column_model [ $index ]['name']           = _x( 'Attributes', 'attributes column name', 'smart-manager-for-wp-e-commerce' ) . ': ' . substr( $key, 3 );
     479                    $column_model [ $index ]['data']           = sanitize_title( str_replace( '/', '_', $column_model [ $index ]['src'] ) ); // generate slug using the WordPress function if not given
     480                    $column_model [ $index ]['name']           = __( 'Attributes', 'smart-manager-for-wp-e-commerce' ) . ': ' . substr( $key, 3 );
    481481                    $column_model [ $index ]['key']            = $column_model [ $index ]['name'];
    482482                    $column_model [ $index ]['type']           = 'dropdown';
     483                    $column_model [ $index ]['hidden']         = true;
    483484                    $column_model [ $index ]['editable']       = false;
    484485                    $column_model [ $index ]['batch_editable'] = false;
     486                    $column_model [ $index ]['sortable']       = false;
     487                    $column_model [ $index ]['resizable']      = false;
     488                    $column_model [ $index ]['allow_showhide'] = false;
     489                    $column_model [ $index ]['exportable']     = false;
     490                    $column_model [ $index ]['searchable']     = true;
     491                    $column_model [ $index ]['wordWrap']       = false; // For disabling word-wrap
    485492                    $column_model [ $index ]['table_name']     = $wpdb->prefix . 'terms';
    486493                    $column_model [ $index ]['col_name']       = 'attribute_' . $key;
    487                     // Code for assigning attr. values.
    488                     $column_model [ $index ]['values'] = array();
     494                    $column_model [ $index ]['width']          = 0;
     495                    $column_model [ $index ]['save_state']     = true;
     496                    // Code for assigning attr. values
     497                    $column_model [ $index ]['values']        = array();
     498                    $column_model [ $index ]['search_values'] = $value;
    489499                }
    490500                ++$index;
  • smart-manager-for-wp-e-commerce/trunk/common-core/classes/class-sa-manager-utils.php

    r3334081 r3390175  
    521521    }
    522522}
     523
     524/**
     525 * Get offset timestamp
     526 *
     527 * @param  int $timestamp The timestamp.
     528 *
     529 * @return int Return the timestamp offset.
     530 */
     531function sa_get_offset_timestamp( $timestamp = 0 ) {
     532    if ( empty( $timestamp ) ) {
     533        $timestamp = time();
     534    }
     535    $gmt_offset = floatval( get_option( 'gmt_offset', 0 ) ) * HOUR_IN_SECONDS;
     536    return $timestamp + ( $gmt_offset ? intval( $gmt_offset ) : 0 );
     537}
  • smart-manager-for-wp-e-commerce/trunk/languages/smart-manager-for-wp-e-commerce.pot

    r3385169 r3390175  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Smart Manager - Advanced WooCommerce Bulk Edit & Inventory Management 8.73.0\n"
     5"Project-Id-Version: Smart Manager - Advanced WooCommerce Bulk Edit & Inventory Management 8.74.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-manager-for-wp-e-commerce\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-10-27T07:34:29+00:00\n"
     12"POT-Creation-Date: 2025-11-05T05:41:58+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.10.0\n"
     
    3535msgstr ""
    3636
    37 #: class-smart-manager.php:257
     37#: class-smart-manager.php:265
    3838msgctxt "product stock log dashboard name"
    3939msgid "Product Stock Log"
    4040msgstr ""
    4141
    42 #: class-smart-manager.php:269
     42#: class-smart-manager.php:277
    4343msgid "LifterLMS Orders"
    4444msgstr ""
    4545
    46 #: class-smart-manager.php:270
     46#: class-smart-manager.php:278
    4747msgid "LifterLMS Coupons"
    4848msgstr ""
    4949
    50 #: class-smart-manager.php:802
     50#: class-smart-manager.php:813
    5151msgid "<span class=\"sm_pricing_icon\"> 🔥 </span> Go Pro"
    5252msgstr ""
    5353
    54 #: class-smart-manager.php:805
     54#: class-smart-manager.php:816
    5555msgid "Docs & Support"
    5656msgstr ""
    5757
    58 #: class-smart-manager.php:811
     58#: class-smart-manager.php:822
    5959msgid "StoreApps Plugins"
    6060msgstr ""
    6161
    62 #: class-smart-manager.php:920
    63 #: class-smart-manager.php:1784
    64 msgctxt "admin notice description for new feature"
    65 msgid "<strong>AI-Powered Advanced Product Search!</strong>"
    66 msgstr ""
    67 
    68 #: class-smart-manager.php:921
    69 #: class-smart-manager.php:1785
    70 msgctxt "admin notice instructions for new feature"
    71 msgid "Enable it via <strong>Settings > General Settings > AI Integration</strong>."
    72 msgstr ""
    73 
    7462#. translators: %1$s: current user display name %2$s: HTML of Pro price discount
    75 #: class-smart-manager.php:1015
     63#: class-smart-manager.php:1022
    7664msgid "Hey %1$s, grab your %2$s Halloween discount!"
    7765msgstr ""
    7866
    79 #: class-smart-manager.php:1017
    80 #: class-smart-manager.php:1020
     67#: class-smart-manager.php:1024
     68#: class-smart-manager.php:1027
    8169msgid "25% off"
    8270msgstr ""
    8371
    8472#. translators: %1$s: current user display name %2$s: HTML of Pro price discount
    85 #: class-smart-manager.php:1019
     73#: class-smart-manager.php:1026
    8674msgid "Hey %1$s, you just unlocked %2$s on Smart Manager Pro!"
    8775msgstr ""
    8876
    8977#. translators: %s: pricing page link
    90 #: class-smart-manager.php:1023
     78#: class-smart-manager.php:1030
    9179msgid "%s to check Smart Manager Pro features/benefits and claim your discount."
    9280msgstr ""
    9381
    9482#. translators: %s: pricing page link
    95 #: class-smart-manager.php:1023
     83#: class-smart-manager.php:1030
    9684msgid "Click here"
    9785msgstr ""
    9886
    99 #: class-smart-manager.php:1351
     87#: class-smart-manager.php:1358
    10088msgid "This functionality has been disabled. Please contact store administrator for enabling the same."
    10189msgstr ""
    10290
    103 #: class-smart-manager.php:1355
     91#: class-smart-manager.php:1362
    10492msgctxt "Column edit disable message"
    10593msgid "This column edit has been disabled. Please contact store administrator for enabling the same."
    10694msgstr ""
    10795
    108 #: class-smart-manager.php:1389
     96#: class-smart-manager.php:1396
    10997msgid "In the meanwhile, you can use Smart Manager. But before using actions like "
    11098msgstr ""
    11199
    112 #: class-smart-manager.php:1389
     100#: class-smart-manager.php:1396
    113101#: classes/class-smart-manager-admin-welcome.php:344
    114102#: classes/class-smart-manager-task.php:399
     
    116104msgstr ""
    117105
    118 #: class-smart-manager.php:1389
     106#: class-smart-manager.php:1396
    119107msgid "Duplicate Records"
    120108msgstr ""
    121109
    122 #: class-smart-manager.php:1389
     110#: class-smart-manager.php:1396
    123111#: classes/class-smart-manager-admin-welcome.php:329
    124112msgid "Delete Records"
    125113msgstr ""
    126114
    127 #: class-smart-manager.php:1389
     115#: class-smart-manager.php:1396
    128116msgid "Undo Tasks"
    129117msgstr ""
    130118
    131 #: class-smart-manager.php:1389
     119#: class-smart-manager.php:1396
    132120msgid "Delete Tasks"
    133121msgstr ""
    134122
    135 #: class-smart-manager.php:1389
     123#: class-smart-manager.php:1396
    136124#: classes/class-smart-manager-admin-welcome.php:367
    137125msgid "Export CSV"
    138126msgstr ""
    139127
    140 #: class-smart-manager.php:1389
     128#: class-smart-manager.php:1396
    141129msgid "you will have to wait for the current background process to finish."
    142130msgstr ""
    143131
    144 #: class-smart-manager.php:1760
     132#: class-smart-manager.php:1780
    145133msgid "PRO"
    146134msgstr ""
    147135
    148 #: class-smart-manager.php:1760
     136#: class-smart-manager.php:1780
    149137msgid "LITE"
    150138msgstr ""
    151139
    152 #: class-smart-manager.php:1773
     140#: class-smart-manager.php:1793
    153141msgid "An upgrade for Smart Manager Pro"
    154142msgstr ""
    155143
    156 #: class-smart-manager.php:1773
     144#: class-smart-manager.php:1793
    157145msgid "is available."
    158146msgstr ""
    159147
    160 #: class-smart-manager.php:1773
     148#: class-smart-manager.php:1793
    161149msgid "Click to upgrade."
    162150msgstr ""
    163151
    164152#. translators: 1: heart symbol 2: plugin author
    165 #: class-smart-manager.php:1861
     153#: class-smart-manager.php:1877
    166154msgctxt "plugin and brand text in footer"
    167155msgid "Smart Manager, made with %1$s by %2$s"
    168156msgstr ""
    169157
    170 #: class-smart-manager.php:1863
     158#: class-smart-manager.php:1879
    171159msgctxt "brand name in footer"
    172160msgid "StoreApps"
     
    174162
    175163#. translators: 1: pipe as text separator 2: plugin version
    176 #: class-smart-manager.php:1872
     164#: class-smart-manager.php:1888
    177165msgctxt "text for showing plugin is for WordPress and WooCommerce in footer"
    178166msgid "Proudly built for WordPress & WooCommerce %1$s Version %2$s"
     
    180168
    181169#. translators: 1: open the anchor tag for plugin review link 2: five star symbol 3: close the anchor tag for plugin review link
    182 #: class-smart-manager.php:1898
     170#: class-smart-manager.php:1914
    183171msgctxt "text for plugin review in footer"
    184172msgid "If you like it, please give us %1$s %2$s rating%3$s."
     
    186174
    187175#. translators: 1: open the anchor tag for plugin feature request link 2: close the anchor tag for plugin feature request link
    188 #: class-smart-manager.php:1910
     176#: class-smart-manager.php:1926
    189177msgctxt "text for plugin feature request in footer"
    190178msgid "Do you have a feature request? Tell us %1$shere%2$s."
    191179msgstr ""
    192180
    193 #: class-smart-manager.php:1929
     181#: class-smart-manager.php:1945
    194182msgid "A required Smart Manager file is missing. Can't continue. "
    195183msgstr ""
    196184
    197 #: class-smart-manager.php:1944
     185#: class-smart-manager.php:1960
    198186msgid "Error:"
    199187msgstr ""
    200188
    201 #: class-smart-manager.php:2002
     189#: class-smart-manager.php:2018
    202190msgid "Auto-updates are not available for this plugin."
    203191msgstr ""
    204192
    205 #: class-smart-manager.php:2057
    206 #: class-smart-manager.php:2066
     193#: class-smart-manager.php:2073
     194#: class-smart-manager.php:2082
    207195msgctxt "WooCommerce post type label"
    208196msgid "WooCommerce - "
    209197msgstr ""
    210198
    211 #: class-smart-manager.php:2092
     199#: class-smart-manager.php:2108
    212200msgctxt "go pro link title"
    213201msgid "Go Pro"
    214202msgstr ""
    215203
    216 #: class-smart-manager.php:2092
     204#: class-smart-manager.php:2108
    217205msgctxt "go pro link"
    218206msgid "Go Pro"
     
    220208
    221209#. translators: %1\$: 5-star link %2s: 5-star link
    222 #: class-smart-manager.php:2097
     210#: class-smart-manager.php:2113
    223211msgid "Boost us with %1$s&#11088;&#11088;&#11088;&#11088;&#11088; &#128640;%2$s"
    224212msgstr ""
    225213
    226 #: class-smart-manager.php:2098
     214#: class-smart-manager.php:2114
    227215msgctxt "5-star link title"
    228216msgid "5-star review"
     
    230218
    231219#. translators: %1$s: user name, %2$s: saved man-hours
    232 #: class-smart-manager.php:2262
     220#: class-smart-manager.php:2278
    233221msgid "Hey %1$s, you’ve just saved <strong>%2$s productive hours</strong> with Smart Manager! 🎉"
    234222msgstr ""
    235223
    236224#. translators: %1$s: discount percentage, %2$s: additional man-hours
    237 #: class-smart-manager.php:2270
     225#: class-smart-manager.php:2286
    238226msgid "Upgrade to Smart Manager Pro to save <strong>additional %1$s hours</strong> (minimum) and unlock all features. %2$s"
    239227msgstr ""
    240228
    241 #: class-smart-manager.php:2272
     229#: class-smart-manager.php:2288
    242230msgid "Get it at"
    243231msgstr ""
    244232
    245 #: class-smart-manager.php:2272
     233#: class-smart-manager.php:2288
    246234msgid "25% off!"
     235msgstr ""
     236
     237#: class-smart-manager.php:2355
     238msgctxt "admin notice description for new feature"
     239msgid "Access WooCommerce product edit history directly from the product's row actions on the Products admin list page, as well as from the Product Edit page."
    247240msgstr ""
    248241
     
    355348#: classes/class-smart-manager-admin-welcome.php:350
    356349#: classes/class-smart-manager-admin-welcome.php:372
    357 #: classes/class-smart-manager-base.php:2216
     350#: classes/class-smart-manager-base.php:2222
    358351msgid "Pro"
    359352msgstr ""
     
    471464msgstr ""
    472465
    473 #: classes/class-smart-manager-base.php:327
     466#: classes/class-smart-manager-base.php:328
    474467#: pro/classes/class-smart-manager-pro-product-import-csv.php:42
    475468#: pro/classes/class-smart-manager-pro-wc-membership-plan.php:97
     
    478471msgstr ""
    479472
    480 #: classes/class-smart-manager-base.php:829
    481473#: classes/class-smart-manager-base.php:830
    482474#: classes/class-smart-manager-base.php:831
     475#: classes/class-smart-manager-base.php:832
    483476#: classes/class-smart-manager-shop-order.php:1781
    484477msgid "Trash"
     
    486479
    487480#. translators: %1$s: time saved in minutes/hours, %2$s: Pro upgrade link, %3$s: additional savings possible
    488 #: classes/class-smart-manager-base.php:2204
     481#: classes/class-smart-manager-base.php:2210
    489482msgid "You saved <strong>%1$s</strong>! Upgrade to %2$s to save more <strong>%3$s</strong> and unlock undo."
    490483msgstr ""
    491484
    492485#. translators: %1$d: number of updated record %2$s: record update message
    493 #: classes/class-smart-manager-base.php:2230
     486#: classes/class-smart-manager-base.php:2233
    494487msgid "%1$d record%2$s updated successfully!"
    495488msgstr ""
    496489
    497490#. translators: %1$d: number of updated record %2$s: record update message
    498 #: classes/class-smart-manager-base.php:2238
     491#: classes/class-smart-manager-base.php:2240
    499492msgid "%1$d record%2$s updated successfully! %3$s"
    500493msgstr ""
    501494
    502495#. translators: %1$d: number of updated record %2$s: record update message
    503 #: classes/class-smart-manager-base.php:2285
     496#: classes/class-smart-manager-base.php:2287
    504497msgid "%1$d record%2$s deleted successfully!"
    505498msgstr ""
    506499
    507500#. translators: %1$s: exports schedule success message
    508 #: classes/class-smart-manager-base.php:3354
     501#: classes/class-smart-manager-base.php:3356
    509502msgctxt "success notification"
    510503msgid "Export scheduled successfully. Check all your scheduled export actions <a target='_blank' href='%s'>here</a>."
    511504msgstr ""
    512505
    513 #: classes/class-smart-manager-base.php:3404
     506#: classes/class-smart-manager-base.php:3406
    514507msgctxt "export data model"
    515508msgid "Export CSV: no data found "
    516509msgstr ""
    517510
    518 #: classes/class-smart-manager-base.php:3474
     511#: classes/class-smart-manager-base.php:3476
    519512msgctxt "export file data"
    520513msgid "Export CSV: no file data found"
     
    645638
    646639#: classes/class-smart-manager-shop-order.php:502
    647 #: pro/classes/class-smart-manager-pro-product.php:118
    648640#: pro/common-pro/classes/class-sa-manager-pro-product.php:422
    649641msgid "Cost of Good"
     
    765757msgstr ""
    766758
    767 #: common-core/classes/class-sa-manager-base.php:316
     759#: common-core/classes/class-sa-manager-base.php:322
    768760msgctxt "column name"
    769761msgid "Featured Image"
    770762msgstr ""
    771763
    772 #: common-core/classes/class-sa-manager-base.php:317
     764#: common-core/classes/class-sa-manager-base.php:323
    773765msgctxt "column name key"
    774766msgid "Featured Image"
    775767msgstr ""
    776768
    777 #: common-core/classes/class-sa-manager-base.php:619
     769#: common-core/classes/class-sa-manager-base.php:625
    778770msgctxt "edit link"
    779771msgid "Edit"
    780772msgstr ""
    781773
    782 #: common-core/classes/class-sa-manager-base.php:634
     774#: common-core/classes/class-sa-manager-base.php:640
    783775msgctxt "view link"
    784776msgid "View"
    785777msgstr ""
    786778
    787 #: common-core/classes/class-sa-manager-base.php:646
     779#: common-core/classes/class-sa-manager-base.php:652
    788780msgctxt "dashboard display name"
    789781msgid "Product"
    790782msgstr ""
    791783
     784#: common-core/classes/class-sa-manager-base.php:887
     785msgctxt "error message for missing update action"
     786msgid "Parameter is missing."
     787msgstr ""
     788
     789#: common-core/classes/class-sa-manager-base.php:898
     790msgctxt "success message on feedback option update"
     791msgid "Feedback option updated"
     792msgstr ""
     793
    792794#. translators: 1: Method name, 2: Class name.
    793 #: common-core/classes/class-sa-manager-controller.php:227
     795#: common-core/classes/class-sa-manager-controller.php:230
    794796msgctxt "Ajax request handler background progress"
    795797msgid "Method %1$s is not callable in class %2$s"
     
    797799
    798800#. Translators: %1$s is the method name, %2$s is the class name.
    799 #: common-core/classes/class-sa-manager-controller.php:252
     801#: common-core/classes/class-sa-manager-controller.php:255
    800802msgctxt "Error message for non-callable method in Ajax request handler"
    801803msgid "Method %1$s is not callable in class %2$s."
     
    963965
    964966#: common-core/classes/class-sa-manager-product.php:480
    965 msgctxt "attributes column name"
    966967msgid "Attributes"
    967968msgstr ""
    968969
    969 #: common-core/classes/class-sa-manager-product.php:495
     970#: common-core/classes/class-sa-manager-product.php:505
    970971msgctxt "custom attributes column name"
    971972msgid "Attributes: custom"
    972973msgstr ""
    973974
    974 #: common-core/classes/class-sa-manager-product.php:520
     975#: common-core/classes/class-sa-manager-product.php:530
    975976msgctxt "catalog visibility column name"
    976977msgid "Catalog Visibility"
    977978msgstr ""
    978979
    979 #: common-core/classes/class-sa-manager-product.php:539
     980#: common-core/classes/class-sa-manager-product.php:549
    980981msgctxt "featured column name"
    981982msgid "Featured"
     
    10901091#. translators: %s: process name
    10911092#: pro/classes/class-smart-manager-pro-background-updater.php:101
    1092 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:974
     1093#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:985
    10931094msgctxt "batch handler time exceed status"
    10941095msgid "Time is exceeded for %s"
     
    10971098#. translators: %s: process name
    10981099#: pro/classes/class-smart-manager-pro-background-updater.php:105
    1099 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:978
     1100#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:989
    11001101msgctxt "batch handler memory exceed status"
    11011102msgid "Memory is exceeded for %s"
     
    11031104
    11041105#: pro/classes/class-smart-manager-pro-background-updater.php:198
    1105 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:708
     1106#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:715
    11061107msgctxt "background process task params"
    11071108msgid "Background process task params "
     
    13171318msgstr ""
    13181319
    1319 #: pro/classes/class-smart-manager-pro-product.php:88
    1320 #: pro/common-pro/classes/class-sa-manager-pro-product.php:392
    1321 msgid "Booking duration"
    1322 msgstr ""
    1323 
    1324 #: pro/classes/class-smart-manager-pro-product.php:89
    1325 #: pro/common-pro/classes/class-sa-manager-pro-product.php:393
    1326 msgid "Minimum duration"
    1327 msgstr ""
    1328 
    1329 #: pro/classes/class-smart-manager-pro-product.php:90
    1330 #: pro/common-pro/classes/class-sa-manager-pro-product.php:394
    1331 msgid "Maximum duration"
    1332 msgstr ""
    1333 
    1334 #: pro/classes/class-smart-manager-pro-product.php:91
    1335 #: pro/common-pro/classes/class-sa-manager-pro-product.php:395
    1336 msgid "Booking can be cancelled until"
    1337 msgstr ""
    1338 
    1339 #: pro/classes/class-smart-manager-pro-product.php:92
    1340 #: pro/common-pro/classes/class-sa-manager-pro-product.php:396
    1341 msgid "Min persons"
    1342 msgstr ""
    1343 
    1344 #: pro/classes/class-smart-manager-pro-product.php:93
    1345 #: pro/common-pro/classes/class-sa-manager-pro-product.php:397
    1346 msgid "Max persons"
    1347 msgstr ""
    1348 
    1349 #: pro/classes/class-smart-manager-pro-product.php:94
    1350 #: pro/common-pro/classes/class-sa-manager-pro-product.php:398
    1351 msgid "Max bookings per block"
    1352 msgstr ""
    1353 
    1354 #: pro/classes/class-smart-manager-pro-product.php:95
    1355 #: pro/common-pro/classes/class-sa-manager-pro-product.php:399
    1356 msgid "Minimum block bookable"
    1357 msgstr ""
    1358 
    1359 #: pro/classes/class-smart-manager-pro-product.php:96
    1360 #: pro/common-pro/classes/class-sa-manager-pro-product.php:400
    1361 msgid "Maximum block bookable"
    1362 msgstr ""
    1363 
    1364 #: pro/classes/class-smart-manager-pro-product.php:97
    1365 #: pro/common-pro/classes/class-sa-manager-pro-product.php:401
    1366 msgid "Require a buffer period of"
    1367 msgstr ""
    1368 
    1369 #: pro/classes/class-smart-manager-pro-product.php:99
    1370 #: pro/common-pro/classes/class-sa-manager-pro-product.php:403
    1371 msgid "Minimum quantity"
    1372 msgstr ""
    1373 
    1374 #: pro/classes/class-smart-manager-pro-product.php:100
    1375 #: pro/common-pro/classes/class-sa-manager-pro-product.php:404
    1376 msgid "Maximum quantity"
    1377 msgstr ""
    1378 
    1379 #: pro/classes/class-smart-manager-pro-product.php:101
    1380 #: pro/common-pro/classes/class-sa-manager-pro-product.php:405
    1381 msgid "Group of..."
    1382 msgstr ""
    1383 
    1384 #: pro/classes/class-smart-manager-pro-product.php:102
    1385 #: pro/common-pro/classes/class-sa-manager-pro-product.php:406
    1386 msgid "Variation Minimum quantity"
    1387 msgstr ""
    1388 
    1389 #: pro/classes/class-smart-manager-pro-product.php:103
    1390 #: pro/common-pro/classes/class-sa-manager-pro-product.php:407
    1391 msgid "Variation Maximum quantity"
    1392 msgstr ""
    1393 
    1394 #: pro/classes/class-smart-manager-pro-product.php:104
    1395 #: pro/common-pro/classes/class-sa-manager-pro-product.php:408
    1396 msgid "Variation Group of..."
    1397 msgstr ""
    1398 
    1399 #: pro/classes/class-smart-manager-pro-product.php:106
    1400 #: pro/common-pro/classes/class-sa-manager-pro-product.php:410
    1401 msgid "Minimum Quantity"
    1402 msgstr ""
    1403 
    1404 #: pro/classes/class-smart-manager-pro-product.php:107
    1405 #: pro/common-pro/classes/class-sa-manager-pro-product.php:411
    1406 msgid "Maximum Quantity"
    1407 msgstr ""
    1408 
    1409 #: pro/classes/class-smart-manager-pro-product.php:108
    1410 #: pro/common-pro/classes/class-sa-manager-pro-product.php:412
    1411 msgid "Variation Minimum Quantity"
    1412 msgstr ""
    1413 
    1414 #: pro/classes/class-smart-manager-pro-product.php:109
    1415 #: pro/common-pro/classes/class-sa-manager-pro-product.php:413
    1416 msgid "Variation Maximum Quantity"
    1417 msgstr ""
    1418 
    1419 #: pro/classes/class-smart-manager-pro-product.php:111
    1420 #: pro/common-pro/classes/class-sa-manager-pro-product.php:415
    1421 msgid "Min Quantity"
    1422 msgstr ""
    1423 
    1424 #: pro/classes/class-smart-manager-pro-product.php:112
    1425 #: pro/common-pro/classes/class-sa-manager-pro-product.php:416
    1426 msgid "Max Quantity"
    1427 msgstr ""
    1428 
    1429 #: pro/classes/class-smart-manager-pro-product.php:114
    1430 #: pro/common-pro/classes/class-sa-manager-pro-product.php:418
    1431 msgid "Subscription Price"
    1432 msgstr ""
    1433 
    1434 #: pro/classes/class-smart-manager-pro-product.php:115
    1435 #: pro/common-pro/classes/class-sa-manager-pro-product.php:419
    1436 msgid "Sign-up Fee"
    1437 msgstr ""
    1438 
    1439 #: pro/classes/class-smart-manager-pro-product.php:116
    1440 #: pro/common-pro/classes/class-sa-manager-pro-product.php:420
    1441 msgid "Free Trial"
    1442 msgstr ""
    1443 
    1444 #: pro/classes/class-smart-manager-pro-product.php:120
    1445 #: pro/common-pro/classes/class-sa-manager-pro-product.php:424
    1446 msgid "Product Units"
    1447 msgstr ""
    1448 
    1449 #: pro/classes/class-smart-manager-pro-product.php:121
    1450 #: pro/common-pro/classes/class-sa-manager-pro-product.php:425
    1451 msgid "Unit Price Units"
    1452 msgstr ""
    1453 
    1454 #: pro/classes/class-smart-manager-pro-product.php:122
    1455 #: pro/common-pro/classes/class-sa-manager-pro-product.php:426
    1456 msgid "Regular Unit Price"
    1457 msgstr ""
    1458 
    1459 #: pro/classes/class-smart-manager-pro-product.php:123
    1460 #: pro/common-pro/classes/class-sa-manager-pro-product.php:427
    1461 msgid "Sale Unit Price"
    1462 msgstr ""
    1463 
    1464 #: pro/classes/class-smart-manager-pro-product.php:130
    1465 #: pro/common-pro/classes/class-sa-manager-pro-product.php:440
    1466 msgid "Enable Calendar Range Picker?"
    1467 msgstr ""
    1468 
    1469 #: pro/classes/class-smart-manager-pro-product.php:131
    1470 #: pro/common-pro/classes/class-sa-manager-pro-product.php:441
    1471 msgid "Requires confirmation?"
    1472 msgstr ""
    1473 
    1474 #: pro/classes/class-smart-manager-pro-product.php:132
    1475 #: pro/common-pro/classes/class-sa-manager-pro-product.php:442
    1476 msgid "Can be cancelled?"
    1477 msgstr ""
    1478 
    1479 #: pro/classes/class-smart-manager-pro-product.php:133
    1480 #: pro/common-pro/classes/class-sa-manager-pro-product.php:443
    1481 msgid "Has persons"
    1482 msgstr ""
    1483 
    1484 #: pro/classes/class-smart-manager-pro-product.php:134
    1485 #: pro/common-pro/classes/class-sa-manager-pro-product.php:444
    1486 msgid "Has resources"
    1487 msgstr ""
    1488 
    1489 #: pro/classes/class-smart-manager-pro-product.php:135
    1490 #: pro/common-pro/classes/class-sa-manager-pro-product.php:445
    1491 msgid "Multiply all costs by person count"
    1492 msgstr ""
    1493 
    1494 #: pro/classes/class-smart-manager-pro-product.php:136
    1495 #: pro/common-pro/classes/class-sa-manager-pro-product.php:446
    1496 msgid "Count persons as bookings"
    1497 msgstr ""
    1498 
    1499 #: pro/classes/class-smart-manager-pro-product.php:137
    1500 #: pro/common-pro/classes/class-sa-manager-pro-product.php:447
    1501 msgid "Enable person types"
    1502 msgstr ""
    1503 
    1504 #: pro/classes/class-smart-manager-pro-product.php:138
    1505 #: pro/common-pro/classes/class-sa-manager-pro-product.php:448
    1506 msgid "Restrict start and end days?"
    1507 msgstr ""
    1508 
    1509 #: pro/classes/class-smart-manager-pro-product.php:139
    1510 #: pro/common-pro/classes/class-sa-manager-pro-product.php:449
    1511 msgid "Adjacent Buffering?"
    1512 msgstr ""
    1513 
    1514 #: pro/classes/class-smart-manager-pro-product.php:144
    1515 #: pro/common-pro/classes/class-sa-manager-pro-product.php:454
    1516 msgid "Enable Min Max Quantity"
    1517 msgstr ""
    1518 
    1519 #: pro/classes/class-smart-manager-pro-product.php:149
    1520 #: pro/common-pro/classes/class-sa-manager-pro-product.php:459
    1521 msgid "Min/Max Rules"
    1522 msgstr ""
    1523 
    1524 #: pro/classes/class-smart-manager-pro-product.php:150
    1525 #: pro/common-pro/classes/class-sa-manager-pro-product.php:460
    1526 msgid "Allow Combination"
    1527 msgstr ""
    1528 
    1529 #: pro/classes/class-smart-manager-pro-product.php:151
    1530 #: pro/common-pro/classes/class-sa-manager-pro-product.php:461
    1531 msgid "Order rules: Do not count"
    1532 msgstr ""
    1533 
    1534 #: pro/classes/class-smart-manager-pro-product.php:152
    1535 #: pro/common-pro/classes/class-sa-manager-pro-product.php:462
    1536 msgid "Order rules: Exclude"
    1537 msgstr ""
    1538 
    1539 #: pro/classes/class-smart-manager-pro-product.php:153
    1540 #: pro/common-pro/classes/class-sa-manager-pro-product.php:463
    1541 msgid "Category group-of rules: Exclude"
    1542 msgstr ""
    1543 
    1544 #: pro/classes/class-smart-manager-pro-product.php:154
    1545 #: pro/common-pro/classes/class-sa-manager-pro-product.php:464
    1546 msgid "Variation Order rules: Do not count"
    1547 msgstr ""
    1548 
    1549 #: pro/classes/class-smart-manager-pro-product.php:155
    1550 #: pro/common-pro/classes/class-sa-manager-pro-product.php:465
    1551 msgid "Variation Order rules: Exclude"
    1552 msgstr ""
    1553 
    1554 #: pro/classes/class-smart-manager-pro-product.php:156
    1555 #: pro/common-pro/classes/class-sa-manager-pro-product.php:466
    1556 msgid "Variation Category group-of rules: Exclude"
    1557 msgstr ""
    1558 
    1559 #: pro/classes/class-smart-manager-pro-product.php:158
    1560 #: pro/common-pro/classes/class-sa-manager-pro-product.php:468
    1561 msgid "Calculate unit prices automatically"
    1562 msgstr ""
    1563 
    1564 #: pro/classes/class-smart-manager-pro-product.php:162
    1565 #: pro/common-pro/classes/class-sa-manager-pro-product.php:472
    1566 msgid "Month(s)"
    1567 msgstr ""
    1568 
    1569 #: pro/classes/class-smart-manager-pro-product.php:163
    1570 #: pro/common-pro/classes/class-sa-manager-pro-product.php:473
    1571 msgid "Day(s)"
    1572 msgstr ""
    1573 
    1574 #: pro/classes/class-smart-manager-pro-product.php:164
    1575 #: pro/common-pro/classes/class-sa-manager-pro-product.php:474
    1576 msgid "Hour(s)"
    1577 msgstr ""
    1578 
    1579 #: pro/classes/class-smart-manager-pro-product.php:165
    1580 #: pro/common-pro/classes/class-sa-manager-pro-product.php:475
    1581 msgid "Minutes(s)"
    1582 msgstr ""
    1583 
    1584 #: pro/classes/class-smart-manager-pro-product.php:197
    1585 #: pro/common-pro/classes/class-sa-manager-pro-product.php:508
    1586 msgid "Booking Duration (Type)"
    1587 msgstr ""
    1588 
    1589 #: pro/classes/class-smart-manager-pro-product.php:199
    1590 #: pro/common-pro/classes/class-sa-manager-pro-product.php:511
    1591 msgid "Fixed blocks of"
    1592 msgstr ""
    1593 
    1594 #: pro/classes/class-smart-manager-pro-product.php:200
    1595 #: pro/common-pro/classes/class-sa-manager-pro-product.php:512
    1596 msgid "Customer defined blocks of"
    1597 msgstr ""
    1598 
    1599 #: pro/classes/class-smart-manager-pro-product.php:205
    1600 #: pro/common-pro/classes/class-sa-manager-pro-product.php:518
    1601 msgid "Booking Duration (Unit)"
    1602 msgstr ""
    1603 
    1604 #: pro/classes/class-smart-manager-pro-product.php:210
    1605 #: pro/common-pro/classes/class-sa-manager-pro-product.php:523
    1606 msgid "Booking can be cancelled until (Unit)"
    1607 msgstr ""
    1608 
    1609 #: pro/classes/class-smart-manager-pro-product.php:215
    1610 #: pro/common-pro/classes/class-sa-manager-pro-product.php:528
    1611 msgid "Minimum block bookable (Unit)"
    1612 msgstr ""
    1613 
    1614 #: pro/classes/class-smart-manager-pro-product.php:220
    1615 #: pro/common-pro/classes/class-sa-manager-pro-product.php:533
    1616 msgid "Maximum block bookable (Unit)"
    1617 msgstr ""
    1618 
    1619 #: pro/classes/class-smart-manager-pro-product.php:225
    1620 #: pro/common-pro/classes/class-sa-manager-pro-product.php:538
    1621 msgid "Calendar display mode"
    1622 msgstr ""
    1623 
    1624 #: pro/classes/class-smart-manager-pro-product.php:227
    1625 #: pro/common-pro/classes/class-sa-manager-pro-product.php:541
    1626 msgid "Display calendar on click"
    1627 msgstr ""
    1628 
    1629 #: pro/classes/class-smart-manager-pro-product.php:228
    1630 #: pro/common-pro/classes/class-sa-manager-pro-product.php:542
    1631 msgid "Calendar always visible"
    1632 msgstr ""
    1633 
    1634 #: pro/classes/class-smart-manager-pro-product.php:233
    1635 #: pro/common-pro/classes/class-sa-manager-pro-product.php:547
    1636 msgid "Resources are..."
    1637 msgstr ""
    1638 
    1639 #: pro/classes/class-smart-manager-pro-product.php:235
    1640 #: pro/common-pro/classes/class-sa-manager-pro-product.php:550
    1641 msgid "Customer selected"
    1642 msgstr ""
    1643 
    1644 #: pro/classes/class-smart-manager-pro-product.php:236
    1645 #: pro/common-pro/classes/class-sa-manager-pro-product.php:551
    1646 msgid "Automatically assigned"
    1647 msgstr ""
    1648 
    1649 #: pro/classes/class-smart-manager-pro-product.php:241
    1650 #: pro/common-pro/classes/class-sa-manager-pro-product.php:556
    1651 msgid "All dates are..."
    1652 msgstr ""
    1653 
    1654 #: pro/classes/class-smart-manager-pro-product.php:243
    1655 #: pro/common-pro/classes/class-sa-manager-pro-product.php:559
    1656 msgid "available by default"
    1657 msgstr ""
    1658 
    1659 #: pro/classes/class-smart-manager-pro-product.php:244
    1660 #: pro/common-pro/classes/class-sa-manager-pro-product.php:560
    1661 msgid "not-available by default"
    1662 msgstr ""
    1663 
    1664 #: pro/classes/class-smart-manager-pro-product.php:249
    1665 #: pro/common-pro/classes/class-sa-manager-pro-product.php:565
    1666 msgid "Check rules against..."
    1667 msgstr ""
    1668 
    1669 #: pro/classes/class-smart-manager-pro-product.php:251
    1670 #: pro/common-pro/classes/class-sa-manager-pro-product.php:568
    1671 msgid "All blocks being booked"
    1672 msgstr ""
    1673 
    1674 #: pro/classes/class-smart-manager-pro-product.php:252
    1675 #: pro/common-pro/classes/class-sa-manager-pro-product.php:569
    1676 msgid "The starting block only"
    1677 msgstr ""
    1678 
    1679 #: pro/classes/class-smart-manager-pro-product.php:260
    1680 #: pro/common-pro/classes/class-sa-manager-pro-product.php:580
    1681 msgid "Subscription Periods"
    1682 msgstr ""
    1683 
    1684 #: pro/classes/class-smart-manager-pro-product.php:266
    1685 #: pro/common-pro/classes/class-sa-manager-pro-product.php:586
    1686 msgid "Billing Period"
    1687 msgstr ""
    1688 
    1689 #: pro/classes/class-smart-manager-pro-product.php:271
    1690 #: pro/common-pro/classes/class-sa-manager-pro-product.php:592
    1691 msgid "Expire After"
    1692 msgstr ""
    1693 
    1694 #: pro/classes/class-smart-manager-pro-product.php:274
    1695 #: pro/common-pro/classes/class-sa-manager-pro-product.php:595
    1696 msgid "Never expire"
    1697 msgstr ""
    1698 
    1699 #: pro/classes/class-smart-manager-pro-product.php:285
    1700 #: pro/common-pro/classes/class-sa-manager-pro-product.php:606
    1701 msgid "Subscription Trial Period"
    1702 msgstr ""
    1703 
    17041320#: pro/classes/class-smart-manager-pro-shop-coupon.php:248
    17051321msgid "Allowed user roles"
     
    19171533
    19181534#: pro/classes/class-smart-manager-pro-task.php:569
     1535msgctxt "column name"
    19191536msgid "Term"
    19201537msgstr ""
     
    20461663msgstr ""
    20471664
    2048 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:542
     1665#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:550
    20491666msgctxt "entire store"
    20501667msgid "All"
     
    20521669
    20531670#. translators: 1. Error title 2. The bulk process
    2054 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:554
     1671#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:562
    20551672msgid "%1$s: The %2$s process has stopped. Please review the dashboard to check the status."
    20561673msgstr ""
    20571674
    20581675#. translators: 1. Error title 2. The bulk process
    2059 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:554
     1676#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:562
    20601677msgid "Error"
    20611678msgstr ""
    20621679
    2063 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:562
     1680#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:570
    20641681msgid "Important"
    20651682msgstr ""
    20661683
    2067 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:563
     1684#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:571
    20681685msgid "request is running"
    20691686msgstr ""
    20701687
    2071 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:564
     1688#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:572
    20721689msgid "in the background. You will be notified on"
    20731690msgstr ""
    20741691
    2075 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:564
     1692#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:572
    20761693msgid "when it is completed."
    20771694msgstr ""
    20781695
    2079 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:570
     1696#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:578
    20801697msgid "Progress"
    20811698msgstr ""
    20821699
    2083 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:571
     1700#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:579
    20841701msgid "--:--:--"
    20851702msgstr ""
    20861703
    2087 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:572
     1704#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:580
    20881705msgid "Stop"
    20891706msgstr ""
    20901707
    2091 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:577
     1708#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:585
    20921709msgid "NOTE"
    20931710msgstr ""
    20941711
    2095 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:585
     1712#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:593
    20961713msgid "for"
    20971714msgstr ""
    20981715
    2099 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:585
     1716#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:593
    21001717msgid "completed successfully"
    21011718msgstr ""
    21021719
    21031720#. translators: %s: process name
    2104 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:597
     1721#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:605
    21051722msgid "Are you sure you want to stop the %s process? Click OK to stop."
    21061723msgstr ""
    21071724
    2108 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:765
     1725#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:772
    21091726msgctxt "fatal error for callback"
    21101727msgid "Transactional email triggered fatal error for callback "
    21111728msgstr ""
    21121729
    2113 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:851
     1730#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:859
    21141731msgctxt "percentage progress"
    21151732msgid "% completed"
    21161733msgstr ""
    21171734
    2118 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:874
     1735#: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:882
    21191736msgid "% Completed"
    21201737msgstr ""
     
    21681785msgstr ""
    21691786
     1787#: pro/common-pro/classes/class-sa-manager-pro-product.php:392
     1788msgid "Booking duration"
     1789msgstr ""
     1790
     1791#: pro/common-pro/classes/class-sa-manager-pro-product.php:393
     1792msgid "Minimum duration"
     1793msgstr ""
     1794
     1795#: pro/common-pro/classes/class-sa-manager-pro-product.php:394
     1796msgid "Maximum duration"
     1797msgstr ""
     1798
     1799#: pro/common-pro/classes/class-sa-manager-pro-product.php:395
     1800msgid "Booking can be cancelled until"
     1801msgstr ""
     1802
     1803#: pro/common-pro/classes/class-sa-manager-pro-product.php:396
     1804msgid "Min persons"
     1805msgstr ""
     1806
     1807#: pro/common-pro/classes/class-sa-manager-pro-product.php:397
     1808msgid "Max persons"
     1809msgstr ""
     1810
     1811#: pro/common-pro/classes/class-sa-manager-pro-product.php:398
     1812msgid "Max bookings per block"
     1813msgstr ""
     1814
     1815#: pro/common-pro/classes/class-sa-manager-pro-product.php:399
     1816msgid "Minimum block bookable"
     1817msgstr ""
     1818
     1819#: pro/common-pro/classes/class-sa-manager-pro-product.php:400
     1820msgid "Maximum block bookable"
     1821msgstr ""
     1822
     1823#: pro/common-pro/classes/class-sa-manager-pro-product.php:401
     1824msgid "Require a buffer period of"
     1825msgstr ""
     1826
     1827#: pro/common-pro/classes/class-sa-manager-pro-product.php:403
     1828msgid "Minimum quantity"
     1829msgstr ""
     1830
     1831#: pro/common-pro/classes/class-sa-manager-pro-product.php:404
     1832msgid "Maximum quantity"
     1833msgstr ""
     1834
     1835#: pro/common-pro/classes/class-sa-manager-pro-product.php:405
     1836msgid "Group of..."
     1837msgstr ""
     1838
     1839#: pro/common-pro/classes/class-sa-manager-pro-product.php:406
     1840msgid "Variation Minimum quantity"
     1841msgstr ""
     1842
     1843#: pro/common-pro/classes/class-sa-manager-pro-product.php:407
     1844msgid "Variation Maximum quantity"
     1845msgstr ""
     1846
     1847#: pro/common-pro/classes/class-sa-manager-pro-product.php:408
     1848msgid "Variation Group of..."
     1849msgstr ""
     1850
     1851#: pro/common-pro/classes/class-sa-manager-pro-product.php:410
     1852msgid "Minimum Quantity"
     1853msgstr ""
     1854
     1855#: pro/common-pro/classes/class-sa-manager-pro-product.php:411
     1856msgid "Maximum Quantity"
     1857msgstr ""
     1858
     1859#: pro/common-pro/classes/class-sa-manager-pro-product.php:412
     1860msgid "Variation Minimum Quantity"
     1861msgstr ""
     1862
     1863#: pro/common-pro/classes/class-sa-manager-pro-product.php:413
     1864msgid "Variation Maximum Quantity"
     1865msgstr ""
     1866
     1867#: pro/common-pro/classes/class-sa-manager-pro-product.php:415
     1868msgid "Min Quantity"
     1869msgstr ""
     1870
     1871#: pro/common-pro/classes/class-sa-manager-pro-product.php:416
     1872msgid "Max Quantity"
     1873msgstr ""
     1874
     1875#: pro/common-pro/classes/class-sa-manager-pro-product.php:418
     1876msgid "Subscription Price"
     1877msgstr ""
     1878
     1879#: pro/common-pro/classes/class-sa-manager-pro-product.php:419
     1880msgid "Sign-up Fee"
     1881msgstr ""
     1882
     1883#: pro/common-pro/classes/class-sa-manager-pro-product.php:420
     1884msgid "Free Trial"
     1885msgstr ""
     1886
     1887#: pro/common-pro/classes/class-sa-manager-pro-product.php:424
     1888msgid "Product Units"
     1889msgstr ""
     1890
     1891#: pro/common-pro/classes/class-sa-manager-pro-product.php:425
     1892msgid "Unit Price Units"
     1893msgstr ""
     1894
     1895#: pro/common-pro/classes/class-sa-manager-pro-product.php:426
     1896msgid "Regular Unit Price"
     1897msgstr ""
     1898
     1899#: pro/common-pro/classes/class-sa-manager-pro-product.php:427
     1900msgid "Sale Unit Price"
     1901msgstr ""
     1902
     1903#: pro/common-pro/classes/class-sa-manager-pro-product.php:440
     1904msgid "Enable Calendar Range Picker?"
     1905msgstr ""
     1906
     1907#: pro/common-pro/classes/class-sa-manager-pro-product.php:441
     1908msgid "Requires confirmation?"
     1909msgstr ""
     1910
     1911#: pro/common-pro/classes/class-sa-manager-pro-product.php:442
     1912msgid "Can be cancelled?"
     1913msgstr ""
     1914
     1915#: pro/common-pro/classes/class-sa-manager-pro-product.php:443
     1916msgid "Has persons"
     1917msgstr ""
     1918
     1919#: pro/common-pro/classes/class-sa-manager-pro-product.php:444
     1920msgid "Has resources"
     1921msgstr ""
     1922
     1923#: pro/common-pro/classes/class-sa-manager-pro-product.php:445
     1924msgid "Multiply all costs by person count"
     1925msgstr ""
     1926
     1927#: pro/common-pro/classes/class-sa-manager-pro-product.php:446
     1928msgid "Count persons as bookings"
     1929msgstr ""
     1930
     1931#: pro/common-pro/classes/class-sa-manager-pro-product.php:447
     1932msgid "Enable person types"
     1933msgstr ""
     1934
     1935#: pro/common-pro/classes/class-sa-manager-pro-product.php:448
     1936msgid "Restrict start and end days?"
     1937msgstr ""
     1938
     1939#: pro/common-pro/classes/class-sa-manager-pro-product.php:449
     1940msgid "Adjacent Buffering?"
     1941msgstr ""
     1942
     1943#: pro/common-pro/classes/class-sa-manager-pro-product.php:454
     1944msgid "Enable Min Max Quantity"
     1945msgstr ""
     1946
     1947#: pro/common-pro/classes/class-sa-manager-pro-product.php:459
     1948msgid "Min/Max Rules"
     1949msgstr ""
     1950
     1951#: pro/common-pro/classes/class-sa-manager-pro-product.php:460
     1952msgid "Allow Combination"
     1953msgstr ""
     1954
     1955#: pro/common-pro/classes/class-sa-manager-pro-product.php:461
     1956msgid "Order rules: Do not count"
     1957msgstr ""
     1958
     1959#: pro/common-pro/classes/class-sa-manager-pro-product.php:462
     1960msgid "Order rules: Exclude"
     1961msgstr ""
     1962
     1963#: pro/common-pro/classes/class-sa-manager-pro-product.php:463
     1964msgid "Category group-of rules: Exclude"
     1965msgstr ""
     1966
     1967#: pro/common-pro/classes/class-sa-manager-pro-product.php:464
     1968msgid "Variation Order rules: Do not count"
     1969msgstr ""
     1970
     1971#: pro/common-pro/classes/class-sa-manager-pro-product.php:465
     1972msgid "Variation Order rules: Exclude"
     1973msgstr ""
     1974
     1975#: pro/common-pro/classes/class-sa-manager-pro-product.php:466
     1976msgid "Variation Category group-of rules: Exclude"
     1977msgstr ""
     1978
     1979#: pro/common-pro/classes/class-sa-manager-pro-product.php:468
     1980msgid "Calculate unit prices automatically"
     1981msgstr ""
     1982
     1983#: pro/common-pro/classes/class-sa-manager-pro-product.php:472
     1984msgid "Month(s)"
     1985msgstr ""
     1986
     1987#: pro/common-pro/classes/class-sa-manager-pro-product.php:473
     1988msgid "Day(s)"
     1989msgstr ""
     1990
     1991#: pro/common-pro/classes/class-sa-manager-pro-product.php:474
     1992msgid "Hour(s)"
     1993msgstr ""
     1994
     1995#: pro/common-pro/classes/class-sa-manager-pro-product.php:475
     1996msgid "Minutes(s)"
     1997msgstr ""
     1998
     1999#: pro/common-pro/classes/class-sa-manager-pro-product.php:508
     2000msgid "Booking Duration (Type)"
     2001msgstr ""
     2002
     2003#: pro/common-pro/classes/class-sa-manager-pro-product.php:511
     2004msgid "Fixed blocks of"
     2005msgstr ""
     2006
     2007#: pro/common-pro/classes/class-sa-manager-pro-product.php:512
     2008msgid "Customer defined blocks of"
     2009msgstr ""
     2010
     2011#: pro/common-pro/classes/class-sa-manager-pro-product.php:518
     2012msgid "Booking Duration (Unit)"
     2013msgstr ""
     2014
     2015#: pro/common-pro/classes/class-sa-manager-pro-product.php:523
     2016msgid "Booking can be cancelled until (Unit)"
     2017msgstr ""
     2018
     2019#: pro/common-pro/classes/class-sa-manager-pro-product.php:528
     2020msgid "Minimum block bookable (Unit)"
     2021msgstr ""
     2022
     2023#: pro/common-pro/classes/class-sa-manager-pro-product.php:533
     2024msgid "Maximum block bookable (Unit)"
     2025msgstr ""
     2026
     2027#: pro/common-pro/classes/class-sa-manager-pro-product.php:538
     2028msgid "Calendar display mode"
     2029msgstr ""
     2030
     2031#: pro/common-pro/classes/class-sa-manager-pro-product.php:541
     2032msgid "Display calendar on click"
     2033msgstr ""
     2034
     2035#: pro/common-pro/classes/class-sa-manager-pro-product.php:542
     2036msgid "Calendar always visible"
     2037msgstr ""
     2038
     2039#: pro/common-pro/classes/class-sa-manager-pro-product.php:547
     2040msgid "Resources are..."
     2041msgstr ""
     2042
     2043#: pro/common-pro/classes/class-sa-manager-pro-product.php:550
     2044msgid "Customer selected"
     2045msgstr ""
     2046
     2047#: pro/common-pro/classes/class-sa-manager-pro-product.php:551
     2048msgid "Automatically assigned"
     2049msgstr ""
     2050
     2051#: pro/common-pro/classes/class-sa-manager-pro-product.php:556
     2052msgid "All dates are..."
     2053msgstr ""
     2054
     2055#: pro/common-pro/classes/class-sa-manager-pro-product.php:559
     2056msgid "available by default"
     2057msgstr ""
     2058
     2059#: pro/common-pro/classes/class-sa-manager-pro-product.php:560
     2060msgid "not-available by default"
     2061msgstr ""
     2062
     2063#: pro/common-pro/classes/class-sa-manager-pro-product.php:565
     2064msgid "Check rules against..."
     2065msgstr ""
     2066
     2067#: pro/common-pro/classes/class-sa-manager-pro-product.php:568
     2068msgid "All blocks being booked"
     2069msgstr ""
     2070
     2071#: pro/common-pro/classes/class-sa-manager-pro-product.php:569
     2072msgid "The starting block only"
     2073msgstr ""
     2074
     2075#: pro/common-pro/classes/class-sa-manager-pro-product.php:580
     2076msgid "Subscription Periods"
     2077msgstr ""
     2078
     2079#: pro/common-pro/classes/class-sa-manager-pro-product.php:586
     2080msgid "Billing Period"
     2081msgstr ""
     2082
     2083#: pro/common-pro/classes/class-sa-manager-pro-product.php:592
     2084msgid "Expire After"
     2085msgstr ""
     2086
     2087#: pro/common-pro/classes/class-sa-manager-pro-product.php:595
     2088msgid "Never expire"
     2089msgstr ""
     2090
     2091#: pro/common-pro/classes/class-sa-manager-pro-product.php:606
     2092msgid "Subscription Trial Period"
     2093msgstr ""
     2094
    21702095#. translators: %d: records count
    21712096#: pro/templates/emails/bulk-edit.php:8
     
    24442369#. translators: %s: pricing page link
    24452370#: assets/js/admin.js:1
    2446 #: assets/js/smart-manager.js:2413
    2447 #: assets/js/smart-manager.js:2683
    2448 #: assets/js/smart-manager.js:2739
    2449 #: assets/js/smart-manager.js:2751
    2450 #: assets/js/smart-manager.js:2760
    2451 #: assets/js/smart-manager.js:3229
     2371#: assets/js/smart-manager.js:2426
     2372#: assets/js/smart-manager.js:2696
     2373#: assets/js/smart-manager.js:2752
     2374#: assets/js/smart-manager.js:2764
     2375#: assets/js/smart-manager.js:2773
     2376#: assets/js/smart-manager.js:3244
    24522377msgctxt "modal content"
    24532378msgid "This feature is available only in the %s version"
     
    24552380
    24562381#: assets/js/admin.js:1
    2457 #: assets/js/smart-manager.js:298
    2458 #: assets/js/smart-manager.js:2106
    2459 #: assets/js/smart-manager.js:2413
    2460 #: assets/js/smart-manager.js:2683
    2461 #: assets/js/smart-manager.js:2739
    2462 #: assets/js/smart-manager.js:2751
    2463 #: assets/js/smart-manager.js:2760
    2464 #: assets/js/smart-manager.js:3229
     2382#: assets/js/smart-manager.js:300
     2383#: assets/js/smart-manager.js:2119
     2384#: assets/js/smart-manager.js:2426
     2385#: assets/js/smart-manager.js:2696
     2386#: assets/js/smart-manager.js:2752
     2387#: assets/js/smart-manager.js:2764
     2388#: assets/js/smart-manager.js:2773
     2389#: assets/js/smart-manager.js:3244
    24652390msgctxt "modal content"
    24662391msgid "Pro"
     
    25822507
    25832508#: assets/js/admin.js:1
    2584 #: assets/js/smart-manager.js:2501
    2585 #: assets/js/smart-manager.js:2529
    2586 #: assets/js/smart-manager.js:2675
     2509#: assets/js/smart-manager.js:2514
     2510#: assets/js/smart-manager.js:2542
     2511#: assets/js/smart-manager.js:2688
    25872512#: src/views/AdvancedSearchDialog.js:127
    25882513msgctxt "notification"
     
    26392564#: assets/js/admin.js:1
    26402565#: assets/js/smart-manager-product.js:233
    2641 #: assets/js/smart-manager.js:2317
    2642 #: assets/js/smart-manager.js:2514
    2643 #: assets/js/smart-manager.js:2549
    2644 #: assets/js/smart-manager.js:4376
     2566#: assets/js/smart-manager.js:2330
     2567#: assets/js/smart-manager.js:2527
     2568#: assets/js/smart-manager.js:2562
     2569#: assets/js/smart-manager.js:4401
    26452570#: pro/assets/js/smart-manager.js:1239
    26462571#: pro/assets/js/smart-manager.js:1941
     
    26562581
    26572582#: assets/js/admin.js:1
    2658 #: assets/js/smart-manager.js:2515
     2583#: assets/js/smart-manager.js:2528
    26592584#: pro/assets/js/smart-manager.js:1248
    26602585#: pro/assets/js/smart-manager.js:1942
     
    28112736
    28122737#: assets/js/admin.js:1
     2738msgctxt "Question asking user opinion about plugin"
     2739msgid "Happy with the Smart Manager plugin?"
     2740msgstr ""
     2741
     2742#: assets/js/admin.js:1
     2743msgctxt "Asking how plugin is doing"
     2744msgid "Is our plugin doing what it promised - helping you manage your store effortlessly?"
     2745msgstr ""
     2746
     2747#: assets/js/admin.js:1
     2748msgctxt "Positive response button"
     2749msgid "Yes, all good"
     2750msgstr ""
     2751
     2752#: assets/js/admin.js:1
     2753msgctxt "Negative response button"
     2754msgid "Could be better"
     2755msgstr ""
     2756
     2757#: assets/js/admin.js:1
     2758msgctxt "Thank you message for positive feedback"
     2759msgid "Thanks for the love!"
     2760msgstr ""
     2761
     2762#: assets/js/admin.js:1
     2763msgctxt "Request the user to leave a review"
     2764msgid "Awesome! Mind leaving us a 5-star review? It really motivates us to keep improving and reach more store owners like you."
     2765msgstr ""
     2766
     2767#: assets/js/admin.js:1
     2768msgctxt "Review response button"
     2769msgid "Yes, I'll rate now!"
     2770msgstr ""
     2771
     2772#: assets/js/admin.js:1
     2773msgctxt "Apology message for negative feedback"
     2774msgid "We hear you - let's make it better!"
     2775msgstr ""
     2776
     2777#: assets/js/admin.js:1
     2778msgctxt "Support offer message"
     2779msgid "Thanks for your honesty. Let our support team assist you so you can get back to managing your store effortlessly."
     2780msgstr ""
     2781
     2782#: assets/js/admin.js:1
     2783msgctxt "Support contact button"
     2784msgid "Contact support"
     2785msgstr ""
     2786
     2787#: assets/js/admin.js:1
    28132788#: src/views/SettingsDialog.js:46
    28142789msgctxt "setting label"
     
    35963571#: assets/js/admin.js:1
    35973572#: assets/js/smart-manager-product.js:475
    3598 #: assets/js/smart-manager.js:1815
    3599 #: assets/js/smart-manager.js:1855
    3600 #: assets/js/smart-manager.js:1909
     3573#: assets/js/smart-manager.js:1828
     3574#: assets/js/smart-manager.js:1868
     3575#: assets/js/smart-manager.js:1922
    36013576#: pro/assets/js/smart-manager.js:1134
    36023577#: pro/common-pro/assets/js/base.js:61
     
    36063581
    36073582#: assets/js/admin.js:1
    3608 #: assets/js/smart-manager.js:2466
     3583#: assets/js/smart-manager.js:2479
    36093584#: pro/assets/js/smart-manager.js:1159
    36103585#: pro/assets/js/smart-manager.js:2022
     
    37913766
    37923767#. translators: %1$s: dashboard display name %2$s: success message %3$s: pricing page link
    3793 #: assets/js/smart-manager.js:298
    3794 #: assets/js/smart-manager.js:2106
     3768#: assets/js/smart-manager.js:300
     3769#: assets/js/smart-manager.js:2119
    37953770msgctxt "modal content"
    37963771msgid "For managing %1$s, %2$s %3$s version"
    37973772msgstr ""
    37983773
    3799 #: assets/js/smart-manager.js:556
     3774#: assets/js/smart-manager.js:558
    38003775msgctxt "search type"
    38013776msgid "Advanced"
    38023777msgstr ""
    38033778
    3804 #: assets/js/smart-manager.js:556
     3779#: assets/js/smart-manager.js:558
    38053780msgctxt "search type"
    38063781msgid "Simple"
    38073782msgstr ""
    38083783
    3809 #: assets/js/smart-manager.js:558
     3784#: assets/js/smart-manager.js:560
    38103785msgctxt "placeholder"
    38113786msgid "Type to search..."
    38123787msgstr ""
    38133788
    3814 #: assets/js/smart-manager.js:559
     3789#: assets/js/smart-manager.js:561
    38153790msgctxt "tooltip"
    38163791msgid "Click to add/edit condition"
     
    38183793
    38193794#. translators: %1$d: Advanced search rule count %2$s: search conditions
    3820 #: assets/js/smart-manager.js:562
    3821 #: assets/js/smart-manager.js:870
     3795#: assets/js/smart-manager.js:564
     3796#: assets/js/smart-manager.js:872
    38223797msgctxt "search conditions"
    38233798msgid "%1$d condition%2$s"
    38243799msgstr ""
    38253800
    3826 #: assets/js/smart-manager.js:562
    3827 #: assets/js/smart-manager.js:870
     3801#: assets/js/smart-manager.js:564
     3802#: assets/js/smart-manager.js:872
    38283803msgctxt "search conditions"
    38293804msgid "s"
    38303805msgstr ""
    38313806
    3832 #: assets/js/smart-manager.js:580
     3807#: assets/js/smart-manager.js:582
    38333808msgctxt "dashboard option groups"
    38343809msgid "Common post types"
    38353810msgstr ""
    38363811
    3837 #: assets/js/smart-manager.js:590
     3812#: assets/js/smart-manager.js:592
    38383813msgctxt "dashboard option groups"
    38393814msgid "Common taxonomies"
    38403815msgstr ""
    38413816
    3842 #: assets/js/smart-manager.js:600
     3817#: assets/js/smart-manager.js:602
    38433818msgctxt "dashboard option groups"
    38443819msgid "Recently used views"
    38453820msgstr ""
    38463821
    3847 #: assets/js/smart-manager.js:610
     3822#: assets/js/smart-manager.js:612
    38483823msgctxt "dashboard option groups"
    38493824msgid "Other post types"
    38503825msgstr ""
    38513826
    3852 #: assets/js/smart-manager.js:620
     3827#: assets/js/smart-manager.js:622
    38533828msgctxt "dashboard option groups"
    38543829msgid "Other taxonomies"
    38553830msgstr ""
    38563831
    3857 #: assets/js/smart-manager.js:636
     3832#: assets/js/smart-manager.js:638
    38583833msgctxt "dashboard option groups"
    38593834msgid "Other saved views"
    38603835msgstr ""
    38613836
    3862 #: assets/js/smart-manager.js:646
     3837#: assets/js/smart-manager.js:648
    38633838msgctxt "saved searches option groups"
    38643839msgid "Saved searches"
    38653840msgstr ""
    38663841
    3867 #: assets/js/smart-manager.js:657
     3842#: assets/js/smart-manager.js:659
    38683843msgctxt "button for creating new bulk edit"
    38693844msgid "New"
    38703845msgstr ""
    38713846
    3872 #: assets/js/smart-manager.js:660
     3847#: assets/js/smart-manager.js:662
    38733848msgctxt "manage button for scheduled bulk edit actions"
    38743849msgid "Manage Scheduled edits"
    38753850msgstr ""
    38763851
    3877 #: assets/js/smart-manager.js:668
     3852#: assets/js/smart-manager.js:670
    38783853msgctxt "dashboard option groups"
    38793854msgid "All post types"
    38803855msgstr ""
    38813856
    3882 #: assets/js/smart-manager.js:678
     3857#: assets/js/smart-manager.js:680
    38833858msgctxt "dashboard option groups"
    38843859msgid "All taxonomies"
    38853860msgstr ""
    38863861
    3887 #: assets/js/smart-manager.js:694
     3862#: assets/js/smart-manager.js:696
    38883863msgctxt "AI icon label"
    38893864msgid "AI-powered search"
     
    38913866
    38923867#. translators: %s: search type
    3893 #: assets/js/smart-manager.js:699
     3868#: assets/js/smart-manager.js:701
    38943869msgctxt "tooltip"
    38953870msgid "Switch to %s"
     
    38973872
    38983873#. translators: %s: search type
    3899 #: assets/js/smart-manager.js:701
     3874#: assets/js/smart-manager.js:703
    39003875msgctxt "search type"
    39013876msgid "%s Search"
    39023877msgstr ""
    39033878
    3904 #: assets/js/smart-manager.js:722
     3879#: assets/js/smart-manager.js:724
    39053880msgctxt "tooltip"
    39063881msgid "Docs"
    39073882msgstr ""
    39083883
    3909 #: assets/js/smart-manager.js:734
     3884#: assets/js/smart-manager.js:736
    39103885msgctxt "tooltip"
    39113886msgid "General settings"
    39123887msgstr ""
    39133888
    3914 #: assets/js/smart-manager.js:734
     3889#: assets/js/smart-manager.js:736
    39153890msgctxt "settings button"
    39163891msgid "General settings"
    39173892msgstr ""
    39183893
    3919 #: assets/js/smart-manager.js:735
     3894#: assets/js/smart-manager.js:737
    39203895msgctxt "tooltip"
    39213896msgid "Access Privilege settings"
    39223897msgstr ""
    39233898
    3924 #: assets/js/smart-manager.js:735
     3899#: assets/js/smart-manager.js:737
    39253900msgctxt "access privilege settings button"
    39263901msgid "Access Privilege Settings"
    39273902msgstr ""
    39283903
    3929 #: assets/js/smart-manager.js:742
     3904#: assets/js/smart-manager.js:744
    39303905msgctxt "tooltip"
    39313906msgid "Bulk Edit"
    39323907msgstr ""
    39333908
    3934 #: assets/js/smart-manager.js:746
     3909#: assets/js/smart-manager.js:748
    39353910msgctxt "button"
    39363911msgid "Bulk Edit"
    39373912msgstr ""
    39383913
    3939 #: assets/js/smart-manager.js:750
     3914#: assets/js/smart-manager.js:752
    39403915msgctxt "tooltip"
    39413916msgid "Save"
    39423917msgstr ""
    39433918
    3944 #: assets/js/smart-manager.js:754
     3919#: assets/js/smart-manager.js:756
    39453920msgctxt "button"
    39463921msgid "Save"
    39473922msgstr ""
    39483923
    3949 #: assets/js/smart-manager.js:756
     3924#: assets/js/smart-manager.js:758
    39503925msgctxt "tooltip"
    39513926msgid "Add Row"
    39523927msgstr ""
    39533928
    3954 #: assets/js/smart-manager.js:760
     3929#: assets/js/smart-manager.js:762
    39553930msgctxt "button"
    39563931msgid "Add Row"
    39573932msgstr ""
    39583933
    3959 #: assets/js/smart-manager.js:766
     3934#: assets/js/smart-manager.js:768
    39603935msgctxt "tooltip"
    39613936msgid "Duplicate"
    39623937msgstr ""
    39633938
    3964 #: assets/js/smart-manager.js:766
     3939#: assets/js/smart-manager.js:768
    39653940msgctxt "button"
    39663941msgid "Duplicate"
    39673942msgstr ""
    39683943
    3969 #: assets/js/smart-manager.js:768
     3944#: assets/js/smart-manager.js:770
    39703945msgctxt "duplicate button"
    39713946msgid "Selected Records"
    39723947msgstr ""
    39733948
    3974 #: assets/js/smart-manager.js:769
    3975 #: assets/js/smart-manager.js:953
     3949#: assets/js/smart-manager.js:771
     3950#: assets/js/smart-manager.js:959
    39763951msgctxt "duplicate button"
    39773952msgid "Entire Store"
    39783953msgstr ""
    39793954
    3980 #: assets/js/smart-manager.js:776
     3955#: assets/js/smart-manager.js:778
    39813956#: pro/assets/js/smart-manager.js:1070
    39823957msgctxt "tooltip"
     
    39843959msgstr ""
    39853960
    3986 #: assets/js/smart-manager.js:776
     3961#: assets/js/smart-manager.js:778
    39873962#: pro/assets/js/smart-manager.js:1070
    39883963msgctxt "button"
     
    39903965msgstr ""
    39913966
    3992 #: assets/js/smart-manager.js:778
     3967#: assets/js/smart-manager.js:780
    39933968msgctxt "delete button"
    39943969msgid "Move to Trash"
    39953970msgstr ""
    39963971
    3997 #: assets/js/smart-manager.js:779
     3972#: assets/js/smart-manager.js:781
    39983973msgctxt "delete button"
    39993974msgid "Delete Permanently"
    40003975msgstr ""
    40013976
    4002 #: assets/js/smart-manager.js:788
     3977#: assets/js/smart-manager.js:790
    40033978msgctxt "tooltip"
    40043979msgid "Custom Views"
    40053980msgstr ""
    40063981
    4007 #: assets/js/smart-manager.js:788
     3982#: assets/js/smart-manager.js:790
    40083983msgctxt "button"
    40093984msgid "Custom Views"
    40103985msgstr ""
    40113986
    4012 #: assets/js/smart-manager.js:790
     3987#: assets/js/smart-manager.js:792
    40133988msgctxt "custom view button"
    40143989msgid "Create"
    40153990msgstr ""
    40163991
    4017 #: assets/js/smart-manager.js:791
     3992#: assets/js/smart-manager.js:793
    40183993msgctxt "custom view button"
    40193994msgid "Update"
    40203995msgstr ""
    40213996
    4022 #: assets/js/smart-manager.js:792
     3997#: assets/js/smart-manager.js:794
    40233998msgctxt "custom view button"
    40243999msgid "Delete"
    40254000msgstr ""
    40264001
    4027 #: assets/js/smart-manager.js:799
     4002#: assets/js/smart-manager.js:801
    40284003msgctxt "button"
    40294004msgid "Export CSV"
    40304005msgstr ""
    40314006
    4032 #: assets/js/smart-manager.js:805
     4007#: assets/js/smart-manager.js:807
    40334008msgctxt "tooltip"
    40344009msgid "Print Invoice"
    40354010msgstr ""
    40364011
    4037 #: assets/js/smart-manager.js:809
     4012#: assets/js/smart-manager.js:811
    40384013msgctxt "button"
    40394014msgid "Print Invoice"
    40404015msgstr ""
    40414016
    4042 #: assets/js/smart-manager.js:813
     4017#: assets/js/smart-manager.js:815
    40434018msgctxt "tooltip"
    40444019msgid "Show / Hide Columns"
    40454020msgstr ""
    40464021
    4047 #: assets/js/smart-manager.js:817
     4022#: assets/js/smart-manager.js:819
    40484023msgctxt "button"
    40494024msgid "Columns"
    40504025msgstr ""
    40514026
    4052 #: assets/js/smart-manager.js:819
     4027#: assets/js/smart-manager.js:821
    40534028msgctxt "checkbox for displaying current dashboard tasks"
    40544029msgid "Show Tasks"
    40554030msgstr ""
    40564031
    4057 #: assets/js/smart-manager.js:827
     4032#: assets/js/smart-manager.js:829
    40584033msgctxt "tooltip"
    40594034msgid "Load more records"
    40604035msgstr ""
    40614036
    4062 #: assets/js/smart-manager.js:950
     4037#: assets/js/smart-manager.js:956
    40634038msgctxt "export button"
    40644039msgid "All Items In Search Results"
    40654040msgstr ""
    40664041
    4067 #: assets/js/smart-manager.js:950
    4068 #: assets/js/smart-manager.js:3416
     4042#: assets/js/smart-manager.js:956
     4043#: assets/js/smart-manager.js:3431
    40694044msgctxt "export button"
    40704045msgid "Entire Store"
    40714046msgstr ""
    40724047
    4073 #: assets/js/smart-manager.js:953
     4048#: assets/js/smart-manager.js:959
    40744049msgctxt "duplicate button"
    40754050msgid "All Items In Search Results"
     
    40774052
    40784053#. translators: %s: dashboard display name
    4079 #: assets/js/smart-manager.js:1018
    4080 #: assets/js/smart-manager.js:1049
     4054#: assets/js/smart-manager.js:1024
     4055#: assets/js/smart-manager.js:1055
    40814056msgctxt "bottom bar status"
    40824057msgid "No %s Found"
     
    40844059
    40854060#. translators: %1$d: number of display records %2$s: dashboard display name
    4086 #: assets/js/smart-manager.js:1027
     4061#: assets/js/smart-manager.js:1033
    40874062msgctxt "bottom bar status"
    40884063msgid "%1$d %2$s loaded"
     
    40904065
    40914066#. translators: %1$d: number of total records %2$d: number of display records %3$s: dashboard display name
    4092 #: assets/js/smart-manager.js:1047
     4067#: assets/js/smart-manager.js:1053
    40934068msgctxt "bottom bar status"
    40944069msgid "%1$d of %2$d %3$s loaded"
    40954070msgstr ""
    40964071
    4097 #: assets/js/smart-manager.js:1135
     4072#: assets/js/smart-manager.js:1142
    40984073msgctxt "button"
    40994074msgid "OK"
    41004075msgstr ""
    41014076
    4102 #: assets/js/smart-manager.js:1312
     4077#: assets/js/smart-manager.js:1319
    41034078msgctxt "tooltip"
    41044079msgid "Remove gallery image"
    41054080msgstr ""
    41064081
    4107 #: assets/js/smart-manager.js:1769
    4108 #: assets/js/smart-manager.js:2269
    4109 #: assets/js/smart-manager.js:4159
     4082#: assets/js/smart-manager.js:1782
     4083#: assets/js/smart-manager.js:2282
     4084#: assets/js/smart-manager.js:4184
    41104085msgctxt "process name"
    41114086msgid "Inline Edit"
    41124087msgstr ""
    41134088
    4114 #: assets/js/smart-manager.js:2170
     4089#: assets/js/smart-manager.js:2183
    41154090msgctxt "search switch notice for custom views"
    41164091msgid "Cannot switch search when using Custom Views"
    41174092msgstr ""
    41184093
    4119 #: assets/js/smart-manager.js:2214
     4094#: assets/js/smart-manager.js:2227
    41204095msgctxt "simple search notice for custom views"
    41214096msgid "Search string cannot be edited when using Custom Views"
    41224097msgstr ""
    41234098
    4124 #: assets/js/smart-manager.js:2232
     4099#: assets/js/smart-manager.js:2245
    41254100msgctxt "notification"
    41264101msgid "Please edit a record"
    41274102msgstr ""
    41284103
    4129 #: assets/js/smart-manager.js:2240
     4104#: assets/js/smart-manager.js:2253
    41304105msgctxt "notification"
    41314106msgid "Please enter user email"
    41324107msgstr ""
    41334108
    4134 #: assets/js/smart-manager.js:2240
     4109#: assets/js/smart-manager.js:2253
    41354110msgctxt "notification"
    41364111msgid "Enable"
    41374112msgstr ""
    41384113
    4139 #: assets/js/smart-manager.js:2240
     4114#: assets/js/smart-manager.js:2253
    41404115msgctxt "notification"
    41414116msgid "User Email"
    41424117msgstr ""
    41434118
    4144 #: assets/js/smart-manager.js:2240
     4119#: assets/js/smart-manager.js:2253
    41454120msgctxt "notification"
    41464121msgid "column if not enabled using"
    41474122msgstr ""
    41484123
    4149 #: assets/js/smart-manager.js:2240
     4124#: assets/js/smart-manager.js:2253
    41504125msgctxt "notification"
    41514126msgid "column show/hide functionality"
    41524127msgstr ""
    41534128
    4154 #: assets/js/smart-manager.js:2291
     4129#: assets/js/smart-manager.js:2304
    41554130msgctxt "notification"
    41564131msgid "To permanently delete records"
    41574132msgstr ""
    41584133
    4159 #: assets/js/smart-manager.js:2291
    4160 #: assets/js/smart-manager.js:2311
     4134#: assets/js/smart-manager.js:2304
     4135#: assets/js/smart-manager.js:2324
    41614136msgctxt "notification"
    41624137msgid "upgrade to Pro"
    41634138msgstr ""
    41644139
    4165 #: assets/js/smart-manager.js:2305
    4166 #: assets/js/smart-manager.js:2551
     4140#: assets/js/smart-manager.js:2318
     4141#: assets/js/smart-manager.js:2564
    41674142msgctxt "notification"
    41684143msgid "Please select a record"
    41694144msgstr ""
    41704145
    4171 #: assets/js/smart-manager.js:2311
     4146#: assets/js/smart-manager.js:2324
    41724147msgctxt "notification"
    41734148msgid "To delete more than"
    41744149msgstr ""
    41754150
    4176 #: assets/js/smart-manager.js:2311
     4151#: assets/js/smart-manager.js:2324
    41774152msgctxt "notification"
    41784153msgid "records at a time"
    41794154msgstr ""
    41804155
    4181 #: assets/js/smart-manager.js:2321
     4156#: assets/js/smart-manager.js:2334
    41824157msgctxt "modal content"
    41834158msgid "permanently delete"
    41844159msgstr ""
    41854160
    4186 #: assets/js/smart-manager.js:2321
     4161#: assets/js/smart-manager.js:2334
    41874162msgctxt "modal content"
    41884163msgid "trash"
     
    41904165
    41914166#. translators: %s: action name
    4192 #: assets/js/smart-manager.js:2329
     4167#: assets/js/smart-manager.js:2342
    41934168msgctxt "modal content"
    41944169msgid "Are you sure you want to %s"
    41954170msgstr ""
    41964171
    4197 #: assets/js/smart-manager.js:2329
     4172#: assets/js/smart-manager.js:2342
    41984173msgctxt "modal content"
    41994174msgid "the selected"
    42004175msgstr ""
    42014176
    4202 #: assets/js/smart-manager.js:2329
     4177#: assets/js/smart-manager.js:2342
    42034178msgctxt "modal content"
    42044179msgid "records"
    42054180msgstr ""
    42064181
    4207 #: assets/js/smart-manager.js:2329
     4182#: assets/js/smart-manager.js:2342
    42084183msgctxt "modal content"
    42094184msgid "record"
     
    42114186
    42124187#. translators: %1$s: action name %2$s: dashboard display name
    4213 #: assets/js/smart-manager.js:2332
     4188#: assets/js/smart-manager.js:2345
    42144189msgctxt "modal content"
    42154190msgid "Are you sure you want to %1$s the %2$s?"
    42164191msgstr ""
    42174192
    4218 #: assets/js/smart-manager.js:2332
     4193#: assets/js/smart-manager.js:2345
    42194194msgctxt "modal content"
    42204195msgid "all"
     
    42224197
    42234198#. translators: %s: action name
    4224 #: assets/js/smart-manager.js:2337
     4199#: assets/js/smart-manager.js:2350
    42254200msgctxt "modal content"
    42264201msgid "Are you sure you want to %s?"
    42274202msgstr ""
    42284203
    4229 #: assets/js/smart-manager.js:2337
     4204#: assets/js/smart-manager.js:2350
    42304205msgctxt "modal content"
    42314206msgid "all items in search results"
    42324207msgstr ""
    42334208
    4234 #: assets/js/smart-manager.js:2358
     4209#: assets/js/smart-manager.js:2371
    42354210msgctxt "modal content"
    42364211msgid "Note: Looking to"
    42374212msgstr ""
    42384213
    4239 #: assets/js/smart-manager.js:2358
     4214#: assets/js/smart-manager.js:2371
    42404215msgctxt "modal content"
    42414216msgid "delete all"
    42424217msgstr ""
    42434218
    4244 #: assets/js/smart-manager.js:2358
     4219#: assets/js/smart-manager.js:2371
    42454220msgctxt "modal content"
    42464221msgid "the records?"
    42474222msgstr ""
    42484223
    4249 #: assets/js/smart-manager.js:2358
     4224#: assets/js/smart-manager.js:2371
    42504225msgctxt "modal content"
    42514226msgid "Upgrade to Pro"
    42524227msgstr ""
    42534228
    4254 #: assets/js/smart-manager.js:2440
     4229#: assets/js/smart-manager.js:2453
    42554230msgctxt "notification"
    42564231msgid "For editing more records upgrade to Pro"
     
    42584233
    42594234#. translators: %s: dashboard display name
    4260 #: assets/js/smart-manager.js:2451
     4235#: assets/js/smart-manager.js:2464
    42614236msgctxt "modal title"
    42624237msgid "Add %s(s)"
     
    42644239
    42654240#. translators: %s: dashboard display name
    4266 #: assets/js/smart-manager.js:2454
     4241#: assets/js/smart-manager.js:2467
    42674242msgctxt "modal content"
    42684243msgid "Enter how many new %s(s) to create!"
    42694244msgstr ""
    42704245
    4271 #: assets/js/smart-manager.js:2457
     4246#: assets/js/smart-manager.js:2470
    42724247#: pro/assets/js/smart-manager.js:1995
    42734248msgctxt "button"
     
    42764251
    42774252#. translators: %s: pricing page link
    4278 #: assets/js/smart-manager.js:2501
    4279 #: assets/js/smart-manager.js:2529
     4253#: assets/js/smart-manager.js:2514
     4254#: assets/js/smart-manager.js:2542
    42804255msgctxt "notification"
    42814256msgid "Custom Views available (Only in %s)"
    42824257msgstr ""
    42834258
    4284 #: assets/js/smart-manager.js:2515
     4259#: assets/js/smart-manager.js:2528
    42854260msgctxt "modal content"
    42864261msgid "This will"
    42874262msgstr ""
    42884263
    4289 #: assets/js/smart-manager.js:2515
     4264#: assets/js/smart-manager.js:2528
    42904265msgctxt "modal content"
    42914266msgid "the current view. Are you sure you want to continue?"
    42924267msgstr ""
    42934268
    4294 #: assets/js/smart-manager.js:2520
     4269#: assets/js/smart-manager.js:2533
    42954270msgctxt "notification"
    42964271msgid "View deleted successfully!"
    42974272msgstr ""
    42984273
    4299 #: assets/js/smart-manager.js:2573
     4274#: assets/js/smart-manager.js:2586
    43004275msgctxt "notification"
    43014276msgid "Comming soon"
    43024277msgstr ""
    43034278
    4304 #: assets/js/smart-manager.js:2578
     4279#: assets/js/smart-manager.js:2591
    43054280msgctxt "modal content"
    43064281msgid "This will duplicate only the records in posts, postmeta and related taxonomies."
    43074282msgstr ""
    43084283
    4309 #: assets/js/smart-manager.js:2579
     4284#: assets/js/smart-manager.js:2592
    43104285msgctxt "modal content"
    43114286msgid "Are you sure you want to duplicate the "
    43124287msgstr ""
    43134288
    4314 #: assets/js/smart-manager.js:2599
    4315 #: assets/js/smart-manager.js:2607
     4289#: assets/js/smart-manager.js:2612
     4290#: assets/js/smart-manager.js:2620
    43164291msgctxt "modal title"
    43174292msgid "Note:"
    43184293msgstr ""
    43194294
    4320 #: assets/js/smart-manager.js:2601
     4295#: assets/js/smart-manager.js:2614
    43214296msgctxt "modal content"
    43224297msgid "Individual variation duplication is not currently supported. Please consider submitting a"
    43234298msgstr ""
    43244299
    4325 #: assets/js/smart-manager.js:2601
    4326 #: assets/js/smart-manager.js:2607
     4300#: assets/js/smart-manager.js:2614
     4301#: assets/js/smart-manager.js:2620
    43274302msgctxt "modal content"
    43284303msgid "feature request"
    43294304msgstr ""
    43304305
    4331 #: assets/js/smart-manager.js:2601
     4306#: assets/js/smart-manager.js:2614
    43324307msgctxt "modal content"
    43334308msgid "to help us prioritize this enhancement."
    43344309msgstr ""
    43354310
    4336 #: assets/js/smart-manager.js:2607
     4311#: assets/js/smart-manager.js:2620
    43374312msgctxt "modal content"
    43384313msgid "Product duplication applies to the parent product and all its variations collectively. Individual variations cannot be duplicated separately at this time. If this feature is important to you, please consider submitting a"
     
    43404315
    43414316#. translators: %s: Bulk Edit doc link
    4342 #: assets/js/smart-manager.js:2642
     4317#: assets/js/smart-manager.js:2655
    43434318msgctxt "modal description"
    43444319msgid "You can change/update multiple fields of the entire store OR for selected items using the Bulk Edit feature. Refer to this doc on %s or watch the video below."
    43454320msgstr ""
    43464321
    4347 #: assets/js/smart-manager.js:2642
     4322#: assets/js/smart-manager.js:2655
    43484323msgctxt "modal description"
    43494324msgid "how to do bulk edit"
    43504325msgstr ""
    43514326
    4352 #: assets/js/smart-manager.js:2643
     4327#: assets/js/smart-manager.js:2656
    43534328msgctxt "modal title"
    43544329msgid "Biggest Time Saver"
     
    43564331
    43574332#. translators: %s: pricing page link
    4358 #: assets/js/smart-manager.js:2645
     4333#: assets/js/smart-manager.js:2658
    43594334msgctxt "modal title"
    43604335msgid "(Only in %s)"
    43614336msgstr ""
    43624337
    4363 #: assets/js/smart-manager.js:2645
     4338#: assets/js/smart-manager.js:2658
    43644339msgctxt "modal title"
    43654340msgid "Pro"
    43664341msgstr ""
    43674342
    4368 #: assets/js/smart-manager.js:2647
     4343#: assets/js/smart-manager.js:2660
    43694344msgctxt "modal title"
    43704345msgid "Export CSV of "
    43714346msgstr ""
    43724347
    4373 #: assets/js/smart-manager.js:2648
     4348#: assets/js/smart-manager.js:2661
    43744349msgctxt "modal description"
    43754350msgid "You can export selected/all records OR filtered records (using Simple Search or Advanced Search) by simply clicking on the Export CSV button at the bottom right of the grid."
    43764351msgstr ""
    43774352
    4378 #: assets/js/smart-manager.js:2662
     4353#: assets/js/smart-manager.js:2675
    43794354msgctxt "button"
    43804355msgid "Upgrade Now"
     
    43824357
    43834358#. translators: %s: pricing page link
    4384 #: assets/js/smart-manager.js:2675
     4359#: assets/js/smart-manager.js:2688
    43854360msgctxt "notification"
    43864361msgid "Duplicate Records (Only in %s)"
    43874362msgstr ""
    43884363
    4389 #: assets/js/smart-manager.js:2867
     4364#: assets/js/smart-manager.js:2880
    43904365msgctxt "columns settings description"
    43914366msgid "Drag the enabled columns to the right to disable them and vise-versa. Drag the columns top or bottom to rearrange their position in the grid."
     
    43934368
    43944369#. translators: %s: reset columns link
    4395 #: assets/js/smart-manager.js:2871
     4370#: assets/js/smart-manager.js:2884
    43964371msgctxt "columns settings description"
    43974372msgid "Click %s to reset the Columns order to default."
    43984373msgstr ""
    43994374
    4400 #: assets/js/smart-manager.js:2871
     4375#: assets/js/smart-manager.js:2884
    44014376msgctxt "columns settings description"
    44024377msgid "here"
    44034378msgstr ""
    44044379
    4405 #: assets/js/smart-manager.js:2875
     4380#: assets/js/smart-manager.js:2888
    44064381msgctxt "columns settings searchbox heading"
    44074382msgid "Enabled"
    44084383msgstr ""
    44094384
    4410 #: assets/js/smart-manager.js:2876
     4385#: assets/js/smart-manager.js:2889
    44114386msgctxt "placeholder"
    44124387msgid "Search For Enabled Columns..."
    44134388msgstr ""
    44144389
    4415 #: assets/js/smart-manager.js:2882
     4390#: assets/js/smart-manager.js:2895
    44164391msgctxt "columns settings searchbox heading"
    44174392msgid "Disabled"
    44184393msgstr ""
    44194394
    4420 #: assets/js/smart-manager.js:2883
     4395#: assets/js/smart-manager.js:2896
    44214396msgctxt "placeholder"
    44224397msgid "Search For Disabled Columns..."
    44234398msgstr ""
    44244399
    4425 #: assets/js/smart-manager.js:3213
     4400#: assets/js/smart-manager.js:3228
    44264401msgctxt "notification"
    44274402msgid "You have entered incorrect data in the highlighted cells."
    44284403msgstr ""
    44294404
    4430 #: assets/js/smart-manager.js:3226
     4405#: assets/js/smart-manager.js:3241
    44314406msgctxt "modal title"
    44324407msgid "Note"
    44334408msgstr ""
    44344409
    4435 #: assets/js/smart-manager.js:3239
     4410#: assets/js/smart-manager.js:3254
    44364411#: common-core/assets/js/core-base.js:328
    44374412msgctxt "modal title"
     
    44394414msgstr ""
    44404415
    4441 #: assets/js/smart-manager.js:3240
     4416#: assets/js/smart-manager.js:3255
    44424417#: common-core/assets/js/core-base.js:329
    44434418msgctxt "modal content"
     
    44454420msgstr ""
    44464421
    4447 #: assets/js/smart-manager.js:3245
    4448 #: assets/js/smart-manager.js:4381
     4422#: assets/js/smart-manager.js:3260
     4423#: assets/js/smart-manager.js:4406
    44494424#: common-core/assets/js/core-base.js:333
    44504425msgctxt "button"
     
    44524427msgstr ""
    44534428
    4454 #: assets/js/smart-manager.js:3258
    4455 #: assets/js/smart-manager.js:4398
     4429#: assets/js/smart-manager.js:3273
     4430#: assets/js/smart-manager.js:4423
    44564431#: common-core/assets/js/core-base.js:346
    44574432msgctxt "button"
     
    44594434msgstr ""
    44604435
    4461 #: assets/js/smart-manager.js:3397
     4436#: assets/js/smart-manager.js:3412
    44624437msgctxt "notification"
    44634438msgid "Settings saved successfully!"
    44644439msgstr ""
    44654440
    4466 #: assets/js/smart-manager.js:3415
     4441#: assets/js/smart-manager.js:3430
    44674442msgctxt "export button"
    44684443msgid "Selected Records"
    44694444msgstr ""
    44704445
    4471 #: assets/js/smart-manager.js:3418
     4446#: assets/js/smart-manager.js:3433
    44724447msgctxt "schedule export button"
    44734448msgid "Schedule Export"
    44744449msgstr ""
    44754450
    4476 #: assets/js/smart-manager.js:3419
     4451#: assets/js/smart-manager.js:3434
    44774452msgctxt "manage scheduled exports button"
    44784453msgid "Manage Scheduled Exports"
    44794454msgstr ""
    44804455
    4481 #: assets/js/smart-manager.js:3549
     4456#: assets/js/smart-manager.js:3564
    44824457msgctxt "undo all button"
    44834458msgid "Discard Changes"
    44844459msgstr ""
    44854460
    4486 #: assets/js/smart-manager.js:3550
     4461#: assets/js/smart-manager.js:3565
    44874462msgctxt "save changes button"
    44884463msgid "Save Changes"
    44894464msgstr ""
    44904465
    4491 #: assets/js/smart-manager.js:4085
     4466#: assets/js/smart-manager.js:4110
    44924467msgctxt "bottom bar display name for tasks"
    44934468msgid "Tasks"
    44944469msgstr ""
    44954470
    4496 #: assets/js/smart-manager.js:4094
     4471#: assets/js/smart-manager.js:4119
    44974472msgctxt "gallery modal title"
    44984473msgid "Gallery Images"
    44994474msgstr ""
    45004475
    4501 #: assets/js/smart-manager.js:4098
     4476#: assets/js/smart-manager.js:4123
    45024477msgctxt "button"
    45034478msgid "Add"
    45044479msgstr ""
    45054480
    4506 #: assets/js/smart-manager.js:4104
     4481#: assets/js/smart-manager.js:4129
    45074482msgctxt "button"
    45084483msgid "Add images to product gallery"
    45094484msgstr ""
    45104485
    4511 #: assets/js/smart-manager.js:4105
     4486#: assets/js/smart-manager.js:4130
    45124487msgctxt "button"
    45134488msgid "Add to gallery"
    45144489msgstr ""
    45154490
    4516 #: assets/js/smart-manager.js:4209
     4491#: assets/js/smart-manager.js:4234
    45174492msgctxt "tooltip"
    45184493msgid "(Click to sort)"
    45194494msgstr ""
    45204495
    4521 #: assets/js/smart-manager.js:4313
     4496#: assets/js/smart-manager.js:4338
    45224497msgctxt "modal content"
    45234498msgid "Are you sure you want to export the "
    45244499msgstr ""
    45254500
    4526 #: assets/js/smart-manager.js:4378
     4501#: assets/js/smart-manager.js:4403
    45274502msgctxt "modal content"
    45284503msgid "You have unsaved changes. Are you sure you want to continue?"
  • smart-manager-for-wp-e-commerce/trunk/readme.txt

    r3385169 r3390175  
    88Tested up to: 6.8.3
    99Requires PHP: 5.6
    10 Stable tag: 8.73.0
     10Stable tag: 8.74.0
    1111License: GPLv2
    1212
     
    310310== Changelog ==
    311311
     312= 8.74.0 (05.11.2025) =
     313* New: WooCommerce 10.3.4 compatible
     314* Fix: WooCommerce Product attributes list loading incorrectly in Advanced Search panel
     315* Fix: Newly created WooCommerce Product attributes missing in Advanced Search panel (Pro)
     316* Fix: UI/UX issue causing the footer text to appear in the middle of the dashboard during background processes (Pro)
     317* Update: POT file
     318
    312319= 8.73.0 (27.10.2025) =
    313320* New: WooCommerce 10.3.3 compatible
     
    705712== Upgrade Notice ==
    706713
     714= 8.74.0 =
     715WooCommerce 10.3.4 compatible, Fixes related to WooCommerce Product attributes list loading incorrectly in Advanced Search panel, Newly created WooCommerce Product attributes missing in Advanced Search panel (Pro), UI/UX issue causing the footer text to appear in the middle of the dashboard during background processes (Pro). Recommended upgrade.
     716
    707717= 8.73.0 =
    708718WooCommerce 10.3.3 compatible, Advanced Search support for post and term IDs in all post types and taxonomies Task Dashboards (Pro), Link to access WooCommerce product edit history from the Product Edit page or the Products admin list view (Pro), Fixes related to Prevent PHP fatal error when activating Smart Manager while WooCommerce plugin is inactive, Sorting not resetting to its default state, Database warning displayed when viewing Task Dashboards (Pro), Advanced Search not applying multiple "OR" conditions correctly (Pro). Recommended upgrade.
  • smart-manager-for-wp-e-commerce/trunk/smart-manager.php

    r3385169 r3390175  
    44* Plugin URI: https://www.storeapps.org/product/smart-manager/
    55* Description: <strong>Lite Version Installed</strong>. The #1 tool for WooCommerce inventory management, stock management, bulk edit, export, delete, duplicate...from one place using an Excel-like sheet editor.
    6 * Version: 8.73.0
     6* Version: 8.74.0
    77* Author: StoreApps
    88* Author URI: https://www.storeapps.org/
     
    1313* Requires PHP: 5.6+
    1414* WC requires at least: 3.0.0
    15 * WC tested up to: 10.3.3
     15* WC tested up to: 10.3.4
    1616* Copyright (c) 2010 - 2025 StoreApps. All rights reserved.
    1717* License: GNU General Public License v2.0
Note: See TracChangeset for help on using the changeset viewer.