Changeset 3390175
- Timestamp:
- 11/05/2025 06:52:48 AM (3 months ago)
- Location:
- smart-manager-for-wp-e-commerce/trunk
- Files:
-
- 2 added
- 14 edited
-
assets/js/admin.js (modified) (1 diff)
-
assets/js/smart-manager-product.js (modified) (2 diffs)
-
assets/js/smart-manager.js (modified) (8 diffs)
-
class-smart-manager.php (modified) (10 diffs)
-
classes/class-smart-manager-base.php (modified) (4 diffs)
-
classes/class-smart-manager-install.php (modified) (2 diffs)
-
classes/class-smart-manager-uninstall.php (added)
-
common-core/assets/css/styles.css (modified) (1 diff)
-
common-core/classes/class-sa-manager-base.php (modified) (2 diffs)
-
common-core/classes/class-sa-manager-controller.php (modified) (1 diff)
-
common-core/classes/class-sa-manager-feedback.php (added)
-
common-core/classes/class-sa-manager-product.php (modified) (1 diff)
-
common-core/classes/class-sa-manager-utils.php (modified) (1 diff)
-
languages/smart-manager-for-wp-e-commerce.pot (modified) (56 diffs)
-
readme.txt (modified) (3 diffs)
-
smart-manager.php (modified) (2 diffs)
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> ').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> ').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> '.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> ').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> ').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> '.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 21 21 } 22 22 23 SmartManager Product.prototype.setProductTypeValuesFromColModel = function() {23 SmartManager.prototype.setProductTypeValuesFromColModel = function() { 24 24 if (!window.smart_manager.currentColModel){ 25 25 return; … … 32 32 } 33 33 34 SmartManager Product.prototype.getSelectedSubscriptionProductIds = function() {34 SmartManager.prototype.getSelectedSubscriptionProductIds = function() { 35 35 window.smart_manager.setProductTypeValuesFromColModel(); 36 36 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 236 236 this.pluginSlug = 'sm'; 237 237 this.proConstName = 'SmartManagerPro'; 238 this.support_link = sm_beta_params?.support_link || ''; 239 this.review_link = sm_beta_params?.review_link || ''; 238 240 this.pluginParams = sm_beta_params; 239 241 //Function to set all the states on unload … … 891 893 if (res && res.hasOwnProperty('meta')) { 892 894 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 } 893 899 } 894 900 … … 1064 1070 table_model: (window.smart_manager.currentDashboardModel.hasOwnProperty('tables')) ? window.smart_manager.currentDashboardModel.tables : '', 1065 1071 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"), 1067 1074 }; 1068 1075 … … 1376 1383 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; 1377 1384 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 } 1378 1391 if (galleryImages.hasOwnProperty('rowNo')) { 1379 1392 window.smart_manager.getData({ refreshPage: (Math.ceil((parseInt(galleryImages.rowNo) / window.smart_manager.limit))) }); … … 3162 3175 let title = 'success' 3163 3176 if (window.smart_manager.isJSON(response)) { 3164 // title = 'note'3165 3177 response = JSON.parse(response); 3166 3178 msg = response.msg; 3179 if(response?.show_feedback){ 3180 window[pluginKey].showFeedbackModal() 3181 } 3167 3182 } else { 3168 3183 msg = response; … … 3556 3571 } 3557 3572 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()); 3558 3578 } 3559 3579 let instance = new SmartManager(); … … 4063 4083 window.smart_manager.sendRequest(params, function(response){ 4064 4084 if('failed' !== response){ 4085 if(window.smart_manager.isJSON(response)){ 4086 response = JSON.parse(response); 4087 } 4065 4088 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))){ 4068 4090 msg = response.msg; 4069 4091 if('undefined' !== typeof(response.sm_inline_update_count)){ … … 4074 4096 }else{ 4075 4097 msg = response; 4098 } 4099 if(response?.show_feedback){ 4100 window[pluginKey].showFeedbackModal() 4076 4101 } 4077 4102 } -
smart-manager-for-wp-e-commerce/trunk/class-smart-manager.php
r3385169 r3390175 192 192 } 193 193 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 } 194 202 if ( ! defined( 'SMPRO' ) ) { 195 203 if (file_exists ( (dirname ( SM_PLUGIN_FILE )) . '/pro/assets/js/smart-manager.js' )) { … … 344 352 if( file_exists( $this->plugin_path . '/classes/class-smart-manager-install.php' ) ) { 345 353 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'; 346 357 } 347 358 if( file_exists( $this->plugin_path . '/classes/class-smart-manager-utils.php' ) ) { … … 916 927 function add_admin_notices() { 917 928 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' ); 923 930 } 924 931 if( !( !empty( $_GET['page'] ) && ( 'smart-manager' === $_GET['page'] ) ) ) { … … 1411 1418 'subscriptionsExist' => ( class_exists( 'WC_Subscriptions' ) && function_exists( 'wcs_do_subscriptions_exist' ) ) ? wcs_do_subscriptions_exist() : false, 1412 1419 '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 1414 1423 ); 1415 1424 … … 1549 1558 ?> 1550 1559 <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 1551 1571 .notice { 1552 1572 display: none !important; … … 1780 1800 } 1781 1801 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' ); 1787 1803 } 1788 1804 if( ! $is_pricing_page ) { … … 1897 1913 /* translators: 1: open the anchor tag for plugin review link 2: five star symbol 3: close the anchor tag for plugin review link */ 1898 1914 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.'">', 1900 1916 '<span class="sm-star">★★★★★</span>', 1901 1917 '</a>' … … 1909 1925 /* translators: 1: open the anchor tag for plugin feature request link 2: close the anchor tag for plugin feature request link */ 1910 1926 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">', 1912 1928 '</a>' 1913 1929 ); … … 2334 2350 * 2335 2351 * @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.2338 2352 * @return void 2339 2353 */ 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 ) ) ) { 2342 2358 return; 2343 2359 } 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 2345 2363 $feature_key = sanitize_key( $feature_key ); 2346 2364 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" ) ) { … … 2365 2383 2366 2384 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>', 2368 2386 'success', 2369 2387 esc_attr( $feature_key ), 2370 'Introducing:', 2371 wp_kses_post( $description ), 2372 wp_kses_post( $instructions ) 2388 'Feature Update:', 2389 wp_kses_post( $description ) 2373 2390 ); 2374 2391 } -
smart-manager-for-wp-e-commerce/trunk/classes/class-smart-manager-base.php
r3385169 r3390175 88 88 add_filter( 'sm_modify_store_model_for_trash_status', array( $this, 'modify_store_model_for_trash_status' ) ); 89 89 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 ); 90 91 } 91 92 … … 2192 2193 //Update man-hrs data in DB 2193 2194 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 } 2194 2200 if( isset( $this->req_params['pro'] ) && empty( $this->req_params['pro'] ) ) { 2195 2201 $sm_inline_update_count = get_option( 'sm_inline_update_count', 0 ); … … 2223 2229 ); 2224 2230 } 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; 2235 2237 } else { 2236 $ msg= sprintf(2238 $resp['msg'] = sprintf( 2237 2239 /* translators: %1$d: number of updated record %2$s: record update message */ 2238 2240 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>'); 2239 2241 } 2240 2242 $msg = json_encode($resp); 2241 2243 echo $msg; 2242 2244 exit; … … 3734 3736 return $params['order_by']; 3735 3737 } 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 3736 3760 } 3737 3761 } -
smart-manager-for-wp-e-commerce/trunk/classes/class-smart-manager-install.php
r3348144 r3390175 52 52 '8.69.0' => array( 53 53 'update_869_alter_table' 54 ), 55 '8.74.0' => array( 56 'update_874_add_options' 54 57 ) 55 58 ); … … 611 614 } 612 615 } 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 } 613 632 } 614 633 -
smart-manager-for-wp-e-commerce/trunk/common-core/assets/css/styles.css
r3368494 r3390175 1 1 #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 110 110 $this->dashboard_title = ( ! empty( $this->req_params['active_module_title'] ) ) ? $this->req_params['active_module_title'] : ''; 111 111 $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 } 112 118 } 113 119 … … 871 877 ); 872 878 } 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 } 873 902 } 874 903 } -
smart-manager-for-wp-e-commerce/trunk/common-core/classes/class-sa-manager-controller.php
r3334081 r3390175 198 198 if ( $is_in_allowed_dir && ( is_file( $real_path ) ) ) { 199 199 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 } 200 203 } 201 204 } -
smart-manager-for-wp-e-commerce/trunk/common-core/classes/class-sa-manager-product.php
r3334081 r3390175 477 477 $column_model [ $index ] = array(); 478 478 $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 ); 481 481 $column_model [ $index ]['key'] = $column_model [ $index ]['name']; 482 482 $column_model [ $index ]['type'] = 'dropdown'; 483 $column_model [ $index ]['hidden'] = true; 483 484 $column_model [ $index ]['editable'] = false; 484 485 $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 485 492 $column_model [ $index ]['table_name'] = $wpdb->prefix . 'terms'; 486 493 $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; 489 499 } 490 500 ++$index; -
smart-manager-for-wp-e-commerce/trunk/common-core/classes/class-sa-manager-utils.php
r3334081 r3390175 521 521 } 522 522 } 523 524 /** 525 * Get offset timestamp 526 * 527 * @param int $timestamp The timestamp. 528 * 529 * @return int Return the timestamp offset. 530 */ 531 function 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 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Smart Manager - Advanced WooCommerce Bulk Edit & Inventory Management 8.7 3.0\n"5 "Project-Id-Version: Smart Manager - Advanced WooCommerce Bulk Edit & Inventory Management 8.74.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-manager-for-wp-e-commerce\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2025-1 0-27T07:34:29+00:00\n"12 "POT-Creation-Date: 2025-11-05T05:41:58+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.10.0\n" … … 35 35 msgstr "" 36 36 37 #: class-smart-manager.php:2 5737 #: class-smart-manager.php:265 38 38 msgctxt "product stock log dashboard name" 39 39 msgid "Product Stock Log" 40 40 msgstr "" 41 41 42 #: class-smart-manager.php:2 6942 #: class-smart-manager.php:277 43 43 msgid "LifterLMS Orders" 44 44 msgstr "" 45 45 46 #: class-smart-manager.php:27 046 #: class-smart-manager.php:278 47 47 msgid "LifterLMS Coupons" 48 48 msgstr "" 49 49 50 #: class-smart-manager.php:8 0250 #: class-smart-manager.php:813 51 51 msgid "<span class=\"sm_pricing_icon\"> 🔥 </span> Go Pro" 52 52 msgstr "" 53 53 54 #: class-smart-manager.php:8 0554 #: class-smart-manager.php:816 55 55 msgid "Docs & Support" 56 56 msgstr "" 57 57 58 #: class-smart-manager.php:8 1158 #: class-smart-manager.php:822 59 59 msgid "StoreApps Plugins" 60 60 msgstr "" 61 61 62 #: class-smart-manager.php:92063 #: class-smart-manager.php:178464 msgctxt "admin notice description for new feature"65 msgid "<strong>AI-Powered Advanced Product Search!</strong>"66 msgstr ""67 68 #: class-smart-manager.php:92169 #: class-smart-manager.php:178570 msgctxt "admin notice instructions for new feature"71 msgid "Enable it via <strong>Settings > General Settings > AI Integration</strong>."72 msgstr ""73 74 62 #. translators: %1$s: current user display name %2$s: HTML of Pro price discount 75 #: class-smart-manager.php:10 1563 #: class-smart-manager.php:1022 76 64 msgid "Hey %1$s, grab your %2$s Halloween discount!" 77 65 msgstr "" 78 66 79 #: class-smart-manager.php:10 1780 #: class-smart-manager.php:102 067 #: class-smart-manager.php:1024 68 #: class-smart-manager.php:1027 81 69 msgid "25% off" 82 70 msgstr "" 83 71 84 72 #. translators: %1$s: current user display name %2$s: HTML of Pro price discount 85 #: class-smart-manager.php:10 1973 #: class-smart-manager.php:1026 86 74 msgid "Hey %1$s, you just unlocked %2$s on Smart Manager Pro!" 87 75 msgstr "" 88 76 89 77 #. translators: %s: pricing page link 90 #: class-smart-manager.php:10 2378 #: class-smart-manager.php:1030 91 79 msgid "%s to check Smart Manager Pro features/benefits and claim your discount." 92 80 msgstr "" 93 81 94 82 #. translators: %s: pricing page link 95 #: class-smart-manager.php:10 2383 #: class-smart-manager.php:1030 96 84 msgid "Click here" 97 85 msgstr "" 98 86 99 #: class-smart-manager.php:135 187 #: class-smart-manager.php:1358 100 88 msgid "This functionality has been disabled. Please contact store administrator for enabling the same." 101 89 msgstr "" 102 90 103 #: class-smart-manager.php:13 5591 #: class-smart-manager.php:1362 104 92 msgctxt "Column edit disable message" 105 93 msgid "This column edit has been disabled. Please contact store administrator for enabling the same." 106 94 msgstr "" 107 95 108 #: class-smart-manager.php:13 8996 #: class-smart-manager.php:1396 109 97 msgid "In the meanwhile, you can use Smart Manager. But before using actions like " 110 98 msgstr "" 111 99 112 #: class-smart-manager.php:13 89100 #: class-smart-manager.php:1396 113 101 #: classes/class-smart-manager-admin-welcome.php:344 114 102 #: classes/class-smart-manager-task.php:399 … … 116 104 msgstr "" 117 105 118 #: class-smart-manager.php:13 89106 #: class-smart-manager.php:1396 119 107 msgid "Duplicate Records" 120 108 msgstr "" 121 109 122 #: class-smart-manager.php:13 89110 #: class-smart-manager.php:1396 123 111 #: classes/class-smart-manager-admin-welcome.php:329 124 112 msgid "Delete Records" 125 113 msgstr "" 126 114 127 #: class-smart-manager.php:13 89115 #: class-smart-manager.php:1396 128 116 msgid "Undo Tasks" 129 117 msgstr "" 130 118 131 #: class-smart-manager.php:13 89119 #: class-smart-manager.php:1396 132 120 msgid "Delete Tasks" 133 121 msgstr "" 134 122 135 #: class-smart-manager.php:13 89123 #: class-smart-manager.php:1396 136 124 #: classes/class-smart-manager-admin-welcome.php:367 137 125 msgid "Export CSV" 138 126 msgstr "" 139 127 140 #: class-smart-manager.php:13 89128 #: class-smart-manager.php:1396 141 129 msgid "you will have to wait for the current background process to finish." 142 130 msgstr "" 143 131 144 #: class-smart-manager.php:17 60132 #: class-smart-manager.php:1780 145 133 msgid "PRO" 146 134 msgstr "" 147 135 148 #: class-smart-manager.php:17 60136 #: class-smart-manager.php:1780 149 137 msgid "LITE" 150 138 msgstr "" 151 139 152 #: class-smart-manager.php:17 73140 #: class-smart-manager.php:1793 153 141 msgid "An upgrade for Smart Manager Pro" 154 142 msgstr "" 155 143 156 #: class-smart-manager.php:17 73144 #: class-smart-manager.php:1793 157 145 msgid "is available." 158 146 msgstr "" 159 147 160 #: class-smart-manager.php:17 73148 #: class-smart-manager.php:1793 161 149 msgid "Click to upgrade." 162 150 msgstr "" 163 151 164 152 #. translators: 1: heart symbol 2: plugin author 165 #: class-smart-manager.php:18 61153 #: class-smart-manager.php:1877 166 154 msgctxt "plugin and brand text in footer" 167 155 msgid "Smart Manager, made with %1$s by %2$s" 168 156 msgstr "" 169 157 170 #: class-smart-manager.php:18 63158 #: class-smart-manager.php:1879 171 159 msgctxt "brand name in footer" 172 160 msgid "StoreApps" … … 174 162 175 163 #. translators: 1: pipe as text separator 2: plugin version 176 #: class-smart-manager.php:18 72164 #: class-smart-manager.php:1888 177 165 msgctxt "text for showing plugin is for WordPress and WooCommerce in footer" 178 166 msgid "Proudly built for WordPress & WooCommerce %1$s Version %2$s" … … 180 168 181 169 #. 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:1 898170 #: class-smart-manager.php:1914 183 171 msgctxt "text for plugin review in footer" 184 172 msgid "If you like it, please give us %1$s %2$s rating%3$s." … … 186 174 187 175 #. 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:19 10176 #: class-smart-manager.php:1926 189 177 msgctxt "text for plugin feature request in footer" 190 178 msgid "Do you have a feature request? Tell us %1$shere%2$s." 191 179 msgstr "" 192 180 193 #: class-smart-manager.php:19 29181 #: class-smart-manager.php:1945 194 182 msgid "A required Smart Manager file is missing. Can't continue. " 195 183 msgstr "" 196 184 197 #: class-smart-manager.php:19 44185 #: class-smart-manager.php:1960 198 186 msgid "Error:" 199 187 msgstr "" 200 188 201 #: class-smart-manager.php:20 02189 #: class-smart-manager.php:2018 202 190 msgid "Auto-updates are not available for this plugin." 203 191 msgstr "" 204 192 205 #: class-smart-manager.php:20 57206 #: class-smart-manager.php:20 66193 #: class-smart-manager.php:2073 194 #: class-smart-manager.php:2082 207 195 msgctxt "WooCommerce post type label" 208 196 msgid "WooCommerce - " 209 197 msgstr "" 210 198 211 #: class-smart-manager.php:2 092199 #: class-smart-manager.php:2108 212 200 msgctxt "go pro link title" 213 201 msgid "Go Pro" 214 202 msgstr "" 215 203 216 #: class-smart-manager.php:2 092204 #: class-smart-manager.php:2108 217 205 msgctxt "go pro link" 218 206 msgid "Go Pro" … … 220 208 221 209 #. translators: %1\$: 5-star link %2s: 5-star link 222 #: class-smart-manager.php:2 097210 #: class-smart-manager.php:2113 223 211 msgid "Boost us with %1$s⭐⭐⭐⭐⭐ 🚀%2$s" 224 212 msgstr "" 225 213 226 #: class-smart-manager.php:2 098214 #: class-smart-manager.php:2114 227 215 msgctxt "5-star link title" 228 216 msgid "5-star review" … … 230 218 231 219 #. translators: %1$s: user name, %2$s: saved man-hours 232 #: class-smart-manager.php:22 62220 #: class-smart-manager.php:2278 233 221 msgid "Hey %1$s, you’ve just saved <strong>%2$s productive hours</strong> with Smart Manager! 🎉" 234 222 msgstr "" 235 223 236 224 #. translators: %1$s: discount percentage, %2$s: additional man-hours 237 #: class-smart-manager.php:22 70225 #: class-smart-manager.php:2286 238 226 msgid "Upgrade to Smart Manager Pro to save <strong>additional %1$s hours</strong> (minimum) and unlock all features. %2$s" 239 227 msgstr "" 240 228 241 #: class-smart-manager.php:22 72229 #: class-smart-manager.php:2288 242 230 msgid "Get it at" 243 231 msgstr "" 244 232 245 #: class-smart-manager.php:22 72233 #: class-smart-manager.php:2288 246 234 msgid "25% off!" 235 msgstr "" 236 237 #: class-smart-manager.php:2355 238 msgctxt "admin notice description for new feature" 239 msgid "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." 247 240 msgstr "" 248 241 … … 355 348 #: classes/class-smart-manager-admin-welcome.php:350 356 349 #: classes/class-smart-manager-admin-welcome.php:372 357 #: classes/class-smart-manager-base.php:22 16350 #: classes/class-smart-manager-base.php:2222 358 351 msgid "Pro" 359 352 msgstr "" … … 471 464 msgstr "" 472 465 473 #: classes/class-smart-manager-base.php:32 7466 #: classes/class-smart-manager-base.php:328 474 467 #: pro/classes/class-smart-manager-pro-product-import-csv.php:42 475 468 #: pro/classes/class-smart-manager-pro-wc-membership-plan.php:97 … … 478 471 msgstr "" 479 472 480 #: classes/class-smart-manager-base.php:829481 473 #: classes/class-smart-manager-base.php:830 482 474 #: classes/class-smart-manager-base.php:831 475 #: classes/class-smart-manager-base.php:832 483 476 #: classes/class-smart-manager-shop-order.php:1781 484 477 msgid "Trash" … … 486 479 487 480 #. 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:22 04481 #: classes/class-smart-manager-base.php:2210 489 482 msgid "You saved <strong>%1$s</strong>! Upgrade to %2$s to save more <strong>%3$s</strong> and unlock undo." 490 483 msgstr "" 491 484 492 485 #. translators: %1$d: number of updated record %2$s: record update message 493 #: classes/class-smart-manager-base.php:223 0486 #: classes/class-smart-manager-base.php:2233 494 487 msgid "%1$d record%2$s updated successfully!" 495 488 msgstr "" 496 489 497 490 #. translators: %1$d: number of updated record %2$s: record update message 498 #: classes/class-smart-manager-base.php:22 38491 #: classes/class-smart-manager-base.php:2240 499 492 msgid "%1$d record%2$s updated successfully! %3$s" 500 493 msgstr "" 501 494 502 495 #. translators: %1$d: number of updated record %2$s: record update message 503 #: classes/class-smart-manager-base.php:228 5496 #: classes/class-smart-manager-base.php:2287 504 497 msgid "%1$d record%2$s deleted successfully!" 505 498 msgstr "" 506 499 507 500 #. translators: %1$s: exports schedule success message 508 #: classes/class-smart-manager-base.php:335 4501 #: classes/class-smart-manager-base.php:3356 509 502 msgctxt "success notification" 510 503 msgid "Export scheduled successfully. Check all your scheduled export actions <a target='_blank' href='%s'>here</a>." 511 504 msgstr "" 512 505 513 #: classes/class-smart-manager-base.php:340 4506 #: classes/class-smart-manager-base.php:3406 514 507 msgctxt "export data model" 515 508 msgid "Export CSV: no data found " 516 509 msgstr "" 517 510 518 #: classes/class-smart-manager-base.php:347 4511 #: classes/class-smart-manager-base.php:3476 519 512 msgctxt "export file data" 520 513 msgid "Export CSV: no file data found" … … 645 638 646 639 #: classes/class-smart-manager-shop-order.php:502 647 #: pro/classes/class-smart-manager-pro-product.php:118648 640 #: pro/common-pro/classes/class-sa-manager-pro-product.php:422 649 641 msgid "Cost of Good" … … 765 757 msgstr "" 766 758 767 #: common-core/classes/class-sa-manager-base.php:3 16759 #: common-core/classes/class-sa-manager-base.php:322 768 760 msgctxt "column name" 769 761 msgid "Featured Image" 770 762 msgstr "" 771 763 772 #: common-core/classes/class-sa-manager-base.php:3 17764 #: common-core/classes/class-sa-manager-base.php:323 773 765 msgctxt "column name key" 774 766 msgid "Featured Image" 775 767 msgstr "" 776 768 777 #: common-core/classes/class-sa-manager-base.php:6 19769 #: common-core/classes/class-sa-manager-base.php:625 778 770 msgctxt "edit link" 779 771 msgid "Edit" 780 772 msgstr "" 781 773 782 #: common-core/classes/class-sa-manager-base.php:6 34774 #: common-core/classes/class-sa-manager-base.php:640 783 775 msgctxt "view link" 784 776 msgid "View" 785 777 msgstr "" 786 778 787 #: common-core/classes/class-sa-manager-base.php:6 46779 #: common-core/classes/class-sa-manager-base.php:652 788 780 msgctxt "dashboard display name" 789 781 msgid "Product" 790 782 msgstr "" 791 783 784 #: common-core/classes/class-sa-manager-base.php:887 785 msgctxt "error message for missing update action" 786 msgid "Parameter is missing." 787 msgstr "" 788 789 #: common-core/classes/class-sa-manager-base.php:898 790 msgctxt "success message on feedback option update" 791 msgid "Feedback option updated" 792 msgstr "" 793 792 794 #. translators: 1: Method name, 2: Class name. 793 #: common-core/classes/class-sa-manager-controller.php:2 27795 #: common-core/classes/class-sa-manager-controller.php:230 794 796 msgctxt "Ajax request handler background progress" 795 797 msgid "Method %1$s is not callable in class %2$s" … … 797 799 798 800 #. Translators: %1$s is the method name, %2$s is the class name. 799 #: common-core/classes/class-sa-manager-controller.php:25 2801 #: common-core/classes/class-sa-manager-controller.php:255 800 802 msgctxt "Error message for non-callable method in Ajax request handler" 801 803 msgid "Method %1$s is not callable in class %2$s." … … 963 965 964 966 #: common-core/classes/class-sa-manager-product.php:480 965 msgctxt "attributes column name"966 967 msgid "Attributes" 967 968 msgstr "" 968 969 969 #: common-core/classes/class-sa-manager-product.php: 495970 #: common-core/classes/class-sa-manager-product.php:505 970 971 msgctxt "custom attributes column name" 971 972 msgid "Attributes: custom" 972 973 msgstr "" 973 974 974 #: common-core/classes/class-sa-manager-product.php:5 20975 #: common-core/classes/class-sa-manager-product.php:530 975 976 msgctxt "catalog visibility column name" 976 977 msgid "Catalog Visibility" 977 978 msgstr "" 978 979 979 #: common-core/classes/class-sa-manager-product.php:5 39980 #: common-core/classes/class-sa-manager-product.php:549 980 981 msgctxt "featured column name" 981 982 msgid "Featured" … … 1090 1091 #. translators: %s: process name 1091 1092 #: pro/classes/class-smart-manager-pro-background-updater.php:101 1092 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:9 741093 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:985 1093 1094 msgctxt "batch handler time exceed status" 1094 1095 msgid "Time is exceeded for %s" … … 1097 1098 #. translators: %s: process name 1098 1099 #: pro/classes/class-smart-manager-pro-background-updater.php:105 1099 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:9 781100 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:989 1100 1101 msgctxt "batch handler memory exceed status" 1101 1102 msgid "Memory is exceeded for %s" … … 1103 1104 1104 1105 #: pro/classes/class-smart-manager-pro-background-updater.php:198 1105 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:7 081106 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:715 1106 1107 msgctxt "background process task params" 1107 1108 msgid "Background process task params " … … 1317 1318 msgstr "" 1318 1319 1319 #: pro/classes/class-smart-manager-pro-product.php:881320 #: pro/common-pro/classes/class-sa-manager-pro-product.php:3921321 msgid "Booking duration"1322 msgstr ""1323 1324 #: pro/classes/class-smart-manager-pro-product.php:891325 #: pro/common-pro/classes/class-sa-manager-pro-product.php:3931326 msgid "Minimum duration"1327 msgstr ""1328 1329 #: pro/classes/class-smart-manager-pro-product.php:901330 #: pro/common-pro/classes/class-sa-manager-pro-product.php:3941331 msgid "Maximum duration"1332 msgstr ""1333 1334 #: pro/classes/class-smart-manager-pro-product.php:911335 #: pro/common-pro/classes/class-sa-manager-pro-product.php:3951336 msgid "Booking can be cancelled until"1337 msgstr ""1338 1339 #: pro/classes/class-smart-manager-pro-product.php:921340 #: pro/common-pro/classes/class-sa-manager-pro-product.php:3961341 msgid "Min persons"1342 msgstr ""1343 1344 #: pro/classes/class-smart-manager-pro-product.php:931345 #: pro/common-pro/classes/class-sa-manager-pro-product.php:3971346 msgid "Max persons"1347 msgstr ""1348 1349 #: pro/classes/class-smart-manager-pro-product.php:941350 #: pro/common-pro/classes/class-sa-manager-pro-product.php:3981351 msgid "Max bookings per block"1352 msgstr ""1353 1354 #: pro/classes/class-smart-manager-pro-product.php:951355 #: pro/common-pro/classes/class-sa-manager-pro-product.php:3991356 msgid "Minimum block bookable"1357 msgstr ""1358 1359 #: pro/classes/class-smart-manager-pro-product.php:961360 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4001361 msgid "Maximum block bookable"1362 msgstr ""1363 1364 #: pro/classes/class-smart-manager-pro-product.php:971365 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4011366 msgid "Require a buffer period of"1367 msgstr ""1368 1369 #: pro/classes/class-smart-manager-pro-product.php:991370 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4031371 msgid "Minimum quantity"1372 msgstr ""1373 1374 #: pro/classes/class-smart-manager-pro-product.php:1001375 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4041376 msgid "Maximum quantity"1377 msgstr ""1378 1379 #: pro/classes/class-smart-manager-pro-product.php:1011380 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4051381 msgid "Group of..."1382 msgstr ""1383 1384 #: pro/classes/class-smart-manager-pro-product.php:1021385 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4061386 msgid "Variation Minimum quantity"1387 msgstr ""1388 1389 #: pro/classes/class-smart-manager-pro-product.php:1031390 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4071391 msgid "Variation Maximum quantity"1392 msgstr ""1393 1394 #: pro/classes/class-smart-manager-pro-product.php:1041395 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4081396 msgid "Variation Group of..."1397 msgstr ""1398 1399 #: pro/classes/class-smart-manager-pro-product.php:1061400 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4101401 msgid "Minimum Quantity"1402 msgstr ""1403 1404 #: pro/classes/class-smart-manager-pro-product.php:1071405 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4111406 msgid "Maximum Quantity"1407 msgstr ""1408 1409 #: pro/classes/class-smart-manager-pro-product.php:1081410 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4121411 msgid "Variation Minimum Quantity"1412 msgstr ""1413 1414 #: pro/classes/class-smart-manager-pro-product.php:1091415 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4131416 msgid "Variation Maximum Quantity"1417 msgstr ""1418 1419 #: pro/classes/class-smart-manager-pro-product.php:1111420 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4151421 msgid "Min Quantity"1422 msgstr ""1423 1424 #: pro/classes/class-smart-manager-pro-product.php:1121425 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4161426 msgid "Max Quantity"1427 msgstr ""1428 1429 #: pro/classes/class-smart-manager-pro-product.php:1141430 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4181431 msgid "Subscription Price"1432 msgstr ""1433 1434 #: pro/classes/class-smart-manager-pro-product.php:1151435 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4191436 msgid "Sign-up Fee"1437 msgstr ""1438 1439 #: pro/classes/class-smart-manager-pro-product.php:1161440 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4201441 msgid "Free Trial"1442 msgstr ""1443 1444 #: pro/classes/class-smart-manager-pro-product.php:1201445 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4241446 msgid "Product Units"1447 msgstr ""1448 1449 #: pro/classes/class-smart-manager-pro-product.php:1211450 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4251451 msgid "Unit Price Units"1452 msgstr ""1453 1454 #: pro/classes/class-smart-manager-pro-product.php:1221455 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4261456 msgid "Regular Unit Price"1457 msgstr ""1458 1459 #: pro/classes/class-smart-manager-pro-product.php:1231460 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4271461 msgid "Sale Unit Price"1462 msgstr ""1463 1464 #: pro/classes/class-smart-manager-pro-product.php:1301465 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4401466 msgid "Enable Calendar Range Picker?"1467 msgstr ""1468 1469 #: pro/classes/class-smart-manager-pro-product.php:1311470 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4411471 msgid "Requires confirmation?"1472 msgstr ""1473 1474 #: pro/classes/class-smart-manager-pro-product.php:1321475 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4421476 msgid "Can be cancelled?"1477 msgstr ""1478 1479 #: pro/classes/class-smart-manager-pro-product.php:1331480 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4431481 msgid "Has persons"1482 msgstr ""1483 1484 #: pro/classes/class-smart-manager-pro-product.php:1341485 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4441486 msgid "Has resources"1487 msgstr ""1488 1489 #: pro/classes/class-smart-manager-pro-product.php:1351490 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4451491 msgid "Multiply all costs by person count"1492 msgstr ""1493 1494 #: pro/classes/class-smart-manager-pro-product.php:1361495 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4461496 msgid "Count persons as bookings"1497 msgstr ""1498 1499 #: pro/classes/class-smart-manager-pro-product.php:1371500 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4471501 msgid "Enable person types"1502 msgstr ""1503 1504 #: pro/classes/class-smart-manager-pro-product.php:1381505 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4481506 msgid "Restrict start and end days?"1507 msgstr ""1508 1509 #: pro/classes/class-smart-manager-pro-product.php:1391510 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4491511 msgid "Adjacent Buffering?"1512 msgstr ""1513 1514 #: pro/classes/class-smart-manager-pro-product.php:1441515 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4541516 msgid "Enable Min Max Quantity"1517 msgstr ""1518 1519 #: pro/classes/class-smart-manager-pro-product.php:1491520 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4591521 msgid "Min/Max Rules"1522 msgstr ""1523 1524 #: pro/classes/class-smart-manager-pro-product.php:1501525 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4601526 msgid "Allow Combination"1527 msgstr ""1528 1529 #: pro/classes/class-smart-manager-pro-product.php:1511530 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4611531 msgid "Order rules: Do not count"1532 msgstr ""1533 1534 #: pro/classes/class-smart-manager-pro-product.php:1521535 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4621536 msgid "Order rules: Exclude"1537 msgstr ""1538 1539 #: pro/classes/class-smart-manager-pro-product.php:1531540 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4631541 msgid "Category group-of rules: Exclude"1542 msgstr ""1543 1544 #: pro/classes/class-smart-manager-pro-product.php:1541545 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4641546 msgid "Variation Order rules: Do not count"1547 msgstr ""1548 1549 #: pro/classes/class-smart-manager-pro-product.php:1551550 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4651551 msgid "Variation Order rules: Exclude"1552 msgstr ""1553 1554 #: pro/classes/class-smart-manager-pro-product.php:1561555 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4661556 msgid "Variation Category group-of rules: Exclude"1557 msgstr ""1558 1559 #: pro/classes/class-smart-manager-pro-product.php:1581560 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4681561 msgid "Calculate unit prices automatically"1562 msgstr ""1563 1564 #: pro/classes/class-smart-manager-pro-product.php:1621565 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4721566 msgid "Month(s)"1567 msgstr ""1568 1569 #: pro/classes/class-smart-manager-pro-product.php:1631570 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4731571 msgid "Day(s)"1572 msgstr ""1573 1574 #: pro/classes/class-smart-manager-pro-product.php:1641575 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4741576 msgid "Hour(s)"1577 msgstr ""1578 1579 #: pro/classes/class-smart-manager-pro-product.php:1651580 #: pro/common-pro/classes/class-sa-manager-pro-product.php:4751581 msgid "Minutes(s)"1582 msgstr ""1583 1584 #: pro/classes/class-smart-manager-pro-product.php:1971585 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5081586 msgid "Booking Duration (Type)"1587 msgstr ""1588 1589 #: pro/classes/class-smart-manager-pro-product.php:1991590 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5111591 msgid "Fixed blocks of"1592 msgstr ""1593 1594 #: pro/classes/class-smart-manager-pro-product.php:2001595 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5121596 msgid "Customer defined blocks of"1597 msgstr ""1598 1599 #: pro/classes/class-smart-manager-pro-product.php:2051600 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5181601 msgid "Booking Duration (Unit)"1602 msgstr ""1603 1604 #: pro/classes/class-smart-manager-pro-product.php:2101605 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5231606 msgid "Booking can be cancelled until (Unit)"1607 msgstr ""1608 1609 #: pro/classes/class-smart-manager-pro-product.php:2151610 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5281611 msgid "Minimum block bookable (Unit)"1612 msgstr ""1613 1614 #: pro/classes/class-smart-manager-pro-product.php:2201615 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5331616 msgid "Maximum block bookable (Unit)"1617 msgstr ""1618 1619 #: pro/classes/class-smart-manager-pro-product.php:2251620 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5381621 msgid "Calendar display mode"1622 msgstr ""1623 1624 #: pro/classes/class-smart-manager-pro-product.php:2271625 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5411626 msgid "Display calendar on click"1627 msgstr ""1628 1629 #: pro/classes/class-smart-manager-pro-product.php:2281630 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5421631 msgid "Calendar always visible"1632 msgstr ""1633 1634 #: pro/classes/class-smart-manager-pro-product.php:2331635 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5471636 msgid "Resources are..."1637 msgstr ""1638 1639 #: pro/classes/class-smart-manager-pro-product.php:2351640 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5501641 msgid "Customer selected"1642 msgstr ""1643 1644 #: pro/classes/class-smart-manager-pro-product.php:2361645 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5511646 msgid "Automatically assigned"1647 msgstr ""1648 1649 #: pro/classes/class-smart-manager-pro-product.php:2411650 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5561651 msgid "All dates are..."1652 msgstr ""1653 1654 #: pro/classes/class-smart-manager-pro-product.php:2431655 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5591656 msgid "available by default"1657 msgstr ""1658 1659 #: pro/classes/class-smart-manager-pro-product.php:2441660 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5601661 msgid "not-available by default"1662 msgstr ""1663 1664 #: pro/classes/class-smart-manager-pro-product.php:2491665 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5651666 msgid "Check rules against..."1667 msgstr ""1668 1669 #: pro/classes/class-smart-manager-pro-product.php:2511670 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5681671 msgid "All blocks being booked"1672 msgstr ""1673 1674 #: pro/classes/class-smart-manager-pro-product.php:2521675 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5691676 msgid "The starting block only"1677 msgstr ""1678 1679 #: pro/classes/class-smart-manager-pro-product.php:2601680 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5801681 msgid "Subscription Periods"1682 msgstr ""1683 1684 #: pro/classes/class-smart-manager-pro-product.php:2661685 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5861686 msgid "Billing Period"1687 msgstr ""1688 1689 #: pro/classes/class-smart-manager-pro-product.php:2711690 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5921691 msgid "Expire After"1692 msgstr ""1693 1694 #: pro/classes/class-smart-manager-pro-product.php:2741695 #: pro/common-pro/classes/class-sa-manager-pro-product.php:5951696 msgid "Never expire"1697 msgstr ""1698 1699 #: pro/classes/class-smart-manager-pro-product.php:2851700 #: pro/common-pro/classes/class-sa-manager-pro-product.php:6061701 msgid "Subscription Trial Period"1702 msgstr ""1703 1704 1320 #: pro/classes/class-smart-manager-pro-shop-coupon.php:248 1705 1321 msgid "Allowed user roles" … … 1917 1533 1918 1534 #: pro/classes/class-smart-manager-pro-task.php:569 1535 msgctxt "column name" 1919 1536 msgid "Term" 1920 1537 msgstr "" … … 2046 1663 msgstr "" 2047 1664 2048 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 421665 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:550 2049 1666 msgctxt "entire store" 2050 1667 msgid "All" … … 2052 1669 2053 1670 #. translators: 1. Error title 2. The bulk process 2054 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 541671 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:562 2055 1672 msgid "%1$s: The %2$s process has stopped. Please review the dashboard to check the status." 2056 1673 msgstr "" 2057 1674 2058 1675 #. translators: 1. Error title 2. The bulk process 2059 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 541676 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:562 2060 1677 msgid "Error" 2061 1678 msgstr "" 2062 1679 2063 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 621680 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:570 2064 1681 msgid "Important" 2065 1682 msgstr "" 2066 1683 2067 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 631684 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:571 2068 1685 msgid "request is running" 2069 1686 msgstr "" 2070 1687 2071 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 641688 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:572 2072 1689 msgid "in the background. You will be notified on" 2073 1690 msgstr "" 2074 1691 2075 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 641692 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:572 2076 1693 msgid "when it is completed." 2077 1694 msgstr "" 2078 1695 2079 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:57 01696 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:578 2080 1697 msgid "Progress" 2081 1698 msgstr "" 2082 1699 2083 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:57 11700 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:579 2084 1701 msgid "--:--:--" 2085 1702 msgstr "" 2086 1703 2087 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 721704 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:580 2088 1705 msgid "Stop" 2089 1706 msgstr "" 2090 1707 2091 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 771708 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:585 2092 1709 msgid "NOTE" 2093 1710 msgstr "" 2094 1711 2095 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 851712 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:593 2096 1713 msgid "for" 2097 1714 msgstr "" 2098 1715 2099 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:5 851716 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:593 2100 1717 msgid "completed successfully" 2101 1718 msgstr "" 2102 1719 2103 1720 #. translators: %s: process name 2104 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php: 5971721 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:605 2105 1722 msgid "Are you sure you want to stop the %s process? Click OK to stop." 2106 1723 msgstr "" 2107 1724 2108 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:7 651725 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:772 2109 1726 msgctxt "fatal error for callback" 2110 1727 msgid "Transactional email triggered fatal error for callback " 2111 1728 msgstr "" 2112 1729 2113 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:85 11730 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:859 2114 1731 msgctxt "percentage progress" 2115 1732 msgid "% completed" 2116 1733 msgstr "" 2117 1734 2118 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:8 741735 #: pro/common-pro/classes/class-sa-manager-pro-background-updater.php:882 2119 1736 msgid "% Completed" 2120 1737 msgstr "" … … 2168 1785 msgstr "" 2169 1786 1787 #: pro/common-pro/classes/class-sa-manager-pro-product.php:392 1788 msgid "Booking duration" 1789 msgstr "" 1790 1791 #: pro/common-pro/classes/class-sa-manager-pro-product.php:393 1792 msgid "Minimum duration" 1793 msgstr "" 1794 1795 #: pro/common-pro/classes/class-sa-manager-pro-product.php:394 1796 msgid "Maximum duration" 1797 msgstr "" 1798 1799 #: pro/common-pro/classes/class-sa-manager-pro-product.php:395 1800 msgid "Booking can be cancelled until" 1801 msgstr "" 1802 1803 #: pro/common-pro/classes/class-sa-manager-pro-product.php:396 1804 msgid "Min persons" 1805 msgstr "" 1806 1807 #: pro/common-pro/classes/class-sa-manager-pro-product.php:397 1808 msgid "Max persons" 1809 msgstr "" 1810 1811 #: pro/common-pro/classes/class-sa-manager-pro-product.php:398 1812 msgid "Max bookings per block" 1813 msgstr "" 1814 1815 #: pro/common-pro/classes/class-sa-manager-pro-product.php:399 1816 msgid "Minimum block bookable" 1817 msgstr "" 1818 1819 #: pro/common-pro/classes/class-sa-manager-pro-product.php:400 1820 msgid "Maximum block bookable" 1821 msgstr "" 1822 1823 #: pro/common-pro/classes/class-sa-manager-pro-product.php:401 1824 msgid "Require a buffer period of" 1825 msgstr "" 1826 1827 #: pro/common-pro/classes/class-sa-manager-pro-product.php:403 1828 msgid "Minimum quantity" 1829 msgstr "" 1830 1831 #: pro/common-pro/classes/class-sa-manager-pro-product.php:404 1832 msgid "Maximum quantity" 1833 msgstr "" 1834 1835 #: pro/common-pro/classes/class-sa-manager-pro-product.php:405 1836 msgid "Group of..." 1837 msgstr "" 1838 1839 #: pro/common-pro/classes/class-sa-manager-pro-product.php:406 1840 msgid "Variation Minimum quantity" 1841 msgstr "" 1842 1843 #: pro/common-pro/classes/class-sa-manager-pro-product.php:407 1844 msgid "Variation Maximum quantity" 1845 msgstr "" 1846 1847 #: pro/common-pro/classes/class-sa-manager-pro-product.php:408 1848 msgid "Variation Group of..." 1849 msgstr "" 1850 1851 #: pro/common-pro/classes/class-sa-manager-pro-product.php:410 1852 msgid "Minimum Quantity" 1853 msgstr "" 1854 1855 #: pro/common-pro/classes/class-sa-manager-pro-product.php:411 1856 msgid "Maximum Quantity" 1857 msgstr "" 1858 1859 #: pro/common-pro/classes/class-sa-manager-pro-product.php:412 1860 msgid "Variation Minimum Quantity" 1861 msgstr "" 1862 1863 #: pro/common-pro/classes/class-sa-manager-pro-product.php:413 1864 msgid "Variation Maximum Quantity" 1865 msgstr "" 1866 1867 #: pro/common-pro/classes/class-sa-manager-pro-product.php:415 1868 msgid "Min Quantity" 1869 msgstr "" 1870 1871 #: pro/common-pro/classes/class-sa-manager-pro-product.php:416 1872 msgid "Max Quantity" 1873 msgstr "" 1874 1875 #: pro/common-pro/classes/class-sa-manager-pro-product.php:418 1876 msgid "Subscription Price" 1877 msgstr "" 1878 1879 #: pro/common-pro/classes/class-sa-manager-pro-product.php:419 1880 msgid "Sign-up Fee" 1881 msgstr "" 1882 1883 #: pro/common-pro/classes/class-sa-manager-pro-product.php:420 1884 msgid "Free Trial" 1885 msgstr "" 1886 1887 #: pro/common-pro/classes/class-sa-manager-pro-product.php:424 1888 msgid "Product Units" 1889 msgstr "" 1890 1891 #: pro/common-pro/classes/class-sa-manager-pro-product.php:425 1892 msgid "Unit Price Units" 1893 msgstr "" 1894 1895 #: pro/common-pro/classes/class-sa-manager-pro-product.php:426 1896 msgid "Regular Unit Price" 1897 msgstr "" 1898 1899 #: pro/common-pro/classes/class-sa-manager-pro-product.php:427 1900 msgid "Sale Unit Price" 1901 msgstr "" 1902 1903 #: pro/common-pro/classes/class-sa-manager-pro-product.php:440 1904 msgid "Enable Calendar Range Picker?" 1905 msgstr "" 1906 1907 #: pro/common-pro/classes/class-sa-manager-pro-product.php:441 1908 msgid "Requires confirmation?" 1909 msgstr "" 1910 1911 #: pro/common-pro/classes/class-sa-manager-pro-product.php:442 1912 msgid "Can be cancelled?" 1913 msgstr "" 1914 1915 #: pro/common-pro/classes/class-sa-manager-pro-product.php:443 1916 msgid "Has persons" 1917 msgstr "" 1918 1919 #: pro/common-pro/classes/class-sa-manager-pro-product.php:444 1920 msgid "Has resources" 1921 msgstr "" 1922 1923 #: pro/common-pro/classes/class-sa-manager-pro-product.php:445 1924 msgid "Multiply all costs by person count" 1925 msgstr "" 1926 1927 #: pro/common-pro/classes/class-sa-manager-pro-product.php:446 1928 msgid "Count persons as bookings" 1929 msgstr "" 1930 1931 #: pro/common-pro/classes/class-sa-manager-pro-product.php:447 1932 msgid "Enable person types" 1933 msgstr "" 1934 1935 #: pro/common-pro/classes/class-sa-manager-pro-product.php:448 1936 msgid "Restrict start and end days?" 1937 msgstr "" 1938 1939 #: pro/common-pro/classes/class-sa-manager-pro-product.php:449 1940 msgid "Adjacent Buffering?" 1941 msgstr "" 1942 1943 #: pro/common-pro/classes/class-sa-manager-pro-product.php:454 1944 msgid "Enable Min Max Quantity" 1945 msgstr "" 1946 1947 #: pro/common-pro/classes/class-sa-manager-pro-product.php:459 1948 msgid "Min/Max Rules" 1949 msgstr "" 1950 1951 #: pro/common-pro/classes/class-sa-manager-pro-product.php:460 1952 msgid "Allow Combination" 1953 msgstr "" 1954 1955 #: pro/common-pro/classes/class-sa-manager-pro-product.php:461 1956 msgid "Order rules: Do not count" 1957 msgstr "" 1958 1959 #: pro/common-pro/classes/class-sa-manager-pro-product.php:462 1960 msgid "Order rules: Exclude" 1961 msgstr "" 1962 1963 #: pro/common-pro/classes/class-sa-manager-pro-product.php:463 1964 msgid "Category group-of rules: Exclude" 1965 msgstr "" 1966 1967 #: pro/common-pro/classes/class-sa-manager-pro-product.php:464 1968 msgid "Variation Order rules: Do not count" 1969 msgstr "" 1970 1971 #: pro/common-pro/classes/class-sa-manager-pro-product.php:465 1972 msgid "Variation Order rules: Exclude" 1973 msgstr "" 1974 1975 #: pro/common-pro/classes/class-sa-manager-pro-product.php:466 1976 msgid "Variation Category group-of rules: Exclude" 1977 msgstr "" 1978 1979 #: pro/common-pro/classes/class-sa-manager-pro-product.php:468 1980 msgid "Calculate unit prices automatically" 1981 msgstr "" 1982 1983 #: pro/common-pro/classes/class-sa-manager-pro-product.php:472 1984 msgid "Month(s)" 1985 msgstr "" 1986 1987 #: pro/common-pro/classes/class-sa-manager-pro-product.php:473 1988 msgid "Day(s)" 1989 msgstr "" 1990 1991 #: pro/common-pro/classes/class-sa-manager-pro-product.php:474 1992 msgid "Hour(s)" 1993 msgstr "" 1994 1995 #: pro/common-pro/classes/class-sa-manager-pro-product.php:475 1996 msgid "Minutes(s)" 1997 msgstr "" 1998 1999 #: pro/common-pro/classes/class-sa-manager-pro-product.php:508 2000 msgid "Booking Duration (Type)" 2001 msgstr "" 2002 2003 #: pro/common-pro/classes/class-sa-manager-pro-product.php:511 2004 msgid "Fixed blocks of" 2005 msgstr "" 2006 2007 #: pro/common-pro/classes/class-sa-manager-pro-product.php:512 2008 msgid "Customer defined blocks of" 2009 msgstr "" 2010 2011 #: pro/common-pro/classes/class-sa-manager-pro-product.php:518 2012 msgid "Booking Duration (Unit)" 2013 msgstr "" 2014 2015 #: pro/common-pro/classes/class-sa-manager-pro-product.php:523 2016 msgid "Booking can be cancelled until (Unit)" 2017 msgstr "" 2018 2019 #: pro/common-pro/classes/class-sa-manager-pro-product.php:528 2020 msgid "Minimum block bookable (Unit)" 2021 msgstr "" 2022 2023 #: pro/common-pro/classes/class-sa-manager-pro-product.php:533 2024 msgid "Maximum block bookable (Unit)" 2025 msgstr "" 2026 2027 #: pro/common-pro/classes/class-sa-manager-pro-product.php:538 2028 msgid "Calendar display mode" 2029 msgstr "" 2030 2031 #: pro/common-pro/classes/class-sa-manager-pro-product.php:541 2032 msgid "Display calendar on click" 2033 msgstr "" 2034 2035 #: pro/common-pro/classes/class-sa-manager-pro-product.php:542 2036 msgid "Calendar always visible" 2037 msgstr "" 2038 2039 #: pro/common-pro/classes/class-sa-manager-pro-product.php:547 2040 msgid "Resources are..." 2041 msgstr "" 2042 2043 #: pro/common-pro/classes/class-sa-manager-pro-product.php:550 2044 msgid "Customer selected" 2045 msgstr "" 2046 2047 #: pro/common-pro/classes/class-sa-manager-pro-product.php:551 2048 msgid "Automatically assigned" 2049 msgstr "" 2050 2051 #: pro/common-pro/classes/class-sa-manager-pro-product.php:556 2052 msgid "All dates are..." 2053 msgstr "" 2054 2055 #: pro/common-pro/classes/class-sa-manager-pro-product.php:559 2056 msgid "available by default" 2057 msgstr "" 2058 2059 #: pro/common-pro/classes/class-sa-manager-pro-product.php:560 2060 msgid "not-available by default" 2061 msgstr "" 2062 2063 #: pro/common-pro/classes/class-sa-manager-pro-product.php:565 2064 msgid "Check rules against..." 2065 msgstr "" 2066 2067 #: pro/common-pro/classes/class-sa-manager-pro-product.php:568 2068 msgid "All blocks being booked" 2069 msgstr "" 2070 2071 #: pro/common-pro/classes/class-sa-manager-pro-product.php:569 2072 msgid "The starting block only" 2073 msgstr "" 2074 2075 #: pro/common-pro/classes/class-sa-manager-pro-product.php:580 2076 msgid "Subscription Periods" 2077 msgstr "" 2078 2079 #: pro/common-pro/classes/class-sa-manager-pro-product.php:586 2080 msgid "Billing Period" 2081 msgstr "" 2082 2083 #: pro/common-pro/classes/class-sa-manager-pro-product.php:592 2084 msgid "Expire After" 2085 msgstr "" 2086 2087 #: pro/common-pro/classes/class-sa-manager-pro-product.php:595 2088 msgid "Never expire" 2089 msgstr "" 2090 2091 #: pro/common-pro/classes/class-sa-manager-pro-product.php:606 2092 msgid "Subscription Trial Period" 2093 msgstr "" 2094 2170 2095 #. translators: %d: records count 2171 2096 #: pro/templates/emails/bulk-edit.php:8 … … 2444 2369 #. translators: %s: pricing page link 2445 2370 #: assets/js/admin.js:1 2446 #: assets/js/smart-manager.js:24 132447 #: assets/js/smart-manager.js:26 832448 #: assets/js/smart-manager.js:27 392449 #: assets/js/smart-manager.js:27 512450 #: assets/js/smart-manager.js:27 602451 #: assets/js/smart-manager.js:32 292371 #: 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 2452 2377 msgctxt "modal content" 2453 2378 msgid "This feature is available only in the %s version" … … 2455 2380 2456 2381 #: assets/js/admin.js:1 2457 #: assets/js/smart-manager.js: 2982458 #: assets/js/smart-manager.js:21 062459 #: assets/js/smart-manager.js:24 132460 #: assets/js/smart-manager.js:26 832461 #: assets/js/smart-manager.js:27 392462 #: assets/js/smart-manager.js:27 512463 #: assets/js/smart-manager.js:27 602464 #: assets/js/smart-manager.js:32 292382 #: 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 2465 2390 msgctxt "modal content" 2466 2391 msgid "Pro" … … 2582 2507 2583 2508 #: assets/js/admin.js:1 2584 #: assets/js/smart-manager.js:25 012585 #: assets/js/smart-manager.js:25 292586 #: assets/js/smart-manager.js:26 752509 #: assets/js/smart-manager.js:2514 2510 #: assets/js/smart-manager.js:2542 2511 #: assets/js/smart-manager.js:2688 2587 2512 #: src/views/AdvancedSearchDialog.js:127 2588 2513 msgctxt "notification" … … 2639 2564 #: assets/js/admin.js:1 2640 2565 #: assets/js/smart-manager-product.js:233 2641 #: assets/js/smart-manager.js:23 172642 #: assets/js/smart-manager.js:25 142643 #: assets/js/smart-manager.js:25 492644 #: assets/js/smart-manager.js:4 3762566 #: 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 2645 2570 #: pro/assets/js/smart-manager.js:1239 2646 2571 #: pro/assets/js/smart-manager.js:1941 … … 2656 2581 2657 2582 #: assets/js/admin.js:1 2658 #: assets/js/smart-manager.js:25 152583 #: assets/js/smart-manager.js:2528 2659 2584 #: pro/assets/js/smart-manager.js:1248 2660 2585 #: pro/assets/js/smart-manager.js:1942 … … 2811 2736 2812 2737 #: assets/js/admin.js:1 2738 msgctxt "Question asking user opinion about plugin" 2739 msgid "Happy with the Smart Manager plugin?" 2740 msgstr "" 2741 2742 #: assets/js/admin.js:1 2743 msgctxt "Asking how plugin is doing" 2744 msgid "Is our plugin doing what it promised - helping you manage your store effortlessly?" 2745 msgstr "" 2746 2747 #: assets/js/admin.js:1 2748 msgctxt "Positive response button" 2749 msgid "Yes, all good" 2750 msgstr "" 2751 2752 #: assets/js/admin.js:1 2753 msgctxt "Negative response button" 2754 msgid "Could be better" 2755 msgstr "" 2756 2757 #: assets/js/admin.js:1 2758 msgctxt "Thank you message for positive feedback" 2759 msgid "Thanks for the love!" 2760 msgstr "" 2761 2762 #: assets/js/admin.js:1 2763 msgctxt "Request the user to leave a review" 2764 msgid "Awesome! Mind leaving us a 5-star review? It really motivates us to keep improving and reach more store owners like you." 2765 msgstr "" 2766 2767 #: assets/js/admin.js:1 2768 msgctxt "Review response button" 2769 msgid "Yes, I'll rate now!" 2770 msgstr "" 2771 2772 #: assets/js/admin.js:1 2773 msgctxt "Apology message for negative feedback" 2774 msgid "We hear you - let's make it better!" 2775 msgstr "" 2776 2777 #: assets/js/admin.js:1 2778 msgctxt "Support offer message" 2779 msgid "Thanks for your honesty. Let our support team assist you so you can get back to managing your store effortlessly." 2780 msgstr "" 2781 2782 #: assets/js/admin.js:1 2783 msgctxt "Support contact button" 2784 msgid "Contact support" 2785 msgstr "" 2786 2787 #: assets/js/admin.js:1 2813 2788 #: src/views/SettingsDialog.js:46 2814 2789 msgctxt "setting label" … … 3596 3571 #: assets/js/admin.js:1 3597 3572 #: assets/js/smart-manager-product.js:475 3598 #: assets/js/smart-manager.js:18 153599 #: assets/js/smart-manager.js:18 553600 #: assets/js/smart-manager.js:19 093573 #: assets/js/smart-manager.js:1828 3574 #: assets/js/smart-manager.js:1868 3575 #: assets/js/smart-manager.js:1922 3601 3576 #: pro/assets/js/smart-manager.js:1134 3602 3577 #: pro/common-pro/assets/js/base.js:61 … … 3606 3581 3607 3582 #: assets/js/admin.js:1 3608 #: assets/js/smart-manager.js:24 663583 #: assets/js/smart-manager.js:2479 3609 3584 #: pro/assets/js/smart-manager.js:1159 3610 3585 #: pro/assets/js/smart-manager.js:2022 … … 3791 3766 3792 3767 #. translators: %1$s: dashboard display name %2$s: success message %3$s: pricing page link 3793 #: assets/js/smart-manager.js: 2983794 #: assets/js/smart-manager.js:21 063768 #: assets/js/smart-manager.js:300 3769 #: assets/js/smart-manager.js:2119 3795 3770 msgctxt "modal content" 3796 3771 msgid "For managing %1$s, %2$s %3$s version" 3797 3772 msgstr "" 3798 3773 3799 #: assets/js/smart-manager.js:55 63774 #: assets/js/smart-manager.js:558 3800 3775 msgctxt "search type" 3801 3776 msgid "Advanced" 3802 3777 msgstr "" 3803 3778 3804 #: assets/js/smart-manager.js:55 63779 #: assets/js/smart-manager.js:558 3805 3780 msgctxt "search type" 3806 3781 msgid "Simple" 3807 3782 msgstr "" 3808 3783 3809 #: assets/js/smart-manager.js:5 583784 #: assets/js/smart-manager.js:560 3810 3785 msgctxt "placeholder" 3811 3786 msgid "Type to search..." 3812 3787 msgstr "" 3813 3788 3814 #: assets/js/smart-manager.js:5 593789 #: assets/js/smart-manager.js:561 3815 3790 msgctxt "tooltip" 3816 3791 msgid "Click to add/edit condition" … … 3818 3793 3819 3794 #. translators: %1$d: Advanced search rule count %2$s: search conditions 3820 #: assets/js/smart-manager.js:56 23821 #: assets/js/smart-manager.js:87 03795 #: assets/js/smart-manager.js:564 3796 #: assets/js/smart-manager.js:872 3822 3797 msgctxt "search conditions" 3823 3798 msgid "%1$d condition%2$s" 3824 3799 msgstr "" 3825 3800 3826 #: assets/js/smart-manager.js:56 23827 #: assets/js/smart-manager.js:87 03801 #: assets/js/smart-manager.js:564 3802 #: assets/js/smart-manager.js:872 3828 3803 msgctxt "search conditions" 3829 3804 msgid "s" 3830 3805 msgstr "" 3831 3806 3832 #: assets/js/smart-manager.js:58 03807 #: assets/js/smart-manager.js:582 3833 3808 msgctxt "dashboard option groups" 3834 3809 msgid "Common post types" 3835 3810 msgstr "" 3836 3811 3837 #: assets/js/smart-manager.js:59 03812 #: assets/js/smart-manager.js:592 3838 3813 msgctxt "dashboard option groups" 3839 3814 msgid "Common taxonomies" 3840 3815 msgstr "" 3841 3816 3842 #: assets/js/smart-manager.js:60 03817 #: assets/js/smart-manager.js:602 3843 3818 msgctxt "dashboard option groups" 3844 3819 msgid "Recently used views" 3845 3820 msgstr "" 3846 3821 3847 #: assets/js/smart-manager.js:61 03822 #: assets/js/smart-manager.js:612 3848 3823 msgctxt "dashboard option groups" 3849 3824 msgid "Other post types" 3850 3825 msgstr "" 3851 3826 3852 #: assets/js/smart-manager.js:62 03827 #: assets/js/smart-manager.js:622 3853 3828 msgctxt "dashboard option groups" 3854 3829 msgid "Other taxonomies" 3855 3830 msgstr "" 3856 3831 3857 #: assets/js/smart-manager.js:63 63832 #: assets/js/smart-manager.js:638 3858 3833 msgctxt "dashboard option groups" 3859 3834 msgid "Other saved views" 3860 3835 msgstr "" 3861 3836 3862 #: assets/js/smart-manager.js:64 63837 #: assets/js/smart-manager.js:648 3863 3838 msgctxt "saved searches option groups" 3864 3839 msgid "Saved searches" 3865 3840 msgstr "" 3866 3841 3867 #: assets/js/smart-manager.js:65 73842 #: assets/js/smart-manager.js:659 3868 3843 msgctxt "button for creating new bulk edit" 3869 3844 msgid "New" 3870 3845 msgstr "" 3871 3846 3872 #: assets/js/smart-manager.js:66 03847 #: assets/js/smart-manager.js:662 3873 3848 msgctxt "manage button for scheduled bulk edit actions" 3874 3849 msgid "Manage Scheduled edits" 3875 3850 msgstr "" 3876 3851 3877 #: assets/js/smart-manager.js:6 683852 #: assets/js/smart-manager.js:670 3878 3853 msgctxt "dashboard option groups" 3879 3854 msgid "All post types" 3880 3855 msgstr "" 3881 3856 3882 #: assets/js/smart-manager.js:6 783857 #: assets/js/smart-manager.js:680 3883 3858 msgctxt "dashboard option groups" 3884 3859 msgid "All taxonomies" 3885 3860 msgstr "" 3886 3861 3887 #: assets/js/smart-manager.js:69 43862 #: assets/js/smart-manager.js:696 3888 3863 msgctxt "AI icon label" 3889 3864 msgid "AI-powered search" … … 3891 3866 3892 3867 #. translators: %s: search type 3893 #: assets/js/smart-manager.js: 6993868 #: assets/js/smart-manager.js:701 3894 3869 msgctxt "tooltip" 3895 3870 msgid "Switch to %s" … … 3897 3872 3898 3873 #. translators: %s: search type 3899 #: assets/js/smart-manager.js:70 13874 #: assets/js/smart-manager.js:703 3900 3875 msgctxt "search type" 3901 3876 msgid "%s Search" 3902 3877 msgstr "" 3903 3878 3904 #: assets/js/smart-manager.js:72 23879 #: assets/js/smart-manager.js:724 3905 3880 msgctxt "tooltip" 3906 3881 msgid "Docs" 3907 3882 msgstr "" 3908 3883 3909 #: assets/js/smart-manager.js:73 43884 #: assets/js/smart-manager.js:736 3910 3885 msgctxt "tooltip" 3911 3886 msgid "General settings" 3912 3887 msgstr "" 3913 3888 3914 #: assets/js/smart-manager.js:73 43889 #: assets/js/smart-manager.js:736 3915 3890 msgctxt "settings button" 3916 3891 msgid "General settings" 3917 3892 msgstr "" 3918 3893 3919 #: assets/js/smart-manager.js:73 53894 #: assets/js/smart-manager.js:737 3920 3895 msgctxt "tooltip" 3921 3896 msgid "Access Privilege settings" 3922 3897 msgstr "" 3923 3898 3924 #: assets/js/smart-manager.js:73 53899 #: assets/js/smart-manager.js:737 3925 3900 msgctxt "access privilege settings button" 3926 3901 msgid "Access Privilege Settings" 3927 3902 msgstr "" 3928 3903 3929 #: assets/js/smart-manager.js:74 23904 #: assets/js/smart-manager.js:744 3930 3905 msgctxt "tooltip" 3931 3906 msgid "Bulk Edit" 3932 3907 msgstr "" 3933 3908 3934 #: assets/js/smart-manager.js:74 63909 #: assets/js/smart-manager.js:748 3935 3910 msgctxt "button" 3936 3911 msgid "Bulk Edit" 3937 3912 msgstr "" 3938 3913 3939 #: assets/js/smart-manager.js:75 03914 #: assets/js/smart-manager.js:752 3940 3915 msgctxt "tooltip" 3941 3916 msgid "Save" 3942 3917 msgstr "" 3943 3918 3944 #: assets/js/smart-manager.js:75 43919 #: assets/js/smart-manager.js:756 3945 3920 msgctxt "button" 3946 3921 msgid "Save" 3947 3922 msgstr "" 3948 3923 3949 #: assets/js/smart-manager.js:75 63924 #: assets/js/smart-manager.js:758 3950 3925 msgctxt "tooltip" 3951 3926 msgid "Add Row" 3952 3927 msgstr "" 3953 3928 3954 #: assets/js/smart-manager.js:76 03929 #: assets/js/smart-manager.js:762 3955 3930 msgctxt "button" 3956 3931 msgid "Add Row" 3957 3932 msgstr "" 3958 3933 3959 #: assets/js/smart-manager.js:76 63934 #: assets/js/smart-manager.js:768 3960 3935 msgctxt "tooltip" 3961 3936 msgid "Duplicate" 3962 3937 msgstr "" 3963 3938 3964 #: assets/js/smart-manager.js:76 63939 #: assets/js/smart-manager.js:768 3965 3940 msgctxt "button" 3966 3941 msgid "Duplicate" 3967 3942 msgstr "" 3968 3943 3969 #: assets/js/smart-manager.js:7 683944 #: assets/js/smart-manager.js:770 3970 3945 msgctxt "duplicate button" 3971 3946 msgid "Selected Records" 3972 3947 msgstr "" 3973 3948 3974 #: assets/js/smart-manager.js:7 693975 #: assets/js/smart-manager.js:95 33949 #: assets/js/smart-manager.js:771 3950 #: assets/js/smart-manager.js:959 3976 3951 msgctxt "duplicate button" 3977 3952 msgid "Entire Store" 3978 3953 msgstr "" 3979 3954 3980 #: assets/js/smart-manager.js:77 63955 #: assets/js/smart-manager.js:778 3981 3956 #: pro/assets/js/smart-manager.js:1070 3982 3957 msgctxt "tooltip" … … 3984 3959 msgstr "" 3985 3960 3986 #: assets/js/smart-manager.js:77 63961 #: assets/js/smart-manager.js:778 3987 3962 #: pro/assets/js/smart-manager.js:1070 3988 3963 msgctxt "button" … … 3990 3965 msgstr "" 3991 3966 3992 #: assets/js/smart-manager.js:7 783967 #: assets/js/smart-manager.js:780 3993 3968 msgctxt "delete button" 3994 3969 msgid "Move to Trash" 3995 3970 msgstr "" 3996 3971 3997 #: assets/js/smart-manager.js:7 793972 #: assets/js/smart-manager.js:781 3998 3973 msgctxt "delete button" 3999 3974 msgid "Delete Permanently" 4000 3975 msgstr "" 4001 3976 4002 #: assets/js/smart-manager.js:7 883977 #: assets/js/smart-manager.js:790 4003 3978 msgctxt "tooltip" 4004 3979 msgid "Custom Views" 4005 3980 msgstr "" 4006 3981 4007 #: assets/js/smart-manager.js:7 883982 #: assets/js/smart-manager.js:790 4008 3983 msgctxt "button" 4009 3984 msgid "Custom Views" 4010 3985 msgstr "" 4011 3986 4012 #: assets/js/smart-manager.js:79 03987 #: assets/js/smart-manager.js:792 4013 3988 msgctxt "custom view button" 4014 3989 msgid "Create" 4015 3990 msgstr "" 4016 3991 4017 #: assets/js/smart-manager.js:79 13992 #: assets/js/smart-manager.js:793 4018 3993 msgctxt "custom view button" 4019 3994 msgid "Update" 4020 3995 msgstr "" 4021 3996 4022 #: assets/js/smart-manager.js:79 23997 #: assets/js/smart-manager.js:794 4023 3998 msgctxt "custom view button" 4024 3999 msgid "Delete" 4025 4000 msgstr "" 4026 4001 4027 #: assets/js/smart-manager.js: 7994002 #: assets/js/smart-manager.js:801 4028 4003 msgctxt "button" 4029 4004 msgid "Export CSV" 4030 4005 msgstr "" 4031 4006 4032 #: assets/js/smart-manager.js:80 54007 #: assets/js/smart-manager.js:807 4033 4008 msgctxt "tooltip" 4034 4009 msgid "Print Invoice" 4035 4010 msgstr "" 4036 4011 4037 #: assets/js/smart-manager.js:8 094012 #: assets/js/smart-manager.js:811 4038 4013 msgctxt "button" 4039 4014 msgid "Print Invoice" 4040 4015 msgstr "" 4041 4016 4042 #: assets/js/smart-manager.js:81 34017 #: assets/js/smart-manager.js:815 4043 4018 msgctxt "tooltip" 4044 4019 msgid "Show / Hide Columns" 4045 4020 msgstr "" 4046 4021 4047 #: assets/js/smart-manager.js:81 74022 #: assets/js/smart-manager.js:819 4048 4023 msgctxt "button" 4049 4024 msgid "Columns" 4050 4025 msgstr "" 4051 4026 4052 #: assets/js/smart-manager.js:8 194027 #: assets/js/smart-manager.js:821 4053 4028 msgctxt "checkbox for displaying current dashboard tasks" 4054 4029 msgid "Show Tasks" 4055 4030 msgstr "" 4056 4031 4057 #: assets/js/smart-manager.js:82 74032 #: assets/js/smart-manager.js:829 4058 4033 msgctxt "tooltip" 4059 4034 msgid "Load more records" 4060 4035 msgstr "" 4061 4036 4062 #: assets/js/smart-manager.js:95 04037 #: assets/js/smart-manager.js:956 4063 4038 msgctxt "export button" 4064 4039 msgid "All Items In Search Results" 4065 4040 msgstr "" 4066 4041 4067 #: assets/js/smart-manager.js:95 04068 #: assets/js/smart-manager.js:34 164042 #: assets/js/smart-manager.js:956 4043 #: assets/js/smart-manager.js:3431 4069 4044 msgctxt "export button" 4070 4045 msgid "Entire Store" 4071 4046 msgstr "" 4072 4047 4073 #: assets/js/smart-manager.js:95 34048 #: assets/js/smart-manager.js:959 4074 4049 msgctxt "duplicate button" 4075 4050 msgid "All Items In Search Results" … … 4077 4052 4078 4053 #. translators: %s: dashboard display name 4079 #: assets/js/smart-manager.js:10 184080 #: assets/js/smart-manager.js:10 494054 #: assets/js/smart-manager.js:1024 4055 #: assets/js/smart-manager.js:1055 4081 4056 msgctxt "bottom bar status" 4082 4057 msgid "No %s Found" … … 4084 4059 4085 4060 #. translators: %1$d: number of display records %2$s: dashboard display name 4086 #: assets/js/smart-manager.js:10 274061 #: assets/js/smart-manager.js:1033 4087 4062 msgctxt "bottom bar status" 4088 4063 msgid "%1$d %2$s loaded" … … 4090 4065 4091 4066 #. translators: %1$d: number of total records %2$d: number of display records %3$s: dashboard display name 4092 #: assets/js/smart-manager.js:10 474067 #: assets/js/smart-manager.js:1053 4093 4068 msgctxt "bottom bar status" 4094 4069 msgid "%1$d of %2$d %3$s loaded" 4095 4070 msgstr "" 4096 4071 4097 #: assets/js/smart-manager.js:11 354072 #: assets/js/smart-manager.js:1142 4098 4073 msgctxt "button" 4099 4074 msgid "OK" 4100 4075 msgstr "" 4101 4076 4102 #: assets/js/smart-manager.js:131 24077 #: assets/js/smart-manager.js:1319 4103 4078 msgctxt "tooltip" 4104 4079 msgid "Remove gallery image" 4105 4080 msgstr "" 4106 4081 4107 #: assets/js/smart-manager.js:17 694108 #: assets/js/smart-manager.js:22 694109 #: assets/js/smart-manager.js:41 594082 #: assets/js/smart-manager.js:1782 4083 #: assets/js/smart-manager.js:2282 4084 #: assets/js/smart-manager.js:4184 4110 4085 msgctxt "process name" 4111 4086 msgid "Inline Edit" 4112 4087 msgstr "" 4113 4088 4114 #: assets/js/smart-manager.js:21 704089 #: assets/js/smart-manager.js:2183 4115 4090 msgctxt "search switch notice for custom views" 4116 4091 msgid "Cannot switch search when using Custom Views" 4117 4092 msgstr "" 4118 4093 4119 #: assets/js/smart-manager.js:22 144094 #: assets/js/smart-manager.js:2227 4120 4095 msgctxt "simple search notice for custom views" 4121 4096 msgid "Search string cannot be edited when using Custom Views" 4122 4097 msgstr "" 4123 4098 4124 #: assets/js/smart-manager.js:22 324099 #: assets/js/smart-manager.js:2245 4125 4100 msgctxt "notification" 4126 4101 msgid "Please edit a record" 4127 4102 msgstr "" 4128 4103 4129 #: assets/js/smart-manager.js:22 404104 #: assets/js/smart-manager.js:2253 4130 4105 msgctxt "notification" 4131 4106 msgid "Please enter user email" 4132 4107 msgstr "" 4133 4108 4134 #: assets/js/smart-manager.js:22 404109 #: assets/js/smart-manager.js:2253 4135 4110 msgctxt "notification" 4136 4111 msgid "Enable" 4137 4112 msgstr "" 4138 4113 4139 #: assets/js/smart-manager.js:22 404114 #: assets/js/smart-manager.js:2253 4140 4115 msgctxt "notification" 4141 4116 msgid "User Email" 4142 4117 msgstr "" 4143 4118 4144 #: assets/js/smart-manager.js:22 404119 #: assets/js/smart-manager.js:2253 4145 4120 msgctxt "notification" 4146 4121 msgid "column if not enabled using" 4147 4122 msgstr "" 4148 4123 4149 #: assets/js/smart-manager.js:22 404124 #: assets/js/smart-manager.js:2253 4150 4125 msgctxt "notification" 4151 4126 msgid "column show/hide functionality" 4152 4127 msgstr "" 4153 4128 4154 #: assets/js/smart-manager.js:2 2914129 #: assets/js/smart-manager.js:2304 4155 4130 msgctxt "notification" 4156 4131 msgid "To permanently delete records" 4157 4132 msgstr "" 4158 4133 4159 #: assets/js/smart-manager.js:2 2914160 #: assets/js/smart-manager.js:23 114134 #: assets/js/smart-manager.js:2304 4135 #: assets/js/smart-manager.js:2324 4161 4136 msgctxt "notification" 4162 4137 msgid "upgrade to Pro" 4163 4138 msgstr "" 4164 4139 4165 #: assets/js/smart-manager.js:23 054166 #: assets/js/smart-manager.js:25 514140 #: assets/js/smart-manager.js:2318 4141 #: assets/js/smart-manager.js:2564 4167 4142 msgctxt "notification" 4168 4143 msgid "Please select a record" 4169 4144 msgstr "" 4170 4145 4171 #: assets/js/smart-manager.js:23 114146 #: assets/js/smart-manager.js:2324 4172 4147 msgctxt "notification" 4173 4148 msgid "To delete more than" 4174 4149 msgstr "" 4175 4150 4176 #: assets/js/smart-manager.js:23 114151 #: assets/js/smart-manager.js:2324 4177 4152 msgctxt "notification" 4178 4153 msgid "records at a time" 4179 4154 msgstr "" 4180 4155 4181 #: assets/js/smart-manager.js:23 214156 #: assets/js/smart-manager.js:2334 4182 4157 msgctxt "modal content" 4183 4158 msgid "permanently delete" 4184 4159 msgstr "" 4185 4160 4186 #: assets/js/smart-manager.js:23 214161 #: assets/js/smart-manager.js:2334 4187 4162 msgctxt "modal content" 4188 4163 msgid "trash" … … 4190 4165 4191 4166 #. translators: %s: action name 4192 #: assets/js/smart-manager.js:23 294167 #: assets/js/smart-manager.js:2342 4193 4168 msgctxt "modal content" 4194 4169 msgid "Are you sure you want to %s" 4195 4170 msgstr "" 4196 4171 4197 #: assets/js/smart-manager.js:23 294172 #: assets/js/smart-manager.js:2342 4198 4173 msgctxt "modal content" 4199 4174 msgid "the selected" 4200 4175 msgstr "" 4201 4176 4202 #: assets/js/smart-manager.js:23 294177 #: assets/js/smart-manager.js:2342 4203 4178 msgctxt "modal content" 4204 4179 msgid "records" 4205 4180 msgstr "" 4206 4181 4207 #: assets/js/smart-manager.js:23 294182 #: assets/js/smart-manager.js:2342 4208 4183 msgctxt "modal content" 4209 4184 msgid "record" … … 4211 4186 4212 4187 #. translators: %1$s: action name %2$s: dashboard display name 4213 #: assets/js/smart-manager.js:23 324188 #: assets/js/smart-manager.js:2345 4214 4189 msgctxt "modal content" 4215 4190 msgid "Are you sure you want to %1$s the %2$s?" 4216 4191 msgstr "" 4217 4192 4218 #: assets/js/smart-manager.js:23 324193 #: assets/js/smart-manager.js:2345 4219 4194 msgctxt "modal content" 4220 4195 msgid "all" … … 4222 4197 4223 4198 #. translators: %s: action name 4224 #: assets/js/smart-manager.js:23 374199 #: assets/js/smart-manager.js:2350 4225 4200 msgctxt "modal content" 4226 4201 msgid "Are you sure you want to %s?" 4227 4202 msgstr "" 4228 4203 4229 #: assets/js/smart-manager.js:23 374204 #: assets/js/smart-manager.js:2350 4230 4205 msgctxt "modal content" 4231 4206 msgid "all items in search results" 4232 4207 msgstr "" 4233 4208 4234 #: assets/js/smart-manager.js:23 584209 #: assets/js/smart-manager.js:2371 4235 4210 msgctxt "modal content" 4236 4211 msgid "Note: Looking to" 4237 4212 msgstr "" 4238 4213 4239 #: assets/js/smart-manager.js:23 584214 #: assets/js/smart-manager.js:2371 4240 4215 msgctxt "modal content" 4241 4216 msgid "delete all" 4242 4217 msgstr "" 4243 4218 4244 #: assets/js/smart-manager.js:23 584219 #: assets/js/smart-manager.js:2371 4245 4220 msgctxt "modal content" 4246 4221 msgid "the records?" 4247 4222 msgstr "" 4248 4223 4249 #: assets/js/smart-manager.js:23 584224 #: assets/js/smart-manager.js:2371 4250 4225 msgctxt "modal content" 4251 4226 msgid "Upgrade to Pro" 4252 4227 msgstr "" 4253 4228 4254 #: assets/js/smart-manager.js:24 404229 #: assets/js/smart-manager.js:2453 4255 4230 msgctxt "notification" 4256 4231 msgid "For editing more records upgrade to Pro" … … 4258 4233 4259 4234 #. translators: %s: dashboard display name 4260 #: assets/js/smart-manager.js:24 514235 #: assets/js/smart-manager.js:2464 4261 4236 msgctxt "modal title" 4262 4237 msgid "Add %s(s)" … … 4264 4239 4265 4240 #. translators: %s: dashboard display name 4266 #: assets/js/smart-manager.js:24 544241 #: assets/js/smart-manager.js:2467 4267 4242 msgctxt "modal content" 4268 4243 msgid "Enter how many new %s(s) to create!" 4269 4244 msgstr "" 4270 4245 4271 #: assets/js/smart-manager.js:24 574246 #: assets/js/smart-manager.js:2470 4272 4247 #: pro/assets/js/smart-manager.js:1995 4273 4248 msgctxt "button" … … 4276 4251 4277 4252 #. translators: %s: pricing page link 4278 #: assets/js/smart-manager.js:25 014279 #: assets/js/smart-manager.js:25 294253 #: assets/js/smart-manager.js:2514 4254 #: assets/js/smart-manager.js:2542 4280 4255 msgctxt "notification" 4281 4256 msgid "Custom Views available (Only in %s)" 4282 4257 msgstr "" 4283 4258 4284 #: assets/js/smart-manager.js:25 154259 #: assets/js/smart-manager.js:2528 4285 4260 msgctxt "modal content" 4286 4261 msgid "This will" 4287 4262 msgstr "" 4288 4263 4289 #: assets/js/smart-manager.js:25 154264 #: assets/js/smart-manager.js:2528 4290 4265 msgctxt "modal content" 4291 4266 msgid "the current view. Are you sure you want to continue?" 4292 4267 msgstr "" 4293 4268 4294 #: assets/js/smart-manager.js:25 204269 #: assets/js/smart-manager.js:2533 4295 4270 msgctxt "notification" 4296 4271 msgid "View deleted successfully!" 4297 4272 msgstr "" 4298 4273 4299 #: assets/js/smart-manager.js:25 734274 #: assets/js/smart-manager.js:2586 4300 4275 msgctxt "notification" 4301 4276 msgid "Comming soon" 4302 4277 msgstr "" 4303 4278 4304 #: assets/js/smart-manager.js:25 784279 #: assets/js/smart-manager.js:2591 4305 4280 msgctxt "modal content" 4306 4281 msgid "This will duplicate only the records in posts, postmeta and related taxonomies." 4307 4282 msgstr "" 4308 4283 4309 #: assets/js/smart-manager.js:25 794284 #: assets/js/smart-manager.js:2592 4310 4285 msgctxt "modal content" 4311 4286 msgid "Are you sure you want to duplicate the " 4312 4287 msgstr "" 4313 4288 4314 #: assets/js/smart-manager.js:2 5994315 #: assets/js/smart-manager.js:26 074289 #: assets/js/smart-manager.js:2612 4290 #: assets/js/smart-manager.js:2620 4316 4291 msgctxt "modal title" 4317 4292 msgid "Note:" 4318 4293 msgstr "" 4319 4294 4320 #: assets/js/smart-manager.js:26 014295 #: assets/js/smart-manager.js:2614 4321 4296 msgctxt "modal content" 4322 4297 msgid "Individual variation duplication is not currently supported. Please consider submitting a" 4323 4298 msgstr "" 4324 4299 4325 #: assets/js/smart-manager.js:26 014326 #: assets/js/smart-manager.js:26 074300 #: assets/js/smart-manager.js:2614 4301 #: assets/js/smart-manager.js:2620 4327 4302 msgctxt "modal content" 4328 4303 msgid "feature request" 4329 4304 msgstr "" 4330 4305 4331 #: assets/js/smart-manager.js:26 014306 #: assets/js/smart-manager.js:2614 4332 4307 msgctxt "modal content" 4333 4308 msgid "to help us prioritize this enhancement." 4334 4309 msgstr "" 4335 4310 4336 #: assets/js/smart-manager.js:26 074311 #: assets/js/smart-manager.js:2620 4337 4312 msgctxt "modal content" 4338 4313 msgid "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" … … 4340 4315 4341 4316 #. translators: %s: Bulk Edit doc link 4342 #: assets/js/smart-manager.js:26 424317 #: assets/js/smart-manager.js:2655 4343 4318 msgctxt "modal description" 4344 4319 msgid "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." 4345 4320 msgstr "" 4346 4321 4347 #: assets/js/smart-manager.js:26 424322 #: assets/js/smart-manager.js:2655 4348 4323 msgctxt "modal description" 4349 4324 msgid "how to do bulk edit" 4350 4325 msgstr "" 4351 4326 4352 #: assets/js/smart-manager.js:26 434327 #: assets/js/smart-manager.js:2656 4353 4328 msgctxt "modal title" 4354 4329 msgid "Biggest Time Saver" … … 4356 4331 4357 4332 #. translators: %s: pricing page link 4358 #: assets/js/smart-manager.js:26 454333 #: assets/js/smart-manager.js:2658 4359 4334 msgctxt "modal title" 4360 4335 msgid "(Only in %s)" 4361 4336 msgstr "" 4362 4337 4363 #: assets/js/smart-manager.js:26 454338 #: assets/js/smart-manager.js:2658 4364 4339 msgctxt "modal title" 4365 4340 msgid "Pro" 4366 4341 msgstr "" 4367 4342 4368 #: assets/js/smart-manager.js:26 474343 #: assets/js/smart-manager.js:2660 4369 4344 msgctxt "modal title" 4370 4345 msgid "Export CSV of " 4371 4346 msgstr "" 4372 4347 4373 #: assets/js/smart-manager.js:26 484348 #: assets/js/smart-manager.js:2661 4374 4349 msgctxt "modal description" 4375 4350 msgid "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." 4376 4351 msgstr "" 4377 4352 4378 #: assets/js/smart-manager.js:26 624353 #: assets/js/smart-manager.js:2675 4379 4354 msgctxt "button" 4380 4355 msgid "Upgrade Now" … … 4382 4357 4383 4358 #. translators: %s: pricing page link 4384 #: assets/js/smart-manager.js:26 754359 #: assets/js/smart-manager.js:2688 4385 4360 msgctxt "notification" 4386 4361 msgid "Duplicate Records (Only in %s)" 4387 4362 msgstr "" 4388 4363 4389 #: assets/js/smart-manager.js:28 674364 #: assets/js/smart-manager.js:2880 4390 4365 msgctxt "columns settings description" 4391 4366 msgid "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." … … 4393 4368 4394 4369 #. translators: %s: reset columns link 4395 #: assets/js/smart-manager.js:28 714370 #: assets/js/smart-manager.js:2884 4396 4371 msgctxt "columns settings description" 4397 4372 msgid "Click %s to reset the Columns order to default." 4398 4373 msgstr "" 4399 4374 4400 #: assets/js/smart-manager.js:28 714375 #: assets/js/smart-manager.js:2884 4401 4376 msgctxt "columns settings description" 4402 4377 msgid "here" 4403 4378 msgstr "" 4404 4379 4405 #: assets/js/smart-manager.js:28 754380 #: assets/js/smart-manager.js:2888 4406 4381 msgctxt "columns settings searchbox heading" 4407 4382 msgid "Enabled" 4408 4383 msgstr "" 4409 4384 4410 #: assets/js/smart-manager.js:28 764385 #: assets/js/smart-manager.js:2889 4411 4386 msgctxt "placeholder" 4412 4387 msgid "Search For Enabled Columns..." 4413 4388 msgstr "" 4414 4389 4415 #: assets/js/smart-manager.js:28 824390 #: assets/js/smart-manager.js:2895 4416 4391 msgctxt "columns settings searchbox heading" 4417 4392 msgid "Disabled" 4418 4393 msgstr "" 4419 4394 4420 #: assets/js/smart-manager.js:28 834395 #: assets/js/smart-manager.js:2896 4421 4396 msgctxt "placeholder" 4422 4397 msgid "Search For Disabled Columns..." 4423 4398 msgstr "" 4424 4399 4425 #: assets/js/smart-manager.js:32 134400 #: assets/js/smart-manager.js:3228 4426 4401 msgctxt "notification" 4427 4402 msgid "You have entered incorrect data in the highlighted cells." 4428 4403 msgstr "" 4429 4404 4430 #: assets/js/smart-manager.js:32 264405 #: assets/js/smart-manager.js:3241 4431 4406 msgctxt "modal title" 4432 4407 msgid "Note" 4433 4408 msgstr "" 4434 4409 4435 #: assets/js/smart-manager.js:32 394410 #: assets/js/smart-manager.js:3254 4436 4411 #: common-core/assets/js/core-base.js:328 4437 4412 msgctxt "modal title" … … 4439 4414 msgstr "" 4440 4415 4441 #: assets/js/smart-manager.js:32 404416 #: assets/js/smart-manager.js:3255 4442 4417 #: common-core/assets/js/core-base.js:329 4443 4418 msgctxt "modal content" … … 4445 4420 msgstr "" 4446 4421 4447 #: assets/js/smart-manager.js:32 454448 #: assets/js/smart-manager.js:4 3814422 #: assets/js/smart-manager.js:3260 4423 #: assets/js/smart-manager.js:4406 4449 4424 #: common-core/assets/js/core-base.js:333 4450 4425 msgctxt "button" … … 4452 4427 msgstr "" 4453 4428 4454 #: assets/js/smart-manager.js:32 584455 #: assets/js/smart-manager.js:4 3984429 #: assets/js/smart-manager.js:3273 4430 #: assets/js/smart-manager.js:4423 4456 4431 #: common-core/assets/js/core-base.js:346 4457 4432 msgctxt "button" … … 4459 4434 msgstr "" 4460 4435 4461 #: assets/js/smart-manager.js:3 3974436 #: assets/js/smart-manager.js:3412 4462 4437 msgctxt "notification" 4463 4438 msgid "Settings saved successfully!" 4464 4439 msgstr "" 4465 4440 4466 #: assets/js/smart-manager.js:34 154441 #: assets/js/smart-manager.js:3430 4467 4442 msgctxt "export button" 4468 4443 msgid "Selected Records" 4469 4444 msgstr "" 4470 4445 4471 #: assets/js/smart-manager.js:34 184446 #: assets/js/smart-manager.js:3433 4472 4447 msgctxt "schedule export button" 4473 4448 msgid "Schedule Export" 4474 4449 msgstr "" 4475 4450 4476 #: assets/js/smart-manager.js:34 194451 #: assets/js/smart-manager.js:3434 4477 4452 msgctxt "manage scheduled exports button" 4478 4453 msgid "Manage Scheduled Exports" 4479 4454 msgstr "" 4480 4455 4481 #: assets/js/smart-manager.js:35 494456 #: assets/js/smart-manager.js:3564 4482 4457 msgctxt "undo all button" 4483 4458 msgid "Discard Changes" 4484 4459 msgstr "" 4485 4460 4486 #: assets/js/smart-manager.js:35 504461 #: assets/js/smart-manager.js:3565 4487 4462 msgctxt "save changes button" 4488 4463 msgid "Save Changes" 4489 4464 msgstr "" 4490 4465 4491 #: assets/js/smart-manager.js:4 0854466 #: assets/js/smart-manager.js:4110 4492 4467 msgctxt "bottom bar display name for tasks" 4493 4468 msgid "Tasks" 4494 4469 msgstr "" 4495 4470 4496 #: assets/js/smart-manager.js:4 0944471 #: assets/js/smart-manager.js:4119 4497 4472 msgctxt "gallery modal title" 4498 4473 msgid "Gallery Images" 4499 4474 msgstr "" 4500 4475 4501 #: assets/js/smart-manager.js:4 0984476 #: assets/js/smart-manager.js:4123 4502 4477 msgctxt "button" 4503 4478 msgid "Add" 4504 4479 msgstr "" 4505 4480 4506 #: assets/js/smart-manager.js:41 044481 #: assets/js/smart-manager.js:4129 4507 4482 msgctxt "button" 4508 4483 msgid "Add images to product gallery" 4509 4484 msgstr "" 4510 4485 4511 #: assets/js/smart-manager.js:41 054486 #: assets/js/smart-manager.js:4130 4512 4487 msgctxt "button" 4513 4488 msgid "Add to gallery" 4514 4489 msgstr "" 4515 4490 4516 #: assets/js/smart-manager.js:42 094491 #: assets/js/smart-manager.js:4234 4517 4492 msgctxt "tooltip" 4518 4493 msgid "(Click to sort)" 4519 4494 msgstr "" 4520 4495 4521 #: assets/js/smart-manager.js:43 134496 #: assets/js/smart-manager.js:4338 4522 4497 msgctxt "modal content" 4523 4498 msgid "Are you sure you want to export the " 4524 4499 msgstr "" 4525 4500 4526 #: assets/js/smart-manager.js:4 3784501 #: assets/js/smart-manager.js:4403 4527 4502 msgctxt "modal content" 4528 4503 msgid "You have unsaved changes. Are you sure you want to continue?" -
smart-manager-for-wp-e-commerce/trunk/readme.txt
r3385169 r3390175 8 8 Tested up to: 6.8.3 9 9 Requires PHP: 5.6 10 Stable tag: 8.7 3.010 Stable tag: 8.74.0 11 11 License: GPLv2 12 12 … … 310 310 == Changelog == 311 311 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 312 319 = 8.73.0 (27.10.2025) = 313 320 * New: WooCommerce 10.3.3 compatible … … 705 712 == Upgrade Notice == 706 713 714 = 8.74.0 = 715 WooCommerce 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 707 717 = 8.73.0 = 708 718 WooCommerce 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 4 4 * Plugin URI: https://www.storeapps.org/product/smart-manager/ 5 5 * 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.7 3.06 * Version: 8.74.0 7 7 * Author: StoreApps 8 8 * Author URI: https://www.storeapps.org/ … … 13 13 * Requires PHP: 5.6+ 14 14 * WC requires at least: 3.0.0 15 * WC tested up to: 10.3. 315 * WC tested up to: 10.3.4 16 16 * Copyright (c) 2010 - 2025 StoreApps. All rights reserved. 17 17 * License: GNU General Public License v2.0
Note: See TracChangeset
for help on using the changeset viewer.